diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-23 13:12:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-23 13:12:04 +0000 |
| commit | 13b2b8f48f3f1a22277a760a7fada980b9f37677 (patch) | |
| tree | 53f32b233750fd0d64ebf877248bcd1a5c9bd9fd /src/lib/ffmpeg.h | |
| parent | 10f55bf3a2ac9340263a410fa2a69f1360f5c227 (diff) | |
Use FileGroup in FFmpeg.
Diffstat (limited to 'src/lib/ffmpeg.h')
| -rw-r--r-- | src/lib/ffmpeg.h | 13 |
1 files changed, 12 insertions, 1 deletions
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 <libavcodec/avcodec.h> } +#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<const FFmpegContent> _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 |
