# MediaWare Solutions MPEG SDK

    MPEG SDK --> MpegDecoder

class MpegInfo
extends MpegHeaderInfo as public

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.

Author:
  Kevin W. Moore

Source:
  MpegInfo.h:36

See Also:
  MpegHeaderInfo, MpegDecoder

##

MpegInfo
  [public] Default constructor.
MpegInfo
  [public] Construct an MpegInfo object for the given MPEG file.
MpegInfo
  [public] Construct and set the fields.
MpegInfo
  [public]

##

getDropFlag
  [public] Get the drop frame flag.
getNFrames
  [public] Get the number of frames in the MPEG.
getStartFrame
  [public] Get the start frame for the MPEG. This is calculated from the TimeCode of the first frame in the video.
getTotalTime
  [public] Get the total duration time in seconds.
operator =
  [public]
operator ==
  [public] Whether the MpegInfo structure equals this one.
setDropFlag
  [public] Set the drop frame flag.
setNFrames
  [public] Set the number of frames in the MPEG.
setStartFrame
  [public] Set the start frame for the video.
setTotalTime
  [public] Set the total duration time in seconds.
tostring
  [public]

##

MpegInfo

    public MpegInfo ( ) ;

Default constructor.

MpegInfo

    public MpegInfo ( string pathname ) ;

Construct an MpegInfo object for the given MPEG file.

MpegInfo

    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.

MpegInfo

    public MpegInfo ( const MpegHeaderInfo & x ) ;

##

setTotalTime

    public void setTotalTime ( float total_time ) ;

Set the total duration time in seconds.

getTotalTime

    public float getTotalTime ( ) const ;

Get the total duration time in seconds.

setStartFrame

    public void setStartFrame ( int start_frame ) ;

Set the start frame for the video.

getStartFrame

    public int getStartFrame ( ) const ;

Get the start frame for the MPEG. This is calculated from the TimeCode of the first frame in the video.

setNFrames

    public void setNFrames ( int nframes ) ;

Set the number of frames in the MPEG.

getNFrames

    public int getNFrames ( ) const ;

Get the number of frames in the MPEG.

setDropFlag

    public void setDropFlag ( bool drop_flag ) ;

Set the drop frame flag.

getDropFlag

    public bool getDropFlag ( ) const ;

Get the drop frame flag.

operator ==

    public bool operator == ( const MpegInfo & info ) const ;

Whether the MpegInfo structure equals this one.

It tests for complete equality between all of its structures.

operator =

    public MpegInfo & operator = ( const MpegInfo & info ) ;

tostring

    public string tostring ( ) const ;

Copyright © 2000 Mediaware Solutions Pty Ltd
All rights reserved

Click here to return to the top of the page.