Gnash
0.8.11dev
|
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< ExtraInfo > | extra |
Extra info about video stream, if when needed. More... | |
Information about a video stream.
The information stored is codec-id, width, height, framerate and duration.
Additionally, an abstract ExtraInfo can be hold.
|
inline |
Construct a VideoInfo object.
codeci | Video 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. |
widthi | Video frame width. |
heighti | Video frame height. |
frameRatei | Nominal video frame rate. |
durationi | Nominal video duration. |
typei | Changes interpretation of the codeci parameter. |
int gnash::media::VideoInfo::codec |
std::uint64_t gnash::media::VideoInfo::duration |
Referenced by gnash::media::operator<<().
std::unique_ptr<ExtraInfo> gnash::media::VideoInfo::extra |
Extra info about video stream, if when needed.
Could be ExtraAudioInfoFlv or a media-handler specific info
Referenced by gnash::media::gst::MediaHandlerGst::createVideoDecoder(), gnash::media::gst::MediaParserGst::rememberVideoFrame(), and gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg().
std::uint16_t gnash::media::VideoInfo::frameRate |
Referenced by gnash::media::operator<<().
std::uint16_t gnash::media::VideoInfo::height |
codecType gnash::media::VideoInfo::type |
std::uint16_t gnash::media::VideoInfo::width |