jwamciavi.pas 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {******************************************************************************}
  2. { }
  3. { Multimedia Systems Media Control API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: MciAvi.h, released June 2000. The original Pascal }
  9. { code is: MciAvi.pas, released December 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. unit JwaMciAvi;
  43. {$WEAKPACKAGEUNIT}
  44. {$HPPEMIT ''}
  45. {$HPPEMIT '#include "MciAvi.h"'}
  46. {$HPPEMIT ''}
  47. {$I jediapilib.inc}
  48. interface
  49. (*
  50. ** These three flags apply to the 'play' command:
  51. ** play <alias> window Play in normal window
  52. ** play <alias> fullscreen Play in 320x240 full-screen mode
  53. ** play <alias> fullscreen by 2 Play fullscreen, zoomed by 2
  54. *)
  55. const
  56. MCI_MCIAVI_PLAY_WINDOW = $01000000;
  57. {$EXTERNALSYM MCI_MCIAVI_PLAY_WINDOW}
  58. MCI_MCIAVI_PLAY_FULLSCREEN = $02000000;
  59. {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLSCREEN}
  60. MCI_MCIAVI_PLAY_FULLBY2 = $04000000;
  61. {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLBY2}
  62. (*
  63. ** Debugging constants for AVI diagnostics
  64. *)
  65. (*
  66. ** Returns number of frames not drawn during last play. If this number
  67. ** is more than a small fraction of the number of frames that should have
  68. ** been displayed, things aren't looking good.
  69. *)
  70. MCI_AVI_STATUS_FRAMES_SKIPPED = $8001;
  71. {$EXTERNALSYM MCI_AVI_STATUS_FRAMES_SKIPPED}
  72. (*
  73. ** Returns a number representing how well the last AVI play worked.
  74. ** A result of 1000 indicates that the AVI sequence took the amount
  75. ** of time to play that it should have; a result of 2000, for instance,
  76. ** would indicate that a 5-second AVI sequence took 10 seconds to play,
  77. ** implying that the audio and video were badly broken up.
  78. *)
  79. MCI_AVI_STATUS_LAST_PLAY_SPEED = $8002;
  80. {$EXTERNALSYM MCI_AVI_STATUS_LAST_PLAY_SPEED}
  81. (*
  82. ** Returns the number of times that the audio definitely broke up.
  83. ** (We count one for every time we're about to write some audio data
  84. ** to the driver, and we notice that it's already played all of the
  85. ** data we have.
  86. *)
  87. MCI_AVI_STATUS_AUDIO_BREAKS = $8003;
  88. {$EXTERNALSYM MCI_AVI_STATUS_AUDIO_BREAKS}
  89. MCI_AVI_SETVIDEO_DRAW_PROCEDURE = $8000;
  90. {$EXTERNALSYM MCI_AVI_SETVIDEO_DRAW_PROCEDURE}
  91. MCI_AVI_SETVIDEO_PALETTE_COLOR = $8100;
  92. {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_COLOR}
  93. (*
  94. ** This constant specifies that the "halftone" palette should be
  95. ** used, rather than the default palette.
  96. *)
  97. MCI_AVI_SETVIDEO_PALETTE_HALFTONE = $0000FFFF;
  98. {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_HALFTONE}
  99. (*
  100. ** Custom error return values
  101. *)
  102. // TODO FROM MMSystem.h
  103. MCIERR_BASE = 256;
  104. MCIERR_CUSTOM_DRIVER_BASE = MCIERR_BASE + 256;
  105. MCIERR_AVI_OLDAVIFORMAT = MCIERR_CUSTOM_DRIVER_BASE + 100;
  106. {$EXTERNALSYM MCIERR_AVI_OLDAVIFORMAT}
  107. MCIERR_AVI_NOTINTERLEAVED = MCIERR_CUSTOM_DRIVER_BASE + 101;
  108. {$EXTERNALSYM MCIERR_AVI_NOTINTERLEAVED}
  109. MCIERR_AVI_NODISPDIB = MCIERR_CUSTOM_DRIVER_BASE + 102;
  110. {$EXTERNALSYM MCIERR_AVI_NODISPDIB}
  111. MCIERR_AVI_CANTPLAYFULLSCREEN = MCIERR_CUSTOM_DRIVER_BASE + 103;
  112. {$EXTERNALSYM MCIERR_AVI_CANTPLAYFULLSCREEN}
  113. MCIERR_AVI_TOOBIGFORVGA = MCIERR_CUSTOM_DRIVER_BASE + 104;
  114. {$EXTERNALSYM MCIERR_AVI_TOOBIGFORVGA}
  115. MCIERR_AVI_NOCOMPRESSOR = MCIERR_CUSTOM_DRIVER_BASE + 105;
  116. {$EXTERNALSYM MCIERR_AVI_NOCOMPRESSOR}
  117. MCIERR_AVI_DISPLAYERROR = MCIERR_CUSTOM_DRIVER_BASE + 106;
  118. {$EXTERNALSYM MCIERR_AVI_DISPLAYERROR}
  119. MCIERR_AVI_AUDIOERROR = MCIERR_CUSTOM_DRIVER_BASE + 107;
  120. {$EXTERNALSYM MCIERR_AVI_AUDIOERROR}
  121. MCIERR_AVI_BADPALETTE = MCIERR_CUSTOM_DRIVER_BASE + 108;
  122. {$EXTERNALSYM MCIERR_AVI_BADPALETTE}
  123. implementation
  124. end.