home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
cyber.net 2
/
cybernet2.ISO
/
qtw111
/
inc
/
qtw.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-12
|
22KB
|
504 lines
// ---------------------------------------------------------------------
//
// QTW.H - QuickTime for Windows C and C++ Bindings
//
// Version 1.0
//
// (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
//
// ---------------------------------------------------------------------
// Prevent multiple inclusion
// --------------------------
#ifndef __QTW_H__
#define __QTW_H__
// Movie Controller MCDoAction action constants
// --------------------------------------------
typedef enum
{mcActionIdle = 1, // No Param
mcActionDraw = 2, // No Param
mcActionActivate = 3, // No param
mcActionDeactivate = 4, // No param
mcActionKey = 6, // Param is pointer to MSG
mcActionPlay = 8, // Param is LFIXED play rate
mcActionGoToTime = 12, // Param is pointer to TimeRecord
mcActionSetVolume = 14, // Param is SFIXED volume
mcActionGetVolume = 15, // Param is pointer to SFIXED volume
mcActionStep = 18, // Param is LONG number of steps
mcActionSetLooping = 21, // Param is a BOOL
mcActionGetLooping = 22, // Param is pointer to a BOOL
mcActionSetLoopIsPalindrome = 23, // Param is BOOL
mcActionGetLoopIsPalindrome = 24, // Param is pointer to a BOOL
mcActionSetGrowBoxBounds = 25, // Param is pointer to a Rect
mcActionControllerSizeChanged = 26, // No param
mcActionSetSelectionBegin = 29, // Param is pointer to TimeRecord
mcActionSetSelectionDuration = 30, // Param is pointer to TimeRecord
mcActionSetKeysEnabled = 32, // Param is BOOL
mcActionGetKeysEnabled = 33, // Param is pointer to BOOL
mcActionSetPlaySelection = 34, // Param is BOOL
mcActionGetPlaySelection = 35, // Param is pointer to BOOL
mcActionSetUseBadge = 36, // Param is BOOL
mcActionGetUseBadge = 37, // Param is pointer to BOOL
mcActionSetFlags = 38, // Param is LONG flags
mcActionGetFlags = 39, // Param is pointer to LONG flags
mcActionSetPlayEveryFrame = 40, // Param is BOOL
mcActionGetPlayEveryFrame = 41, // Param is pointer to BOOL
mcActionGetPlayRate = 42, // Param is pointer to LFIXED
mcActionBadgeClick = 44 // No param
} mcActionType;
// Movie Controller MCDoAction, action McActionSetFlags parameter, movie
// controller structure parameter, lfActionFlags
// ---------------------------------------------------------------------
typedef enum
{mcFlagSuppressStepButtons = 1<<1,
mcFlagSuppressSpeakerButton = 1<<2,
mcFlagsUseWindowPalette = 1<<3
} mcActionFlags;
// Toolbox function NewMovieController and Movie Controller function
// MCPositionController parameter controllerCreationFlags values,
// movie controller structure parameter, lfControllerStateFlags
// -----------------------------------------------------------------
typedef enum
{mcTopLeftMovie = 1<<0,
mcScaleMovieToFit = 1<<1,
mcWithBadge = 1<<2,
mcNotVisible = 1<<3
} mcControllerStateFlags;
// Movie Controller function MCGetControllerInfo parameter mcInfoFlags
// parameter, movie controller structure parameter, lfControllerInfoFlags
// ----------------------------------------------------------------------
typedef enum
{mcInfoHasSound = 1<<5,
mcInfoIsPlaying = 1<<6,
mcInfoIsLooping = 1<<7,
mcInfoIsInPalindrome = 1<<8
} mcControllerInfoFlags;
// NewMovieFromFile flags
// ----------------------
typedef enum
{newMovieActive = 1<<0,
newMovieDontResolveDataRefs = 1<<1,
newMovieDontAskUnresolvedDataRefs = 1<<2,
newMovieDontAutoAlternates = 1<<3
} newMovieFlags;
// Flags for SetMoviePlayHints
// ---------------------------
typedef enum
{hintsScrubMode = 1<<1,
hintsInterpolateSound = 1<<7
} moviePlayHints;
// Manifest constants for ostypes as flags for Component Manager calls
// -------------------------------------------------------------------
#define kAnyComponentType 0
#define kAnyComponentSubType 0
#define kAnyComponentManufacturer 0
#define kAnyComponentFlagsMask 0
// SetDefaultComponent Flags
// -------------------------
typedef enum
{defaultComponentIdentical = 0,
defaultComponentAnyFlags = 1,
defaultComponentAnyManufacturer = 2,
defaultComponentAnySubType = 4
} defaultComponentFlags;
// RegisterComponent Flags
// -----------------------
typedef enum
{registerComponentGlobal = 1,
registerComponentNoDuplicates = 2,
registerComponentAfterExisting = 4
} registerComponentFlags;
// Error codes
// -------------
enum
{
paramErr = -50,
couldNotResolveDataRef = -2000,
badImageDescription = -2001,
badPublicMovieAtom = -2002,
cantFindHandler = -2003,
cantOpenHandler = -2004,
badComponentType = -2005,
noMediaHandler = -2006,
noDataHandler = -2007,
invalidMedia = -2008,
invalidTrack = -2009,
invalidMovie = -2010,
invalidSampleTable = -2011,
invalidDataRef = -2012,
invalidHandler = -2013,
invalidDuration = -2014,
invalidTime = -2015,
cantPutPublicMovieAtom = -2016,
badEditList = -2017,
mediaTypesDontMatch = -2018,
progressProcAborted = -2019,
movieToolboxUninitialized = -2020,
wffileNotFound = -2021,
cantCreateSingleForkFile = -2022,
invalidEditState = -2023,
nonMatchingEditState = -2024,
staleEditState = -2025,
userDataItemNotFound = -2026,
maxSizeToGrowTooSmall = -2027,
badTrackIndex = -2028,
trackIDNotFound = -2029,
trackNotInMovie = -2030,
timeNotInTrack = -2031,
timeNotInMedia = -2032,
badEditIndex = -2033,
internalQuickTimeError = -2034,
cantEnableTrack = -2035,
invalidRect = -2036,
invalidSampleNum = -2037,
invalidChunkNum = -2038,
invalidSampleDescIndex = -2039,
invalidChunkCache = -2040,
invalidSampleDescription = -2041,
dataNotOpenForRead = -2042,
dataNotOpenForWrite = -2043,
dataAlreadyOpenForWrite = -2044,
dataAlreadyClosed = -2045,
endOfDataReached = -2046,
dataNoDataRef = -2047,
noMovieInDataFork = -2048,
invalidDataRefContainer = -2049,
badDataRefIndex = -2050,
noDefaultDataRef = -2051,
couldNotUseAnExistingSample = -2052,
featureUnsupported = -2053,
noVideoTrackInMovie = -2054,
noSoundTrackInMovie = -2055,
soundSupportNotAvailable = -2056,
maxControllersExceeded = -2057,
unableToCreateMCWindow = -2058,
insufficientMemory = -2059,
invalidUserDataHandle = -2060,
noPictureInFile = -2061,
invalidPictureFileHandle = -2062,
invalidPictureHandle = -2063,
badDisplayContext = -2064,
invalidComponentID = -3000,
validInstancesExist = -3001,
componentNotCaptured = -3002,
componentDontRegister = -3003,
noErr