encoder: h264: improve automatic bitrate calculation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 10:49:14 +0000 (11:49 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 13 Jan 2014 16:31:55 +0000 (17:31 +0100)
commitc7a2095b78f9b543b9e97b8556d1d67f2e23487b
treee2b0288493b363b239e3c8b4b7a0ca19c1f4834d
parent7b1233faa8bb12b4ecb2e9e6dcdee72f94b468f4
encoder: h264: improve automatic bitrate calculation.

For non "Constant-QP" modes, we could provide more reasonable heuristics
for the target bitrate. In general, 48 bits per macroblock with all the
useful coding tools enable looks safe enough. Then, this rate is raised
by +10% to +15% for each coding tool that is disabled.

https://bugzilla.gnome.org/show_bug.cgi?id=719699
gst-libs/gst/vaapi/gstvaapiencoder_h264.c