• Reimar Döffinger's avatar
    Make new VDPAU easier to use by adding context to callback. · d404fe35
    Reimar Döffinger authored
    Using VDPAU correctly means checking for preemption
    and possibly regenerating the context all the time.
    With the current API there is no context or other
    user-defined pointer and thus this in not possible
    during decoding unless using some hack like global
    variables.
    The need to reinitialize both surfaces and even function
    pointers makes handling preemption even more difficult.
    This patch introduces a new render2 function that gets
    both the AVCodecContext and AVFrame in addition,
    in both the user can store additional opaque data.
    This allows even advanced approaches like keeping a
    "generation counter" for the surfaces so they can be
    regenerated on the fly and efficiently.
    In addition, the function has a return value that will
    be passed through all the way instead of being silently
    ignored as for the current render function.
    Unfortunately the HWAccel API has no way of providing
    API/ABI compatibility, so a currently disallowed
    state (render pointer being NULL) is used to extend it.
    Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    d404fe35
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample 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...
INSTALL Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
arch.mak 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...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...
ffserver.c Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...