vdpau: common support for managing the VdpDecoder in avcodec
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Oct 2014 13:55:04 +0000 (16:55 +0300)
committerAnton Khirnov <anton@khirnov.net>
Sun, 5 Oct 2014 10:17:02 +0000 (10:17 +0000)
commitce083282f0a8b7d63c4047c30b7bac498f9806dd
tree4e037d8711625aa88c239161f62a907be8890385
parentfcc1022611f79c2f3aa2f392a5ce14c74be9c1d7
vdpau: common support for managing the VdpDecoder in avcodec

Using the not so new init and uninit callbacks, avcodec can now take
care of creating and destroying the VDPAU decoder instance.

The application is still responsible for creating the VDPAU device
and allocating video surfaces - this is necessary to keep video
surfaces on the GPU all the way to the output. But the application
will no longer needs to care about any codec-specific aspects.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/vdpau.c
libavcodec/vdpau_internal.h