00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef HXDXMEDIA_API
00014 # ifdef HXDXMEDIA_EXPORTS
00015 # define HXDXMEDIA_API __declspec(dllexport)
00016 # else
00017 # define HXDXMEDIA_API __declspec(dllimport)
00018 # endif
00019 #endif //#ifndef HXDXMEDIA_API
00020
00021
00022 extern "C" {
00023
00024
00025 HXDXMEDIA_API void* HxAVILoadVideo(const char *name);
00026 HXDXMEDIA_API int HxAVIGetLength(void* video);
00027 HXDXMEDIA_API int HxAVIGetFrameWidth(void* video);
00028 HXDXMEDIA_API int HxAVIGetFrameHeight(void* video);
00029 HXDXMEDIA_API unsigned char* HxAVIGetFrame(void* video, int n);
00030 HXDXMEDIA_API void HxAVICloseVideo(void* video);
00031
00032
00033 HXDXMEDIA_API void writePpm(const char *fn, const void *data, int mode, int sizex, int sizey);
00034 HXDXMEDIA_API void writeText(const void *data, int sizex, int sizey, const char *text);
00035 HXDXMEDIA_API void writeTextColor(const void *data, int sizex, int sizey, const char *text, int r, int g, int b);
00036 HXDXMEDIA_API void setBottom(const void *data, int sizex, int sizey, int y, int grayvalue);
00037 HXDXMEDIA_API int getBottom(const void *data, int sizex, int sizey, int starty, int stopy);
00038 HXDXMEDIA_API void setCode(const void *data, int sizex, int sizey, int code);
00039 HXDXMEDIA_API int getCode(const void *data, int sizex, int sizey);
00040
00041
00042 HXDXMEDIA_API void* HxAVIBeginWrite(const char *name, int w, int h);
00043 HXDXMEDIA_API void HxAVIPutFrame(void* video, unsigned char* data);
00044 HXDXMEDIA_API void HxAVIEndWrite(void* video);
00045
00046
00047 HXDXMEDIA_API void* HxOpenDisplay(int w, int h);
00048 HXDXMEDIA_API void HxShowDisplay(void *handle, void *data);
00049 HXDXMEDIA_API void HxCloseDisplay(void *handle);
00050 HXDXMEDIA_API bool MessagePumpQuitable(bool quit);
00051 HXDXMEDIA_API bool MessagePump();
00052 HXDXMEDIA_API void HxSetCaption(void *handle, const char *caption);
00053
00054 }
00055