Mac OS 9
QTSMovie.h
Go to the documentation of this file.
1 
18 #ifndef __QTSMOVIE__
19 #define __QTSMOVIE__
20 
21 #ifndef __COMPONENTS__
22 #include <Components.h>
23 #endif
24 
25 #ifndef __MOVIES__
26 #include <Movies.h>
27 #endif
28 
29 #ifndef __QUICKTIMESTREAMING__
30 #include <QuickTimeStreaming.h>
31 #endif
32 
33 #if PRAGMA_ONCE
34 #pragma once
35 #endif
36 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
42 #if PRAGMA_IMPORT
43 #pragma import on
44 #endif
45 
46 #if PRAGMA_STRUCT_ALIGN
47 #pragma options align = mac68k
48 #elif PRAGMA_STRUCT_PACKPUSH
49 #pragma pack(push, 2)
50 #elif PRAGMA_STRUCT_PACK
51 #pragma pack(2)
52 #endif
53 
54  enum
55  {
56  kQTSStreamMediaType = FOUR_CHAR_CODE('strm')
57  };
58 
60  {
61  long descSize;
62  long dataFormat;
63  long resvd1;
64  short resvd2;
65  short dataRefIndex;
66  UInt32 version;
67  UInt32 resvd3;
68  SInt32 flags;
72  };
76  enum
77  {
78  kQTSSampleDescriptionVersion1 = 1L
79  };
80 
81  enum
82  {
83  kQTSDefaultMediaTimeScale = 600L
84  };
85 
87  enum
88  {
89  kQTSSampleDescPassSampleDataAsHandleFlag = 0x00000001
90  };
91 
100  enum
101  {
102  kQTSMediaPresentationInfo =
103  FOUR_CHAR_CODE('pres'),
105  FOUR_CHAR_CODE('noti'),
106  kQTSMediaTotalDataRateInfo = FOUR_CHAR_CODE('dtrt'),
107  kQTSMediaLostPercentInfo = FOUR_CHAR_CODE('lspc'),
108  kQTSMediaNumStreamsInfo = FOUR_CHAR_CODE('nstr'),
110  FOUR_CHAR_CODE('isdc')
111  };
112 
114  {
115  QTSPresentation presentationID;
116  };
119  {
120  QTSNotificationUPP notificationProc;
121  void *notificationRefCon;
122  SInt32 flags;
123  };
126  {
127  SInt32 index;
128  OSType returnedMediaType;
129  SampleDescriptionHandle returnedSampleDescription;
130  };
136  enum
137  {
138  kQTSMediaSetInfoSelect = 0x0100,
139  kQTSMediaGetInfoSelect = 0x0101,
140  kQTSMediaSetIndStreamInfoSelect = 0x0102,
141  kQTSMediaGetIndStreamInfoSelect = 0x0103
142  };
143 
156  ComponentResult
157  QTSMediaSetInfo(MediaHandler mh, OSType inSelector, void *ioParams);
158 
168  ComponentResult
169  QTSMediaGetInfo(MediaHandler mh, OSType inSelector, void *ioParams);
170 
180  ComponentResult
181  QTSMediaSetIndStreamInfo(MediaHandler mh, SInt32 inIndex, OSType inSelector,
182  void *ioParams);
183 
193  ComponentResult
194  QTSMediaGetIndStreamInfo(MediaHandler mh, SInt32 inIndex, OSType inSelector,
195  void *ioParams);
196 
200  enum
201  {
202  kQTSHintMediaType = FOUR_CHAR_CODE('hint')
203  };
204 
205  enum
206  {
207  kQTSHintTrackReference = FOUR_CHAR_CODE('hint')
208  };
209 
211  enum
212  {
213  uppQTSMediaSetInfoProcInfo = 0x00000FF0,
214  uppQTSMediaGetInfoProcInfo = 0x00000FF0,
215  uppQTSMediaSetIndStreamInfoProcInfo = 0x00003FF0,
216  uppQTSMediaGetIndStreamInfoProcInfo = 0x00003FF0
217  };
218 
219 #if PRAGMA_STRUCT_ALIGN
220 #pragma options align = reset
221 #elif PRAGMA_STRUCT_PACKPUSH
222 #pragma pack(pop)
223 #elif PRAGMA_STRUCT_PACK
224 #pragma pack()
225 #endif
226 
227 #ifdef PRAGMA_IMPORT_OFF
228 #pragma import off
229 #elif PRAGMA_IMPORT
230 #pragma import reset
231 #endif
232 
233 #ifdef __cplusplus
234 }
235 #endif
236 
237 #endif
Component Manager Interfaces.
QuickTime Interfaces.
ComponentResult QTSMediaGetIndStreamInfo(MediaHandler mh, SInt32 inIndex, OSType inSelector, void *ioParams)
ComponentResult QTSMediaGetInfo(MediaHandler mh, OSType inSelector, void *ioParams)
ComponentResult QTSMediaSetInfo(MediaHandler mh, OSType inSelector, void *ioParams)
@ kQTSMediaNumStreamsInfo
Definition: QTSMovie.h:108
@ kQTSMediaLostPercentInfo
Definition: QTSMovie.h:107
@ kQTSMediaIndSampleDescriptionInfo
Definition: QTSMovie.h:109
@ kQTSMediaTotalDataRateInfo
Definition: QTSMovie.h:106
@ kQTSMediaNotificationInfo
Definition: QTSMovie.h:104
ComponentResult QTSMediaSetIndStreamInfo(MediaHandler mh, SInt32 inIndex, OSType inSelector, void *ioParams)
QuickTime Interfaces.
Definition: Components.h:220
Definition: QTSMovie.h:126
Definition: QTSMovie.h:119
Definition: QTSMovie.h:114
Definition: QuickTimeStreaming.h:72
Definition: QTSMovie.h:60
SInt32 flags
Definition: QTSMovie.h:68
short dataRefIndex
Definition: QTSMovie.h:65
short resvd2
Definition: QTSMovie.h:64
Definition: Movies.h:239