QuickTimeComponents.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:297k
- /*
- File: QuickTimeComponents.h
-
- Contains: QuickTime Interfaces.
-
- Version: Technology: QuickTime 6.0
- Release: QuickTime 6.0.2
-
- Copyright: (c) 1990-2001 by Apple Computer, Inc., all rights reserved
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://developer.apple.com/bugreporter/
-
- */
- #ifndef __QUICKTIMECOMPONENTS__
- #define __QUICKTIMECOMPONENTS__
- #ifndef __MACTYPES__
- #include "MacTypes.h"
- #endif
- #ifndef __MIXEDMODE__
- #include "MixedMode.h"
- #endif
- #ifndef __COMPONENTS__
- #include "Components.h"
- #endif
- #ifndef __IMAGECOMPRESSION__
- #include "ImageCompression.h"
- #endif
- #ifndef __MOVIES__
- #include "Movies.h"
- #endif
- #ifndef __QUICKDRAW__
- #include "Quickdraw.h"
- #endif
- #ifndef __VIDEO__
- #include "Video.h"
- #endif
- #ifndef __SOUND__
- #include "Sound.h"
- #endif
- #ifndef __QUICKTIMEMUSIC__
- #include "QuickTimeMusic.h"
- #endif
- #if PRAGMA_ONCE
- #pragma once
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if PRAGMA_IMPORT
- #pragma import on
- #endif
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=mac68k
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(push, 2)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack(2)
- #endif
- enum {
- clockComponentType = FOUR_CHAR_CODE('clok'),
- systemTickClock = FOUR_CHAR_CODE('tick'), /* subtype: 60ths since boot */
- systemSecondClock = FOUR_CHAR_CODE('seco'), /* subtype: seconds since 1904 */
- systemMillisecondClock = FOUR_CHAR_CODE('mill'), /* subtype: 1000ths since boot */
- systemMicrosecondClock = FOUR_CHAR_CODE('micr') /* subtype: 1000000ths since boot */
- };
- enum {
- kClockRateIsLinear = 1,
- kClockImplementsCallBacks = 2,
- kClockCanHandleIntermittentSound = 4 /* sound clocks only */
- };
- #if OLDROUTINENAMES
- #define GetClockTime(aClock, out) ClockGetTime(aClock, out)
- #endif
- /** These are Clock procedures **/
- EXTERN_API( ComponentResult )
- ClockGetTime (ComponentInstance aClock,
- TimeRecord * out) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( QTCallBack )
- ClockNewCallBack (ComponentInstance aClock,
- TimeBase tb,
- short callBackType) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockDisposeCallBack (ComponentInstance aClock,
- QTCallBack cb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockCallMeWhen (ComponentInstance aClock,
- QTCallBack cb,
- long param1,
- long param2,
- long param3) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0004, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockCancelCallBack (ComponentInstance aClock,
- QTCallBack cb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockRateChanged (ComponentInstance aClock,
- QTCallBack cb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockTimeChanged (ComponentInstance aClock,
- QTCallBack cb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockSetTimeBase (ComponentInstance aClock,
- TimeBase tb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockStartStopChanged (ComponentInstance aClock,
- QTCallBack cb,
- Boolean startChanged,
- Boolean stopChanged) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- ClockGetRate (ComponentInstance aClock,
- Fixed * rate) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
- enum {
- StandardCompressionType = FOUR_CHAR_CODE('scdi'),
- StandardCompressionSubType = FOUR_CHAR_CODE('imag'),
- StandardCompressionSubTypeSound = FOUR_CHAR_CODE('soun')
- };
- typedef CALLBACK_API( Boolean , SCModalFilterProcPtr )(DialogRef theDialog, EventRecord *theEvent, short *itemHit, long refcon);
- typedef CALLBACK_API( short , SCModalHookProcPtr )(DialogRef theDialog, short itemHit, void *params, long refcon);
- typedef STACK_UPP_TYPE(SCModalFilterProcPtr) SCModalFilterUPP;
- typedef STACK_UPP_TYPE(SCModalHookProcPtr) SCModalHookUPP;
- /* Preference flags.*/
- enum {
- scListEveryCodec = 1L << 1,
- scAllowZeroFrameRate = 1L << 2,
- scAllowZeroKeyFrameRate = 1L << 3,
- scShowBestDepth = 1L << 4,
- scUseMovableModal = 1L << 5,
- scDisableFrameRateItem = 1L << 6,
- scShowDataRateAsKilobits = 1L << 7
- };
- /* Possible test flags for setting test image.*/
- enum {
- scPreferCropping = 1 << 0,
- scPreferScaling = 1 << 1,
- scPreferScalingAndCropping = scPreferScaling | scPreferCropping,
- scDontDetermineSettingsFromTestImage = 1 << 2
- };
- /* Dimensions of the image preview box.*/
- enum {
- scTestImageWidth = 80,
- scTestImageHeight = 80
- };
- /* Possible items returned by hookProc.*/
- enum {
- scOKItem = 1,
- scCancelItem = 2,
- scCustomItem = 3
- };
- /* Result returned when user cancelled.*/
- enum {
- scUserCancelled = 1
- };
- /* Component selectors*/
- enum {
- scPositionRect = 2,
- scPositionDialog = 3,
- scSetTestImagePictHandle = 4,
- scSetTestImagePictFile = 5,
- scSetTestImagePixMap = 6,
- scGetBestDeviceRect = 7,
- scRequestImageSettings = 10,
- scCompressImage = 11,
- scCompressPicture = 12,
- scCompressPictureFile = 13,
- scRequestSequenceSettings = 14,
- scCompressSequenceBegin = 15,
- scCompressSequenceFrame = 16,
- scCompressSequenceEnd = 17,
- scDefaultPictHandleSettings = 18,
- scDefaultPictFileSettings = 19,
- scDefaultPixMapSettings = 20,
- scGetInfo = 21,
- scSetInfo = 22,
- scNewGWorld = 23
- };
- /* Get/SetInfo structures.*/
- struct SCSpatialSettings {
- CodecType codecType;
- CodecComponent codec;
- short depth;
- CodecQ spatialQuality;
- };
- typedef struct SCSpatialSettings SCSpatialSettings;
- struct SCTemporalSettings {
- CodecQ temporalQuality;
- Fixed frameRate;
- long keyFrameRate;
- };
- typedef struct SCTemporalSettings SCTemporalSettings;
- struct SCDataRateSettings {
- long dataRate;
- long frameDuration;
- CodecQ minSpatialQuality;
- CodecQ minTemporalQuality;
- };
- typedef struct SCDataRateSettings SCDataRateSettings;
- struct SCExtendedProcs {
- SCModalFilterUPP filterProc;
- SCModalHookUPP hookProc;
- long refcon;
- Str31 customName;
- };
- typedef struct SCExtendedProcs SCExtendedProcs;
- /* Get/SetInfo selectors*/
- enum {
- scSpatialSettingsType = FOUR_CHAR_CODE('sptl'), /* pointer to SCSpatialSettings struct*/
- scTemporalSettingsType = FOUR_CHAR_CODE('tprl'), /* pointer to SCTemporalSettings struct*/
- scDataRateSettingsType = FOUR_CHAR_CODE('drat'), /* pointer to SCDataRateSettings struct*/
- scColorTableType = FOUR_CHAR_CODE('clut'), /* pointer to CTabHandle*/
- scProgressProcType = FOUR_CHAR_CODE('prog'), /* pointer to ProgressRecord struct*/
- scExtendedProcsType = FOUR_CHAR_CODE('xprc'), /* pointer to SCExtendedProcs struct*/
- scPreferenceFlagsType = FOUR_CHAR_CODE('pref'), /* pointer to long*/
- scSettingsStateType = FOUR_CHAR_CODE('ssta'), /* pointer to Handle*/
- scSequenceIDType = FOUR_CHAR_CODE('sequ'), /* pointer to ImageSequence*/
- scWindowPositionType = FOUR_CHAR_CODE('wndw'), /* pointer to Point*/
- scCodecFlagsType = FOUR_CHAR_CODE('cflg'), /* pointer to CodecFlags*/
- scCodecSettingsType = FOUR_CHAR_CODE('cdec'), /* pointer to Handle*/
- scForceKeyValueType = FOUR_CHAR_CODE('ksim'), /* pointer to long*/
- scSoundSampleRateType = FOUR_CHAR_CODE('ssrt'), /* pointer to UnsignedFixed*/
- scSoundSampleSizeType = FOUR_CHAR_CODE('ssss'), /* pointer to short*/
- scSoundChannelCountType = FOUR_CHAR_CODE('sscc'), /* pointer to short*/
- scSoundCompressionType = FOUR_CHAR_CODE('ssct'), /* pointer to OSType*/
- scCompressionListType = FOUR_CHAR_CODE('ctyl'), /* pointer to OSType Handle*/
- scCodecManufacturerType = FOUR_CHAR_CODE('cmfr'), /* pointer to OSType*/
- scSoundVBRCompressionOK = FOUR_CHAR_CODE('cvbr'), /* pointer to Boolean*/
- scSoundInputSampleRateType = FOUR_CHAR_CODE('ssir'), /* pointer to UnsignedFixed*/
- scSoundSampleRateChangeOK = FOUR_CHAR_CODE('rcok'), /* pointer to Boolean*/
- scAvailableCompressionListType = FOUR_CHAR_CODE('avai') /* pointer to OSType Handle*/
- };
- /* scTypeNotFoundErr returned by Get/SetInfo when type cannot be found.*/
- struct SCParams {
- long flags;
- CodecType theCodecType;
- CodecComponent theCodec;
- CodecQ spatialQuality;
- CodecQ temporalQuality;
- short depth;
- Fixed frameRate;
- long keyFrameRate;
- long reserved1;
- long reserved2;
- };
- typedef struct SCParams SCParams;
- enum {
- scGetCompression = 1,
- scShowMotionSettings = 1L << 0,
- scSettingsChangedItem = -1
- };
- enum {
- scCompressFlagIgnoreIdenticalFrames = 1
- };
- /* QTAtomTypes for atoms found in settings atom containers*/
- enum {
- kQTSettingsVideo = FOUR_CHAR_CODE('vide'), /* Container for video/image compression related atoms (Get/SetInfo selectors)*/
- kQTSettingsSound = FOUR_CHAR_CODE('soun'), /* Container for sound compression related atoms (Get/SetInfo selectors)*/
- kQTSettingsComponentVersion = FOUR_CHAR_CODE('vers') /* . Version of component that wrote settings (QTSettingsVersionAtomRecord)*/
- };
- /* Format of 'vers' atom found in settings atom containers*/
- struct QTSettingsVersionAtomRecord {
- long componentVersion; /* standard compression component version*/
- short flags; /* low bit is 1 if little endian platform, 0 if big endian platform*/
- short reserved; /* should be 0*/
- };
- typedef struct QTSettingsVersionAtomRecord QTSettingsVersionAtomRecord;
- #define SCGetCompression(ci, params, where) SCGetCompressionExtended(ci,params,where,0,0,0,0)
- /** These are Progress procedures **/
- EXTERN_API( ComponentResult )
- SCGetCompressionExtended (ComponentInstance ci,
- SCParams * params,
- Point where,
- SCModalFilterUPP filterProc,
- SCModalHookUPP hookProc,
- long refcon,
- StringPtr customName) FIVEWORDINLINE(0x2F3C, 0x0018, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCPositionRect (ComponentInstance ci,
- Rect * rp,
- Point * where) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCPositionDialog (ComponentInstance ci,
- short id,
- Point * where) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetTestImagePictHandle (ComponentInstance ci,
- PicHandle testPict,
- Rect * testRect,
- short testFlags) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0004, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetTestImagePictFile (ComponentInstance ci,
- short testFileRef,
- Rect * testRect,
- short testFlags) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetTestImagePixMap (ComponentInstance ci,
- PixMapHandle testPixMap,
- Rect * testRect,
- short testFlags) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCGetBestDeviceRect (ComponentInstance ci,
- Rect * r) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCRequestImageSettings (ComponentInstance ci) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressImage (ComponentInstance ci,
- PixMapHandle src,
- const Rect * srcRect,
- ImageDescriptionHandle * desc,
- Handle * data) FIVEWORDINLINE(0x2F3C, 0x0010, 0x000B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressPicture (ComponentInstance ci,
- PicHandle srcPicture,
- PicHandle dstPicture) FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressPictureFile (ComponentInstance ci,
- short srcRefNum,
- short dstRefNum) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCRequestSequenceSettings (ComponentInstance ci) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressSequenceBegin (ComponentInstance ci,
- PixMapHandle src,
- const Rect * srcRect,
- ImageDescriptionHandle * desc) FIVEWORDINLINE(0x2F3C, 0x000C, 0x000F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressSequenceFrame (ComponentInstance ci,
- PixMapHandle src,
- const Rect * srcRect,
- Handle * data,
- long * dataSize,
- short * notSyncFlag) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0010, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCCompressSequenceEnd (ComponentInstance ci) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCDefaultPictHandleSettings (ComponentInstance ci,
- PicHandle srcPicture,
- short motion) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0012, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCDefaultPictFileSettings (ComponentInstance ci,
- short srcRef,
- short motion) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCDefaultPixMapSettings (ComponentInstance ci,
- PixMapHandle src,
- short motion) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0014, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCGetInfo (ComponentInstance ci,
- OSType infoType,
- void * info) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0015, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetInfo (ComponentInstance ci,
- OSType infoType,
- void * info) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCNewGWorld (ComponentInstance ci,
- GWorldPtr * gwp,
- Rect * rp,
- GWorldFlags flags) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0017, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetCompressFlags (ComponentInstance ci,
- long flags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCGetCompressFlags (ComponentInstance ci,
- long * flags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCGetSettingsAsText (ComponentInstance ci,
- Handle * text) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCGetSettingsAsAtomContainer (ComponentInstance ci,
- QTAtomContainer * settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCSetSettingsFromAtomContainer (ComponentInstance ci,
- QTAtomContainer settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
- /* Note: if you're using SCCompressSequenceFrameAsync with a scForceKeyValue setting, you must call SCAsyncIdle occasionally at main task time. */
- EXTERN_API( ComponentResult )
- SCCompressSequenceFrameAsync (ComponentInstance ci,
- PixMapHandle src,
- const Rect * srcRect,
- Handle * data,
- long * dataSize,
- short * notSyncFlag,
- ICMCompletionProcRecordPtr asyncCompletionProc) FIVEWORDINLINE(0x2F3C, 0x0018, 0x001D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- SCAsyncIdle (ComponentInstance ci) FIVEWORDINLINE(0x2F3C, 0x0000, 0x001E, 0x7000, 0xA82A);
- enum {
- TweenComponentType = FOUR_CHAR_CODE('twen')
- };
- typedef ComponentInstance TweenerComponent;
- EXTERN_API( ComponentResult )
- TweenerInitialize (TweenerComponent tc,
- QTAtomContainer container,
- QTAtom tweenAtom,
- QTAtom dataAtom) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TweenerDoTween (TweenerComponent tc,
- TweenRecord * tr) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TweenerReset (TweenerComponent tc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0003, 0x7000, 0xA82A);
- enum {
- TCSourceRefNameType = FOUR_CHAR_CODE('name')
- };
- enum {
- tcDropFrame = 1 << 0,
- tc24HourMax = 1 << 1,
- tcNegTimesOK = 1 << 2,
- tcCounter = 1 << 3
- };
- struct TimeCodeDef {
- long flags; /* drop-frame, etc.*/
- TimeScale fTimeScale; /* time scale of frameDuration (eg. 2997)*/
- TimeValue frameDuration; /* duration of each frame (eg. 100)*/
- UInt8 numFrames; /* frames/sec for timecode (eg. 30) OR frames/tick for counter mode*/
- UInt8 padding; /* unused padding byte*/
- };
- typedef struct TimeCodeDef TimeCodeDef;
- enum {
- tctNegFlag = 0x80 /* negative bit is in minutes*/
- };
- struct TimeCodeTime {
- UInt8 hours;
- UInt8 minutes;
- UInt8 seconds;
- UInt8 frames;
- };
- typedef struct TimeCodeTime TimeCodeTime;
- struct TimeCodeCounter {
- long counter;
- };
- typedef struct TimeCodeCounter TimeCodeCounter;
- union TimeCodeRecord {
- TimeCodeTime t;
- TimeCodeCounter c;
- };
- typedef union TimeCodeRecord TimeCodeRecord;
- struct TimeCodeDescription {
- long descSize; /* standard sample description header*/
- long dataFormat;
- long resvd1;
- short resvd2;
- short dataRefIndex;
- long flags; /* timecode specific stuff*/
- TimeCodeDef timeCodeDef;
- long srcRef[1];
- };
- typedef struct TimeCodeDescription TimeCodeDescription;
- typedef TimeCodeDescription * TimeCodeDescriptionPtr;
- typedef TimeCodeDescriptionPtr * TimeCodeDescriptionHandle;
- enum {
- tcdfShowTimeCode = 1 << 0
- };
- struct TCTextOptions {
- short txFont;
- short txFace;
- short txSize;
- short pad; /* let's make it longword aligned - thanks.. */
- RGBColor foreColor;
- RGBColor backColor;
- };
- typedef struct TCTextOptions TCTextOptions;
- typedef TCTextOptions * TCTextOptionsPtr;
- EXTERN_API( HandlerError )
- TCGetCurrentTimeCode (MediaHandler mh,
- long * frameNum,
- TimeCodeDef * tcdef,
- TimeCodeRecord * tcrec,
- UserData * srcRefH) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCGetTimeCodeAtTime (MediaHandler mh,
- TimeValue mediaTime,
- long * frameNum,
- TimeCodeDef * tcdef,
- TimeCodeRecord * tcdata,
- UserData * srcRefH) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCTimeCodeToString (MediaHandler mh,
- TimeCodeDef * tcdef,
- TimeCodeRecord * tcrec,
- StringPtr tcStr) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCTimeCodeToFrameNumber (MediaHandler mh,
- TimeCodeDef * tcdef,
- TimeCodeRecord * tcrec,
- long * frameNumber) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCFrameNumberToTimeCode (MediaHandler mh,
- long frameNumber,
- TimeCodeDef * tcdef,
- TimeCodeRecord * tcrec) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0105, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCGetSourceRef (MediaHandler mh,
- TimeCodeDescriptionHandle tcdH,
- UserData * srefH) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0106, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCSetSourceRef (MediaHandler mh,
- TimeCodeDescriptionHandle tcdH,
- UserData srefH) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCSetTimeCodeFlags (MediaHandler mh,
- long flags,
- long flagsMask) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCGetTimeCodeFlags (MediaHandler mh,
- long * flags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCSetDisplayOptions (MediaHandler mh,
- TCTextOptionsPtr textOptions) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
- EXTERN_API( HandlerError )
- TCGetDisplayOptions (MediaHandler mh,
- TCTextOptionsPtr textOptions) FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
- typedef ComponentInstance MovieImportComponent;
- typedef ComponentInstance MovieExportComponent;
- enum {
- MovieImportType = FOUR_CHAR_CODE('eat '),
- MovieExportType = FOUR_CHAR_CODE('spit')
- };
- enum {
- canMovieImportHandles = 1 << 0,
- canMovieImportFiles = 1 << 1,
- hasMovieImportUserInterface = 1 << 2,
- canMovieExportHandles = 1 << 3,
- canMovieExportFiles = 1 << 4,
- hasMovieExportUserInterface = 1 << 5,
- movieImporterIsXMLBased = 1 << 5,
- dontAutoFileMovieImport = 1 << 6,
- canMovieExportAuxDataHandle = 1 << 7,
- canMovieImportValidateHandles = 1 << 8,
- canMovieImportValidateFile = 1 << 9,
- dontRegisterWithEasyOpen = 1 << 10,
- canMovieImportInPlace = 1 << 11,
- movieImportSubTypeIsFileExtension = 1 << 12,
- canMovieImportPartial = 1 << 13,
- hasMovieImportMIMEList = 1 << 14,
- canMovieImportAvoidBlocking = 1 << 15,
- canMovieExportFromProcedures = 1 << 15,
- canMovieExportValidateMovie = 1L << 16,
- movieImportMustGetDestinationMediaType = 1L << 16,
- movieExportNeedsResourceFork = 1L << 17,
- canMovieImportDataReferences = 1L << 18,
- movieExportMustGetSourceMediaType = 1L << 19,
- canMovieImportWithIdle = 1L << 20,
- canMovieImportValidateDataReferences = 1L << 21,
- reservedForUseByGraphicsImporters = 1L << 23
- };
- enum {
- movieImportCreateTrack = 1,
- movieImportInParallel = 2,
- movieImportMustUseTrack = 4,
- movieImportWithIdle = 16
- };
- enum {
- movieImportResultUsedMultipleTracks = 8,
- movieImportResultNeedIdles = 32,
- movieImportResultComplete = 64
- };
- enum {
- kMovieExportTextOnly = 0,
- kMovieExportAbsoluteTime = 1,
- kMovieExportRelativeTime = 2
- };
- enum {
- kMIDIImportSilenceBefore = 1 << 0,
- kMIDIImportSilenceAfter = 1 << 1,
- kMIDIImport20Playable = 1 << 2,
- kMIDIImportWantLyrics = 1 << 3
- };
- enum {
- kQTMediaConfigResourceType = FOUR_CHAR_CODE('mcfg'),
- kQTMediaConfigResourceVersion = 2,
- kQTMediaGroupResourceType = FOUR_CHAR_CODE('mgrp'),
- kQTMediaGroupResourceVersion = 1,
- kQTBrowserInfoResourceType = FOUR_CHAR_CODE('brws'),
- kQTBrowserInfoResourceVersion = 1
- };
- enum {
- kQTMediaMIMEInfoHasChanged = (1L << 1), /* the MIME type(s) is(are) new or has changed since the last time */
- /* someone asked about it */
- kQTMediaFileInfoHasChanged = (1L << 2), /* the file extension(s) is(are) new or has changed since the last time */
- /* anyone asked about it */
- kQTMediaConfigCanUseApp = (1L << 18), /* this MIME type can be configured to use app */
- kQTMediaConfigCanUsePlugin = (1L << 19), /* this MIME type can be configured to use plug-in */
- kQTMediaConfigUNUSED = (1L << 20), /* currently unused */
- kQTMediaConfigBinaryFile = (1L << 23), /* file should be transfered in binary mode */
- kQTMediaConfigTextFile = 0, /* not a bit, defined for clarity */
- kQTMediaConfigMacintoshFile = (1L << 24), /* file's resource fork is significant */
- kQTMediaConfigAssociateByDefault = (1L << 27), /* take this file association by default */
- kQTMediaConfigUseAppByDefault = (1L << 28), /* use the app by default for this MIME type */
- kQTMediaConfigUsePluginByDefault = (1L << 29), /* use the plug-in by default for this MIME type */
- kQTMediaConfigDefaultsMask = (kQTMediaConfigUseAppByDefault | kQTMediaConfigUsePluginByDefault),
- kQTMediaConfigDefaultsShift = 12, /* ((flags & kQTMediaConfigDefaultsMask) >> kQTMediaConfigDefaultsShift) to get default setting */
- kQTMediaConfigHasFileHasQTAtoms = (1L << 30) /* the file has a "QuickTime like" file format */
- };
- /* mime type group constants for groupID field of 'mcfg' resource*/
- enum {
- kQTMediaConfigStreamGroupID = FOUR_CHAR_CODE('strm'),
- kQTMediaConfigInteractiveGroupID = FOUR_CHAR_CODE('intr'),
- kQTMediaConfigVideoGroupID = FOUR_CHAR_CODE('eyes'),
- kQTMediaConfigAudioGroupID = FOUR_CHAR_CODE('ears'),
- kQTMediaConfigMPEGGroupID = FOUR_CHAR_CODE('mpeg'),
- kQTMediaConfigMP3GroupID = FOUR_CHAR_CODE('mp3 '),
- kQTMediaConfigImageGroupID = FOUR_CHAR_CODE('ogle'),
- kQTMediaConfigMiscGroupID = FOUR_CHAR_CODE('misc')
- };
- /* file type group constants for groupID field of 'mcfg' resource*/
- enum {
- kQTMediaInfoNetGroup = FOUR_CHAR_CODE('net '),
- kQTMediaInfoWinGroup = FOUR_CHAR_CODE('win '),
- kQTMediaInfoMacGroup = FOUR_CHAR_CODE('mac '),
- kQTMediaInfoMiscGroup = 0x3F3F3F3F /* '????'*/
- };
- enum {
- kMimeInfoMimeTypeTag = FOUR_CHAR_CODE('mime'),
- kMimeInfoFileExtensionTag = FOUR_CHAR_CODE('ext '),
- kMimeInfoDescriptionTag = FOUR_CHAR_CODE('desc'),
- kMimeInfoGroupTag = FOUR_CHAR_CODE('grop'),
- kMimeInfoDoNotOverrideExistingFileTypeAssociation = FOUR_CHAR_CODE('nofa')
- };
- enum {
- kQTFileTypeAIFF = FOUR_CHAR_CODE('AIFF'),
- kQTFileTypeAIFC = FOUR_CHAR_CODE('AIFC'),
- kQTFileTypeDVC = FOUR_CHAR_CODE('dvc!'),
- kQTFileTypeMIDI = FOUR_CHAR_CODE('Midi'),
- kQTFileTypePicture = FOUR_CHAR_CODE('PICT'),
- kQTFileTypeMovie = FOUR_CHAR_CODE('MooV'),
- kQTFileTypeText = FOUR_CHAR_CODE('TEXT'),
- kQTFileTypeWave = FOUR_CHAR_CODE('WAVE'),
- kQTFileTypeSystemSevenSound = FOUR_CHAR_CODE('sfil'),
- kQTFileTypeMuLaw = FOUR_CHAR_CODE('ULAW'),
- kQTFileTypeAVI = FOUR_CHAR_CODE('VfW '),
- kQTFileTypeSoundDesignerII = FOUR_CHAR_CODE('Sd2f'),
- kQTFileTypeAudioCDTrack = FOUR_CHAR_CODE('trak'),
- kQTFileTypePICS = FOUR_CHAR_CODE('PICS'),
- kQTFileTypeGIF = FOUR_CHAR_CODE('GIFf'),
- kQTFileTypePNG = FOUR_CHAR_CODE('PNGf'),
- kQTFileTypeTIFF = FOUR_CHAR_CODE('TIFF'),
- kQTFileTypePhotoShop = FOUR_CHAR_CODE('8BPS'),
- kQTFileTypeSGIImage = FOUR_CHAR_CODE('.SGI'),
- kQTFileTypeBMP = FOUR_CHAR_CODE('BMPf'),
- kQTFileTypeJPEG = FOUR_CHAR_CODE('JPEG'),
- kQTFileTypeJFIF = FOUR_CHAR_CODE('JPEG'),
- kQTFileTypeMacPaint = FOUR_CHAR_CODE('PNTG'),
- kQTFileTypeTargaImage = FOUR_CHAR_CODE('TPIC'),
- kQTFileTypeQuickDrawGXPicture = FOUR_CHAR_CODE('qdgx'),
- kQTFileTypeQuickTimeImage = FOUR_CHAR_CODE('qtif'),
- kQTFileType3DMF = FOUR_CHAR_CODE('3DMF'),
- kQTFileTypeFLC = FOUR_CHAR_CODE('FLC '),
- kQTFileTypeFlash = FOUR_CHAR_CODE('SWFL'),
- kQTFileTypeFlashPix = FOUR_CHAR_CODE('FPix'),
- kQTFileTypeMP4 = FOUR_CHAR_CODE('mpg4')
- };
- /* QTAtomTypes for atoms in import/export settings containers*/
- enum {
- kQTSettingsDVExportNTSC = FOUR_CHAR_CODE('dvcv'), /* True is export as NTSC, false is export as PAL. (Boolean)*/
- kQTSettingsDVExportLockedAudio = FOUR_CHAR_CODE('lock'), /* True if audio locked to video. (Boolean)*/
- kQTSettingsEffect = FOUR_CHAR_CODE('effe'), /* Parent atom whose contents are atoms of an effects description*/
- kQTSettingsGraphicsFileImportSequence = FOUR_CHAR_CODE('sequ'), /* Parent atom of graphic file movie import component*/
- kQTSettingsGraphicsFileImportSequenceEnabled = FOUR_CHAR_CODE('enab'), /* . If true, import numbered image sequence (Boolean)*/
- kQTSettingsMovieExportEnableVideo = FOUR_CHAR_CODE('envi'), /* Enable exporting of video track (Boolean)*/
- kQTSettingsMovieExportEnableSound = FOUR_CHAR_CODE('enso'), /* Enable exporting of sound track (Boolean)*/
- kQTSettingsMovieExportSaveOptions = FOUR_CHAR_CODE('save'), /* Parent atom of save options*/
- kQTSettingsMovieExportSaveForInternet = FOUR_CHAR_CODE('fast'), /* . Save for Internet*/
- kQTSettingsMovieExportSaveCompressedMovie = FOUR_CHAR_CODE('cmpm'), /* . Save compressed movie resource*/
- kQTSettingsMIDI = FOUR_CHAR_CODE('MIDI'), /* MIDI import related container*/
- kQTSettingsMIDISettingFlags = FOUR_CHAR_CODE('sttg'), /* . MIDI import settings (UInt32)*/
- kQTSettingsText = FOUR_CHAR_CODE('text'), /* Text related container*/
- kQTSettingsTextDescription = FOUR_CHAR_CODE('desc'), /* . Text import settings (TextDescription record)*/
- kQTSettingsTextSize = FOUR_CHAR_CODE('size'), /* . Width/height to create during import (FixedPoint)*/
- kQTSettingsTextSettingFlags = FOUR_CHAR_CODE('sttg'), /* . Text export settings (UInt32)*/
- kQTSettingsTextTimeFraction = FOUR_CHAR_CODE('timf'), /* . Movie time fraction for export (UInt32)*/
- kQTSettingsTime = FOUR_CHAR_CODE('time'), /* Time related container*/
- kQTSettingsTimeDuration = FOUR_CHAR_CODE('dura'), /* . Time related container*/
- kQTSettingsAudioCDTrack = FOUR_CHAR_CODE('trak'), /* Audio CD track related container*/
- kQTSettingsAudioCDTrackRateShift = FOUR_CHAR_CODE('rshf'), /* . Rate shift to be performed (SInt16)*/
- kQTSettingsDVExportDVFormat = FOUR_CHAR_CODE('dvcf') /* Exported DV Format, DV('dv ') or DVCPRO('dvp '). (OSType)*/
- };
- struct MovieExportGetDataParams {
- long recordSize;
- long trackID;
- TimeScale sourceTimeScale;
- TimeValue requestedTime;
- TimeValue actualTime;
- Ptr dataPtr;
- long dataSize;
- SampleDescriptionHandle desc;
- OSType descType;
- long descSeed;
- long requestedSampleCount;
- long actualSampleCount;
- TimeValue durationPerSample;
- long sampleFlags;
- };
- typedef struct MovieExportGetDataParams MovieExportGetDataParams;
- typedef CALLBACK_API( OSErr , MovieExportGetDataProcPtr )(void *refCon, MovieExportGetDataParams *params);
- typedef CALLBACK_API( OSErr , MovieExportGetPropertyProcPtr )(void *refcon, long trackID, OSType propertyType, void *propertyValue);
- enum {
- kQTPresetsListResourceType = FOUR_CHAR_CODE('stg#'),
- kQTPresetsPlatformListResourceType = FOUR_CHAR_CODE('stgp')
- };
- enum {
- kQTPresetInfoIsDivider = 1
- };
- struct QTPresetInfo {
- OSType presetKey; /* unique key for this preset in presetsArray */
- UInt32 presetFlags; /* flags about this preset */
- OSType settingsResourceType; /* resource type of settings resource */
- SInt16 settingsResourceID; /* resource id of settings resource */
- SInt16 padding1;
- SInt16 nameStringListID; /* name string list resource id */
- SInt16 nameStringIndex; /* name string index */
- SInt16 infoStringListID; /* info string list resource id */
- SInt16 infoStringIndex; /* info string index */
- };
- typedef struct QTPresetInfo QTPresetInfo;
- struct QTPresetListRecord {
- UInt32 flags; /* flags for whole list */
- UInt32 count; /* number of elements in presetsArray */
- UInt32 reserved;
- QTPresetInfo presetsArray[1]; /* info about each preset */
- };
- typedef struct QTPresetListRecord QTPresetListRecord;
- enum {
- kQTMovieExportSourceInfoResourceType = FOUR_CHAR_CODE('src#'),
- kQTMovieExportSourceInfoIsMediaType = 1L << 0,
- kQTMovieExportSourceInfoIsMediaCharacteristic = 1L << 1,
- kQTMovieExportSourceInfoIsSourceType = 1L << 2
- };
- struct QTMovieExportSourceInfo {
- OSType mediaType; /* Media type of source */
- UInt16 minCount; /* min number of sources of this kind required, zero if none required */
- UInt16 maxCount; /* max number of sources of this kind allowed, -1 if unlimited allowed */
- long flags; /* reserved for flags */
- };
- typedef struct QTMovieExportSourceInfo QTMovieExportSourceInfo;
- struct QTMovieExportSourceRecord {
- long count;
- long reserved;
- QTMovieExportSourceInfo sourceArray[1];
- };
- typedef struct QTMovieExportSourceRecord QTMovieExportSourceRecord;
- typedef STACK_UPP_TYPE(MovieExportGetDataProcPtr) MovieExportGetDataUPP;
- typedef STACK_UPP_TYPE(MovieExportGetPropertyProcPtr) MovieExportGetPropertyUPP;
- #if OPAQUE_UPP_TYPES
- EXTERN_API(SCModalFilterUPP)
- NewSCModalFilterUPP (SCModalFilterProcPtr userRoutine);
- EXTERN_API(SCModalHookUPP)
- NewSCModalHookUPP (SCModalHookProcPtr userRoutine);
- EXTERN_API(MovieExportGetDataUPP)
- NewMovieExportGetDataUPP (MovieExportGetDataProcPtr userRoutine);
- EXTERN_API(MovieExportGetPropertyUPP)
- NewMovieExportGetPropertyUPP (MovieExportGetPropertyProcPtr userRoutine);
- EXTERN_API(void)
- DisposeSCModalFilterUPP (SCModalFilterUPP userUPP);
- EXTERN_API(void)
- DisposeSCModalHookUPP (SCModalHookUPP userUPP);
- EXTERN_API(void)
- DisposeMovieExportGetDataUPP (MovieExportGetDataUPP userUPP);
- EXTERN_API(void)
- DisposeMovieExportGetPropertyUPP (MovieExportGetPropertyUPP userUPP);
- EXTERN_API(Boolean)
- InvokeSCModalFilterUPP (DialogRef theDialog,
- EventRecord * theEvent,
- short * itemHit,
- long refcon,
- SCModalFilterUPP userUPP);
- EXTERN_API(short)
- InvokeSCModalHookUPP (DialogRef theDialog,
- short itemHit,
- void * params,
- long refcon,
- SCModalHookUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieExportGetDataUPP (void * refCon,
- MovieExportGetDataParams * params,
- MovieExportGetDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeMovieExportGetPropertyUPP (void * refcon,
- long trackID,
- OSType propertyType,
- void * propertyValue,
- MovieExportGetPropertyUPP userUPP);
- #else
- enum { uppSCModalFilterProcInfo = 0x00003FD0 }; /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- enum { uppSCModalHookProcInfo = 0x00003EE0 }; /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
- enum { uppMovieExportGetDataProcInfo = 0x000003E0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes) */
- enum { uppMovieExportGetPropertyProcInfo = 0x00003FE0 }; /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewSCModalFilterUPP(userRoutine) (SCModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalFilterProcInfo, GetCurrentArchitecture())
- #define NewSCModalHookUPP(userRoutine) (SCModalHookUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalHookProcInfo, GetCurrentArchitecture())
- #define NewMovieExportGetDataUPP(userRoutine) (MovieExportGetDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetDataProcInfo, GetCurrentArchitecture())
- #define NewMovieExportGetPropertyUPP(userRoutine) (MovieExportGetPropertyUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetPropertyProcInfo, GetCurrentArchitecture())
- #define DisposeSCModalFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeSCModalHookUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieExportGetDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define DisposeMovieExportGetPropertyUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeSCModalFilterUPP(theDialog, theEvent, itemHit, refcon, userUPP) (Boolean)CALL_FOUR_PARAMETER_UPP((userUPP), uppSCModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refcon))
- #define InvokeSCModalHookUPP(theDialog, itemHit, params, refcon, userUPP) (short)CALL_FOUR_PARAMETER_UPP((userUPP), uppSCModalHookProcInfo, (theDialog), (itemHit), (params), (refcon))
- #define InvokeMovieExportGetDataUPP(refCon, params, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppMovieExportGetDataProcInfo, (refCon), (params))
- #define InvokeMovieExportGetPropertyUPP(refcon, trackID, propertyType, propertyValue, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppMovieExportGetPropertyProcInfo, (refcon), (trackID), (propertyType), (propertyValue))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewSCModalFilterProc(userRoutine) NewSCModalFilterUPP(userRoutine)
- #define NewSCModalHookProc(userRoutine) NewSCModalHookUPP(userRoutine)
- #define NewMovieExportGetDataProc(userRoutine) NewMovieExportGetDataUPP(userRoutine)
- #define NewMovieExportGetPropertyProc(userRoutine) NewMovieExportGetPropertyUPP(userRoutine)
- #define CallSCModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refcon) InvokeSCModalFilterUPP(theDialog, theEvent, itemHit, refcon, userRoutine)
- #define CallSCModalHookProc(userRoutine, theDialog, itemHit, params, refcon) InvokeSCModalHookUPP(theDialog, itemHit, params, refcon, userRoutine)
- #define CallMovieExportGetDataProc(userRoutine, refCon, params) InvokeMovieExportGetDataUPP(refCon, params, userRoutine)
- #define CallMovieExportGetPropertyProc(userRoutine, refcon, trackID, propertyType, propertyValue) InvokeMovieExportGetPropertyUPP(refcon, trackID, propertyType, propertyValue, userRoutine)
- EXTERN_API( ComponentResult )
- MovieImportHandle (MovieImportComponent ci,
- Handle dataH,
- Movie theMovie,
- Track targetTrack,
- Track * usedTrack,
- TimeValue atTime,
- TimeValue * addedDuration,
- long inFlags,
- long * outFlags) FIVEWORDINLINE(0x2F3C, 0x0020, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportFile (MovieImportComponent ci,
- const FSSpec * theFile,
- Movie theMovie,
- Track targetTrack,
- Track * usedTrack,
- TimeValue atTime,
- TimeValue * addedDuration,
- long inFlags,
- long * outFlags) FIVEWORDINLINE(0x2F3C, 0x0020, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetSampleDuration (MovieImportComponent ci,
- TimeValue duration,
- TimeScale scale) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetSampleDescription (MovieImportComponent ci,
- SampleDescriptionHandle desc,
- OSType mediaType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetMediaFile (MovieImportComponent ci,
- AliasHandle alias) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetDimensions (MovieImportComponent ci,
- Fixed width,
- Fixed height) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetChunkSize (MovieImportComponent ci,
- long chunkSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetProgressProc (MovieImportComponent ci,
- MovieProgressUPP proc,
- long refcon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0008, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetAuxiliaryData (MovieImportComponent ci,
- Handle data,
- OSType handleType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetFromScrap (MovieImportComponent ci,
- Boolean fromScrap) FIVEWORDINLINE(0x2F3C, 0x0002, 0x000A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportDoUserDialog (MovieImportComponent ci,
- const FSSpec * theFile,
- Handle theData,
- Boolean * canceled) FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetDuration (MovieImportComponent ci,
- TimeValue duration) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetAuxiliaryDataType (MovieImportComponent ci,
- OSType * auxType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportValidate (MovieImportComponent ci,
- const FSSpec * theFile,
- Handle theData,
- Boolean * valid) FIVEWORDINLINE(0x2F3C, 0x000C, 0x000E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetFileType (MovieImportComponent ci,
- OSType * fileType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportDataRef (MovieImportComponent ci,
- Handle dataRef,
- OSType dataRefType,
- Movie theMovie,
- Track targetTrack,
- Track * usedTrack,
- TimeValue atTime,
- TimeValue * addedDuration,
- long inFlags,
- long * outFlags) FIVEWORDINLINE(0x2F3C, 0x0024, 0x0010, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetSampleDescription (MovieImportComponent ci,
- SampleDescriptionHandle * desc,
- OSType * mediaType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0011, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetMIMETypeList (MovieImportComponent ci,
- QTAtomContainer * mimeInfo) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetOffsetAndLimit (MovieImportComponent ci,
- unsigned long offset,
- unsigned long limit) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetSettingsAsAtomContainer (MovieImportComponent ci,
- QTAtomContainer * settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetSettingsFromAtomContainer (MovieImportComponent ci,
- QTAtomContainer settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetOffsetAndLimit64 (MovieImportComponent ci,
- const wide * offset,
- const wide * limit) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportIdle (MovieImportComponent ci,
- long inFlags,
- long * outFlags) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0017, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportValidateDataRef (MovieImportComponent ci,
- Handle dataRef,
- OSType dataRefType,
- UInt8 * valid) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0018, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetLoadState (MovieImportComponent ci,
- long * importerLoadState) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetMaxLoadedTime (MovieImportComponent ci,
- TimeValue * time) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportEstimateCompletionTime (MovieImportComponent ci,
- TimeRecord * time) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetDontBlock (MovieImportComponent ci,
- Boolean dontBlock) FIVEWORDINLINE(0x2F3C, 0x0002, 0x001C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetDontBlock (MovieImportComponent ci,
- Boolean * willBlock) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetIdleManager (MovieImportComponent ci,
- IdleManager im) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportSetNewMovieFlags (MovieImportComponent ci,
- long newMovieFlags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieImportGetDestinationMediaType (MovieImportComponent ci,
- OSType * mediaType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0020, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportToHandle (MovieExportComponent ci,
- Handle dataH,
- Movie theMovie,
- Track onlyThisTrack,
- TimeValue startTime,
- TimeValue duration) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0080, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportToFile (MovieExportComponent ci,
- const FSSpec * theFile,
- Movie theMovie,
- Track onlyThisTrack,
- TimeValue startTime,
- TimeValue duration) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0081, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetAuxiliaryData (MovieExportComponent ci,
- Handle dataH,
- OSType * handleType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0083, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportSetProgressProc (MovieExportComponent ci,
- MovieProgressUPP proc,
- long refcon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0084, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportSetSampleDescription (MovieExportComponent ci,
- SampleDescriptionHandle desc,
- OSType mediaType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0085, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportDoUserDialog (MovieExportComponent ci,
- Movie theMovie,
- Track onlyThisTrack,
- TimeValue startTime,
- TimeValue duration,
- Boolean * canceled) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0086, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetCreatorType (MovieExportComponent ci,
- OSType * creator) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportToDataRef (MovieExportComponent ci,
- Handle dataRef,
- OSType dataRefType,
- Movie theMovie,
- Track onlyThisTrack,
- TimeValue startTime,
- TimeValue duration) FIVEWORDINLINE(0x2F3C, 0x0018, 0x0088, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportFromProceduresToDataRef (MovieExportComponent ci,
- Handle dataRef,
- OSType dataRefType) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0089, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportAddDataSource (MovieExportComponent ci,
- OSType trackType,
- TimeScale scale,
- long * trackID,
- MovieExportGetPropertyUPP getPropertyProc,
- MovieExportGetDataUPP getDataProc,
- void * refCon) FIVEWORDINLINE(0x2F3C, 0x0018, 0x008A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportValidate (MovieExportComponent ci,
- Movie theMovie,
- Track onlyThisTrack,
- Boolean * valid) FIVEWORDINLINE(0x2F3C, 0x000C, 0x008B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetSettingsAsAtomContainer (MovieExportComponent ci,
- QTAtomContainer * settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportSetSettingsFromAtomContainer (MovieExportComponent ci,
- QTAtomContainer settings) FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetFileNameExtension (MovieExportComponent ci,
- OSType * extension) FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetShortFileTypeString (MovieExportComponent ci,
- Str255 typeString) FIVEWORDINLINE(0x2F3C, 0x0004, 0x008F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportGetSourceMediaType (MovieExportComponent ci,
- OSType * mediaType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportSetGetMoviePropertyProc (MovieExportComponent ci,
- MovieExportGetPropertyUPP getPropertyProc,
- void * refCon) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0091, 0x7000, 0xA82A);
- /* Text Export Display Info data structure*/
- struct TextDisplayData {
- long displayFlags;
- long textJustification;
- RGBColor bgColor;
- Rect textBox;
- short beginHilite;
- short endHilite;
- RGBColor hiliteColor;
- Boolean doHiliteColor;
- SInt8 filler;
- TimeValue scrollDelayDur;
- Point dropShadowOffset;
- short dropShadowTransparency;
- };
- typedef struct TextDisplayData TextDisplayData;
- typedef ComponentInstance TextExportComponent;
- typedef ComponentInstance GraphicImageMovieImportComponent;
- EXTERN_API( ComponentResult )
- TextExportGetDisplayData (TextExportComponent ci,
- TextDisplayData * textDisplay) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextExportGetTimeFraction (TextExportComponent ci,
- long * movieTimeFraction) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextExportSetTimeFraction (TextExportComponent ci,
- long movieTimeFraction) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextExportGetSettings (TextExportComponent ci,
- long * setting) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- TextExportSetSettings (TextExportComponent ci,
- long setting) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MIDIImportGetSettings (TextExportComponent ci,
- long * setting) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MIDIImportSetSettings (TextExportComponent ci,
- long setting) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportNewGetDataAndPropertiesProcs (MovieExportComponent ci,
- OSType trackType,
- TimeScale * scale,
- Movie theMovie,
- Track theTrack,
- TimeValue startTime,
- TimeValue duration,
- MovieExportGetPropertyUPP * getPropertyProc,
- MovieExportGetDataUPP * getDataProc,
- void ** refCon) FIVEWORDINLINE(0x2F3C, 0x0024, 0x0100, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- MovieExportDisposeGetDataAndPropertiesProcs (MovieExportComponent ci,
- MovieExportGetPropertyUPP getPropertyProc,
- MovieExportGetDataUPP getDataProc,
- void * refCon) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0101, 0x7000, 0xA82A);
- enum {
- movieExportUseConfiguredSettings = FOUR_CHAR_CODE('ucfg'), /* pointer to Boolean*/
- movieExportWidth = FOUR_CHAR_CODE('wdth'), /* pointer to Fixed*/
- movieExportHeight = FOUR_CHAR_CODE('hegt'), /* pointer to Fixed*/
- movieExportDuration = FOUR_CHAR_CODE('dura'), /* pointer to TimeRecord*/
- movieExportVideoFilter = FOUR_CHAR_CODE('iflt'), /* pointer to QTAtomContainer*/
- movieExportTimeScale = FOUR_CHAR_CODE('tmsc') /* pointer to TimeScale*/
- };
- EXTERN_API( ComponentResult )
- GraphicsImageImportSetSequenceEnabled (GraphicImageMovieImportComponent ci,
- Boolean enable) FIVEWORDINLINE(0x2F3C, 0x0002, 0x0100, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- GraphicsImageImportGetSequenceEnabled (GraphicImageMovieImportComponent ci,
- Boolean * enable) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
- /*----------------------------'brws' o browser prefs configuration info ------------------------*/
- enum {
- kQTBrowserInfoCanUseSystemFolderPlugin = (1L << 0) /* Mac browser can use plug-in from System "Internet Plug-ins" folder */
- };
- enum {
- kQTPreFlightOpenComponent = (1L << 1) /* Open component as preflight check*/
- };
- struct ComponentPreflightFlags {
- long flags;
- };
- typedef struct ComponentPreflightFlags ComponentPreflightFlags;
- /***************
- File Preview Components
- ***************/
- typedef ComponentInstance pnotComponent;
- enum {
- pnotComponentWantsEvents = 1,
- pnotComponentNeedsNoCache = 2
- };
- enum {
- ShowFilePreviewComponentType = FOUR_CHAR_CODE('pnot'),
- CreateFilePreviewComponentType = FOUR_CHAR_CODE('pmak')
- };
- EXTERN_API( ComponentResult )
- PreviewShowData (pnotComponent p,
- OSType dataType,
- Handle data,
- const Rect * inHere) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- PreviewMakePreview (pnotComponent p,
- OSType * previewType,
- Handle * previewResult,
- const FSSpec * sourceFile,
- ICMProgressProcRecordPtr progress) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- PreviewMakePreviewReference (pnotComponent p,
- OSType * previewType,
- short * resID,
- const FSSpec * sourceFile) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- PreviewEvent (pnotComponent p,
- EventRecord * e,
- Boolean * handledEvent) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
- typedef ComponentInstance DataCompressorComponent;
- typedef ComponentInstance DataDecompressorComponent;
- typedef ComponentInstance DataCodecComponent;
- enum {
- DataCompressorComponentType = FOUR_CHAR_CODE('dcom'),
- DataDecompressorComponentType = FOUR_CHAR_CODE('ddec'),
- AppleDataCompressorSubType = FOUR_CHAR_CODE('adec'),
- zlibDataCompressorSubType = FOUR_CHAR_CODE('zlib')
- };
- /** These are DataCodec procedures **/
- EXTERN_API( ComponentResult )
- DataCodecDecompress (DataCodecComponent dc,
- void * srcData,
- UInt32 srcSize,
- void * dstData,
- UInt32 dstBufferSize) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0001, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecGetCompressBufferSize (DataCodecComponent dc,
- UInt32 srcSize,
- UInt32 * dstSize) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecCompress (DataCodecComponent dc,
- void * srcData,
- UInt32 srcSize,
- void * dstData,
- UInt32 dstBufferSize,
- UInt32 * actualDstSize,
- UInt32 * decompressSlop) FIVEWORDINLINE(0x2F3C, 0x0018, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecBeginInterruptSafe (DataCodecComponent dc,
- unsigned long maxSrcSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecEndInterruptSafe (DataCodecComponent dc) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecDecompressPartial (DataCodecComponent dc,
- void ** next_in,
- unsigned long * avail_in,
- unsigned long * total_in,
- void ** next_out,
- unsigned long * avail_out,
- unsigned long * total_out,
- Boolean * didFinish) FIVEWORDINLINE(0x2F3C, 0x001C, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataCodecCompressPartial (DataCodecComponent dc,
- void ** next_in,
- unsigned long * avail_in,
- unsigned long * total_in,
- void ** next_out,
- unsigned long * avail_out,
- unsigned long * total_out,
- Boolean tryToFinish,
- Boolean * didFinish) FIVEWORDINLINE(0x2F3C, 0x001E, 0x0007, 0x7000, 0xA82A);
- typedef CALLBACK_API( void , DataHCompletionProcPtr )(Ptr request, long refcon, OSErr err);
- typedef STACK_UPP_TYPE(DataHCompletionProcPtr) DataHCompletionUPP;
- enum {
- kDataHCanRead = 1L << 0,
- kDataHSpecialRead = 1L << 1,
- kDataHSpecialReadFile = 1L << 2,
- kDataHCanWrite = 1L << 3,
- kDataHSpecialWrite = 1 << 4,
- kDataHSpecialWriteFile = 1 << 5,
- kDataHCanStreamingWrite = 1 << 6,
- kDataHMustCheckDataRef = 1 << 7
- };
- /* Data reference records for specific data ref types*/
- struct HandleDataRefRecord {
- Handle dataHndl;
- };
- typedef struct HandleDataRefRecord HandleDataRefRecord;
- typedef HandleDataRefRecord * HandleDataRefPtr;
- typedef HandleDataRefPtr * HandleDataRef;
- struct PointerDataRefRecord {
- void * data;
- Size dataLength;
- };
- typedef struct PointerDataRefRecord PointerDataRefRecord;
- typedef PointerDataRefRecord * PointerDataRefPtr;
- typedef PointerDataRefPtr * PointerDataRef;
- /* Data reference extensions*/
- enum {
- kDataRefExtensionChokeSpeed = FOUR_CHAR_CODE('chok'),
- kDataRefExtensionFileName = FOUR_CHAR_CODE('fnam'),
- kDataRefExtensionMIMEType = FOUR_CHAR_CODE('mime'),
- kDataRefExtensionMacOSFileType = FOUR_CHAR_CODE('ftyp'),
- kDataRefExtensionInitializationData = FOUR_CHAR_CODE('data'),
- kDataRefExtensionQuickTimeMediaType = FOUR_CHAR_CODE('mtyp')
- };
- enum {
- kDataHChokeToMovieDataRate = 1 << 0, /* param is 0*/
- kDataHChokeToParam = 1 << 1 /* param is bytes per second*/
- };
- struct DataHChokeAtomRecord {
- long flags; /* one of kDataHChokeTo constants*/
- long param;
- };
- typedef struct DataHChokeAtomRecord DataHChokeAtomRecord;
- struct DataHVolumeListRecord {
- short vRefNum;
- long flags;
- };
- typedef struct DataHVolumeListRecord DataHVolumeListRecord;
- typedef DataHVolumeListRecord * DataHVolumeListPtr;
- typedef DataHVolumeListPtr * DataHVolumeList;
- enum {
- kDataHExtendedSchedule = FOUR_CHAR_CODE('xtnd')
- };
- struct DataHScheduleRecord {
- TimeRecord timeNeededBy;
- long extendedID; /* always is kDataHExtendedSchedule*/
- long extendedVers; /* always set to 0*/
- Fixed priority; /* 100.0 or more means must have. lower numbers...*/
- };
- typedef struct DataHScheduleRecord DataHScheduleRecord;
- typedef DataHScheduleRecord * DataHSchedulePtr;
- /* Flags for DataHGetInfoFlags*/
- enum {
- kDataHInfoFlagNeverStreams = 1 << 0, /* set if this data handler doesn't stream*/
- kDataHInfoFlagCanUpdateDataRefs = 1 << 1, /* set if this data handler might update data reference*/
- kDataHInfoFlagNeedsNetworkBandwidth = 1 << 2 /* set if this data handler may need to occupy the network*/
- };
- /* Types for DataHGetFileTypeOrdering*/
- enum {
- kDataHFileTypeMacOSFileType = FOUR_CHAR_CODE('ftyp'),
- kDataHFileTypeExtension = FOUR_CHAR_CODE('fext'),
- kDataHFileTypeMIME = FOUR_CHAR_CODE('mime')
- };
- typedef OSType * DataHFileTypeOrderingPtr;
- typedef DataHFileTypeOrderingPtr * DataHFileTypeOrderingHandle;
- EXTERN_API( ComponentResult )
- DataHGetData (DataHandler dh,
- Handle h,
- long hOffset,
- long offset,
- long size) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHPutData (DataHandler dh,
- Handle h,
- long hOffset,
- long * offset,
- long size) FIVEWORDINLINE(0x2F3C, 0x0010, 0x0003, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHFlushData (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0004, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHOpenForWrite (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHCloseForWrite (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHOpenForRead (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0008, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHCloseForRead (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0009, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetDataRef (DataHandler dh,
- Handle dataRef) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetDataRef (DataHandler dh,
- Handle * dataRef) FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHCompareDataRef (DataHandler dh,
- Handle dataRef,
- Boolean * equal) FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHTask (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x000D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHScheduleData (DataHandler dh,
- Ptr PlaceToPutDataPtr,
- long FileOffset,
- long DataSize,
- long RefCon,
- DataHSchedulePtr scheduleRec,
- DataHCompletionUPP CompletionRtn) FIVEWORDINLINE(0x2F3C, 0x0018, 0x000E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHFinishData (DataHandler dh,
- Ptr PlaceToPutDataPtr,
- Boolean Cancel) FIVEWORDINLINE(0x2F3C, 0x0006, 0x000F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHFlushCache (DataHandler dh) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHResolveDataRef (DataHandler dh,
- Handle theDataRef,
- Boolean * wasChanged,
- Boolean userInterfaceAllowed) FIVEWORDINLINE(0x2F3C, 0x000A, 0x0011, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetFileSize (DataHandler dh,
- long * fileSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHCanUseDataRef (DataHandler dh,
- Handle dataRef,
- long * useFlags) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetVolumeList (DataHandler dh,
- DataHVolumeList * volumeList) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHWrite (DataHandler dh,
- Ptr data,
- long offset,
- long size,
- DataHCompletionUPP completion,
- long refCon) FIVEWORDINLINE(0x2F3C, 0x0014, 0x0015, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHPreextend (DataHandler dh,
- unsigned long maxToAdd,
- unsigned long * spaceAdded) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetFileSize (DataHandler dh,
- long fileSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0017, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetFreeSpace (DataHandler dh,
- unsigned long * freeSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHCreateFile (DataHandler dh,
- OSType creator,
- Boolean deleteExisting) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0019, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetPreferredBlockSize (DataHandler dh,
- long * blockSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetDeviceIndex (DataHandler dh,
- long * deviceIndex) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHIsStreamingDataHandler (DataHandler dh,
- Boolean * yes) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetDataInBuffer (DataHandler dh,
- long startOffset,
- long * size) FIVEWORDINLINE(0x2F3C, 0x0008, 0x001D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetScheduleAheadTime (DataHandler dh,
- long * millisecs) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetCacheSizeLimit (DataHandler dh,
- Size cacheSizeLimit) FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetCacheSizeLimit (DataHandler dh,
- Size * cacheSizeLimit) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0020, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetMovie (DataHandler dh,
- Movie * theMovie,
- short * id) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHAddMovie (DataHandler dh,
- Movie theMovie,
- short * id) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0022, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHUpdateMovie (DataHandler dh,
- Movie theMovie,
- short id) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0023, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHDoesBuffer (DataHandler dh,
- Boolean * buffersReads,
- Boolean * buffersWrites) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetFileName (DataHandler dh,
- Str255 str) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetAvailableFileSize (DataHandler dh,
- long * fileSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetMacOSFileType (DataHandler dh,
- OSType * fileType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetMIMEType (DataHandler dh,
- Str255 mimeType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetDataRefWithAnchor (DataHandler dh,
- Handle anchorDataRef,
- OSType dataRefType,
- Handle dataRef) FIVEWORDINLINE(0x2F3C, 0x000C, 0x0029, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetDataRefWithAnchor (DataHandler dh,
- Handle anchorDataRef,
- OSType dataRefType,
- Handle * dataRef) FIVEWORDINLINE(0x2F3C, 0x000C, 0x002A, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetMacOSFileType (DataHandler dh,
- OSType fileType) FIVEWORDINLINE(0x2F3C, 0x0004, 0x002B, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHSetTimeBase (DataHandler dh,
- TimeBase tb) FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetInfoFlags (DataHandler dh,
- UInt32 * flags) FIVEWORDINLINE(0x2F3C, 0x0004, 0x002D, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHScheduleData64 (DataHandler dh,
- Ptr PlaceToPutDataPtr,
- const wide * FileOffset,
- long DataSize,
- long RefCon,
- DataHSchedulePtr scheduleRec,
- DataHCompletionUPP CompletionRtn) FIVEWORDINLINE(0x2F3C, 0x0018, 0x002E, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHWrite64 (DataHandler dh,
- Ptr data,
- const wide * offset,
- long size,
- DataHCompletionUPP completion,
- long refCon) FIVEWORDINLINE(0x2F3C, 0x0014, 0x002F, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHGetFileSize64 (DataHandler dh,
- wide * fileSize) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0030, 0x7000, 0xA82A);
- EXTERN_API( ComponentResult )
- DataHPreextend64 (DataHandler dh,
- const wide * maxToAdd,
- wide * spaceAdded) FIVEWORDINLINE(0x2F3C, 0x0008, 0x0031, 0x7000, 0xA82A);