Commit 6d991a30 authored by aymeric's avatar aymeric
Browse files

add support for QSIF, SIF and 4SIF

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@764 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 0bc1da20
......@@ -30,6 +30,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define MS_VIDEO_SIZE_4CIF_W 704
#define MS_VIDEO_SIZE_4CIF_H 576
#define MS_VIDEO_SIZE_QSIF_W 176
#define MS_VIDEO_SIZE_QSIF_H 120
#define MS_VIDEO_SIZE_SIF_W 352
#define MS_VIDEO_SIZE_SIF_H 240
#define MS_VIDEO_SIZE_4SIF_W 704
#define MS_VIDEO_SIZE_4SIF_H 480
#define MS_VIDEO_SIZE_QQVGA_W 160
#define MS_VIDEO_SIZE_QQVGA_H 120
......
......@@ -68,6 +68,15 @@ int yuv_buf_init_from_mblk(YuvBuf *buf, mblk_t *m){
}else if (size==(MS_VIDEO_SIZE_800X600_W*MS_VIDEO_SIZE_800X600_H*3)/2){
w=MS_VIDEO_SIZE_800X600_W;
h=MS_VIDEO_SIZE_800X600_H;
}else if (size==(MS_VIDEO_SIZE_QSIF_W*MS_VIDEO_SIZE_QSIF_H*3)/2){
w=MS_VIDEO_SIZE_QSIF_W;
h=MS_VIDEO_SIZE_QSIF_H;
}else if (size==(MS_VIDEO_SIZE_SIF_W*MS_VIDEO_SIZE_SIF_H*3)/2){
w=MS_VIDEO_SIZE_SIF_W;
h=MS_VIDEO_SIZE_SIF_H;
}else if (size==(MS_VIDEO_SIZE_4SIF_W*MS_VIDEO_SIZE_4SIF_H*3)/2){
w=MS_VIDEO_SIZE_4SIF_W;
h=MS_VIDEO_SIZE_4SIF_H;
}else if (size==(160*112*3)/2){/*format used by econf*/
w=160;
h=112;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment