2
0

Movies.pas 363 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234
  1. {
  2. File: Movies.p
  3. Contains: QuickTime Interfaces.
  4. Version: Technology: QuickTime 6.0
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 1990-2002 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 210
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$calling mwpascal}
  21. unit Movies;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0210}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes,Files,QDOffscreen,TextEdit,Controls,Dialogs,Quickdraw,Aliases,Events,Menus,Components,Sound,ImageCompression;
  92. {$ALIGN MAC68K}
  93. { "kFix1" is defined in FixMath as "fixed1" }
  94. { error codes are in Errors.[haa] }
  95. { gestalt codes are in Gestalt.[hpa] }
  96. const
  97. MovieFileType = FourCharCode('MooV');
  98. MovieScrapType = FourCharCode('moov');
  99. MovieResourceType = FourCharCode('moov');
  100. MovieForwardPointerResourceType = FourCharCode('fore');
  101. MovieBackwardPointerResourceType = FourCharCode('back');
  102. MovieResourceAtomType = FourCharCode('moov');
  103. MovieDataAtomType = FourCharCode('mdat');
  104. FreeAtomType = FourCharCode('free');
  105. SkipAtomType = FourCharCode('skip');
  106. WideAtomPlaceholderType = FourCharCode('wide');
  107. MediaHandlerType = FourCharCode('mhlr');
  108. DataHandlerType = FourCharCode('dhlr');
  109. VideoMediaType = FourCharCode('vide');
  110. SoundMediaType = FourCharCode('soun');
  111. TextMediaType = FourCharCode('text');
  112. BaseMediaType = FourCharCode('gnrc');
  113. MPEGMediaType = FourCharCode('MPEG');
  114. MusicMediaType = FourCharCode('musi');
  115. TimeCodeMediaType = FourCharCode('tmcd');
  116. SpriteMediaType = FourCharCode('sprt');
  117. FlashMediaType = FourCharCode('flsh');
  118. MovieMediaType = FourCharCode('moov');
  119. TweenMediaType = FourCharCode('twen');
  120. ThreeDeeMediaType = FourCharCode('qd3d');
  121. SkinMediaType = FourCharCode('skin');
  122. HandleDataHandlerSubType = FourCharCode('hndl');
  123. PointerDataHandlerSubType = FourCharCode('ptr ');
  124. NullDataHandlerSubType = FourCharCode('null');
  125. ResourceDataHandlerSubType = FourCharCode('rsrc');
  126. URLDataHandlerSubType = FourCharCode('url ');
  127. WiredActionHandlerType = FourCharCode('wire');
  128. VisualMediaCharacteristic = FourCharCode('eyes');
  129. AudioMediaCharacteristic = FourCharCode('ears');
  130. kCharacteristicCanSendVideo = FourCharCode('vsnd');
  131. kCharacteristicProvidesActions = FourCharCode('actn');
  132. kCharacteristicNonLinear = FourCharCode('nonl');
  133. kCharacteristicCanStep = FourCharCode('step');
  134. kCharacteristicHasNoDuration = FourCharCode('noti');
  135. kCharacteristicHasSkinData = FourCharCode('skin');
  136. kCharacteristicProvidesKeyFocus = FourCharCode('keyf');
  137. kUserDataMovieControllerType = FourCharCode('ctyp');
  138. kUserDataName = FourCharCode('name');
  139. kUserDataTextAlbum = FourCharCode('©alb');
  140. kUserDataTextArtist = FourCharCode('©ART');
  141. kUserDataTextAuthor = FourCharCode('©aut');
  142. kUserDataTextChapter = FourCharCode('©chp');
  143. kUserDataTextComment = FourCharCode('©cmt');
  144. kUserDataTextComposer = FourCharCode('©com');
  145. kUserDataTextCopyright = FourCharCode('©cpy');
  146. kUserDataTextCreationDate = FourCharCode('©day');
  147. kUserDataTextDescription = FourCharCode('©des');
  148. kUserDataTextDirector = FourCharCode('©dir');
  149. kUserDataTextDisclaimer = FourCharCode('©dis');
  150. kUserDataTextEncodedBy = FourCharCode('©enc');
  151. kUserDataTextFullName = FourCharCode('©nam');
  152. kUserDataTextGenre = FourCharCode('©gen');
  153. kUserDataTextHostComputer = FourCharCode('©hst');
  154. kUserDataTextInformation = FourCharCode('©inf');
  155. kUserDataTextKeywords = FourCharCode('©key');
  156. kUserDataTextMake = FourCharCode('©mak');
  157. kUserDataTextModel = FourCharCode('©mod');
  158. kUserDataTextOriginalArtist = FourCharCode('©ope');
  159. kUserDataTextOriginalFormat = FourCharCode('©fmt');
  160. kUserDataTextOriginalSource = FourCharCode('©src');
  161. kUserDataTextPerformers = FourCharCode('©prf');
  162. kUserDataTextProducer = FourCharCode('©prd');
  163. kUserDataTextProduct = FourCharCode('©PRD');
  164. kUserDataTextSoftware = FourCharCode('©swr');
  165. kUserDataTextSpecialPlaybackRequirements = FourCharCode('©req');
  166. kUserDataTextTrack = FourCharCode('©trk');
  167. kUserDataTextWarning = FourCharCode('©wrn');
  168. kUserDataTextWriter = FourCharCode('©wrt');
  169. kUserDataTextURLLink = FourCharCode('©url');
  170. kUserDataTextEditDate1 = FourCharCode('©ed1');
  171. kUserDataUnicodeBit = $00000080;
  172. DoTheRightThing = 0;
  173. type
  174. MovieRecordPtr = ^MovieRecord;
  175. MovieRecord = record
  176. data: array [0..0] of SInt32;
  177. end;
  178. Movie = ^MovieRecord;
  179. Movie_fix = Movie; { used as field type when a record declaration contains a Movie field identifier }
  180. MoviePtr = ^Movie;
  181. TrackRecordPtr = ^TrackRecord;
  182. TrackRecord = record
  183. data: array [0..0] of SInt32;
  184. end;
  185. Track = ^TrackRecord;
  186. Track_fix = Track; { used as field type when a record declaration contains a Track field identifier }
  187. MediaRecordPtr = ^MediaRecord;
  188. MediaRecord = record
  189. data: array [0..0] of SInt32;
  190. end;
  191. Media = ^MediaRecord;
  192. UserDataRecordPtr = ^UserDataRecord;
  193. UserDataRecord = record
  194. data: array [0..0] of SInt32;
  195. end;
  196. UserData = ^UserDataRecord;
  197. TrackEditStateRecordPtr = ^TrackEditStateRecord;
  198. TrackEditStateRecord = record
  199. data: array [0..0] of SInt32;
  200. end;
  201. TrackEditState = ^TrackEditStateRecord;
  202. MovieEditStateRecordPtr = ^MovieEditStateRecord;
  203. MovieEditStateRecord = record
  204. data: array [0..0] of SInt32;
  205. end;
  206. MovieEditState = ^MovieEditStateRecord;
  207. QTRestrictionSetRecordPtr = ^QTRestrictionSetRecord;
  208. QTRestrictionSetRecord = record
  209. data: array [0..0] of SInt32;
  210. end;
  211. QTRestrictionSet = ^QTRestrictionSetRecord;
  212. SpriteWorldRecordPtr = ^SpriteWorldRecord;
  213. SpriteWorldRecord = record
  214. data: array [0..0] of SInt32;
  215. end;
  216. SpriteWorld = ^SpriteWorldRecord;
  217. SpriteRecordPtr = ^SpriteRecord;
  218. SpriteRecord = record
  219. data: array [0..0] of SInt32;
  220. end;
  221. Sprite = ^SpriteRecord;
  222. QTTweenerRecordPtr = ^QTTweenerRecord;
  223. QTTweenerRecord = record
  224. data: array [0..0] of SInt32;
  225. end;
  226. QTTweener = ^QTTweenerRecord;
  227. SampleDescriptionPtr = ^SampleDescription;
  228. SampleDescription = record
  229. descSize: SInt32;
  230. dataFormat: SInt32;
  231. resvd1: SInt32;
  232. resvd2: SInt16;
  233. dataRefIndex: SInt16;
  234. end;
  235. SampleDescriptionHandle = ^SampleDescriptionPtr;
  236. QTBandwidthReference = ^SInt32; { an opaque 32-bit type }
  237. QTBandwidthReferencePtr = ^QTBandwidthReference; { when a var xx:QTBandwidthReference parameter can be nil, it is changed to xx: QTBandwidthReferencePtr }
  238. QTScheduledBandwidthReference = ^SInt32; { an opaque 32-bit type }
  239. QTScheduledBandwidthReferencePtr = ^QTScheduledBandwidthReference; { when a var xx:QTScheduledBandwidthReference parameter can be nil, it is changed to xx: QTScheduledBandwidthReferencePtr }
  240. const
  241. kQTNetworkStatusNoNetwork = -2;
  242. kQTNetworkStatusUncertain = -1;
  243. kQTNetworkStatusNotConnected = 0;
  244. kQTNetworkStatusConnected = 1;
  245. type
  246. QTAtomContainer = Handle;
  247. QTAtom = SInt32;
  248. QTAtomType = SInt32;
  249. QTAtomID = SInt32;
  250. { QTFloatDouble is the 64-bit IEEE-754 standard }
  251. QTFloatDouble = Float64;
  252. { QTFloatSingle is the 32-bit IEEE-754 standard }
  253. QTFloatSingle = Float32;
  254. SoundDescriptionPtr = ^SoundDescription;
  255. SoundDescription = record
  256. descSize: SInt32; { total size of SoundDescription including extra data }
  257. dataFormat: SInt32; { sound format }
  258. resvd1: SInt32; { reserved for apple use. set to zero }
  259. resvd2: SInt16; { reserved for apple use. set to zero }
  260. dataRefIndex: SInt16;
  261. version: SInt16; { which version is this data }
  262. revlevel: SInt16; { what version of that codec did this }
  263. vendor: SInt32; { whose codec compressed this data }
  264. numChannels: SInt16; { number of channels of sound }
  265. sampleSize: SInt16; { number of bits per sample }
  266. compressionID: SInt16; { unused. set to zero. }
  267. packetSize: SInt16; { unused. set to zero. }
  268. sampleRate: UnsignedFixed; { sample rate sound is captured at }
  269. end;
  270. SoundDescriptionHandle = ^SoundDescriptionPtr;
  271. { version 1 of the SoundDescription record }
  272. SoundDescriptionV1Ptr = ^SoundDescriptionV1;
  273. SoundDescriptionV1 = record
  274. { original fields }
  275. desc: SoundDescription;
  276. { fixed compression ratio information }
  277. samplesPerPacket: UInt32;
  278. bytesPerPacket: UInt32;
  279. bytesPerFrame: UInt32;
  280. bytesPerSample: UInt32;
  281. { additional atom based fields ([long size, long type, some data], repeat) }
  282. end;
  283. SoundDescriptionV1Handle = ^SoundDescriptionV1Ptr;
  284. TextDescriptionPtr = ^TextDescription;
  285. TextDescription = record
  286. descSize: SInt32; { Total size of TextDescription }
  287. dataFormat: SInt32; { 'text' }
  288. resvd1: SInt32;
  289. resvd2: SInt16;
  290. dataRefIndex: SInt16;
  291. displayFlags: SInt32; { see enum below for flag values }
  292. textJustification: SInt32; { Can be: teCenter,teFlush -Default,-Right,-Left }
  293. bgColor: RGBColor; { Background color }
  294. defaultTextBox: Rect; { Location to place the text within the track bounds }
  295. defaultStyle: ScrpSTElement; { Default style (struct defined in TextEdit.h) }
  296. defaultFontName: SInt8; { Font Name (pascal string - struct extended to fit) }
  297. end;
  298. TextDescriptionHandle = ^TextDescriptionPtr;
  299. SpriteDescriptionPtr = ^SpriteDescription;
  300. SpriteDescription = record
  301. descSize: SInt32; { total size of SpriteDescription including extra data }
  302. dataFormat: SInt32; { }
  303. resvd1: SInt32; { reserved for apple use }
  304. resvd2: SInt16;
  305. dataRefIndex: SInt16;
  306. version: SInt32; { which version is this data }
  307. decompressorType: OSType; { which decompressor to use, 0 for no decompression }
  308. sampleFlags: SInt32; { how to interpret samples }
  309. end;
  310. SpriteDescriptionHandle = ^SpriteDescriptionPtr;
  311. FlashDescriptionPtr = ^FlashDescription;
  312. FlashDescription = record
  313. descSize: SInt32;
  314. dataFormat: SInt32;
  315. resvd1: SInt32;
  316. resvd2: SInt16;
  317. dataRefIndex: SInt16;
  318. version: SInt32; { which version is this data }
  319. decompressorType: OSType; { which decompressor to use, 0 for no decompression }
  320. flags: SInt32;
  321. end;
  322. FlashDescriptionHandle = ^FlashDescriptionPtr;
  323. ThreeDeeDescriptionPtr = ^ThreeDeeDescription;
  324. ThreeDeeDescription = record
  325. descSize: SInt32; { total size of ThreeDeeDescription including extra data }
  326. dataFormat: SInt32; { }
  327. resvd1: SInt32; { reserved for apple use }
  328. resvd2: SInt16;
  329. dataRefIndex: SInt16;
  330. version: SInt32; { which version is this data }
  331. rendererType: SInt32; { which renderer to use, 0 for default }
  332. decompressorType: SInt32; { which decompressor to use, 0 for default }
  333. end;
  334. ThreeDeeDescriptionHandle = ^ThreeDeeDescriptionPtr;
  335. DataReferenceRecordPtr = ^DataReferenceRecord;
  336. DataReferenceRecord = record
  337. dataRefType: OSType;
  338. dataRef: Handle;
  339. end;
  340. DataReferencePtr = ^DataReferenceRecord;
  341. { --------------------------
  342. Music Sample Description
  343. -------------------------- }
  344. MusicDescriptionPtr = ^MusicDescription;
  345. MusicDescription = record
  346. descSize: SInt32;
  347. dataFormat: SInt32; { 'musi' }
  348. resvd1: SInt32;
  349. resvd2: SInt16;
  350. dataRefIndex: SInt16;
  351. musicFlags: SInt32;
  352. headerData: array [0..0] of UInt32; { variable size! }
  353. end;
  354. MusicDescriptionHandle = ^MusicDescriptionPtr;
  355. const
  356. kMusicFlagDontPlay2Soft = $00000001;
  357. kMusicFlagDontSlaveToMovie = $00000002;
  358. dfDontDisplay = $01; { Don't display the text }
  359. dfDontAutoScale = $02; { Don't scale text as track bounds grows or shrinks }
  360. dfClipToTextBox = $04; { Clip update to the textbox }
  361. dfUseMovieBGColor = $08; { Set text background to movie's background color }
  362. dfShrinkTextBoxToFit = $10; { Compute minimum box to fit the sample }
  363. dfScrollIn = $20; { Scroll text in until last of text is in view }
  364. dfScrollOut = $40; { Scroll text out until last of text is gone (if both set, scroll in then out) }
  365. dfHorizScroll = $80; { Scroll text horizontally (otherwise it's vertical) }
  366. dfReverseScroll = $0100; { vert: scroll down rather than up; horiz: scroll backwards (justfication dependent) }
  367. dfContinuousScroll = $0200; { new samples cause previous samples to scroll out }
  368. dfFlowHoriz = $0400; { horiz scroll text flows in textbox rather than extend to right }
  369. dfContinuousKaraoke = $0800; { ignore begin offset, hilite everything up to the end offset(karaoke) }
  370. dfDropShadow = $1000; { display text with a drop shadow }
  371. dfAntiAlias = $2000; { attempt to display text anti aliased }
  372. dfKeyedText = $4000; { key the text over background }
  373. dfInverseHilite = $8000; { Use inverse hiliting rather than using hilite color }
  374. dfTextColorHilite = $00010000; { changes text color in place of hiliting. }
  375. searchTextDontGoToFoundTime = $00010000;
  376. searchTextDontHiliteFoundText = $00020000;
  377. searchTextOneTrackOnly = $00040000;
  378. searchTextEnabledTracksOnly = $00080000;
  379. { use these with the text property routines }
  380. { set property parameter / get property parameter }
  381. kTextTextHandle = 1; { Handle / preallocated Handle }
  382. kTextTextPtr = 2; { Pointer }
  383. kTextTEStyle = 3; { TextStyle * / TextStyle * }
  384. kTextSelection = 4; { long [2] / long [2] }
  385. kTextBackColor = 5; { RGBColor * / RGBColor * }
  386. kTextForeColor = 6; { RGBColor * / RGBColor * }
  387. kTextFace = 7; { long / long * }
  388. kTextFont = 8; { long / long * }
  389. kTextSize = 9; { long / long * }
  390. kTextAlignment = 10; { short * / short * }
  391. kTextHilite = 11; { hiliteRecord * / hiliteRecord * }
  392. kTextDropShadow = 12; { dropShadowRecord * / dropShadowRecord * }
  393. kTextDisplayFlags = 13; { long / long * }
  394. kTextScroll = 14; { TimeValue * / TimeValue * }
  395. kTextRelativeScroll = 15; { Point * }
  396. kTextHyperTextFace = 16; { hyperTextSetFace * / hyperTextSetFace * }
  397. kTextHyperTextColor = 17; { hyperTextSetColor * / hyperTextSetColor * }
  398. kTextKeyEntry = 18; { short }
  399. kTextMouseDown = 19; { Point * }
  400. kTextTextBox = 20; { Rect * / Rect * }
  401. kTextEditState = 21; { short / short * }
  402. kTextLength = 22; { / long * }
  403. k3DMediaRendererEntry = FourCharCode('rend');
  404. k3DMediaRendererName = FourCharCode('name');
  405. k3DMediaRendererCode = FourCharCode('rcod');
  406. { progress messages }
  407. movieProgressOpen = 0;
  408. movieProgressUpdatePercent = 1;
  409. movieProgressClose = 2;
  410. { progress operations }
  411. progressOpFlatten = 1;
  412. progressOpInsertTrackSegment = 2;
  413. progressOpInsertMovieSegment = 3;
  414. progressOpPaste = 4;
  415. progressOpAddMovieSelection = 5;
  416. progressOpCopy = 6;
  417. progressOpCut = 7;
  418. progressOpLoadMovieIntoRam = 8;
  419. progressOpLoadTrackIntoRam = 9;
  420. progressOpLoadMediaIntoRam = 10;
  421. progressOpImportMovie = 11;
  422. progressOpExportMovie = 12;
  423. mediaQualityDraft = $0000;
  424. mediaQualityNormal = $0040;
  425. mediaQualityBetter = $0080;
  426. mediaQualityBest = $00C0;
  427. { ****
  428. Interactive Sprites Support
  429. **** }
  430. { QTEventRecord flags }
  431. kQTEventPayloadIsQTList = $00000001;
  432. type
  433. QTEventRecordPtr = ^QTEventRecord;
  434. QTEventRecord = record
  435. version: SInt32;
  436. eventType: OSType;
  437. where: Point;
  438. flags: SInt32;
  439. payloadRefcon: SInt32; { from here down only present if version >= 2 }
  440. param1: SInt32;
  441. param2: SInt32;
  442. param3: SInt32;
  443. end;
  444. QTAtomSpecPtr = ^QTAtomSpec;
  445. QTAtomSpec = record
  446. container: QTAtomContainer;
  447. atom: QTAtom;
  448. end;
  449. ResolvedQTEventSpecPtr = ^ResolvedQTEventSpec;
  450. ResolvedQTEventSpec = record
  451. actionAtom: QTAtomSpec;
  452. targetTrack: Track;
  453. targetRefCon: SInt32;
  454. end;
  455. { action constants }
  456. const
  457. kActionMovieSetVolume = 1024; { (short movieVolume) }
  458. kActionMovieSetRate = 1025; { (Fixed rate) }
  459. kActionMovieSetLoopingFlags = 1026; { (long loopingFlags) }
  460. kActionMovieGoToTime = 1027; { (TimeValue time) }
  461. kActionMovieGoToTimeByName = 1028; { (Str255 timeName) }
  462. kActionMovieGoToBeginning = 1029; { no params }
  463. kActionMovieGoToEnd = 1030; { no params }
  464. kActionMovieStepForward = 1031; { no params }
  465. kActionMovieStepBackward = 1032; { no params }
  466. kActionMovieSetSelection = 1033; { (TimeValue startTime, TimeValue endTime) }
  467. kActionMovieSetSelectionByName = 1034; { (Str255 startTimeName, Str255 endTimeName) }
  468. kActionMoviePlaySelection = 1035; { (Boolean selectionOnly) }
  469. kActionMovieSetLanguage = 1036; { (long language) }
  470. kActionMovieChanged = 1037; { no params }
  471. kActionMovieRestartAtTime = 1038; { (TimeValue startTime, Fixed rate) }
  472. kActionMovieGotoNextChapter = 1039; { no params }
  473. kActionMovieGotoPreviousChapter = 1040; { no params }
  474. kActionMovieGotoFirstChapter = 1041; { no params }
  475. kActionMovieGotoLastChapter = 1042; { no params }
  476. kActionMovieGotoChapterByIndex = 1043; { ( short index ) }
  477. kActionMovieSetScale = 1044; { (Fixed xScale, Fixed yScale) }
  478. kActionTrackSetVolume = 2048; { (short volume) }
  479. kActionTrackSetBalance = 2049; { (short balance) }
  480. kActionTrackSetEnabled = 2050; { (Boolean enabled) }
  481. kActionTrackSetMatrix = 2051; { (MatrixRecord matrix) }
  482. kActionTrackSetLayer = 2052; { (short layer) }
  483. kActionTrackSetClip = 2053; { (RgnHandle clip) }
  484. kActionTrackSetCursor = 2054; { (QTATomID cursorID) }
  485. kActionTrackSetGraphicsMode = 2055; { (ModifierTrackGraphicsModeRecord graphicsMode) }
  486. kActionTrackSetIdleFrequency = 2056; { (long frequency) }
  487. kActionTrackSetBassTreble = 2057; { (short base, short treble) }
  488. kActionSpriteSetMatrix = 3072; { (MatrixRecord matrix) }
  489. kActionSpriteSetImageIndex = 3073; { (short imageIndex) }
  490. kActionSpriteSetVisible = 3074; { (short visible) }
  491. kActionSpriteSetLayer = 3075; { (short layer) }
  492. kActionSpriteSetGraphicsMode = 3076; { (ModifierTrackGraphicsModeRecord graphicsMode) }
  493. kActionSpritePassMouseToCodec = 3078; { no params }
  494. kActionSpriteClickOnCodec = 3079; { Point localLoc }
  495. kActionSpriteTranslate = 3080; { (Fixed x, Fixed y, Boolean isAbsolute) }
  496. kActionSpriteScale = 3081; { (Fixed xScale, Fixed yScale) }
  497. kActionSpriteRotate = 3082; { (Fixed degrees) }
  498. kActionSpriteStretch = 3083; { (Fixed p1x, Fixed p1y, Fixed p2x, Fixed p2y, Fixed p3x, Fixed p3y, Fixed p4x, Fixed p4y) }
  499. kActionSpriteSetCanBeHitTested = 3094; { (short canBeHitTested) }
  500. kActionQTVRSetPanAngle = 4096; { (float panAngle) }
  501. kActionQTVRSetTiltAngle = 4097; { (float tiltAngle) }
  502. kActionQTVRSetFieldOfView = 4098; { (float fieldOfView) }
  503. kActionQTVRShowDefaultView = 4099; { no params }
  504. kActionQTVRGoToNodeID = 4100; { (UInt32 nodeID) }
  505. kActionQTVREnableHotSpot = 4101; { long ID, Boolean enable }
  506. kActionQTVRShowHotSpots = 4102; { Boolean show }
  507. kActionQTVRTranslateObject = 4103; { float xMove, float yMove }
  508. kActionQTVRSetViewState = 4109; { long viewStateType, short state }
  509. kActionMusicPlayNote = 5120; { (long sampleDescIndex, long partNumber, long delay, long pitch, long velocity, long duration) }
  510. kActionMusicSetController = 5121; { (long sampleDescIndex, long partNumber, long delay, long controller, long value) }
  511. kActionCase = 6144; { [(CaseStatementActionAtoms)] }
  512. kActionWhile = 6145; { [(WhileStatementActionAtoms)] }
  513. kActionGoToURL = 6146; { (C string urlLink) }
  514. kActionSendQTEventToSprite = 6147; { ([(SpriteTargetAtoms)], QTEventRecord theEvent) }
  515. kActionDebugStr = 6148; { (Str255 theString) }
  516. kActionPushCurrentTime = 6149; { no params }
  517. kActionPushCurrentTimeWithLabel = 6150; { (Str255 theLabel) }
  518. kActionPopAndGotoTopTime = 6151; { no params }
  519. kActionPopAndGotoLabeledTime = 6152; { (Str255 theLabel) }
  520. kActionStatusString = 6153; { (C string theString, long stringTypeFlags) }
  521. kActionSendQTEventToTrackObject = 6154; { ([(TrackObjectTargetAtoms)], QTEventRecord theEvent) }
  522. kActionAddChannelSubscription = 6155; { (Str255 channelName, C string channelsURL, C string channelsPictureURL) }
  523. kActionRemoveChannelSubscription = 6156; { (C string channelsURL) }
  524. kActionOpenCustomActionHandler = 6157; { (long handlerID, ComponentDescription handlerDesc) }
  525. kActionDoScript = 6158; { (long scriptTypeFlags, CString command, CString arguments) }
  526. kActionDoCompressedActions = 6159; { (compressed QTAtomContainer prefixed with eight bytes: long compressorType, long decompressedSize) }
  527. kActionSendAppMessage = 6160; { (long appMessageID) }
  528. kActionLoadComponent = 6161; { (ComponentDescription handlerDesc) }
  529. kActionSetFocus = 6162; { [(TargetAtoms theObject)] }
  530. kActionDontPassKeyEvent = 6163; { no params }
  531. kActionSetRandomSeed = 6164; { long randomSeed }
  532. kActionSpriteTrackSetVariable = 7168; { (QTAtomID variableID, float value) }
  533. kActionSpriteTrackNewSprite = 7169; { (QTAtomID spriteID, short imageIndex, MatrixRecord *matrix, short visible, short layer, ModifierTrackGraphicsModeRecord *graphicsMode, QTAtomID actionHandlingSpriteID) }
  534. kActionSpriteTrackDisposeSprite = 7170; { (QTAtomID spriteID) }
  535. kActionSpriteTrackSetVariableToString = 7171; { (QTAtomID variableID, C string value) }
  536. kActionSpriteTrackConcatVariables = 7172; { (QTAtomID firstVariableID, QTAtomID secondVariableID, QTAtomID resultVariableID ) }
  537. kActionSpriteTrackSetVariableToMovieURL = 7173; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
  538. kActionSpriteTrackSetVariableToMovieBaseURL = 7174; { (QTAtomID variableID, < optional: [(MovieTargetAtoms)] > ) }
  539. kActionSpriteTrackSetAllSpritesHitTestingMode = 7181;
  540. kActionSpriteTrackNewImage = 7182; { (C string imageURL, QTAtomID desiredID) }
  541. kActionSpriteTrackDisposeImage = 7183; { (short imageIndex) }
  542. kActionApplicationNumberAndString = 8192; { (long aNumber, Str255 aString ) }
  543. kActionQD3DNamedObjectTranslateTo = 9216; { (Fixed x, Fixed y, Fixed z ) }
  544. kActionQD3DNamedObjectScaleTo = 9217; { (Fixed xScale, Fixed yScale, Fixed zScale ) }
  545. kActionQD3DNamedObjectRotateTo = 9218; { (Fixed xDegrees, Fixed yDegrees, Fixed zDegrees ) }
  546. kActionFlashTrackSetPan = 10240; { (short xPercent, short yPercent ) }
  547. kActionFlashTrackSetZoom = 10241; { (short zoomFactor ) }
  548. kActionFlashTrackSetZoomRect = 10242; { (long left, long top, long right, long bottom ) }
  549. kActionFlashTrackGotoFrameNumber = 10243; { (long frameNumber ) }
  550. kActionFlashTrackGotoFrameLabel = 10244; { (C string frameLabel ) }
  551. kActionFlashTrackSetFlashVariable = 10245; { (C string path, C string name, C string value, Boolean updateFocus) }
  552. kActionFlashTrackDoButtonActions = 10246; { (C string path, long buttonID, long transition) }
  553. kActionMovieTrackAddChildMovie = 11264; { (QTAtomID childMovieID, C string childMovieURL) }
  554. kActionMovieTrackLoadChildMovie = 11265; { (QTAtomID childMovieID) }
  555. kActionMovieTrackLoadChildMovieWithQTListParams = 11266; { (QTAtomID childMovieID, C string qtlistXML) }
  556. kActionTextTrackPasteText = 12288; { (C string theText, long startSelection, long endSelection ) }
  557. kActionTextTrackSetTextBox = 12291; { (short left, short top, short right, short bottom) }
  558. kActionTextTrackSetTextStyle = 12292; { (Handle textStyle) }
  559. kActionTextTrackSetSelection = 12293; { (long startSelection, long endSelection ) }
  560. kActionTextTrackSetBackgroundColor = 12294; { (ModifierTrackGraphicsModeRecord backgroundColor ) }
  561. kActionTextTrackSetForegroundColor = 12295; { (ModifierTrackGraphicsModeRecord foregroundColor ) }
  562. kActionTextTrackSetFace = 12296; { (long fontFace ) }
  563. kActionTextTrackSetFont = 12297; { (long fontID ) }
  564. kActionTextTrackSetSize = 12298; { (long fontSize ) }
  565. kActionTextTrackSetAlignment = 12299; { (short alignment ) }
  566. kActionTextTrackSetHilite = 12300; { (long startHighlight, long endHighlight, ModifierTrackGraphicsModeRecord highlightColor ) }
  567. kActionTextTrackSetDropShadow = 12301; { (Point dropShadow, short transparency ) }
  568. kActionTextTrackSetDisplayFlags = 12302; { (long flags ) }
  569. kActionTextTrackSetScroll = 12303; { (long delay ) }
  570. kActionTextTrackRelativeScroll = 12304; { (short deltaX, short deltaY ) }
  571. kActionTextTrackFindText = 12305; { (long flags, Str255 theText, ModifierTrackGraphicsModeRecord highlightColor ) }
  572. kActionTextTrackSetHyperTextFace = 12306; { (short index, long fontFace ) }
  573. kActionTextTrackSetHyperTextColor = 12307; { (short index, ModifierTrackGraphicsModeRecord highlightColor ) }
  574. kActionTextTrackKeyEntry = 12308; { (short character ) }
  575. kActionTextTrackMouseDown = 12309; { no params }
  576. kActionTextTrackSetEditable = 12310; { (short editState) }
  577. kActionListAddElement = 13312; { (C string parentPath, long atIndex, C string newElementName) }
  578. kActionListRemoveElements = 13313; { (C string parentPath, long startIndex, long endIndex) }
  579. kActionListSetElementValue = 13314; { (C string elementPath, C string valueString) }
  580. kActionListPasteFromXML = 13315; { (C string xml, C string targetParentPath, long startIndex) }
  581. kActionListSetMatchingFromXML = 13316; { (C string xml, C string targetParentPath) }
  582. kActionListSetFromURL = 13317; { (C string url, C string targetParentPath ) }
  583. kActionListExchangeLists = 13318; { (C string url, C string parentPath) }
  584. kActionListServerQuery = 13319; { (C string url, C string keyValuePairs, long flags, C string parentPath) }
  585. kOperandExpression = 1;
  586. kOperandConstant = 2;
  587. kOperandSubscribedToChannel = 3; { C string channelsURL }
  588. kOperandUniqueCustomActionHandlerID = 4;
  589. kOperandCustomActionHandlerIDIsOpen = 5; { long ID }
  590. kOperandConnectionSpeed = 6;
  591. kOperandGMTDay = 7;
  592. kOperandGMTMonth = 8;
  593. kOperandGMTYear = 9;
  594. kOperandGMTHours = 10;
  595. kOperandGMTMinutes = 11;
  596. kOperandGMTSeconds = 12;
  597. kOperandLocalDay = 13;
  598. kOperandLocalMonth = 14;
  599. kOperandLocalYear = 15;
  600. kOperandLocalHours = 16;
  601. kOperandLocalMinutes = 17;
  602. kOperandLocalSeconds = 18;
  603. kOperandRegisteredForQuickTimePro = 19;
  604. kOperandPlatformRunningOn = 20;
  605. kOperandQuickTimeVersion = 21;
  606. kOperandComponentVersion = 22; { C string type, C string subType, C string manufacturer }
  607. kOperandOriginalHandlerRefcon = 23;
  608. kOperandTicks = 24;
  609. kOperandMaxLoadedTimeInMovie = 25;
  610. kOperandEventParameter = 26; { short index }
  611. kOperandFreeMemory = 27;
  612. kOperandNetworkStatus = 28;
  613. kOperandQuickTimeVersionRegistered = 29; { long version }
  614. kOperandSystemVersion = 30;
  615. kOperandMovieVolume = 1024;
  616. kOperandMovieRate = 1025;
  617. kOperandMovieIsLooping = 1026;
  618. kOperandMovieLoopIsPalindrome = 1027;
  619. kOperandMovieTime = 1028;
  620. kOperandMovieDuration = 1029;
  621. kOperandMovieTimeScale = 1030;
  622. kOperandMovieWidth = 1031;
  623. kOperandMovieHeight = 1032;
  624. kOperandMovieLoadState = 1033;
  625. kOperandMovieTrackCount = 1034;
  626. kOperandMovieIsActive = 1035;
  627. kOperandMovieName = 1036;
  628. kOperandMovieID = 1037;
  629. kOperandMovieChapterCount = 1038;
  630. kOperandMovieChapterIndex = 1039;
  631. kOperandMovieChapterName = 1040;
  632. kOperandMovieChapterNameByIndex = 1041; { ( short index ) }
  633. kOperandMovieChapterIndexByName = 1042; { (c string name) }
  634. kOperandMovieAnnotation = 1043; { (c string requested, long flags) }
  635. kOperandMovieConnectionFlags = 1044;
  636. kOperandMovieConnectionString = 1045;
  637. kOperandTrackVolume = 2048;
  638. kOperandTrackBalance = 2049;
  639. kOperandTrackEnabled = 2050;
  640. kOperandTrackLayer = 2051;
  641. kOperandTrackWidth = 2052;
  642. kOperandTrackHeight = 2053;
  643. kOperandTrackDuration = 2054;
  644. kOperandTrackName = 2055;
  645. kOperandTrackID = 2056;
  646. kOperandTrackIdleFrequency = 2057;
  647. kOperandTrackBass = 2058;
  648. kOperandTrackTreble = 2059;
  649. kOperandSpriteBoundsLeft = 3072;
  650. kOperandSpriteBoundsTop = 3073;
  651. kOperandSpriteBoundsRight = 3074;
  652. kOperandSpriteBoundsBottom = 3075;
  653. kOperandSpriteImageIndex = 3076;
  654. kOperandSpriteVisible = 3077;
  655. kOperandSpriteLayer = 3078;
  656. kOperandSpriteTrackVariable = 3079; { [QTAtomID variableID] }
  657. kOperandSpriteTrackNumSprites = 3080;
  658. kOperandSpriteTrackNumImages = 3081;
  659. kOperandSpriteID = 3082;
  660. kOperandSpriteIndex = 3083;
  661. kOperandSpriteFirstCornerX = 3084;
  662. kOperandSpriteFirstCornerY = 3085;
  663. kOperandSpriteSecondCornerX = 3086;
  664. kOperandSpriteSecondCornerY = 3087;
  665. kOperandSpriteThirdCornerX = 3088;
  666. kOperandSpriteThirdCornerY = 3089;
  667. kOperandSpriteFourthCornerX = 3090;
  668. kOperandSpriteFourthCornerY = 3091;
  669. kOperandSpriteImageRegistrationPointX = 3092;
  670. kOperandSpriteImageRegistrationPointY = 3093;
  671. kOperandSpriteTrackSpriteIDAtPoint = 3094; { short x, short y }
  672. kOperandSpriteName = 3095;
  673. kOperandSpriteCanBeHitTested = 3105; { short }
  674. kOperandSpriteTrackAllSpritesHitTestingMode = 3106;
  675. kOperandSpriteTrackImageIDByIndex = 3107; { short imageIndex }
  676. kOperandSpriteTrackImageIndexByID = 3108; { QTAtomID }
  677. kOperandQTVRPanAngle = 4096;
  678. kOperandQTVRTiltAngle = 4097;
  679. kOperandQTVRFieldOfView = 4098;
  680. kOperandQTVRNodeID = 4099;
  681. kOperandQTVRHotSpotsVisible = 4100;
  682. kOperandQTVRViewCenterH = 4101;
  683. kOperandQTVRViewCenterV = 4102;
  684. kOperandQTVRViewStateCount = 4103;
  685. kOperandQTVRViewState = 4104; { long viewStateType }
  686. kOperandMouseLocalHLoc = 5120; { [TargetAtoms aTrack] }
  687. kOperandMouseLocalVLoc = 5121; { [TargetAtoms aTrack] }
  688. kOperandKeyIsDown = 5122; { [short modKeys, char asciiValue] }
  689. kOperandRandom = 5123; { [short min, short max] }
  690. kOperandCanHaveFocus = 5124; { [(TargetAtoms theObject)] }
  691. kOperandHasFocus = 5125; { [(TargetAtoms theObject)] }
  692. kOperandTextTrackEditable = 6144;
  693. kOperandTextTrackCopyText = 6145; { long startSelection, long endSelection }
  694. kOperandTextTrackStartSelection = 6146;
  695. kOperandTextTrackEndSelection = 6147;
  696. kOperandTextTrackTextBoxLeft = 6148;
  697. kOperandTextTrackTextBoxTop = 6149;
  698. kOperandTextTrackTextBoxRight = 6150;
  699. kOperandTextTrackTextBoxBottom = 6151;
  700. kOperandTextTrackTextLength = 6152;
  701. kOperandListCountElements = 7168; { (C string parentPath) }
  702. kOperandListGetElementPathByIndex = 7169; { (C string parentPath, long index) }
  703. kOperandListGetElementValue = 7170; { (C string elementPath) }
  704. kOperandListCopyToXML = 7171; { (C string parentPath, long startIndex, long endIndex) }
  705. kOperandSin = 8192; { float x }
  706. kOperandCos = 8193; { float x }
  707. kOperandTan = 8194; { float x }
  708. kOperandATan = 8195; { float x }
  709. kOperandATan2 = 8196; { float y, float x }
  710. kOperandDegreesToRadians = 8197; { float x }
  711. kOperandRadiansToDegrees = 8198; { float x }
  712. kOperandSquareRoot = 8199; { float x }
  713. kOperandExponent = 8200; { float x }
  714. kOperandLog = 8201; { float x }
  715. kOperandFlashTrackVariable = 9216; { [CString path, CString name] }
  716. kOperandStringLength = 10240; { (C string text) }
  717. kOperandStringCompare = 10241; { (C string aText, C string bText, Boolean caseSensitive, Boolan diacSensitive) }
  718. kOperandStringSubString = 10242; { (C string text, long offset, long length) }
  719. kOperandStringConcat = 10243; { (C string aText, C string bText) }
  720. kFirstMovieAction = 1024;
  721. kLastMovieAction = 1044;
  722. kFirstTrackAction = 2048;
  723. kLastTrackAction = 2057;
  724. kFirstSpriteAction = 3072;
  725. kLastSpriteAction = 3094;
  726. kFirstQTVRAction = 4096;
  727. kLastQTVRAction = 4109;
  728. kFirstMusicAction = 5120;
  729. kLastMusicAction = 5121;
  730. kFirstSystemAction = 6144;
  731. kLastSystemAction = 6164;
  732. kFirstSpriteTrackAction = 7168;
  733. kLastSpriteTrackAction = 7183;
  734. kFirstApplicationAction = 8192;
  735. kLastApplicationAction = 8192;
  736. kFirstQD3DNamedObjectAction = 9216;
  737. kLastQD3DNamedObjectAction = 9218;
  738. kFirstFlashTrackAction = 10240;
  739. kLastFlashTrackAction = 10246;
  740. kFirstMovieTrackAction = 11264;
  741. kLastMovieTrackAction = 11266;
  742. kFirstTextTrackAction = 12288;
  743. kLastTextTrackAction = 12310;
  744. kFirstMultiTargetAction = 13312;
  745. kLastMultiTargetAction = 13319;
  746. kFirstAction = 1024;
  747. kLastAction = 13319;
  748. { target atom types }
  749. kTargetMovie = FourCharCode('moov'); { no data }
  750. kTargetMovieName = FourCharCode('mona'); { (PString movieName) }
  751. kTargetMovieID = FourCharCode('moid'); { (long movieID) }
  752. kTargetRootMovie = FourCharCode('moro'); { no data }
  753. kTargetParentMovie = FourCharCode('mopa'); { no data }
  754. kTargetChildMovieTrackName = FourCharCode('motn'); { (PString childMovieTrackName) }
  755. kTargetChildMovieTrackID = FourCharCode('moti'); { (long childMovieTrackID) }
  756. kTargetChildMovieTrackIndex = FourCharCode('motx'); { (long childMovieTrackIndex) }
  757. kTargetChildMovieMovieName = FourCharCode('momn'); { (PString childMovieName) }
  758. kTargetChildMovieMovieID = FourCharCode('momi'); { (long childMovieID) }
  759. kTargetTrackName = FourCharCode('trna'); { (PString trackName) }
  760. kTargetTrackID = FourCharCode('trid'); { (long trackID) }
  761. kTargetTrackType = FourCharCode('trty'); { (OSType trackType) }
  762. kTargetTrackIndex = FourCharCode('trin'); { (long trackIndex) }
  763. kTargetSpriteName = FourCharCode('spna'); { (PString spriteName) }
  764. kTargetSpriteID = FourCharCode('spid'); { (QTAtomID spriteID) }
  765. kTargetSpriteIndex = FourCharCode('spin'); { (short spriteIndex) }
  766. kTargetQD3DNamedObjectName = FourCharCode('nana'); { (CString objectName) }
  767. kTargetCurrentQTEventParams = FourCharCode('evpa'); { no data }
  768. { action container atom types }
  769. kQTEventType = FourCharCode('evnt');
  770. kAction = FourCharCode('actn');
  771. kWhichAction = FourCharCode('whic');
  772. kActionParameter = FourCharCode('parm');
  773. kActionTarget = FourCharCode('targ');
  774. kActionFlags = FourCharCode('flag');
  775. kActionParameterMinValue = FourCharCode('minv');
  776. kActionParameterMaxValue = FourCharCode('maxv');
  777. kActionListAtomType = FourCharCode('list');
  778. kExpressionContainerAtomType = FourCharCode('expr');
  779. kConditionalAtomType = FourCharCode('test');
  780. kOperatorAtomType = FourCharCode('oper');
  781. kOperandAtomType = FourCharCode('oprn');
  782. kCommentAtomType = FourCharCode('why ');
  783. kCustomActionHandler = FourCharCode('cust');
  784. kCustomHandlerID = FourCharCode('id ');
  785. kCustomHandlerDesc = FourCharCode('desc');
  786. kQTEventRecordAtomType = FourCharCode('erec');
  787. { QTEvent types }
  788. kQTEventMouseClick = FourCharCode('clik');
  789. kQTEventMouseClickEnd = FourCharCode('cend');
  790. kQTEventMouseClickEndTriggerButton = FourCharCode('trig');
  791. kQTEventMouseEnter = FourCharCode('entr');
  792. kQTEventMouseExit = FourCharCode('exit');
  793. kQTEventMouseMoved = FourCharCode('move');
  794. kQTEventFrameLoaded = FourCharCode('fram');
  795. kQTEventIdle = FourCharCode('idle');
  796. kQTEventKey = FourCharCode('key '); { qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode }
  797. kQTEventMovieLoaded = FourCharCode('load');
  798. kQTEventRequestToModifyMovie = FourCharCode('reqm');
  799. kQTEventListReceived = FourCharCode('list');
  800. kQTEventKeyUp = FourCharCode('keyU'); { qtevent.param1 = key, qtevent.param2 = modifiers, qtEvent.param3 = scanCode }
  801. { flags for the kActionFlags atom }
  802. kActionFlagActionIsDelta = $00000002;
  803. kActionFlagParameterWrapsAround = $00000004;
  804. kActionFlagActionIsToggle = $00000008;
  805. { flags for stringTypeFlags field of the QTStatusStringRecord }
  806. kStatusStringIsURLLink = $00000002;
  807. kStatusStringIsStreamingStatus = $00000004;
  808. kStatusHasCodeNumber = $00000008; { high 16 bits of stringTypeFlags is error code number }
  809. kStatusIsError = $00000010;
  810. { flags for scriptTypeFlags field of the QTDoScriptRecord }
  811. kScriptIsUnknownType = $00000001;
  812. kScriptIsJavaScript = $00000002;
  813. kScriptIsLingoEvent = $00000004;
  814. kScriptIsVBEvent = $00000008;
  815. kScriptIsProjectorCommand = $00000010;
  816. kScriptIsAppleScript = $00000020;
  817. { flags for CheckQuickTimeRegistration routine }
  818. kQTRegistrationDialogTimeOutFlag = $01;
  819. kQTRegistrationDialogShowDialog = $02;
  820. kQTRegistrationDialogForceDialog = $04;
  821. { constants for kOperatorAtomType IDs (operator types) }
  822. kOperatorAdd = FourCharCode('add ');
  823. kOperatorSubtract = FourCharCode('sub ');
  824. kOperatorMultiply = FourCharCode('mult');
  825. kOperatorDivide = FourCharCode('div ');
  826. kOperatorOr = FourCharCode('or ');
  827. kOperatorAnd = FourCharCode('and ');
  828. kOperatorNot = FourCharCode('not ');
  829. kOperatorLessThan = FourCharCode('< ');
  830. kOperatorLessThanEqualTo = FourCharCode('<= ');
  831. kOperatorEqualTo = FourCharCode('= ');
  832. kOperatorNotEqualTo = FourCharCode('!= ');
  833. kOperatorGreaterThan = FourCharCode('> ');
  834. kOperatorGreaterThanEqualTo = FourCharCode('>= ');
  835. kOperatorModulo = FourCharCode('mod ');
  836. kOperatorIntegerDivide = FourCharCode('idiv');
  837. kOperatorAbsoluteValue = FourCharCode('abs ');
  838. kOperatorNegate = FourCharCode('neg ');
  839. { constants for kOperandPlatformRunningOn }
  840. kPlatformMacintosh = 1;
  841. kPlatformWindows = 2;
  842. { flags for kOperandSystemVersion }
  843. kSystemIsWindows9x = $00010000;
  844. kSystemIsWindowsNT = $00020000;
  845. { constants for MediaPropertiesAtom }
  846. kMediaPropertyNonLinearAtomType = FourCharCode('nonl');
  847. kMediaPropertyHasActions = 105;
  848. { TimeBase and TimeRecord moved to MacTypes.h }
  849. type
  850. TimeBaseFlags = UInt32;
  851. const
  852. loopTimeBase = 1;
  853. palindromeLoopTimeBase = 2;
  854. maintainTimeBaseZero = 4;
  855. type
  856. CallBackRecordPtr = ^CallBackRecord;
  857. CallBackRecord = record
  858. data: array [0..0] of SInt32;
  859. end;
  860. QTCallBack = ^CallBackRecord;
  861. { CallBack equates }
  862. QTCallBackFlags = UInt16;
  863. const
  864. triggerTimeFwd = $0001; { when curTime exceeds triggerTime going forward }
  865. triggerTimeBwd = $0002; { when curTime exceeds triggerTime going backwards }
  866. triggerTimeEither = $0003; { when curTime exceeds triggerTime going either direction }
  867. triggerRateLT = $0004; { when rate changes to less than trigger value }
  868. triggerRateGT = $0008; { when rate changes to greater than trigger value }
  869. triggerRateEqual = $0010; { when rate changes to equal trigger value }
  870. triggerRateLTE = $0014;
  871. triggerRateGTE = $0018;
  872. triggerRateNotEqual = $001C;
  873. triggerRateChange = 0;
  874. triggerAtStart = $0001;
  875. triggerAtStop = $0002;
  876. type
  877. TimeBaseStatus = UInt32;
  878. const
  879. timeBaseBeforeStartTime = 1;
  880. timeBaseAfterStopTime = 2;
  881. type
  882. QTCallBackType = UInt16;
  883. const
  884. callBackAtTime = 1;
  885. callBackAtRate = 2;
  886. callBackAtTimeJump = 3;
  887. callBackAtExtremes = 4;
  888. callBackAtTimeBaseDisposed = 5;
  889. callBackAtInterrupt = $8000;
  890. callBackAtDeferredTask = $4000;
  891. type
  892. {$ifc TYPED_FUNCTION_POINTERS}
  893. QTCallBackProcPtr = procedure(cb: QTCallBack; refCon: SInt32);
  894. {$elsec}
  895. QTCallBackProcPtr = ProcPtr;
  896. {$endc}
  897. {$ifc OPAQUE_UPP_TYPES}
  898. QTCallBackUPP = ^SInt32; { an opaque UPP }
  899. {$elsec}
  900. QTCallBackUPP = UniversalProcPtr;
  901. {$endc}
  902. const
  903. qtcbNeedsRateChanges = 1; { wants to know about rate changes }
  904. qtcbNeedsTimeChanges = 2; { wants to know about time changes }
  905. qtcbNeedsStartStopChanges = 4; { wants to know when TimeBase start/stop is changed }
  906. type
  907. QTCallBackHeaderPtr = ^QTCallBackHeader;
  908. QTCallBackHeader = record
  909. callBackFlags: SInt32;
  910. reserved1: SInt32;
  911. qtPrivate: array [0..39] of SInt8;
  912. end;
  913. {$ifc TYPED_FUNCTION_POINTERS}
  914. QTSyncTaskProcPtr = procedure(task: UnivPtr);
  915. {$elsec}
  916. QTSyncTaskProcPtr = ProcPtr;
  917. {$endc}
  918. {$ifc OPAQUE_UPP_TYPES}
  919. QTSyncTaskUPP = ^SInt32; { an opaque UPP }
  920. {$elsec}
  921. QTSyncTaskUPP = UniversalProcPtr;
  922. {$endc}
  923. QTSyncTaskRecordPtr = ^QTSyncTaskRecord;
  924. QTSyncTaskRecord = record
  925. qLink: Ptr;
  926. proc: QTSyncTaskUPP;
  927. end;
  928. QTSyncTaskPtr = ^QTSyncTaskRecord;
  929. {$ifc TYPED_FUNCTION_POINTERS}
  930. MovieRgnCoverProcPtr = function(theMovie: Movie; changedRgn: RgnHandle; refcon: SInt32): OSErr;
  931. {$elsec}
  932. MovieRgnCoverProcPtr = ProcPtr;
  933. {$endc}
  934. {$ifc TYPED_FUNCTION_POINTERS}
  935. MovieProgressProcPtr = function(theMovie: Movie; message: SInt16; whatOperation: SInt16; percentDone: Fixed; refcon: SInt32): OSErr;
  936. {$elsec}
  937. MovieProgressProcPtr = ProcPtr;
  938. {$endc}
  939. {$ifc TYPED_FUNCTION_POINTERS}
  940. MovieDrawingCompleteProcPtr = function(theMovie: Movie; refCon: SInt32): OSErr;
  941. {$elsec}
  942. MovieDrawingCompleteProcPtr = ProcPtr;
  943. {$endc}
  944. {$ifc TYPED_FUNCTION_POINTERS}
  945. TrackTransferProcPtr = function(t: Track; refCon: SInt32): OSErr;
  946. {$elsec}
  947. TrackTransferProcPtr = ProcPtr;
  948. {$endc}
  949. {$ifc TYPED_FUNCTION_POINTERS}
  950. GetMovieProcPtr = function(offset: SInt32; size: SInt32; dataPtr: UnivPtr; refCon: UnivPtr): OSErr;
  951. {$elsec}
  952. GetMovieProcPtr = ProcPtr;
  953. {$endc}
  954. {$ifc TYPED_FUNCTION_POINTERS}
  955. MoviePreviewCallOutProcPtr = function(refcon: SInt32): boolean;
  956. {$elsec}
  957. MoviePreviewCallOutProcPtr = ProcPtr;
  958. {$endc}
  959. {$ifc TYPED_FUNCTION_POINTERS}
  960. TextMediaProcPtr = function(theText: Handle; theMovie: Movie; var displayFlag: SInt16; refcon: SInt32): OSErr;
  961. {$elsec}
  962. TextMediaProcPtr = ProcPtr;
  963. {$endc}
  964. {$ifc TYPED_FUNCTION_POINTERS}
  965. ActionsProcPtr = function(refcon: UnivPtr; targetTrack: Track; targetRefCon: SInt32; theEvent: QTEventRecordPtr): OSErr;
  966. {$elsec}
  967. ActionsProcPtr = ProcPtr;
  968. {$endc}
  969. {$ifc TYPED_FUNCTION_POINTERS}
  970. DoMCActionProcPtr = function(refcon: UnivPtr; action: SInt16; params: UnivPtr; var handled: boolean): OSErr;
  971. {$elsec}
  972. DoMCActionProcPtr = ProcPtr;
  973. {$endc}
  974. {$ifc TYPED_FUNCTION_POINTERS}
  975. MovieExecuteWiredActionsProcPtr = function(theMovie: Movie; refcon: UnivPtr; flags: SInt32; wiredActions: QTAtomContainer): OSErr;
  976. {$elsec}
  977. MovieExecuteWiredActionsProcPtr = ProcPtr;
  978. {$endc}
  979. {$ifc TYPED_FUNCTION_POINTERS}
  980. MoviePrePrerollCompleteProcPtr = procedure(theMovie: Movie; prerollErr: OSErr; refcon: UnivPtr);
  981. {$elsec}
  982. MoviePrePrerollCompleteProcPtr = ProcPtr;
  983. {$endc}
  984. {$ifc TYPED_FUNCTION_POINTERS}
  985. QTNextTaskNeededSoonerCallbackProcPtr = procedure(duration: TimeValue; flags: UInt32; refcon: UnivPtr);
  986. {$elsec}
  987. QTNextTaskNeededSoonerCallbackProcPtr = ProcPtr;
  988. {$endc}
  989. {$ifc TYPED_FUNCTION_POINTERS}
  990. MoviesErrorProcPtr = procedure(theErr: OSErr; refcon: SInt32);
  991. {$elsec}
  992. MoviesErrorProcPtr = ProcPtr;
  993. {$endc}
  994. {$ifc OPAQUE_UPP_TYPES}
  995. MovieRgnCoverUPP = ^SInt32; { an opaque UPP }
  996. {$elsec}
  997. MovieRgnCoverUPP = UniversalProcPtr;
  998. {$endc}
  999. {$ifc OPAQUE_UPP_TYPES}
  1000. MovieProgressUPP = ^SInt32; { an opaque UPP }
  1001. {$elsec}
  1002. MovieProgressUPP = UniversalProcPtr;
  1003. {$endc}
  1004. {$ifc OPAQUE_UPP_TYPES}
  1005. MovieDrawingCompleteUPP = ^SInt32; { an opaque UPP }
  1006. {$elsec}
  1007. MovieDrawingCompleteUPP = UniversalProcPtr;
  1008. {$endc}
  1009. {$ifc OPAQUE_UPP_TYPES}
  1010. TrackTransferUPP = ^SInt32; { an opaque UPP }
  1011. {$elsec}
  1012. TrackTransferUPP = UniversalProcPtr;
  1013. {$endc}
  1014. {$ifc OPAQUE_UPP_TYPES}
  1015. GetMovieUPP = ^SInt32; { an opaque UPP }
  1016. {$elsec}
  1017. GetMovieUPP = UniversalProcPtr;
  1018. {$endc}
  1019. {$ifc OPAQUE_UPP_TYPES}
  1020. MoviePreviewCallOutUPP = ^SInt32; { an opaque UPP }
  1021. {$elsec}
  1022. MoviePreviewCallOutUPP = UniversalProcPtr;
  1023. {$endc}
  1024. {$ifc OPAQUE_UPP_TYPES}
  1025. TextMediaUPP = ^SInt32; { an opaque UPP }
  1026. {$elsec}
  1027. TextMediaUPP = UniversalProcPtr;
  1028. {$endc}
  1029. {$ifc OPAQUE_UPP_TYPES}
  1030. ActionsUPP = ^SInt32; { an opaque UPP }
  1031. {$elsec}
  1032. ActionsUPP = UniversalProcPtr;
  1033. {$endc}
  1034. {$ifc OPAQUE_UPP_TYPES}
  1035. DoMCActionUPP = ^SInt32; { an opaque UPP }
  1036. {$elsec}
  1037. DoMCActionUPP = UniversalProcPtr;
  1038. {$endc}
  1039. {$ifc OPAQUE_UPP_TYPES}
  1040. MovieExecuteWiredActionsUPP = ^SInt32; { an opaque UPP }
  1041. {$elsec}
  1042. MovieExecuteWiredActionsUPP = UniversalProcPtr;
  1043. {$endc}
  1044. {$ifc OPAQUE_UPP_TYPES}
  1045. MoviePrePrerollCompleteUPP = ^SInt32; { an opaque UPP }
  1046. {$elsec}
  1047. MoviePrePrerollCompleteUPP = UniversalProcPtr;
  1048. {$endc}
  1049. {$ifc OPAQUE_UPP_TYPES}
  1050. QTNextTaskNeededSoonerCallbackUPP = ^SInt32; { an opaque UPP }
  1051. {$elsec}
  1052. QTNextTaskNeededSoonerCallbackUPP = UniversalProcPtr;
  1053. {$endc}
  1054. {$ifc OPAQUE_UPP_TYPES}
  1055. MoviesErrorUPP = ^SInt32; { an opaque UPP }
  1056. {$elsec}
  1057. MoviesErrorUPP = UniversalProcPtr;
  1058. {$endc}
  1059. MediaHandler = ComponentInstance;
  1060. DataHandler = ComponentInstance;
  1061. MediaHandlerComponent = Component;
  1062. DataHandlerComponent = Component;
  1063. HandlerError = ComponentResult;
  1064. const
  1065. keepInRam = $01; { load and make non-purgable }
  1066. unkeepInRam = $02; { mark as purgable }
  1067. flushFromRam = $04; { empty those handles }
  1068. loadForwardTrackEdits = $08; { load track edits into ram for playing forward }
  1069. loadBackwardTrackEdits = $10; { load track edits into ram for playing in reverse }
  1070. newMovieActive = $01;
  1071. newMovieDontResolveDataRefs = $02;
  1072. newMovieDontAskUnresolvedDataRefs = $04;
  1073. newMovieDontAutoAlternates = $08;
  1074. newMovieDontUpdateForeBackPointers = $10;
  1075. newMovieDontAutoUpdateClock = $20;
  1076. newMovieAsyncOK = $0100;
  1077. newMovieIdleImportOK = $0400;
  1078. newMovieDontInteractWithUser = $0800;
  1079. { track usage bits }
  1080. trackUsageInMovie = $02;
  1081. trackUsageInPreview = $04;
  1082. trackUsageInPoster = $08;
  1083. { Add/GetMediaSample flags }
  1084. mediaSampleNotSync = $01; { sample is not a sync sample (eg. is frame differenced }
  1085. mediaSampleShadowSync = $02; { sample is a shadow sync }
  1086. pasteInParallel = $01;
  1087. showUserSettingsDialog = $02;
  1088. movieToFileOnlyExport = $04;
  1089. movieFileSpecValid = $08;
  1090. nextTimeMediaSample = $01;
  1091. nextTimeMediaEdit = $02;
  1092. nextTimeTrackEdit = $04;
  1093. nextTimeSyncSample = $08;
  1094. nextTimeStep = $10;
  1095. nextTimeEdgeOK = $4000;
  1096. nextTimeIgnoreActiveSegment = $8000;
  1097. type
  1098. nextTimeFlagsEnum = UInt16;
  1099. const
  1100. createMovieFileDeleteCurFile = $80000000;
  1101. createMovieFileDontCreateMovie = $40000000;
  1102. createMovieFileDontOpenFile = $20000000;
  1103. createMovieFileDontCreateResFile = $10000000;
  1104. type
  1105. createMovieFileFlagsEnum = UInt32;
  1106. const
  1107. flattenAddMovieToDataFork = $00000001;
  1108. flattenActiveTracksOnly = $00000004;
  1109. flattenDontInterleaveFlatten = $00000008;
  1110. flattenFSSpecPtrIsDataRefRecordPtr = $00000010;
  1111. flattenCompressMovieResource = $00000020;
  1112. flattenForceMovieResourceBeforeMovieData = $00000040;
  1113. type
  1114. movieFlattenFlagsEnum = UInt32;
  1115. const
  1116. movieInDataForkResID = -1; { magic res ID }
  1117. mcTopLeftMovie = $01; { usually centered }
  1118. mcScaleMovieToFit = $02; { usually only scales down }
  1119. mcWithBadge = $04; { give me a badge }
  1120. mcNotVisible = $08; { don't show controller }
  1121. mcWithFrame = $10; { gimme a frame }
  1122. movieScrapDontZeroScrap = $01;
  1123. movieScrapOnlyPutMovie = $02;
  1124. dataRefSelfReference = $01;
  1125. dataRefWasNotResolved = $02;
  1126. type
  1127. dataRefAttributesFlags = UInt32;
  1128. const
  1129. kMovieAnchorDataRefIsDefault = $01; { data ref returned is movie default data ref }
  1130. hintsScrubMode = $01; { mask == && (if flags == scrub on, flags != scrub off) }
  1131. hintsLoop = $02;
  1132. hintsDontPurge = $04;
  1133. hintsUseScreenBuffer = $20;
  1134. hintsAllowInterlace = $40;
  1135. hintsUseSoundInterp = $80;
  1136. hintsHighQuality = $0100; { slooooow }
  1137. hintsPalindrome = $0200;
  1138. hintsInactive = $0800;
  1139. hintsOffscreen = $1000;
  1140. hintsDontDraw = $2000;
  1141. hintsAllowBlacklining = $4000;
  1142. hintsDontUseVideoOverlaySurface = $00010000;
  1143. hintsIgnoreBandwidthRestrictions = $00020000;
  1144. hintsPlayingEveryFrame = $00040000;
  1145. hintsAllowDynamicResize = $00080000;
  1146. hintsSingleField = $00100000;
  1147. hintsNoRenderingTimeOut = $00200000;
  1148. hintsFlushVideoInsteadOfDirtying = $00400000;
  1149. hintsEnableSubPixelPositioning = $00800000;
  1150. type
  1151. playHintsEnum = UInt32;
  1152. const
  1153. mediaHandlerFlagBaseClient = 1;
  1154. type
  1155. mediaHandlerFlagsEnum = UInt32;
  1156. const
  1157. movieTrackMediaType = $01;
  1158. movieTrackCharacteristic = $02;
  1159. movieTrackEnabledOnly = $04;
  1160. type
  1161. SampleReferenceRecordPtr = ^SampleReferenceRecord;
  1162. SampleReferenceRecord = record
  1163. dataOffset: SInt32;
  1164. dataSize: SInt32;
  1165. durationPerSample: TimeValue;
  1166. numberOfSamples: SInt32;
  1167. sampleFlags: SInt16;
  1168. end;
  1169. SampleReferencePtr = ^SampleReferenceRecord;
  1170. SampleReference64RecordPtr = ^SampleReference64Record;
  1171. SampleReference64Record = record
  1172. dataOffset: wide;
  1173. dataSize: UInt32;
  1174. durationPerSample: TimeValue;
  1175. numberOfSamples: UInt32;
  1176. sampleFlags: SInt16;
  1177. end;
  1178. SampleReference64Ptr = ^SampleReference64Record;
  1179. { ************************
  1180. * Initialization Routines
  1181. ************************* }
  1182. {
  1183. * CheckQuickTimeRegistration()
  1184. *
  1185. * Availability:
  1186. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  1187. * CarbonLib: in CarbonLib 1.1 and later
  1188. * Mac OS X: in version 10.0 and later
  1189. * Windows: in qtmlClient.lib 3.0 and later
  1190. }
  1191. procedure CheckQuickTimeRegistration(registrationKey: UnivPtr; flags: SInt32); external name '_CheckQuickTimeRegistration';
  1192. {
  1193. * EnterMovies()
  1194. *
  1195. * Availability:
  1196. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1197. * CarbonLib: in CarbonLib 1.0 and later
  1198. * Mac OS X: in version 10.0 and later
  1199. * Windows: in qtmlClient.lib 3.0 and later
  1200. }
  1201. function EnterMovies: OSErr; external name '_EnterMovies';
  1202. {
  1203. * ExitMovies()
  1204. *
  1205. * Availability:
  1206. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1207. * CarbonLib: in CarbonLib 1.0 and later
  1208. * Mac OS X: in version 10.0 and later
  1209. * Windows: in qtmlClient.lib 3.0 and later
  1210. }
  1211. procedure ExitMovies; external name '_ExitMovies';
  1212. {************************
  1213. * Error Routines
  1214. *************************}
  1215. {
  1216. * GetMoviesError()
  1217. *
  1218. * Availability:
  1219. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1220. * CarbonLib: in CarbonLib 1.0 and later
  1221. * Mac OS X: in version 10.0 and later
  1222. * Windows: in qtmlClient.lib 3.0 and later
  1223. }
  1224. function GetMoviesError: OSErr; external name '_GetMoviesError';
  1225. {
  1226. * ClearMoviesStickyError()
  1227. *
  1228. * Availability:
  1229. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1230. * CarbonLib: in CarbonLib 1.0 and later
  1231. * Mac OS X: in version 10.0 and later
  1232. * Windows: in qtmlClient.lib 3.0 and later
  1233. }
  1234. procedure ClearMoviesStickyError; external name '_ClearMoviesStickyError';
  1235. {
  1236. * GetMoviesStickyError()
  1237. *
  1238. * Availability:
  1239. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1240. * CarbonLib: in CarbonLib 1.0 and later
  1241. * Mac OS X: in version 10.0 and later
  1242. * Windows: in qtmlClient.lib 3.0 and later
  1243. }
  1244. function GetMoviesStickyError: OSErr; external name '_GetMoviesStickyError';
  1245. {
  1246. * SetMoviesErrorProc()
  1247. *
  1248. * Availability:
  1249. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1250. * CarbonLib: in CarbonLib 1.0 and later
  1251. * Mac OS X: in version 10.0 and later
  1252. * Windows: in qtmlClient.lib 3.0 and later
  1253. }
  1254. procedure SetMoviesErrorProc(errProc: MoviesErrorUPP; refcon: SInt32); external name '_SetMoviesErrorProc';
  1255. {************************
  1256. * Idle Routines
  1257. *************************}
  1258. {
  1259. * MoviesTask()
  1260. *
  1261. * Availability:
  1262. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1263. * CarbonLib: in CarbonLib 1.0 and later
  1264. * Mac OS X: in version 10.0 and later
  1265. * Windows: in qtmlClient.lib 3.0 and later
  1266. }
  1267. procedure MoviesTask(theMovie: Movie; maxMilliSecToUse: SInt32); external name '_MoviesTask';
  1268. {
  1269. * PrerollMovie()
  1270. *
  1271. * Availability:
  1272. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1273. * CarbonLib: in CarbonLib 1.0 and later
  1274. * Mac OS X: in version 10.0 and later
  1275. * Windows: in qtmlClient.lib 3.0 and later
  1276. }
  1277. function PrerollMovie(theMovie: Movie; time: TimeValue; Rate: Fixed): OSErr; external name '_PrerollMovie';
  1278. {
  1279. * PrePrerollMovie()
  1280. *
  1281. * Availability:
  1282. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  1283. * CarbonLib: in CarbonLib 1.0.2 and later
  1284. * Mac OS X: in version 10.0 and later
  1285. * Windows: in qtmlClient.lib 4.0 and later
  1286. }
  1287. function PrePrerollMovie(m: Movie; time: TimeValue; rate: Fixed; proc: MoviePrePrerollCompleteUPP; refcon: UnivPtr): OSErr; external name '_PrePrerollMovie';
  1288. {
  1289. * AbortPrePrerollMovie()
  1290. *
  1291. * Availability:
  1292. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  1293. * CarbonLib: in CarbonLib 1.0.2 and later
  1294. * Mac OS X: in version 10.0 and later
  1295. * Windows: in qtmlClient.lib 4.0 and later
  1296. }
  1297. procedure AbortPrePrerollMovie(m: Movie; err: OSErr); external name '_AbortPrePrerollMovie';
  1298. {
  1299. * LoadMovieIntoRam()
  1300. *
  1301. * Availability:
  1302. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1303. * CarbonLib: in CarbonLib 1.0 and later
  1304. * Mac OS X: in version 10.0 and later
  1305. * Windows: in qtmlClient.lib 3.0 and later
  1306. }
  1307. function LoadMovieIntoRam(theMovie: Movie; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadMovieIntoRam';
  1308. {
  1309. * LoadTrackIntoRam()
  1310. *
  1311. * Availability:
  1312. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1313. * CarbonLib: in CarbonLib 1.0 and later
  1314. * Mac OS X: in version 10.0 and later
  1315. * Windows: in qtmlClient.lib 3.0 and later
  1316. }
  1317. function LoadTrackIntoRam(theTrack: Track; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadTrackIntoRam';
  1318. {
  1319. * LoadMediaIntoRam()
  1320. *
  1321. * Availability:
  1322. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1323. * CarbonLib: in CarbonLib 1.0 and later
  1324. * Mac OS X: in version 10.0 and later
  1325. * Windows: in qtmlClient.lib 3.0 and later
  1326. }
  1327. function LoadMediaIntoRam(theMedia: Media; time: TimeValue; duration: TimeValue; flags: SInt32): OSErr; external name '_LoadMediaIntoRam';
  1328. {
  1329. * SetMovieActive()
  1330. *
  1331. * Availability:
  1332. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1333. * CarbonLib: in CarbonLib 1.0 and later
  1334. * Mac OS X: in version 10.0 and later
  1335. * Windows: in qtmlClient.lib 3.0 and later
  1336. }
  1337. procedure SetMovieActive(theMovie: Movie; active: boolean); external name '_SetMovieActive';
  1338. {
  1339. * GetMovieActive()
  1340. *
  1341. * Availability:
  1342. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1343. * CarbonLib: in CarbonLib 1.0 and later
  1344. * Mac OS X: in version 10.0 and later
  1345. * Windows: in qtmlClient.lib 3.0 and later
  1346. }
  1347. function GetMovieActive(theMovie: Movie): boolean; external name '_GetMovieActive';
  1348. {
  1349. * QTGetWallClockTimeBase()
  1350. *
  1351. * Availability:
  1352. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1353. * CarbonLib: in CarbonLib 1.6 and later
  1354. * Mac OS X: in version 10.2 and later
  1355. * Windows: in qtmlClient.lib 6.0 and later
  1356. }
  1357. function QTGetWallClockTimeBase(var wallClockTimeBase: TimeBase): OSErr; external name '_QTGetWallClockTimeBase';
  1358. {************************
  1359. * Idle Management
  1360. *************************}
  1361. type
  1362. IdleManager = ^SInt32; { an opaque 32-bit type }
  1363. IdleManagerPtr = ^IdleManager; { when a var xx:IdleManager parameter can be nil, it is changed to xx: IdleManagerPtr }
  1364. {
  1365. * QTIdleManagerOpen()
  1366. *
  1367. * Availability:
  1368. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1369. * CarbonLib: in CarbonLib 1.6 and later
  1370. * Mac OS X: in version 10.2 and later
  1371. * Windows: in qtmlClient.lib 6.0 and later
  1372. }
  1373. function QTIdleManagerOpen: IdleManager; external name '_QTIdleManagerOpen';
  1374. {
  1375. * QTIdleManagerClose()
  1376. *
  1377. * Availability:
  1378. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1379. * CarbonLib: in CarbonLib 1.6 and later
  1380. * Mac OS X: in version 10.2 and later
  1381. * Windows: in qtmlClient.lib 6.0 and later
  1382. }
  1383. function QTIdleManagerClose(im: IdleManager): OSErr; external name '_QTIdleManagerClose';
  1384. {
  1385. * QTIdleManagerGetNextIdleTime()
  1386. *
  1387. * Availability:
  1388. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1389. * CarbonLib: in CarbonLib 1.6 and later
  1390. * Mac OS X: in version 10.2 and later
  1391. * Windows: in qtmlClient.lib 6.0 and later
  1392. }
  1393. function QTIdleManagerGetNextIdleTime(im: IdleManager; var nextIdle: TimeRecord): OSErr; external name '_QTIdleManagerGetNextIdleTime';
  1394. {
  1395. * QTIdleManagerSetNextIdleTime()
  1396. *
  1397. * Availability:
  1398. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1399. * CarbonLib: in CarbonLib 1.6 and later
  1400. * Mac OS X: in version 10.2 and later
  1401. * Windows: in qtmlClient.lib 6.0 and later
  1402. }
  1403. function QTIdleManagerSetNextIdleTime(im: IdleManager; var nextIdle: TimeRecord): OSErr; external name '_QTIdleManagerSetNextIdleTime';
  1404. {
  1405. * QTIdleManagerSetNextIdleTimeNever()
  1406. *
  1407. * Availability:
  1408. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1409. * CarbonLib: in CarbonLib 1.6 and later
  1410. * Mac OS X: in version 10.2 and later
  1411. * Windows: in qtmlClient.lib 6.0 and later
  1412. }
  1413. function QTIdleManagerSetNextIdleTimeNever(im: IdleManager): OSErr; external name '_QTIdleManagerSetNextIdleTimeNever';
  1414. {
  1415. * QTIdleManagerSetNextIdleTimeNow()
  1416. *
  1417. * Availability:
  1418. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1419. * CarbonLib: in CarbonLib 1.6 and later
  1420. * Mac OS X: in version 10.2 and later
  1421. * Windows: in qtmlClient.lib 6.0 and later
  1422. }
  1423. function QTIdleManagerSetNextIdleTimeNow(im: IdleManager): OSErr; external name '_QTIdleManagerSetNextIdleTimeNow';
  1424. {
  1425. * QTIdleManagerSetNextIdleTimeDelta()
  1426. *
  1427. * Availability:
  1428. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1429. * CarbonLib: in CarbonLib 1.6 and later
  1430. * Mac OS X: in version 10.2 and later
  1431. * Windows: in qtmlClient.lib 6.0 and later
  1432. }
  1433. function QTIdleManagerSetNextIdleTimeDelta(im: IdleManager; duration: TimeValue; scale: TimeScale): OSErr; external name '_QTIdleManagerSetNextIdleTimeDelta';
  1434. {
  1435. * QTIdleManagerSetParent()
  1436. *
  1437. * Availability:
  1438. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1439. * CarbonLib: in CarbonLib 1.6 and later
  1440. * Mac OS X: in version 10.2 and later
  1441. * Windows: in qtmlClient.lib 6.0 and later
  1442. }
  1443. function QTIdleManagerSetParent(im: IdleManager; parent: IdleManager): OSErr; external name '_QTIdleManagerSetParent';
  1444. {
  1445. * QTIdleManagerNeedsAnIdle()
  1446. *
  1447. * Availability:
  1448. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1449. * CarbonLib: in CarbonLib 1.6 and later
  1450. * Mac OS X: in version 10.2 and later
  1451. * Windows: in qtmlClient.lib 6.0 and later
  1452. }
  1453. function QTIdleManagerNeedsAnIdle(im: IdleManager; var needsOne: boolean): OSErr; external name '_QTIdleManagerNeedsAnIdle';
  1454. {************************
  1455. * Carbon Movie Control
  1456. *************************}
  1457. { Movie Control option bits }
  1458. const
  1459. kMovieControlOptionHideController = $00000001;
  1460. kMovieControlOptionLocateTopLeft = $00000002;
  1461. kMovieControlOptionEnableEditing = $00000004;
  1462. kMovieControlOptionHandleEditingHI = $00000008;
  1463. kMovieControlOptionSetKeysEnabled = $00000010;
  1464. kMovieControlOptionManuallyIdled = $00000020;
  1465. { Item tags for use in GetControlData() (some with SetControlData()) calls on Movie Controls }
  1466. kMovieControlDataMovieController = FourCharCode('mc ');
  1467. kMovieControlDataMovie = FourCharCode('moov');
  1468. kMovieControlDataManualIdling = FourCharCode('manu');
  1469. {
  1470. ** CreateMovieControl() - This is the public API routine that creates a Movie Control. Given a window and location
  1471. ** plus a movie, it constructs a Movie Control with a Movie Controller in the window.
  1472. }
  1473. {
  1474. * CreateMovieControl()
  1475. *
  1476. * Availability:
  1477. * Non-Carbon CFM: not available
  1478. * CarbonLib: in CarbonLib 1.6 and later
  1479. * Mac OS X: in version 10.2 and later
  1480. }
  1481. function CreateMovieControl(theWindow: WindowRef; var localRect: Rect; theMovie: Movie; options: UInt32; var returnedControl: ControlRef): OSErr; external name '_CreateMovieControl';
  1482. {************************
  1483. * calls for playing movies, previews, posters
  1484. *************************}
  1485. {
  1486. * StartMovie()
  1487. *
  1488. * Availability:
  1489. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1490. * CarbonLib: in CarbonLib 1.0 and later
  1491. * Mac OS X: in version 10.0 and later
  1492. * Windows: in qtmlClient.lib 3.0 and later
  1493. }
  1494. procedure StartMovie(theMovie: Movie); external name '_StartMovie';
  1495. {
  1496. * StopMovie()
  1497. *
  1498. * Availability:
  1499. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1500. * CarbonLib: in CarbonLib 1.0 and later
  1501. * Mac OS X: in version 10.0 and later
  1502. * Windows: in qtmlClient.lib 3.0 and later
  1503. }
  1504. procedure StopMovie(theMovie: Movie); external name '_StopMovie';
  1505. {
  1506. * GoToBeginningOfMovie()
  1507. *
  1508. * Availability:
  1509. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1510. * CarbonLib: in CarbonLib 1.0 and later
  1511. * Mac OS X: in version 10.0 and later
  1512. * Windows: in qtmlClient.lib 3.0 and later
  1513. }
  1514. procedure GoToBeginningOfMovie(theMovie: Movie); external name '_GoToBeginningOfMovie';
  1515. {
  1516. * GoToEndOfMovie()
  1517. *
  1518. * Availability:
  1519. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1520. * CarbonLib: in CarbonLib 1.0 and later
  1521. * Mac OS X: in version 10.0 and later
  1522. * Windows: in qtmlClient.lib 3.0 and later
  1523. }
  1524. procedure GoToEndOfMovie(theMovie: Movie); external name '_GoToEndOfMovie';
  1525. {
  1526. * IsMovieDone()
  1527. *
  1528. * Availability:
  1529. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1530. * CarbonLib: in CarbonLib 1.0 and later
  1531. * Mac OS X: in version 10.0 and later
  1532. * Windows: in qtmlClient.lib 3.0 and later
  1533. }
  1534. function IsMovieDone(theMovie: Movie): boolean; external name '_IsMovieDone';
  1535. {
  1536. * GetMoviePreviewMode()
  1537. *
  1538. * Availability:
  1539. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1540. * CarbonLib: in CarbonLib 1.0 and later
  1541. * Mac OS X: in version 10.0 and later
  1542. * Windows: in qtmlClient.lib 3.0 and later
  1543. }
  1544. function GetMoviePreviewMode(theMovie: Movie): boolean; external name '_GetMoviePreviewMode';
  1545. {
  1546. * SetMoviePreviewMode()
  1547. *
  1548. * Availability:
  1549. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1550. * CarbonLib: in CarbonLib 1.0 and later
  1551. * Mac OS X: in version 10.0 and later
  1552. * Windows: in qtmlClient.lib 3.0 and later
  1553. }
  1554. procedure SetMoviePreviewMode(theMovie: Movie; usePreview: boolean); external name '_SetMoviePreviewMode';
  1555. {
  1556. * ShowMoviePoster()
  1557. *
  1558. * Availability:
  1559. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1560. * CarbonLib: in CarbonLib 1.0 and later
  1561. * Mac OS X: in version 10.0 and later
  1562. * Windows: in qtmlClient.lib 3.0 and later
  1563. }
  1564. procedure ShowMoviePoster(theMovie: Movie); external name '_ShowMoviePoster';
  1565. {
  1566. * PlayMoviePreview()
  1567. *
  1568. * Availability:
  1569. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1570. * CarbonLib: in CarbonLib 1.0 and later
  1571. * Mac OS X: in version 10.0 and later
  1572. * Windows: in qtmlClient.lib 3.0 and later
  1573. }
  1574. procedure PlayMoviePreview(theMovie: Movie; callOutProc: MoviePreviewCallOutUPP; refcon: SInt32); external name '_PlayMoviePreview';
  1575. {************************
  1576. * calls for controlling movies & tracks which are playing
  1577. *************************}
  1578. {
  1579. * GetMovieTimeBase()
  1580. *
  1581. * Availability:
  1582. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1583. * CarbonLib: in CarbonLib 1.0 and later
  1584. * Mac OS X: in version 10.0 and later
  1585. * Windows: in qtmlClient.lib 3.0 and later
  1586. }
  1587. function GetMovieTimeBase(theMovie: Movie): TimeBase; external name '_GetMovieTimeBase';
  1588. {
  1589. * SetMovieMasterTimeBase()
  1590. *
  1591. * Availability:
  1592. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1593. * CarbonLib: in CarbonLib 1.0 and later
  1594. * Mac OS X: in version 10.0 and later
  1595. * Windows: in qtmlClient.lib 3.0 and later
  1596. }
  1597. procedure SetMovieMasterTimeBase(theMovie: Movie; tb: TimeBase; const (*var*) slaveZero: TimeRecord); external name '_SetMovieMasterTimeBase';
  1598. {
  1599. * SetMovieMasterClock()
  1600. *
  1601. * Availability:
  1602. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1603. * CarbonLib: in CarbonLib 1.0 and later
  1604. * Mac OS X: in version 10.0 and later
  1605. * Windows: in qtmlClient.lib 3.0 and later
  1606. }
  1607. procedure SetMovieMasterClock(theMovie: Movie; clockMeister: Component; const (*var*) slaveZero: TimeRecord); external name '_SetMovieMasterClock';
  1608. {
  1609. * ChooseMovieClock()
  1610. *
  1611. * Availability:
  1612. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1613. * CarbonLib: in CarbonLib 1.6 and later
  1614. * Mac OS X: in version 10.2 and later
  1615. * Windows: in qtmlClient.lib 6.0 and later
  1616. }
  1617. procedure ChooseMovieClock(m: Movie; flags: SInt32); external name '_ChooseMovieClock';
  1618. {
  1619. * GetMovieGWorld()
  1620. *
  1621. * Availability:
  1622. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1623. * CarbonLib: in CarbonLib 1.0 and later
  1624. * Mac OS X: in version 10.0 and later
  1625. * Windows: in qtmlClient.lib 3.0 and later
  1626. }
  1627. procedure GetMovieGWorld(theMovie: Movie; var port: CGrafPtr; var gdh: GDHandle); external name '_GetMovieGWorld';
  1628. {
  1629. * SetMovieGWorld()
  1630. *
  1631. * Availability:
  1632. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1633. * CarbonLib: in CarbonLib 1.0 and later
  1634. * Mac OS X: in version 10.0 and later
  1635. * Windows: in qtmlClient.lib 3.0 and later
  1636. }
  1637. procedure SetMovieGWorld(theMovie: Movie; port: CGrafPtr; gdh: GDHandle); external name '_SetMovieGWorld';
  1638. const
  1639. movieDrawingCallWhenChanged = 0;
  1640. movieDrawingCallAlways = 1;
  1641. {
  1642. * SetMovieDrawingCompleteProc()
  1643. *
  1644. * Availability:
  1645. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1646. * CarbonLib: in CarbonLib 1.0 and later
  1647. * Mac OS X: in version 10.0 and later
  1648. * Windows: in qtmlClient.lib 3.0 and later
  1649. }
  1650. procedure SetMovieDrawingCompleteProc(theMovie: Movie; flags: SInt32; proc: MovieDrawingCompleteUPP; refCon: SInt32); external name '_SetMovieDrawingCompleteProc';
  1651. {
  1652. * GetMovieNaturalBoundsRect()
  1653. *
  1654. * Availability:
  1655. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1656. * CarbonLib: in CarbonLib 1.0 and later
  1657. * Mac OS X: in version 10.0 and later
  1658. * Windows: in qtmlClient.lib 3.0 and later
  1659. }
  1660. procedure GetMovieNaturalBoundsRect(theMovie: Movie; var naturalBounds: Rect); external name '_GetMovieNaturalBoundsRect';
  1661. {
  1662. * GetNextTrackForCompositing()
  1663. *
  1664. * Availability:
  1665. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1666. * CarbonLib: in CarbonLib 1.0 and later
  1667. * Mac OS X: in version 10.0 and later
  1668. * Windows: in qtmlClient.lib 3.0 and later
  1669. }
  1670. function GetNextTrackForCompositing(theMovie: Movie; theTrack: Track): Track; external name '_GetNextTrackForCompositing';
  1671. {
  1672. * GetPrevTrackForCompositing()
  1673. *
  1674. * Availability:
  1675. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1676. * CarbonLib: in CarbonLib 1.0 and later
  1677. * Mac OS X: in version 10.0 and later
  1678. * Windows: in qtmlClient.lib 3.0 and later
  1679. }
  1680. function GetPrevTrackForCompositing(theMovie: Movie; theTrack: Track): Track; external name '_GetPrevTrackForCompositing';
  1681. {
  1682. * SetTrackGWorld()
  1683. *
  1684. * Availability:
  1685. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1686. * CarbonLib: in CarbonLib 1.0 and later
  1687. * Mac OS X: in version 10.0 and later
  1688. * Windows: in qtmlClient.lib 3.0 and later
  1689. }
  1690. procedure SetTrackGWorld(theTrack: Track; port: CGrafPtr; gdh: GDHandle; proc: TrackTransferUPP; refCon: SInt32); external name '_SetTrackGWorld';
  1691. {
  1692. * GetMoviePict()
  1693. *
  1694. * Availability:
  1695. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1696. * CarbonLib: in CarbonLib 1.0 and later
  1697. * Mac OS X: in version 10.0 and later
  1698. * Windows: in qtmlClient.lib 3.0 and later
  1699. }
  1700. function GetMoviePict(theMovie: Movie; time: TimeValue): PicHandle; external name '_GetMoviePict';
  1701. {
  1702. * GetTrackPict()
  1703. *
  1704. * Availability:
  1705. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1706. * CarbonLib: in CarbonLib 1.0 and later
  1707. * Mac OS X: in version 10.0 and later
  1708. * Windows: in qtmlClient.lib 3.0 and later
  1709. }
  1710. function GetTrackPict(theTrack: Track; time: TimeValue): PicHandle; external name '_GetTrackPict';
  1711. {
  1712. * GetMoviePosterPict()
  1713. *
  1714. * Availability:
  1715. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1716. * CarbonLib: in CarbonLib 1.0 and later
  1717. * Mac OS X: in version 10.0 and later
  1718. * Windows: in qtmlClient.lib 3.0 and later
  1719. }
  1720. function GetMoviePosterPict(theMovie: Movie): PicHandle; external name '_GetMoviePosterPict';
  1721. { called between Begin & EndUpdate }
  1722. {
  1723. * UpdateMovie()
  1724. *
  1725. * Availability:
  1726. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1727. * CarbonLib: in CarbonLib 1.0 and later
  1728. * Mac OS X: in version 10.0 and later
  1729. * Windows: in qtmlClient.lib 3.0 and later
  1730. }
  1731. function UpdateMovie(theMovie: Movie): OSErr; external name '_UpdateMovie';
  1732. {
  1733. * InvalidateMovieRegion()
  1734. *
  1735. * Availability:
  1736. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1737. * CarbonLib: in CarbonLib 1.0 and later
  1738. * Mac OS X: in version 10.0 and later
  1739. * Windows: in qtmlClient.lib 3.0 and later
  1740. }
  1741. function InvalidateMovieRegion(theMovie: Movie; invalidRgn: RgnHandle): OSErr; external name '_InvalidateMovieRegion';
  1742. {*** spatial movie routines ***}
  1743. {
  1744. * GetMovieBox()
  1745. *
  1746. * Availability:
  1747. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1748. * CarbonLib: in CarbonLib 1.0 and later
  1749. * Mac OS X: in version 10.0 and later
  1750. * Windows: in qtmlClient.lib 3.0 and later
  1751. }
  1752. procedure GetMovieBox(theMovie: Movie; var boxRect: Rect); external name '_GetMovieBox';
  1753. {
  1754. * SetMovieBox()
  1755. *
  1756. * Availability:
  1757. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1758. * CarbonLib: in CarbonLib 1.0 and later
  1759. * Mac OS X: in version 10.0 and later
  1760. * Windows: in qtmlClient.lib 3.0 and later
  1761. }
  1762. procedure SetMovieBox(theMovie: Movie; const (*var*) boxRect: Rect); external name '_SetMovieBox';
  1763. {* movie display clip }
  1764. {
  1765. * GetMovieDisplayClipRgn()
  1766. *
  1767. * Availability:
  1768. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1769. * CarbonLib: in CarbonLib 1.0 and later
  1770. * Mac OS X: in version 10.0 and later
  1771. * Windows: in qtmlClient.lib 3.0 and later
  1772. }
  1773. function GetMovieDisplayClipRgn(theMovie: Movie): RgnHandle; external name '_GetMovieDisplayClipRgn';
  1774. {
  1775. * SetMovieDisplayClipRgn()
  1776. *
  1777. * Availability:
  1778. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1779. * CarbonLib: in CarbonLib 1.0 and later
  1780. * Mac OS X: in version 10.0 and later
  1781. * Windows: in qtmlClient.lib 3.0 and later
  1782. }
  1783. procedure SetMovieDisplayClipRgn(theMovie: Movie; theClip: RgnHandle); external name '_SetMovieDisplayClipRgn';
  1784. {* movie src clip }
  1785. {
  1786. * GetMovieClipRgn()
  1787. *
  1788. * Availability:
  1789. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1790. * CarbonLib: in CarbonLib 1.0 and later
  1791. * Mac OS X: in version 10.0 and later
  1792. * Windows: in qtmlClient.lib 3.0 and later
  1793. }
  1794. function GetMovieClipRgn(theMovie: Movie): RgnHandle; external name '_GetMovieClipRgn';
  1795. {
  1796. * SetMovieClipRgn()
  1797. *
  1798. * Availability:
  1799. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1800. * CarbonLib: in CarbonLib 1.0 and later
  1801. * Mac OS X: in version 10.0 and later
  1802. * Windows: in qtmlClient.lib 3.0 and later
  1803. }
  1804. procedure SetMovieClipRgn(theMovie: Movie; theClip: RgnHandle); external name '_SetMovieClipRgn';
  1805. {* track src clip }
  1806. {
  1807. * GetTrackClipRgn()
  1808. *
  1809. * Availability:
  1810. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1811. * CarbonLib: in CarbonLib 1.0 and later
  1812. * Mac OS X: in version 10.0 and later
  1813. * Windows: in qtmlClient.lib 3.0 and later
  1814. }
  1815. function GetTrackClipRgn(theTrack: Track): RgnHandle; external name '_GetTrackClipRgn';
  1816. {
  1817. * SetTrackClipRgn()
  1818. *
  1819. * Availability:
  1820. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1821. * CarbonLib: in CarbonLib 1.0 and later
  1822. * Mac OS X: in version 10.0 and later
  1823. * Windows: in qtmlClient.lib 3.0 and later
  1824. }
  1825. procedure SetTrackClipRgn(theTrack: Track; theClip: RgnHandle); external name '_SetTrackClipRgn';
  1826. {* bounds in display space (not clipped by display clip) }
  1827. {
  1828. * GetMovieDisplayBoundsRgn()
  1829. *
  1830. * Availability:
  1831. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1832. * CarbonLib: in CarbonLib 1.0 and later
  1833. * Mac OS X: in version 10.0 and later
  1834. * Windows: in qtmlClient.lib 3.0 and later
  1835. }
  1836. function GetMovieDisplayBoundsRgn(theMovie: Movie): RgnHandle; external name '_GetMovieDisplayBoundsRgn';
  1837. {
  1838. * GetTrackDisplayBoundsRgn()
  1839. *
  1840. * Availability:
  1841. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1842. * CarbonLib: in CarbonLib 1.0 and later
  1843. * Mac OS X: in version 10.0 and later
  1844. * Windows: in qtmlClient.lib 3.0 and later
  1845. }
  1846. function GetTrackDisplayBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackDisplayBoundsRgn';
  1847. {* bounds in movie space }
  1848. {
  1849. * GetMovieBoundsRgn()
  1850. *
  1851. * Availability:
  1852. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1853. * CarbonLib: in CarbonLib 1.0 and later
  1854. * Mac OS X: in version 10.0 and later
  1855. * Windows: in qtmlClient.lib 3.0 and later
  1856. }
  1857. function GetMovieBoundsRgn(theMovie: Movie): RgnHandle; external name '_GetMovieBoundsRgn';
  1858. {
  1859. * GetTrackMovieBoundsRgn()
  1860. *
  1861. * Availability:
  1862. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1863. * CarbonLib: in CarbonLib 1.0 and later
  1864. * Mac OS X: in version 10.0 and later
  1865. * Windows: in qtmlClient.lib 3.0 and later
  1866. }
  1867. function GetTrackMovieBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackMovieBoundsRgn';
  1868. {* bounds in track space }
  1869. {
  1870. * GetTrackBoundsRgn()
  1871. *
  1872. * Availability:
  1873. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1874. * CarbonLib: in CarbonLib 1.0 and later
  1875. * Mac OS X: in version 10.0 and later
  1876. * Windows: in qtmlClient.lib 3.0 and later
  1877. }
  1878. function GetTrackBoundsRgn(theTrack: Track): RgnHandle; external name '_GetTrackBoundsRgn';
  1879. {* mattes - always in track space }
  1880. {
  1881. * GetTrackMatte()
  1882. *
  1883. * Availability:
  1884. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1885. * CarbonLib: in CarbonLib 1.0 and later
  1886. * Mac OS X: in version 10.0 and later
  1887. * Windows: in qtmlClient.lib 3.0 and later
  1888. }
  1889. function GetTrackMatte(theTrack: Track): PixMapHandle; external name '_GetTrackMatte';
  1890. {
  1891. * SetTrackMatte()
  1892. *
  1893. * Availability:
  1894. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1895. * CarbonLib: in CarbonLib 1.0 and later
  1896. * Mac OS X: in version 10.0 and later
  1897. * Windows: in qtmlClient.lib 3.0 and later
  1898. }
  1899. procedure SetTrackMatte(theTrack: Track; theMatte: PixMapHandle); external name '_SetTrackMatte';
  1900. {
  1901. * DisposeMatte()
  1902. *
  1903. * Availability:
  1904. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1905. * CarbonLib: in CarbonLib 1.0 and later
  1906. * Mac OS X: in version 10.0 and later
  1907. * Windows: in qtmlClient.lib 3.0 and later
  1908. }
  1909. procedure DisposeMatte(theMatte: PixMapHandle); external name '_DisposeMatte';
  1910. {* video out }
  1911. {
  1912. * SetMovieVideoOutput()
  1913. *
  1914. * Availability:
  1915. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  1916. * CarbonLib: in CarbonLib 1.3 and later
  1917. * Mac OS X: in version 10.0 and later
  1918. * Windows: in qtmlClient.lib 5.0 and later
  1919. }
  1920. procedure SetMovieVideoOutput(theMovie: Movie; vout: ComponentInstance); external name '_SetMovieVideoOutput';
  1921. {************************
  1922. * calls for getting/saving movies
  1923. *************************}
  1924. {
  1925. * NewMovie()
  1926. *
  1927. * Availability:
  1928. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1929. * CarbonLib: in CarbonLib 1.0 and later
  1930. * Mac OS X: in version 10.0 and later
  1931. * Windows: in qtmlClient.lib 3.0 and later
  1932. }
  1933. function NewMovie(flags: SInt32): Movie; external name '_NewMovie';
  1934. {
  1935. * PutMovieIntoHandle()
  1936. *
  1937. * Availability:
  1938. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1939. * CarbonLib: in CarbonLib 1.0 and later
  1940. * Mac OS X: in version 10.0 and later
  1941. * Windows: in qtmlClient.lib 3.0 and later
  1942. }
  1943. function PutMovieIntoHandle(theMovie: Movie; publicMovie: Handle): OSErr; external name '_PutMovieIntoHandle';
  1944. {
  1945. * PutMovieIntoDataFork()
  1946. *
  1947. * Availability:
  1948. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1949. * CarbonLib: in CarbonLib 1.0 and later
  1950. * Mac OS X: in version 10.0 and later
  1951. * Windows: in qtmlClient.lib 3.0 and later
  1952. }
  1953. function PutMovieIntoDataFork(theMovie: Movie; fRefNum: SInt16; offset: SInt32; maxSize: SInt32): OSErr; external name '_PutMovieIntoDataFork';
  1954. {
  1955. * PutMovieIntoDataFork64()
  1956. *
  1957. * Availability:
  1958. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  1959. * CarbonLib: in CarbonLib 1.0.2 and later
  1960. * Mac OS X: in version 10.0 and later
  1961. * Windows: in qtmlClient.lib 4.0 and later
  1962. }
  1963. function PutMovieIntoDataFork64(theMovie: Movie; fRefNum: SInt32; const (*var*) offset: wide; maxSize: UInt32): OSErr; external name '_PutMovieIntoDataFork64';
  1964. {
  1965. * PutMovieIntoStorage()
  1966. *
  1967. * Availability:
  1968. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1969. * CarbonLib: in CarbonLib 1.6 and later
  1970. * Mac OS X: in version 10.2 and later
  1971. * Windows: in qtmlClient.lib 6.0 and later
  1972. }
  1973. function PutMovieIntoStorage(theMovie: Movie; dh: DataHandler; const (*var*) offset: wide; maxSize: UInt32): OSErr; external name '_PutMovieIntoStorage';
  1974. {
  1975. * PutMovieForDataRefIntoHandle()
  1976. *
  1977. * Availability:
  1978. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  1979. * CarbonLib: in CarbonLib 1.6 and later
  1980. * Mac OS X: in version 10.2 and later
  1981. * Windows: in qtmlClient.lib 6.0 and later
  1982. }
  1983. function PutMovieForDataRefIntoHandle(theMovie: Movie; dataRef: Handle; dataRefType: OSType; publicMovie: Handle): OSErr; external name '_PutMovieForDataRefIntoHandle';
  1984. {
  1985. * DisposeMovie()
  1986. *
  1987. * Availability:
  1988. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1989. * CarbonLib: in CarbonLib 1.0 and later
  1990. * Mac OS X: in version 10.0 and later
  1991. * Windows: in qtmlClient.lib 3.0 and later
  1992. }
  1993. procedure DisposeMovie(theMovie: Movie); external name '_DisposeMovie';
  1994. {************************
  1995. * Movie State Routines
  1996. *************************}
  1997. {
  1998. * GetMovieCreationTime()
  1999. *
  2000. * Availability:
  2001. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2002. * CarbonLib: in CarbonLib 1.0 and later
  2003. * Mac OS X: in version 10.0 and later
  2004. * Windows: in qtmlClient.lib 3.0 and later
  2005. }
  2006. function GetMovieCreationTime(theMovie: Movie): UInt32; external name '_GetMovieCreationTime';
  2007. {
  2008. * GetMovieModificationTime()
  2009. *
  2010. * Availability:
  2011. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2012. * CarbonLib: in CarbonLib 1.0 and later
  2013. * Mac OS X: in version 10.0 and later
  2014. * Windows: in qtmlClient.lib 3.0 and later
  2015. }
  2016. function GetMovieModificationTime(theMovie: Movie): UInt32; external name '_GetMovieModificationTime';
  2017. {
  2018. * GetMovieTimeScale()
  2019. *
  2020. * Availability:
  2021. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2022. * CarbonLib: in CarbonLib 1.0 and later
  2023. * Mac OS X: in version 10.0 and later
  2024. * Windows: in qtmlClient.lib 3.0 and later
  2025. }
  2026. function GetMovieTimeScale(theMovie: Movie): TimeScale; external name '_GetMovieTimeScale';
  2027. {
  2028. * SetMovieTimeScale()
  2029. *
  2030. * Availability:
  2031. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2032. * CarbonLib: in CarbonLib 1.0 and later
  2033. * Mac OS X: in version 10.0 and later
  2034. * Windows: in qtmlClient.lib 3.0 and later
  2035. }
  2036. procedure SetMovieTimeScale(theMovie: Movie; timeScale_: TimeScale); external name '_SetMovieTimeScale';
  2037. {
  2038. * GetMovieDuration()
  2039. *
  2040. * Availability:
  2041. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2042. * CarbonLib: in CarbonLib 1.0 and later
  2043. * Mac OS X: in version 10.0 and later
  2044. * Windows: in qtmlClient.lib 3.0 and later
  2045. }
  2046. function GetMovieDuration(theMovie: Movie): TimeValue; external name '_GetMovieDuration';
  2047. {
  2048. * GetMovieRate()
  2049. *
  2050. * Availability:
  2051. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2052. * CarbonLib: in CarbonLib 1.0 and later
  2053. * Mac OS X: in version 10.0 and later
  2054. * Windows: in qtmlClient.lib 3.0 and later
  2055. }
  2056. function GetMovieRate(theMovie: Movie): Fixed; external name '_GetMovieRate';
  2057. {
  2058. * SetMovieRate()
  2059. *
  2060. * Availability:
  2061. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2062. * CarbonLib: in CarbonLib 1.0 and later
  2063. * Mac OS X: in version 10.0 and later
  2064. * Windows: in qtmlClient.lib 3.0 and later
  2065. }
  2066. procedure SetMovieRate(theMovie: Movie; rate: Fixed); external name '_SetMovieRate';
  2067. {
  2068. * GetMoviePreferredRate()
  2069. *
  2070. * Availability:
  2071. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2072. * CarbonLib: in CarbonLib 1.0 and later
  2073. * Mac OS X: in version 10.0 and later
  2074. * Windows: in qtmlClient.lib 3.0 and later
  2075. }
  2076. function GetMoviePreferredRate(theMovie: Movie): Fixed; external name '_GetMoviePreferredRate';
  2077. {
  2078. * SetMoviePreferredRate()
  2079. *
  2080. * Availability:
  2081. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2082. * CarbonLib: in CarbonLib 1.0 and later
  2083. * Mac OS X: in version 10.0 and later
  2084. * Windows: in qtmlClient.lib 3.0 and later
  2085. }
  2086. procedure SetMoviePreferredRate(theMovie: Movie; rate: Fixed); external name '_SetMoviePreferredRate';
  2087. {
  2088. * GetMoviePreferredVolume()
  2089. *
  2090. * Availability:
  2091. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2092. * CarbonLib: in CarbonLib 1.0 and later
  2093. * Mac OS X: in version 10.0 and later
  2094. * Windows: in qtmlClient.lib 3.0 and later
  2095. }
  2096. function GetMoviePreferredVolume(theMovie: Movie): SInt16; external name '_GetMoviePreferredVolume';
  2097. {
  2098. * SetMoviePreferredVolume()
  2099. *
  2100. * Availability:
  2101. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2102. * CarbonLib: in CarbonLib 1.0 and later
  2103. * Mac OS X: in version 10.0 and later
  2104. * Windows: in qtmlClient.lib 3.0 and later
  2105. }
  2106. procedure SetMoviePreferredVolume(theMovie: Movie; volume: SInt16); external name '_SetMoviePreferredVolume';
  2107. {
  2108. * GetMovieVolume()
  2109. *
  2110. * Availability:
  2111. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2112. * CarbonLib: in CarbonLib 1.0 and later
  2113. * Mac OS X: in version 10.0 and later
  2114. * Windows: in qtmlClient.lib 3.0 and later
  2115. }
  2116. function GetMovieVolume(theMovie: Movie): SInt16; external name '_GetMovieVolume';
  2117. {
  2118. * SetMovieVolume()
  2119. *
  2120. * Availability:
  2121. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2122. * CarbonLib: in CarbonLib 1.0 and later
  2123. * Mac OS X: in version 10.0 and later
  2124. * Windows: in qtmlClient.lib 3.0 and later
  2125. }
  2126. procedure SetMovieVolume(theMovie: Movie; volume: SInt16); external name '_SetMovieVolume';
  2127. {
  2128. * GetMovieMatrix()
  2129. *
  2130. * Availability:
  2131. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2132. * CarbonLib: in CarbonLib 1.0 and later
  2133. * Mac OS X: in version 10.0 and later
  2134. * Windows: in qtmlClient.lib 3.0 and later
  2135. }
  2136. procedure GetMovieMatrix(theMovie: Movie; var matrix: MatrixRecord); external name '_GetMovieMatrix';
  2137. {
  2138. * SetMovieMatrix()
  2139. *
  2140. * Availability:
  2141. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2142. * CarbonLib: in CarbonLib 1.0 and later
  2143. * Mac OS X: in version 10.0 and later
  2144. * Windows: in qtmlClient.lib 3.0 and later
  2145. }
  2146. procedure SetMovieMatrix(theMovie: Movie; const (*var*) matrix: MatrixRecord); external name '_SetMovieMatrix';
  2147. {
  2148. * GetMoviePreviewTime()
  2149. *
  2150. * Availability:
  2151. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2152. * CarbonLib: in CarbonLib 1.0 and later
  2153. * Mac OS X: in version 10.0 and later
  2154. * Windows: in qtmlClient.lib 3.0 and later
  2155. }
  2156. procedure GetMoviePreviewTime(theMovie: Movie; var previewTime: TimeValue; var previewDuration: TimeValue); external name '_GetMoviePreviewTime';
  2157. {
  2158. * SetMoviePreviewTime()
  2159. *
  2160. * Availability:
  2161. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2162. * CarbonLib: in CarbonLib 1.0 and later
  2163. * Mac OS X: in version 10.0 and later
  2164. * Windows: in qtmlClient.lib 3.0 and later
  2165. }
  2166. procedure SetMoviePreviewTime(theMovie: Movie; previewTime: TimeValue; previewDuration: TimeValue); external name '_SetMoviePreviewTime';
  2167. {
  2168. * GetMoviePosterTime()
  2169. *
  2170. * Availability:
  2171. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2172. * CarbonLib: in CarbonLib 1.0 and later
  2173. * Mac OS X: in version 10.0 and later
  2174. * Windows: in qtmlClient.lib 3.0 and later
  2175. }
  2176. function GetMoviePosterTime(theMovie: Movie): TimeValue; external name '_GetMoviePosterTime';
  2177. {
  2178. * SetMoviePosterTime()
  2179. *
  2180. * Availability:
  2181. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2182. * CarbonLib: in CarbonLib 1.0 and later
  2183. * Mac OS X: in version 10.0 and later
  2184. * Windows: in qtmlClient.lib 3.0 and later
  2185. }
  2186. procedure SetMoviePosterTime(theMovie: Movie; posterTime: TimeValue); external name '_SetMoviePosterTime';
  2187. {
  2188. * GetMovieSelection()
  2189. *
  2190. * Availability:
  2191. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2192. * CarbonLib: in CarbonLib 1.0 and later
  2193. * Mac OS X: in version 10.0 and later
  2194. * Windows: in qtmlClient.lib 3.0 and later
  2195. }
  2196. procedure GetMovieSelection(theMovie: Movie; var selectionTime: TimeValue; var selectionDuration: TimeValue); external name '_GetMovieSelection';
  2197. {
  2198. * SetMovieSelection()
  2199. *
  2200. * Availability:
  2201. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2202. * CarbonLib: in CarbonLib 1.0 and later
  2203. * Mac OS X: in version 10.0 and later
  2204. * Windows: in qtmlClient.lib 3.0 and later
  2205. }
  2206. procedure SetMovieSelection(theMovie: Movie; selectionTime: TimeValue; selectionDuration: TimeValue); external name '_SetMovieSelection';
  2207. {
  2208. * SetMovieActiveSegment()
  2209. *
  2210. * Availability:
  2211. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2212. * CarbonLib: in CarbonLib 1.0 and later
  2213. * Mac OS X: in version 10.0 and later
  2214. * Windows: in qtmlClient.lib 3.0 and later
  2215. }
  2216. procedure SetMovieActiveSegment(theMovie: Movie; startTime: TimeValue; duration: TimeValue); external name '_SetMovieActiveSegment';
  2217. {
  2218. * GetMovieActiveSegment()
  2219. *
  2220. * Availability:
  2221. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2222. * CarbonLib: in CarbonLib 1.0 and later
  2223. * Mac OS X: in version 10.0 and later
  2224. * Windows: in qtmlClient.lib 3.0 and later
  2225. }
  2226. procedure GetMovieActiveSegment(theMovie: Movie; var startTime: TimeValue; var duration: TimeValue); external name '_GetMovieActiveSegment';
  2227. {
  2228. * GetMovieTime()
  2229. *
  2230. * Availability:
  2231. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2232. * CarbonLib: in CarbonLib 1.0 and later
  2233. * Mac OS X: in version 10.0 and later
  2234. * Windows: in qtmlClient.lib 3.0 and later
  2235. }
  2236. function GetMovieTime(theMovie: Movie; var currentTime: TimeRecord): TimeValue; external name '_GetMovieTime';
  2237. {
  2238. * SetMovieTime()
  2239. *
  2240. * Availability:
  2241. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2242. * CarbonLib: in CarbonLib 1.0 and later
  2243. * Mac OS X: in version 10.0 and later
  2244. * Windows: in qtmlClient.lib 3.0 and later
  2245. }
  2246. procedure SetMovieTime(theMovie: Movie; const (*var*) newtime: TimeRecord); external name '_SetMovieTime';
  2247. {
  2248. * SetMovieTimeValue()
  2249. *
  2250. * Availability:
  2251. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2252. * CarbonLib: in CarbonLib 1.0 and later
  2253. * Mac OS X: in version 10.0 and later
  2254. * Windows: in qtmlClient.lib 3.0 and later
  2255. }
  2256. procedure SetMovieTimeValue(theMovie: Movie; newtime: TimeValue); external name '_SetMovieTimeValue';
  2257. {
  2258. * GetMovieUserData()
  2259. *
  2260. * Availability:
  2261. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2262. * CarbonLib: in CarbonLib 1.0 and later
  2263. * Mac OS X: in version 10.0 and later
  2264. * Windows: in qtmlClient.lib 3.0 and later
  2265. }
  2266. function GetMovieUserData(theMovie: Movie): UserData; external name '_GetMovieUserData';
  2267. {
  2268. * QTGetTimeUntilNextTask()
  2269. *
  2270. * Availability:
  2271. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  2272. * CarbonLib: in CarbonLib 1.6 and later
  2273. * Mac OS X: in version 10.2 and later
  2274. * Windows: in qtmlClient.lib 6.0 and later
  2275. }
  2276. function QTGetTimeUntilNextTask(var duration: SInt32; scale: SInt32): OSErr; external name '_QTGetTimeUntilNextTask';
  2277. {
  2278. * QTInstallNextTaskNeededSoonerCallback()
  2279. *
  2280. * Availability:
  2281. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  2282. * CarbonLib: in CarbonLib 1.6 and later
  2283. * Mac OS X: in version 10.2 and later
  2284. * Windows: in qtmlClient.lib 6.0 and later
  2285. }
  2286. function QTInstallNextTaskNeededSoonerCallback(callbackProc: QTNextTaskNeededSoonerCallbackUPP; scale: TimeScale; flags: UInt32; refcon: UnivPtr): OSErr; external name '_QTInstallNextTaskNeededSoonerCallback';
  2287. {
  2288. * QTUninstallNextTaskNeededSoonerCallback()
  2289. *
  2290. * Availability:
  2291. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  2292. * CarbonLib: in CarbonLib 1.6 and later
  2293. * Mac OS X: in version 10.2 and later
  2294. * Windows: in qtmlClient.lib 6.0 and later
  2295. }
  2296. function QTUninstallNextTaskNeededSoonerCallback(callbackProc: QTNextTaskNeededSoonerCallbackUPP; refcon: UnivPtr): OSErr; external name '_QTUninstallNextTaskNeededSoonerCallback';
  2297. {************************
  2298. * Track/Media finding routines
  2299. *************************}
  2300. {
  2301. * GetMovieTrackCount()
  2302. *
  2303. * Availability:
  2304. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2305. * CarbonLib: in CarbonLib 1.0 and later
  2306. * Mac OS X: in version 10.0 and later
  2307. * Windows: in qtmlClient.lib 3.0 and later
  2308. }
  2309. function GetMovieTrackCount(theMovie: Movie): SInt32; external name '_GetMovieTrackCount';
  2310. {
  2311. * GetMovieTrack()
  2312. *
  2313. * Availability:
  2314. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2315. * CarbonLib: in CarbonLib 1.0 and later
  2316. * Mac OS X: in version 10.0 and later
  2317. * Windows: in qtmlClient.lib 3.0 and later
  2318. }
  2319. function GetMovieTrack(theMovie: Movie; trackID: SInt32): Track; external name '_GetMovieTrack';
  2320. {
  2321. * GetMovieIndTrack()
  2322. *
  2323. * Availability:
  2324. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2325. * CarbonLib: in CarbonLib 1.0 and later
  2326. * Mac OS X: in version 10.0 and later
  2327. * Windows: in qtmlClient.lib 3.0 and later
  2328. }
  2329. function GetMovieIndTrack(theMovie: Movie; index: SInt32): Track; external name '_GetMovieIndTrack';
  2330. {
  2331. * GetMovieIndTrackType()
  2332. *
  2333. * Availability:
  2334. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2335. * CarbonLib: in CarbonLib 1.0 and later
  2336. * Mac OS X: in version 10.0 and later
  2337. * Windows: in qtmlClient.lib 3.0 and later
  2338. }
  2339. function GetMovieIndTrackType(theMovie: Movie; index: SInt32; trackType: OSType; flags: SInt32): Track; external name '_GetMovieIndTrackType';
  2340. {
  2341. * GetTrackID()
  2342. *
  2343. * Availability:
  2344. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2345. * CarbonLib: in CarbonLib 1.0 and later
  2346. * Mac OS X: in version 10.0 and later
  2347. * Windows: in qtmlClient.lib 3.0 and later
  2348. }
  2349. function GetTrackID(theTrack: Track): SInt32; external name '_GetTrackID';
  2350. {
  2351. * GetTrackMovie()
  2352. *
  2353. * Availability:
  2354. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2355. * CarbonLib: in CarbonLib 1.0 and later
  2356. * Mac OS X: in version 10.0 and later
  2357. * Windows: in qtmlClient.lib 3.0 and later
  2358. }
  2359. function GetTrackMovie(theTrack: Track): Movie; external name '_GetTrackMovie';
  2360. {************************
  2361. * Track creation routines
  2362. *************************}
  2363. {
  2364. * NewMovieTrack()
  2365. *
  2366. * Availability:
  2367. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2368. * CarbonLib: in CarbonLib 1.0 and later
  2369. * Mac OS X: in version 10.0 and later
  2370. * Windows: in qtmlClient.lib 3.0 and later
  2371. }
  2372. function NewMovieTrack(theMovie: Movie; width: Fixed; height: Fixed; trackVolume: SInt16): Track; external name '_NewMovieTrack';
  2373. {
  2374. * DisposeMovieTrack()
  2375. *
  2376. * Availability:
  2377. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2378. * CarbonLib: in CarbonLib 1.0 and later
  2379. * Mac OS X: in version 10.0 and later
  2380. * Windows: in qtmlClient.lib 3.0 and later
  2381. }
  2382. procedure DisposeMovieTrack(theTrack: Track); external name '_DisposeMovieTrack';
  2383. {************************
  2384. * Track State routines
  2385. *************************}
  2386. {
  2387. * GetTrackCreationTime()
  2388. *
  2389. * Availability:
  2390. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2391. * CarbonLib: in CarbonLib 1.0 and later
  2392. * Mac OS X: in version 10.0 and later
  2393. * Windows: in qtmlClient.lib 3.0 and later
  2394. }
  2395. function GetTrackCreationTime(theTrack: Track): UInt32; external name '_GetTrackCreationTime';
  2396. {
  2397. * GetTrackModificationTime()
  2398. *
  2399. * Availability:
  2400. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2401. * CarbonLib: in CarbonLib 1.0 and later
  2402. * Mac OS X: in version 10.0 and later
  2403. * Windows: in qtmlClient.lib 3.0 and later
  2404. }
  2405. function GetTrackModificationTime(theTrack: Track): UInt32; external name '_GetTrackModificationTime';
  2406. {
  2407. * GetTrackEnabled()
  2408. *
  2409. * Availability:
  2410. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2411. * CarbonLib: in CarbonLib 1.0 and later
  2412. * Mac OS X: in version 10.0 and later
  2413. * Windows: in qtmlClient.lib 3.0 and later
  2414. }
  2415. function GetTrackEnabled(theTrack: Track): boolean; external name '_GetTrackEnabled';
  2416. {
  2417. * SetTrackEnabled()
  2418. *
  2419. * Availability:
  2420. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2421. * CarbonLib: in CarbonLib 1.0 and later
  2422. * Mac OS X: in version 10.0 and later
  2423. * Windows: in qtmlClient.lib 3.0 and later
  2424. }
  2425. procedure SetTrackEnabled(theTrack: Track; isEnabled: boolean); external name '_SetTrackEnabled';
  2426. {
  2427. * GetTrackUsage()
  2428. *
  2429. * Availability:
  2430. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2431. * CarbonLib: in CarbonLib 1.0 and later
  2432. * Mac OS X: in version 10.0 and later
  2433. * Windows: in qtmlClient.lib 3.0 and later
  2434. }
  2435. function GetTrackUsage(theTrack: Track): SInt32; external name '_GetTrackUsage';
  2436. {
  2437. * SetTrackUsage()
  2438. *
  2439. * Availability:
  2440. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2441. * CarbonLib: in CarbonLib 1.0 and later
  2442. * Mac OS X: in version 10.0 and later
  2443. * Windows: in qtmlClient.lib 3.0 and later
  2444. }
  2445. procedure SetTrackUsage(theTrack: Track; usage: SInt32); external name '_SetTrackUsage';
  2446. {
  2447. * GetTrackDuration()
  2448. *
  2449. * Availability:
  2450. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2451. * CarbonLib: in CarbonLib 1.0 and later
  2452. * Mac OS X: in version 10.0 and later
  2453. * Windows: in qtmlClient.lib 3.0 and later
  2454. }
  2455. function GetTrackDuration(theTrack: Track): TimeValue; external name '_GetTrackDuration';
  2456. {
  2457. * GetTrackOffset()
  2458. *
  2459. * Availability:
  2460. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2461. * CarbonLib: in CarbonLib 1.0 and later
  2462. * Mac OS X: in version 10.0 and later
  2463. * Windows: in qtmlClient.lib 3.0 and later
  2464. }
  2465. function GetTrackOffset(theTrack: Track): TimeValue; external name '_GetTrackOffset';
  2466. {
  2467. * SetTrackOffset()
  2468. *
  2469. * Availability:
  2470. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2471. * CarbonLib: in CarbonLib 1.0 and later
  2472. * Mac OS X: in version 10.0 and later
  2473. * Windows: in qtmlClient.lib 3.0 and later
  2474. }
  2475. procedure SetTrackOffset(theTrack: Track; movieOffsetTime: TimeValue); external name '_SetTrackOffset';
  2476. {
  2477. * GetTrackLayer()
  2478. *
  2479. * Availability:
  2480. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2481. * CarbonLib: in CarbonLib 1.0 and later
  2482. * Mac OS X: in version 10.0 and later
  2483. * Windows: in qtmlClient.lib 3.0 and later
  2484. }
  2485. function GetTrackLayer(theTrack: Track): SInt16; external name '_GetTrackLayer';
  2486. {
  2487. * SetTrackLayer()
  2488. *
  2489. * Availability:
  2490. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2491. * CarbonLib: in CarbonLib 1.0 and later
  2492. * Mac OS X: in version 10.0 and later
  2493. * Windows: in qtmlClient.lib 3.0 and later
  2494. }
  2495. procedure SetTrackLayer(theTrack: Track; layer: SInt16); external name '_SetTrackLayer';
  2496. {
  2497. * GetTrackAlternate()
  2498. *
  2499. * Availability:
  2500. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2501. * CarbonLib: in CarbonLib 1.0 and later
  2502. * Mac OS X: in version 10.0 and later
  2503. * Windows: in qtmlClient.lib 3.0 and later
  2504. }
  2505. function GetTrackAlternate(theTrack: Track): Track; external name '_GetTrackAlternate';
  2506. {
  2507. * SetTrackAlternate()
  2508. *
  2509. * Availability:
  2510. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2511. * CarbonLib: in CarbonLib 1.0 and later
  2512. * Mac OS X: in version 10.0 and later
  2513. * Windows: in qtmlClient.lib 3.0 and later
  2514. }
  2515. procedure SetTrackAlternate(theTrack: Track; alternateT: Track); external name '_SetTrackAlternate';
  2516. {
  2517. * SetAutoTrackAlternatesEnabled()
  2518. *
  2519. * Availability:
  2520. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2521. * CarbonLib: in CarbonLib 1.0 and later
  2522. * Mac OS X: in version 10.0 and later
  2523. * Windows: in qtmlClient.lib 3.0 and later
  2524. }
  2525. procedure SetAutoTrackAlternatesEnabled(theMovie: Movie; enable: boolean); external name '_SetAutoTrackAlternatesEnabled';
  2526. {
  2527. * SelectMovieAlternates()
  2528. *
  2529. * Availability:
  2530. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2531. * CarbonLib: in CarbonLib 1.0 and later
  2532. * Mac OS X: in version 10.0 and later
  2533. * Windows: in qtmlClient.lib 3.0 and later
  2534. }
  2535. procedure SelectMovieAlternates(theMovie: Movie); external name '_SelectMovieAlternates';
  2536. {
  2537. * GetTrackVolume()
  2538. *
  2539. * Availability:
  2540. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2541. * CarbonLib: in CarbonLib 1.0 and later
  2542. * Mac OS X: in version 10.0 and later
  2543. * Windows: in qtmlClient.lib 3.0 and later
  2544. }
  2545. function GetTrackVolume(theTrack: Track): SInt16; external name '_GetTrackVolume';
  2546. {
  2547. * SetTrackVolume()
  2548. *
  2549. * Availability:
  2550. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2551. * CarbonLib: in CarbonLib 1.0 and later
  2552. * Mac OS X: in version 10.0 and later
  2553. * Windows: in qtmlClient.lib 3.0 and later
  2554. }
  2555. procedure SetTrackVolume(theTrack: Track; volume: SInt16); external name '_SetTrackVolume';
  2556. {
  2557. * GetTrackMatrix()
  2558. *
  2559. * Availability:
  2560. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2561. * CarbonLib: in CarbonLib 1.0 and later
  2562. * Mac OS X: in version 10.0 and later
  2563. * Windows: in qtmlClient.lib 3.0 and later
  2564. }
  2565. procedure GetTrackMatrix(theTrack: Track; var matrix: MatrixRecord); external name '_GetTrackMatrix';
  2566. {
  2567. * SetTrackMatrix()
  2568. *
  2569. * Availability:
  2570. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2571. * CarbonLib: in CarbonLib 1.0 and later
  2572. * Mac OS X: in version 10.0 and later
  2573. * Windows: in qtmlClient.lib 3.0 and later
  2574. }
  2575. procedure SetTrackMatrix(theTrack: Track; const (*var*) matrix: MatrixRecord); external name '_SetTrackMatrix';
  2576. {
  2577. * GetTrackDimensions()
  2578. *
  2579. * Availability:
  2580. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2581. * CarbonLib: in CarbonLib 1.0 and later
  2582. * Mac OS X: in version 10.0 and later
  2583. * Windows: in qtmlClient.lib 3.0 and later
  2584. }
  2585. procedure GetTrackDimensions(theTrack: Track; var width: Fixed; var height: Fixed); external name '_GetTrackDimensions';
  2586. {
  2587. * SetTrackDimensions()
  2588. *
  2589. * Availability:
  2590. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2591. * CarbonLib: in CarbonLib 1.0 and later
  2592. * Mac OS X: in version 10.0 and later
  2593. * Windows: in qtmlClient.lib 3.0 and later
  2594. }
  2595. procedure SetTrackDimensions(theTrack: Track; width: Fixed; height: Fixed); external name '_SetTrackDimensions';
  2596. {
  2597. * GetTrackUserData()
  2598. *
  2599. * Availability:
  2600. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2601. * CarbonLib: in CarbonLib 1.0 and later
  2602. * Mac OS X: in version 10.0 and later
  2603. * Windows: in qtmlClient.lib 3.0 and later
  2604. }
  2605. function GetTrackUserData(theTrack: Track): UserData; external name '_GetTrackUserData';
  2606. {
  2607. * GetTrackDisplayMatrix()
  2608. *
  2609. * Availability:
  2610. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2611. * CarbonLib: in CarbonLib 1.0 and later
  2612. * Mac OS X: in version 10.0 and later
  2613. * Windows: in qtmlClient.lib 3.0 and later
  2614. }
  2615. function GetTrackDisplayMatrix(theTrack: Track; var matrix: MatrixRecord): OSErr; external name '_GetTrackDisplayMatrix';
  2616. {
  2617. * GetTrackSoundLocalizationSettings()
  2618. *
  2619. * Availability:
  2620. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2621. * CarbonLib: in CarbonLib 1.0 and later
  2622. * Mac OS X: in version 10.0 and later
  2623. * Windows: in qtmlClient.lib 3.0 and later
  2624. }
  2625. function GetTrackSoundLocalizationSettings(theTrack: Track; var settings: Handle): OSErr; external name '_GetTrackSoundLocalizationSettings';
  2626. {
  2627. * SetTrackSoundLocalizationSettings()
  2628. *
  2629. * Availability:
  2630. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2631. * CarbonLib: in CarbonLib 1.0 and later
  2632. * Mac OS X: in version 10.0 and later
  2633. * Windows: in qtmlClient.lib 3.0 and later
  2634. }
  2635. function SetTrackSoundLocalizationSettings(theTrack: Track; settings: Handle): OSErr; external name '_SetTrackSoundLocalizationSettings';
  2636. {************************
  2637. * get Media routines
  2638. *************************}
  2639. {
  2640. * NewTrackMedia()
  2641. *
  2642. * Availability:
  2643. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2644. * CarbonLib: in CarbonLib 1.0 and later
  2645. * Mac OS X: in version 10.0 and later
  2646. * Windows: in qtmlClient.lib 3.0 and later
  2647. }
  2648. function NewTrackMedia(theTrack: Track; mediaType: OSType; timeScale_: TimeScale; dataRef: Handle; dataRefType: OSType): Media; external name '_NewTrackMedia';
  2649. {
  2650. * DisposeTrackMedia()
  2651. *
  2652. * Availability:
  2653. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2654. * CarbonLib: in CarbonLib 1.0 and later
  2655. * Mac OS X: in version 10.0 and later
  2656. * Windows: in qtmlClient.lib 3.0 and later
  2657. }
  2658. procedure DisposeTrackMedia(theMedia: Media); external name '_DisposeTrackMedia';
  2659. {
  2660. * GetTrackMedia()
  2661. *
  2662. * Availability:
  2663. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2664. * CarbonLib: in CarbonLib 1.0 and later
  2665. * Mac OS X: in version 10.0 and later
  2666. * Windows: in qtmlClient.lib 3.0 and later
  2667. }
  2668. function GetTrackMedia(theTrack: Track): Media; external name '_GetTrackMedia';
  2669. {
  2670. * GetMediaTrack()
  2671. *
  2672. * Availability:
  2673. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2674. * CarbonLib: in CarbonLib 1.0 and later
  2675. * Mac OS X: in version 10.0 and later
  2676. * Windows: in qtmlClient.lib 3.0 and later
  2677. }
  2678. function GetMediaTrack(theMedia: Media): Track; external name '_GetMediaTrack';
  2679. {************************
  2680. * Media State routines
  2681. *************************}
  2682. {
  2683. * GetMediaCreationTime()
  2684. *
  2685. * Availability:
  2686. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2687. * CarbonLib: in CarbonLib 1.0 and later
  2688. * Mac OS X: in version 10.0 and later
  2689. * Windows: in qtmlClient.lib 3.0 and later
  2690. }
  2691. function GetMediaCreationTime(theMedia: Media): UInt32; external name '_GetMediaCreationTime';
  2692. {
  2693. * GetMediaModificationTime()
  2694. *
  2695. * Availability:
  2696. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2697. * CarbonLib: in CarbonLib 1.0 and later
  2698. * Mac OS X: in version 10.0 and later
  2699. * Windows: in qtmlClient.lib 3.0 and later
  2700. }
  2701. function GetMediaModificationTime(theMedia: Media): UInt32; external name '_GetMediaModificationTime';
  2702. {
  2703. * GetMediaTimeScale()
  2704. *
  2705. * Availability:
  2706. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2707. * CarbonLib: in CarbonLib 1.0 and later
  2708. * Mac OS X: in version 10.0 and later
  2709. * Windows: in qtmlClient.lib 3.0 and later
  2710. }
  2711. function GetMediaTimeScale(theMedia: Media): TimeScale; external name '_GetMediaTimeScale';
  2712. {
  2713. * SetMediaTimeScale()
  2714. *
  2715. * Availability:
  2716. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2717. * CarbonLib: in CarbonLib 1.0 and later
  2718. * Mac OS X: in version 10.0 and later
  2719. * Windows: in qtmlClient.lib 3.0 and later
  2720. }
  2721. procedure SetMediaTimeScale(theMedia: Media; timeScale_: TimeScale); external name '_SetMediaTimeScale';
  2722. {
  2723. * GetMediaDuration()
  2724. *
  2725. * Availability:
  2726. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2727. * CarbonLib: in CarbonLib 1.0 and later
  2728. * Mac OS X: in version 10.0 and later
  2729. * Windows: in qtmlClient.lib 3.0 and later
  2730. }
  2731. function GetMediaDuration(theMedia: Media): TimeValue; external name '_GetMediaDuration';
  2732. {
  2733. * GetMediaLanguage()
  2734. *
  2735. * Availability:
  2736. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2737. * CarbonLib: in CarbonLib 1.0 and later
  2738. * Mac OS X: in version 10.0 and later
  2739. * Windows: in qtmlClient.lib 3.0 and later
  2740. }
  2741. function GetMediaLanguage(theMedia: Media): SInt16; external name '_GetMediaLanguage';
  2742. {
  2743. * SetMediaLanguage()
  2744. *
  2745. * Availability:
  2746. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2747. * CarbonLib: in CarbonLib 1.0 and later
  2748. * Mac OS X: in version 10.0 and later
  2749. * Windows: in qtmlClient.lib 3.0 and later
  2750. }
  2751. procedure SetMediaLanguage(theMedia: Media; language: SInt16); external name '_SetMediaLanguage';
  2752. {
  2753. * GetMediaQuality()
  2754. *
  2755. * Availability:
  2756. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2757. * CarbonLib: in CarbonLib 1.0 and later
  2758. * Mac OS X: in version 10.0 and later
  2759. * Windows: in qtmlClient.lib 3.0 and later
  2760. }
  2761. function GetMediaQuality(theMedia: Media): SInt16; external name '_GetMediaQuality';
  2762. {
  2763. * SetMediaQuality()
  2764. *
  2765. * Availability:
  2766. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2767. * CarbonLib: in CarbonLib 1.0 and later
  2768. * Mac OS X: in version 10.0 and later
  2769. * Windows: in qtmlClient.lib 3.0 and later
  2770. }
  2771. procedure SetMediaQuality(theMedia: Media; quality: SInt16); external name '_SetMediaQuality';
  2772. {
  2773. * GetMediaHandlerDescription()
  2774. *
  2775. * Availability:
  2776. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2777. * CarbonLib: in CarbonLib 1.0 and later
  2778. * Mac OS X: in version 10.0 and later
  2779. * Windows: in qtmlClient.lib 3.0 and later
  2780. }
  2781. procedure GetMediaHandlerDescription(theMedia: Media; var mediaType: OSType; var creatorName: Str255; var creatorManufacturer: OSType); external name '_GetMediaHandlerDescription';
  2782. {
  2783. * GetMediaUserData()
  2784. *
  2785. * Availability:
  2786. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2787. * CarbonLib: in CarbonLib 1.0 and later
  2788. * Mac OS X: in version 10.0 and later
  2789. * Windows: in qtmlClient.lib 3.0 and later
  2790. }
  2791. function GetMediaUserData(theMedia: Media): UserData; external name '_GetMediaUserData';
  2792. {
  2793. * GetMediaInputMap()
  2794. *
  2795. * Availability:
  2796. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2797. * CarbonLib: in CarbonLib 1.0 and later
  2798. * Mac OS X: in version 10.0 and later
  2799. * Windows: in qtmlClient.lib 3.0 and later
  2800. }
  2801. function GetMediaInputMap(theMedia: Media; var inputMap: QTAtomContainer): OSErr; external name '_GetMediaInputMap';
  2802. {
  2803. * SetMediaInputMap()
  2804. *
  2805. * Availability:
  2806. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2807. * CarbonLib: in CarbonLib 1.0 and later
  2808. * Mac OS X: in version 10.0 and later
  2809. * Windows: in qtmlClient.lib 3.0 and later
  2810. }
  2811. function SetMediaInputMap(theMedia: Media; inputMap: QTAtomContainer): OSErr; external name '_SetMediaInputMap';
  2812. {************************
  2813. * Media Handler routines
  2814. *************************}
  2815. {
  2816. * GetMediaHandler()
  2817. *
  2818. * Availability:
  2819. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2820. * CarbonLib: in CarbonLib 1.0 and later
  2821. * Mac OS X: in version 10.0 and later
  2822. * Windows: in qtmlClient.lib 3.0 and later
  2823. }
  2824. function GetMediaHandler(theMedia: Media): MediaHandler; external name '_GetMediaHandler';
  2825. {
  2826. * SetMediaHandler()
  2827. *
  2828. * Availability:
  2829. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2830. * CarbonLib: in CarbonLib 1.0 and later
  2831. * Mac OS X: in version 10.0 and later
  2832. * Windows: in qtmlClient.lib 3.0 and later
  2833. }
  2834. function SetMediaHandler(theMedia: Media; mH: MediaHandlerComponent): OSErr; external name '_SetMediaHandler';
  2835. {************************
  2836. * Media's Data routines
  2837. *************************}
  2838. {
  2839. * BeginMediaEdits()
  2840. *
  2841. * Availability:
  2842. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2843. * CarbonLib: in CarbonLib 1.0 and later
  2844. * Mac OS X: in version 10.0 and later
  2845. * Windows: in qtmlClient.lib 3.0 and later
  2846. }
  2847. function BeginMediaEdits(theMedia: Media): OSErr; external name '_BeginMediaEdits';
  2848. {
  2849. * EndMediaEdits()
  2850. *
  2851. * Availability:
  2852. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2853. * CarbonLib: in CarbonLib 1.0 and later
  2854. * Mac OS X: in version 10.0 and later
  2855. * Windows: in qtmlClient.lib 3.0 and later
  2856. }
  2857. function EndMediaEdits(theMedia: Media): OSErr; external name '_EndMediaEdits';
  2858. {
  2859. * SetMediaDefaultDataRefIndex()
  2860. *
  2861. * Availability:
  2862. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2863. * CarbonLib: in CarbonLib 1.0 and later
  2864. * Mac OS X: in version 10.0 and later
  2865. * Windows: in qtmlClient.lib 3.0 and later
  2866. }
  2867. function SetMediaDefaultDataRefIndex(theMedia: Media; index: SInt16): OSErr; external name '_SetMediaDefaultDataRefIndex';
  2868. {
  2869. * GetMediaDataHandlerDescription()
  2870. *
  2871. * Availability:
  2872. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2873. * CarbonLib: in CarbonLib 1.0 and later
  2874. * Mac OS X: in version 10.0 and later
  2875. * Windows: in qtmlClient.lib 3.0 and later
  2876. }
  2877. procedure GetMediaDataHandlerDescription(theMedia: Media; index: SInt16; var dhType: OSType; var creatorName: Str255; var creatorManufacturer: OSType); external name '_GetMediaDataHandlerDescription';
  2878. {
  2879. * GetMediaDataHandler()
  2880. *
  2881. * Availability:
  2882. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2883. * CarbonLib: in CarbonLib 1.0 and later
  2884. * Mac OS X: in version 10.0 and later
  2885. * Windows: in qtmlClient.lib 3.0 and later
  2886. }
  2887. function GetMediaDataHandler(theMedia: Media; index: SInt16): DataHandler; external name '_GetMediaDataHandler';
  2888. {
  2889. * SetMediaDataHandler()
  2890. *
  2891. * Availability:
  2892. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2893. * CarbonLib: in CarbonLib 1.0 and later
  2894. * Mac OS X: in version 10.0 and later
  2895. * Windows: in qtmlClient.lib 3.0 and later
  2896. }
  2897. function SetMediaDataHandler(theMedia: Media; index: SInt16; dataHandler: DataHandlerComponent): OSErr; external name '_SetMediaDataHandler';
  2898. {
  2899. * GetDataHandler()
  2900. *
  2901. * Availability:
  2902. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2903. * CarbonLib: in CarbonLib 1.0 and later
  2904. * Mac OS X: in version 10.0 and later
  2905. * Windows: in qtmlClient.lib 3.0 and later
  2906. }
  2907. function GetDataHandler(dataRef: Handle; dataHandlerSubType: OSType; flags: SInt32): Component; external name '_GetDataHandler';
  2908. {
  2909. * OpenADataHandler()
  2910. *
  2911. * Availability:
  2912. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  2913. * CarbonLib: in CarbonLib 1.1 and later
  2914. * Mac OS X: in version 10.0 and later
  2915. * Windows: in qtmlClient.lib 4.1 and later
  2916. }
  2917. function OpenADataHandler(dataRef: Handle; dataHandlerSubType: OSType; anchorDataRef: Handle; anchorDataRefType: OSType; tb: TimeBase; flags: SInt32; var dh: ComponentInstance): OSErr; external name '_OpenADataHandler';
  2918. {************************
  2919. * Media Sample Table Routines
  2920. *************************}
  2921. {
  2922. * GetMediaSampleDescriptionCount()
  2923. *
  2924. * Availability:
  2925. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2926. * CarbonLib: in CarbonLib 1.0 and later
  2927. * Mac OS X: in version 10.0 and later
  2928. * Windows: in qtmlClient.lib 3.0 and later
  2929. }
  2930. function GetMediaSampleDescriptionCount(theMedia: Media): SInt32; external name '_GetMediaSampleDescriptionCount';
  2931. {
  2932. * GetMediaSampleDescription()
  2933. *
  2934. * Availability:
  2935. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2936. * CarbonLib: in CarbonLib 1.0 and later
  2937. * Mac OS X: in version 10.0 and later
  2938. * Windows: in qtmlClient.lib 3.0 and later
  2939. }
  2940. procedure GetMediaSampleDescription(theMedia: Media; index: SInt32; descH: SampleDescriptionHandle); external name '_GetMediaSampleDescription';
  2941. {
  2942. * SetMediaSampleDescription()
  2943. *
  2944. * Availability:
  2945. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2946. * CarbonLib: in CarbonLib 1.0 and later
  2947. * Mac OS X: in version 10.0 and later
  2948. * Windows: in qtmlClient.lib 3.0 and later
  2949. }
  2950. function SetMediaSampleDescription(theMedia: Media; index: SInt32; descH: SampleDescriptionHandle): OSErr; external name '_SetMediaSampleDescription';
  2951. {
  2952. * GetMediaSampleCount()
  2953. *
  2954. * Availability:
  2955. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2956. * CarbonLib: in CarbonLib 1.0 and later
  2957. * Mac OS X: in version 10.0 and later
  2958. * Windows: in qtmlClient.lib 3.0 and later
  2959. }
  2960. function GetMediaSampleCount(theMedia: Media): SInt32; external name '_GetMediaSampleCount';
  2961. {
  2962. * GetMediaSyncSampleCount()
  2963. *
  2964. * Availability:
  2965. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2966. * CarbonLib: in CarbonLib 1.0 and later
  2967. * Mac OS X: in version 10.0 and later
  2968. * Windows: in qtmlClient.lib 3.0 and later
  2969. }
  2970. function GetMediaSyncSampleCount(theMedia: Media): SInt32; external name '_GetMediaSyncSampleCount';
  2971. {
  2972. * SampleNumToMediaTime()
  2973. *
  2974. * Availability:
  2975. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2976. * CarbonLib: in CarbonLib 1.0 and later
  2977. * Mac OS X: in version 10.0 and later
  2978. * Windows: in qtmlClient.lib 3.0 and later
  2979. }
  2980. procedure SampleNumToMediaTime(theMedia: Media; logicalSampleNum: SInt32; var sampleTime: TimeValue; var sampleDuration: TimeValue); external name '_SampleNumToMediaTime';
  2981. {
  2982. * MediaTimeToSampleNum()
  2983. *
  2984. * Availability:
  2985. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2986. * CarbonLib: in CarbonLib 1.0 and later
  2987. * Mac OS X: in version 10.0 and later
  2988. * Windows: in qtmlClient.lib 3.0 and later
  2989. }
  2990. procedure MediaTimeToSampleNum(theMedia: Media; time: TimeValue; var sampleNum: SInt32; var sampleTime: TimeValue; var sampleDuration: TimeValue); external name '_MediaTimeToSampleNum';
  2991. {
  2992. * AddMediaSample()
  2993. *
  2994. * Availability:
  2995. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2996. * CarbonLib: in CarbonLib 1.0 and later
  2997. * Mac OS X: in version 10.0 and later
  2998. * Windows: in qtmlClient.lib 3.0 and later
  2999. }
  3000. 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';
  3001. {
  3002. * AddMediaSampleReference()
  3003. *
  3004. * Availability:
  3005. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3006. * CarbonLib: in CarbonLib 1.0 and later
  3007. * Mac OS X: in version 10.0 and later
  3008. * Windows: in qtmlClient.lib 3.0 and later
  3009. }
  3010. function AddMediaSampleReference(theMedia: Media; dataOffset: SInt32; size: UInt32; durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleFlags: SInt16; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReference';
  3011. {
  3012. * AddMediaSampleReferences()
  3013. *
  3014. * Availability:
  3015. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3016. * CarbonLib: in CarbonLib 1.0 and later
  3017. * Mac OS X: in version 10.0 and later
  3018. * Windows: in qtmlClient.lib 3.0 and later
  3019. }
  3020. function AddMediaSampleReferences(theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleRefs: SampleReferencePtr; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReferences';
  3021. {
  3022. * AddMediaSampleReferences64()
  3023. *
  3024. * Availability:
  3025. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3026. * CarbonLib: in CarbonLib 1.0.2 and later
  3027. * Mac OS X: in version 10.0 and later
  3028. * Windows: in qtmlClient.lib 4.0 and later
  3029. }
  3030. function AddMediaSampleReferences64(theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: SInt32; sampleRefs: SampleReference64Ptr; var sampleTime: TimeValue): OSErr; external name '_AddMediaSampleReferences64';
  3031. {
  3032. * GetMediaSample()
  3033. *
  3034. * Availability:
  3035. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3036. * CarbonLib: in CarbonLib 1.0 and later
  3037. * Mac OS X: in version 10.0 and later
  3038. * Windows: in qtmlClient.lib 3.0 and later
  3039. }
  3040. 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';
  3041. {
  3042. * GetMediaSampleReference()
  3043. *
  3044. * Availability:
  3045. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3046. * CarbonLib: in CarbonLib 1.0 and later
  3047. * Mac OS X: in version 10.0 and later
  3048. * Windows: in qtmlClient.lib 3.0 and later
  3049. }
  3050. 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';
  3051. {
  3052. * GetMediaSampleReferences()
  3053. *
  3054. * Availability:
  3055. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3056. * CarbonLib: in CarbonLib 1.0 and later
  3057. * Mac OS X: in version 10.0 and later
  3058. * Windows: in qtmlClient.lib 3.0 and later
  3059. }
  3060. 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';
  3061. {
  3062. * GetMediaSampleReferences64()
  3063. *
  3064. * Availability:
  3065. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3066. * CarbonLib: in CarbonLib 1.0.2 and later
  3067. * Mac OS X: in version 10.0 and later
  3068. * Windows: in qtmlClient.lib 4.0 and later
  3069. }
  3070. 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';
  3071. {
  3072. * SetMediaPreferredChunkSize()
  3073. *
  3074. * Availability:
  3075. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3076. * CarbonLib: in CarbonLib 1.0 and later
  3077. * Mac OS X: in version 10.0 and later
  3078. * Windows: in qtmlClient.lib 3.0 and later
  3079. }
  3080. function SetMediaPreferredChunkSize(theMedia: Media; maxChunkSize: SInt32): OSErr; external name '_SetMediaPreferredChunkSize';
  3081. {
  3082. * GetMediaPreferredChunkSize()
  3083. *
  3084. * Availability:
  3085. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3086. * CarbonLib: in CarbonLib 1.0 and later
  3087. * Mac OS X: in version 10.0 and later
  3088. * Windows: in qtmlClient.lib 3.0 and later
  3089. }
  3090. function GetMediaPreferredChunkSize(theMedia: Media; var maxChunkSize: SInt32): OSErr; external name '_GetMediaPreferredChunkSize';
  3091. {
  3092. * SetMediaShadowSync()
  3093. *
  3094. * Availability:
  3095. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3096. * CarbonLib: in CarbonLib 1.0 and later
  3097. * Mac OS X: in version 10.0 and later
  3098. * Windows: in qtmlClient.lib 3.0 and later
  3099. }
  3100. function SetMediaShadowSync(theMedia: Media; frameDiffSampleNum: SInt32; syncSampleNum: SInt32): OSErr; external name '_SetMediaShadowSync';
  3101. {
  3102. * GetMediaShadowSync()
  3103. *
  3104. * Availability:
  3105. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3106. * CarbonLib: in CarbonLib 1.0 and later
  3107. * Mac OS X: in version 10.0 and later
  3108. * Windows: in qtmlClient.lib 3.0 and later
  3109. }
  3110. function GetMediaShadowSync(theMedia: Media; frameDiffSampleNum: SInt32; var syncSampleNum: SInt32): OSErr; external name '_GetMediaShadowSync';
  3111. {************************
  3112. * Editing Routines
  3113. *************************}
  3114. {
  3115. * InsertMediaIntoTrack()
  3116. *
  3117. * Availability:
  3118. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3119. * CarbonLib: in CarbonLib 1.0 and later
  3120. * Mac OS X: in version 10.0 and later
  3121. * Windows: in qtmlClient.lib 3.0 and later
  3122. }
  3123. function InsertMediaIntoTrack(theTrack: Track; trackStart: TimeValue; mediaTime: TimeValue; mediaDuration: TimeValue; mediaRate: Fixed): OSErr; external name '_InsertMediaIntoTrack';
  3124. {
  3125. * InsertTrackSegment()
  3126. *
  3127. * Availability:
  3128. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3129. * CarbonLib: in CarbonLib 1.0 and later
  3130. * Mac OS X: in version 10.0 and later
  3131. * Windows: in qtmlClient.lib 3.0 and later
  3132. }
  3133. function InsertTrackSegment(srcTrack: Track; dstTrack: Track; srcIn: TimeValue; srcDuration: TimeValue; dstIn: TimeValue): OSErr; external name '_InsertTrackSegment';
  3134. {
  3135. * InsertMovieSegment()
  3136. *
  3137. * Availability:
  3138. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3139. * CarbonLib: in CarbonLib 1.0 and later
  3140. * Mac OS X: in version 10.0 and later
  3141. * Windows: in qtmlClient.lib 3.0 and later
  3142. }
  3143. function InsertMovieSegment(srcMovie: Movie; dstMovie: Movie; srcIn: TimeValue; srcDuration: TimeValue; dstIn: TimeValue): OSErr; external name '_InsertMovieSegment';
  3144. {
  3145. * InsertEmptyTrackSegment()
  3146. *
  3147. * Availability:
  3148. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3149. * CarbonLib: in CarbonLib 1.0 and later
  3150. * Mac OS X: in version 10.0 and later
  3151. * Windows: in qtmlClient.lib 3.0 and later
  3152. }
  3153. function InsertEmptyTrackSegment(dstTrack: Track; dstIn: TimeValue; dstDuration: TimeValue): OSErr; external name '_InsertEmptyTrackSegment';
  3154. {
  3155. * InsertEmptyMovieSegment()
  3156. *
  3157. * Availability:
  3158. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3159. * CarbonLib: in CarbonLib 1.0 and later
  3160. * Mac OS X: in version 10.0 and later
  3161. * Windows: in qtmlClient.lib 3.0 and later
  3162. }
  3163. function InsertEmptyMovieSegment(dstMovie: Movie; dstIn: TimeValue; dstDuration: TimeValue): OSErr; external name '_InsertEmptyMovieSegment';
  3164. {
  3165. * DeleteTrackSegment()
  3166. *
  3167. * Availability:
  3168. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3169. * CarbonLib: in CarbonLib 1.0 and later
  3170. * Mac OS X: in version 10.0 and later
  3171. * Windows: in qtmlClient.lib 3.0 and later
  3172. }
  3173. function DeleteTrackSegment(theTrack: Track; startTime: TimeValue; duration: TimeValue): OSErr; external name '_DeleteTrackSegment';
  3174. {
  3175. * DeleteMovieSegment()
  3176. *
  3177. * Availability:
  3178. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3179. * CarbonLib: in CarbonLib 1.0 and later
  3180. * Mac OS X: in version 10.0 and later
  3181. * Windows: in qtmlClient.lib 3.0 and later
  3182. }
  3183. function DeleteMovieSegment(theMovie: Movie; startTime: TimeValue; duration: TimeValue): OSErr; external name '_DeleteMovieSegment';
  3184. {
  3185. * ScaleTrackSegment()
  3186. *
  3187. * Availability:
  3188. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3189. * CarbonLib: in CarbonLib 1.0 and later
  3190. * Mac OS X: in version 10.0 and later
  3191. * Windows: in qtmlClient.lib 3.0 and later
  3192. }
  3193. function ScaleTrackSegment(theTrack: Track; startTime: TimeValue; oldDuration: TimeValue; newDuration: TimeValue): OSErr; external name '_ScaleTrackSegment';
  3194. {
  3195. * ScaleMovieSegment()
  3196. *
  3197. * Availability:
  3198. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3199. * CarbonLib: in CarbonLib 1.0 and later
  3200. * Mac OS X: in version 10.0 and later
  3201. * Windows: in qtmlClient.lib 3.0 and later
  3202. }
  3203. function ScaleMovieSegment(theMovie: Movie; startTime: TimeValue; oldDuration: TimeValue; newDuration: TimeValue): OSErr; external name '_ScaleMovieSegment';
  3204. {************************
  3205. * Hi-level Editing Routines
  3206. *************************}
  3207. {
  3208. * CutMovieSelection()
  3209. *
  3210. * Availability:
  3211. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3212. * CarbonLib: in CarbonLib 1.0 and later
  3213. * Mac OS X: in version 10.0 and later
  3214. * Windows: in qtmlClient.lib 3.0 and later
  3215. }
  3216. function CutMovieSelection(theMovie: Movie): Movie; external name '_CutMovieSelection';
  3217. {
  3218. * CopyMovieSelection()
  3219. *
  3220. * Availability:
  3221. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3222. * CarbonLib: in CarbonLib 1.0 and later
  3223. * Mac OS X: in version 10.0 and later
  3224. * Windows: in qtmlClient.lib 3.0 and later
  3225. }
  3226. function CopyMovieSelection(theMovie: Movie): Movie; external name '_CopyMovieSelection';
  3227. {
  3228. * PasteMovieSelection()
  3229. *
  3230. * Availability:
  3231. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3232. * CarbonLib: in CarbonLib 1.0 and later
  3233. * Mac OS X: in version 10.0 and later
  3234. * Windows: in qtmlClient.lib 3.0 and later
  3235. }
  3236. procedure PasteMovieSelection(theMovie: Movie; src: Movie); external name '_PasteMovieSelection';
  3237. {
  3238. * AddMovieSelection()
  3239. *
  3240. * Availability:
  3241. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3242. * CarbonLib: in CarbonLib 1.0 and later
  3243. * Mac OS X: in version 10.0 and later
  3244. * Windows: in qtmlClient.lib 3.0 and later
  3245. }
  3246. procedure AddMovieSelection(theMovie: Movie; src: Movie); external name '_AddMovieSelection';
  3247. {
  3248. * ClearMovieSelection()
  3249. *
  3250. * Availability:
  3251. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3252. * CarbonLib: in CarbonLib 1.0 and later
  3253. * Mac OS X: in version 10.0 and later
  3254. * Windows: in qtmlClient.lib 3.0 and later
  3255. }
  3256. procedure ClearMovieSelection(theMovie: Movie); external name '_ClearMovieSelection';
  3257. {
  3258. * PasteHandleIntoMovie()
  3259. *
  3260. * Availability:
  3261. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3262. * CarbonLib: in CarbonLib 1.0 and later
  3263. * Mac OS X: in version 10.0 and later
  3264. * Windows: in qtmlClient.lib 3.0 and later
  3265. }
  3266. function PasteHandleIntoMovie(h: Handle; handleType: OSType; theMovie: Movie; flags: SInt32; userComp: ComponentInstance): OSErr; external name '_PasteHandleIntoMovie';
  3267. {
  3268. * PutMovieIntoTypedHandle()
  3269. *
  3270. * Availability:
  3271. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3272. * CarbonLib: in CarbonLib 1.0 and later
  3273. * Mac OS X: in version 10.0 and later
  3274. * Windows: in qtmlClient.lib 3.0 and later
  3275. }
  3276. function PutMovieIntoTypedHandle(theMovie: Movie; targetTrack: Track; handleType: OSType; publicMovie: Handle; start: TimeValue; dur: TimeValue; flags: SInt32; userComp: ComponentInstance): OSErr; external name '_PutMovieIntoTypedHandle';
  3277. {
  3278. * IsScrapMovie()
  3279. *
  3280. * Availability:
  3281. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3282. * CarbonLib: in CarbonLib 1.0 and later
  3283. * Mac OS X: in version 10.0 and later
  3284. * Windows: in qtmlClient.lib 3.0 and later
  3285. }
  3286. function IsScrapMovie(targetTrack: Track): Component; external name '_IsScrapMovie';
  3287. {************************
  3288. * Middle-level Editing Routines
  3289. *************************}
  3290. {
  3291. * CopyTrackSettings()
  3292. *
  3293. * Availability:
  3294. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3295. * CarbonLib: in CarbonLib 1.0 and later
  3296. * Mac OS X: in version 10.0 and later
  3297. * Windows: in qtmlClient.lib 3.0 and later
  3298. }
  3299. function CopyTrackSettings(srcTrack: Track; dstTrack: Track): OSErr; external name '_CopyTrackSettings';
  3300. {
  3301. * CopyMovieSettings()
  3302. *
  3303. * Availability:
  3304. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3305. * CarbonLib: in CarbonLib 1.0 and later
  3306. * Mac OS X: in version 10.0 and later
  3307. * Windows: in qtmlClient.lib 3.0 and later
  3308. }
  3309. function CopyMovieSettings(srcMovie: Movie; dstMovie: Movie): OSErr; external name '_CopyMovieSettings';
  3310. {
  3311. * AddEmptyTrackToMovie()
  3312. *
  3313. * Availability:
  3314. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3315. * CarbonLib: in CarbonLib 1.0 and later
  3316. * Mac OS X: in version 10.0 and later
  3317. * Windows: in qtmlClient.lib 3.0 and later
  3318. }
  3319. function AddEmptyTrackToMovie(srcTrack: Track; dstMovie: Movie; dataRef: Handle; dataRefType: OSType; var dstTrack: Track): OSErr; external name '_AddEmptyTrackToMovie';
  3320. const
  3321. kQTCloneShareSamples = $01;
  3322. kQTCloneDontCopyEdits = $02;
  3323. {
  3324. * AddClonedTrackToMovie()
  3325. *
  3326. * Availability:
  3327. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  3328. * CarbonLib: in CarbonLib 1.3 and later
  3329. * Mac OS X: in version 10.0 and later
  3330. * Windows: in qtmlClient.lib 5.0 and later
  3331. }
  3332. function AddClonedTrackToMovie(srcTrack: Track; dstMovie: Movie; flags: SInt32; var dstTrack: Track): OSErr; external name '_AddClonedTrackToMovie';
  3333. {************************
  3334. * movie & track edit state routines
  3335. *************************}
  3336. {
  3337. * NewMovieEditState()
  3338. *
  3339. * Availability:
  3340. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3341. * CarbonLib: in CarbonLib 1.0 and later
  3342. * Mac OS X: in version 10.0 and later
  3343. * Windows: in qtmlClient.lib 3.0 and later
  3344. }
  3345. function NewMovieEditState(theMovie: Movie): MovieEditState; external name '_NewMovieEditState';
  3346. {
  3347. * UseMovieEditState()
  3348. *
  3349. * Availability:
  3350. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3351. * CarbonLib: in CarbonLib 1.0 and later
  3352. * Mac OS X: in version 10.0 and later
  3353. * Windows: in qtmlClient.lib 3.0 and later
  3354. }
  3355. function UseMovieEditState(theMovie: Movie; toState: MovieEditState): OSErr; external name '_UseMovieEditState';
  3356. {
  3357. * DisposeMovieEditState()
  3358. *
  3359. * Availability:
  3360. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3361. * CarbonLib: in CarbonLib 1.0 and later
  3362. * Mac OS X: in version 10.0 and later
  3363. * Windows: in qtmlClient.lib 3.0 and later
  3364. }
  3365. function DisposeMovieEditState(state: MovieEditState): OSErr; external name '_DisposeMovieEditState';
  3366. {
  3367. * NewTrackEditState()
  3368. *
  3369. * Availability:
  3370. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3371. * CarbonLib: in CarbonLib 1.0 and later
  3372. * Mac OS X: in version 10.0 and later
  3373. * Windows: in qtmlClient.lib 3.0 and later
  3374. }
  3375. function NewTrackEditState(theTrack: Track): TrackEditState; external name '_NewTrackEditState';
  3376. {
  3377. * UseTrackEditState()
  3378. *
  3379. * Availability:
  3380. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3381. * CarbonLib: in CarbonLib 1.0 and later
  3382. * Mac OS X: in version 10.0 and later
  3383. * Windows: in qtmlClient.lib 3.0 and later
  3384. }
  3385. function UseTrackEditState(theTrack: Track; state: TrackEditState): OSErr; external name '_UseTrackEditState';
  3386. {
  3387. * DisposeTrackEditState()
  3388. *
  3389. * Availability:
  3390. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3391. * CarbonLib: in CarbonLib 1.0 and later
  3392. * Mac OS X: in version 10.0 and later
  3393. * Windows: in qtmlClient.lib 3.0 and later
  3394. }
  3395. function DisposeTrackEditState(state: TrackEditState): OSErr; external name '_DisposeTrackEditState';
  3396. {************************
  3397. * track reference routines
  3398. *************************}
  3399. {
  3400. * AddTrackReference()
  3401. *
  3402. * Availability:
  3403. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3404. * CarbonLib: in CarbonLib 1.0 and later
  3405. * Mac OS X: in version 10.0 and later
  3406. * Windows: in qtmlClient.lib 3.0 and later
  3407. }
  3408. function AddTrackReference(theTrack: Track; refTrack: Track; refType: OSType; var addedIndex: SInt32): OSErr; external name '_AddTrackReference';
  3409. {
  3410. * DeleteTrackReference()
  3411. *
  3412. * Availability:
  3413. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3414. * CarbonLib: in CarbonLib 1.0 and later
  3415. * Mac OS X: in version 10.0 and later
  3416. * Windows: in qtmlClient.lib 3.0 and later
  3417. }
  3418. function DeleteTrackReference(theTrack: Track; refType: OSType; index: SInt32): OSErr; external name '_DeleteTrackReference';
  3419. {
  3420. * SetTrackReference()
  3421. *
  3422. * Availability:
  3423. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3424. * CarbonLib: in CarbonLib 1.0 and later
  3425. * Mac OS X: in version 10.0 and later
  3426. * Windows: in qtmlClient.lib 3.0 and later
  3427. }
  3428. function SetTrackReference(theTrack: Track; refTrack: Track; refType: OSType; index: SInt32): OSErr; external name '_SetTrackReference';
  3429. {
  3430. * GetTrackReference()
  3431. *
  3432. * Availability:
  3433. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3434. * CarbonLib: in CarbonLib 1.0 and later
  3435. * Mac OS X: in version 10.0 and later
  3436. * Windows: in qtmlClient.lib 3.0 and later
  3437. }
  3438. function GetTrackReference(theTrack: Track; refType: OSType; index: SInt32): Track; external name '_GetTrackReference';
  3439. {
  3440. * GetNextTrackReferenceType()
  3441. *
  3442. * Availability:
  3443. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3444. * CarbonLib: in CarbonLib 1.0 and later
  3445. * Mac OS X: in version 10.0 and later
  3446. * Windows: in qtmlClient.lib 3.0 and later
  3447. }
  3448. function GetNextTrackReferenceType(theTrack: Track; refType: OSType): SInt32; external name '_GetNextTrackReferenceType';
  3449. {
  3450. * GetTrackReferenceCount()
  3451. *
  3452. * Availability:
  3453. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3454. * CarbonLib: in CarbonLib 1.0 and later
  3455. * Mac OS X: in version 10.0 and later
  3456. * Windows: in qtmlClient.lib 3.0 and later
  3457. }
  3458. function GetTrackReferenceCount(theTrack: Track; refType: OSType): SInt32; external name '_GetTrackReferenceCount';
  3459. {************************
  3460. * high level file conversion routines
  3461. *************************}
  3462. {
  3463. * ConvertFileToMovieFile()
  3464. *
  3465. * Availability:
  3466. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3467. * CarbonLib: in CarbonLib 1.0 and later
  3468. * Mac OS X: in version 10.0 and later
  3469. * Windows: in qtmlClient.lib 3.0 and later
  3470. }
  3471. 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';
  3472. {
  3473. * ConvertMovieToFile()
  3474. *
  3475. * Availability:
  3476. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3477. * CarbonLib: in CarbonLib 1.0 and later
  3478. * Mac OS X: in version 10.0 and later
  3479. * Windows: in qtmlClient.lib 3.0 and later
  3480. }
  3481. 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';
  3482. const
  3483. kGetMovieImporterValidateToFind = $00000001;
  3484. kGetMovieImporterAllowNewFile = $00000002;
  3485. kGetMovieImporterDontConsiderGraphicsImporters = $00000004;
  3486. kGetMovieImporterDontConsiderFileOnlyImporters = $00000040;
  3487. kGetMovieImporterAutoImportOnly = $00000400; { reject aggressive movie importers which have dontAutoFileMovieImport set }
  3488. {
  3489. * GetMovieImporterForDataRef()
  3490. *
  3491. * Availability:
  3492. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3493. * CarbonLib: in CarbonLib 1.0 and later
  3494. * Mac OS X: in version 10.0 and later
  3495. * Windows: in qtmlClient.lib 3.0 and later
  3496. }
  3497. function GetMovieImporterForDataRef(dataRefType: OSType; dataRef: Handle; flags: SInt32; var importer: Component): OSErr; external name '_GetMovieImporterForDataRef';
  3498. const
  3499. kQTGetMIMETypeInfoIsQuickTimeMovieType = FourCharCode('moov'); { info is a pointer to a Boolean }
  3500. kQTGetMIMETypeInfoIsUnhelpfulType = FourCharCode('dumb'); { info is a pointer to a Boolean }
  3501. {
  3502. * QTGetMIMETypeInfo()
  3503. *
  3504. * Availability:
  3505. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  3506. * CarbonLib: in CarbonLib 1.3 and later
  3507. * Mac OS X: in version 10.0 and later
  3508. * Windows: in qtmlClient.lib 5.0 and later
  3509. }
  3510. function QTGetMIMETypeInfo(mimeStringStart: ConstCStringPtr; mimeStringLength: SInt16; infoSelector: OSType; infoDataPtr: UnivPtr; var infoDataSize: SInt32): OSErr; external name '_QTGetMIMETypeInfo';
  3511. {************************
  3512. * Movie Timebase Conversion Routines
  3513. *************************}
  3514. {
  3515. * TrackTimeToMediaTime()
  3516. *
  3517. * Availability:
  3518. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3519. * CarbonLib: in CarbonLib 1.0 and later
  3520. * Mac OS X: in version 10.0 and later
  3521. * Windows: in qtmlClient.lib 3.0 and later
  3522. }
  3523. function TrackTimeToMediaTime(value: TimeValue; theTrack: Track): TimeValue; external name '_TrackTimeToMediaTime';
  3524. {
  3525. * GetTrackEditRate()
  3526. *
  3527. * Availability:
  3528. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3529. * CarbonLib: in CarbonLib 1.0 and later
  3530. * Mac OS X: in version 10.0 and later
  3531. * Windows: in qtmlClient.lib 3.0 and later
  3532. }
  3533. function GetTrackEditRate(theTrack: Track; atTime: TimeValue): Fixed; external name '_GetTrackEditRate';
  3534. {************************
  3535. * Miscellaneous Routines
  3536. *************************}
  3537. {
  3538. * GetMovieDataSize()
  3539. *
  3540. * Availability:
  3541. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3542. * CarbonLib: in CarbonLib 1.0 and later
  3543. * Mac OS X: in version 10.0 and later
  3544. * Windows: in qtmlClient.lib 3.0 and later
  3545. }
  3546. function GetMovieDataSize(theMovie: Movie; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetMovieDataSize';
  3547. {
  3548. * GetMovieDataSize64()
  3549. *
  3550. * Availability:
  3551. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3552. * CarbonLib: in CarbonLib 1.0.2 and later
  3553. * Mac OS X: in version 10.0 and later
  3554. * Windows: in qtmlClient.lib 4.0 and later
  3555. }
  3556. function GetMovieDataSize64(theMovie: Movie; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetMovieDataSize64';
  3557. {
  3558. * GetTrackDataSize()
  3559. *
  3560. * Availability:
  3561. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3562. * CarbonLib: in CarbonLib 1.0 and later
  3563. * Mac OS X: in version 10.0 and later
  3564. * Windows: in qtmlClient.lib 3.0 and later
  3565. }
  3566. function GetTrackDataSize(theTrack: Track; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetTrackDataSize';
  3567. {
  3568. * GetTrackDataSize64()
  3569. *
  3570. * Availability:
  3571. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3572. * CarbonLib: in CarbonLib 1.0.2 and later
  3573. * Mac OS X: in version 10.0 and later
  3574. * Windows: in qtmlClient.lib 4.0 and later
  3575. }
  3576. function GetTrackDataSize64(theTrack: Track; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetTrackDataSize64';
  3577. {
  3578. * GetMediaDataSize()
  3579. *
  3580. * Availability:
  3581. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3582. * CarbonLib: in CarbonLib 1.0 and later
  3583. * Mac OS X: in version 10.0 and later
  3584. * Windows: in qtmlClient.lib 3.0 and later
  3585. }
  3586. function GetMediaDataSize(theMedia: Media; startTime: TimeValue; duration: TimeValue): SInt32; external name '_GetMediaDataSize';
  3587. {
  3588. * GetMediaDataSize64()
  3589. *
  3590. * Availability:
  3591. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3592. * CarbonLib: in CarbonLib 1.0.2 and later
  3593. * Mac OS X: in version 10.0 and later
  3594. * Windows: in qtmlClient.lib 4.0 and later
  3595. }
  3596. function GetMediaDataSize64(theMedia: Media; startTime: TimeValue; duration: TimeValue; var dataSize: wide): OSErr; external name '_GetMediaDataSize64';
  3597. {
  3598. * PtInMovie()
  3599. *
  3600. * Availability:
  3601. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3602. * CarbonLib: in CarbonLib 1.0 and later
  3603. * Mac OS X: in version 10.0 and later
  3604. * Windows: in qtmlClient.lib 3.0 and later
  3605. }
  3606. function PtInMovie(theMovie: Movie; pt: Point): boolean; external name '_PtInMovie';
  3607. {
  3608. * PtInTrack()
  3609. *
  3610. * Availability:
  3611. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3612. * CarbonLib: in CarbonLib 1.0 and later
  3613. * Mac OS X: in version 10.0 and later
  3614. * Windows: in qtmlClient.lib 3.0 and later
  3615. }
  3616. function PtInTrack(theTrack: Track; pt: Point): boolean; external name '_PtInTrack';
  3617. {************************
  3618. * Group Selection Routines
  3619. *************************}
  3620. {
  3621. * SetMovieLanguage()
  3622. *
  3623. * Availability:
  3624. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3625. * CarbonLib: in CarbonLib 1.0 and later
  3626. * Mac OS X: in version 10.0 and later
  3627. * Windows: in qtmlClient.lib 3.0 and later
  3628. }
  3629. procedure SetMovieLanguage(theMovie: Movie; language: SInt32); external name '_SetMovieLanguage';
  3630. {************************
  3631. * User Data
  3632. *************************}
  3633. {
  3634. * GetUserData()
  3635. *
  3636. * Availability:
  3637. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3638. * CarbonLib: in CarbonLib 1.0 and later
  3639. * Mac OS X: in version 10.0 and later
  3640. * Windows: in qtmlClient.lib 3.0 and later
  3641. }
  3642. function GetUserData(theUserData: UserData; data: Handle; udType: OSType; index: SInt32): OSErr; external name '_GetUserData';
  3643. {
  3644. * AddUserData()
  3645. *
  3646. * Availability:
  3647. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3648. * CarbonLib: in CarbonLib 1.0 and later
  3649. * Mac OS X: in version 10.0 and later
  3650. * Windows: in qtmlClient.lib 3.0 and later
  3651. }
  3652. function AddUserData(theUserData: UserData; data: Handle; udType: OSType): OSErr; external name '_AddUserData';
  3653. {
  3654. * RemoveUserData()
  3655. *
  3656. * Availability:
  3657. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3658. * CarbonLib: in CarbonLib 1.0 and later
  3659. * Mac OS X: in version 10.0 and later
  3660. * Windows: in qtmlClient.lib 3.0 and later
  3661. }
  3662. function RemoveUserData(theUserData: UserData; udType: OSType; index: SInt32): OSErr; external name '_RemoveUserData';
  3663. {
  3664. * CountUserDataType()
  3665. *
  3666. * Availability:
  3667. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3668. * CarbonLib: in CarbonLib 1.0 and later
  3669. * Mac OS X: in version 10.0 and later
  3670. * Windows: in qtmlClient.lib 3.0 and later
  3671. }
  3672. function CountUserDataType(theUserData: UserData; udType: OSType): SInt16; external name '_CountUserDataType';
  3673. {
  3674. * GetNextUserDataType()
  3675. *
  3676. * Availability:
  3677. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3678. * CarbonLib: in CarbonLib 1.0 and later
  3679. * Mac OS X: in version 10.0 and later
  3680. * Windows: in qtmlClient.lib 3.0 and later
  3681. }
  3682. function GetNextUserDataType(theUserData: UserData; udType: OSType): SInt32; external name '_GetNextUserDataType';
  3683. {
  3684. * GetUserDataItem()
  3685. *
  3686. * Availability:
  3687. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3688. * CarbonLib: in CarbonLib 1.0 and later
  3689. * Mac OS X: in version 10.0 and later
  3690. * Windows: in qtmlClient.lib 3.0 and later
  3691. }
  3692. function GetUserDataItem(theUserData: UserData; data: UnivPtr; size: SInt32; udType: OSType; index: SInt32): OSErr; external name '_GetUserDataItem';
  3693. {
  3694. * SetUserDataItem()
  3695. *
  3696. * Availability:
  3697. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3698. * CarbonLib: in CarbonLib 1.0 and later
  3699. * Mac OS X: in version 10.0 and later
  3700. * Windows: in qtmlClient.lib 3.0 and later
  3701. }
  3702. function SetUserDataItem(theUserData: UserData; data: UnivPtr; size: SInt32; udType: OSType; index: SInt32): OSErr; external name '_SetUserDataItem';
  3703. {
  3704. * AddUserDataText()
  3705. *
  3706. * Availability:
  3707. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3708. * CarbonLib: in CarbonLib 1.0 and later
  3709. * Mac OS X: in version 10.0 and later
  3710. * Windows: in qtmlClient.lib 3.0 and later
  3711. }
  3712. function AddUserDataText(theUserData: UserData; data: Handle; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_AddUserDataText';
  3713. {
  3714. * GetUserDataText()
  3715. *
  3716. * Availability:
  3717. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3718. * CarbonLib: in CarbonLib 1.0 and later
  3719. * Mac OS X: in version 10.0 and later
  3720. * Windows: in qtmlClient.lib 3.0 and later
  3721. }
  3722. function GetUserDataText(theUserData: UserData; data: Handle; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_GetUserDataText';
  3723. {
  3724. * RemoveUserDataText()
  3725. *
  3726. * Availability:
  3727. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3728. * CarbonLib: in CarbonLib 1.0 and later
  3729. * Mac OS X: in version 10.0 and later
  3730. * Windows: in qtmlClient.lib 3.0 and later
  3731. }
  3732. function RemoveUserDataText(theUserData: UserData; udType: OSType; index: SInt32; itlRegionTag: SInt16): OSErr; external name '_RemoveUserDataText';
  3733. {
  3734. * NewUserData()
  3735. *
  3736. * Availability:
  3737. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3738. * CarbonLib: in CarbonLib 1.0 and later
  3739. * Mac OS X: in version 10.0 and later
  3740. * Windows: in qtmlClient.lib 3.0 and later
  3741. }
  3742. function NewUserData(var theUserData: UserData): OSErr; external name '_NewUserData';
  3743. {
  3744. * DisposeUserData()
  3745. *
  3746. * Availability:
  3747. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3748. * CarbonLib: in CarbonLib 1.0 and later
  3749. * Mac OS X: in version 10.0 and later
  3750. * Windows: in qtmlClient.lib 3.0 and later
  3751. }
  3752. function DisposeUserData(theUserData: UserData): OSErr; external name '_DisposeUserData';
  3753. {
  3754. * NewUserDataFromHandle()
  3755. *
  3756. * Availability:
  3757. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3758. * CarbonLib: in CarbonLib 1.0 and later
  3759. * Mac OS X: in version 10.0 and later
  3760. * Windows: in qtmlClient.lib 3.0 and later
  3761. }
  3762. function NewUserDataFromHandle(h: Handle; var theUserData: UserData): OSErr; external name '_NewUserDataFromHandle';
  3763. {
  3764. * PutUserDataIntoHandle()
  3765. *
  3766. * Availability:
  3767. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3768. * CarbonLib: in CarbonLib 1.0 and later
  3769. * Mac OS X: in version 10.0 and later
  3770. * Windows: in qtmlClient.lib 3.0 and later
  3771. }
  3772. function PutUserDataIntoHandle(theUserData: UserData; h: Handle): OSErr; external name '_PutUserDataIntoHandle';
  3773. const
  3774. kQTCopyUserDataReplace = FourCharCode('rplc'); { Delete all destination user data items and then add source user data items }
  3775. kQTCopyUserDataMerge = FourCharCode('merg'); { Add source user data items to destination user data }
  3776. {
  3777. * CopyMovieUserData()
  3778. *
  3779. * Availability:
  3780. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3781. * CarbonLib: in CarbonLib 1.6 and later
  3782. * Mac OS X: in version 10.2 and later
  3783. * Windows: in qtmlClient.lib 6.0 and later
  3784. }
  3785. function CopyMovieUserData(srcMovie: Movie; dstMovie: Movie; copyRule: OSType): OSErr; external name '_CopyMovieUserData';
  3786. {
  3787. * CopyTrackUserData()
  3788. *
  3789. * Availability:
  3790. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3791. * CarbonLib: in CarbonLib 1.6 and later
  3792. * Mac OS X: in version 10.2 and later
  3793. * Windows: in qtmlClient.lib 6.0 and later
  3794. }
  3795. function CopyTrackUserData(srcTrack: Track; dstTrack: Track; copyRule: OSType): OSErr; external name '_CopyTrackUserData';
  3796. {
  3797. * CopyMediaUserData()
  3798. *
  3799. * Availability:
  3800. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3801. * CarbonLib: in CarbonLib 1.6 and later
  3802. * Mac OS X: in version 10.2 and later
  3803. * Windows: in qtmlClient.lib 6.0 and later
  3804. }
  3805. function CopyMediaUserData(srcMedia: Media; dstMedia: Media; copyRule: OSType): OSErr; external name '_CopyMediaUserData';
  3806. {
  3807. * CopyUserData()
  3808. *
  3809. * Availability:
  3810. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3811. * CarbonLib: in CarbonLib 1.6 and later
  3812. * Mac OS X: in version 10.2 and later
  3813. * Windows: in qtmlClient.lib 6.0 and later
  3814. }
  3815. function CopyUserData(srcUserData: UserData; dstUserData: UserData; copyRule: OSType): OSErr; external name '_CopyUserData';
  3816. {
  3817. * SetMoviePropertyAtom()
  3818. *
  3819. * Availability:
  3820. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  3821. * CarbonLib: in CarbonLib 1.1 and later
  3822. * Mac OS X: in version 10.0 and later
  3823. * Windows: in qtmlClient.lib 4.1 and later
  3824. }
  3825. function SetMoviePropertyAtom(theMovie: Movie; propertyAtom: QTAtomContainer): OSErr; external name '_SetMoviePropertyAtom';
  3826. {
  3827. * GetMoviePropertyAtom()
  3828. *
  3829. * Availability:
  3830. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  3831. * CarbonLib: in CarbonLib 1.1 and later
  3832. * Mac OS X: in version 10.0 and later
  3833. * Windows: in qtmlClient.lib 4.1 and later
  3834. }
  3835. function GetMoviePropertyAtom(theMovie: Movie; var propertyAtom: QTAtomContainer): OSErr; external name '_GetMoviePropertyAtom';
  3836. {
  3837. * GetMediaNextInterestingTime()
  3838. *
  3839. * Availability:
  3840. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3841. * CarbonLib: in CarbonLib 1.0 and later
  3842. * Mac OS X: in version 10.0 and later
  3843. * Windows: in qtmlClient.lib 3.0 and later
  3844. }
  3845. procedure GetMediaNextInterestingTime(theMedia: Media; interestingTimeFlags: SInt16; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetMediaNextInterestingTime';
  3846. {
  3847. * GetTrackNextInterestingTime()
  3848. *
  3849. * Availability:
  3850. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3851. * CarbonLib: in CarbonLib 1.0 and later
  3852. * Mac OS X: in version 10.0 and later
  3853. * Windows: in qtmlClient.lib 3.0 and later
  3854. }
  3855. procedure GetTrackNextInterestingTime(theTrack: Track; interestingTimeFlags: SInt16; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetTrackNextInterestingTime';
  3856. {
  3857. * GetMovieNextInterestingTime()
  3858. *
  3859. * Availability:
  3860. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3861. * CarbonLib: in CarbonLib 1.0 and later
  3862. * Mac OS X: in version 10.0 and later
  3863. * Windows: in qtmlClient.lib 3.0 and later
  3864. }
  3865. procedure GetMovieNextInterestingTime(theMovie: Movie; interestingTimeFlags: SInt16; numMediaTypes: SInt16; whichMediaTypes: OSTypePtr; time: TimeValue; rate: Fixed; var interestingTime: TimeValue; var interestingDuration: TimeValue); external name '_GetMovieNextInterestingTime';
  3866. {
  3867. * CreateMovieFile()
  3868. *
  3869. * Availability:
  3870. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3871. * CarbonLib: in CarbonLib 1.0 and later
  3872. * Mac OS X: in version 10.0 and later
  3873. * Windows: in qtmlClient.lib 3.0 and later
  3874. }
  3875. function CreateMovieFile(const (*var*) fileSpec: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: UInt32; var resRefNum: SInt16; var newmovie: Movie): OSErr; external name '_CreateMovieFile';
  3876. {
  3877. * OpenMovieFile()
  3878. *
  3879. * Availability:
  3880. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3881. * CarbonLib: in CarbonLib 1.0 and later
  3882. * Mac OS X: in version 10.0 and later
  3883. * Windows: in qtmlClient.lib 3.0 and later
  3884. }
  3885. function OpenMovieFile(const (*var*) fileSpec: FSSpec; var resRefNum: SInt16; permission: SInt8): OSErr; external name '_OpenMovieFile';
  3886. {
  3887. * CloseMovieFile()
  3888. *
  3889. * Availability:
  3890. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3891. * CarbonLib: in CarbonLib 1.0 and later
  3892. * Mac OS X: in version 10.0 and later
  3893. * Windows: in qtmlClient.lib 3.0 and later
  3894. }
  3895. function CloseMovieFile(resRefNum: SInt16): OSErr; external name '_CloseMovieFile';
  3896. {
  3897. * DeleteMovieFile()
  3898. *
  3899. * Availability:
  3900. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3901. * CarbonLib: in CarbonLib 1.0 and later
  3902. * Mac OS X: in version 10.0 and later
  3903. * Windows: in qtmlClient.lib 3.0 and later
  3904. }
  3905. function DeleteMovieFile(const (*var*) fileSpec: FSSpec): OSErr; external name '_DeleteMovieFile';
  3906. {
  3907. * NewMovieFromFile()
  3908. *
  3909. * Availability:
  3910. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3911. * CarbonLib: in CarbonLib 1.0 and later
  3912. * Mac OS X: in version 10.0 and later
  3913. * Windows: in qtmlClient.lib 3.0 and later
  3914. }
  3915. function NewMovieFromFile(var theMovie: Movie; resRefNum: SInt16; resId: SInt16Ptr; resName: StringPtr; newMovieFlags: SInt16; dataRefWasChanged: BooleanPtr): OSErr; external name '_NewMovieFromFile';
  3916. {
  3917. * NewMovieFromHandle()
  3918. *
  3919. * Availability:
  3920. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3921. * CarbonLib: in CarbonLib 1.0 and later
  3922. * Mac OS X: in version 10.0 and later
  3923. * Windows: in qtmlClient.lib 3.0 and later
  3924. }
  3925. function NewMovieFromHandle(var theMovie: Movie; h: Handle; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromHandle';
  3926. {
  3927. * NewMovieFromDataFork()
  3928. *
  3929. * Availability:
  3930. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3931. * CarbonLib: in CarbonLib 1.0 and later
  3932. * Mac OS X: in version 10.0 and later
  3933. * Windows: in qtmlClient.lib 3.0 and later
  3934. }
  3935. function NewMovieFromDataFork(var theMovie: Movie; fRefNum: SInt16; fileOffset: SInt32; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromDataFork';
  3936. {
  3937. * NewMovieFromDataFork64()
  3938. *
  3939. * Availability:
  3940. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3941. * CarbonLib: in CarbonLib 1.0.2 and later
  3942. * Mac OS X: in version 10.0 and later
  3943. * Windows: in qtmlClient.lib 4.0 and later
  3944. }
  3945. function NewMovieFromDataFork64(var theMovie: Movie; fRefNum: SInt32; const (*var*) fileOffset: wide; newMovieFlags: SInt16; var dataRefWasChanged: boolean): OSErr; external name '_NewMovieFromDataFork64';
  3946. {
  3947. * NewMovieFromUserProc()
  3948. *
  3949. * Availability:
  3950. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3951. * CarbonLib: in CarbonLib 1.0 and later
  3952. * Mac OS X: in version 10.0 and later
  3953. * Windows: in qtmlClient.lib 3.0 and later
  3954. }
  3955. function NewMovieFromUserProc(var m: Movie; flags: SInt16; var dataRefWasChanged: boolean; getProc: GetMovieUPP; refCon: UnivPtr; defaultDataRef: Handle; dataRefType: OSType): OSErr; external name '_NewMovieFromUserProc';
  3956. {
  3957. * NewMovieFromDataRef()
  3958. *
  3959. * Availability:
  3960. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3961. * CarbonLib: in CarbonLib 1.0 and later
  3962. * Mac OS X: in version 10.0 and later
  3963. * Windows: in qtmlClient.lib 3.0 and later
  3964. }
  3965. function NewMovieFromDataRef(var m: Movie; flags: SInt16; var id: SInt16; dataRef: Handle; dtaRefType: OSType): OSErr; external name '_NewMovieFromDataRef';
  3966. {
  3967. * NewMovieFromStorageOffset()
  3968. *
  3969. * Availability:
  3970. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3971. * CarbonLib: in CarbonLib 1.6 and later
  3972. * Mac OS X: in version 10.2 and later
  3973. * Windows: in qtmlClient.lib 6.0 and later
  3974. }
  3975. function NewMovieFromStorageOffset(var theMovie: Movie; dh: DataHandler; const (*var*) fileOffset: wide; newMovieFlags: SInt16; var dataRefWasCataRefType: boolean): OSErr; external name '_NewMovieFromStorageOffset';
  3976. {
  3977. * NewMovieForDataRefFromHandle()
  3978. *
  3979. * Availability:
  3980. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3981. * CarbonLib: in CarbonLib 1.6 and later
  3982. * Mac OS X: in version 10.2 and later
  3983. * Windows: in qtmlClient.lib 6.0 and later
  3984. }
  3985. function NewMovieForDataRefFromHandle(var theMovie: Movie; h: Handle; newMovieFlags: SInt16; var dataRefWasChanged: boolean; dataRef: Handle; dataRefType: OSType): OSErr; external name '_NewMovieForDataRefFromHandle';
  3986. {
  3987. * AddMovieResource()
  3988. *
  3989. * Availability:
  3990. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3991. * CarbonLib: in CarbonLib 1.0 and later
  3992. * Mac OS X: in version 10.0 and later
  3993. * Windows: in qtmlClient.lib 3.0 and later
  3994. }
  3995. function AddMovieResource(theMovie: Movie; resRefNum: SInt16; var resId: SInt16; const (*var*) resName: Str255): OSErr; external name '_AddMovieResource';
  3996. {
  3997. * UpdateMovieResource()
  3998. *
  3999. * Availability:
  4000. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4001. * CarbonLib: in CarbonLib 1.0 and later
  4002. * Mac OS X: in version 10.0 and later
  4003. * Windows: in qtmlClient.lib 3.0 and later
  4004. }
  4005. function UpdateMovieResource(theMovie: Movie; resRefNum: SInt16; resId: SInt16; const (*var*) resName: Str255): OSErr; external name '_UpdateMovieResource';
  4006. {
  4007. * RemoveMovieResource()
  4008. *
  4009. * Availability:
  4010. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4011. * CarbonLib: in CarbonLib 1.0 and later
  4012. * Mac OS X: in version 10.0 and later
  4013. * Windows: in qtmlClient.lib 3.0 and later
  4014. }
  4015. function RemoveMovieResource(resRefNum: SInt16; resId: SInt16): OSErr; external name '_RemoveMovieResource';
  4016. {
  4017. * CreateMovieStorage()
  4018. *
  4019. * Availability:
  4020. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4021. * CarbonLib: in CarbonLib 1.6 and later
  4022. * Mac OS X: in version 10.2 and later
  4023. * Windows: in qtmlClient.lib 6.0 and later
  4024. }
  4025. function CreateMovieStorage(dataRef: Handle; dataRefType: OSType; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32; var outDataHandler: DataHandler; var newmovie: Movie): OSErr; external name '_CreateMovieStorage';
  4026. {
  4027. * OpenMovieStorage()
  4028. *
  4029. * Availability:
  4030. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4031. * CarbonLib: in CarbonLib 1.6 and later
  4032. * Mac OS X: in version 10.2 and later
  4033. * Windows: in qtmlClient.lib 6.0 and later
  4034. }
  4035. function OpenMovieStorage(dataRef: Handle; dataRefType: OSType; flags: SInt32; var outDataHandler: DataHandler): OSErr; external name '_OpenMovieStorage';
  4036. {
  4037. * CloseMovieStorage()
  4038. *
  4039. * Availability:
  4040. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4041. * CarbonLib: in CarbonLib 1.6 and later
  4042. * Mac OS X: in version 10.2 and later
  4043. * Windows: in qtmlClient.lib 6.0 and later
  4044. }
  4045. function CloseMovieStorage(dh: DataHandler): OSErr; external name '_CloseMovieStorage';
  4046. {
  4047. * DeleteMovieStorage()
  4048. *
  4049. * Availability:
  4050. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4051. * CarbonLib: in CarbonLib 1.6 and later
  4052. * Mac OS X: in version 10.2 and later
  4053. * Windows: in qtmlClient.lib 6.0 and later
  4054. }
  4055. function DeleteMovieStorage(dataRef: Handle; dataRefType: OSType): OSErr; external name '_DeleteMovieStorage';
  4056. {
  4057. * AddMovieToStorage()
  4058. *
  4059. * Availability:
  4060. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4061. * CarbonLib: in CarbonLib 1.6 and later
  4062. * Mac OS X: in version 10.2 and later
  4063. * Windows: in qtmlClient.lib 6.0 and later
  4064. }
  4065. function AddMovieToStorage(theMovie: Movie; dh: DataHandler): OSErr; external name '_AddMovieToStorage';
  4066. {
  4067. * UpdateMovieInStorage()
  4068. *
  4069. * Availability:
  4070. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4071. * CarbonLib: in CarbonLib 1.6 and later
  4072. * Mac OS X: in version 10.2 and later
  4073. * Windows: in qtmlClient.lib 6.0 and later
  4074. }
  4075. function UpdateMovieInStorage(theMovie: Movie; dh: DataHandler): OSErr; external name '_UpdateMovieInStorage';
  4076. {
  4077. * HasMovieChanged()
  4078. *
  4079. * Availability:
  4080. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4081. * CarbonLib: in CarbonLib 1.0 and later
  4082. * Mac OS X: in version 10.0 and later
  4083. * Windows: in qtmlClient.lib 3.0 and later
  4084. }
  4085. function HasMovieChanged(theMovie: Movie): boolean; external name '_HasMovieChanged';
  4086. {
  4087. * ClearMovieChanged()
  4088. *
  4089. * Availability:
  4090. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4091. * CarbonLib: in CarbonLib 1.0 and later
  4092. * Mac OS X: in version 10.0 and later
  4093. * Windows: in qtmlClient.lib 3.0 and later
  4094. }
  4095. procedure ClearMovieChanged(theMovie: Movie); external name '_ClearMovieChanged';
  4096. {
  4097. * SetMovieDefaultDataRef()
  4098. *
  4099. * Availability:
  4100. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4101. * CarbonLib: in CarbonLib 1.0 and later
  4102. * Mac OS X: in version 10.0 and later
  4103. * Windows: in qtmlClient.lib 3.0 and later
  4104. }
  4105. function SetMovieDefaultDataRef(theMovie: Movie; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMovieDefaultDataRef';
  4106. {
  4107. * GetMovieDefaultDataRef()
  4108. *
  4109. * Availability:
  4110. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4111. * CarbonLib: in CarbonLib 1.0 and later
  4112. * Mac OS X: in version 10.0 and later
  4113. * Windows: in qtmlClient.lib 3.0 and later
  4114. }
  4115. function GetMovieDefaultDataRef(theMovie: Movie; var dataRef: Handle; var dataRefType: OSType): OSErr; external name '_GetMovieDefaultDataRef';
  4116. {
  4117. * SetMovieAnchorDataRef()
  4118. *
  4119. * Availability:
  4120. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  4121. * CarbonLib: in CarbonLib 1.1 and later
  4122. * Mac OS X: in version 10.0 and later
  4123. * Windows: in qtmlClient.lib 4.1 and later
  4124. }
  4125. function SetMovieAnchorDataRef(theMovie: Movie; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMovieAnchorDataRef';
  4126. {
  4127. * GetMovieAnchorDataRef()
  4128. *
  4129. * Availability:
  4130. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  4131. * CarbonLib: in CarbonLib 1.1 and later
  4132. * Mac OS X: in version 10.0 and later
  4133. * Windows: in qtmlClient.lib 4.1 and later
  4134. }
  4135. function GetMovieAnchorDataRef(theMovie: Movie; var dataRef: Handle; var dataRefType: OSType; var outFlags: SInt32): OSErr; external name '_GetMovieAnchorDataRef';
  4136. {
  4137. * SetMovieColorTable()
  4138. *
  4139. * Availability:
  4140. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4141. * CarbonLib: in CarbonLib 1.0 and later
  4142. * Mac OS X: in version 10.0 and later
  4143. * Windows: in qtmlClient.lib 3.0 and later
  4144. }
  4145. function SetMovieColorTable(theMovie: Movie; ctab: CTabHandle): OSErr; external name '_SetMovieColorTable';
  4146. {
  4147. * GetMovieColorTable()
  4148. *
  4149. * Availability:
  4150. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4151. * CarbonLib: in CarbonLib 1.0 and later
  4152. * Mac OS X: in version 10.0 and later
  4153. * Windows: in qtmlClient.lib 3.0 and later
  4154. }
  4155. function GetMovieColorTable(theMovie: Movie; var ctab: CTabHandle): OSErr; external name '_GetMovieColorTable';
  4156. {
  4157. * FlattenMovie()
  4158. *
  4159. * Availability:
  4160. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4161. * CarbonLib: in CarbonLib 1.0 and later
  4162. * Mac OS X: in version 10.0 and later
  4163. * Windows: in qtmlClient.lib 3.0 and later
  4164. }
  4165. 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';
  4166. {
  4167. * FlattenMovieData()
  4168. *
  4169. * Availability:
  4170. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4171. * CarbonLib: in CarbonLib 1.0 and later
  4172. * Mac OS X: in version 10.0 and later
  4173. * Windows: in qtmlClient.lib 3.0 and later
  4174. }
  4175. function FlattenMovieData(theMovie: Movie; movieFlattenFlags: SInt32; const (*var*) theFile: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32): Movie; external name '_FlattenMovieData';
  4176. {
  4177. * FlattenMovieDataToDataRef()
  4178. *
  4179. * Availability:
  4180. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  4181. * CarbonLib: in CarbonLib 1.6 and later
  4182. * Mac OS X: in version 10.2 and later
  4183. * Windows: in qtmlClient.lib 6.0 and later
  4184. }
  4185. function FlattenMovieDataToDataRef(theMovie: Movie; movieFlattenFlags: SInt32; dataRef: Handle; dataRefType: OSType; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32): Movie; external name '_FlattenMovieDataToDataRef';
  4186. {
  4187. * SetMovieProgressProc()
  4188. *
  4189. * Availability:
  4190. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4191. * CarbonLib: in CarbonLib 1.0 and later
  4192. * Mac OS X: in version 10.0 and later
  4193. * Windows: in qtmlClient.lib 3.0 and later
  4194. }
  4195. procedure SetMovieProgressProc(theMovie: Movie; p: MovieProgressUPP; refcon: SInt32); external name '_SetMovieProgressProc';
  4196. {
  4197. * GetMovieProgressProc()
  4198. *
  4199. * Availability:
  4200. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4201. * CarbonLib: in CarbonLib 1.0.2 and later
  4202. * Mac OS X: in version 10.0 and later
  4203. * Windows: in qtmlClient.lib 4.0 and later
  4204. }
  4205. procedure GetMovieProgressProc(theMovie: Movie; var p: MovieProgressUPP; var refcon: SInt32); external name '_GetMovieProgressProc';
  4206. {
  4207. * CreateShortcutMovieFile()
  4208. *
  4209. * Availability:
  4210. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4211. * CarbonLib: in CarbonLib 1.0.2 and later
  4212. * Mac OS X: in version 10.0 and later
  4213. * Windows: in qtmlClient.lib 4.0 and later
  4214. }
  4215. function CreateShortcutMovieFile(const (*var*) fileSpec: FSSpec; creator: OSType; scriptTag: ScriptCode; createMovieFileFlags: SInt32; targetDataRef: Handle; targetDataRefType: OSType): OSErr; external name '_CreateShortcutMovieFile';
  4216. {
  4217. * MovieSearchText()
  4218. *
  4219. * Availability:
  4220. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4221. * CarbonLib: in CarbonLib 1.0 and later
  4222. * Mac OS X: in version 10.0 and later
  4223. * Windows: in qtmlClient.lib 3.0 and later
  4224. }
  4225. function MovieSearchText(theMovie: Movie; text: Ptr; size: SInt32; searchFlags: SInt32; var searchTrack: Track; var searchTime: TimeValue; var searchOffset: SInt32): OSErr; external name '_MovieSearchText';
  4226. {
  4227. * GetPosterBox()
  4228. *
  4229. * Availability:
  4230. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4231. * CarbonLib: in CarbonLib 1.0 and later
  4232. * Mac OS X: in version 10.0 and later
  4233. * Windows: in qtmlClient.lib 3.0 and later
  4234. }
  4235. procedure GetPosterBox(theMovie: Movie; var boxRect: Rect); external name '_GetPosterBox';
  4236. {
  4237. * SetPosterBox()
  4238. *
  4239. * Availability:
  4240. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4241. * CarbonLib: in CarbonLib 1.0 and later
  4242. * Mac OS X: in version 10.0 and later
  4243. * Windows: in qtmlClient.lib 3.0 and later
  4244. }
  4245. procedure SetPosterBox(theMovie: Movie; const (*var*) boxRect: Rect); external name '_SetPosterBox';
  4246. {
  4247. * GetMovieSegmentDisplayBoundsRgn()
  4248. *
  4249. * Availability:
  4250. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4251. * CarbonLib: in CarbonLib 1.0 and later
  4252. * Mac OS X: in version 10.0 and later
  4253. * Windows: in qtmlClient.lib 3.0 and later
  4254. }
  4255. function GetMovieSegmentDisplayBoundsRgn(theMovie: Movie; time: TimeValue; duration: TimeValue): RgnHandle; external name '_GetMovieSegmentDisplayBoundsRgn';
  4256. {
  4257. * GetTrackSegmentDisplayBoundsRgn()
  4258. *
  4259. * Availability:
  4260. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4261. * CarbonLib: in CarbonLib 1.0 and later
  4262. * Mac OS X: in version 10.0 and later
  4263. * Windows: in qtmlClient.lib 3.0 and later
  4264. }
  4265. function GetTrackSegmentDisplayBoundsRgn(theTrack: Track; time: TimeValue; duration: TimeValue): RgnHandle; external name '_GetTrackSegmentDisplayBoundsRgn';
  4266. {
  4267. * SetMovieCoverProcs()
  4268. *
  4269. * Availability:
  4270. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4271. * CarbonLib: in CarbonLib 1.0 and later
  4272. * Mac OS X: in version 10.0 and later
  4273. * Windows: in qtmlClient.lib 3.0 and later
  4274. }
  4275. procedure SetMovieCoverProcs(theMovie: Movie; uncoverProc: MovieRgnCoverUPP; coverProc: MovieRgnCoverUPP; refcon: SInt32); external name '_SetMovieCoverProcs';
  4276. {
  4277. * GetMovieCoverProcs()
  4278. *
  4279. * Availability:
  4280. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4281. * CarbonLib: in CarbonLib 1.0 and later
  4282. * Mac OS X: in version 10.0 and later
  4283. * Windows: in qtmlClient.lib 3.0 and later
  4284. }
  4285. function GetMovieCoverProcs(theMovie: Movie; var uncoverProc: MovieRgnCoverUPP; var coverProc: MovieRgnCoverUPP; var refcon: SInt32): OSErr; external name '_GetMovieCoverProcs';
  4286. {
  4287. * GetTrackStatus()
  4288. *
  4289. * Availability:
  4290. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4291. * CarbonLib: in CarbonLib 1.0 and later
  4292. * Mac OS X: in version 10.0 and later
  4293. * Windows: in qtmlClient.lib 3.0 and later
  4294. }
  4295. function GetTrackStatus(theTrack: Track): ComponentResult; external name '_GetTrackStatus';
  4296. {
  4297. * GetMovieStatus()
  4298. *
  4299. * Availability:
  4300. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4301. * CarbonLib: in CarbonLib 1.0 and later
  4302. * Mac OS X: in version 10.0 and later
  4303. * Windows: in qtmlClient.lib 3.0 and later
  4304. }
  4305. function GetMovieStatus(theMovie: Movie; var firstProblemTrack: Track): ComponentResult; external name '_GetMovieStatus';
  4306. const
  4307. kMovieLoadStateError = -1;
  4308. kMovieLoadStateLoading = 1000;
  4309. kMovieLoadStateLoaded = 2000;
  4310. kMovieLoadStatePlayable = 10000;
  4311. kMovieLoadStatePlaythroughOK = 20000;
  4312. kMovieLoadStateComplete = 100000;
  4313. {
  4314. * GetMovieLoadState()
  4315. *
  4316. * Availability:
  4317. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  4318. * CarbonLib: in CarbonLib 1.1 and later
  4319. * Mac OS X: in version 10.0 and later
  4320. * Windows: in qtmlClient.lib 4.1 and later
  4321. }
  4322. function GetMovieLoadState(theMovie: Movie): SInt32; external name '_GetMovieLoadState';
  4323. { Input flags for CanQuickTimeOpenFile/DataRef }
  4324. const
  4325. kQTDontUseDataToFindImporter = $00000001;
  4326. kQTDontLookForMovieImporterIfGraphicsImporterFound = $00000002;
  4327. kQTAllowOpeningStillImagesAsMovies = $00000004;
  4328. kQTAllowImportersThatWouldCreateNewFile = $00000008;
  4329. kQTAllowAggressiveImporters = $00000010; { eg, TEXT and PICT movie importers }
  4330. { Determines whether the file could be opened using a graphics importer or opened in place as a movie. }
  4331. {
  4332. * CanQuickTimeOpenFile()
  4333. *
  4334. * Availability:
  4335. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  4336. * CarbonLib: in CarbonLib 1.3 and later
  4337. * Mac OS X: in version 10.0 and later
  4338. * Windows: in qtmlClient.lib 5.0 and later
  4339. }
  4340. function CanQuickTimeOpenFile(fileSpec: FSSpecPtr; fileType: OSType; fileNameExtension: OSType; var outCanOpenWithGraphicsImporter: boolean; var outCanOpenAsMovie: boolean; var outPreferGraphicsImporter: boolean; inFlags: UInt32): OSErr; external name '_CanQuickTimeOpenFile';
  4341. { Determines whether the file could be opened using a graphics importer or opened in place as a movie. }
  4342. {
  4343. * CanQuickTimeOpenDataRef()
  4344. *
  4345. * Availability:
  4346. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  4347. * CarbonLib: in CarbonLib 1.3 and later
  4348. * Mac OS X: in version 10.0 and later
  4349. * Windows: in qtmlClient.lib 5.0 and later
  4350. }
  4351. function CanQuickTimeOpenDataRef(dataRef: Handle; dataRefType: OSType; var outCanOpenWithGraphicsImporter: boolean; var outCanOpenAsMovie: boolean; var outPreferGraphicsImporter: boolean; inFlags: UInt32): OSErr; external name '_CanQuickTimeOpenDataRef';
  4352. {***
  4353. Movie Controller support routines
  4354. ***}
  4355. {
  4356. * NewMovieController()
  4357. *
  4358. * Availability:
  4359. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4360. * CarbonLib: in CarbonLib 1.0 and later
  4361. * Mac OS X: in version 10.0 and later
  4362. * Windows: in qtmlClient.lib 3.0 and later
  4363. }
  4364. function NewMovieController(theMovie: Movie; const (*var*) movieRect: Rect; someFlags: SInt32): ComponentInstance; external name '_NewMovieController';
  4365. {
  4366. * DisposeMovieController()
  4367. *
  4368. * Availability:
  4369. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4370. * CarbonLib: in CarbonLib 1.0 and later
  4371. * Mac OS X: in version 10.0 and later
  4372. * Windows: in qtmlClient.lib 3.0 and later
  4373. }
  4374. procedure DisposeMovieController(mc: ComponentInstance); external name '_DisposeMovieController';
  4375. {
  4376. * ShowMovieInformation()
  4377. *
  4378. * Availability:
  4379. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4380. * CarbonLib: in CarbonLib 1.0 and later
  4381. * Mac OS X: in version 10.0 and later
  4382. * Windows: in qtmlClient.lib 3.0 and later
  4383. }
  4384. procedure ShowMovieInformation(theMovie: Movie; filterProc: ModalFilterUPP; refCon: SInt32); external name '_ShowMovieInformation';
  4385. {****
  4386. Scrap routines
  4387. ****}
  4388. {
  4389. * PutMovieOnScrap()
  4390. *
  4391. * Availability:
  4392. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4393. * CarbonLib: in CarbonLib 1.0 and later
  4394. * Mac OS X: in version 10.0 and later
  4395. * Windows: in qtmlClient.lib 3.0 and later
  4396. }
  4397. function PutMovieOnScrap(theMovie: Movie; movieScrapFlags: SInt32): OSErr; external name '_PutMovieOnScrap';
  4398. {
  4399. * NewMovieFromScrap()
  4400. *
  4401. * Availability:
  4402. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4403. * CarbonLib: in CarbonLib 1.0 and later
  4404. * Mac OS X: in version 10.0 and later
  4405. * Windows: in qtmlClient.lib 3.0 and later
  4406. }
  4407. function NewMovieFromScrap(newMovieFlags: SInt32): Movie; external name '_NewMovieFromScrap';
  4408. {****
  4409. DataRef routines
  4410. ****}
  4411. {
  4412. * GetMediaDataRef()
  4413. *
  4414. * Availability:
  4415. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4416. * CarbonLib: in CarbonLib 1.0 and later
  4417. * Mac OS X: in version 10.0 and later
  4418. * Windows: in qtmlClient.lib 3.0 and later
  4419. }
  4420. function GetMediaDataRef(theMedia: Media; index: SInt16; var dataRef: Handle; var dataRefType: OSType; var dataRefAttributes: SInt32): OSErr; external name '_GetMediaDataRef';
  4421. {
  4422. * SetMediaDataRef()
  4423. *
  4424. * Availability:
  4425. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4426. * CarbonLib: in CarbonLib 1.0 and later
  4427. * Mac OS X: in version 10.0 and later
  4428. * Windows: in qtmlClient.lib 3.0 and later
  4429. }
  4430. function SetMediaDataRef(theMedia: Media; index: SInt16; dataRef: Handle; dataRefType: OSType): OSErr; external name '_SetMediaDataRef';
  4431. {
  4432. * SetMediaDataRefAttributes()
  4433. *
  4434. * Availability:
  4435. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4436. * CarbonLib: in CarbonLib 1.0 and later
  4437. * Mac OS X: in version 10.0 and later
  4438. * Windows: in qtmlClient.lib 3.0 and later
  4439. }
  4440. function SetMediaDataRefAttributes(theMedia: Media; index: SInt16; dataRefAttributes: SInt32): OSErr; external name '_SetMediaDataRefAttributes';
  4441. {
  4442. * AddMediaDataRef()
  4443. *
  4444. * Availability:
  4445. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4446. * CarbonLib: in CarbonLib 1.0 and later
  4447. * Mac OS X: in version 10.0 and later
  4448. * Windows: in qtmlClient.lib 3.0 and later
  4449. }
  4450. function AddMediaDataRef(theMedia: Media; var index: SInt16; dataRef: Handle; dataRefType: OSType): OSErr; external name '_AddMediaDataRef';
  4451. {
  4452. * GetMediaDataRefCount()
  4453. *
  4454. * Availability:
  4455. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4456. * CarbonLib: in CarbonLib 1.0 and later
  4457. * Mac OS X: in version 10.0 and later
  4458. * Windows: in qtmlClient.lib 3.0 and later
  4459. }
  4460. function GetMediaDataRefCount(theMedia: Media; var count: SInt16): OSErr; external name '_GetMediaDataRefCount';
  4461. {
  4462. * QTNewAlias()
  4463. *
  4464. * Availability:
  4465. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  4466. * CarbonLib: in CarbonLib 1.0 and later
  4467. * Mac OS X: in version 10.0 and later
  4468. * Windows: in qtmlClient.lib 3.0 and later
  4469. }
  4470. function QTNewAlias(const (*var*) fss: FSSpec; var alias: AliasHandle; minimal: boolean): OSErr; external name '_QTNewAlias';
  4471. {****
  4472. Playback hint routines
  4473. ****}
  4474. {
  4475. * SetMoviePlayHints()
  4476. *
  4477. * Availability:
  4478. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4479. * CarbonLib: in CarbonLib 1.0 and later
  4480. * Mac OS X: in version 10.0 and later
  4481. * Windows: in qtmlClient.lib 3.0 and later
  4482. }
  4483. procedure SetMoviePlayHints(theMovie: Movie; flags: SInt32; flagsMask: SInt32); external name '_SetMoviePlayHints';
  4484. {
  4485. * SetMediaPlayHints()
  4486. *
  4487. * Availability:
  4488. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4489. * CarbonLib: in CarbonLib 1.0 and later
  4490. * Mac OS X: in version 10.0 and later
  4491. * Windows: in qtmlClient.lib 3.0 and later
  4492. }
  4493. procedure SetMediaPlayHints(theMedia: Media; flags: SInt32; flagsMask: SInt32); external name '_SetMediaPlayHints';
  4494. {
  4495. * GetMediaPlayHints()
  4496. *
  4497. * Availability:
  4498. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  4499. * CarbonLib: in CarbonLib 1.0 and later
  4500. * Mac OS X: in version 10.0 and later
  4501. * Windows: in qtmlClient.lib 3.0 and later
  4502. }
  4503. procedure GetMediaPlayHints(theMedia: Media; var flags: SInt32); external name '_GetMediaPlayHints';
  4504. {****
  4505. Load time track hints
  4506. ****}
  4507. const
  4508. preloadAlways = $00000001;
  4509. preloadOnlyIfEnabled = $00000002;
  4510. {
  4511. * SetTrackLoadSettings()
  4512. *
  4513. * Availability:
  4514. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4515. * CarbonLib: in CarbonLib 1.0 and later
  4516. * Mac OS X: in version 10.0 and later
  4517. * Windows: in qtmlClient.lib 3.0 and later
  4518. }
  4519. procedure SetTrackLoadSettings(theTrack: Track; preloadTime: TimeValue; preloadDuration: TimeValue; preloadFlags: SInt32; defaultHints: SInt32); external name '_SetTrackLoadSettings';
  4520. {
  4521. * GetTrackLoadSettings()
  4522. *
  4523. * Availability:
  4524. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4525. * CarbonLib: in CarbonLib 1.0 and later
  4526. * Mac OS X: in version 10.0 and later
  4527. * Windows: in qtmlClient.lib 3.0 and later
  4528. }
  4529. procedure GetTrackLoadSettings(theTrack: Track; var preloadTime: TimeValue; var preloadDuration: TimeValue; var preloadFlags: SInt32; var defaultHints: SInt32); external name '_GetTrackLoadSettings';
  4530. {****
  4531. Big screen TV
  4532. ****}
  4533. const
  4534. fullScreenHideCursor = $00000001;
  4535. fullScreenAllowEvents = $00000002;
  4536. fullScreenDontChangeMenuBar = $00000004;
  4537. fullScreenPreflightSize = $00000008;
  4538. {
  4539. * BeginFullScreen()
  4540. *
  4541. * Availability:
  4542. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4543. * CarbonLib: in CarbonLib 1.0 and later
  4544. * Mac OS X: in version 10.0 and later
  4545. * Windows: in qtmlClient.lib 3.0 and later
  4546. }
  4547. 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';
  4548. {
  4549. * EndFullScreen()
  4550. *
  4551. * Availability:
  4552. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4553. * CarbonLib: in CarbonLib 1.0 and later
  4554. * Mac OS X: in version 10.0 and later
  4555. * Windows: in qtmlClient.lib 3.0 and later
  4556. }
  4557. function EndFullScreen(fullState: Ptr; flags: SInt32): OSErr; external name '_EndFullScreen';
  4558. {****
  4559. Wired Actions
  4560. ****}
  4561. { flags for MovieExecuteWiredActions }
  4562. const
  4563. movieExecuteWiredActionDontExecute = $00000001;
  4564. {
  4565. * AddMovieExecuteWiredActionsProc()
  4566. *
  4567. * Availability:
  4568. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4569. * CarbonLib: in CarbonLib 1.0.2 and later
  4570. * Mac OS X: in version 10.0 and later
  4571. * Windows: in qtmlClient.lib 4.0 and later
  4572. }
  4573. function AddMovieExecuteWiredActionsProc(theMovie: Movie; proc: MovieExecuteWiredActionsUPP; refCon: UnivPtr): OSErr; external name '_AddMovieExecuteWiredActionsProc';
  4574. {
  4575. * RemoveMovieExecuteWiredActionsProc()
  4576. *
  4577. * Availability:
  4578. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4579. * CarbonLib: in CarbonLib 1.0.2 and later
  4580. * Mac OS X: in version 10.0 and later
  4581. * Windows: in qtmlClient.lib 4.0 and later
  4582. }
  4583. function RemoveMovieExecuteWiredActionsProc(theMovie: Movie; proc: MovieExecuteWiredActionsUPP; refCon: UnivPtr): OSErr; external name '_RemoveMovieExecuteWiredActionsProc';
  4584. {
  4585. * MovieExecuteWiredActions()
  4586. *
  4587. * Availability:
  4588. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4589. * CarbonLib: in CarbonLib 1.0.2 and later
  4590. * Mac OS X: in version 10.0 and later
  4591. * Windows: in qtmlClient.lib 4.0 and later
  4592. }
  4593. function MovieExecuteWiredActions(theMovie: Movie; flags: SInt32; actions: QTAtomContainer): OSErr; external name '_MovieExecuteWiredActions';
  4594. {****
  4595. Keyboard Navigation/Editable Text Field Support
  4596. ****}
  4597. {
  4598. Navigation Direction Constants
  4599. for MediaNavigateTargetRefCon
  4600. }
  4601. const
  4602. kRefConNavigationNext = 0;
  4603. kRefConNavigationPrevious = 1;
  4604. {
  4605. Refcon Properties
  4606. for MediaRefConGetProerty/MediaRefConSetProperty
  4607. }
  4608. kRefConPropertyCanHaveFocus = 1; { Boolean }
  4609. kRefConPropertyHasFocus = 2; { Boolean }
  4610. { media properties }
  4611. kTrackFocusCanEditFlag = FourCharCode('kedt');
  4612. kTrackDefaultFocusFlags = FourCharCode('kfoc');
  4613. kTrackFocusDefaultRefcon = FourCharCode('kref');
  4614. { focus flags }
  4615. kTrackFocusOn = 1;
  4616. kTrackHandlesTabs = 2; { this is reserved for a future release }
  4617. { ****
  4618. Flash track properties
  4619. **** }
  4620. kFlashTrackPropertyAcceptAllClicks = FourCharCode('clik'); { type of media property atom; data is a Boolean }
  4621. { ****
  4622. Sprite Toolbox
  4623. **** }
  4624. kBackgroundSpriteLayerNum = 32767;
  4625. { Sprite Properties }
  4626. kSpritePropertyMatrix = 1;
  4627. kSpritePropertyImageDescription = 2;
  4628. kSpritePropertyImageDataPtr = 3;
  4629. kSpritePropertyVisible = 4;
  4630. kSpritePropertyLayer = 5;
  4631. kSpritePropertyGraphicsMode = 6;
  4632. kSpritePropertyImageDataSize = 7;
  4633. kSpritePropertyActionHandlingSpriteID = 8;
  4634. kSpritePropertyCanBeHitTested = 9;
  4635. kSpritePropertyImageIndex = 100;
  4636. kSpriteTrackPropertyBackgroundColor = 101;
  4637. kSpriteTrackPropertyOffscreenBitDepth = 102;
  4638. kSpriteTrackPropertySampleFormat = 103;
  4639. kSpriteTrackPropertyScaleSpritesToScaleWorld = 104;
  4640. kSpriteTrackPropertyHasActions = 105;
  4641. kSpriteTrackPropertyVisible = 106;
  4642. kSpriteTrackPropertyQTIdleEventsFrequency = 107;
  4643. kSpriteTrackPropertyAllSpritesHitTestingMode = 108;
  4644. kSpriteTrackPropertyPreferredDepthInterpretationMode = 109;
  4645. kSpriteImagePropertyRegistrationPoint = 1000;
  4646. kSpriteImagePropertyGroupID = 1001;
  4647. { values for kSpriteTrackPropertyPreferredDepthInterpretationMode }
  4648. kSpriteTrackPreferredDepthCompatibilityMode = 0;
  4649. kSpriteTrackPreferredDepthModernMode = 1;
  4650. { values for kSpriteTrackPropertyAllSpritesHitTestingMode }
  4651. kSpriteHitTestUseSpritesOwnPropertiesMode = 0;
  4652. kSpriteHitTestTreatAllSpritesAsHitTestableMode = 1;
  4653. kSpriteHitTestTreatAllSpritesAsNotHitTestableMode = 2;
  4654. { special value for kSpriteTrackPropertyQTIdleEventsFrequency (the default) }
  4655. kNoQTIdleEvents = -1;
  4656. { GetSpriteProperties for accessing invalid SpriteWorldRegion }
  4657. kGetSpriteWorldInvalidRegionAndLeaveIntact = -1;
  4658. kGetSpriteWorldInvalidRegionAndThenSetEmpty = -2;
  4659. { flagsIn for SpriteWorldIdle }
  4660. kOnlyDrawToSpriteWorld = $00000001;
  4661. kSpriteWorldPreflight = $00000002;
  4662. { flagsOut for SpriteWorldIdle }
  4663. kSpriteWorldDidDraw = $00000001;
  4664. kSpriteWorldNeedsToDraw = $00000002;
  4665. { flags for sprite track sample format }
  4666. kKeyFrameAndSingleOverride = $00000002;
  4667. kKeyFrameAndAllOverrides = $00000004;
  4668. { sprite world flags }
  4669. kScaleSpritesToScaleWorld = $00000002;
  4670. kSpriteWorldHighQuality = $00000004;
  4671. kSpriteWorldDontAutoInvalidate = $00000008;
  4672. kSpriteWorldInvisible = $00000010;
  4673. kSpriteWorldDirtyInsteadOfFlush = $00000020;
  4674. {
  4675. * NewSpriteWorld()
  4676. *
  4677. * Availability:
  4678. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4679. * CarbonLib: in CarbonLib 1.0 and later
  4680. * Mac OS X: in version 10.0 and later
  4681. * Windows: in qtmlClient.lib 3.0 and later
  4682. }
  4683. function NewSpriteWorld(var newSpriteWorld: SpriteWorld; destination: GWorldPtr; spriteLayer: GWorldPtr; var backgroundColor: RGBColor; background: GWorldPtr): OSErr; external name '_NewSpriteWorld';
  4684. {
  4685. * DisposeSpriteWorld()
  4686. *
  4687. * Availability:
  4688. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4689. * CarbonLib: in CarbonLib 1.0 and later
  4690. * Mac OS X: in version 10.0 and later
  4691. * Windows: in qtmlClient.lib 3.0 and later
  4692. }
  4693. procedure DisposeSpriteWorld(theSpriteWorld: SpriteWorld); external name '_DisposeSpriteWorld';
  4694. {
  4695. * SetSpriteWorldClip()
  4696. *
  4697. * Availability:
  4698. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4699. * CarbonLib: in CarbonLib 1.0 and later
  4700. * Mac OS X: in version 10.0 and later
  4701. * Windows: in qtmlClient.lib 3.0 and later
  4702. }
  4703. function SetSpriteWorldClip(theSpriteWorld: SpriteWorld; clipRgn: RgnHandle): OSErr; external name '_SetSpriteWorldClip';
  4704. {
  4705. * SetSpriteWorldMatrix()
  4706. *
  4707. * Availability:
  4708. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4709. * CarbonLib: in CarbonLib 1.0 and later
  4710. * Mac OS X: in version 10.0 and later
  4711. * Windows: in qtmlClient.lib 3.0 and later
  4712. }
  4713. function SetSpriteWorldMatrix(theSpriteWorld: SpriteWorld; const (*var*) matrix: MatrixRecord): OSErr; external name '_SetSpriteWorldMatrix';
  4714. {
  4715. * SetSpriteWorldGraphicsMode()
  4716. *
  4717. * Availability:
  4718. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  4719. * CarbonLib: in CarbonLib 1.0 and later
  4720. * Mac OS X: in version 10.0 and later
  4721. * Windows: in qtmlClient.lib 3.0 and later
  4722. }
  4723. function SetSpriteWorldGraphicsMode(theSpriteWorld: SpriteWorld; mode: SInt32; const (*var*) opColor: RGBColor): OSErr; external name '_SetSpriteWorldGraphicsMode';
  4724. {
  4725. * SpriteWorldIdle()
  4726. *
  4727. * Availability:
  4728. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4729. * CarbonLib: in CarbonLib 1.0 and later
  4730. * Mac OS X: in version 10.0 and later
  4731. * Windows: in qtmlClient.lib 3.0 and later
  4732. }
  4733. function SpriteWorldIdle(theSpriteWorld: SpriteWorld; flagsIn: SInt32; var flagsOut: SInt32): OSErr; external name '_SpriteWorldIdle';
  4734. {
  4735. * InvalidateSpriteWorld()
  4736. *
  4737. * Availability:
  4738. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4739. * CarbonLib: in CarbonLib 1.0 and later
  4740. * Mac OS X: in version 10.0 and later
  4741. * Windows: in qtmlClient.lib 3.0 and later
  4742. }
  4743. function InvalidateSpriteWorld(theSpriteWorld: SpriteWorld; var invalidArea: Rect): OSErr; external name '_InvalidateSpriteWorld';
  4744. {
  4745. * SpriteWorldHitTest()
  4746. *
  4747. * Availability:
  4748. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4749. * CarbonLib: in CarbonLib 1.0 and later
  4750. * Mac OS X: in version 10.0 and later
  4751. * Windows: in qtmlClient.lib 3.0 and later
  4752. }
  4753. function SpriteWorldHitTest(theSpriteWorld: SpriteWorld; flags: SInt32; loc: Point; var spriteHit: Sprite): OSErr; external name '_SpriteWorldHitTest';
  4754. {
  4755. * SpriteHitTest()
  4756. *
  4757. * Availability:
  4758. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4759. * CarbonLib: in CarbonLib 1.0 and later
  4760. * Mac OS X: in version 10.0 and later
  4761. * Windows: in qtmlClient.lib 3.0 and later
  4762. }
  4763. function SpriteHitTest(theSprite: Sprite; flags: SInt32; loc: Point; var wasHit: boolean): OSErr; external name '_SpriteHitTest';
  4764. {
  4765. * DisposeAllSprites()
  4766. *
  4767. * Availability:
  4768. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4769. * CarbonLib: in CarbonLib 1.0 and later
  4770. * Mac OS X: in version 10.0 and later
  4771. * Windows: in qtmlClient.lib 3.0 and later
  4772. }
  4773. procedure DisposeAllSprites(theSpriteWorld: SpriteWorld); external name '_DisposeAllSprites';
  4774. {
  4775. * SetSpriteWorldFlags()
  4776. *
  4777. * Availability:
  4778. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  4779. * CarbonLib: in CarbonLib 1.0 and later
  4780. * Mac OS X: in version 10.0 and later
  4781. * Windows: in qtmlClient.lib 3.0 and later
  4782. }
  4783. function SetSpriteWorldFlags(spriteWorld_: SpriteWorld; flags: SInt32; flagsMask: SInt32): OSErr; external name '_SetSpriteWorldFlags';
  4784. {
  4785. * NewSprite()
  4786. *
  4787. * Availability:
  4788. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4789. * CarbonLib: in CarbonLib 1.0 and later
  4790. * Mac OS X: in version 10.0 and later
  4791. * Windows: in qtmlClient.lib 3.0 and later
  4792. }
  4793. function NewSprite(var newSprite: Sprite; itsSpriteWorld: SpriteWorld; idh: ImageDescriptionHandle; imageDataPtr: Ptr; var matrix: MatrixRecord; visible: boolean; layer: SInt16): OSErr; external name '_NewSprite';
  4794. {
  4795. * DisposeSprite()
  4796. *
  4797. * Availability:
  4798. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4799. * CarbonLib: in CarbonLib 1.0 and later
  4800. * Mac OS X: in version 10.0 and later
  4801. * Windows: in qtmlClient.lib 3.0 and later
  4802. }
  4803. procedure DisposeSprite(theSprite: Sprite); external name '_DisposeSprite';
  4804. {
  4805. * InvalidateSprite()
  4806. *
  4807. * Availability:
  4808. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4809. * CarbonLib: in CarbonLib 1.0 and later
  4810. * Mac OS X: in version 10.0 and later
  4811. * Windows: in qtmlClient.lib 3.0 and later
  4812. }
  4813. procedure InvalidateSprite(theSprite: Sprite); external name '_InvalidateSprite';
  4814. {
  4815. * SetSpriteProperty()
  4816. *
  4817. * Availability:
  4818. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4819. * CarbonLib: in CarbonLib 1.0 and later
  4820. * Mac OS X: in version 10.0 and later
  4821. * Windows: in qtmlClient.lib 3.0 and later
  4822. }
  4823. function SetSpriteProperty(theSprite: Sprite; propertyType: SInt32; propertyValue: UnivPtr): OSErr; external name '_SetSpriteProperty';
  4824. {
  4825. * GetSpriteProperty()
  4826. *
  4827. * Availability:
  4828. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4829. * CarbonLib: in CarbonLib 1.0 and later
  4830. * Mac OS X: in version 10.0 and later
  4831. * Windows: in qtmlClient.lib 3.0 and later
  4832. }
  4833. function GetSpriteProperty(theSprite: Sprite; propertyType: SInt32; propertyValue: UnivPtr): OSErr; external name '_GetSpriteProperty';
  4834. {****
  4835. QT Atom Data Support
  4836. ****}
  4837. const
  4838. kParentAtomIsContainer = 0;
  4839. { create and dispose QTAtomContainer objects }
  4840. {
  4841. * QTNewAtomContainer()
  4842. *
  4843. * Availability:
  4844. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4845. * CarbonLib: in CarbonLib 1.0 and later
  4846. * Mac OS X: in version 10.0 and later
  4847. * Windows: in qtmlClient.lib 3.0 and later
  4848. }
  4849. function QTNewAtomContainer(var atomData: QTAtomContainer): OSErr; external name '_QTNewAtomContainer';
  4850. {
  4851. * QTDisposeAtomContainer()
  4852. *
  4853. * Availability:
  4854. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4855. * CarbonLib: in CarbonLib 1.0 and later
  4856. * Mac OS X: in version 10.0 and later
  4857. * Windows: in qtmlClient.lib 3.0 and later
  4858. }
  4859. function QTDisposeAtomContainer(atomData: QTAtomContainer): OSErr; external name '_QTDisposeAtomContainer';
  4860. { locating nested atoms within QTAtomContainer container }
  4861. {
  4862. * QTGetNextChildType()
  4863. *
  4864. * Availability:
  4865. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4866. * CarbonLib: in CarbonLib 1.0 and later
  4867. * Mac OS X: in version 10.0 and later
  4868. * Windows: in qtmlClient.lib 3.0 and later
  4869. }
  4870. function QTGetNextChildType(container: QTAtomContainer; parentAtom: QTAtom; currentChildType: QTAtomType): QTAtomType; external name '_QTGetNextChildType';
  4871. {
  4872. * QTCountChildrenOfType()
  4873. *
  4874. * Availability:
  4875. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4876. * CarbonLib: in CarbonLib 1.0 and later
  4877. * Mac OS X: in version 10.0 and later
  4878. * Windows: in qtmlClient.lib 3.0 and later
  4879. }
  4880. function QTCountChildrenOfType(container: QTAtomContainer; parentAtom: QTAtom; childType: QTAtomType): SInt16; external name '_QTCountChildrenOfType';
  4881. {
  4882. * QTFindChildByIndex()
  4883. *
  4884. * Availability:
  4885. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4886. * CarbonLib: in CarbonLib 1.0 and later
  4887. * Mac OS X: in version 10.0 and later
  4888. * Windows: in qtmlClient.lib 3.0 and later
  4889. }
  4890. function QTFindChildByIndex(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; index: SInt16; var id: QTAtomID): QTAtom; external name '_QTFindChildByIndex';
  4891. {
  4892. * QTFindChildByID()
  4893. *
  4894. * Availability:
  4895. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4896. * CarbonLib: in CarbonLib 1.0 and later
  4897. * Mac OS X: in version 10.0 and later
  4898. * Windows: in qtmlClient.lib 3.0 and later
  4899. }
  4900. function QTFindChildByID(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; id: QTAtomID; var index: SInt16): QTAtom; external name '_QTFindChildByID';
  4901. {
  4902. * QTNextChildAnyType()
  4903. *
  4904. * Availability:
  4905. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4906. * CarbonLib: in CarbonLib 1.0 and later
  4907. * Mac OS X: in version 10.0 and later
  4908. * Windows: in qtmlClient.lib 3.0 and later
  4909. }
  4910. function QTNextChildAnyType(container: QTAtomContainer; parentAtom: QTAtom; currentChild: QTAtom; var nextChild: QTAtom): OSErr; external name '_QTNextChildAnyType';
  4911. { set a leaf atom's data }
  4912. {
  4913. * QTSetAtomData()
  4914. *
  4915. * Availability:
  4916. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4917. * CarbonLib: in CarbonLib 1.0 and later
  4918. * Mac OS X: in version 10.0 and later
  4919. * Windows: in qtmlClient.lib 3.0 and later
  4920. }
  4921. function QTSetAtomData(container: QTAtomContainer; atom: QTAtom; dataSize: SInt32; atomData: UnivPtr): OSErr; external name '_QTSetAtomData';
  4922. { extracting data }
  4923. {
  4924. * QTCopyAtomDataToHandle()
  4925. *
  4926. * Availability:
  4927. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4928. * CarbonLib: in CarbonLib 1.0 and later
  4929. * Mac OS X: in version 10.0 and later
  4930. * Windows: in qtmlClient.lib 3.0 and later
  4931. }
  4932. function QTCopyAtomDataToHandle(container: QTAtomContainer; atom: QTAtom; targetHandle: Handle): OSErr; external name '_QTCopyAtomDataToHandle';
  4933. {
  4934. * QTCopyAtomDataToPtr()
  4935. *
  4936. * Availability:
  4937. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4938. * CarbonLib: in CarbonLib 1.0 and later
  4939. * Mac OS X: in version 10.0 and later
  4940. * Windows: in qtmlClient.lib 3.0 and later
  4941. }
  4942. function QTCopyAtomDataToPtr(container: QTAtomContainer; atom: QTAtom; sizeOrLessOK: boolean; size: SInt32; targetPtr: UnivPtr; var actualSize: SInt32): OSErr; external name '_QTCopyAtomDataToPtr';
  4943. {
  4944. * QTGetAtomTypeAndID()
  4945. *
  4946. * Availability:
  4947. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4948. * CarbonLib: in CarbonLib 1.0 and later
  4949. * Mac OS X: in version 10.0 and later
  4950. * Windows: in qtmlClient.lib 3.0 and later
  4951. }
  4952. function QTGetAtomTypeAndID(container: QTAtomContainer; atom: QTAtom; var atomType: QTAtomType; var id: QTAtomID): OSErr; external name '_QTGetAtomTypeAndID';
  4953. { extract a copy of an atom and all of it's children, caller disposes }
  4954. {
  4955. * QTCopyAtom()
  4956. *
  4957. * Availability:
  4958. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4959. * CarbonLib: in CarbonLib 1.0 and later
  4960. * Mac OS X: in version 10.0 and later
  4961. * Windows: in qtmlClient.lib 3.0 and later
  4962. }
  4963. function QTCopyAtom(container: QTAtomContainer; atom: QTAtom; var targetContainer: QTAtomContainer): OSErr; external name '_QTCopyAtom';
  4964. { obtaining direct reference to atom data }
  4965. {
  4966. * QTLockContainer()
  4967. *
  4968. * Availability:
  4969. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4970. * CarbonLib: in CarbonLib 1.0 and later
  4971. * Mac OS X: in version 10.0 and later
  4972. * Windows: in qtmlClient.lib 3.0 and later
  4973. }
  4974. function QTLockContainer(container: QTAtomContainer): OSErr; external name '_QTLockContainer';
  4975. {
  4976. * QTGetAtomDataPtr()
  4977. *
  4978. * Availability:
  4979. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4980. * CarbonLib: in CarbonLib 1.0 and later
  4981. * Mac OS X: in version 10.0 and later
  4982. * Windows: in qtmlClient.lib 3.0 and later
  4983. }
  4984. function QTGetAtomDataPtr(container: QTAtomContainer; atom: QTAtom; var dataSize: SInt32; var atomData: Ptr): OSErr; external name '_QTGetAtomDataPtr';
  4985. {
  4986. * QTUnlockContainer()
  4987. *
  4988. * Availability:
  4989. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4990. * CarbonLib: in CarbonLib 1.0 and later
  4991. * Mac OS X: in version 10.0 and later
  4992. * Windows: in qtmlClient.lib 3.0 and later
  4993. }
  4994. function QTUnlockContainer(container: QTAtomContainer): OSErr; external name '_QTUnlockContainer';
  4995. {
  4996. building QTAtomContainer trees
  4997. creates and inserts new atom at specified index, existing atoms at or after index are moved toward end of list
  4998. used for Top-Down tree creation
  4999. }
  5000. {
  5001. * QTInsertChild()
  5002. *
  5003. * Availability:
  5004. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5005. * CarbonLib: in CarbonLib 1.0 and later
  5006. * Mac OS X: in version 10.0 and later
  5007. * Windows: in qtmlClient.lib 3.0 and later
  5008. }
  5009. function QTInsertChild(container: QTAtomContainer; parentAtom: QTAtom; atomType: QTAtomType; id: QTAtomID; index: SInt16; dataSize: SInt32; data: UnivPtr; var newAtom: QTAtom): OSErr; external name '_QTInsertChild';
  5010. { inserts children from childrenContainer as children of parentAtom }
  5011. {
  5012. * QTInsertChildren()
  5013. *
  5014. * Availability:
  5015. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5016. * CarbonLib: in CarbonLib 1.0 and later
  5017. * Mac OS X: in version 10.0 and later
  5018. * Windows: in qtmlClient.lib 3.0 and later
  5019. }
  5020. function QTInsertChildren(container: QTAtomContainer; parentAtom: QTAtom; childrenContainer: QTAtomContainer): OSErr; external name '_QTInsertChildren';
  5021. { destruction }
  5022. {
  5023. * QTRemoveAtom()
  5024. *
  5025. * Availability:
  5026. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5027. * CarbonLib: in CarbonLib 1.0 and later
  5028. * Mac OS X: in version 10.0 and later
  5029. * Windows: in qtmlClient.lib 3.0 and later
  5030. }
  5031. function QTRemoveAtom(container: QTAtomContainer; atom: QTAtom): OSErr; external name '_QTRemoveAtom';
  5032. {
  5033. * QTRemoveChildren()
  5034. *
  5035. * Availability:
  5036. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5037. * CarbonLib: in CarbonLib 1.0 and later
  5038. * Mac OS X: in version 10.0 and later
  5039. * Windows: in qtmlClient.lib 3.0 and later
  5040. }
  5041. function QTRemoveChildren(container: QTAtomContainer; atom: QTAtom): OSErr; external name '_QTRemoveChildren';
  5042. { replacement must be same type as target }
  5043. {
  5044. * QTReplaceAtom()
  5045. *
  5046. * Availability:
  5047. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5048. * CarbonLib: in CarbonLib 1.0 and later
  5049. * Mac OS X: in version 10.0 and later
  5050. * Windows: in qtmlClient.lib 3.0 and later
  5051. }
  5052. function QTReplaceAtom(targetContainer: QTAtomContainer; targetAtom: QTAtom; replacementContainer: QTAtomContainer; replacementAtom: QTAtom): OSErr; external name '_QTReplaceAtom';
  5053. {
  5054. * QTSwapAtoms()
  5055. *
  5056. * Availability:
  5057. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5058. * CarbonLib: in CarbonLib 1.0 and later
  5059. * Mac OS X: in version 10.0 and later
  5060. * Windows: in qtmlClient.lib 3.0 and later
  5061. }
  5062. function QTSwapAtoms(container: QTAtomContainer; atom1: QTAtom; atom2: QTAtom): OSErr; external name '_QTSwapAtoms';
  5063. {
  5064. * QTSetAtomID()
  5065. *
  5066. * Availability:
  5067. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5068. * CarbonLib: in CarbonLib 1.0 and later
  5069. * Mac OS X: in version 10.0 and later
  5070. * Windows: in qtmlClient.lib 3.0 and later
  5071. }
  5072. function QTSetAtomID(container: QTAtomContainer; atom: QTAtom; newID: QTAtomID): OSErr; external name '_QTSetAtomID';
  5073. {
  5074. * QTGetAtomParent()
  5075. *
  5076. * Availability:
  5077. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  5078. * CarbonLib: in CarbonLib 1.0.2 and later
  5079. * Mac OS X: in version 10.0 and later
  5080. * Windows: in qtmlClient.lib 4.0 and later
  5081. }
  5082. function QTGetAtomParent(container: QTAtomContainer; childAtom: QTAtom): QTAtom; external name '_QTGetAtomParent';
  5083. {
  5084. * SetMediaPropertyAtom()
  5085. *
  5086. * Availability:
  5087. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5088. * CarbonLib: in CarbonLib 1.0 and later
  5089. * Mac OS X: in version 10.0 and later
  5090. * Windows: in qtmlClient.lib 3.0 and later
  5091. }
  5092. function SetMediaPropertyAtom(theMedia: Media; propertyAtom: QTAtomContainer): OSErr; external name '_SetMediaPropertyAtom';
  5093. {
  5094. * GetMediaPropertyAtom()
  5095. *
  5096. * Availability:
  5097. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  5098. * CarbonLib: in CarbonLib 1.0 and later
  5099. * Mac OS X: in version 10.0 and later
  5100. * Windows: in qtmlClient.lib 3.0 and later
  5101. }
  5102. function GetMediaPropertyAtom(theMedia: Media; var propertyAtom: QTAtomContainer): OSErr; external name '_GetMediaPropertyAtom';
  5103. {****
  5104. Tween Support
  5105. ****}
  5106. type
  5107. TweenRecordPtr = ^TweenRecord;
  5108. {$ifc TYPED_FUNCTION_POINTERS}
  5109. TweenerDataProcPtr = function(tr: TweenRecordPtr; tweenData: UnivPtr; tweenDataSize: SInt32; dataDescriptionSeed: SInt32; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UnivPtr): ComponentResult;
  5110. {$elsec}
  5111. TweenerDataProcPtr = ProcPtr;
  5112. {$endc}
  5113. {$ifc OPAQUE_UPP_TYPES}
  5114. TweenerDataUPP = ^SInt32; { an opaque UPP }
  5115. {$elsec}
  5116. TweenerDataUPP = UniversalProcPtr;
  5117. {$endc}
  5118. TweenRecord = record
  5119. version: SInt32;
  5120. container: QTAtomContainer;
  5121. tweenAtom: QTAtom;
  5122. dataAtom: QTAtom;
  5123. percent: Fixed;
  5124. dataProc: TweenerDataUPP;
  5125. private1: Ptr;
  5126. private2: Ptr;
  5127. end;
  5128. TweenV1RecordPtr = ^TweenV1Record;
  5129. TweenV1Record = record
  5130. version: SInt32;
  5131. container: QTAtomContainer;
  5132. tweenAtom: QTAtom;
  5133. dataAtom: QTAtom;
  5134. percent: Fixed;
  5135. dataProc: TweenerDataUPP;
  5136. private1: Ptr;
  5137. private2: Ptr;
  5138. fractPercent: Fract;
  5139. end;
  5140. const
  5141. kTweenRecordNoFlags = 0;
  5142. kTweenRecordIsAtInterruptTime = $00000001;
  5143. type
  5144. TweenV2RecordPtr = ^TweenV2Record;
  5145. TweenV2Record = record
  5146. version: SInt32;
  5147. container: QTAtomContainer;
  5148. tweenAtom: QTAtom;
  5149. dataAtom: QTAtom;
  5150. percent: Fixed;
  5151. dataProc: TweenerDataUPP;
  5152. private1: Ptr;
  5153. private2: Ptr;
  5154. fractPercent: Fract;
  5155. flags: SInt32;
  5156. end;
  5157. {
  5158. * QTNewTween()
  5159. *
  5160. * Availability:
  5161. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5162. * CarbonLib: in CarbonLib 1.0 and later
  5163. * Mac OS X: in version 10.0 and later
  5164. * Windows: in qtmlClient.lib 3.0 and later
  5165. }
  5166. function QTNewTween(var tween: QTTweener; container: QTAtomContainer; tweenAtom: QTAtom; maxTime: TimeValue): OSErr; external name '_QTNewTween';
  5167. {
  5168. * QTDisposeTween()
  5169. *
  5170. * Availability:
  5171. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5172. * CarbonLib: in CarbonLib 1.0 and later
  5173. * Mac OS X: in version 10.0 and later
  5174. * Windows: in qtmlClient.lib 3.0 and later
  5175. }
  5176. function QTDisposeTween(tween: QTTweener): OSErr; external name '_QTDisposeTween';
  5177. {
  5178. * QTDoTween()
  5179. *
  5180. * Availability:
  5181. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5182. * CarbonLib: in CarbonLib 1.0 and later
  5183. * Mac OS X: in version 10.0 and later
  5184. * Windows: in qtmlClient.lib 3.0 and later
  5185. }
  5186. function QTDoTween(tween: QTTweener; atTime: TimeValue; result: Handle; var resultSize: SInt32; tweenDataProc: TweenerDataUPP; tweenDataRefCon: UnivPtr): OSErr; external name '_QTDoTween';
  5187. {
  5188. QTDoTweenPtr is an interrupt-safe version of QTDoTween. It has the following limitations:
  5189. - not all tween types support this call (those which must allocated memory), in which case they return codecUnimpErr.
  5190. - the QTAtomContainer used for the tween must be locked
  5191. - the dataSize must be large enough to contain the result
  5192. - this call is not supported for sequence tweens, use interpolation tweens instead
  5193. }
  5194. {
  5195. * QTDoTweenPtr()
  5196. *
  5197. * Availability:
  5198. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5199. * CarbonLib: in CarbonLib 1.6 and later
  5200. * Mac OS X: in version 10.2 and later
  5201. * Windows: in qtmlClient.lib 6.0 and later
  5202. }
  5203. function QTDoTweenPtr(tween: QTTweener; atTime: TimeValue; result: Ptr; resultSize: SInt32): OSErr; external name '_QTDoTweenPtr';
  5204. {****
  5205. Sound Description Manipulations
  5206. ****}
  5207. {
  5208. * AddSoundDescriptionExtension()
  5209. *
  5210. * Availability:
  5211. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5212. * CarbonLib: in CarbonLib 1.0 and later
  5213. * Mac OS X: in version 10.0 and later
  5214. * Windows: in qtmlClient.lib 3.0 and later
  5215. }
  5216. function AddSoundDescriptionExtension(desc: SoundDescriptionHandle; extension: Handle; idType: OSType): OSErr; external name '_AddSoundDescriptionExtension';
  5217. {
  5218. * GetSoundDescriptionExtension()
  5219. *
  5220. * Availability:
  5221. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5222. * CarbonLib: in CarbonLib 1.0 and later
  5223. * Mac OS X: in version 10.0 and later
  5224. * Windows: in qtmlClient.lib 3.0 and later
  5225. }
  5226. function GetSoundDescriptionExtension(desc: SoundDescriptionHandle; var extension: Handle; idType: OSType): OSErr; external name '_GetSoundDescriptionExtension';
  5227. {
  5228. * RemoveSoundDescriptionExtension()
  5229. *
  5230. * Availability:
  5231. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5232. * CarbonLib: in CarbonLib 1.0 and later
  5233. * Mac OS X: in version 10.0 and later
  5234. * Windows: in qtmlClient.lib 3.0 and later
  5235. }
  5236. function RemoveSoundDescriptionExtension(desc: SoundDescriptionHandle; idType: OSType): OSErr; external name '_RemoveSoundDescriptionExtension';
  5237. {****
  5238. Preferences
  5239. ****}
  5240. {
  5241. * GetQuickTimePreference()
  5242. *
  5243. * Availability:
  5244. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5245. * CarbonLib: in CarbonLib 1.0 and later
  5246. * Mac OS X: in version 10.0 and later
  5247. * Windows: in qtmlClient.lib 3.0 and later
  5248. }
  5249. function GetQuickTimePreference(preferenceType: OSType; var preferenceAtom: QTAtomContainer): OSErr; external name '_GetQuickTimePreference';
  5250. {
  5251. * SetQuickTimePreference()
  5252. *
  5253. * Availability:
  5254. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5255. * CarbonLib: in CarbonLib 1.0 and later
  5256. * Mac OS X: in version 10.0 and later
  5257. * Windows: in qtmlClient.lib 3.0 and later
  5258. }
  5259. function SetQuickTimePreference(preferenceType: OSType; preferenceAtom: QTAtomContainer): OSErr; external name '_SetQuickTimePreference';
  5260. {****
  5261. Effects and dialog Support
  5262. ****}
  5263. { atom types for entries in the effects list }
  5264. const
  5265. kEffectNameAtom = FourCharCode('name'); { name of effect }
  5266. kEffectTypeAtom = FourCharCode('type'); { codec sub-type for effect }
  5267. kEffectManufacturerAtom = FourCharCode('manu'); { codec manufacturer for effect }
  5268. type
  5269. QTParamPreviewRecordPtr = ^QTParamPreviewRecord;
  5270. QTParamPreviewRecord = record
  5271. sourceID: SInt32; { 1 based source identifier }
  5272. sourcePicture: PicHandle; { picture for preview, must not dispose until dialog is disposed }
  5273. end;
  5274. QTParamPreviewPtr = ^QTParamPreviewRecord;
  5275. QTParamDialogEventRecordPtr = ^QTParamDialogEventRecord;
  5276. QTParamDialogEventRecord = record
  5277. theEvent: EventRecordPtr; { Event received by the dialog }
  5278. whichDialog: DialogRef; { dialog that event was directed towards }
  5279. itemHit: SInt16; { dialog item which was hit }
  5280. end;
  5281. QTParamDialogEventPtr = ^QTParamDialogEventRecord;
  5282. QTParamFetchPreviewRecordPtr = ^QTParamFetchPreviewRecord;
  5283. QTParamFetchPreviewRecord = record
  5284. theWorld: GWorldPtr; { the world into which to draw the preview }
  5285. percentage: Fixed; { frame percentage (from 0.0 - 1.0) to be drawn }
  5286. end;
  5287. QTParamFetchPreviewPtr = ^QTParamFetchPreviewRecord;
  5288. const
  5289. pdActionConfirmDialog = 1; { no param }
  5290. pdActionSetAppleMenu = 2; { param is MenuRef }
  5291. pdActionSetEditMenu = 3; { param is MenuRef }
  5292. pdActionGetDialogValues = 4; { param is QTAtomContainer }
  5293. pdActionSetPreviewUserItem = 5; { param is long }
  5294. pdActionSetPreviewPicture = 6; { param is QTParamPreviewPtr; }
  5295. pdActionSetColorPickerEventProc = 7; { param is UserEventUPP }
  5296. pdActionSetDialogTitle = 8; { param is StringPtr }
  5297. pdActionGetSubPanelMenu = 9; { param is MenuRef* }
  5298. pdActionActivateSubPanel = 10; { param is long }
  5299. pdActionConductStopAlert = 11; { param is StringPtr }
  5300. pdActionModelessCallback = 12; { param is QTParamDialogEventPtr }
  5301. pdActionFetchPreview = 13; { param is QTParamFetchPreviewPtr }
  5302. pdActionSetDialogSettings = 14; { param is QTAtomContainer }
  5303. pdActionGetDialogSettings = 15; { param is QTAtomContainer }
  5304. pdActionGetNextSample = 16; { param is QTAtomContainer with effect sample to change - createdDialog may be NIL }
  5305. pdActionGetPreviousSample = 17; { param is QTAtomContainer with effect sample to change - createdDialog may be NIL }
  5306. pdActionCompactSample = 18; { param is QTAtomContainer with effect sample to compact, - createdDialog may be NIL }
  5307. pdActionSetEditCallout = 19; { param is QTParamPreviewCalloutPtr, can be NIL }
  5308. pdActionSetSampleTime = 20; { param is QTParamSampleTimePtr, can be NIL }
  5309. pdActionDoEditCommand = 21; { param is long with menu command (ie, mcMenuCut etc) }
  5310. pdActionGetSubPanelMenuValue = 22; { param is long and returns current sub-panel value selected by the effect }
  5311. { Action codes and typedefs used for custom controls within effects }
  5312. pdActionCustomNewControl = 23; { param is QTCustomControlNewPtr }
  5313. pdActionCustomDisposeControl = 24; { param is QTCustomControlNewPtr }
  5314. pdActionCustomPositionControl = 25; { param is QTCustomControlPositionControlPtr }
  5315. pdActionCustomShowHideControl = 26; { param is QTCustomControlShowHideControlPtr }
  5316. pdActionCustomHandleEvent = 27; { param is QTCustomControlHandleEventPtr }
  5317. pdActionCustomSetFocus = 28; { param is QTCustomControlSetFocusPtr }
  5318. pdActionCustomSetEditMenu = 29; { param is QTCustomControlSetEditMenuPtr }
  5319. pdActionCustomSetPreviewPicture = 30; { param is QTCustomControlSetPreviewPicturePtr }
  5320. pdActionCustomSetEditCallout = 31; { param is QTCustomControlSetEditCalloutPtr }
  5321. pdActionCustomGetEnableValue = 32; { param is QTCustomControlGetEnableValuePtr }
  5322. pdActionCustomSetSampleTime = 33; { param is QTCustomControlSetSampleTimePtr }
  5323. pdActionCustomGetValue = 34; { param is QTCustomControlGetValue }
  5324. pdActionCustomDoEditCommand = 35; { param is QTCustomControlDoEditCommand }
  5325. { Sample Time information }
  5326. pdSampleTimeDisplayOptionsNone = $00000000;
  5327. type
  5328. QTParamSampleTimeRecordPtr = ^QTParamSampleTimeRecord;
  5329. QTParamSampleTimeRecord = record
  5330. displayOptions: SInt32;
  5331. sampleStartTime: TimeRecord;
  5332. sampleDuration: TimeValue;
  5333. framesPerSecond: SInt32; { if 0, will cause revert to seconds display }
  5334. end;
  5335. QTParamSampleTimePtr = ^QTParamSampleTimeRecord;
  5336. { Preview change callout information }
  5337. QTParamPreviewCalloutRecordPtr = ^QTParamPreviewCalloutRecord;
  5338. QTParamPreviewCalloutRecord = record
  5339. calloutProc: MoviePreviewCallOutUPP; { called when user makes editing changes to dialog. May be NIL. You should return true from your function. }
  5340. refCon: SInt32; { passed to the callout procedure }
  5341. end;
  5342. QTParamPreviewCalloutPtr = ^QTParamPreviewCalloutRecord;
  5343. QTParameterDialogOptions = SInt32;
  5344. { ------- CUSTOM EFFECT CONTROLS }
  5345. {
  5346. Effects may choose to implement custom controls to allow the user to more easily edit complex parameters
  5347. that are ill-served by simple sliders or type in boxes. Effects may allow a custom control for either
  5348. a single parameter, or for a group of parameters.
  5349. Parameter(s) for a custom control must still be data types defined by the standard set, or for
  5350. complex records of data, must be defined within a group as individual parameters made up from base
  5351. data types (for example, a point is a group containing two Fixed point numbers).
  5352. This is to allow applications that do not wish to use the custom control for the effect to set values themselves.
  5353. Effects should be aware that these custom controls may be deployed by the application in either a dialog or
  5354. a window, with application defined background colors or patterns, along with application defined font
  5355. characteristics for the window.
  5356. It is recommended that effects implement custom controls only when needed, and that custom controls be used
  5357. for specific types of parameters (ie, point, rectangle, polygon, path) rather than the entire user interface
  5358. for the effect. Effects may choose to implement multiple custom controls which combine with standard controls
  5359. to present the total user interface. For effects which have very complex user interfaces not well suited for
  5360. inclusion within a single window, it is recommended to use kParameterImageIsPreset -- which allows the effect to
  5361. have an external editing application for parameters which may then be set within the standard UI via the open file
  5362. dialog or drag and drop. The Lens Flare effect's "Flare Type" is an example of such a preset.
  5363. For parameters that use a custom control to control a single parameter value, a new behavior
  5364. flag has been added (kCustomControl), and the behavior for the parameter should be kParameterItemControl.
  5365. For parameters that are groups, the same flag (kCustomControl) should be used, and the behavior
  5366. should be kParameterItemGroupDivider. Groups with the kCustomControl bit set will be implemented
  5367. by calling the custom control for that group -- the parameters within that group will not be processed
  5368. in the normal manner.
  5369. In both cases, the new customType and customID fields of the behavior must be filled in. These are
  5370. used in order to allow your custom control to determine which parameter is being edited in the case
  5371. where the custom control is used for the editing of multiple parameters. These values are passed into
  5372. the pdActionCustomNewControl call. Since the custom control mechanism is also used by QuickTime's
  5373. default effect dialogs, you should be prepared to pass onto the base effect any pdActionCustomNewControl
  5374. calls for type/id pairs that you do not handle yourself. When pdActionCustomNewControl is called
  5375. for controls of types handled by QuickTime, customType is kParameterAtomTypeAndID and customID is
  5376. the ID of the parameter atom.
  5377. }
  5378. {
  5379. pdActionCustomNewControlControl is called by application to create a new custom control or set of controls
  5380. for an effect parameter. When pdActionCustomNewControl is called, the effect should perform any
  5381. basic allocation it needs for storage and return the result in storage. The options parameter tells
  5382. the control if the application wishes to support interpolated, optionally interpolated, or a single
  5383. value parameter.
  5384. Since pdActionCustomNewControlControl may be called upon your effect for other items within the
  5385. dialog, it is recommended that your effect have an easy way to determine which controls it implements:
  5386. a) by having storage be a pointer with an OSType at the begining to mark controls
  5387. implemented by your code.
  5388. - or -
  5389. b) keeping track in your component globals those custom controls which you have created.
  5390. When pdActionCustomDisposeControl is called any allocation done by the control should be disposed. In addition,
  5391. pdActionCustomDisposeControl is the last chance the control has to commit any user changes into the sample.
  5392. Controls which implement type in fields typically need to commit any final user edits at this time.
  5393. }
  5394. QTCustomControlNewRecordPtr = ^QTCustomControlNewRecord;
  5395. QTCustomControlNewRecord = record
  5396. storage: Ptr; { storage allocated/disposed by the control }
  5397. options: QTParameterDialogOptions; { options used to control interpolation/not }
  5398. sample: QTAtomContainer; { sample that holds the data to be edited }
  5399. customType: SInt32; { custom type and ID specified by effect for creation of this control }
  5400. customID: SInt32;
  5401. end;
  5402. QTCustomControlNewPtr = ^QTCustomControlNewRecord;
  5403. {
  5404. pdActionCustomPositionControl is called by the application to position the control within a window or dialog.
  5405. The control should determine if it will fit in the alloted area and position itself there. It should also
  5406. return the space taken up by the control. Note you are free to implement controls which are variable in size depending upon
  5407. which parameter you are editing. You need not scale your control to the requested size. If the area presented to your
  5408. control is too small, set didFit to false. You should still return in used the size you would have liked to use for
  5409. the control. The application will then try again with a new size. Note that all
  5410. controls must be able to fit within a minimum of 300 by 250 pixels.
  5411. Custom controls that draw text should make note of the text font, size, and style at this time in order
  5412. to properly display within application windows.
  5413. Note that the default state for the control is hidden. You will receive a pdActionCustomShowHideControl
  5414. in order to enable your control. You should not draw your control in response to pdActionCustomPositionControl.
  5415. }
  5416. QTCustomControlPositionControlRecordPtr = ^QTCustomControlPositionControlRecord;
  5417. QTCustomControlPositionControlRecord = record
  5418. storage: Ptr; { storage for the control }
  5419. window: WindowPtr; { window to be used by the control }
  5420. location: Rect; { location within the window the control may use }
  5421. used: Rect; { returned by the control to indicate size it actually used }
  5422. didFit: boolean; { did the control fit in the specified area? }
  5423. pad1,pad2,pad3: SInt8;
  5424. end;
  5425. QTCustomControlPositionControlPtr = ^QTCustomControlPositionControlRecord;
  5426. {
  5427. pdActionCustomShowHideControl is called when the application wishes to enable/disable your control, or
  5428. completely disable drawing of the control
  5429. Your control should make note of the new state (if different from the last) and perform an InvalRect()
  5430. on your drawing area, or you may draw your control's initial state in the case of show. You should not
  5431. attempt to erase your control as the result of a hide -- instead call InvalRect() and allow the application
  5432. to process the resulting event as appropriate.
  5433. }
  5434. QTCustomControlShowHideControlRecordPtr = ^QTCustomControlShowHideControlRecord;
  5435. QTCustomControlShowHideControlRecord = record
  5436. storage: Ptr; { storage for the control }
  5437. show: boolean; { display the control? }
  5438. enable: boolean; { enable the control (ie, black vs gray display) }
  5439. pad: array [0..1] of boolean;
  5440. end;
  5441. QTCustomControlShowHideControlPtr = ^QTCustomControlShowHideControlRecord;
  5442. {
  5443. pdActionCustomHandleEvent is called to allow your custom control to process events.
  5444. Typical controls handle the following events:
  5445. - activate - to draw your control in normal/gray mode
  5446. - update - to draw your control
  5447. - mouseDown - to handle clicks
  5448. - keyDown - to handle typing when you have focus
  5449. - idle - to perform idle drawing (if applicable)
  5450. If your control handles the entire event, set didProcess to true. If
  5451. you handled the event, but other controls still need the event, set didProcess to false.
  5452. If your control supports the concept of focus for the purposes of typing (such as by having
  5453. a type-in box for the parameter) then you set the tookFocus Boolean as part of your processing
  5454. of the event. It is assumed that your control will draw the appropriate focus UI as a result, and
  5455. the calling application will disable any focus drawing within the remainder of the UI.
  5456. By default, custom controls are not given idle time. If you need idle time, set needIdle to true
  5457. in response to the even that causes you to need idle (typically the taking of focus, or the first draw).
  5458. Your control will continue to be given idle events until you set needIdle to false in response to
  5459. a nullEvent.
  5460. }
  5461. QTCustomControlHandleEventRecordPtr = ^QTCustomControlHandleEventRecord;
  5462. QTCustomControlHandleEventRecord = record
  5463. storage: Ptr; { storage for the control }
  5464. pEvent: EventRecordPtr; { event to process }
  5465. didProcess: boolean; { did we process entire event? }
  5466. tookFocus: boolean; { did we take focus as a result of this event (typically mouseDowns) }
  5467. needIdle: boolean; { does this control need idle events? }
  5468. didEdit: boolean; { did we edit the samples? }
  5469. end;
  5470. QTCustomControlHandleEventPtr = ^QTCustomControlHandleEventRecord;
  5471. {
  5472. pdActionCustomSetFocus is called in order to set or advance the current focus of the user interface, typically
  5473. because the user has pressed the tab or shift-tab keys, or because the user clicked within the area defined by
  5474. your control.
  5475. Your control will be called with pdActionFocusFirst, pdActionFocusLast, or pdActionFocusOff to set or clear focus on your
  5476. control. Your control will be called with pdActionFocusForward or pdActionFocusBackward to cycle
  5477. focus within your control (if your control has multiple focus). If your control does not support focus,
  5478. or the focus request results in focus moving beyond your supported range, return pdActionFocusOff in
  5479. the focus parameter. Otherwise, return the focus that you set.
  5480. Controls which have no focus would always set focus to be pdActionFocusOff.
  5481. Controls with a single focus would set pdActionFocusFirst when requsted to set either
  5482. pdActionFocusFirst or pdActionFocusLast, and would set pdActionFocusOff for either
  5483. pdActionFocusForward or pdActionFocusBackward.
  5484. }
  5485. const
  5486. pdActionFocusOff = 0; { no focus }
  5487. pdActionFocusFirst = 1; { focus on first element }
  5488. pdActionFocusLast = 2; { focus on last element }
  5489. pdActionFocusForward = 3; { focus on next element }
  5490. pdActionFocusBackward = 4; { focus on previous element }
  5491. type
  5492. QTCustomControlSetFocusRecordPtr = ^QTCustomControlSetFocusRecord;
  5493. QTCustomControlSetFocusRecord = record
  5494. storage: Ptr; { storage for the control }
  5495. focus: SInt32; { focus to set, return resulting focus }
  5496. end;
  5497. QTCustomControlSetFocusPtr = ^QTCustomControlSetFocusRecord;
  5498. {
  5499. pdActionCustomSetEditMenu will be called to inform your custom control of the location of the edit menu.
  5500. If your control has editing boxes, this is useful in order to allow the user to perform cut/copy/paste operations
  5501. when focus is on one of these boxes.
  5502. }
  5503. QTCustomControlSetEditMenuRecordPtr = ^QTCustomControlSetEditMenuRecord;
  5504. QTCustomControlSetEditMenuRecord = record
  5505. storage: Ptr; { storage for the control }
  5506. editMenu: MenuHandle; { edit menu, or NIL }
  5507. end;
  5508. QTCustomControlSetEditMenuPtr = ^QTCustomControlSetEditMenuRecord;
  5509. {
  5510. pdActionCustomSetPreviewPicture will be called to inform your custom control of preview information that you
  5511. may wish to use in the drawing of your user interface.
  5512. }
  5513. QTCustomControlSetPreviewPictureRecordPtr = ^QTCustomControlSetPreviewPictureRecord;
  5514. QTCustomControlSetPreviewPictureRecord = record
  5515. storage: Ptr; { storage for the control }
  5516. preview: QTParamPreviewPtr; { preview to set }
  5517. end;
  5518. QTCustomControlSetPreviewPicturePtr = ^QTCustomControlSetPreviewPictureRecord;
  5519. {
  5520. pdActionCustomSetEditCallout tells your control of the need by the application to be informed of
  5521. changes to the parameter values (typically for the purposes of updating previews).
  5522. If a callout is available, your custom control should call it whenever a change has been
  5523. made to the parameter(s) that your control is editing (as a result of user actions, most typically).
  5524. If you choose not to implement this, live dragging or updating of values will not work.
  5525. }
  5526. QTCustomControlSetEditCalloutRecordPtr = ^QTCustomControlSetEditCalloutRecord;
  5527. QTCustomControlSetEditCalloutRecord = record
  5528. storage: Ptr; { storage for the control }
  5529. callout: QTParamPreviewCalloutPtr; { requested callout, or NIL to disable }
  5530. end;
  5531. QTCustomControlSetEditCalloutPtr = ^QTCustomControlSetEditCalloutRecord;
  5532. {
  5533. pdActionCustomGetEnableValue allows you to return a value for the purposes of enabling/disabling
  5534. other controls.
  5535. Most custom controls do not need to implement this call.
  5536. If your control is able to control the enabling and disabling of other parameter controls (such as is done
  5537. by standard pop up or enumerated type controls), you need to supply a value that can be use for greater than/less than
  5538. types of comparisons.
  5539. }
  5540. QTCustomControlGetEnableValueRecordPtr = ^QTCustomControlGetEnableValueRecord;
  5541. QTCustomControlGetEnableValueRecord = record
  5542. storage: Ptr; { storage for the control }
  5543. currentValue: SInt32; { value to compare against for enable/disable purposes }
  5544. end;
  5545. QTCustomControlGetEnableValuePtr = ^QTCustomControlGetEnableValueRecord;
  5546. {
  5547. pdActionCustomSetSampleTime tells your control information from the application about the duration
  5548. and start time for the sample being edited.
  5549. Most controls do not need this information, but some may choose to use it in the interface
  5550. they present the user. However, this call need not be made by applications, so the custom
  5551. control should be prepared to run when the sample time information is not available.
  5552. }
  5553. QTCustomControlSetSampleTimeRecordPtr = ^QTCustomControlSetSampleTimeRecord;
  5554. QTCustomControlSetSampleTimeRecord = record
  5555. storage: Ptr; { storage for the control }
  5556. sampleTime: QTParamSampleTimePtr; { sample time information or NIL }
  5557. end;
  5558. QTCustomControlSetSampleTimePtr = ^QTCustomControlSetSampleTimeRecord;
  5559. {
  5560. pdActionCustomGetValue tells your control to store any value(s) into the specified atom container.
  5561. All custom controls must implement this call
  5562. }
  5563. QTCustomControlGetValueRecordPtr = ^QTCustomControlGetValueRecord;
  5564. QTCustomControlGetValueRecord = record
  5565. storage: Ptr; { storage for the control }
  5566. sample: QTAtomContainer; { sample to store into }
  5567. end;
  5568. QTCustomControlGetValuePtr = ^QTCustomControlGetValueRecord;
  5569. {
  5570. pdActionCustomDoEditCommand tells your control to handle edit commands if it allow focus and type in boxes.
  5571. All custom controls must implement this call if they support edit boxes
  5572. }
  5573. QTCustomControlDoEditCommandRecordPtr = ^QTCustomControlDoEditCommandRecord;
  5574. QTCustomControlDoEditCommandRecord = record
  5575. storage: Ptr; { storage for the control }
  5576. command: SInt32; { command to execute, return 0 here if processed }
  5577. end;
  5578. QTCustomControlDoEditCommandPtr = ^QTCustomControlDoEditCommandRecord;
  5579. QTParameterDialog = SInt32;
  5580. const
  5581. elOptionsIncludeNoneInList = $00000001; { "None" effect is included in list }
  5582. type
  5583. QTEffectListOptions = SInt32;
  5584. const
  5585. pdOptionsCollectOneValue = $00000001; { should collect a single value only }
  5586. pdOptionsAllowOptionalInterpolations = $00000002; { non-novice interpolation options are shown }
  5587. pdOptionsModalDialogBox = $00000004; { dialog box should be modal }
  5588. pdOptionsEditCurrentEffectOnly = $00000008; { List of effects will not be shown }
  5589. pdOptionsHidePreview = $00000010; { Preview item will not be shown }
  5590. effectIsRealtime = 0; { effect can be rendered in real time }
  5591. {
  5592. QTGetEffectsListExtended is a call that provides for
  5593. more advanced filtering of effects to be placed into the
  5594. effect list. Applications can filter on:
  5595. 1) number of input sources
  5596. 2) effect major or minor class
  5597. 3) custom filtering through a callback
  5598. The callback will be called for each effect which passes
  5599. the other criteria for inclusion. If the callback
  5600. returns a true result the effect will be included in the list.
  5601. Note that your filter proc may receive multiple effects from various
  5602. manufacturers. If you return true for multiple effects of a given type
  5603. only the one with the higher parameter version number will be included.
  5604. If you wish other filtering (such as effects from a given manufacturer, you
  5605. can do this by return false for the other effects and true for those
  5606. that you prefer.
  5607. }
  5608. type
  5609. {$ifc TYPED_FUNCTION_POINTERS}
  5610. QTEffectListFilterProcPtr = function(effect: Component; effectMinSource: SInt32; effectMaxSource: SInt32; majorClass: OSType; minorClass: OSType; refcon: UnivPtr): boolean;
  5611. {$elsec}
  5612. QTEffectListFilterProcPtr = ProcPtr;
  5613. {$endc}
  5614. {$ifc OPAQUE_UPP_TYPES}
  5615. QTEffectListFilterUPP = ^SInt32; { an opaque UPP }
  5616. {$elsec}
  5617. QTEffectListFilterUPP = UniversalProcPtr;
  5618. {$endc}
  5619. {
  5620. * QTGetEffectsList()
  5621. *
  5622. * Availability:
  5623. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5624. * CarbonLib: in CarbonLib 1.0 and later
  5625. * Mac OS X: in version 10.0 and later
  5626. * Windows: in qtmlClient.lib 3.0 and later
  5627. }
  5628. function QTGetEffectsList(var returnedList: QTAtomContainer; minSources: SInt32; maxSources: SInt32; getOptions: QTEffectListOptions): OSErr; external name '_QTGetEffectsList';
  5629. {
  5630. * QTGetEffectsListExtended()
  5631. *
  5632. * Availability:
  5633. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5634. * CarbonLib: in CarbonLib 1.6 and later
  5635. * Mac OS X: in version 10.2 and later
  5636. * Windows: in qtmlClient.lib 6.0 and later
  5637. }
  5638. function QTGetEffectsListExtended(var returnedList: QTAtomContainer; minSources: SInt32; maxSources: SInt32; getOptions: QTEffectListOptions; majorClass: OSType; minorClass: OSType; filterProc: QTEffectListFilterUPP; filterRefCon: UnivPtr): OSErr; external name '_QTGetEffectsListExtended';
  5639. {
  5640. * QTCreateStandardParameterDialog()
  5641. *
  5642. * Availability:
  5643. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5644. * CarbonLib: in CarbonLib 1.0 and later
  5645. * Mac OS X: in version 10.0 and later
  5646. * Windows: in qtmlClient.lib 3.0 and later
  5647. }
  5648. function QTCreateStandardParameterDialog(effectList: QTAtomContainer; parameters: QTAtomContainer; dialogOptions: QTParameterDialogOptions; var createdDialog: QTParameterDialog): OSErr; external name '_QTCreateStandardParameterDialog';
  5649. {
  5650. * QTIsStandardParameterDialogEvent()
  5651. *
  5652. * Availability:
  5653. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5654. * CarbonLib: in CarbonLib 1.0 and later
  5655. * Mac OS X: in version 10.0 and later
  5656. * Windows: in qtmlClient.lib 3.0 and later
  5657. }
  5658. function QTIsStandardParameterDialogEvent(var pEvent: EventRecord; createdDialog: QTParameterDialog): OSErr; external name '_QTIsStandardParameterDialogEvent';
  5659. {
  5660. * QTDismissStandardParameterDialog()
  5661. *
  5662. * Availability:
  5663. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5664. * CarbonLib: in CarbonLib 1.0 and later
  5665. * Mac OS X: in version 10.0 and later
  5666. * Windows: in qtmlClient.lib 3.0 and later
  5667. }
  5668. function QTDismissStandardParameterDialog(createdDialog: QTParameterDialog): OSErr; external name '_QTDismissStandardParameterDialog';
  5669. {
  5670. * QTStandardParameterDialogDoAction()
  5671. *
  5672. * Availability:
  5673. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5674. * CarbonLib: in CarbonLib 1.0 and later
  5675. * Mac OS X: in version 10.0 and later
  5676. * Windows: in qtmlClient.lib 3.0 and later
  5677. }
  5678. function QTStandardParameterDialogDoAction(createdDialog: QTParameterDialog; action: SInt32; params: UnivPtr): OSErr; external name '_QTStandardParameterDialogDoAction';
  5679. {
  5680. * QTGetEffectSpeed()
  5681. *
  5682. * Availability:
  5683. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5684. * CarbonLib: in CarbonLib 1.0 and later
  5685. * Mac OS X: in version 10.0 and later
  5686. * Windows: in qtmlClient.lib 3.0 and later
  5687. }
  5688. function QTGetEffectSpeed(parameters: QTAtomContainer; var pFPS: Fixed): OSErr; external name '_QTGetEffectSpeed';
  5689. {****
  5690. Error reporting
  5691. ****}
  5692. type
  5693. QTErrorReplacementRecordPtr = ^QTErrorReplacementRecord;
  5694. QTErrorReplacementRecord = record
  5695. numEntries: SInt32;
  5696. replacementString: array [0..0] of StringPtr; { array of numEntries StringPtrs (each String is allocated separately). }
  5697. end;
  5698. QTErrorReplacementPtr = ^QTErrorReplacementRecord;
  5699. {
  5700. QTAddMovieError is used to add orthogonal errors to a list of errors that will
  5701. later be reported (at the end of an import or playback, for example). Errors are stored
  5702. in 'qter' resources within the component.
  5703. QTAddMovieError(Movie addTo, // in: movie to add error to
  5704. Component adder, // in: component which is adding the error
  5705. long errorCode, // in: error code being added
  5706. QTErrorReplacementPtr stringReplacements);// in: list of strings to subsitute (in order) for "^1", "^2", etc
  5707. }
  5708. {
  5709. * QTAddMovieError()
  5710. *
  5711. * Availability:
  5712. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5713. * CarbonLib: in CarbonLib 1.6 and later
  5714. * Mac OS X: in version 10.2 and later
  5715. * Windows: in qtmlClient.lib 6.0 and later
  5716. }
  5717. function QTAddMovieError(movieH: Movie; c: Component; errorCode: SInt32; stringReplacements: QTErrorReplacementPtr): OSErr; external name '_QTAddMovieError';
  5718. {****
  5719. Access Keys
  5720. ****}
  5721. const
  5722. kAccessKeyAtomType = FourCharCode('acky');
  5723. kAccessKeySystemFlag = $00000001;
  5724. {
  5725. * QTGetAccessKeys()
  5726. *
  5727. * Availability:
  5728. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5729. * CarbonLib: in CarbonLib 1.0 and later
  5730. * Mac OS X: in version 10.0 and later
  5731. * Windows: in qtmlClient.lib 3.0 and later
  5732. }
  5733. function QTGetAccessKeys(var accessKeyType: Str255; flags: SInt32; var keys: QTAtomContainer): OSErr; external name '_QTGetAccessKeys';
  5734. {
  5735. * QTRegisterAccessKey()
  5736. *
  5737. * Availability:
  5738. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5739. * CarbonLib: in CarbonLib 1.0 and later
  5740. * Mac OS X: in version 10.0 and later
  5741. * Windows: in qtmlClient.lib 3.0 and later
  5742. }
  5743. function QTRegisterAccessKey(var accessKeyType: Str255; flags: SInt32; accessKey: Handle): OSErr; external name '_QTRegisterAccessKey';
  5744. {
  5745. * QTUnregisterAccessKey()
  5746. *
  5747. * Availability:
  5748. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5749. * CarbonLib: in CarbonLib 1.0 and later
  5750. * Mac OS X: in version 10.0 and later
  5751. * Windows: in qtmlClient.lib 3.0 and later
  5752. }
  5753. function QTUnregisterAccessKey(var accessKeyType: Str255; flags: SInt32; accessKey: Handle): OSErr; external name '_QTUnregisterAccessKey';
  5754. {****
  5755. Content Restrictions
  5756. ****}
  5757. {
  5758. * QTGetMovieRestrictions()
  5759. *
  5760. * Availability:
  5761. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5762. * CarbonLib: in CarbonLib 1.6 and later
  5763. * Mac OS X: in version 10.2 and later
  5764. * Windows: in qtmlClient.lib 6.0 and later
  5765. }
  5766. function QTGetMovieRestrictions(theMovie: Movie; var outRestrictionSet: QTRestrictionSet; var outSeed: UInt32): OSErr; external name '_QTGetMovieRestrictions';
  5767. {
  5768. * QTRestrictionsGetInfo()
  5769. *
  5770. * Availability:
  5771. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5772. * CarbonLib: in CarbonLib 1.6 and later
  5773. * Mac OS X: in version 10.2 and later
  5774. * Windows: in qtmlClient.lib 6.0 and later
  5775. }
  5776. function QTRestrictionsGetInfo(inRestrictionSet: QTRestrictionSet; var outRestrictionClassCount: SInt32; var outSeed: SInt32): OSErr; external name '_QTRestrictionsGetInfo';
  5777. {
  5778. * QTRestrictionsGetIndClass()
  5779. *
  5780. * Availability:
  5781. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5782. * CarbonLib: in CarbonLib 1.6 and later
  5783. * Mac OS X: in version 10.2 and later
  5784. * Windows: in qtmlClient.lib 6.0 and later
  5785. }
  5786. function QTRestrictionsGetIndClass(inRestrictionSet: QTRestrictionSet; inIndex: SInt32; var outClass: OSType): OSErr; external name '_QTRestrictionsGetIndClass';
  5787. {
  5788. * QTRestrictionsGetItem()
  5789. *
  5790. * Availability:
  5791. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5792. * CarbonLib: in CarbonLib 1.6 and later
  5793. * Mac OS X: in version 10.2 and later
  5794. * Windows: in qtmlClient.lib 6.0 and later
  5795. }
  5796. function QTRestrictionsGetItem(inRestrictionSet: QTRestrictionSet; inRestrictionClass: OSType; var outRestrictions: UInt32): OSErr; external name '_QTRestrictionsGetItem';
  5797. {
  5798. * QTGetSupportedRestrictions()
  5799. *
  5800. * Availability:
  5801. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5802. * CarbonLib: in CarbonLib 1.6 and later
  5803. * Mac OS X: in version 10.2 and later
  5804. * Windows: in qtmlClient.lib 6.0 and later
  5805. }
  5806. function QTGetSupportedRestrictions(inRestrictionClass: OSType; var outRestrictionIDs: UInt32): OSErr; external name '_QTGetSupportedRestrictions';
  5807. {
  5808. * QTCreateUUID()
  5809. *
  5810. * Availability:
  5811. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5812. * CarbonLib: in CarbonLib 1.6 and later
  5813. * Mac OS X: in version 10.2 and later
  5814. * Windows: in qtmlClient.lib 6.0 and later
  5815. }
  5816. function QTCreateUUID(var outUUID: QTUUID; creationFlags: SInt32): OSErr; external name '_QTCreateUUID';
  5817. {
  5818. * QTEqualUUIDs()
  5819. *
  5820. * Availability:
  5821. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  5822. * CarbonLib: in CarbonLib 1.6 and later
  5823. * Mac OS X: in version 10.2 and later
  5824. * Windows: in qtmlClient.lib 6.0 and later
  5825. }
  5826. function QTEqualUUIDs(const (*var*) uuid1: QTUUID; const (*var*) uuid2: QTUUID): boolean; external name '_QTEqualUUIDs';
  5827. {****
  5828. Time table
  5829. ****}
  5830. {
  5831. * MakeTrackTimeTable()
  5832. *
  5833. * Availability:
  5834. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5835. * CarbonLib: in CarbonLib 1.0 and later
  5836. * Mac OS X: in version 10.0 and later
  5837. * Windows: in qtmlClient.lib 3.0 and later
  5838. }
  5839. function MakeTrackTimeTable(trackH: Track; var offsets: SInt32Ptr; startTime: TimeValue; endTime: TimeValue; timeIncrement: TimeValue; firstDataRefIndex: SInt16; lastDataRefIndex: SInt16; var retdataRefSkew: SInt32): OSErr; external name '_MakeTrackTimeTable';
  5840. {
  5841. * MakeMediaTimeTable()
  5842. *
  5843. * Availability:
  5844. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5845. * CarbonLib: in CarbonLib 1.0 and later
  5846. * Mac OS X: in version 10.0 and later
  5847. * Windows: in qtmlClient.lib 3.0 and later
  5848. }
  5849. function MakeMediaTimeTable(theMedia: Media; var offsets: SInt32Ptr; startTime: TimeValue; endTime: TimeValue; timeIncrement: TimeValue; firstDataRefIndex: SInt16; lastDataRefIndex: SInt16; var retdataRefSkew: SInt32): OSErr; external name '_MakeMediaTimeTable';
  5850. {
  5851. * GetMaxLoadedTimeInMovie()
  5852. *
  5853. * Availability:
  5854. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5855. * CarbonLib: in CarbonLib 1.0 and later
  5856. * Mac OS X: in version 10.0 and later
  5857. * Windows: in qtmlClient.lib 3.0 and later
  5858. }
  5859. function GetMaxLoadedTimeInMovie(theMovie: Movie; var time: TimeValue): OSErr; external name '_GetMaxLoadedTimeInMovie';
  5860. {
  5861. * QTMovieNeedsTimeTable()
  5862. *
  5863. * Availability:
  5864. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5865. * CarbonLib: in CarbonLib 1.0 and later
  5866. * Mac OS X: in version 10.0 and later
  5867. * Windows: in qtmlClient.lib 3.0 and later
  5868. }
  5869. function QTMovieNeedsTimeTable(theMovie: Movie; var needsTimeTable: boolean): OSErr; external name '_QTMovieNeedsTimeTable';
  5870. {
  5871. * QTGetDataRefMaxFileOffset()
  5872. *
  5873. * Availability:
  5874. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  5875. * CarbonLib: in CarbonLib 1.0 and later
  5876. * Mac OS X: in version 10.0 and later
  5877. * Windows: in qtmlClient.lib 3.0 and later
  5878. }
  5879. function QTGetDataRefMaxFileOffset(movieH: Movie; dataRefType: OSType; dataRef: Handle; var offset: SInt32): OSErr; external name '_QTGetDataRefMaxFileOffset';
  5880. {****
  5881. Bandwidth management support
  5882. ****}
  5883. const
  5884. ConnectionSpeedPrefsType = FourCharCode('cspd');
  5885. BandwidthManagementPrefsType = FourCharCode('bwmg');
  5886. type
  5887. ConnectionSpeedPrefsRecordPtr = ^ConnectionSpeedPrefsRecord;
  5888. ConnectionSpeedPrefsRecord = record
  5889. connectionSpeed: SInt32;
  5890. end;
  5891. ConnectionSpeedPrefsPtr = ^ConnectionSpeedPrefsRecord;
  5892. ConnectionSpeedPrefsHandle = ^ConnectionSpeedPrefsPtr;
  5893. BandwidthManagementPrefsRecordPtr = ^BandwidthManagementPrefsRecord;
  5894. BandwidthManagementPrefsRecord = record
  5895. overrideConnectionSpeedForBandwidth: boolean;
  5896. pad: SInt8
  5897. end;
  5898. BandwidthManagementPrefsPtr = ^BandwidthManagementPrefsRecord;
  5899. BandwidthManagementPrefsHandle = ^BandwidthManagementPrefsPtr;
  5900. const
  5901. kQTIdlePriority = 10;
  5902. kQTNonRealTimePriority = 20;
  5903. kQTRealTimeSharedPriority = 25;
  5904. kQTRealTimePriority = 30;
  5905. kQTBandwidthNotifyNeedToStop = $00000001;
  5906. kQTBandwidthNotifyGoodToGo = $00000002;
  5907. kQTBandwidthChangeRequest = $00000004;
  5908. kQTBandwidthQueueRequest = $00000008;
  5909. kQTBandwidthScheduledRequest = $00000010;
  5910. kQTBandwidthVoluntaryRelease = $00000020;
  5911. type
  5912. {$ifc TYPED_FUNCTION_POINTERS}
  5913. QTBandwidthNotificationProcPtr = function(flags: SInt32; reserved: UnivPtr; refcon: UnivPtr): OSErr;
  5914. {$elsec}
  5915. QTBandwidthNotificationProcPtr = ProcPtr;
  5916. {$endc}
  5917. QTScheduledBandwidthRecordPtr = ^QTScheduledBandwidthRecord;
  5918. QTScheduledBandwidthRecord = record
  5919. recordSize: SInt32; { total number of bytes in QTScheduledBandwidthRecord }
  5920. priority: SInt32;
  5921. dataRate: SInt32;
  5922. startTime: CompTimeValue; { bandwidth usage start time }
  5923. duration: CompTimeValue; { duration of bandwidth usage (0 if unknown) }
  5924. prerollDuration: CompTimeValue; { time for negotiation before startTime (0 if unknown) }
  5925. scale: TimeScale; { timescale of value/duration/prerollDuration fields }
  5926. base: TimeBase; { timebase }
  5927. end;
  5928. QTScheduledBandwidthPtr = ^QTScheduledBandwidthRecord;
  5929. QTScheduledBandwidthHandle = ^QTScheduledBandwidthPtr;
  5930. {$ifc OPAQUE_UPP_TYPES}
  5931. QTBandwidthNotificationUPP = ^SInt32; { an opaque UPP }
  5932. {$elsec}
  5933. QTBandwidthNotificationUPP = UniversalProcPtr;
  5934. {$endc}
  5935. {
  5936. * QTBandwidthRequest()
  5937. *
  5938. * Availability:
  5939. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  5940. * CarbonLib: in CarbonLib 1.0.2 and later
  5941. * Mac OS X: in version 10.0 and later
  5942. * Windows: in qtmlClient.lib 4.0 and later
  5943. }
  5944. function QTBandwidthRequest(priority: SInt32; callback: QTBandwidthNotificationUPP; refcon: UnivPtr; var bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRequest';
  5945. {
  5946. * QTBandwidthRequestForTimeBase()
  5947. *
  5948. * Availability:
  5949. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  5950. * CarbonLib: in CarbonLib 1.1 and later
  5951. * Mac OS X: in version 10.0 and later
  5952. * Windows: in qtmlClient.lib 4.1 and later
  5953. }
  5954. function QTBandwidthRequestForTimeBase(tb: TimeBase; priority: SInt32; callback: QTBandwidthNotificationUPP; refcon: UnivPtr; var bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRequestForTimeBase';
  5955. {
  5956. * QTBandwidthRelease()
  5957. *
  5958. * Availability:
  5959. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  5960. * CarbonLib: in CarbonLib 1.0.2 and later
  5961. * Mac OS X: in version 10.0 and later
  5962. * Windows: in qtmlClient.lib 4.0 and later
  5963. }
  5964. function QTBandwidthRelease(bwRef: QTBandwidthReference; flags: SInt32): OSErr; external name '_QTBandwidthRelease';
  5965. {
  5966. * QTScheduledBandwidthRequest()
  5967. *
  5968. * Availability:
  5969. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  5970. * CarbonLib: in CarbonLib 1.1 and later
  5971. * Mac OS X: in version 10.0 and later
  5972. * Windows: in qtmlClient.lib 4.1 and later
  5973. }
  5974. function QTScheduledBandwidthRequest(scheduleRec: QTScheduledBandwidthPtr; notificationCallback: QTBandwidthNotificationUPP; refcon: UnivPtr; var sbwRef: QTScheduledBandwidthReference; flags: SInt32): OSErr; external name '_QTScheduledBandwidthRequest';
  5975. {
  5976. * QTScheduledBandwidthRelease()
  5977. *
  5978. * Availability:
  5979. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  5980. * CarbonLib: in CarbonLib 1.1 and later
  5981. * Mac OS X: in version 10.0 and later
  5982. * Windows: in qtmlClient.lib 4.1 and later
  5983. }
  5984. function QTScheduledBandwidthRelease(sbwRef: QTScheduledBandwidthReference; flags: SInt32): OSErr; external name '_QTScheduledBandwidthRelease';
  5985. const
  5986. uppQTCallBackProcInfo = $000003C0;
  5987. uppQTSyncTaskProcInfo = $000000C0;
  5988. uppMovieRgnCoverProcInfo = $00000FE0;
  5989. uppMovieProgressProcInfo = $0000FAE0;
  5990. uppMovieDrawingCompleteProcInfo = $000003E0;
  5991. uppTrackTransferProcInfo = $000003E0;
  5992. uppGetMovieProcInfo = $00003FE0;
  5993. uppMoviePreviewCallOutProcInfo = $000000D0;
  5994. uppTextMediaProcInfo = $00003FE0;
  5995. uppActionsProcInfo = $00003FE0;
  5996. uppDoMCActionProcInfo = $00003EE0;
  5997. uppMovieExecuteWiredActionsProcInfo = $00003FE0;
  5998. uppMoviePrePrerollCompleteProcInfo = $00000EC0;
  5999. uppQTNextTaskNeededSoonerCallbackProcInfo = $00000FC0;
  6000. uppMoviesErrorProcInfo = $00000380;
  6001. uppTweenerDataProcInfo = $003FFFF0;
  6002. uppQTEffectListFilterProcInfo = $0003FFD0;
  6003. uppQTBandwidthNotificationProcInfo = $00000FE0;
  6004. {
  6005. * NewQTCallBackUPP()
  6006. *
  6007. * Availability:
  6008. * Non-Carbon CFM: available as macro/inline
  6009. * CarbonLib: in CarbonLib 1.0 and later
  6010. * Mac OS X: in version 10.0 and later
  6011. }
  6012. function NewQTCallBackUPP(userRoutine: QTCallBackProcPtr): QTCallBackUPP; external name '_NewQTCallBackUPP'; { old name was NewQTCallBackProc }
  6013. {
  6014. * NewQTSyncTaskUPP()
  6015. *
  6016. * Availability:
  6017. * Non-Carbon CFM: available as macro/inline
  6018. * CarbonLib: in CarbonLib 1.0 and later
  6019. * Mac OS X: in version 10.0 and later
  6020. }
  6021. function NewQTSyncTaskUPP(userRoutine: QTSyncTaskProcPtr): QTSyncTaskUPP; external name '_NewQTSyncTaskUPP'; { old name was NewQTSyncTaskProc }
  6022. {
  6023. * NewMovieRgnCoverUPP()
  6024. *
  6025. * Availability:
  6026. * Non-Carbon CFM: available as macro/inline
  6027. * CarbonLib: in CarbonLib 1.0 and later
  6028. * Mac OS X: in version 10.0 and later
  6029. }
  6030. function NewMovieRgnCoverUPP(userRoutine: MovieRgnCoverProcPtr): MovieRgnCoverUPP; external name '_NewMovieRgnCoverUPP'; { old name was NewMovieRgnCoverProc }
  6031. {
  6032. * NewMovieProgressUPP()
  6033. *
  6034. * Availability:
  6035. * Non-Carbon CFM: available as macro/inline
  6036. * CarbonLib: in CarbonLib 1.0 and later
  6037. * Mac OS X: in version 10.0 and later
  6038. }
  6039. function NewMovieProgressUPP(userRoutine: MovieProgressProcPtr): MovieProgressUPP; external name '_NewMovieProgressUPP'; { old name was NewMovieProgressProc }
  6040. {
  6041. * NewMovieDrawingCompleteUPP()
  6042. *
  6043. * Availability:
  6044. * Non-Carbon CFM: available as macro/inline
  6045. * CarbonLib: in CarbonLib 1.0 and later
  6046. * Mac OS X: in version 10.0 and later
  6047. }
  6048. function NewMovieDrawingCompleteUPP(userRoutine: MovieDrawingCompleteProcPtr): MovieDrawingCompleteUPP; external name '_NewMovieDrawingCompleteUPP'; { old name was NewMovieDrawingCompleteProc }
  6049. {
  6050. * NewTrackTransferUPP()
  6051. *
  6052. * Availability:
  6053. * Non-Carbon CFM: available as macro/inline
  6054. * CarbonLib: in CarbonLib 1.0 and later
  6055. * Mac OS X: in version 10.0 and later
  6056. }
  6057. function NewTrackTransferUPP(userRoutine: TrackTransferProcPtr): TrackTransferUPP; external name '_NewTrackTransferUPP'; { old name was NewTrackTransferProc }
  6058. {
  6059. * NewGetMovieUPP()
  6060. *
  6061. * Availability:
  6062. * Non-Carbon CFM: available as macro/inline
  6063. * CarbonLib: in CarbonLib 1.0 and later
  6064. * Mac OS X: in version 10.0 and later
  6065. }
  6066. function NewGetMovieUPP(userRoutine: GetMovieProcPtr): GetMovieUPP; external name '_NewGetMovieUPP'; { old name was NewGetMovieProc }
  6067. {
  6068. * NewMoviePreviewCallOutUPP()
  6069. *
  6070. * Availability:
  6071. * Non-Carbon CFM: available as macro/inline
  6072. * CarbonLib: in CarbonLib 1.0 and later
  6073. * Mac OS X: in version 10.0 and later
  6074. }
  6075. function NewMoviePreviewCallOutUPP(userRoutine: MoviePreviewCallOutProcPtr): MoviePreviewCallOutUPP; external name '_NewMoviePreviewCallOutUPP'; { old name was NewMoviePreviewCallOutProc }
  6076. {
  6077. * NewTextMediaUPP()
  6078. *
  6079. * Availability:
  6080. * Non-Carbon CFM: available as macro/inline
  6081. * CarbonLib: in CarbonLib 1.0 and later
  6082. * Mac OS X: in version 10.0 and later
  6083. }
  6084. function NewTextMediaUPP(userRoutine: TextMediaProcPtr): TextMediaUPP; external name '_NewTextMediaUPP'; { old name was NewTextMediaProc }
  6085. {
  6086. * NewActionsUPP()
  6087. *
  6088. * Availability:
  6089. * Non-Carbon CFM: available as macro/inline
  6090. * CarbonLib: in CarbonLib 1.0 and later
  6091. * Mac OS X: in version 10.0 and later
  6092. }
  6093. function NewActionsUPP(userRoutine: ActionsProcPtr): ActionsUPP; external name '_NewActionsUPP'; { old name was NewActionsProc }
  6094. {
  6095. * NewDoMCActionUPP()
  6096. *
  6097. * Availability:
  6098. * Non-Carbon CFM: available as macro/inline
  6099. * CarbonLib: in CarbonLib 1.0.2 and later
  6100. * Mac OS X: in version 10.0 and later
  6101. }
  6102. function NewDoMCActionUPP(userRoutine: DoMCActionProcPtr): DoMCActionUPP; external name '_NewDoMCActionUPP'; { old name was NewDoMCActionProc }
  6103. {
  6104. * NewMovieExecuteWiredActionsUPP()
  6105. *
  6106. * Availability:
  6107. * Non-Carbon CFM: available as macro/inline
  6108. * CarbonLib: in CarbonLib 1.0.2 and later
  6109. * Mac OS X: in version 10.0 and later
  6110. }
  6111. function NewMovieExecuteWiredActionsUPP(userRoutine: MovieExecuteWiredActionsProcPtr): MovieExecuteWiredActionsUPP; external name '_NewMovieExecuteWiredActionsUPP'; { old name was NewMovieExecuteWiredActionsProc }
  6112. {
  6113. * NewMoviePrePrerollCompleteUPP()
  6114. *
  6115. * Availability:
  6116. * Non-Carbon CFM: available as macro/inline
  6117. * CarbonLib: in CarbonLib 1.0.2 and later
  6118. * Mac OS X: in version 10.0 and later
  6119. }
  6120. function NewMoviePrePrerollCompleteUPP(userRoutine: MoviePrePrerollCompleteProcPtr): MoviePrePrerollCompleteUPP; external name '_NewMoviePrePrerollCompleteUPP'; { old name was NewMoviePrePrerollCompleteProc }
  6121. {
  6122. * NewQTNextTaskNeededSoonerCallbackUPP()
  6123. *
  6124. * Availability:
  6125. * Non-Carbon CFM: available as macro/inline
  6126. * CarbonLib: in CarbonLib 1.6 and later
  6127. * Mac OS X: in version 10.2 and later
  6128. }
  6129. function NewQTNextTaskNeededSoonerCallbackUPP(userRoutine: QTNextTaskNeededSoonerCallbackProcPtr): QTNextTaskNeededSoonerCallbackUPP; external name '_NewQTNextTaskNeededSoonerCallbackUPP'; { old name was NewQTNextTaskNeededSoonerCallbackProc }
  6130. {
  6131. * NewMoviesErrorUPP()
  6132. *
  6133. * Availability:
  6134. * Non-Carbon CFM: available as macro/inline
  6135. * CarbonLib: in CarbonLib 1.0 and later
  6136. * Mac OS X: in version 10.0 and later
  6137. }
  6138. function NewMoviesErrorUPP(userRoutine: MoviesErrorProcPtr): MoviesErrorUPP; external name '_NewMoviesErrorUPP'; { old name was NewMoviesErrorProc }
  6139. {
  6140. * NewTweenerDataUPP()
  6141. *
  6142. * Availability:
  6143. * Non-Carbon CFM: available as macro/inline
  6144. * CarbonLib: in CarbonLib 1.0 and later
  6145. * Mac OS X: in version 10.0 and later
  6146. }
  6147. function NewTweenerDataUPP(userRoutine: TweenerDataProcPtr): TweenerDataUPP; external name '_NewTweenerDataUPP'; { old name was NewTweenerDataProc }
  6148. {
  6149. * NewQTEffectListFilterUPP()
  6150. *
  6151. * Availability:
  6152. * Non-Carbon CFM: available as macro/inline
  6153. * CarbonLib: in CarbonLib 1.6 and later
  6154. * Mac OS X: in version 10.2 and later
  6155. }
  6156. function NewQTEffectListFilterUPP(userRoutine: QTEffectListFilterProcPtr): QTEffectListFilterUPP; external name '_NewQTEffectListFilterUPP'; { old name was NewQTEffectListFilterProc }
  6157. {
  6158. * NewQTBandwidthNotificationUPP()
  6159. *
  6160. * Availability:
  6161. * Non-Carbon CFM: available as macro/inline
  6162. * CarbonLib: in CarbonLib 1.0.2 and later
  6163. * Mac OS X: in version 10.0 and later
  6164. }
  6165. function NewQTBandwidthNotificationUPP(userRoutine: QTBandwidthNotificationProcPtr): QTBandwidthNotificationUPP; external name '_NewQTBandwidthNotificationUPP'; { old name was NewQTBandwidthNotificationProc }
  6166. {
  6167. * DisposeQTCallBackUPP()
  6168. *
  6169. * Availability:
  6170. * Non-Carbon CFM: available as macro/inline
  6171. * CarbonLib: in CarbonLib 1.0 and later
  6172. * Mac OS X: in version 10.0 and later
  6173. }
  6174. procedure DisposeQTCallBackUPP(userUPP: QTCallBackUPP); external name '_DisposeQTCallBackUPP';
  6175. {
  6176. * DisposeQTSyncTaskUPP()
  6177. *
  6178. * Availability:
  6179. * Non-Carbon CFM: available as macro/inline
  6180. * CarbonLib: in CarbonLib 1.0 and later
  6181. * Mac OS X: in version 10.0 and later
  6182. }
  6183. procedure DisposeQTSyncTaskUPP(userUPP: QTSyncTaskUPP); external name '_DisposeQTSyncTaskUPP';
  6184. {
  6185. * DisposeMovieRgnCoverUPP()
  6186. *
  6187. * Availability:
  6188. * Non-Carbon CFM: available as macro/inline
  6189. * CarbonLib: in CarbonLib 1.0 and later
  6190. * Mac OS X: in version 10.0 and later
  6191. }
  6192. procedure DisposeMovieRgnCoverUPP(userUPP: MovieRgnCoverUPP); external name '_DisposeMovieRgnCoverUPP';
  6193. {
  6194. * DisposeMovieProgressUPP()
  6195. *
  6196. * Availability:
  6197. * Non-Carbon CFM: available as macro/inline
  6198. * CarbonLib: in CarbonLib 1.0 and later
  6199. * Mac OS X: in version 10.0 and later
  6200. }
  6201. procedure DisposeMovieProgressUPP(userUPP: MovieProgressUPP); external name '_DisposeMovieProgressUPP';
  6202. {
  6203. * DisposeMovieDrawingCompleteUPP()
  6204. *
  6205. * Availability:
  6206. * Non-Carbon CFM: available as macro/inline
  6207. * CarbonLib: in CarbonLib 1.0 and later
  6208. * Mac OS X: in version 10.0 and later
  6209. }
  6210. procedure DisposeMovieDrawingCompleteUPP(userUPP: MovieDrawingCompleteUPP); external name '_DisposeMovieDrawingCompleteUPP';
  6211. {
  6212. * DisposeTrackTransferUPP()
  6213. *
  6214. * Availability:
  6215. * Non-Carbon CFM: available as macro/inline
  6216. * CarbonLib: in CarbonLib 1.0 and later
  6217. * Mac OS X: in version 10.0 and later
  6218. }
  6219. procedure DisposeTrackTransferUPP(userUPP: TrackTransferUPP); external name '_DisposeTrackTransferUPP';
  6220. {
  6221. * DisposeGetMovieUPP()
  6222. *
  6223. * Availability:
  6224. * Non-Carbon CFM: available as macro/inline
  6225. * CarbonLib: in CarbonLib 1.0 and later
  6226. * Mac OS X: in version 10.0 and later
  6227. }
  6228. procedure DisposeGetMovieUPP(userUPP: GetMovieUPP); external name '_DisposeGetMovieUPP';
  6229. {
  6230. * DisposeMoviePreviewCallOutUPP()
  6231. *
  6232. * Availability:
  6233. * Non-Carbon CFM: available as macro/inline
  6234. * CarbonLib: in CarbonLib 1.0 and later
  6235. * Mac OS X: in version 10.0 and later
  6236. }
  6237. procedure DisposeMoviePreviewCallOutUPP(userUPP: MoviePreviewCallOutUPP); external name '_DisposeMoviePreviewCallOutUPP';
  6238. {
  6239. * DisposeTextMediaUPP()
  6240. *
  6241. * Availability:
  6242. * Non-Carbon CFM: available as macro/inline
  6243. * CarbonLib: in CarbonLib 1.0 and later
  6244. * Mac OS X: in version 10.0 and later
  6245. }
  6246. procedure DisposeTextMediaUPP(userUPP: TextMediaUPP); external name '_DisposeTextMediaUPP';
  6247. {
  6248. * DisposeActionsUPP()
  6249. *
  6250. * Availability:
  6251. * Non-Carbon CFM: available as macro/inline
  6252. * CarbonLib: in CarbonLib 1.0 and later
  6253. * Mac OS X: in version 10.0 and later
  6254. }
  6255. procedure DisposeActionsUPP(userUPP: ActionsUPP); external name '_DisposeActionsUPP';
  6256. {
  6257. * DisposeDoMCActionUPP()
  6258. *
  6259. * Availability:
  6260. * Non-Carbon CFM: available as macro/inline
  6261. * CarbonLib: in CarbonLib 1.0.2 and later
  6262. * Mac OS X: in version 10.0 and later
  6263. }
  6264. procedure DisposeDoMCActionUPP(userUPP: DoMCActionUPP); external name '_DisposeDoMCActionUPP';
  6265. {
  6266. * DisposeMovieExecuteWiredActionsUPP()
  6267. *
  6268. * Availability:
  6269. * Non-Carbon CFM: available as macro/inline
  6270. * CarbonLib: in CarbonLib 1.0.2 and later
  6271. * Mac OS X: in version 10.0 and later
  6272. }
  6273. procedure DisposeMovieExecuteWiredActionsUPP(userUPP: MovieExecuteWiredActionsUPP); external name '_DisposeMovieExecuteWiredActionsUPP';
  6274. {
  6275. * DisposeMoviePrePrerollCompleteUPP()
  6276. *
  6277. * Availability:
  6278. * Non-Carbon CFM: available as macro/inline
  6279. * CarbonLib: in CarbonLib 1.0.2 and later
  6280. * Mac OS X: in version 10.0 and later
  6281. }
  6282. procedure DisposeMoviePrePrerollCompleteUPP(userUPP: MoviePrePrerollCompleteUPP); external name '_DisposeMoviePrePrerollCompleteUPP';
  6283. {
  6284. * DisposeQTNextTaskNeededSoonerCallbackUPP()
  6285. *
  6286. * Availability:
  6287. * Non-Carbon CFM: available as macro/inline
  6288. * CarbonLib: in CarbonLib 1.6 and later
  6289. * Mac OS X: in version 10.2 and later
  6290. }
  6291. procedure DisposeQTNextTaskNeededSoonerCallbackUPP(userUPP: QTNextTaskNeededSoonerCallbackUPP); external name '_DisposeQTNextTaskNeededSoonerCallbackUPP';
  6292. {
  6293. * DisposeMoviesErrorUPP()
  6294. *
  6295. * Availability:
  6296. * Non-Carbon CFM: available as macro/inline
  6297. * CarbonLib: in CarbonLib 1.0 and later
  6298. * Mac OS X: in version 10.0 and later
  6299. }
  6300. procedure DisposeMoviesErrorUPP(userUPP: MoviesErrorUPP); external name '_DisposeMoviesErrorUPP';
  6301. {
  6302. * DisposeTweenerDataUPP()
  6303. *
  6304. * Availability:
  6305. * Non-Carbon CFM: available as macro/inline
  6306. * CarbonLib: in CarbonLib 1.0 and later
  6307. * Mac OS X: in version 10.0 and later
  6308. }
  6309. procedure DisposeTweenerDataUPP(userUPP: TweenerDataUPP); external name '_DisposeTweenerDataUPP';
  6310. {
  6311. * DisposeQTEffectListFilterUPP()
  6312. *
  6313. * Availability:
  6314. * Non-Carbon CFM: available as macro/inline
  6315. * CarbonLib: in CarbonLib 1.6 and later
  6316. * Mac OS X: in version 10.2 and later
  6317. }
  6318. procedure DisposeQTEffectListFilterUPP(userUPP: QTEffectListFilterUPP); external name '_DisposeQTEffectListFilterUPP';
  6319. {
  6320. * DisposeQTBandwidthNotificationUPP()
  6321. *
  6322. * Availability:
  6323. * Non-Carbon CFM: available as macro/inline
  6324. * CarbonLib: in CarbonLib 1.0.2 and later
  6325. * Mac OS X: in version 10.0 and later
  6326. }
  6327. procedure DisposeQTBandwidthNotificationUPP(userUPP: QTBandwidthNotificationUPP); external name '_DisposeQTBandwidthNotificationUPP';
  6328. {
  6329. * InvokeQTCallBackUPP()
  6330. *
  6331. * Availability:
  6332. * Non-Carbon CFM: available as macro/inline
  6333. * CarbonLib: in CarbonLib 1.0 and later
  6334. * Mac OS X: in version 10.0 and later
  6335. }
  6336. procedure InvokeQTCallBackUPP(cb: QTCallBack; refCon: SInt32; userRoutine: QTCallBackUPP); external name '_InvokeQTCallBackUPP'; { old name was CallQTCallBackProc }
  6337. {
  6338. * InvokeQTSyncTaskUPP()
  6339. *
  6340. * Availability:
  6341. * Non-Carbon CFM: available as macro/inline
  6342. * CarbonLib: in CarbonLib 1.0 and later
  6343. * Mac OS X: in version 10.0 and later
  6344. }
  6345. procedure InvokeQTSyncTaskUPP(task: UnivPtr; userRoutine: QTSyncTaskUPP); external name '_InvokeQTSyncTaskUPP'; { old name was CallQTSyncTaskProc }
  6346. {
  6347. * InvokeMovieRgnCoverUPP()
  6348. *
  6349. * Availability:
  6350. * Non-Carbon CFM: available as macro/inline
  6351. * CarbonLib: in CarbonLib 1.0 and later
  6352. * Mac OS X: in version 10.0 and later
  6353. }
  6354. function InvokeMovieRgnCoverUPP(theMovie: Movie; changedRgn: RgnHandle; refcon: SInt32; userRoutine: MovieRgnCoverUPP): OSErr; external name '_InvokeMovieRgnCoverUPP'; { old name was CallMovieRgnCoverProc }
  6355. {
  6356. * InvokeMovieProgressUPP()
  6357. *
  6358. * Availability:
  6359. * Non-Carbon CFM: available as macro/inline
  6360. * CarbonLib: in CarbonLib 1.0 and later
  6361. * Mac OS X: in version 10.0 and later
  6362. }
  6363. function InvokeMovieProgressUPP(theMovie: Movie; message: SInt16; whatOperation: SInt16; percentDone: Fixed; refcon: SInt32; userRoutine: MovieProgressUPP): OSErr; external name '_InvokeMovieProgressUPP'; { old name was CallMovieProgressProc }
  6364. {
  6365. * InvokeMovieDrawingCompleteUPP()
  6366. *
  6367. * Availability:
  6368. * Non-Carbon CFM: available as macro/inline
  6369. * CarbonLib: in CarbonLib 1.0 and later
  6370. * Mac OS X: in version 10.0 and later
  6371. }
  6372. function InvokeMovieDrawingCompleteUPP(theMovie: Movie; refCon: SInt32; userRoutine: MovieDrawingCompleteUPP): OSErr; external name '_InvokeMovieDrawingCompleteUPP'; { old name was CallMovieDrawingCompleteProc }
  6373. {
  6374. * InvokeTrackTransferUPP()
  6375. *
  6376. * Availability:
  6377. * Non-Carbon CFM: available as macro/inline
  6378. * CarbonLib: in CarbonLib 1.0 and later
  6379. * Mac OS X: in version 10.0 and later
  6380. }
  6381. function InvokeTrackTransferUPP(t: Track; refCon: SInt32; userRoutine: TrackTransferUPP): OSErr; external name '_InvokeTrackTransferUPP'; { old name was CallTrackTransferProc }
  6382. {
  6383. * InvokeGetMovieUPP()
  6384. *
  6385. * Availability:
  6386. * Non-Carbon CFM: available as macro/inline
  6387. * CarbonLib: in CarbonLib 1.0 and later
  6388. * Mac OS X: in version 10.0 and later
  6389. }
  6390. function InvokeGetMovieUPP(offset: SInt32; size: SInt32; dataPtr: UnivPtr; refCon: UnivPtr; userRoutine: GetMovieUPP): OSErr; external name '_InvokeGetMovieUPP'; { old name was CallGetMovieProc }
  6391. {
  6392. * InvokeMoviePreviewCallOutUPP()
  6393. *
  6394. * Availability:
  6395. * Non-Carbon CFM: available as macro/inline
  6396. * CarbonLib: in CarbonLib 1.0 and later
  6397. * Mac OS X: in version 10.0 and later
  6398. }
  6399. function InvokeMoviePreviewCallOutUPP(refcon: SInt32; userRoutine: MoviePreviewCallOutUPP): boolean; external name '_InvokeMoviePreviewCallOutUPP'; { old name was CallMoviePreviewCallOutProc }
  6400. {
  6401. * InvokeTextMediaUPP()
  6402. *
  6403. * Availability:
  6404. * Non-Carbon CFM: available as macro/inline
  6405. * CarbonLib: in CarbonLib 1.0 and later
  6406. * Mac OS X: in version 10.0 and later
  6407. }
  6408. function InvokeTextMediaUPP(theText: Handle; theMovie: Movie; var displayFlag: SInt16; refcon: SInt32; userRoutine: TextMediaUPP): OSErr; external name '_InvokeTextMediaUPP'; { old name was CallTextMediaProc }
  6409. {
  6410. * InvokeActionsUPP()
  6411. *
  6412. * Availability:
  6413. * Non-Carbon CFM: available as macro/inline
  6414. * CarbonLib: in CarbonLib 1.0 and later
  6415. * Mac OS X: in version 10.0 and later
  6416. }
  6417. function InvokeActionsUPP(refcon: UnivPtr; targetTrack: Track; targetRefCon: SInt32; theEvent: QTEventRecordPtr; userRoutine: ActionsUPP): OSErr; external name '_InvokeActionsUPP'; { old name was CallActionsProc }
  6418. {
  6419. * InvokeDoMCActionUPP()
  6420. *
  6421. * Availability:
  6422. * Non-Carbon CFM: available as macro/inline
  6423. * CarbonLib: in CarbonLib 1.0.2 and later
  6424. * Mac OS X: in version 10.0 and later
  6425. }
  6426. function InvokeDoMCActionUPP(refcon: UnivPtr; action: SInt16; params: UnivPtr; var handled: boolean; userRoutine: DoMCActionUPP): OSErr; external name '_InvokeDoMCActionUPP'; { old name was CallDoMCActionProc }
  6427. {
  6428. * InvokeMovieExecuteWiredActionsUPP()
  6429. *
  6430. * Availability:
  6431. * Non-Carbon CFM: available as macro/inline
  6432. * CarbonLib: in CarbonLib 1.0.2 and later
  6433. * Mac OS X: in version 10.0 and later
  6434. }
  6435. function InvokeMovieExecuteWiredActionsUPP(theMovie: Movie; refcon: UnivPtr; flags: SInt32; wiredActions: QTAtomContainer; userRoutine: MovieExecuteWiredActionsUPP): OSErr; external name '_InvokeMovieExecuteWiredActionsUPP'; { old name was CallMovieExecuteWiredActionsProc }
  6436. {
  6437. * InvokeMoviePrePrerollCompleteUPP()
  6438. *
  6439. * Availability:
  6440. * Non-Carbon CFM: available as macro/inline
  6441. * CarbonLib: in CarbonLib 1.0.2 and later
  6442. * Mac OS X: in version 10.0 and later
  6443. }
  6444. procedure InvokeMoviePrePrerollCompleteUPP(theMovie: Movie; prerollErr: OSErr; refcon: UnivPtr; userRoutine: MoviePrePrerollCompleteUPP); external name '_InvokeMoviePrePrerollCompleteUPP'; { old name was CallMoviePrePrerollCompleteProc }
  6445. {
  6446. * InvokeQTNextTaskNeededSoonerCallbackUPP()
  6447. *
  6448. * Availability:
  6449. * Non-Carbon CFM: available as macro/inline
  6450. * CarbonLib: in CarbonLib 1.6 and later
  6451. * Mac OS X: in version 10.2 and later
  6452. }
  6453. procedure InvokeQTNextTaskNeededSoonerCallbackUPP(duration: TimeValue; flags: UInt32; refcon: UnivPtr; userRoutine: QTNextTaskNeededSoonerCallbackUPP); external name '_InvokeQTNextTaskNeededSoonerCallbackUPP'; { old name was CallQTNextTaskNeededSoonerCallbackProc }
  6454. {
  6455. * InvokeMoviesErrorUPP()
  6456. *
  6457. * Availability:
  6458. * Non-Carbon CFM: available as macro/inline
  6459. * CarbonLib: in CarbonLib 1.0 and later
  6460. * Mac OS X: in version 10.0 and later
  6461. }
  6462. procedure InvokeMoviesErrorUPP(theErr: OSErr; refcon: SInt32; userRoutine: MoviesErrorUPP); external name '_InvokeMoviesErrorUPP'; { old name was CallMoviesErrorProc }
  6463. {
  6464. * InvokeTweenerDataUPP()
  6465. *
  6466. * Availability:
  6467. * Non-Carbon CFM: available as macro/inline
  6468. * CarbonLib: in CarbonLib 1.0 and later
  6469. * Mac OS X: in version 10.0 and later
  6470. }
  6471. 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 }
  6472. {
  6473. * InvokeQTEffectListFilterUPP()
  6474. *
  6475. * Availability:
  6476. * Non-Carbon CFM: available as macro/inline
  6477. * CarbonLib: in CarbonLib 1.6 and later
  6478. * Mac OS X: in version 10.2 and later
  6479. }
  6480. function InvokeQTEffectListFilterUPP(effect: Component; effectMinSource: SInt32; effectMaxSource: SInt32; majorClass: OSType; minorClass: OSType; refcon: UnivPtr; userRoutine: QTEffectListFilterUPP): boolean; external name '_InvokeQTEffectListFilterUPP'; { old name was CallQTEffectListFilterProc }
  6481. {
  6482. * InvokeQTBandwidthNotificationUPP()
  6483. *
  6484. * Availability:
  6485. * Non-Carbon CFM: available as macro/inline
  6486. * CarbonLib: in CarbonLib 1.0.2 and later
  6487. * Mac OS X: in version 10.0 and later
  6488. }
  6489. function InvokeQTBandwidthNotificationUPP(flags: SInt32; reserved: UnivPtr; refcon: UnivPtr; userRoutine: QTBandwidthNotificationUPP): OSErr; external name '_InvokeQTBandwidthNotificationUPP'; { old name was CallQTBandwidthNotificationProc }
  6490. {****
  6491. QT International Text Atom Support
  6492. ****}
  6493. const
  6494. kITextRemoveEverythingBut = $00;
  6495. kITextRemoveLeaveSuggestedAlternate = $02;
  6496. kITextAtomType = FourCharCode('itxt');
  6497. kITextStringAtomType = FourCharCode('text');
  6498. {
  6499. * ITextAddString()
  6500. *
  6501. * Availability:
  6502. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6503. * CarbonLib: in CarbonLib 1.0 and later
  6504. * Mac OS X: in version 10.0 and later
  6505. * Windows: in qtmlClient.lib 3.0 and later
  6506. }
  6507. function ITextAddString(container: QTAtomContainer; parentAtom: QTAtom; theRegionCode: RegionCode; const (*var*) theString: Str255): OSErr; external name '_ITextAddString';
  6508. {
  6509. * ITextRemoveString()
  6510. *
  6511. * Availability:
  6512. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6513. * CarbonLib: in CarbonLib 1.0 and later
  6514. * Mac OS X: in version 10.0 and later
  6515. * Windows: in qtmlClient.lib 3.0 and later
  6516. }
  6517. function ITextRemoveString(container: QTAtomContainer; parentAtom: QTAtom; theRegionCode: RegionCode; flags: SInt32): OSErr; external name '_ITextRemoveString';
  6518. {
  6519. * ITextGetString()
  6520. *
  6521. * Availability:
  6522. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6523. * CarbonLib: in CarbonLib 1.0 and later
  6524. * Mac OS X: in version 10.0 and later
  6525. * Windows: in qtmlClient.lib 3.0 and later
  6526. }
  6527. function ITextGetString(container: QTAtomContainer; parentAtom: QTAtom; requestedRegion: RegionCode; var foundRegion: RegionCode; theString: StringPtr): OSErr; external name '_ITextGetString';
  6528. {
  6529. * QTTextToNativeText()
  6530. *
  6531. * Availability:
  6532. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  6533. * CarbonLib: in CarbonLib 1.0 and later
  6534. * Mac OS X: in version 10.0 and later
  6535. * Windows: in qtmlClient.lib 3.0 and later
  6536. }
  6537. function QTTextToNativeText(theText: Handle; encoding: SInt32; flags: SInt32): OSErr; external name '_QTTextToNativeText';
  6538. { QTParseTextHREF inContainer atoms }
  6539. const
  6540. kQTParseTextHREFText = FourCharCode('text'); { string }
  6541. kQTParseTextHREFBaseURL = FourCharCode('burl'); { string }
  6542. kQTParseTextHREFClickPoint = FourCharCode('clik'); { Point; if present, QTParseTextHREF will expand URLs to support server-side image maps }
  6543. kQTParseTextHREFUseAltDelim = FourCharCode('altd'); { boolean; if no kQTParseTextHREFDelimiter, delim is ':' }
  6544. kQTParseTextHREFDelimiter = FourCharCode('delm'); { character }
  6545. kQTParseTextHREFRecomposeHREF = FourCharCode('rhrf'); { Boolean; if true, QTParseTextHREF returns recomposed HREF with URL expanded as appropriate }
  6546. { QTParseTextHREF outContainer atoms }
  6547. kQTParseTextHREFURL = FourCharCode('url '); { string }
  6548. kQTParseTextHREFTarget = FourCharCode('targ'); { string }
  6549. kQTParseTextHREFChapter = FourCharCode('chap'); { string }
  6550. kQTParseTextHREFIsAutoHREF = FourCharCode('auto'); { Boolean }
  6551. kQTParseTextHREFIsServerMap = FourCharCode('smap'); { Boolean }
  6552. kQTParseTextHREFHREF = FourCharCode('href'); { string; recomposed HREF with URL expanded as appropriate, suitable for mcActionLinkToURL }
  6553. kQTParseTextHREFEMBEDArgs = FourCharCode('mbed'); { string; text between 'E<' and '>' to be used as new movie's embed tags }
  6554. {
  6555. * QTParseTextHREF()
  6556. *
  6557. * Availability:
  6558. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  6559. * CarbonLib: in CarbonLib 1.1 and later
  6560. * Mac OS X: in version 10.0 and later
  6561. * Windows: in qtmlClient.lib 4.1 and later
  6562. }
  6563. function QTParseTextHREF(href: CStringPtr; hrefLen: SInt32; inContainer: QTAtomContainer; var outContainer: QTAtomContainer): OSErr; external name '_QTParseTextHREF';
  6564. {************************
  6565. * track reference types
  6566. *************************}
  6567. const
  6568. kTrackReferenceChapterList = FourCharCode('chap');
  6569. kTrackReferenceTimeCode = FourCharCode('tmcd');
  6570. kTrackReferenceModifier = FourCharCode('ssrc');
  6571. { ************************
  6572. * modifier track types
  6573. ************************* }
  6574. kTrackModifierInput = $696E; { is really 'in' }
  6575. kTrackModifierType = $7479; { is really 'ty' }
  6576. kTrackModifierReference = FourCharCode('ssrc');
  6577. kTrackModifierObjectID = FourCharCode('obid');
  6578. kTrackModifierInputName = FourCharCode('name');
  6579. kInputMapSubInputID = FourCharCode('subi');
  6580. kTrackModifierTypeMatrix = 1;
  6581. kTrackModifierTypeClip = 2;
  6582. kTrackModifierTypeGraphicsMode = 5;
  6583. kTrackModifierTypeVolume = 3;
  6584. kTrackModifierTypeBalance = 4;
  6585. kTrackModifierTypeImage = FourCharCode('vide'); { was kTrackModifierTypeSpriteImage }
  6586. kTrackModifierObjectMatrix = 6;
  6587. kTrackModifierObjectGraphicsMode = 7;
  6588. kTrackModifierType3d4x4Matrix = 8;
  6589. kTrackModifierCameraData = 9;
  6590. kTrackModifierSoundLocalizationData = 10;
  6591. kTrackModifierObjectImageIndex = 11;
  6592. kTrackModifierObjectLayer = 12;
  6593. kTrackModifierObjectVisible = 13;
  6594. kTrackModifierAngleAspectCamera = 14;
  6595. kTrackModifierPanAngle = FourCharCode('pan ');
  6596. kTrackModifierTiltAngle = FourCharCode('tilt');
  6597. kTrackModifierVerticalFieldOfViewAngle = FourCharCode('fov ');
  6598. kTrackModifierObjectQTEventSend = FourCharCode('evnt');
  6599. kTrackModifierObjectCanBeHitTested = 15;
  6600. type
  6601. ModifierTrackGraphicsModeRecordPtr = ^ModifierTrackGraphicsModeRecord;
  6602. ModifierTrackGraphicsModeRecord = record
  6603. graphicsMode: SInt32;
  6604. opColor: RGBColor;
  6605. end;
  6606. { ************************
  6607. * tween track types
  6608. ************************* }
  6609. const
  6610. kTweenTypeShort = 1;
  6611. kTweenTypeLong = 2;
  6612. kTweenTypeFixed = 3;
  6613. kTweenTypePoint = 4;
  6614. kTweenTypeQDRect = 5;
  6615. kTweenTypeQDRegion = 6;
  6616. kTweenTypeMatrix = 7;
  6617. kTweenTypeRGBColor = 8;
  6618. kTweenTypeGraphicsModeWithRGBColor = 9;
  6619. kTweenTypeQTFloatSingle = 10;
  6620. kTweenTypeQTFloatDouble = 11;
  6621. kTweenTypeFixedPoint = 12;
  6622. kTweenType3dScale = FourCharCode('3sca');
  6623. kTweenType3dTranslate = FourCharCode('3tra');
  6624. kTweenType3dRotate = FourCharCode('3rot');
  6625. kTweenType3dRotateAboutPoint = FourCharCode('3rap');
  6626. kTweenType3dRotateAboutAxis = FourCharCode('3rax');
  6627. kTweenType3dRotateAboutVector = FourCharCode('3rvc');
  6628. kTweenType3dQuaternion = FourCharCode('3qua');
  6629. kTweenType3dMatrix = FourCharCode('3mat');
  6630. kTweenType3dCameraData = FourCharCode('3cam');
  6631. kTweenType3dAngleAspectCameraData = FourCharCode('3caa');
  6632. kTweenType3dSoundLocalizationData = FourCharCode('3slc');
  6633. kTweenTypePathToMatrixTranslation = FourCharCode('gxmt');
  6634. kTweenTypePathToMatrixRotation = FourCharCode('gxpr');
  6635. kTweenTypePathToMatrixTranslationAndRotation = FourCharCode('gxmr');
  6636. kTweenTypePathToFixedPoint = FourCharCode('gxfp');
  6637. kTweenTypePathXtoY = FourCharCode('gxxy');
  6638. kTweenTypePathYtoX = FourCharCode('gxyx');
  6639. kTweenTypeAtomList = FourCharCode('atom');
  6640. kTweenTypePolygon = FourCharCode('poly');
  6641. kTweenTypeMultiMatrix = FourCharCode('mulm');
  6642. kTweenTypeSpin = FourCharCode('spin');
  6643. kTweenType3dMatrixNonLinear = FourCharCode('3nlr');
  6644. kTweenType3dVRObject = FourCharCode('3vro');
  6645. kTweenEntry = FourCharCode('twen');
  6646. kTweenData = FourCharCode('data');
  6647. kTweenType = FourCharCode('twnt');
  6648. kTweenStartOffset = FourCharCode('twst');
  6649. kTweenDuration = FourCharCode('twdu');
  6650. kTweenFlags = FourCharCode('flag');
  6651. kTweenOutputMin = FourCharCode('omin');
  6652. kTweenOutputMax = FourCharCode('omax');
  6653. kTweenSequenceElement = FourCharCode('seqe');
  6654. kTween3dInitialCondition = FourCharCode('icnd');
  6655. kTweenInterpolationID = FourCharCode('intr');
  6656. kTweenRegionData = FourCharCode('qdrg');
  6657. kTweenPictureData = FourCharCode('PICT');
  6658. kListElementType = FourCharCode('type');
  6659. kListElementDataType = FourCharCode('daty');
  6660. kNameAtom = FourCharCode('name');
  6661. kInitialRotationAtom = FourCharCode('inro');
  6662. kNonLinearTweenHeader = FourCharCode('nlth');
  6663. { kTweenFlags }
  6664. kTweenReturnDelta = $00000001;
  6665. type
  6666. TweenSequenceEntryRecordPtr = ^TweenSequenceEntryRecord;
  6667. TweenSequenceEntryRecord = record
  6668. endPercent: Fixed;
  6669. tweenAtomID: QTAtomID;
  6670. dataAtomID: QTAtomID;
  6671. end;
  6672. { ****
  6673. Content Restrictions
  6674. **** }
  6675. const
  6676. kQTRestrictionClassSave = FourCharCode('save');
  6677. kQTRestrictionSaveDontAddMovieResource = $00000001;
  6678. kQTRestrictionSaveDontFlatten = $00000002;
  6679. kQTRestrictionSaveDontExport = $00000004;
  6680. kQTRestrictionSaveDontExtract = $00000008; { don't allow any form of extraction of content }
  6681. kQTRestrictionClassEdit = FourCharCode('edit');
  6682. kQTRestrictionEditDontCopy = $00000001; { disable copy }
  6683. kQTRestrictionEditDontCut = $00000002; { disable cut }
  6684. kQTRestrictionEditDontPaste = $00000004; { disable paste }
  6685. kQTRestrictionEditDontClear = $00000008; { disable clear }
  6686. kQTRestrictionEditDontModify = $00000010; { don't allow modification of content }
  6687. kQTRestrictionEditDontExtract = $00000020; { don't allow any form of extraction of content }
  6688. { ************************
  6689. * Video Media routines
  6690. ************************* }
  6691. videoFlagDontLeanAhead = $00000001;
  6692. { use these five routines at your own peril }
  6693. {
  6694. * VideoMediaResetStatistics()
  6695. *
  6696. * Availability:
  6697. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6698. * CarbonLib: in CarbonLib 1.0 and later
  6699. * Mac OS X: in version 10.0 and later
  6700. * Windows: in qtmlClient.lib 3.0 and later
  6701. }
  6702. function VideoMediaResetStatistics(mh: MediaHandler): ComponentResult; external name '_VideoMediaResetStatistics';
  6703. {
  6704. * VideoMediaGetStatistics()
  6705. *
  6706. * Availability:
  6707. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6708. * CarbonLib: in CarbonLib 1.0 and later
  6709. * Mac OS X: in version 10.0 and later
  6710. * Windows: in qtmlClient.lib 3.0 and later
  6711. }
  6712. function VideoMediaGetStatistics(mh: MediaHandler): ComponentResult; external name '_VideoMediaGetStatistics';
  6713. {
  6714. * VideoMediaGetStallCount()
  6715. *
  6716. * Availability:
  6717. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  6718. * CarbonLib: in CarbonLib 1.0.2 and later
  6719. * Mac OS X: in version 10.0 and later
  6720. * Windows: in qtmlClient.lib 3.0 and later
  6721. }
  6722. function VideoMediaGetStallCount(mh: MediaHandler; var stalls: UInt32): ComponentResult; external name '_VideoMediaGetStallCount';
  6723. {
  6724. * VideoMediaSetCodecParameter()
  6725. *
  6726. * Availability:
  6727. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6728. * CarbonLib: in CarbonLib 1.0.2 and later
  6729. * Mac OS X: in version 10.0 and later
  6730. * Windows: in qtmlClient.lib 4.0 and later
  6731. }
  6732. function VideoMediaSetCodecParameter(mh: MediaHandler; cType: CodecType; parameterID: OSType; parameterChangeSeed: SInt32; dataPtr: UnivPtr; dataSize: SInt32): ComponentResult; external name '_VideoMediaSetCodecParameter';
  6733. {
  6734. * VideoMediaGetCodecParameter()
  6735. *
  6736. * Availability:
  6737. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6738. * CarbonLib: in CarbonLib 1.0.2 and later
  6739. * Mac OS X: in version 10.0 and later
  6740. * Windows: in qtmlClient.lib 4.0 and later
  6741. }
  6742. function VideoMediaGetCodecParameter(mh: MediaHandler; cType: CodecType; parameterID: OSType; outParameterData: Handle): ComponentResult; external name '_VideoMediaGetCodecParameter';
  6743. {************************
  6744. * Text Media routines
  6745. *************************}
  6746. { Return displayFlags for TextProc }
  6747. const
  6748. txtProcDefaultDisplay = 0; { Use the media's default }
  6749. txtProcDontDisplay = 1; { Don't display the text }
  6750. txtProcDoDisplay = 2; { Do display the text }
  6751. {
  6752. * TextMediaSetTextProc()
  6753. *
  6754. * Availability:
  6755. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6756. * CarbonLib: in CarbonLib 1.0 and later
  6757. * Mac OS X: in version 10.0 and later
  6758. * Windows: in qtmlClient.lib 3.0 and later
  6759. }
  6760. function TextMediaSetTextProc(mh: MediaHandler; TextProc: TextMediaUPP; refcon: SInt32): ComponentResult; external name '_TextMediaSetTextProc';
  6761. {
  6762. * TextMediaAddTextSample()
  6763. *
  6764. * Availability:
  6765. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6766. * CarbonLib: in CarbonLib 1.0 and later
  6767. * Mac OS X: in version 10.0 and later
  6768. * Windows: in qtmlClient.lib 3.0 and later
  6769. }
  6770. 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';
  6771. {
  6772. * TextMediaAddTESample()
  6773. *
  6774. * Availability:
  6775. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6776. * CarbonLib: in CarbonLib 1.0 and later
  6777. * Mac OS X: in version 10.0 and later
  6778. * Windows: in qtmlClient.lib 3.0 and later
  6779. }
  6780. 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';
  6781. {
  6782. * TextMediaAddHiliteSample()
  6783. *
  6784. * Availability:
  6785. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6786. * CarbonLib: in CarbonLib 1.0 and later
  6787. * Mac OS X: in version 10.0 and later
  6788. * Windows: in qtmlClient.lib 3.0 and later
  6789. }
  6790. function TextMediaAddHiliteSample(mh: MediaHandler; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult; external name '_TextMediaAddHiliteSample';
  6791. {
  6792. * TextMediaDrawRaw()
  6793. *
  6794. * Availability:
  6795. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6796. * CarbonLib: in CarbonLib 1.0.2 and later
  6797. * Mac OS X: in version 10.0 and later
  6798. * Windows: in qtmlClient.lib 4.0 and later
  6799. }
  6800. function TextMediaDrawRaw(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; data: UnivPtr; dataSize: SInt32; tdh: TextDescriptionHandle): ComponentResult; external name '_TextMediaDrawRaw';
  6801. {
  6802. * TextMediaSetTextProperty()
  6803. *
  6804. * Availability:
  6805. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6806. * CarbonLib: in CarbonLib 1.0.2 and later
  6807. * Mac OS X: in version 10.0 and later
  6808. * Windows: in qtmlClient.lib 4.0 and later
  6809. }
  6810. function TextMediaSetTextProperty(mh: MediaHandler; atMediaTime: TimeValue; propertyType: SInt32; data: UnivPtr; dataSize: SInt32): ComponentResult; external name '_TextMediaSetTextProperty';
  6811. {
  6812. * TextMediaRawSetup()
  6813. *
  6814. * Availability:
  6815. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6816. * CarbonLib: in CarbonLib 1.0.2 and later
  6817. * Mac OS X: in version 10.0 and later
  6818. * Windows: in qtmlClient.lib 4.0 and later
  6819. }
  6820. function TextMediaRawSetup(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; data: UnivPtr; dataSize: SInt32; tdh: TextDescriptionHandle; sampleDuration: TimeValue): ComponentResult; external name '_TextMediaRawSetup';
  6821. {
  6822. * TextMediaRawIdle()
  6823. *
  6824. * Availability:
  6825. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  6826. * CarbonLib: in CarbonLib 1.0.2 and later
  6827. * Mac OS X: in version 10.0 and later
  6828. * Windows: in qtmlClient.lib 4.0 and later
  6829. }
  6830. function TextMediaRawIdle(mh: MediaHandler; gw: GWorldPtr; gd: GDHandle; sampleTime: TimeValue; flagsIn: SInt32; var flagsOut: SInt32): ComponentResult; external name '_TextMediaRawIdle';
  6831. {
  6832. * TextMediaGetTextProperty()
  6833. *
  6834. * Availability:
  6835. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  6836. * CarbonLib: in CarbonLib 1.3 and later
  6837. * Mac OS X: in version 10.0 and later
  6838. * Windows: in qtmlClient.lib 5.0 and later
  6839. }
  6840. function TextMediaGetTextProperty(mh: MediaHandler; atMediaTime: TimeValue; propertyType: SInt32; data: UnivPtr; dataSize: SInt32): ComponentResult; external name '_TextMediaGetTextProperty';
  6841. const
  6842. findTextEdgeOK = $01; { Okay to find text at specified sample time }
  6843. findTextCaseSensitive = $02; { Case sensitive search }
  6844. findTextReverseSearch = $04; { Search from sampleTime backwards }
  6845. findTextWrapAround = $08; { Wrap search when beginning or end of movie is hit }
  6846. findTextUseOffset = $10; { Begin search at the given character offset into sample rather than edge }
  6847. {
  6848. * TextMediaFindNextText()
  6849. *
  6850. * Availability:
  6851. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6852. * CarbonLib: in CarbonLib 1.0 and later
  6853. * Mac OS X: in version 10.0 and later
  6854. * Windows: in qtmlClient.lib 3.0 and later
  6855. }
  6856. 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';
  6857. {
  6858. * TextMediaHiliteTextSample()
  6859. *
  6860. * Availability:
  6861. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6862. * CarbonLib: in CarbonLib 1.0 and later
  6863. * Mac OS X: in version 10.0 and later
  6864. * Windows: in qtmlClient.lib 3.0 and later
  6865. }
  6866. function TextMediaHiliteTextSample(mh: MediaHandler; sampleTime: TimeValue; hiliteStart: SInt16; hiliteEnd: SInt16; var rgbHiliteColor: RGBColor): ComponentResult; external name '_TextMediaHiliteTextSample';
  6867. const
  6868. dropShadowOffsetType = FourCharCode('drpo');
  6869. dropShadowTranslucencyType = FourCharCode('drpt');
  6870. {
  6871. * TextMediaSetTextSampleData()
  6872. *
  6873. * Availability:
  6874. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6875. * CarbonLib: in CarbonLib 1.0 and later
  6876. * Mac OS X: in version 10.0 and later
  6877. * Windows: in qtmlClient.lib 3.0 and later
  6878. }
  6879. function TextMediaSetTextSampleData(mh: MediaHandler; data: UnivPtr; dataType: OSType): ComponentResult; external name '_TextMediaSetTextSampleData';
  6880. {************************
  6881. * Sprite Media routines
  6882. *************************}
  6883. { flags for sprite hit test routines }
  6884. const
  6885. spriteHitTestBounds = $00000001; { point must only be within sprite's bounding box }
  6886. spriteHitTestImage = $00000002; { point must be within the shape of the sprite's image }
  6887. spriteHitTestInvisibleSprites = $00000004; { invisible sprites may be hit tested }
  6888. spriteHitTestIsClick = $00000008; { for codecs that want mouse events }
  6889. spriteHitTestLocInDisplayCoordinates = $00000010; { set if you want to pass a display coordiate point to SpriteHitTest }
  6890. spriteHitTestTreatAllSpritesAsHitTestable = $00000020; { set if you want to override each sprites hittestable property as true }
  6891. { atom types for sprite media }
  6892. kSpriteAtomType = FourCharCode('sprt');
  6893. kSpriteImagesContainerAtomType = FourCharCode('imct');
  6894. kSpriteImageAtomType = FourCharCode('imag');
  6895. kSpriteImageDataAtomType = FourCharCode('imda');
  6896. kSpriteImageDataRefAtomType = FourCharCode('imre');
  6897. kSpriteImageDataRefTypeAtomType = FourCharCode('imrt');
  6898. kSpriteImageGroupIDAtomType = FourCharCode('imgr');
  6899. kSpriteImageRegistrationAtomType = FourCharCode('imrg');
  6900. kSpriteImageDefaultImageIndexAtomType = FourCharCode('defi');
  6901. kSpriteSharedDataAtomType = FourCharCode('dflt');
  6902. kSpriteNameAtomType = FourCharCode('name');
  6903. kSpriteImageNameAtomType = FourCharCode('name');
  6904. kSpriteUsesImageIDsAtomType = FourCharCode('uses'); { leaf data is an array of QTAtomID's, one per image used }
  6905. kSpriteBehaviorsAtomType = FourCharCode('beha');
  6906. kSpriteImageBehaviorAtomType = FourCharCode('imag');
  6907. kSpriteCursorBehaviorAtomType = FourCharCode('crsr');
  6908. kSpriteStatusStringsBehaviorAtomType = FourCharCode('sstr');
  6909. kSpriteVariablesContainerAtomType = FourCharCode('vars');
  6910. kSpriteStringVariableAtomType = FourCharCode('strv');
  6911. kSpriteFloatingPointVariableAtomType = FourCharCode('flov');
  6912. type
  6913. QTRuntimeSpriteDescStructPtr = ^QTRuntimeSpriteDescStruct;
  6914. QTRuntimeSpriteDescStruct = record
  6915. version: SInt32; { set to zero }
  6916. spriteID: QTAtomID;
  6917. imageIndex: SInt16;
  6918. matrix: MatrixRecord;
  6919. visible: SInt16;
  6920. layer: SInt16;
  6921. graphicsMode: ModifierTrackGraphicsModeRecord;
  6922. actionHandlingSpriteID: QTAtomID;
  6923. end;
  6924. QTRuntimeSpriteDescPtr = ^QTRuntimeSpriteDescStruct;
  6925. {
  6926. when filling in QTSpriteButtonBehaviorStruct values -1 may be used to indicate that
  6927. the state transition does not change the property
  6928. }
  6929. QTSpriteButtonBehaviorStructPtr = ^QTSpriteButtonBehaviorStruct;
  6930. QTSpriteButtonBehaviorStruct = record
  6931. notOverNotPressedStateID: QTAtomID;
  6932. overNotPressedStateID: QTAtomID;
  6933. overPressedStateID: QTAtomID;
  6934. notOverPressedStateID: QTAtomID;
  6935. end;
  6936. QTSpriteButtonBehaviorPtr = ^QTSpriteButtonBehaviorStruct;
  6937. {
  6938. * SpriteMediaSetProperty()
  6939. *
  6940. * Availability:
  6941. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6942. * CarbonLib: in CarbonLib 1.0 and later
  6943. * Mac OS X: in version 10.0 and later
  6944. * Windows: in qtmlClient.lib 3.0 and later
  6945. }
  6946. function SpriteMediaSetProperty(mh: MediaHandler; spriteIndex: SInt16; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaSetProperty';
  6947. {
  6948. * SpriteMediaGetProperty()
  6949. *
  6950. * Availability:
  6951. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6952. * CarbonLib: in CarbonLib 1.0 and later
  6953. * Mac OS X: in version 10.0 and later
  6954. * Windows: in qtmlClient.lib 3.0 and later
  6955. }
  6956. function SpriteMediaGetProperty(mh: MediaHandler; spriteIndex: SInt16; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetProperty';
  6957. {
  6958. * SpriteMediaHitTestSprites()
  6959. *
  6960. * Availability:
  6961. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6962. * CarbonLib: in CarbonLib 1.0 and later
  6963. * Mac OS X: in version 10.0 and later
  6964. * Windows: in qtmlClient.lib 3.0 and later
  6965. }
  6966. function SpriteMediaHitTestSprites(mh: MediaHandler; flags: SInt32; loc: Point; var spriteHitIndex: SInt16): ComponentResult; external name '_SpriteMediaHitTestSprites';
  6967. {
  6968. * SpriteMediaCountSprites()
  6969. *
  6970. * Availability:
  6971. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6972. * CarbonLib: in CarbonLib 1.0 and later
  6973. * Mac OS X: in version 10.0 and later
  6974. * Windows: in qtmlClient.lib 3.0 and later
  6975. }
  6976. function SpriteMediaCountSprites(mh: MediaHandler; var numSprites: SInt16): ComponentResult; external name '_SpriteMediaCountSprites';
  6977. {
  6978. * SpriteMediaCountImages()
  6979. *
  6980. * Availability:
  6981. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6982. * CarbonLib: in CarbonLib 1.0 and later
  6983. * Mac OS X: in version 10.0 and later
  6984. * Windows: in qtmlClient.lib 3.0 and later
  6985. }
  6986. function SpriteMediaCountImages(mh: MediaHandler; var numImages: SInt16): ComponentResult; external name '_SpriteMediaCountImages';
  6987. {
  6988. * SpriteMediaGetIndImageDescription()
  6989. *
  6990. * Availability:
  6991. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  6992. * CarbonLib: in CarbonLib 1.0 and later
  6993. * Mac OS X: in version 10.0 and later
  6994. * Windows: in qtmlClient.lib 3.0 and later
  6995. }
  6996. function SpriteMediaGetIndImageDescription(mh: MediaHandler; imageIndex: SInt16; imageDescription: ImageDescriptionHandle): ComponentResult; external name '_SpriteMediaGetIndImageDescription';
  6997. {
  6998. * SpriteMediaGetDisplayedSampleNumber()
  6999. *
  7000. * Availability:
  7001. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7002. * CarbonLib: in CarbonLib 1.0 and later
  7003. * Mac OS X: in version 10.0 and later
  7004. * Windows: in qtmlClient.lib 3.0 and later
  7005. }
  7006. function SpriteMediaGetDisplayedSampleNumber(mh: MediaHandler; var sampleNum: SInt32): ComponentResult; external name '_SpriteMediaGetDisplayedSampleNumber';
  7007. {
  7008. * SpriteMediaGetSpriteName()
  7009. *
  7010. * Availability:
  7011. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7012. * CarbonLib: in CarbonLib 1.0 and later
  7013. * Mac OS X: in version 10.0 and later
  7014. * Windows: in qtmlClient.lib 3.0 and later
  7015. }
  7016. function SpriteMediaGetSpriteName(mh: MediaHandler; spriteID: QTAtomID; var spriteName: Str255): ComponentResult; external name '_SpriteMediaGetSpriteName';
  7017. {
  7018. * SpriteMediaGetImageName()
  7019. *
  7020. * Availability:
  7021. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7022. * CarbonLib: in CarbonLib 1.0 and later
  7023. * Mac OS X: in version 10.0 and later
  7024. * Windows: in qtmlClient.lib 3.0 and later
  7025. }
  7026. function SpriteMediaGetImageName(mh: MediaHandler; imageIndex: SInt16; var imageName: Str255): ComponentResult; external name '_SpriteMediaGetImageName';
  7027. {
  7028. * SpriteMediaSetSpriteProperty()
  7029. *
  7030. * Availability:
  7031. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7032. * CarbonLib: in CarbonLib 1.0 and later
  7033. * Mac OS X: in version 10.0 and later
  7034. * Windows: in qtmlClient.lib 3.0 and later
  7035. }
  7036. function SpriteMediaSetSpriteProperty(mh: MediaHandler; spriteID: QTAtomID; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaSetSpriteProperty';
  7037. {
  7038. * SpriteMediaGetSpriteProperty()
  7039. *
  7040. * Availability:
  7041. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7042. * CarbonLib: in CarbonLib 1.0 and later
  7043. * Mac OS X: in version 10.0 and later
  7044. * Windows: in qtmlClient.lib 3.0 and later
  7045. }
  7046. function SpriteMediaGetSpriteProperty(mh: MediaHandler; spriteID: QTAtomID; propertyType: SInt32; propertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetSpriteProperty';
  7047. {
  7048. * SpriteMediaHitTestAllSprites()
  7049. *
  7050. * Availability:
  7051. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7052. * CarbonLib: in CarbonLib 1.0 and later
  7053. * Mac OS X: in version 10.0 and later
  7054. * Windows: in qtmlClient.lib 3.0 and later
  7055. }
  7056. function SpriteMediaHitTestAllSprites(mh: MediaHandler; flags: SInt32; loc: Point; var spriteHitID: QTAtomID): ComponentResult; external name '_SpriteMediaHitTestAllSprites';
  7057. {
  7058. * SpriteMediaHitTestOneSprite()
  7059. *
  7060. * Availability:
  7061. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7062. * CarbonLib: in CarbonLib 1.0 and later
  7063. * Mac OS X: in version 10.0 and later
  7064. * Windows: in qtmlClient.lib 3.0 and later
  7065. }
  7066. function SpriteMediaHitTestOneSprite(mh: MediaHandler; spriteID: QTAtomID; flags: SInt32; loc: Point; var wasHit: boolean): ComponentResult; external name '_SpriteMediaHitTestOneSprite';
  7067. {
  7068. * SpriteMediaSpriteIndexToID()
  7069. *
  7070. * Availability:
  7071. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7072. * CarbonLib: in CarbonLib 1.0 and later
  7073. * Mac OS X: in version 10.0 and later
  7074. * Windows: in qtmlClient.lib 3.0 and later
  7075. }
  7076. function SpriteMediaSpriteIndexToID(mh: MediaHandler; spriteIndex: SInt16; var spriteID: QTAtomID): ComponentResult; external name '_SpriteMediaSpriteIndexToID';
  7077. {
  7078. * SpriteMediaSpriteIDToIndex()
  7079. *
  7080. * Availability:
  7081. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7082. * CarbonLib: in CarbonLib 1.0 and later
  7083. * Mac OS X: in version 10.0 and later
  7084. * Windows: in qtmlClient.lib 3.0 and later
  7085. }
  7086. function SpriteMediaSpriteIDToIndex(mh: MediaHandler; spriteID: QTAtomID; var spriteIndex: SInt16): ComponentResult; external name '_SpriteMediaSpriteIDToIndex';
  7087. {
  7088. * SpriteMediaGetSpriteActionsForQTEvent()
  7089. *
  7090. * Availability:
  7091. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7092. * CarbonLib: in CarbonLib 1.0 and later
  7093. * Mac OS X: in version 10.0 and later
  7094. * Windows: in qtmlClient.lib 3.0 and later
  7095. }
  7096. function SpriteMediaGetSpriteActionsForQTEvent(mh: MediaHandler; event: QTEventRecordPtr; spriteID: QTAtomID; var container: QTAtomContainer; var atom: QTAtom): ComponentResult; external name '_SpriteMediaGetSpriteActionsForQTEvent';
  7097. {
  7098. * SpriteMediaSetActionVariable()
  7099. *
  7100. * Availability:
  7101. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7102. * CarbonLib: in CarbonLib 1.0 and later
  7103. * Mac OS X: in version 10.0 and later
  7104. * Windows: in qtmlClient.lib 3.0 and later
  7105. }
  7106. function SpriteMediaSetActionVariable(mh: MediaHandler; variableID: QTAtomID; value: Float32Ptr): ComponentResult; external name '_SpriteMediaSetActionVariable';
  7107. {
  7108. * SpriteMediaGetActionVariable()
  7109. *
  7110. * Availability:
  7111. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7112. * CarbonLib: in CarbonLib 1.0 and later
  7113. * Mac OS X: in version 10.0 and later
  7114. * Windows: in qtmlClient.lib 3.0 and later
  7115. }
  7116. function SpriteMediaGetActionVariable(mh: MediaHandler; variableID: QTAtomID; var value: Float32): ComponentResult; external name '_SpriteMediaGetActionVariable';
  7117. {
  7118. * SpriteMediaGetIndImageProperty()
  7119. *
  7120. * Availability:
  7121. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  7122. * CarbonLib: in CarbonLib 1.1 and later
  7123. * Mac OS X: in version 10.0 and later
  7124. * Windows: in qtmlClient.lib 3.0 and later
  7125. }
  7126. function SpriteMediaGetIndImageProperty(mh: MediaHandler; imageIndex: SInt16; imagePropertyType: SInt32; imagePropertyValue: UnivPtr): ComponentResult; external name '_SpriteMediaGetIndImageProperty';
  7127. {
  7128. * SpriteMediaNewSprite()
  7129. *
  7130. * Availability:
  7131. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7132. * CarbonLib: in CarbonLib 1.0.2 and later
  7133. * Mac OS X: in version 10.0 and later
  7134. * Windows: in qtmlClient.lib 4.0 and later
  7135. }
  7136. function SpriteMediaNewSprite(mh: MediaHandler; newSpriteDesc: QTRuntimeSpriteDescPtr): ComponentResult; external name '_SpriteMediaNewSprite';
  7137. {
  7138. * SpriteMediaDisposeSprite()
  7139. *
  7140. * Availability:
  7141. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7142. * CarbonLib: in CarbonLib 1.0.2 and later
  7143. * Mac OS X: in version 10.0 and later
  7144. * Windows: in qtmlClient.lib 4.0 and later
  7145. }
  7146. function SpriteMediaDisposeSprite(mh: MediaHandler; spriteID: QTAtomID): ComponentResult; external name '_SpriteMediaDisposeSprite';
  7147. {
  7148. * SpriteMediaSetActionVariableToString()
  7149. *
  7150. * Availability:
  7151. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7152. * CarbonLib: in CarbonLib 1.0.2 and later
  7153. * Mac OS X: in version 10.0 and later
  7154. * Windows: in qtmlClient.lib 4.0 and later
  7155. }
  7156. function SpriteMediaSetActionVariableToString(mh: MediaHandler; variableID: QTAtomID; theCString: Ptr): ComponentResult; external name '_SpriteMediaSetActionVariableToString';
  7157. {
  7158. * SpriteMediaGetActionVariableAsString()
  7159. *
  7160. * Availability:
  7161. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7162. * CarbonLib: in CarbonLib 1.0.2 and later
  7163. * Mac OS X: in version 10.0 and later
  7164. * Windows: in qtmlClient.lib 4.0 and later
  7165. }
  7166. function SpriteMediaGetActionVariableAsString(mh: MediaHandler; variableID: QTAtomID; var theCString: Handle): ComponentResult; external name '_SpriteMediaGetActionVariableAsString';
  7167. {
  7168. * SpriteMediaNewImage()
  7169. *
  7170. * Availability:
  7171. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  7172. * CarbonLib: in CarbonLib 1.6 and later
  7173. * Mac OS X: in version 10.2 and later
  7174. * Windows: in qtmlClient.lib 6.0 and later
  7175. }
  7176. function SpriteMediaNewImage(mh: MediaHandler; dataRef: Handle; dataRefType: OSType; desiredID: QTAtomID): ComponentResult; external name '_SpriteMediaNewImage';
  7177. {
  7178. * SpriteMediaDisposeImage()
  7179. *
  7180. * Availability:
  7181. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  7182. * CarbonLib: in CarbonLib 1.6 and later
  7183. * Mac OS X: in version 10.2 and later
  7184. * Windows: in qtmlClient.lib 6.0 and later
  7185. }
  7186. function SpriteMediaDisposeImage(mh: MediaHandler; imageIndex: SInt16): ComponentResult; external name '_SpriteMediaDisposeImage';
  7187. {
  7188. * SpriteMediaImageIndexToID()
  7189. *
  7190. * Availability:
  7191. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  7192. * CarbonLib: in CarbonLib 1.6 and later
  7193. * Mac OS X: in version 10.2 and later
  7194. * Windows: in qtmlClient.lib 6.0 and later
  7195. }
  7196. function SpriteMediaImageIndexToID(mh: MediaHandler; imageIndex: SInt16; var imageID: QTAtomID): ComponentResult; external name '_SpriteMediaImageIndexToID';
  7197. {
  7198. * SpriteMediaImageIDToIndex()
  7199. *
  7200. * Availability:
  7201. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  7202. * CarbonLib: in CarbonLib 1.6 and later
  7203. * Mac OS X: in version 10.2 and later
  7204. * Windows: in qtmlClient.lib 6.0 and later
  7205. }
  7206. function SpriteMediaImageIDToIndex(mh: MediaHandler; imageID: QTAtomID; var imageIndex: SInt16): ComponentResult; external name '_SpriteMediaImageIDToIndex';
  7207. {************************
  7208. * Flash Media routines
  7209. *************************}
  7210. {
  7211. * FlashMediaSetPan()
  7212. *
  7213. * Availability:
  7214. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7215. * CarbonLib: in CarbonLib 1.0.2 and later
  7216. * Mac OS X: in version 10.0 and later
  7217. * Windows: in qtmlClient.lib 4.0 and later
  7218. }
  7219. function FlashMediaSetPan(mh: MediaHandler; xPercent: SInt16; yPercent: SInt16): ComponentResult; external name '_FlashMediaSetPan';
  7220. {
  7221. * FlashMediaSetZoom()
  7222. *
  7223. * Availability:
  7224. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7225. * CarbonLib: in CarbonLib 1.0.2 and later
  7226. * Mac OS X: in version 10.0 and later
  7227. * Windows: in qtmlClient.lib 4.0 and later
  7228. }
  7229. function FlashMediaSetZoom(mh: MediaHandler; factor: SInt16): ComponentResult; external name '_FlashMediaSetZoom';
  7230. {
  7231. * FlashMediaSetZoomRect()
  7232. *
  7233. * Availability:
  7234. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7235. * CarbonLib: in CarbonLib 1.0.2 and later
  7236. * Mac OS X: in version 10.0 and later
  7237. * Windows: in qtmlClient.lib 4.0 and later
  7238. }
  7239. function FlashMediaSetZoomRect(mh: MediaHandler; left: SInt32; top: SInt32; right: SInt32; bottom: SInt32): ComponentResult; external name '_FlashMediaSetZoomRect';
  7240. {
  7241. * FlashMediaGetRefConBounds()
  7242. *
  7243. * Availability:
  7244. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7245. * CarbonLib: in CarbonLib 1.0.2 and later
  7246. * Mac OS X: in version 10.0 and later
  7247. * Windows: in qtmlClient.lib 4.0 and later
  7248. }
  7249. function FlashMediaGetRefConBounds(mh: MediaHandler; refCon: SInt32; var left: SInt32; var top: SInt32; var right: SInt32; var bottom: SInt32): ComponentResult; external name '_FlashMediaGetRefConBounds';
  7250. {
  7251. * FlashMediaGetRefConID()
  7252. *
  7253. * Availability:
  7254. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7255. * CarbonLib: in CarbonLib 1.0.2 and later
  7256. * Mac OS X: in version 10.0 and later
  7257. * Windows: in qtmlClient.lib 4.0 and later
  7258. }
  7259. function FlashMediaGetRefConID(mh: MediaHandler; refCon: SInt32; var refConID: SInt32): ComponentResult; external name '_FlashMediaGetRefConID';
  7260. {
  7261. * FlashMediaIDToRefCon()
  7262. *
  7263. * Availability:
  7264. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7265. * CarbonLib: in CarbonLib 1.0.2 and later
  7266. * Mac OS X: in version 10.0 and later
  7267. * Windows: in qtmlClient.lib 4.0 and later
  7268. }
  7269. function FlashMediaIDToRefCon(mh: MediaHandler; refConID: SInt32; var refCon: SInt32): ComponentResult; external name '_FlashMediaIDToRefCon';
  7270. {
  7271. * FlashMediaGetDisplayedFrameNumber()
  7272. *
  7273. * Availability:
  7274. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7275. * CarbonLib: in CarbonLib 1.0.2 and later
  7276. * Mac OS X: in version 10.0 and later
  7277. * Windows: in qtmlClient.lib 4.0 and later
  7278. }
  7279. function FlashMediaGetDisplayedFrameNumber(mh: MediaHandler; var flashFrameNumber: SInt32): ComponentResult; external name '_FlashMediaGetDisplayedFrameNumber';
  7280. {
  7281. * FlashMediaFrameNumberToMovieTime()
  7282. *
  7283. * Availability:
  7284. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7285. * CarbonLib: in CarbonLib 1.0.2 and later
  7286. * Mac OS X: in version 10.0 and later
  7287. * Windows: in qtmlClient.lib 4.0 and later
  7288. }
  7289. function FlashMediaFrameNumberToMovieTime(mh: MediaHandler; flashFrameNumber: SInt32; var movieTime: TimeValue): ComponentResult; external name '_FlashMediaFrameNumberToMovieTime';
  7290. {
  7291. * FlashMediaFrameLabelToMovieTime()
  7292. *
  7293. * Availability:
  7294. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7295. * CarbonLib: in CarbonLib 1.0.2 and later
  7296. * Mac OS X: in version 10.0 and later
  7297. * Windows: in qtmlClient.lib 4.0 and later
  7298. }
  7299. function FlashMediaFrameLabelToMovieTime(mh: MediaHandler; theLabel: Ptr; var movieTime: TimeValue): ComponentResult; external name '_FlashMediaFrameLabelToMovieTime';
  7300. {
  7301. * FlashMediaGetFlashVariable()
  7302. *
  7303. * Availability:
  7304. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  7305. * CarbonLib: in CarbonLib 1.3 and later
  7306. * Mac OS X: in version 10.0 and later
  7307. * Windows: in qtmlClient.lib 5.0 and later
  7308. }
  7309. function FlashMediaGetFlashVariable(mh: MediaHandler; path: CStringPtr; name: CStringPtr; var theVariableCStringOut: Handle): ComponentResult; external name '_FlashMediaGetFlashVariable';
  7310. {
  7311. * FlashMediaSetFlashVariable()
  7312. *
  7313. * Availability:
  7314. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  7315. * CarbonLib: in CarbonLib 1.3 and later
  7316. * Mac OS X: in version 10.0 and later
  7317. * Windows: in qtmlClient.lib 5.0 and later
  7318. }
  7319. function FlashMediaSetFlashVariable(mh: MediaHandler; path: CStringPtr; name: CStringPtr; value: CStringPtr; updateFocus: boolean): ComponentResult; external name '_FlashMediaSetFlashVariable';
  7320. {
  7321. * FlashMediaDoButtonActions()
  7322. *
  7323. * Availability:
  7324. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  7325. * CarbonLib: in CarbonLib 1.3 and later
  7326. * Mac OS X: in version 10.0 and later
  7327. * Windows: in qtmlClient.lib 5.0 and later
  7328. }
  7329. function FlashMediaDoButtonActions(mh: MediaHandler; path: CStringPtr; buttonID: SInt32; transition: SInt32): ComponentResult; external name '_FlashMediaDoButtonActions';
  7330. {
  7331. * FlashMediaGetSupportedSwfVersion()
  7332. *
  7333. * Availability:
  7334. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  7335. * CarbonLib: in CarbonLib 1.3 and later
  7336. * Mac OS X: in version 10.0 and later
  7337. * Windows: in qtmlClient.lib 5.0 and later
  7338. }
  7339. function FlashMediaGetSupportedSwfVersion(mh: MediaHandler; var swfVersion: UInt8): ComponentResult; external name '_FlashMediaGetSupportedSwfVersion';
  7340. { sample format atoms }
  7341. const
  7342. kMovieMediaDataReference = FourCharCode('mmdr'); { data reference }
  7343. kMovieMediaDefaultDataReferenceID = FourCharCode('ddri'); { atom id }
  7344. kMovieMediaSlaveTime = FourCharCode('slti'); { boolean }
  7345. kMovieMediaSlaveAudio = FourCharCode('slau'); { boolean }
  7346. kMovieMediaSlaveGraphicsMode = FourCharCode('slgr'); { boolean }
  7347. kMovieMediaAutoPlay = FourCharCode('play'); { boolean }
  7348. kMovieMediaLoop = FourCharCode('loop'); { UInt8 (0=no loop, 1=loop, 2=palindrome loop) }
  7349. kMovieMediaUseMIMEType = FourCharCode('mime'); { string indicating the MIME type to use for the dataref (usually not required) }
  7350. kMovieMediaTitle = FourCharCode('titl'); { string of the media's title (tooltips) }
  7351. kMovieMediaAltText = FourCharCode('altt'); { string of alternate text if media isn't loaded }
  7352. kMovieMediaClipBegin = FourCharCode('clpb'); { MovieMediaTimeRecord of start time of embedded media }
  7353. kMovieMediaClipDuration = FourCharCode('clpd'); { MovieMediaTimeRecord of duration of embedded media }
  7354. kMovieMediaRegionAtom = FourCharCode('regi'); { contains subatoms that describe layout }
  7355. kMovieMediaSlaveTrackDuration = FourCharCode('sltr'); { Boolean indicating that media handler should adjust track and media based on actual embedded movie duration }
  7356. kMovieMediaEnableFrameStepping = FourCharCode('enfs'); { boolean. if true stepping on external movie steps frames within embedded movie. }
  7357. kMovieMediaBackgroundColor = FourCharCode('bkcl'); { RGBColor. }
  7358. kMovieMediaPrerollTime = FourCharCode('prer'); { SInt32 indicating preroll time }
  7359. { fit types }
  7360. kMovieMediaFitNone = 0;
  7361. kMovieMediaFitScroll = FourCharCode('scro');
  7362. kMovieMediaFitClipIfNecessary = FourCharCode('hidd');
  7363. kMovieMediaFitFill = FourCharCode('fill');
  7364. kMovieMediaFitMeet = FourCharCode('meet');
  7365. kMovieMediaFitSlice = FourCharCode('slic');
  7366. { sub atoms for region atom }
  7367. kMovieMediaSpatialAdjustment = FourCharCode('fit '); { OSType from kMovieMediaFit* }
  7368. kMovieMediaRectangleAtom = FourCharCode('rect');
  7369. kMovieMediaTop = FourCharCode('top ');
  7370. kMovieMediaLeft = FourCharCode('left');
  7371. kMovieMediaWidth = FourCharCode('wd ');
  7372. kMovieMediaHeight = FourCharCode('ht ');
  7373. { contained movie properties }
  7374. kMoviePropertyDuration = FourCharCode('dura'); { TimeValue * }
  7375. kMoviePropertyTimeScale = FourCharCode('tims'); { TimeValue * }
  7376. kMoviePropertyTime = FourCharCode('timv'); { TimeValue * }
  7377. kMoviePropertyNaturalBounds = FourCharCode('natb'); { Rect * }
  7378. kMoviePropertyMatrix = FourCharCode('mtrx'); { Matrix * }
  7379. kMoviePropertyTrackList = FourCharCode('tlst'); { long *** }
  7380. kTrackPropertyMediaType = FourCharCode('mtyp'); { OSType }
  7381. kTrackPropertyInstantiation = FourCharCode('inst'); { MovieMediaInstantiationInfoRecord }
  7382. type
  7383. MovieMediaTimeRecordPtr = ^MovieMediaTimeRecord;
  7384. MovieMediaTimeRecord = record
  7385. time: wide;
  7386. scale: TimeScale;
  7387. end;
  7388. MovieMediaInstantiationInfoRecordPtr = ^MovieMediaInstantiationInfoRecord;
  7389. MovieMediaInstantiationInfoRecord = record
  7390. immediately: boolean;
  7391. pad: boolean;
  7392. bitRate: SInt32;
  7393. end;
  7394. { ************************
  7395. * Movie Media routines
  7396. ************************* }
  7397. {
  7398. * MovieMediaGetChildDoMCActionCallback()
  7399. *
  7400. * Availability:
  7401. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7402. * CarbonLib: in CarbonLib 1.1 and later
  7403. * Mac OS X: in version 10.0 and later
  7404. * Windows: in qtmlClient.lib 4.1 and later
  7405. }
  7406. function MovieMediaGetChildDoMCActionCallback(mh: MediaHandler; var doMCActionCallbackProc: DoMCActionUPP; var refcon: SInt32): ComponentResult; external name '_MovieMediaGetChildDoMCActionCallback';
  7407. {
  7408. * MovieMediaGetDoMCActionCallback()
  7409. *
  7410. * Availability:
  7411. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7412. * CarbonLib: in CarbonLib 1.1 and later
  7413. * Mac OS X: in version 10.0 and later
  7414. * Windows: in qtmlClient.lib 4.1 and later
  7415. }
  7416. function MovieMediaGetDoMCActionCallback(mh: MediaHandler; var doMCActionCallbackProc: DoMCActionUPP; var refcon: SInt32): ComponentResult; external name '_MovieMediaGetDoMCActionCallback';
  7417. {
  7418. * MovieMediaGetCurrentMovieProperty()
  7419. *
  7420. * Availability:
  7421. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7422. * CarbonLib: in CarbonLib 1.1 and later
  7423. * Mac OS X: in version 10.0 and later
  7424. * Windows: in qtmlClient.lib 4.1 and later
  7425. }
  7426. function MovieMediaGetCurrentMovieProperty(mh: MediaHandler; whichProperty: OSType; value: UnivPtr): ComponentResult; external name '_MovieMediaGetCurrentMovieProperty';
  7427. {
  7428. * MovieMediaGetCurrentTrackProperty()
  7429. *
  7430. * Availability:
  7431. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7432. * CarbonLib: in CarbonLib 1.1 and later
  7433. * Mac OS X: in version 10.0 and later
  7434. * Windows: in qtmlClient.lib 4.1 and later
  7435. }
  7436. function MovieMediaGetCurrentTrackProperty(mh: MediaHandler; trackID: SInt32; whichProperty: OSType; value: UnivPtr): ComponentResult; external name '_MovieMediaGetCurrentTrackProperty';
  7437. {
  7438. * MovieMediaGetChildMovieDataReference()
  7439. *
  7440. * Availability:
  7441. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7442. * CarbonLib: in CarbonLib 1.1 and later
  7443. * Mac OS X: in version 10.0 and later
  7444. * Windows: in qtmlClient.lib 4.1 and later
  7445. }
  7446. function MovieMediaGetChildMovieDataReference(mh: MediaHandler; dataRefID: QTAtomID; dataRefIndex: SInt16; var dataRefType: OSType; var dataRef: Handle; var dataRefIDOut: QTAtomID; var dataRefIndexOut: SInt16): ComponentResult; external name '_MovieMediaGetChildMovieDataReference';
  7447. {
  7448. * MovieMediaSetChildMovieDataReference()
  7449. *
  7450. * Availability:
  7451. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7452. * CarbonLib: in CarbonLib 1.1 and later
  7453. * Mac OS X: in version 10.0 and later
  7454. * Windows: in qtmlClient.lib 4.1 and later
  7455. }
  7456. function MovieMediaSetChildMovieDataReference(mh: MediaHandler; dataRefID: QTAtomID; dataRefType: OSType; dataRef: Handle): ComponentResult; external name '_MovieMediaSetChildMovieDataReference';
  7457. {
  7458. * MovieMediaLoadChildMovieFromDataReference()
  7459. *
  7460. * Availability:
  7461. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7462. * CarbonLib: in CarbonLib 1.1 and later
  7463. * Mac OS X: in version 10.0 and later
  7464. * Windows: in qtmlClient.lib 4.1 and later
  7465. }
  7466. function MovieMediaLoadChildMovieFromDataReference(mh: MediaHandler; dataRefID: QTAtomID): ComponentResult; external name '_MovieMediaLoadChildMovieFromDataReference';
  7467. {************************
  7468. * 3D Media routines
  7469. *************************}
  7470. {
  7471. * Media3DGetNamedObjectList()
  7472. *
  7473. * Availability:
  7474. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7475. * CarbonLib: in CarbonLib 1.0 and later
  7476. * Mac OS X: in version 10.0 and later
  7477. * Windows: in qtmlClient.lib 3.0 and later
  7478. }
  7479. function Media3DGetNamedObjectList(mh: MediaHandler; var objectList: QTAtomContainer): ComponentResult; external name '_Media3DGetNamedObjectList';
  7480. {
  7481. * Media3DGetRendererList()
  7482. *
  7483. * Availability:
  7484. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7485. * CarbonLib: in CarbonLib 1.0 and later
  7486. * Mac OS X: in version 10.0 and later
  7487. * Windows: in qtmlClient.lib 3.0 and later
  7488. }
  7489. function Media3DGetRendererList(mh: MediaHandler; var rendererList: QTAtomContainer): ComponentResult; external name '_Media3DGetRendererList';
  7490. {
  7491. * Media3DGetCurrentGroup()
  7492. *
  7493. * Availability:
  7494. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7495. * CarbonLib: in CarbonLib 1.0.2 and later
  7496. * Mac OS X: in version 10.0 and later
  7497. * Windows: in qtmlClient.lib 4.0 and later
  7498. }
  7499. function Media3DGetCurrentGroup(mh: MediaHandler; group: UnivPtr): ComponentResult; external name '_Media3DGetCurrentGroup';
  7500. {
  7501. * Media3DTranslateNamedObjectTo()
  7502. *
  7503. * Availability:
  7504. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7505. * CarbonLib: in CarbonLib 1.0.2 and later
  7506. * Mac OS X: in version 10.0 and later
  7507. * Windows: in qtmlClient.lib 4.0 and later
  7508. }
  7509. function Media3DTranslateNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; x: Fixed; y: Fixed; z: Fixed): ComponentResult; external name '_Media3DTranslateNamedObjectTo';
  7510. {
  7511. * Media3DScaleNamedObjectTo()
  7512. *
  7513. * Availability:
  7514. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7515. * CarbonLib: in CarbonLib 1.0.2 and later
  7516. * Mac OS X: in version 10.0 and later
  7517. * Windows: in qtmlClient.lib 4.0 and later
  7518. }
  7519. function Media3DScaleNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; xScale: Fixed; yScale: Fixed; zScale: Fixed): ComponentResult; external name '_Media3DScaleNamedObjectTo';
  7520. {
  7521. * Media3DRotateNamedObjectTo()
  7522. *
  7523. * Availability:
  7524. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7525. * CarbonLib: in CarbonLib 1.0.2 and later
  7526. * Mac OS X: in version 10.0 and later
  7527. * Windows: in qtmlClient.lib 4.0 and later
  7528. }
  7529. function Media3DRotateNamedObjectTo(mh: MediaHandler; objectName: CStringPtr; xDegrees: Fixed; yDegrees: Fixed; zDegrees: Fixed): ComponentResult; external name '_Media3DRotateNamedObjectTo';
  7530. {
  7531. * Media3DSetCameraData()
  7532. *
  7533. * Availability:
  7534. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7535. * CarbonLib: in CarbonLib 1.0.2 and later
  7536. * Mac OS X: in version 10.0 and later
  7537. * Windows: in qtmlClient.lib 4.0 and later
  7538. }
  7539. function Media3DSetCameraData(mh: MediaHandler; cameraData: UnivPtr): ComponentResult; external name '_Media3DSetCameraData';
  7540. {
  7541. * Media3DGetCameraData()
  7542. *
  7543. * Availability:
  7544. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7545. * CarbonLib: in CarbonLib 1.0.2 and later
  7546. * Mac OS X: in version 10.0 and later
  7547. * Windows: in qtmlClient.lib 4.0 and later
  7548. }
  7549. function Media3DGetCameraData(mh: MediaHandler; cameraData: UnivPtr): ComponentResult; external name '_Media3DGetCameraData';
  7550. {
  7551. * Media3DSetCameraAngleAspect()
  7552. *
  7553. * Availability:
  7554. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7555. * CarbonLib: in CarbonLib 1.0.2 and later
  7556. * Mac OS X: in version 10.0 and later
  7557. * Windows: in qtmlClient.lib 4.0 and later
  7558. }
  7559. function Media3DSetCameraAngleAspect(mh: MediaHandler; fov: QTFloatSingle; aspectRatioXToY: QTFloatSingle): ComponentResult; external name '_Media3DSetCameraAngleAspect';
  7560. {
  7561. * Media3DGetCameraAngleAspect()
  7562. *
  7563. * Availability:
  7564. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7565. * CarbonLib: in CarbonLib 1.0.2 and later
  7566. * Mac OS X: in version 10.0 and later
  7567. * Windows: in qtmlClient.lib 4.0 and later
  7568. }
  7569. function Media3DGetCameraAngleAspect(mh: MediaHandler; var fov: QTFloatSingle; var aspectRatioXToY: QTFloatSingle): ComponentResult; external name '_Media3DGetCameraAngleAspect';
  7570. {
  7571. * Media3DSetCameraRange()
  7572. *
  7573. * Availability:
  7574. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7575. * CarbonLib: in CarbonLib 1.0.2 and later
  7576. * Mac OS X: in version 10.0 and later
  7577. * Windows: in qtmlClient.lib 4.0 and later
  7578. }
  7579. function Media3DSetCameraRange(mh: MediaHandler; tQ3CameraRange: UnivPtr): ComponentResult; external name '_Media3DSetCameraRange';
  7580. {
  7581. * Media3DGetCameraRange()
  7582. *
  7583. * Availability:
  7584. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  7585. * CarbonLib: in CarbonLib 1.0.2 and later
  7586. * Mac OS X: in version 10.0 and later
  7587. * Windows: in qtmlClient.lib 4.0 and later
  7588. }
  7589. function Media3DGetCameraRange(mh: MediaHandler; tQ3CameraRange: UnivPtr): ComponentResult; external name '_Media3DGetCameraRange';
  7590. {
  7591. * Media3DGetViewObject()
  7592. *
  7593. * Availability:
  7594. * Non-Carbon CFM: in QuickTimeLib 4.1 and later
  7595. * CarbonLib: in CarbonLib 1.1 and later
  7596. * Mac OS X: in version 10.0 and later
  7597. * Windows: in qtmlClient.lib 4.1 and later
  7598. }
  7599. function Media3DGetViewObject(mh: MediaHandler; tq3viewObject: UnivPtr): ComponentResult; external name '_Media3DGetViewObject';
  7600. {***************************************
  7601. * *
  7602. * M O V I E C O N T R O L L E R *
  7603. * *
  7604. ***************************************}
  7605. const
  7606. MovieControllerComponentType = FourCharCode('play');
  7607. kMovieControllerQTVRFlag = $01;
  7608. kMovieControllerDontDisplayToUser = $02;
  7609. type
  7610. MovieController = ComponentInstance;
  7611. MovieControllerPtr = ^MovieController;
  7612. const
  7613. mcActionIdle = 1; { no param }
  7614. mcActionDraw = 2; { param is WindowRef }
  7615. mcActionActivate = 3; { no param }
  7616. mcActionDeactivate = 4; { no param }
  7617. mcActionMouseDown = 5; { param is pointer to EventRecord }
  7618. mcActionKey = 6; { param is pointer to EventRecord }
  7619. mcActionPlay = 8; { param is Fixed, play rate }
  7620. mcActionGoToTime = 12; { param is TimeRecord }
  7621. mcActionSetVolume = 14; { param is a short }
  7622. mcActionGetVolume = 15; { param is pointer to a short }
  7623. mcActionStep = 18; { param is number of steps (short) }
  7624. mcActionSetLooping = 21; { param is Boolean }
  7625. mcActionGetLooping = 22; { param is pointer to a Boolean }
  7626. mcActionSetLoopIsPalindrome = 23; { param is Boolean }
  7627. mcActionGetLoopIsPalindrome = 24; { param is pointer to a Boolean }
  7628. mcActionSetGrowBoxBounds = 25; { param is a Rect }
  7629. mcActionControllerSizeChanged = 26; { no param }
  7630. mcActionSetSelectionBegin = 29; { param is TimeRecord }
  7631. mcActionSetSelectionDuration = 30; { param is TimeRecord, action only taken on set-duration }
  7632. mcActionSetKeysEnabled = 32; { param is Boolean }
  7633. mcActionGetKeysEnabled = 33; { param is pointer to Boolean }
  7634. mcActionSetPlaySelection = 34; { param is Boolean }
  7635. mcActionGetPlaySelection = 35; { param is pointer to Boolean }
  7636. mcActionSetUseBadge = 36; { param is Boolean }
  7637. mcActionGetUseBadge = 37; { param is pointer to Boolean }
  7638. mcActionSetFlags = 38; { param is long of flags }
  7639. mcActionGetFlags = 39; { param is pointer to a long of flags }
  7640. mcActionSetPlayEveryFrame = 40; { param is Boolean }
  7641. mcActionGetPlayEveryFrame = 41; { param is pointer to Boolean }
  7642. mcActionGetPlayRate = 42; { param is pointer to Fixed }
  7643. mcActionShowBalloon = 43; { param is a pointer to a boolean. set to false to stop balloon }
  7644. mcActionBadgeClick = 44; { param is pointer to Boolean. set to false to ignore click }
  7645. mcActionMovieClick = 45; { param is pointer to event record. change "what" to nullEvt to kill click }
  7646. mcActionSuspend = 46; { no param }
  7647. mcActionResume = 47; { no param }
  7648. mcActionSetControllerKeysEnabled = 48; { param is Boolean }
  7649. mcActionGetTimeSliderRect = 49; { param is pointer to rect }
  7650. mcActionMovieEdited = 50; { no param }
  7651. mcActionGetDragEnabled = 51; { param is pointer to Boolean }
  7652. mcActionSetDragEnabled = 52; { param is Boolean }
  7653. mcActionGetSelectionBegin = 53; { param is TimeRecord }
  7654. mcActionGetSelectionDuration = 54; { param is TimeRecord }
  7655. mcActionPrerollAndPlay = 55; { param is Fixed, play rate }
  7656. mcActionGetCursorSettingEnabled = 56; { param is pointer to Boolean }
  7657. mcActionSetCursorSettingEnabled = 57; { param is Boolean }
  7658. mcActionSetColorTable = 58; { param is CTabHandle }
  7659. mcActionLinkToURL = 59; { param is Handle to URL }
  7660. mcActionCustomButtonClick = 60; { param is pointer to EventRecord }
  7661. mcActionForceTimeTableUpdate = 61; { no param }
  7662. mcActionSetControllerTimeLimits = 62; { param is pointer to 2 time values min/max. do no send this message to controller. used internally only. }
  7663. mcActionExecuteAllActionsForQTEvent = 63; { param is ResolvedQTEventSpecPtr }
  7664. mcActionExecuteOneActionForQTEvent = 64; { param is ResolvedQTEventSpecPtr }
  7665. mcActionAdjustCursor = 65; { param is pointer to EventRecord (WindowRef is in message parameter) }
  7666. mcActionUseTrackForTimeTable = 66; { param is pointer to (long trackID; Boolean useIt). do not send this message to controller. }
  7667. mcActionClickAndHoldPoint = 67; { param is point (local coordinates). return true if point has click & hold action (e.g., VR object movie autorotate spot) }
  7668. mcActionShowMessageString = 68; { param is a StringPtr }
  7669. mcActionShowStatusString = 69; { param is a QTStatusStringPtr }
  7670. mcActionGetExternalMovie = 70; { param is a QTGetExternalMoviePtr }
  7671. mcActionGetChapterTime = 71; { param is a QTGetChapterTimePtr }
  7672. mcActionPerformActionList = 72; { param is a QTAtomSpecPtr }
  7673. mcActionEvaluateExpression = 73; { param is a QTEvaluateExpressionPtr }
  7674. mcActionFetchParameterAs = 74; { param is a QTFetchParameterAsPtr }
  7675. mcActionGetCursorByID = 75; { param is a QTGetCursorByIDPtr }
  7676. mcActionGetNextURL = 76; { param is a Handle to URL }
  7677. mcActionMovieChanged = 77;
  7678. mcActionDoScript = 78; { param is QTDoScriptPtr }
  7679. mcActionRestartAtTime = 79; { param is QTResartAtTimePtr }
  7680. mcActionGetIndChapter = 80; { param is QTChapterInfoPtr }
  7681. mcActionLinkToURLExtended = 81; { param is QTAtomContainer as used by QTParseHREF }
  7682. mcActionSetVolumeStep = 82; { param is short containing amount to step volume via arrow keys - default = 64 }
  7683. mcActionAutoPlay = 83; { param is Fixed, play rate }
  7684. mcActionPauseToBuffer = 84; { param is Fixed, play rate on restart }
  7685. mcActionAppMessageReceived = 85; { param is a long, application message }
  7686. mcActionEvaluateExpressionWithType = 89; { param is a QTEvaluateExpressionWithTypePtr }
  7687. mcActionGetMovieName = 90; { param is a p String Handle }
  7688. mcActionGetMovieID = 91; { param is pointer to long }
  7689. mcActionGetMovieActive = 92; { param is pointer to Boolean }
  7690. type
  7691. mcAction = SInt16;
  7692. const
  7693. mcFlagSuppressMovieFrame = $01;
  7694. mcFlagSuppressStepButtons = $02;
  7695. mcFlagSuppressSpeakerButton = $04;
  7696. mcFlagsUseWindowPalette = $08;
  7697. mcFlagsDontInvalidate = $10;
  7698. mcFlagsUseCustomButton = $20;
  7699. mcPositionDontInvalidate = $20;
  7700. type
  7701. mcFlags = UInt32;
  7702. const
  7703. kMCIEEnabledButtonPicture = 1;
  7704. kMCIEDisabledButtonPicture = 2;
  7705. kMCIEDepressedButtonPicture = 3;
  7706. kMCIEEnabledSizeBoxPicture = 4;
  7707. kMCIEDisabledSizeBoxPicture = 5;
  7708. kMCIEEnabledUnavailableButtonPicture = 6;
  7709. kMCIEDisabledUnavailableButtonPicture = 7;
  7710. kMCIESoundSlider = 128;
  7711. kMCIESoundThumb = 129;
  7712. kMCIEColorTable = 256;
  7713. kMCIEIsFlatAppearance = 257;
  7714. kMCIEDoButtonIconsDropOnDepress = 258;
  7715. type
  7716. MCInterfaceElement = UInt32;
  7717. {$ifc TYPED_FUNCTION_POINTERS}
  7718. MCActionFilterProcPtr = function(mc: MovieController; var action: SInt16; params: UnivPtr): boolean;
  7719. {$elsec}
  7720. MCActionFilterProcPtr = ProcPtr;
  7721. {$endc}
  7722. {$ifc TYPED_FUNCTION_POINTERS}
  7723. MCActionFilterWithRefConProcPtr = function(mc: MovieController; action: SInt16; params: UnivPtr; refCon: SInt32): boolean;
  7724. {$elsec}
  7725. MCActionFilterWithRefConProcPtr = ProcPtr;
  7726. {$endc}
  7727. {$ifc OPAQUE_UPP_TYPES}
  7728. MCActionFilterUPP = ^SInt32; { an opaque UPP }
  7729. {$elsec}
  7730. MCActionFilterUPP = UniversalProcPtr;
  7731. {$endc}
  7732. {$ifc OPAQUE_UPP_TYPES}
  7733. MCActionFilterWithRefConUPP = ^SInt32; { an opaque UPP }
  7734. {$elsec}
  7735. MCActionFilterWithRefConUPP = UniversalProcPtr;
  7736. {$endc}
  7737. {
  7738. menu related stuff
  7739. }
  7740. const
  7741. mcInfoUndoAvailable = $01;
  7742. mcInfoCutAvailable = $02;
  7743. mcInfoCopyAvailable = $04;
  7744. mcInfoPasteAvailable = $08;
  7745. mcInfoClearAvailable = $10;
  7746. mcInfoHasSound = $20;
  7747. mcInfoIsPlaying = $40;
  7748. mcInfoIsLooping = $80;
  7749. mcInfoIsInPalindrome = $0100;
  7750. mcInfoEditingEnabled = $0200;
  7751. mcInfoMovieIsInteractive = $0400;
  7752. { menu item codes }
  7753. mcMenuUndo = 1;
  7754. mcMenuCut = 3;
  7755. mcMenuCopy = 4;
  7756. mcMenuPaste = 5;
  7757. mcMenuClear = 6;
  7758. { messages to the application via mcActionAppMessageReceived }
  7759. kQTAppMessageSoftwareChanged = 1; { notification to app that installed QuickTime software has been updated }
  7760. kQTAppMessageWindowCloseRequested = 3; { request for app to close window containing movie controller }
  7761. kQTAppMessageExitFullScreenRequested = 4; { request for app to turn off full screen mode if active }
  7762. kQTAppMessageDisplayChannels = 5; { request for app to display the channel UI }
  7763. kQTAppMessageEnterFullScreenRequested = 6; { request for app to turn on full screen mode }
  7764. { structures used as mcActionFilterProc params }
  7765. type
  7766. QTStatusStringRecordPtr = ^QTStatusStringRecord;
  7767. QTStatusStringRecord = record
  7768. stringTypeFlags: SInt32;
  7769. statusString: CStringPtr;
  7770. end;
  7771. QTStatusStringPtr = ^QTStatusStringRecord;
  7772. QTGetExternalMovieRecordPtr = ^QTGetExternalMovieRecord;
  7773. QTGetExternalMovieRecord = record
  7774. targetType: SInt32; { set to kTargetMovieName or kTargetMovieID }
  7775. movieName: StringPtr;
  7776. movieID: SInt32;
  7777. theMovie: MoviePtr;
  7778. theController: MovieControllerPtr;
  7779. end;
  7780. QTGetExternalMoviePtr = ^QTGetExternalMovieRecord;
  7781. QTGetChapterTimeRecordPtr = ^QTGetChapterTimeRecord;
  7782. QTGetChapterTimeRecord = record
  7783. chapterName: StringPtr;
  7784. chapterTime: TimeRecord;
  7785. end;
  7786. QTGetChapterTimePtr = ^QTGetChapterTimeRecord;
  7787. QTChapterInfoRecordPtr = ^QTChapterInfoRecord;
  7788. QTChapterInfoRecord = record
  7789. index: SInt32; { first chapter has index of 1 }
  7790. time: TimeValue; { -1 if no more chapters available }
  7791. name: Str255;
  7792. end;
  7793. QTChapterInfoPtr = ^QTChapterInfoRecord;
  7794. QTEvaluateExpressionRecordPtr = ^QTEvaluateExpressionRecord;
  7795. QTEvaluateExpressionRecord = record
  7796. expressionSpec: QTAtomSpec;
  7797. expressionResult: Float32Ptr;
  7798. end;
  7799. QTEvaluateExpressionPtr = ^QTEvaluateExpressionRecord;
  7800. QTEvaluateExpressionWithTypeRecordPtr = ^QTEvaluateExpressionWithTypeRecord;
  7801. QTEvaluateExpressionWithTypeRecord = record
  7802. recordSize: SInt32; { Size of structure (fill in at allocation) }
  7803. expressionSpec: QTAtomSpec;
  7804. expressionResult: Float32Ptr;
  7805. fetchAsType: SInt32;
  7806. nonNumericResult: Handle;
  7807. { Current size is 24 }
  7808. end;
  7809. QTEvaluateExpressionWithTypePtr = ^QTEvaluateExpressionWithTypeRecord;
  7810. QTFetchParameterAsRecordPtr = ^QTFetchParameterAsRecord;
  7811. QTFetchParameterAsRecord = record
  7812. paramListSpec: QTAtomSpec;
  7813. paramIndex: SInt32;
  7814. paramType: SInt32;
  7815. allowedFlags: SInt32;
  7816. min: Ptr;
  7817. max: Ptr;
  7818. currentValue: Ptr;
  7819. newValue: Ptr;
  7820. isUnsignedValue: boolean;
  7821. end;
  7822. QTFetchParameterAsPtr = ^QTFetchParameterAsRecord;
  7823. QTGetCursorByIDRecordPtr = ^QTGetCursorByIDRecord;
  7824. QTGetCursorByIDRecord = record
  7825. cursorID: SInt16;
  7826. colorCursorData: Handle;
  7827. reserved1: SInt32;
  7828. end;
  7829. QTGetCursorByIDPtr = ^QTGetCursorByIDRecord;
  7830. QTDoScriptRecordPtr = ^QTDoScriptRecord;
  7831. QTDoScriptRecord = record
  7832. scriptTypeFlags: SInt32;
  7833. command: CStringPtr;
  7834. arguments: CStringPtr;
  7835. end;
  7836. QTDoScriptPtr = ^QTDoScriptRecord;
  7837. QTRestartAtTimeRecordPtr = ^QTRestartAtTimeRecord;
  7838. QTRestartAtTimeRecord = record
  7839. startTime: TimeValue; { time scale is the movie timescale }
  7840. rate: Fixed; { if rate is zero, the movie's current rate is maintained }
  7841. end;
  7842. QTRestartAtTimePtr = ^QTRestartAtTimeRecord;
  7843. { values for paramType field of QTFetchParameterAsRecord }
  7844. const
  7845. kFetchAsBooleanPtr = 1;
  7846. kFetchAsShortPtr = 2;
  7847. kFetchAsLongPtr = 3;
  7848. kFetchAsMatrixRecordPtr = 4;
  7849. kFetchAsModifierTrackGraphicsModeRecord = 5;
  7850. kFetchAsHandle = 6;
  7851. kFetchAsStr255 = 7;
  7852. kFetchAsFloatPtr = 8;
  7853. kFetchAsPointPtr = 9;
  7854. kFetchAsNewAtomContainer = 10;
  7855. kFetchAsQTEventRecordPtr = 11;
  7856. kFetchAsFixedPtr = 12;
  7857. kFetchAsSetControllerValuePtr = 13;
  7858. kFetchAsRgnHandle = 14; { flipped to native }
  7859. kFetchAsComponentDescriptionPtr = 15;
  7860. kFetchAsCString = 16;
  7861. kQTCursorOpenHand = -19183;
  7862. kQTCursorClosedHand = -19182;
  7863. kQTCursorPointingHand = -19181;
  7864. kQTCursorRightArrow = -19180;
  7865. kQTCursorLeftArrow = -19179;
  7866. kQTCursorDownArrow = -19178;
  7867. kQTCursorUpArrow = -19177;
  7868. kQTCursorIBeam = -19176;
  7869. { target management }
  7870. {
  7871. * MCSetMovie()
  7872. *
  7873. * Availability:
  7874. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7875. * CarbonLib: in CarbonLib 1.0 and later
  7876. * Mac OS X: in version 10.0 and later
  7877. * Windows: in qtmlClient.lib 3.0 and later
  7878. }
  7879. function MCSetMovie(mc: MovieController; theMovie: Movie; movieWindow: WindowRef; where: Point): ComponentResult; external name '_MCSetMovie';
  7880. {
  7881. * MCGetIndMovie()
  7882. *
  7883. * Availability:
  7884. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7885. * CarbonLib: in CarbonLib 1.0 and later
  7886. * Mac OS X: in version 10.0 and later
  7887. * Windows: in qtmlClient.lib 3.0 and later
  7888. }
  7889. function MCGetIndMovie(mc: MovieController; index: SInt16): Movie; external name '_MCGetIndMovie';
  7890. {
  7891. * MCRemoveAllMovies()
  7892. *
  7893. * Availability:
  7894. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7895. * CarbonLib: in CarbonLib 1.0 and later
  7896. * Mac OS X: in version 10.0 and later
  7897. * Windows: in qtmlClient.lib 3.0 and later
  7898. }
  7899. function MCRemoveAllMovies(mc: MovieController): ComponentResult; external name '_MCRemoveAllMovies';
  7900. {
  7901. * MCRemoveAMovie()
  7902. *
  7903. * Availability:
  7904. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7905. * CarbonLib: in CarbonLib 1.0 and later
  7906. * Mac OS X: in version 10.0 and later
  7907. * Windows: in qtmlClient.lib 3.0 and later
  7908. }
  7909. function MCRemoveAMovie(mc: MovieController; m: Movie): ComponentResult; external name '_MCRemoveAMovie';
  7910. {
  7911. * MCRemoveMovie()
  7912. *
  7913. * Availability:
  7914. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7915. * CarbonLib: in CarbonLib 1.0 and later
  7916. * Mac OS X: in version 10.0 and later
  7917. * Windows: in qtmlClient.lib 3.0 and later
  7918. }
  7919. function MCRemoveMovie(mc: MovieController): ComponentResult; external name '_MCRemoveMovie';
  7920. { event handling etc. }
  7921. {
  7922. * MCIsPlayerEvent()
  7923. *
  7924. * Availability:
  7925. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7926. * CarbonLib: in CarbonLib 1.0 and later
  7927. * Mac OS X: in version 10.0 and later
  7928. * Windows: in qtmlClient.lib 3.0 and later
  7929. }
  7930. function MCIsPlayerEvent(mc: MovieController; const (*var*) e: EventRecord): ComponentResult; external name '_MCIsPlayerEvent';
  7931. { obsolete. use MCSetActionFilterWithRefCon instead. }
  7932. {
  7933. * MCSetActionFilter()
  7934. *
  7935. * Availability:
  7936. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7937. * CarbonLib: in CarbonLib 1.0 and later
  7938. * Mac OS X: in version 10.0 and later
  7939. * Windows: in qtmlClient.lib 3.0 and later
  7940. }
  7941. function MCSetActionFilter(mc: MovieController; blob: MCActionFilterUPP): ComponentResult; external name '_MCSetActionFilter';
  7942. {
  7943. proc is of the form:
  7944. Boolean userPlayerFilter(MovieController mc, short *action, void *params) =
  7945. proc returns TRUE if it handles the action, FALSE if not
  7946. action is passed as a var so that it could be changed by filter
  7947. this is consistent with the current dialog manager stuff
  7948. params is any potential parameters that go with the action
  7949. such as set playback rate to xxx.
  7950. }
  7951. {
  7952. * MCDoAction()
  7953. *
  7954. * Availability:
  7955. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7956. * CarbonLib: in CarbonLib 1.0 and later
  7957. * Mac OS X: in version 10.0 and later
  7958. * Windows: in qtmlClient.lib 3.0 and later
  7959. }
  7960. function MCDoAction(mc: MovieController; action: SInt16; params: UnivPtr): ComponentResult; external name '_MCDoAction';
  7961. { state type things }
  7962. {
  7963. * MCSetControllerAttached()
  7964. *
  7965. * Availability:
  7966. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7967. * CarbonLib: in CarbonLib 1.0 and later
  7968. * Mac OS X: in version 10.0 and later
  7969. * Windows: in qtmlClient.lib 3.0 and later
  7970. }
  7971. function MCSetControllerAttached(mc: MovieController; attach: boolean): ComponentResult; external name '_MCSetControllerAttached';
  7972. {
  7973. * MCIsControllerAttached()
  7974. *
  7975. * Availability:
  7976. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7977. * CarbonLib: in CarbonLib 1.0 and later
  7978. * Mac OS X: in version 10.0 and later
  7979. * Windows: in qtmlClient.lib 3.0 and later
  7980. }
  7981. function MCIsControllerAttached(mc: MovieController): ComponentResult; external name '_MCIsControllerAttached';
  7982. {
  7983. * MCSetControllerPort()
  7984. *
  7985. * Availability:
  7986. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7987. * CarbonLib: in CarbonLib 1.0 and later
  7988. * Mac OS X: in version 10.0 and later
  7989. * Windows: in qtmlClient.lib 3.0 and later
  7990. }
  7991. function MCSetControllerPort(mc: MovieController; gp: CGrafPtr): ComponentResult; external name '_MCSetControllerPort';
  7992. {
  7993. * MCGetControllerPort()
  7994. *
  7995. * Availability:
  7996. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  7997. * CarbonLib: in CarbonLib 1.0 and later
  7998. * Mac OS X: in version 10.0 and later
  7999. * Windows: in qtmlClient.lib 3.0 and later
  8000. }
  8001. function MCGetControllerPort(mc: MovieController): CGrafPtr; external name '_MCGetControllerPort';
  8002. {
  8003. * MCSetVisible()
  8004. *
  8005. * Availability:
  8006. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8007. * CarbonLib: in CarbonLib 1.0 and later
  8008. * Mac OS X: in version 10.0 and later
  8009. * Windows: in qtmlClient.lib 3.0 and later
  8010. }
  8011. function MCSetVisible(mc: MovieController; visible: boolean): ComponentResult; external name '_MCSetVisible';
  8012. {
  8013. * MCGetVisible()
  8014. *
  8015. * Availability:
  8016. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8017. * CarbonLib: in CarbonLib 1.0 and later
  8018. * Mac OS X: in version 10.0 and later
  8019. * Windows: in qtmlClient.lib 3.0 and later
  8020. }
  8021. function MCGetVisible(mc: MovieController): ComponentResult; external name '_MCGetVisible';
  8022. {
  8023. * MCGetControllerBoundsRect()
  8024. *
  8025. * Availability:
  8026. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8027. * CarbonLib: in CarbonLib 1.0 and later
  8028. * Mac OS X: in version 10.0 and later
  8029. * Windows: in qtmlClient.lib 3.0 and later
  8030. }
  8031. function MCGetControllerBoundsRect(mc: MovieController; var bounds: Rect): ComponentResult; external name '_MCGetControllerBoundsRect';
  8032. {
  8033. * MCSetControllerBoundsRect()
  8034. *
  8035. * Availability:
  8036. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8037. * CarbonLib: in CarbonLib 1.0 and later
  8038. * Mac OS X: in version 10.0 and later
  8039. * Windows: in qtmlClient.lib 3.0 and later
  8040. }
  8041. function MCSetControllerBoundsRect(mc: MovieController; const (*var*) bounds: Rect): ComponentResult; external name '_MCSetControllerBoundsRect';
  8042. {
  8043. * MCGetControllerBoundsRgn()
  8044. *
  8045. * Availability:
  8046. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8047. * CarbonLib: in CarbonLib 1.0 and later
  8048. * Mac OS X: in version 10.0 and later
  8049. * Windows: in qtmlClient.lib 3.0 and later
  8050. }
  8051. function MCGetControllerBoundsRgn(mc: MovieController): RgnHandle; external name '_MCGetControllerBoundsRgn';
  8052. {
  8053. * MCGetWindowRgn()
  8054. *
  8055. * Availability:
  8056. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8057. * CarbonLib: in CarbonLib 1.0 and later
  8058. * Mac OS X: in version 10.0 and later
  8059. * Windows: in qtmlClient.lib 3.0 and later
  8060. }
  8061. function MCGetWindowRgn(mc: MovieController; w: WindowRef): RgnHandle; external name '_MCGetWindowRgn';
  8062. { other stuff }
  8063. {
  8064. * MCMovieChanged()
  8065. *
  8066. * Availability:
  8067. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8068. * CarbonLib: in CarbonLib 1.0 and later
  8069. * Mac OS X: in version 10.0 and later
  8070. * Windows: in qtmlClient.lib 3.0 and later
  8071. }
  8072. function MCMovieChanged(mc: MovieController; m: Movie): ComponentResult; external name '_MCMovieChanged';
  8073. {
  8074. called when the app has changed thing about the movie (like bounding rect) or rate. So that we
  8075. can update our graphical (and internal) state accordingly.
  8076. }
  8077. {
  8078. * MCSetDuration()
  8079. *
  8080. * Availability:
  8081. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8082. * CarbonLib: in CarbonLib 1.0 and later
  8083. * Mac OS X: in version 10.0 and later
  8084. * Windows: in qtmlClient.lib 3.0 and later
  8085. }
  8086. function MCSetDuration(mc: MovieController; duration: TimeValue): ComponentResult; external name '_MCSetDuration';
  8087. {
  8088. duration to use for time slider -- will be reset next time MCMovieChanged is called
  8089. or MCSetMovie is called
  8090. }
  8091. {
  8092. * MCGetCurrentTime()
  8093. *
  8094. * Availability:
  8095. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8096. * CarbonLib: in CarbonLib 1.0 and later
  8097. * Mac OS X: in version 10.0 and later
  8098. * Windows: in qtmlClient.lib 3.0 and later
  8099. }
  8100. function MCGetCurrentTime(mc: MovieController; var scale: TimeScale): TimeValue; external name '_MCGetCurrentTime';
  8101. {
  8102. returns the time value and the time scale it is on. if there are no movies, the
  8103. time scale is passed back as 0. scale is an optional parameter
  8104. }
  8105. {
  8106. * MCNewAttachedController()
  8107. *
  8108. * Availability:
  8109. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8110. * CarbonLib: in CarbonLib 1.0 and later
  8111. * Mac OS X: in version 10.0 and later
  8112. * Windows: in qtmlClient.lib 3.0 and later
  8113. }
  8114. function MCNewAttachedController(mc: MovieController; theMovie: Movie; w: WindowRef; where: Point): ComponentResult; external name '_MCNewAttachedController';
  8115. {
  8116. makes theMovie the only movie attached to the controller. makes the controller visible.
  8117. the window and where parameters are passed a long to MCSetMovie and behave as
  8118. described there
  8119. }
  8120. {
  8121. * MCDraw()
  8122. *
  8123. * Availability:
  8124. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8125. * CarbonLib: in CarbonLib 1.0 and later
  8126. * Mac OS X: in version 10.0 and later
  8127. * Windows: in qtmlClient.lib 3.0 and later
  8128. }
  8129. function MCDraw(mc: MovieController; w: WindowRef): ComponentResult; external name '_MCDraw';
  8130. {
  8131. * MCActivate()
  8132. *
  8133. * Availability:
  8134. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8135. * CarbonLib: in CarbonLib 1.0 and later
  8136. * Mac OS X: in version 10.0 and later
  8137. * Windows: in qtmlClient.lib 3.0 and later
  8138. }
  8139. function MCActivate(mc: MovieController; w: WindowRef; activate: boolean): ComponentResult; external name '_MCActivate';
  8140. {
  8141. * MCIdle()
  8142. *
  8143. * Availability:
  8144. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8145. * CarbonLib: in CarbonLib 1.0 and later
  8146. * Mac OS X: in version 10.0 and later
  8147. * Windows: in qtmlClient.lib 3.0 and later
  8148. }
  8149. function MCIdle(mc: MovieController): ComponentResult; external name '_MCIdle';
  8150. {
  8151. * MCKey()
  8152. *
  8153. * Availability:
  8154. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8155. * CarbonLib: in CarbonLib 1.0 and later
  8156. * Mac OS X: in version 10.0 and later
  8157. * Windows: in qtmlClient.lib 3.0 and later
  8158. }
  8159. function MCKey(mc: MovieController; key: SInt8; modifiers: SInt32): ComponentResult; external name '_MCKey';
  8160. {
  8161. * MCClick()
  8162. *
  8163. * Availability:
  8164. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8165. * CarbonLib: in CarbonLib 1.0 and later
  8166. * Mac OS X: in version 10.0 and later
  8167. * Windows: in qtmlClient.lib 3.0 and later
  8168. }
  8169. function MCClick(mc: MovieController; w: WindowRef; where: Point; when: SInt32; modifiers: SInt32): ComponentResult; external name '_MCClick';
  8170. {
  8171. calls for editing
  8172. }
  8173. {
  8174. * MCEnableEditing()
  8175. *
  8176. * Availability:
  8177. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8178. * CarbonLib: in CarbonLib 1.0 and later
  8179. * Mac OS X: in version 10.0 and later
  8180. * Windows: in qtmlClient.lib 3.0 and later
  8181. }
  8182. function MCEnableEditing(mc: MovieController; enabled: boolean): ComponentResult; external name '_MCEnableEditing';
  8183. {
  8184. * MCIsEditingEnabled()
  8185. *
  8186. * Availability:
  8187. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8188. * CarbonLib: in CarbonLib 1.0 and later
  8189. * Mac OS X: in version 10.0 and later
  8190. * Windows: in qtmlClient.lib 3.0 and later
  8191. }
  8192. function MCIsEditingEnabled(mc: MovieController): SInt32; external name '_MCIsEditingEnabled';
  8193. {
  8194. * MCCopy()
  8195. *
  8196. * Availability:
  8197. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8198. * CarbonLib: in CarbonLib 1.0 and later
  8199. * Mac OS X: in version 10.0 and later
  8200. * Windows: in qtmlClient.lib 3.0 and later
  8201. }
  8202. function MCCopy(mc: MovieController): Movie; external name '_MCCopy';
  8203. {
  8204. * MCCut()
  8205. *
  8206. * Availability:
  8207. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8208. * CarbonLib: in CarbonLib 1.0 and later
  8209. * Mac OS X: in version 10.0 and later
  8210. * Windows: in qtmlClient.lib 3.0 and later
  8211. }
  8212. function MCCut(mc: MovieController): Movie; external name '_MCCut';
  8213. {
  8214. * MCPaste()
  8215. *
  8216. * Availability:
  8217. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8218. * CarbonLib: in CarbonLib 1.0 and later
  8219. * Mac OS X: in version 10.0 and later
  8220. * Windows: in qtmlClient.lib 3.0 and later
  8221. }
  8222. function MCPaste(mc: MovieController; srcMovie: Movie): ComponentResult; external name '_MCPaste';
  8223. {
  8224. * MCClear()
  8225. *
  8226. * Availability:
  8227. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8228. * CarbonLib: in CarbonLib 1.0 and later
  8229. * Mac OS X: in version 10.0 and later
  8230. * Windows: in qtmlClient.lib 3.0 and later
  8231. }
  8232. function MCClear(mc: MovieController): ComponentResult; external name '_MCClear';
  8233. {
  8234. * MCUndo()
  8235. *
  8236. * Availability:
  8237. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8238. * CarbonLib: in CarbonLib 1.0 and later
  8239. * Mac OS X: in version 10.0 and later
  8240. * Windows: in qtmlClient.lib 3.0 and later
  8241. }
  8242. function MCUndo(mc: MovieController): ComponentResult; external name '_MCUndo';
  8243. {
  8244. * somewhat special stuff
  8245. }
  8246. {
  8247. * MCPositionController()
  8248. *
  8249. * Availability:
  8250. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8251. * CarbonLib: in CarbonLib 1.0 and later
  8252. * Mac OS X: in version 10.0 and later
  8253. * Windows: in qtmlClient.lib 3.0 and later
  8254. }
  8255. function MCPositionController(mc: MovieController; const (*var*) movieRect: Rect; const (*var*) controllerRect: Rect; someFlags: SInt32): ComponentResult; external name '_MCPositionController';
  8256. {
  8257. * MCGetControllerInfo()
  8258. *
  8259. * Availability:
  8260. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8261. * CarbonLib: in CarbonLib 1.0 and later
  8262. * Mac OS X: in version 10.0 and later
  8263. * Windows: in qtmlClient.lib 3.0 and later
  8264. }
  8265. function MCGetControllerInfo(mc: MovieController; var someFlags: SInt32): ComponentResult; external name '_MCGetControllerInfo';
  8266. {
  8267. * MCSetClip()
  8268. *
  8269. * Availability:
  8270. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8271. * CarbonLib: in CarbonLib 1.0 and later
  8272. * Mac OS X: in version 10.0 and later
  8273. * Windows: in qtmlClient.lib 3.0 and later
  8274. }
  8275. function MCSetClip(mc: MovieController; theClip: RgnHandle; movieClip: RgnHandle): ComponentResult; external name '_MCSetClip';
  8276. {
  8277. * MCGetClip()
  8278. *
  8279. * Availability:
  8280. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8281. * CarbonLib: in CarbonLib 1.0 and later
  8282. * Mac OS X: in version 10.0 and later
  8283. * Windows: in qtmlClient.lib 3.0 and later
  8284. }
  8285. function MCGetClip(mc: MovieController; var theClip: RgnHandle; var movieClip: RgnHandle): ComponentResult; external name '_MCGetClip';
  8286. {
  8287. * MCDrawBadge()
  8288. *
  8289. * Availability:
  8290. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8291. * CarbonLib: in CarbonLib 1.0 and later
  8292. * Mac OS X: in version 10.0 and later
  8293. * Windows: in qtmlClient.lib 3.0 and later
  8294. }
  8295. function MCDrawBadge(mc: MovieController; movieRgn: RgnHandle; var badgeRgn: RgnHandle): ComponentResult; external name '_MCDrawBadge';
  8296. {
  8297. * MCSetUpEditMenu()
  8298. *
  8299. * Availability:
  8300. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8301. * CarbonLib: in CarbonLib 1.0 and later
  8302. * Mac OS X: in version 10.0 and later
  8303. * Windows: in qtmlClient.lib 3.0 and later
  8304. }
  8305. function MCSetUpEditMenu(mc: MovieController; modifiers: SInt32; mh: MenuRef): ComponentResult; external name '_MCSetUpEditMenu';
  8306. {
  8307. * MCGetMenuString()
  8308. *
  8309. * Availability:
  8310. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8311. * CarbonLib: in CarbonLib 1.0 and later
  8312. * Mac OS X: in version 10.0 and later
  8313. * Windows: in qtmlClient.lib 3.0 and later
  8314. }
  8315. function MCGetMenuString(mc: MovieController; modifiers: SInt32; item: SInt16; var aString: Str255): ComponentResult; external name '_MCGetMenuString';
  8316. {
  8317. * MCSetActionFilterWithRefCon()
  8318. *
  8319. * Availability:
  8320. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8321. * CarbonLib: in CarbonLib 1.0 and later
  8322. * Mac OS X: in version 10.0 and later
  8323. * Windows: in qtmlClient.lib 3.0 and later
  8324. }
  8325. function MCSetActionFilterWithRefCon(mc: MovieController; blob: MCActionFilterWithRefConUPP; refCon: SInt32): ComponentResult; external name '_MCSetActionFilterWithRefCon';
  8326. {
  8327. * MCPtInController()
  8328. *
  8329. * Availability:
  8330. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8331. * CarbonLib: in CarbonLib 1.0 and later
  8332. * Mac OS X: in version 10.0 and later
  8333. * Windows: in qtmlClient.lib 3.0 and later
  8334. }
  8335. function MCPtInController(mc: MovieController; thePt: Point; var inController: boolean): ComponentResult; external name '_MCPtInController';
  8336. {
  8337. * MCInvalidate()
  8338. *
  8339. * Availability:
  8340. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8341. * CarbonLib: in CarbonLib 1.0 and later
  8342. * Mac OS X: in version 10.0 and later
  8343. * Windows: in qtmlClient.lib 3.0 and later
  8344. }
  8345. function MCInvalidate(mc: MovieController; w: WindowRef; invalidRgn: RgnHandle): ComponentResult; external name '_MCInvalidate';
  8346. {
  8347. * MCAdjustCursor()
  8348. *
  8349. * Availability:
  8350. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  8351. * CarbonLib: in CarbonLib 1.0 and later
  8352. * Mac OS X: in version 10.0 and later
  8353. * Windows: in qtmlClient.lib 3.0 and later
  8354. }
  8355. function MCAdjustCursor(mc: MovieController; w: WindowRef; where: Point; modifiers: SInt32): ComponentResult; external name '_MCAdjustCursor';
  8356. {
  8357. * MCGetInterfaceElement()
  8358. *
  8359. * Availability:
  8360. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  8361. * CarbonLib: in CarbonLib 1.0 and later
  8362. * Mac OS X: in version 10.0 and later
  8363. * Windows: in qtmlClient.lib 3.0 and later
  8364. }
  8365. function MCGetInterfaceElement(mc: MovieController; whichElement: MCInterfaceElement; element: UnivPtr): ComponentResult; external name '_MCGetInterfaceElement';
  8366. {
  8367. * MCGetDoActionsProc()
  8368. *
  8369. * Availability:
  8370. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  8371. * CarbonLib: in CarbonLib 1.0.2 and later
  8372. * Mac OS X: in version 10.0 and later
  8373. * Windows: in qtmlClient.lib 4.0 and later
  8374. }
  8375. function MCGetDoActionsProc(mc: MovieController; var doMCActionProc: DoMCActionUPP; var doMCActionRefCon: SInt32): ComponentResult; external name '_MCGetDoActionsProc';
  8376. {
  8377. * MCAddMovieSegment()
  8378. *
  8379. * Availability:
  8380. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  8381. * CarbonLib: in CarbonLib 1.3 and later
  8382. * Mac OS X: in version 10.0 and later
  8383. * Windows: in qtmlClient.lib 5.0 and later
  8384. }
  8385. function MCAddMovieSegment(mc: MovieController; srcMovie: Movie; scaled: boolean): ComponentResult; external name '_MCAddMovieSegment';
  8386. {
  8387. * MCTrimMovieSegment()
  8388. *
  8389. * Availability:
  8390. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  8391. * CarbonLib: in CarbonLib 1.3 and later
  8392. * Mac OS X: in version 10.0 and later
  8393. * Windows: in qtmlClient.lib 5.0 and later
  8394. }
  8395. function MCTrimMovieSegment(mc: MovieController): ComponentResult; external name '_MCTrimMovieSegment';
  8396. {
  8397. * MCSetIdleManager()
  8398. *
  8399. * Availability:
  8400. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  8401. * CarbonLib: in CarbonLib 1.6 and later
  8402. * Mac OS X: in version 10.2 and later
  8403. * Windows: in qtmlClient.lib 6.0 and later
  8404. }
  8405. function MCSetIdleManager(mc: MovieController; im: IdleManager): ComponentResult; external name '_MCSetIdleManager';
  8406. { Called (but not implemented) by controllers that derive from the standard movie controller.
  8407. All controllers except standard movie controller must delegate this call. }
  8408. const
  8409. kControllerUnderstandsIdleManagers = $01;
  8410. {
  8411. * MCSetControllerCapabilities()
  8412. *
  8413. * Availability:
  8414. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  8415. * CarbonLib: in CarbonLib 1.6 and later
  8416. * Mac OS X: in version 10.2 and later
  8417. * Windows: in qtmlClient.lib 6.0 and later
  8418. }
  8419. function MCSetControllerCapabilities(mc: MovieController; flags: SInt32; flagsMask: SInt32): ComponentResult; external name '_MCSetControllerCapabilities';
  8420. {***************************************
  8421. * *
  8422. * T I M E B A S E *
  8423. * *
  8424. ***************************************}
  8425. {
  8426. * NewTimeBase()
  8427. *
  8428. * Availability:
  8429. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8430. * CarbonLib: in CarbonLib 1.0 and later
  8431. * Mac OS X: in version 10.0 and later
  8432. * Windows: in qtmlClient.lib 3.0 and later
  8433. }
  8434. function NewTimeBase: TimeBase; external name '_NewTimeBase';
  8435. {
  8436. * DisposeTimeBase()
  8437. *
  8438. * Availability:
  8439. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8440. * CarbonLib: in CarbonLib 1.0 and later
  8441. * Mac OS X: in version 10.0 and later
  8442. * Windows: in qtmlClient.lib 3.0 and later
  8443. }
  8444. procedure DisposeTimeBase(tb: TimeBase); external name '_DisposeTimeBase';
  8445. {
  8446. * GetTimeBaseTime()
  8447. *
  8448. * Availability:
  8449. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8450. * CarbonLib: in CarbonLib 1.0 and later
  8451. * Mac OS X: in version 10.0 and later
  8452. * Windows: in qtmlClient.lib 3.0 and later
  8453. }
  8454. function GetTimeBaseTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseTime';
  8455. {
  8456. * SetTimeBaseTime()
  8457. *
  8458. * Availability:
  8459. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8460. * CarbonLib: in CarbonLib 1.0 and later
  8461. * Mac OS X: in version 10.0 and later
  8462. * Windows: in qtmlClient.lib 3.0 and later
  8463. }
  8464. procedure SetTimeBaseTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseTime';
  8465. {
  8466. * SetTimeBaseValue()
  8467. *
  8468. * Availability:
  8469. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8470. * CarbonLib: in CarbonLib 1.0 and later
  8471. * Mac OS X: in version 10.0 and later
  8472. * Windows: in qtmlClient.lib 3.0 and later
  8473. }
  8474. procedure SetTimeBaseValue(tb: TimeBase; t: TimeValue; s: TimeScale); external name '_SetTimeBaseValue';
  8475. {
  8476. * GetTimeBaseRate()
  8477. *
  8478. * Availability:
  8479. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8480. * CarbonLib: in CarbonLib 1.0 and later
  8481. * Mac OS X: in version 10.0 and later
  8482. * Windows: in qtmlClient.lib 3.0 and later
  8483. }
  8484. function GetTimeBaseRate(tb: TimeBase): Fixed; external name '_GetTimeBaseRate';
  8485. {
  8486. * SetTimeBaseRate()
  8487. *
  8488. * Availability:
  8489. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8490. * CarbonLib: in CarbonLib 1.0 and later
  8491. * Mac OS X: in version 10.0 and later
  8492. * Windows: in qtmlClient.lib 3.0 and later
  8493. }
  8494. procedure SetTimeBaseRate(tb: TimeBase; r: Fixed); external name '_SetTimeBaseRate';
  8495. {
  8496. * GetTimeBaseStartTime()
  8497. *
  8498. * Availability:
  8499. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8500. * CarbonLib: in CarbonLib 1.0 and later
  8501. * Mac OS X: in version 10.0 and later
  8502. * Windows: in qtmlClient.lib 3.0 and later
  8503. }
  8504. function GetTimeBaseStartTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseStartTime';
  8505. {
  8506. * SetTimeBaseStartTime()
  8507. *
  8508. * Availability:
  8509. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8510. * CarbonLib: in CarbonLib 1.0 and later
  8511. * Mac OS X: in version 10.0 and later
  8512. * Windows: in qtmlClient.lib 3.0 and later
  8513. }
  8514. procedure SetTimeBaseStartTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseStartTime';
  8515. {
  8516. * GetTimeBaseStopTime()
  8517. *
  8518. * Availability:
  8519. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8520. * CarbonLib: in CarbonLib 1.0 and later
  8521. * Mac OS X: in version 10.0 and later
  8522. * Windows: in qtmlClient.lib 3.0 and later
  8523. }
  8524. function GetTimeBaseStopTime(tb: TimeBase; s: TimeScale; var tr: TimeRecord): TimeValue; external name '_GetTimeBaseStopTime';
  8525. {
  8526. * SetTimeBaseStopTime()
  8527. *
  8528. * Availability:
  8529. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8530. * CarbonLib: in CarbonLib 1.0 and later
  8531. * Mac OS X: in version 10.0 and later
  8532. * Windows: in qtmlClient.lib 3.0 and later
  8533. }
  8534. procedure SetTimeBaseStopTime(tb: TimeBase; const (*var*) tr: TimeRecord); external name '_SetTimeBaseStopTime';
  8535. {
  8536. * GetTimeBaseFlags()
  8537. *
  8538. * Availability:
  8539. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8540. * CarbonLib: in CarbonLib 1.0 and later
  8541. * Mac OS X: in version 10.0 and later
  8542. * Windows: in qtmlClient.lib 3.0 and later
  8543. }
  8544. function GetTimeBaseFlags(tb: TimeBase): SInt32; external name '_GetTimeBaseFlags';
  8545. {
  8546. * SetTimeBaseFlags()
  8547. *
  8548. * Availability:
  8549. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8550. * CarbonLib: in CarbonLib 1.0 and later
  8551. * Mac OS X: in version 10.0 and later
  8552. * Windows: in qtmlClient.lib 3.0 and later
  8553. }
  8554. procedure SetTimeBaseFlags(tb: TimeBase; timeBaseFlags: SInt32); external name '_SetTimeBaseFlags';
  8555. {
  8556. * SetTimeBaseMasterTimeBase()
  8557. *
  8558. * Availability:
  8559. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8560. * CarbonLib: in CarbonLib 1.0 and later
  8561. * Mac OS X: in version 10.0 and later
  8562. * Windows: in qtmlClient.lib 3.0 and later
  8563. }
  8564. procedure SetTimeBaseMasterTimeBase(slave: TimeBase; master: TimeBase; const (*var*) slaveZero: TimeRecord); external name '_SetTimeBaseMasterTimeBase';
  8565. {
  8566. * GetTimeBaseMasterTimeBase()
  8567. *
  8568. * Availability:
  8569. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8570. * CarbonLib: in CarbonLib 1.0 and later
  8571. * Mac OS X: in version 10.0 and later
  8572. * Windows: in qtmlClient.lib 3.0 and later
  8573. }
  8574. function GetTimeBaseMasterTimeBase(tb: TimeBase): TimeBase; external name '_GetTimeBaseMasterTimeBase';
  8575. {
  8576. * SetTimeBaseMasterClock()
  8577. *
  8578. * Availability:
  8579. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8580. * CarbonLib: in CarbonLib 1.0 and later
  8581. * Mac OS X: in version 10.0 and later
  8582. * Windows: in qtmlClient.lib 3.0 and later
  8583. }
  8584. procedure SetTimeBaseMasterClock(slave: TimeBase; clockMeister: Component; const (*var*) slaveZero: TimeRecord); external name '_SetTimeBaseMasterClock';
  8585. {
  8586. * GetTimeBaseMasterClock()
  8587. *
  8588. * Availability:
  8589. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8590. * CarbonLib: in CarbonLib 1.0 and later
  8591. * Mac OS X: in version 10.0 and later
  8592. * Windows: in qtmlClient.lib 3.0 and later
  8593. }
  8594. function GetTimeBaseMasterClock(tb: TimeBase): ComponentInstance; external name '_GetTimeBaseMasterClock';
  8595. {
  8596. * ConvertTime()
  8597. *
  8598. * Availability:
  8599. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8600. * CarbonLib: in CarbonLib 1.0 and later
  8601. * Mac OS X: in version 10.0 and later
  8602. * Windows: in qtmlClient.lib 3.0 and later
  8603. }
  8604. procedure ConvertTime(var theTime: TimeRecord; newBase: TimeBase); external name '_ConvertTime';
  8605. {
  8606. * ConvertTimeScale()
  8607. *
  8608. * Availability:
  8609. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8610. * CarbonLib: in CarbonLib 1.0 and later
  8611. * Mac OS X: in version 10.0 and later
  8612. * Windows: in qtmlClient.lib 3.0 and later
  8613. }
  8614. procedure ConvertTimeScale(var theTime: TimeRecord; newScale: TimeScale); external name '_ConvertTimeScale';
  8615. {
  8616. * AddTime()
  8617. *
  8618. * Availability:
  8619. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8620. * CarbonLib: in CarbonLib 1.0 and later
  8621. * Mac OS X: in version 10.0 and later
  8622. * Windows: in qtmlClient.lib 3.0 and later
  8623. }
  8624. procedure AddTime(var dst: TimeRecord; const (*var*) src: TimeRecord); external name '_AddTime';
  8625. {
  8626. * SubtractTime()
  8627. *
  8628. * Availability:
  8629. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8630. * CarbonLib: in CarbonLib 1.0 and later
  8631. * Mac OS X: in version 10.0 and later
  8632. * Windows: in qtmlClient.lib 3.0 and later
  8633. }
  8634. procedure SubtractTime(var dst: TimeRecord; const (*var*) src: TimeRecord); external name '_SubtractTime';
  8635. {
  8636. * GetTimeBaseStatus()
  8637. *
  8638. * Availability:
  8639. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8640. * CarbonLib: in CarbonLib 1.0 and later
  8641. * Mac OS X: in version 10.0 and later
  8642. * Windows: in qtmlClient.lib 3.0 and later
  8643. }
  8644. function GetTimeBaseStatus(tb: TimeBase; var unpinnedTime: TimeRecord): SInt32; external name '_GetTimeBaseStatus';
  8645. {
  8646. * SetTimeBaseZero()
  8647. *
  8648. * Availability:
  8649. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8650. * CarbonLib: in CarbonLib 1.0 and later
  8651. * Mac OS X: in version 10.0 and later
  8652. * Windows: in qtmlClient.lib 3.0 and later
  8653. }
  8654. procedure SetTimeBaseZero(tb: TimeBase; var zero: TimeRecord); external name '_SetTimeBaseZero';
  8655. {
  8656. * GetTimeBaseEffectiveRate()
  8657. *
  8658. * Availability:
  8659. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8660. * CarbonLib: in CarbonLib 1.0 and later
  8661. * Mac OS X: in version 10.0 and later
  8662. * Windows: in qtmlClient.lib 3.0 and later
  8663. }
  8664. function GetTimeBaseEffectiveRate(tb: TimeBase): Fixed; external name '_GetTimeBaseEffectiveRate';
  8665. {***************************************
  8666. * *
  8667. * C A L L B A C K *
  8668. * *
  8669. ***************************************}
  8670. {
  8671. * NewCallBack()
  8672. *
  8673. * Availability:
  8674. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8675. * CarbonLib: in CarbonLib 1.0 and later
  8676. * Mac OS X: in version 10.0 and later
  8677. * Windows: in qtmlClient.lib 3.0 and later
  8678. }
  8679. function NewCallBack(tb: TimeBase; cbType: SInt16): QTCallBack; external name '_NewCallBack';
  8680. {
  8681. * DisposeCallBack()
  8682. *
  8683. * Availability:
  8684. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8685. * CarbonLib: in CarbonLib 1.0 and later
  8686. * Mac OS X: in version 10.0 and later
  8687. * Windows: in qtmlClient.lib 3.0 and later
  8688. }
  8689. procedure DisposeCallBack(cb: QTCallBack); external name '_DisposeCallBack';
  8690. {
  8691. * GetCallBackType()
  8692. *
  8693. * Availability:
  8694. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8695. * CarbonLib: in CarbonLib 1.0 and later
  8696. * Mac OS X: in version 10.0 and later
  8697. * Windows: in qtmlClient.lib 3.0 and later
  8698. }
  8699. function GetCallBackType(cb: QTCallBack): SInt16; external name '_GetCallBackType';
  8700. {
  8701. * GetCallBackTimeBase()
  8702. *
  8703. * Availability:
  8704. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8705. * CarbonLib: in CarbonLib 1.0 and later
  8706. * Mac OS X: in version 10.0 and later
  8707. * Windows: in qtmlClient.lib 3.0 and later
  8708. }
  8709. function GetCallBackTimeBase(cb: QTCallBack): TimeBase; external name '_GetCallBackTimeBase';
  8710. {
  8711. * CallMeWhen()
  8712. *
  8713. * Availability:
  8714. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8715. * CarbonLib: in CarbonLib 1.0 and later
  8716. * Mac OS X: in version 10.0 and later
  8717. * Windows: in qtmlClient.lib 3.0 and later
  8718. }
  8719. function CallMeWhen(cb: QTCallBack; callBackProc: QTCallBackUPP; refCon: SInt32; param1: SInt32; param2: SInt32; param3: SInt32): OSErr; external name '_CallMeWhen';
  8720. {
  8721. * CancelCallBack()
  8722. *
  8723. * Availability:
  8724. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8725. * CarbonLib: in CarbonLib 1.0 and later
  8726. * Mac OS X: in version 10.0 and later
  8727. * Windows: in qtmlClient.lib 3.0 and later
  8728. }
  8729. procedure CancelCallBack(cb: QTCallBack); external name '_CancelCallBack';
  8730. {***************************************
  8731. * *
  8732. * C L O C K C A L L B A C K *
  8733. * S U P P O R T *
  8734. * *
  8735. ***************************************}
  8736. {
  8737. * AddCallBackToTimeBase()
  8738. *
  8739. * Availability:
  8740. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8741. * CarbonLib: in CarbonLib 1.0 and later
  8742. * Mac OS X: in version 10.0 and later
  8743. * Windows: in qtmlClient.lib 3.0 and later
  8744. }
  8745. function AddCallBackToTimeBase(cb: QTCallBack): OSErr; external name '_AddCallBackToTimeBase';
  8746. {
  8747. * RemoveCallBackFromTimeBase()
  8748. *
  8749. * Availability:
  8750. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8751. * CarbonLib: in CarbonLib 1.0 and later
  8752. * Mac OS X: in version 10.0 and later
  8753. * Windows: in qtmlClient.lib 3.0 and later
  8754. }
  8755. function RemoveCallBackFromTimeBase(cb: QTCallBack): OSErr; external name '_RemoveCallBackFromTimeBase';
  8756. {
  8757. * GetFirstCallBack()
  8758. *
  8759. * Availability:
  8760. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8761. * CarbonLib: in CarbonLib 1.0 and later
  8762. * Mac OS X: in version 10.0 and later
  8763. * Windows: in qtmlClient.lib 3.0 and later
  8764. }
  8765. function GetFirstCallBack(tb: TimeBase): QTCallBack; external name '_GetFirstCallBack';
  8766. {
  8767. * GetNextCallBack()
  8768. *
  8769. * Availability:
  8770. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8771. * CarbonLib: in CarbonLib 1.0 and later
  8772. * Mac OS X: in version 10.0 and later
  8773. * Windows: in qtmlClient.lib 3.0 and later
  8774. }
  8775. function GetNextCallBack(cb: QTCallBack): QTCallBack; external name '_GetNextCallBack';
  8776. {
  8777. * ExecuteCallBack()
  8778. *
  8779. * Availability:
  8780. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  8781. * CarbonLib: in CarbonLib 1.0 and later
  8782. * Mac OS X: in version 10.0 and later
  8783. * Windows: in qtmlClient.lib 3.0 and later
  8784. }
  8785. procedure ExecuteCallBack(cb: QTCallBack); external name '_ExecuteCallBack';
  8786. {
  8787. * MusicMediaGetIndexedTunePlayer()
  8788. *
  8789. * Availability:
  8790. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  8791. * CarbonLib: in CarbonLib 1.0 and later
  8792. * Mac OS X: in version 10.0 and later
  8793. * Windows: in qtmlClient.lib 3.0 and later
  8794. }
  8795. function MusicMediaGetIndexedTunePlayer(ti: ComponentInstance; sampleDescIndex: SInt32; var tp: ComponentInstance): ComponentResult; external name '_MusicMediaGetIndexedTunePlayer';
  8796. { UPP call backs }
  8797. const
  8798. uppMCActionFilterProcInfo = $00000FD0;
  8799. uppMCActionFilterWithRefConProcInfo = $00003ED0;
  8800. {
  8801. * NewMCActionFilterUPP()
  8802. *
  8803. * Availability:
  8804. * Non-Carbon CFM: available as macro/inline
  8805. * CarbonLib: in CarbonLib 1.0 and later
  8806. * Mac OS X: in version 10.0 and later
  8807. }
  8808. function NewMCActionFilterUPP(userRoutine: MCActionFilterProcPtr): MCActionFilterUPP; external name '_NewMCActionFilterUPP'; { old name was NewMCActionFilterProc }
  8809. {
  8810. * NewMCActionFilterWithRefConUPP()
  8811. *
  8812. * Availability:
  8813. * Non-Carbon CFM: available as macro/inline
  8814. * CarbonLib: in CarbonLib 1.0 and later
  8815. * Mac OS X: in version 10.0 and later
  8816. }
  8817. function NewMCActionFilterWithRefConUPP(userRoutine: MCActionFilterWithRefConProcPtr): MCActionFilterWithRefConUPP; external name '_NewMCActionFilterWithRefConUPP'; { old name was NewMCActionFilterWithRefConProc }
  8818. {
  8819. * DisposeMCActionFilterUPP()
  8820. *
  8821. * Availability:
  8822. * Non-Carbon CFM: available as macro/inline
  8823. * CarbonLib: in CarbonLib 1.0 and later
  8824. * Mac OS X: in version 10.0 and later
  8825. }
  8826. procedure DisposeMCActionFilterUPP(userUPP: MCActionFilterUPP); external name '_DisposeMCActionFilterUPP';
  8827. {
  8828. * DisposeMCActionFilterWithRefConUPP()
  8829. *
  8830. * Availability:
  8831. * Non-Carbon CFM: available as macro/inline
  8832. * CarbonLib: in CarbonLib 1.0 and later
  8833. * Mac OS X: in version 10.0 and later
  8834. }
  8835. procedure DisposeMCActionFilterWithRefConUPP(userUPP: MCActionFilterWithRefConUPP); external name '_DisposeMCActionFilterWithRefConUPP';
  8836. {
  8837. * InvokeMCActionFilterUPP()
  8838. *
  8839. * Availability:
  8840. * Non-Carbon CFM: available as macro/inline
  8841. * CarbonLib: in CarbonLib 1.0 and later
  8842. * Mac OS X: in version 10.0 and later
  8843. }
  8844. function InvokeMCActionFilterUPP(mc: MovieController; var action: SInt16; params: UnivPtr; userRoutine: MCActionFilterUPP): boolean; external name '_InvokeMCActionFilterUPP'; { old name was CallMCActionFilterProc }
  8845. {
  8846. * InvokeMCActionFilterWithRefConUPP()
  8847. *
  8848. * Availability:
  8849. * Non-Carbon CFM: available as macro/inline
  8850. * CarbonLib: in CarbonLib 1.0 and later
  8851. * Mac OS X: in version 10.0 and later
  8852. }
  8853. function InvokeMCActionFilterWithRefConUPP(mc: MovieController; action: SInt16; params: UnivPtr; refCon: SInt32; userRoutine: MCActionFilterWithRefConUPP): boolean; external name '_InvokeMCActionFilterWithRefConUPP'; { old name was CallMCActionFilterWithRefConProc }
  8854. {$ALIGN MAC68K}
  8855. end.