kfbxvideo.h
Go to the documentation of this file.00001
00004 #ifndef _FBXSDK_VIDEO_H_
00005 #define _FBXSDK_VIDEO_H_
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include <kaydaradef.h>
00043 #ifndef KFBX_DLL
00044 #define KFBX_DLL K_DLLIMPORT
00045 #endif
00046
00047 #include <kaydara.h>
00048
00049 #include <klib/kerror.h>
00050 #ifdef KARCH_DEV_MACOSX_CFM
00051 #include <CFURL.h>
00052 #include <Files.h>
00053 #endif
00054
00055 #include <kfbxplugins/kfbxtakenodecontainer.h>
00056 #include <kfbxmath/kfbxvector2.h>
00057 #include <kfbxplugins/kfbxgroupname.h>
00058
00059 #include <fbxfilesdk_nsbegin.h>
00060
00061 class KFbxVideo_internal;
00062
00063 class KFBX_DLL KFbxVideo : public KFbxTakeNodeContainer
00064 {
00065 KFBXOBJECT_DECLARE(KFbxVideo);
00066 public:
00068 void Reset();
00069
00074
00078 void ImageTextureSetMipMap(bool pUseMipMap);
00079
00083 bool ImageTextureGetMipMap();
00084
00089 bool SetFileName(char const* pName);
00090
00094 char* GetFileName ();
00095
00100 bool SetRelativeFileName(char const* pName);
00101
00105 char* GetRelativeFileName();
00106
00110 double GetFrameRate();
00111
00115 int GetLastFrame();
00116
00120 int GetWidth();
00121
00125 int GetHeight();
00126
00132 void SetStartFrame(int pStartFrame);
00133
00137 int GetStartFrame();
00138
00144 void SetStopFrame(int pStopFrame);
00145
00149 int GetStopFrame();
00150
00156 void SetPlaySpeed(double pPlaySpeed);
00157
00161 double GetPlaySpeed();
00162
00167 void SetOffset(KTime pTime);
00168
00169
00170
00171
00172 KTime GetOffset();
00173
00179 void SetFreeRunning(bool pState);
00180
00184 bool GetFreeRunning();
00185
00186
00192 void SetLoop(bool pLoop);
00193
00197 bool GetLoop();
00198
00199
00210 typedef enum
00211 {
00212 None,
00213 Fields,
00214 HalfEven,
00215 HalfOdd,
00216 FullEven,
00217 FullOdd,
00218 FullEvenOdd,
00219 FullOddEven
00220 } EInterlaceMode;
00221
00225 void SetInterlaceMode(EInterlaceMode pInterlaceMode);
00226
00230 EInterlaceMode GetInterlaceMode();
00231
00232
00238 typedef enum
00239 {
00240 Disk,
00241 Memory,
00242 DiskAsync
00243 } EAccessMode;
00244
00248 void SetAccessMode(EAccessMode pAccessMode);
00249
00253 EAccessMode GetAccessMode();
00254
00255
00256
00261
00265 KError& GetError();
00266
00271 typedef enum
00272 {
00273 eTAKE_NODE_ERROR,
00274 eERROR_COUNT
00275 } EError;
00276
00280 EError GetLastErrorID();
00281
00285 char* GetLastErrorString();
00286
00288
00289 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00290
00291 virtual KObject* GetFbxObject_internal();
00292 virtual KObject const* GetFbxObject_internal() const;
00293
00294
00295 virtual KFbxObject* Clone(KFbxObject::ECloneType pCloneType) const;
00296
00297 protected:
00298 static char const* GetNamePrefix() { return VIDEO_PREFIX; }
00299
00300 KFbxVideo(KFbxSdkManager& pManager, char const* pName);
00301 virtual ~KFbxVideo();
00302
00303 virtual void Destruct(bool pRecursive, bool pDependents);
00304 virtual bool FbxPlugNotify(KFbxPlugEvent const &pEvent);
00305
00306 virtual KFbxObject::ENameSpace GetNameSpace() const;
00307 virtual KString GetTypeName() const;
00308 virtual KStringList GetTypeFlags() const;
00309
00310 virtual void AddChannels(KFbxTakeNode *pTakeNode);
00311
00312 void SetOriginalFormat(bool pState);
00313 bool GetOriginalFormat();
00314 void SetOriginalFilename(char* pOriginalFilename);
00315 char* GetOriginalFilename();
00316
00317 void Init();
00318
00319 static KError smError;
00320
00321 KFbxVideo_internal *mPH;
00322
00323 friend class KFbxWriterFbx6;
00324 friend class KFbxReaderFbx;
00325 friend class KFbxReaderFbx6;
00326 friend class KFbxVideo_internal;
00327
00328 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00329 };
00330
00331 typedef KFbxVideo* HKFbxVideo;
00332
00333 #include <fbxfilesdk_nsend.h>
00334
00335 #endif // #ifndef _FBXSDK_VIDEO_H_
00336
00337