Gnash  0.8.10
Public Member Functions
gnash::media::ffmpeg::MediaParserFfmpeg Class Reference

FFMPEG based MediaParser. More...

#include <MediaParserFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::MediaParserFfmpeg:
gnash::media::MediaParser

List of all members.

Public Member Functions

 MediaParserFfmpeg (std::auto_ptr< IOChannel > stream)
 Construct a ffmpeg-based media parser for given stream.
 ~MediaParserFfmpeg ()
virtual bool seek (boost::uint32_t &)
 Seeks to the closest possible position the given position, and returns the new position.
virtual bool parseNextChunk ()
 Parse next chunk of input.
virtual boost::uint64_t getBytesLoaded () const
 Return number of bytes parsed so far.
virtual boost::optional< Id3InfogetId3Info () const
 Get ID3 data from the parsed stream if it exists.

Detailed Description

FFMPEG based MediaParser.


Constructor & Destructor Documentation

gnash::media::ffmpeg::MediaParserFfmpeg::MediaParserFfmpeg ( std::auto_ptr< IOChannel stream)

Construct a ffmpeg-based media parser for given stream.

Can throw a GnashException if input format couldn't be detected

References gnash::media::MediaParser::startParserThread().

gnash::media::ffmpeg::MediaParserFfmpeg::~MediaParserFfmpeg ( )

Member Function Documentation

boost::uint64_t gnash::media::ffmpeg::MediaParserFfmpeg::getBytesLoaded ( ) const [virtual]

Return number of bytes parsed so far.

Reimplemented from gnash::media::MediaParser.

boost::optional< Id3Info > gnash::media::ffmpeg::MediaParserFfmpeg::getId3Info ( ) const [virtual]

Get ID3 data from the parsed stream if it exists.

It's best to do this only when parsingComplete is true.

Reimplemented from gnash::media::MediaParser.

bool gnash::media::ffmpeg::MediaParserFfmpeg::parseNextChunk ( ) [virtual]

Parse next chunk of input.

The implementations are required to parse a small chunk of input, so to avoid blocking too much if parsing conditions change (ie: seek or destruction requested)

When LOAD_MEDIA_IN_A_SEPARATE_THREAD is defined, this should never be called by users (consider protected).

Implements gnash::media::MediaParser.

bool gnash::media::ffmpeg::MediaParserFfmpeg::seek ( boost::uint32_t &  time) [virtual]

Seeks to the closest possible position the given position, and returns the new position.

Parameters:
timeinput/output parameter, input requests a time, output return the actual time seeked to.
Returns:
true if the seek was valid, false otherwise.

Implements gnash::media::MediaParser.

References gnash::media::MediaParser::_streamMutex, _, __FUNCTION__, gnash::media::MediaParser::_parsingComplete, and gnash::media::MediaParser::clearBuffers().


The documentation for this class was generated from the following files: