MPEG SDK --> MpegDecoder
An extension to MpegHeaderInfo.
It includes all the information contained in MpegHeaderInfo, and has the additional information that needs to be obtained by more time consuming analysis of the stream.
An MpegInfo object can be obtained from the MpegDecoder object by calling the getMpegInfo() function.
MpegInfo
MpegInfo
MpegInfo
MpegInfo
getDropFlag
getNFrames
getStartFrame
getTotalTime
operator =
operator ==
setDropFlag
setNFrames
setStartFrame
setTotalTime
tostring
public MpegInfo ( ) ;
Default constructor.
public MpegInfo ( string pathname ) ;
Construct an MpegInfo object for the given MPEG file.
public MpegInfo ( 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 ,
float total_time ,
int start_frame ,
int nframes ,
bool drop_flag ) ;
Construct and set the fields.
public MpegInfo ( const MpegHeaderInfo & x ) ;
public void setTotalTime ( float total_time ) ;
Set the total duration time in seconds.
public float getTotalTime ( ) const ;
Get the total duration time in seconds.
public void setStartFrame ( int start_frame ) ;
Set the start frame for the video.
public int getStartFrame ( ) const ;
Get the start frame for the MPEG. This is calculated from the TimeCode of the first frame in the video.
public void setNFrames ( int nframes ) ;
Set the number of frames in the MPEG.
public int getNFrames ( ) const ;
Get the number of frames in the MPEG.
public void setDropFlag ( bool drop_flag ) ;
Set the drop frame flag.
public bool getDropFlag ( ) const ;
Get the drop frame flag.
public bool operator == ( const MpegInfo & info ) const ;
Whether the MpegInfo structure equals this one.
It tests for complete equality between all of its structures.
public MpegInfo & operator = ( const MpegInfo & info ) ;
public string tostring ( ) const ;
Click here to return to the top of the page.