PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/univint/src/QuickTimeErrors.pas

https://github.com/slibre/freepascal
Pascal | 241 lines | 34 code | 26 blank | 181 comment | 0 complexity | 27fc01c1e5f821510af00b1b9498a3a8 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
  1{
  2     File:       QuickTime/QuickTimeErrors.h
  3 
  4     Contains:   QuickTime Error codes.
  5 
  6     Version:    QuickTime 7.7.1
  7 
  8     Copyright:  � 1999-2012 by Apple Inc., all rights reserved.
  9 
 10     Bugs?:      For bug reports, consult the following page on
 11                 the World Wide Web:
 12 
 13                     http://www.freepascal.org/bugs.html
 14 
 15}
 16{  Pascal Translation Updated:  Jonas Maebe, <jonas@freepascal.org>, October 2009 }
 17{  Pascal Translation Updated:  Jonas Maebe, <jonas@freepascal.org>, October 2012 }
 18{
 19    Modified for use with Free Pascal
 20    Version 308
 21    Please report any bugs to <gpc@microbizz.nl>
 22}
 23
 24{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
 25{$mode macpas}
 26{$packenum 1}
 27{$macro on}
 28{$inline on}
 29{$calling mwpascal}
 30
 31unit QuickTimeErrors;
 32interface
 33{$setc UNIVERSAL_INTERFACES_VERSION := $0400}
 34{$setc GAP_INTERFACES_VERSION := $0308}
 35
 36{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
 37    {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
 38{$endc}
 39
 40{$ifc defined CPUPOWERPC and defined CPUI386}
 41	{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
 42{$endc}
 43{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
 44	{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
 45{$endc}
 46
 47{$ifc not defined __ppc__ and defined CPUPOWERPC32}
 48	{$setc __ppc__ := 1}
 49{$elsec}
 50	{$setc __ppc__ := 0}
 51{$endc}
 52{$ifc not defined __ppc64__ and defined CPUPOWERPC64}
 53	{$setc __ppc64__ := 1}
 54{$elsec}
 55	{$setc __ppc64__ := 0}
 56{$endc}
 57{$ifc not defined __i386__ and defined CPUI386}
 58	{$setc __i386__ := 1}
 59{$elsec}
 60	{$setc __i386__ := 0}
 61{$endc}
 62{$ifc not defined __x86_64__ and defined CPUX86_64}
 63	{$setc __x86_64__ := 1}
 64{$elsec}
 65	{$setc __x86_64__ := 0}
 66{$endc}
 67{$ifc not defined __arm__ and defined CPUARM}
 68	{$setc __arm__ := 1}
 69{$elsec}
 70	{$setc __arm__ := 0}
 71{$endc}
 72
 73{$ifc defined cpu64}
 74  {$setc __LP64__ := 1}
 75{$elsec}
 76  {$setc __LP64__ := 0}
 77{$endc}
 78
 79
 80{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
 81	{$error Conflicting definitions for __ppc__ and __i386__}
 82{$endc}
 83
 84{$ifc defined __ppc__ and __ppc__}
 85	{$setc TARGET_CPU_PPC := TRUE}
 86	{$setc TARGET_CPU_PPC64 := FALSE}
 87	{$setc TARGET_CPU_X86 := FALSE}
 88	{$setc TARGET_CPU_X86_64 := FALSE}
 89	{$setc TARGET_CPU_ARM := FALSE}
 90	{$setc TARGET_OS_MAC := TRUE}
 91	{$setc TARGET_OS_IPHONE := FALSE}
 92	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
 93	{$setc TARGET_OS_EMBEDDED := FALSE}
 94{$elifc defined __ppc64__ and __ppc64__}
 95	{$setc TARGET_CPU_PPC := FALSE}
 96	{$setc TARGET_CPU_PPC64 := TRUE}
 97	{$setc TARGET_CPU_X86 := FALSE}
 98	{$setc TARGET_CPU_X86_64 := FALSE}
 99	{$setc TARGET_CPU_ARM := FALSE}
100	{$setc TARGET_OS_MAC := TRUE}
101	{$setc TARGET_OS_IPHONE := FALSE}
102	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
103	{$setc TARGET_OS_EMBEDDED := FALSE}
104{$elifc defined __i386__ and __i386__}
105	{$setc TARGET_CPU_PPC := FALSE}
106	{$setc TARGET_CPU_PPC64 := FALSE}
107	{$setc TARGET_CPU_X86 := TRUE}
108	{$setc TARGET_CPU_X86_64 := FALSE}
109	{$setc TARGET_CPU_ARM := FALSE}
110{$ifc defined(iphonesim)}
111 	{$setc TARGET_OS_MAC := FALSE}
112	{$setc TARGET_OS_IPHONE := TRUE}
113	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
114{$elsec}
115	{$setc TARGET_OS_MAC := TRUE}
116	{$setc TARGET_OS_IPHONE := FALSE}
117	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
118{$endc}
119	{$setc TARGET_OS_EMBEDDED := FALSE}
120{$elifc defined __x86_64__ and __x86_64__}
121	{$setc TARGET_CPU_PPC := FALSE}
122	{$setc TARGET_CPU_PPC64 := FALSE}
123	{$setc TARGET_CPU_X86 := FALSE}
124	{$setc TARGET_CPU_X86_64 := TRUE}
125	{$setc TARGET_CPU_ARM := FALSE}
126	{$setc TARGET_OS_MAC := TRUE}
127	{$setc TARGET_OS_IPHONE := FALSE}
128	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
129	{$setc TARGET_OS_EMBEDDED := FALSE}
130{$elifc defined __arm__ and __arm__}
131	{$setc TARGET_CPU_PPC := FALSE}
132	{$setc TARGET_CPU_PPC64 := FALSE}
133	{$setc TARGET_CPU_X86 := FALSE}
134	{$setc TARGET_CPU_X86_64 := FALSE}
135	{$setc TARGET_CPU_ARM := TRUE}
136	{ will require compiler define when/if other Apple devices with ARM cpus ship }
137	{$setc TARGET_OS_MAC := FALSE}
138	{$setc TARGET_OS_IPHONE := TRUE}
139	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
140	{$setc TARGET_OS_EMBEDDED := TRUE}
141{$elsec}
142	{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
143{$endc}
144
145{$ifc defined __LP64__ and __LP64__ }
146  {$setc TARGET_CPU_64 := TRUE}
147{$elsec}
148  {$setc TARGET_CPU_64 := FALSE}
149{$endc}
150
151{$ifc defined FPC_BIG_ENDIAN}
152	{$setc TARGET_RT_BIG_ENDIAN := TRUE}
153	{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
154{$elifc defined FPC_LITTLE_ENDIAN}
155	{$setc TARGET_RT_BIG_ENDIAN := FALSE}
156	{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
157{$elsec}
158	{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
159{$endc}
160{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
161{$setc CALL_NOT_IN_CARBON := FALSE}
162{$setc OLDROUTINENAMES := FALSE}
163{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
164{$setc OPAQUE_UPP_TYPES := TRUE}
165{$setc OTCARBONAPPLICATION := TRUE}
166{$setc OTKERNEL := FALSE}
167{$setc PM_USE_SESSION_APIS := TRUE}
168{$setc TARGET_API_MAC_CARBON := TRUE}
169{$setc TARGET_API_MAC_OS8 := FALSE}
170{$setc TARGET_API_MAC_OSX := TRUE}
171{$setc TARGET_CARBON := TRUE}
172{$setc TARGET_CPU_68K := FALSE}
173{$setc TARGET_CPU_MIPS := FALSE}
174{$setc TARGET_CPU_SPARC := FALSE}
175{$setc TARGET_OS_UNIX := FALSE}
176{$setc TARGET_OS_WIN32 := FALSE}
177{$setc TARGET_RT_MAC_68881 := FALSE}
178{$setc TARGET_RT_MAC_CFM := FALSE}
179{$setc TARGET_RT_MAC_MACHO := TRUE}
180{$setc TYPED_FUNCTION_POINTERS := TRUE}
181{$setc TYPE_BOOL := FALSE}
182{$setc TYPE_EXTENDED := FALSE}
183{$setc TYPE_LONGLONG := TRUE}
184uses MacTypes;
185{$endc} {not MACOSALLINCLUDE}
186
187
188{$ifc TARGET_OS_MAC}
189
190{$ALIGN POWER}
191
192
193{ QuickTime is not available to 64-bit clients }
194
195{$ifc not TARGET_CPU_64}
196
197const
198	kQTMediaDoesNotSupportDisplayOffsetsErr = -9460; { Returned by new (B-frame-aware) media APIs that attempt to set nonzero decode to display deltas on media that do not support them. }
199	kQTMediaHasDisplayOffsetsErr = -9461; { Returned by old (non-B-frame-aware) media APIs that cannot cope with nonzero decode to display deltas on media that contain them. }
200	kQTDisplayTimeAlreadyInUseErr = -9462; { Returned if an attempt to add a new media sample fails because there is already a sample with its display time. }
201	kQTDisplayTimeTooEarlyErr = -9463; { Returned if an attempt to add a new media sample fails because its display time }
202                                        { would be earlier than the display time of an existing sample that does not have the }
203                                        { mediaSampleEarlierDisplayTimesAllowed flag set. }
204	kQTTimeValueTooBigErr = -9464; { Returned by APIs that use 32-bit TimeValues if a timevalue could not be returned because it did not fit. }
205	kQTVisualContextRequiredErr = -9458; { Returned if a visual context is required }
206	kQTVisualContextNotAllowedErr = -9459; { Returned if a visual context cannot be used }
207	kQTPropertyBadValueSizeErr = -2184; { Returned if the size for the property value is incorrect }
208	kQTPropertyNotSupportedErr = -2195; { Returned if the property is not supported }
209	kQTPropertyAskLaterErr = -2200; { Returned if the property is not available now, but may be available later }
210	kQTPropertyReadOnlyErr = -2191; { Returned if the property cannot be set }
211	kQTPropertyArrayElementUnprocessedErr = -9465; { Used with property arrays, set on a property element prior to processing (example usage: NewMovieFromProperties) }
212	kQTCannotCoerceValueErr = -2192; { Returned if a value cannot be coerced to the request type }
213	kQTMessageNotHandledErr = -2194; { Returned if the message was not handled }
214	kQTMessageCommandNotSupportedErr = -2196; { Returned if the command message is not supported }
215	kQTMessageNoSuchParameterErr = -2197; { Returned if the requested parameter does not exist }
216	kQTObsoleteLPCMSoundFormatErr = -2171; { Returned if the LPCM sound format is incorrectly set to something other than 'lpcm' }
217	kQTIncompatibleDescriptionErr = -2166; { Returned if the operation cannot be performed on this SampleDescription }
218	kQTMetaDataInvalidMetaDataErr = -2173; { Returned if the metadata container is invalid }
219	kQTMetaDataInvalidItemErr = -2174; { Returned if the metadata item is invalid }
220	kQTMetaDataInvalidStorageFormatErr = -2175; { Returned if the storage format is invalid }
221	kQTMetaDataInvalidKeyFormatErr = -2176; { Returned if the key format is invalid }
222	kQTMetaDataNoMoreItemsErr = -2177; { Returned if there is no more metadata items }
223
224
225const
226	kICMCodecCantQueueOutOfOrderErr = -8995;
227
228const
229	vdImageDescStaleErr = -2210; { The ImageDescription previously returned from VDGetImageDescription is no longer valid }
230	vdHardwareGoneErr = -2211; { The hardware device providing video frames has been unplugged }
231	vdDontHaveThatUniqueIDErr = -2212; { The hardware device does not have the ID you are asking for }
232
233
234{$endc} {not TARGET_CPU_64}
235
236{$endc} {TARGET_OS_MAC}
237
238{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
239
240end.
241{$endc} {not MACOSALLINCLUDE}