encoder: fix computation of max coded buffer size.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 18:10:13 +0000 (19:10 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 18:14:38 +0000 (19:14 +0100)
commitb864d1f71acc47bd41b8e7171c4ad4d6628849f4
tree32e633be01642a7a7c2d9893c50a88f87e44f1c8
parentfd9c855f140af83f34081403c09d6bfac005ca78
encoder: fix computation of max coded buffer size.

Fix coded buffer size for each codec. A generic issue was that the
number of macroblocks was incorrectly computed. The second issue was
specific to MPEG-2 were the max number of bits per macroblock, and
as defined by the standard, was incorrectly mapped to the (lower)
H.264 requirement. i.e. 4608 bits vs. 3200 bits limit.
gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder_h264.c
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c