20 #ifndef GNASH_VIDEODECODERFFMPEG_H
21 #define GNASH_VIDEODECODERFFMPEG_H
40 class CodecContextWrapper;
42 class SwsContextWrapper;
59 std::auto_ptr<image::GnashImage>
pop();
84 std::auto_ptr<image::GnashImage> frameToImage(AVCodecContext* srcCtx,
85 const AVFrame& srcFrame);
87 void init(
enum CodecID format,
int width,
int height,
88 boost::uint8_t* extradata=0,
int extradataSize=0);
90 std::auto_ptr<image::GnashImage> decode(
const boost::uint8_t* input,
91 boost::uint32_t input_size);
99 std::auto_ptr<CodecContextWrapper> _videoCodecCtx;
108 std::auto_ptr<SwsContextWrapper> _swsContext;
111 std::vector<const EncodedVideoFrame*> _video_frames;
118 #endif // __VIDEODECODERFFMPEG_H__