[FFmpeg-devel] [PATCH] Try to make new VDPAU usable by adding context to callback.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Aug 8 22:17:40 CEST 2013


On Thu, Aug 08, 2013 at 09:23:53PM +0200, Michael Niedermayer wrote:
> On Thu, Aug 08, 2013 at 08:17:11PM +0200, Reimar Döffinger wrote:
> > 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
> > unless using some hack like global variables.
> > This introduces a new decode function that gets
> > both the AVCodecContext and AVFrame in addition,
> > in both the user can store additional opaque data.
> > 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.
> > An alternative would be to add the new function pointer
> > to the AVCodecContext.
> > ---
> >  libavcodec/vdpau.c      | 13 +++++++++++++
> >  libavcodec/vdpau.h      | 12 ++++++++++++
> >  libavcodec/vdpau_h264.c |  4 ++++
> >  3 files changed, 29 insertions(+)
> 
> should be ok but iam no VDPAU user or developer

I'll give it some time, at least until it has been tested some more from
MPlayer side.


More information about the ffmpeg-devel mailing list