Commit b813bd5a authored by aymeric's avatar aymeric
Browse files

add support for 4CIF negotiation

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@45 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent e3163a31
......@@ -172,9 +172,13 @@ static void enc_postprocess(MSFilter *f){
static int enc_set_br(MSFilter *f, void *arg){
EncData *d=(EncData*)f->data;
d->bitrate=*(int*)arg;
if (d->bitrate>=384000){
d->vsize=MS_VIDEO_SIZE_CIF;
d->fps=30;
if (d->bitrate>=1024000){
d->vsize=MS_VIDEO_SIZE_4CIF;
d->fps=15;
}else if (d->bitrate>=384000){
d->vsize=MS_VIDEO_SIZE_CIF;
d->fps=30;
}else if (d->bitrate>=256000){
d->vsize=MS_VIDEO_SIZE_CIF;
d->fps=15;
......
......@@ -125,8 +125,8 @@ static int enc_set_br(MSFilter *f, void*data){
s->tinfo.keyframe_data_target_bitrate=codecbr;
/*those default settings would need to be affined*/
if (br>=1024000){
vsize.width = MS_VIDEO_SIZE_1024_W;
vsize.height = MS_VIDEO_SIZE_1024_H;
vsize.width = MS_VIDEO_SIZE_4CIF_W;
vsize.height = MS_VIDEO_SIZE_4CIF_H;
s->tinfo.quality=32;
fps=15;
}else if (br>=512000){
......
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