Extern.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef __EXTERN_DEFINE__
  2. #define __EXTERN_DEFINE__
  3. /************************************************************************/
  4. UINT WM_FILE_END = WM_USER +33; // User message. Be posted when the file is end.
  5. UINT WM_ENC_CHANGE = WM_USER +100; // User message. Be posted when the image size is changed.
  6. UINT PLAY_TIMER = 1; // TIMER ID;
  7. UINT PORT = 0; // uesed port;can be from 0 to 15;
  8. /************************************************************************/
  9. /*************************************************************************/
  10. /* define para begin
  11. /*************************************************************************/
  12. //#define _FILE_POS // if defined we will use the file pos to decide the slider position
  13. //#define _WAVE_ADJ // if defined will addjust the wave value, else will set the voluem of the sound card;
  14. //#define _HIGH_FRUID // if defined will set high fruid by default in menu, else not set by default
  15. #define APP_VERSION 4.8 // player version
  16. #define WIDTH 352 // Initialize width;
  17. #define HEIGHT_PAL 288 // Initialize height;
  18. #define MAX_DISPLAY_DEVICE 4 // max support display device
  19. //Define the controls size and position
  20. #define PLAY_SLIDER_UP 10
  21. #define PLAY_SLIDER_HEIGHT 10
  22. #define BUTTON_UP 4
  23. #define BUTTON_SIZE 20
  24. #define STATE_UP 10
  25. #define STATE_HEIGHT 20
  26. #define PANNEL_HEIGHT (STATE_HEIGHT+STATE_UP+BUTTON_SIZE+BUTTON_UP+PLAY_SLIDER_HEIGHT+PLAY_SLIDER_UP)
  27. #define INTERVAL_SIZE 2
  28. #define INTERVAL 5
  29. #define LEFT_EDGE 5
  30. #define SOUND_SLIDER_HEIGHT 25
  31. #define SOUND_SLIDER_WIDTH 80
  32. #define PLAYER_SLIDER_MAX 200
  33. #define MOD16(x) ((x+15)&0xfffffff0) // aligned by 16 bytes
  34. /*************************************************************************/
  35. /* define para over
  36. /*************************************************************************/
  37. /*************************************************************************/
  38. /* callback function begin
  39. /*************************************************************************/
  40. //File locate reference call back function;
  41. void CALLBACK FileRefDone(DWORD nReserved,DWORD nUser);
  42. //capture call back function;
  43. void CALLBACK DisplayCBFun(long nPort,char * pBuf,long nSize,long nWidth,long nHeight,long nStamp,long nType,long nReceaved);
  44. //wave call back funtion
  45. void CALLBACK WaveCBFun(long nPort, char * pAudioBuf, long nSize, long nStamp, long nType, long nUser);
  46. //Decode call back funtion;
  47. void CALLBACK DecCBFun(long nPort,char * pBuf,long nSize,FRAME_INFO * pFrameInfo, long nUser,long nReserved2);
  48. void CALLBACK SourceBufFun(long nPort,DWORD nBufSize,DWORD dwUser,void*pContext);
  49. // From v3.6 verify water mask;
  50. //void CALLBACK VerifyFun(long nPort, FRAME_POS * pFilePos, DWORD bIsVideo, DWORD nUser);
  51. /*************************************************************************/
  52. /* callback function begin
  53. /*************************************************************************/
  54. // input stream thread
  55. DWORD WINAPI InputStreamThread( LPVOID lpParameter);
  56. #endif