]> granicus.if.org Git - libvpx/commit
Allow to skip highest-resolution encoding in multi-resolution encoder
authorYunqing Wang <yunqingwang@google.com>
Thu, 2 Feb 2012 19:27:04 +0000 (14:27 -0500)
committerYunqing Wang <yunqingwang@google.com>
Fri, 3 Feb 2012 18:39:05 +0000 (13:39 -0500)
commitfa1a9290e6e7cd0bf0afff5213e73fa5f662a9e2
treeafaef1523be0b6f1b348f2ca4dac921f1eb4f44d
parent07c6eb18ade194df97bb7f5ae686dce0574dc27f
Allow to skip highest-resolution encoding in multi-resolution encoder

Sometimes, a user doesn't have enough bandwidth to send high-resolution
(i.e. HD) video even though the camera catches HD video. This change
allowed users to skip highest-resolution encoding by setting that level's
target bit rate to 0.

To test it, modify the following line in vp8_multi_resolution_encoder.c.
    unsigned int  target_bitrate[NUM_ENCODERS]={1400, 500, 100};
To skip the highest-resolution level, change it to
    unsigned int  target_bitrate[NUM_ENCODERS]={0, 500, 100};
To skip the first and second highest resolution levels, change it to
    unsigned int  target_bitrate[NUM_ENCODERS]={0, 0, 100};

This change also fixed a small problem in mapping, which slightly helped
quality and performance.

Change-Id: I977bae9a9fbfba85c8be4bd5af01539f2b84bc81
vp8/encoder/pickinter.c
vp8_multi_resolution_encoder.c
vpx/src/vpx_encoder.c
vpx/vpx_encoder.h