• Gwenole Beauchesne's avatar
    vaapi: mpeg2: fix slice_vertical_position calculation. · 58e1032d
    Gwenole Beauchesne authored
    VASliceParameterBufferMPEG2.slice_vertical_position shall express
    the slice vertical position from the original bitstream. The HW
    decoder will correctly decode to the right line computed from the
    appropriate top_field_first and is_first_field flags.
    
    This patch aligns with DXVA's definition, which is what most HW and
    drivers expect. In particular, Intel PowerVR (Cedarview et al.) and
    NVIDIA (through VA-to-VDPAU layer). Since it looks more complex to fix
    binary drivers, I aligned the Intel Gen driver (Sandy Bridge et al.)
    to this behaviour, while maintaining compatibility with codec layers
    not providing this patch yet.
    Signed-off-by: 's avatarGwenole Beauchesne <gwenole.beauchesne@intel.com>
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    58e1032d
Name
Last commit
Last update
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
avconv.c Loading commit data...
avplay.c Loading commit data...
avprobe.c Loading commit data...
avserver.c Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...