123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234 |
- {
- File: Movies.p
-
- Contains: QuickTime Interfaces.
-
- Version: Technology: QuickTime 6.0
- Release: Universal Interfaces 3.4.2
-
- Copyright: © 1990-2002 by Apple Computer, Inc., all rights reserved
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://www.freepascal.org/bugs.html
-
- }
- {
- Modified for use with Free Pascal
- Version 210
- Please report any bugs to <[email protected]>
- }
- {$mode macpas}
- {$packenum 1}
- {$macro on}
- {$inline on}
- {$calling mwpascal}
- unit Movies;
- interface
- {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
- {$setc GAP_INTERFACES_VERSION := $0210}
- {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
- {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
- {$endc}
- {$ifc defined CPUPOWERPC and defined CPUI386}
- {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
- {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
- {$endc}
- {$ifc not defined __ppc__ and defined CPUPOWERPC}
- {$setc __ppc__ := 1}
- {$elsec}
- {$setc __ppc__ := 0}
- {$endc}
- {$ifc not defined __i386__ and defined CPUI386}
- {$setc __i386__ := 1}
- {$elsec}
- {$setc __i386__ := 0}
- {$endc}
- {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
- {$error Conflicting definitions for __ppc__ and __i386__}
- {$endc}
- {$ifc defined __ppc__ and __ppc__}
- {$setc TARGET_CPU_PPC := TRUE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$elifc defined __i386__ and __i386__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_X86 := TRUE}
- {$elsec}
- {$error Neither __ppc__ nor __i386__ is defined.}
- {$endc}
- {$setc TARGET_CPU_PPC_64 := FALSE}
- {$ifc defined FPC_BIG_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := TRUE}
- {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
- {$elifc defined FPC_LITTLE_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := FALSE}
- {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
- {$elsec}
- {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
- {$endc}
- {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
- {$setc CALL_NOT_IN_CARBON := FALSE}
- {$setc OLDROUTINENAMES := FALSE}
- {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
- {$setc OPAQUE_UPP_TYPES := TRUE}
- {$setc OTCARBONAPPLICATION := TRUE}
- {$setc OTKERNEL := FALSE}
- {$setc PM_USE_SESSION_APIS := TRUE}
- {$setc TARGET_API_MAC_CARBON := TRUE}
- {$setc TARGET_API_MAC_OS8 := FALSE}
- {$setc TARGET_API_MAC_OSX := TRUE}
- {$setc TARGET_CARBON := TRUE}
- {$setc TARGET_CPU_68K := FALSE}
- {$setc TARGET_CPU_MIPS := FALSE}
- {$setc TARGET_CPU_SPARC := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_UNIX := FALSE}
- {$setc TARGET_OS_WIN32 := FALSE}
- {$setc TARGET_RT_MAC_68881 := FALSE}
- {$setc TARGET_RT_MAC_CFM := FALSE}
- {$setc TARGET_RT_MAC_MACHO := TRUE}
- {$setc TYPED_FUNCTION_POINTERS := TRUE}
- {$setc TYPE_BOOL := FALSE}
- {$setc TYPE_EXTENDED := FALSE}
- {$setc TYPE_LONGLONG := TRUE}
- uses MacTypes,Files,QDOffscreen,TextEdit,Controls,Dialogs,Quickdraw,Aliases,Events,Menus,Components,Sound,ImageCompression;
- {$ALIGN MAC68K}
- { "kFix1" is defined in FixMath as "fixed1" }
- { error codes are in Errors.[haa] }
- { gestalt codes are in Gestalt.[hpa] }
- const
- MovieFileType = FourCharCode('MooV');
- MovieScrapType = FourCharCode('moov');
- MovieResourceType = FourCharCode('moov');
- MovieForwardPointerResourceType = FourCharCode('fore');
- MovieBackwardPointerResourceType = FourCharCode('back');
- MovieResourceAtomType = FourCharCode('moov');
- MovieDataAtomType = FourCharCode('mdat');
- FreeAtomType = FourCharCode('free');
- SkipAtomType = FourCharCode('skip');
- WideAtomPlaceholderType = FourCharCode('wide');
- MediaHandlerType = FourCharCode('mhlr');
- DataHandlerType = FourCharCode('dhlr');
- VideoMediaType = FourCharCode('vide');
- SoundMediaType = FourCharCode('soun');
- TextMediaType = FourCharCode('text');
- BaseMediaType = FourCharCode('gnrc');
- MPEGMediaType = FourCharCode('MPEG');
- MusicMediaType = FourCharCode('musi');
- TimeCodeMediaType = FourCharCode('tmcd');
- SpriteMediaType = FourCharCode('sprt');
- FlashMediaType = FourCharCode('flsh');
- MovieMediaType = FourCharCode('moov');
- TweenMediaType = FourCharCode('twen');
- ThreeDeeMediaType = FourCharCode('qd3d');
- SkinMediaType = FourCharCode('skin');
- HandleDataHandlerSubType = FourCharCode('hndl');
- PointerDataHandlerSubType = FourCharCode('ptr ');
- NullDataHandlerSubType = FourCharCode('null');
- ResourceDataHandlerSubType = FourCharCode('rsrc');
- URLDataHandlerSubType = FourCharCode('url ');
- WiredActionHandlerType = FourCharCode('wire');
- VisualMediaCharacteristic = FourCharCode('eyes');
- AudioMediaCharacteristic = FourCharCode('ears');
- kCharacteristicCanSendVideo = FourCharCode('vsnd');
- kCharacteristicProvidesActions = FourCharCode('actn');
- kCharacteristicNonLinear = FourCharCode('nonl');
- kCharacteristicCanStep = FourCharCode('step');
- kCharacteristicHasNoDuration = FourCharCode('noti');
- kCharacteristicHasSkinData = FourCharCode('skin');
- kCharacteristicProvidesKeyFocus = FourCharCode('keyf');
- kUserDataMovieControllerType = FourCharCode('ctyp');
- kUserDataName = FourCharCode('name');
- kUserDataTextAlbum = FourCharCode('©alb');
- kUserDataTextArtist = FourCharCode('©ART');
- kUserDataTextAuthor = FourCharCode('©aut');
- kUserDataTextChapter = FourCharCode('©chp');
- kUserDataTextComment = FourCharCode('©cmt');
- kUserDataTextComposer = FourCharCode('©com');
- kUserDataTextCopyright = FourCharCode('©cpy');
- kUserDataTextCreationDate = FourCharCode('©day');
- kUserDataTextDescription = FourCharCode('©des');
- kUserDataTextDirector = FourCharCode('©dir');
- kUserDataTextDisclaimer = FourCharCode('©dis');
- kUserDataTextEncodedBy = FourCharCode('©enc');
- kUserDataTextFullName = FourCharCode('©nam');
- kUserDataTextGenre = FourCharCode('©gen');
- kUserDataTextHostComputer = FourCharCode('©hst');
- kUserDataTextInformation = FourCharCode('©inf');
- kUserDataTextKeywords = FourCharCode('©key');
- kUserDataTextMake = FourCharCode('©mak');
- kUserDataTextModel = FourCharCode('©mod');
- kUserDataTextOriginalArtist = FourCharCode('©ope');
- kUserDataTextOriginalFormat = FourCharCode('©fmt');
- kUserDataTextOriginalSource = FourCharCode('©src');
- kUserDataTextPerformers = FourCharCode('©prf');
- kUserDataTextProducer = FourCharCode('©prd');
- kUserDataTextProduct = FourCharCode('©PRD');
- kUserDataTextSoftware = FourCharCode('©swr');
- kUserDataTextSpecialPlaybackRequirements = FourCharCode('©req');
- kUserDataTextTrack = FourCharCode('©trk');
- kUserDataTextWarning = FourCharCode('©wrn');
- kUserDataTextWriter = FourCharCode('©wrt');
- kUserDataTextURLLink = FourCharCode('©url');
- kUserDataTextEditDate1 = FourCharCode('©ed1');
- kUserDataUnicodeBit = $00000080;
- DoTheRightThing = 0;
- type
- MovieRecordPtr = ^MovieRecord;
- MovieRecord = record
- data: array [0..0] of SInt32;
- end;
- Movie = ^MovieRecord;
- Movie_fix = Movie; { used as field type when a record declaration contains a Movie field identifier }
- MoviePtr = ^Movie;
- TrackRecordPtr = ^TrackRecord;
- TrackRecord = record
- data: array [0..0] of SInt32;
- end;
- Track = ^TrackRecord;
- Track_fix = Track; { used as field type when a record declaration contains a Track field identifier }
- MediaRecordPtr = ^MediaRecord;
- MediaRecord = record
- data: array [0..0] of SInt32;
- end;
- Media = ^MediaRecord;
- UserDataRecordPtr = ^UserDataRecord;
- UserDataRecord = record
- data: array [0..0] of SInt32;
- end;
- UserData = ^UserDataRecord;
- TrackEditStateRecordPtr = ^TrackEditStateRecord;
- TrackEditStateRecord = record
- data: array [0..0] of SInt32;
- end;
- TrackEditState = ^TrackEditStateRecord;
- MovieEditStateRecordPtr = ^MovieEditStateRecord;
- MovieEditStateRecord = record
- data: array [0..0] of SInt32;
- end;
- MovieEditState = ^MovieEditStateRecord;
- QTRestrictionSetRecordPtr = ^QTRestrictionSetRecord;
- QTRestrictionSetRecord = record
- data: array [0..0] of SInt32;
- end;
- QTRestrictionSet = ^QTRestrictionSetRecord;
- SpriteWorldRecordPtr = ^SpriteWorldRecord;
- SpriteWorldRecord = record
- data: array [0..0] of SInt32;
- end;
- SpriteWorld = ^SpriteWorldRecord;
- SpriteRecordPtr = ^SpriteRecord;
- SpriteRecord = record
- data: array [0..0] of SInt32;
- end;
- Sprite = ^SpriteRecord;
- QTTweenerRecordPtr = ^QTTweenerRecord;
- QTTweenerRecord = record
- data: array [0..0] of SInt32;
- end;
- QTTweener = ^QTTweenerRecord;
- SampleDescriptionPtr = ^SampleDescription;
- SampleDescription = record
- descSize: SInt32;
- dataFormat: SInt32;
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- end;
- SampleDescriptionHandle = ^SampleDescriptionPtr;
- QTBandwidthReference = ^SInt32; { an opaque 32-bit type }
- QTBandwidthReferencePtr = ^QTBandwidthReference; { when a var xx:QTBandwidthReference parameter can be nil, it is changed to xx: QTBandwidthReferencePtr }
- QTScheduledBandwidthReference = ^SInt32; { an opaque 32-bit type }
- QTScheduledBandwidthReferencePtr = ^QTScheduledBandwidthReference; { when a var xx:QTScheduledBandwidthReference parameter can be nil, it is changed to xx: QTScheduledBandwidthReferencePtr }
- const
- kQTNetworkStatusNoNetwork = -2;
- kQTNetworkStatusUncertain = -1;
- kQTNetworkStatusNotConnected = 0;
- kQTNetworkStatusConnected = 1;
- type
- QTAtomContainer = Handle;
- QTAtom = SInt32;
- QTAtomType = SInt32;
- QTAtomID = SInt32;
- { QTFloatDouble is the 64-bit IEEE-754 standard }
- QTFloatDouble = Float64;
- { QTFloatSingle is the 32-bit IEEE-754 standard }
- QTFloatSingle = Float32;
- SoundDescriptionPtr = ^SoundDescription;
- SoundDescription = record
- descSize: SInt32; { total size of SoundDescription including extra data }
- dataFormat: SInt32; { sound format }
- resvd1: SInt32; { reserved for apple use. set to zero }
- resvd2: SInt16; { reserved for apple use. set to zero }
- dataRefIndex: SInt16;
- version: SInt16; { which version is this data }
- revlevel: SInt16; { what version of that codec did this }
- vendor: SInt32; { whose codec compressed this data }
- numChannels: SInt16; { number of channels of sound }
- sampleSize: SInt16; { number of bits per sample }
- compressionID: SInt16; { unused. set to zero. }
- packetSize: SInt16; { unused. set to zero. }
- sampleRate: UnsignedFixed; { sample rate sound is captured at }
- end;
- SoundDescriptionHandle = ^SoundDescriptionPtr;
- { version 1 of the SoundDescription record }
- SoundDescriptionV1Ptr = ^SoundDescriptionV1;
- SoundDescriptionV1 = record
- { original fields }
- desc: SoundDescription;
- { fixed compression ratio information }
- samplesPerPacket: UInt32;
- bytesPerPacket: UInt32;
- bytesPerFrame: UInt32;
- bytesPerSample: UInt32;
- { additional atom based fields ([long size, long type, some data], repeat) }
- end;
- SoundDescriptionV1Handle = ^SoundDescriptionV1Ptr;
- TextDescriptionPtr = ^TextDescription;
- TextDescription = record
- descSize: SInt32; { Total size of TextDescription }
- dataFormat: SInt32; { 'text' }
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- displayFlags: SInt32; { see enum below for flag values }
- textJustification: SInt32; { Can be: teCenter,teFlush -Default,-Right,-Left }
- bgColor: RGBColor; { Background color }
- defaultTextBox: Rect; { Location to place the text within the track bounds }
- defaultStyle: ScrpSTElement; { Default style (struct defined in TextEdit.h) }
- defaultFontName: SInt8; { Font Name (pascal string - struct extended to fit) }
- end;
- TextDescriptionHandle = ^TextDescriptionPtr;
- SpriteDescriptionPtr = ^SpriteDescription;
- SpriteDescription = record
- descSize: SInt32; { total size of SpriteDescription including extra data }
- dataFormat: SInt32; { }
- resvd1: SInt32; { reserved for apple use }
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SInt32; { which version is this data }
- decompressorType: OSType; { which decompressor to use, 0 for no decompression }
- sampleFlags: SInt32; { how to interpret samples }
- end;
- SpriteDescriptionHandle = ^SpriteDescriptionPtr;
- FlashDescriptionPtr = ^FlashDescription;
- FlashDescription = record
- descSize: SInt32;
- dataFormat: SInt32;
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SInt32; { which version is this data }
- decompressorType: OSType; { which decompressor to use, 0 for no decompression }
- flags: SInt32;
- end;
- FlashDescriptionHandle = ^FlashDescriptionPtr;
- ThreeDeeDescriptionPtr = ^ThreeDeeDescription;
- ThreeDeeDescription = record
- descSize: SInt32; { total size of ThreeDeeDescription including extra data }
- dataFormat: SInt32; { }
- resvd1: SInt32; { reserved for apple use }
- resvd2: SInt16;
- dataRefIndex: SInt16;
- version: SInt32; { which version is this data }
- rendererType: SInt32; { which renderer to use, 0 for default }
- decompressorType: SInt32; { which decompressor to use, 0 for default }
- end;
- ThreeDeeDescriptionHandle = ^ThreeDeeDescriptionPtr;
- DataReferenceRecordPtr = ^DataReferenceRecord;
- DataReferenceRecord = record
- dataRefType: OSType;
- dataRef: Handle;
- end;
- DataReferencePtr = ^DataReferenceRecord;
- { --------------------------
- Music Sample Description
- -------------------------- }
- MusicDescriptionPtr = ^MusicDescription;
- MusicDescription = record
- descSize: SInt32;
- dataFormat: SInt32; { 'musi' }
- resvd1: SInt32;
- resvd2: SInt16;
- dataRefIndex: SInt16;
- musicFlags: SInt32;
- headerData: array [0..0] of UInt32; { variable size! }
- end;
- MusicDescriptionHandle = ^MusicDescriptionPtr;
- const
- kMusicFlagDontPlay2Soft = $00000001;
- kMusicFlagDontSlaveToMovie = $00000002;
- dfDontDisplay = $01; { Don't display the text }
- dfDontAutoScale = $02; { Don't scale text as track bounds grows or shrinks }
- dfClipToTextBox = $04; { Clip update to the textbox }
- dfUseMovieBGColor = $08; { Set text background to movie's background color }
- dfShrinkTextBoxToFit = $10; { Compute minimum box to fit the sample }
- dfScrollIn = $20; { Scroll text in until last of text is in view }
- dfScrollOut = $40; { Scroll text out until last of text is gone (if both set, scroll in then out) }
- dfHorizScroll = $80; { Scroll text horizontally (otherwise it's vertical) }
- dfReverseScroll = $0100; { vert: scroll down rather than up; horiz: scroll backwards (justfication dependent) }
- dfContinuousScroll = $0200; { new samples cause previous samples to scroll out }
- dfFlowHoriz = $0400; { horiz scroll text flows in textbox rather than extend to right }
- dfContinuousKaraoke = $0800; { ignore begin offset, hilite everything up to the end offset(karaoke) }
- dfDropShadow = $1000; { display text with a drop shadow }
- dfAntiAlias = $2000; { attempt to display text anti aliased }
- dfKeyedText = $4000; { key the text over background }
- dfInverseHilite = $8000; { Use inverse hiliting rather than using hilite color }
- dfTextColorHilite = $00010000; { changes text color in place of hiliting. }
- searchTextDontGoToFoundTime = $00010000;
- searchTextDontHiliteFoundText = $00020000;
- searchTextOneTrackOnly = $00040000;
- searchTextEnabledTracksOnly = $00080000;
- { use these with the text property routines }
- { set property parameter / get property parameter }
- kTextTextHandle = 1; { Handle / preallocated Handle }
- kTextTextPtr = 2; { Pointer }
- kTextTEStyle = 3; { TextStyle * / TextStyle * }
- kTextSelection = 4; { long [2] / long [2] }
- kTextBackColor = 5; { RGBColor * / RGBColor * }
- kTextForeColor = 6; { RGBColor * / RGBColor * }
- kTextFace = 7; { long / long * }
- kTextFont = 8; { long / long * }
- kTextSize = 9; { long / long * }
- kTextAlignment = 10; { short * / short * }
- kTextHilite = 11; { hiliteRecord * / hiliteRecord * }
- kTextDropShadow = 12; { dropShadowRecord * / dropShadowRecord * }
- kTextDisplayFlags = 13; { long / long * }
- kTextScroll = 14; { TimeValue * / TimeValue * }
- kTextRelativeScroll = 15; { Point * }
- kTextHyperTextFace = 16; { hyperTextSetFace * / hyperTextSetFace * }
- kTextHyperTextColor = 17; { hyperTextSetColor * / hyperTextSetColor * }
- kTextKeyEntry = 18; { short }
- kTextMouseDown = 19; { Point * }
- kTextTextBox = 20; { Rect * / Rect * }
- kTextEditState = 21; { short / short * }
- kTextLength = 22; { / long * }
- k3DMediaRendererEntry = FourCharCode('rend');
- k3DMediaRendererName = FourCharCode('name');
- k3DMediaRendererCode = FourCharCode('rcod');
- { progress messages }
- movieProgressOpen = 0;
- movieProgressUpdatePercent = 1;
- movieProgressClose = 2;
- { progress operations }
- progressOpFlatten = 1;
- progressOpInsertTrackSegment = 2;
- progressOpInsertMovieSegment = 3;
- progressOpPaste = 4;
- progressOpAddMovieSelection = 5;
- progressOpCopy = 6;
- progressOpCut = 7;
- progressOpLoadMovieIntoRam = 8;
- progressOpLoadTrackIntoRam = 9;
- progressOpLoadMediaIntoRam = 10;
- progressOpImportMovie = 11;
- progressOpExportMovie = 12;
- mediaQualityDraft = $0000;
- mediaQualityNormal = $0040;
- mediaQualityBetter = $0080;
- mediaQualityBest = $00C0;
- { ****
- Interactive Sprites Support
- **** }
- { QTEventRecord flags }
- kQTEventPayloadIsQTList = $00000001;
- type
- QTEventRecordPtr = ^QTEventRecord;
- QTEventRecord = record
- version: SInt32;
- eventType: OSType;
- where: Point;
- flags: SInt32;
- payloadRefcon: SInt32; { from here down only present if version >= 2 }
- param1: SInt32;
- param2: SInt32;
- param3: SInt32;
- end;
- QTAtomSpecPtr = ^QTAtomSpec;
- QTAtomSpec = record
- container: QTAtomContainer;
- atom: QTAtom;
- end;
- ResolvedQTEventSpecPtr = ^ResolvedQTEventSpec;
- ResolvedQTEventSpec = record
- actionAtom: QTAtomSpec;
- targetTrack: Track;
- targetRefCon: SInt32;
- end;
- { action constants }
- const
- kActionMovieSetVolume = 1024; { (short movieVolume) }
- kActionMovieSetRate = 1025; { (Fixed rate) }
- kActionMovieSetLoopingFlags = 1026; { (long loopingFlags) }
- kActionMovieGoToTime = 1027; { (TimeValue time) }
- kActionMovieGoToTimeByName = 1028; { (Str255 timeName) }
- kActionMovieGoToBeginning = 1029; { no params }
- kActionMovieGoToEnd = 1030; { no params }
- kActionMovieStepForward = 1031; { no params }
- kActionMovieStepBackward = 1032; { no params }
- kActionMovieSetSelection = 1033; { (TimeValue startTime, TimeValue endTime) }
- kActionMovieSetSelectionByName = 1034; { (Str255 startTimeName, Str255 endTimeName) }
- kActionMoviePlaySelection = 1035; { (Boolean selectionOnly) }
- kActionMovieSetLanguage = 1036; { (long language) }
- kActionMovieChanged = 1037; { no params }
- kActionMovieRestartAtTime = 1038; { (TimeValue startTime, Fixed rate) }
- kActionMovieGotoNextChapter = 1039; { no params }
- kActionMovieGotoPreviousChapter = 1040; { no params }
- kActionMovieGotoFirstChapter = 1041; { no params }
- kActionMovieGotoLastChapter = 1042; { no params }
- kActionMovieGotoChapterByIndex = 1043; { ( short index ) }
- kActionMovieSetScale = 1044; { (Fixed xScale, Fixed yScale) }
- kActionTrackSetVolume = 2048; { (short volume) }
- kActionTrackSetBalance = 2049; { (short balance) }
- kActionTrackSetEnabled = 2050; { (Boolean enabled) }
- kActionTrackSetMatrix = 2051; { (MatrixRecord matrix) }
- kActionTrackSetLayer = 2052; { (short layer) }
- kActionTrackSetClip = 2053; { (RgnHandle clip) }
- kActionTrackSetCursor = 2054; { (QTATomID cursorID) }
- kActionTrackSetGraphicsMode = 2055; { (ModifierTrackGraphicsModeRecord graphicsMode) }
- kActionTrackSetIdleFrequency = 2056; { (long frequency) }
- kActionTrackSetBassTreble = 2057; { (short base, short treble) }
- kActionSpriteSetMatrix = 3072; { (MatrixRecord matrix) }
- kActionSpriteSetImageIndex = 3073; { (short imageIndex) }
- kActionSpriteSetVisible = 3074; { (short visible) }
- kActionSpriteSetLayer = 3075; { (short layer) }
- kActionSpriteSetGraphicsMode = 3076; { (ModifierTrackGraphicsModeRecord graphicsMode) }
- kActionSpritePassMouseToCodec = 3078; { no params }
- kActionSpriteClickOnCodec = 3079; { Point localLoc }
- kActionSpriteTranslate = 3080; { (Fixed x, Fixed y, Boolean isAbsolute) }
- kActionSpriteScale = 3081; { (Fixed xScale, Fixed yScale) }
- kActionSpriteRotate = 3082; { (Fixed degrees) }
- kActionSpriteStretch = 3083; { (Fixed p1x, Fixed p1y, Fixed p2x, Fixed p2y, Fixed p3x, Fixed p3y, Fixed p4x, Fixed p4y) }
- kActionSpriteSetCanBeHitTested = 3094; { (short canBeHitTested) }
- kActionQTVRSetPanAngle = 4096; { (float panAngle) }
- kActionQTVRSetTiltAngle = 4097; { (float tiltAngle) }
- kActionQTVRSetFieldOfView = 4098; { (float fieldOfView) }
- kActionQTVRShowDefaultView = 4099; { no params }
- kActionQTVRGoToNodeID = 4100; { (UInt32 nodeID) }
- kActionQTVREnableHotSpot = 4101; { long ID, Boolean enable }
- kActionQTVRShowHotSpots = 4102; { Boolean show }
- kActionQTVRTranslateObject = 4103; { float xMove, float yMove }
- kActionQTVRSetViewState = 4109; { long viewStateType, short state }
- kActionMusicPlayNote = 5120; { (long sampleDescIndex, long partNumber, long delay, long pitch, long velocity, long duration) }
- kActionMusicSetController = 5121; { (long sampleDescIndex, long partNumber, long delay, long controller, long value) }
- kActionCase = 6144; { [(CaseStatementActionAtoms)] }
- kActionWhile = 6145; { [(WhileStatementActionAtoms)] }
- kActionGoToURL = 6146; { (C string urlLink) }
- kActionSendQTEventToSprite = 6147; { ([(SpriteTargetAtoms)], QTEventRecord theEvent) }
- kActionDebugStr = 6148; { (Str255 theString) }
- kActionPushCurrentTime = 6149; { no params }
- kActionPushCurrentTimeWithLabel = 6150; { (Str255 theLabel) }
- kActionPopAndGotoTopTime = 6151; { no params }
- kActionPopAndGotoLabeledTime = 6152; { (Str255 theLabel) }
- kActionStatusString = 6153; { (C string theString, long stringTypeFlags) }
- kActionSendQTEventToTrackObject = 6154; { ([(TrackObjectTargetAtoms)], QTEventRecord theEvent) }
- kActionAddChannelSubscription = 6155; { (Str255 channelName, C string channelsURL, C string channelsPictureURL) }
- kActionRemoveChannelSubscription = 6156; { (C string channelsURL) }
- kActionOpenCustomActionHandler = 6157; { (long handlerID, ComponentDescription handlerDesc) }
- kActionDoScript = 6158; { (long scriptTypeFlags, CString command, CString arguments) }
- kActionDoCompressedActions = 6159; { (compressed QTAtomContainer prefixed with eight bytes: long compressorType, long decompressedSize) }
- kActionSendAppMessage = 6160; { (long appMessageID) }
- kActionLoadComponent = 6161; { (ComponentDescription handlerDesc) }
- kActionSetFocus = 6162; { [(TargetAtoms theObject)] }
- kActionDontPassKeyEvent = 6163; { no params }
- kActionSetRandomSeed = 6164; { long randomSeed }
- kActionSpriteTrackSetVariable = 7168; { (QTAtomID variableID, float value) }
- kActionSpriteTrackNewSprite = 7169; { (QTAtomID spriteID, short imageIndex, MatrixRecord *matrix, short visible, short layer, ModifierTrackGraphicsModeRecord *graphicsMode, QTAtomID actionHandlingSpriteID) }
- kActionSpriteTrackDisposeSprite = 7170; { (QTAtomID spriteID) }
- kActionSpriteTrackSetVariableToString = 7171; { (QTAtomID variableID, C string value) }
- kActionSpriteTrackConcatVariables = 7172; { (QTAtomID firstVariableID, QTAtomID secondVariableID, QTAtomID resultVariableID ) }
- kActionSpriteTrackSetVariableToMovieURL = 7173; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
- kActionSpriteTrackSetVariableToMovieBaseURL = 7174; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
- kActionSpriteTrackSetAllSpritesHitTestingMode = 7181;
- kActionSpriteTrackNewImage = 7182; { (C string imageURL, QTAtomID desiredID) }
- kActionSpriteTrackDisposeImage = 7183; { (short imageIndex) }
- kActionApplicationNumberAndString = 8192; { (long aNumber, Str255 aString ) }
- kActionQD3DNamedObjectTranslateTo = 9216; { (Fixed x, Fixed y, Fixed z ) }
- kActionQD3DNamedObjectScaleTo = 9217; { (Fixed xScale, Fixed yScale, Fixed zScale ) }
- kActionQD3DNamedObjectRotateTo = 9218; { (Fixed xDegrees, Fixed yDegrees, Fixed zDegrees ) }
- kActionFlashTrackSetPan = 10240; { (short xPercent, short yPercent ) }
- kActionFlashTrackSetZoom = 10241; { (short zoomFactor ) }
- kActionFlashTrackSetZoomRect = 10242; { (long left, long top, long right, long bottom ) }
- kActionFlashTrackGotoFrameNumber = 10243; { (long frameNumber ) }
- kActionFlashTrackGotoFrameLabel = 10244; { (C string frameLabel ) }
- kActionFlashTrackSetFlashVariable = 10245; { (C string path, C string name, C string value, Boolean updateFocus) }
- kActionFlashTrackDoButtonActions = 10246; { (C string path, long buttonID, long transition) }
- kActionMovieTrackAddChildMovie = 11264; { (QTAtomID childMovieID, C string childMovieURL) }
- kActionMovieTrackLoadChildMovie = 11265; { (QTAtomID childMovieID) }
- kActionMovieTrackLoadChildMovieWithQTListParams = 11266; { (QTAtomID childMovieID, C string qtlistXML) }
- kActionTextTrackPasteText = 12288; { (C string theText, long startSelection, long endSelection ) }
- kActionTextTrackSetTextBox = 12291; { (short left, short top, short right, short bottom) }
- kActionTextTrackSetTextStyle = 12292; { (Handle textStyle) }
- kActionTextTrackSetSelection = 12293; { (long startSelection, long endSelection ) }
- kActionTextTrackSetBackgroundColor = 12294; { (ModifierTrackGraphicsModeRecord backgroundColor ) }
- kActionTextTrackSetForegroundColor = 12295; { (ModifierTrackGraphicsModeRecord foregroundColor ) }
- kActionTextTrackSetFace = 12296; { (long fontFace ) }
- kActionTextTrackSetFont = 12297; { (long fontID ) }
- kActionTextTrackSetSize = 12298; { (long fontSize ) }
- kActionTextTrackSetAlignment = 12299; { (short alignment ) }
- kActionTextTrackSetHilite = 12300; { (long startHighlight, long endHighlight, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackSetDropShadow = 12301; { (Point dropShadow, short transparency ) }
- kActionTextTrackSetDisplayFlags = 12302; { (long flags ) }
- kActionTextTrackSetScroll = 12303; { (long delay ) }
- kActionTextTrackRelativeScroll = 12304; { (short deltaX, short deltaY ) }
- kActionTextTrackFindText = 12305; { (long flags, Str255 theText, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackSetHyperTextFace = 12306; { (short index, long fontFace ) }
- kActionTextTrackSetHyperTextColor = 12307; { (short index, ModifierTrackGraphicsModeRecord highlightColor ) }
- kActionTextTrackKeyEntry = 12308; { (short character ) }
- kActionTextTrackMouseDown = 12309; { no params }
- kActionTextTrackSetEditable = 12310; { (short editState) }
- kActionListAddElement = 13312; { (C string parentPath, long atIndex, C string newElementName) }
- kActionListRemoveElements = 13313; { (C string parentPath, long startIndex, long endIndex) }
- kActionListSetElementValue = 13314; { (C string elementPath, C string valueString) }
- kActionListPasteFromXML = 13315; { (C string xml, C string targetParentPath, long startIndex) }
- kActionListSetMatchingFromXML = 13316; { (C string xml, C string targetParentPath) }
- kActionListSetFromURL = 13317; { (C string url, C string targetParentPath ) }
- kActionListExchangeLists = 13318; { (C string url, C string parentPath) }
- kActionListServerQuery = 13319; { (C string url, C string keyValuePairs, long flags, C string parentPath) }
- kOperandExpression = 1;
- kOperandConstant = 2;
- kOperandSubscribedToChannel = 3; { C string channelsURL }
- kOperandUniqueCustomActionHandlerID = 4;
- kOperandCustomActionHandlerIDIsOpen = 5; { long ID }
- kOperandConnectionSpeed = 6;
- kOperandGMTDay = 7;
- kOperandGMTMonth = 8;
- kOperandGMTYear = 9;
- kOperandGMTHours = 10;
- kOperandGMTMinutes = 11;
- kOperandGMTSeconds = 12;
- kOperandLocalDay = 13;
- kOperandLocalMonth = 14;
- kOperandLocalYear = 15;
- kOperandLocalHours = 16;
- kOperandLocalMinutes = 17;
- kOperandLocalSeconds = 18;
- kOperandRegisteredForQuickTimePro = 19;
- kOperandPlatformRunningOn = 20;
- kOperandQuickTimeVersion = 21;
- kOperandComponentVersion = 22; { C string type, C string subType, C string manufacturer }
- kOperandOriginalHandlerRefcon = 23;
- kOperandTicks = 24;
- kOperandMaxLoadedTimeInMovie = 25;
- kOperandEventParameter = 26; { short index }
- kOperandFreeMemory = 27;
- kOperandNetworkStatus = 28;
- kOperandQuickTimeVersionRegistered = 29; { long version }
- kOperandSystemVersion = 30;
- kOperandMovieVolume = 1024;
- kOperandMovieRate = 1025;
- kOperandMovieIsLooping = 1026;
- kOperandMovieLoopIsPalindrome = 1027;
- kOperandMovieTime = 1028;
- kOperandMovieDuration = 1029;
- kOperandMovieTimeScale = 1030;
- kOperandMovieWidth = 1031;
- kOperandMovieHeight = 1032;
- kOperandMovieLoadState = 1033;
- kOperandMovieTrackCount = 1034;
- kOperandMovieIsActive = 1035;
- kOperandMovieName = 1036;
- kOperandMovieID = 1037;
- kOperandMovieChapterCount = 1038;
- kOperandMovieChapterIndex = 1039;
- kOperandMovieChapterName = 1040;
- kOperandMovieChapterNameByIndex = 1041; { ( short index ) }
- kOperandMovieChapterIndexByName = 1042; { (c string name) }
- kOperandMovieAnnotation = 1043; { (c string requested, long flags) }
- kOperandMovieConnectionFlags = 1044;
- kOperandMovieConnectionString = 1045;
- kOperandTrackVolume = 2048;
- kOperandTrackBalance = 2049;
- kOperandTrackEnabled = 2050;
- kOperandTrackLayer = 2051;
- kOperandTrackWidth = 2052;
- kOperandTrackHeight = 2053;
- kOperandTrackDuration = 2054;
- kOperandTrackName = 2055;
- kOperandTrackID = 2056;
- kOperandTrackIdleFrequency = 2057;
- kOperandTrackBass = 2058;
- kOperandTrackTreble = 2059;
- kOperandSpriteBoundsLeft = 3072;
- kOperandSpriteBoundsTop = 3073;
- kOperandSpriteBoundsRight = 3074;
- kOperandSpriteBoundsBottom = 3075;
- kOperandSpriteImageIndex = 3076;
- kOperandSpriteVisible = 3077;
- kOperandSpriteLayer = 3078;
- kOperandSpriteTrackVariable = 3079; { [QTAtomID variableID] }
- kOperandSpriteTrackNumSprites = 3080;
- kOperandSpriteTrackNumImages = 3081;
- kOperandSpriteID = 3082;
- kOperandSpriteIndex = 3083;
- kOperandSpriteFirstCornerX = 3084;
- kOperandSpriteFirstCornerY = 3085;
- kOperandSpriteSecondCornerX = 3086;
- kOperandSpriteSecondCornerY = 3087;
- kOperandSpriteThirdCornerX = 3088;
- kOperandSpriteThirdCornerY = 3089;
- kOperandSpriteFourthCornerX = 3090;
- kOperandSpriteFourthCornerY = 3091;
- kOperandSpriteImageRegistrationPointX = 3092;
- kOperandSpriteImageRegistrationPointY = 3093;
- kOperandSpriteTrackSpriteIDAtPoint = 3094; { short x, short y }
- kOperandSpriteName = 3095;
- kOperandSpriteCanBeHitTested = 3105; { short }
- kOperandSpriteTrackAllSpritesHitTestingMode = 3106;
- kOperandSpriteTrackImageIDByIndex = 3107; { short imageIndex }
- kOperandSpriteTrackImageIndexByID = 3108; { QTAtomID }
- kOperandQTVRPanAngle = 4096;
- kOperandQTVRTiltAngle = 4097;
- kOperandQTVRFieldOfView = 4098;
- kOperandQTVRNodeID = 4099;
- kOperandQTVRHotSpotsVisible = 4100;
- kOperandQTVRViewCenterH = 4101;
- kOperandQTVRViewCenterV = 4102;
- kOperandQTVRViewStateCount = 4103;
- kOperandQTVRViewState = 4104; { long viewStateType }
- kOperandMouseLocalHLoc = 5120; { [TargetAtoms aTrack] }
- kOperandMouseLocalVLoc = 5121; { [TargetAtoms aTrack] }
- kOperandKeyIsDown = 5122; { [short modKeys, char asciiValue] }
- kOperandRandom = 5123; { [short min, short max] }
- kOperandCanHaveFocus = 5124; { [(TargetAtoms theObject)] }
- kOperandHasFocus = 5125; { [(TargetAtoms theObject)] }
- kOperandTextTrackEditable = 6144;
- kOperandTextTrackCopyText = 6145; { long startSelection, long endSelection }
- kOperandTextTrackStartSelection = 6146;
- kOperandTextTrackEndSelection = 6147;
- kOperandTextTrackTextBoxLeft = 6148;
- kOperandTextTrackTextBoxTop = 6149;
- kOperandTextTrackTextBoxRight = 6150;
- kOperandTextTrackTextBoxBottom = 6151;
- kOperandTextTrackTextLength = 6152;
- kOperandListCountElements = 7168; { (C string parentPath) }
- kOperandListGetElementPathByIndex = 7169; { (C string parentPath, long index) }
- kOperandListGetElementValue = 7170; { (C string elementPath) }
- kOperandListCopyToXML = 7171; { (C string parentPath, long startIndex, long endIndex) }
- kOperandSin = 8192; { float x }
- kOperandCos = 8193; { float x }
- kOperandTan = 8194; { float x }
- kOperandATan = 8195; { float x }
- kOperandATan2 = 8196; { float y, float x }
- kOperandDegreesToRadians = 8197; { float x }
- kOperandRadiansToDegrees = 8198; { float x }
- kOperandSquareRoot = 8199; { float x }
- kOperandExponent = 8200; { float x }
- kOperandLog = 8201; { float x }
- kOperandFlashTrackVariable = 9216; { [CString path, CString name] }
- kOperandStringLength = 10240; { (C string text) }
- kOperandStringCompare = 10241; { (C string aText, C string bText, Boolean caseSensitive, Boolan diacSensitive) }
- kOperandStringSubString = 10242; { (C string text, long offset, long length) }
- kOperandStringConcat = 10243; { (C string aText, C string bText) }
- kFirstMovieAction = 1024;
- kLastMovieAction = 1044;
- kFirstTrackAction = 2048;
- kLastTrackAction = 2057;
- kFirstSpriteAction = 3072;
- kLastSpriteAction = 3094;
- kFirstQTVRAction = 4096;
- kLastQTVRAction = 4109;
- kFirstMusicAction = 5120;
- kLastMusicAction = 5121;
- kFirstSystemAction = 6144;
- kLastSystemAction = 6164;
- kFirstSpriteTrackAction = 7168;
- kLastSpriteTrackAction = 7183;
- kFirstApplicationAction = 8192;
- kLastApplicationAction = 8192;
- kFirstQD3DNamedObjectAction = 9216;
- kLastQD3DNamedObjectAction = 9218;
- kFirstFlashTrackAction = 10240;
- kLastFlashTrackAction = 10246;
- kFirstMovieTrackAction = 11264;
- kLastMovieTrackAction = 11266;
- kFirstTextTrackAction = 12288;
- kLastTextTrackAction = 12310;
- kFirstMultiTargetAction = 13312;
- kLastMultiTargetAction = 13319;
- kFirstAction = 1024;
- kLastAction = 13319;
- { target atom types }
- kTargetMovie = FourCharCode('moov'); { no data }
- kTargetMovieName = FourCharCode('mona'); { (PString movieName) }
- kTargetMovieID = FourCharCode('moid'); { (long movieID) }
- kTargetRootMovie = FourCharCode('moro'); { no data }
- kTargetParentMovie = FourCharCode('mopa'); { no data }
- kTargetChildMovieTrackName = FourCharCode('motn'); { (PString childMovieTrackName) }
- kTargetChildMovieTrackID = FourCharCode('moti'); { (long childMovieTrackID) }
- kTargetChildMovieTrackIndex = FourCharCode('motx'); { (long childMovieTrackIndex) }
- kTargetChildMovieMovieName = FourCharCode('momn'); { (PString childMovieName) }
- kTargetChildMovieMovieID = FourCharCode('momi'); { (long childMovieID) }
- kTargetTrackName = FourCharCode('trna'); { (PString trackName) }
- kTargetTrackID = FourCharCode('trid'); { (long trackID) }
- kTargetTrackType = FourCharCode('trty'); { (OSType trackType) }
- kTargetTrackIndex = FourCharCode('trin'); { (long trackIndex) }
- kTargetSpriteName = FourCharCode('spna'); { (PString spriteName) }
- kTargetSpriteID = FourCharCode('spid'); { (QTAtomID spriteID) }
- kTargetSpriteIndex = FourCharCode('spin'); { (short spriteIndex) }
- kTargetQD3DNamedObjectName = FourCharCode('nana'); { (CString objectName) }
- kTargetCurrentQTEventParams = FourCharCode('evpa'); { no data }
- { action container atom types }
- kQTEventType = FourCharCode('evnt');
- kAction = FourCharCode('actn');
- kWhichAction = FourCharCode('whic');
- kActionParameter = FourCharCode('parm');
- kActionTarget = FourCharCode('targ');
- kActionFlags = FourCharCode('flag');
- kActionParameterMinValue = FourCharCode('minv');
- kActionParameterMaxValue = FourCharCode('maxv');
- kActionListAtomType = FourCharCode('list');
- kExpressionContainerAtomType = FourCharCode('expr');
- kConditionalAtomType = FourCharCode('test');
- kOperatorAtomType = FourCharCode('oper');
- kOperandAtomType = FourCharCode('oprn');
- kCommentAtomType = FourCharCode('why ');
- kCustomActionHandler = FourCharCode('cust');
- kCustomHandlerID = FourCharCode('id ');
- kCustomHandlerDesc = FourCharCode('desc');
- kQTEventRecordAtomType = FourCharCode('erec');
- { QTEvent types }
- kQTEventMouseClick = FourCharCode('clik');
- kQTEventMouseClickEnd = FourCharCode('cend');
- kQTEventMouseClickEndTriggerButton = FourCharCode('trig');
- kQTEventMouseEnter = FourCharCode('entr');
- kQTEventMouseExit = FourCharCode('exit');
- kQTEventMouseMoved = FourCharCode('move');
- kQTEventFrameLoaded = FourCharCode('fram');
- kQTEventIdle = FourCharCode('idle');
- kQTEventKey = FourCharCode('key '); { qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode }
- kQTEventMovieLoaded = FourCharCode('load');
- kQTEventRequestToModifyMovie = FourCharCode('reqm');
- kQTEventListReceived = FourCharCode('list');
- kQTEventKeyUp = FourCharCode('keyU'); { qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode }
- { flags for the kActionFlags atom }
- kActionFlagActionIsDelta = $00000002;
- kActionFlagParameterWrapsAround = $00000004;
- kActionFlagActionIsToggle = $00000008;
- { flags for stringTypeFlags field of the QTStatusStringRecord }
- kStatusStringIsURLLink = $00000002;
- kStatusStringIsStreamingStatus = $00000004;
- kStatusHasCodeNumber = $00000008; { high 16 bits of stringTypeFlags is error code number }
- kStatusIsError = $00000010;
- { flags for scriptTypeFlags field of the QTDoScriptRecord }
- kScriptIsUnknownType = $00000001;
- kScriptIsJavaScript = $00000002;
- kScriptIsLingoEvent = $00000004;
- kScriptIsVBEvent = $00000008;
- kScriptIsProjectorCommand = $00000010;
- kScriptIsAppleScript = $00000020;
- { flags for CheckQuickTimeRegistration routine }
- kQTRegistrationDialogTimeOutFlag = $01;
- kQTRegistrationDialogShowDialog = $02;
- kQTRegistrationDialogForceDialog = $04;
- { constants for kOperatorAtomType IDs (operator types) }
- kOperatorAdd = FourCharCode('add ');
- kOperatorSubtract = FourCharCode('sub ');
- kOperatorMultiply = FourCharCode('mult');
- kOperatorDivide = FourCharCode('div ');
- kOperatorOr = FourCharCode('or ');
- kOperatorAnd = FourCharCode('and ');
- kOperatorNot = FourCharCode('not ');
- kOperatorLessThan = FourCharCode('< ');
- kOperatorLessThanEqualTo = FourCharCode('<= ');
- kOperatorEqualTo = FourCharCode('= ');
- kOperatorNotEqualTo = FourCharCode('!= ');
- kOperatorGreaterThan = FourCharCode('> ');
- kOperatorGreaterThanEqualTo = FourCharCode('>= ');
- kOperatorModulo = FourCharCode('mod ');
- kOperatorIntegerDivide = FourCharCode('idiv');
- kOperatorAbsoluteValue = FourCharCode('abs ');
- kOperatorNegate = FourCharCode('neg ');
- { constants for kOperandPlatformRunningOn }
- kPlatformMacintosh = 1;
- kPlatformWindows = 2;
- { flags for kOperandSystemVersion }
- kSystemIsWindows9x = $00010000;
- kSystemIsWindowsNT = $00020000;
- { constants for MediaPropertiesAtom }
- kMediaPropertyNonLinearAtomType = FourCharCode('nonl');
- kMediaPropertyHasActions = 105;
- { TimeBase and TimeRecord moved to MacTypes.h }
- type
- TimeBaseFlags = UInt32;
- const
- loopTimeBase = 1;
- palindromeLoopTimeBase = 2;
- maintainTimeBaseZero = 4;
- type
- CallBackRecordPtr = ^CallBackRecord;
- CallBackRecord = record
- data: array [0..0] of SInt32;
- end;
- QTCallBack = ^CallBackRecord;
- { CallBack equates }
- QTCallBackFlags = UInt16;
- const
- triggerTimeFwd = $0001; { when curTime exceeds triggerTime going forward }
- triggerTimeBwd = $0002; { when curTime exceeds triggerTime going backwards }
- triggerTimeEither = $0003; { when curTime exceeds triggerTime going either direction }
- triggerRateLT = $0004; { when rate changes to less than trigger value }
- triggerRateGT = $0008; { when rate changes to greater than trigger value }
- triggerRateEqual = $0010; { when rate changes to equal trigger value }
- triggerRateLTE = $0014;
- triggerRateGTE = $0018;
- triggerRateNotEqual = $001C;
- triggerRateChange = 0;
- triggerAtStart = $0001;
- triggerAtStop = $0002;
- type
- TimeBaseStatus = UInt32;
- const
- timeBaseBeforeStartTime = 1;
- timeBaseAfterStopTime = 2;
- type
- QTCallBackType = UInt16;
- const
- callBackAtTime = 1;
- callBackAtRate = 2;
- callBackAtTimeJump = 3;
- callBackAtExtremes = 4;
- callBackAtTimeBaseDisposed = 5;
- callBackAtInterrupt = $8000;
- callBackAtDeferredTask = $4000;
- type
- {$ifc TYPED_FUNCTION_POINTERS}
- QTCallBackProcPtr = procedure(cb: QTCallBack; refCon: SInt32);
- {$elsec}
- QTCallBackProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- QTCallBackUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- QTCallBackUPP = UniversalProcPtr;
- {$endc}
- const
- qtcbNeedsRateChanges = 1; { wants to know about rate changes }
- qtcbNeedsTimeChanges = 2; { wants to know about time changes }
- qtcbNeedsStartStopChanges = 4; { wants to know when TimeBase start/stop is changed }
- type
- QTCallBackHeaderPtr = ^QTCallBackHeader;
- QTCallBackHeader = record
- callBackFlags: SInt32;
- reserved1: SInt32;
- qtPrivate: array [0..39] of SInt8;
- end;
- {$ifc TYPED_FUNCTION_POINTERS}
- QTSyncTaskProcPtr = procedure(task: UnivPtr);
- {$elsec}
- QTSyncTaskProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- QTSyncTaskUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- QTSyncTaskUPP = UniversalProcPtr;
- {$endc}
- QTSyncTaskRecordPtr = ^QTSyncTaskRecord;
- QTSyncTaskRecord = record
- qLink: Ptr;
- proc: QTSyncTaskUPP;
- end;
- QTSyncTaskPtr = ^QTSyncTaskRecord;
- {$ifc TYPED_FUNCTION_POINTERS}
- MovieRgnCoverProcPtr = function(theMovie: Movie; changedRgn: RgnHandle; refcon: SInt32): OSErr;
- {$elsec}
- MovieRgnCoverProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MovieProgressProcPtr = function(theMovie: Movie; message: SInt16; whatOperation: SInt16; percentDone: Fixed; refcon: SInt32): OSErr;
- {$elsec}
- MovieProgressProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MovieDrawingCompleteProcPtr = function(theMovie: Movie; refCon: SInt32): OSErr;
- {$elsec}
- MovieDrawingCompleteProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- TrackTransferProcPtr = function(t: Track; refCon: SInt32): OSErr;
- {$elsec}
- TrackTransferProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- GetMovieProcPtr = function(offset: SInt32; size: SInt32; dataPtr: UnivPtr; refCon: UnivPtr): OSErr;
- {$elsec}
- GetMovieProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MoviePreviewCallOutProcPtr = function(refcon: SInt32): boolean;
- {$elsec}
- MoviePreviewCallOutProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- TextMediaProcPtr = function(theText: Handle; theMovie: Movie; var displayFlag: SInt16; refcon: SInt32): OSErr;
- {$elsec}
- TextMediaProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- ActionsProcPtr = function(refcon: UnivPtr; targetTrack: Track; targetRefCon: SInt32; theEvent: QTEventRecordPtr): OSErr;
- {$elsec}
- ActionsProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- DoMCActionProcPtr = function(refcon: UnivPtr; action: SInt16; params: UnivPtr; var handled: boolean): OSErr;
- {$elsec}
- DoMCActionProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MovieExecuteWiredActionsProcPtr = function(theMovie: Movie; refcon: UnivPtr; flags: SInt32; wiredActions: QTAtomContainer): OSErr;
- {$elsec}
- MovieExecuteWiredActionsProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MoviePrePrerollCompleteProcPtr = procedure(theMovie: Movie; prerollErr: OSErr; refcon: UnivPtr);
- {$elsec}
- MoviePrePrerollCompleteProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- QTNextTaskNeededSoonerCallbackProcPtr = procedure(duration: TimeValue; flags: UInt32; refcon: UnivPtr);
- {$elsec}
- QTNextTaskNeededSoonerCallbackProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MoviesErrorProcPtr = procedure(theErr: OSErr; refcon: SInt32);
- {$elsec}
- MoviesErrorProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MovieRgnCoverUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MovieRgnCoverUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MovieProgressUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MovieProgressUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MovieDrawingCompleteUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MovieDrawingCompleteUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- TrackTransferUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- TrackTransferUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- GetMovieUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- GetMovieUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MoviePreviewCallOutUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MoviePreviewCallOutUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- TextMediaUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- TextMediaUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- ActionsUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- ActionsUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- DoMCActionUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- DoMCActionUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MovieExecuteWiredActionsUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MovieExecuteWiredActionsUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MoviePrePrerollCompleteUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MoviePrePrerollCompleteUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- QTNextTaskNeededSoonerCallbackUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- QTNextTaskNeededSoonerCallbackUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MoviesErrorUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MoviesErrorUPP = UniversalProcPtr;
- {$endc}
- MediaHandler = ComponentInstance;
- DataHandler = ComponentInstance;
- MediaHandlerComponent = Component;
- DataHandlerComponent = Component;
- HandlerError = ComponentResult;
- const
- keepInRam = $01; { load and make non-purgable }
- unkeepInRam = $02; { mark as purgable }
- flushFromRam = $04; { empty those handles }
- loadForwardTrackEdits = $08; { load track edits into ram for playing forward }
- loadBackwardTrackEdits = $10; { load track edits into ram for playing in reverse }
- newMovieActive = $01;
- newMovieDontResolveDataRefs = $02;
- newMovieDontAskUnresolvedDataRefs = $04;
- newMovieDontAutoAlternates = $08;
- newMovieDontUpdateForeBackPointers = $10;
- newMovieDontAutoUpdateClock = $20;
- newMovieAsyncOK = $0100;
- newMovieIdleImportOK = $0400;
- newMovieDontInteractWithUser = $0800;
- { track usage bits }
- trackUsageInMovie = $02;
- trackUsageInPreview = $04;
- trackUsageInPoster = $08;
- { Add/GetMediaSample flags }
- mediaSampleNotSync = $01; { sample is not a sync sample (eg. is frame differenced }
- mediaSampleShadowSync = $02; { sample is a shadow sync }
- pasteInParallel = $01;
- showUserSettingsDialog = $02;
- movieToFileOnlyExport = $04;
- movieFileSpecValid = $08;
- nextTimeMediaSample = $01;
- nextTimeMediaEdit = $02;
- nextTimeTrackEdit = $04;
- nextTimeSyncSample = $08;
- nextTimeStep = $10;
- nextTimeEdgeOK = $4000;
- nextTimeIgnoreActiveSegment = $8000;
- type
- nextTimeFlagsEnum = UInt16;
- const
- createMovieFileDeleteCurFile = $80000000;
- createMovieFileDontCreateMovie = $40000000;
- createMovieFileDontOpenFile = $20000000;
- createMovieFileDontCreateResFile = $10000000;
- type
- createMovieFileFlagsEnum = UInt32;
- const
- flattenAddMovieToDataFork = $00000001;
- flattenActiveTracksOnly = $00000004;
- flattenDontInterleaveFlatten = $00000008;
- flattenFSSpecPtrIsDataRefRecordPtr = $00000010;
- flattenCompressMovieResource = $00000020;
- flattenForceMovieResourceBeforeMovieData = $00000040;
- type
- movieFlattenFlagsEnum = UInt32;
- const
- movieInDataForkResID = -1; { magic res ID }
- mcTopLeftMovie = $01; { usually centered }
- mcScaleMovieToFit = $02; { usually only scales down }
- mcWithBadge = $04; { give me a badge }
- mcNotVisible = $08; { don't show controller }
- mcWithFrame = $10; { gimme a frame }
- movieScrapDontZeroScrap = $01;
- movieScrapOnlyPutMovie = $02;
- dataRefSelfReference = $01;
- dataRefWasNotResolved = $02;
- type
- dataRefAttributesFlags = UInt32;
- const
- kMovieAnchorDataRefIsDefault = $01; { data ref returned is movie default data ref }
- hintsScrubMode = $01; { mask == && (if flags == scrub on, flags != scrub off) }
- hintsLoop = $02;
- hintsDontPurge = $04;
- hintsUseScreenBuffer = $20;
- hintsAllowInterlace = $40;
- hintsUseSoundInterp = $80;
- hintsHighQuality = $0100; { slooooow }
- hintsPalindrome = $0200;
- hintsInactive = $0800;
- hintsOffscreen = $1000;
- hintsDontDraw = $2000;
- hintsAllowBlacklining = $4000;
- hintsDontUseVideoOverlaySurface = $00010000;
- hintsIgnoreBandwidthRestrictions = $00020000;
- hintsPlayingEveryFrame = $00040000;
- hintsAllowDynamicResize = $00080000;
- hintsSingleField = $00100000;
- hintsNoRenderingTimeOut = $00200000;
- hintsFlushVideoInsteadOfDirtying = $00400000;
- hintsEnableSubPixelPositioning = $00800000;
- type
- playHintsEnum = UInt32;
- const
- mediaHandlerFlagBaseClient = 1;
- type
- mediaHandlerFlagsEnum = UInt32;
- const
- movieTrackMediaType = $01;
- movieTrackCharacteristic = $02;
- movieTrackEnabledOnly = $04;
- type
- SampleReferenceRecordPtr = ^SampleReferenceRecord;
- SampleReferenceRecord = record
- dataOffset: SInt32;
- dataSize: SInt32;
- durationPerSample: TimeValue;
- numberOfSamples: SInt32;
- sampleFlags: SInt16;
- end;
- SampleReferencePtr = ^SampleReferenceRecord;
- SampleReference64RecordPtr = ^SampleReference64Record;
- SampleReference64Record = record
- dataOffset: wide;
- dataSize: UInt32;
- durationPerSample: TimeValue;
- numberOfSamples: UInt32;
- sampleFlags: SInt16;
- end;
- SampleReference64Ptr = ^SampleReference64Record;
- { ************************
- * Initialization Routines
- ************************* }
- {
- * CheckQuickTimeRegistration()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure CheckQuickTimeRegistration(registrationKey: UnivPtr; flags: SInt32); external name '_CheckQuickTimeRegistration';
- {
- * EnterMovies()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function EnterMovies: OSErr; external name '_EnterMovies';
- {
- * ExitMovies()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ExitMovies; external name '_ExitMovies';
- {************************
- * Error Routines
- *************************}
- {
- * GetMoviesError()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviesError: OSErr; external name '_GetMoviesError';
- {
- * ClearMoviesStickyError()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ClearMoviesStickyError; external name '_ClearMoviesStickyError';
- {
- * GetMoviesStickyError()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviesStickyError: OSErr; external name '_GetMoviesStickyError';
- {
- * SetMoviesErrorProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviesErrorProc(errProc: MoviesErrorUPP; refcon: SInt32); external name '_SetMoviesErrorProc';
- {************************
- * Idle Routines
- *************************}
- {
- * MoviesTask()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure MoviesTask(theMovie: Movie; maxMilliSecToUse: SInt32); external name '_MoviesTask';
- {
- * PrerollMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PrerollMovie(theMovie: Movie; time: TimeValue; Rate: Fixed): OSErr; external name '_PrerollMovie';
- {
- * PrePrerollMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function PrePrerollMovie(m: Movie; time: TimeValue; rate: Fixed; proc: MoviePrePrerollCompleteUPP; refcon: UnivPtr): OSErr; external name '_PrePrerollMovie';
- {
- * AbortPrePrerollMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- procedure AbortPrePrerollMovie(m: Movie; err: OSErr); external name '_AbortPrePrerollMovie';
- {
- * LoadMovieIntoRam()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function LoadMovieIntoRam(theMovie: Movie; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadMovieIntoRam';
- {
- * LoadTrackIntoRam()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function LoadTrackIntoRam(theTrack: Track; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadTrackIntoRam';
- {
- * LoadMediaIntoRam()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function LoadMediaIntoRam(theMedia: Media; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadMediaIntoRam';
- {
- * SetMovieActive()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieActive(theMovie: Movie; active: boolean); external name '_SetMovieActive';
- {
- * GetMovieActive()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieActive(theMovie: Movie): boolean; external name '_GetMovieActive';
- {
- * QTGetWallClockTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTGetWallClockTimeBase(var wallClockTimeBase: TimeBase): OSErr; external name '_QTGetWallClockTimeBase';
- {************************
- * Idle Management
- *************************}
- type
- IdleManager = ^SInt32; { an opaque 32-bit type }
- IdleManagerPtr = ^IdleManager; { when a var xx:IdleManager parameter can be nil, it is changed to xx: IdleManagerPtr }
- {
- * QTIdleManagerOpen()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerOpen: IdleManager; external name '_QTIdleManagerOpen';
- {
- * QTIdleManagerClose()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerClose(im: IdleManager): OSErr; external name '_QTIdleManagerClose';
- {
- * QTIdleManagerGetNextIdleTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerGetNextIdleTime(im: IdleManager; var nextIdle: TimeRecord): OSErr; external name '_QTIdleManagerGetNextIdleTime';
- {
- * QTIdleManagerSetNextIdleTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerSetNextIdleTime(im: IdleManager; var nextIdle: TimeRecord): OSErr; external name '_QTIdleManagerSetNextIdleTime';
- {
- * QTIdleManagerSetNextIdleTimeNever()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerSetNextIdleTimeNever(im: IdleManager): OSErr; external name '_QTIdleManagerSetNextIdleTimeNever';
- {
- * QTIdleManagerSetNextIdleTimeNow()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerSetNextIdleTimeNow(im: IdleManager): OSErr; external name '_QTIdleManagerSetNextIdleTimeNow';
- {
- * QTIdleManagerSetNextIdleTimeDelta()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerSetNextIdleTimeDelta(im: IdleManager; duration: TimeValue; scale: TimeScale): OSErr; external name '_QTIdleManagerSetNextIdleTimeDelta';
- {
- * QTIdleManagerSetParent()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerSetParent(im: IdleManager; parent: IdleManager): OSErr; external name '_QTIdleManagerSetParent';
- {
- * QTIdleManagerNeedsAnIdle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTIdleManagerNeedsAnIdle(im: IdleManager; var needsOne: boolean): OSErr; external name '_QTIdleManagerNeedsAnIdle';
- {************************
- * Carbon Movie Control
- *************************}
- { Movie Control option bits }
- const
- kMovieControlOptionHideController = $00000001;
- kMovieControlOptionLocateTopLeft = $00000002;
- kMovieControlOptionEnableEditing = $00000004;
- kMovieControlOptionHandleEditingHI = $00000008;
- kMovieControlOptionSetKeysEnabled = $00000010;
- kMovieControlOptionManuallyIdled = $00000020;
- { Item tags for use in GetControlData() (some with SetControlData()) calls on Movie Controls }
- kMovieControlDataMovieController = FourCharCode('mc ');
- kMovieControlDataMovie = FourCharCode('moov');
- kMovieControlDataManualIdling = FourCharCode('manu');
- {
- ** CreateMovieControl() - This is the public API routine that creates a Movie Control. Given a window and location
- ** plus a movie, it constructs a Movie Control with a Movie Controller in the window.
- }
- {
- * CreateMovieControl()
- *
- * Availability:
- * Non-Carbon CFM: not available
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- function CreateMovieControl(theWindow: WindowRef; var localRect: Rect; theMovie: Movie; options: UInt32; var returnedControl: ControlRef): OSErr; external name '_CreateMovieControl';
- {************************
- * calls for playing movies, previews, posters
- *************************}
- {
- * StartMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure StartMovie(theMovie: Movie); external name '_StartMovie';
- {
- * StopMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure StopMovie(theMovie: Movie); external name '_StopMovie';
- {
- * GoToBeginningOfMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GoToBeginningOfMovie(theMovie: Movie); external name '_GoToBeginningOfMovie';
- {
- * GoToEndOfMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GoToEndOfMovie(theMovie: Movie); external name '_GoToEndOfMovie';
- {
- * IsMovieDone()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function IsMovieDone(theMovie: Movie): boolean; external name '_IsMovieDone';
- {
- * GetMoviePreviewMode()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePreviewMode(theMovie: Movie): boolean; external name '_GetMoviePreviewMode';
- {
- * SetMoviePreviewMode()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePreviewMode(theMovie: Movie; usePreview: boolean); external name '_SetMoviePreviewMode';
- {
- * ShowMoviePoster()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ShowMoviePoster(theMovie: Movie); external name '_ShowMoviePoster';
- {
- * PlayMoviePreview()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure PlayMoviePreview(theMovie: Movie; callOutProc: MoviePreviewCallOutUPP; refcon: SInt32); external name '_PlayMoviePreview';
- {************************
- * calls for controlling movies & tracks which are playing
- *************************}
- {
- * GetMovieTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieTimeBase(theMovie: Movie): TimeBase; external name '_GetMovieTimeBase';
- {
- * SetMovieMasterTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieMasterTimeBase(theMovie: Movie; tb: TimeBase; const (*var*) slaveZero: TimeRecord); external name '_SetMovieMasterTimeBase';
- {
- * SetMovieMasterClock()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieMasterClock(theMovie: Movie; clockMeister: Component; const (*var*) slaveZero: TimeRecord); external name '_SetMovieMasterClock';
- {
- * ChooseMovieClock()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- procedure ChooseMovieClock(m: Movie; flags: SInt32); external name '_ChooseMovieClock';
- {
- * GetMovieGWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieGWorld(theMovie: Movie; var port: CGrafPtr; var gdh: GDHandle); external name '_GetMovieGWorld';
- {
- * SetMovieGWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieGWorld(theMovie: Movie; port: CGrafPtr; gdh: GDHandle); external name '_SetMovieGWorld';
- const
- movieDrawingCallWhenChanged = 0;
- movieDrawingCallAlways = 1;
- {
- * SetMovieDrawingCompleteProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieDrawingCompleteProc(theMovie: Movie; flags: SInt32; proc: MovieDrawingCompleteUPP; refCon: SInt32); external name '_SetMovieDrawingCompleteProc';
- {
- * GetMovieNaturalBoundsRect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieNaturalBoundsRect(theMovie: Movie; var naturalBounds: Rect); external name '_GetMovieNaturalBoundsRect';
- {
- * GetNextTrackForCompositing()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetNextTrackForCompositing(theMovie: Movie; theTrack: Track): Track; external name '_GetNextTrackForCompositing';
- {
- * GetPrevTrackForCompositing()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetPrevTrackForCompositing(theMovie: Movie; theTrack: Track): Track; external name '_GetPrevTrackForCompositing';
- {
- * SetTrackGWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackGWorld(theTrack: Track; port: CGrafPtr; gdh: GDHandle; proc: TrackTransferUPP; refCon: SInt32); external name '_SetTrackGWorld';
- {
- * GetMoviePict()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePict(theMovie: Movie; time: TimeValue): PicHandle; external name '_GetMoviePict';
- {
- * GetTrackPict()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackPict(theTrack: Track; time: TimeValue): PicHandle; external name '_GetTrackPict';
- {
- * GetMoviePosterPict()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePosterPict(theMovie: Movie): PicHandle; external name '_GetMoviePosterPict';
- { called between Begin & EndUpdate }
- {
- * UpdateMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function UpdateMovie(theMovie: Movie): OSErr; external name '_UpdateMovie';
- {
- * InvalidateMovieRegion()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InvalidateMovieRegion(theMovie: Movie; invalidRgn: RgnHandle): OSErr; external name '_InvalidateMovieRegion';
- {*** spatial movie routines ***}
- {
- * GetMovieBox()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieBox(theMovie: Movie; var boxRect: Rect); external name '_GetMovieBox';
- {
- * SetMovieBox()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieBox(theMovie: Movie; const (*var*) boxRect: Rect); external name '_SetMovieBox';
- {* movie display clip }
- {
- * GetMovieDisplayClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieDisplayClipRgn(theMovie: Movie): RgnHandle; external name '_GetMovieDisplayClipRgn';
- {
- * SetMovieDisplayClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieDisplayClipRgn(theMovie: Movie; theClip: RgnHandle); external name '_SetMovieDisplayClipRgn';
- {* movie src clip }
- {
- * GetMovieClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieClipRgn(theMovie: Movie): RgnHandle; external name '_GetMovieClipRgn';
- {
- * SetMovieClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieClipRgn(theMovie: Movie; theClip: RgnHandle); external name '_SetMovieClipRgn';
- {* track src clip }
- {
- * GetTrackClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackClipRgn(theTrack: Track): RgnHandle; external name '_GetTrackClipRgn';
- {
- * SetTrackClipRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackClipRgn(theTrack: Track; theClip: RgnHandle); external name '_SetTrackClipRgn';
- {* bounds in display space (not clipped by display clip) }
- {
- * GetMovieDisplayBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieDisplayBoundsRgn(theMovie: Movie): RgnHandle; external name '_GetMovieDisplayBoundsRgn';
- {
- * GetTrackDisplayBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackDisplayBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackDisplayBoundsRgn';
- {* bounds in movie space }
- {
- * GetMovieBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieBoundsRgn(theMovie: Movie): RgnHandle; external name '_GetMovieBoundsRgn';
- {
- * GetTrackMovieBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackMovieBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackMovieBoundsRgn';
- {* bounds in track space }
- {
- * GetTrackBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackBoundsRgn';
- {* mattes - always in track space }
- {
- * GetTrackMatte()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackMatte(theTrack: Track): PixMapHandle; external name '_GetTrackMatte';
- {
- * SetTrackMatte()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackMatte(theTrack: Track; theMatte: PixMapHandle); external name '_SetTrackMatte';
- {
- * DisposeMatte()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeMatte(theMatte: PixMapHandle); external name '_DisposeMatte';
- {* video out }
- {
- * SetMovieVideoOutput()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- procedure SetMovieVideoOutput(theMovie: Movie; vout: ComponentInstance); external name '_SetMovieVideoOutput';
- {************************
- * calls for getting/saving movies
- *************************}
- {
- * NewMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovie(flags: SInt32): Movie; external name '_NewMovie';
- {
- * PutMovieIntoHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PutMovieIntoHandle(theMovie: Movie; publicMovie: Handle): OSErr; external name '_PutMovieIntoHandle';
- {
- * PutMovieIntoDataFork()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PutMovieIntoDataFork(theMovie: Movie; fRefNum: SInt16; offset: SInt32; maxSize: SInt32): OSErr; external name '_PutMovieIntoDataFork';
- {
- * PutMovieIntoDataFork64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function PutMovieIntoDataFork64(theMovie: Movie; fRefNum: SInt32; const (*var*) offset: wide; maxSize: UInt32): OSErr; external name '_PutMovieIntoDataFork64';
- {
- * PutMovieIntoStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function PutMovieIntoStorage(theMovie: Movie; dh: DataHandler; const (*var*) offset: wide; maxSize: UInt32): OSErr; external name '_PutMovieIntoStorage';
- {
- * PutMovieForDataRefIntoHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function PutMovieForDataRefIntoHandle(theMovie: Movie; dataRef: Handle; dataRefType: OSType; publicMovie: Handle): OSErr; external name '_PutMovieForDataRefIntoHandle';
- {
- * DisposeMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeMovie(theMovie: Movie); external name '_DisposeMovie';
- {************************
- * Movie State Routines
- *************************}
- {
- * GetMovieCreationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieCreationTime(theMovie: Movie): UInt32; external name '_GetMovieCreationTime';
- {
- * GetMovieModificationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieModificationTime(theMovie: Movie): UInt32; external name '_GetMovieModificationTime';
- {
- * GetMovieTimeScale()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieTimeScale(theMovie: Movie): TimeScale; external name '_GetMovieTimeScale';
- {
- * SetMovieTimeScale()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieTimeScale(theMovie: Movie; timeScale_: TimeScale); external name '_SetMovieTimeScale';
- {
- * GetMovieDuration()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieDuration(theMovie: Movie): TimeValue; external name '_GetMovieDuration';
- {
- * GetMovieRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieRate(theMovie: Movie): Fixed; external name '_GetMovieRate';
- {
- * SetMovieRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieRate(theMovie: Movie; rate: Fixed); external name '_SetMovieRate';
- {
- * GetMoviePreferredRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePreferredRate(theMovie: Movie): Fixed; external name '_GetMoviePreferredRate';
- {
- * SetMoviePreferredRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePreferredRate(theMovie: Movie; rate: Fixed); external name '_SetMoviePreferredRate';
- {
- * GetMoviePreferredVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePreferredVolume(theMovie: Movie): SInt16; external name '_GetMoviePreferredVolume';
- {
- * SetMoviePreferredVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePreferredVolume(theMovie: Movie; volume: SInt16); external name '_SetMoviePreferredVolume';
- {
- * GetMovieVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieVolume(theMovie: Movie): SInt16; external name '_GetMovieVolume';
- {
- * SetMovieVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieVolume(theMovie: Movie; volume: SInt16); external name '_SetMovieVolume';
- {
- * GetMovieMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieMatrix(theMovie: Movie; var matrix: MatrixRecord); external name '_GetMovieMatrix';
- {
- * SetMovieMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieMatrix(theMovie: Movie; const (*var*) matrix: MatrixRecord); external name '_SetMovieMatrix';
- {
- * GetMoviePreviewTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMoviePreviewTime(theMovie: Movie; var previewTime: TimeValue; var previewDuration: TimeValue); external name '_GetMoviePreviewTime';
- {
- * SetMoviePreviewTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePreviewTime(theMovie: Movie; previewTime: TimeValue; previewDuration: TimeValue); external name '_SetMoviePreviewTime';
- {
- * GetMoviePosterTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMoviePosterTime(theMovie: Movie): TimeValue; external name '_GetMoviePosterTime';
- {
- * SetMoviePosterTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePosterTime(theMovie: Movie; posterTime: TimeValue); external name '_SetMoviePosterTime';
- {
- * GetMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieSelection(theMovie: Movie; var selectionTime: TimeValue; var selectionDuration: TimeValue); external name '_GetMovieSelection';
- {
- * SetMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieSelection(theMovie: Movie; selectionTime: TimeValue; selectionDuration: TimeValue); external name '_SetMovieSelection';
- {
- * SetMovieActiveSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieActiveSegment(theMovie: Movie; startTime: TimeValue; duration: TimeValue); external name '_SetMovieActiveSegment';
- {
- * GetMovieActiveSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieActiveSegment(theMovie: Movie; var startTime: TimeValue; var duration: TimeValue); external name '_GetMovieActiveSegment';
- {
- * GetMovieTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieTime(theMovie: Movie; var currentTime: TimeRecord): TimeValue; external name '_GetMovieTime';
- {
- * SetMovieTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieTime(theMovie: Movie; const (*var*) newtime: TimeRecord); external name '_SetMovieTime';
- {
- * SetMovieTimeValue()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieTimeValue(theMovie: Movie; newtime: TimeValue); external name '_SetMovieTimeValue';
- {
- * GetMovieUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieUserData(theMovie: Movie): UserData; external name '_GetMovieUserData';
- {
- * QTGetTimeUntilNextTask()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTGetTimeUntilNextTask(var duration: SInt32; scale: SInt32): OSErr; external name '_QTGetTimeUntilNextTask';
- {
- * QTInstallNextTaskNeededSoonerCallback()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTInstallNextTaskNeededSoonerCallback(callbackProc: QTNextTaskNeededSoonerCallbackUPP; scale: TimeScale; flags: UInt32; refcon: UnivPtr): OSErr; external name '_QTInstallNextTaskNeededSoonerCallback';
- {
- * QTUninstallNextTaskNeededSoonerCallback()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTUninstallNextTaskNeededSoonerCallback(callbackProc: QTNextTaskNeededSoonerCallbackUPP; refcon: UnivPtr): OSErr; external name '_QTUninstallNextTaskNeededSoonerCallback';
- {************************
- * Track/Media finding routines
- *************************}
- {
- * GetMovieTrackCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieTrackCount(theMovie: Movie): SInt32; external name '_GetMovieTrackCount';
- {
- * GetMovieTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieTrack(theMovie: Movie; trackID: SInt32): Track; external name '_GetMovieTrack';
- {
- * GetMovieIndTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieIndTrack(theMovie: Movie; index: SInt32): Track; external name '_GetMovieIndTrack';
- {
- * GetMovieIndTrackType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieIndTrackType(theMovie: Movie; index: SInt32; trackType: OSType; flags: SInt32): Track; external name '_GetMovieIndTrackType';
- {
- * GetTrackID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackID(theTrack: Track): SInt32; external name '_GetTrackID';
- {
- * GetTrackMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackMovie(theTrack: Track): Movie; external name '_GetTrackMovie';
- {************************
- * Track creation routines
- *************************}
- {
- * NewMovieTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieTrack(theMovie: Movie; width: Fixed; height: Fixed; trackVolume: SInt16): Track; external name '_NewMovieTrack';
- {
- * DisposeMovieTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeMovieTrack(theTrack: Track); external name '_DisposeMovieTrack';
- {************************
- * Track State routines
- *************************}
- {
- * GetTrackCreationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackCreationTime(theTrack: Track): UInt32; external name '_GetTrackCreationTime';
- {
- * GetTrackModificationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackModificationTime(theTrack: Track): UInt32; external name '_GetTrackModificationTime';
- {
- * GetTrackEnabled()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackEnabled(theTrack: Track): boolean; external name '_GetTrackEnabled';
- {
- * SetTrackEnabled()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackEnabled(theTrack: Track; isEnabled: boolean); external name '_SetTrackEnabled';
- {
- * GetTrackUsage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackUsage(theTrack: Track): SInt32; external name '_GetTrackUsage';
- {
- * SetTrackUsage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackUsage(theTrack: Track; usage: SInt32); external name '_SetTrackUsage';
- {
- * GetTrackDuration()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackDuration(theTrack: Track): TimeValue; external name '_GetTrackDuration';
- {
- * GetTrackOffset()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackOffset(theTrack: Track): TimeValue; external name '_GetTrackOffset';
- {
- * SetTrackOffset()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackOffset(theTrack: Track; movieOffsetTime: TimeValue); external name '_SetTrackOffset';
- {
- * GetTrackLayer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackLayer(theTrack: Track): SInt16; external name '_GetTrackLayer';
- {
- * SetTrackLayer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackLayer(theTrack: Track; layer: SInt16); external name '_SetTrackLayer';
- {
- * GetTrackAlternate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackAlternate(theTrack: Track): Track; external name '_GetTrackAlternate';
- {
- * SetTrackAlternate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackAlternate(theTrack: Track; alternateT: Track); external name '_SetTrackAlternate';
- {
- * SetAutoTrackAlternatesEnabled()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetAutoTrackAlternatesEnabled(theMovie: Movie; enable: boolean); external name '_SetAutoTrackAlternatesEnabled';
- {
- * SelectMovieAlternates()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SelectMovieAlternates(theMovie: Movie); external name '_SelectMovieAlternates';
- {
- * GetTrackVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackVolume(theTrack: Track): SInt16; external name '_GetTrackVolume';
- {
- * SetTrackVolume()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackVolume(theTrack: Track; volume: SInt16); external name '_SetTrackVolume';
- {
- * GetTrackMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetTrackMatrix(theTrack: Track; var matrix: MatrixRecord); external name '_GetTrackMatrix';
- {
- * SetTrackMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackMatrix(theTrack: Track; const (*var*) matrix: MatrixRecord); external name '_SetTrackMatrix';
- {
- * GetTrackDimensions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetTrackDimensions(theTrack: Track; var width: Fixed; var height: Fixed); external name '_GetTrackDimensions';
- {
- * SetTrackDimensions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackDimensions(theTrack: Track; width: Fixed; height: Fixed); external name '_SetTrackDimensions';
- {
- * GetTrackUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackUserData(theTrack: Track): UserData; external name '_GetTrackUserData';
- {
- * GetTrackDisplayMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackDisplayMatrix(theTrack: Track; var matrix: MatrixRecord): OSErr; external name '_GetTrackDisplayMatrix';
- {
- * GetTrackSoundLocalizationSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackSoundLocalizationSettings(theTrack: Track; var settings: Handle): OSErr; external name '_GetTrackSoundLocalizationSettings';
- {
- * SetTrackSoundLocalizationSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetTrackSoundLocalizationSettings(theTrack: Track; settings: Handle): OSErr; external name '_SetTrackSoundLocalizationSettings';
- {************************
- * get Media routines
- *************************}
- {
- * NewTrackMedia()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewTrackMedia(theTrack: Track; mediaType: OSType; timeScale_: TimeScale; dataRef: Handle; dataRefType: OSType): Media; external name '_NewTrackMedia';
- {
- * DisposeTrackMedia()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeTrackMedia(theMedia: Media); external name '_DisposeTrackMedia';
- {
- * GetTrackMedia()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackMedia(theTrack: Track): Media; external name '_GetTrackMedia';
- {
- * GetMediaTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaTrack(theMedia: Media): Track; external name '_GetMediaTrack';
- {************************
- * Media State routines
- *************************}
- {
- * GetMediaCreationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaCreationTime(theMedia: Media): UInt32; external name '_GetMediaCreationTime';
- {
- * GetMediaModificationTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaModificationTime(theMedia: Media): UInt32; external name '_GetMediaModificationTime';
- {
- * GetMediaTimeScale()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaTimeScale(theMedia: Media): TimeScale; external name '_GetMediaTimeScale';
- {
- * SetMediaTimeScale()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMediaTimeScale(theMedia: Media; timeScale_: TimeScale); external name '_SetMediaTimeScale';
- {
- * GetMediaDuration()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaDuration(theMedia: Media): TimeValue; external name '_GetMediaDuration';
- {
- * GetMediaLanguage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaLanguage(theMedia: Media): SInt16; external name '_GetMediaLanguage';
- {
- * SetMediaLanguage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMediaLanguage(theMedia: Media; language: SInt16); external name '_SetMediaLanguage';
- {
- * GetMediaQuality()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaQuality(theMedia: Media): SInt16; external name '_GetMediaQuality';
- {
- * SetMediaQuality()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMediaQuality(theMedia: Media; quality: SInt16); external name '_SetMediaQuality';
- {
- * GetMediaHandlerDescription()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMediaHandlerDescription(theMedia: Media; var mediaType: OSType; var creatorName: Str255; var creatorManufacturer: OSType); external name '_GetMediaHandlerDescription';
- {
- * GetMediaUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaUserData(theMedia: Media): UserData; external name '_GetMediaUserData';
- {
- * GetMediaInputMap()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaInputMap(theMedia: Media; var inputMap: QTAtomContainer): OSErr; external name '_GetMediaInputMap';
- {
- * SetMediaInputMap()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaInputMap(theMedia: Media; inputMap: QTAtomContainer): OSErr; external name '_SetMediaInputMap';
- {************************
- * Media Handler routines
- *************************}
- {
- * GetMediaHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaHandler(theMedia: Media): MediaHandler; external name '_GetMediaHandler';
- {
- * SetMediaHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaHandler(theMedia: Media; mH: MediaHandlerComponent): OSErr; external name '_SetMediaHandler';
- {************************
- * Media's Data routines
- *************************}
- {
- * BeginMediaEdits()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function BeginMediaEdits(theMedia: Media): OSErr; external name '_BeginMediaEdits';
- {
- * EndMediaEdits()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function EndMediaEdits(theMedia: Media): OSErr; external name '_EndMediaEdits';
- {
- * SetMediaDefaultDataRefIndex()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaDefaultDataRefIndex(theMedia: Media; index: SInt16): OSErr; external name '_SetMediaDefaultDataRefIndex';
- {
- * GetMediaDataHandlerDescription()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMediaDataHandlerDescription(theMedia: Media; index: SInt16; var dhType: OSType; var creatorName: Str255; var creatorManufacturer: OSType); external name '_GetMediaDataHandlerDescription';
- {
- * GetMediaDataHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaDataHandler(theMedia: Media; index: SInt16): DataHandler; external name '_GetMediaDataHandler';
- {
- * SetMediaDataHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaDataHandler(theMedia: Media; index: SInt16; dataHandler: DataHandlerComponent): OSErr; external name '_SetMediaDataHandler';
- {
- * GetDataHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetDataHandler(dataRef: Handle; dataHandlerSubType: OSType; flags: SInt32): Component; external name '_GetDataHandler';
- {
- * OpenADataHandler()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function OpenADataHandler(dataRef: Handle; dataHandlerSubType: OSType; anchorDataRef: Handle; anchorDataRefType: OSType; tb: TimeBase; flags: SInt32; var dh: ComponentInstance): OSErr; external name '_OpenADataHandler';
- {************************
- * Media Sample Table Routines
- *************************}
- {
- * GetMediaSampleDescriptionCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSampleDescriptionCount(theMedia: Media): SInt32; external name '_GetMediaSampleDescriptionCount';
- {
- * GetMediaSampleDescription()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMediaSampleDescription(theMedia: Media; index: SInt32; descH: SampleDescriptionHandle); external name '_GetMediaSampleDescription';
- {
- * SetMediaSampleDescription()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaSampleDescription(theMedia: Media; index: SInt32; descH: SampleDescriptionHandle): OSErr; external name '_SetMediaSampleDescription';
- {
- * GetMediaSampleCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSampleCount(theMedia: Media): SInt32; external name '_GetMediaSampleCount';
- {
- * GetMediaSyncSampleCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSyncSampleCount(theMedia: Media): SInt32; external name '_GetMediaSyncSampleCount';
- {
- * SampleNumToMediaTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SampleNumToMediaTime(theMedia: Media; logicalSampleNum: SInt32; var sampleTime: TimeValue; var sampleDuration: TimeValue); external name '_SampleNumToMediaTime';
- {
- * MediaTimeToSampleNum()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure MediaTimeToSampleNum(theMedia: Media; time: TimeValue; var sampleNum: SInt32; var sampleTime: TimeValue; var sampleDuration: TimeValue); external name '_MediaTimeToSampleNum';
- {
- * AddMediaSample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddMediaSample(theMedia: Media; dataIn: Handle; inOffset: SInt32; size: UInt32; durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleFlags: SInt16; var sampleTime: TimeValue): OSErr; external name '_AddMediaSample';
- {
- * AddMediaSampleReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddMediaSampleReference(theMedia: Media; dataOffset: SInt32; size: UInt32; durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleFlags: SInt16; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReference';
- {
- * AddMediaSampleReferences()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddMediaSampleReferences(theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleRefs: SampleReferencePtr; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReferences';
- {
- * AddMediaSampleReferences64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function AddMediaSampleReferences64(theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleRefs: SampleReference64Ptr; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReferences64';
- {
- * GetMediaSample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSample(theMedia: Media; dataOut: Handle; maxSizeToGrow: SInt32; var size: SInt32; time: TimeValue; var sampleTime: TimeValue; var durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: SInt32; maxNumberOfSamples: SInt32; var numberOfSamples: SInt32; var sampleFlags: SInt16): OSErr; external name '_GetMediaSample';
- {
- * GetMediaSampleReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSampleReference(theMedia: Media; var dataOffset: SInt32; var size: SInt32; time: TimeValue; var sampleTime: TimeValue; var durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: SInt32; maxNumberOfSamples: SInt32; var numberOfSamples: SInt32; var sampleFlags: SInt16): OSErr; external name '_GetMediaSampleReference';
- {
- * GetMediaSampleReferences()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaSampleReferences(theMedia: Media; time: TimeValue; var sampleTime: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: SInt32; maxNumberOfEntries: SInt32; var actualNumberofEntries: SInt32; sampleRefs: SampleReferencePtr): OSErr; external name '_GetMediaSampleReferences';
- {
- * GetMediaSampleReferences64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function GetMediaSampleReferences64(theMedia: Media; time: TimeValue; var sampleTime: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: SInt32; maxNumberOfEntries: SInt32; var actualNumberofEntries: SInt32; sampleRefs: SampleReference64Ptr): OSErr; external name '_GetMediaSampleReferences64';
- {
- * SetMediaPreferredChunkSize()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaPreferredChunkSize(theMedia: Media; maxChunkSize: SInt32): OSErr; external name '_SetMediaPreferredChunkSize';
- {
- * GetMediaPreferredChunkSize()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaPreferredChunkSize(theMedia: Media; var maxChunkSize: SInt32): OSErr; external name '_GetMediaPreferredChunkSize';
- {
- * SetMediaShadowSync()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaShadowSync(theMedia: Media; frameDiffSampleNum: SInt32; syncSampleNum: SInt32): OSErr; external name '_SetMediaShadowSync';
- {
- * GetMediaShadowSync()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaShadowSync(theMedia: Media; frameDiffSampleNum: SInt32; var syncSampleNum: SInt32): OSErr; external name '_GetMediaShadowSync';
- {************************
- * Editing Routines
- *************************}
- {
- * InsertMediaIntoTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InsertMediaIntoTrack(theTrack: Track; trackStart: TimeValue; mediaTime: TimeValue; mediaDuration: TimeValue; mediaRate: Fixed): OSErr; external name '_InsertMediaIntoTrack';
- {
- * InsertTrackSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InsertTrackSegment(srcTrack: Track; dstTrack: Track; srcIn: TimeValue; srcDuration: TimeValue; dstIn: TimeValue): OSErr; external name '_InsertTrackSegment';
- {
- * InsertMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InsertMovieSegment(srcMovie: Movie; dstMovie: Movie; srcIn: TimeValue; srcDuration: TimeValue; dstIn: TimeValue): OSErr; external name '_InsertMovieSegment';
- {
- * InsertEmptyTrackSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InsertEmptyTrackSegment(dstTrack: Track; dstIn: TimeValue; dstDuration: TimeValue): OSErr; external name '_InsertEmptyTrackSegment';
- {
- * InsertEmptyMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InsertEmptyMovieSegment(dstMovie: Movie; dstIn: TimeValue; dstDuration: TimeValue): OSErr; external name '_InsertEmptyMovieSegment';
- {
- * DeleteTrackSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DeleteTrackSegment(theTrack: Track; startTime: TimeValue; duration: TimeValue): OSErr; external name '_DeleteTrackSegment';
- {
- * DeleteMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DeleteMovieSegment(theMovie: Movie; startTime: TimeValue; duration: TimeValue): OSErr; external name '_DeleteMovieSegment';
- {
- * ScaleTrackSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ScaleTrackSegment(theTrack: Track; startTime: TimeValue; oldDuration: TimeValue; newDuration: TimeValue): OSErr; external name '_ScaleTrackSegment';
- {
- * ScaleMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ScaleMovieSegment(theMovie: Movie; startTime: TimeValue; oldDuration: TimeValue; newDuration: TimeValue): OSErr; external name '_ScaleMovieSegment';
- {************************
- * Hi-level Editing Routines
- *************************}
- {
- * CutMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CutMovieSelection(theMovie: Movie): Movie; external name '_CutMovieSelection';
- {
- * CopyMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CopyMovieSelection(theMovie: Movie): Movie; external name '_CopyMovieSelection';
- {
- * PasteMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure PasteMovieSelection(theMovie: Movie; src: Movie); external name '_PasteMovieSelection';
- {
- * AddMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure AddMovieSelection(theMovie: Movie; src: Movie); external name '_AddMovieSelection';
- {
- * ClearMovieSelection()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ClearMovieSelection(theMovie: Movie); external name '_ClearMovieSelection';
- {
- * PasteHandleIntoMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PasteHandleIntoMovie(h: Handle; handleType: OSType; theMovie: Movie; flags: SInt32; userComp: ComponentInstance): OSErr; external name '_PasteHandleIntoMovie';
- {
- * PutMovieIntoTypedHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PutMovieIntoTypedHandle(theMovie: Movie; targetTrack: Track; handleType: OSType; publicMovie: Handle; start: TimeValue; dur: TimeValue; flags: SInt32; userComp: ComponentInstance): OSErr; external name '_PutMovieIntoTypedHandle';
- {
- * IsScrapMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function IsScrapMovie(targetTrack: Track): Component; external name '_IsScrapMovie';
- {************************
- * Middle-level Editing Routines
- *************************}
- {
- * CopyTrackSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CopyTrackSettings(srcTrack: Track; dstTrack: Track): OSErr; external name '_CopyTrackSettings';
- {
- * CopyMovieSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CopyMovieSettings(srcMovie: Movie; dstMovie: Movie): OSErr; external name '_CopyMovieSettings';
- {
- * AddEmptyTrackToMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddEmptyTrackToMovie(srcTrack: Track; dstMovie: Movie; dataRef: Handle; dataRefType: OSType; var dstTrack: Track): OSErr; external name '_AddEmptyTrackToMovie';
- const
- kQTCloneShareSamples = $01;
- kQTCloneDontCopyEdits = $02;
- {
- * AddClonedTrackToMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function AddClonedTrackToMovie(srcTrack: Track; dstMovie: Movie; flags: SInt32; var dstTrack: Track): OSErr; external name '_AddClonedTrackToMovie';
- {************************
- * movie & track edit state routines
- *************************}
- {
- * NewMovieEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieEditState(theMovie: Movie): MovieEditState; external name '_NewMovieEditState';
- {
- * UseMovieEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function UseMovieEditState(theMovie: Movie; toState: MovieEditState): OSErr; external name '_UseMovieEditState';
- {
- * DisposeMovieEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DisposeMovieEditState(state: MovieEditState): OSErr; external name '_DisposeMovieEditState';
- {
- * NewTrackEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewTrackEditState(theTrack: Track): TrackEditState; external name '_NewTrackEditState';
- {
- * UseTrackEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function UseTrackEditState(theTrack: Track; state: TrackEditState): OSErr; external name '_UseTrackEditState';
- {
- * DisposeTrackEditState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DisposeTrackEditState(state: TrackEditState): OSErr; external name '_DisposeTrackEditState';
- {************************
- * track reference routines
- *************************}
- {
- * AddTrackReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddTrackReference(theTrack: Track; refTrack: Track; refType: OSType; var addedIndex: SInt32): OSErr; external name '_AddTrackReference';
- {
- * DeleteTrackReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DeleteTrackReference(theTrack: Track; refType: OSType; index: SInt32): OSErr; external name '_DeleteTrackReference';
- {
- * SetTrackReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetTrackReference(theTrack: Track; refTrack: Track; refType: OSType; index: SInt32): OSErr; external name '_SetTrackReference';
- {
- * GetTrackReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackReference(theTrack: Track; refType: OSType; index: SInt32): Track; external name '_GetTrackReference';
- {
- * GetNextTrackReferenceType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetNextTrackReferenceType(theTrack: Track; refType: OSType): SInt32; external name '_GetNextTrackReferenceType';
- {
- * GetTrackReferenceCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackReferenceCount(theTrack: Track; refType: OSType): SInt32; external name '_GetTrackReferenceCount';
- {************************
- * high level file conversion routines
- *************************}
- {
- * ConvertFileToMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ConvertFileToMovieFile(const (*var*) inputFile: FSSpec; const (*var*) outputFile: FSSpec; creator: OSType; scriptTag: ScriptCode; var resID: SInt16; flags: SInt32; userComp: ComponentInstance; proc: MovieProgressUPP; refCon: SInt32): OSErr; external name '_ConvertFileToMovieFile';
- {
- * ConvertMovieToFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ConvertMovieToFile(theMovie: Movie; onlyTrack: Track; var outputFile: FSSpec; fileType: OSType; creator: OSType; scriptTag: ScriptCode; var resID: SInt16; flags: SInt32; userComp: ComponentInstance): OSErr; external name '_ConvertMovieToFile';
- const
- kGetMovieImporterValidateToFind = $00000001;
- kGetMovieImporterAllowNewFile = $00000002;
- kGetMovieImporterDontConsiderGraphicsImporters = $00000004;
- kGetMovieImporterDontConsiderFileOnlyImporters = $00000040;
- kGetMovieImporterAutoImportOnly = $00000400; { reject aggressive movie importers which have dontAutoFileMovieImport set }
- {
- * GetMovieImporterForDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieImporterForDataRef(dataRefType: OSType; dataRef: Handle; flags: SInt32; var importer: Component): OSErr; external name '_GetMovieImporterForDataRef';
- const
- kQTGetMIMETypeInfoIsQuickTimeMovieType = FourCharCode('moov'); { info is a pointer to a Boolean }
- kQTGetMIMETypeInfoIsUnhelpfulType = FourCharCode('dumb'); { info is a pointer to a Boolean }
- {
- * QTGetMIMETypeInfo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function QTGetMIMETypeInfo(mimeStringStart: ConstCStringPtr; mimeStringLength: SInt16; infoSelector: OSType; infoDataPtr: UnivPtr; var infoDataSize: SInt32): OSErr; external name '_QTGetMIMETypeInfo';
- {************************
- * Movie Timebase Conversion Routines
- *************************}
- {
- * TrackTimeToMediaTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TrackTimeToMediaTime(value: TimeValue; theTrack: Track): TimeValue; external name '_TrackTimeToMediaTime';
- {
- * GetTrackEditRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackEditRate(theTrack: Track; atTime: TimeValue): Fixed; external name '_GetTrackEditRate';
- {************************
- * Miscellaneous Routines
- *************************}
- {
- * GetMovieDataSize()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieDataSize(theMovie: Movie; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetMovieDataSize';
- {
- * GetMovieDataSize64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function GetMovieDataSize64(theMovie: Movie; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetMovieDataSize64';
- {
- * GetTrackDataSize()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackDataSize(theTrack: Track; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetTrackDataSize';
- {
- * GetTrackDataSize64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function GetTrackDataSize64(theTrack: Track; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetTrackDataSize64';
- {
- * GetMediaDataSize()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaDataSize(theMedia: Media; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetMediaDataSize';
- {
- * GetMediaDataSize64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function GetMediaDataSize64(theMedia: Media; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetMediaDataSize64';
- {
- * PtInMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PtInMovie(theMovie: Movie; pt: Point): boolean; external name '_PtInMovie';
- {
- * PtInTrack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PtInTrack(theTrack: Track; pt: Point): boolean; external name '_PtInTrack';
- {************************
- * Group Selection Routines
- *************************}
- {
- * SetMovieLanguage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieLanguage(theMovie: Movie; language: SInt32); external name '_SetMovieLanguage';
- {************************
- * User Data
- *************************}
- {
- * GetUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetUserData(theUserData: UserData; data: Handle; udType: OSType; index: SInt32): OSErr; external name '_GetUserData';
- {
- * AddUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddUserData(theUserData: UserData; data: Handle; udType: OSType): OSErr; external name '_AddUserData';
- {
- * RemoveUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveUserData(theUserData: UserData; udType: OSType; index: SInt32): OSErr; external name '_RemoveUserData';
- {
- * CountUserDataType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CountUserDataType(theUserData: UserData; udType: OSType): SInt16; external name '_CountUserDataType';
- {
- * GetNextUserDataType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetNextUserDataType(theUserData: UserData; udType: OSType): SInt32; external name '_GetNextUserDataType';
- {
- * GetUserDataItem()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetUserDataItem(theUserData: UserData; data: UnivPtr; size: SInt32; udType: OSType; index: SInt32): OSErr; external name '_GetUserDataItem';
- {
- * SetUserDataItem()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetUserDataItem(theUserData: UserData; data: UnivPtr; size: SInt32; udType: OSType; index: SInt32): OSErr; external name '_SetUserDataItem';
- {
- * AddUserDataText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddUserDataText(theUserData: UserData; data: Handle; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_AddUserDataText';
- {
- * GetUserDataText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetUserDataText(theUserData: UserData; data: Handle; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_GetUserDataText';
- {
- * RemoveUserDataText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveUserDataText(theUserData: UserData; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_RemoveUserDataText';
- {
- * NewUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewUserData(var theUserData: UserData): OSErr; external name '_NewUserData';
- {
- * DisposeUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DisposeUserData(theUserData: UserData): OSErr; external name '_DisposeUserData';
- {
- * NewUserDataFromHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewUserDataFromHandle(h: Handle; var theUserData: UserData): OSErr; external name '_NewUserDataFromHandle';
- {
- * PutUserDataIntoHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PutUserDataIntoHandle(theUserData: UserData; h: Handle): OSErr; external name '_PutUserDataIntoHandle';
- const
- kQTCopyUserDataReplace = FourCharCode('rplc'); { Delete all destination user data items and then add source user data items }
- kQTCopyUserDataMerge = FourCharCode('merg'); { Add source user data items to destination user data }
- {
- * CopyMovieUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CopyMovieUserData(srcMovie: Movie; dstMovie: Movie; copyRule: OSType): OSErr; external name '_CopyMovieUserData';
- {
- * CopyTrackUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CopyTrackUserData(srcTrack: Track; dstTrack: Track; copyRule: OSType): OSErr; external name '_CopyTrackUserData';
- {
- * CopyMediaUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CopyMediaUserData(srcMedia: Media; dstMedia: Media; copyRule: OSType): OSErr; external name '_CopyMediaUserData';
- {
- * CopyUserData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CopyUserData(srcUserData: UserData; dstUserData: UserData; copyRule: OSType): OSErr; external name '_CopyUserData';
- {
- * SetMoviePropertyAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function SetMoviePropertyAtom(theMovie: Movie; propertyAtom: QTAtomContainer): OSErr; external name '_SetMoviePropertyAtom';
- {
- * GetMoviePropertyAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function GetMoviePropertyAtom(theMovie: Movie; var propertyAtom: QTAtomContainer): OSErr; external name '_GetMoviePropertyAtom';
- {
- * GetMediaNextInterestingTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMediaNextInterestingTime(theMedia: Media; interestingTimeFlags: SInt16; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetMediaNextInterestingTime';
- {
- * GetTrackNextInterestingTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetTrackNextInterestingTime(theTrack: Track; interestingTimeFlags: SInt16; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetTrackNextInterestingTime';
- {
- * GetMovieNextInterestingTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMovieNextInterestingTime(theMovie: Movie; interestingTimeFlags: SInt16; numMediaTypes: SInt16; whichMediaTypes: OSTypePtr; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetMovieNextInterestingTime';
- {
- * CreateMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CreateMovieFile(const (*var*) fileSpec: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: UInt32; var resRefNum: SInt16; var newmovie: Movie): OSErr; external name '_CreateMovieFile';
- {
- * OpenMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function OpenMovieFile(const (*var*) fileSpec: FSSpec; var resRefNum: SInt16; permission: SInt8): OSErr; external name '_OpenMovieFile';
- {
- * CloseMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CloseMovieFile(resRefNum: SInt16): OSErr; external name '_CloseMovieFile';
- {
- * DeleteMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function DeleteMovieFile(const (*var*) fileSpec: FSSpec): OSErr; external name '_DeleteMovieFile';
- {
- * NewMovieFromFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromFile(var theMovie: Movie; resRefNum: SInt16; resId: SInt16Ptr; resName: StringPtr; newMovieFlags: SInt16; dataRefWasChanged: BooleanPtr): OSErr; external name '_NewMovieFromFile';
- {
- * NewMovieFromHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromHandle(var theMovie: Movie; h: Handle; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromHandle';
- {
- * NewMovieFromDataFork()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromDataFork(var theMovie: Movie; fRefNum: SInt16; fileOffset: SInt32; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromDataFork';
- {
- * NewMovieFromDataFork64()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function NewMovieFromDataFork64(var theMovie: Movie; fRefNum: SInt32; const (*var*) fileOffset: wide; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromDataFork64';
- {
- * NewMovieFromUserProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromUserProc(var m: Movie; flags: SInt16; var dataRefWasChanged: boolean; getProc: GetMovieUPP; refCon: UnivPtr; defaultDataRef: Handle; dataRefType: OSType): OSErr; external name '_NewMovieFromUserProc';
- {
- * NewMovieFromDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromDataRef(var m: Movie; flags: SInt16; var id: SInt16; dataRef: Handle; dtaRefType: OSType): OSErr; external name '_NewMovieFromDataRef';
- {
- * NewMovieFromStorageOffset()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function NewMovieFromStorageOffset(var theMovie: Movie; dh: DataHandler; const (*var*) fileOffset: wide; newMovieFlags: SInt16; var dataRefWasCataRefType: boolean): OSErr; external name '_NewMovieFromStorageOffset';
- {
- * NewMovieForDataRefFromHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function NewMovieForDataRefFromHandle(var theMovie: Movie; h: Handle; newMovieFlags: SInt16; var dataRefWasChanged: boolean; dataRef: Handle; dataRefType: OSType): OSErr; external name '_NewMovieForDataRefFromHandle';
- {
- * AddMovieResource()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddMovieResource(theMovie: Movie; resRefNum: SInt16; var resId: SInt16; const (*var*) resName: Str255): OSErr; external name '_AddMovieResource';
- {
- * UpdateMovieResource()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function UpdateMovieResource(theMovie: Movie; resRefNum: SInt16; resId: SInt16; const (*var*) resName: Str255): OSErr; external name '_UpdateMovieResource';
- {
- * RemoveMovieResource()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveMovieResource(resRefNum: SInt16; resId: SInt16): OSErr; external name '_RemoveMovieResource';
- {
- * CreateMovieStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CreateMovieStorage(dataRef: Handle; dataRefType: OSType; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32; var outDataHandler: DataHandler; var newmovie: Movie): OSErr; external name '_CreateMovieStorage';
- {
- * OpenMovieStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function OpenMovieStorage(dataRef: Handle; dataRefType: OSType; flags: SInt32; var outDataHandler: DataHandler): OSErr; external name '_OpenMovieStorage';
- {
- * CloseMovieStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function CloseMovieStorage(dh: DataHandler): OSErr; external name '_CloseMovieStorage';
- {
- * DeleteMovieStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function DeleteMovieStorage(dataRef: Handle; dataRefType: OSType): OSErr; external name '_DeleteMovieStorage';
- {
- * AddMovieToStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function AddMovieToStorage(theMovie: Movie; dh: DataHandler): OSErr; external name '_AddMovieToStorage';
- {
- * UpdateMovieInStorage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function UpdateMovieInStorage(theMovie: Movie; dh: DataHandler): OSErr; external name '_UpdateMovieInStorage';
- {
- * HasMovieChanged()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function HasMovieChanged(theMovie: Movie): boolean; external name '_HasMovieChanged';
- {
- * ClearMovieChanged()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ClearMovieChanged(theMovie: Movie); external name '_ClearMovieChanged';
- {
- * SetMovieDefaultDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMovieDefaultDataRef(theMovie: Movie; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMovieDefaultDataRef';
- {
- * GetMovieDefaultDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieDefaultDataRef(theMovie: Movie; var dataRef: Handle; var dataRefType: OSType): OSErr; external name '_GetMovieDefaultDataRef';
- {
- * SetMovieAnchorDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function SetMovieAnchorDataRef(theMovie: Movie; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMovieAnchorDataRef';
- {
- * GetMovieAnchorDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function GetMovieAnchorDataRef(theMovie: Movie; var dataRef: Handle; var dataRefType: OSType; var outFlags: SInt32): OSErr; external name '_GetMovieAnchorDataRef';
- {
- * SetMovieColorTable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMovieColorTable(theMovie: Movie; ctab: CTabHandle): OSErr; external name '_SetMovieColorTable';
- {
- * GetMovieColorTable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieColorTable(theMovie: Movie; var ctab: CTabHandle): OSErr; external name '_GetMovieColorTable';
- {
- * FlattenMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure FlattenMovie(theMovie: Movie; movieFlattenFlags: SInt32; const (*var*) theFile: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32; var resId: SInt16; const (*var*) resName: Str255); external name '_FlattenMovie';
- {
- * FlattenMovieData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function FlattenMovieData(theMovie: Movie; movieFlattenFlags: SInt32; const (*var*) theFile: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32): Movie; external name '_FlattenMovieData';
- {
- * FlattenMovieDataToDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function FlattenMovieDataToDataRef(theMovie: Movie; movieFlattenFlags: SInt32; dataRef: Handle; dataRefType: OSType; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32): Movie; external name '_FlattenMovieDataToDataRef';
- {
- * SetMovieProgressProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieProgressProc(theMovie: Movie; p: MovieProgressUPP; refcon: SInt32); external name '_SetMovieProgressProc';
- {
- * GetMovieProgressProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- procedure GetMovieProgressProc(theMovie: Movie; var p: MovieProgressUPP; var refcon: SInt32); external name '_GetMovieProgressProc';
- {
- * CreateShortcutMovieFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function CreateShortcutMovieFile(const (*var*) fileSpec: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32; targetDataRef: Handle; targetDataRefType: OSType): OSErr; external name '_CreateShortcutMovieFile';
- {
- * MovieSearchText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MovieSearchText(theMovie: Movie; text: Ptr; size: SInt32; searchFlags: SInt32; var searchTrack: Track; var searchTime: TimeValue; var searchOffset: SInt32): OSErr; external name '_MovieSearchText';
- {
- * GetPosterBox()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetPosterBox(theMovie: Movie; var boxRect: Rect); external name '_GetPosterBox';
- {
- * SetPosterBox()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetPosterBox(theMovie: Movie; const (*var*) boxRect: Rect); external name '_SetPosterBox';
- {
- * GetMovieSegmentDisplayBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieSegmentDisplayBoundsRgn(theMovie: Movie; time: TimeValue; duration: TimeValue): RgnHandle; external name '_GetMovieSegmentDisplayBoundsRgn';
- {
- * GetTrackSegmentDisplayBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackSegmentDisplayBoundsRgn(theTrack: Track; time: TimeValue; duration: TimeValue): RgnHandle; external name '_GetTrackSegmentDisplayBoundsRgn';
- {
- * SetMovieCoverProcs()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMovieCoverProcs(theMovie: Movie; uncoverProc: MovieRgnCoverUPP; coverProc: MovieRgnCoverUPP; refcon: SInt32); external name '_SetMovieCoverProcs';
- {
- * GetMovieCoverProcs()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieCoverProcs(theMovie: Movie; var uncoverProc: MovieRgnCoverUPP; var coverProc: MovieRgnCoverUPP; var refcon: SInt32): OSErr; external name '_GetMovieCoverProcs';
- {
- * GetTrackStatus()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTrackStatus(theTrack: Track): ComponentResult; external name '_GetTrackStatus';
- {
- * GetMovieStatus()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMovieStatus(theMovie: Movie; var firstProblemTrack: Track): ComponentResult; external name '_GetMovieStatus';
- const
- kMovieLoadStateError = -1;
- kMovieLoadStateLoading = 1000;
- kMovieLoadStateLoaded = 2000;
- kMovieLoadStatePlayable = 10000;
- kMovieLoadStatePlaythroughOK = 20000;
- kMovieLoadStateComplete = 100000;
- {
- * GetMovieLoadState()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function GetMovieLoadState(theMovie: Movie): SInt32; external name '_GetMovieLoadState';
- { Input flags for CanQuickTimeOpenFile/DataRef }
- const
- kQTDontUseDataToFindImporter = $00000001;
- kQTDontLookForMovieImporterIfGraphicsImporterFound = $00000002;
- kQTAllowOpeningStillImagesAsMovies = $00000004;
- kQTAllowImportersThatWouldCreateNewFile = $00000008;
- kQTAllowAggressiveImporters = $00000010; { eg, TEXT and PICT movie importers }
- { Determines whether the file could be opened using a graphics importer or opened in place as a movie. }
- {
- * CanQuickTimeOpenFile()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function CanQuickTimeOpenFile(fileSpec: FSSpecPtr; fileType: OSType; fileNameExtension: OSType; var outCanOpenWithGraphicsImporter: boolean; var outCanOpenAsMovie: boolean; var outPreferGraphicsImporter: boolean; inFlags: UInt32): OSErr; external name '_CanQuickTimeOpenFile';
- { Determines whether the file could be opened using a graphics importer or opened in place as a movie. }
- {
- * CanQuickTimeOpenDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function CanQuickTimeOpenDataRef(dataRef: Handle; dataRefType: OSType; var outCanOpenWithGraphicsImporter: boolean; var outCanOpenAsMovie: boolean; var outPreferGraphicsImporter: boolean; inFlags: UInt32): OSErr; external name '_CanQuickTimeOpenDataRef';
- {***
- Movie Controller support routines
- ***}
- {
- * NewMovieController()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieController(theMovie: Movie; const (*var*) movieRect: Rect; someFlags: SInt32): ComponentInstance; external name '_NewMovieController';
- {
- * DisposeMovieController()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeMovieController(mc: ComponentInstance); external name '_DisposeMovieController';
- {
- * ShowMovieInformation()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ShowMovieInformation(theMovie: Movie; filterProc: ModalFilterUPP; refCon: SInt32); external name '_ShowMovieInformation';
- {****
- Scrap routines
- ****}
- {
- * PutMovieOnScrap()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function PutMovieOnScrap(theMovie: Movie; movieScrapFlags: SInt32): OSErr; external name '_PutMovieOnScrap';
- {
- * NewMovieFromScrap()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewMovieFromScrap(newMovieFlags: SInt32): Movie; external name '_NewMovieFromScrap';
- {****
- DataRef routines
- ****}
- {
- * GetMediaDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaDataRef(theMedia: Media; index: SInt16; var dataRef: Handle; var dataRefType: OSType; var dataRefAttributes: SInt32): OSErr; external name '_GetMediaDataRef';
- {
- * SetMediaDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaDataRef(theMedia: Media; index: SInt16; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMediaDataRef';
- {
- * SetMediaDataRefAttributes()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaDataRefAttributes(theMedia: Media; index: SInt16; dataRefAttributes: SInt32): OSErr; external name '_SetMediaDataRefAttributes';
- {
- * AddMediaDataRef()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddMediaDataRef(theMedia: Media; var index: SInt16; dataRef: Handle; dataRefType: OSType): OSErr; external name '_AddMediaDataRef';
- {
- * GetMediaDataRefCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaDataRefCount(theMedia: Media; var count: SInt16): OSErr; external name '_GetMediaDataRefCount';
- {
- * QTNewAlias()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTNewAlias(const (*var*) fss: FSSpec; var alias: AliasHandle; minimal: boolean): OSErr; external name '_QTNewAlias';
- {****
- Playback hint routines
- ****}
- {
- * SetMoviePlayHints()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMoviePlayHints(theMovie: Movie; flags: SInt32; flagsMask: SInt32); external name '_SetMoviePlayHints';
- {
- * SetMediaPlayHints()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetMediaPlayHints(theMedia: Media; flags: SInt32; flagsMask: SInt32); external name '_SetMediaPlayHints';
- {
- * GetMediaPlayHints()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetMediaPlayHints(theMedia: Media; var flags: SInt32); external name '_GetMediaPlayHints';
- {****
- Load time track hints
- ****}
- const
- preloadAlways = $00000001;
- preloadOnlyIfEnabled = $00000002;
- {
- * SetTrackLoadSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTrackLoadSettings(theTrack: Track; preloadTime: TimeValue; preloadDuration: TimeValue; preloadFlags: SInt32; defaultHints: SInt32); external name '_SetTrackLoadSettings';
- {
- * GetTrackLoadSettings()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure GetTrackLoadSettings(theTrack: Track; var preloadTime: TimeValue; var preloadDuration: TimeValue; var preloadFlags: SInt32; var defaultHints: SInt32); external name '_GetTrackLoadSettings';
- {****
- Big screen TV
- ****}
- const
- fullScreenHideCursor = $00000001;
- fullScreenAllowEvents = $00000002;
- fullScreenDontChangeMenuBar = $00000004;
- fullScreenPreflightSize = $00000008;
- {
- * BeginFullScreen()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function BeginFullScreen(var restoreState: Ptr; whichGD: GDHandle; var desiredWidth: SInt16; var desiredHeight: SInt16; var newWindow: WindowRef; var eraseColor: RGBColor; flags: SInt32): OSErr; external name '_BeginFullScreen';
- {
- * EndFullScreen()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function EndFullScreen(fullState: Ptr; flags: SInt32): OSErr; external name '_EndFullScreen';
- {****
- Wired Actions
- ****}
- { flags for MovieExecuteWiredActions }
- const
- movieExecuteWiredActionDontExecute = $00000001;
- {
- * AddMovieExecuteWiredActionsProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function AddMovieExecuteWiredActionsProc(theMovie: Movie; proc: MovieExecuteWiredActionsUPP; refCon: UnivPtr): OSErr; external name '_AddMovieExecuteWiredActionsProc';
- {
- * RemoveMovieExecuteWiredActionsProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function RemoveMovieExecuteWiredActionsProc(theMovie: Movie; proc: MovieExecuteWiredActionsUPP; refCon: UnivPtr): OSErr; external name '_RemoveMovieExecuteWiredActionsProc';
- {
- * MovieExecuteWiredActions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function MovieExecuteWiredActions(theMovie: Movie; flags: SInt32; actions: QTAtomContainer): OSErr; external name '_MovieExecuteWiredActions';
- {****
- Keyboard Navigation/Editable Text Field Support
- ****}
- {
- Navigation Direction Constants
- for MediaNavigateTargetRefCon
- }
- const
- kRefConNavigationNext = 0;
- kRefConNavigationPrevious = 1;
- {
- Refcon Properties
- for MediaRefConGetProerty/MediaRefConSetProperty
- }
- kRefConPropertyCanHaveFocus = 1; { Boolean }
- kRefConPropertyHasFocus = 2; { Boolean }
- { media properties }
- kTrackFocusCanEditFlag = FourCharCode('kedt');
- kTrackDefaultFocusFlags = FourCharCode('kfoc');
- kTrackFocusDefaultRefcon = FourCharCode('kref');
- { focus flags }
- kTrackFocusOn = 1;
- kTrackHandlesTabs = 2; { this is reserved for a future release }
- { ****
- Flash track properties
- **** }
- kFlashTrackPropertyAcceptAllClicks = FourCharCode('clik'); { type of media property atom; data is a Boolean }
- { ****
- Sprite Toolbox
- **** }
- kBackgroundSpriteLayerNum = 32767;
- { Sprite Properties }
- kSpritePropertyMatrix = 1;
- kSpritePropertyImageDescription = 2;
- kSpritePropertyImageDataPtr = 3;
- kSpritePropertyVisible = 4;
- kSpritePropertyLayer = 5;
- kSpritePropertyGraphicsMode = 6;
- kSpritePropertyImageDataSize = 7;
- kSpritePropertyActionHandlingSpriteID = 8;
- kSpritePropertyCanBeHitTested = 9;
- kSpritePropertyImageIndex = 100;
- kSpriteTrackPropertyBackgroundColor = 101;
- kSpriteTrackPropertyOffscreenBitDepth = 102;
- kSpriteTrackPropertySampleFormat = 103;
- kSpriteTrackPropertyScaleSpritesToScaleWorld = 104;
- kSpriteTrackPropertyHasActions = 105;
- kSpriteTrackPropertyVisible = 106;
- kSpriteTrackPropertyQTIdleEventsFrequency = 107;
- kSpriteTrackPropertyAllSpritesHitTestingMode = 108;
- kSpriteTrackPropertyPreferredDepthInterpretationMode = 109;
- kSpriteImagePropertyRegistrationPoint = 1000;
- kSpriteImagePropertyGroupID = 1001;
- { values for kSpriteTrackPropertyPreferredDepthInterpretationMode }
- kSpriteTrackPreferredDepthCompatibilityMode = 0;
- kSpriteTrackPreferredDepthModernMode = 1;
- { values for kSpriteTrackPropertyAllSpritesHitTestingMode }
- kSpriteHitTestUseSpritesOwnPropertiesMode = 0;
- kSpriteHitTestTreatAllSpritesAsHitTestableMode = 1;
- kSpriteHitTestTreatAllSpritesAsNotHitTestableMode = 2;
- { special value for kSpriteTrackPropertyQTIdleEventsFrequency (the default) }
- kNoQTIdleEvents = -1;
- { GetSpriteProperties for accessing invalid SpriteWorldRegion }
- kGetSpriteWorldInvalidRegionAndLeaveIntact = -1;
- kGetSpriteWorldInvalidRegionAndThenSetEmpty = -2;
- { flagsIn for SpriteWorldIdle }
- kOnlyDrawToSpriteWorld = $00000001;
- kSpriteWorldPreflight = $00000002;
- { flagsOut for SpriteWorldIdle }
- kSpriteWorldDidDraw = $00000001;
- kSpriteWorldNeedsToDraw = $00000002;
- { flags for sprite track sample format }
- kKeyFrameAndSingleOverride = $00000002;
- kKeyFrameAndAllOverrides = $00000004;
- { sprite world flags }
- kScaleSpritesToScaleWorld = $00000002;
- kSpriteWorldHighQuality = $00000004;
- kSpriteWorldDontAutoInvalidate = $00000008;
- kSpriteWorldInvisible = $00000010;
- kSpriteWorldDirtyInsteadOfFlush = $00000020;
- {
- * NewSpriteWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewSpriteWorld(var newSpriteWorld: SpriteWorld; destination: GWorldPtr; spriteLayer: GWorldPtr; var backgroundColor: RGBColor; background: GWorldPtr): OSErr; external name '_NewSpriteWorld';
- {
- * DisposeSpriteWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeSpriteWorld(theSpriteWorld: SpriteWorld); external name '_DisposeSpriteWorld';
- {
- * SetSpriteWorldClip()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetSpriteWorldClip(theSpriteWorld: SpriteWorld; clipRgn: RgnHandle): OSErr; external name '_SetSpriteWorldClip';
- {
- * SetSpriteWorldMatrix()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetSpriteWorldMatrix(theSpriteWorld: SpriteWorld; const (*var*) matrix: MatrixRecord): OSErr; external name '_SetSpriteWorldMatrix';
- {
- * SetSpriteWorldGraphicsMode()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetSpriteWorldGraphicsMode(theSpriteWorld: SpriteWorld; mode: SInt32; const (*var*) opColor: RGBColor): OSErr; external name '_SetSpriteWorldGraphicsMode';
- {
- * SpriteWorldIdle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteWorldIdle(theSpriteWorld: SpriteWorld; flagsIn: SInt32; var flagsOut: SInt32): OSErr; external name '_SpriteWorldIdle';
- {
- * InvalidateSpriteWorld()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function InvalidateSpriteWorld(theSpriteWorld: SpriteWorld; var invalidArea: Rect): OSErr; external name '_InvalidateSpriteWorld';
- {
- * SpriteWorldHitTest()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteWorldHitTest(theSpriteWorld: SpriteWorld; flags: SInt32; loc: Point; var spriteHit: Sprite): OSErr; external name '_SpriteWorldHitTest';
- {
- * SpriteHitTest()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteHitTest(theSprite: Sprite; flags: SInt32; loc: Point; var wasHit: boolean): OSErr; external name '_SpriteHitTest';
- {
- * DisposeAllSprites()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeAllSprites(theSpriteWorld: SpriteWorld); external name '_DisposeAllSprites';
- {
- * SetSpriteWorldFlags()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetSpriteWorldFlags(spriteWorld_: SpriteWorld; flags: SInt32; flagsMask: SInt32): OSErr; external name '_SetSpriteWorldFlags';
- {
- * NewSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewSprite(var newSprite: Sprite; itsSpriteWorld: SpriteWorld; idh: ImageDescriptionHandle; imageDataPtr: Ptr; var matrix: MatrixRecord; visible: boolean; layer: SInt16): OSErr; external name '_NewSprite';
- {
- * DisposeSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeSprite(theSprite: Sprite); external name '_DisposeSprite';
- {
- * InvalidateSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure InvalidateSprite(theSprite: Sprite); external name '_InvalidateSprite';
- {
- * SetSpriteProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetSpriteProperty(theSprite: Sprite; propertyType: SInt32; propertyValue: UnivPtr): OSErr; external name '_SetSpriteProperty';
- {
- * GetSpriteProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetSpriteProperty(theSprite: Sprite; propertyType: SInt32; propertyValue: UnivPtr): OSErr; external name '_GetSpriteProperty';
- {****
- QT Atom Data Support
- ****}
- const
- kParentAtomIsContainer = 0;
- { create and dispose QTAtomContainer objects }
- {
- * QTNewAtomContainer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTNewAtomContainer(var atomData: QTAtomContainer): OSErr; external name '_QTNewAtomContainer';
- {
- * QTDisposeAtomContainer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTDisposeAtomContainer(atomData: QTAtomContainer): OSErr; external name '_QTDisposeAtomContainer';
- { locating nested atoms within QTAtomContainer container }
- {
- * QTGetNextChildType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetNextChildType(container: QTAtomContainer; parentAtom: QTAtom; currentChildType: QTAtomType): QTAtomType; external name '_QTGetNextChildType';
- {
- * QTCountChildrenOfType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTCountChildrenOfType(container: QTAtomContainer; parentAtom: QTAtom; childType: QTAtomType): SInt16; external name '_QTCountChildrenOfType';
- {
- * QTFindChildByIndex()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTFindChildByIndex(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; index: SInt16; var id: QTAtomID): QTAtom; external name '_QTFindChildByIndex';
- {
- * QTFindChildByID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTFindChildByID(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; id: QTAtomID; var index: SInt16): QTAtom; external name '_QTFindChildByID';
- {
- * QTNextChildAnyType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTNextChildAnyType(container: QTAtomContainer; parentAtom: QTAtom; currentChild: QTAtom; var nextChild: QTAtom): OSErr; external name '_QTNextChildAnyType';
- { set a leaf atom's data }
- {
- * QTSetAtomData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTSetAtomData(container: QTAtomContainer; atom: QTAtom; dataSize: SInt32; atomData: UnivPtr): OSErr; external name '_QTSetAtomData';
- { extracting data }
- {
- * QTCopyAtomDataToHandle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTCopyAtomDataToHandle(container: QTAtomContainer; atom: QTAtom; targetHandle: Handle): OSErr; external name '_QTCopyAtomDataToHandle';
- {
- * QTCopyAtomDataToPtr()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTCopyAtomDataToPtr(container: QTAtomContainer; atom: QTAtom; sizeOrLessOK: boolean; size: SInt32; targetPtr: UnivPtr; var actualSize: SInt32): OSErr; external name '_QTCopyAtomDataToPtr';
- {
- * QTGetAtomTypeAndID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetAtomTypeAndID(container: QTAtomContainer; atom: QTAtom; var atomType: QTAtomType; var id: QTAtomID): OSErr; external name '_QTGetAtomTypeAndID';
- { extract a copy of an atom and all of it's children, caller disposes }
- {
- * QTCopyAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTCopyAtom(container: QTAtomContainer; atom: QTAtom; var targetContainer: QTAtomContainer): OSErr; external name '_QTCopyAtom';
- { obtaining direct reference to atom data }
- {
- * QTLockContainer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTLockContainer(container: QTAtomContainer): OSErr; external name '_QTLockContainer';
- {
- * QTGetAtomDataPtr()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetAtomDataPtr(container: QTAtomContainer; atom: QTAtom; var dataSize: SInt32; var atomData: Ptr): OSErr; external name '_QTGetAtomDataPtr';
- {
- * QTUnlockContainer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTUnlockContainer(container: QTAtomContainer): OSErr; external name '_QTUnlockContainer';
- {
- building QTAtomContainer trees
- creates and inserts new atom at specified index, existing atoms at or after index are moved toward end of list
- used for Top-Down tree creation
- }
- {
- * QTInsertChild()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTInsertChild(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; id: QTAtomID; index: SInt16; dataSize: SInt32; data: UnivPtr; var newAtom: QTAtom): OSErr; external name '_QTInsertChild';
- { inserts children from childrenContainer as children of parentAtom }
- {
- * QTInsertChildren()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTInsertChildren(container: QTAtomContainer; parentAtom: QTAtom; childrenContainer: QTAtomContainer): OSErr; external name '_QTInsertChildren';
- { destruction }
- {
- * QTRemoveAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTRemoveAtom(container: QTAtomContainer; atom: QTAtom): OSErr; external name '_QTRemoveAtom';
- {
- * QTRemoveChildren()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTRemoveChildren(container: QTAtomContainer; atom: QTAtom): OSErr; external name '_QTRemoveChildren';
- { replacement must be same type as target }
- {
- * QTReplaceAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTReplaceAtom(targetContainer: QTAtomContainer; targetAtom: QTAtom; replacementContainer: QTAtomContainer; replacementAtom: QTAtom): OSErr; external name '_QTReplaceAtom';
- {
- * QTSwapAtoms()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTSwapAtoms(container: QTAtomContainer; atom1: QTAtom; atom2: QTAtom): OSErr; external name '_QTSwapAtoms';
- {
- * QTSetAtomID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTSetAtomID(container: QTAtomContainer; atom: QTAtom; newID: QTAtomID): OSErr; external name '_QTSetAtomID';
- {
- * QTGetAtomParent()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function QTGetAtomParent(container: QTAtomContainer; childAtom: QTAtom): QTAtom; external name '_QTGetAtomParent';
- {
- * SetMediaPropertyAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetMediaPropertyAtom(theMedia: Media; propertyAtom: QTAtomContainer): OSErr; external name '_SetMediaPropertyAtom';
- {
- * GetMediaPropertyAtom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMediaPropertyAtom(theMedia: Media; var propertyAtom: QTAtomContainer): OSErr; external name '_GetMediaPropertyAtom';
- {****
- Tween Support
- ****}
- type
- TweenRecordPtr = ^TweenRecord;
- {$ifc TYPED_FUNCTION_POINTERS}
- TweenerDataProcPtr = function(tr: TweenRecordPtr; tweenData: UnivPtr; tweenDataSize: SInt32; dataDescriptionSeed: SInt32; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UnivPtr): ComponentResult;
- {$elsec}
- TweenerDataProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- TweenerDataUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- TweenerDataUPP = UniversalProcPtr;
- {$endc}
- TweenRecord = record
- version: SInt32;
- container: QTAtomContainer;
- tweenAtom: QTAtom;
- dataAtom: QTAtom;
- percent: Fixed;
- dataProc: TweenerDataUPP;
- private1: Ptr;
- private2: Ptr;
- end;
- TweenV1RecordPtr = ^TweenV1Record;
- TweenV1Record = record
- version: SInt32;
- container: QTAtomContainer;
- tweenAtom: QTAtom;
- dataAtom: QTAtom;
- percent: Fixed;
- dataProc: TweenerDataUPP;
- private1: Ptr;
- private2: Ptr;
- fractPercent: Fract;
- end;
- const
- kTweenRecordNoFlags = 0;
- kTweenRecordIsAtInterruptTime = $00000001;
- type
- TweenV2RecordPtr = ^TweenV2Record;
- TweenV2Record = record
- version: SInt32;
- container: QTAtomContainer;
- tweenAtom: QTAtom;
- dataAtom: QTAtom;
- percent: Fixed;
- dataProc: TweenerDataUPP;
- private1: Ptr;
- private2: Ptr;
- fractPercent: Fract;
- flags: SInt32;
- end;
- {
- * QTNewTween()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTNewTween(var tween: QTTweener; container: QTAtomContainer; tweenAtom: QTAtom; maxTime: TimeValue): OSErr; external name '_QTNewTween';
- {
- * QTDisposeTween()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTDisposeTween(tween: QTTweener): OSErr; external name '_QTDisposeTween';
- {
- * QTDoTween()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTDoTween(tween: QTTweener; atTime: TimeValue; result: Handle; var resultSize: SInt32; tweenDataProc: TweenerDataUPP; tweenDataRefCon: UnivPtr): OSErr; external name '_QTDoTween';
- {
- QTDoTweenPtr is an interrupt-safe version of QTDoTween. It has the following limitations:
- - not all tween types support this call (those which must allocated memory), in which case they return codecUnimpErr.
- - the QTAtomContainer used for the tween must be locked
- - the dataSize must be large enough to contain the result
- - this call is not supported for sequence tweens, use interpolation tweens instead
- }
- {
- * QTDoTweenPtr()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTDoTweenPtr(tween: QTTweener; atTime: TimeValue; result: Ptr; resultSize: SInt32): OSErr; external name '_QTDoTweenPtr';
- {****
- Sound Description Manipulations
- ****}
- {
- * AddSoundDescriptionExtension()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddSoundDescriptionExtension(desc: SoundDescriptionHandle; extension: Handle; idType: OSType): OSErr; external name '_AddSoundDescriptionExtension';
- {
- * GetSoundDescriptionExtension()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetSoundDescriptionExtension(desc: SoundDescriptionHandle; var extension: Handle; idType: OSType): OSErr; external name '_GetSoundDescriptionExtension';
- {
- * RemoveSoundDescriptionExtension()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveSoundDescriptionExtension(desc: SoundDescriptionHandle; idType: OSType): OSErr; external name '_RemoveSoundDescriptionExtension';
- {****
- Preferences
- ****}
- {
- * GetQuickTimePreference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetQuickTimePreference(preferenceType: OSType; var preferenceAtom: QTAtomContainer): OSErr; external name '_GetQuickTimePreference';
- {
- * SetQuickTimePreference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SetQuickTimePreference(preferenceType: OSType; preferenceAtom: QTAtomContainer): OSErr; external name '_SetQuickTimePreference';
- {****
- Effects and dialog Support
- ****}
- { atom types for entries in the effects list }
- const
- kEffectNameAtom = FourCharCode('name'); { name of effect }
- kEffectTypeAtom = FourCharCode('type'); { codec sub-type for effect }
- kEffectManufacturerAtom = FourCharCode('manu'); { codec manufacturer for effect }
- type
- QTParamPreviewRecordPtr = ^QTParamPreviewRecord;
- QTParamPreviewRecord = record
- sourceID: SInt32; { 1 based source identifier }
- sourcePicture: PicHandle; { picture for preview, must not dispose until dialog is disposed }
- end;
- QTParamPreviewPtr = ^QTParamPreviewRecord;
- QTParamDialogEventRecordPtr = ^QTParamDialogEventRecord;
- QTParamDialogEventRecord = record
- theEvent: EventRecordPtr; { Event received by the dialog }
- whichDialog: DialogRef; { dialog that event was directed towards }
- itemHit: SInt16; { dialog item which was hit }
- end;
- QTParamDialogEventPtr = ^QTParamDialogEventRecord;
- QTParamFetchPreviewRecordPtr = ^QTParamFetchPreviewRecord;
- QTParamFetchPreviewRecord = record
- theWorld: GWorldPtr; { the world into which to draw the preview }
- percentage: Fixed; { frame percentage (from 0.0 - 1.0) to be drawn }
- end;
- QTParamFetchPreviewPtr = ^QTParamFetchPreviewRecord;
- const
- pdActionConfirmDialog = 1; { no param }
- pdActionSetAppleMenu = 2; { param is MenuRef }
- pdActionSetEditMenu = 3; { param is MenuRef }
- pdActionGetDialogValues = 4; { param is QTAtomContainer }
- pdActionSetPreviewUserItem = 5; { param is long }
- pdActionSetPreviewPicture = 6; { param is QTParamPreviewPtr; }
- pdActionSetColorPickerEventProc = 7; { param is UserEventUPP }
- pdActionSetDialogTitle = 8; { param is StringPtr }
- pdActionGetSubPanelMenu = 9; { param is MenuRef* }
- pdActionActivateSubPanel = 10; { param is long }
- pdActionConductStopAlert = 11; { param is StringPtr }
- pdActionModelessCallback = 12; { param is QTParamDialogEventPtr }
- pdActionFetchPreview = 13; { param is QTParamFetchPreviewPtr }
- pdActionSetDialogSettings = 14; { param is QTAtomContainer }
- pdActionGetDialogSettings = 15; { param is QTAtomContainer }
- pdActionGetNextSample = 16; { param is QTAtomContainer with effect sample to change - createdDialog may be NIL }
- pdActionGetPreviousSample = 17; { param is QTAtomContainer with effect sample to change - createdDialog may be NIL }
- pdActionCompactSample = 18; { param is QTAtomContainer with effect sample to compact, - createdDialog may be NIL }
- pdActionSetEditCallout = 19; { param is QTParamPreviewCalloutPtr, can be NIL }
- pdActionSetSampleTime = 20; { param is QTParamSampleTimePtr, can be NIL }
- pdActionDoEditCommand = 21; { param is long with menu command (ie, mcMenuCut etc) }
- pdActionGetSubPanelMenuValue = 22; { param is long and returns current sub-panel value selected by the effect }
- { Action codes and typedefs used for custom controls within effects }
- pdActionCustomNewControl = 23; { param is QTCustomControlNewPtr }
- pdActionCustomDisposeControl = 24; { param is QTCustomControlNewPtr }
- pdActionCustomPositionControl = 25; { param is QTCustomControlPositionControlPtr }
- pdActionCustomShowHideControl = 26; { param is QTCustomControlShowHideControlPtr }
- pdActionCustomHandleEvent = 27; { param is QTCustomControlHandleEventPtr }
- pdActionCustomSetFocus = 28; { param is QTCustomControlSetFocusPtr }
- pdActionCustomSetEditMenu = 29; { param is QTCustomControlSetEditMenuPtr }
- pdActionCustomSetPreviewPicture = 30; { param is QTCustomControlSetPreviewPicturePtr }
- pdActionCustomSetEditCallout = 31; { param is QTCustomControlSetEditCalloutPtr }
- pdActionCustomGetEnableValue = 32; { param is QTCustomControlGetEnableValuePtr }
- pdActionCustomSetSampleTime = 33; { param is QTCustomControlSetSampleTimePtr }
- pdActionCustomGetValue = 34; { param is QTCustomControlGetValue }
- pdActionCustomDoEditCommand = 35; { param is QTCustomControlDoEditCommand }
- { Sample Time information }
- pdSampleTimeDisplayOptionsNone = $00000000;
- type
- QTParamSampleTimeRecordPtr = ^QTParamSampleTimeRecord;
- QTParamSampleTimeRecord = record
- displayOptions: SInt32;
- sampleStartTime: TimeRecord;
- sampleDuration: TimeValue;
- framesPerSecond: SInt32; { if 0, will cause revert to seconds display }
- end;
- QTParamSampleTimePtr = ^QTParamSampleTimeRecord;
- { Preview change callout information }
- QTParamPreviewCalloutRecordPtr = ^QTParamPreviewCalloutRecord;
- QTParamPreviewCalloutRecord = record
- calloutProc: MoviePreviewCallOutUPP; { called when user makes editing changes to dialog. May be NIL. You should return true from your function. }
- refCon: SInt32; { passed to the callout procedure }
- end;
- QTParamPreviewCalloutPtr = ^QTParamPreviewCalloutRecord;
- QTParameterDialogOptions = SInt32;
- { ------- CUSTOM EFFECT CONTROLS }
- {
- Effects may choose to implement custom controls to allow the user to more easily edit complex parameters
- that are ill-served by simple sliders or type in boxes. Effects may allow a custom control for either
- a single parameter, or for a group of parameters.
-
- Parameter(s) for a custom control must still be data types defined by the standard set, or for
- complex records of data, must be defined within a group as individual parameters made up from base
- data types (for example, a point is a group containing two Fixed point numbers).
- This is to allow applications that do not wish to use the custom control for the effect to set values themselves.
-
- Effects should be aware that these custom controls may be deployed by the application in either a dialog or
- a window, with application defined background colors or patterns, along with application defined font
- characteristics for the window.
-
- It is recommended that effects implement custom controls only when needed, and that custom controls be used
- for specific types of parameters (ie, point, rectangle, polygon, path) rather than the entire user interface
- for the effect. Effects may choose to implement multiple custom controls which combine with standard controls
- to present the total user interface. For effects which have very complex user interfaces not well suited for
- inclusion within a single window, it is recommended to use kParameterImageIsPreset -- which allows the effect to
- have an external editing application for parameters which may then be set within the standard UI via the open file
- dialog or drag and drop. The Lens Flare effect's "Flare Type" is an example of such a preset.
-
- For parameters that use a custom control to control a single parameter value, a new behavior
- flag has been added (kCustomControl), and the behavior for the parameter should be kParameterItemControl.
-
- For parameters that are groups, the same flag (kCustomControl) should be used, and the behavior
- should be kParameterItemGroupDivider. Groups with the kCustomControl bit set will be implemented
- by calling the custom control for that group -- the parameters within that group will not be processed
- in the normal manner.
-
- In both cases, the new customType and customID fields of the behavior must be filled in. These are
- used in order to allow your custom control to determine which parameter is being edited in the case
- where the custom control is used for the editing of multiple parameters. These values are passed into
- the pdActionCustomNewControl call. Since the custom control mechanism is also used by QuickTime's
- default effect dialogs, you should be prepared to pass onto the base effect any pdActionCustomNewControl
- calls for type/id pairs that you do not handle yourself. When pdActionCustomNewControl is called
- for controls of types handled by QuickTime, customType is kParameterAtomTypeAndID and customID is
- the ID of the parameter atom.
- }
- {
- pdActionCustomNewControlControl is called by application to create a new custom control or set of controls
- for an effect parameter. When pdActionCustomNewControl is called, the effect should perform any
- basic allocation it needs for storage and return the result in storage. The options parameter tells
- the control if the application wishes to support interpolated, optionally interpolated, or a single
- value parameter.
-
- Since pdActionCustomNewControlControl may be called upon your effect for other items within the
- dialog, it is recommended that your effect have an easy way to determine which controls it implements:
- a) by having storage be a pointer with an OSType at the begining to mark controls
- implemented by your code.
- - or -
- b) keeping track in your component globals those custom controls which you have created.
-
- When pdActionCustomDisposeControl is called any allocation done by the control should be disposed. In addition,
- pdActionCustomDisposeControl is the last chance the control has to commit any user changes into the sample.
- Controls which implement type in fields typically need to commit any final user edits at this time.
- }
- QTCustomControlNewRecordPtr = ^QTCustomControlNewRecord;
- QTCustomControlNewRecord = record
- storage: Ptr; { storage allocated/disposed by the control }
- options: QTParameterDialogOptions; { options used to control interpolation/not }
- sample: QTAtomContainer; { sample that holds the data to be edited }
- customType: SInt32; { custom type and ID specified by effect for creation of this control }
- customID: SInt32;
- end;
- QTCustomControlNewPtr = ^QTCustomControlNewRecord;
- {
- pdActionCustomPositionControl is called by the application to position the control within a window or dialog.
-
- The control should determine if it will fit in the alloted area and position itself there. It should also
- return the space taken up by the control. Note you are free to implement controls which are variable in size depending upon
- which parameter you are editing. You need not scale your control to the requested size. If the area presented to your
- control is too small, set didFit to false. You should still return in used the size you would have liked to use for
- the control. The application will then try again with a new size. Note that all
- controls must be able to fit within a minimum of 300 by 250 pixels.
-
- Custom controls that draw text should make note of the text font, size, and style at this time in order
- to properly display within application windows.
-
- Note that the default state for the control is hidden. You will receive a pdActionCustomShowHideControl
- in order to enable your control. You should not draw your control in response to pdActionCustomPositionControl.
- }
- QTCustomControlPositionControlRecordPtr = ^QTCustomControlPositionControlRecord;
- QTCustomControlPositionControlRecord = record
- storage: Ptr; { storage for the control }
- window: WindowPtr; { window to be used by the control }
- location: Rect; { location within the window the control may use }
- used: Rect; { returned by the control to indicate size it actually used }
- didFit: boolean; { did the control fit in the specified area? }
- pad1,pad2,pad3: SInt8;
- end;
- QTCustomControlPositionControlPtr = ^QTCustomControlPositionControlRecord;
- {
- pdActionCustomShowHideControl is called when the application wishes to enable/disable your control, or
- completely disable drawing of the control
-
- Your control should make note of the new state (if different from the last) and perform an InvalRect()
- on your drawing area, or you may draw your control's initial state in the case of show. You should not
- attempt to erase your control as the result of a hide -- instead call InvalRect() and allow the application
- to process the resulting event as appropriate.
- }
- QTCustomControlShowHideControlRecordPtr = ^QTCustomControlShowHideControlRecord;
- QTCustomControlShowHideControlRecord = record
- storage: Ptr; { storage for the control }
- show: boolean; { display the control? }
- enable: boolean; { enable the control (ie, black vs gray display) }
- pad: array [0..1] of boolean;
- end;
- QTCustomControlShowHideControlPtr = ^QTCustomControlShowHideControlRecord;
- {
- pdActionCustomHandleEvent is called to allow your custom control to process events.
-
- Typical controls handle the following events:
- - activate - to draw your control in normal/gray mode
- - update - to draw your control
- - mouseDown - to handle clicks
- - keyDown - to handle typing when you have focus
- - idle - to perform idle drawing (if applicable)
- If your control handles the entire event, set didProcess to true. If
- you handled the event, but other controls still need the event, set didProcess to false.
-
- If your control supports the concept of focus for the purposes of typing (such as by having
- a type-in box for the parameter) then you set the tookFocus Boolean as part of your processing
- of the event. It is assumed that your control will draw the appropriate focus UI as a result, and
- the calling application will disable any focus drawing within the remainder of the UI.
-
- By default, custom controls are not given idle time. If you need idle time, set needIdle to true
- in response to the even that causes you to need idle (typically the taking of focus, or the first draw).
- Your control will continue to be given idle events until you set needIdle to false in response to
- a nullEvent.
- }
- QTCustomControlHandleEventRecordPtr = ^QTCustomControlHandleEventRecord;
- QTCustomControlHandleEventRecord = record
- storage: Ptr; { storage for the control }
- pEvent: EventRecordPtr; { event to process }
- didProcess: boolean; { did we process entire event? }
- tookFocus: boolean; { did we take focus as a result of this event (typically mouseDowns) }
- needIdle: boolean; { does this control need idle events? }
- didEdit: boolean; { did we edit the samples? }
- end;
- QTCustomControlHandleEventPtr = ^QTCustomControlHandleEventRecord;
- {
- pdActionCustomSetFocus is called in order to set or advance the current focus of the user interface, typically
- because the user has pressed the tab or shift-tab keys, or because the user clicked within the area defined by
- your control.
-
- Your control will be called with pdActionFocusFirst, pdActionFocusLast, or pdActionFocusOff to set or clear focus on your
- control. Your control will be called with pdActionFocusForward or pdActionFocusBackward to cycle
- focus within your control (if your control has multiple focus). If your control does not support focus,
- or the focus request results in focus moving beyond your supported range, return pdActionFocusOff in
- the focus parameter. Otherwise, return the focus that you set.
-
- Controls which have no focus would always set focus to be pdActionFocusOff.
-
- Controls with a single focus would set pdActionFocusFirst when requsted to set either
- pdActionFocusFirst or pdActionFocusLast, and would set pdActionFocusOff for either
- pdActionFocusForward or pdActionFocusBackward.
- }
- const
- pdActionFocusOff = 0; { no focus }
- pdActionFocusFirst = 1; { focus on first element }
- pdActionFocusLast = 2; { focus on last element }
- pdActionFocusForward = 3; { focus on next element }
- pdActionFocusBackward = 4; { focus on previous element }
- type
- QTCustomControlSetFocusRecordPtr = ^QTCustomControlSetFocusRecord;
- QTCustomControlSetFocusRecord = record
- storage: Ptr; { storage for the control }
- focus: SInt32; { focus to set, return resulting focus }
- end;
- QTCustomControlSetFocusPtr = ^QTCustomControlSetFocusRecord;
- {
- pdActionCustomSetEditMenu will be called to inform your custom control of the location of the edit menu.
-
- If your control has editing boxes, this is useful in order to allow the user to perform cut/copy/paste operations
- when focus is on one of these boxes.
- }
- QTCustomControlSetEditMenuRecordPtr = ^QTCustomControlSetEditMenuRecord;
- QTCustomControlSetEditMenuRecord = record
- storage: Ptr; { storage for the control }
- editMenu: MenuHandle; { edit menu, or NIL }
- end;
- QTCustomControlSetEditMenuPtr = ^QTCustomControlSetEditMenuRecord;
- {
- pdActionCustomSetPreviewPicture will be called to inform your custom control of preview information that you
- may wish to use in the drawing of your user interface.
- }
- QTCustomControlSetPreviewPictureRecordPtr = ^QTCustomControlSetPreviewPictureRecord;
- QTCustomControlSetPreviewPictureRecord = record
- storage: Ptr; { storage for the control }
- preview: QTParamPreviewPtr; { preview to set }
- end;
- QTCustomControlSetPreviewPicturePtr = ^QTCustomControlSetPreviewPictureRecord;
- {
- pdActionCustomSetEditCallout tells your control of the need by the application to be informed of
- changes to the parameter values (typically for the purposes of updating previews).
-
- If a callout is available, your custom control should call it whenever a change has been
- made to the parameter(s) that your control is editing (as a result of user actions, most typically).
- If you choose not to implement this, live dragging or updating of values will not work.
- }
- QTCustomControlSetEditCalloutRecordPtr = ^QTCustomControlSetEditCalloutRecord;
- QTCustomControlSetEditCalloutRecord = record
- storage: Ptr; { storage for the control }
- callout: QTParamPreviewCalloutPtr; { requested callout, or NIL to disable }
- end;
- QTCustomControlSetEditCalloutPtr = ^QTCustomControlSetEditCalloutRecord;
- {
- pdActionCustomGetEnableValue allows you to return a value for the purposes of enabling/disabling
- other controls.
- Most custom controls do not need to implement this call.
-
- If your control is able to control the enabling and disabling of other parameter controls (such as is done
- by standard pop up or enumerated type controls), you need to supply a value that can be use for greater than/less than
- types of comparisons.
- }
- QTCustomControlGetEnableValueRecordPtr = ^QTCustomControlGetEnableValueRecord;
- QTCustomControlGetEnableValueRecord = record
- storage: Ptr; { storage for the control }
- currentValue: SInt32; { value to compare against for enable/disable purposes }
- end;
- QTCustomControlGetEnableValuePtr = ^QTCustomControlGetEnableValueRecord;
- {
- pdActionCustomSetSampleTime tells your control information from the application about the duration
- and start time for the sample being edited.
-
- Most controls do not need this information, but some may choose to use it in the interface
- they present the user. However, this call need not be made by applications, so the custom
- control should be prepared to run when the sample time information is not available.
- }
- QTCustomControlSetSampleTimeRecordPtr = ^QTCustomControlSetSampleTimeRecord;
- QTCustomControlSetSampleTimeRecord = record
- storage: Ptr; { storage for the control }
- sampleTime: QTParamSampleTimePtr; { sample time information or NIL }
- end;
- QTCustomControlSetSampleTimePtr = ^QTCustomControlSetSampleTimeRecord;
- {
- pdActionCustomGetValue tells your control to store any value(s) into the specified atom container.
-
- All custom controls must implement this call
- }
- QTCustomControlGetValueRecordPtr = ^QTCustomControlGetValueRecord;
- QTCustomControlGetValueRecord = record
- storage: Ptr; { storage for the control }
- sample: QTAtomContainer; { sample to store into }
- end;
- QTCustomControlGetValuePtr = ^QTCustomControlGetValueRecord;
- {
- pdActionCustomDoEditCommand tells your control to handle edit commands if it allow focus and type in boxes.
-
- All custom controls must implement this call if they support edit boxes
- }
- QTCustomControlDoEditCommandRecordPtr = ^QTCustomControlDoEditCommandRecord;
- QTCustomControlDoEditCommandRecord = record
- storage: Ptr; { storage for the control }
- command: SInt32; { command to execute, return 0 here if processed }
- end;
- QTCustomControlDoEditCommandPtr = ^QTCustomControlDoEditCommandRecord;
- QTParameterDialog = SInt32;
- const
- elOptionsIncludeNoneInList = $00000001; { "None" effect is included in list }
- type
- QTEffectListOptions = SInt32;
- const
- pdOptionsCollectOneValue = $00000001; { should collect a single value only }
- pdOptionsAllowOptionalInterpolations = $00000002; { non-novice interpolation options are shown }
- pdOptionsModalDialogBox = $00000004; { dialog box should be modal }
- pdOptionsEditCurrentEffectOnly = $00000008; { List of effects will not be shown }
- pdOptionsHidePreview = $00000010; { Preview item will not be shown }
- effectIsRealtime = 0; { effect can be rendered in real time }
- {
- QTGetEffectsListExtended is a call that provides for
- more advanced filtering of effects to be placed into the
- effect list. Applications can filter on:
- 1) number of input sources
- 2) effect major or minor class
- 3) custom filtering through a callback
- The callback will be called for each effect which passes
- the other criteria for inclusion. If the callback
- returns a true result the effect will be included in the list.
-
- Note that your filter proc may receive multiple effects from various
- manufacturers. If you return true for multiple effects of a given type
- only the one with the higher parameter version number will be included.
- If you wish other filtering (such as effects from a given manufacturer, you
- can do this by return false for the other effects and true for those
- that you prefer.
- }
- type
- {$ifc TYPED_FUNCTION_POINTERS}
- QTEffectListFilterProcPtr = function(effect: Component; effectMinSource: SInt32; effectMaxSource: SInt32; majorClass: OSType; minorClass: OSType; refcon: UnivPtr): boolean;
- {$elsec}
- QTEffectListFilterProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- QTEffectListFilterUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- QTEffectListFilterUPP = UniversalProcPtr;
- {$endc}
- {
- * QTGetEffectsList()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetEffectsList(var returnedList: QTAtomContainer; minSources: SInt32; maxSources: SInt32; getOptions: QTEffectListOptions): OSErr; external name '_QTGetEffectsList';
- {
- * QTGetEffectsListExtended()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTGetEffectsListExtended(var returnedList: QTAtomContainer; minSources: SInt32; maxSources: SInt32; getOptions: QTEffectListOptions; majorClass: OSType; minorClass: OSType; filterProc: QTEffectListFilterUPP; filterRefCon: UnivPtr): OSErr; external name '_QTGetEffectsListExtended';
- {
- * QTCreateStandardParameterDialog()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTCreateStandardParameterDialog(effectList: QTAtomContainer; parameters: QTAtomContainer; dialogOptions: QTParameterDialogOptions; var createdDialog: QTParameterDialog): OSErr; external name '_QTCreateStandardParameterDialog';
- {
- * QTIsStandardParameterDialogEvent()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTIsStandardParameterDialogEvent(var pEvent: EventRecord; createdDialog: QTParameterDialog): OSErr; external name '_QTIsStandardParameterDialogEvent';
- {
- * QTDismissStandardParameterDialog()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTDismissStandardParameterDialog(createdDialog: QTParameterDialog): OSErr; external name '_QTDismissStandardParameterDialog';
- {
- * QTStandardParameterDialogDoAction()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTStandardParameterDialogDoAction(createdDialog: QTParameterDialog; action: SInt32; params: UnivPtr): OSErr; external name '_QTStandardParameterDialogDoAction';
- {
- * QTGetEffectSpeed()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetEffectSpeed(parameters: QTAtomContainer; var pFPS: Fixed): OSErr; external name '_QTGetEffectSpeed';
- {****
- Error reporting
- ****}
- type
- QTErrorReplacementRecordPtr = ^QTErrorReplacementRecord;
- QTErrorReplacementRecord = record
- numEntries: SInt32;
- replacementString: array [0..0] of StringPtr; { array of numEntries StringPtrs (each String is allocated separately). }
- end;
- QTErrorReplacementPtr = ^QTErrorReplacementRecord;
- {
- QTAddMovieError is used to add orthogonal errors to a list of errors that will
- later be reported (at the end of an import or playback, for example). Errors are stored
- in 'qter' resources within the component.
-
- QTAddMovieError(Movie addTo, // in: movie to add error to
- Component adder, // in: component which is adding the error
- long errorCode, // in: error code being added
- QTErrorReplacementPtr stringReplacements);// in: list of strings to subsitute (in order) for "^1", "^2", etc
- }
- {
- * QTAddMovieError()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTAddMovieError(movieH: Movie; c: Component; errorCode: SInt32; stringReplacements: QTErrorReplacementPtr): OSErr; external name '_QTAddMovieError';
- {****
- Access Keys
- ****}
- const
- kAccessKeyAtomType = FourCharCode('acky');
- kAccessKeySystemFlag = $00000001;
- {
- * QTGetAccessKeys()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetAccessKeys(var accessKeyType: Str255; flags: SInt32; var keys: QTAtomContainer): OSErr; external name '_QTGetAccessKeys';
- {
- * QTRegisterAccessKey()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTRegisterAccessKey(var accessKeyType: Str255; flags: SInt32; accessKey: Handle): OSErr; external name '_QTRegisterAccessKey';
- {
- * QTUnregisterAccessKey()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTUnregisterAccessKey(var accessKeyType: Str255; flags: SInt32; accessKey: Handle): OSErr; external name '_QTUnregisterAccessKey';
- {****
- Content Restrictions
- ****}
- {
- * QTGetMovieRestrictions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTGetMovieRestrictions(theMovie: Movie; var outRestrictionSet: QTRestrictionSet; var outSeed: UInt32): OSErr; external name '_QTGetMovieRestrictions';
- {
- * QTRestrictionsGetInfo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTRestrictionsGetInfo(inRestrictionSet: QTRestrictionSet; var outRestrictionClassCount: SInt32; var outSeed: SInt32): OSErr; external name '_QTRestrictionsGetInfo';
- {
- * QTRestrictionsGetIndClass()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTRestrictionsGetIndClass(inRestrictionSet: QTRestrictionSet; inIndex: SInt32; var outClass: OSType): OSErr; external name '_QTRestrictionsGetIndClass';
- {
- * QTRestrictionsGetItem()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTRestrictionsGetItem(inRestrictionSet: QTRestrictionSet; inRestrictionClass: OSType; var outRestrictions: UInt32): OSErr; external name '_QTRestrictionsGetItem';
- {
- * QTGetSupportedRestrictions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTGetSupportedRestrictions(inRestrictionClass: OSType; var outRestrictionIDs: UInt32): OSErr; external name '_QTGetSupportedRestrictions';
- {
- * QTCreateUUID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTCreateUUID(var outUUID: QTUUID; creationFlags: SInt32): OSErr; external name '_QTCreateUUID';
- {
- * QTEqualUUIDs()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function QTEqualUUIDs(const (*var*) uuid1: QTUUID; const (*var*) uuid2: QTUUID): boolean; external name '_QTEqualUUIDs';
- {****
- Time table
- ****}
- {
- * MakeTrackTimeTable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MakeTrackTimeTable(trackH: Track; var offsets: SInt32Ptr; startTime: TimeValue; endTime: TimeValue; timeIncrement: TimeValue; firstDataRefIndex: SInt16; lastDataRefIndex: SInt16; var retdataRefSkew: SInt32): OSErr; external name '_MakeTrackTimeTable';
- {
- * MakeMediaTimeTable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MakeMediaTimeTable(theMedia: Media; var offsets: SInt32Ptr; startTime: TimeValue; endTime: TimeValue; timeIncrement: TimeValue; firstDataRefIndex: SInt16; lastDataRefIndex: SInt16; var retdataRefSkew: SInt32): OSErr; external name '_MakeMediaTimeTable';
- {
- * GetMaxLoadedTimeInMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetMaxLoadedTimeInMovie(theMovie: Movie; var time: TimeValue): OSErr; external name '_GetMaxLoadedTimeInMovie';
- {
- * QTMovieNeedsTimeTable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTMovieNeedsTimeTable(theMovie: Movie; var needsTimeTable: boolean): OSErr; external name '_QTMovieNeedsTimeTable';
- {
- * QTGetDataRefMaxFileOffset()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTGetDataRefMaxFileOffset(movieH: Movie; dataRefType: OSType; dataRef: Handle; var offset: SInt32): OSErr; external name '_QTGetDataRefMaxFileOffset';
- {****
- Bandwidth management support
- ****}
- const
- ConnectionSpeedPrefsType = FourCharCode('cspd');
- BandwidthManagementPrefsType = FourCharCode('bwmg');
- type
- ConnectionSpeedPrefsRecordPtr = ^ConnectionSpeedPrefsRecord;
- ConnectionSpeedPrefsRecord = record
- connectionSpeed: SInt32;
- end;
- ConnectionSpeedPrefsPtr = ^ConnectionSpeedPrefsRecord;
- ConnectionSpeedPrefsHandle = ^ConnectionSpeedPrefsPtr;
- BandwidthManagementPrefsRecordPtr = ^BandwidthManagementPrefsRecord;
- BandwidthManagementPrefsRecord = record
- overrideConnectionSpeedForBandwidth: boolean;
- pad: SInt8
- end;
- BandwidthManagementPrefsPtr = ^BandwidthManagementPrefsRecord;
- BandwidthManagementPrefsHandle = ^BandwidthManagementPrefsPtr;
- const
- kQTIdlePriority = 10;
- kQTNonRealTimePriority = 20;
- kQTRealTimeSharedPriority = 25;
- kQTRealTimePriority = 30;
- kQTBandwidthNotifyNeedToStop = $00000001;
- kQTBandwidthNotifyGoodToGo = $00000002;
- kQTBandwidthChangeRequest = $00000004;
- kQTBandwidthQueueRequest = $00000008;
- kQTBandwidthScheduledRequest = $00000010;
- kQTBandwidthVoluntaryRelease = $00000020;
- type
- {$ifc TYPED_FUNCTION_POINTERS}
- QTBandwidthNotificationProcPtr = function(flags: SInt32; reserved: UnivPtr; refcon: UnivPtr): OSErr;
- {$elsec}
- QTBandwidthNotificationProcPtr = ProcPtr;
- {$endc}
- QTScheduledBandwidthRecordPtr = ^QTScheduledBandwidthRecord;
- QTScheduledBandwidthRecord = record
- recordSize: SInt32; { total number of bytes in QTScheduledBandwidthRecord }
- priority: SInt32;
- dataRate: SInt32;
- startTime: CompTimeValue; { bandwidth usage start time }
- duration: CompTimeValue; { duration of bandwidth usage (0 if unknown) }
- prerollDuration: CompTimeValue; { time for negotiation before startTime (0 if unknown) }
- scale: TimeScale; { timescale of value/duration/prerollDuration fields }
- base: TimeBase; { timebase }
- end;
- QTScheduledBandwidthPtr = ^QTScheduledBandwidthRecord;
- QTScheduledBandwidthHandle = ^QTScheduledBandwidthPtr;
- {$ifc OPAQUE_UPP_TYPES}
- QTBandwidthNotificationUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- QTBandwidthNotificationUPP = UniversalProcPtr;
- {$endc}
- {
- * QTBandwidthRequest()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function QTBandwidthRequest(priority: SInt32; callback: QTBandwidthNotificationUPP; refcon: UnivPtr; var bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRequest';
- {
- * QTBandwidthRequestForTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function QTBandwidthRequestForTimeBase(tb: TimeBase; priority: SInt32; callback: QTBandwidthNotificationUPP; refcon: UnivPtr; var bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRequestForTimeBase';
- {
- * QTBandwidthRelease()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function QTBandwidthRelease(bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRelease';
- {
- * QTScheduledBandwidthRequest()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function QTScheduledBandwidthRequest(scheduleRec: QTScheduledBandwidthPtr; notificationCallback: QTBandwidthNotificationUPP; refcon: UnivPtr; var sbwRef: QTScheduledBandwidthReference; flags: SInt32): OSErr; external name '_QTScheduledBandwidthRequest';
- {
- * QTScheduledBandwidthRelease()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function QTScheduledBandwidthRelease(sbwRef: QTScheduledBandwidthReference; flags: SInt32): OSErr; external name '_QTScheduledBandwidthRelease';
- const
- uppQTCallBackProcInfo = $000003C0;
- uppQTSyncTaskProcInfo = $000000C0;
- uppMovieRgnCoverProcInfo = $00000FE0;
- uppMovieProgressProcInfo = $0000FAE0;
- uppMovieDrawingCompleteProcInfo = $000003E0;
- uppTrackTransferProcInfo = $000003E0;
- uppGetMovieProcInfo = $00003FE0;
- uppMoviePreviewCallOutProcInfo = $000000D0;
- uppTextMediaProcInfo = $00003FE0;
- uppActionsProcInfo = $00003FE0;
- uppDoMCActionProcInfo = $00003EE0;
- uppMovieExecuteWiredActionsProcInfo = $00003FE0;
- uppMoviePrePrerollCompleteProcInfo = $00000EC0;
- uppQTNextTaskNeededSoonerCallbackProcInfo = $00000FC0;
- uppMoviesErrorProcInfo = $00000380;
- uppTweenerDataProcInfo = $003FFFF0;
- uppQTEffectListFilterProcInfo = $0003FFD0;
- uppQTBandwidthNotificationProcInfo = $00000FE0;
- {
- * NewQTCallBackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewQTCallBackUPP(userRoutine: QTCallBackProcPtr): QTCallBackUPP; external name '_NewQTCallBackUPP'; { old name was NewQTCallBackProc }
- {
- * NewQTSyncTaskUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewQTSyncTaskUPP(userRoutine: QTSyncTaskProcPtr): QTSyncTaskUPP; external name '_NewQTSyncTaskUPP'; { old name was NewQTSyncTaskProc }
- {
- * NewMovieRgnCoverUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMovieRgnCoverUPP(userRoutine: MovieRgnCoverProcPtr): MovieRgnCoverUPP; external name '_NewMovieRgnCoverUPP'; { old name was NewMovieRgnCoverProc }
- {
- * NewMovieProgressUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMovieProgressUPP(userRoutine: MovieProgressProcPtr): MovieProgressUPP; external name '_NewMovieProgressUPP'; { old name was NewMovieProgressProc }
- {
- * NewMovieDrawingCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMovieDrawingCompleteUPP(userRoutine: MovieDrawingCompleteProcPtr): MovieDrawingCompleteUPP; external name '_NewMovieDrawingCompleteUPP'; { old name was NewMovieDrawingCompleteProc }
- {
- * NewTrackTransferUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewTrackTransferUPP(userRoutine: TrackTransferProcPtr): TrackTransferUPP; external name '_NewTrackTransferUPP'; { old name was NewTrackTransferProc }
- {
- * NewGetMovieUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewGetMovieUPP(userRoutine: GetMovieProcPtr): GetMovieUPP; external name '_NewGetMovieUPP'; { old name was NewGetMovieProc }
- {
- * NewMoviePreviewCallOutUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMoviePreviewCallOutUPP(userRoutine: MoviePreviewCallOutProcPtr): MoviePreviewCallOutUPP; external name '_NewMoviePreviewCallOutUPP'; { old name was NewMoviePreviewCallOutProc }
- {
- * NewTextMediaUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewTextMediaUPP(userRoutine: TextMediaProcPtr): TextMediaUPP; external name '_NewTextMediaUPP'; { old name was NewTextMediaProc }
- {
- * NewActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewActionsUPP(userRoutine: ActionsProcPtr): ActionsUPP; external name '_NewActionsUPP'; { old name was NewActionsProc }
- {
- * NewDoMCActionUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewDoMCActionUPP(userRoutine: DoMCActionProcPtr): DoMCActionUPP; external name '_NewDoMCActionUPP'; { old name was NewDoMCActionProc }
- {
- * NewMovieExecuteWiredActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMovieExecuteWiredActionsUPP(userRoutine: MovieExecuteWiredActionsProcPtr): MovieExecuteWiredActionsUPP; external name '_NewMovieExecuteWiredActionsUPP'; { old name was NewMovieExecuteWiredActionsProc }
- {
- * NewMoviePrePrerollCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMoviePrePrerollCompleteUPP(userRoutine: MoviePrePrerollCompleteProcPtr): MoviePrePrerollCompleteUPP; external name '_NewMoviePrePrerollCompleteUPP'; { old name was NewMoviePrePrerollCompleteProc }
- {
- * NewQTNextTaskNeededSoonerCallbackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- function NewQTNextTaskNeededSoonerCallbackUPP(userRoutine: QTNextTaskNeededSoonerCallbackProcPtr): QTNextTaskNeededSoonerCallbackUPP; external name '_NewQTNextTaskNeededSoonerCallbackUPP'; { old name was NewQTNextTaskNeededSoonerCallbackProc }
- {
- * NewMoviesErrorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMoviesErrorUPP(userRoutine: MoviesErrorProcPtr): MoviesErrorUPP; external name '_NewMoviesErrorUPP'; { old name was NewMoviesErrorProc }
- {
- * NewTweenerDataUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewTweenerDataUPP(userRoutine: TweenerDataProcPtr): TweenerDataUPP; external name '_NewTweenerDataUPP'; { old name was NewTweenerDataProc }
- {
- * NewQTEffectListFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- function NewQTEffectListFilterUPP(userRoutine: QTEffectListFilterProcPtr): QTEffectListFilterUPP; external name '_NewQTEffectListFilterUPP'; { old name was NewQTEffectListFilterProc }
- {
- * NewQTBandwidthNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewQTBandwidthNotificationUPP(userRoutine: QTBandwidthNotificationProcPtr): QTBandwidthNotificationUPP; external name '_NewQTBandwidthNotificationUPP'; { old name was NewQTBandwidthNotificationProc }
- {
- * DisposeQTCallBackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeQTCallBackUPP(userUPP: QTCallBackUPP); external name '_DisposeQTCallBackUPP';
- {
- * DisposeQTSyncTaskUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeQTSyncTaskUPP(userUPP: QTSyncTaskUPP); external name '_DisposeQTSyncTaskUPP';
- {
- * DisposeMovieRgnCoverUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMovieRgnCoverUPP(userUPP: MovieRgnCoverUPP); external name '_DisposeMovieRgnCoverUPP';
- {
- * DisposeMovieProgressUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMovieProgressUPP(userUPP: MovieProgressUPP); external name '_DisposeMovieProgressUPP';
- {
- * DisposeMovieDrawingCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMovieDrawingCompleteUPP(userUPP: MovieDrawingCompleteUPP); external name '_DisposeMovieDrawingCompleteUPP';
- {
- * DisposeTrackTransferUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeTrackTransferUPP(userUPP: TrackTransferUPP); external name '_DisposeTrackTransferUPP';
- {
- * DisposeGetMovieUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeGetMovieUPP(userUPP: GetMovieUPP); external name '_DisposeGetMovieUPP';
- {
- * DisposeMoviePreviewCallOutUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMoviePreviewCallOutUPP(userUPP: MoviePreviewCallOutUPP); external name '_DisposeMoviePreviewCallOutUPP';
- {
- * DisposeTextMediaUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeTextMediaUPP(userUPP: TextMediaUPP); external name '_DisposeTextMediaUPP';
- {
- * DisposeActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeActionsUPP(userUPP: ActionsUPP); external name '_DisposeActionsUPP';
- {
- * DisposeDoMCActionUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeDoMCActionUPP(userUPP: DoMCActionUPP); external name '_DisposeDoMCActionUPP';
- {
- * DisposeMovieExecuteWiredActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMovieExecuteWiredActionsUPP(userUPP: MovieExecuteWiredActionsUPP); external name '_DisposeMovieExecuteWiredActionsUPP';
- {
- * DisposeMoviePrePrerollCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMoviePrePrerollCompleteUPP(userUPP: MoviePrePrerollCompleteUPP); external name '_DisposeMoviePrePrerollCompleteUPP';
- {
- * DisposeQTNextTaskNeededSoonerCallbackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- procedure DisposeQTNextTaskNeededSoonerCallbackUPP(userUPP: QTNextTaskNeededSoonerCallbackUPP); external name '_DisposeQTNextTaskNeededSoonerCallbackUPP';
- {
- * DisposeMoviesErrorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMoviesErrorUPP(userUPP: MoviesErrorUPP); external name '_DisposeMoviesErrorUPP';
- {
- * DisposeTweenerDataUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeTweenerDataUPP(userUPP: TweenerDataUPP); external name '_DisposeTweenerDataUPP';
- {
- * DisposeQTEffectListFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- procedure DisposeQTEffectListFilterUPP(userUPP: QTEffectListFilterUPP); external name '_DisposeQTEffectListFilterUPP';
- {
- * DisposeQTBandwidthNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeQTBandwidthNotificationUPP(userUPP: QTBandwidthNotificationUPP); external name '_DisposeQTBandwidthNotificationUPP';
- {
- * InvokeQTCallBackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeQTCallBackUPP(cb: QTCallBack; refCon: SInt32; userRoutine: QTCallBackUPP); external name '_InvokeQTCallBackUPP'; { old name was CallQTCallBackProc }
- {
- * InvokeQTSyncTaskUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeQTSyncTaskUPP(task: UnivPtr; userRoutine: QTSyncTaskUPP); external name '_InvokeQTSyncTaskUPP'; { old name was CallQTSyncTaskProc }
- {
- * InvokeMovieRgnCoverUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMovieRgnCoverUPP(theMovie: Movie; changedRgn: RgnHandle; refcon: SInt32; userRoutine: MovieRgnCoverUPP): OSErr; external name '_InvokeMovieRgnCoverUPP'; { old name was CallMovieRgnCoverProc }
- {
- * InvokeMovieProgressUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMovieProgressUPP(theMovie: Movie; message: SInt16; whatOperation: SInt16; percentDone: Fixed; refcon: SInt32; userRoutine: MovieProgressUPP): OSErr; external name '_InvokeMovieProgressUPP'; { old name was CallMovieProgressProc }
- {
- * InvokeMovieDrawingCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMovieDrawingCompleteUPP(theMovie: Movie; refCon: SInt32; userRoutine: MovieDrawingCompleteUPP): OSErr; external name '_InvokeMovieDrawingCompleteUPP'; { old name was CallMovieDrawingCompleteProc }
- {
- * InvokeTrackTransferUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeTrackTransferUPP(t: Track; refCon: SInt32; userRoutine: TrackTransferUPP): OSErr; external name '_InvokeTrackTransferUPP'; { old name was CallTrackTransferProc }
- {
- * InvokeGetMovieUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeGetMovieUPP(offset: SInt32; size: SInt32; dataPtr: UnivPtr; refCon: UnivPtr; userRoutine: GetMovieUPP): OSErr; external name '_InvokeGetMovieUPP'; { old name was CallGetMovieProc }
- {
- * InvokeMoviePreviewCallOutUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMoviePreviewCallOutUPP(refcon: SInt32; userRoutine: MoviePreviewCallOutUPP): boolean; external name '_InvokeMoviePreviewCallOutUPP'; { old name was CallMoviePreviewCallOutProc }
- {
- * InvokeTextMediaUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeTextMediaUPP(theText: Handle; theMovie: Movie; var displayFlag: SInt16; refcon: SInt32; userRoutine: TextMediaUPP): OSErr; external name '_InvokeTextMediaUPP'; { old name was CallTextMediaProc }
- {
- * InvokeActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeActionsUPP(refcon: UnivPtr; targetTrack: Track; targetRefCon: SInt32; theEvent: QTEventRecordPtr; userRoutine: ActionsUPP): OSErr; external name '_InvokeActionsUPP'; { old name was CallActionsProc }
- {
- * InvokeDoMCActionUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeDoMCActionUPP(refcon: UnivPtr; action: SInt16; params: UnivPtr; var handled: boolean; userRoutine: DoMCActionUPP): OSErr; external name '_InvokeDoMCActionUPP'; { old name was CallDoMCActionProc }
- {
- * InvokeMovieExecuteWiredActionsUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMovieExecuteWiredActionsUPP(theMovie: Movie; refcon: UnivPtr; flags: SInt32; wiredActions: QTAtomContainer; userRoutine: MovieExecuteWiredActionsUPP): OSErr; external name '_InvokeMovieExecuteWiredActionsUPP'; { old name was CallMovieExecuteWiredActionsProc }
- {
- * InvokeMoviePrePrerollCompleteUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeMoviePrePrerollCompleteUPP(theMovie: Movie; prerollErr: OSErr; refcon: UnivPtr; userRoutine: MoviePrePrerollCompleteUPP); external name '_InvokeMoviePrePrerollCompleteUPP'; { old name was CallMoviePrePrerollCompleteProc }
- {
- * InvokeQTNextTaskNeededSoonerCallbackUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- procedure InvokeQTNextTaskNeededSoonerCallbackUPP(duration: TimeValue; flags: UInt32; refcon: UnivPtr; userRoutine: QTNextTaskNeededSoonerCallbackUPP); external name '_InvokeQTNextTaskNeededSoonerCallbackUPP'; { old name was CallQTNextTaskNeededSoonerCallbackProc }
- {
- * InvokeMoviesErrorUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure InvokeMoviesErrorUPP(theErr: OSErr; refcon: SInt32; userRoutine: MoviesErrorUPP); external name '_InvokeMoviesErrorUPP'; { old name was CallMoviesErrorProc }
- {
- * InvokeTweenerDataUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeTweenerDataUPP(tr: TweenRecordPtr; tweenData: UnivPtr; tweenDataSize: SInt32; dataDescriptionSeed: SInt32; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UnivPtr; userRoutine: TweenerDataUPP): ComponentResult; external name '_InvokeTweenerDataUPP'; { old name was CallTweenerDataProc }
- {
- * InvokeQTEffectListFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- }
- function InvokeQTEffectListFilterUPP(effect: Component; effectMinSource: SInt32; effectMaxSource: SInt32; majorClass: OSType; minorClass: OSType; refcon: UnivPtr; userRoutine: QTEffectListFilterUPP): boolean; external name '_InvokeQTEffectListFilterUPP'; { old name was CallQTEffectListFilterProc }
- {
- * InvokeQTBandwidthNotificationUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeQTBandwidthNotificationUPP(flags: SInt32; reserved: UnivPtr; refcon: UnivPtr; userRoutine: QTBandwidthNotificationUPP): OSErr; external name '_InvokeQTBandwidthNotificationUPP'; { old name was CallQTBandwidthNotificationProc }
- {****
- QT International Text Atom Support
- ****}
- const
- kITextRemoveEverythingBut = $00;
- kITextRemoveLeaveSuggestedAlternate = $02;
- kITextAtomType = FourCharCode('itxt');
- kITextStringAtomType = FourCharCode('text');
- {
- * ITextAddString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ITextAddString(container: QTAtomContainer; parentAtom: QTAtom; theRegionCode: RegionCode; const (*var*) theString: Str255): OSErr; external name '_ITextAddString';
- {
- * ITextRemoveString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ITextRemoveString(container: QTAtomContainer; parentAtom: QTAtom; theRegionCode: RegionCode; flags: SInt32): OSErr; external name '_ITextRemoveString';
- {
- * ITextGetString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function ITextGetString(container: QTAtomContainer; parentAtom: QTAtom; requestedRegion: RegionCode; var foundRegion: RegionCode; theString: StringPtr): OSErr; external name '_ITextGetString';
- {
- * QTTextToNativeText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function QTTextToNativeText(theText: Handle; encoding: SInt32; flags: SInt32): OSErr; external name '_QTTextToNativeText';
- { QTParseTextHREF inContainer atoms }
- const
- kQTParseTextHREFText = FourCharCode('text'); { string }
- kQTParseTextHREFBaseURL = FourCharCode('burl'); { string }
- kQTParseTextHREFClickPoint = FourCharCode('clik'); { Point; if present, QTParseTextHREF will expand URLs to support server-side image maps }
- kQTParseTextHREFUseAltDelim = FourCharCode('altd'); { boolean; if no kQTParseTextHREFDelimiter, delim is ':' }
- kQTParseTextHREFDelimiter = FourCharCode('delm'); { character }
- kQTParseTextHREFRecomposeHREF = FourCharCode('rhrf'); { Boolean; if true, QTParseTextHREF returns recomposed HREF with URL expanded as appropriate }
- { QTParseTextHREF outContainer atoms }
- kQTParseTextHREFURL = FourCharCode('url '); { string }
- kQTParseTextHREFTarget = FourCharCode('targ'); { string }
- kQTParseTextHREFChapter = FourCharCode('chap'); { string }
- kQTParseTextHREFIsAutoHREF = FourCharCode('auto'); { Boolean }
- kQTParseTextHREFIsServerMap = FourCharCode('smap'); { Boolean }
- kQTParseTextHREFHREF = FourCharCode('href'); { string; recomposed HREF with URL expanded as appropriate, suitable for mcActionLinkToURL }
- kQTParseTextHREFEMBEDArgs = FourCharCode('mbed'); { string; text between 'E<' and '>' to be used as new movie's embed tags }
- {
- * QTParseTextHREF()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function QTParseTextHREF(href: CStringPtr; hrefLen: SInt32; inContainer: QTAtomContainer; var outContainer: QTAtomContainer): OSErr; external name '_QTParseTextHREF';
- {************************
- * track reference types
- *************************}
- const
- kTrackReferenceChapterList = FourCharCode('chap');
- kTrackReferenceTimeCode = FourCharCode('tmcd');
- kTrackReferenceModifier = FourCharCode('ssrc');
- { ************************
- * modifier track types
- ************************* }
- kTrackModifierInput = $696E; { is really 'in' }
- kTrackModifierType = $7479; { is really 'ty' }
- kTrackModifierReference = FourCharCode('ssrc');
- kTrackModifierObjectID = FourCharCode('obid');
- kTrackModifierInputName = FourCharCode('name');
- kInputMapSubInputID = FourCharCode('subi');
- kTrackModifierTypeMatrix = 1;
- kTrackModifierTypeClip = 2;
- kTrackModifierTypeGraphicsMode = 5;
- kTrackModifierTypeVolume = 3;
- kTrackModifierTypeBalance = 4;
- kTrackModifierTypeImage = FourCharCode('vide'); { was kTrackModifierTypeSpriteImage }
- kTrackModifierObjectMatrix = 6;
- kTrackModifierObjectGraphicsMode = 7;
- kTrackModifierType3d4x4Matrix = 8;
- kTrackModifierCameraData = 9;
- kTrackModifierSoundLocalizationData = 10;
- kTrackModifierObjectImageIndex = 11;
- kTrackModifierObjectLayer = 12;
- kTrackModifierObjectVisible = 13;
- kTrackModifierAngleAspectCamera = 14;
- kTrackModifierPanAngle = FourCharCode('pan ');
- kTrackModifierTiltAngle = FourCharCode('tilt');
- kTrackModifierVerticalFieldOfViewAngle = FourCharCode('fov ');
- kTrackModifierObjectQTEventSend = FourCharCode('evnt');
- kTrackModifierObjectCanBeHitTested = 15;
- type
- ModifierTrackGraphicsModeRecordPtr = ^ModifierTrackGraphicsModeRecord;
- ModifierTrackGraphicsModeRecord = record
- graphicsMode: SInt32;
- opColor: RGBColor;
- end;
- { ************************
- * tween track types
- ************************* }
- const
- kTweenTypeShort = 1;
- kTweenTypeLong = 2;
- kTweenTypeFixed = 3;
- kTweenTypePoint = 4;
- kTweenTypeQDRect = 5;
- kTweenTypeQDRegion = 6;
- kTweenTypeMatrix = 7;
- kTweenTypeRGBColor = 8;
- kTweenTypeGraphicsModeWithRGBColor = 9;
- kTweenTypeQTFloatSingle = 10;
- kTweenTypeQTFloatDouble = 11;
- kTweenTypeFixedPoint = 12;
- kTweenType3dScale = FourCharCode('3sca');
- kTweenType3dTranslate = FourCharCode('3tra');
- kTweenType3dRotate = FourCharCode('3rot');
- kTweenType3dRotateAboutPoint = FourCharCode('3rap');
- kTweenType3dRotateAboutAxis = FourCharCode('3rax');
- kTweenType3dRotateAboutVector = FourCharCode('3rvc');
- kTweenType3dQuaternion = FourCharCode('3qua');
- kTweenType3dMatrix = FourCharCode('3mat');
- kTweenType3dCameraData = FourCharCode('3cam');
- kTweenType3dAngleAspectCameraData = FourCharCode('3caa');
- kTweenType3dSoundLocalizationData = FourCharCode('3slc');
- kTweenTypePathToMatrixTranslation = FourCharCode('gxmt');
- kTweenTypePathToMatrixRotation = FourCharCode('gxpr');
- kTweenTypePathToMatrixTranslationAndRotation = FourCharCode('gxmr');
- kTweenTypePathToFixedPoint = FourCharCode('gxfp');
- kTweenTypePathXtoY = FourCharCode('gxxy');
- kTweenTypePathYtoX = FourCharCode('gxyx');
- kTweenTypeAtomList = FourCharCode('atom');
- kTweenTypePolygon = FourCharCode('poly');
- kTweenTypeMultiMatrix = FourCharCode('mulm');
- kTweenTypeSpin = FourCharCode('spin');
- kTweenType3dMatrixNonLinear = FourCharCode('3nlr');
- kTweenType3dVRObject = FourCharCode('3vro');
- kTweenEntry = FourCharCode('twen');
- kTweenData = FourCharCode('data');
- kTweenType = FourCharCode('twnt');
- kTweenStartOffset = FourCharCode('twst');
- kTweenDuration = FourCharCode('twdu');
- kTweenFlags = FourCharCode('flag');
- kTweenOutputMin = FourCharCode('omin');
- kTweenOutputMax = FourCharCode('omax');
- kTweenSequenceElement = FourCharCode('seqe');
- kTween3dInitialCondition = FourCharCode('icnd');
- kTweenInterpolationID = FourCharCode('intr');
- kTweenRegionData = FourCharCode('qdrg');
- kTweenPictureData = FourCharCode('PICT');
- kListElementType = FourCharCode('type');
- kListElementDataType = FourCharCode('daty');
- kNameAtom = FourCharCode('name');
- kInitialRotationAtom = FourCharCode('inro');
- kNonLinearTweenHeader = FourCharCode('nlth');
- { kTweenFlags }
- kTweenReturnDelta = $00000001;
- type
- TweenSequenceEntryRecordPtr = ^TweenSequenceEntryRecord;
- TweenSequenceEntryRecord = record
- endPercent: Fixed;
- tweenAtomID: QTAtomID;
- dataAtomID: QTAtomID;
- end;
- { ****
- Content Restrictions
- **** }
- const
- kQTRestrictionClassSave = FourCharCode('save');
- kQTRestrictionSaveDontAddMovieResource = $00000001;
- kQTRestrictionSaveDontFlatten = $00000002;
- kQTRestrictionSaveDontExport = $00000004;
- kQTRestrictionSaveDontExtract = $00000008; { don't allow any form of extraction of content }
- kQTRestrictionClassEdit = FourCharCode('edit');
- kQTRestrictionEditDontCopy = $00000001; { disable copy }
- kQTRestrictionEditDontCut = $00000002; { disable cut }
- kQTRestrictionEditDontPaste = $00000004; { disable paste }
- kQTRestrictionEditDontClear = $00000008; { disable clear }
- kQTRestrictionEditDontModify = $00000010; { don't allow modification of content }
- kQTRestrictionEditDontExtract = $00000020; { don't allow any form of extraction of content }
- { ************************
- * Video Media routines
- ************************* }
- videoFlagDontLeanAhead = $00000001;
- { use these five routines at your own peril }
- {
- * VideoMediaResetStatistics()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function VideoMediaResetStatistics(mh: MediaHandler): ComponentResult; external name '_VideoMediaResetStatistics';
- {
- * VideoMediaGetStatistics()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function VideoMediaGetStatistics(mh: MediaHandler): ComponentResult; external name '_VideoMediaGetStatistics';
- {
- * VideoMediaGetStallCount()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function VideoMediaGetStallCount(mh: MediaHandler; var stalls: UInt32): ComponentResult; external name '_VideoMediaGetStallCount';
- {
- * VideoMediaSetCodecParameter()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function VideoMediaSetCodecParameter(mh: MediaHandler; cType: CodecType; parameterID: OSType; parameterChangeSeed: SInt32; dataPtr: UnivPtr; dataSize: SInt32): ComponentResult; external name '_VideoMediaSetCodecParameter';
- {
- * VideoMediaGetCodecParameter()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function VideoMediaGetCodecParameter(mh: MediaHandler; cType: CodecType; parameterID: OSType; outParameterData: Handle): ComponentResult; external name '_VideoMediaGetCodecParameter';
- {************************
- * Text Media routines
- *************************}
- { Return displayFlags for TextProc }
- const
- txtProcDefaultDisplay = 0; { Use the media's default }
- txtProcDontDisplay = 1; { Don't display the text }
- txtProcDoDisplay = 2; { Do display the text }
- {
- * TextMediaSetTextProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaSetTextProc(mh: MediaHandler; TextProc: TextMediaUPP; refcon: SInt32): ComponentResult; external name '_TextMediaSetTextProc';
- {
- * TextMediaAddTextSample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaAddTextSample(mh: MediaHandler; text: Ptr; size: UInt32; fontNumber: SInt16; fontSize: SInt16; txtFace: ByteParameter; var textColor: RGBColor; var backColor: RGBColor; textJustification: SInt16; var textBox: Rect; displayFlags: SInt32; scrollDelay: TimeValue; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult; external name '_TextMediaAddTextSample';
- {
- * TextMediaAddTESample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaAddTESample(mh: MediaHandler; hTE: TEHandle; var backColor: RGBColor; textJustification: SInt16; var textBox: Rect; displayFlags: SInt32; scrollDelay: TimeValue; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult; external name '_TextMediaAddTESample';
- {
- * TextMediaAddHiliteSample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaAddHiliteSample(mh: MediaHandler; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult; external name '_TextMediaAddHiliteSample';
- {
- * TextMediaDrawRaw()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function TextMediaDrawRaw(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; data: UnivPtr; dataSize: SInt32; tdh: TextDescriptionHandle): ComponentResult; external name '_TextMediaDrawRaw';
- {
- * TextMediaSetTextProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function TextMediaSetTextProperty(mh: MediaHandler; atMediaTime: TimeValue; propertyType: SInt32; data: UnivPtr; dataSize: SInt32): ComponentResult; external name '_TextMediaSetTextProperty';
- {
- * TextMediaRawSetup()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function TextMediaRawSetup(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; data: UnivPtr; dataSize: SInt32; tdh: TextDescriptionHandle; sampleDuration: TimeValue): ComponentResult; external name '_TextMediaRawSetup';
- {
- * TextMediaRawIdle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function TextMediaRawIdle(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; sampleTime: TimeValue; flagsIn: SInt32; var flagsOut: SInt32): ComponentResult; external name '_TextMediaRawIdle';
- {
- * TextMediaGetTextProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function TextMediaGetTextProperty(mh: MediaHandler; atMediaTime: TimeValue; propertyType: SInt32; data: UnivPtr; dataSize: SInt32): ComponentResult; external name '_TextMediaGetTextProperty';
- const
- findTextEdgeOK = $01; { Okay to find text at specified sample time }
- findTextCaseSensitive = $02; { Case sensitive search }
- findTextReverseSearch = $04; { Search from sampleTime backwards }
- findTextWrapAround = $08; { Wrap search when beginning or end of movie is hit }
- findTextUseOffset = $10; { Begin search at the given character offset into sample rather than edge }
- {
- * TextMediaFindNextText()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaFindNextText(mh: MediaHandler; text: Ptr; size: SInt32; findFlags: SInt16; startTime: TimeValue; var foundTime: TimeValue; var foundDuration: TimeValue; var offset: SInt32): ComponentResult; external name '_TextMediaFindNextText';
- {
- * TextMediaHiliteTextSample()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaHiliteTextSample(mh: MediaHandler; sampleTime: TimeValue; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor): ComponentResult; external name '_TextMediaHiliteTextSample';
- const
- dropShadowOffsetType = FourCharCode('drpo');
- dropShadowTranslucencyType = FourCharCode('drpt');
- {
- * TextMediaSetTextSampleData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function TextMediaSetTextSampleData(mh: MediaHandler; data: UnivPtr; dataType: OSType): ComponentResult; external name '_TextMediaSetTextSampleData';
- {************************
- * Sprite Media routines
- *************************}
- { flags for sprite hit test routines }
- const
- spriteHitTestBounds = $00000001; { point must only be within sprite's bounding box }
- spriteHitTestImage = $00000002; { point must be within the shape of the sprite's image }
- spriteHitTestInvisibleSprites = $00000004; { invisible sprites may be hit tested }
- spriteHitTestIsClick = $00000008; { for codecs that want mouse events }
- spriteHitTestLocInDisplayCoordinates = $00000010; { set if you want to pass a display coordiate point to SpriteHitTest }
- spriteHitTestTreatAllSpritesAsHitTestable = $00000020; { set if you want to override each sprites hittestable property as true }
- { atom types for sprite media }
- kSpriteAtomType = FourCharCode('sprt');
- kSpriteImagesContainerAtomType = FourCharCode('imct');
- kSpriteImageAtomType = FourCharCode('imag');
- kSpriteImageDataAtomType = FourCharCode('imda');
- kSpriteImageDataRefAtomType = FourCharCode('imre');
- kSpriteImageDataRefTypeAtomType = FourCharCode('imrt');
- kSpriteImageGroupIDAtomType = FourCharCode('imgr');
- kSpriteImageRegistrationAtomType = FourCharCode('imrg');
- kSpriteImageDefaultImageIndexAtomType = FourCharCode('defi');
- kSpriteSharedDataAtomType = FourCharCode('dflt');
- kSpriteNameAtomType = FourCharCode('name');
- kSpriteImageNameAtomType = FourCharCode('name');
- kSpriteUsesImageIDsAtomType = FourCharCode('uses'); { leaf data is an array of QTAtomID's, one per image used }
- kSpriteBehaviorsAtomType = FourCharCode('beha');
- kSpriteImageBehaviorAtomType = FourCharCode('imag');
- kSpriteCursorBehaviorAtomType = FourCharCode('crsr');
- kSpriteStatusStringsBehaviorAtomType = FourCharCode('sstr');
- kSpriteVariablesContainerAtomType = FourCharCode('vars');
- kSpriteStringVariableAtomType = FourCharCode('strv');
- kSpriteFloatingPointVariableAtomType = FourCharCode('flov');
- type
- QTRuntimeSpriteDescStructPtr = ^QTRuntimeSpriteDescStruct;
- QTRuntimeSpriteDescStruct = record
- version: SInt32; { set to zero }
- spriteID: QTAtomID;
- imageIndex: SInt16;
- matrix: MatrixRecord;
- visible: SInt16;
- layer: SInt16;
- graphicsMode: ModifierTrackGraphicsModeRecord;
- actionHandlingSpriteID: QTAtomID;
- end;
- QTRuntimeSpriteDescPtr = ^QTRuntimeSpriteDescStruct;
- {
- when filling in QTSpriteButtonBehaviorStruct values -1 may be used to indicate that
- the state transition does not change the property
- }
- QTSpriteButtonBehaviorStructPtr = ^QTSpriteButtonBehaviorStruct;
- QTSpriteButtonBehaviorStruct = record
- notOverNotPressedStateID: QTAtomID;
- overNotPressedStateID: QTAtomID;
- overPressedStateID: QTAtomID;
- notOverPressedStateID: QTAtomID;
- end;
- QTSpriteButtonBehaviorPtr = ^QTSpriteButtonBehaviorStruct;
- {
- * SpriteMediaSetProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaSetProperty(mh: MediaHandler; spriteIndex: SInt16; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaSetProperty';
- {
- * SpriteMediaGetProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetProperty(mh: MediaHandler; spriteIndex: SInt16; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetProperty';
- {
- * SpriteMediaHitTestSprites()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaHitTestSprites(mh: MediaHandler; flags: SInt32; loc: Point; var spriteHitIndex: SInt16): ComponentResult; external name '_SpriteMediaHitTestSprites';
- {
- * SpriteMediaCountSprites()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaCountSprites(mh: MediaHandler; var numSprites: SInt16): ComponentResult; external name '_SpriteMediaCountSprites';
- {
- * SpriteMediaCountImages()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaCountImages(mh: MediaHandler; var numImages: SInt16): ComponentResult; external name '_SpriteMediaCountImages';
- {
- * SpriteMediaGetIndImageDescription()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetIndImageDescription(mh: MediaHandler; imageIndex: SInt16; imageDescription: ImageDescriptionHandle): ComponentResult; external name '_SpriteMediaGetIndImageDescription';
- {
- * SpriteMediaGetDisplayedSampleNumber()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetDisplayedSampleNumber(mh: MediaHandler; var sampleNum: SInt32): ComponentResult; external name '_SpriteMediaGetDisplayedSampleNumber';
- {
- * SpriteMediaGetSpriteName()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetSpriteName(mh: MediaHandler; spriteID: QTAtomID; var spriteName: Str255): ComponentResult; external name '_SpriteMediaGetSpriteName';
- {
- * SpriteMediaGetImageName()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetImageName(mh: MediaHandler; imageIndex: SInt16; var imageName: Str255): ComponentResult; external name '_SpriteMediaGetImageName';
- {
- * SpriteMediaSetSpriteProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaSetSpriteProperty(mh: MediaHandler; spriteID: QTAtomID; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaSetSpriteProperty';
- {
- * SpriteMediaGetSpriteProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetSpriteProperty(mh: MediaHandler; spriteID: QTAtomID; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetSpriteProperty';
- {
- * SpriteMediaHitTestAllSprites()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaHitTestAllSprites(mh: MediaHandler; flags: SInt32; loc: Point; var spriteHitID: QTAtomID): ComponentResult; external name '_SpriteMediaHitTestAllSprites';
- {
- * SpriteMediaHitTestOneSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaHitTestOneSprite(mh: MediaHandler; spriteID: QTAtomID; flags: SInt32; loc: Point; var wasHit: boolean): ComponentResult; external name '_SpriteMediaHitTestOneSprite';
- {
- * SpriteMediaSpriteIndexToID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaSpriteIndexToID(mh: MediaHandler; spriteIndex: SInt16; var spriteID: QTAtomID): ComponentResult; external name '_SpriteMediaSpriteIndexToID';
- {
- * SpriteMediaSpriteIDToIndex()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaSpriteIDToIndex(mh: MediaHandler; spriteID: QTAtomID; var spriteIndex: SInt16): ComponentResult; external name '_SpriteMediaSpriteIDToIndex';
- {
- * SpriteMediaGetSpriteActionsForQTEvent()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetSpriteActionsForQTEvent(mh: MediaHandler; event: QTEventRecordPtr; spriteID: QTAtomID; var container: QTAtomContainer; var atom: QTAtom): ComponentResult; external name '_SpriteMediaGetSpriteActionsForQTEvent';
- {
- * SpriteMediaSetActionVariable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaSetActionVariable(mh: MediaHandler; variableID: QTAtomID; value: Float32Ptr): ComponentResult; external name '_SpriteMediaSetActionVariable';
- {
- * SpriteMediaGetActionVariable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetActionVariable(mh: MediaHandler; variableID: QTAtomID; var value: Float32): ComponentResult; external name '_SpriteMediaGetActionVariable';
- {
- * SpriteMediaGetIndImageProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function SpriteMediaGetIndImageProperty(mh: MediaHandler; imageIndex: SInt16; imagePropertyType: SInt32; imagePropertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetIndImageProperty';
- {
- * SpriteMediaNewSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function SpriteMediaNewSprite(mh: MediaHandler; newSpriteDesc: QTRuntimeSpriteDescPtr): ComponentResult; external name '_SpriteMediaNewSprite';
- {
- * SpriteMediaDisposeSprite()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function SpriteMediaDisposeSprite(mh: MediaHandler; spriteID: QTAtomID): ComponentResult; external name '_SpriteMediaDisposeSprite';
- {
- * SpriteMediaSetActionVariableToString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function SpriteMediaSetActionVariableToString(mh: MediaHandler; variableID: QTAtomID; theCString: Ptr): ComponentResult; external name '_SpriteMediaSetActionVariableToString';
- {
- * SpriteMediaGetActionVariableAsString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function SpriteMediaGetActionVariableAsString(mh: MediaHandler; variableID: QTAtomID; var theCString: Handle): ComponentResult; external name '_SpriteMediaGetActionVariableAsString';
- {
- * SpriteMediaNewImage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function SpriteMediaNewImage(mh: MediaHandler; dataRef: Handle; dataRefType: OSType; desiredID: QTAtomID): ComponentResult; external name '_SpriteMediaNewImage';
- {
- * SpriteMediaDisposeImage()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function SpriteMediaDisposeImage(mh: MediaHandler; imageIndex: SInt16): ComponentResult; external name '_SpriteMediaDisposeImage';
- {
- * SpriteMediaImageIndexToID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function SpriteMediaImageIndexToID(mh: MediaHandler; imageIndex: SInt16; var imageID: QTAtomID): ComponentResult; external name '_SpriteMediaImageIndexToID';
- {
- * SpriteMediaImageIDToIndex()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function SpriteMediaImageIDToIndex(mh: MediaHandler; imageID: QTAtomID; var imageIndex: SInt16): ComponentResult; external name '_SpriteMediaImageIDToIndex';
- {************************
- * Flash Media routines
- *************************}
- {
- * FlashMediaSetPan()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaSetPan(mh: MediaHandler; xPercent: SInt16; yPercent: SInt16): ComponentResult; external name '_FlashMediaSetPan';
- {
- * FlashMediaSetZoom()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaSetZoom(mh: MediaHandler; factor: SInt16): ComponentResult; external name '_FlashMediaSetZoom';
- {
- * FlashMediaSetZoomRect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaSetZoomRect(mh: MediaHandler; left: SInt32; top: SInt32; right: SInt32; bottom: SInt32): ComponentResult; external name '_FlashMediaSetZoomRect';
- {
- * FlashMediaGetRefConBounds()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaGetRefConBounds(mh: MediaHandler; refCon: SInt32; var left: SInt32; var top: SInt32; var right: SInt32; var bottom: SInt32): ComponentResult; external name '_FlashMediaGetRefConBounds';
- {
- * FlashMediaGetRefConID()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaGetRefConID(mh: MediaHandler; refCon: SInt32; var refConID: SInt32): ComponentResult; external name '_FlashMediaGetRefConID';
- {
- * FlashMediaIDToRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaIDToRefCon(mh: MediaHandler; refConID: SInt32; var refCon: SInt32): ComponentResult; external name '_FlashMediaIDToRefCon';
- {
- * FlashMediaGetDisplayedFrameNumber()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaGetDisplayedFrameNumber(mh: MediaHandler; var flashFrameNumber: SInt32): ComponentResult; external name '_FlashMediaGetDisplayedFrameNumber';
- {
- * FlashMediaFrameNumberToMovieTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaFrameNumberToMovieTime(mh: MediaHandler; flashFrameNumber: SInt32; var movieTime: TimeValue): ComponentResult; external name '_FlashMediaFrameNumberToMovieTime';
- {
- * FlashMediaFrameLabelToMovieTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function FlashMediaFrameLabelToMovieTime(mh: MediaHandler; theLabel: Ptr; var movieTime: TimeValue): ComponentResult; external name '_FlashMediaFrameLabelToMovieTime';
- {
- * FlashMediaGetFlashVariable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function FlashMediaGetFlashVariable(mh: MediaHandler; path: CStringPtr; name: CStringPtr; var theVariableCStringOut: Handle): ComponentResult; external name '_FlashMediaGetFlashVariable';
- {
- * FlashMediaSetFlashVariable()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function FlashMediaSetFlashVariable(mh: MediaHandler; path: CStringPtr; name: CStringPtr; value: CStringPtr; updateFocus: boolean): ComponentResult; external name '_FlashMediaSetFlashVariable';
- {
- * FlashMediaDoButtonActions()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function FlashMediaDoButtonActions(mh: MediaHandler; path: CStringPtr; buttonID: SInt32; transition: SInt32): ComponentResult; external name '_FlashMediaDoButtonActions';
- {
- * FlashMediaGetSupportedSwfVersion()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function FlashMediaGetSupportedSwfVersion(mh: MediaHandler; var swfVersion: UInt8): ComponentResult; external name '_FlashMediaGetSupportedSwfVersion';
- { sample format atoms }
- const
- kMovieMediaDataReference = FourCharCode('mmdr'); { data reference }
- kMovieMediaDefaultDataReferenceID = FourCharCode('ddri'); { atom id }
- kMovieMediaSlaveTime = FourCharCode('slti'); { boolean }
- kMovieMediaSlaveAudio = FourCharCode('slau'); { boolean }
- kMovieMediaSlaveGraphicsMode = FourCharCode('slgr'); { boolean }
- kMovieMediaAutoPlay = FourCharCode('play'); { boolean }
- kMovieMediaLoop = FourCharCode('loop'); { UInt8 (0=no loop, 1=loop, 2=palindrome loop) }
- kMovieMediaUseMIMEType = FourCharCode('mime'); { string indicating the MIME type to use for the dataref (usually not required) }
- kMovieMediaTitle = FourCharCode('titl'); { string of the media's title (tooltips) }
- kMovieMediaAltText = FourCharCode('altt'); { string of alternate text if media isn't loaded }
- kMovieMediaClipBegin = FourCharCode('clpb'); { MovieMediaTimeRecord of start time of embedded media }
- kMovieMediaClipDuration = FourCharCode('clpd'); { MovieMediaTimeRecord of duration of embedded media }
- kMovieMediaRegionAtom = FourCharCode('regi'); { contains subatoms that describe layout }
- kMovieMediaSlaveTrackDuration = FourCharCode('sltr'); { Boolean indicating that media handler should adjust track and media based on actual embedded movie duration }
- kMovieMediaEnableFrameStepping = FourCharCode('enfs'); { boolean. if true stepping on external movie steps frames within embedded movie. }
- kMovieMediaBackgroundColor = FourCharCode('bkcl'); { RGBColor. }
- kMovieMediaPrerollTime = FourCharCode('prer'); { SInt32 indicating preroll time }
- { fit types }
- kMovieMediaFitNone = 0;
- kMovieMediaFitScroll = FourCharCode('scro');
- kMovieMediaFitClipIfNecessary = FourCharCode('hidd');
- kMovieMediaFitFill = FourCharCode('fill');
- kMovieMediaFitMeet = FourCharCode('meet');
- kMovieMediaFitSlice = FourCharCode('slic');
- { sub atoms for region atom }
- kMovieMediaSpatialAdjustment = FourCharCode('fit '); { OSType from kMovieMediaFit* }
- kMovieMediaRectangleAtom = FourCharCode('rect');
- kMovieMediaTop = FourCharCode('top ');
- kMovieMediaLeft = FourCharCode('left');
- kMovieMediaWidth = FourCharCode('wd ');
- kMovieMediaHeight = FourCharCode('ht ');
- { contained movie properties }
- kMoviePropertyDuration = FourCharCode('dura'); { TimeValue * }
- kMoviePropertyTimeScale = FourCharCode('tims'); { TimeValue * }
- kMoviePropertyTime = FourCharCode('timv'); { TimeValue * }
- kMoviePropertyNaturalBounds = FourCharCode('natb'); { Rect * }
- kMoviePropertyMatrix = FourCharCode('mtrx'); { Matrix * }
- kMoviePropertyTrackList = FourCharCode('tlst'); { long *** }
- kTrackPropertyMediaType = FourCharCode('mtyp'); { OSType }
- kTrackPropertyInstantiation = FourCharCode('inst'); { MovieMediaInstantiationInfoRecord }
- type
- MovieMediaTimeRecordPtr = ^MovieMediaTimeRecord;
- MovieMediaTimeRecord = record
- time: wide;
- scale: TimeScale;
- end;
- MovieMediaInstantiationInfoRecordPtr = ^MovieMediaInstantiationInfoRecord;
- MovieMediaInstantiationInfoRecord = record
- immediately: boolean;
- pad: boolean;
- bitRate: SInt32;
- end;
- { ************************
- * Movie Media routines
- ************************* }
- {
- * MovieMediaGetChildDoMCActionCallback()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaGetChildDoMCActionCallback(mh: MediaHandler; var doMCActionCallbackProc: DoMCActionUPP; var refcon: SInt32): ComponentResult; external name '_MovieMediaGetChildDoMCActionCallback';
- {
- * MovieMediaGetDoMCActionCallback()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaGetDoMCActionCallback(mh: MediaHandler; var doMCActionCallbackProc: DoMCActionUPP; var refcon: SInt32): ComponentResult; external name '_MovieMediaGetDoMCActionCallback';
- {
- * MovieMediaGetCurrentMovieProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaGetCurrentMovieProperty(mh: MediaHandler; whichProperty: OSType; value: UnivPtr): ComponentResult; external name '_MovieMediaGetCurrentMovieProperty';
- {
- * MovieMediaGetCurrentTrackProperty()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaGetCurrentTrackProperty(mh: MediaHandler; trackID: SInt32; whichProperty: OSType; value: UnivPtr): ComponentResult; external name '_MovieMediaGetCurrentTrackProperty';
- {
- * MovieMediaGetChildMovieDataReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaGetChildMovieDataReference(mh: MediaHandler; dataRefID: QTAtomID; dataRefIndex: SInt16; var dataRefType: OSType; var dataRef: Handle; var dataRefIDOut: QTAtomID; var dataRefIndexOut: SInt16): ComponentResult; external name '_MovieMediaGetChildMovieDataReference';
- {
- * MovieMediaSetChildMovieDataReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaSetChildMovieDataReference(mh: MediaHandler; dataRefID: QTAtomID; dataRefType: OSType; dataRef: Handle): ComponentResult; external name '_MovieMediaSetChildMovieDataReference';
- {
- * MovieMediaLoadChildMovieFromDataReference()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function MovieMediaLoadChildMovieFromDataReference(mh: MediaHandler; dataRefID: QTAtomID): ComponentResult; external name '_MovieMediaLoadChildMovieFromDataReference';
- {************************
- * 3D Media routines
- *************************}
- {
- * Media3DGetNamedObjectList()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function Media3DGetNamedObjectList(mh: MediaHandler; var objectList: QTAtomContainer): ComponentResult; external name '_Media3DGetNamedObjectList';
- {
- * Media3DGetRendererList()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function Media3DGetRendererList(mh: MediaHandler; var rendererList: QTAtomContainer): ComponentResult; external name '_Media3DGetRendererList';
- {
- * Media3DGetCurrentGroup()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DGetCurrentGroup(mh: MediaHandler; group: UnivPtr): ComponentResult; external name '_Media3DGetCurrentGroup';
- {
- * Media3DTranslateNamedObjectTo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DTranslateNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; x: Fixed; y: Fixed; z: Fixed): ComponentResult; external name '_Media3DTranslateNamedObjectTo';
- {
- * Media3DScaleNamedObjectTo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DScaleNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; xScale: Fixed; yScale: Fixed; zScale: Fixed): ComponentResult; external name '_Media3DScaleNamedObjectTo';
- {
- * Media3DRotateNamedObjectTo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DRotateNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; xDegrees: Fixed; yDegrees: Fixed; zDegrees: Fixed): ComponentResult; external name '_Media3DRotateNamedObjectTo';
- {
- * Media3DSetCameraData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DSetCameraData(mh: MediaHandler; cameraData: UnivPtr): ComponentResult; external name '_Media3DSetCameraData';
- {
- * Media3DGetCameraData()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DGetCameraData(mh: MediaHandler; cameraData: UnivPtr): ComponentResult; external name '_Media3DGetCameraData';
- {
- * Media3DSetCameraAngleAspect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DSetCameraAngleAspect(mh: MediaHandler; fov: QTFloatSingle; aspectRatioXToY: QTFloatSingle): ComponentResult; external name '_Media3DSetCameraAngleAspect';
- {
- * Media3DGetCameraAngleAspect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DGetCameraAngleAspect(mh: MediaHandler; var fov: QTFloatSingle; var aspectRatioXToY: QTFloatSingle): ComponentResult; external name '_Media3DGetCameraAngleAspect';
- {
- * Media3DSetCameraRange()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DSetCameraRange(mh: MediaHandler; tQ3CameraRange: UnivPtr): ComponentResult; external name '_Media3DSetCameraRange';
- {
- * Media3DGetCameraRange()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function Media3DGetCameraRange(mh: MediaHandler; tQ3CameraRange: UnivPtr): ComponentResult; external name '_Media3DGetCameraRange';
- {
- * Media3DGetViewObject()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.1 and later
- * CarbonLib: in CarbonLib 1.1 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.1 and later
- }
- function Media3DGetViewObject(mh: MediaHandler; tq3viewObject: UnivPtr): ComponentResult; external name '_Media3DGetViewObject';
- {***************************************
- * *
- * M O V I E C O N T R O L L E R *
- * *
- ***************************************}
- const
- MovieControllerComponentType = FourCharCode('play');
- kMovieControllerQTVRFlag = $01;
- kMovieControllerDontDisplayToUser = $02;
- type
- MovieController = ComponentInstance;
- MovieControllerPtr = ^MovieController;
- const
- mcActionIdle = 1; { no param }
- mcActionDraw = 2; { param is WindowRef }
- mcActionActivate = 3; { no param }
- mcActionDeactivate = 4; { no param }
- mcActionMouseDown = 5; { param is pointer to EventRecord }
- mcActionKey = 6; { param is pointer to EventRecord }
- mcActionPlay = 8; { param is Fixed, play rate }
- mcActionGoToTime = 12; { param is TimeRecord }
- mcActionSetVolume = 14; { param is a short }
- mcActionGetVolume = 15; { param is pointer to a short }
- mcActionStep = 18; { param is number of steps (short) }
- mcActionSetLooping = 21; { param is Boolean }
- mcActionGetLooping = 22; { param is pointer to a Boolean }
- mcActionSetLoopIsPalindrome = 23; { param is Boolean }
- mcActionGetLoopIsPalindrome = 24; { param is pointer to a Boolean }
- mcActionSetGrowBoxBounds = 25; { param is a Rect }
- mcActionControllerSizeChanged = 26; { no param }
- mcActionSetSelectionBegin = 29; { param is TimeRecord }
- mcActionSetSelectionDuration = 30; { param is TimeRecord, action only taken on set-duration }
- mcActionSetKeysEnabled = 32; { param is Boolean }
- mcActionGetKeysEnabled = 33; { param is pointer to Boolean }
- mcActionSetPlaySelection = 34; { param is Boolean }
- mcActionGetPlaySelection = 35; { param is pointer to Boolean }
- mcActionSetUseBadge = 36; { param is Boolean }
- mcActionGetUseBadge = 37; { param is pointer to Boolean }
- mcActionSetFlags = 38; { param is long of flags }
- mcActionGetFlags = 39; { param is pointer to a long of flags }
- mcActionSetPlayEveryFrame = 40; { param is Boolean }
- mcActionGetPlayEveryFrame = 41; { param is pointer to Boolean }
- mcActionGetPlayRate = 42; { param is pointer to Fixed }
- mcActionShowBalloon = 43; { param is a pointer to a boolean. set to false to stop balloon }
- mcActionBadgeClick = 44; { param is pointer to Boolean. set to false to ignore click }
- mcActionMovieClick = 45; { param is pointer to event record. change "what" to nullEvt to kill click }
- mcActionSuspend = 46; { no param }
- mcActionResume = 47; { no param }
- mcActionSetControllerKeysEnabled = 48; { param is Boolean }
- mcActionGetTimeSliderRect = 49; { param is pointer to rect }
- mcActionMovieEdited = 50; { no param }
- mcActionGetDragEnabled = 51; { param is pointer to Boolean }
- mcActionSetDragEnabled = 52; { param is Boolean }
- mcActionGetSelectionBegin = 53; { param is TimeRecord }
- mcActionGetSelectionDuration = 54; { param is TimeRecord }
- mcActionPrerollAndPlay = 55; { param is Fixed, play rate }
- mcActionGetCursorSettingEnabled = 56; { param is pointer to Boolean }
- mcActionSetCursorSettingEnabled = 57; { param is Boolean }
- mcActionSetColorTable = 58; { param is CTabHandle }
- mcActionLinkToURL = 59; { param is Handle to URL }
- mcActionCustomButtonClick = 60; { param is pointer to EventRecord }
- mcActionForceTimeTableUpdate = 61; { no param }
- mcActionSetControllerTimeLimits = 62; { param is pointer to 2 time values min/max. do no send this message to controller. used internally only. }
- mcActionExecuteAllActionsForQTEvent = 63; { param is ResolvedQTEventSpecPtr }
- mcActionExecuteOneActionForQTEvent = 64; { param is ResolvedQTEventSpecPtr }
- mcActionAdjustCursor = 65; { param is pointer to EventRecord (WindowRef is in message parameter) }
- mcActionUseTrackForTimeTable = 66; { param is pointer to (long trackID; Boolean useIt). do not send this message to controller. }
- mcActionClickAndHoldPoint = 67; { param is point (local coordinates). return true if point has click & hold action (e.g., VR object movie autorotate spot) }
- mcActionShowMessageString = 68; { param is a StringPtr }
- mcActionShowStatusString = 69; { param is a QTStatusStringPtr }
- mcActionGetExternalMovie = 70; { param is a QTGetExternalMoviePtr }
- mcActionGetChapterTime = 71; { param is a QTGetChapterTimePtr }
- mcActionPerformActionList = 72; { param is a QTAtomSpecPtr }
- mcActionEvaluateExpression = 73; { param is a QTEvaluateExpressionPtr }
- mcActionFetchParameterAs = 74; { param is a QTFetchParameterAsPtr }
- mcActionGetCursorByID = 75; { param is a QTGetCursorByIDPtr }
- mcActionGetNextURL = 76; { param is a Handle to URL }
- mcActionMovieChanged = 77;
- mcActionDoScript = 78; { param is QTDoScriptPtr }
- mcActionRestartAtTime = 79; { param is QTResartAtTimePtr }
- mcActionGetIndChapter = 80; { param is QTChapterInfoPtr }
- mcActionLinkToURLExtended = 81; { param is QTAtomContainer as used by QTParseHREF }
- mcActionSetVolumeStep = 82; { param is short containing amount to step volume via arrow keys - default = 64 }
- mcActionAutoPlay = 83; { param is Fixed, play rate }
- mcActionPauseToBuffer = 84; { param is Fixed, play rate on restart }
- mcActionAppMessageReceived = 85; { param is a long, application message }
- mcActionEvaluateExpressionWithType = 89; { param is a QTEvaluateExpressionWithTypePtr }
- mcActionGetMovieName = 90; { param is a p String Handle }
- mcActionGetMovieID = 91; { param is pointer to long }
- mcActionGetMovieActive = 92; { param is pointer to Boolean }
- type
- mcAction = SInt16;
- const
- mcFlagSuppressMovieFrame = $01;
- mcFlagSuppressStepButtons = $02;
- mcFlagSuppressSpeakerButton = $04;
- mcFlagsUseWindowPalette = $08;
- mcFlagsDontInvalidate = $10;
- mcFlagsUseCustomButton = $20;
- mcPositionDontInvalidate = $20;
- type
- mcFlags = UInt32;
- const
- kMCIEEnabledButtonPicture = 1;
- kMCIEDisabledButtonPicture = 2;
- kMCIEDepressedButtonPicture = 3;
- kMCIEEnabledSizeBoxPicture = 4;
- kMCIEDisabledSizeBoxPicture = 5;
- kMCIEEnabledUnavailableButtonPicture = 6;
- kMCIEDisabledUnavailableButtonPicture = 7;
- kMCIESoundSlider = 128;
- kMCIESoundThumb = 129;
- kMCIEColorTable = 256;
- kMCIEIsFlatAppearance = 257;
- kMCIEDoButtonIconsDropOnDepress = 258;
- type
- MCInterfaceElement = UInt32;
- {$ifc TYPED_FUNCTION_POINTERS}
- MCActionFilterProcPtr = function(mc: MovieController; var action: SInt16; params: UnivPtr): boolean;
- {$elsec}
- MCActionFilterProcPtr = ProcPtr;
- {$endc}
- {$ifc TYPED_FUNCTION_POINTERS}
- MCActionFilterWithRefConProcPtr = function(mc: MovieController; action: SInt16; params: UnivPtr; refCon: SInt32): boolean;
- {$elsec}
- MCActionFilterWithRefConProcPtr = ProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MCActionFilterUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MCActionFilterUPP = UniversalProcPtr;
- {$endc}
- {$ifc OPAQUE_UPP_TYPES}
- MCActionFilterWithRefConUPP = ^SInt32; { an opaque UPP }
- {$elsec}
- MCActionFilterWithRefConUPP = UniversalProcPtr;
- {$endc}
- {
- menu related stuff
- }
- const
- mcInfoUndoAvailable = $01;
- mcInfoCutAvailable = $02;
- mcInfoCopyAvailable = $04;
- mcInfoPasteAvailable = $08;
- mcInfoClearAvailable = $10;
- mcInfoHasSound = $20;
- mcInfoIsPlaying = $40;
- mcInfoIsLooping = $80;
- mcInfoIsInPalindrome = $0100;
- mcInfoEditingEnabled = $0200;
- mcInfoMovieIsInteractive = $0400;
- { menu item codes }
- mcMenuUndo = 1;
- mcMenuCut = 3;
- mcMenuCopy = 4;
- mcMenuPaste = 5;
- mcMenuClear = 6;
- { messages to the application via mcActionAppMessageReceived }
- kQTAppMessageSoftwareChanged = 1; { notification to app that installed QuickTime software has been updated }
- kQTAppMessageWindowCloseRequested = 3; { request for app to close window containing movie controller }
- kQTAppMessageExitFullScreenRequested = 4; { request for app to turn off full screen mode if active }
- kQTAppMessageDisplayChannels = 5; { request for app to display the channel UI }
- kQTAppMessageEnterFullScreenRequested = 6; { request for app to turn on full screen mode }
- { structures used as mcActionFilterProc params }
- type
- QTStatusStringRecordPtr = ^QTStatusStringRecord;
- QTStatusStringRecord = record
- stringTypeFlags: SInt32;
- statusString: CStringPtr;
- end;
- QTStatusStringPtr = ^QTStatusStringRecord;
- QTGetExternalMovieRecordPtr = ^QTGetExternalMovieRecord;
- QTGetExternalMovieRecord = record
- targetType: SInt32; { set to kTargetMovieName or kTargetMovieID }
- movieName: StringPtr;
- movieID: SInt32;
- theMovie: MoviePtr;
- theController: MovieControllerPtr;
- end;
- QTGetExternalMoviePtr = ^QTGetExternalMovieRecord;
- QTGetChapterTimeRecordPtr = ^QTGetChapterTimeRecord;
- QTGetChapterTimeRecord = record
- chapterName: StringPtr;
- chapterTime: TimeRecord;
- end;
- QTGetChapterTimePtr = ^QTGetChapterTimeRecord;
- QTChapterInfoRecordPtr = ^QTChapterInfoRecord;
- QTChapterInfoRecord = record
- index: SInt32; { first chapter has index of 1 }
- time: TimeValue; { -1 if no more chapters available }
- name: Str255;
- end;
- QTChapterInfoPtr = ^QTChapterInfoRecord;
- QTEvaluateExpressionRecordPtr = ^QTEvaluateExpressionRecord;
- QTEvaluateExpressionRecord = record
- expressionSpec: QTAtomSpec;
- expressionResult: Float32Ptr;
- end;
- QTEvaluateExpressionPtr = ^QTEvaluateExpressionRecord;
- QTEvaluateExpressionWithTypeRecordPtr = ^QTEvaluateExpressionWithTypeRecord;
- QTEvaluateExpressionWithTypeRecord = record
- recordSize: SInt32; { Size of structure (fill in at allocation) }
- expressionSpec: QTAtomSpec;
- expressionResult: Float32Ptr;
- fetchAsType: SInt32;
- nonNumericResult: Handle;
- { Current size is 24 }
- end;
- QTEvaluateExpressionWithTypePtr = ^QTEvaluateExpressionWithTypeRecord;
- QTFetchParameterAsRecordPtr = ^QTFetchParameterAsRecord;
- QTFetchParameterAsRecord = record
- paramListSpec: QTAtomSpec;
- paramIndex: SInt32;
- paramType: SInt32;
- allowedFlags: SInt32;
- min: Ptr;
- max: Ptr;
- currentValue: Ptr;
- newValue: Ptr;
- isUnsignedValue: boolean;
- end;
- QTFetchParameterAsPtr = ^QTFetchParameterAsRecord;
- QTGetCursorByIDRecordPtr = ^QTGetCursorByIDRecord;
- QTGetCursorByIDRecord = record
- cursorID: SInt16;
- colorCursorData: Handle;
- reserved1: SInt32;
- end;
- QTGetCursorByIDPtr = ^QTGetCursorByIDRecord;
- QTDoScriptRecordPtr = ^QTDoScriptRecord;
- QTDoScriptRecord = record
- scriptTypeFlags: SInt32;
- command: CStringPtr;
- arguments: CStringPtr;
- end;
- QTDoScriptPtr = ^QTDoScriptRecord;
- QTRestartAtTimeRecordPtr = ^QTRestartAtTimeRecord;
- QTRestartAtTimeRecord = record
- startTime: TimeValue; { time scale is the movie timescale }
- rate: Fixed; { if rate is zero, the movie's current rate is maintained }
- end;
- QTRestartAtTimePtr = ^QTRestartAtTimeRecord;
- { values for paramType field of QTFetchParameterAsRecord }
- const
- kFetchAsBooleanPtr = 1;
- kFetchAsShortPtr = 2;
- kFetchAsLongPtr = 3;
- kFetchAsMatrixRecordPtr = 4;
- kFetchAsModifierTrackGraphicsModeRecord = 5;
- kFetchAsHandle = 6;
- kFetchAsStr255 = 7;
- kFetchAsFloatPtr = 8;
- kFetchAsPointPtr = 9;
- kFetchAsNewAtomContainer = 10;
- kFetchAsQTEventRecordPtr = 11;
- kFetchAsFixedPtr = 12;
- kFetchAsSetControllerValuePtr = 13;
- kFetchAsRgnHandle = 14; { flipped to native }
- kFetchAsComponentDescriptionPtr = 15;
- kFetchAsCString = 16;
- kQTCursorOpenHand = -19183;
- kQTCursorClosedHand = -19182;
- kQTCursorPointingHand = -19181;
- kQTCursorRightArrow = -19180;
- kQTCursorLeftArrow = -19179;
- kQTCursorDownArrow = -19178;
- kQTCursorUpArrow = -19177;
- kQTCursorIBeam = -19176;
- { target management }
- {
- * MCSetMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetMovie(mc: MovieController; theMovie: Movie; movieWindow: WindowRef; where: Point): ComponentResult; external name '_MCSetMovie';
- {
- * MCGetIndMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetIndMovie(mc: MovieController; index: SInt16): Movie; external name '_MCGetIndMovie';
- {
- * MCRemoveAllMovies()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCRemoveAllMovies(mc: MovieController): ComponentResult; external name '_MCRemoveAllMovies';
- {
- * MCRemoveAMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCRemoveAMovie(mc: MovieController; m: Movie): ComponentResult; external name '_MCRemoveAMovie';
- {
- * MCRemoveMovie()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCRemoveMovie(mc: MovieController): ComponentResult; external name '_MCRemoveMovie';
- { event handling etc. }
- {
- * MCIsPlayerEvent()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCIsPlayerEvent(mc: MovieController; const (*var*) e: EventRecord): ComponentResult; external name '_MCIsPlayerEvent';
- { obsolete. use MCSetActionFilterWithRefCon instead. }
- {
- * MCSetActionFilter()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetActionFilter(mc: MovieController; blob: MCActionFilterUPP): ComponentResult; external name '_MCSetActionFilter';
- {
- proc is of the form:
- Boolean userPlayerFilter(MovieController mc, short *action, void *params) =
- proc returns TRUE if it handles the action, FALSE if not
- action is passed as a var so that it could be changed by filter
- this is consistent with the current dialog manager stuff
- params is any potential parameters that go with the action
- such as set playback rate to xxx.
- }
- {
- * MCDoAction()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCDoAction(mc: MovieController; action: SInt16; params: UnivPtr): ComponentResult; external name '_MCDoAction';
- { state type things }
- {
- * MCSetControllerAttached()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetControllerAttached(mc: MovieController; attach: boolean): ComponentResult; external name '_MCSetControllerAttached';
- {
- * MCIsControllerAttached()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCIsControllerAttached(mc: MovieController): ComponentResult; external name '_MCIsControllerAttached';
- {
- * MCSetControllerPort()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetControllerPort(mc: MovieController; gp: CGrafPtr): ComponentResult; external name '_MCSetControllerPort';
- {
- * MCGetControllerPort()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetControllerPort(mc: MovieController): CGrafPtr; external name '_MCGetControllerPort';
- {
- * MCSetVisible()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetVisible(mc: MovieController; visible: boolean): ComponentResult; external name '_MCSetVisible';
- {
- * MCGetVisible()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetVisible(mc: MovieController): ComponentResult; external name '_MCGetVisible';
- {
- * MCGetControllerBoundsRect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetControllerBoundsRect(mc: MovieController; var bounds: Rect): ComponentResult; external name '_MCGetControllerBoundsRect';
- {
- * MCSetControllerBoundsRect()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetControllerBoundsRect(mc: MovieController; const (*var*) bounds: Rect): ComponentResult; external name '_MCSetControllerBoundsRect';
- {
- * MCGetControllerBoundsRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetControllerBoundsRgn(mc: MovieController): RgnHandle; external name '_MCGetControllerBoundsRgn';
- {
- * MCGetWindowRgn()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetWindowRgn(mc: MovieController; w: WindowRef): RgnHandle; external name '_MCGetWindowRgn';
- { other stuff }
- {
- * MCMovieChanged()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCMovieChanged(mc: MovieController; m: Movie): ComponentResult; external name '_MCMovieChanged';
- {
- called when the app has changed thing about the movie (like bounding rect) or rate. So that we
- can update our graphical (and internal) state accordingly.
- }
- {
- * MCSetDuration()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetDuration(mc: MovieController; duration: TimeValue): ComponentResult; external name '_MCSetDuration';
- {
- duration to use for time slider -- will be reset next time MCMovieChanged is called
- or MCSetMovie is called
- }
- {
- * MCGetCurrentTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetCurrentTime(mc: MovieController; var scale: TimeScale): TimeValue; external name '_MCGetCurrentTime';
- {
- returns the time value and the time scale it is on. if there are no movies, the
- time scale is passed back as 0. scale is an optional parameter
- }
- {
- * MCNewAttachedController()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCNewAttachedController(mc: MovieController; theMovie: Movie; w: WindowRef; where: Point): ComponentResult; external name '_MCNewAttachedController';
- {
- makes theMovie the only movie attached to the controller. makes the controller visible.
- the window and where parameters are passed a long to MCSetMovie and behave as
- described there
- }
- {
- * MCDraw()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCDraw(mc: MovieController; w: WindowRef): ComponentResult; external name '_MCDraw';
- {
- * MCActivate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCActivate(mc: MovieController; w: WindowRef; activate: boolean): ComponentResult; external name '_MCActivate';
- {
- * MCIdle()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCIdle(mc: MovieController): ComponentResult; external name '_MCIdle';
- {
- * MCKey()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCKey(mc: MovieController; key: SInt8; modifiers: SInt32): ComponentResult; external name '_MCKey';
- {
- * MCClick()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCClick(mc: MovieController; w: WindowRef; where: Point; when: SInt32; modifiers: SInt32): ComponentResult; external name '_MCClick';
- {
- calls for editing
- }
- {
- * MCEnableEditing()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCEnableEditing(mc: MovieController; enabled: boolean): ComponentResult; external name '_MCEnableEditing';
- {
- * MCIsEditingEnabled()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCIsEditingEnabled(mc: MovieController): SInt32; external name '_MCIsEditingEnabled';
- {
- * MCCopy()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCCopy(mc: MovieController): Movie; external name '_MCCopy';
- {
- * MCCut()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCCut(mc: MovieController): Movie; external name '_MCCut';
- {
- * MCPaste()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCPaste(mc: MovieController; srcMovie: Movie): ComponentResult; external name '_MCPaste';
- {
- * MCClear()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCClear(mc: MovieController): ComponentResult; external name '_MCClear';
- {
- * MCUndo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCUndo(mc: MovieController): ComponentResult; external name '_MCUndo';
- {
- * somewhat special stuff
- }
- {
- * MCPositionController()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCPositionController(mc: MovieController; const (*var*) movieRect: Rect; const (*var*) controllerRect: Rect; someFlags: SInt32): ComponentResult; external name '_MCPositionController';
- {
- * MCGetControllerInfo()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetControllerInfo(mc: MovieController; var someFlags: SInt32): ComponentResult; external name '_MCGetControllerInfo';
- {
- * MCSetClip()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetClip(mc: MovieController; theClip: RgnHandle; movieClip: RgnHandle): ComponentResult; external name '_MCSetClip';
- {
- * MCGetClip()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetClip(mc: MovieController; var theClip: RgnHandle; var movieClip: RgnHandle): ComponentResult; external name '_MCGetClip';
- {
- * MCDrawBadge()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCDrawBadge(mc: MovieController; movieRgn: RgnHandle; var badgeRgn: RgnHandle): ComponentResult; external name '_MCDrawBadge';
- {
- * MCSetUpEditMenu()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetUpEditMenu(mc: MovieController; modifiers: SInt32; mh: MenuRef): ComponentResult; external name '_MCSetUpEditMenu';
- {
- * MCGetMenuString()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetMenuString(mc: MovieController; modifiers: SInt32; item: SInt16; var aString: Str255): ComponentResult; external name '_MCGetMenuString';
- {
- * MCSetActionFilterWithRefCon()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCSetActionFilterWithRefCon(mc: MovieController; blob: MCActionFilterWithRefConUPP; refCon: SInt32): ComponentResult; external name '_MCSetActionFilterWithRefCon';
- {
- * MCPtInController()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCPtInController(mc: MovieController; thePt: Point; var inController: boolean): ComponentResult; external name '_MCPtInController';
- {
- * MCInvalidate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCInvalidate(mc: MovieController; w: WindowRef; invalidRgn: RgnHandle): ComponentResult; external name '_MCInvalidate';
- {
- * MCAdjustCursor()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCAdjustCursor(mc: MovieController; w: WindowRef; where: Point; modifiers: SInt32): ComponentResult; external name '_MCAdjustCursor';
- {
- * MCGetInterfaceElement()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MCGetInterfaceElement(mc: MovieController; whichElement: MCInterfaceElement; element: UnivPtr): ComponentResult; external name '_MCGetInterfaceElement';
- {
- * MCGetDoActionsProc()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 4.0 and later
- * CarbonLib: in CarbonLib 1.0.2 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 4.0 and later
- }
- function MCGetDoActionsProc(mc: MovieController; var doMCActionProc: DoMCActionUPP; var doMCActionRefCon: SInt32): ComponentResult; external name '_MCGetDoActionsProc';
- {
- * MCAddMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function MCAddMovieSegment(mc: MovieController; srcMovie: Movie; scaled: boolean): ComponentResult; external name '_MCAddMovieSegment';
- {
- * MCTrimMovieSegment()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 5.0 and later
- * CarbonLib: in CarbonLib 1.3 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 5.0 and later
- }
- function MCTrimMovieSegment(mc: MovieController): ComponentResult; external name '_MCTrimMovieSegment';
- {
- * MCSetIdleManager()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function MCSetIdleManager(mc: MovieController; im: IdleManager): ComponentResult; external name '_MCSetIdleManager';
- { Called (but not implemented) by controllers that derive from the standard movie controller.
- All controllers except standard movie controller must delegate this call. }
- const
- kControllerUnderstandsIdleManagers = $01;
- {
- * MCSetControllerCapabilities()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 6.0 and later
- * CarbonLib: in CarbonLib 1.6 and later
- * Mac OS X: in version 10.2 and later
- * Windows: in qtmlClient.lib 6.0 and later
- }
- function MCSetControllerCapabilities(mc: MovieController; flags: SInt32; flagsMask: SInt32): ComponentResult; external name '_MCSetControllerCapabilities';
- {***************************************
- * *
- * T I M E B A S E *
- * *
- ***************************************}
- {
- * NewTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewTimeBase: TimeBase; external name '_NewTimeBase';
- {
- * DisposeTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeTimeBase(tb: TimeBase); external name '_DisposeTimeBase';
- {
- * GetTimeBaseTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseTime';
- {
- * SetTimeBaseTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseTime';
- {
- * SetTimeBaseValue()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseValue(tb: TimeBase; t: TimeValue; s: TimeScale); external name '_SetTimeBaseValue';
- {
- * GetTimeBaseRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseRate(tb: TimeBase): Fixed; external name '_GetTimeBaseRate';
- {
- * SetTimeBaseRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseRate(tb: TimeBase; r: Fixed); external name '_SetTimeBaseRate';
- {
- * GetTimeBaseStartTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseStartTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseStartTime';
- {
- * SetTimeBaseStartTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseStartTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseStartTime';
- {
- * GetTimeBaseStopTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseStopTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseStopTime';
- {
- * SetTimeBaseStopTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseStopTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseStopTime';
- {
- * GetTimeBaseFlags()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseFlags(tb: TimeBase): SInt32; external name '_GetTimeBaseFlags';
- {
- * SetTimeBaseFlags()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseFlags(tb: TimeBase; timeBaseFlags: SInt32); external name '_SetTimeBaseFlags';
- {
- * SetTimeBaseMasterTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseMasterTimeBase(slave: TimeBase; master: TimeBase; const (*var*) slaveZero: TimeRecord); external name '_SetTimeBaseMasterTimeBase';
- {
- * GetTimeBaseMasterTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseMasterTimeBase(tb: TimeBase): TimeBase; external name '_GetTimeBaseMasterTimeBase';
- {
- * SetTimeBaseMasterClock()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseMasterClock(slave: TimeBase; clockMeister: Component; const (*var*) slaveZero: TimeRecord); external name '_SetTimeBaseMasterClock';
- {
- * GetTimeBaseMasterClock()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseMasterClock(tb: TimeBase): ComponentInstance; external name '_GetTimeBaseMasterClock';
- {
- * ConvertTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ConvertTime(var theTime: TimeRecord; newBase: TimeBase); external name '_ConvertTime';
- {
- * ConvertTimeScale()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ConvertTimeScale(var theTime: TimeRecord; newScale: TimeScale); external name '_ConvertTimeScale';
- {
- * AddTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure AddTime(var dst: TimeRecord; const (*var*) src: TimeRecord); external name '_AddTime';
- {
- * SubtractTime()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SubtractTime(var dst: TimeRecord; const (*var*) src: TimeRecord); external name '_SubtractTime';
- {
- * GetTimeBaseStatus()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseStatus(tb: TimeBase; var unpinnedTime: TimeRecord): SInt32; external name '_GetTimeBaseStatus';
- {
- * SetTimeBaseZero()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure SetTimeBaseZero(tb: TimeBase; var zero: TimeRecord); external name '_SetTimeBaseZero';
- {
- * GetTimeBaseEffectiveRate()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetTimeBaseEffectiveRate(tb: TimeBase): Fixed; external name '_GetTimeBaseEffectiveRate';
- {***************************************
- * *
- * C A L L B A C K *
- * *
- ***************************************}
- {
- * NewCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function NewCallBack(tb: TimeBase; cbType: SInt16): QTCallBack; external name '_NewCallBack';
- {
- * DisposeCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure DisposeCallBack(cb: QTCallBack); external name '_DisposeCallBack';
- {
- * GetCallBackType()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetCallBackType(cb: QTCallBack): SInt16; external name '_GetCallBackType';
- {
- * GetCallBackTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetCallBackTimeBase(cb: QTCallBack): TimeBase; external name '_GetCallBackTimeBase';
- {
- * CallMeWhen()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function CallMeWhen(cb: QTCallBack; callBackProc: QTCallBackUPP; refCon: SInt32; param1: SInt32; param2: SInt32; param3: SInt32): OSErr; external name '_CallMeWhen';
- {
- * CancelCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure CancelCallBack(cb: QTCallBack); external name '_CancelCallBack';
- {***************************************
- * *
- * C L O C K C A L L B A C K *
- * S U P P O R T *
- * *
- ***************************************}
- {
- * AddCallBackToTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function AddCallBackToTimeBase(cb: QTCallBack): OSErr; external name '_AddCallBackToTimeBase';
- {
- * RemoveCallBackFromTimeBase()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function RemoveCallBackFromTimeBase(cb: QTCallBack): OSErr; external name '_RemoveCallBackFromTimeBase';
- {
- * GetFirstCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetFirstCallBack(tb: TimeBase): QTCallBack; external name '_GetFirstCallBack';
- {
- * GetNextCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function GetNextCallBack(cb: QTCallBack): QTCallBack; external name '_GetNextCallBack';
- {
- * ExecuteCallBack()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 2.5 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- procedure ExecuteCallBack(cb: QTCallBack); external name '_ExecuteCallBack';
- {
- * MusicMediaGetIndexedTunePlayer()
- *
- * Availability:
- * Non-Carbon CFM: in QuickTimeLib 3.0 and later
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- * Windows: in qtmlClient.lib 3.0 and later
- }
- function MusicMediaGetIndexedTunePlayer(ti: ComponentInstance; sampleDescIndex: SInt32; var tp: ComponentInstance): ComponentResult; external name '_MusicMediaGetIndexedTunePlayer';
- { UPP call backs }
- const
- uppMCActionFilterProcInfo = $00000FD0;
- uppMCActionFilterWithRefConProcInfo = $00003ED0;
- {
- * NewMCActionFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMCActionFilterUPP(userRoutine: MCActionFilterProcPtr): MCActionFilterUPP; external name '_NewMCActionFilterUPP'; { old name was NewMCActionFilterProc }
- {
- * NewMCActionFilterWithRefConUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function NewMCActionFilterWithRefConUPP(userRoutine: MCActionFilterWithRefConProcPtr): MCActionFilterWithRefConUPP; external name '_NewMCActionFilterWithRefConUPP'; { old name was NewMCActionFilterWithRefConProc }
- {
- * DisposeMCActionFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMCActionFilterUPP(userUPP: MCActionFilterUPP); external name '_DisposeMCActionFilterUPP';
- {
- * DisposeMCActionFilterWithRefConUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- procedure DisposeMCActionFilterWithRefConUPP(userUPP: MCActionFilterWithRefConUPP); external name '_DisposeMCActionFilterWithRefConUPP';
- {
- * InvokeMCActionFilterUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMCActionFilterUPP(mc: MovieController; var action: SInt16; params: UnivPtr; userRoutine: MCActionFilterUPP): boolean; external name '_InvokeMCActionFilterUPP'; { old name was CallMCActionFilterProc }
- {
- * InvokeMCActionFilterWithRefConUPP()
- *
- * Availability:
- * Non-Carbon CFM: available as macro/inline
- * CarbonLib: in CarbonLib 1.0 and later
- * Mac OS X: in version 10.0 and later
- }
- function InvokeMCActionFilterWithRefConUPP(mc: MovieController; action: SInt16; params: UnivPtr; refCon: SInt32; userRoutine: MCActionFilterWithRefConUPP): boolean; external name '_InvokeMCActionFilterWithRefConUPP'; { old name was CallMCActionFilterWithRefConProc }
- {$ALIGN MAC68K}
- end.
|