Gnash  0.8.10
Classes | Public Member Functions | Public Attributes
gnash::media::VideoInfo Class Reference

Information about a video stream. More...

#include <MediaParser.h>

List of all members.

Classes

class  ExtraInfo
 Extra info about a video stream. More...

Public Member Functions

 VideoInfo (int codeci, boost::uint16_t widthi, boost::uint16_t heighti, boost::uint16_t frameRatei, boost::uint64_t durationi, codecType typei)
 Construct a VideoInfo object.

Public Attributes

int codec
boost::uint16_t width
boost::uint16_t height
boost::uint16_t frameRate
boost::uint64_t duration
codecType type
std::auto_ptr< ExtraInfoextra
 Extra info about video stream, if when needed.

Detailed Description

Information about a video stream.

The information stored is codec-id, width, height, framerate and duration.

Additionally, an abstract ExtraInfo can be hold.


Constructor & Destructor Documentation

gnash::media::VideoInfo::VideoInfo ( int  codeci,
boost::uint16_t  widthi,
boost::uint16_t  heighti,
boost::uint16_t  frameRatei,
boost::uint64_t  durationi,
codecType  typei 
) [inline]

Construct a VideoInfo object.

Parameters:
codeciVideo codec id. To be interpreted as a media::videoCodecType if the typei parameter is CODEC_TYPE_FLASH; otherwise it's an opaque number to use for codec information transfer between a MediaParser and a VideoDecoder from the same media handler module.
widthiVideo frame width.
Todo:
check if still needed.
Parameters:
heightiVideo frame height.
Todo:
check if still needed.
Parameters:
frameRateiNominal video frame rate.
Todo:
document units.
Parameters:
durationiNominal video duration.
Todo:
check if still needed, if so document units!
Parameters:
typeiChanges interpretation of the codeci parameter.

Member Data Documentation

Extra info about video stream, if when needed.

Could be ExtraAudioInfoFlv or a media-handler specific info

Referenced by gnash::media::gst::MediaHandlerGst::createVideoDecoder(), and gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg().


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