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

Michael Niedermayer michaelni at gmx.at
Thu Aug 8 21:23:53 CEST 2013


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130808/5a1d33fc/attachment.asc>


More information about the ffmpeg-devel mailing list