home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / ImageCompression.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  32.8 KB  |  684 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ImageCompression.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __IMAGECOMPRESSION__
  18. #define __IMAGECOMPRESSION__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __QUICKDRAW__
  27. #include <Quickdraw.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30. /*    #include <QuickdrawText.h>                                    */
  31.  
  32. #ifndef __QDOFFSCREEN__
  33. #include <QDOffscreen.h>
  34. #endif
  35. /*    #include <Errors.h>                                            */
  36.  
  37. #ifndef __COMPONENTS__
  38. #include <Components.h>
  39. #endif
  40.  
  41. #ifndef __WINDOWS__
  42. #include <Windows.h>
  43. #endif
  44. /*    #include <Memory.h>                                            */
  45. /*    #include <Events.h>                                            */
  46. /*        #include <OSUtils.h>                                    */
  47. /*    #include <Controls.h>                                        */
  48. /*        #include <Menus.h>                                        */
  49.  
  50. #ifndef __STANDARDFILE__
  51. #include <StandardFile.h>
  52. #endif
  53. /*    #include <Dialogs.h>                                        */
  54. /*        #include <TextEdit.h>                                    */
  55. /*    #include <Files.h>                                            */
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. #if GENERATINGPOWERPC
  62. #pragma options align=mac68k
  63. #endif
  64.  
  65. #ifdef __CFM68K__
  66. #pragma lib_export on
  67. #endif
  68.  
  69. struct MatrixRecord {
  70.     Fixed                            matrix[3][3];
  71. };
  72. typedef struct MatrixRecord MatrixRecord, *MatrixRecordPtr;
  73.  
  74. struct FixedPoint {
  75.     Fixed                            x;
  76.     Fixed                            y;
  77. };
  78. typedef struct FixedPoint FixedPoint;
  79.  
  80. struct FixedRect {
  81.     Fixed                            left;
  82.     Fixed                            top;
  83.     Fixed                            right;
  84.     Fixed                            bottom;
  85. };
  86. typedef struct FixedRect FixedRect;
  87.  
  88. /* These are the bits that are set in the Component flags, and also in the codecInfo struct. */
  89.  
  90. enum {
  91.     codecInfoDoes1                = (1L << 0),
  92.     codecInfoDoes2                = (1L << 1),
  93.     codecInfoDoes4                = (1L << 2),
  94.     codecInfoDoes8                = (1L << 3),
  95.     codecInfoDoes16                = (1L << 4),
  96.     codecInfoDoes32                = (1L << 5),
  97.     codecInfoDoesDither            = (1L << 6),
  98.     codecInfoDoesStretch        = (1L << 7),
  99.     codecInfoDoesShrink            = (1L << 8),
  100.     codecInfoDoesMask            = (1L << 9),
  101.     codecInfoDoesTemporal        = (1L << 10),
  102.     codecInfoDoesDouble            = (1L << 11),
  103.     codecInfoDoesQuad            = (1L << 12),
  104.     codecInfoDoesHalf            = (1L << 13),
  105.     codecInfoDoesQuarter        = (1L << 14),
  106.     codecInfoDoesRotate            = (1L << 15),
  107.     codecInfoDoesHorizFlip        = (1L << 16),
  108.     codecInfoDoesVertFlip        = (1L << 17),
  109.     codecInfoDoesSkew            = (1L << 18),
  110.     codecInfoDoesBlend            = (1L << 19),
  111.     codecInfoDoesWarp            = (1L << 20),
  112.     codecInfoDoesRecompress        = (1L << 21),
  113.     codecInfoDoesSpool            = (1L << 22),
  114.     codecInfoDoesRateConstrain    = (1L << 23)
  115. };
  116.  
  117. enum {
  118.     codecInfoDepth1                = (1L << 0),
  119.     codecInfoDepth2                = (1L << 1),
  120.     codecInfoDepth4                = (1L << 2),
  121.     codecInfoDepth8                = (1L << 3),
  122.     codecInfoDepth16            = (1L << 4),
  123.     codecInfoDepth32            = (1L << 5),
  124.     codecInfoDepth24            = (1L << 6),
  125.     codecInfoDepth33            = (1L << 7),
  126.     codecInfoDepth34            = (1L << 8),
  127.     codecInfoDepth36            = (1L << 9),
  128.     codecInfoDepth40            = (1L << 10),
  129.     codecInfoStoresClut            = (1L << 11),
  130.     codecInfoDoesLossless        = (1L << 12),
  131.     codecInfoSequenceSensitive    = (1L << 13)
  132. };
  133.  
  134. enum {
  135.     codecFlagUseImageBuffer        = (1L << 0),
  136.     codecFlagUseScreenBuffer    = (1L << 1),
  137.     codecFlagUpdatePrevious        = (1L << 2),
  138.     codecFlagNoScreenUpdate        = (1L << 3),
  139.     codecFlagWasCompressed        = (1L << 4),
  140.     codecFlagDontOffscreen        = (1L << 5),
  141.     codecFlagUpdatePreviousComp    = (1L << 6),
  142.     codecFlagForceKeyFrame        = (1L << 7),
  143.     codecFlagOnlyScreenUpdate    = (1L << 8),
  144.     codecFlagLiveGrab            = (1L << 9),
  145.     codecFlagDontUseNewImageBuffer = (1L << 10),
  146.     codecFlagInterlaceUpdate    = (1L << 11),
  147.     codecFlagCatchUpDiff        = (1L << 12),
  148.     codecFlagUsedNewImageBuffer    = (1L << 14),
  149.     codecFlagUsedImageBuffer    = (1L << 15)
  150. };
  151.  
  152. enum {
  153. /* The minimum data size for spooling in or out data */
  154.     codecMinimumDataSize        = 32768
  155. };
  156.  
  157. enum {
  158.     compressorComponentType        = 'imco',                        /* the type for "Components" which compress images */
  159.     decompressorComponentType    = 'imdc'
  160. };
  161.  
  162. typedef Component CompressorComponent;
  163.  
  164. typedef Component DecompressorComponent;
  165.  
  166. typedef Component CodecComponent;
  167.  
  168. #define anyCodec ((CodecComponent)0)
  169. #define bestSpeedCodec ((CodecComponent)-1)
  170. #define bestFidelityCodec ((CodecComponent)-2)
  171. #define bestCompressionCodec ((CodecComponent)-3)
  172. typedef long CodecType;
  173.  
  174. typedef unsigned short CodecFlags;
  175.  
  176. typedef unsigned long CodecQ;
  177.  
  178.  
  179. enum {
  180.     codecLosslessQuality        = 0x400L,
  181.     codecMaxQuality                = 0x3ffL,
  182.     codecMinQuality                = 0x000L,
  183.     codecLowQuality                = 0x100L,
  184.     codecNormalQuality            = 0x200L,
  185.     codecHighQuality            = 0x300L
  186. };
  187.  
  188. enum {
  189.     codecCompletionSource        = (1 << 0),                        /* asynchronous codec is done with source data */
  190.     codecCompletionDest            = (1 << 1)                        /* asynchronous codec is done with destination data */
  191. };
  192.  
  193. enum {
  194.     codecProgressOpen            = 0,
  195.     codecProgressUpdatePercent    = 1,
  196.     codecProgressClose            = 2
  197. };
  198.  
  199. typedef pascal OSErr (*ICMDataProcPtr)(Ptr *dataP, long bytesNeeded, long refcon);
  200. typedef pascal OSErr (*ICMFlushProcPtr)(Ptr data, long bytesAdded, long refcon);
  201. typedef pascal void (*ICMCompletionProcPtr)(OSErr result, short flags, long refcon);
  202. typedef pascal OSErr (*ICMProgressProcPtr)(short message, Fixed completeness, long refcon);
  203. typedef pascal void (*StdPixProcPtr)(PixMap *src, Rect *srcRect, MatrixRecord *matrix, short mode, RgnHandle mask, PixMap *matte, Rect *matteRect, short flags);
  204. typedef pascal void (*ICMAlignmentProcPtr)(Rect *rp, long refcon);
  205.  
  206. #if GENERATINGCFM
  207. typedef UniversalProcPtr ICMDataUPP;
  208. typedef UniversalProcPtr ICMFlushUPP;
  209. typedef UniversalProcPtr ICMCompletionUPP;
  210. typedef UniversalProcPtr ICMProgressUPP;
  211. typedef UniversalProcPtr StdPixUPP;
  212. typedef UniversalProcPtr ICMAlignmentUPP;
  213. #else
  214. typedef ICMDataProcPtr ICMDataUPP;
  215. typedef ICMFlushProcPtr ICMFlushUPP;
  216. typedef ICMCompletionProcPtr ICMCompletionUPP;
  217. typedef ICMProgressProcPtr ICMProgressUPP;
  218. typedef StdPixProcPtr StdPixUPP;
  219. typedef ICMAlignmentProcPtr ICMAlignmentUPP;
  220. #endif
  221.  
  222. typedef long ImageSequence;
  223.  
  224. struct ICMProgressProcRecord {
  225.     ICMProgressUPP                    progressProc;
  226.     long                            progressRefCon;
  227. };
  228. typedef struct ICMProgressProcRecord ICMProgressProcRecord, *ICMProgressProcRecordPtr;
  229.  
  230. struct ICMCompletionProcRecord {
  231.     ICMCompletionUPP                completionProc;
  232.     long                            completionRefCon;
  233. };
  234. typedef struct ICMCompletionProcRecord ICMCompletionProcRecord, *ICMCompletionProcRecordPtr;
  235.  
  236. struct ICMDataProcRecord {
  237.     ICMDataUPP                        dataProc;
  238.     long                            dataRefCon;
  239. };
  240. typedef struct ICMDataProcRecord ICMDataProcRecord, *ICMDataProcRecordPtr;
  241.  
  242. struct ICMFlushProcRecord {
  243.     ICMFlushUPP                        flushProc;
  244.     long                            flushRefCon;
  245. };
  246. typedef struct ICMFlushProcRecord ICMFlushProcRecord, *ICMFlushProcRecordPtr;
  247.  
  248. struct ICMAlignmentProcRecord {
  249.     ICMAlignmentUPP                    alignmentProc;
  250.     long                            alignmentRefCon;
  251. };
  252. typedef struct ICMAlignmentProcRecord ICMAlignmentProcRecord, *ICMAlignmentProcRecordPtr;
  253.  
  254. struct DataRateParams {
  255.     long                            dataRate;
  256.     long                            dataOverrun;
  257.     long                            frameDuration;
  258.     long                            keyFrameRate;
  259.     CodecQ                            minSpatialQuality;
  260.     CodecQ                            minTemporalQuality;
  261. };
  262. typedef struct DataRateParams DataRateParams, *DataRateParamsPtr;
  263.  
  264. struct ImageDescription {
  265.     long                            idSize;                        /* total size of ImageDescription including extra data ( CLUTs and other per sequence data */
  266.     CodecType                        cType;                        /* what kind of codec compressed this data */
  267.     long                            resvd1;                        /* reserved for Apple use */
  268.     short                            resvd2;                        /* reserved for Apple use */
  269.     short                            dataRefIndex;                /* set to zero  */
  270.     short                            version;                    /* which version is this data */
  271.     short                            revisionLevel;                /* what version of that codec did this */
  272.     long                            vendor;                        /* whose  codec compressed this data */
  273.     CodecQ                            temporalQuality;            /* what was the temporal quality factor  */
  274.     CodecQ                            spatialQuality;                /* what was the spatial quality factor */
  275.     short                            width;                        /* how many pixels wide is this data */
  276.     short                            height;                        /* how many pixels high is this data */
  277.     Fixed                            hRes;                        /* horizontal resolution */
  278.     Fixed                            vRes;                        /* vertical resolution */
  279.     long                            dataSize;                    /* if known, the size of data for this image descriptor */
  280.     short                            frameCount;                    /* number of frames this description applies to */
  281.     Str31                            name;                        /* name of codec ( in case not installed )  */
  282.     short                            depth;                        /* what depth is this data (1-32) or ( 33-40 grayscale ) */
  283.     short                            clutID;                        /* clut id or if 0 clut follows  or -1 if no clut */
  284. };
  285. typedef struct ImageDescription ImageDescription, *ImageDescriptionPtr, **ImageDescriptionHandle;
  286.  
  287. struct CodecInfo {
  288.     Str31                            typeName;                    /* name of the codec type i.e.: 'Apple Image Compression' */
  289.     short                            version;                    /* version of the codec data that this codec knows about */
  290.     short                            revisionLevel;                /* revision level of this codec i.e: 0x00010001 (1.0.1) */
  291.     long                            vendor;                        /* Maker of this codec i.e: 'appl' */
  292.     long                            decompressFlags;            /* codecInfo flags for decompression capabilities */
  293.     long                            compressFlags;                /* codecInfo flags for compression capabilities */
  294.     long                            formatFlags;                /* codecInfo flags for compression format details */
  295.     UInt8                            compressionAccuracy;        /* measure (1-255) of accuracy of this codec for compress (0 if unknown) */
  296.     UInt8                            decompressionAccuracy;        /* measure (1-255) of accuracy of this codec for decompress (0 if unknown) */
  297.     unsigned short                    compressionSpeed;            /* ( millisecs for compressing 320x240 on base mac II) (0 if unknown)  */
  298.     unsigned short                    decompressionSpeed;            /* ( millisecs for decompressing 320x240 on mac II)(0 if unknown)  */
  299.     UInt8                            compressionLevel;            /* measure (1-255) of compression level of this codec (0 if unknown)  */
  300.     UInt8                            resvd;                        /* pad */
  301.     short                            minimumHeight;                /* minimum height of image (block size) */
  302.     short                            minimumWidth;                /* minimum width of image (block size) */
  303.     short                            decompressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  304.     short                            compressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  305.     long                            privateData;
  306. };
  307. typedef struct CodecInfo CodecInfo;
  308.  
  309. struct CodecNameSpec {
  310.     CodecComponent                    codec;
  311.     CodecType                        cType;
  312.     Str31                            typeName;
  313.     Handle                            name;
  314. };
  315. typedef struct CodecNameSpec CodecNameSpec;
  316.  
  317. struct CodecNameSpecList {
  318.     short                            count;
  319.     CodecNameSpec                    list[1];
  320. };
  321. typedef struct CodecNameSpecList CodecNameSpecList, *CodecNameSpecListPtr;
  322.  
  323.  
  324. enum {
  325.     defaultDither                = 0,
  326.     forceDither                    = 1,
  327.     suppressDither                = 2,
  328.     useColorMatching            = 4
  329. };
  330.  
  331. struct ICMFrameTimeRecord {
  332.     wide                            value;                        /* frame time*/
  333.     long                            scale;                        /* timescale of value/duration fields*/
  334.     void                            *base;                        /* timebase*/
  335.     long                            duration;                    /* duration frame is to be displayed (0 if unknown)*/
  336.     Fixed                            rate;                        /* rate of timebase relative to wall-time*/
  337. };
  338. typedef struct ICMFrameTimeRecord ICMFrameTimeRecord, *ICMFrameTimePtr;
  339.  
  340.  
  341. #if GENERATINGCFM
  342. #else
  343. #endif
  344.  
  345. enum {
  346.     uppICMDataProcInfo = kPascalStackBased
  347.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  348.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr*)))
  349.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  350.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  351.     uppICMFlushProcInfo = kPascalStackBased
  352.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  353.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  354.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  355.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  356.     uppICMCompletionProcInfo = kPascalStackBased
  357.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(OSErr)))
  358.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
  359.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  360.     uppICMProgressProcInfo = kPascalStackBased
  361.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  362.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(short)))
  363.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Fixed)))
  364.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  365.     uppStdPixProcInfo = kPascalStackBased
  366.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(PixMap*)))
  367.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Rect*)))
  368.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(MatrixRecord*)))
  369.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(short)))
  370.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(RgnHandle)))
  371.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(PixMap*)))
  372.          | STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(Rect*)))
  373.          | STACK_ROUTINE_PARAMETER(8, SIZE_CODE(sizeof(short))),
  374.     uppICMAlignmentProcInfo = kPascalStackBased
  375.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Rect*)))
  376.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  377. };
  378.  
  379. #if GENERATINGCFM
  380. #define NewICMDataProc(userRoutine)        \
  381.         (ICMDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMDataProcInfo, GetCurrentArchitecture())
  382. #define NewICMFlushProc(userRoutine)        \
  383.         (ICMFlushUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMFlushProcInfo, GetCurrentArchitecture())
  384. #define NewICMCompletionProc(userRoutine)        \
  385.         (ICMCompletionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMCompletionProcInfo, GetCurrentArchitecture())
  386. #define NewICMProgressProc(userRoutine)        \
  387.         (ICMProgressUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMProgressProcInfo, GetCurrentArchitecture())
  388. #define NewStdPixProc(userRoutine)        \
  389.         (StdPixUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppStdPixProcInfo, GetCurrentArchitecture())
  390. #define NewICMAlignmentProc(userRoutine)        \
  391.         (ICMAlignmentUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMAlignmentProcInfo, GetCurrentArchitecture())
  392. #else
  393. #define NewICMDataProc(userRoutine)        \
  394.         ((ICMDataUPP) (userRoutine))
  395. #define NewICMFlushProc(userRoutine)        \
  396.         ((ICMFlushUPP) (userRoutine))
  397. #define NewICMCompletionProc(userRoutine)        \
  398.         ((ICMCompletionUPP) (userRoutine))
  399. #define NewICMProgressProc(userRoutine)        \
  400.         ((ICMProgressUPP) (userRoutine))
  401. #define NewStdPixProc(userRoutine)        \
  402.         ((StdPixUPP) (userRoutine))
  403. #define NewICMAlignmentProc(userRoutine)        \
  404.         ((ICMAlignmentUPP) (userRoutine))
  405. #endif
  406.  
  407. #if GENERATINGCFM
  408. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  409.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMDataProcInfo, (dataP), (bytesNeeded), (refcon))
  410. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  411.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMFlushProcInfo, (data), (bytesAdded), (refcon))
  412. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  413.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMCompletionProcInfo, (result), (flags), (refcon))
  414. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  415.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMProgressProcInfo, (message), (completeness), (refcon))
  416. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  417.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppStdPixProcInfo, (src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  418. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  419.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMAlignmentProcInfo, (rp), (refcon))
  420. #else
  421. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  422.         (*(userRoutine))((dataP), (bytesNeeded), (refcon))
  423. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  424.         (*(userRoutine))((data), (bytesAdded), (refcon))
  425. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  426.         (*(userRoutine))((result), (flags), (refcon))
  427. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  428.         (*(userRoutine))((message), (completeness), (refcon))
  429. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  430.         (*(userRoutine))((src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  431. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  432.         (*(userRoutine))((rp), (refcon))
  433. #endif
  434.  
  435. extern pascal OSErr CodecManagerVersion(long *version)
  436.  TWOWORDINLINE(0x7000, 0xAAA3);
  437. extern pascal OSErr GetCodecNameList(CodecNameSpecListPtr *list, short showAll)
  438.  TWOWORDINLINE(0x7001, 0xAAA3);
  439. extern pascal OSErr DisposeCodecNameList(CodecNameSpecListPtr list)
  440.  TWOWORDINLINE(0x700F, 0xAAA3);
  441. extern pascal OSErr GetCodecInfo(CodecInfo *info, CodecType cType, CodecComponent codec)
  442.  TWOWORDINLINE(0x7003, 0xAAA3);
  443. extern pascal OSErr GetMaxCompressionSize(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, long *size)
  444.  TWOWORDINLINE(0x7004, 0xAAA3);
  445. extern pascal OSErr GetCompressionTime(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *compressTime)
  446.  TWOWORDINLINE(0x7005, 0xAAA3);
  447. extern pascal OSErr CompressImage(PixMapHandle src, const Rect *srcRect, CodecQ quality, CodecType cType, ImageDescriptionHandle desc, Ptr data)
  448.  TWOWORDINLINE(0x7006, 0xAAA3);
  449. extern pascal OSErr FCompressImage(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, CTabHandle clut, CodecFlags flags, long bufferSize, ICMFlushProcRecordPtr flushProc, ICMProgressProcRecordPtr progressProc, ImageDescriptionHandle desc, Ptr data)
  450.  TWOWORDINLINE(0x7007, 0xAAA3);
  451. extern pascal OSErr DecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle mask)
  452.  TWOWORDINLINE(0x7008, 0xAAA3);
  453. extern pascal OSErr FDecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapHandle matte, const Rect *matteRect, CodecQ accuracy, DecompressorComponent codec, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  454.  TWOWORDINLINE(0x7009, 0xAAA3);
  455. extern pascal OSErr CompressSequenceBegin(ImageSequence *seqID, PixMapHandle src, PixMapHandle prev, const Rect *srcRect, const Rect *prevRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate, CTabHandle clut, CodecFlags flags, ImageDescriptionHandle desc)
  456.  TWOWORDINLINE(0x700A, 0xAAA3);
  457. extern pascal OSErr CompressSequenceFrame(ImageSequence seqID, PixMapHandle src, const Rect *srcRect, CodecFlags flags, Ptr data, long *dataSize, UInt8 *similarity, ICMCompletionProcRecordPtr asyncCompletionProc)
  458.  TWOWORDINLINE(0x700B, 0xAAA3);
  459. extern pascal OSErr DecompressSequenceBegin(ImageSequence *seqID, ImageDescriptionHandle desc, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  460.  TWOWORDINLINE(0x700D, 0xAAA3);
  461. extern pascal OSErr DecompressSequenceBeginS(ImageSequence *seqID, ImageDescriptionHandle desc, Ptr data, long dataSize, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  462.  FOURWORDINLINE(0x203C, 0x30, 0x5D, 0xAAA3);
  463. extern pascal OSErr DecompressSequenceFrame(ImageSequence seqID, Ptr data, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  464.  TWOWORDINLINE(0x700E, 0xAAA3);
  465. extern pascal OSErr DecompressSequenceFrameS(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  466.  FOURWORDINLINE(0x203C, 0x16, 0x47, 0xAAA3);
  467. extern pascal OSErr DecompressSequenceFrameWhen(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc, const ICMFrameTimeRecord *frameTime)
  468.  FOURWORDINLINE(0x203C, 0x1A, 0x5E, 0xAAA3);
  469. extern pascal OSErr CDSequenceFlush(ImageSequence seqID)
  470.  FOURWORDINLINE(0x203C, 0x4, 0x5F, 0xAAA3);
  471. extern pascal OSErr SetDSequenceMatrix(ImageSequence seqID, MatrixRecordPtr matrix)
  472.  TWOWORDINLINE(0x7010, 0xAAA3);
  473. extern pascal OSErr SetDSequenceMatte(ImageSequence seqID, PixMapHandle matte, const Rect *matteRect)
  474.  TWOWORDINLINE(0x7011, 0xAAA3);
  475. extern pascal OSErr SetDSequenceMask(ImageSequence seqID, RgnHandle mask)
  476.  TWOWORDINLINE(0x7012, 0xAAA3);
  477. extern pascal OSErr SetDSequenceTransferMode(ImageSequence seqID, short mode, const RGBColor *opColor)
  478.  TWOWORDINLINE(0x7013, 0xAAA3);
  479. extern pascal OSErr SetDSequenceDataProc(ImageSequence seqID, ICMDataProcRecordPtr dataProc, long bufferSize)
  480.  TWOWORDINLINE(0x7014, 0xAAA3);
  481. extern pascal OSErr SetDSequenceAccuracy(ImageSequence seqID, CodecQ accuracy)
  482.  TWOWORDINLINE(0x7034, 0xAAA3);
  483. extern pascal OSErr SetDSequenceSrcRect(ImageSequence seqID, const Rect *srcRect)
  484.  TWOWORDINLINE(0x7035, 0xAAA3);
  485. extern pascal OSErr GetDSequenceImageBuffer(ImageSequence seqID, GWorldPtr *gworld)
  486.  TWOWORDINLINE(0x7015, 0xAAA3);
  487. extern pascal OSErr GetDSequenceScreenBuffer(ImageSequence seqID, GWorldPtr *gworld)
  488.  TWOWORDINLINE(0x7016, 0xAAA3);
  489. extern pascal OSErr SetCSequenceQuality(ImageSequence seqID, CodecQ spatialQuality, CodecQ temporalQuality)
  490.  TWOWORDINLINE(0x7017, 0xAAA3);
  491. extern pascal OSErr SetCSequencePrev(ImageSequence seqID, PixMapHandle prev, const Rect *prevRect)
  492.  TWOWORDINLINE(0x7018, 0xAAA3);
  493. extern pascal OSErr SetCSequenceFlushProc(ImageSequence seqID, ICMFlushProcRecordPtr flushProc, long bufferSize)
  494.  TWOWORDINLINE(0x7033, 0xAAA3);
  495. extern pascal OSErr SetCSequenceKeyFrameRate(ImageSequence seqID, long keyframerate)
  496.  TWOWORDINLINE(0x7036, 0xAAA3);
  497. extern pascal OSErr GetCSequenceKeyFrameRate(ImageSequence seqID, long *keyframerate)
  498.  FOURWORDINLINE(0x203C, 0x8, 0x4B, 0xAAA3);
  499. extern pascal OSErr GetCSequencePrevBuffer(ImageSequence seqID, GWorldPtr *gworld)
  500.  TWOWORDINLINE(0x7019, 0xAAA3);
  501. extern pascal OSErr CDSequenceBusy(ImageSequence seqID)
  502.  TWOWORDINLINE(0x701A, 0xAAA3);
  503. extern pascal OSErr CDSequenceEnd(ImageSequence seqID)
  504.  TWOWORDINLINE(0x701B, 0xAAA3);
  505. extern pascal OSErr GetCompressedImageSize(ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, long *dataSize)
  506.  TWOWORDINLINE(0x701C, 0xAAA3);
  507. extern pascal OSErr GetSimilarity(PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle desc, Ptr data, Fixed *similarity)
  508.  TWOWORDINLINE(0x701D, 0xAAA3);
  509. extern pascal OSErr GetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle *ctable)
  510.  TWOWORDINLINE(0x701E, 0xAAA3);
  511. extern pascal OSErr SetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle ctable)
  512.  TWOWORDINLINE(0x701F, 0xAAA3);
  513. extern pascal OSErr GetImageDescriptionExtension(ImageDescriptionHandle desc, Handle *extension, long idType, long index)
  514.  TWOWORDINLINE(0x7020, 0xAAA3);
  515. extern pascal OSErr SetImageDescriptionExtension(ImageDescriptionHandle desc, Handle extension, long idType)
  516.  TWOWORDINLINE(0x7021, 0xAAA3);
  517. extern pascal OSErr RemoveImageDescriptionExtension(ImageDescription **desc, long idType, long index)
  518.  FOURWORDINLINE(0x203C, 0xC, 0x3A, 0xAAA3);
  519. extern pascal OSErr CountImageDescriptionExtensionType(ImageDescription **desc, long idType, long *count)
  520.  FOURWORDINLINE(0x203C, 0xC, 0x3B, 0xAAA3);
  521. extern pascal OSErr GetNextImageDescriptionExtensionType(ImageDescription **desc, long *idType)
  522.  FOURWORDINLINE(0x203C, 0x8, 0x3C, 0xAAA3);
  523. extern pascal OSErr FindCodec(CodecType cType, CodecComponent specCodec, CompressorComponent *compressor, DecompressorComponent *decompressor)
  524.  TWOWORDINLINE(0x7023, 0xAAA3);
  525. extern pascal OSErr CompressPicture(PicHandle srcPicture, PicHandle dstPicture, CodecQ quality, CodecType cType)
  526.  TWOWORDINLINE(0x7024, 0xAAA3);
  527. extern pascal OSErr FCompressPicture(PicHandle srcPicture, PicHandle dstPicture, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  528.  TWOWORDINLINE(0x7025, 0xAAA3);
  529. extern pascal OSErr CompressPictureFile(short srcRefNum, short dstRefNum, CodecQ quality, CodecType cType)
  530.  TWOWORDINLINE(0x7026, 0xAAA3);
  531. extern pascal OSErr FCompressPictureFile(short srcRefNum, short dstRefNum, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  532.  TWOWORDINLINE(0x7027, 0xAAA3);
  533. extern pascal OSErr GetPictureFileHeader(short refNum, Rect *frame, OpenCPicParams *header)
  534.  TWOWORDINLINE(0x7028, 0xAAA3);
  535. extern pascal OSErr DrawPictureFile(short refNum, const Rect *frame, ICMProgressProcRecordPtr progressProc)
  536.  TWOWORDINLINE(0x7029, 0xAAA3);
  537. extern pascal OSErr DrawTrimmedPicture(PicHandle srcPicture, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  538.  TWOWORDINLINE(0x702E, 0xAAA3);
  539. extern pascal OSErr DrawTrimmedPictureFile(short srcRefnum, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  540.  TWOWORDINLINE(0x702F, 0xAAA3);
  541. extern pascal OSErr MakeThumbnailFromPicture(PicHandle picture, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  542.  TWOWORDINLINE(0x702A, 0xAAA3);
  543. extern pascal OSErr MakeThumbnailFromPictureFile(short refNum, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  544.  TWOWORDINLINE(0x702B, 0xAAA3);
  545. extern pascal OSErr MakeThumbnailFromPixMap(PixMapHandle src, const Rect *srcRect, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  546.  TWOWORDINLINE(0x702C, 0xAAA3);
  547. extern pascal OSErr TrimImage(ImageDescriptionHandle desc, Ptr inData, long inBufferSize, ICMDataProcRecordPtr dataProc, Ptr outData, long outBufferSize, ICMFlushProcRecordPtr flushProc, Rect *trimRect, ICMProgressProcRecordPtr progressProc)
  548.  TWOWORDINLINE(0x702D, 0xAAA3);
  549. extern pascal OSErr ConvertImage(ImageDescriptionHandle srcDD, Ptr srcData, short colorDepth, CTabHandle clut, CodecQ accuracy, CodecQ quality, CodecType cType, CodecComponent codec, ImageDescriptionHandle dstDD, Ptr dstData)
  550.  TWOWORDINLINE(0x7030, 0xAAA3);
  551. extern pascal OSErr GetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, ICMDataProcRecord *dataProc, ICMProgressProcRecord *progressProc)
  552.  TWOWORDINLINE(0x7037, 0xAAA3);
  553. extern pascal OSErr SetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  554.  TWOWORDINLINE(0x7038, 0xAAA3);
  555. extern pascal void StdPix(PixMapPtr src, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapPtr matte, const Rect *matteRect, short flags)
  556.  TWOWORDINLINE(0x700C, 0xAAA3);
  557. extern pascal OSErr TransformRgn(MatrixRecordPtr matrix, RgnHandle rgn)
  558.  TWOWORDINLINE(0x7039, 0xAAA3);
  559. /***********
  560.     preview stuff
  561. ***********/
  562. extern pascal void SFGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, DlgHookUPP dlgHook, SFReply *reply)
  563.  TWOWORDINLINE(0x7041, 0xAAA3);
  564. extern pascal void SFPGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, DlgHookUPP dlgHook, SFReply *reply, short dlgID, ModalFilterUPP filterProc)
  565.  TWOWORDINLINE(0x7042, 0xAAA3);
  566. extern pascal void StandardGetFilePreview(FileFilterUPP fileFilter, short numTypes, SFTypeList typeList, StandardFileReply *reply)
  567.  TWOWORDINLINE(0x7043, 0xAAA3);
  568. extern pascal void CustomGetFilePreview(FileFilterYDUPP fileFilter, short numTypes, SFTypeList typeList, StandardFileReply *reply, short dlgID, Point where, DlgHookYDUPP dlgHook, ModalFilterYDUPP filterProc, const short *activeList, ActivateYDUPP activateProc, void *yourDataPtr)
  569.  TWOWORDINLINE(0x7044, 0xAAA3);
  570. extern pascal OSErr MakeFilePreview(short resRefNum, ICMProgressProcRecordPtr progress)
  571.  TWOWORDINLINE(0x7045, 0xAAA3);
  572. extern pascal OSErr AddFilePreview(short resRefNum, OSType previewType, Handle previewData)
  573.  TWOWORDINLINE(0x7046, 0xAAA3);
  574.  
  575. enum {
  576.     sfpItemPreviewAreaUser        = 11,
  577.     sfpItemPreviewStaticText    = 12,
  578.     sfpItemPreviewDividerUser    = 13,
  579.     sfpItemCreatePreviewButton    = 14,
  580.     sfpItemShowPreviewButton    = 15
  581. };
  582.  
  583. struct PreviewResourceRecord {
  584.     unsigned long                    modDate;
  585.     short                            version;
  586.     OSType                            resType;
  587.     short                            resID;
  588. };
  589. typedef struct PreviewResourceRecord PreviewResourceRecord, *PreviewResourcePtr, **PreviewResource;
  590.  
  591. extern pascal void AlignScreenRect(Rect *rp, ICMAlignmentProcRecordPtr alignmentProc)
  592.  FOURWORDINLINE(0x203C, 0x8, 0x4C, 0xAAA3);
  593. extern pascal void AlignWindow(WindowPtr wp, Boolean front, const Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  594.  FOURWORDINLINE(0x203C, 0xE, 0x4D, 0xAAA3);
  595. extern pascal void DragAlignedWindow(WindowPtr wp, Point startPt, Rect *boundsRect, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  596.  FOURWORDINLINE(0x203C, 0x14, 0x4E, 0xAAA3);
  597. extern pascal long DragAlignedGrayRgn(RgnHandle theRgn, Point startPt, Rect *boundsRect, Rect *slopRect, short axis, UniversalProcPtr actionProc, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  598.  FOURWORDINLINE(0x203C, 0x1E, 0x4F, 0xAAA3);
  599. extern pascal OSErr SetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  600.  FOURWORDINLINE(0x203C, 0x8, 0x50, 0xAAA3);
  601. extern pascal OSErr SetCSequenceFrameNumber(ImageSequence seqID, long frameNumber)
  602.  FOURWORDINLINE(0x203C, 0x8, 0x51, 0xAAA3);
  603. extern pascal QDErr NewImageGWorld(GWorldPtr *gworld, ImageDescriptionHandle idh, GWorldFlags flags)
  604.  FOURWORDINLINE(0x203C, 0xC, 0x52, 0xAAA3);
  605. extern pascal OSErr GetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  606.  FOURWORDINLINE(0x203C, 0x8, 0x53, 0xAAA3);
  607. extern pascal OSErr GetCSequenceFrameNumber(ImageSequence seqID, long *frameNumber)
  608.  FOURWORDINLINE(0x203C, 0x8, 0x54, 0xAAA3);
  609. extern pascal OSErr GetBestDeviceRect(GDHandle *gdh, Rect *rp)
  610.  FOURWORDINLINE(0x203C, 0x8, 0x55, 0xAAA3);
  611. extern pascal OSErr SetSequenceProgressProc(ImageSequence seqID, ICMProgressProcRecord *progressProc)
  612.  FOURWORDINLINE(0x203C, 0x8, 0x56, 0xAAA3);
  613. extern pascal OSErr GDHasScale(GDHandle gdh, short depth, Fixed *scale)
  614.  FOURWORDINLINE(0x203C, 0xA, 0x5A, 0xAAA3);
  615. extern pascal OSErr GDGetScale(GDHandle gdh, Fixed *scale, short *flags)
  616.  FOURWORDINLINE(0x203C, 0xC, 0x5B, 0xAAA3);
  617. extern pascal OSErr GDSetScale(GDHandle gdh, Fixed scale, short flags)
  618.  FOURWORDINLINE(0x203C, 0xA, 0x5C, 0xAAA3);
  619. extern pascal OSErr ICMShieldSequenceCursor(ImageSequence seqID)
  620.  FOURWORDINLINE(0x203C, 0x4, 0x62, 0xAAA3);
  621. extern pascal void ICMDecompressComplete(ImageSequence seqID, OSErr err, short flag, ICMCompletionProcRecordPtr completionRtn)
  622.  FOURWORDINLINE(0x203C, 0xC, 0x63, 0xAAA3);
  623. extern pascal OSErr SetDSequenceTimeCode(ImageSequence seqID, void *timeCodeFormat, void *timeCodeTime)
  624.  FOURWORDINLINE(0x203C, 0xC, 0x64, 0xAAA3);
  625.  
  626. enum {
  627.     identityMatrixType            = 0x00,                            /* result if matrix is identity */
  628.     translateMatrixType            = 0x01,                            /* result if matrix translates */
  629.     scaleMatrixType                = 0x02,                            /* result if matrix scales */
  630.     scaleTranslateMatrixType    = 0x03,                            /* result if matrix scales and translates */
  631.     linearMatrixType            = 0x04,                            /* result if matrix is general 2 x 2 */
  632.     linearTranslateMatrixType    = 0x05,                            /* result if matrix is general 2 x 2 and translates */
  633.     perspectiveMatrixType        = 0x06                            /* result if matrix is general 3 x 3 */
  634. };
  635.  
  636. typedef unsigned short MatrixFlags;
  637.  
  638. extern pascal short GetMatrixType(const MatrixRecord *m)
  639.  TWOWORDINLINE(0x7014, 0xABC2);
  640. extern pascal void CopyMatrix(const MatrixRecord *m1, MatrixRecord *m2)
  641.  TWOWORDINLINE(0x7020, 0xABC2);
  642. extern pascal Boolean EqualMatrix(const MatrixRecord *m1, const MatrixRecord *m2)
  643.  TWOWORDINLINE(0x7021, 0xABC2);
  644. extern pascal void SetIdentityMatrix(MatrixRecord *matrix)
  645.  TWOWORDINLINE(0x7015, 0xABC2);
  646. extern pascal void TranslateMatrix(MatrixRecord *m, Fixed deltaH, Fixed deltaV)
  647.  TWOWORDINLINE(0x7019, 0xABC2);
  648. extern pascal void RotateMatrix(MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY)
  649.  TWOWORDINLINE(0x7016, 0xABC2);
  650. extern pascal void ScaleMatrix(MatrixRecord *m, Fixed scaleX, Fixed scaleY, Fixed aboutX, Fixed aboutY)
  651.  TWOWORDINLINE(0x7017, 0xABC2);
  652. extern pascal void SkewMatrix(MatrixRecord *m, Fixed skewX, Fixed skewY, Fixed aboutX, Fixed aboutY)
  653.  TWOWORDINLINE(0x7018, 0xABC2);
  654. extern pascal OSErr TransformFixedPoints(const MatrixRecord *m, FixedPoint *fpt, long count)
  655.  TWOWORDINLINE(0x7022, 0xABC2);
  656. extern pascal OSErr TransformPoints(const MatrixRecord *mp, Point *pt1, long count)
  657.  TWOWORDINLINE(0x7023, 0xABC2);
  658. extern pascal Boolean TransformFixedRect(const MatrixRecord *m, FixedRect *fr, FixedPoint *fpp)
  659.  TWOWORDINLINE(0x7024, 0xABC2);
  660. extern pascal Boolean TransformRect(const MatrixRecord *m, Rect *r, FixedPoint *fpp)
  661.  TWOWORDINLINE(0x7025, 0xABC2);
  662. extern pascal Boolean InverseMatrix(const MatrixRecord *m, MatrixRecord *im)
  663.  TWOWORDINLINE(0x701C, 0xABC2);
  664. extern pascal void ConcatMatrix(const MatrixRecord *a, MatrixRecord *b)
  665.  TWOWORDINLINE(0x701B, 0xABC2);
  666. extern pascal void RectMatrix(MatrixRecord *matrix, const Rect *srcRect, const Rect *dstRect)
  667.  TWOWORDINLINE(0x701E, 0xABC2);
  668. extern pascal void MapMatrix(MatrixRecord *matrix, const Rect *fromRect, const Rect *toRect)
  669.  TWOWORDINLINE(0x701D, 0xABC2);
  670.  
  671. #ifdef __CFM68K__
  672. #pragma lib_export off
  673. #endif
  674.  
  675. #if GENERATINGPOWERPC
  676. #pragma options align=reset
  677. #endif
  678.  
  679. #ifdef __cplusplus
  680. }
  681. #endif
  682.  
  683. #endif /* __IMAGECOMPRESSION__ */
  684.