Sets or gets audio or video formats of media objects
Methods
FormatAudioGet
Gets the current audio format.
Syntax
void FormatAudioGet( eMFormatType _eFormatType, out M_AUD_PROPS _pAudProps, out int _pnIndex, out string _pbsName )
Parameters
_eFormatType - type of the format
_pAudProps - properties of current audio format (bitrate, number of channels, value of samples per second and number of tracks)
_pnIndex - number of channel
_pbsName - full name of format (for example, "44100 Hz, 6 Ch, 16-bit")
FormatAudioGetByIndex
Gets the audio format by its index.
Syntax
void FormatAudioGetByIndex( eMFormatType _eFormatType, int _nIndex, out M_AUD_PROPS _pAudProps, out string _pbsName )
Parameters
_eFormatType - type of the format
_nIndex - index of the format
_pAudProps - properties of current audio format (bitrate, number of channels, value of samples per second and number of tracks)
_pbsName - full name of format (for example, "44100 Hz, 6 Ch, 16-bit")
FormatAudioGetCount
Gets the number of audio formats.
Syntax
void FormatAudioGetCount( eMFormatType _eFormatType, out int _pnCount )
Parameters
_eFormatType - type of the format
_pnCount - number of audio formats
FormatAudioSet
Sets the output audio format for object.
Syntax
void FormatAudioSet( eMFormatType _eFormatType, ref M_AUD_PROPS _pAudProps )
Parameters
_eFormatType - type of the format
_pAudProps - properties of current audio format (bitrate, number of channels, value of samples per second and number of tracks)
FormatVideoGet
Gets the current video format.
Syntax
void FormatVideoGet( eMFormatType _eFormatType, out M_VID_PROPS _pVidProps, out int _pnIndex, out string _pbsName )
Parameters
_eFormatType - type of the format
_pVidProps - properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
_pnIndex - number of the format
_pbsName - full name of format (for example, "3D-HSbS HD720-50p HDYC 1280x720 @ 50.00p 16:9")
FormatVideoGetByIndex
Gets the video format by its index.
Syntax
void FormatVideoGetByIndex( eMFormatType _eFormatType, int _nIndex, out M_VID_PROPS _pVidProps, out string _pbsName )
Parameters
_eFormatType - type of the format
_nIndex - index of the format
_pVidProps - properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)
_pbsName - full name of format (for example, "3D-HSbS HD720-50p HDYC 1280x720 @ 50.00p 16:9")
FormatVideoGetCount
Gets the count of video formats.
Syntax
void FormatVideoGetCount( eMFormatType _eFormatType, out int _pnCount )
Parameters
_eFormatType - type of the format
_pnCount - number of video formats
FormatVideoSet
Sets the output video format for object.
Syntax
void FormatVideoSet( eMFormatType _eFormatType, ref M_VID_PROPS _pVidProps )
Parameters
_eFormatType - type of the format
_pVidProps - properties of video format (bitrate, 3D format, type of interlacing, type of scaling, aspet ratio etc.)