libs: encoder: h264: Add uncompliant mode reducing coded buffer size
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 19 Jul 2017 19:02:40 +0000 (12:02 -0700)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 1 Aug 2017 12:37:44 +0000 (14:37 +0200)
commitaa3543929b163ea959937bca8262ffb991e701a4
tree3de9112fabc14d9efccc6297ee20ba7c6c954460
parentf775bbfe0765883fe656700f909faa14a3bf35f3
libs: encoder: h264: Add uncompliant mode reducing coded buffer size

Added a new property "compliance-mode", which default is the normal
strict compliant mode.

The second mode, "restrict-buf-alloc", is to limit the coded buffer
allocation size to improve performance in some specific Intel
platforms (there is asignificant performance improvement in parallel
encodings). Under this new mode, we use the MinCR field in A.3.1 for
pre-calculating the coded-buffer size.

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