Commit 3c213270 authored by aymeric's avatar aymeric
Browse files

Add new bandwidth for testing larger image

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@41 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent ce18ada3
......@@ -588,6 +588,9 @@ static int v4l_configure(V4lState *s)
ms_message("Driver supports UYVY, using that format.");
s->pix_fmt=MS_UYVY;
}else{
s->vsize.width=MS_VIDEO_SIZE_CIF_W;
s->vsize.height=MS_VIDEO_SIZE_CIF_H;
s->pix_fmt=MS_YUV420P;
ms_fatal("Unsupported video pixel format.");
return -1;
}
......@@ -598,7 +601,9 @@ static int v4l_configure(V4lState *s)
if (!try_size(s,MS_VIDEO_SIZE_CIF)) {
if (!try_size(s,MS_VIDEO_SIZE_QCIF)) {
if (!try_size(s,MS_VIDEO_SIZE_QVGA)) {
if (!try_size(s,MS_VIDEO_SIZE_1024)) {
return -1;
}
}
}
}
......
......@@ -60,6 +60,9 @@ int yuv_buf_init_from_mblk(YuvBuf *buf, mblk_t *m){
}else if (size==(MS_VIDEO_SIZE_NS1_W*MS_VIDEO_SIZE_NS1_H*3)/2){
w=MS_VIDEO_SIZE_NS1_W;
h=MS_VIDEO_SIZE_NS1_H;
}else if (size==(MS_VIDEO_SIZE_1024_W*MS_VIDEO_SIZE_1024_H*3)/2){
w=MS_VIDEO_SIZE_1024_W;
h=MS_VIDEO_SIZE_1024_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