-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlisting5.html
executable file
·672 lines (489 loc) · 39.5 KB
/
listing5.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<!-- BEGIN META TAG INFO -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="home" href="http://developer.apple.com/">
<link rel="find" href="http://developer.apple.com/search/">
<link rel="stylesheet" type="text/css" href="../../documentation/css/adcstyle.css" title="fonts">
<script language="JavaScript" src="../../documentation/js/adc.js" type="text/javascript"></script>
<!-- END META TAG INFO -->
<!-- BEGIN TITLE -->
<title>GreyscaleEffectSample - /ComponentIncludes/ImageCompression.k.h</title>
<!-- END TITLE -->
<script language="JavaScript">
function JumpToNewPage() {
window.location=document.scpopupmenu.gotop.value;
return true;
}
</script>
</head>
<!-- BEGIN BODY OPEN -->
<body>
<!--END BODY OPEN -->
<!-- START CENTER OPEN -->
<center>
<!-- END CENTER OPEN -->
<!-- BEGIN LOGO AND SEARCH -->
<!--#include virtual="/includes/adcnavbar"-->
<!-- END LOGO AND SEARCH -->
<!-- START BREADCRUMB -->
<div id="breadcrumb">
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td scope="row"><img width="340" height="10" src="images/1dot.gif" alt=""></td>
<td><img width="340" height="10" src="images/1dot.gif" alt=""></td>
</tr>
<tr valign="middle">
<td align="left" colspan="2">
<a href="http://developer.apple.com/">ADC Home</a> > <a href="../../referencelibrary/index.html">Reference Library</a> > <a href="../../samplecode/index.html">Sample Code</a> > <a href="../../samplecode/QuickTime/index.html">QuickTime</a> > <a href="../../samplecode/QuickTime/idxVideoEffectsTransitions-date.html">Video Effects & Transitions</a> > <A HREF="javascript:location.replace('index.html');">GreyscaleEffectSample</A> >
</td>
</tr>
<tr>
<td colspan="2" scope="row"><img width="680" height="35" src="images/1dot.gif" alt=""></td>
</tr>
</table>
</div>
<!-- END BREADCRUMB -->
<!-- START MAIN CONTENT -->
<!-- START TITLE GRAPHIC AND INTRO-->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td><h1><div id="pagehead">GreyscaleEffectSample</div></h1></td>
</tr>
</table>
<!-- END TITLE GRAPHIC AND INTRO -->
<!-- START WIDE COLUMN -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td id="scdetails">
<h2>/ComponentIncludes/ImageCompression.k.h</h2>
<form name="scpopupmenu" onSubmit="return false;" method=post>
<p><strong>View Source Code:</strong>
<select name="gotop" onChange="JumpToNewPage();" style="width:340px"><option selected value="ingnore">Select File</option>
<option value="listing1.html">/ComponentIncludes/ComponentDispatchHelper.c</option>
<option value="listing2.html">/ComponentIncludes/ComponentIncludes.txt</option>
<option value="listing3.html">/ComponentIncludes/Components.k.h</option>
<option value="listing4.html">/ComponentIncludes/ImageCodec.k.h</option>
<option value="listing5.html">/ComponentIncludes/ImageCompression.k.h</option>
<option value="listing6.html">/ComponentIncludes/QuickTimeComponents.k.h</option>
<option value="listing7.html">/Effect.r</option>
<option value="listing8.html">/EffectDefinitions.h</option>
<option value="listing9.html">/EffectDispatch.h</option>
<option value="listing10.html">/EffectRezPB.r</option>
<option value="listing11.html">/GreyscaleEffect.c</option>
<option value="listing12.html">/PrefixIncludes/PrefixCarbon.h</option>
<option value="listing13.html">/PrefixIncludes/PrefixCarbonCFM.r</option>
<option value="listing14.html">/PrefixIncludes/PrefixCarbonMachO.r</option>
<option value="listing15.html">/PrefixIncludes/PrefixPPC.h</option>
<option value="listing16.html">/PrefixIncludes/PrefixPPC.r</option>
<option value="listing17.html">/README.txt</option></select>
</p>
</form>
<p><strong><a href="GreyscaleEffectSample.zip">Download Sample</a></strong> (“GreyscaleEffectSample.zip”, 458.7K)<BR>
<strong><a href="GreyscaleEffectSample.dmg">Download Sample</a></strong> (“GreyscaleEffectSample.dmg”, 803.4K)</p>
<!--
<p><strong><a href="#">Download Sample</a></strong> (“filename.sit”, 500K)</p>
-->
</td>
</tr>
<tr>
<td scope="row"><img width="680" height="10" src="images/1dot.gif" alt=""><br>
<img height="1" width="680" src="images/1dot_919699.gif" alt=""><br>
<img width="680" height="20" src="images/1dot.gif" alt=""></td>
</tr>
<tr>
<td scope="row">
<!--googleon: index -->
<pre class="sourcecodebox">/* File: ImageCompression.k.h Contains: QuickTime Image Compression Interfaces. Version: Technology: QuickTime 5.0 Release: Universal Interfaces 3.4.1 Copyright: © 1990-2001 by Apple Computer, Inc., all rights reserved Bugs?: For bug reports, consult the following page on the World Wide Web: http://developer.apple.com/bugreporter/ */#ifndef __IMAGECOMPRESSION_K__#define __IMAGECOMPRESSION_K__#include <QuickTime/ImageCompression.h>/* Example usage: #define GRAPHICSIMPORT_BASENAME() Fred #define GRAPHICSIMPORT_GLOBALS() FredGlobalsHandle #include <ImageCompression.k.h> To specify that your component implementation does not use globals, do not #define GRAPHICSIMPORT_GLOBALS*/#ifdef GRAPHICSIMPORT_BASENAME #ifndef GRAPHICSIMPORT_GLOBALS #define GRAPHICSIMPORT_GLOBALS() #define ADD_GRAPHICSIMPORT_COMMA #else #define ADD_GRAPHICSIMPORT_COMMA , #endif #define GRAPHICSIMPORT_GLUE(a,b) a##b #define GRAPHICSIMPORT_STRCAT(a,b) GRAPHICSIMPORT_GLUE(a,b) #define ADD_GRAPHICSIMPORT_BASENAME(name) GRAPHICSIMPORT_STRCAT(GRAPHICSIMPORT_BASENAME(),name) EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDataReference) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle dataRef, OSType dataReType); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataReference) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle * dataRef, OSType * dataReType); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDataFile) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const FSSpec * theFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataFile) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA FSSpec * theFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDataHandle) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle h); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataHandle) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle * h); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetImageDescription) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA ImageDescriptionHandle * desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataOffsetAndSize) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long * offset, unsigned long * size); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(ReadData) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * dataPtr, unsigned long dataOffset, unsigned long dataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetClip) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA RgnHandle clipRgn); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetClip) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA RgnHandle * clipRgn); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetSourceRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const Rect * sourceRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetSourceRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Rect * sourceRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetNaturalBounds) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Rect * naturalBounds); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(Draw) (GRAPHICSIMPORT_GLOBALS()); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetGWorld) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA CGrafPtr port, GDHandle gd); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetGWorld) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA CGrafPtr * port, GDHandle * gd); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetMatrix) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const MatrixRecord * matrix); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetMatrix) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA MatrixRecord * matrix); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetBoundsRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const Rect * bounds); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetBoundsRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Rect * bounds); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SaveAsPicture) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const FSSpec * fss, ScriptCode scriptTag); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetGraphicsMode) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA long graphicsMode, const RGBColor * opColor); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetGraphicsMode) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA long * graphicsMode, RGBColor * opColor); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetQuality) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA CodecQ quality); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetQuality) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA CodecQ * quality); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SaveAsQuickTimeImageFile) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const FSSpec * fss, ScriptCode scriptTag); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDataReferenceOffsetAndLimit) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long offset, unsigned long limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataReferenceOffsetAndLimit) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long * offset, unsigned long * limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetAliasedDataReference) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle * dataRef, OSType * dataRefType); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(Validate) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Boolean * valid); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetMetaData) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * userData); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetMIMETypeList) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * qtAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(DoesDrawAllPixels) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA short * drawsAllPixels); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetAsPicture) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA PicHandle * picture); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(ExportImageFile) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA OSType fileType, OSType fileCreator, const FSSpec * fss, ScriptCode scriptTag); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetExportImageTypeList) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * qtAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(DoExportImageFileDialog) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const FSSpec * inDefaultSpec, StringPtr prompt, ModalFilterYDUPP filterProc, OSType * outExportedType, FSSpec * outExportedSpec, ScriptCode * outScriptTag); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetExportSettingsAsAtomContainer) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * qtAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetExportSettingsFromAtomContainer) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * qtAtomContainer); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetProgressProc) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA ICMProgressProcRecordPtr progressProc); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetProgressProc) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA ICMProgressProcRecordPtr progressProc); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetImageCount) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long * imageCount); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetImageIndex) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long imageIndex); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetImageIndex) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA unsigned long * imageIndex); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataOffsetAndSize64) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA wide * offset, wide * size); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(ReadData64) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA void * dataPtr, const wide * dataOffset, unsigned long dataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDataReferenceOffsetAndLimit64) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const wide * offset, const wide * limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDataReferenceOffsetAndLimit64) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA wide * offset, wide * limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDefaultMatrix) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA MatrixRecord * defaultMatrix); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDefaultClip) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA RgnHandle * defaultRgn); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDefaultGraphicsMode) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA long * defaultGraphicsMode, RGBColor * defaultOpColor); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDefaultSourceRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Rect * defaultSourceRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetColorSyncProfile) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Handle * profile); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetDestRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA const Rect * destRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetDestRect) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA Rect * destRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(SetFlags) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA long flags); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetFlags) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA long * flags); EXTERN_API( ComponentResult ) ADD_GRAPHICSIMPORT_BASENAME(GetBaseDataOffsetAndSize64) (GRAPHICSIMPORT_GLOBALS() ADD_GRAPHICSIMPORT_COMMA wide * offset, wide * size); /* MixedMode ProcInfo constants for component calls */ enum { uppGraphicsImportSetDataReferenceProcInfo = 0x00000FF0, uppGraphicsImportGetDataReferenceProcInfo = 0x00000FF0, uppGraphicsImportSetDataFileProcInfo = 0x000003F0, uppGraphicsImportGetDataFileProcInfo = 0x000003F0, uppGraphicsImportSetDataHandleProcInfo = 0x000003F0, uppGraphicsImportGetDataHandleProcInfo = 0x000003F0, uppGraphicsImportGetImageDescriptionProcInfo = 0x000003F0, uppGraphicsImportGetDataOffsetAndSizeProcInfo = 0x00000FF0, uppGraphicsImportReadDataProcInfo = 0x00003FF0, uppGraphicsImportSetClipProcInfo = 0x000003F0, uppGraphicsImportGetClipProcInfo = 0x000003F0, uppGraphicsImportSetSourceRectProcInfo = 0x000003F0, uppGraphicsImportGetSourceRectProcInfo = 0x000003F0, uppGraphicsImportGetNaturalBoundsProcInfo = 0x000003F0, uppGraphicsImportDrawProcInfo = 0x000000F0, uppGraphicsImportSetGWorldProcInfo = 0x00000FF0, uppGraphicsImportGetGWorldProcInfo = 0x00000FF0, uppGraphicsImportSetMatrixProcInfo = 0x000003F0, uppGraphicsImportGetMatrixProcInfo = 0x000003F0, uppGraphicsImportSetBoundsRectProcInfo = 0x000003F0, uppGraphicsImportGetBoundsRectProcInfo = 0x000003F0, uppGraphicsImportSaveAsPictureProcInfo = 0x00000BF0, uppGraphicsImportSetGraphicsModeProcInfo = 0x00000FF0, uppGraphicsImportGetGraphicsModeProcInfo = 0x00000FF0, uppGraphicsImportSetQualityProcInfo = 0x000003F0, uppGraphicsImportGetQualityProcInfo = 0x000003F0, uppGraphicsImportSaveAsQuickTimeImageFileProcInfo = 0x00000BF0, uppGraphicsImportSetDataReferenceOffsetAndLimitProcInfo = 0x00000FF0, uppGraphicsImportGetDataReferenceOffsetAndLimitProcInfo = 0x00000FF0, uppGraphicsImportGetAliasedDataReferenceProcInfo = 0x00000FF0, uppGraphicsImportValidateProcInfo = 0x000003F0, uppGraphicsImportGetMetaDataProcInfo = 0x000003F0, uppGraphicsImportGetMIMETypeListProcInfo = 0x000003F0, uppGraphicsImportDoesDrawAllPixelsProcInfo = 0x000003F0, uppGraphicsImportGetAsPictureProcInfo = 0x000003F0, uppGraphicsImportExportImageFileProcInfo = 0x0000BFF0, uppGraphicsImportGetExportImageTypeListProcInfo = 0x000003F0, uppGraphicsImportDoExportImageFileDialogProcInfo = 0x000FFFF0, uppGraphicsImportGetExportSettingsAsAtomContainerProcInfo = 0x000003F0, uppGraphicsImportSetExportSettingsFromAtomContainerProcInfo = 0x000003F0, uppGraphicsImportSetProgressProcProcInfo = 0x000003F0, uppGraphicsImportGetProgressProcProcInfo = 0x000003F0, uppGraphicsImportGetImageCountProcInfo = 0x000003F0, uppGraphicsImportSetImageIndexProcInfo = 0x000003F0, uppGraphicsImportGetImageIndexProcInfo = 0x000003F0, uppGraphicsImportGetDataOffsetAndSize64ProcInfo = 0x00000FF0, uppGraphicsImportReadData64ProcInfo = 0x00003FF0, uppGraphicsImportSetDataReferenceOffsetAndLimit64ProcInfo = 0x00000FF0, uppGraphicsImportGetDataReferenceOffsetAndLimit64ProcInfo = 0x00000FF0, uppGraphicsImportGetDefaultMatrixProcInfo = 0x000003F0, uppGraphicsImportGetDefaultClipProcInfo = 0x000003F0, uppGraphicsImportGetDefaultGraphicsModeProcInfo = 0x00000FF0, uppGraphicsImportGetDefaultSourceRectProcInfo = 0x000003F0, uppGraphicsImportGetColorSyncProfileProcInfo = 0x000003F0, uppGraphicsImportSetDestRectProcInfo = 0x000003F0, uppGraphicsImportGetDestRectProcInfo = 0x000003F0, uppGraphicsImportSetFlagsProcInfo = 0x000003F0, uppGraphicsImportGetFlagsProcInfo = 0x000003F0, uppGraphicsImportGetBaseDataOffsetAndSize64ProcInfo = 0x00000FF0 };#endif /* GRAPHICSIMPORT_BASENAME *//* Example usage: #define GRAPHICSEXPORT_BASENAME() Fred #define GRAPHICSEXPORT_GLOBALS() FredGlobalsHandle #include <ImageCompression.k.h> To specify that your component implementation does not use globals, do not #define GRAPHICSEXPORT_GLOBALS*/#ifdef GRAPHICSEXPORT_BASENAME #ifndef GRAPHICSEXPORT_GLOBALS #define GRAPHICSEXPORT_GLOBALS() #define ADD_GRAPHICSEXPORT_COMMA #else #define ADD_GRAPHICSEXPORT_COMMA , #endif #define GRAPHICSEXPORT_GLUE(a,b) a##b #define GRAPHICSEXPORT_STRCAT(a,b) GRAPHICSEXPORT_GLUE(a,b) #define ADD_GRAPHICSEXPORT_BASENAME(name) GRAPHICSEXPORT_STRCAT(GRAPHICSEXPORT_BASENAME(),name) EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(DoExport) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * actualSizeWritten); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(CanTranscode) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * canTranscode); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(DoTranscode) (GRAPHICSEXPORT_GLOBALS()); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(CanUseCompressor) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * canUseCompressor, void * codecSettingsAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(DoUseCompressor) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * codecSettingsAtomContainer, ImageDescriptionHandle * outDesc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(DoStandaloneExport) (GRAPHICSEXPORT_GLOBALS()); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetDefaultFileTypeAndCreator) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA OSType * fileType, OSType * fileCreator); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetDefaultFileNameExtension) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA OSType * fileNameExtension); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetMIMETypeList) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * qtAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(RequestSettings) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA ModalFilterYDUPP filterProc, void * yourDataProc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetSettingsFromAtomContainer) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * qtAtomContainer); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetSettingsAsAtomContainer) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * qtAtomContainerPtr); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetSettingsAsText) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * theText); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetDontRecompress) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean dontRecompress); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetDontRecompress) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * dontRecompress); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInterlaceStyle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long interlaceStyle); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInterlaceStyle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * interlaceStyle); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetMetaData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * userData); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetMetaData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * userData); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetTargetDataSize) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long targetDataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetTargetDataSize) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * targetDataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetCompressionMethod) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA long compressionMethod); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetCompressionMethod) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA long * compressionMethod); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetCompressionQuality) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA CodecQ spatialQuality); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetCompressionQuality) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA CodecQ * spatialQuality); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetResolution) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Fixed horizontalResolution, Fixed verticalResolution); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetResolution) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Fixed * horizontalResolution, Fixed * verticalResolution); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetDepth) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA long depth); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetDepth) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA long * depth); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetColorSyncProfile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle colorSyncProfile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetColorSyncProfile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * colorSyncProfile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetProgressProc) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA ICMProgressProcRecordPtr progressProc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetProgressProc) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA ICMProgressProcRecordPtr progressProc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputDataReference) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle dataRef, OSType dataRefType, ImageDescriptionHandle desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputDataReference) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * dataRef, OSType * dataRefType); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputFile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA const FSSpec * theFile, ImageDescriptionHandle desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputFile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA FSSpec * theFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputHandle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle h, ImageDescriptionHandle desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputHandle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * h); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputPtr) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Ptr p, unsigned long size, ImageDescriptionHandle desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputPtr) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Ptr * p, unsigned long * size); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputGraphicsImporter) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA GraphicsImportComponent grip); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputGraphicsImporter) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA GraphicsImportComponent * grip); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputPicture) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA PicHandle picture); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputPicture) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA PicHandle * picture); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputGWorld) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA GWorldPtr gworld); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputGWorld) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA GWorldPtr * gworld); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputPixmap) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA PixMapHandle pixmap); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputPixmap) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA PixMapHandle * pixmap); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetInputOffsetAndLimit) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long offset, unsigned long limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputOffsetAndLimit) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * offset, unsigned long * limit); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(MayExporterReadInputData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * mayReadInputData); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputDataSize) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * size); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(ReadInputData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * dataPtr, unsigned long dataOffset, unsigned long dataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputImageDescription) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA ImageDescriptionHandle * desc); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputImageDimensions) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Rect * dimensions); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetInputImageDepth) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA long * inputDepth); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(DrawInputImage) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA CGrafPtr gw, GDHandle gd, const Rect * srcRect, const Rect * dstRect); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputDataReference) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle dataRef, OSType dataRefType); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputDataReference) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * dataRef, OSType * dataRefType); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputFile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA const FSSpec * theFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputFile) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA FSSpec * theFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputHandle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle h); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputHandle) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Handle * h); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputOffsetAndMaxSize) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long offset, unsigned long maxSize, Boolean truncateFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputOffsetAndMaxSize) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * offset, unsigned long * maxSize, Boolean * truncateFile); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputFileTypeAndCreator) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA OSType fileType, OSType fileCreator); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputFileTypeAndCreator) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA OSType * fileType, OSType * fileCreator); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(WriteOutputData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA const void * dataPtr, unsigned long dataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetOutputMark) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long mark); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetOutputMark) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA unsigned long * mark); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(ReadOutputData) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA void * dataPtr, unsigned long dataOffset, unsigned long dataSize); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetThumbnailEnabled) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean enableThumbnail, long maxThumbnailWidth, long maxThumbnailHeight); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetThumbnailEnabled) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * thumbnailEnabled, long * maxThumbnailWidth, long * maxThumbnailHeight); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(SetExifEnabled) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean enableExif); EXTERN_API( ComponentResult ) ADD_GRAPHICSEXPORT_BASENAME(GetExifEnabled) (GRAPHICSEXPORT_GLOBALS() ADD_GRAPHICSEXPORT_COMMA Boolean * exifEnabled); /* MixedMode ProcInfo constants for component calls */ enum { uppGraphicsExportDoExportProcInfo = 0x000003F0, uppGraphicsExportCanTranscodeProcInfo = 0x000003F0, uppGraphicsExportDoTranscodeProcInfo = 0x000000F0, uppGraphicsExportCanUseCompressorProcInfo = 0x00000FF0, uppGraphicsExportDoUseCompressorProcInfo = 0x00000FF0, uppGraphicsExportDoStandaloneExportProcInfo = 0x000000F0, uppGraphicsExportGetDefaultFileTypeAndCreatorProcInfo = 0x00000FF0, uppGraphicsExportGetDefaultFileNameExtensionProcInfo = 0x000003F0, uppGraphicsExportGetMIMETypeListProcInfo = 0x000003F0, uppGraphicsExportRequestSettingsProcInfo = 0x00000FF0, uppGraphicsExportSetSettingsFromAtomContainerProcInfo = 0x000003F0, uppGraphicsExportGetSettingsAsAtomContainerProcInfo = 0x000003F0, uppGraphicsExportGetSettingsAsTextProcInfo = 0x000003F0, uppGraphicsExportSetDontRecompressProcInfo = 0x000001F0, uppGraphicsExportGetDontRecompressProcInfo = 0x000003F0, uppGraphicsExportSetInterlaceStyleProcInfo = 0x000003F0, uppGraphicsExportGetInterlaceStyleProcInfo = 0x000003F0, uppGraphicsExportSetMetaDataProcInfo = 0x000003F0, uppGraphicsExportGetMetaDataProcInfo = 0x000003F0, uppGraphicsExportSetTargetDataSizeProcInfo = 0x000003F0, uppGraphicsExportGetTargetDataSizeProcInfo = 0x000003F0, uppGraphicsExportSetCompressionMethodProcInfo = 0x000003F0, uppGraphicsExportGetCompressionMethodProcInfo = 0x000003F0, uppGraphicsExportSetCompressionQualityProcInfo = 0x000003F0, uppGraphicsExportGetCompressionQualityProcInfo = 0x000003F0, uppGraphicsExportSetResolutionProcInfo = 0x00000FF0, uppGraphicsExportGetResolutionProcInfo = 0x00000FF0, uppGraphicsExportSetDepthProcInfo = 0x000003F0, uppGraphicsExportGetDepthProcInfo = 0x000003F0, uppGraphicsExportSetColorSyncProfileProcInfo = 0x000003F0, uppGraphicsExportGetColorSyncProfileProcInfo = 0x000003F0, uppGraphicsExportSetProgressProcProcInfo = 0x000003F0, uppGraphicsExportGetProgressProcProcInfo = 0x000003F0, uppGraphicsExportSetInputDataReferenceProcInfo = 0x00003FF0, uppGraphicsExportGetInputDataReferenceProcInfo = 0x00000FF0, uppGraphicsExportSetInputFileProcInfo = 0x00000FF0, uppGraphicsExportGetInputFileProcInfo = 0x000003F0, uppGraphicsExportSetInputHandleProcInfo = 0x00000FF0, uppGraphicsExportGetInputHandleProcInfo = 0x000003F0, uppGraphicsExportSetInputPtrProcInfo = 0x00003FF0, uppGraphicsExportGetInputPtrProcInfo = 0x00000FF0, uppGraphicsExportSetInputGraphicsImporterProcInfo = 0x000003F0, uppGraphicsExportGetInputGraphicsImporterProcInfo = 0x000003F0, uppGraphicsExportSetInputPictureProcInfo = 0x000003F0, uppGraphicsExportGetInputPictureProcInfo = 0x000003F0, uppGraphicsExportSetInputGWorldProcInfo = 0x000003F0, uppGraphicsExportGetInputGWorldProcInfo = 0x000003F0, uppGraphicsExportSetInputPixmapProcInfo = 0x000003F0, uppGraphicsExportGetInputPixmapProcInfo = 0x000003F0, uppGraphicsExportSetInputOffsetAndLimitProcInfo = 0x00000FF0, uppGraphicsExportGetInputOffsetAndLimitProcInfo = 0x00000FF0, uppGraphicsExportMayExporterReadInputDataProcInfo = 0x000003F0, uppGraphicsExportGetInputDataSizeProcInfo = 0x000003F0, uppGraphicsExportReadInputDataProcInfo = 0x00003FF0, uppGraphicsExportGetInputImageDescriptionProcInfo = 0x000003F0, uppGraphicsExportGetInputImageDimensionsProcInfo = 0x000003F0, uppGraphicsExportGetInputImageDepthProcInfo = 0x000003F0, uppGraphicsExportDrawInputImageProcInfo = 0x0000FFF0, uppGraphicsExportSetOutputDataReferenceProcInfo = 0x00000FF0, uppGraphicsExportGetOutputDataReferenceProcInfo = 0x00000FF0, uppGraphicsExportSetOutputFileProcInfo = 0x000003F0, uppGraphicsExportGetOutputFileProcInfo = 0x000003F0, uppGraphicsExportSetOutputHandleProcInfo = 0x000003F0, uppGraphicsExportGetOutputHandleProcInfo = 0x000003F0, uppGraphicsExportSetOutputOffsetAndMaxSizeProcInfo = 0x00001FF0, uppGraphicsExportGetOutputOffsetAndMaxSizeProcInfo = 0x00003FF0, uppGraphicsExportSetOutputFileTypeAndCreatorProcInfo = 0x00000FF0, uppGraphicsExportGetOutputFileTypeAndCreatorProcInfo = 0x00000FF0, uppGraphicsExportWriteOutputDataProcInfo = 0x00000FF0, uppGraphicsExportSetOutputMarkProcInfo = 0x000003F0, uppGraphicsExportGetOutputMarkProcInfo = 0x000003F0, uppGraphicsExportReadOutputDataProcInfo = 0x00003FF0, uppGraphicsExportSetThumbnailEnabledProcInfo = 0x00003DF0, uppGraphicsExportGetThumbnailEnabledProcInfo = 0x00003FF0, uppGraphicsExportSetExifEnabledProcInfo = 0x000001F0, uppGraphicsExportGetExifEnabledProcInfo = 0x000003F0 };#endif /* GRAPHICSEXPORT_BASENAME *//* Example usage: #define IMAGETRANSCODER_BASENAME() Fred #define IMAGETRANSCODER_GLOBALS() FredGlobalsHandle #include <ImageCompression.k.h> To specify that your component implementation does not use globals, do not #define IMAGETRANSCODER_GLOBALS*/#ifdef IMAGETRANSCODER_BASENAME #ifndef IMAGETRANSCODER_GLOBALS #define IMAGETRANSCODER_GLOBALS() #define ADD_IMAGETRANSCODER_COMMA #else #define ADD_IMAGETRANSCODER_COMMA , #endif #define IMAGETRANSCODER_GLUE(a,b) a##b #define IMAGETRANSCODER_STRCAT(a,b) IMAGETRANSCODER_GLUE(a,b) #define ADD_IMAGETRANSCODER_BASENAME(name) IMAGETRANSCODER_STRCAT(IMAGETRANSCODER_BASENAME(),name) EXTERN_API( ComponentResult ) ADD_IMAGETRANSCODER_BASENAME(BeginSequence) (IMAGETRANSCODER_GLOBALS() ADD_IMAGETRANSCODER_COMMA ImageDescriptionHandle srcDesc, ImageDescriptionHandle * dstDesc, void * data, long dataSize); EXTERN_API( ComponentResult ) ADD_IMAGETRANSCODER_BASENAME(Convert) (IMAGETRANSCODER_GLOBALS() ADD_IMAGETRANSCODER_COMMA void * srcData, long srcDataSize, void ** dstData, long * dstDataSize); EXTERN_API( ComponentResult ) ADD_IMAGETRANSCODER_BASENAME(DisposeData) (IMAGETRANSCODER_GLOBALS() ADD_IMAGETRANSCODER_COMMA void * dstData); EXTERN_API( ComponentResult ) ADD_IMAGETRANSCODER_BASENAME(EndSequence) (IMAGETRANSCODER_GLOBALS()); /* MixedMode ProcInfo constants for component calls */ enum { uppImageTranscoderBeginSequenceProcInfo = 0x0000FFF0, uppImageTranscoderConvertProcInfo = 0x0000FFF0, uppImageTranscoderDisposeDataProcInfo = 0x000003F0, uppImageTranscoderEndSequenceProcInfo = 0x000000F0 };#endif /* IMAGETRANSCODER_BASENAME */#endif /* __IMAGECOMPRESSION_K__ */</pre>
<!--googleoff: index -->
</td>
</tr>
</table>
<!-- END WIDE COLUMN -->
<!-- END MAIN CONTENT -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div style="width: 100%; height: 1px; background-color: #919699; margin-top: 5px; margin-bottom: 15px"></div></td>
</tr>
<tr>
<td align="center"><br/>
<table border="0" cellpadding="0" cellspacing="0" class="graybox">
<tr>
<th>Did this document help you?</th>
</tr>
<tr>
<td>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=1&url=/samplecode/GreyscaleEffectSample/listing5.html%3Fid%3DDTS10000828-1.0&media=dvd" target=_new>Yes</a>: Tell us what works for you.</div>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=2&url=/samplecode/GreyscaleEffectSample/listing5.html%3Fid%3DDTS10000828-1.0&media=dvd" target=_new>It’s good, but:</a> Report typos, inaccuracies, and so forth.</div>
<div><a href="http://developer.apple.com/feedback/?v=3&url=/samplecode/GreyscaleEffectSample/listing5.html%3Fid%3DDTS10000828-1.0&media=dvd" target=_new>It wasn’t helpful</a>: Tell us what would have helped.</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- START BOTTOM APPLE NAVIGATION -->
<!--#include virtual="/includes/footer"-->
<!-- END BOTTOM APPLE NAVIGATION -->
<!-- START CENTER CLOSE -->
</center>
<!-- END CENTER CLOSE -->
</body>
</html>