5253
|
1 // Basic types:
|
|
2
|
|
3 typedef char * Ptr;
|
|
4 typedef Ptr * Handle;
|
|
5 typedef long Size;
|
|
6 typedef unsigned char Boolean;
|
|
7 typedef unsigned char Str31[32];
|
|
8 typedef long Fixed;
|
|
9
|
|
10 typedef long OSErr;
|
|
11 typedef int OSType;
|
|
12
|
2501
|
13 typedef long ComponentResult;
|
5253
|
14 typedef unsigned char UInt8;
|
|
15 typedef signed char SInt8;
|
|
16 typedef unsigned short UInt16;
|
|
17 typedef signed short SInt16;
|
|
18 typedef unsigned long UInt32;
|
|
19 typedef signed long SInt32;
|
|
20
|
|
21 #define FOUR_CHAR_CODE(x) ((unsigned long)(x)) /* otherwise compiler will complain about values with high bit set */
|
2501
|
22
|
2797
|
23 // codec private shit:
|
|
24 typedef void *GlobalsPtr;
|
|
25 typedef void **Globals;
|
|
26
|
5253
|
27 //==================== COMPONENTS ===========================
|
2797
|
28
|
|
29 struct ComponentParameters {
|
|
30 UInt8 flags; /* call modifiers: sync/async, deferred, immed, etc */
|
|
31 UInt8 paramSize; /* size in bytes of actual parameters passed to this call */
|
|
32 short what; /* routine selector, negative for Component management calls */
|
|
33 long params[1]; /* actual parameters for the indicated routine */
|
|
34 };
|
|
35 typedef struct ComponentParameters ComponentParameters;
|
|
36
|
|
37
|
|
38 struct ComponentDescription {
|
|
39 OSType componentType; /* A unique 4-byte code indentifying the command set */
|
|
40 OSType componentSubType; /* Particular flavor of this instance */
|
|
41 OSType componentManufacturer; /* Vendor indentification */
|
|
42 unsigned long componentFlags; /* 8 each for Component,Type,SubType,Manuf/revision */
|
|
43 unsigned long componentFlagsMask; /* Mask for specifying which flags to consider in search, zero during registration */
|
|
44 };
|
|
45 typedef struct ComponentDescription ComponentDescription;
|
|
46
|
|
47
|
|
48 struct ResourceSpec {
|
|
49 OSType resType; /* 4-byte code */
|
|
50 short resID; /* */
|
|
51 };
|
|
52 typedef struct ResourceSpec ResourceSpec;
|
|
53
|
|
54
|
|
55 struct ComponentResource {
|
|
56 ComponentDescription cd; /* Registration parameters */
|
|
57 ResourceSpec component; /* resource where Component code is found */
|
|
58 ResourceSpec componentName; /* name string resource */
|
|
59 ResourceSpec componentInfo; /* info string resource */
|
|
60 ResourceSpec componentIcon; /* icon resource */
|
|
61 };
|
|
62 typedef struct ComponentResource ComponentResource;
|
|
63 typedef ComponentResource * ComponentResourcePtr;
|
|
64 typedef ComponentResourcePtr * ComponentResourceHandle;
|
|
65
|
|
66
|
|
67 struct ComponentRecord {
|
|
68 long data[1];
|
|
69 };
|
|
70 typedef struct ComponentRecord ComponentRecord;
|
|
71 typedef ComponentRecord * Component;
|
|
72
|
|
73
|
|
74 struct ComponentInstanceRecord {
|
|
75 long data[1];
|
|
76 };
|
|
77 typedef struct ComponentInstanceRecord ComponentInstanceRecord;
|
|
78
|
|
79 typedef ComponentInstanceRecord * ComponentInstance;
|
|
80
|
5253
|
81 // ========================= QUICKDRAW =========================
|
|
82
|
|
83 struct Rect {
|
|
84 short top;
|
|
85 short left;
|
|
86 short bottom;
|
|
87 short right;
|
|
88 };
|
|
89 typedef struct Rect Rect;
|
|
90 typedef Rect * RectPtr;
|
|
91
|
|
92 struct RGBColor {
|
|
93 unsigned short red; /*magnitude of red component*/
|
|
94 unsigned short green; /*magnitude of green component*/
|
|
95 unsigned short blue; /*magnitude of blue component*/
|
|
96 };
|
|
97 typedef struct RGBColor RGBColor;
|
|
98 typedef RGBColor * RGBColorPtr;
|
|
99 typedef RGBColorPtr * RGBColorHdl;
|
|
100
|
|
101 struct ColorSpec {
|
|
102 short value; /*index or other value*/
|
|
103 RGBColor rgb; /*true color*/
|
|
104 };
|
|
105 typedef struct ColorSpec ColorSpec;
|
|
106 typedef ColorSpec * ColorSpecPtr;
|
|
107 typedef ColorSpec CSpecArray[1];
|
|
108
|
|
109 struct ColorTable {
|
|
110 long ctSeed; /*unique identifier for table*/
|
|
111 short ctFlags; /*high bit: 0 = PixMap; 1 = device*/
|
|
112 short ctSize; /*number of entries in CTTable*/
|
|
113 CSpecArray ctTable; /*array [0..0] of ColorSpec*/
|
|
114 };
|
|
115 typedef struct ColorTable ColorTable;
|
|
116 typedef ColorTable * CTabPtr;
|
|
117 typedef CTabPtr * CTabHandle;
|
|
118
|
|
119 struct MatrixRecord {
|
|
120 Fixed matrix[3][3];
|
|
121 };
|
|
122 typedef struct MatrixRecord MatrixRecord;
|
|
123 typedef MatrixRecord * MatrixRecordPtr;
|
|
124
|
|
125 typedef long ImageSequence;
|
|
126 typedef OSType CodecType;
|
|
127 typedef unsigned short CodecFlags;
|
|
128 typedef unsigned long CodecQ;
|
|
129
|
|
130 struct ImageDescription {
|
|
131 long idSize; /* total size of ImageDescription including extra data ( CLUTs and other per sequence data ) */
|
|
132 CodecType cType; /* what kind of codec compressed this data */
|
|
133 long resvd1; /* reserved for Apple use */
|
|
134 short resvd2; /* reserved for Apple use */
|
|
135 short dataRefIndex; /* set to zero */
|
|
136 short version; /* which version is this data */
|
|
137 short revisionLevel; /* what version of that codec did this */
|
|
138 long vendor; /* whose codec compressed this data */
|
|
139 CodecQ temporalQuality; /* what was the temporal quality factor */
|
|
140 CodecQ spatialQuality; /* what was the spatial quality factor */
|
|
141 short width; /* how many pixels wide is this data */
|
|
142 short height; /* how many pixels high is this data */
|
|
143 Fixed hRes; /* horizontal resolution */
|
|
144 Fixed vRes; /* vertical resolution */
|
|
145 long dataSize; /* if known, the size of data for this image descriptor */
|
|
146 short frameCount; /* number of frames this description applies to */
|
|
147 Str31 name; /* name of codec ( in case not installed ) */
|
|
148 short depth; /* what depth is this data (1-32) or ( 33-40 grayscale ) */
|
|
149 short clutID; /* clut id or if 0 clut follows or -1 if no clut */
|
|
150 };
|
|
151 typedef struct ImageDescription ImageDescription;
|
|
152 typedef ImageDescription * ImageDescriptionPtr;
|
|
153 typedef ImageDescriptionPtr * ImageDescriptionHandle;
|
|
154
|
|
155 /* values for PixMap.pixelFormat*/
|
|
156 enum {
|
|
157 k16LE555PixelFormat = FOUR_CHAR_CODE('L555'), /* 16 bit LE rgb 555 (PC)*/
|
|
158 k16LE5551PixelFormat = FOUR_CHAR_CODE('5551'), /* 16 bit LE rgb 5551*/
|
|
159 k16BE565PixelFormat = FOUR_CHAR_CODE('B565'), /* 16 bit BE rgb 565*/
|
|
160 k16LE565PixelFormat = FOUR_CHAR_CODE('L565'), /* 16 bit LE rgb 565*/
|
|
161 k24BGRPixelFormat = FOUR_CHAR_CODE('24BG'), /* 24 bit bgr */
|
|
162 k32BGRAPixelFormat = FOUR_CHAR_CODE('BGRA'), /* 32 bit bgra (Matrox)*/
|
|
163 k32ABGRPixelFormat = FOUR_CHAR_CODE('ABGR'), /* 32 bit abgr */
|
|
164 k32RGBAPixelFormat = FOUR_CHAR_CODE('RGBA'), /* 32 bit rgba */
|
|
165 kYUVSPixelFormat = FOUR_CHAR_CODE('yuvs'), /* YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'*/
|
|
166 kYUVUPixelFormat = FOUR_CHAR_CODE('yuvu'), /* YUV 4:2:2 byte ordering 16-signed*/
|
|
167 kYVU9PixelFormat = FOUR_CHAR_CODE('YVU9'), /* YVU9 Planar 9*/
|
|
168 kYUV411PixelFormat = FOUR_CHAR_CODE('Y411'), /* YUV 4:1:1 Interleaved 16*/
|
|
169 kYVYU422PixelFormat = FOUR_CHAR_CODE('YVYU'), /* YVYU 4:2:2 byte ordering 16*/
|
|
170 kUYVY422PixelFormat = FOUR_CHAR_CODE('UYVY'), /* UYVY 4:2:2 byte ordering 16*/
|
|
171 kYUV211PixelFormat = FOUR_CHAR_CODE('Y211'), /* YUV 2:1:1 Packed 8*/
|
|
172 k2vuyPixelFormat = FOUR_CHAR_CODE('2vuy') /* UYVY 4:2:2 byte ordering 16*/
|
|
173 };
|
|
174
|
|
175 struct PixMapExtension {
|
|
176 long extSize; /*size of struct, duh!*/
|
|
177 unsigned long pmBits; /*pixmap attributes bitfield*/
|
|
178 void * pmGD; /*this is a GDHandle*/
|
|
179 long pmSeed;
|
|
180 Fixed gammaLevel; /*pixmap gammalevel*/
|
|
181 Fixed requestedGammaLevel;
|
|
182 unsigned long reserved2;
|
|
183 long longRowBytes; /*used when rowBytes > 16382*/
|
|
184 unsigned long signature;
|
|
185 Handle baseAddrHandle;
|
|
186 };
|
|
187 typedef struct PixMapExtension PixMapExtension;
|
|
188
|
|
189 typedef PixMapExtension * PixMapExtPtr;
|
|
190 typedef PixMapExtPtr * PixMapExtHandle;
|
|
191
|
|
192
|
|
193 struct PixMap {
|
|
194 Ptr baseAddr; /*pointer to pixels*/
|
|
195 short rowBytes; /*offset to next line*/
|
|
196 Rect bounds; /*encloses bitmap*/
|
|
197 short pmVersion; /*pixMap version number*/
|
|
198 short packType; /*defines packing format*/
|
|
199 long packSize; /*length of pixel data*/
|
|
200 Fixed hRes; /*horiz. resolution (ppi)*/
|
|
201 Fixed vRes; /*vert. resolution (ppi)*/
|
|
202 short pixelType; /*defines pixel type*/
|
|
203 short pixelSize; /*# bits in pixel*/
|
|
204 short cmpCount; /*# components in pixel*/
|
|
205 short cmpSize; /*# bits per component*/
|
|
206 OSType pixelFormat; /*fourCharCode representation*/
|
|
207 CTabHandle pmTable; /*color map for this pixMap*/
|
|
208 PixMapExtHandle pmExt; /*Handle to pixMap extension*/
|
|
209 };
|
|
210 typedef struct PixMap PixMap;
|
|
211 typedef PixMap * PixMapPtr;
|
|
212 typedef PixMapPtr * PixMapHandle;
|
|
213
|
|
214
|
|
215 struct BitMap {
|
|
216 Ptr baseAddr;
|
|
217 short rowBytes;
|
|
218 Rect bounds;
|
|
219 };
|
|
220 typedef struct BitMap BitMap;
|
|
221 typedef BitMap * BitMapPtr;
|
|
222 typedef BitMapPtr * BitMapHandle;
|
|
223
|
|
224 // ============================== CODECS ===========================
|
|
225
|
|
226 typedef Component CompressorComponent;
|
|
227 typedef Component DecompressorComponent;
|
|
228 typedef Component CodecComponent;
|
|
229
|
|
230 // callbacks:
|
|
231 typedef void* ImageCodecDrawBandCompleteUPP;
|
|
232 typedef void* ICMProgressProcRecord;
|
|
233 typedef void* ICMCompletionProcRecord;
|
|
234 typedef void* ICMDataProcRecord;
|
|
235 typedef void* ICMFrameTimePtr;
|
|
236 typedef void* CDSequenceDataSourcePtr;
|
|
237 typedef void* ICMFrameTimeInfoPtr;
|
|
238
|
|
239 // graphics port
|
|
240 typedef struct OpaqueGrafPtr* GrafPtr;
|
|
241 typedef GrafPtr CGrafPtr;
|
|
242
|
|
243 typedef struct OpaqueRgnHandle* RgnHandle;
|
|
244
|
|
245 struct CodecCapabilities {
|
|
246 long flags;
|
|
247 short wantedPixelSize;
|
|
248 short extendWidth;
|
|
249 short extendHeight;
|
|
250 short bandMin;
|
|
251 short bandInc;
|
|
252 short pad;
|
|
253 unsigned long time;
|
|
254 long flags2; /* field new in QuickTime 4.0 */
|
|
255 };
|
|
256 typedef struct CodecCapabilities CodecCapabilities;
|
|
257
|
|
258 struct __attribute__((__packed__)) CodecDecompressParams {
|
|
259 ImageSequence sequenceID; /* predecompress,banddecompress */
|
|
260 ImageDescriptionHandle imageDescription; /* predecompress,banddecompress */
|
|
261 Ptr data;
|
|
262 long bufferSize;
|
|
263
|
|
264 long frameNumber;
|
|
265 long startLine;
|
|
266 long stopLine;
|
|
267 long conditionFlags;
|
|
268
|
|
269 CodecFlags callerFlags;
|
|
270 // short
|
|
271 CodecCapabilities * capabilities; /* predecompress,banddecompress */
|
|
272 ICMProgressProcRecord progressProcRecord;
|
|
273 ICMCompletionProcRecord completionProcRecord;
|
|
274
|
|
275 ICMDataProcRecord dataProcRecord;
|
|
276 CGrafPtr port; /* predecompress,banddecompress */
|
|
277 PixMap dstPixMap; /* predecompress,banddecompress */
|
|
278 BitMapPtr maskBits;
|
|
279 PixMapPtr mattePixMap;
|
|
280 Rect srcRect; /* predecompress,banddecompress */
|
|
281 MatrixRecord * matrix; /* predecompress,banddecompress */
|
|
282 CodecQ accuracy; /* predecompress,banddecompress */
|
|
283 short transferMode; /* predecompress,banddecompress */
|
|
284 ICMFrameTimePtr frameTime; /* banddecompress */
|
|
285 long reserved[1];
|
|
286
|
|
287 /* The following fields only exist for QuickTime 2.0 and greater */
|
|
288 SInt8 matrixFlags; /* high bit set if 2x resize */
|
|
289 SInt8 matrixType;
|
|
290 Rect dstRect; /* only valid for simple transforms */
|
|
291
|
|
292 /* The following fields only exist for QuickTime 2.1 and greater */
|
|
293 UInt16 majorSourceChangeSeed;
|
|
294 UInt16 minorSourceChangeSeed;
|
|
295 CDSequenceDataSourcePtr sourceData;
|
|
296
|
|
297 RgnHandle maskRegion;
|
|
298
|
|
299 /* The following fields only exist for QuickTime 2.5 and greater */
|
|
300 OSType ** wantedDestinationPixelTypes; /* Handle to 0-terminated list of OSTypes */
|
|
301
|
|
302 long screenFloodMethod;
|
|
303 long screenFloodValue;
|
|
304 short preferredOffscreenPixelSize;
|
|
305
|
|
306 /* The following fields only exist for QuickTime 3.0 and greater */
|
|
307 ICMFrameTimeInfoPtr syncFrameTime; /* banddecompress */
|
|
308 Boolean needUpdateOnTimeChange; /* banddecompress */
|
|
309 Boolean enableBlackLining;
|
|
310 Boolean needUpdateOnSourceChange; /* band decompress */
|
|
311 Boolean pad;
|
|
312
|
|
313 long unused;
|
|
314
|
|
315 CGrafPtr finalDestinationPort;
|
|
316
|
|
317 long requestedBufferWidth; /* must set codecWantsSpecialScaling to indicate this field is valid*/
|
|
318 long requestedBufferHeight; /* must set codecWantsSpecialScaling to indicate this field is valid*/
|
|
319
|
|
320 /* The following fields only exist for QuickTime 4.0 and greater */
|
|
321 Rect displayableAreaOfRequestedBuffer; /* set in predecompress*/
|
|
322 Boolean requestedSingleField;
|
|
323 Boolean needUpdateOnNextIdle;
|
|
324 Boolean pad2[2];
|
|
325 Fixed bufferGammaLevel;
|
|
326
|
|
327 /* The following fields only exist for QuickTime 5.0 and greater */
|
|
328 UInt32 taskWeight; /* preferred weight for MP tasks implementing this operation*/
|
|
329 OSType taskName; /* preferred name (type) for MP tasks implementing this operation*/
|
|
330 };
|
|
331 typedef struct CodecDecompressParams CodecDecompressParams;
|
|
332
|
|
333
|
|
334
|
|
335 struct ImageSubCodecDecompressCapabilities {
|
|
336 long recordSize; /* sizeof(ImageSubCodecDecompressCapabilities)*/
|
|
337 long decompressRecordSize; /* size of your codec's decompress record*/
|
|
338 Boolean canAsync; /* default true*/
|
|
339 UInt8 pad0;
|
|
340
|
|
341 /* The following fields only exist for QuickTime 4.0 and greater */
|
|
342 UInt16 suggestedQueueSize;
|
|
343 Boolean canProvideTrigger;
|
|
344
|
|
345 /* The following fields only exist for QuickTime 5.0 and greater */
|
|
346 Boolean subCodecFlushesScreen; /* only used on Mac OS X*/
|
|
347 Boolean subCodecCallsDrawBandComplete;
|
|
348 UInt8 pad2[1];
|
|
349
|
|
350 /* The following fields only exist for QuickTime 5.1 and greater */
|
|
351 Boolean isChildCodec; /* set by base codec before calling Initialize*/
|
|
352 UInt8 pad3[3];
|
|
353 };
|
|
354 typedef struct ImageSubCodecDecompressCapabilities ImageSubCodecDecompressCapabilities;
|
|
355
|
|
356
|
|
357 struct ImageSubCodecDecompressRecord {
|
|
358 Ptr baseAddr;
|
|
359 long rowBytes;
|
|
360 Ptr codecData;
|
|
361 ICMProgressProcRecord progressProcRecord;
|
|
362 ICMDataProcRecord dataProcRecord;
|
|
363 void * userDecompressRecord; /* pointer to codec-specific per-band data*/
|
|
364 UInt8 frameType;
|
|
365 Boolean inhibitMP; /* set this in BeginBand to tell the base decompressor not to call DrawBand from an MP task for this frame. (Only has any effect for MP-capable subcodecs. New in QuickTime 5.0.)*/
|
|
366 UInt8 pad[2];
|
|
367 long priv[2];
|
|
368
|
|
369 /* The following fields only exist for QuickTime 5.0 and greater */
|
|
370 ImageCodecDrawBandCompleteUPP drawBandCompleteUPP; /* only used if subcodec set subCodecCallsDrawBandComplete; if drawBandCompleteUPP is non-nil, codec must call it when a frame is finished, but may return from DrawBand before the frame is finished. */
|
|
371 void * drawBandCompleteRefCon; /* Note: do not call drawBandCompleteUPP directly from a hardware interrupt; instead, use DTInstall to run a function at deferred task time, and call drawBandCompleteUPP from that. */
|
|
372 };
|
|
373 typedef struct ImageSubCodecDecompressRecord ImageSubCodecDecompressRecord;
|
|
374
|
|
375
|
|
376 /* These are the bits that are set in the Component flags, and also in the codecInfo struct. */
|
|
377 enum {
|
|
378 codecInfoDoes1 = (1L << 0), /* codec can work with 1-bit pixels */
|
|
379 codecInfoDoes2 = (1L << 1), /* codec can work with 2-bit pixels */
|
|
380 codecInfoDoes4 = (1L << 2), /* codec can work with 4-bit pixels */
|
|
381 codecInfoDoes8 = (1L << 3), /* codec can work with 8-bit pixels */
|
|
382 codecInfoDoes16 = (1L << 4), /* codec can work with 16-bit pixels */
|
|
383 codecInfoDoes32 = (1L << 5), /* codec can work with 32-bit pixels */
|
|
384 codecInfoDoesDither = (1L << 6), /* codec can do ditherMode */
|
|
385 codecInfoDoesStretch = (1L << 7), /* codec can stretch to arbitrary sizes */
|
|
386 codecInfoDoesShrink = (1L << 8), /* codec can shrink to arbitrary sizes */
|
|
387 codecInfoDoesMask = (1L << 9), /* codec can mask to clipping regions */
|
|
388 codecInfoDoesTemporal = (1L << 10), /* codec can handle temporal redundancy */
|
|
389 codecInfoDoesDouble = (1L << 11), /* codec can stretch to double size exactly */
|
|
390 codecInfoDoesQuad = (1L << 12), /* codec can stretch to quadruple size exactly */
|
|
391 codecInfoDoesHalf = (1L << 13), /* codec can shrink to half size */
|
|
392 codecInfoDoesQuarter = (1L << 14), /* codec can shrink to quarter size */
|
|
393 codecInfoDoesRotate = (1L << 15), /* codec can rotate on decompress */
|
|
394 codecInfoDoesHorizFlip = (1L << 16), /* codec can flip horizontally on decompress */
|
|
395 codecInfoDoesVertFlip = (1L << 17), /* codec can flip vertically on decompress */
|
|
396 codecInfoHasEffectParameterList = (1L << 18), /* codec implements get effects parameter list call, once was codecInfoDoesSkew */
|
|
397 codecInfoDoesBlend = (1L << 19), /* codec can blend on decompress */
|
|
398 codecInfoDoesWarp = (1L << 20), /* codec can warp arbitrarily on decompress */
|
|
399 codecInfoDoesRecompress = (1L << 21), /* codec can recompress image without accumulating errors */
|
|
400 codecInfoDoesSpool = (1L << 22), /* codec can spool image data */
|
|
401 codecInfoDoesRateConstrain = (1L << 23) /* codec can data rate constrain */
|
|
402 };
|
|
403
|
|
404
|
|
405 enum {
|
|
406 codecInfoDepth1 = (1L << 0), /* compressed data at 1 bpp depth available */
|
|
407 codecInfoDepth2 = (1L << 1), /* compressed data at 2 bpp depth available */
|
|
408 codecInfoDepth4 = (1L << 2), /* compressed data at 4 bpp depth available */
|
|
409 codecInfoDepth8 = (1L << 3), /* compressed data at 8 bpp depth available */
|
|
410 codecInfoDepth16 = (1L << 4), /* compressed data at 16 bpp depth available */
|
|
411 codecInfoDepth32 = (1L << 5), /* compressed data at 32 bpp depth available */
|
|
412 codecInfoDepth24 = (1L << 6), /* compressed data at 24 bpp depth available */
|
|
413 codecInfoDepth33 = (1L << 7), /* compressed data at 1 bpp monochrome depth available */
|
|
414 codecInfoDepth34 = (1L << 8), /* compressed data at 2 bpp grayscale depth available */
|
|
415 codecInfoDepth36 = (1L << 9), /* compressed data at 4 bpp grayscale depth available */
|
|
416 codecInfoDepth40 = (1L << 10), /* compressed data at 8 bpp grayscale depth available */
|
|
417 codecInfoStoresClut = (1L << 11), /* compressed data can have custom cluts */
|
|
418 codecInfoDoesLossless = (1L << 12), /* compressed data can be stored in lossless format */
|
|
419 codecInfoSequenceSensitive = (1L << 13) /* compressed data is sensitive to out of sequence decoding */
|
|
420 };
|
|
421
|
|
422 struct CodecInfo {
|
|
423 Str31 typeName; /* name of the codec type i.e.: 'Apple Image Compression' */
|
|
424 short version; /* version of the codec data that this codec knows about */
|
|
425 short revisionLevel; /* revision level of this codec i.e: 0x00010001 (1.0.1) */
|
|
426 long vendor; /* Maker of this codec i.e: 'appl' */
|
|
427 long decompressFlags; /* codecInfo flags for decompression capabilities */
|
|
428 long compressFlags; /* codecInfo flags for compression capabilities */
|
|
429 long formatFlags; /* codecInfo flags for compression format details */
|
|
430 UInt8 compressionAccuracy; /* measure (1-255) of accuracy of this codec for compress (0 if unknown) */
|
|
431 UInt8 decompressionAccuracy; /* measure (1-255) of accuracy of this codec for decompress (0 if unknown) */
|
|
432 unsigned short compressionSpeed; /* ( millisecs for compressing 320x240 on base mac II) (0 if unknown) */
|
|
433 unsigned short decompressionSpeed; /* ( millisecs for decompressing 320x240 on mac II)(0 if unknown) */
|
|
434 UInt8 compressionLevel; /* measure (1-255) of compression level of this codec (0 if unknown) */
|
|
435 UInt8 resvd; /* pad */
|
|
436 short minimumHeight; /* minimum height of image (block size) */
|
|
437 short minimumWidth; /* minimum width of image (block size) */
|
|
438 short decompressPipelineLatency; /* in milliseconds ( for asynchronous codecs ) */
|
|
439 short compressPipelineLatency; /* in milliseconds ( for asynchronous codecs ) */
|
|
440 long privateData;
|
|
441 };
|
|
442 typedef struct CodecInfo CodecInfo;
|
|
443
|
|
444
|