Go to the documentation of this file.
20 #ifndef GNASH_MEDIAPARSER_FFMPEG_H
21 #define GNASH_MEDIAPARSER_FFMPEG_H
24 #include <boost/optional.hpp>
87 virtual bool seek(std::uint32_t&);
95 virtual boost::optional<Id3Info>
getId3Info()
const;
101 void initializeParser();
107 bool parseNextFrame();
110 int readPacket(std::uint8_t* buf,
int buf_size);
113 static int readPacketWrapper(
void* opaque, std::uint8_t* buf,
int buf_size);
116 std::int64_t seekMedia(std::int64_t offset,
int whence);
119 static std::int64_t seekMediaWrapper(
void *opaque, std::int64_t offset,
int whence);
122 AVInputFormat* probeStream();
124 AVInputFormat* _inputFmt;
127 AVFormatContext *_formatCtx;
130 int _videoStreamIndex;
133 AVStream* _videoStream;
136 int _audioStreamIndex;
139 AVStream* _audioStream;
142 AVIOContext* _avIOCxt;
149 static const size_t byteIOBufferSize = 1024;
151 std::unique_ptr<unsigned char[]> _byteIOBuffer;
154 std::uint64_t _lastParsedPosition;
160 std::uint16_t SampleFormatToSampleSize(AVSampleFormat fmt);
164 bool parseVideoFrame(AVPacket& packet);
167 bool parseAudioFrame(AVPacket& packet);
169 boost::optional<Id3Info> _id3Object;
177 #endif // __MEDIAPARSER_FFMPEG_H__
@ height
Definition: klash_part.cpp:329
void log_debug(StringType msg, Args... args)
Definition: log.h:301
@ i
Definition: GnashKey.h:155
#define LOG_ONCE(x)
Definition: log.h:49
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
#define __FUNCTION__
Definition: log.h:437
void log_error(StringType msg, Args... args)
Definition: log.h:283
VGPaint fill
Definition: testr_gtk.cpp:86
@ p
Definition: GnashKey.h:162
#define __PRETTY_FUNCTION__
Definition: log.h:444
@ width
Definition: klash_part.cpp:329
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
SimpleBuffer data
Definition: LocalConnection_as.cpp:151