Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

FbxVideo Class Reference

This reference page is linked to from the following overview topics: List of Python Fbx classes.


Search for all occurrences

Detailed Description

FBX SDK video class.

Definition at line 25 of file fbxvideo.h.

#include <fbxvideo.h>

Inheritance diagram for FbxVideo:
Inheritance graph
[legend]

List of all members.

Public Types

enum  EInterlaceMode {
  eNone, eFields, eHalfEven, eHalfOdd,
  eFullEven, eFullOdd, eFullEvenOdd, eFullOddEven
}
 

Video interlace modes.

More...
enum  EAccessMode { eDisk, eMemory, eDiskAsync }
 

Video clip access mode.

More...

Public Member Functions

double GetFrameRate () const
 Retrieve the Frame rate of the video clip.
int GetLastFrame () const
 Retrieve the last frame of the video clip.
int GetWidth () const
 Retrieve the clip width.
int GetHeight () const
 Retrieve the clip height.
void SetStartFrame (int pStartFrame)
 Set the start frame of the video clip.
int GetStartFrame () const
 Retrieve the start frame of the video clip.
void SetStopFrame (int pStopFrame)
 Set the stop frame of the video clip.
int GetStopFrame () const
 Retrieve the stop frame of the video clip.
void SetPlaySpeed (double pPlaySpeed)
 Set the play speed of the video clip.
double GetPlaySpeed () const
 Retrieve the play speed of the video clip.
void SetOffset (FbxTime pTime)
 Set the time offset.
FbxTime GetOffset () const
void SetFreeRunning (bool pState)
 Set the Free Running state of the video clip.
bool GetFreeRunning () const
 Retrieve the Free Running state.
void SetLoop (bool pLoop)
 Set the Loop state of the video clip.
bool GetLoop () const
 Retrieve the Loop state.
void SetInterlaceMode (EInterlaceMode pInterlaceMode)
 Set the Interlace mode.
EInterlaceMode GetInterlaceMode () const
 Retrieve the Interlace mode.
void SetAccessMode (EAccessMode pAccessMode)
 Set the clip Access Mode.
EAccessMode GetAccessMode () const
 Retrieve the clip Access Mode.
virtual FbxObjectCopy (const FbxObject &pObject)
 Copy an object content into this object.
virtual FbxStringList GetTypeFlags () const
void SetOriginalFormat (bool pState)
bool GetOriginalFormat () const
void SetOriginalFilename (const char *pOriginalFilename)
const char * GetOriginalFilename () const

Public Attributes

FbxPropertyT< FbxBoolImageSequence
FbxPropertyT< FbxIntImageSequenceOffset
FbxPropertyT< FbxDoubleFrameRate
FbxPropertyT< FbxIntLastFrame
FbxPropertyT< FbxIntWidth
FbxPropertyT< FbxIntHeight
FbxPropertyT< FbxStringPath
FbxPropertyT< FbxIntStartFrame
FbxPropertyT< FbxIntStopFrame
FbxPropertyT< FbxDoublePlaySpeed
FbxPropertyT< FbxTimeOffset
FbxPropertyT< EInterlaceModeInterlaceMode
FbxPropertyT< FbxBoolFreeRunning
FbxPropertyT< FbxBoolLoop
FbxPropertyT< EAccessModeAccessMode

Protected Member Functions

virtual void Construct (const FbxVideo *pFrom)
virtual void ConstructProperties (bool pForceSet)
 Optional property constructor override, automatically called by default constructor.
virtual bool ConnectNotify (FbxConnectEvent const &pEvent)
void Init ()

Protected Attributes

bool mUseMipMap
bool mOriginalFormat
FbxString mOriginalFilename
FbxString mRelativeFilename

Reset video

void Reset ()
 Reset the video to default values.

Video attributes Management

void ImageTextureSetMipMap (bool pUseMipMap)
 Set the use of MipMap on the video.
bool ImageTextureGetMipMap () const
 Retrieve use MipMap state.
bool SetFileName (char const *pName)
 Specify the Video full filename.
FbxString GetFileName () const
 Retrieve the Video full filename.
bool SetRelativeFileName (char const *pName)
 Specify the Video relative filename.
const char * GetRelativeFileName () const
 Retrieve the Video relative filename.

Image sequence attributes Management

Besides storing video clips, the FbxVideo object can also store image sequences.This section contains the manipulation methods used in this specialized mode. Note that, except for the GetFileName(), SetFileName(), GetRelativeFileName(), SetRelativeFileName() and the methods in this section, all the other ones are not mandatory therefore could contain uninitialized or default data values.
void SetImageSequence (bool pImageSequence)
 Specify if this video object is holding the starting point of an image sequence.
bool GetImageSequence () const
 Get the current state of the ImageSequence property.
void SetImageSequenceOffset (int pOffset)
 Specify the frame offset to be applied to the image sequence.
int GetImageSequenceOffset () const
 Get the current value of the ImageSequenceOffset property.

Member Enumeration Documentation

Video interlace modes.

Enumerator:
eNone 

Progressive frame (full frame).

eFields 

Alternate even/odd fields.

eHalfEven 

Half of a frame, even fields only.

eHalfOdd 

Half of a frame, odd fields only.

eFullEven 

Extract and use the even field of a full frame.

eFullOdd 

Extract and use the odd field of a full frame.

eFullEvenOdd 

Extract eFields and make full frame with each one beginning with Odd (60fps).

eFullOddEven 

Extract eFields and make full frame with each one beginning with Even (60fps).

Definition at line 203 of file fbxvideo.h.

Video clip access mode.

Enumerator:
eDisk 
eMemory 
eDiskAsync 

Definition at line 228 of file fbxvideo.h.


Member Function Documentation

void Reset ( )

Reset the video to default values.

void ImageTextureSetMipMap ( bool  pUseMipMap)

Set the use of MipMap on the video.

Parameters:
pUseMipMapIf true, use MipMap on the video.
bool ImageTextureGetMipMap ( ) const

Retrieve use MipMap state.

Returns:
MipMap flag state.
bool SetFileName ( char const *  pName)

Specify the Video full filename.

Parameters:
pNameVideo full filename.
Returns:
True,if update successfully, false otherwise.
Remarks:
Update the texture filename if the connection exists.
FbxString GetFileName ( ) const

Retrieve the Video full filename.

Returns:
Video full filename.
bool SetRelativeFileName ( char const *  pName)

Specify the Video relative filename.

Parameters:
pNameVideo relative filename.
Returns:
True, if update successfully, false otherwise.
Remarks:
Update the texture filename if the connection exists.
const char* GetRelativeFileName ( ) const

Retrieve the Video relative filename.

Returns:
Video relative filename.
void SetImageSequence ( bool  pImageSequence)

Specify if this video object is holding the starting point of an image sequence.

Parameters:
pImageSequenceIf true, this object is holding an image sequence.
Remarks:
When this object is used as image sequence, the FBX SDK will automatically exclude it from the embedding mechanism.
bool GetImageSequence ( ) const

Get the current state of the ImageSequence property.

Returns:
ImageSequence property value.
void SetImageSequenceOffset ( int  pOffset)

Specify the frame offset to be applied to the image sequence.

Parameters:
pOffsetThe frame offset value.
int GetImageSequenceOffset ( ) const

Get the current value of the ImageSequenceOffset property.

Returns:
ImageSequenceOffset property value.
double GetFrameRate ( ) const

Retrieve the Frame rate of the video clip.

Returns:
Frame rate.
int GetLastFrame ( ) const

Retrieve the last frame of the video clip.

Returns:
Last frame number.
int GetWidth ( ) const

Retrieve the clip width.

Returns:
Video image width.
int GetHeight ( ) const

Retrieve the clip height.

Returns:
Video image height.
void SetStartFrame ( int  pStartFrame)

Set the start frame of the video clip.

Parameters:
pStartFrameStart frame number.
Remarks:
The parameter value is not checked. It is the responsibility of the caller to deal with bad frame numbers.
int GetStartFrame ( ) const

Retrieve the start frame of the video clip.

Returns:
Start frame number.
void SetStopFrame ( int  pStopFrame)

Set the stop frame of the video clip.

Parameters:
pStopFrameStop frame number.
Remarks:
The parameter value is not checked. It is the responsibility of the caller to deal with bad frame numbers.
int GetStopFrame ( ) const

Retrieve the stop frame of the video clip.

Returns:
Stop frame number.
void SetPlaySpeed ( double  pPlaySpeed)

Set the play speed of the video clip.

Parameters:
pPlaySpeedPlayback speed of the clip.
Remarks:
The parameter value is not checked. It is the responsibility of the caller to deal with bad playback speed values.
double GetPlaySpeed ( ) const

Retrieve the play speed of the video clip.

Returns:
Playback speed.
void SetOffset ( FbxTime  pTime)

Set the time offset.

The offset can be used to shift the playback start time of the clip.

Parameters:
pTimeTime offset of the clip.
FbxTime GetOffset ( ) const
void SetFreeRunning ( bool  pState)

Set the Free Running state of the video clip.

The Free Running flag can be used by a client application to implement a playback scheme that is independent of the main timeline.

Parameters:
pStateState of the Free running flag.
bool GetFreeRunning ( ) const

Retrieve the Free Running state.

Returns:
Current free running flag.
void SetLoop ( bool  pLoop)

Set the Loop state of the video clip.

The Loop flag can be used by a client application to implement the loop playback of the video clip.

Parameters:
pLoopState of the loop flag.
bool GetLoop ( ) const

Retrieve the Loop state.

Returns:
Current loop flag.
void SetInterlaceMode ( EInterlaceMode  pInterlaceMode)

Set the Interlace mode.

Parameters:
pInterlaceModeInterlace mode identifier.
EInterlaceMode GetInterlaceMode ( ) const

Retrieve the Interlace mode.

Returns:
Interlace mode identifier.
void SetAccessMode ( EAccessMode  pAccessMode)

Set the clip Access Mode.

Parameters:
pAccessModeClip access mode identifier.
EAccessMode GetAccessMode ( ) const

Retrieve the clip Access Mode.

Returns:
Clip access mode identifier.
virtual void Construct ( const FbxVideo pFrom) [protected, virtual]
virtual void ConstructProperties ( bool  pForceSet) [protected, virtual]

Optional property constructor override, automatically called by default constructor.

Parameters:
pForceSetIf the property value must be set regardless of default value.
Remarks:
If your object have properties, they must be initialized in this function.

Reimplemented from FbxObject.

virtual bool ConnectNotify ( FbxConnectEvent const &  pEvent) [protected, virtual]
virtual FbxObject& Copy ( const FbxObject pObject) [virtual]

Copy an object content into this object.

Parameters:
pObjectThe source object to copy data from.
Returns:
Returns the destination object being modified by the source.
Remarks:
This function replace the assignment operator (operator=). It will copy all property values and the name. Connections are NOT copied.

Reimplemented from FbxObject.

virtual FbxStringList GetTypeFlags ( ) const [virtual]
void SetOriginalFormat ( bool  pState)
bool GetOriginalFormat ( ) const
void SetOriginalFilename ( const char *  pOriginalFilename)
const char* GetOriginalFilename ( ) const
void Init ( ) [protected]

Member Data Documentation

Definition at line 265 of file fbxvideo.h.

Definition at line 266 of file fbxvideo.h.

Definition at line 267 of file fbxvideo.h.

Definition at line 268 of file fbxvideo.h.

Definition at line 269 of file fbxvideo.h.

Definition at line 270 of file fbxvideo.h.

Definition at line 271 of file fbxvideo.h.

Definition at line 272 of file fbxvideo.h.

Definition at line 273 of file fbxvideo.h.

Definition at line 274 of file fbxvideo.h.

Definition at line 275 of file fbxvideo.h.

Definition at line 276 of file fbxvideo.h.

Definition at line 277 of file fbxvideo.h.

Definition at line 278 of file fbxvideo.h.

Definition at line 279 of file fbxvideo.h.

bool mUseMipMap [protected]

Definition at line 284 of file fbxvideo.h.

bool mOriginalFormat [protected]

Definition at line 285 of file fbxvideo.h.

Definition at line 286 of file fbxvideo.h.

Definition at line 287 of file fbxvideo.h.


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

FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo
FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo FbxVideo