00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifdef HXDXMEDIA_EXPORTS
00011 #define HXDXMEDIA_API __declspec(dllexport)
00012 #else
00013 #define HXDXMEDIA_API __declspec(dllimport)
00014 #endif
00015
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00021
00022
00023 HXDXMEDIA_API void* HxDXLoadVideo(const char *name);
00024 HXDXMEDIA_API int HxDXGetLength(void* video);
00025 HXDXMEDIA_API int HxDXGetFrameWidth(void* video);
00026 HXDXMEDIA_API int HxDXGetFrameHeight(void* video);
00027 HXDXMEDIA_API unsigned char* HxDXGetFrame(void* video, int n);
00028 HXDXMEDIA_API void HxDXCloseVideo(void* video);
00029
00030
00031
00032 HXDXMEDIA_API char** HxDXListTVDevices();
00033 HXDXMEDIA_API void* HxDXInitTV(int nDevice);
00034 HXDXMEDIA_API int HxDXGetTVWidth(void* tv);
00035 HXDXMEDIA_API int HxDXGetTVHeight(void* tv);
00036 HXDXMEDIA_API unsigned char* HxDXGetNextFrame(void* tv);
00037 HXDXMEDIA_API void HxDXCloseTV(void* tv);
00038
00039
00040
00041 HXDXMEDIA_API void* HxDXBeginDisplay(int w, int h);
00042 HXDXMEDIA_API void* HxDXBeginWrite(const char *name, int w, int h);
00043 HXDXMEDIA_API void HxDXPutFrame(void* video, unsigned char* data);
00044 HXDXMEDIA_API void HxDXEndDisplay(void* video);
00045 HXDXMEDIA_API void HxDXEndWrite(void* video);
00046
00047
00048
00049 HXDXMEDIA_API void* HxDXOpenFullPlayer(const char *name);
00050 HXDXMEDIA_API void* HxDXOpenAudioPlayer(const char *name);
00051 HXDXMEDIA_API void HxDXRunPlayer(void* audio);
00052 HXDXMEDIA_API void HxDXSeekPlayer(void* audio, int frame);
00053 HXDXMEDIA_API void HxDXShowSegmentPlayer(void* audio, int startFrame,
00054 int stopFrame);
00055 HXDXMEDIA_API void HxDXStopPlayer(void* audio);
00056 HXDXMEDIA_API void HxDXClosePlayer(void* audio);
00057
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061