1 #ifndef __FBVIDEOGRABBER_H__
2 #define __FBVIDEOGRABBER_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
54 #include <fbsdk/fbcamera.h>
57 #ifdef FBSDKUseNamespace
58 namespace FBSDKNamespace {
213 FBImage*
RenderSnapshot(
int pWidth=-1,
int pHeight=-1,
bool pCameraLabel=
false,
bool pTimeCode=
false,
bool pSafeArea=
false,
bool pAxis=
false,
bool pGrid=
false,
bool pFrontPlate=
false,
bool pBackPlate=
false);
229 #ifdef FBSDKUseNamespace
MotionBuilder SDK base class.
FBVideoGrabStats GetStatistics()
GetStatistics.
bool BeginGrab()
BeginGrab.
const char * GetLastErrorMsg()
GetLastErrorMsg.
void SetRefreshViewFunc(void *pThis, void(*pCallbackFuncPtr)(void *))
SetRefreshViewFunc.
FBVideoGrabOptions GetOptions()
GetOptions give you a copy of current grabbing options.
FBImage * RenderSnapshot(int pWidth=-1, int pHeight=-1, bool pCameraLabel=false, bool pTimeCode=false, bool pSafeArea=false, bool pAxis=false, bool pGrid=false, bool pFrontPlate=false, bool pBackPlate=false)
Render a snapshot of the actual display.
void SetPostRenderFrameCallback(void *pThis, void(*pCallbackFuncPtr)(void *))
SetPostRenderFrameCallback.
FBVideoGrabber(HIObject pObject=NULL)
Constructor.
void SetOptions(FBVideoGrabOptions *pOptions)
SetOptions.
void ResetOptions()
SetDefaultOptions.
Audio formats definition.
#define __FBClassDeclare(Name, Parent)
For internal use only.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
Image interface for FBSDK.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBVideoRenderFieldMode
Enum FBVideoRenderFieldMode.
@ FBFieldModeHalfField0
Half Field 0.
@ FBFieldModeField1
Field 1.
@ FBFieldModeField0
Field 0.
@ FBFieldModeHalfField1
Half Field 1.
@ FBFieldModeNoField
No Field.
FBAudioOutputLocation
Type of locations where the audio is rendered when rendering a scene using a video format.
@ FBAudioOutputLocationEmbedded
The audio is embedded within the video output file.
@ FBAudioOutputLocationEmbeddedAndStandalone
The audio is embedded within the video output file and is also rendered in a standalone output file.
@ FBAudioOutputLocationStandalone
The audio is rendered in a standalone output file.
@ FBAudioOutputLocationCount
Count.
FBVideoRenderDepth
Enum FBVideoRenderDepth.
@ FBVideoRender24Bits
24 bits
@ FBVideoRender32Bits
32 bits
@ FBVideoRenderDepthCount
Depth Count.
FBVideoRenderViewingMode
Enum FBVideoRenderViewingMode.
@ FBViewingModeCount
Count.
@ FBViewingModeModelsOnly
Model Only.
@ FBViewingModeCurrent
Current.
@ FBViewingModeXRay
X-Ray.
@ FBViewingModeStandard
Standard.
Video Grabbing Options structure.
FBString mAudioCustomStandaloneFileName
Destination for the custom audio standalone file, if mAudioUseCustomStandaloneFileName is set to true...
FBVideoRenderViewingMode mViewingMode
Video grab viewing mode.
bool mShowCameraLabel
If true, display camera label information. NOTE: If you use your own FBView, set also this option in ...
bool mAudioUseCustomStandaloneFileName
If true and if the audio is rendered in a standalone output file, the audio file is generated at the ...
FBTime mTimeSteps
Time step length between each grab.
FBVideoRenderDepth mBitsPerPixel
Video grab color depth.
int mStillImageCompression
Compression ratio for image(jpg) 0-100 where 0=Greatest compression, 100=Least Compression....
bool mShowTimeCode
If true, display time code information. NOTE: If you use your own FBView, set also this option in FBV...
int mRendererCallbackPrefIndex
Specify custom renderer callback's preference index.
FBCameraResolutionMode mCameraResolution
Camera Resolution.
bool mAntiAliasing
If true, video frames will be anti-aliased.
FBString mOutputFileName
Grabbing destination file. When the image files are being rendered, the hash letters (###) specified ...
int mRendererCallbackIndex
Specify renderer callback index. Set to -1 to use MotionBuilder default renderer, or any valid non-ne...
FBStereoDisplayMode mStereoDisplayMode
Video grab stereo display mode. default (kFBStereoDisplayModeCount) to use current viewpane's setting...
FBTimeSpan mTimeSpan
Start and stop selection time to grab.
FBAudioFmt mAudioRenderFormat
Audio render format.
FBAudioOutputLocation mAudioOutputLocation
Audio output location when rendering using a video format (for still image formats & SWF (Flash) form...
FBVideoRenderFieldMode mFieldMode
Video grab field mode.
bool mRenderAudio
If true and there's audio in the scene, render the audio as well.
bool mShowSafeArea
If true, display safe area. NOTE: If you use your own FBView, set also this option in FBViewingOption...
Video Grabbing Statistics structure.
int mTotalFrameCount
Total frame count to grab.
FBTime mEstimatedTimeRemaining
Remaining estimated time to complete grab.
FBTime mTotalTimeElapsed
Current total time elapsed since grabbing has started.
FBTime mEstimatedTime
Estimated time to complete grab.
int mRemainingFrameCount
Remaining frame count to grab.
FBTime mTimePerFrame
Time it took to render and grab previous frame.