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.

315 lines
7.0 KiB

  1. /*
  2. File: Streaming.h
  3. Contains: xxx put contents here xxx
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 1994, 1996 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. /*.#endif forMasterInterfaces*/
  11. #ifndef __STREAMING__
  12. #define __STREAMING__
  13. #ifndef __CONDITIONALMACROS__
  14. #include <ConditionalMacros.h>
  15. #endif
  16. #if PRAGMA_ONCE
  17. #pragma once
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #if PRAGMA_IMPORT
  23. #pragma import on
  24. #endif
  25. #if PRAGMA_STRUCT_ALIGN
  26. #pragma options align=mac68k
  27. #elif PRAGMA_STRUCT_PACKPUSH
  28. #pragma pack(push, 2)
  29. #elif PRAGMA_STRUCT_PACK
  30. #pragma pack(2)
  31. #endif
  32. /* interfaces to streammode for c*/
  33. /* streaming constants for foreground and background streaming*/
  34. enum {
  35. AlphaStream = 1,
  36. GraphicsStream = 2
  37. };
  38. /* mode bits*/
  39. enum {
  40. CopyToAlpha = 0x0200,
  41. CopyToGraphics = 0x0100
  42. };
  43. #if CALL_NOT_IN_CARBON
  44. /*
  45. * AlphaVersion()
  46. *
  47. * Availability:
  48. * Non-Carbon CFM: not available
  49. * CarbonLib: not available
  50. * Mac OS X: not available
  51. */
  52. EXTERN_API( short )
  53. AlphaVersion(void) TWOWORDINLINE(0x7000, 0xABC0);
  54. /*
  55. * SetForeStream()
  56. *
  57. * Availability:
  58. * Non-Carbon CFM: not available
  59. * CarbonLib: not available
  60. * Mac OS X: not available
  61. */
  62. EXTERN_API( long )
  63. SetForeStream(long streamID) TWOWORDINLINE(0x7001, 0xABC0);
  64. /*
  65. * SetForeTransparency()
  66. *
  67. * Availability:
  68. * Non-Carbon CFM: not available
  69. * CarbonLib: not available
  70. * Mac OS X: not available
  71. */
  72. EXTERN_API( void )
  73. SetForeTransparency(short streamRatio) TWOWORDINLINE(0x7002, 0xABC0);
  74. /*
  75. * SetBackStream()
  76. *
  77. * Availability:
  78. * Non-Carbon CFM: not available
  79. * CarbonLib: not available
  80. * Mac OS X: not available
  81. */
  82. EXTERN_API( long )
  83. SetBackStream(long streamID) TWOWORDINLINE(0x7003, 0xABC0);
  84. /*
  85. * SetBackTransparency()
  86. *
  87. * Availability:
  88. * Non-Carbon CFM: not available
  89. * CarbonLib: not available
  90. * Mac OS X: not available
  91. */
  92. EXTERN_API( void )
  93. SetBackTransparency(short streamRatio) TWOWORDINLINE(0x7004, 0xABC0);
  94. /*
  95. * GetForeStream()
  96. *
  97. * Availability:
  98. * Non-Carbon CFM: not available
  99. * CarbonLib: not available
  100. * Mac OS X: not available
  101. */
  102. EXTERN_API( short )
  103. GetForeStream(void) TWOWORDINLINE(0x7005, 0xABC0);
  104. /*
  105. * GetForeTransparency()
  106. *
  107. * Availability:
  108. * Non-Carbon CFM: not available
  109. * CarbonLib: not available
  110. * Mac OS X: not available
  111. */
  112. EXTERN_API( short )
  113. GetForeTransparency(void) TWOWORDINLINE(0x7006, 0xABC0);
  114. /*
  115. * GetBackStream()
  116. *
  117. * Availability:
  118. * Non-Carbon CFM: not available
  119. * CarbonLib: not available
  120. * Mac OS X: not available
  121. */
  122. EXTERN_API( short )
  123. GetBackStream(void) TWOWORDINLINE(0x7007, 0xABC0);
  124. /*
  125. * GetBackTransparency()
  126. *
  127. * Availability:
  128. * Non-Carbon CFM: not available
  129. * CarbonLib: not available
  130. * Mac OS X: not available
  131. */
  132. EXTERN_API( short )
  133. GetBackTransparency(void) TWOWORDINLINE(0x7008, 0xABC0);
  134. /*
  135. * ResizeGrafVars()
  136. *
  137. * Availability:
  138. * Non-Carbon CFM: not available
  139. * CarbonLib: not available
  140. * Mac OS X: not available
  141. */
  142. EXTERN_API( void )
  143. ResizeGrafVars(void) TWOWORDINLINE(0x7009, 0xABC0);
  144. /*
  145. * GetStreamMode()
  146. *
  147. * Availability:
  148. * Non-Carbon CFM: not available
  149. * CarbonLib: not available
  150. * Mac OS X: not available
  151. */
  152. EXTERN_API( short )
  153. GetStreamMode(void) TWOWORDINLINE(0x700A, 0xABC0);
  154. /* these are thew new ones*/
  155. /*
  156. * SetForeAlpha()
  157. *
  158. * Availability:
  159. * Non-Carbon CFM: not available
  160. * CarbonLib: not available
  161. * Mac OS X: not available
  162. */
  163. EXTERN_API( short )
  164. SetForeAlpha(
  165. long streamType,
  166. short value) TWOWORDINLINE(0x700B, 0xABC0);
  167. /*
  168. * SetBackAlpha()
  169. *
  170. * Availability:
  171. * Non-Carbon CFM: not available
  172. * CarbonLib: not available
  173. * Mac OS X: not available
  174. */
  175. EXTERN_API( short )
  176. SetBackAlpha(
  177. long streamType,
  178. short value) TWOWORDINLINE(0x700C, 0xABC0);
  179. /*
  180. * GetForeAlpha()
  181. *
  182. * Availability:
  183. * Non-Carbon CFM: not available
  184. * CarbonLib: not available
  185. * Mac OS X: not available
  186. */
  187. EXTERN_API( short )
  188. GetForeAlpha(void) TWOWORDINLINE(0x700D, 0xABC0);
  189. /*
  190. * GetBackAlpha()
  191. *
  192. * Availability:
  193. * Non-Carbon CFM: not available
  194. * CarbonLib: not available
  195. * Mac OS X: not available
  196. */
  197. EXTERN_API( short )
  198. GetBackAlpha(void) TWOWORDINLINE(0x700E, 0xABC0);
  199. /*
  200. * GetForeAlphaMask()
  201. *
  202. * Availability:
  203. * Non-Carbon CFM: not available
  204. * CarbonLib: not available
  205. * Mac OS X: not available
  206. */
  207. EXTERN_API( short )
  208. GetForeAlphaMask(void) TWOWORDINLINE(0x700F, 0xABC0);
  209. /*
  210. * GetBackAlphaMask()
  211. *
  212. * Availability:
  213. * Non-Carbon CFM: not available
  214. * CarbonLib: not available
  215. * Mac OS X: not available
  216. */
  217. EXTERN_API( short )
  218. GetBackAlphaMask(void) TWOWORDINLINE(0x7010, 0xABC0);
  219. #endif /* CALL_NOT_IN_CARBON */
  220. #if !TARGET_OS_MAC
  221. #define AlphaVersion() 0
  222. #define SetForeStream(streamID) 0
  223. #define SetForeTransparency(streamRatio)
  224. #define SetBackStream(streamID) 0
  225. #define SetBackTransparency(streamRatio)
  226. #define GetForeStream() 0
  227. #define GetForeTransparency() 0
  228. #define GetBackStream() 0
  229. #define GetBackTransparency() 0
  230. #define GetStreamMode() 0
  231. #define SetForeAlpha( streamType, value) 0
  232. #define SetBackAlpha( streamType, value) 0
  233. #define GetForeAlpha() 0
  234. #define GetBackAlpha() 0
  235. #define GetForeAlphaMask() 0
  236. #define GetBackAlphaMask() 0
  237. #endif /* !TARGET_OS_MAC */
  238. #if PRAGMA_STRUCT_ALIGN
  239. #pragma options align=reset
  240. #elif PRAGMA_STRUCT_PACKPUSH
  241. #pragma pack(pop)
  242. #elif PRAGMA_STRUCT_PACK
  243. #pragma pack()
  244. #endif
  245. #ifdef PRAGMA_IMPORT_OFF
  246. #pragma import off
  247. #elif PRAGMA_IMPORT
  248. #pragma import reset
  249. #endif
  250. #ifdef __cplusplus
  251. }
  252. #endif
  253. #endif /* __STREAMING__ */