encoder: h264: really fix frame cropping rectangle calculation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 15 Jan 2014 14:10:48 +0000 (15:10 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 15 Jan 2014 14:15:54 +0000 (15:15 +0100)
commit5f5df3f723a6ea4314e539c41e22c82da70b53e4
tree2251ba6aa41911810a7dcf67662143031572f538
parentb1d3f7d4c0f3be8ec1f82aa00516596cafb7a0a2
encoder: h264: really fix frame cropping rectangle calculation.

Make frame cropping rectangle calculation future proof, i.e. exactly
follow the specification (7-18) to (7-21), and subsampling definitions
from Table 6-1.

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