mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
add support for 4CIF negotiation
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@45 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
e3163a310e
commit
b813bd5a8c
2 changed files with 9 additions and 5 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue