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 43 // $Id: JwaMciAvi.pas,v 1.7 2007/09/05 11:58:51 dezipaitor Exp $ 44 {$IFNDEF JWA_OMIT_SECTIONS} 45 unit JwaMciAvi; 46 47 {$WEAKPACKAGEUNIT} 48 {$ENDIF JWA_OMIT_SECTIONS} 49 50 {$HPPEMIT ''} 51 {$HPPEMIT '#include "MciAvi.h"'} 52 {$HPPEMIT ''} 53 54 {$IFNDEF JWA_OMIT_SECTIONS} 55 {$I jediapilib.inc} 56 57 interface 58 {$ENDIF JWA_OMIT_SECTIONS} 59 60 {$IFNDEF JWA_IMPLEMENTATIONSECTION} 61 62 (* 63 ** These three flags apply to the 'play' command: 64 ** play <alias> window Play in normal window 65 ** play <alias> fullscreen Play in 320x240 full-screen mode 66 ** play <alias> fullscreen by 2 Play fullscreen, zoomed by 2 67 *) 68 69 const 70 MCI_MCIAVI_PLAY_WINDOW = $01000000; 71 {$EXTERNALSYM MCI_MCIAVI_PLAY_WINDOW} 72 MCI_MCIAVI_PLAY_FULLSCREEN = $02000000; 73 {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLSCREEN} 74 MCI_MCIAVI_PLAY_FULLBY2 = $04000000; 75 {$EXTERNALSYM MCI_MCIAVI_PLAY_FULLBY2} 76 77 (* 78 ** Debugging constants for AVI diagnostics 79 *) 80 81 (* 82 ** Returns number of frames not drawn during last play. If this number 83 ** is more than a small fraction of the number of frames that should have 84 ** been displayed, things aren't looking good. 85 *) 86 87 MCI_AVI_STATUS_FRAMES_SKIPPED = $8001; 88 {$EXTERNALSYM MCI_AVI_STATUS_FRAMES_SKIPPED} 89 90 (* 91 ** Returns a number representing how well the last AVI play worked. 92 ** A result of 1000 indicates that the AVI sequence took the amount 93 ** of time to play that it should have; a result of 2000, for instance, 94 ** would indicate that a 5-second AVI sequence took 10 seconds to play, 95 ** implying that the audio and video were badly broken up. 96 *) 97 98 MCI_AVI_STATUS_LAST_PLAY_SPEED = $8002; 99 {$EXTERNALSYM MCI_AVI_STATUS_LAST_PLAY_SPEED} 100 101 (* 102 ** Returns the number of times that the audio definitely broke up. 103 ** (We count one for every time we're about to write some audio data 104 ** to the driver, and we notice that it's already played all of the 105 ** data we have. 106 *) 107 108 MCI_AVI_STATUS_AUDIO_BREAKS = $8003; 109 {$EXTERNALSYM MCI_AVI_STATUS_AUDIO_BREAKS} 110 111 MCI_AVI_SETVIDEO_DRAW_PROCEDURE = $8000; 112 {$EXTERNALSYM MCI_AVI_SETVIDEO_DRAW_PROCEDURE} 113 114 MCI_AVI_SETVIDEO_PALETTE_COLOR = $8100; 115 {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_COLOR} 116 117 (* 118 ** This constant specifies that the "halftone" palette should be 119 ** used, rather than the default palette. 120 *) 121 122 MCI_AVI_SETVIDEO_PALETTE_HALFTONE = $0000FFFF; 123 {$EXTERNALSYM MCI_AVI_SETVIDEO_PALETTE_HALFTONE} 124 125 (* 126 ** Custom error return values 127 *) 128 129 // TODO FROM MMSystem.h 130 131 MCIERR_BASE = 256; 132 MCIERR_CUSTOM_DRIVER_BASE = MCIERR_BASE + 256; 133 134 MCIERR_AVI_OLDAVIFORMAT = MCIERR_CUSTOM_DRIVER_BASE + 100; 135 {$EXTERNALSYM MCIERR_AVI_OLDAVIFORMAT} 136 MCIERR_AVI_NOTINTERLEAVED = MCIERR_CUSTOM_DRIVER_BASE + 101; 137 {$EXTERNALSYM MCIERR_AVI_NOTINTERLEAVED} 138 MCIERR_AVI_NODISPDIB = MCIERR_CUSTOM_DRIVER_BASE + 102; 139 {$EXTERNALSYM MCIERR_AVI_NODISPDIB} 140 MCIERR_AVI_CANTPLAYFULLSCREEN = MCIERR_CUSTOM_DRIVER_BASE + 103; 141 {$EXTERNALSYM MCIERR_AVI_CANTPLAYFULLSCREEN} 142 MCIERR_AVI_TOOBIGFORVGA = MCIERR_CUSTOM_DRIVER_BASE + 104; 143 {$EXTERNALSYM MCIERR_AVI_TOOBIGFORVGA} 144 MCIERR_AVI_NOCOMPRESSOR = MCIERR_CUSTOM_DRIVER_BASE + 105; 145 {$EXTERNALSYM MCIERR_AVI_NOCOMPRESSOR} 146 MCIERR_AVI_DISPLAYERROR = MCIERR_CUSTOM_DRIVER_BASE + 106; 147 {$EXTERNALSYM MCIERR_AVI_DISPLAYERROR} 148 MCIERR_AVI_AUDIOERROR = MCIERR_CUSTOM_DRIVER_BASE + 107; 149 {$EXTERNALSYM MCIERR_AVI_AUDIOERROR} 150 MCIERR_AVI_BADPALETTE = MCIERR_CUSTOM_DRIVER_BASE + 108; 151 {$EXTERNALSYM MCIERR_AVI_BADPALETTE} 152 153 {$ENDIF JWA_IMPLEMENTATIONSECTION} 154 155 156 157 {$IFNDEF JWA_OMIT_SECTIONS} 158 implementation 159 //uses ... 160 {$ENDIF JWA_OMIT_SECTIONS} 161 162 163 164 {$IFNDEF JWA_INTERFACESECTION} 165 166 //your implementation here 167 {$ENDIF JWA_INTERFACESECTION} 168 169 170 171 {$IFNDEF JWA_OMIT_SECTIONS} 172 end. 173 {$ENDIF JWA_OMIT_SECTIONS} 174