Go to the documentation of this file.
20 #ifndef GNASH_VIDEODECODERFFMPEG_H
21 #define GNASH_VIDEODECODERFFMPEG_H
39 class CodecContextWrapper;
41 class SwsContextWrapper;
58 std::unique_ptr<image::GnashImage>
pop();
83 std::unique_ptr<image::GnashImage> frameToImage(AVCodecContext* srcCtx,
84 const AVFrame& srcFrame);
87 std::uint8_t* extradata=
nullptr,
int extradataSize=0);
89 std::unique_ptr<image::GnashImage> decode(
const std::uint8_t* input,
90 std::uint32_t input_size);
98 std::unique_ptr<CodecContextWrapper> _videoCodecCtx;
107 std::unique_ptr<SwsContextWrapper> _swsContext;
110 std::vector<const EncodedVideoFrame*> _video_frames;
117 #endif // __VIDEODECODERFFMPEG_H__
@ height
Definition: klash_part.cpp:329
std::shared_ptr< VaapiSurface > get() const
Return VA surface.
Definition: VaapiSurfaceProxy.h:43
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
VA context implementation for FFmpeg.
Definition: VideoDecoderFfmpegVaapi.h:67
Definition: ffmpegHeaders.h:128
GnashImage implementation using a VA surface.
Definition: GnashVaapiImage.h:36
#define UNUSED(x)
Definition: utility.h:113
void log_error(StringType msg, Args... args)
Definition: log.h:283
VaapiContextFfmpeg(enum CODECID codec_id)
Definition: VideoDecoderFfmpegVaapi.cpp:97
static VaapiContextFfmpeg * create(enum CODECID codec_id)
Definition: VideoDecoderFfmpegVaapi.cpp:117
bool vaapi_is_enabled()
Check whether video acceleration is enabled.
Definition: vaapi_utils.cpp:35
#define DSOEXPORT
Definition: dsodefs.h:55
@ width
Definition: klash_part.cpp:329
@ TYPE_RGBA
Definition: GnashImage.h:50