Go to the documentation of this file.00001
00002
00003
00004
00005
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
00038 #ifndef _CE_VIDEOCORE_H_
00039 #define _CE_VIDEOCORE_H_ 0x1
00041 #ifndef __cplusplus
00042 #error ceVideoCore.h requires C++ compilation (use a .cpp suffix)
00043 #endif
00044
00045 #if __GNUC__ >= 0x3
00046 #pragma GCC system_header
00047 #endif
00048
00049 #if _MSC_VER > 1000
00050 #pragma once
00051 #pragma warning(disable: 4100)
00052 #endif
00053
00054 #include "ceWindowInfo.h"
00055 #include "ceVideoInfo.h"
00056
00057
00058 #include "ceVideoVersion.h"
00059 #include "begin_code.h"
00060
00062 namespace ce {
00063
00064
00065
00069 class DECLSPEC IVideoManager
00070 {
00071 public:
00072
00073 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00074 virtual ~IVideoManager(void) { };
00075 #endif
00076
00077
00081 virtual void APICALL
00082 SetWindowInfo(const SWindowInfo &WindowInfo) = 0;
00083
00084
00085
00086
00087
00088
00089
00093 virtual SWindowInfo* APICALL
00094 GetWindowInfo(void) = 0;
00095
00096
00097
00103 virtual void APICALL
00104 RegisterVideoWindow(void *instance = NULL, void *handle = NULL) = 0;
00105
00110 virtual void APICALL
00111 RegisterVideoWindowFrom(const SWindowInfo &WindowInfo) = 0;
00112
00113
00114
00115
00116
00117
00118
00119
00122 virtual void APICALL
00123 UnregisterVideoWindow(void) = 0;
00124
00125
00126
00132 virtual short APICALL
00133 CreateVideoWindow(void) = 0;
00134
00141 virtual void APICALL
00142 DestroyVideoWindow(void) = 0;
00143
00214 virtual short APICALL
00215 ShowVideoWindow(const short show = CE_SHOWDEFAULT) = 0;
00216
00217
00218
00222 virtual short APICALL
00223 InitVideoWindow(void) = 0;
00224
00228 virtual int APICALL
00229 UpdateVideoWindow(void) = 0;
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00275 virtual unsigned int APICALL
00276 LoadVideoFile(char *file_name, const unsigned long flags = 0x0) = 0;
00277
00285 virtual short APICALL
00286 ReleaseVideo(const unsigned int videoID = 0x1) = 0;
00287
00289 virtual void APICALL
00290 ReleaseAllVideos(void) = 0;
00291
00299 virtual SVideoInfo APICALL
00300 GetVideoInfo(const unsigned int videoID = 0x1) = 0;
00301
00309 virtual SVideoInfo* APICALL
00310 GetAsyncVideoInfo(const unsigned int videoID = 0x1) = 0;
00311
00322 virtual short APICALL
00323 ShowVideo(const unsigned int videoID = 0x1,
00324 const int show = CE_VIDEO_SHOW) = 0;
00325
00332 virtual void APICALL
00333 PlayVideo(const unsigned int videoID = 0x1) = 0;
00334
00344 virtual void APICALL
00345 PlayVideoFrom(const unsigned int videoID = 0x1,
00346 unsigned long start = 0x0) = 0;
00347
00359 virtual void APICALL
00360 PlayVideoFromTo(const unsigned int videoID = 0x1,
00361 unsigned long start = 0x0, unsigned long end = 0x0) = 0;
00362
00374 virtual void APICALL
00375 PlayVideoTo(const unsigned int videoID = 0x1,
00376 unsigned long end = 0x0) = 0;
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00394 virtual void APICALL
00395 PauseVideo(const unsigned int videoID = 0x1,
00396 const short pause = TRUE) = 0;
00397
00406 virtual void APICALL
00407 ResumeVideo(const unsigned int videoID = 0x1) = 0;
00408
00415 virtual void APICALL
00416 StopVideo(const unsigned int videoID = 0x1) = 0;
00417
00426 virtual void APICALL
00427 SeekVideo(const unsigned int videoID = 0x1,
00428 const unsigned long position = 0x0) = 0;
00429
00436 virtual void APICALL
00437 SeekStartVideo(const unsigned int videoID = 0x1) = 0;
00438
00445 virtual void APICALL
00446 SeekEndVideo(const unsigned int videoID = 0x1) = 0;
00447
00457 virtual void APICALL
00458 SetVolumeVideo(const unsigned int videoID = 0x1,
00459 const unsigned int volume = 1000) = 0;
00460
00473 virtual void APICALL
00474 SetZoomVideo(const unsigned int videoID = 0x1,
00475 const unsigned int zoom = 100) = 0;
00476
00485 virtual void APICALL
00486 SetSpeedVideo(const unsigned int videoID = 0x1,
00487 const unsigned int speed = 1000) = 0;
00488
00497 virtual void APICALL
00498 SetRepeatVideo(const unsigned int videoID = 0x1,
00499 const short repeat = TRUE) = 0;
00500
00510 virtual unsigned int APICALL
00511 GetVolumeVideo(const unsigned int videoID = 0x1) = 0;
00512
00525 virtual unsigned int APICALL
00526 GetZoomVideo(const unsigned int videoID = 0x1) = 0;
00527
00537 virtual unsigned int APICALL
00538 GetSpeedVideo(const unsigned int videoID = 0x1) = 0;
00539
00548 virtual unsigned int APICALL
00549 GetRepeatVideo(const unsigned int videoID = 0x1) = 0;
00550
00560 virtual unsigned long APICALL
00561 GetPositionVideo(const unsigned int videoID = 0x1) = 0;
00562
00571 virtual unsigned long APICALL
00572 GetLengthVideo(const unsigned int videoID = 0x1) = 0;
00573
00585 virtual unsigned long APICALL
00586 GetStartVideo(const unsigned int videoID = 0x1) = 0;
00587
00595 virtual unsigned long APICALL
00596 GetEndVideo(const unsigned int videoID = 0x1) = 0;
00597
00598 };
00599
00600
00601
00602
00603
00608 extern DECLSPEC IVideoManager* APICALL
00609 CreateVideoManager(void);
00610
00614 extern DECLSPEC void APICALL
00615 DestroyVideoManager(IVideoManager **Instance = NULL);
00616
00617
00618
00619 }
00620
00621 #include "close_code.h"
00622
00623 #if _MSC_VER > 1000
00624 #pragma warning(default: 4100)
00625 #endif
00626
00627 #endif // _CE_VIDEOCORE_H_
00628