VideoMetaData Class Reference

#include <metadata.h>

List of all members.


Detailed Description

Video meta data.

Definition at line 90 of file metadata.h.


Public Member Functions

 VideoMetaData ()
 Default constructor.
 VideoMetaData (std::istream &)
 Construct & load.
Setters
void setRunTime (uint32_t runtime)
void setFrameCount (uint32_t frames)
void setFrameRate (float framerate)
void setSubtitleCount (uint32_t count)
void setFrameSize (uint32_t width, uint32_t height)
void addVideoStream (const char *codec, uint32_t bitrate)
void addAudioStream (const char *codec, uint32_t bitrate)
Getters
uint32_t getRunTime () const
uint32_t getFrameCount () const
float getFrameRate () const
uint32_t getVideoStreamCount () const
uint32_t getAudioStreamCount () const
uint32_t getSubtitleCount () const
std::pair< uint32_t, uint32_t > getFrameSize () const
StreamData getVideoStream (uint32_t num) const
 Retrieve a specific stream.
StreamData getAudioStream (uint32_t num) const
 Retrieve a specific stream.

Private Types

typedef std::vector< StreamData
>::iterator 
SIter
typedef std::vector< StreamData
>::const_iterator 
CSIter

Private Member Functions

 ~VideoMetaData ()
 Allowed by MetaData.
 VideoMetaData (const VideoMetaData &)
 Forbidden.
VideoMetaDataoperator= (const VideoMetaData &)
 Forbidden.

Private Attributes

uint32_t m_runtime
 Length of movie.
uint32_t m_frames
 Total number of frames.
float m_framerate
 frames-per-second
std::pair< uint32_t, uint32_t > m_framesize
 Size of a frame.
std::vector< StreamDatam_vidData
 Video streams data.
std::vector< StreamDatam_audData
 Audio streams data.
uint32_t m_subtitles
 Number of subtitles.

Friends

class MetaData
std::ostream & operator<< (std::ostream &o, const VideoMetaData &vmd)
 Output operator for streams.
void test_videodata ()
 In testsuite.

Member Typedef Documentation

typedef std::vector<StreamData>::const_iterator VideoMetaData::CSIter [private]
 

Definition at line 150 of file metadata.h.

typedef std::vector<StreamData>::iterator VideoMetaData::SIter [private]
 

Definition at line 149 of file metadata.h.


Constructor & Destructor Documentation

VideoMetaData::VideoMetaData  ) 
 

Default constructor.

Definition at line 52 of file metadata.cpp.

VideoMetaData::VideoMetaData std::istream &   ) 
 

Construct & load.

Definition at line 58 of file metadata.cpp.

References logError(), logTrace(), logWarning(), m_audData, m_framerate, m_frames, m_framesize, m_runtime, m_subtitles, m_vidData, CGComm::OP_VMD_AUDSTREAM, CGComm::OP_VMD_FRAMERATE, CGComm::OP_VMD_FRAMES, CGComm::OP_VMD_FRAMESIZE, CGComm::OP_VMD_RUNTIME, CGComm::OP_VMD_SUBTITLES, CGComm::OP_VMD_VIDSTREAM, and TRACE_MD.

Here is the call graph for this function:

VideoMetaData::~VideoMetaData  )  [private]
 

Allowed by MetaData.

Definition at line 55 of file metadata.cpp.

VideoMetaData::VideoMetaData const VideoMetaData  )  [private]
 

Forbidden.


Member Function Documentation

void VideoMetaData::addAudioStream const char *  codec,
uint32_t  bitrate
[inline]
 

Definition at line 110 of file metadata.h.

void VideoMetaData::addVideoStream const char *  codec,
uint32_t  bitrate
[inline]
 

Definition at line 107 of file metadata.h.

StreamData VideoMetaData::getAudioStream uint32_t  num  )  const [inline]
 

Retrieve a specific stream.

Note: Stream counting starts from 0.

Definition at line 138 of file metadata.h.

uint32_t VideoMetaData::getAudioStreamCount  )  const [inline]
 

Definition at line 123 of file metadata.h.

uint32_t VideoMetaData::getFrameCount  )  const [inline]
 

Definition at line 120 of file metadata.h.

float VideoMetaData::getFrameRate  )  const [inline]
 

Definition at line 121 of file metadata.h.

std::pair<uint32_t, uint32_t> VideoMetaData::getFrameSize  )  const [inline]
 

Definition at line 125 of file metadata.h.

uint32_t VideoMetaData::getRunTime  )  const [inline]
 

Definition at line 119 of file metadata.h.

uint32_t VideoMetaData::getSubtitleCount  )  const [inline]
 

Definition at line 124 of file metadata.h.

StreamData VideoMetaData::getVideoStream uint32_t  num  )  const [inline]
 

Retrieve a specific stream.

Note: Stream counting starts from 0.

Definition at line 131 of file metadata.h.

uint32_t VideoMetaData::getVideoStreamCount  )  const [inline]
 

Definition at line 122 of file metadata.h.

VideoMetaData& VideoMetaData::operator= const VideoMetaData  )  [private]
 

Forbidden.

void VideoMetaData::setFrameCount uint32_t  frames  )  [inline]
 

Definition at line 100 of file metadata.h.

void VideoMetaData::setFrameRate float  framerate  )  [inline]
 

Definition at line 101 of file metadata.h.

void VideoMetaData::setFrameSize uint32_t  width,
uint32_t  height
[inline]
 

Definition at line 103 of file metadata.h.

void VideoMetaData::setRunTime uint32_t  runtime  )  [inline]
 

Definition at line 99 of file metadata.h.

void VideoMetaData::setSubtitleCount uint32_t  count  )  [inline]
 

Definition at line 102 of file metadata.h.


Friends And Related Function Documentation

friend class MetaData [friend]
 

Definition at line 144 of file metadata.h.

std::ostream& operator<< std::ostream &  o,
const VideoMetaData vmd
[friend]
 

Output operator for streams.

Definition at line 150 of file metadata.cpp.

void test_videodata  )  [friend]
 

In testsuite.


Member Data Documentation

std::vector<StreamData> VideoMetaData::m_audData [private]
 

Audio streams data.

Definition at line 157 of file metadata.h.

Referenced by VideoMetaData().

float VideoMetaData::m_framerate [private]
 

frames-per-second

Definition at line 154 of file metadata.h.

Referenced by VideoMetaData().

uint32_t VideoMetaData::m_frames [private]
 

Total number of frames.

Definition at line 153 of file metadata.h.

Referenced by VideoMetaData().

std::pair<uint32_t, uint32_t> VideoMetaData::m_framesize [private]
 

Size of a frame.

Definition at line 155 of file metadata.h.

Referenced by VideoMetaData().

uint32_t VideoMetaData::m_runtime [private]
 

Length of movie.

Definition at line 152 of file metadata.h.

Referenced by VideoMetaData().

uint32_t VideoMetaData::m_subtitles [private]
 

Number of subtitles.

Definition at line 158 of file metadata.h.

Referenced by VideoMetaData().

std::vector<StreamData> VideoMetaData::m_vidData [private]
 

Video streams data.

Definition at line 156 of file metadata.h.

Referenced by VideoMetaData().


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