Mac OS 9
MediaHandlers.h
Go to the documentation of this file.
1 
19 #ifndef __MEDIAHANDLERS__
20 #define __MEDIAHANDLERS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __MACTYPES__
27 #include <MacTypes.h>
28 #endif
29 
30 #ifndef __COMPONENTS__
31 #include <Components.h>
32 #endif
33 
34 #ifndef __SOUND__
35 #include <Sound.h>
36 #endif
37 
38 #ifndef __MOVIES__
39 #include <Movies.h>
40 #endif
41 
42 #if PRAGMA_ONCE
43 #pragma once
44 #endif
45 
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif
50 
51 #if PRAGMA_IMPORT
52 #pragma import on
53 #endif
54 
55 #if PRAGMA_STRUCT_ALIGN
56 #pragma options align = mac68k
57 #elif PRAGMA_STRUCT_PACKPUSH
58 #pragma pack(push, 2)
59 #elif PRAGMA_STRUCT_PACK
60 #pragma pack(2)
61 #endif
62 
63  typedef CALLBACK_API(void, PrePrerollCompleteProcPtr)(MediaHandler mh,
64  OSErr err, void *refcon);
65  typedef STACK_UPP_TYPE(PrePrerollCompleteProcPtr) PrePrerollCompleteUPP;
66  enum
67  {
68  handlerHasSpatial = 1 << 0,
69  handlerCanClip = 1 << 1,
70  handlerCanMatte = 1 << 2,
71  handlerCanTransferMode = 1 << 3,
72  handlerNeedsBuffer = 1 << 4,
73  handlerNoIdle = 1 << 5,
74  handlerNoScheduler = 1 << 6,
75  handlerWantsTime = 1 << 7,
76  handlerCGrafPortOnly = 1 << 8,
77  handlerCanSend = 1 << 9,
78  handlerCanHandleComplexMatrix = 1 << 10,
79  handlerWantsDestinationPixels = 1 << 11,
80  handlerCanSendImageData = 1 << 12,
81  handlerCanPicSave = 1 << 13
82  };
83 
84  /* media task flags */
85  enum
86  {
87  mMustDraw = 1 << 3,
88  mAtEnd = 1 << 4,
89  mPreflightDraw = 1 << 5,
90  mSyncDrawing = 1 << 6,
91  mPrecompositeOnly = 1 << 9,
92  mSoundOnly = 1 << 10,
93  mDoIdleActionsBeforeDraws = 1 << 11,
94  mDisableIdleActions = 1 << 12
95  };
96 
97  /* media task result flags */
98  enum
99  {
100  mDidDraw = 1 << 0,
101  mNeedsToDraw = 1 << 2,
102  mDrawAgain = 1 << 3,
103  mPartialDraw = 1 << 4,
104  mWantIdleActions = 1 << 5
105  };
106 
107  enum
108  {
109  forceUpdateRedraw = 1 << 0,
110  forceUpdateNewBuffer = 1 << 1
111  };
112 
113  /* media hit test flags */
114  enum
115  {
116  mHitTestBounds =
117  1L << 0, /* point must only be within targetRefCon's bounding box */
118  mHitTestImage =
119  1L << 1, /* point must be within the shape of the targetRefCon's image */
120  mHitTestInvisible = 1L << 2, /* invisible targetRefCon's may be hit tested */
121  mHitTestIsClick = 1L << 3 /* for codecs that want mouse events */
122  };
123 
124  /* media is opaque flags */
125  enum
126  {
127  mOpaque = 1L << 0,
128  mInvisible = 1L << 1
129  };
130 
131  /* MediaSetPublicInfo/MediaGetPublicInfo selectors */
132  enum
133  {
134  kMediaQTIdleFrequencySelector = FOUR_CHAR_CODE('idfq')
135  };
136 
138  {
139  short version;
140  Movie theMovie;
141  Track theTrack;
142  Media theMedia;
143  TimeScale movieScale;
144  TimeScale mediaScale;
145  TimeValue movieDuration;
146  TimeValue trackDuration;
147  TimeValue mediaDuration;
148  Fixed effectiveRate;
149  TimeBase timeBase;
150  short volume;
151  Fixed width;
152  Fixed height;
153  MatrixRecord trackMovieMatrix;
154  CGrafPtr moviePort;
155  GDHandle movieGD;
156  PixMapHandle trackMatte;
157  QTAtomContainer inputMap;
158  };
160  enum
161  {
162  kMediaVideoParamBrightness = 1,
163  kMediaVideoParamContrast = 2,
164  kMediaVideoParamHue = 3,
165  kMediaVideoParamSharpness = 4,
166  kMediaVideoParamSaturation = 5,
167  kMediaVideoParamBlackLevel = 6,
168  kMediaVideoParamWhiteLevel = 7
169  };
170 
171  /* These are for MediaGetInfo() and MediaSetInfo().*/
172  enum
173  {
174  kMHInfoEncodedFrameRate =
175  FOUR_CHAR_CODE('orat') /* Parameter is a MHInfoEncodedFrameRateRecord*.*/
176  };
177 
178  /* This holds the frame rate at which the track was encoded.*/
180  {
181  Fixed encodedFrameRate;
182  };
184 
185  typedef Handle *dataHandlePtr;
186  typedef dataHandlePtr *dataHandleHandle;
187 
189  {
190  Movie movie;
191  DoMCActionUPP doMCActionCallbackProc;
192  long callBackRefcon;
193  Track track;
194  long trackObjectRefCon;
195  Track defaultTrack;
196  long defaultObjectRefCon;
197  long reserved1;
198  long reserved2;
199  };
203  {
204  short count;
205  UnsignedFixedPtr frequency; /* pointer to array of frequencies*/
206  };
218  ComponentResult
220  QTAtomContainer actionContainer,
221  QTAtom actionAtom,
224 
225  /* MediaCallRange2 */
226  /* These are unique to each type of media handler */
227  /* They are also included in the public interfaces */
228 
229  /***** These are the calls for dealing with the Generic media handler *****/
239  ComponentResult
241 
251  ComponentResult
252  MediaSetHandlerCapabilities(MediaHandler mh, long flags, long flagsMask);
253 
263  ComponentResult
264  MediaIdle(MediaHandler mh, TimeValue atMediaTime, long flagsIn, long *flagsOut,
265  const TimeRecord *movieTime);
266 
276  ComponentResult
278 
288  ComponentResult
290 
300  ComponentResult
302 
312  ComponentResult
314 
324  ComponentResult
325  MediaGGetStatus(MediaHandler mh, ComponentResult *statusErr);
326 
336  ComponentResult
338 
348  ComponentResult
349  MediaSetMediaTimeScale(MediaHandler mh, TimeScale newTimeScale);
350 
360  ComponentResult
361  MediaSetMovieTimeScale(MediaHandler mh, TimeScale newTimeScale);
362 
372  ComponentResult
374 
384  ComponentResult
386 
396  ComponentResult
398 
408  ComponentResult
409  MediaSetMatrix(MediaHandler mh, MatrixRecord *trackMovieMatrix);
410 
420  ComponentResult
422 
432  ComponentResult
433  MediaSetGraphicsMode(MediaHandler mh, long mode, const RGBColor *opColor);
434 
444  ComponentResult
445  MediaGetGraphicsMode(MediaHandler mh, long *mode, RGBColor *opColor);
446 
456  ComponentResult
457  MediaGSetVolume(MediaHandler mh, short volume);
458 
468  ComponentResult
469  MediaSetSoundBalance(MediaHandler mh, short balance);
470 
480  ComponentResult
481  MediaGetSoundBalance(MediaHandler mh, short *balance);
482 
492  ComponentResult
494 
504  ComponentResult
505  MediaGetSrcRgn(MediaHandler mh, RgnHandle rgn, TimeValue atMediaTime);
506 
516  ComponentResult
517  MediaPreroll(MediaHandler mh, TimeValue time, Fixed rate);
518 
528  ComponentResult
530 
540  ComponentResult
541  MediaHasCharacteristic(MediaHandler mh, OSType characteristic, Boolean *hasIt);
542 
552  ComponentResult
554  CTabHandle ctab);
555 
565  ComponentResult
566  MediaSetHints(MediaHandler mh, long hints);
567 
577  ComponentResult
578  MediaGetName(MediaHandler mh, Str255 name, long requestedLanguage,
579  long *actualLanguage);
580 
590  ComponentResult
591  MediaForceUpdate(MediaHandler mh, long forceUpdateFlags);
592 
602  ComponentResult
604 
614  ComponentResult
615  MediaGSetActiveSegment(MediaHandler mh, TimeValue activeStart,
616  TimeValue activeDuration);
617 
627  ComponentResult
629 
639  ComponentResult
640  MediaGetNextStepTime(MediaHandler mh, short flags, TimeValue mediaTimeIn,
641  TimeValue *mediaTimeOut, Fixed rate);
642 
652  ComponentResult
654  long dataDescriptionSeed, Handle dataDescription,
655  void *data, long dataSize,
656  ICMCompletionProcRecordPtr asyncCompletionProc,
657  ICMConvertDataFormatUPP transferProc, void *refCon);
658 
668  ComponentResult
670 
680  ComponentResult
682 
692  ComponentResult
693  MediaGetSampleDataPointer(MediaHandler mh, long sampleNum, Ptr *dataPtr,
694  long *dataSize, long *sampleDescIndex);
695 
705  ComponentResult
707 
717  ComponentResult
719 
729  ComponentResult
730  MediaSetTrackInputMapReference(MediaHandler mh, QTAtomContainer inputMap);
731 
741  ComponentResult
742  MediaSetVideoParam(MediaHandler mh, long whichParam, unsigned short *value);
743 
753  ComponentResult
754  MediaGetVideoParam(MediaHandler mh, long whichParam, unsigned short *value);
755 
765  ComponentResult
766  MediaCompare(MediaHandler mh, Boolean *isOK, Media srcMedia,
767  ComponentInstance srcMediaComponent);
768 
778  ComponentResult
780 
790  ComponentResult
792 
802  ComponentResult
804 
814  ComponentResult
816 
826  ComponentResult
828 
838  ComponentResult
840  SampleDescriptionHandle sampleDescriptionH);
841 
851  ComponentResult
853  SampleDescriptionHandle sampleDescriptionH);
854 
864  ComponentResult
866  long dataDescriptionSeed, Handle dataDescription,
867  void *data, long dataSize,
868  ICMCompletionProcRecordPtr asyncCompletionProc,
869  const ICMFrameTimeRecord *frameTime,
870  ICMConvertDataFormatUPP transferProc,
871  void *refCon);
872 
882  ComponentResult
884 
894  ComponentResult
895  MediaGetURLLink(MediaHandler mh, Point displayWhere, Handle *urlLink);
896 
906  ComponentResult
907  MediaMakeMediaTimeTable(MediaHandler mh, long **offsets, TimeValue startTime,
908  TimeValue endTime, TimeValue timeIncrement,
909  short firstDataRefIndex, short lastDataRefIndex,
910  long *retDataRefSkew);
911 
921  ComponentResult
923  long *targetRefCon);
924 
934  ComponentResult
935  MediaHitTestTargetRefCon(MediaHandler mh, long targetRefCon, long flags,
936  Point loc, Boolean *wasHit);
937 
947  ComponentResult
949  long targetRefCon, QTAtomContainer *container,
950  QTAtom *atom);
951 
961  ComponentResult
962  MediaDisposeTargetRefCon(MediaHandler mh, long targetRefCon);
963 
973  ComponentResult
974  MediaTargetRefConsEqual(MediaHandler mh, long firstRefCon, long secondRefCon,
975  Boolean *equal);
976 
986  ComponentResult
987  MediaSetActionsCallback(MediaHandler mh, ActionsUPP actionsCallbackProc,
988  void *refcon);
989 
999  ComponentResult
1000  MediaPrePrerollBegin(MediaHandler mh, TimeValue time, Fixed rate,
1001  PrePrerollCompleteUPP completeProc, void *refcon);
1002 
1012  ComponentResult
1014 
1024  ComponentResult
1026 
1036  ComponentResult
1038 
1048  ComponentResult
1050 
1060  ComponentResult
1062  QTAtom atom, long *targetRefCon);
1063 
1073  ComponentResult
1075 
1085  ComponentResult
1087 
1097  ComponentResult
1099 
1109  ComponentResult
1111 
1121  ComponentResult
1123 
1133  ComponentResult
1135  DoMCActionUPP doMCActionCallbackProc, void *refcon);
1136 
1146  ComponentResult
1147  MediaGetErrorString(MediaHandler mh, ComponentResult theError,
1148  Str255 errorString);
1149 
1159  ComponentResult
1161  MediaEQSpectrumBandsRecordPtr spectrumInfo);
1162 
1172  ComponentResult
1174  MediaEQSpectrumBandsRecordPtr spectrumInfo);
1175 
1185  ComponentResult
1187 
1197  ComponentResult
1199 
1209  ComponentResult
1210  MediaSetSoundBassAndTreble(MediaHandler mh, short bass, short treble);
1211 
1221  ComponentResult
1222  MediaGetSoundBassAndTreble(MediaHandler mh, short *bass, short *treble);
1223 
1233  ComponentResult
1235 
1245  ComponentResult
1247 
1257  ComponentResult
1258  MediaGetMediaLoadState(MediaHandler mh, long *mediaLoadState);
1259 
1269  ComponentResult
1271 
1281  ComponentResult
1282  MediaEmptySampleCache(MediaHandler mh, long sampleNum, long sampleCount);
1283 
1293  ComponentResult
1294  MediaGetPublicInfo(MediaHandler mh, OSType infoSelector, void *infoDataPtr,
1295  Size *ioDataSize);
1296 
1306  ComponentResult
1307  MediaSetPublicInfo(MediaHandler mh, OSType infoSelector, void *infoDataPtr,
1308  Size dataSize);
1309 
1319  ComponentResult
1321  CodecComponentHandle *userPreferredCodecs);
1322 
1332  ComponentResult
1334  CodecComponentHandle userPreferredCodecs);
1335 
1336  /* selectors for component calls */
1337  enum
1338  {
1339  kCallComponentExecuteWiredActionSelect = -9,
1340  kMediaInitializeSelect = 0x0501,
1341  kMediaSetHandlerCapabilitiesSelect = 0x0502,
1342  kMediaIdleSelect = 0x0503,
1343  kMediaGetMediaInfoSelect = 0x0504,
1344  kMediaPutMediaInfoSelect = 0x0505,
1345  kMediaSetActiveSelect = 0x0506,
1346  kMediaSetRateSelect = 0x0507,
1347  kMediaGGetStatusSelect = 0x0508,
1348  kMediaTrackEditedSelect = 0x0509,
1349  kMediaSetMediaTimeScaleSelect = 0x050A,
1350  kMediaSetMovieTimeScaleSelect = 0x050B,
1351  kMediaSetGWorldSelect = 0x050C,
1352  kMediaSetDimensionsSelect = 0x050D,
1353  kMediaSetClipSelect = 0x050E,
1354  kMediaSetMatrixSelect = 0x050F,
1355  kMediaGetTrackOpaqueSelect = 0x0510,
1356  kMediaSetGraphicsModeSelect = 0x0511,
1357  kMediaGetGraphicsModeSelect = 0x0512,
1358  kMediaGSetVolumeSelect = 0x0513,
1359  kMediaSetSoundBalanceSelect = 0x0514,
1360  kMediaGetSoundBalanceSelect = 0x0515,
1361  kMediaGetNextBoundsChangeSelect = 0x0516,
1362  kMediaGetSrcRgnSelect = 0x0517,
1363  kMediaPrerollSelect = 0x0518,
1364  kMediaSampleDescriptionChangedSelect = 0x0519,
1365  kMediaHasCharacteristicSelect = 0x051A,
1366  kMediaGetOffscreenBufferSizeSelect = 0x051B,
1367  kMediaSetHintsSelect = 0x051C,
1368  kMediaGetNameSelect = 0x051D,
1369  kMediaForceUpdateSelect = 0x051E,
1370  kMediaGetDrawingRgnSelect = 0x051F,
1371  kMediaGSetActiveSegmentSelect = 0x0520,
1372  kMediaInvalidateRegionSelect = 0x0521,
1373  kMediaGetNextStepTimeSelect = 0x0522,
1374  kMediaSetNonPrimarySourceDataSelect = 0x0523,
1375  kMediaChangedNonPrimarySourceSelect = 0x0524,
1376  kMediaTrackReferencesChangedSelect = 0x0525,
1377  kMediaGetSampleDataPointerSelect = 0x0526,
1378  kMediaReleaseSampleDataPointerSelect = 0x0527,
1379  kMediaTrackPropertyAtomChangedSelect = 0x0528,
1380  kMediaSetTrackInputMapReferenceSelect = 0x0529,
1381  kMediaSetVideoParamSelect = 0x052B,
1382  kMediaGetVideoParamSelect = 0x052C,
1383  kMediaCompareSelect = 0x052D,
1384  kMediaGetClockSelect = 0x052E,
1385  kMediaSetSoundOutputComponentSelect = 0x052F,
1386  kMediaGetSoundOutputComponentSelect = 0x0530,
1387  kMediaSetSoundLocalizationDataSelect = 0x0531,
1388  kMediaGetInvalidRegionSelect = 0x053C,
1389  kMediaSampleDescriptionB2NSelect = 0x053E,
1390  kMediaSampleDescriptionN2BSelect = 0x053F,
1391  kMediaQueueNonPrimarySourceDataSelect = 0x0540,
1392  kMediaFlushNonPrimarySourceDataSelect = 0x0541,
1393  kMediaGetURLLinkSelect = 0x0543,
1394  kMediaMakeMediaTimeTableSelect = 0x0545,
1395  kMediaHitTestForTargetRefConSelect = 0x0546,
1396  kMediaHitTestTargetRefConSelect = 0x0547,
1397  kMediaGetActionsForQTEventSelect = 0x0548,
1398  kMediaDisposeTargetRefConSelect = 0x0549,
1399  kMediaTargetRefConsEqualSelect = 0x054A,
1400  kMediaSetActionsCallbackSelect = 0x054B,
1401  kMediaPrePrerollBeginSelect = 0x054C,
1402  kMediaPrePrerollCancelSelect = 0x054D,
1403  kMediaEnterEmptyEditSelect = 0x054F,
1404  kMediaCurrentMediaQueuedDataSelect = 0x0550,
1405  kMediaGetEffectiveVolumeSelect = 0x0551,
1406  kMediaResolveTargetRefConSelect = 0x0552,
1407  kMediaGetSoundLevelMeteringEnabledSelect = 0x0553,
1408  kMediaSetSoundLevelMeteringEnabledSelect = 0x0554,
1409  kMediaGetSoundLevelMeterInfoSelect = 0x0555,
1410  kMediaGetEffectiveSoundBalanceSelect = 0x0556,
1411  kMediaSetScreenLockSelect = 0x0557,
1412  kMediaSetDoMCActionCallbackSelect = 0x0558,
1413  kMediaGetErrorStringSelect = 0x0559,
1414  kMediaGetSoundEqualizerBandsSelect = 0x055A,
1415  kMediaSetSoundEqualizerBandsSelect = 0x055B,
1416  kMediaGetSoundEqualizerBandLevelsSelect = 0x055C,
1417  kMediaDoIdleActionsSelect = 0x055D,
1418  kMediaSetSoundBassAndTrebleSelect = 0x055E,
1419  kMediaGetSoundBassAndTrebleSelect = 0x055F,
1420  kMediaTimeBaseChangedSelect = 0x0560,
1421  kMediaMCIsPlayerEventSelect = 0x0561,
1422  kMediaGetMediaLoadStateSelect = 0x0562,
1423  kMediaVideoOutputChangedSelect = 0x0563,
1424  kMediaEmptySampleCacheSelect = 0x0564,
1425  kMediaGetPublicInfoSelect = 0x0565,
1426  kMediaSetPublicInfoSelect = 0x0566,
1427  kMediaGetUserPreferredCodecsSelect = 0x0567,
1428  kMediaSetUserPreferredCodecsSelect = 0x0568
1429  };
1430 #if CALL_NOT_IN_CARBON
1439  PrePrerollCompleteUPP
1440  NewPrePrerollCompleteUPP(PrePrerollCompleteProcPtr userRoutine);
1441 #if !OPAQUE_UPP_TYPES
1442  enum
1443  {
1444  uppPrePrerollCompleteProcInfo = 0x00000EC0
1445  }; /* pascal no_return_value Func(4_bytes, 2_bytes, 4_bytes) */
1446 #ifdef __cplusplus
1447  inline PrePrerollCompleteUPP
1448  NewPrePrerollCompleteUPP(PrePrerollCompleteProcPtr userRoutine)
1449  {
1450  return (PrePrerollCompleteUPP)NewRoutineDescriptor(
1451  (ProcPtr)(userRoutine), uppPrePrerollCompleteProcInfo,
1452  GetCurrentArchitecture());
1453  }
1454 #else
1455 #define NewPrePrerollCompleteUPP(userRoutine) \
1456  (PrePrerollCompleteUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
1457  uppPrePrerollCompleteProcInfo, \
1458  GetCurrentArchitecture())
1459 #endif
1460 #endif
1461 
1470  void
1471  DisposePrePrerollCompleteUPP(PrePrerollCompleteUPP userUPP);
1472 #if !OPAQUE_UPP_TYPES
1473 #ifdef __cplusplus
1474  inline void DisposePrePrerollCompleteUPP(PrePrerollCompleteUPP userUPP)
1475  {
1476  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
1477  }
1478 #else
1479 #define DisposePrePrerollCompleteUPP(userUPP) DisposeRoutineDescriptor(userUPP)
1480 #endif
1481 #endif
1482 
1491  void
1492  InvokePrePrerollCompleteUPP(MediaHandler mh, OSErr err, void *refcon,
1493  PrePrerollCompleteUPP userUPP);
1494 #if !OPAQUE_UPP_TYPES
1495 #ifdef __cplusplus
1496  inline void InvokePrePrerollCompleteUPP(MediaHandler mh, OSErr err,
1497  void *refcon,
1498  PrePrerollCompleteUPP userUPP)
1499  {
1500  CALL_THREE_PARAMETER_UPP(userUPP, uppPrePrerollCompleteProcInfo, mh, err,
1501  refcon);
1502  }
1503 #else
1504 #define InvokePrePrerollCompleteUPP(mh, err, refcon, userUPP) \
1505  CALL_THREE_PARAMETER_UPP((userUPP), uppPrePrerollCompleteProcInfo, (mh), \
1506  (err), (refcon))
1507 #endif
1508 #endif
1509 
1510 #endif /* CALL_NOT_IN_CARBON */
1511 
1512 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
1513 /* support for pre-Carbon UPP routines: New...Proc and Call...Proc */
1514 #define NewPrePrerollCompleteProc(userRoutine) \
1515  NewPrePrerollCompleteUPP(userRoutine)
1516 #define CallPrePrerollCompleteProc(userRoutine, mh, err, refcon) \
1517  InvokePrePrerollCompleteUPP(mh, err, refcon, userRoutine)
1518 #endif /* CALL_NOT_IN_CARBON */
1519 
1520 #if PRAGMA_STRUCT_ALIGN
1521 #pragma options align = reset
1522 #elif PRAGMA_STRUCT_PACKPUSH
1523 #pragma pack(pop)
1524 #elif PRAGMA_STRUCT_PACK
1525 #pragma pack()
1526 #endif
1527 
1528 #ifdef PRAGMA_IMPORT_OFF
1529 #pragma import off
1530 #elif PRAGMA_IMPORT
1531 #pragma import reset
1532 #endif
1533 
1534 #ifdef __cplusplus
1535 }
1536 #endif
1537 
1538 #endif /* __MEDIAHANDLERS__ */
Component Manager Interfaces.
Set up for compiler independent conditionals.
err
Select a new default volume or working directory.
Definition: Files.h:2312
Basic Macintosh data types.
long Fixed
Definition: MacTypes.h:153
unsigned char Boolean
Definition: MacTypes.h:318
ComponentResult MediaMCIsPlayerEvent(MediaHandler mh, const EventRecord *e, Boolean *handledIt)
ComponentResult MediaSetSoundOutputComponent(MediaHandler mh, Component outputComponent)
ComponentResult MediaGetURLLink(MediaHandler mh, Point displayWhere, Handle *urlLink)
ComponentResult MediaSetPublicInfo(MediaHandler mh, OSType infoSelector, void *infoDataPtr, Size dataSize)
ComponentResult MediaGetSoundLevelMeterInfo(MediaHandler mh, LevelMeterInfoPtr levelInfo)
ComponentResult MediaCompare(MediaHandler mh, Boolean *isOK, Media srcMedia, ComponentInstance srcMediaComponent)
ComponentResult MediaGetTrackOpaque(MediaHandler mh, Boolean *trackIsOpaque)
ComponentResult MediaGetNextStepTime(MediaHandler mh, short flags, TimeValue mediaTimeIn, TimeValue *mediaTimeOut, Fixed rate)
ComponentResult MediaSetHints(MediaHandler mh, long hints)
ComponentResult MediaChangedNonPrimarySource(MediaHandler mh, long inputIndex)
ComponentResult MediaFlushNonPrimarySourceData(MediaHandler mh, long inputIndex)
ComponentResult MediaGetSampleDataPointer(MediaHandler mh, long sampleNum, Ptr *dataPtr, long *dataSize, long *sampleDescIndex)
ComponentResult MediaSampleDescriptionN2B(MediaHandler mh, SampleDescriptionHandle sampleDescriptionH)
ComponentResult MediaTimeBaseChanged(MediaHandler mh)
ComponentResult MediaMakeMediaTimeTable(MediaHandler mh, long **offsets, TimeValue startTime, TimeValue endTime, TimeValue timeIncrement, short firstDataRefIndex, short lastDataRefIndex, long *retDataRefSkew)
ComponentResult MediaGetOffscreenBufferSize(MediaHandler mh, Rect *bounds, short depth, CTabHandle ctab)
ComponentResult MediaResolveTargetRefCon(MediaHandler mh, QTAtomContainer container, QTAtom atom, long *targetRefCon)
ComponentResult MediaGetName(MediaHandler mh, Str255 name, long requestedLanguage, long *actualLanguage)
ComponentResult MediaSetSoundBalance(MediaHandler mh, short balance)
ComponentResult MediaSetDoMCActionCallback(MediaHandler mh, DoMCActionUPP doMCActionCallbackProc, void *refcon)
ComponentResult MediaGetActionsForQTEvent(MediaHandler mh, QTEventRecordPtr event, long targetRefCon, QTAtomContainer *container, QTAtom *atom)
ComponentResult MediaGetNextBoundsChange(MediaHandler mh, TimeValue *when)
ComponentResult MediaSetVideoParam(MediaHandler mh, long whichParam, unsigned short *value)
ComponentResult MediaSetGraphicsMode(MediaHandler mh, long mode, const RGBColor *opColor)
ComponentResult MediaPrePrerollBegin(MediaHandler mh, TimeValue time, Fixed rate, PrePrerollCompleteUPP completeProc, void *refcon)
ComponentResult MediaGetMediaLoadState(MediaHandler mh, long *mediaLoadState)
ComponentResult MediaTargetRefConsEqual(MediaHandler mh, long firstRefCon, long secondRefCon, Boolean *equal)
ComponentResult MediaGSetActiveSegment(MediaHandler mh, TimeValue activeStart, TimeValue activeDuration)
ComponentResult MediaGGetStatus(MediaHandler mh, ComponentResult *statusErr)
ComponentResult MediaCurrentMediaQueuedData(MediaHandler mh, long *milliSecs)
ComponentResult MediaGetClock(MediaHandler mh, ComponentInstance *clock)
ComponentResult MediaVideoOutputChanged(MediaHandler mh, ComponentInstance vout)
ComponentResult MediaSetSoundEqualizerBands(MediaHandler mh, MediaEQSpectrumBandsRecordPtr spectrumInfo)
ComponentResult MediaEmptySampleCache(MediaHandler mh, long sampleNum, long sampleCount)
ComponentResult MediaSetNonPrimarySourceData(MediaHandler mh, long inputIndex, long dataDescriptionSeed, Handle dataDescription, void *data, long dataSize, ICMCompletionProcRecordPtr asyncCompletionProc, ICMConvertDataFormatUPP transferProc, void *refCon)
ComponentResult MediaGetMediaInfo(MediaHandler mh, Handle h)
ComponentResult MediaSetClip(MediaHandler mh, RgnHandle theClip)
ComponentResult MediaDoIdleActions(MediaHandler mh)
void InvokePrePrerollCompleteUPP(MediaHandler mh, OSErr err, void *refcon, PrePrerollCompleteUPP userUPP)
ComponentResult MediaGetSoundBalance(MediaHandler mh, short *balance)
ComponentResult MediaInitialize(MediaHandler mh, GetMovieCompleteParams *gmc)
ComponentResult MediaQueueNonPrimarySourceData(MediaHandler mh, long inputIndex, long dataDescriptionSeed, Handle dataDescription, void *data, long dataSize, ICMCompletionProcRecordPtr asyncCompletionProc, const ICMFrameTimeRecord *frameTime, ICMConvertDataFormatUPP transferProc, void *refCon)
ComponentResult MediaPrePrerollCancel(MediaHandler mh, void *refcon)
ComponentResult MediaGetSoundLevelMeteringEnabled(MediaHandler mh, Boolean *enabled)
ComponentResult MediaGetInvalidRegion(MediaHandler mh, RgnHandle rgn)
ComponentResult MediaGetSoundEqualizerBandLevels(MediaHandler mh, UInt8 *bandLevels)
ComponentResult MediaGetErrorString(MediaHandler mh, ComponentResult theError, Str255 errorString)
ComponentResult MediaGSetVolume(MediaHandler mh, short volume)
ComponentResult MediaGetVideoParam(MediaHandler mh, long whichParam, unsigned short *value)
PrePrerollCompleteUPP NewPrePrerollCompleteUPP(PrePrerollCompleteProcPtr userRoutine)
ComponentResult MediaGetSoundOutputComponent(MediaHandler mh, Component *outputComponent)
ComponentResult MediaReleaseSampleDataPointer(MediaHandler mh, long sampleNum)
ComponentResult MediaSetDimensions(MediaHandler mh, Fixed width, Fixed height)
ComponentResult MediaSetSoundBassAndTreble(MediaHandler mh, short bass, short treble)
ComponentResult MediaTrackReferencesChanged(MediaHandler mh)
ComponentResult MediaSetMediaTimeScale(MediaHandler mh, TimeScale newTimeScale)
ComponentResult MediaTrackPropertyAtomChanged(MediaHandler mh)
ComponentResult MediaGetSoundEqualizerBands(MediaHandler mh, MediaEQSpectrumBandsRecordPtr spectrumInfo)
ComponentResult MediaHitTestForTargetRefCon(MediaHandler mh, long flags, Point loc, long *targetRefCon)
ComponentResult MediaHitTestTargetRefCon(MediaHandler mh, long targetRefCon, long flags, Point loc, Boolean *wasHit)
ComponentResult MediaGetUserPreferredCodecs(MediaHandler mh, CodecComponentHandle *userPreferredCodecs)
ComponentResult MediaIdle(MediaHandler mh, TimeValue atMediaTime, long flagsIn, long *flagsOut, const TimeRecord *movieTime)
ComponentResult MediaSetActive(MediaHandler mh, Boolean enableMedia)
ComponentResult MediaSetSoundLocalizationData(MediaHandler mh, Handle data)
void DisposePrePrerollCompleteUPP(PrePrerollCompleteUPP userUPP)
ComponentResult MediaGetDrawingRgn(MediaHandler mh, RgnHandle *partialRgn)
ComponentResult MediaSetGWorld(MediaHandler mh, CGrafPtr aPort, GDHandle aGD)
ComponentResult MediaSetActionsCallback(MediaHandler mh, ActionsUPP actionsCallbackProc, void *refcon)
ComponentResult MediaDisposeTargetRefCon(MediaHandler mh, long targetRefCon)
ComponentResult MediaSetHandlerCapabilities(MediaHandler mh, long flags, long flagsMask)
ComponentResult MediaForceUpdate(MediaHandler mh, long forceUpdateFlags)
ComponentResult MediaGetGraphicsMode(MediaHandler mh, long *mode, RGBColor *opColor)
ComponentResult MediaSampleDescriptionChanged(MediaHandler mh, long index)
ComponentResult MediaSetTrackInputMapReference(MediaHandler mh, QTAtomContainer inputMap)
ComponentResult MediaSetSoundLevelMeteringEnabled(MediaHandler mh, Boolean enable)
ComponentResult CallComponentExecuteWiredAction(ComponentInstance ci, QTAtomContainer actionContainer, QTAtom actionAtom, QTCustomActionTargetPtr target, QTEventRecordPtr event)
ComponentResult MediaSetScreenLock(MediaHandler mh, Boolean lockIt)
ComponentResult MediaSetUserPreferredCodecs(MediaHandler mh, CodecComponentHandle userPreferredCodecs)
ComponentResult MediaInvalidateRegion(MediaHandler mh, RgnHandle invalRgn)
ComponentResult MediaGetSrcRgn(MediaHandler mh, RgnHandle rgn, TimeValue atMediaTime)
ComponentResult MediaGetSoundBassAndTreble(MediaHandler mh, short *bass, short *treble)
ComponentResult MediaSetMovieTimeScale(MediaHandler mh, TimeScale newTimeScale)
ComponentResult MediaGetEffectiveSoundBalance(MediaHandler mh, short *balance)
ComponentResult MediaSetMatrix(MediaHandler mh, MatrixRecord *trackMovieMatrix)
ComponentResult MediaPutMediaInfo(MediaHandler mh, Handle h)
ComponentResult MediaSetRate(MediaHandler mh, Fixed rate)
ComponentResult MediaTrackEdited(MediaHandler mh)
ComponentResult MediaGetEffectiveVolume(MediaHandler mh, short *volume)
ComponentResult MediaHasCharacteristic(MediaHandler mh, OSType characteristic, Boolean *hasIt)
ComponentResult MediaGetPublicInfo(MediaHandler mh, OSType infoSelector, void *infoDataPtr, Size *ioDataSize)
ComponentResult MediaEnterEmptyEdit(MediaHandler mh)
ComponentResult MediaPreroll(MediaHandler mh, TimeValue time, Fixed rate)
ComponentResult MediaSampleDescriptionB2N(MediaHandler mh, SampleDescriptionHandle sampleDescriptionH)
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
QuickTime Interfaces.
Sound Manager Interfaces.
Definition: AEDataModel.h:175
Definition: Quickdraw.h:2261
Definition: Quickdraw.h:1968
Definition: Components.h:220
Definition: Components.h:214
Definition: Events.h:224
Definition: Quickdraw.h:2178
Definition: MediaHandlers.h:138
Definition: ImageCompression.h:394
Definition: ImageCompression.h:546
Definition: Sound.h:1311
Definition: MediaHandlers.h:180
Definition: Quickdraw.h:306
Definition: ImageCompression.h:68
Definition: MediaHandlers.h:203
Definition: Movies.h:197
Definition: Movies.h:184
Definition: Quickdraw.h:2064
Definition: MacTypes.h:520
Definition: MediaHandlers.h:189
Definition: Movies.h:517
Definition: Quickdraw.h:1710
Definition: MacTypes.h:527
Definition: Movies.h:239
Definition: MacTypes.h:585
Definition: Movies.h:191