]> git.sesse.net Git - ffmpeg/commit
lavc/libopenh264enc: Add qmin/qmax support
authorLinjie Fu <linjie.fu@intel.com>
Wed, 29 Apr 2020 03:00:46 +0000 (11:00 +0800)
committerMartin Storsjö <martin@martin.st>
Wed, 29 Apr 2020 17:58:17 +0000 (20:58 +0300)
commit433ece8c8b62e092601ee9580029ba0e6e48ff58
treeea3d7941265b9abe5aaa353a0c621f290aeacabe
parent2970846fc1fce2f0d41675c9145bf0fa6f64a8d7
lavc/libopenh264enc: Add qmin/qmax support

Clip iMinQp/iMaxQp to (1, 51) for user specified qp range.

If not set, leave iMinQp/iMaxQp untouched and use the values (0, 51)
initialized in FillDefault(), and the QP range would be adjusted to the
defaults inside libopenh264 library according to the iUsageType, (12, 42)
for iUsageType == CAMERA_VIDEO_REAL_TIME which is default.

<https://github.com/cisco/openh264/blob/master/codec/encoder/core/src/encoder_ext.cpp#L375>

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopenh264enc.c