jwamciavi.pas 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. // $Id: JwaMciAvi.pas,v 1.6 2004/12/08 08:18:37 marquardt Exp $
  43. unit JwaMciAvi;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "MciAvi.h"'}
  47. {$HPPEMIT ''}
  48. {$I jediapilib.inc}
  49. interface
  50. (*
  51. ** These three flags apply to the 'play' command:
  52. ** play <alias> window Play in normal window
  53. ** play <alias> fullscreen Play in 320x240 full-screen mode
  54. ** play <alias> fullscreen by 2 Play fullscreen, zoomed by 2
  55. *)
  56. const
  57. MCI_MCIAVI_PLAY_WINDOW = $01000000;
  58. {$EXTERNALSYM MCI_MCIAVI_PLAY_WINDOW}
  59. MCI_MCIAVI_PLAY_FULLSCREEN = $02000000;
  60. {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLSCREEN}
  61. MCI_MCIAVI_PLAY_FULLBY2 = $04000000;
  62. {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLBY2}
  63. (*
  64. ** Debugging constants for AVI diagnostics
  65. *)
  66. (*
  67. ** Returns number of frames not drawn during last play. If this number
  68. ** is more than a small fraction of the number of frames that should have
  69. ** been displayed, things aren't looking good.
  70. *)
  71. MCI_AVI_STATUS_FRAMES_SKIPPED = $8001;
  72. {$EXTERNALSYM MCI_AVI_STATUS_FRAMES_SKIPPED}
  73. (*
  74. ** Returns a number representing how well the last AVI play worked.
  75. ** A result of 1000 indicates that the AVI sequence took the amount
  76. ** of time to play that it should have; a result of 2000, for instance,
  77. ** would indicate that a 5-second AVI sequence took 10 seconds to play,
  78. ** implying that the audio and video were badly broken up.
  79. *)
  80. MCI_AVI_STATUS_LAST_PLAY_SPEED = $8002;
  81. {$EXTERNALSYM MCI_AVI_STATUS_LAST_PLAY_SPEED}
  82. (*
  83. ** Returns the number of times that the audio definitely broke up.
  84. ** (We count one for every time we're about to write some audio data
  85. ** to the driver, and we notice that it's already played all of the
  86. ** data we have.
  87. *)
  88. MCI_AVI_STATUS_AUDIO_BREAKS = $8003;
  89. {$EXTERNALSYM MCI_AVI_STATUS_AUDIO_BREAKS}
  90. MCI_AVI_SETVIDEO_DRAW_PROCEDURE = $8000;
  91. {$EXTERNALSYM MCI_AVI_SETVIDEO_DRAW_PROCEDURE}
  92. MCI_AVI_SETVIDEO_PALETTE_COLOR = $8100;
  93. {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_COLOR}
  94. (*
  95. ** This constant specifies that the "halftone" palette should be
  96. ** used, rather than the default palette.
  97. *)
  98. MCI_AVI_SETVIDEO_PALETTE_HALFTONE = $0000FFFF;
  99. {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_HALFTONE}
  100. (*
  101. ** Custom error return values
  102. *)
  103. // TODO FROM MMSystem.h
  104. MCIERR_BASE = 256;
  105. MCIERR_CUSTOM_DRIVER_BASE = MCIERR_BASE + 256;
  106. MCIERR_AVI_OLDAVIFORMAT = MCIERR_CUSTOM_DRIVER_BASE + 100;
  107. {$EXTERNALSYM MCIERR_AVI_OLDAVIFORMAT}
  108. MCIERR_AVI_NOTINTERLEAVED = MCIERR_CUSTOM_DRIVER_BASE + 101;
  109. {$EXTERNALSYM MCIERR_AVI_NOTINTERLEAVED}
  110. MCIERR_AVI_NODISPDIB = MCIERR_CUSTOM_DRIVER_BASE + 102;
  111. {$EXTERNALSYM MCIERR_AVI_NODISPDIB}
  112. MCIERR_AVI_CANTPLAYFULLSCREEN = MCIERR_CUSTOM_DRIVER_BASE + 103;
  113. {$EXTERNALSYM MCIERR_AVI_CANTPLAYFULLSCREEN}
  114. MCIERR_AVI_TOOBIGFORVGA = MCIERR_CUSTOM_DRIVER_BASE + 104;
  115. {$EXTERNALSYM MCIERR_AVI_TOOBIGFORVGA}
  116. MCIERR_AVI_NOCOMPRESSOR = MCIERR_CUSTOM_DRIVER_BASE + 105;
  117. {$EXTERNALSYM MCIERR_AVI_NOCOMPRESSOR}
  118. MCIERR_AVI_DISPLAYERROR = MCIERR_CUSTOM_DRIVER_BASE + 106;
  119. {$EXTERNALSYM MCIERR_AVI_DISPLAYERROR}
  120. MCIERR_AVI_AUDIOERROR = MCIERR_CUSTOM_DRIVER_BASE + 107;
  121. {$EXTERNALSYM MCIERR_AVI_AUDIOERROR}
  122. MCIERR_AVI_BADPALETTE = MCIERR_CUSTOM_DRIVER_BASE + 108;
  123. {$EXTERNALSYM MCIERR_AVI_BADPALETTE}
  124. implementation
  125. end.