MPEG SDK --> MpegDecoder
An info class for storing header information about an MPEG file.
It contains the information that can be read from the MPEG system headers without much interogation of the stream. Therefore reading this information is much faster then reading the complete MpegInfo information.
An MpegHeaderInfo object can be obtained using the static MpegDecoder::getMpegHeaderInfo() function.
MpegHeaderInfo
MpegHeaderInfo
_aspect_ratio_info
_audio_bit_rate
_audio_format
_audio_mode
_audio_sampling_freq
_chroma_format
_file_size
_frame_rate
_height
_mux_rate
_num_audio_channels
_pathname
_system_format
_video_bit_rate
_video_format
_width
getAspectRatioInfo
getAudioBitRate
getAudioFormat
getAudioMode
getAudioSamplingFreq
getChromaFormat
getFilename
getFileSize
getFrameRate
getHeight
getMuxRate
getNumAudioChannels
getSystemFormat
getVideoBitRate
getVideoFormat
getWidth
operator =
operator ==
setAspectRatioInfo
setAudioBitRate
setAudioFormat
setAudioMode
setAudioSamplingFreq
setChromaFormat
setFilename
setFileSize
setFrameRate
setHeight
setMuxRate
setNumAudioChannels
setSystemFormat
setVideoBitRate
setVideoFormat
setWidth
tostring
public MpegHeaderInfo ( const string & pathname ) ;
Construct an MpegHeaderInfo object for the given mpeg file.
public MpegHeaderInfo ( const string & pathname ,
fpos_t file_size ,
SystemsFormat system_format ,
int mux_rate ,
VideoFormat video_format ,
int width ,
int height ,
float frame_rate ,
int video_bit_rate ,
ChromaFormat chroma_format ,
AudioFormat audio_format ,
int num_audio_channels ,
AudioMode audio_mode ,
int audio_bit_rate ,
int audio_sampling_freq ) ;
Construct an MpegHeaderInfo object for the given mpeg file.
protected string _pathname
protected fpos_t _file_size
protected SystemsFormat _system_format
protected int _mux_rate
protected VideoFormat _video_format
protected int _width
protected int _height
protected int _aspect_ratio_info
protected float _frame_rate
protected int _video_bit_rate
protected ChromaFormat _chroma_format
protected AudioFormat _audio_format
protected int _num_audio_channels
protected AudioMode _audio_mode
protected int _audio_bit_rate
protected int _audio_sampling_freq
public void setFilename ( const string & filename ) ;
Set the pathname of the MPEG file.
public const string & getFilename ( ) const ;
Get the complete pathname of the MPEG file.
public void setFileSize ( fpos_t file_size ) ;
Set the file size attribute.
public fpos_t getFileSize ( ) const ;
Get the size of the MPEG file.
public void setSystemFormat ( SystemsFormat system_format ) ;
Set the System format.
public SystemsFormat getSystemFormat ( ) const ;
Get the system format.
public void setMuxRate ( int mux_rate ) ;
Set the Multiplexed rate.
public int getMuxRate ( ) const ;
Get the Multiplexed rate.
public void setVideoFormat ( VideoFormat video_format ) ;
Set the video format.
public VideoFormat getVideoFormat ( ) const ;
Get the video format.
public void setWidth ( int width ) ;
Set the width of the video frames.
public int getWidth ( ) const ;
Get the width of the video frames.
public void setHeight ( int height ) ;
Set the Height of the video frames.
public int getHeight ( ) const ;
Get the Height of the video frames.
public void setFrameRate ( float frame_rate ) ;
Set the video frame rate.
public void setAspectRatioInfo ( int asp ) ;
Set aspect ratio info.
public int getAspectRatioInfo ( ) const ;
Get aspect ratio info.
public float getFrameRate ( ) const ;
Get the video frame rate.
public void setVideoBitRate ( int video_bit_rate ) ;
Set the video bit rate.
public int getVideoBitRate ( ) const ;
Get the video bit rate.
public void setChromaFormat ( ChromaFormat chroma_format ) ;
Set the chroma format.
public ChromaFormat getChromaFormat ( ) const ;
Get the chroma format.
public void setAudioFormat ( AudioFormat audio_format ) ;
Set the audio format.
public AudioFormat getAudioFormat ( ) const ;
Get the audio format.
public void setNumAudioChannels ( int nch ) ;
Set the number of audio channels.
public int getNumAudioChannels ( ) const ;
Get the number of audio channels.
public void setAudioMode ( AudioMode audio_mode ) ;
Set the audio mode.
public AudioMode getAudioMode ( ) const ;
Get the audio mode.
public void setAudioBitRate ( int br ) ;
Set the audio bit rate.
public int getAudioBitRate ( ) const ;
Get the audio bit rate.
public void setAudioSamplingFreq ( int sf ) ;
Set the audio sampling frequency.
public int getAudioSamplingFreq ( ) const ;
Get the audio sampling frequency.
public bool operator == ( const MpegHeaderInfo & info ) const ;
Whether the MpegHeaderInfo structure equals this one.
It tests for complete equality between all of its structures.
public MpegHeaderInfo & operator = ( const MpegHeaderInfo & x ) ;
Assignment operator
public string tostring ( ) const ;
Return a string representation of the information contained in the MpegHeaderInfo object.
Click here to return to the top of the page.