ICACamera.pas 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. {
  2. File: ICACamera.p
  3. Contains: Digital still camera-specific selectors and structures
  4. Version: Technology: 1.0
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 2000-2002 by Apple Computer, Inc., all rights reserved.
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 210
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$calling mwpascal}
  21. unit ICACamera;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0210}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes;
  92. {$ALIGN MAC68K}
  93. {
  94. -------------------------------------------------------------------------
  95. Selectors
  96. -------------------------------------------------------------------------
  97. }
  98. const
  99. { Camera properties }
  100. { Refer to section 13 of the PIMA 15740 (PTP) specification for }
  101. { descriptions and usage notes for these standard properties }
  102. kICAPropertyCameraBatteryLevel = FourCharCode('5001'); { UInt8 enum/range }
  103. kICAPropertyCameraFunctionalMode = FourCharCode('5002'); { UInt16 enum }
  104. kICAPropertyCameraImageSize = FourCharCode('5003'); { CFString enum/range }
  105. kICAPropertyCameraCompressionSetting = FourCharCode('5004'); { UInt8 enum/range }
  106. kICAPropertyCameraWhiteBalance = FourCharCode('5005'); { UInt16 enum }
  107. kICAPropertyCameraRGBGain = FourCharCode('5006'); { null terminated string enum/range }
  108. kICAPropertyCameraFNumber = FourCharCode('5007'); { UInt16 enum }
  109. kICAPropertyCameraFocalLength = FourCharCode('5008'); { UInt32 enum/range }
  110. kICAPropertyCameraFocusDistance = FourCharCode('5009'); { UInt16 enum/range }
  111. kICAPropertyCameraFocusMode = FourCharCode('500A'); { UInt16 enum }
  112. kICAPropertyCameraExposureMeteringMode = FourCharCode('500B'); { UInt16 enum }
  113. kICAPropertyCameraFlashMode = FourCharCode('500C'); { UInt16 enum }
  114. kICAPropertyCameraExposureTime = FourCharCode('500D'); { UInt32 enum/range }
  115. kICAPropertyCameraExposureProgramMode = FourCharCode('500E'); { UInt16 enum }
  116. kICAPropertyCameraExposureIndex = FourCharCode('500F'); { UInt16 enum/range }
  117. kICAPropertyCameraExposureBiasCompensation = FourCharCode('5010'); { UInt16 enum/range }
  118. kICAPropertyCameraDateTime = FourCharCode('5011'); { null terminated string none }
  119. kICAPropertyCameraCaptureDelay = FourCharCode('5012'); { UInt32 enum/range }
  120. kICAPropertyCameraStillCaptureMode = FourCharCode('5013'); { UInt16 enum }
  121. kICAPropertyCameraContrast = FourCharCode('5014'); { UInt8 enum/range }
  122. kICAPropertyCameraSharpness = FourCharCode('5015'); { UInt8 enum/range }
  123. kICAPropertyCameraDigitalZoom = FourCharCode('5016'); { UInt8 enum/range }
  124. kICAPropertyCameraEffectMode = FourCharCode('5017'); { UInt16 enum }
  125. kICAPropertyCameraBurstNumber = FourCharCode('5018'); { UInt16 enum/range }
  126. kICAPropertyCameraBurstInterval = FourCharCode('5019'); { UInt16 enum/range }
  127. kICAPropertyCameraTimelapseNumber = FourCharCode('501A'); { UInt16 enum/range }
  128. kICAPropertyCameraTimelapseInterval = FourCharCode('501B'); { UInt32 enum/range }
  129. kICAPropertyCameraFocusMeteringMode = FourCharCode('501C'); { UInt16 enum }
  130. { Refer to section 5.5.3 of the PTP spec }
  131. kICAPropertyCameraStorageType = FourCharCode('stor'); { UInt16 }
  132. kICAPropertyCameraFilesystemType = FourCharCode('fsys'); { UInt16 }
  133. kICAPropertyCameraAccessCapability = FourCharCode('acap'); { UInt16 }
  134. kICAPropertyCameraMaxCapacity = FourCharCode('maxc'); { UInt64 }
  135. kICAPropertyCameraFreeSpaceInBytes = FourCharCode('fres'); { UInt64 }
  136. kICAPropertyCameraFreeSpaceInImages = FourCharCode('frei'); { UInt32 }
  137. kICAPropertyCameraStorageDescription = FourCharCode('stod'); { null terminated string }
  138. kICAPropertyCameraVolumeLabel = FourCharCode('voll'); { null terminated string }
  139. { ICA specific }
  140. kICAPropertyCameraIcon = FourCharCode('icon'); { ICAThumbnail }
  141. kICAPropertyCameraSupportedMessages = FourCharCode('msgs'); { array of OSTypes }
  142. { Values for kICAPropertyCameraStorageType }
  143. kICAStorageFixedROM = $0001;
  144. kICAStorageRemovableROM = $0002;
  145. kICAStorageFixedRAM = $0003;
  146. kICAStorageRemovableRAM = $0004;
  147. { Values for kICAPropertyCameraFilesystemType }
  148. kICAFileystemGenericFlat = $0001;
  149. kICAFileystemGenericHierarchical = $0002;
  150. kICAFileystemDCF = $0003;
  151. { Values for kICAPropertyCameraAccessCapability }
  152. kICAAccessReadWrite = $0000;
  153. kICAAccessReadOnly = $0001;
  154. kICAAccessReadOnlyWithObjectDeletion = $0002;
  155. { Camera messages }
  156. kICAMessageCameraCaptureNewImage = FourCharCode('ccni');
  157. kICAMessageCameraDeleteOne = FourCharCode('del1');
  158. kICAMessageCameraDeleteAll = FourCharCode('dela');
  159. kICAMessageCameraSyncClock = FourCharCode('sclk');
  160. kICAMessageCameraUploadData = FourCharCode('load');
  161. {$ALIGN MAC68K}
  162. end.