Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

513 lines
20 KiB

  1. /*
  2. File: PictUtils.h
  3. Contains: Picture Utilities Interfaces.
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 1990-2001 by Apple Computer, Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef __PICTUTILS__
  11. #define __PICTUTILS__
  12. #ifndef __MACTYPES__
  13. #include <MacTypes.h>
  14. #endif
  15. #ifndef __PALETTES__
  16. #include <Palettes.h>
  17. #endif
  18. #if PRAGMA_ONCE
  19. #pragma once
  20. #endif
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if PRAGMA_IMPORT
  25. #pragma import on
  26. #endif
  27. #if PRAGMA_STRUCT_ALIGN
  28. #pragma options align=mac68k
  29. #elif PRAGMA_STRUCT_PACKPUSH
  30. #pragma pack(push, 2)
  31. #elif PRAGMA_STRUCT_PACK
  32. #pragma pack(2)
  33. #endif
  34. /* verbs for the GetPictInfo, GetPixMapInfo, and NewPictInfo calls */
  35. enum {
  36. returnColorTable = 0x0001,
  37. returnPalette = 0x0002,
  38. recordComments = 0x0004,
  39. recordFontInfo = 0x0008,
  40. suppressBlackAndWhite = 0x0010
  41. };
  42. enum {
  43. /* color pick methods */
  44. systemMethod = 0, /* system color pick method */
  45. popularMethod = 1, /* method that chooses the most popular set of colors */
  46. medianMethod = 2 /* method that chooses a good average mix of colors */
  47. };
  48. enum {
  49. /* color bank types */
  50. ColorBankIsCustom = -1,
  51. ColorBankIsExactAnd555 = 0,
  52. ColorBankIs555 = 1
  53. };
  54. typedef long PictInfoID;
  55. struct CommentSpec {
  56. short count; /* number of occurrances of this comment ID */
  57. short ID; /* ID for the comment in the picture */
  58. };
  59. typedef struct CommentSpec CommentSpec;
  60. typedef CommentSpec * CommentSpecPtr;
  61. typedef CommentSpecPtr * CommentSpecHandle;
  62. struct FontSpec {
  63. short pictFontID; /* ID of the font in the picture */
  64. short sysFontID; /* ID of the same font in the current system file */
  65. long size[4]; /* bit array of all the sizes found (1..127) (bit 0 means > 127) */
  66. short style; /* combined style of all occurrances of the font */
  67. long nameOffset; /* offset into the fontNamesHdl handle for the font's name */
  68. };
  69. typedef struct FontSpec FontSpec;
  70. typedef FontSpec * FontSpecPtr;
  71. typedef FontSpecPtr * FontSpecHandle;
  72. struct PictInfo {
  73. short version; /* this is always zero, for now */
  74. long uniqueColors; /* the number of actual colors in the picture(s)/pixmap(s) */
  75. PaletteHandle thePalette; /* handle to the palette information */
  76. CTabHandle theColorTable; /* handle to the color table */
  77. Fixed hRes; /* maximum horizontal resolution for all the pixmaps */
  78. Fixed vRes; /* maximum vertical resolution for all the pixmaps */
  79. short depth; /* maximum depth for all the pixmaps (in the picture) */
  80. Rect sourceRect; /* the picture frame rectangle (this contains the entire picture) */
  81. long textCount; /* total number of text strings in the picture */
  82. long lineCount; /* total number of lines in the picture */
  83. long rectCount; /* total number of rectangles in the picture */
  84. long rRectCount; /* total number of round rectangles in the picture */
  85. long ovalCount; /* total number of ovals in the picture */
  86. long arcCount; /* total number of arcs in the picture */
  87. long polyCount; /* total number of polygons in the picture */
  88. long regionCount; /* total number of regions in the picture */
  89. long bitMapCount; /* total number of bitmaps in the picture */
  90. long pixMapCount; /* total number of pixmaps in the picture */
  91. long commentCount; /* total number of comments in the picture */
  92. long uniqueComments; /* the number of unique comments in the picture */
  93. CommentSpecHandle commentHandle; /* handle to all the comment information */
  94. long uniqueFonts; /* the number of unique fonts in the picture */
  95. FontSpecHandle fontHandle; /* handle to the FontSpec information */
  96. Handle fontNamesHandle; /* handle to the font names */
  97. long reserved1;
  98. long reserved2;
  99. };
  100. typedef struct PictInfo PictInfo;
  101. typedef PictInfo * PictInfoPtr;
  102. typedef PictInfoPtr * PictInfoHandle;
  103. typedef CALLBACK_API( OSErr , InitPickMethodProcPtr )(SInt16 colorsRequested, UInt32 *dataRef, SInt16 *colorBankType);
  104. typedef CALLBACK_API( OSErr , RecordColorsProcPtr )(UInt32 dataRef, RGBColor *colorsArray, SInt32 colorCount, SInt32 *uniqueColors);
  105. typedef CALLBACK_API( OSErr , CalcColorTableProcPtr )(UInt32 dataRef, SInt16 colorsRequested, void *colorBankPtr, CSpecArray resultPtr);
  106. typedef CALLBACK_API( OSErr , DisposeColorPickMethodProcPtr )(UInt32 dataRef);
  107. typedef STACK_UPP_TYPE(InitPickMethodProcPtr) InitPickMethodUPP;
  108. typedef STACK_UPP_TYPE(RecordColorsProcPtr) RecordColorsUPP;
  109. typedef STACK_UPP_TYPE(CalcColorTableProcPtr) CalcColorTableUPP;
  110. typedef STACK_UPP_TYPE(DisposeColorPickMethodProcPtr) DisposeColorPickMethodUPP;
  111. /*
  112. * NewInitPickMethodUPP()
  113. *
  114. * Availability:
  115. * Non-Carbon CFM: available as macro/inline
  116. * CarbonLib: in CarbonLib 1.0 and later
  117. * Mac OS X: in version 10.0 and later
  118. */
  119. EXTERN_API_C( InitPickMethodUPP )
  120. NewInitPickMethodUPP(InitPickMethodProcPtr userRoutine);
  121. #if !OPAQUE_UPP_TYPES
  122. enum { uppInitPickMethodProcInfo = 0x00000FA0 }; /* pascal 2_bytes Func(2_bytes, 4_bytes, 4_bytes) */
  123. #ifdef __cplusplus
  124. inline DEFINE_API_C(InitPickMethodUPP) NewInitPickMethodUPP(InitPickMethodProcPtr userRoutine) { return (InitPickMethodUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppInitPickMethodProcInfo, GetCurrentArchitecture()); }
  125. #else
  126. #define NewInitPickMethodUPP(userRoutine) (InitPickMethodUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppInitPickMethodProcInfo, GetCurrentArchitecture())
  127. #endif
  128. #endif
  129. /*
  130. * NewRecordColorsUPP()
  131. *
  132. * Availability:
  133. * Non-Carbon CFM: available as macro/inline
  134. * CarbonLib: in CarbonLib 1.0 and later
  135. * Mac OS X: in version 10.0 and later
  136. */
  137. EXTERN_API_C( RecordColorsUPP )
  138. NewRecordColorsUPP(RecordColorsProcPtr userRoutine);
  139. #if !OPAQUE_UPP_TYPES
  140. enum { uppRecordColorsProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  141. #ifdef __cplusplus
  142. inline DEFINE_API_C(RecordColorsUPP) NewRecordColorsUPP(RecordColorsProcPtr userRoutine) { return (RecordColorsUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppRecordColorsProcInfo, GetCurrentArchitecture()); }
  143. #else
  144. #define NewRecordColorsUPP(userRoutine) (RecordColorsUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppRecordColorsProcInfo, GetCurrentArchitecture())
  145. #endif
  146. #endif
  147. /*
  148. * NewCalcColorTableUPP()
  149. *
  150. * Availability:
  151. * Non-Carbon CFM: available as macro/inline
  152. * CarbonLib: in CarbonLib 1.0 and later
  153. * Mac OS X: in version 10.0 and later
  154. */
  155. EXTERN_API_C( CalcColorTableUPP )
  156. NewCalcColorTableUPP(CalcColorTableProcPtr userRoutine);
  157. #if !OPAQUE_UPP_TYPES
  158. enum { uppCalcColorTableProcInfo = 0x00003EE0 }; /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  159. #ifdef __cplusplus
  160. inline DEFINE_API_C(CalcColorTableUPP) NewCalcColorTableUPP(CalcColorTableProcPtr userRoutine) { return (CalcColorTableUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppCalcColorTableProcInfo, GetCurrentArchitecture()); }
  161. #else
  162. #define NewCalcColorTableUPP(userRoutine) (CalcColorTableUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppCalcColorTableProcInfo, GetCurrentArchitecture())
  163. #endif
  164. #endif
  165. /*
  166. * NewDisposeColorPickMethodUPP()
  167. *
  168. * Availability:
  169. * Non-Carbon CFM: available as macro/inline
  170. * CarbonLib: in CarbonLib 1.0 and later
  171. * Mac OS X: in version 10.0 and later
  172. */
  173. EXTERN_API_C( DisposeColorPickMethodUPP )
  174. NewDisposeColorPickMethodUPP(DisposeColorPickMethodProcPtr userRoutine);
  175. #if !OPAQUE_UPP_TYPES
  176. enum { uppDisposeColorPickMethodProcInfo = 0x000000E0 }; /* pascal 2_bytes Func(4_bytes) */
  177. #ifdef __cplusplus
  178. inline DEFINE_API_C(DisposeColorPickMethodUPP) NewDisposeColorPickMethodUPP(DisposeColorPickMethodProcPtr userRoutine) { return (DisposeColorPickMethodUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDisposeColorPickMethodProcInfo, GetCurrentArchitecture()); }
  179. #else
  180. #define NewDisposeColorPickMethodUPP(userRoutine) (DisposeColorPickMethodUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDisposeColorPickMethodProcInfo, GetCurrentArchitecture())
  181. #endif
  182. #endif
  183. /*
  184. * DisposeInitPickMethodUPP()
  185. *
  186. * Availability:
  187. * Non-Carbon CFM: available as macro/inline
  188. * CarbonLib: in CarbonLib 1.0 and later
  189. * Mac OS X: in version 10.0 and later
  190. */
  191. EXTERN_API_C( void )
  192. DisposeInitPickMethodUPP(InitPickMethodUPP userUPP);
  193. #if !OPAQUE_UPP_TYPES
  194. #ifdef __cplusplus
  195. inline DEFINE_API_C(void) DisposeInitPickMethodUPP(InitPickMethodUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  196. #else
  197. #define DisposeInitPickMethodUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  198. #endif
  199. #endif
  200. /*
  201. * DisposeRecordColorsUPP()
  202. *
  203. * Availability:
  204. * Non-Carbon CFM: available as macro/inline
  205. * CarbonLib: in CarbonLib 1.0 and later
  206. * Mac OS X: in version 10.0 and later
  207. */
  208. EXTERN_API_C( void )
  209. DisposeRecordColorsUPP(RecordColorsUPP userUPP);
  210. #if !OPAQUE_UPP_TYPES
  211. #ifdef __cplusplus
  212. inline DEFINE_API_C(void) DisposeRecordColorsUPP(RecordColorsUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  213. #else
  214. #define DisposeRecordColorsUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  215. #endif
  216. #endif
  217. /*
  218. * DisposeCalcColorTableUPP()
  219. *
  220. * Availability:
  221. * Non-Carbon CFM: available as macro/inline
  222. * CarbonLib: in CarbonLib 1.0 and later
  223. * Mac OS X: in version 10.0 and later
  224. */
  225. EXTERN_API_C( void )
  226. DisposeCalcColorTableUPP(CalcColorTableUPP userUPP);
  227. #if !OPAQUE_UPP_TYPES
  228. #ifdef __cplusplus
  229. inline DEFINE_API_C(void) DisposeCalcColorTableUPP(CalcColorTableUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  230. #else
  231. #define DisposeCalcColorTableUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  232. #endif
  233. #endif
  234. /*
  235. * DisposeDisposeColorPickMethodUPP()
  236. *
  237. * Availability:
  238. * Non-Carbon CFM: available as macro/inline
  239. * CarbonLib: in CarbonLib 1.0 and later
  240. * Mac OS X: in version 10.0 and later
  241. */
  242. EXTERN_API_C( void )
  243. DisposeDisposeColorPickMethodUPP(DisposeColorPickMethodUPP userUPP);
  244. #if !OPAQUE_UPP_TYPES
  245. #ifdef __cplusplus
  246. inline DEFINE_API_C(void) DisposeDisposeColorPickMethodUPP(DisposeColorPickMethodUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
  247. #else
  248. #define DisposeDisposeColorPickMethodUPP(userUPP) DisposeRoutineDescriptor(userUPP)
  249. #endif
  250. #endif
  251. /*
  252. * InvokeInitPickMethodUPP()
  253. *
  254. * Availability:
  255. * Non-Carbon CFM: available as macro/inline
  256. * CarbonLib: in CarbonLib 1.0 and later
  257. * Mac OS X: in version 10.0 and later
  258. */
  259. EXTERN_API_C( OSErr )
  260. InvokeInitPickMethodUPP(
  261. SInt16 colorsRequested,
  262. UInt32 * dataRef,
  263. SInt16 * colorBankType,
  264. InitPickMethodUPP userUPP);
  265. #if !OPAQUE_UPP_TYPES
  266. #ifdef __cplusplus
  267. inline DEFINE_API_C(OSErr) InvokeInitPickMethodUPP(SInt16 colorsRequested, UInt32 * dataRef, SInt16 * colorBankType, InitPickMethodUPP userUPP) { return (OSErr)CALL_THREE_PARAMETER_UPP(userUPP, uppInitPickMethodProcInfo, colorsRequested, dataRef, colorBankType); }
  268. #else
  269. #define InvokeInitPickMethodUPP(colorsRequested, dataRef, colorBankType, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppInitPickMethodProcInfo, (colorsRequested), (dataRef), (colorBankType))
  270. #endif
  271. #endif
  272. /*
  273. * InvokeRecordColorsUPP()
  274. *
  275. * Availability:
  276. * Non-Carbon CFM: available as macro/inline
  277. * CarbonLib: in CarbonLib 1.0 and later
  278. * Mac OS X: in version 10.0 and later
  279. */
  280. EXTERN_API_C( OSErr )
  281. InvokeRecordColorsUPP(
  282. UInt32 dataRef,
  283. RGBColor * colorsArray,
  284. SInt32 colorCount,
  285. SInt32 * uniqueColors,
  286. RecordColorsUPP userUPP);
  287. #if !OPAQUE_UPP_TYPES
  288. #ifdef __cplusplus
  289. inline DEFINE_API_C(OSErr) InvokeRecordColorsUPP(UInt32 dataRef, RGBColor * colorsArray, SInt32 colorCount, SInt32 * uniqueColors, RecordColorsUPP userUPP) { return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppRecordColorsProcInfo, dataRef, colorsArray, colorCount, uniqueColors); }
  290. #else
  291. #define InvokeRecordColorsUPP(dataRef, colorsArray, colorCount, uniqueColors, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppRecordColorsProcInfo, (dataRef), (colorsArray), (colorCount), (uniqueColors))
  292. #endif
  293. #endif
  294. /*
  295. * InvokeCalcColorTableUPP()
  296. *
  297. * Availability:
  298. * Non-Carbon CFM: available as macro/inline
  299. * CarbonLib: in CarbonLib 1.0 and later
  300. * Mac OS X: in version 10.0 and later
  301. */
  302. EXTERN_API_C( OSErr )
  303. InvokeCalcColorTableUPP(
  304. UInt32 dataRef,
  305. SInt16 colorsRequested,
  306. void * colorBankPtr,
  307. CSpecArray resultPtr,
  308. CalcColorTableUPP userUPP);
  309. #if !OPAQUE_UPP_TYPES
  310. #ifdef __cplusplus
  311. inline DEFINE_API_C(OSErr) InvokeCalcColorTableUPP(UInt32 dataRef, SInt16 colorsRequested, void * colorBankPtr, CSpecArray resultPtr, CalcColorTableUPP userUPP) { return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppCalcColorTableProcInfo, dataRef, colorsRequested, colorBankPtr, resultPtr); }
  312. #else
  313. #define InvokeCalcColorTableUPP(dataRef, colorsRequested, colorBankPtr, resultPtr, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppCalcColorTableProcInfo, (dataRef), (colorsRequested), (colorBankPtr), (resultPtr))
  314. #endif
  315. #endif
  316. /*
  317. * InvokeDisposeColorPickMethodUPP()
  318. *
  319. * Availability:
  320. * Non-Carbon CFM: available as macro/inline
  321. * CarbonLib: in CarbonLib 1.0 and later
  322. * Mac OS X: in version 10.0 and later
  323. */
  324. EXTERN_API_C( OSErr )
  325. InvokeDisposeColorPickMethodUPP(
  326. UInt32 dataRef,
  327. DisposeColorPickMethodUPP userUPP);
  328. #if !OPAQUE_UPP_TYPES
  329. #ifdef __cplusplus
  330. inline DEFINE_API_C(OSErr) InvokeDisposeColorPickMethodUPP(UInt32 dataRef, DisposeColorPickMethodUPP userUPP) { return (OSErr)CALL_ONE_PARAMETER_UPP(userUPP, uppDisposeColorPickMethodProcInfo, dataRef); }
  331. #else
  332. #define InvokeDisposeColorPickMethodUPP(dataRef, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppDisposeColorPickMethodProcInfo, (dataRef))
  333. #endif
  334. #endif
  335. #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
  336. /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
  337. #define NewInitPickMethodProc(userRoutine) NewInitPickMethodUPP(userRoutine)
  338. #define NewRecordColorsProc(userRoutine) NewRecordColorsUPP(userRoutine)
  339. #define NewCalcColorTableProc(userRoutine) NewCalcColorTableUPP(userRoutine)
  340. #define NewDisposeColorPickMethodProc(userRoutine) NewDisposeColorPickMethodUPP(userRoutine)
  341. #define CallInitPickMethodProc(userRoutine, colorsRequested, dataRef, colorBankType) InvokeInitPickMethodUPP(colorsRequested, dataRef, colorBankType, userRoutine)
  342. #define CallRecordColorsProc(userRoutine, dataRef, colorsArray, colorCount, uniqueColors) InvokeRecordColorsUPP(dataRef, colorsArray, colorCount, uniqueColors, userRoutine)
  343. #define CallCalcColorTableProc(userRoutine, dataRef, colorsRequested, colorBankPtr, resultPtr) InvokeCalcColorTableUPP(dataRef, colorsRequested, colorBankPtr, resultPtr, userRoutine)
  344. #define CallDisposeColorPickMethodProc(userRoutine, dataRef) InvokeDisposeColorPickMethodUPP(dataRef, userRoutine)
  345. #endif /* CALL_NOT_IN_CARBON */
  346. /*
  347. * GetPictInfo()
  348. *
  349. * Availability:
  350. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  351. * CarbonLib: in CarbonLib 1.0 and later
  352. * Mac OS X: in version 10.0 and later
  353. */
  354. EXTERN_API( OSErr )
  355. GetPictInfo(
  356. PicHandle thePictHandle,
  357. PictInfo * thePictInfo,
  358. short verb,
  359. short colorsRequested,
  360. short colorPickMethod,
  361. short version) THREEWORDINLINE(0x303C, 0x0800, 0xA831);
  362. /*
  363. * GetPixMapInfo()
  364. *
  365. * Availability:
  366. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  367. * CarbonLib: in CarbonLib 1.0 and later
  368. * Mac OS X: in version 10.0 and later
  369. */
  370. EXTERN_API( OSErr )
  371. GetPixMapInfo(
  372. PixMapHandle thePixMapHandle,
  373. PictInfo * thePictInfo,
  374. short verb,
  375. short colorsRequested,
  376. short colorPickMethod,
  377. short version) THREEWORDINLINE(0x303C, 0x0801, 0xA831);
  378. /*
  379. * NewPictInfo()
  380. *
  381. * Availability:
  382. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  383. * CarbonLib: in CarbonLib 1.0 and later
  384. * Mac OS X: in version 10.0 and later
  385. */
  386. EXTERN_API( OSErr )
  387. NewPictInfo(
  388. PictInfoID * thePictInfoID,
  389. short verb,
  390. short colorsRequested,
  391. short colorPickMethod,
  392. short version) THREEWORDINLINE(0x303C, 0x0602, 0xA831);
  393. /*
  394. * RecordPictInfo()
  395. *
  396. * Availability:
  397. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  398. * CarbonLib: in CarbonLib 1.0 and later
  399. * Mac OS X: in version 10.0 and later
  400. */
  401. EXTERN_API( OSErr )
  402. RecordPictInfo(
  403. PictInfoID thePictInfoID,
  404. PicHandle thePictHandle) THREEWORDINLINE(0x303C, 0x0403, 0xA831);
  405. /*
  406. * RecordPixMapInfo()
  407. *
  408. * Availability:
  409. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  410. * CarbonLib: in CarbonLib 1.0 and later
  411. * Mac OS X: in version 10.0 and later
  412. */
  413. EXTERN_API( OSErr )
  414. RecordPixMapInfo(
  415. PictInfoID thePictInfoID,
  416. PixMapHandle thePixMapHandle) THREEWORDINLINE(0x303C, 0x0404, 0xA831);
  417. /*
  418. * RetrievePictInfo()
  419. *
  420. * Availability:
  421. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  422. * CarbonLib: in CarbonLib 1.0 and later
  423. * Mac OS X: in version 10.0 and later
  424. */
  425. EXTERN_API( OSErr )
  426. RetrievePictInfo(
  427. PictInfoID thePictInfoID,
  428. PictInfo * thePictInfo,
  429. short colorsRequested) THREEWORDINLINE(0x303C, 0x0505, 0xA831);
  430. /*
  431. * DisposePictInfo()
  432. *
  433. * Availability:
  434. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  435. * CarbonLib: in CarbonLib 1.0 and later
  436. * Mac OS X: in version 10.0 and later
  437. */
  438. EXTERN_API( OSErr )
  439. DisposePictInfo(PictInfoID thePictInfoID) THREEWORDINLINE(0x303C, 0x0206, 0xA831);
  440. #if OLDROUTINENAMES
  441. #define DisposPictInfo(thePictInfoID) DisposePictInfo(thePictInfoID)
  442. #endif /* OLDROUTINENAMES */
  443. #if PRAGMA_STRUCT_ALIGN
  444. #pragma options align=reset
  445. #elif PRAGMA_STRUCT_PACKPUSH
  446. #pragma pack(pop)
  447. #elif PRAGMA_STRUCT_PACK
  448. #pragma pack()
  449. #endif
  450. #ifdef PRAGMA_IMPORT_OFF
  451. #pragma import off
  452. #elif PRAGMA_IMPORT
  453. #pragma import reset
  454. #endif
  455. #ifdef __cplusplus
  456. }
  457. #endif
  458. #endif /* __PICTUTILS__ */