mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Add new bandwidth for testing larger image
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@41 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
ce18ada366
commit
3c21327040
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue