20 #ifndef GNASH_MEDIA_VIDEODECODERFFMPEGVAAPI_H
21 #define GNASH_MEDIA_VIDEODECODERFFMPEGVAAPI_H
28 #include <libavcodec/avcodec.h>
29 #include <libavcodec/vaapi.h>
32 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,18,102)
33 #define CODECID AVCodecID
35 #define CODECID CodecID
44 unsigned int _pic_num;
48 boost::shared_ptr<VaapiContext> context)
56 { _pic_num = pic_num; }
61 static inline VaapiSurfaceFfmpeg *vaapi_get_surface(
const AVFrame *pic)
63 return reinterpret_cast<VaapiSurfaceFfmpeg *
>(pic->data[0]);
68 boost::shared_ptr<VaapiContext> _context;
#define CODECID
Definition: VideoDecoderFfmpegVaapi.h:33
VaapiSurfaceFfmpeg * getSurface()
Definition: VideoDecoderFfmpegVaapi.h:75
static VaapiContextFfmpeg * create(enum CODECID codec_id)
Definition: VideoDecoderFfmpegVaapi.cpp:118
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: klash_part.cpp:329
VA context implementation for FFmpeg.
Definition: VideoDecoderFfmpegVaapi.h:67
Definition: klash_part.cpp:329
bool initDecoder(unsigned int width, unsigned int height)
Definition: VideoDecoderFfmpegVaapi.cpp:104
VaapiContextFfmpeg(enum CODECID codec_id)
Definition: VideoDecoderFfmpegVaapi.cpp:97
VA surface proxy used to release surface to context.
Definition: VaapiSurfaceProxy.h:33