Gnash  0.8.11dev
Classes | Public Member Functions | Public Attributes | List of all members
gnash::media::VideoInfo Class Reference

Information about a video stream. More...

#include <MediaParser.h>

Classes

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

Public Member Functions

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

Public Attributes

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

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

§ VideoInfo()

gnash::media::VideoInfo::VideoInfo ( int  codeci,
std::uint16_t  widthi,
std::uint16_t  heighti,
std::uint16_t  frameRatei,
std::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

§ codec

int gnash::media::VideoInfo::codec

§ duration

std::uint64_t gnash::media::VideoInfo::duration

§ extra

std::unique_ptr<ExtraInfo> gnash::media::VideoInfo::extra

§ frameRate

std::uint16_t gnash::media::VideoInfo::frameRate

§ height

std::uint16_t gnash::media::VideoInfo::height

§ type

codecType gnash::media::VideoInfo::type

§ width

std::uint16_t gnash::media::VideoInfo::width

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