Static Public Member Functions

FBVideoCodecManager Class Reference

This reference page is linked to from the following overview topics: MotionBuilder 2014, Updated Objects.


Search for all occurrences

Detailed Description

Video Codec manager class.

Use to set or get codec used and codec params

Definition at line 67 of file fbvideocodecmanager.h.

#include <fbvideocodecmanager.h>

List of all members.

Static Public Member Functions

static void GetCodecIdList (const char *pFileFormatInfo, FBStringList &pCodecList)
 GetCodecIdList.
static FBVideoCodecMode GetVideoCodecMode ()
 GetVideoCodecMode.
static void SetVideoCodecMode (FBVideoCodecMode pVideoCodecMode)
 SetVideoCodecMode.
static void SetDefaultCodec (const char *pFileFormatInfo, const char *pCodecId)
 SetDefaultCodec.
static const char * GetDefaultCodec (const char *pFileFormatInfo)
 GetDefaultCodec.
static bool RegisterExternalVideoFormat (const char *pFormatSuffix)
 Register external video format suffix.

Member Function Documentation

static void GetCodecIdList ( const char *  pFileFormatInfo,
FBStringList pCodecList 
) [static]

GetCodecIdList.

Get all codec id available for a given file format.

Parameters:
pFileFormatInfo,:file format description string (AVI, MOV...)
pCodecListCodec list id
static FBVideoCodecMode GetVideoCodecMode ( ) [static]

GetVideoCodecMode.

Get the current codec mode. This decide how the system behaves when ask to render a file (codec dialog, uncompress, use default codec)

static void SetVideoCodecMode ( FBVideoCodecMode  pVideoCodecMode) [static]

SetVideoCodecMode.

Get the current codec mode.

Parameters:
pVideoCodecMode,:the codec mode to apply to the whole system
static void SetDefaultCodec ( const char *  pFileFormatInfo,
const char *  pCodecId 
) [static]

SetDefaultCodec.

Set the default codec id for a given file format. This is the codec that will be used if codec mode is FBVideoCodecUseDefault

Parameters:
pFileFormatInfo,:file format description string (AVI, MOV...)
pCodecId,:the codec id to set as default
static const char* GetDefaultCodec ( const char *  pFileFormatInfo) [static]

GetDefaultCodec.

Get the default codec id for a given file format. This is the codec that will be used if codec mode is FBVideoCodecUseDefault

Parameters:
pFileFormatInfo,:file format description string (AVI, MOV...)
static bool RegisterExternalVideoFormat ( const char *  pFormatSuffix) [static]

Register external video format suffix.

Only alphabetic and number is allowed in provided suffix, and can not be empty suffix or the system exist suffixes. This will allow this suffix to be appeared in the filters of file dialog when importing video, also allow to create a texture/video object with a path containing this suffix via SDK. However it will the custom SDK plug-in developer's responsibility to load the file into memory.

Remarks:
After register an external video format, and save a scene with this kind of video. when start MotionBuilder next time and before load the scene back,
It is necessary to call RegisterExternalVideoFormat to register this kind of video format again, otherwise this kind of video will not be loaded.
Parameters:
pFormatSuffixSuffix/File extension of external video file format
Returns:
true if register successful

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

FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager
FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager FBVideoCodecManager