From 13b2b8f48f3f1a22277a760a7fada980b9f37677 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 23 Nov 2013 13:12:04 +0000 Subject: Use FileGroup in FFmpeg. --- src/lib/ffmpeg.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg.h') diff --git a/src/lib/ffmpeg.h b/src/lib/ffmpeg.h index d5f4db291..c94b8d8ac 100644 --- a/src/lib/ffmpeg.h +++ b/src/lib/ffmpeg.h @@ -26,6 +26,7 @@ extern "C" { #include } +#include "file_group.h" struct AVFilterGraph; struct AVCodecContext; @@ -35,6 +36,7 @@ struct AVFrame; struct AVBufferContext; struct AVCodec; struct AVStream; +struct AVIOContext; class FFmpegContent; @@ -48,16 +50,25 @@ public: return _ffmpeg_content; } + int avio_read (uint8_t *, int); + int64_t avio_seek (int64_t, int); + int64_t avio_length (); + protected: AVCodecContext* video_codec_context () const; AVCodecContext* audio_codec_context () const; boost::shared_ptr _ffmpeg_content; + uint8_t* _avio_buffer; + int _avio_buffer_size; + AVIOContext* _avio_context; + FileGroup _file_group; + AVFormatContext* _format_context; AVPacket _packet; AVFrame* _frame; - + int _video_stream; /* It would appear (though not completely verified) that one must have -- cgit v1.2.3