MOVIE.H 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef _MPGMOVIE_H_
  19. #define _MPGMOVIE_H_
  20. /****************************************************************************
  21. *
  22. * FILE
  23. * MpgMovie.h
  24. *
  25. * DESCRIPTION
  26. * Movie playback using DirectShow Multimedia streaming and DirectDraw
  27. *
  28. * PROGRAMMER
  29. * Denzil E. Long, Jr.
  30. *
  31. * DATE
  32. * May 27, 1998
  33. *
  34. ****************************************************************************/
  35. #include <windows.h>
  36. #include <ddraw.h>
  37. #ifdef MPGEXPORT
  38. #define DLLCALL __declspec(dllexport)
  39. #else
  40. #define DLLCALL __declspec(dllimport)
  41. #endif
  42. typedef enum
  43. {
  44. MPGCMD_ERROR = -1,
  45. MPGCMD_INIT = 0,
  46. MPGCMD_CLEANUP,
  47. MPGCMD_PALETTE,
  48. MPGCMD_UPDATE
  49. } MPG_CMD;
  50. typedef enum
  51. {
  52. MPGRES_QUIT = -1,
  53. MPGRES_CONTINUE = 0,
  54. MPGRES_LOSTFOCUS,
  55. } MPG_RESPONSE;
  56. typedef MPG_RESPONSE (far __stdcall *LPMPGCALLBACK)(MPG_CMD cmd, LPVOID data, LPVOID user);
  57. extern "C"
  58. {
  59. DLLCALL void __stdcall MpgPlay(const char* name, IDirectDraw* dd,
  60. IDirectDrawSurface* surface, RECT* dstRect);
  61. DLLCALL void __stdcall MpgPause(void);
  62. DLLCALL void __stdcall MpgResume(void);
  63. DLLCALL void __stdcall MpgSetCallback(LPMPGCALLBACK callback, LPVOID user);
  64. }
  65. #endif // _MPGMOVIE_H_