• Gwenole Beauchesne's avatar
    hwaccel: mpeg2: decode first field, if requested. · 9cb150c9
    Gwenole Beauchesne authored
    If user opted to present fields as they come, then the first field
    picture needs to be submitted to the HW for decoding. In particular,
    this fixes MPEG-2 decoding of interlaced streams.
    
    Tested on Intel Cedar Trail, Sandy Bridge and Ivy Bridge platforms.
    Someone reported on the ffmpeg-devel@ list this also works on DXVA
    (Windows) and other Linux platforms (NVIDIA, through the VA wrapper).
    
    This also means a similar patch to non-hwaccel VDPAU may be necessary.
    
    Note: I believe the SLICE_FLAG_ALLOW_FIELD is useless since the first
    field shall always be submitted to the HW anyway. Nobody uses HW accels
    (dxva, vaapi, vdpau, etc.) without that flag though.
    Signed-off-by: 's avatarGwenole Beauchesne <gwenole.beauchesne@intel.com>
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    9cb150c9
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...