ImageCompression.pas 423 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205
  1. {
  2. File: QuickTime/ImageCompression.h
  3. Contains: QuickTime Image Compression Interfaces.
  4. Version: QuickTime 7.6.3
  5. Copyright: © 1990-2008 by Apple Inc., all rights reserved
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://www.freepascal.org/bugs.html
  9. }
  10. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  11. {
  12. Modified for use with Free Pascal
  13. Version 308
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  17. {$mode macpas}
  18. {$packenum 1}
  19. {$macro on}
  20. {$inline on}
  21. {$calling mwpascal}
  22. unit ImageCompression;
  23. interface
  24. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  25. {$setc GAP_INTERFACES_VERSION := $0308}
  26. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  27. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  28. {$endc}
  29. {$ifc defined CPUPOWERPC and defined CPUI386}
  30. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  31. {$endc}
  32. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  33. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  34. {$endc}
  35. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  36. {$setc __ppc__ := 1}
  37. {$elsec}
  38. {$setc __ppc__ := 0}
  39. {$endc}
  40. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  41. {$setc __ppc64__ := 1}
  42. {$elsec}
  43. {$setc __ppc64__ := 0}
  44. {$endc}
  45. {$ifc not defined __i386__ and defined CPUI386}
  46. {$setc __i386__ := 1}
  47. {$elsec}
  48. {$setc __i386__ := 0}
  49. {$endc}
  50. {$ifc not defined __x86_64__ and defined CPUX86_64}
  51. {$setc __x86_64__ := 1}
  52. {$elsec}
  53. {$setc __x86_64__ := 0}
  54. {$endc}
  55. {$ifc not defined __arm__ and defined CPUARM}
  56. {$setc __arm__ := 1}
  57. {$elsec}
  58. {$setc __arm__ := 0}
  59. {$endc}
  60. {$ifc defined cpu64}
  61. {$setc __LP64__ := 1}
  62. {$elsec}
  63. {$setc __LP64__ := 0}
  64. {$endc}
  65. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  66. {$error Conflicting definitions for __ppc__ and __i386__}
  67. {$endc}
  68. {$ifc defined __ppc__ and __ppc__}
  69. {$setc TARGET_CPU_PPC := TRUE}
  70. {$setc TARGET_CPU_PPC64 := FALSE}
  71. {$setc TARGET_CPU_X86 := FALSE}
  72. {$setc TARGET_CPU_X86_64 := FALSE}
  73. {$setc TARGET_CPU_ARM := FALSE}
  74. {$setc TARGET_OS_MAC := TRUE}
  75. {$setc TARGET_OS_IPHONE := FALSE}
  76. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  77. {$elifc defined __ppc64__ and __ppc64__}
  78. {$setc TARGET_CPU_PPC := FALSE}
  79. {$setc TARGET_CPU_PPC64 := TRUE}
  80. {$setc TARGET_CPU_X86 := FALSE}
  81. {$setc TARGET_CPU_X86_64 := FALSE}
  82. {$setc TARGET_CPU_ARM := FALSE}
  83. {$setc TARGET_OS_MAC := TRUE}
  84. {$setc TARGET_OS_IPHONE := FALSE}
  85. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  86. {$elifc defined __i386__ and __i386__}
  87. {$setc TARGET_CPU_PPC := FALSE}
  88. {$setc TARGET_CPU_PPC64 := FALSE}
  89. {$setc TARGET_CPU_X86 := TRUE}
  90. {$setc TARGET_CPU_X86_64 := FALSE}
  91. {$setc TARGET_CPU_ARM := FALSE}
  92. {$ifc defined(iphonesim)}
  93. {$setc TARGET_OS_MAC := FALSE}
  94. {$setc TARGET_OS_IPHONE := TRUE}
  95. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  96. {$elsec}
  97. {$setc TARGET_OS_MAC := TRUE}
  98. {$setc TARGET_OS_IPHONE := FALSE}
  99. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  100. {$endc}
  101. {$elifc defined __x86_64__ and __x86_64__}
  102. {$setc TARGET_CPU_PPC := FALSE}
  103. {$setc TARGET_CPU_PPC64 := FALSE}
  104. {$setc TARGET_CPU_X86 := FALSE}
  105. {$setc TARGET_CPU_X86_64 := TRUE}
  106. {$setc TARGET_CPU_ARM := FALSE}
  107. {$setc TARGET_OS_MAC := TRUE}
  108. {$setc TARGET_OS_IPHONE := FALSE}
  109. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  110. {$elifc defined __arm__ and __arm__}
  111. {$setc TARGET_CPU_PPC := FALSE}
  112. {$setc TARGET_CPU_PPC64 := FALSE}
  113. {$setc TARGET_CPU_X86 := FALSE}
  114. {$setc TARGET_CPU_X86_64 := FALSE}
  115. {$setc TARGET_CPU_ARM := TRUE}
  116. { will require compiler define when/if other Apple devices with ARM cpus ship }
  117. {$setc TARGET_OS_MAC := FALSE}
  118. {$setc TARGET_OS_IPHONE := TRUE}
  119. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  120. {$elsec}
  121. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  122. {$endc}
  123. {$ifc defined __LP64__ and __LP64__ }
  124. {$setc TARGET_CPU_64 := TRUE}
  125. {$elsec}
  126. {$setc TARGET_CPU_64 := FALSE}
  127. {$endc}
  128. {$ifc defined FPC_BIG_ENDIAN}
  129. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  130. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  131. {$elifc defined FPC_LITTLE_ENDIAN}
  132. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  133. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  134. {$elsec}
  135. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  136. {$endc}
  137. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  138. {$setc CALL_NOT_IN_CARBON := FALSE}
  139. {$setc OLDROUTINENAMES := FALSE}
  140. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  141. {$setc OPAQUE_UPP_TYPES := TRUE}
  142. {$setc OTCARBONAPPLICATION := TRUE}
  143. {$setc OTKERNEL := FALSE}
  144. {$setc PM_USE_SESSION_APIS := TRUE}
  145. {$setc TARGET_API_MAC_CARBON := TRUE}
  146. {$setc TARGET_API_MAC_OS8 := FALSE}
  147. {$setc TARGET_API_MAC_OSX := TRUE}
  148. {$setc TARGET_CARBON := TRUE}
  149. {$setc TARGET_CPU_68K := FALSE}
  150. {$setc TARGET_CPU_MIPS := FALSE}
  151. {$setc TARGET_CPU_SPARC := FALSE}
  152. {$setc TARGET_OS_UNIX := FALSE}
  153. {$setc TARGET_OS_WIN32 := FALSE}
  154. {$setc TARGET_RT_MAC_68881 := FALSE}
  155. {$setc TARGET_RT_MAC_CFM := FALSE}
  156. {$setc TARGET_RT_MAC_MACHO := TRUE}
  157. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  158. {$setc TYPE_BOOL := FALSE}
  159. {$setc TYPE_EXTENDED := FALSE}
  160. {$setc TYPE_LONGLONG := TRUE}
  161. uses MacTypes,Components,CGLTypes,ColorSyncDeprecated,CVBase,CVImageBuffer,CVPixelBuffer,CVPixelBufferPool,Files,Dialogs,OSUtils,QuickdrawTypes,QDOffscreen,CFBase,CFData,CFDictionary,CGContext,CGImage;
  162. {$endc} {not MACOSALLINCLUDE}
  163. {$ifc TARGET_OS_MAC}
  164. {$ALIGN MAC68K}
  165. type
  166. MatrixRecord = record
  167. matrix: array [0..2,0..2] of Fixed;
  168. end;
  169. MatrixRecordPtr = ^MatrixRecord;
  170. const
  171. kRawCodecType = FourCharCode('raw ');
  172. kCinepakCodecType = FourCharCode('cvid');
  173. kGraphicsCodecType = FourCharCode('smc ');
  174. kAnimationCodecType = FourCharCode('rle ');
  175. kVideoCodecType = FourCharCode('rpza');
  176. kComponentVideoCodecType = FourCharCode('yuv2');
  177. kJPEGCodecType = FourCharCode('jpeg');
  178. kMotionJPEGACodecType = FourCharCode('mjpa');
  179. kMotionJPEGBCodecType = FourCharCode('mjpb');
  180. kSGICodecType = FourCharCode('.SGI');
  181. kPlanarRGBCodecType = FourCharCode('8BPS');
  182. kMacPaintCodecType = FourCharCode('PNTG');
  183. kGIFCodecType = FourCharCode('gif ');
  184. kPhotoCDCodecType = FourCharCode('kpcd');
  185. kQuickDrawGXCodecType = FourCharCode('qdgx');
  186. kAVRJPEGCodecType = FourCharCode('avr ');
  187. kOpenDMLJPEGCodecType = FourCharCode('dmb1');
  188. kBMPCodecType = FourCharCode('WRLE');
  189. kWindowsRawCodecType = FourCharCode('WRAW');
  190. kVectorCodecType = FourCharCode('path');
  191. kQuickDrawCodecType = FourCharCode('qdrw');
  192. kWaterRippleCodecType = FourCharCode('ripl');
  193. kFireCodecType = FourCharCode('fire');
  194. kCloudCodecType = FourCharCode('clou');
  195. kH261CodecType = FourCharCode('h261');
  196. kH263CodecType = FourCharCode('h263');
  197. kDVCNTSCCodecType = FourCharCode('dvc '); { DV - NTSC and DVCPRO NTSC (available in QuickTime 6.0 or later)}
  198. { NOTE: kDVCProNTSCCodecType is deprecated. }
  199. { Use kDVCNTSCCodecType instead -- as far as the codecs are concerned, }
  200. { the two data formats are identical.}
  201. kDVCPALCodecType = FourCharCode('dvcp');
  202. kDVCProPALCodecType = FourCharCode('dvpp'); { available in QuickTime 6.0 or later}
  203. kDVCPro50NTSCCodecType = FourCharCode('dv5n');
  204. kDVCPro50PALCodecType = FourCharCode('dv5p');
  205. kDVCPro100NTSCCodecType = FourCharCode('dv1n');
  206. kDVCPro100PALCodecType = FourCharCode('dv1p');
  207. kDVCPROHD720pCodecType = FourCharCode('dvhp');
  208. kDVCPROHD1080i60CodecType = FourCharCode('dvh6');
  209. kDVCPROHD1080i50CodecType = FourCharCode('dvh5');
  210. kBaseCodecType = FourCharCode('base');
  211. kFLCCodecType = FourCharCode('flic');
  212. kTargaCodecType = FourCharCode('tga ');
  213. kPNGCodecType = FourCharCode('png ');
  214. kTIFFCodecType = FourCharCode('tiff'); { NOTE: despite what might seem obvious from the two constants}
  215. { below and their names, they really are correct. 'yuvu' really }
  216. { does mean signed, and 'yuvs' really does mean unsigned. Really. }
  217. kComponentVideoSigned = FourCharCode('yuvu');
  218. kComponentVideoUnsigned = FourCharCode('yuvs');
  219. kCMYKCodecType = FourCharCode('cmyk');
  220. kMicrosoftVideo1CodecType = FourCharCode('msvc');
  221. kSorensonCodecType = FourCharCode('SVQ1');
  222. kSorenson3CodecType = FourCharCode('SVQ3'); { available in QuickTime 5 and later}
  223. kIndeo4CodecType = FourCharCode('IV41');
  224. kMPEG4VisualCodecType = FourCharCode('mp4v');
  225. k64ARGBCodecType = FourCharCode('b64a');
  226. k48RGBCodecType = FourCharCode('b48r');
  227. k32AlphaGrayCodecType = FourCharCode('b32a');
  228. k16GrayCodecType = FourCharCode('b16g');
  229. kMpegYUV420CodecType = FourCharCode('myuv');
  230. kYUV420CodecType = FourCharCode('y420');
  231. kSorensonYUV9CodecType = FourCharCode('syv9');
  232. k422YpCbCr8CodecType = FourCharCode('2vuy'); { Component Y'CbCr 8-bit 4:2:2 }
  233. k444YpCbCr8CodecType = FourCharCode('v308'); { Component Y'CbCr 8-bit 4:4:4 }
  234. k4444YpCbCrA8CodecType = FourCharCode('v408'); { Component Y'CbCrA 8-bit 4:4:4:4 }
  235. k422YpCbCr16CodecType = FourCharCode('v216'); { Component Y'CbCr 10,12,14,16-bit 4:2:2}
  236. k422YpCbCr10CodecType = FourCharCode('v210'); { Component Y'CbCr 10-bit 4:2:2 }
  237. k444YpCbCr10CodecType = FourCharCode('v410'); { Component Y'CbCr 10-bit 4:4:4 }
  238. k4444YpCbCrA8RCodecType = FourCharCode('r408'); { Component Y'CbCrA 8-bit 4:4:4:4, rendering format. full range alpha, zero biased yuv}
  239. kJPEG2000CodecType = FourCharCode('mjp2');
  240. kPixletCodecType = FourCharCode('pxlt');
  241. kH264CodecType = FourCharCode('avc1');
  242. {$ifc not TARGET_CPU_64}
  243. { one source effects }
  244. const
  245. kBlurImageFilterType = FourCharCode('blur');
  246. kSharpenImageFilterType = FourCharCode('shrp');
  247. kEdgeDetectImageFilterType = FourCharCode('edge');
  248. kEmbossImageFilterType = FourCharCode('embs');
  249. kConvolveImageFilterType = FourCharCode('genk');
  250. kAlphaGainImageFilterType = FourCharCode('gain');
  251. kRGBColorBalanceImageFilterType = FourCharCode('rgbb');
  252. kHSLColorBalanceImageFilterType = FourCharCode('hslb');
  253. kColorSyncImageFilterType = FourCharCode('sync');
  254. kFilmNoiseImageFilterType = FourCharCode('fmns');
  255. kSolarizeImageFilterType = FourCharCode('solr');
  256. kColorTintImageFilterType = FourCharCode('tint');
  257. kLensFlareImageFilterType = FourCharCode('lens');
  258. kBrightnessContrastImageFilterType = FourCharCode('brco');
  259. { two source effects }
  260. const
  261. kAlphaCompositorTransitionType = FourCharCode('blnd');
  262. kCrossFadeTransitionType = FourCharCode('dslv');
  263. kChannelCompositeEffectType = FourCharCode('chan');
  264. kChromaKeyTransitionType = FourCharCode('ckey');
  265. kImplodeTransitionType = FourCharCode('mplo');
  266. kExplodeTransitionType = FourCharCode('xplo');
  267. kGradientTransitionType = FourCharCode('matt');
  268. kPushTransitionType = FourCharCode('push');
  269. kSlideTransitionType = FourCharCode('slid');
  270. kWipeTransitionType = FourCharCode('smpt');
  271. kIrisTransitionType = FourCharCode('smp2');
  272. kRadialTransitionType = FourCharCode('smp3');
  273. kMatrixTransitionType = FourCharCode('smp4');
  274. kZoomTransitionType = FourCharCode('zoom');
  275. { three source effects }
  276. const
  277. kTravellingMatteEffectType = FourCharCode('trav');
  278. { Supported by QTNewGWorld in QuickTime 4.0 and later }
  279. const
  280. kCMYKPixelFormat = FourCharCode('cmyk'); { CMYK, 8-bit }
  281. k64ARGBPixelFormat = FourCharCode('b64a'); { ARGB, 16-bit big-endian samples }
  282. k48RGBPixelFormat = FourCharCode('b48r'); { RGB, 16-bit big-endian samples }
  283. k32AlphaGrayPixelFormat = FourCharCode('b32a'); { AlphaGray, 16-bit big-endian samples }
  284. k16GrayPixelFormat = FourCharCode('b16g'); { Grayscale, 16-bit big-endian samples }
  285. k422YpCbCr8PixelFormat = FourCharCode('2vuy'); { Component Y'CbCr 8-bit 4:2:2, ordered Cb Y'0 Cr Y'1 }
  286. { Supported by QTNewGWorld in QuickTime 4.1.2 and later }
  287. const
  288. k4444YpCbCrA8PixelFormat = FourCharCode('v408'); { Component Y'CbCrA 8-bit 4:4:4:4, ordered Cb Y' Cr A }
  289. k4444YpCbCrA8RPixelFormat = FourCharCode('r408'); { Component Y'CbCrA 8-bit 4:4:4:4, rendering format. full range alpha, zero biased yuv, ordered A Y' Cb Cr }
  290. { Supported by QTNewGWorld in QuickTime 6.0 and later }
  291. const
  292. kYUV420PixelFormat = FourCharCode('y420'); { Planar Component Y'CbCr 8-bit 4:2:0. PixMap baseAddr points to a big-endian PlanarPixmapInfoYUV420 struct; see ImageCodec.i. }
  293. { These are the bits that are set in the Component flags, and also in the codecInfo struct. }
  294. const
  295. codecInfoDoes1 = 1 shl 0; { codec can work with 1-bit pixels }
  296. codecInfoDoes2 = 1 shl 1; { codec can work with 2-bit pixels }
  297. codecInfoDoes4 = 1 shl 2; { codec can work with 4-bit pixels }
  298. codecInfoDoes8 = 1 shl 3; { codec can work with 8-bit pixels }
  299. codecInfoDoes16 = 1 shl 4; { codec can work with 16-bit pixels }
  300. codecInfoDoes32 = 1 shl 5; { codec can work with 32-bit pixels }
  301. codecInfoDoesDither = 1 shl 6; { codec can do ditherMode }
  302. codecInfoDoesStretch = 1 shl 7; { codec can stretch to arbitrary sizes }
  303. codecInfoDoesShrink = 1 shl 8; { codec can shrink to arbitrary sizes }
  304. codecInfoDoesMask = 1 shl 9; { codec can mask to clipping regions }
  305. codecInfoDoesTemporal = 1 shl 10; { codec can handle temporal redundancy }
  306. codecInfoDoesDouble = 1 shl 11; { codec can stretch to double size exactly }
  307. codecInfoDoesQuad = 1 shl 12; { codec can stretch to quadruple size exactly }
  308. codecInfoDoesHalf = 1 shl 13; { codec can shrink to half size }
  309. codecInfoDoesQuarter = 1 shl 14; { codec can shrink to quarter size }
  310. codecInfoDoesRotate = 1 shl 15; { codec can rotate on decompress }
  311. codecInfoDoesHorizFlip = 1 shl 16; { codec can flip horizontally on decompress }
  312. codecInfoDoesVertFlip = 1 shl 17; { codec can flip vertically on decompress }
  313. codecInfoHasEffectParameterList = 1 shl 18; { codec implements get effects parameter list call, once was codecInfoDoesSkew }
  314. codecInfoDoesBlend = 1 shl 19; { codec can blend on decompress }
  315. codecInfoDoesReorder = 1 shl 19; { codec can rearrange frames during compression }
  316. codecInfoDoesWarp = 1 shl 20; { codec can warp arbitrarily on decompress }
  317. codecInfoDoesMultiPass = 1 shl 20; { codec can perform multi-pass compression }
  318. codecInfoDoesRecompress = 1 shl 21; { codec can recompress image without accumulating errors }
  319. codecInfoDoesSpool = 1 shl 22; { codec can spool image data }
  320. codecInfoDoesRateConstrain = 1 shl 23; { codec can data rate constrain }
  321. const
  322. codecInfoDepth1 = 1 shl 0; { compressed data at 1 bpp depth available }
  323. codecInfoDepth2 = 1 shl 1; { compressed data at 2 bpp depth available }
  324. codecInfoDepth4 = 1 shl 2; { compressed data at 4 bpp depth available }
  325. codecInfoDepth8 = 1 shl 3; { compressed data at 8 bpp depth available }
  326. codecInfoDepth16 = 1 shl 4; { compressed data at 16 bpp depth available }
  327. codecInfoDepth32 = 1 shl 5; { compressed data at 32 bpp depth available }
  328. codecInfoDepth24 = 1 shl 6; { compressed data at 24 bpp depth available }
  329. codecInfoDepth33 = 1 shl 7; { compressed data at 1 bpp monochrome depth available }
  330. codecInfoDepth34 = 1 shl 8; { compressed data at 2 bpp grayscale depth available }
  331. codecInfoDepth36 = 1 shl 9; { compressed data at 4 bpp grayscale depth available }
  332. codecInfoDepth40 = 1 shl 10; { compressed data at 8 bpp grayscale depth available }
  333. codecInfoStoresClut = 1 shl 11; { compressed data can have custom cluts }
  334. codecInfoDoesLossless = 1 shl 12; { compressed data can be stored in lossless format }
  335. codecInfoSequenceSensitive = 1 shl 13; { compressed data is sensitive to out of sequence decoding }
  336. { input sequence flags}
  337. const
  338. codecFlagUseImageBuffer = 1 shl 0; { decompress}
  339. codecFlagUseScreenBuffer = 1 shl 1; { decompress}
  340. codecFlagUpdatePrevious = 1 shl 2; { compress}
  341. codecFlagNoScreenUpdate = 1 shl 3; { decompress}
  342. codecFlagWasCompressed = 1 shl 4; { compress}
  343. codecFlagDontOffscreen = 1 shl 5; { decompress}
  344. codecFlagUpdatePreviousComp = 1 shl 6; { compress}
  345. codecFlagForceKeyFrame = 1 shl 7; { compress}
  346. codecFlagOnlyScreenUpdate = 1 shl 8; { decompress}
  347. codecFlagLiveGrab = 1 shl 9; { compress}
  348. codecFlagDiffFrame = 1 shl 9; { decompress}
  349. codecFlagDontUseNewImageBuffer = 1 shl 10; { decompress}
  350. codecFlagInterlaceUpdate = 1 shl 11; { decompress}
  351. codecFlagCatchUpDiff = 1 shl 12; { decompress}
  352. codecFlagSupportDisable = 1 shl 13; { decompress}
  353. codecFlagReenable = 1 shl 14; { decompress}
  354. { output sequence flags}
  355. const
  356. codecFlagOutUpdateOnNextIdle = 1 shl 9;
  357. codecFlagOutUpdateOnDataSourceChange = 1 shl 10;
  358. codecFlagSequenceSensitive = 1 shl 11;
  359. codecFlagOutUpdateOnTimeChange = 1 shl 12;
  360. codecFlagImageBufferNotSourceImage = 1 shl 13;
  361. codecFlagUsedNewImageBuffer = 1 shl 14;
  362. codecFlagUsedImageBuffer = 1 shl 15;
  363. const
  364. { The minimum data size for spooling in or out data }
  365. codecMinimumDataSize = 32768;
  366. const
  367. compressorComponentType = FourCharCode('imco'); { the type for "Components" which compress images }
  368. decompressorComponentType = FourCharCode('imdc'); { the type for "Components" which decompress images }
  369. type
  370. CompressorComponent = Component;
  371. DecompressorComponent = Component;
  372. CodecComponent = Component;
  373. const
  374. anyCodec = 0; { take first working codec of given type }
  375. bestSpeedCodec = -1; { take fastest codec of given type }
  376. bestFidelityCodec = -2; { take codec which is most accurate }
  377. bestCompressionCodec = -3; { take codec of given type that is most accurate }
  378. {$endc} {not TARGET_CPU_64}
  379. type
  380. CodecType = OSType;
  381. CodecType_fix = CodecType; { used as field type when a record declaration contains a CodecType field identifier }
  382. CodecFlags = UInt16;
  383. CodecQ = UInt32;
  384. {$ifc not TARGET_CPU_64}
  385. const
  386. codecLosslessQuality = $00000400;
  387. codecMaxQuality = $000003FF;
  388. codecMinQuality = $00000000;
  389. codecLowQuality = $00000100;
  390. codecNormalQuality = $00000200;
  391. codecHighQuality = $00000300;
  392. const
  393. codecLockBitsShieldCursor = 1 shl 0; { shield cursor }
  394. const
  395. codecCompletionSource = 1 shl 0; { asynchronous codec is done with source data }
  396. codecCompletionDest = 1 shl 1; { asynchronous codec is done with destination data }
  397. codecCompletionDontUnshield = 1 shl 2; { on dest complete don't unshield cursor }
  398. codecCompletionWentOffscreen = 1 shl 3; { codec used offscreen buffer }
  399. codecCompletionUnlockBits = 1 shl 4; { on dest complete, call ICMSequenceUnlockBits }
  400. codecCompletionForceChainFlush = 1 shl 5; { ICM needs to flush the whole chain }
  401. codecCompletionDropped = 1 shl 6; { codec decided to drop this frame }
  402. codecCompletionDecoded = 1 shl 10; { codec has decoded this frame; if it is cancelled and rescheduled, set icmFrameAlreadyDecoded in ICMFrameTimeRecord.flags }
  403. codecCompletionNotDisplayable = 1 shl 11; { the frame may still be scheduled for decode, but will not be able to be displayed because the buffer containing it will need to be recycled to display earlier frames. }
  404. codecCompletionNotDrawn = 1 shl 12; { set in conjunction with codecCompletionDest to indicate that the frame was not drawn }
  405. const
  406. codecProgressOpen = 0;
  407. codecProgressUpdatePercent = 1;
  408. codecProgressClose = 2;
  409. type
  410. ICMDataProcPtr = function( var dataP: Ptr; bytesNeeded: SIGNEDLONG; refcon: SIGNEDLONG ): OSErr;
  411. ICMFlushProcPtr = function( data: Ptr; bytesAdded: SIGNEDLONG; refcon: SIGNEDLONG ): OSErr;
  412. ICMCompletionProcPtr = procedure( result: OSErr; flags: SInt16; refcon: SIGNEDLONG );
  413. ICMProgressProcPtr = function( message: SInt16; completeness: Fixed; refcon: SIGNEDLONG ): OSErr;
  414. StdPixProcPtr = procedure( var src: PixMap; var srcRect: Rect; var matrix: MatrixRecord; mode: SInt16; mask: RgnHandle; var matte: PixMap; var matteRect: Rect; flags: SInt16 );
  415. QDPixProcPtr = procedure( var src: PixMap; var srcRect: Rect; var matrix: MatrixRecord; mode: SInt16; mask: RgnHandle; var matte: PixMap; var matteRect: Rect; flags: SInt16 );
  416. ICMAlignmentProcPtr = procedure( var rp: Rect; refcon: SIGNEDLONG );
  417. ICMCursorShieldedProcPtr = procedure( const (*var*) r: Rect; refcon: UnivPtr; flags: SIGNEDLONG );
  418. ICMMemoryDisposedProcPtr = procedure( memoryBlock: Ptr; refcon: UnivPtr );
  419. ICMCursorNotify = UnivPtr;
  420. ICMConvertDataFormatProcPtr = function( refCon: UnivPtr; flags: SIGNEDLONG; desiredFormat: Handle; sourceDataFormat: Handle; srcData: UnivPtr; srcDataSize: SIGNEDLONG; var dstData: UnivPtr; var dstDataSize: SIGNEDLONG ): OSErr;
  421. ICMDataUPP = ICMDataProcPtr;
  422. ICMFlushUPP = ICMFlushProcPtr;
  423. ICMCompletionUPP = ICMCompletionProcPtr;
  424. ICMProgressUPP = ICMProgressProcPtr;
  425. StdPixUPP = StdPixProcPtr;
  426. QDPixUPP = QDPixProcPtr;
  427. ICMAlignmentUPP = ICMAlignmentProcPtr;
  428. ICMCursorShieldedUPP = ICMCursorShieldedProcPtr;
  429. ICMMemoryDisposedUPP = ICMMemoryDisposedProcPtr;
  430. ICMConvertDataFormatUPP = ICMConvertDataFormatProcPtr;
  431. ImageSequence = SIGNEDLONG;
  432. ImageSequenceDataSource = SIGNEDLONG;
  433. ImageTranscodeSequence = SIGNEDLONG;
  434. ImageFieldSequence = SIGNEDLONG;
  435. ICMProgressProcRecord = record
  436. progressProc: ICMProgressUPP;
  437. progressRefCon: SIGNEDLONG;
  438. end;
  439. ICMProgressProcRecordPtr = ^ICMProgressProcRecord;
  440. type
  441. ICMCompletionProcRecord = record
  442. completionProc: ICMCompletionUPP;
  443. completionRefCon: SIGNEDLONG;
  444. end;
  445. ICMCompletionProcRecordPtr = ^ICMCompletionProcRecord;
  446. type
  447. ICMDataProcRecord = record
  448. dataProc: ICMDataUPP;
  449. dataRefCon: SIGNEDLONG;
  450. end;
  451. ICMDataProcRecordPtr = ^ICMDataProcRecord;
  452. type
  453. ICMFlushProcRecord = record
  454. flushProc: ICMFlushUPP;
  455. flushRefCon: SIGNEDLONG;
  456. end;
  457. ICMFlushProcRecordPtr = ^ICMFlushProcRecord;
  458. type
  459. ICMAlignmentProcRecord = record
  460. alignmentProc: ICMAlignmentUPP;
  461. alignmentRefCon: SIGNEDLONG;
  462. end;
  463. ICMAlignmentProcRecordPtr = ^ICMAlignmentProcRecord;
  464. type
  465. DataRateParams = record
  466. dataRate: SIGNEDLONG;
  467. dataOverrun: SIGNEDLONG;
  468. frameDuration: SIGNEDLONG;
  469. keyFrameRate: SIGNEDLONG;
  470. minSpatialQuality: CodecQ;
  471. minTemporalQuality: CodecQ;
  472. end;
  473. DataRateParamsPtr = ^DataRateParams;
  474. {$endc} {not TARGET_CPU_64}
  475. type
  476. ImageDescription = packed record
  477. idSize: SInt32; { total size of ImageDescription including extra data ( CLUTs and other per sequence data ) }
  478. cType: CodecType; { what kind of codec compressed this data }
  479. resvd1: SInt32; { reserved for Apple use }
  480. resvd2: SInt16; { reserved for Apple use }
  481. dataRefIndex: SInt16; { set to zero }
  482. version: SInt16; { which version is this data }
  483. revisionLevel: SInt16; { what version of that codec did this }
  484. vendor: SInt32; { whose codec compressed this data }
  485. temporalQuality: CodecQ; { what was the temporal quality factor }
  486. spatialQuality: CodecQ; { what was the spatial quality factor }
  487. width: SInt16; { how many pixels wide is this data }
  488. height: SInt16; { how many pixels high is this data }
  489. hRes: Fixed; { horizontal resolution }
  490. vRes: Fixed; { vertical resolution }
  491. dataSize: SInt32; { if known, the size of data for this image descriptor }
  492. frameCount: SInt16; { number of frames this description applies to }
  493. name: Str31; { name of codec ( in case not installed ) }
  494. depth: SInt16; { what depth is this data (1-32) or ( 33-40 grayscale ) }
  495. clutID: SInt16; { clut id or if 0 clut follows or -1 if no clut }
  496. end;
  497. ImageDescriptionPtr = ^ImageDescription;
  498. type
  499. ImageDescriptionHandle = ^ImageDescriptionPtr;
  500. {$ifc not TARGET_CPU_64}
  501. type
  502. CodecInfoPtr = ^CodecInfo;
  503. CodecInfo = record
  504. typeName: Str31; { name of the codec type i.e.: 'Apple Image Compression' }
  505. version: SInt16; { version of the codec data that this codec knows about }
  506. revisionLevel: SInt16; { revision level of this codec i.e: 0x00010001 (1.0.1) }
  507. vendor: SIGNEDLONG; { Maker of this codec i.e: 'appl' }
  508. decompressFlags: SIGNEDLONG; { codecInfo flags for decompression capabilities }
  509. compressFlags: SIGNEDLONG; { codecInfo flags for compression capabilities }
  510. formatFlags: SIGNEDLONG; { codecInfo flags for compression format details }
  511. compressionAccuracy: UInt8; { measure (1-255) of accuracy of this codec for compress (0 if unknown) }
  512. decompressionAccuracy: UInt8; { measure (1-255) of accuracy of this codec for decompress (0 if unknown) }
  513. compressionSpeed: UInt16; { ( millisecs for compressing 320x240 on base mac II) (0 if unknown) }
  514. decompressionSpeed: UInt16; { ( millisecs for decompressing 320x240 on mac II)(0 if unknown) }
  515. compressionLevel: UInt8; { measure (1-255) of compression level of this codec (0 if unknown) }
  516. resvd: UInt8; { pad }
  517. minimumHeight: SInt16; { minimum height of image (block size) }
  518. minimumWidth: SInt16; { minimum width of image (block size) }
  519. decompressPipelineLatency: SInt16; { in milliseconds ( for asynchronous codecs ) }
  520. compressPipelineLatency: SInt16; { in milliseconds ( for asynchronous codecs ) }
  521. privateData: SIGNEDLONG;
  522. end;
  523. type
  524. CodecNameSpecPtr = ^CodecNameSpec;
  525. CodecNameSpec = record
  526. codec: CodecComponent;
  527. cType: CodecType;
  528. typeName: Str31;
  529. name: Handle;
  530. end;
  531. type
  532. CodecNameSpecList = record
  533. count: SInt16;
  534. list: array [0..0] of CodecNameSpec;
  535. end;
  536. CodecNameSpecListPtr = ^CodecNameSpecList;
  537. const
  538. defaultDither = 0;
  539. forceDither = 1;
  540. suppressDither = 2;
  541. useColorMatching = 4;
  542. const
  543. callStdBits = 1;
  544. callOldBits = 2;
  545. noDefaultOpcodes = 4;
  546. const
  547. graphicsModeStraightAlpha = 256;
  548. graphicsModePreWhiteAlpha = 257;
  549. graphicsModePreBlackAlpha = 258;
  550. graphicsModeComposition = 259;
  551. graphicsModeStraightAlphaBlend = 260;
  552. graphicsModePreMulColorAlpha = 261;
  553. graphicsModePerComponentAlpha = 272;
  554. const
  555. evenField1ToEvenFieldOut = 1 shl 0;
  556. evenField1ToOddFieldOut = 1 shl 1;
  557. oddField1ToEvenFieldOut = 1 shl 2;
  558. oddField1ToOddFieldOut = 1 shl 3;
  559. evenField2ToEvenFieldOut = 1 shl 4;
  560. evenField2ToOddFieldOut = 1 shl 5;
  561. oddField2ToEvenFieldOut = 1 shl 6;
  562. oddField2ToOddFieldOut = 1 shl 7;
  563. { Flags for ICMFrameTimeRecord.flags }
  564. const
  565. icmFrameTimeHasVirtualStartTimeAndDuration = 1 shl 0;
  566. icmFrameAlreadyDecoded = 1 shl 1;
  567. icmFrameTimeIsNonScheduledDisplayTime = 1 shl 2;
  568. icmFrameTimeHasDecodeTime = 1 shl 3;
  569. icmFrameTimeDecodeImmediately = 1 shl 4;
  570. icmFrameTimeDoNotDisplay = 1 shl 5;
  571. type
  572. ICMFrameTimeRecordPtr = ^ICMFrameTimeRecord;
  573. ICMFrameTimeRecord = record
  574. value: wide; { frame display time}
  575. scale: SIGNEDLONG; { timescale of value/duration fields}
  576. base: UnivPtr; { timebase}
  577. duration: SIGNEDLONG; { duration frame is to be displayed (0 if unknown)}
  578. rate: Fixed; { rate of timebase relative to wall-time}
  579. recordSize: SIGNEDLONG; { total number of bytes in ICMFrameTimeRecord}
  580. frameNumber: SIGNEDLONG; { number of frame, zero if not known}
  581. flags: SIGNEDLONG;
  582. virtualStartTime: wide; { conceptual start time}
  583. virtualDuration: SIGNEDLONG; { conceptual duration}
  584. { The following fields only exist for QuickTime 7.0 and greater. }
  585. decodeTime: TimeValue64; { suggested decode time, if icmFrameTimeHasDecodeTime is set in flags}
  586. end;
  587. type
  588. ICMFrameTimePtr = ICMFrameTimeRecordPtr;
  589. { QuickTime flavor of universally unique identifier (uuid)}
  590. type
  591. QTUUIDPtr = ^QTUUID;
  592. QTUUID = record
  593. data1: UInt32;
  594. data2: UInt16;
  595. data3: UInt16;
  596. data4: array[0..7] of UInt8;
  597. end;
  598. type
  599. QTMediaContextID = QTUUID;
  600. QTMediaContextIDPtr = ^QTMediaContextID;
  601. {$endc} {not TARGET_CPU_64}
  602. { See Movies.h for the flags themselves. }
  603. type
  604. MediaSampleFlags = UInt32;
  605. {$ifc not TARGET_CPU_64}
  606. {
  607. * NewICMDataUPP()
  608. *
  609. * Availability:
  610. * Mac OS X: in version 10.0 and later in QuickTime.framework
  611. * CarbonLib: in CarbonLib 1.0 and later
  612. * Non-Carbon CFM: available as macro/inline
  613. }
  614. function NewICMDataUPP( userRoutine: ICMDataProcPtr ): ICMDataUPP; external name '_NewICMDataUPP';
  615. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  616. {
  617. * NewICMFlushUPP()
  618. *
  619. * Availability:
  620. * Mac OS X: in version 10.0 and later in QuickTime.framework
  621. * CarbonLib: in CarbonLib 1.0 and later
  622. * Non-Carbon CFM: available as macro/inline
  623. }
  624. function NewICMFlushUPP( userRoutine: ICMFlushProcPtr ): ICMFlushUPP; external name '_NewICMFlushUPP';
  625. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  626. {
  627. * NewICMCompletionUPP()
  628. *
  629. * Availability:
  630. * Mac OS X: in version 10.0 and later in QuickTime.framework
  631. * CarbonLib: in CarbonLib 1.0 and later
  632. * Non-Carbon CFM: available as macro/inline
  633. }
  634. function NewICMCompletionUPP( userRoutine: ICMCompletionProcPtr ): ICMCompletionUPP; external name '_NewICMCompletionUPP';
  635. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  636. {
  637. * NewICMProgressUPP()
  638. *
  639. * Availability:
  640. * Mac OS X: in version 10.0 and later in QuickTime.framework
  641. * CarbonLib: in CarbonLib 1.0 and later
  642. * Non-Carbon CFM: available as macro/inline
  643. }
  644. function NewICMProgressUPP( userRoutine: ICMProgressProcPtr ): ICMProgressUPP; external name '_NewICMProgressUPP';
  645. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  646. {
  647. * NewStdPixUPP()
  648. *
  649. * Availability:
  650. * Mac OS X: in version 10.0 and later in QuickTime.framework
  651. * CarbonLib: in CarbonLib 1.0 and later
  652. * Non-Carbon CFM: available as macro/inline
  653. }
  654. function NewStdPixUPP( userRoutine: StdPixProcPtr ): StdPixUPP; external name '_NewStdPixUPP';
  655. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  656. {
  657. * NewQDPixUPP()
  658. *
  659. * Availability:
  660. * Mac OS X: in version 10.0 and later in QuickTime.framework
  661. * CarbonLib: in CarbonLib 1.0 and later
  662. * Non-Carbon CFM: available as macro/inline
  663. }
  664. function NewQDPixUPP( userRoutine: QDPixProcPtr ): QDPixUPP; external name '_NewQDPixUPP';
  665. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  666. {
  667. * NewICMAlignmentUPP()
  668. *
  669. * Availability:
  670. * Mac OS X: in version 10.0 and later in QuickTime.framework
  671. * CarbonLib: in CarbonLib 1.0 and later
  672. * Non-Carbon CFM: available as macro/inline
  673. }
  674. function NewICMAlignmentUPP( userRoutine: ICMAlignmentProcPtr ): ICMAlignmentUPP; external name '_NewICMAlignmentUPP';
  675. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  676. {
  677. * NewICMCursorShieldedUPP()
  678. *
  679. * Availability:
  680. * Mac OS X: in version 10.0 and later in QuickTime.framework
  681. * CarbonLib: in CarbonLib 1.0 and later
  682. * Non-Carbon CFM: available as macro/inline
  683. }
  684. function NewICMCursorShieldedUPP( userRoutine: ICMCursorShieldedProcPtr ): ICMCursorShieldedUPP; external name '_NewICMCursorShieldedUPP';
  685. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  686. {
  687. * NewICMMemoryDisposedUPP()
  688. *
  689. * Availability:
  690. * Mac OS X: in version 10.0 and later in QuickTime.framework
  691. * CarbonLib: in CarbonLib 1.0 and later
  692. * Non-Carbon CFM: available as macro/inline
  693. }
  694. function NewICMMemoryDisposedUPP( userRoutine: ICMMemoryDisposedProcPtr ): ICMMemoryDisposedUPP; external name '_NewICMMemoryDisposedUPP';
  695. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  696. {
  697. * NewICMConvertDataFormatUPP()
  698. *
  699. * Availability:
  700. * Mac OS X: in version 10.0 and later in QuickTime.framework
  701. * CarbonLib: in CarbonLib 1.0 and later
  702. * Non-Carbon CFM: available as macro/inline
  703. }
  704. function NewICMConvertDataFormatUPP( userRoutine: ICMConvertDataFormatProcPtr ): ICMConvertDataFormatUPP; external name '_NewICMConvertDataFormatUPP';
  705. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  706. {
  707. * DisposeICMDataUPP()
  708. *
  709. * Availability:
  710. * Mac OS X: in version 10.0 and later in QuickTime.framework
  711. * CarbonLib: in CarbonLib 1.0 and later
  712. * Non-Carbon CFM: available as macro/inline
  713. }
  714. procedure DisposeICMDataUPP( userUPP: ICMDataUPP ); external name '_DisposeICMDataUPP';
  715. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  716. {
  717. * DisposeICMFlushUPP()
  718. *
  719. * Availability:
  720. * Mac OS X: in version 10.0 and later in QuickTime.framework
  721. * CarbonLib: in CarbonLib 1.0 and later
  722. * Non-Carbon CFM: available as macro/inline
  723. }
  724. procedure DisposeICMFlushUPP( userUPP: ICMFlushUPP ); external name '_DisposeICMFlushUPP';
  725. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  726. {
  727. * DisposeICMCompletionUPP()
  728. *
  729. * Availability:
  730. * Mac OS X: in version 10.0 and later in QuickTime.framework
  731. * CarbonLib: in CarbonLib 1.0 and later
  732. * Non-Carbon CFM: available as macro/inline
  733. }
  734. procedure DisposeICMCompletionUPP( userUPP: ICMCompletionUPP ); external name '_DisposeICMCompletionUPP';
  735. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  736. {
  737. * DisposeICMProgressUPP()
  738. *
  739. * Availability:
  740. * Mac OS X: in version 10.0 and later in QuickTime.framework
  741. * CarbonLib: in CarbonLib 1.0 and later
  742. * Non-Carbon CFM: available as macro/inline
  743. }
  744. procedure DisposeICMProgressUPP( userUPP: ICMProgressUPP ); external name '_DisposeICMProgressUPP';
  745. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  746. {
  747. * DisposeStdPixUPP()
  748. *
  749. * Availability:
  750. * Mac OS X: in version 10.0 and later in QuickTime.framework
  751. * CarbonLib: in CarbonLib 1.0 and later
  752. * Non-Carbon CFM: available as macro/inline
  753. }
  754. procedure DisposeStdPixUPP( userUPP: StdPixUPP ); external name '_DisposeStdPixUPP';
  755. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  756. {
  757. * DisposeQDPixUPP()
  758. *
  759. * Availability:
  760. * Mac OS X: in version 10.0 and later in QuickTime.framework
  761. * CarbonLib: in CarbonLib 1.0 and later
  762. * Non-Carbon CFM: available as macro/inline
  763. }
  764. procedure DisposeQDPixUPP( userUPP: QDPixUPP ); external name '_DisposeQDPixUPP';
  765. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  766. {
  767. * DisposeICMAlignmentUPP()
  768. *
  769. * Availability:
  770. * Mac OS X: in version 10.0 and later in QuickTime.framework
  771. * CarbonLib: in CarbonLib 1.0 and later
  772. * Non-Carbon CFM: available as macro/inline
  773. }
  774. procedure DisposeICMAlignmentUPP( userUPP: ICMAlignmentUPP ); external name '_DisposeICMAlignmentUPP';
  775. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  776. {
  777. * DisposeICMCursorShieldedUPP()
  778. *
  779. * Availability:
  780. * Mac OS X: in version 10.0 and later in QuickTime.framework
  781. * CarbonLib: in CarbonLib 1.0 and later
  782. * Non-Carbon CFM: available as macro/inline
  783. }
  784. procedure DisposeICMCursorShieldedUPP( userUPP: ICMCursorShieldedUPP ); external name '_DisposeICMCursorShieldedUPP';
  785. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  786. {
  787. * DisposeICMMemoryDisposedUPP()
  788. *
  789. * Availability:
  790. * Mac OS X: in version 10.0 and later in QuickTime.framework
  791. * CarbonLib: in CarbonLib 1.0 and later
  792. * Non-Carbon CFM: available as macro/inline
  793. }
  794. procedure DisposeICMMemoryDisposedUPP( userUPP: ICMMemoryDisposedUPP ); external name '_DisposeICMMemoryDisposedUPP';
  795. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  796. {
  797. * DisposeICMConvertDataFormatUPP()
  798. *
  799. * Availability:
  800. * Mac OS X: in version 10.0 and later in QuickTime.framework
  801. * CarbonLib: in CarbonLib 1.0 and later
  802. * Non-Carbon CFM: available as macro/inline
  803. }
  804. procedure DisposeICMConvertDataFormatUPP( userUPP: ICMConvertDataFormatUPP ); external name '_DisposeICMConvertDataFormatUPP';
  805. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  806. {
  807. * InvokeICMDataUPP()
  808. *
  809. * Availability:
  810. * Mac OS X: in version 10.0 and later in QuickTime.framework
  811. * CarbonLib: in CarbonLib 1.0 and later
  812. * Non-Carbon CFM: available as macro/inline
  813. }
  814. function InvokeICMDataUPP( var dataP: Ptr; bytesNeeded: SIGNEDLONG; refcon: SIGNEDLONG; userUPP: ICMDataUPP ): OSErr; external name '_InvokeICMDataUPP';
  815. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  816. {
  817. * InvokeICMFlushUPP()
  818. *
  819. * Availability:
  820. * Mac OS X: in version 10.0 and later in QuickTime.framework
  821. * CarbonLib: in CarbonLib 1.0 and later
  822. * Non-Carbon CFM: available as macro/inline
  823. }
  824. function InvokeICMFlushUPP( data: Ptr; bytesAdded: SIGNEDLONG; refcon: SIGNEDLONG; userUPP: ICMFlushUPP ): OSErr; external name '_InvokeICMFlushUPP';
  825. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  826. {
  827. * InvokeICMCompletionUPP()
  828. *
  829. * Availability:
  830. * Mac OS X: in version 10.0 and later in QuickTime.framework
  831. * CarbonLib: in CarbonLib 1.0 and later
  832. * Non-Carbon CFM: available as macro/inline
  833. }
  834. procedure InvokeICMCompletionUPP( result: OSErr; flags: SInt16; refcon: SIGNEDLONG; userUPP: ICMCompletionUPP ); external name '_InvokeICMCompletionUPP';
  835. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  836. {
  837. * InvokeICMProgressUPP()
  838. *
  839. * Availability:
  840. * Mac OS X: in version 10.0 and later in QuickTime.framework
  841. * CarbonLib: in CarbonLib 1.0 and later
  842. * Non-Carbon CFM: available as macro/inline
  843. }
  844. function InvokeICMProgressUPP( message: SInt16; completeness: Fixed; refcon: SIGNEDLONG; userUPP: ICMProgressUPP ): OSErr; external name '_InvokeICMProgressUPP';
  845. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  846. {
  847. * InvokeStdPixUPP()
  848. *
  849. * Availability:
  850. * Mac OS X: in version 10.0 and later in QuickTime.framework
  851. * CarbonLib: in CarbonLib 1.0 and later
  852. * Non-Carbon CFM: available as macro/inline
  853. }
  854. procedure InvokeStdPixUPP( var src: PixMap; var srcRect: Rect; var matrix: MatrixRecord; mode: SInt16; mask: RgnHandle; var matte: PixMap; var matteRect: Rect; flags: SInt16; userUPP: StdPixUPP ); external name '_InvokeStdPixUPP';
  855. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  856. {
  857. * InvokeQDPixUPP()
  858. *
  859. * Availability:
  860. * Mac OS X: in version 10.0 and later in QuickTime.framework
  861. * CarbonLib: in CarbonLib 1.0 and later
  862. * Non-Carbon CFM: available as macro/inline
  863. }
  864. procedure InvokeQDPixUPP( var src: PixMap; var srcRect: Rect; var matrix: MatrixRecord; mode: SInt16; mask: RgnHandle; var matte: PixMap; var matteRect: Rect; flags: SInt16; userUPP: QDPixUPP ); external name '_InvokeQDPixUPP';
  865. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  866. {
  867. * InvokeICMAlignmentUPP()
  868. *
  869. * Availability:
  870. * Mac OS X: in version 10.0 and later in QuickTime.framework
  871. * CarbonLib: in CarbonLib 1.0 and later
  872. * Non-Carbon CFM: available as macro/inline
  873. }
  874. procedure InvokeICMAlignmentUPP( var rp: Rect; refcon: SIGNEDLONG; userUPP: ICMAlignmentUPP ); external name '_InvokeICMAlignmentUPP';
  875. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  876. {
  877. * InvokeICMCursorShieldedUPP()
  878. *
  879. * Availability:
  880. * Mac OS X: in version 10.0 and later in QuickTime.framework
  881. * CarbonLib: in CarbonLib 1.0 and later
  882. * Non-Carbon CFM: available as macro/inline
  883. }
  884. procedure InvokeICMCursorShieldedUPP( const (*var*) r: Rect; refcon: UnivPtr; flags: SIGNEDLONG; userUPP: ICMCursorShieldedUPP ); external name '_InvokeICMCursorShieldedUPP';
  885. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  886. {
  887. * InvokeICMMemoryDisposedUPP()
  888. *
  889. * Availability:
  890. * Mac OS X: in version 10.0 and later in QuickTime.framework
  891. * CarbonLib: in CarbonLib 1.0 and later
  892. * Non-Carbon CFM: available as macro/inline
  893. }
  894. procedure InvokeICMMemoryDisposedUPP( memoryBlock: Ptr; refcon: UnivPtr; userUPP: ICMMemoryDisposedUPP ); external name '_InvokeICMMemoryDisposedUPP';
  895. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  896. {
  897. * InvokeICMConvertDataFormatUPP()
  898. *
  899. * Availability:
  900. * Mac OS X: in version 10.0 and later in QuickTime.framework
  901. * CarbonLib: in CarbonLib 1.0 and later
  902. * Non-Carbon CFM: available as macro/inline
  903. }
  904. function InvokeICMConvertDataFormatUPP( refCon: UnivPtr; flags: SIGNEDLONG; desiredFormat: Handle; sourceDataFormat: Handle; srcData: UnivPtr; srcDataSize: SIGNEDLONG; var dstData: UnivPtr; var dstDataSize: SIGNEDLONG; userUPP: ICMConvertDataFormatUPP ): OSErr; external name '_InvokeICMConvertDataFormatUPP';
  905. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  906. {
  907. * CodecManagerVersion()
  908. *
  909. * Availability:
  910. * Mac OS X: in version 10.0 and later in QuickTime.framework
  911. * CarbonLib: in CarbonLib 1.0 and later
  912. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  913. * Windows: in qtmlClient.lib 3.0 and later
  914. }
  915. function CodecManagerVersion( var version: SIGNEDLONG ): OSErr; external name '_CodecManagerVersion';
  916. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  917. {
  918. * GetCodecNameList()
  919. *
  920. * Availability:
  921. * Mac OS X: in version 10.0 and later in QuickTime.framework
  922. * CarbonLib: in CarbonLib 1.0 and later
  923. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  924. * Windows: in qtmlClient.lib 3.0 and later
  925. }
  926. function GetCodecNameList( var list: CodecNameSpecListPtr; showAll: SInt16 ): OSErr; external name '_GetCodecNameList';
  927. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  928. {
  929. * DisposeCodecNameList()
  930. *
  931. * Availability:
  932. * Mac OS X: in version 10.0 and later in QuickTime.framework
  933. * CarbonLib: in CarbonLib 1.0 and later
  934. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  935. * Windows: in qtmlClient.lib 3.0 and later
  936. }
  937. function DisposeCodecNameList( list: CodecNameSpecListPtr ): OSErr; external name '_DisposeCodecNameList';
  938. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  939. {
  940. * GetCodecInfo()
  941. *
  942. * Availability:
  943. * Mac OS X: in version 10.0 and later in QuickTime.framework
  944. * CarbonLib: in CarbonLib 1.0 and later
  945. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  946. * Windows: in qtmlClient.lib 3.0 and later
  947. }
  948. function GetCodecInfo( var info: CodecInfo; cType: CodecType; codec: CodecComponent ): OSErr; external name '_GetCodecInfo';
  949. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  950. {
  951. * GetMaxCompressionSize()
  952. *
  953. * Availability:
  954. * Mac OS X: in version 10.0 and later in QuickTime.framework
  955. * CarbonLib: in CarbonLib 1.0 and later
  956. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  957. * Windows: in qtmlClient.lib 3.0 and later
  958. }
  959. function GetMaxCompressionSize( src: PixMapHandle; const (*var*) srcRect: Rect; colorDepth: SInt16; quality: CodecQ; cType: CodecType; codec: CompressorComponent; var size: SIGNEDLONG ): OSErr; external name '_GetMaxCompressionSize';
  960. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  961. {
  962. * GetCSequenceMaxCompressionSize()
  963. *
  964. * Availability:
  965. * Mac OS X: in version 10.0 and later in QuickTime.framework
  966. * CarbonLib: in CarbonLib 1.0 and later
  967. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  968. * Windows: in qtmlClient.lib 3.0 and later
  969. }
  970. function GetCSequenceMaxCompressionSize( seqID: ImageSequence; src: PixMapHandle; var size: SIGNEDLONG ): OSErr; external name '_GetCSequenceMaxCompressionSize';
  971. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  972. {
  973. * GetCompressionTime()
  974. *
  975. * Availability:
  976. * Mac OS X: in version 10.0 and later in QuickTime.framework
  977. * CarbonLib: in CarbonLib 1.0 and later
  978. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  979. * Windows: in qtmlClient.lib 3.0 and later
  980. }
  981. function GetCompressionTime( src: PixMapHandle; const (*var*) srcRect: Rect; colorDepth: SInt16; cType: CodecType; codec: CompressorComponent; var spatialQuality: CodecQ; var temporalQuality: CodecQ; var compressTime: UNSIGNEDLONG ): OSErr; external name '_GetCompressionTime';
  982. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  983. {
  984. * CompressImage()
  985. *
  986. * Availability:
  987. * Mac OS X: in version 10.0 and later in QuickTime.framework
  988. * CarbonLib: in CarbonLib 1.0 and later
  989. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  990. * Windows: in qtmlClient.lib 3.0 and later
  991. }
  992. function CompressImage( src: PixMapHandle; const (*var*) srcRect: Rect; quality: CodecQ; cType: CodecType; desc: ImageDescriptionHandle; data: Ptr ): OSErr; external name '_CompressImage';
  993. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  994. {
  995. * FCompressImage()
  996. *
  997. * Availability:
  998. * Mac OS X: in version 10.0 and later in QuickTime.framework
  999. * CarbonLib: in CarbonLib 1.0 and later
  1000. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1001. * Windows: in qtmlClient.lib 3.0 and later
  1002. }
  1003. function FCompressImage( src: PixMapHandle; const (*var*) srcRect: Rect; colorDepth: SInt16; quality: CodecQ; cType: CodecType; codec: CompressorComponent; ctable: CTabHandle; flags: CodecFlags; bufferSize: SIGNEDLONG; flushProc: ICMFlushProcRecordPtr; progressProc: ICMProgressProcRecordPtr; desc: ImageDescriptionHandle; data: Ptr ): OSErr; external name '_FCompressImage';
  1004. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1005. {
  1006. * DecompressImage()
  1007. *
  1008. * Availability:
  1009. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1010. * CarbonLib: in CarbonLib 1.0 and later
  1011. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1012. * Windows: in qtmlClient.lib 3.0 and later
  1013. }
  1014. function DecompressImage( data: Ptr; desc: ImageDescriptionHandle; dst: PixMapHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect; mode: SInt16; mask: RgnHandle ): OSErr; external name '_DecompressImage';
  1015. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1016. {
  1017. * FDecompressImage()
  1018. *
  1019. * Availability:
  1020. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1021. * CarbonLib: in CarbonLib 1.0 and later
  1022. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1023. * Windows: in qtmlClient.lib 3.0 and later
  1024. }
  1025. function FDecompressImage( data: Ptr; desc: ImageDescriptionHandle; dst: PixMapHandle; const (*var*) srcRect: Rect; matrix: MatrixRecordPtr; mode: SInt16; mask: RgnHandle; matte: PixMapHandle; const (*var*) matteRect: Rect; accuracy: CodecQ; codec: DecompressorComponent; bufferSize: SIGNEDLONG; dataProc: ICMDataProcRecordPtr; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_FDecompressImage';
  1026. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1027. { For video compression, consider using ICMCompressionSessionCreate etc. instead of CompressSequenceBegin etc. }
  1028. {
  1029. * CompressSequenceBegin()
  1030. *
  1031. * Availability:
  1032. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1033. * CarbonLib: in CarbonLib 1.0 and later
  1034. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1035. * Windows: in qtmlClient.lib 3.0 and later
  1036. }
  1037. function CompressSequenceBegin( var seqID: ImageSequence; src: PixMapHandle; prev: PixMapHandle; const (*var*) srcRect: Rect; const (*var*) prevRect: Rect; colorDepth: SInt16; cType: CodecType; codec: CompressorComponent; spatialQuality: CodecQ; temporalQuality: CodecQ; keyFrameRate: SIGNEDLONG; ctable: CTabHandle; flags: CodecFlags; desc: ImageDescriptionHandle ): OSErr; external name '_CompressSequenceBegin';
  1038. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1039. {
  1040. * CompressSequenceFrame()
  1041. *
  1042. * Availability:
  1043. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1044. * CarbonLib: in CarbonLib 1.0 and later
  1045. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1046. * Windows: in qtmlClient.lib 3.0 and later
  1047. }
  1048. function CompressSequenceFrame( seqID: ImageSequence; src: PixMapHandle; const (*var*) srcRect: Rect; flags: CodecFlags; data: Ptr; var dataSize: SIGNEDLONG; var similarity: UInt8; asyncCompletionProc: ICMCompletionProcRecordPtr ): OSErr; external name '_CompressSequenceFrame';
  1049. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1050. { For video decompression, consider using ICMDecompressionSessionCreate etc. instead of DecompressSequenceBegin etc. }
  1051. {
  1052. * DecompressSequenceBegin()
  1053. *
  1054. * Availability:
  1055. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1056. * CarbonLib: in CarbonLib 1.0 and later
  1057. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1058. * Windows: in qtmlClient.lib 3.0 and later
  1059. }
  1060. function DecompressSequenceBegin( var seqID: ImageSequence; desc: ImageDescriptionHandle; port: CGrafPtr; gdh: GDHandle; const (*var*) srcRect: Rect; matrix: MatrixRecordPtr; mode: SInt16; mask: RgnHandle; flags: CodecFlags; accuracy: CodecQ; codec: DecompressorComponent ): OSErr; external name '_DecompressSequenceBegin';
  1061. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1062. { For video decompression, consider using ICMDecompressionSessionCreate etc. instead of DecompressSequenceBeginS etc. }
  1063. {
  1064. * DecompressSequenceBeginS()
  1065. *
  1066. * Availability:
  1067. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1068. * CarbonLib: in CarbonLib 1.0 and later
  1069. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1070. * Windows: in qtmlClient.lib 3.0 and later
  1071. }
  1072. function DecompressSequenceBeginS( var seqID: ImageSequence; desc: ImageDescriptionHandle; data: Ptr; dataSize: SIGNEDLONG; port: CGrafPtr; gdh: GDHandle; const (*var*) srcRect: Rect; matrix: MatrixRecordPtr; mode: SInt16; mask: RgnHandle; flags: CodecFlags; accuracy: CodecQ; codec: DecompressorComponent ): OSErr; external name '_DecompressSequenceBeginS';
  1073. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1074. {
  1075. * DecompressSequenceFrame()
  1076. *
  1077. * Availability:
  1078. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1079. * CarbonLib: in CarbonLib 1.0 and later
  1080. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1081. * Windows: in qtmlClient.lib 3.0 and later
  1082. }
  1083. function DecompressSequenceFrame( seqID: ImageSequence; data: Ptr; inFlags: CodecFlags; var outFlags: CodecFlags; asyncCompletionProc: ICMCompletionProcRecordPtr ): OSErr; external name '_DecompressSequenceFrame';
  1084. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1085. {
  1086. * DecompressSequenceFrameS()
  1087. *
  1088. * Availability:
  1089. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1090. * CarbonLib: in CarbonLib 1.0 and later
  1091. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1092. * Windows: in qtmlClient.lib 3.0 and later
  1093. }
  1094. function DecompressSequenceFrameS( seqID: ImageSequence; data: Ptr; dataSize: SIGNEDLONG; inFlags: CodecFlags; var outFlags: CodecFlags; asyncCompletionProc: ICMCompletionProcRecordPtr ): OSErr; external name '_DecompressSequenceFrameS';
  1095. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1096. {
  1097. * DecompressSequenceFrameWhen()
  1098. *
  1099. * Availability:
  1100. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1101. * CarbonLib: in CarbonLib 1.0 and later
  1102. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1103. * Windows: in qtmlClient.lib 3.0 and later
  1104. }
  1105. function DecompressSequenceFrameWhen( seqID: ImageSequence; data: Ptr; dataSize: SIGNEDLONG; inFlags: CodecFlags; var outFlags: CodecFlags; asyncCompletionProc: ICMCompletionProcRecordPtr; const (*var*) frameTime: ICMFrameTimeRecord ): OSErr; external name '_DecompressSequenceFrameWhen';
  1106. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1107. {
  1108. * CDSequenceFlush()
  1109. *
  1110. * Availability:
  1111. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1112. * CarbonLib: in CarbonLib 1.0 and later
  1113. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1114. * Windows: in qtmlClient.lib 3.0 and later
  1115. }
  1116. function CDSequenceFlush( seqID: ImageSequence ): OSErr; external name '_CDSequenceFlush';
  1117. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1118. {
  1119. * SetDSequenceMatrix()
  1120. *
  1121. * Availability:
  1122. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1123. * CarbonLib: in CarbonLib 1.0 and later
  1124. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1125. * Windows: in qtmlClient.lib 3.0 and later
  1126. }
  1127. function SetDSequenceMatrix( seqID: ImageSequence; matrix: MatrixRecordPtr ): OSErr; external name '_SetDSequenceMatrix';
  1128. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1129. {
  1130. * GetDSequenceMatrix()
  1131. *
  1132. * Availability:
  1133. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1134. * CarbonLib: in CarbonLib 1.0.2 and later
  1135. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  1136. * Windows: in qtmlClient.lib 4.0 and later
  1137. }
  1138. function GetDSequenceMatrix( seqID: ImageSequence; matrix: MatrixRecordPtr ): OSErr; external name '_GetDSequenceMatrix';
  1139. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1140. {
  1141. * SetDSequenceMatte()
  1142. *
  1143. * Availability:
  1144. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1145. * CarbonLib: in CarbonLib 1.0 and later
  1146. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1147. * Windows: in qtmlClient.lib 3.0 and later
  1148. }
  1149. function SetDSequenceMatte( seqID: ImageSequence; matte: PixMapHandle; const (*var*) matteRect: Rect ): OSErr; external name '_SetDSequenceMatte';
  1150. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1151. {
  1152. * SetDSequenceMask()
  1153. *
  1154. * Availability:
  1155. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1156. * CarbonLib: in CarbonLib 1.0 and later
  1157. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1158. * Windows: in qtmlClient.lib 3.0 and later
  1159. }
  1160. function SetDSequenceMask( seqID: ImageSequence; mask: RgnHandle ): OSErr; external name '_SetDSequenceMask';
  1161. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1162. {
  1163. * SetDSequenceTransferMode()
  1164. *
  1165. * Availability:
  1166. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1167. * CarbonLib: in CarbonLib 1.0 and later
  1168. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1169. * Windows: in qtmlClient.lib 3.0 and later
  1170. }
  1171. function SetDSequenceTransferMode( seqID: ImageSequence; mode: SInt16; const (*var*) opColor: RGBColor ): OSErr; external name '_SetDSequenceTransferMode';
  1172. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1173. {
  1174. * SetDSequenceDataProc()
  1175. *
  1176. * Availability:
  1177. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1178. * CarbonLib: in CarbonLib 1.0 and later
  1179. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1180. * Windows: in qtmlClient.lib 3.0 and later
  1181. }
  1182. function SetDSequenceDataProc( seqID: ImageSequence; dataProc: ICMDataProcRecordPtr; bufferSize: SIGNEDLONG ): OSErr; external name '_SetDSequenceDataProc';
  1183. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1184. {
  1185. * SetDSequenceAccuracy()
  1186. *
  1187. * Availability:
  1188. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1189. * CarbonLib: in CarbonLib 1.0 and later
  1190. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1191. * Windows: in qtmlClient.lib 3.0 and later
  1192. }
  1193. function SetDSequenceAccuracy( seqID: ImageSequence; accuracy: CodecQ ): OSErr; external name '_SetDSequenceAccuracy';
  1194. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1195. {
  1196. * SetDSequenceSrcRect()
  1197. *
  1198. * Availability:
  1199. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1200. * CarbonLib: in CarbonLib 1.0 and later
  1201. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1202. * Windows: in qtmlClient.lib 3.0 and later
  1203. }
  1204. function SetDSequenceSrcRect( seqID: ImageSequence; const (*var*) srcRect: Rect ): OSErr; external name '_SetDSequenceSrcRect';
  1205. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1206. {
  1207. * SetDSequenceFlags()
  1208. *
  1209. * Availability:
  1210. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1211. * CarbonLib: in CarbonLib 1.0.2 and later
  1212. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  1213. * Windows: in qtmlClient.lib 4.0 and later
  1214. }
  1215. function SetDSequenceFlags( seqID: ImageSequence; flags: SIGNEDLONG; flagsMask: SIGNEDLONG ): OSErr; external name '_SetDSequenceFlags';
  1216. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1217. const
  1218. codecDSequenceDisableOverlaySurface = 1 shl 5;
  1219. codecDSequenceSingleField = 1 shl 6;
  1220. codecDSequenceBidirectionalPrediction = 1 shl 7;
  1221. codecDSequenceFlushInsteadOfDirtying = 1 shl 8;
  1222. codecDSequenceEnableSubPixelPositioning = 1 shl 9;
  1223. codecDSequenceDeinterlaceFields = 1 shl 10;
  1224. type
  1225. CodecComponentPtr = ^CodecComponent;
  1226. CodecComponentHandle = ^CodecComponentPtr;
  1227. { selectors for ICMSequenceGet/SetInfo}
  1228. const
  1229. kICMSequenceTaskWeight = FourCharCode('twei'); { data is pointer to UInt32}
  1230. kICMSequenceTaskName = FourCharCode('tnam'); { data is pointer to OSType}
  1231. kICMSequenceUserPreferredCodecs = FourCharCode('punt'); { data is pointer to CodecComponentHandle}
  1232. {
  1233. * ICMSequenceGetInfo()
  1234. *
  1235. * Availability:
  1236. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1237. * CarbonLib: in CarbonLib 1.3 and later
  1238. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  1239. * Windows: in qtmlClient.lib 5.0 and later
  1240. }
  1241. function ICMSequenceGetInfo( seqID: ImageSequence; which: OSType; data: UnivPtr ): OSErr; external name '_ICMSequenceGetInfo';
  1242. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1243. {
  1244. * ICMSequenceSetInfo()
  1245. *
  1246. * Availability:
  1247. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1248. * CarbonLib: in CarbonLib 1.3 and later
  1249. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  1250. * Windows: in qtmlClient.lib 5.0 and later
  1251. }
  1252. function ICMSequenceSetInfo( seqID: ImageSequence; which: OSType; data: UnivPtr; dataSize: Size ): OSErr; external name '_ICMSequenceSetInfo';
  1253. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1254. {
  1255. * GetDSequenceImageBuffer()
  1256. *
  1257. * Availability:
  1258. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1259. * CarbonLib: in CarbonLib 1.0 and later
  1260. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1261. * Windows: in qtmlClient.lib 3.0 and later
  1262. }
  1263. function GetDSequenceImageBuffer( seqID: ImageSequence; var gworld: GWorldPtr ): OSErr; external name '_GetDSequenceImageBuffer';
  1264. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1265. {
  1266. * GetDSequenceScreenBuffer()
  1267. *
  1268. * Availability:
  1269. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1270. * CarbonLib: in CarbonLib 1.0 and later
  1271. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1272. * Windows: in qtmlClient.lib 3.0 and later
  1273. }
  1274. function GetDSequenceScreenBuffer( seqID: ImageSequence; var gworld: GWorldPtr ): OSErr; external name '_GetDSequenceScreenBuffer';
  1275. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1276. {
  1277. * SetCSequenceQuality()
  1278. *
  1279. * Availability:
  1280. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1281. * CarbonLib: in CarbonLib 1.0 and later
  1282. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1283. * Windows: in qtmlClient.lib 3.0 and later
  1284. }
  1285. function SetCSequenceQuality( seqID: ImageSequence; spatialQuality: CodecQ; temporalQuality: CodecQ ): OSErr; external name '_SetCSequenceQuality';
  1286. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1287. {
  1288. * SetCSequencePrev()
  1289. *
  1290. * Availability:
  1291. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1292. * CarbonLib: in CarbonLib 1.0 and later
  1293. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1294. * Windows: in qtmlClient.lib 3.0 and later
  1295. }
  1296. function SetCSequencePrev( seqID: ImageSequence; prev: PixMapHandle; const (*var*) prevRect: Rect ): OSErr; external name '_SetCSequencePrev';
  1297. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1298. {
  1299. * SetCSequenceFlushProc()
  1300. *
  1301. * Availability:
  1302. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1303. * CarbonLib: in CarbonLib 1.0 and later
  1304. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1305. * Windows: in qtmlClient.lib 3.0 and later
  1306. }
  1307. function SetCSequenceFlushProc( seqID: ImageSequence; flushProc: ICMFlushProcRecordPtr; bufferSize: SIGNEDLONG ): OSErr; external name '_SetCSequenceFlushProc';
  1308. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1309. {
  1310. * SetCSequenceKeyFrameRate()
  1311. *
  1312. * Availability:
  1313. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1314. * CarbonLib: in CarbonLib 1.0 and later
  1315. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1316. * Windows: in qtmlClient.lib 3.0 and later
  1317. }
  1318. function SetCSequenceKeyFrameRate( seqID: ImageSequence; keyFrameRate: SIGNEDLONG ): OSErr; external name '_SetCSequenceKeyFrameRate';
  1319. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1320. {
  1321. * GetCSequenceKeyFrameRate()
  1322. *
  1323. * Availability:
  1324. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1325. * CarbonLib: in CarbonLib 1.0 and later
  1326. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1327. * Windows: in qtmlClient.lib 3.0 and later
  1328. }
  1329. function GetCSequenceKeyFrameRate( seqID: ImageSequence; var keyFrameRate: SIGNEDLONG ): OSErr; external name '_GetCSequenceKeyFrameRate';
  1330. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1331. {
  1332. * GetCSequencePrevBuffer()
  1333. *
  1334. * Availability:
  1335. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1336. * CarbonLib: in CarbonLib 1.0 and later
  1337. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1338. * Windows: in qtmlClient.lib 3.0 and later
  1339. }
  1340. function GetCSequencePrevBuffer( seqID: ImageSequence; var gworld: GWorldPtr ): OSErr; external name '_GetCSequencePrevBuffer';
  1341. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1342. {
  1343. * CDSequenceBusy()
  1344. *
  1345. * Availability:
  1346. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1347. * CarbonLib: in CarbonLib 1.0 and later
  1348. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1349. * Windows: in qtmlClient.lib 3.0 and later
  1350. }
  1351. function CDSequenceBusy( seqID: ImageSequence ): OSErr; external name '_CDSequenceBusy';
  1352. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1353. {
  1354. * CDSequenceEnd()
  1355. *
  1356. * Availability:
  1357. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1358. * CarbonLib: in CarbonLib 1.0 and later
  1359. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1360. * Windows: in qtmlClient.lib 3.0 and later
  1361. }
  1362. function CDSequenceEnd( seqID: ImageSequence ): OSErr; external name '_CDSequenceEnd';
  1363. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1364. {
  1365. * CDSequenceEquivalentImageDescription()
  1366. *
  1367. * Availability:
  1368. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1369. * CarbonLib: in CarbonLib 1.0 and later
  1370. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1371. * Windows: in qtmlClient.lib 3.0 and later
  1372. }
  1373. function CDSequenceEquivalentImageDescription( seqID: ImageSequence; newDesc: ImageDescriptionHandle; var equivalent: Boolean ): OSErr; external name '_CDSequenceEquivalentImageDescription';
  1374. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1375. {
  1376. * CDSequenceEquivalentImageDescriptionS()
  1377. *
  1378. * Availability:
  1379. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1380. * CarbonLib: in CarbonLib 1.3 and later
  1381. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  1382. * Windows: in qtmlClient.lib 5.0 and later
  1383. }
  1384. function CDSequenceEquivalentImageDescriptionS( seqID: ImageSequence; newDesc: ImageDescriptionHandle; var equivalent: Boolean; var canSwitch: Boolean ): OSErr; external name '_CDSequenceEquivalentImageDescriptionS';
  1385. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1386. {
  1387. * ReplaceDSequenceImageDescription()
  1388. *
  1389. * Availability:
  1390. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1391. * CarbonLib: in CarbonLib 1.3 and later
  1392. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  1393. * Windows: in qtmlClient.lib 5.0 and later
  1394. }
  1395. function ReplaceDSequenceImageDescription( seqID: ImageSequence; newDesc: ImageDescriptionHandle ): OSErr; external name '_ReplaceDSequenceImageDescription';
  1396. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1397. {
  1398. * GetCompressedImageSize()
  1399. *
  1400. * Availability:
  1401. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1402. * CarbonLib: in CarbonLib 1.0 and later
  1403. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1404. * Windows: in qtmlClient.lib 3.0 and later
  1405. }
  1406. function GetCompressedImageSize( desc: ImageDescriptionHandle; data: Ptr; bufferSize: SIGNEDLONG; dataProc: ICMDataProcRecordPtr; var dataSize: SIGNEDLONG ): OSErr; external name '_GetCompressedImageSize';
  1407. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1408. {
  1409. * GetSimilarity()
  1410. *
  1411. * Availability:
  1412. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1413. * CarbonLib: in CarbonLib 1.0 and later
  1414. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1415. * Windows: in qtmlClient.lib 3.0 and later
  1416. }
  1417. function GetSimilarity( src: PixMapHandle; const (*var*) srcRect: Rect; desc: ImageDescriptionHandle; data: Ptr; var similarity: Fixed ): OSErr; external name '_GetSimilarity';
  1418. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1419. const
  1420. kImageDescriptionSampleFormat = FourCharCode('idfm'); { image description extension describing sample format}
  1421. kImageDescriptionClassicAtomFormat = FourCharCode('atom'); { sample contains classic atom structure (ie, GX codec and Curve codec)}
  1422. kImageDescriptionQTAtomFormat = FourCharCode('qtat'); { sample contains QT atom structure}
  1423. kImageDescriptionEffectDataFormat = FourCharCode('fxat'); { sample describes an effect (as QTAtoms)}
  1424. kImageDescriptionPrivateDataFormat = FourCharCode('priv'); { sample is in a private codec specific format}
  1425. kImageDescriptionAlternateCodec = FourCharCode('subs'); { image description extension containing the OSType of a substitute codec should the main codec not be available}
  1426. kImageDescriptionColorSpace = FourCharCode('cspc'); { image description extension containing an OSType naming the native pixel format of an image (only used for pixel formats not supported by classic Color QuickDraw)}
  1427. {
  1428. * GetImageDescriptionCTable()
  1429. *
  1430. * Availability:
  1431. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1432. * CarbonLib: in CarbonLib 1.0 and later
  1433. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1434. * Windows: in qtmlClient.lib 3.0 and later
  1435. }
  1436. function GetImageDescriptionCTable( desc: ImageDescriptionHandle; var ctable: CTabHandle ): OSErr; external name '_GetImageDescriptionCTable';
  1437. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1438. {
  1439. * SetImageDescriptionCTable()
  1440. *
  1441. * Availability:
  1442. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1443. * CarbonLib: in CarbonLib 1.0 and later
  1444. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1445. * Windows: in qtmlClient.lib 3.0 and later
  1446. }
  1447. function SetImageDescriptionCTable( desc: ImageDescriptionHandle; ctable: CTabHandle ): OSErr; external name '_SetImageDescriptionCTable';
  1448. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1449. {
  1450. * GetImageDescriptionExtension()
  1451. *
  1452. * Availability:
  1453. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1454. * CarbonLib: in CarbonLib 1.0 and later
  1455. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1456. * Windows: in qtmlClient.lib 3.0 and later
  1457. }
  1458. function GetImageDescriptionExtension( desc: ImageDescriptionHandle; var extension: Handle; idType: SIGNEDLONG; index: SIGNEDLONG ): OSErr; external name '_GetImageDescriptionExtension';
  1459. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1460. {
  1461. * AddImageDescriptionExtension()
  1462. *
  1463. * Availability:
  1464. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1465. * CarbonLib: in CarbonLib 1.0 and later
  1466. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1467. * Windows: in qtmlClient.lib 3.0 and later
  1468. }
  1469. function AddImageDescriptionExtension( desc: ImageDescriptionHandle; extension: Handle; idType: SIGNEDLONG ): OSErr; external name '_AddImageDescriptionExtension';
  1470. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1471. {
  1472. * RemoveImageDescriptionExtension()
  1473. *
  1474. * Availability:
  1475. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1476. * CarbonLib: in CarbonLib 1.0 and later
  1477. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1478. * Windows: in qtmlClient.lib 3.0 and later
  1479. }
  1480. function RemoveImageDescriptionExtension( desc: ImageDescriptionHandle; idType: SIGNEDLONG; index: SIGNEDLONG ): OSErr; external name '_RemoveImageDescriptionExtension';
  1481. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1482. {
  1483. * CountImageDescriptionExtensionType()
  1484. *
  1485. * Availability:
  1486. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1487. * CarbonLib: in CarbonLib 1.0 and later
  1488. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1489. * Windows: in qtmlClient.lib 3.0 and later
  1490. }
  1491. function CountImageDescriptionExtensionType( desc: ImageDescriptionHandle; idType: SIGNEDLONG; var count: SIGNEDLONG ): OSErr; external name '_CountImageDescriptionExtensionType';
  1492. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1493. {
  1494. * GetNextImageDescriptionExtensionType()
  1495. *
  1496. * Availability:
  1497. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1498. * CarbonLib: in CarbonLib 1.0 and later
  1499. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1500. * Windows: in qtmlClient.lib 3.0 and later
  1501. }
  1502. function GetNextImageDescriptionExtensionType( desc: ImageDescriptionHandle; var idType: SIGNEDLONG ): OSErr; external name '_GetNextImageDescriptionExtensionType';
  1503. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1504. {
  1505. * FindCodec()
  1506. *
  1507. * Availability:
  1508. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1509. * CarbonLib: in CarbonLib 1.0 and later
  1510. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1511. * Windows: in qtmlClient.lib 3.0 and later
  1512. }
  1513. function FindCodec( cType: CodecType; specCodec: CodecComponent; var compressor: CompressorComponent; var decompressor: DecompressorComponent ): OSErr; external name '_FindCodec';
  1514. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1515. {
  1516. * CompressPicture()
  1517. *
  1518. * Availability:
  1519. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1520. * CarbonLib: in CarbonLib 1.0 and later
  1521. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1522. * Windows: in qtmlClient.lib 3.0 and later
  1523. }
  1524. function CompressPicture( srcPicture: PicHandle; dstPicture: PicHandle; quality: CodecQ; cType: CodecType ): OSErr; external name '_CompressPicture';
  1525. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1526. {
  1527. * FCompressPicture()
  1528. *
  1529. * Availability:
  1530. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1531. * CarbonLib: in CarbonLib 1.0 and later
  1532. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1533. * Windows: in qtmlClient.lib 3.0 and later
  1534. }
  1535. function FCompressPicture( srcPicture: PicHandle; dstPicture: PicHandle; colorDepth: SInt16; ctable: CTabHandle; quality: CodecQ; doDither: SInt16; compressAgain: SInt16; progressProc: ICMProgressProcRecordPtr; cType: CodecType; codec: CompressorComponent ): OSErr; external name '_FCompressPicture';
  1536. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1537. {
  1538. * CompressPictureFile()
  1539. *
  1540. * Availability:
  1541. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1542. * CarbonLib: in CarbonLib 1.0 and later
  1543. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1544. * Windows: in qtmlClient.lib 3.0 and later
  1545. }
  1546. function CompressPictureFile( srcRefNum: SInt16; dstRefNum: SInt16; quality: CodecQ; cType: CodecType ): OSErr; external name '_CompressPictureFile';
  1547. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1548. {
  1549. * FCompressPictureFile()
  1550. *
  1551. * Availability:
  1552. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1553. * CarbonLib: in CarbonLib 1.0 and later
  1554. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1555. * Windows: in qtmlClient.lib 3.0 and later
  1556. }
  1557. function FCompressPictureFile( srcRefNum: SInt16; dstRefNum: SInt16; colorDepth: SInt16; ctable: CTabHandle; quality: CodecQ; doDither: SInt16; compressAgain: SInt16; progressProc: ICMProgressProcRecordPtr; cType: CodecType; codec: CompressorComponent ): OSErr; external name '_FCompressPictureFile';
  1558. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1559. {
  1560. * GetPictureFileHeader()
  1561. *
  1562. * Availability:
  1563. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1564. * CarbonLib: in CarbonLib 1.0 and later
  1565. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1566. * Windows: in qtmlClient.lib 3.0 and later
  1567. }
  1568. function GetPictureFileHeader( refNum: SInt16; var frame: Rect; var header: OpenCPicParams ): OSErr; external name '_GetPictureFileHeader';
  1569. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1570. {
  1571. * DrawPictureFile()
  1572. *
  1573. * Availability:
  1574. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1575. * CarbonLib: in CarbonLib 1.0 and later
  1576. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1577. * Windows: in qtmlClient.lib 3.0 and later
  1578. }
  1579. function DrawPictureFile( refNum: SInt16; const (*var*) frame: Rect; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_DrawPictureFile';
  1580. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1581. {
  1582. * DrawTrimmedPicture()
  1583. *
  1584. * Availability:
  1585. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1586. * CarbonLib: in CarbonLib 1.0 and later
  1587. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1588. * Windows: in qtmlClient.lib 3.0 and later
  1589. }
  1590. function DrawTrimmedPicture( srcPicture: PicHandle; const (*var*) frame: Rect; trimMask: RgnHandle; doDither: SInt16; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_DrawTrimmedPicture';
  1591. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1592. {
  1593. * DrawTrimmedPictureFile()
  1594. *
  1595. * Availability:
  1596. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1597. * CarbonLib: in CarbonLib 1.0 and later
  1598. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1599. * Windows: in qtmlClient.lib 3.0 and later
  1600. }
  1601. function DrawTrimmedPictureFile( srcRefnum: SInt16; const (*var*) frame: Rect; trimMask: RgnHandle; doDither: SInt16; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_DrawTrimmedPictureFile';
  1602. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1603. {
  1604. * MakeThumbnailFromPicture()
  1605. *
  1606. * Availability:
  1607. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1608. * CarbonLib: in CarbonLib 1.0 and later
  1609. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1610. * Windows: in qtmlClient.lib 3.0 and later
  1611. }
  1612. function MakeThumbnailFromPicture( picture: PicHandle; colorDepth: SInt16; thumbnail: PicHandle; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_MakeThumbnailFromPicture';
  1613. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1614. {
  1615. * MakeThumbnailFromPictureFile()
  1616. *
  1617. * Availability:
  1618. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1619. * CarbonLib: in CarbonLib 1.0 and later
  1620. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1621. * Windows: in qtmlClient.lib 3.0 and later
  1622. }
  1623. function MakeThumbnailFromPictureFile( refNum: SInt16; colorDepth: SInt16; thumbnail: PicHandle; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_MakeThumbnailFromPictureFile';
  1624. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1625. {
  1626. * MakeThumbnailFromPixMap()
  1627. *
  1628. * Availability:
  1629. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1630. * CarbonLib: in CarbonLib 1.0 and later
  1631. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1632. * Windows: in qtmlClient.lib 3.0 and later
  1633. }
  1634. function MakeThumbnailFromPixMap( src: PixMapHandle; const (*var*) srcRect: Rect; colorDepth: SInt16; thumbnail: PicHandle; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_MakeThumbnailFromPixMap';
  1635. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1636. {
  1637. * TrimImage()
  1638. *
  1639. * Availability:
  1640. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1641. * CarbonLib: in CarbonLib 1.0 and later
  1642. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1643. * Windows: in qtmlClient.lib 3.0 and later
  1644. }
  1645. function TrimImage( desc: ImageDescriptionHandle; inData: Ptr; inBufferSize: SIGNEDLONG; dataProc: ICMDataProcRecordPtr; outData: Ptr; outBufferSize: SIGNEDLONG; flushProc: ICMFlushProcRecordPtr; var trimRect: Rect; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_TrimImage';
  1646. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1647. {
  1648. * ConvertImage()
  1649. *
  1650. * Availability:
  1651. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1652. * CarbonLib: in CarbonLib 1.0 and later
  1653. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1654. * Windows: in qtmlClient.lib 3.0 and later
  1655. }
  1656. function ConvertImage( srcDD: ImageDescriptionHandle; srcData: Ptr; colorDepth: SInt16; ctable: CTabHandle; accuracy: CodecQ; quality: CodecQ; cType: CodecType; codec: CodecComponent; dstDD: ImageDescriptionHandle; dstData: Ptr ): OSErr; external name '_ConvertImage';
  1657. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1658. {
  1659. * GetCompressedPixMapInfo()
  1660. *
  1661. * Availability:
  1662. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1663. * CarbonLib: in CarbonLib 1.0 and later
  1664. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1665. * Windows: in qtmlClient.lib 3.0 and later
  1666. }
  1667. function GetCompressedPixMapInfo( pix: PixMapPtr; var desc: ImageDescriptionHandle; var data: Ptr; var bufferSize: SIGNEDLONG; var dataProc: ICMDataProcRecord; var progressProc: ICMProgressProcRecord ): OSErr; external name '_GetCompressedPixMapInfo';
  1668. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1669. {
  1670. * SetCompressedPixMapInfo()
  1671. *
  1672. * Availability:
  1673. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1674. * CarbonLib: in CarbonLib 1.0 and later
  1675. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1676. * Windows: in qtmlClient.lib 3.0 and later
  1677. }
  1678. function SetCompressedPixMapInfo( pix: PixMapPtr; desc: ImageDescriptionHandle; data: Ptr; bufferSize: SIGNEDLONG; dataProc: ICMDataProcRecordPtr; progressProc: ICMProgressProcRecordPtr ): OSErr; external name '_SetCompressedPixMapInfo';
  1679. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1680. {
  1681. * StdPix()
  1682. *
  1683. * Availability:
  1684. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1685. * CarbonLib: in CarbonLib 1.0 and later
  1686. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1687. * Windows: in qtmlClient.lib 3.0 and later
  1688. }
  1689. procedure StdPix( src: PixMapPtr; const (*var*) srcRect: Rect; matrix: MatrixRecordPtr; mode: SInt16; mask: RgnHandle; matte: PixMapPtr; const (*var*) matteRect: Rect; flags: SInt16 ); external name '_StdPix';
  1690. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1691. {
  1692. * TransformRgn()
  1693. *
  1694. * Availability:
  1695. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1696. * CarbonLib: in CarbonLib 1.0 and later
  1697. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1698. * Windows: in qtmlClient.lib 3.0 and later
  1699. }
  1700. function TransformRgn( matrix: MatrixRecordPtr; rgn: RgnHandle ): OSErr; external name '_TransformRgn';
  1701. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1702. {**********
  1703. preview stuff
  1704. **********}
  1705. {
  1706. * SFGetFilePreview()
  1707. *
  1708. * Availability:
  1709. * Mac OS X: not available
  1710. * CarbonLib: not available
  1711. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1712. * Windows: in qtmlClient.lib 3.0 and later
  1713. }
  1714. {
  1715. * SFPGetFilePreview()
  1716. *
  1717. * Availability:
  1718. * Mac OS X: not available
  1719. * CarbonLib: not available
  1720. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1721. * Windows: in qtmlClient.lib 3.0 and later
  1722. }
  1723. {
  1724. * StandardGetFilePreview()
  1725. *
  1726. * Availability:
  1727. * Mac OS X: not available
  1728. * CarbonLib: not available
  1729. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1730. * Windows: in qtmlClient.lib 3.0 and later
  1731. }
  1732. {
  1733. * CustomGetFilePreview()
  1734. *
  1735. * Availability:
  1736. * Mac OS X: not available
  1737. * CarbonLib: not available
  1738. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1739. * Windows: in qtmlClient.lib 3.0 and later
  1740. }
  1741. {
  1742. * MakeFilePreview()
  1743. *
  1744. * Availability:
  1745. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1746. * CarbonLib: in CarbonLib 1.0 and later
  1747. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1748. * Windows: in qtmlClient.lib 3.0 and later
  1749. }
  1750. function MakeFilePreview( resRefNum: SInt16; progress: ICMProgressProcRecordPtr ): OSErr; external name '_MakeFilePreview';
  1751. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1752. {
  1753. * AddFilePreview()
  1754. *
  1755. * Availability:
  1756. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1757. * CarbonLib: in CarbonLib 1.0 and later
  1758. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1759. * Windows: in qtmlClient.lib 3.0 and later
  1760. }
  1761. function AddFilePreview( resRefNum: SInt16; previewType: OSType; previewData: Handle ): OSErr; external name '_AddFilePreview';
  1762. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1763. type
  1764. PreviewResourceRecordPtr = ^PreviewResourceRecord;
  1765. PreviewResourceRecord = record
  1766. modDate: UNSIGNEDLONG;
  1767. version: SInt16;
  1768. resType: OSType;
  1769. resID: SInt16;
  1770. end;
  1771. type
  1772. PreviewResourcePtr = PreviewResourceRecordPtr;
  1773. PreviewResource = ^PreviewResourcePtr;
  1774. {
  1775. * AlignScreenRect()
  1776. *
  1777. * Availability:
  1778. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1779. * CarbonLib: in CarbonLib 1.0 and later
  1780. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1781. * Windows: in qtmlClient.lib 3.0 and later
  1782. }
  1783. procedure AlignScreenRect( var rp: Rect; alignmentProc: ICMAlignmentProcRecordPtr ); external name '_AlignScreenRect';
  1784. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1785. {
  1786. * AlignWindow()
  1787. *
  1788. * Availability:
  1789. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1790. * CarbonLib: in CarbonLib 1.0 and later
  1791. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1792. * Windows: in qtmlClient.lib 3.0 and later
  1793. }
  1794. procedure AlignWindow( wp: WindowRef; front: Boolean; const (*var*) alignmentRect: Rect; alignmentProc: ICMAlignmentProcRecordPtr ); external name '_AlignWindow';
  1795. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1796. {
  1797. * DragAlignedWindow()
  1798. *
  1799. * Availability:
  1800. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1801. * CarbonLib: in CarbonLib 1.0 and later
  1802. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1803. * Windows: in qtmlClient.lib 3.0 and later
  1804. }
  1805. procedure DragAlignedWindow( wp: WindowRef; startPt: Point; var boundsRect: Rect; var alignmentRect: Rect; alignmentProc: ICMAlignmentProcRecordPtr ); external name '_DragAlignedWindow';
  1806. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1807. {
  1808. * DragAlignedGrayRgn()
  1809. *
  1810. * Availability:
  1811. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1812. * CarbonLib: in CarbonLib 1.0 and later
  1813. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1814. * Windows: in qtmlClient.lib 3.0 and later
  1815. }
  1816. function DragAlignedGrayRgn( theRgn: RgnHandle; startPt: Point; var boundsRect: Rect; var slopRect: Rect; axis: SInt16; actionProc: UniversalProcPtr; var alignmentRect: Rect; alignmentProc: ICMAlignmentProcRecordPtr ): SIGNEDLONG; external name '_DragAlignedGrayRgn';
  1817. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1818. {
  1819. * SetCSequenceDataRateParams()
  1820. *
  1821. * Availability:
  1822. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1823. * CarbonLib: in CarbonLib 1.0 and later
  1824. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1825. * Windows: in qtmlClient.lib 3.0 and later
  1826. }
  1827. function SetCSequenceDataRateParams( seqID: ImageSequence; params: DataRateParamsPtr ): OSErr; external name '_SetCSequenceDataRateParams';
  1828. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1829. {
  1830. * SetCSequenceFrameNumber()
  1831. *
  1832. * Availability:
  1833. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1834. * CarbonLib: in CarbonLib 1.0 and later
  1835. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1836. * Windows: in qtmlClient.lib 3.0 and later
  1837. }
  1838. function SetCSequenceFrameNumber( seqID: ImageSequence; frameNumber: SIGNEDLONG ): OSErr; external name '_SetCSequenceFrameNumber';
  1839. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1840. {
  1841. * SetCSequencePreferredPacketSize()
  1842. *
  1843. * Availability:
  1844. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1845. * CarbonLib: in CarbonLib 1.0 and later
  1846. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1847. * Windows: in qtmlClient.lib 3.0 and later
  1848. }
  1849. function SetCSequencePreferredPacketSize( seqID: ImageSequence; preferredPacketSizeInBytes: SIGNEDLONG ): OSErr; external name '_SetCSequencePreferredPacketSize';
  1850. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1851. {
  1852. * NewImageGWorld()
  1853. *
  1854. * Availability:
  1855. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1856. * CarbonLib: in CarbonLib 1.0 and later
  1857. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1858. * Windows: in qtmlClient.lib 3.0 and later
  1859. }
  1860. function NewImageGWorld( var gworld: GWorldPtr; idh: ImageDescriptionHandle; flags: GWorldFlags ): OSErr; external name '_NewImageGWorld';
  1861. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1862. {
  1863. * GetCSequenceDataRateParams()
  1864. *
  1865. * Availability:
  1866. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1867. * CarbonLib: in CarbonLib 1.0 and later
  1868. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1869. * Windows: in qtmlClient.lib 3.0 and later
  1870. }
  1871. function GetCSequenceDataRateParams( seqID: ImageSequence; params: DataRateParamsPtr ): OSErr; external name '_GetCSequenceDataRateParams';
  1872. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1873. {
  1874. * GetCSequenceFrameNumber()
  1875. *
  1876. * Availability:
  1877. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1878. * CarbonLib: in CarbonLib 1.0 and later
  1879. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1880. * Windows: in qtmlClient.lib 3.0 and later
  1881. }
  1882. function GetCSequenceFrameNumber( seqID: ImageSequence; var frameNumber: SIGNEDLONG ): OSErr; external name '_GetCSequenceFrameNumber';
  1883. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1884. {
  1885. * GetBestDeviceRect()
  1886. *
  1887. * Availability:
  1888. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1889. * CarbonLib: in CarbonLib 1.0 and later
  1890. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1891. * Windows: in qtmlClient.lib 3.0 and later
  1892. }
  1893. function GetBestDeviceRect( var gdh: GDHandle; var rp: Rect ): OSErr; external name '_GetBestDeviceRect';
  1894. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1895. {
  1896. * SetSequenceProgressProc()
  1897. *
  1898. * Availability:
  1899. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1900. * CarbonLib: in CarbonLib 1.0 and later
  1901. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1902. * Windows: in qtmlClient.lib 3.0 and later
  1903. }
  1904. function SetSequenceProgressProc( seqID: ImageSequence; var progressProc: ICMProgressProcRecord ): OSErr; external name '_SetSequenceProgressProc';
  1905. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1906. {
  1907. * GDHasScale()
  1908. *
  1909. * Availability:
  1910. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1911. * CarbonLib: in CarbonLib 1.0 and later
  1912. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1913. * Windows: in qtmlClient.lib 3.0 and later
  1914. }
  1915. function GDHasScale( gdh: GDHandle; depth: SInt16; var scale: Fixed ): OSErr; external name '_GDHasScale';
  1916. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1917. {
  1918. * GDGetScale()
  1919. *
  1920. * Availability:
  1921. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1922. * CarbonLib: in CarbonLib 1.0 and later
  1923. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1924. * Windows: in qtmlClient.lib 3.0 and later
  1925. }
  1926. function GDGetScale( gdh: GDHandle; var scale: Fixed; var flags: SInt16 ): OSErr; external name '_GDGetScale';
  1927. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1928. {
  1929. * GDSetScale()
  1930. *
  1931. * Availability:
  1932. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1933. * CarbonLib: in CarbonLib 1.0 and later
  1934. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1935. * Windows: in qtmlClient.lib 3.0 and later
  1936. }
  1937. function GDSetScale( gdh: GDHandle; scale: Fixed; flags: SInt16 ): OSErr; external name '_GDSetScale';
  1938. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1939. {
  1940. * ICMShieldSequenceCursor()
  1941. *
  1942. * Availability:
  1943. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1944. * CarbonLib: in CarbonLib 1.0 and later
  1945. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1946. * Windows: in qtmlClient.lib 3.0 and later
  1947. }
  1948. function ICMShieldSequenceCursor( seqID: ImageSequence ): OSErr; external name '_ICMShieldSequenceCursor';
  1949. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1950. {
  1951. * ICMDecompressComplete()
  1952. *
  1953. * Availability:
  1954. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1955. * CarbonLib: in CarbonLib 1.0 and later
  1956. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  1957. * Windows: in qtmlClient.lib 3.0 and later
  1958. }
  1959. procedure ICMDecompressComplete( seqID: ImageSequence; err: OSErr; flag: SInt16; completionRtn: ICMCompletionProcRecordPtr ); external name '_ICMDecompressComplete';
  1960. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1961. {
  1962. * ICMDecompressCompleteS()
  1963. *
  1964. * Availability:
  1965. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1966. * CarbonLib: in CarbonLib 1.1 and later
  1967. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  1968. * Windows: in qtmlClient.lib 3.0 and later
  1969. }
  1970. function ICMDecompressCompleteS( seqID: ImageSequence; err: OSErr; flag: SInt16; completionRtn: ICMCompletionProcRecordPtr ): OSErr; external name '_ICMDecompressCompleteS';
  1971. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1972. {
  1973. * ICMSequenceLockBits()
  1974. *
  1975. * Availability:
  1976. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1977. * CarbonLib: in CarbonLib 1.0 and later
  1978. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  1979. * Windows: in qtmlClient.lib 3.0 and later
  1980. }
  1981. function ICMSequenceLockBits( seqID: ImageSequence; dst: PixMapPtr; flags: SIGNEDLONG ): OSErr; external name '_ICMSequenceLockBits';
  1982. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1983. {
  1984. * ICMSequenceUnlockBits()
  1985. *
  1986. * Availability:
  1987. * Mac OS X: in version 10.0 and later in QuickTime.framework
  1988. * CarbonLib: in CarbonLib 1.0 and later
  1989. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  1990. * Windows: in qtmlClient.lib 3.0 and later
  1991. }
  1992. function ICMSequenceUnlockBits( seqID: ImageSequence; flags: SIGNEDLONG ): OSErr; external name '_ICMSequenceUnlockBits';
  1993. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  1994. const
  1995. kICMPixelFormatIsPlanarMask = $0F; { these bits in formatFlags indicate how many planes there are; they're 0 if chunky}
  1996. kICMPixelFormatIsIndexed = 1 shl 4;
  1997. kICMPixelFormatIsSupportedByQD = 1 shl 5;
  1998. kICMPixelFormatIsMonochrome = 1 shl 6;
  1999. kICMPixelFormatHasAlphaChannel = 1 shl 7;
  2000. type
  2001. ICMPixelFormatInfo = record
  2002. size: SIGNEDLONG; { caller MUST fill this in with sizeof(ICMPixelFormatInfo) before calling ICMGet/SetPixelFormatInfo}
  2003. formatFlags: UNSIGNEDLONG;
  2004. bitsPerPixel: array [0..13] of SInt16; { list each plane's bits per pixel separately if planar}
  2005. { new field for QuickTime 4.1}
  2006. defaultGammaLevel: Fixed;
  2007. { new fields for QuickTime 6.0}
  2008. horizontalSubsampling: array [0..13] of SInt16; { per plane; use 1 if plane is not subsampled}
  2009. verticalSubsampling: array [0..13] of SInt16; { per plane; use 1 if plane is not subsampled}
  2010. { new fields for QuickTime 6.5}
  2011. cmpCount: SInt16; { for use in PixMap.cmpCount}
  2012. cmpSize: SInt16; { for use in PixMap.cmpSize}
  2013. end;
  2014. ICMPixelFormatInfoPtr = ^ICMPixelFormatInfo;
  2015. { IMPORTANT: Fill in theInfo->size with sizeof(ICMPixelFormatInfo) before calling ICMGetPixelFormatInfo }
  2016. {
  2017. * ICMGetPixelFormatInfo()
  2018. *
  2019. * Availability:
  2020. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2021. * CarbonLib: in CarbonLib 1.0 and later
  2022. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2023. * Windows: in qtmlClient.lib 3.0 and later
  2024. }
  2025. function ICMGetPixelFormatInfo( PixelFormat: OSType; theInfo: ICMPixelFormatInfoPtr ): OSErr; external name '_ICMGetPixelFormatInfo';
  2026. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2027. { IMPORTANT: Fill in theInfo->size with sizeof(ICMPixelFormatInfo) before calling ICMSetPixelFormatInfo }
  2028. {
  2029. * ICMSetPixelFormatInfo()
  2030. *
  2031. * Availability:
  2032. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2033. * CarbonLib: in CarbonLib 1.1 and later
  2034. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2035. * Windows: in qtmlClient.lib 3.0 and later
  2036. }
  2037. function ICMSetPixelFormatInfo( PixelFormat: OSType; theInfo: ICMPixelFormatInfoPtr ): OSErr; external name '_ICMSetPixelFormatInfo';
  2038. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2039. const
  2040. kICMGetChainUltimateParent = 0;
  2041. kICMGetChainParent = 1;
  2042. kICMGetChainChild = 2;
  2043. kICMGetChainUltimateChild = 3;
  2044. {
  2045. * ICMSequenceGetChainMember()
  2046. *
  2047. * Availability:
  2048. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2049. * CarbonLib: in CarbonLib 1.0 and later
  2050. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2051. * Windows: in qtmlClient.lib 3.0 and later
  2052. }
  2053. function ICMSequenceGetChainMember( seqID: ImageSequence; var retSeqID: ImageSequence; flags: SIGNEDLONG ): OSErr; external name '_ICMSequenceGetChainMember';
  2054. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2055. {
  2056. * SetDSequenceTimeCode()
  2057. *
  2058. * Availability:
  2059. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2060. * CarbonLib: in CarbonLib 1.0 and later
  2061. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2062. * Windows: in qtmlClient.lib 3.0 and later
  2063. }
  2064. function SetDSequenceTimeCode( seqID: ImageSequence; timeCodeFormat: UnivPtr; timeCodeTime: UnivPtr ): OSErr; external name '_SetDSequenceTimeCode';
  2065. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2066. {
  2067. * CDSequenceNewMemory()
  2068. *
  2069. * Availability:
  2070. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2071. * CarbonLib: in CarbonLib 1.0 and later
  2072. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2073. * Windows: in qtmlClient.lib 3.0 and later
  2074. }
  2075. function CDSequenceNewMemory( seqID: ImageSequence; var data: Ptr; dataSize: Size; dataUse: SIGNEDLONG; memoryGoneProc: ICMMemoryDisposedUPP; refCon: UnivPtr ): OSErr; external name '_CDSequenceNewMemory';
  2076. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2077. {
  2078. * CDSequenceDisposeMemory()
  2079. *
  2080. * Availability:
  2081. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2082. * CarbonLib: in CarbonLib 1.0 and later
  2083. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2084. * Windows: in qtmlClient.lib 3.0 and later
  2085. }
  2086. function CDSequenceDisposeMemory( seqID: ImageSequence; data: Ptr ): OSErr; external name '_CDSequenceDisposeMemory';
  2087. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2088. {
  2089. * CDSequenceNewDataSource()
  2090. *
  2091. * Availability:
  2092. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2093. * CarbonLib: in CarbonLib 1.0 and later
  2094. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2095. * Windows: in qtmlClient.lib 3.0 and later
  2096. }
  2097. function CDSequenceNewDataSource( seqID: ImageSequence; var sourceID: ImageSequenceDataSource; sourceType: OSType; sourceInputNumber: SIGNEDLONG; dataDescription: Handle; transferProc: ICMConvertDataFormatUPP; refCon: UnivPtr ): OSErr; external name '_CDSequenceNewDataSource';
  2098. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2099. {
  2100. * CDSequenceDisposeDataSource()
  2101. *
  2102. * Availability:
  2103. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2104. * CarbonLib: in CarbonLib 1.0 and later
  2105. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2106. * Windows: in qtmlClient.lib 3.0 and later
  2107. }
  2108. function CDSequenceDisposeDataSource( sourceID: ImageSequenceDataSource ): OSErr; external name '_CDSequenceDisposeDataSource';
  2109. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2110. {
  2111. * CDSequenceSetSourceData()
  2112. *
  2113. * Availability:
  2114. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2115. * CarbonLib: in CarbonLib 1.0 and later
  2116. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2117. * Windows: in qtmlClient.lib 3.0 and later
  2118. }
  2119. function CDSequenceSetSourceData( sourceID: ImageSequenceDataSource; data: UnivPtr; dataSize: SIGNEDLONG ): OSErr; external name '_CDSequenceSetSourceData';
  2120. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2121. {
  2122. * CDSequenceChangedSourceData()
  2123. *
  2124. * Availability:
  2125. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2126. * CarbonLib: in CarbonLib 1.0 and later
  2127. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2128. * Windows: in qtmlClient.lib 3.0 and later
  2129. }
  2130. function CDSequenceChangedSourceData( sourceID: ImageSequenceDataSource ): OSErr; external name '_CDSequenceChangedSourceData';
  2131. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2132. {
  2133. * CDSequenceSetSourceDataQueue()
  2134. *
  2135. * Availability:
  2136. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2137. * CarbonLib: in CarbonLib 1.1 and later
  2138. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2139. * Windows: in qtmlClient.lib 3.0 and later
  2140. }
  2141. function CDSequenceSetSourceDataQueue( sourceID: ImageSequenceDataSource; dataQueue: QHdrPtr ): OSErr; external name '_CDSequenceSetSourceDataQueue';
  2142. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2143. {
  2144. * CDSequenceGetDataSource()
  2145. *
  2146. * Availability:
  2147. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2148. * CarbonLib: in CarbonLib 1.0 and later
  2149. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2150. * Windows: in qtmlClient.lib 3.0 and later
  2151. }
  2152. function CDSequenceGetDataSource( seqID: ImageSequence; var sourceID: ImageSequenceDataSource; sourceType: OSType; sourceInputNumber: SIGNEDLONG ): OSErr; external name '_CDSequenceGetDataSource';
  2153. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2154. {
  2155. * PtInDSequenceData()
  2156. *
  2157. * Availability:
  2158. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2159. * CarbonLib: in CarbonLib 1.0 and later
  2160. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2161. * Windows: in qtmlClient.lib 3.0 and later
  2162. }
  2163. function PtInDSequenceData( seqID: ImageSequence; data: UnivPtr; dataSize: Size; where: Point; var hit: Boolean ): OSErr; external name '_PtInDSequenceData';
  2164. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2165. {
  2166. * HitTestDSequenceData()
  2167. *
  2168. * Availability:
  2169. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2170. * CarbonLib: in CarbonLib 1.0 and later
  2171. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2172. * Windows: in qtmlClient.lib 3.0 and later
  2173. }
  2174. function HitTestDSequenceData( seqID: ImageSequence; data: UnivPtr; dataSize: Size; where: Point; var hit: SIGNEDLONG; hitFlags: SIGNEDLONG ): OSErr; external name '_HitTestDSequenceData';
  2175. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2176. {
  2177. * SetDSequenceNonScheduledDisplayTime()
  2178. *
  2179. * Availability:
  2180. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  2181. * CarbonLib: not available
  2182. * Non-Carbon CFM: not available
  2183. * Windows: in qtmlClient.lib version 10.4 (or QuickTime 7.0) and later
  2184. }
  2185. function SetDSequenceNonScheduledDisplayTime( sequence: ImageSequence; displayTime: TimeValue64; displayTimeScale: TimeScale; flags: UInt32 ): OSErr; external name '_SetDSequenceNonScheduledDisplayTime';
  2186. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  2187. {
  2188. * GetDSequenceNonScheduledDisplayTime()
  2189. *
  2190. * Availability:
  2191. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  2192. * CarbonLib: not available
  2193. * Non-Carbon CFM: not available
  2194. * Windows: in qtmlClient.lib version 10.4 (or QuickTime 7.0) and later
  2195. }
  2196. function GetDSequenceNonScheduledDisplayTime( sequence: ImageSequence; var displayTime: TimeValue64; var displayTimeScale: TimeScale ): OSErr; external name '_GetDSequenceNonScheduledDisplayTime';
  2197. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  2198. {
  2199. * SetDSequenceNonScheduledDisplayDirection()
  2200. *
  2201. * Availability:
  2202. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  2203. * CarbonLib: not available
  2204. * Non-Carbon CFM: not available
  2205. * Windows: in qtmlClient.lib version 10.4 (or QuickTime 7.0) and later
  2206. }
  2207. function SetDSequenceNonScheduledDisplayDirection( sequence: ImageSequence; rate: Fixed ): OSErr; external name '_SetDSequenceNonScheduledDisplayDirection';
  2208. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  2209. {
  2210. * GetDSequenceNonScheduledDisplayDirection()
  2211. *
  2212. * Availability:
  2213. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  2214. * CarbonLib: not available
  2215. * Non-Carbon CFM: not available
  2216. * Windows: in qtmlClient.lib version 10.4 (or QuickTime 7.0) and later
  2217. }
  2218. function GetDSequenceNonScheduledDisplayDirection( sequence: ImageSequence; var rate: Fixed ): OSErr; external name '_GetDSequenceNonScheduledDisplayDirection';
  2219. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  2220. {
  2221. * GetGraphicsImporterForFile()
  2222. *
  2223. * Availability:
  2224. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2225. * CarbonLib: in CarbonLib 1.0 and later
  2226. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2227. * Windows: in qtmlClient.lib 3.0 and later
  2228. }
  2229. function GetGraphicsImporterForFile( const (*var*) theFile: FSSpec; var gi: ComponentInstance ): OSErr; external name '_GetGraphicsImporterForFile';
  2230. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2231. {
  2232. * GetGraphicsImporterForDataRef()
  2233. *
  2234. * Availability:
  2235. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2236. * CarbonLib: in CarbonLib 1.0 and later
  2237. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2238. * Windows: in qtmlClient.lib 3.0 and later
  2239. }
  2240. function GetGraphicsImporterForDataRef( dataRef: Handle; dataRefType: OSType; var gi: ComponentInstance ): OSErr; external name '_GetGraphicsImporterForDataRef';
  2241. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2242. const
  2243. kDontUseValidateToFindGraphicsImporter = 1 shl 0;
  2244. {
  2245. * GetGraphicsImporterForFileWithFlags()
  2246. *
  2247. * Availability:
  2248. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2249. * CarbonLib: in CarbonLib 1.1 and later
  2250. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2251. * Windows: in qtmlClient.lib 3.0 and later
  2252. }
  2253. function GetGraphicsImporterForFileWithFlags( const (*var*) theFile: FSSpec; var gi: ComponentInstance; flags: SIGNEDLONG ): OSErr; external name '_GetGraphicsImporterForFileWithFlags';
  2254. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2255. {
  2256. * GetGraphicsImporterForDataRefWithFlags()
  2257. *
  2258. * Availability:
  2259. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2260. * CarbonLib: in CarbonLib 1.1 and later
  2261. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2262. * Windows: in qtmlClient.lib 3.0 and later
  2263. }
  2264. function GetGraphicsImporterForDataRefWithFlags( dataRef: Handle; dataRefType: OSType; var gi: ComponentInstance; flags: SIGNEDLONG ): OSErr; external name '_GetGraphicsImporterForDataRefWithFlags';
  2265. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2266. {
  2267. * QTGetFileNameExtension()
  2268. *
  2269. * Availability:
  2270. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2271. * CarbonLib: in CarbonLib 1.0 and later
  2272. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2273. * Windows: in qtmlClient.lib 3.0 and later
  2274. }
  2275. function QTGetFileNameExtension(const (*var*) fileName: StrFileName; fileType: OSType; var extension: OSType ): OSErr; external name '_QTGetFileNameExtension';
  2276. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2277. {
  2278. * ImageTranscodeSequenceBegin()
  2279. *
  2280. * Availability:
  2281. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2282. * CarbonLib: in CarbonLib 1.0 and later
  2283. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2284. * Windows: in qtmlClient.lib 3.0 and later
  2285. }
  2286. function ImageTranscodeSequenceBegin( var its: ImageTranscodeSequence; srcDesc: ImageDescriptionHandle; destType: OSType; var dstDesc: ImageDescriptionHandle; data: UnivPtr; dataSize: SIGNEDLONG ): OSErr; external name '_ImageTranscodeSequenceBegin';
  2287. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2288. {
  2289. * ImageTranscodeSequenceEnd()
  2290. *
  2291. * Availability:
  2292. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2293. * CarbonLib: in CarbonLib 1.0 and later
  2294. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2295. * Windows: in qtmlClient.lib 3.0 and later
  2296. }
  2297. function ImageTranscodeSequenceEnd( its: ImageTranscodeSequence ): OSErr; external name '_ImageTranscodeSequenceEnd';
  2298. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2299. {
  2300. * ImageTranscodeFrame()
  2301. *
  2302. * Availability:
  2303. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2304. * CarbonLib: in CarbonLib 1.0 and later
  2305. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2306. * Windows: in qtmlClient.lib 3.0 and later
  2307. }
  2308. function ImageTranscodeFrame( its: ImageTranscodeSequence; srcData: UnivPtr; srcDataSize: SIGNEDLONG; var dstData: UnivPtr; var dstDataSize: SIGNEDLONG ): OSErr; external name '_ImageTranscodeFrame';
  2309. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2310. {
  2311. * ImageTranscodeDisposeFrameData()
  2312. *
  2313. * Availability:
  2314. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2315. * CarbonLib: in CarbonLib 1.0 and later
  2316. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2317. * Windows: in qtmlClient.lib 3.0 and later
  2318. }
  2319. function ImageTranscodeDisposeFrameData( its: ImageTranscodeSequence; dstData: UnivPtr ): OSErr; external name '_ImageTranscodeDisposeFrameData';
  2320. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2321. {
  2322. * CDSequenceInvalidate()
  2323. *
  2324. * Availability:
  2325. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2326. * CarbonLib: in CarbonLib 1.0 and later
  2327. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2328. * Windows: in qtmlClient.lib 3.0 and later
  2329. }
  2330. function CDSequenceInvalidate( seqID: ImageSequence; invalRgn: RgnHandle ): OSErr; external name '_CDSequenceInvalidate';
  2331. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2332. {
  2333. * CDSequenceSetTimeBase()
  2334. *
  2335. * Availability:
  2336. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2337. * CarbonLib: in CarbonLib 1.0 and later
  2338. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2339. * Windows: in qtmlClient.lib 3.0 and later
  2340. }
  2341. function CDSequenceSetTimeBase( seqID: ImageSequence; base: UnivPtr ): OSErr; external name '_CDSequenceSetTimeBase';
  2342. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2343. {
  2344. * ImageFieldSequenceBegin()
  2345. *
  2346. * Availability:
  2347. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2348. * CarbonLib: in CarbonLib 1.0 and later
  2349. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2350. * Windows: in qtmlClient.lib 3.0 and later
  2351. }
  2352. function ImageFieldSequenceBegin( var ifs: ImageFieldSequence; desc1: ImageDescriptionHandle; desc2: ImageDescriptionHandle; descOut: ImageDescriptionHandle ): OSErr; external name '_ImageFieldSequenceBegin';
  2353. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2354. {
  2355. * ImageFieldSequenceExtractCombine()
  2356. *
  2357. * Availability:
  2358. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2359. * CarbonLib: in CarbonLib 1.0 and later
  2360. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2361. * Windows: in qtmlClient.lib 3.0 and later
  2362. }
  2363. function ImageFieldSequenceExtractCombine( ifs: ImageFieldSequence; fieldFlags: SIGNEDLONG; data1: UnivPtr; dataSize1: SIGNEDLONG; data2: UnivPtr; dataSize2: SIGNEDLONG; outputData: UnivPtr; var outDataSize: SIGNEDLONG ): OSErr; external name '_ImageFieldSequenceExtractCombine';
  2364. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2365. {
  2366. * ImageFieldSequenceEnd()
  2367. *
  2368. * Availability:
  2369. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2370. * CarbonLib: in CarbonLib 1.0 and later
  2371. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2372. * Windows: in qtmlClient.lib 3.0 and later
  2373. }
  2374. function ImageFieldSequenceEnd( ifs: ImageFieldSequence ): OSErr; external name '_ImageFieldSequenceEnd';
  2375. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2376. const
  2377. kICMTempThenAppMemory = 1 shl 12;
  2378. kICMAppThenTempMemory = 1 shl 13;
  2379. {
  2380. * QTNewGWorld()
  2381. *
  2382. * Availability:
  2383. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2384. * CarbonLib: in CarbonLib 1.0 and later
  2385. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2386. * Windows: in qtmlClient.lib 3.0 and later
  2387. }
  2388. function QTNewGWorld( var offscreenGWorld: GWorldPtr; PixelFormat: OSType; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle; flags: GWorldFlags ): OSErr; external name '_QTNewGWorld';
  2389. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2390. {
  2391. * QTNewGWorldFromPtr()
  2392. *
  2393. * Availability:
  2394. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2395. * CarbonLib: in CarbonLib 1.0.2 and later
  2396. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2397. * Windows: in qtmlClient.lib 4.0 and later
  2398. }
  2399. function QTNewGWorldFromPtr( var gw: GWorldPtr; pixelFormat: OSType; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle; flags: GWorldFlags; baseAddr: UnivPtr; rowBytes: SIGNEDLONG ): OSErr; external name '_QTNewGWorldFromPtr';
  2400. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2401. {
  2402. * QTUpdateGWorld()
  2403. *
  2404. * Availability:
  2405. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2406. * CarbonLib: in CarbonLib 1.0 and later
  2407. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2408. * Windows: in qtmlClient.lib 3.0 and later
  2409. }
  2410. function QTUpdateGWorld( var offscreenGWorld: GWorldPtr; PixelFormat: OSType; const (*var*) boundsRect: Rect; cTable: CTabHandle; aGDevice: GDHandle; flags: GWorldFlags ): GWorldFlags; external name '_QTUpdateGWorld';
  2411. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2412. {
  2413. * MakeImageDescriptionForPixMap()
  2414. *
  2415. * Availability:
  2416. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2417. * CarbonLib: in CarbonLib 1.0 and later
  2418. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2419. * Windows: in qtmlClient.lib 3.0 and later
  2420. }
  2421. function MakeImageDescriptionForPixMap( pixmap: PixMapHandle; var idh: ImageDescriptionHandle ): OSErr; external name '_MakeImageDescriptionForPixMap';
  2422. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2423. {
  2424. * MakeImageDescriptionForEffect()
  2425. *
  2426. * Availability:
  2427. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2428. * CarbonLib: in CarbonLib 1.0.2 and later
  2429. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2430. * Windows: in qtmlClient.lib 4.0 and later
  2431. }
  2432. function MakeImageDescriptionForEffect( effectType: OSType; var idh: ImageDescriptionHandle ): OSErr; external name '_MakeImageDescriptionForEffect';
  2433. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2434. {
  2435. * QTGetPixelSize()
  2436. *
  2437. * Availability:
  2438. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2439. * CarbonLib: in CarbonLib 1.0 and later
  2440. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2441. * Windows: in qtmlClient.lib 3.0 and later
  2442. }
  2443. function QTGetPixelSize( PixelFormat: OSType ): SInt16; external name '_QTGetPixelSize';
  2444. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2445. {
  2446. * QTGetPixelFormatDepthForImageDescription()
  2447. *
  2448. * Availability:
  2449. * Mac OS X: in version 10.2 and later in QuickTime.framework
  2450. * CarbonLib: in CarbonLib 1.6 and later
  2451. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  2452. * Windows: in qtmlClient.lib 6.0 and later
  2453. }
  2454. function QTGetPixelFormatDepthForImageDescription( PixelFormat: OSType ): SInt16; external name '_QTGetPixelFormatDepthForImageDescription';
  2455. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  2456. {
  2457. * QTGetPixMapPtrRowBytes()
  2458. *
  2459. * Availability:
  2460. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2461. * CarbonLib: in CarbonLib 1.0.2 and later
  2462. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2463. * Windows: in qtmlClient.lib 4.0 and later
  2464. }
  2465. function QTGetPixMapPtrRowBytes( pm: PixMapPtr ): SIGNEDLONG; external name '_QTGetPixMapPtrRowBytes';
  2466. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2467. {
  2468. * QTGetPixMapHandleRowBytes()
  2469. *
  2470. * Availability:
  2471. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2472. * CarbonLib: in CarbonLib 1.0.2 and later
  2473. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2474. * Windows: in qtmlClient.lib 4.0 and later
  2475. }
  2476. function QTGetPixMapHandleRowBytes( pm: PixMapHandle ): SIGNEDLONG; external name '_QTGetPixMapHandleRowBytes';
  2477. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2478. {
  2479. * QTSetPixMapPtrRowBytes()
  2480. *
  2481. * Availability:
  2482. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2483. * CarbonLib: in CarbonLib 1.0.2 and later
  2484. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2485. * Windows: in qtmlClient.lib 4.0 and later
  2486. }
  2487. function QTSetPixMapPtrRowBytes( pm: PixMapPtr; rowBytes: SIGNEDLONG ): OSErr; external name '_QTSetPixMapPtrRowBytes';
  2488. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2489. {
  2490. * QTSetPixMapHandleRowBytes()
  2491. *
  2492. * Availability:
  2493. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2494. * CarbonLib: in CarbonLib 1.0.2 and later
  2495. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2496. * Windows: in qtmlClient.lib 4.0 and later
  2497. }
  2498. function QTSetPixMapHandleRowBytes( pm: PixMapHandle; rowBytes: SIGNEDLONG ): OSErr; external name '_QTSetPixMapHandleRowBytes';
  2499. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2500. const
  2501. kQTUsePlatformDefaultGammaLevel = 0; { When decompressing into this PixMap, gamma-correct to the platform's standard gamma. }
  2502. kQTUseSourceGammaLevel = -1; { When decompressing into this PixMap, don't perform gamma-correction. }
  2503. kQTCCIR601VideoGammaLevel = $00023333; { 2.2, standard television video gamma.}
  2504. {
  2505. * QTGetPixMapPtrGammaLevel()
  2506. *
  2507. * Availability:
  2508. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2509. * CarbonLib: in CarbonLib 1.3 and later
  2510. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2511. * Windows: in qtmlClient.lib 5.0 and later
  2512. }
  2513. function QTGetPixMapPtrGammaLevel( pm: PixMapPtr ): Fixed; external name '_QTGetPixMapPtrGammaLevel';
  2514. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2515. {
  2516. * QTSetPixMapPtrGammaLevel()
  2517. *
  2518. * Availability:
  2519. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2520. * CarbonLib: in CarbonLib 1.3 and later
  2521. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2522. * Windows: in qtmlClient.lib 5.0 and later
  2523. }
  2524. function QTSetPixMapPtrGammaLevel( pm: PixMapPtr; gammaLevel: Fixed ): OSErr; external name '_QTSetPixMapPtrGammaLevel';
  2525. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2526. {
  2527. * QTGetPixMapHandleGammaLevel()
  2528. *
  2529. * Availability:
  2530. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2531. * CarbonLib: in CarbonLib 1.3 and later
  2532. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2533. * Windows: in qtmlClient.lib 5.0 and later
  2534. }
  2535. function QTGetPixMapHandleGammaLevel( pm: PixMapHandle ): Fixed; external name '_QTGetPixMapHandleGammaLevel';
  2536. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2537. {
  2538. * QTSetPixMapHandleGammaLevel()
  2539. *
  2540. * Availability:
  2541. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2542. * CarbonLib: in CarbonLib 1.3 and later
  2543. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2544. * Windows: in qtmlClient.lib 5.0 and later
  2545. }
  2546. function QTSetPixMapHandleGammaLevel( pm: PixMapHandle; gammaLevel: Fixed ): OSErr; external name '_QTSetPixMapHandleGammaLevel';
  2547. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2548. {
  2549. * QTGetPixMapPtrRequestedGammaLevel()
  2550. *
  2551. * Availability:
  2552. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2553. * CarbonLib: in CarbonLib 1.3 and later
  2554. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2555. * Windows: in qtmlClient.lib 5.0 and later
  2556. }
  2557. function QTGetPixMapPtrRequestedGammaLevel( pm: PixMapPtr ): Fixed; external name '_QTGetPixMapPtrRequestedGammaLevel';
  2558. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2559. {
  2560. * QTSetPixMapPtrRequestedGammaLevel()
  2561. *
  2562. * Availability:
  2563. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2564. * CarbonLib: in CarbonLib 1.3 and later
  2565. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2566. * Windows: in qtmlClient.lib 5.0 and later
  2567. }
  2568. function QTSetPixMapPtrRequestedGammaLevel( pm: PixMapPtr; requestedGammaLevel: Fixed ): OSErr; external name '_QTSetPixMapPtrRequestedGammaLevel';
  2569. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2570. {
  2571. * QTGetPixMapHandleRequestedGammaLevel()
  2572. *
  2573. * Availability:
  2574. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2575. * CarbonLib: in CarbonLib 1.3 and later
  2576. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2577. * Windows: in qtmlClient.lib 5.0 and later
  2578. }
  2579. function QTGetPixMapHandleRequestedGammaLevel( pm: PixMapHandle ): Fixed; external name '_QTGetPixMapHandleRequestedGammaLevel';
  2580. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2581. {
  2582. * QTSetPixMapHandleRequestedGammaLevel()
  2583. *
  2584. * Availability:
  2585. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2586. * CarbonLib: in CarbonLib 1.3 and later
  2587. * Non-Carbon CFM: in QuickTimeLib 5.0 and later
  2588. * Windows: in qtmlClient.lib 5.0 and later
  2589. }
  2590. function QTSetPixMapHandleRequestedGammaLevel( pm: PixMapHandle; requestedGammaLevel: Fixed ): OSErr; external name '_QTSetPixMapHandleRequestedGammaLevel';
  2591. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2592. {
  2593. * QuadToQuadMatrix()
  2594. *
  2595. * Availability:
  2596. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2597. * CarbonLib: in CarbonLib 1.0.2 and later
  2598. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  2599. * Windows: in qtmlClient.lib 4.0 and later
  2600. }
  2601. type
  2602. FixedPoint4 = array[0..3] of FixedPoint;
  2603. function QuadToQuadMatrix( const (*var*) source: FixedPoint4; const (*var*) dest: FixedPoint4; var map: MatrixRecord ): OSErr; external name '_QuadToQuadMatrix';
  2604. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2605. const
  2606. identityMatrixType = $00; { result if matrix is identity }
  2607. translateMatrixType = $01; { result if matrix translates }
  2608. scaleMatrixType = $02; { result if matrix scales }
  2609. scaleTranslateMatrixType = $03; { result if matrix scales and translates }
  2610. linearMatrixType = $04; { result if matrix is general 2 x 2 }
  2611. linearTranslateMatrixType = $05; { result if matrix is general 2 x 2 and translates }
  2612. perspectiveMatrixType = $06; { result if matrix is general 3 x 3 }
  2613. type
  2614. MatrixFlags = UInt16;
  2615. {
  2616. * GetMatrixType()
  2617. *
  2618. * Availability:
  2619. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2620. * CarbonLib: in CarbonLib 1.0 and later
  2621. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2622. * Windows: in qtmlClient.lib 3.0 and later
  2623. }
  2624. function GetMatrixType( const (*var*) m: MatrixRecord ): SInt16; external name '_GetMatrixType';
  2625. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2626. {
  2627. * CopyMatrix()
  2628. *
  2629. * Availability:
  2630. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2631. * CarbonLib: in CarbonLib 1.0 and later
  2632. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2633. * Windows: in qtmlClient.lib 3.0 and later
  2634. }
  2635. procedure CopyMatrix( const (*var*) m1: MatrixRecord; var m2: MatrixRecord ); external name '_CopyMatrix';
  2636. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2637. {
  2638. * EqualMatrix()
  2639. *
  2640. * Availability:
  2641. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2642. * CarbonLib: in CarbonLib 1.0 and later
  2643. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2644. * Windows: in qtmlClient.lib 3.0 and later
  2645. }
  2646. function EqualMatrix( const (*var*) m1: MatrixRecord; const (*var*) m2: MatrixRecord ): Boolean; external name '_EqualMatrix';
  2647. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2648. {
  2649. * SetIdentityMatrix()
  2650. *
  2651. * Availability:
  2652. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2653. * CarbonLib: in CarbonLib 1.0 and later
  2654. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2655. * Windows: in qtmlClient.lib 3.0 and later
  2656. }
  2657. procedure SetIdentityMatrix( var matrix: MatrixRecord ); external name '_SetIdentityMatrix';
  2658. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2659. {
  2660. * TranslateMatrix()
  2661. *
  2662. * Availability:
  2663. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2664. * CarbonLib: in CarbonLib 1.0 and later
  2665. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2666. * Windows: in qtmlClient.lib 3.0 and later
  2667. }
  2668. procedure TranslateMatrix( var m: MatrixRecord; deltaH: Fixed; deltaV: Fixed ); external name '_TranslateMatrix';
  2669. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2670. {
  2671. * RotateMatrix()
  2672. *
  2673. * Availability:
  2674. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2675. * CarbonLib: in CarbonLib 1.0 and later
  2676. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2677. * Windows: in qtmlClient.lib 3.0 and later
  2678. }
  2679. procedure RotateMatrix( var m: MatrixRecord; degrees: Fixed; aboutX: Fixed; aboutY: Fixed ); external name '_RotateMatrix';
  2680. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2681. {
  2682. * ScaleMatrix()
  2683. *
  2684. * Availability:
  2685. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2686. * CarbonLib: in CarbonLib 1.0 and later
  2687. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2688. * Windows: in qtmlClient.lib 3.0 and later
  2689. }
  2690. procedure ScaleMatrix( var m: MatrixRecord; scaleX: Fixed; scaleY: Fixed; aboutX: Fixed; aboutY: Fixed ); external name '_ScaleMatrix';
  2691. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2692. {
  2693. * SkewMatrix()
  2694. *
  2695. * Availability:
  2696. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2697. * CarbonLib: in CarbonLib 1.0 and later
  2698. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2699. * Windows: in qtmlClient.lib 3.0 and later
  2700. }
  2701. procedure SkewMatrix( var m: MatrixRecord; skewX: Fixed; skewY: Fixed; aboutX: Fixed; aboutY: Fixed ); external name '_SkewMatrix';
  2702. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2703. {
  2704. * TransformFixedPoints()
  2705. *
  2706. * Availability:
  2707. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2708. * CarbonLib: in CarbonLib 1.0 and later
  2709. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2710. * Windows: in qtmlClient.lib 3.0 and later
  2711. }
  2712. function TransformFixedPoints( const (*var*) m: MatrixRecord; var fpt: FixedPoint; count: SIGNEDLONG ): OSErr; external name '_TransformFixedPoints';
  2713. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2714. {
  2715. * TransformPoints()
  2716. *
  2717. * Availability:
  2718. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2719. * CarbonLib: in CarbonLib 1.0 and later
  2720. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2721. * Windows: in qtmlClient.lib 3.0 and later
  2722. }
  2723. function TransformPoints( const (*var*) mp: MatrixRecord; var pt1: Point; count: SIGNEDLONG ): OSErr; external name '_TransformPoints';
  2724. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2725. {
  2726. * TransformFixedRect()
  2727. *
  2728. * Availability:
  2729. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2730. * CarbonLib: in CarbonLib 1.0 and later
  2731. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2732. * Windows: in qtmlClient.lib 3.0 and later
  2733. }
  2734. function TransformFixedRect( const (*var*) m: MatrixRecord; var fr: FixedRect; var fpp: FixedPoint ): Boolean; external name '_TransformFixedRect';
  2735. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2736. {
  2737. * TransformRect()
  2738. *
  2739. * Availability:
  2740. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2741. * CarbonLib: in CarbonLib 1.0 and later
  2742. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2743. * Windows: in qtmlClient.lib 3.0 and later
  2744. }
  2745. function TransformRect( const (*var*) m: MatrixRecord; var r: Rect; var fpp: FixedPoint ): Boolean; external name '_TransformRect';
  2746. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2747. {
  2748. * InverseMatrix()
  2749. *
  2750. * Availability:
  2751. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2752. * CarbonLib: in CarbonLib 1.0 and later
  2753. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2754. * Windows: in qtmlClient.lib 3.0 and later
  2755. }
  2756. function InverseMatrix( const (*var*) m: MatrixRecord; var im: MatrixRecord ): Boolean; external name '_InverseMatrix';
  2757. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2758. {
  2759. * ConcatMatrix()
  2760. *
  2761. * Availability:
  2762. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2763. * CarbonLib: in CarbonLib 1.0 and later
  2764. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2765. * Windows: in qtmlClient.lib 3.0 and later
  2766. }
  2767. procedure ConcatMatrix( const (*var*) a: MatrixRecord; var b: MatrixRecord ); external name '_ConcatMatrix';
  2768. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2769. {
  2770. * RectMatrix()
  2771. *
  2772. * Availability:
  2773. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2774. * CarbonLib: in CarbonLib 1.0 and later
  2775. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2776. * Windows: in qtmlClient.lib 3.0 and later
  2777. }
  2778. procedure RectMatrix( var matrix: MatrixRecord; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ); external name '_RectMatrix';
  2779. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2780. {
  2781. * MapMatrix()
  2782. *
  2783. * Availability:
  2784. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2785. * CarbonLib: in CarbonLib 1.0 and later
  2786. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2787. * Windows: in qtmlClient.lib 3.0 and later
  2788. }
  2789. procedure MapMatrix( var matrix: MatrixRecord; const (*var*) fromRect: Rect; const (*var*) toRect: Rect ); external name '_MapMatrix';
  2790. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2791. {
  2792. * CompAdd()
  2793. *
  2794. * Availability:
  2795. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2796. * CarbonLib: in CarbonLib 1.0 and later
  2797. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2798. * Windows: in qtmlClient.lib 3.0 and later
  2799. }
  2800. procedure CompAdd( var src: wide; var dst: wide ); external name '_CompAdd';
  2801. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2802. {
  2803. * CompSub()
  2804. *
  2805. * Availability:
  2806. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2807. * CarbonLib: in CarbonLib 1.0 and later
  2808. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2809. * Windows: in qtmlClient.lib 3.0 and later
  2810. }
  2811. procedure CompSub( var src: wide; var dst: wide ); external name '_CompSub';
  2812. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2813. {
  2814. * CompNeg()
  2815. *
  2816. * Availability:
  2817. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2818. * CarbonLib: in CarbonLib 1.0 and later
  2819. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2820. * Windows: in qtmlClient.lib 3.0 and later
  2821. }
  2822. procedure CompNeg( var dst: wide ); external name '_CompNeg';
  2823. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2824. {
  2825. * CompShift()
  2826. *
  2827. * Availability:
  2828. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2829. * CarbonLib: in CarbonLib 1.0 and later
  2830. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2831. * Windows: in qtmlClient.lib 3.0 and later
  2832. }
  2833. procedure CompShift( var src: wide; shift: SInt16 ); external name '_CompShift';
  2834. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2835. {
  2836. * CompMul()
  2837. *
  2838. * Availability:
  2839. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2840. * CarbonLib: in CarbonLib 1.0 and later
  2841. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2842. * Windows: in qtmlClient.lib 3.0 and later
  2843. }
  2844. procedure CompMul( src1: SIGNEDLONG; src2: SIGNEDLONG; var dst: wide ); external name '_CompMul';
  2845. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2846. {
  2847. * CompDiv()
  2848. *
  2849. * Availability:
  2850. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2851. * CarbonLib: in CarbonLib 1.0 and later
  2852. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2853. * Windows: in qtmlClient.lib 3.0 and later
  2854. }
  2855. function CompDiv( var numerator: wide; denominator: SIGNEDLONG; var remainder: SIGNEDLONG ): SIGNEDLONG; external name '_CompDiv';
  2856. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2857. {
  2858. * CompFixMul()
  2859. *
  2860. * Availability:
  2861. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2862. * CarbonLib: in CarbonLib 1.0 and later
  2863. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2864. * Windows: in qtmlClient.lib 3.0 and later
  2865. }
  2866. procedure CompFixMul( var compSrc: wide; fixSrc: Fixed; var compDst: wide ); external name '_CompFixMul';
  2867. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2868. {
  2869. * CompMulDiv()
  2870. *
  2871. * Availability:
  2872. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2873. * CarbonLib: in CarbonLib 1.0 and later
  2874. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2875. * Windows: in qtmlClient.lib 3.0 and later
  2876. }
  2877. procedure CompMulDiv( var co: wide; mul: SIGNEDLONG; divisor: SIGNEDLONG ); external name '_CompMulDiv';
  2878. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2879. {
  2880. * CompMulDivTrunc()
  2881. *
  2882. * Availability:
  2883. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2884. * CarbonLib: in CarbonLib 1.0 and later
  2885. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2886. * Windows: in qtmlClient.lib 3.0 and later
  2887. }
  2888. procedure CompMulDivTrunc( var co: wide; mul: SIGNEDLONG; divisor: SIGNEDLONG; var remainder: SIGNEDLONG ); external name '_CompMulDivTrunc';
  2889. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2890. {
  2891. * CompCompare()
  2892. *
  2893. * Availability:
  2894. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2895. * CarbonLib: in CarbonLib 1.0 and later
  2896. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2897. * Windows: in qtmlClient.lib 3.0 and later
  2898. }
  2899. function CompCompare( const (*var*) a: wide; const (*var*) minusb: wide ): SIGNEDLONG; external name '_CompCompare';
  2900. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2901. {
  2902. * CompSquareRoot()
  2903. *
  2904. * Availability:
  2905. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2906. * CarbonLib: in CarbonLib 1.0 and later
  2907. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  2908. * Windows: in qtmlClient.lib 3.0 and later
  2909. }
  2910. function CompSquareRoot( const (*var*) src: wide ): UNSIGNEDLONG; external name '_CompSquareRoot';
  2911. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2912. {
  2913. * FixMulDiv()
  2914. *
  2915. * Availability:
  2916. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2917. * CarbonLib: in CarbonLib 1.0 and later
  2918. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2919. * Windows: in qtmlClient.lib 3.0 and later
  2920. }
  2921. function FixMulDiv( src: Fixed; mul: Fixed; divisor: Fixed ): Fixed; external name '_FixMulDiv';
  2922. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2923. {
  2924. * UnsignedFixMulDiv()
  2925. *
  2926. * Availability:
  2927. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2928. * CarbonLib: in CarbonLib 1.0 and later
  2929. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2930. * Windows: in qtmlClient.lib 3.0 and later
  2931. }
  2932. function UnsignedFixMulDiv( src: Fixed; mul: Fixed; divisor: Fixed ): Fixed; external name '_UnsignedFixMulDiv';
  2933. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2934. {
  2935. * FracSinCos()
  2936. *
  2937. * Availability:
  2938. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2939. * CarbonLib: in CarbonLib 1.0 and later
  2940. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2941. * Windows: in qtmlClient.lib 3.0 and later
  2942. }
  2943. function FracSinCos( degree: Fixed; var cosOut: Fract ): Fract; external name '_FracSinCos';
  2944. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2945. {
  2946. * FixExp2()
  2947. *
  2948. * Availability:
  2949. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2950. * CarbonLib: in CarbonLib 1.0 and later
  2951. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2952. * Windows: in qtmlClient.lib 3.0 and later
  2953. }
  2954. function FixExp2( src: Fixed ): Fixed; external name '_FixExp2';
  2955. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2956. {
  2957. * FixLog2()
  2958. *
  2959. * Availability:
  2960. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2961. * CarbonLib: in CarbonLib 1.0 and later
  2962. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2963. * Windows: in qtmlClient.lib 3.0 and later
  2964. }
  2965. function FixLog2( src: Fixed ): Fixed; external name '_FixLog2';
  2966. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2967. {
  2968. * FixPow()
  2969. *
  2970. * Availability:
  2971. * Mac OS X: in version 10.0 and later in QuickTime.framework
  2972. * CarbonLib: in CarbonLib 1.0 and later
  2973. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  2974. * Windows: in qtmlClient.lib 3.0 and later
  2975. }
  2976. function FixPow( base: Fixed; exp: Fixed ): Fixed; external name '_FixPow';
  2977. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  2978. type
  2979. GraphicsImportComponent = ComponentInstance;
  2980. const
  2981. GraphicsImporterComponentType = FourCharCode('grip');
  2982. { Component flags for Graphics Importer components }
  2983. const
  2984. graphicsImporterIsBaseImporter = 1 shl 0;
  2985. graphicsImporterCanValidateFile = 1 shl 9;
  2986. graphicsImporterSubTypeIsFileExtension = 1 shl 12;
  2987. graphicsImporterHasMIMEList = 1 shl 14;
  2988. graphicsImporterUsesImageDecompressor = 1 shl 23;
  2989. { Atom types for QuickTime Image files }
  2990. const
  2991. quickTimeImageFileImageDescriptionAtom = FourCharCode('idsc');
  2992. quickTimeImageFileImageDataAtom = FourCharCode('idat');
  2993. quickTimeImageFileMetaDataAtom = FourCharCode('meta');
  2994. quickTimeImageFileColorSyncProfileAtom = FourCharCode('iicc');
  2995. { Flags for GraphicsImportDoesDrawAllPixels }
  2996. const
  2997. graphicsImporterDrawsAllPixels = 0;
  2998. graphicsImporterDoesntDrawAllPixels = 1;
  2999. graphicsImporterDontKnowIfDrawAllPixels = 2;
  3000. { Flags for GraphicsImportSetFlags }
  3001. const
  3002. kGraphicsImporterDontDoGammaCorrection = 1 shl 0;
  3003. kGraphicsImporterTrustResolutionFromFile = 1 shl 1;
  3004. kGraphicsImporterEnableSubPixelPositioning = 1 shl 2;
  3005. kGraphicsImporterDontUseColorMatching = 1 shl 3; { set this flag (*before* calling GraphicsImportGetColorSyncProfile) if you do matching yourself }
  3006. { Flags for GraphicsImportCreateCGImage }
  3007. const
  3008. kGraphicsImportCreateCGImageUsingCurrentSettings = 1 shl 0;
  3009. const
  3010. kGraphicsExportGroup = FourCharCode('expo');
  3011. kGraphicsExportFileType = FourCharCode('ftyp');
  3012. kGraphicsExportMIMEType = FourCharCode('mime');
  3013. kGraphicsExportExtension = FourCharCode('ext ');
  3014. kGraphicsExportDescription = FourCharCode('desc');
  3015. { User data types for layers of Photoshop files }
  3016. const
  3017. kQTPhotoshopLayerMode = FourCharCode('lmod'); { OSType }
  3018. kQTPhotoshopLayerOpacity = FourCharCode('lopa'); { UInt8, 0 = transparent .. 255 = opaque }
  3019. kQTPhotoshopLayerClipping = FourCharCode('lclp'); { UInt8, 0 = base, 1 = non-base }
  3020. kQTPhotoshopLayerFlags = FourCharCode('lflg'); { UInt8 }
  3021. kQTPhotoshopLayerName = FourCharCode('©lnm'); { Text }
  3022. kQTPhotoshopLayerUnicodeName = FourCharCode('luni'); { Unicode characters, not terminated }
  3023. { User data returned by graphics importers to suggest intended use for indexed images }
  3024. const
  3025. kQTIndexedImageType = FourCharCode('nth?'); { 1 or more OSTypes, such as the following values: }
  3026. kQTIndexedImageIsThumbnail = FourCharCode('n=th'); { The image at this index is a thumbnail. }
  3027. kQTIndexedImageIsLayer = FourCharCode('n=ly'); { The image at this index is a layer. }
  3028. kQTIndexedImageIsPage = FourCharCode('n=pg'); { The image at this index is a page. }
  3029. kQTIndexedImageIsMultiResolution = FourCharCode('n=rs'); { The image at this index is one of several identical images at different resolutions. }
  3030. { Other user data types returned by graphics importers }
  3031. const
  3032. kQTTIFFUserDataPrefix = $74690000; { Added to some tag values in TIFF IFDs to generate user data codes. (0x7469 is 'ti'.) }
  3033. { For example, YCbCrPositioning is tag 0x0213, so its user data code is 0x74690213. }
  3034. kQTTIFFExifUserDataPrefix = $65780000; { Added to tag values in Exif IFDs to generate user data codes. (0x6578 is 'ex'.) }
  3035. { For example, DateTimeOriginal is tag 0x9003, so its user data code is 0x65789003. }
  3036. kQTTIFFExifGPSUserDataPrefix = $67700000; { Added to tag values in Exif GPS IFDs to generate user data codes. (0x6770 is 'gp'.) }
  3037. { For example, GPSAltitude is tag 0x0006, so its user data code is 0x6770006. }
  3038. kQTAlphaMode = FourCharCode('almo'); { UInt32; eg, graphicsModeStraightAlpha or graphicsModePreBlackAlpha }
  3039. kQTAlphaModePreMulColor = FourCharCode('almp'); { RGBColor; used if kQTAlphaMode is graphicsModePreMulColorAlpha }
  3040. kUserDataIPTC = FourCharCode('iptc');
  3041. { Found in TIFF and Exif JPEG files }
  3042. const
  3043. kQTTIFFUserDataOrientation = $74690112; { 1 SHORT }
  3044. kQTTIFFUserDataTransferFunction = $7469012D; { n SHORTs }
  3045. kQTTIFFUserDataWhitePoint = $7469013E; { 2 RATIONALs }
  3046. kQTTIFFUserDataPrimaryChromaticities = $7469013F; { 6 RATIONALs }
  3047. kQTTIFFUserDataTransferRange = $74690156; { 6 SHORTs }
  3048. kQTTIFFUserDataYCbCrPositioning = $74690213; { 1 SHORT }
  3049. kQTTIFFUserDataReferenceBlackWhite = $74690214; { n LONGs }
  3050. { Found in GeoTIFF files; defined in the GeoTIFF 1.0 spec }
  3051. const
  3052. kQTTIFFUserDataModelPixelScale = $7469830E; { 3 DOUBLEs }
  3053. kQTTIFFUserDataModelTransformation = $746985D8; { 16 DOUBLEs }
  3054. kQTTIFFUserDataModelTiepoint = $74698482; { n DOUBLEs }
  3055. kQTTIFFUserDataGeoKeyDirectory = $746987AF; { n SHORTs }
  3056. kQTTIFFUserDataGeoDoubleParams = $746987B0; { n DOUBLEs }
  3057. kQTTIFFUserDataGeoAsciiParams = $746987B1; { n ASCIIs }
  3058. kQTTIFFUserDataIntergraphMatrix = $74698480; { 16 or 17 DOUBLEs }
  3059. { Found in Exif TIFF and Exif JPEG files; defined in the Exif 2.1 spec }
  3060. const
  3061. kQTExifUserDataExifVersion = $65789000; { 4 bytes (import only) }
  3062. kQTExifUserDataFlashPixVersion = $6578A000; { 4 bytes }
  3063. kQTExifUserDataColorSpace = $6578A001; { 1 SHORT }
  3064. kQTExifUserDataComponentsConfiguration = $65789101; { 4 bytes }
  3065. kQTExifUserDataCompressedBitsPerPixel = $65789102; { 1 RATIONAL }
  3066. kQTExifUserDataPixelXDimension = $6578A002; { 1 SHORT or LONG }
  3067. kQTExifUserDataPixelYDimension = $6578A003; { 1 SHORT or LONG }
  3068. kQTExifUserDataMakerNote = $6578927C; { n bytes }
  3069. kQTExifUserDataUserComment = $65789286; { n bytes (Note: this constant was erroneously 0x6578928C)}
  3070. kQTExifUserDataRelatedSoundFile = $6578A004; { 13 ASCIIs}
  3071. kQTExifUserDataDateTimeOriginal = $65789003; { 20 ASCIIs }
  3072. kQTExifUserDataDateTimeDigitized = $65789004; { 20 ASCIIs }
  3073. kQTExifUserDataSubSecTime = $65789290; { n ASCIIs }
  3074. kQTExifUserDataSubSecTimeOriginal = $65789291; { n ASCIIs }
  3075. kQTExifUserDataSubSecTimeDigitized = $65789292; { n ASCIIs }
  3076. kQTExifUserDataExposureTime = $6578829A; { 1 RATIONAL }
  3077. kQTExifUserDataFNumber = $6578829D; { 1 RATIONAL }
  3078. kQTExifUserDataExposureProgram = $65788822; { 1 SHORT }
  3079. kQTExifUserDataSpectralSensitivity = $65788824; { n ASCIIs }
  3080. kQTExifUserDataISOSpeedRatings = $65788827; { n SHORTs }
  3081. kQTExifUserDataShutterSpeedValue = $65789201; { 1 SIGNED RATIONAL }
  3082. kQTExifUserDataApertureValue = $65789202; { 1 RATIONAL }
  3083. kQTExifUserDataBrightnessValue = $65789203; { 1 SIGNED RATIONAL }
  3084. kQTExifUserDataExposureBiasValue = $65789204; { 1 SIGNED RATIONAL }
  3085. kQTExifUserDataMaxApertureValue = $65789205; { 1 RATIONAL }
  3086. kQTExifUserDataSubjectDistance = $65789206; { 1 RATIONAL }
  3087. kQTExifUserDataMeteringMode = $65789207; { 1 SHORT }
  3088. kQTExifUserDataLightSource = $65789208; { 1 SHORT }
  3089. kQTExifUserDataFlash = $65789209; { 1 SHORT }
  3090. kQTExifUserDataFocalLength = $6578920A; { 1 RATIONAL }
  3091. kQTExifUserDataFlashEnergy = $6578A20B; { 1 RATIONAL }
  3092. kQTExifUserDataFocalPlaneXResolution = $6578A20E; { 1 RATIONAL }
  3093. kQTExifUserDataFocalPlaneYResolution = $6578A20F; { 1 RATIONAL }
  3094. kQTExifUserDataFocalPlaneResolutionUnit = $6578A210; { 1 SHORT }
  3095. kQTExifUserDataSubjectLocation = $6578A214; { 1 SHORT }
  3096. kQTExifUserDataExposureIndex = $6578A215; { 1 RATIONAL }
  3097. kQTExifUserDataSensingMethod = $6578A217; { 1 SHORT }
  3098. kQTExifUserDataFileSource = $6578A300; { 1 UNDEFINED }
  3099. kQTExifUserDataSceneType = $6578A301; { 1 UNDEFINED }
  3100. { Found in some Exif TIFF and Exif JPEG files; defined in the Exif 2.1 spec }
  3101. { Note: these were wrong in the QuickTime 6.0 headers -- the high two bytes were 0x677 instead of 0x6770. }
  3102. const
  3103. kQTExifUserDataGPSVersionID = $67700000; { 4 BYTEs }
  3104. kQTExifUserDataGPSLatitudeRef = $67700001; { 2 ASCIIs}
  3105. kQTExifUserDataGPSLatitude = $67700002; { 3 RATIONALs }
  3106. kQTExifUserDataGPSLongitudeRef = $67700003; { 2 ASCIIs }
  3107. kQTExifUserDataGPSLongitude = $67700004; { 3 RATIONALs }
  3108. kQTExifUserDataGPSAltitudeRef = $67700005; { 1 BYTE }
  3109. kQTExifUserDataGPSAltitude = $67700006; { 1 RATIONAL }
  3110. kQTExifUserDataGPSTimeStamp = $67700007; { 3 RATIONALs }
  3111. kQTExifUserDataGPSSatellites = $67700008; { n ASCIIs }
  3112. kQTExifUserDataGPSStatus = $67700009; { 2 ASCIIs }
  3113. kQTExifUserDataGPSMeasureMode = $6770000A; { 2 ASCIIs }
  3114. kQTExifUserDataGPSDOP = $6770000B; { 1 RATIONAL }
  3115. kQTExifUserDataGPSSpeedRef = $6770000C; { 2 ASCIIs }
  3116. kQTExifUserDataGPSSpeed = $6770000D; { 1 RATIONAL }
  3117. kQTExifUserDataGPSTrackRef = $6770000E; { 2 ASCIIs }
  3118. kQTExifUserDataGPSTrack = $6770000F; { 1 RATIONAL }
  3119. kQTExifUserDataGPSImgDirectionRef = $67700010; { 2 ASCIIs }
  3120. kQTExifUserDataGPSImgDirection = $67700011; { 1 RATIONAL }
  3121. kQTExifUserDataGPSMapDatum = $67700012; { n ASCII }
  3122. kQTExifUserDataGPSDestLatitudeRef = $67700013; { 2 ASCIIs }
  3123. kQTExifUserDataGPSDestLatitude = $67700014; { 3 RATIONALs }
  3124. kQTExifUserDataGPSDestLongitudeRef = $67700015; { 2 ASCIIs }
  3125. kQTExifUserDataGPSDestLongitude = $67700016; { 3 RATIONALs }
  3126. kQTExifUserDataGPSDestBearingRef = $67700017; { 2 ASCIIs }
  3127. kQTExifUserDataGPSDestBearing = $67700018; { 1 RATIONAL }
  3128. kQTExifUserDataGPSDestDistanceRef = $67700019; { 2 ASCIIs }
  3129. kQTExifUserDataGPSDestDistance = $6770001A; { 1 RATIONAL }
  3130. {* These are GraphicsImport procedures *}
  3131. {
  3132. * GraphicsImportSetDataReference()
  3133. *
  3134. * Availability:
  3135. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3136. * CarbonLib: in CarbonLib 1.0 and later
  3137. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3138. * Windows: in qtmlClient.lib 3.0 and later
  3139. }
  3140. function GraphicsImportSetDataReference( ci: GraphicsImportComponent; dataRef: Handle; dataReType: OSType ): ComponentResult; external name '_GraphicsImportSetDataReference';
  3141. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3142. {
  3143. * GraphicsImportGetDataReference()
  3144. *
  3145. * Availability:
  3146. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3147. * CarbonLib: in CarbonLib 1.0 and later
  3148. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3149. * Windows: in qtmlClient.lib 3.0 and later
  3150. }
  3151. function GraphicsImportGetDataReference( ci: GraphicsImportComponent; var dataRef: Handle; var dataReType: OSType ): ComponentResult; external name '_GraphicsImportGetDataReference';
  3152. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3153. {
  3154. * GraphicsImportSetDataFile()
  3155. *
  3156. * Availability:
  3157. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3158. * CarbonLib: in CarbonLib 1.0 and later
  3159. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3160. * Windows: in qtmlClient.lib 3.0 and later
  3161. }
  3162. function GraphicsImportSetDataFile( ci: GraphicsImportComponent; const (*var*) theFile: FSSpec ): ComponentResult; external name '_GraphicsImportSetDataFile';
  3163. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3164. {
  3165. * GraphicsImportGetDataFile()
  3166. *
  3167. * Availability:
  3168. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3169. * CarbonLib: in CarbonLib 1.0 and later
  3170. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3171. * Windows: in qtmlClient.lib 3.0 and later
  3172. }
  3173. function GraphicsImportGetDataFile( ci: GraphicsImportComponent; var theFile: FSSpec ): ComponentResult; external name '_GraphicsImportGetDataFile';
  3174. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3175. {
  3176. * GraphicsImportSetDataHandle()
  3177. *
  3178. * Availability:
  3179. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3180. * CarbonLib: in CarbonLib 1.0 and later
  3181. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3182. * Windows: in qtmlClient.lib 3.0 and later
  3183. }
  3184. function GraphicsImportSetDataHandle( ci: GraphicsImportComponent; h: Handle ): ComponentResult; external name '_GraphicsImportSetDataHandle';
  3185. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3186. {
  3187. * GraphicsImportGetDataHandle()
  3188. *
  3189. * Availability:
  3190. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3191. * CarbonLib: in CarbonLib 1.0 and later
  3192. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3193. * Windows: in qtmlClient.lib 3.0 and later
  3194. }
  3195. function GraphicsImportGetDataHandle( ci: GraphicsImportComponent; var h: Handle ): ComponentResult; external name '_GraphicsImportGetDataHandle';
  3196. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3197. {
  3198. * GraphicsImportGetImageDescription()
  3199. *
  3200. * Availability:
  3201. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3202. * CarbonLib: in CarbonLib 1.0 and later
  3203. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3204. * Windows: in qtmlClient.lib 3.0 and later
  3205. }
  3206. function GraphicsImportGetImageDescription( ci: GraphicsImportComponent; var desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsImportGetImageDescription';
  3207. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3208. {
  3209. * GraphicsImportGetDataOffsetAndSize()
  3210. *
  3211. * Availability:
  3212. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3213. * CarbonLib: in CarbonLib 1.0 and later
  3214. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3215. * Windows: in qtmlClient.lib 3.0 and later
  3216. }
  3217. function GraphicsImportGetDataOffsetAndSize( ci: GraphicsImportComponent; var offset: UNSIGNEDLONG; var size: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportGetDataOffsetAndSize';
  3218. {
  3219. * GraphicsImportReadData()
  3220. *
  3221. * Availability:
  3222. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3223. * CarbonLib: in CarbonLib 1.0 and later
  3224. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3225. * Windows: in qtmlClient.lib 3.0 and later
  3226. }
  3227. function GraphicsImportReadData( ci: GraphicsImportComponent; dataPtr: UnivPtr; dataOffset: UNSIGNEDLONG; dataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportReadData';
  3228. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3229. {
  3230. * GraphicsImportSetClip()
  3231. *
  3232. * Availability:
  3233. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3234. * CarbonLib: in CarbonLib 1.0 and later
  3235. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3236. * Windows: in qtmlClient.lib 3.0 and later
  3237. }
  3238. function GraphicsImportSetClip( ci: GraphicsImportComponent; clipRgn: RgnHandle ): ComponentResult; external name '_GraphicsImportSetClip';
  3239. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3240. {
  3241. * GraphicsImportGetClip()
  3242. *
  3243. * Availability:
  3244. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3245. * CarbonLib: in CarbonLib 1.0 and later
  3246. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3247. * Windows: in qtmlClient.lib 3.0 and later
  3248. }
  3249. function GraphicsImportGetClip( ci: GraphicsImportComponent; var clipRgn: RgnHandle ): ComponentResult; external name '_GraphicsImportGetClip';
  3250. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3251. {
  3252. * GraphicsImportSetSourceRect()
  3253. *
  3254. * Availability:
  3255. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3256. * CarbonLib: in CarbonLib 1.0 and later
  3257. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3258. * Windows: in qtmlClient.lib 3.0 and later
  3259. }
  3260. function GraphicsImportSetSourceRect( ci: GraphicsImportComponent; const (*var*) sourceRect: Rect ): ComponentResult; external name '_GraphicsImportSetSourceRect';
  3261. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3262. {
  3263. * GraphicsImportGetSourceRect()
  3264. *
  3265. * Availability:
  3266. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3267. * CarbonLib: in CarbonLib 1.0 and later
  3268. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3269. * Windows: in qtmlClient.lib 3.0 and later
  3270. }
  3271. function GraphicsImportGetSourceRect( ci: GraphicsImportComponent; var sourceRect: Rect ): ComponentResult; external name '_GraphicsImportGetSourceRect';
  3272. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3273. {
  3274. * GraphicsImportGetNaturalBounds()
  3275. *
  3276. * Availability:
  3277. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3278. * CarbonLib: in CarbonLib 1.0 and later
  3279. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3280. * Windows: in qtmlClient.lib 3.0 and later
  3281. }
  3282. function GraphicsImportGetNaturalBounds( ci: GraphicsImportComponent; var naturalBounds: Rect ): ComponentResult; external name '_GraphicsImportGetNaturalBounds';
  3283. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3284. {
  3285. * GraphicsImportDraw()
  3286. *
  3287. * Availability:
  3288. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3289. * CarbonLib: in CarbonLib 1.0 and later
  3290. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3291. * Windows: in qtmlClient.lib 3.0 and later
  3292. }
  3293. function GraphicsImportDraw( ci: GraphicsImportComponent ): ComponentResult; external name '_GraphicsImportDraw';
  3294. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3295. {
  3296. * GraphicsImportSetGWorld()
  3297. *
  3298. * Availability:
  3299. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3300. * CarbonLib: in CarbonLib 1.0 and later
  3301. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3302. * Windows: in qtmlClient.lib 3.0 and later
  3303. }
  3304. function GraphicsImportSetGWorld( ci: GraphicsImportComponent; port: CGrafPtr; gd: GDHandle ): ComponentResult; external name '_GraphicsImportSetGWorld';
  3305. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3306. {
  3307. * GraphicsImportGetGWorld()
  3308. *
  3309. * Availability:
  3310. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3311. * CarbonLib: in CarbonLib 1.0 and later
  3312. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3313. * Windows: in qtmlClient.lib 3.0 and later
  3314. }
  3315. function GraphicsImportGetGWorld( ci: GraphicsImportComponent; var port: CGrafPtr; var gd: GDHandle ): ComponentResult; external name '_GraphicsImportGetGWorld';
  3316. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3317. {
  3318. * GraphicsImportSetMatrix()
  3319. *
  3320. * Availability:
  3321. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3322. * CarbonLib: in CarbonLib 1.0 and later
  3323. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3324. * Windows: in qtmlClient.lib 3.0 and later
  3325. }
  3326. function GraphicsImportSetMatrix( ci: GraphicsImportComponent; const (*var*) matrix: MatrixRecord ): ComponentResult; external name '_GraphicsImportSetMatrix';
  3327. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3328. {
  3329. * GraphicsImportGetMatrix()
  3330. *
  3331. * Availability:
  3332. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3333. * CarbonLib: in CarbonLib 1.0 and later
  3334. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3335. * Windows: in qtmlClient.lib 3.0 and later
  3336. }
  3337. function GraphicsImportGetMatrix( ci: GraphicsImportComponent; var matrix: MatrixRecord ): ComponentResult; external name '_GraphicsImportGetMatrix';
  3338. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3339. {
  3340. * GraphicsImportSetBoundsRect()
  3341. *
  3342. * Availability:
  3343. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3344. * CarbonLib: in CarbonLib 1.0 and later
  3345. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3346. * Windows: in qtmlClient.lib 3.0 and later
  3347. }
  3348. function GraphicsImportSetBoundsRect( ci: GraphicsImportComponent; const (*var*) bounds: Rect ): ComponentResult; external name '_GraphicsImportSetBoundsRect';
  3349. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3350. {
  3351. * GraphicsImportGetBoundsRect()
  3352. *
  3353. * Availability:
  3354. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3355. * CarbonLib: in CarbonLib 1.0 and later
  3356. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3357. * Windows: in qtmlClient.lib 3.0 and later
  3358. }
  3359. function GraphicsImportGetBoundsRect( ci: GraphicsImportComponent; var bounds: Rect ): ComponentResult; external name '_GraphicsImportGetBoundsRect';
  3360. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3361. {
  3362. * GraphicsImportSaveAsPicture()
  3363. *
  3364. * Availability:
  3365. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3366. * CarbonLib: in CarbonLib 1.0 and later
  3367. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3368. * Windows: in qtmlClient.lib 3.0 and later
  3369. }
  3370. function GraphicsImportSaveAsPicture( ci: GraphicsImportComponent; const (*var*) fss: FSSpec; scriptTag: ScriptCode ): ComponentResult; external name '_GraphicsImportSaveAsPicture';
  3371. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3372. {
  3373. * GraphicsImportSetGraphicsMode()
  3374. *
  3375. * Availability:
  3376. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3377. * CarbonLib: in CarbonLib 1.0 and later
  3378. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3379. * Windows: in qtmlClient.lib 3.0 and later
  3380. }
  3381. function GraphicsImportSetGraphicsMode( ci: GraphicsImportComponent; graphicsMode: SIGNEDLONG; const (*var*) opColor: RGBColor ): ComponentResult; external name '_GraphicsImportSetGraphicsMode';
  3382. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3383. {
  3384. * GraphicsImportGetGraphicsMode()
  3385. *
  3386. * Availability:
  3387. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3388. * CarbonLib: in CarbonLib 1.0 and later
  3389. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3390. * Windows: in qtmlClient.lib 3.0 and later
  3391. }
  3392. function GraphicsImportGetGraphicsMode( ci: GraphicsImportComponent; var graphicsMode: SIGNEDLONG; var opColor: RGBColor ): ComponentResult; external name '_GraphicsImportGetGraphicsMode';
  3393. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3394. {
  3395. * GraphicsImportSetQuality()
  3396. *
  3397. * Availability:
  3398. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3399. * CarbonLib: in CarbonLib 1.0 and later
  3400. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3401. * Windows: in qtmlClient.lib 3.0 and later
  3402. }
  3403. function GraphicsImportSetQuality( ci: GraphicsImportComponent; quality: CodecQ ): ComponentResult; external name '_GraphicsImportSetQuality';
  3404. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3405. {
  3406. * GraphicsImportGetQuality()
  3407. *
  3408. * Availability:
  3409. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3410. * CarbonLib: in CarbonLib 1.0 and later
  3411. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3412. * Windows: in qtmlClient.lib 3.0 and later
  3413. }
  3414. function GraphicsImportGetQuality( ci: GraphicsImportComponent; var quality: CodecQ ): ComponentResult; external name '_GraphicsImportGetQuality';
  3415. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3416. {
  3417. * GraphicsImportSaveAsQuickTimeImageFile()
  3418. *
  3419. * Availability:
  3420. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3421. * CarbonLib: in CarbonLib 1.0 and later
  3422. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3423. * Windows: in qtmlClient.lib 3.0 and later
  3424. }
  3425. function GraphicsImportSaveAsQuickTimeImageFile( ci: GraphicsImportComponent; const (*var*) fss: FSSpec; scriptTag: ScriptCode ): ComponentResult; external name '_GraphicsImportSaveAsQuickTimeImageFile';
  3426. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3427. {
  3428. * GraphicsImportSetDataReferenceOffsetAndLimit()
  3429. *
  3430. * Availability:
  3431. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3432. * CarbonLib: in CarbonLib 1.0 and later
  3433. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3434. * Windows: in qtmlClient.lib 3.0 and later
  3435. }
  3436. function GraphicsImportSetDataReferenceOffsetAndLimit( ci: GraphicsImportComponent; offset: UNSIGNEDLONG; limit: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportSetDataReferenceOffsetAndLimit';
  3437. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3438. {
  3439. * GraphicsImportGetDataReferenceOffsetAndLimit()
  3440. *
  3441. * Availability:
  3442. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3443. * CarbonLib: in CarbonLib 1.0 and later
  3444. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3445. * Windows: in qtmlClient.lib 3.0 and later
  3446. }
  3447. function GraphicsImportGetDataReferenceOffsetAndLimit( ci: GraphicsImportComponent; var offset: UNSIGNEDLONG; var limit: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportGetDataReferenceOffsetAndLimit';
  3448. {
  3449. * GraphicsImportGetAliasedDataReference()
  3450. *
  3451. * Availability:
  3452. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3453. * CarbonLib: in CarbonLib 1.0 and later
  3454. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3455. * Windows: in qtmlClient.lib 3.0 and later
  3456. }
  3457. function GraphicsImportGetAliasedDataReference( ci: GraphicsImportComponent; var dataRef: Handle; var dataRefType: OSType ): ComponentResult; external name '_GraphicsImportGetAliasedDataReference';
  3458. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3459. {
  3460. * GraphicsImportValidate()
  3461. *
  3462. * Availability:
  3463. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3464. * CarbonLib: in CarbonLib 1.0 and later
  3465. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  3466. * Windows: in qtmlClient.lib 3.0 and later
  3467. }
  3468. function GraphicsImportValidate( ci: GraphicsImportComponent; var valid: Boolean ): ComponentResult; external name '_GraphicsImportValidate';
  3469. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3470. {
  3471. * GraphicsImportGetMetaData()
  3472. *
  3473. * Availability:
  3474. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3475. * CarbonLib: in CarbonLib 1.0 and later
  3476. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3477. * Windows: in qtmlClient.lib 3.0 and later
  3478. }
  3479. function GraphicsImportGetMetaData( ci: GraphicsImportComponent; userData: UnivPtr ): ComponentResult; external name '_GraphicsImportGetMetaData';
  3480. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3481. {
  3482. * GraphicsImportGetMIMETypeList()
  3483. *
  3484. * Availability:
  3485. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3486. * CarbonLib: in CarbonLib 1.0 and later
  3487. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3488. * Windows: in qtmlClient.lib 3.0 and later
  3489. }
  3490. function GraphicsImportGetMIMETypeList( ci: GraphicsImportComponent; qtAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsImportGetMIMETypeList';
  3491. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3492. {
  3493. * GraphicsImportDoesDrawAllPixels()
  3494. *
  3495. * Availability:
  3496. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3497. * CarbonLib: in CarbonLib 1.0 and later
  3498. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3499. * Windows: in qtmlClient.lib 3.0 and later
  3500. }
  3501. function GraphicsImportDoesDrawAllPixels( ci: GraphicsImportComponent; var drawsAllPixels: SInt16 ): ComponentResult; external name '_GraphicsImportDoesDrawAllPixels';
  3502. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3503. {
  3504. * GraphicsImportGetAsPicture()
  3505. *
  3506. * Availability:
  3507. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3508. * CarbonLib: in CarbonLib 1.0 and later
  3509. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3510. * Windows: in qtmlClient.lib 3.0 and later
  3511. }
  3512. function GraphicsImportGetAsPicture( ci: GraphicsImportComponent; var picture: PicHandle ): ComponentResult; external name '_GraphicsImportGetAsPicture';
  3513. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3514. {
  3515. * GraphicsImportExportImageFile()
  3516. *
  3517. * Availability:
  3518. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3519. * CarbonLib: in CarbonLib 1.0 and later
  3520. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3521. * Windows: in qtmlClient.lib 3.0 and later
  3522. }
  3523. function GraphicsImportExportImageFile( ci: GraphicsImportComponent; fileType: OSType; fileCreator: OSType; const (*var*) fss: FSSpec; scriptTag: ScriptCode ): ComponentResult; external name '_GraphicsImportExportImageFile';
  3524. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3525. {
  3526. * GraphicsImportGetExportImageTypeList()
  3527. *
  3528. * Availability:
  3529. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3530. * CarbonLib: in CarbonLib 1.0 and later
  3531. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3532. * Windows: in qtmlClient.lib 3.0 and later
  3533. }
  3534. function GraphicsImportGetExportImageTypeList( ci: GraphicsImportComponent; qtAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsImportGetExportImageTypeList';
  3535. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3536. {
  3537. * GraphicsImportDoExportImageFileDialog()
  3538. *
  3539. * Availability:
  3540. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3541. * CarbonLib: in CarbonLib 1.0 and later
  3542. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3543. * Windows: in qtmlClient.lib 3.0 and later
  3544. }
  3545. function GraphicsImportDoExportImageFileDialog( ci: GraphicsImportComponent; const (*var*) inDefaultSpec: FSSpec; prompt: StringPtr; filterProc: ModalFilterYDUPP; var outExportedType: OSType; var outExportedSpec: FSSpec; var outScriptTag: ScriptCode ): ComponentResult; external name '_GraphicsImportDoExportImageFileDialog';
  3546. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3547. {
  3548. * GraphicsImportGetExportSettingsAsAtomContainer()
  3549. *
  3550. * Availability:
  3551. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3552. * CarbonLib: in CarbonLib 1.0 and later
  3553. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3554. * Windows: in qtmlClient.lib 3.0 and later
  3555. }
  3556. function GraphicsImportGetExportSettingsAsAtomContainer( ci: GraphicsImportComponent; qtAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsImportGetExportSettingsAsAtomContainer';
  3557. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3558. {
  3559. * GraphicsImportSetExportSettingsFromAtomContainer()
  3560. *
  3561. * Availability:
  3562. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3563. * CarbonLib: in CarbonLib 1.0 and later
  3564. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3565. * Windows: in qtmlClient.lib 3.0 and later
  3566. }
  3567. function GraphicsImportSetExportSettingsFromAtomContainer( ci: GraphicsImportComponent; qtAtomContainer: UnivPtr ): ComponentResult; external name '_GraphicsImportSetExportSettingsFromAtomContainer';
  3568. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3569. {
  3570. * GraphicsImportSetProgressProc()
  3571. *
  3572. * Availability:
  3573. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3574. * CarbonLib: in CarbonLib 1.0 and later
  3575. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3576. * Windows: in qtmlClient.lib 3.0 and later
  3577. }
  3578. function GraphicsImportSetProgressProc( ci: GraphicsImportComponent; progressProc: ICMProgressProcRecordPtr ): ComponentResult; external name '_GraphicsImportSetProgressProc';
  3579. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3580. {
  3581. * GraphicsImportGetProgressProc()
  3582. *
  3583. * Availability:
  3584. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3585. * CarbonLib: in CarbonLib 1.0 and later
  3586. * Non-Carbon CFM: in QuickTimeLib 3.0 and later
  3587. * Windows: in qtmlClient.lib 3.0 and later
  3588. }
  3589. function GraphicsImportGetProgressProc( ci: GraphicsImportComponent; progressProc: ICMProgressProcRecordPtr ): ComponentResult; external name '_GraphicsImportGetProgressProc';
  3590. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3591. {
  3592. * GraphicsImportGetImageCount()
  3593. *
  3594. * Availability:
  3595. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3596. * CarbonLib: in CarbonLib 1.0.2 and later
  3597. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3598. * Windows: in qtmlClient.lib 4.0 and later
  3599. }
  3600. function GraphicsImportGetImageCount( ci: GraphicsImportComponent; var imageCount: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportGetImageCount';
  3601. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3602. {
  3603. * GraphicsImportSetImageIndex()
  3604. *
  3605. * Availability:
  3606. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3607. * CarbonLib: in CarbonLib 1.0.2 and later
  3608. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3609. * Windows: in qtmlClient.lib 4.0 and later
  3610. }
  3611. function GraphicsImportSetImageIndex( ci: GraphicsImportComponent; imageIndex: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportSetImageIndex';
  3612. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3613. {
  3614. * GraphicsImportGetImageIndex()
  3615. *
  3616. * Availability:
  3617. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3618. * CarbonLib: in CarbonLib 1.0.2 and later
  3619. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3620. * Windows: in qtmlClient.lib 4.0 and later
  3621. }
  3622. function GraphicsImportGetImageIndex( ci: GraphicsImportComponent; var imageIndex: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportGetImageIndex';
  3623. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3624. {
  3625. * GraphicsImportGetDataOffsetAndSize64()
  3626. *
  3627. * Availability:
  3628. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3629. * CarbonLib: in CarbonLib 1.0.2 and later
  3630. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3631. * Windows: in qtmlClient.lib 4.0 and later
  3632. }
  3633. function GraphicsImportGetDataOffsetAndSize64( ci: GraphicsImportComponent; var offset: wide; var size: wide ): ComponentResult; external name '_GraphicsImportGetDataOffsetAndSize64';
  3634. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3635. {
  3636. * GraphicsImportReadData64()
  3637. *
  3638. * Availability:
  3639. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3640. * CarbonLib: in CarbonLib 1.0.2 and later
  3641. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3642. * Windows: in qtmlClient.lib 4.0 and later
  3643. }
  3644. function GraphicsImportReadData64( ci: GraphicsImportComponent; dataPtr: UnivPtr; const (*var*) dataOffset: wide; dataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsImportReadData64';
  3645. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3646. {
  3647. * GraphicsImportSetDataReferenceOffsetAndLimit64()
  3648. *
  3649. * Availability:
  3650. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3651. * CarbonLib: in CarbonLib 1.0.2 and later
  3652. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3653. * Windows: in qtmlClient.lib 4.0 and later
  3654. }
  3655. function GraphicsImportSetDataReferenceOffsetAndLimit64( ci: GraphicsImportComponent; const (*var*) offset: wide; const (*var*) limit: wide ): ComponentResult; external name '_GraphicsImportSetDataReferenceOffsetAndLimit64';
  3656. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3657. {
  3658. * GraphicsImportGetDataReferenceOffsetAndLimit64()
  3659. *
  3660. * Availability:
  3661. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3662. * CarbonLib: in CarbonLib 1.0.2 and later
  3663. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3664. * Windows: in qtmlClient.lib 4.0 and later
  3665. }
  3666. function GraphicsImportGetDataReferenceOffsetAndLimit64( ci: GraphicsImportComponent; var offset: wide; var limit: wide ): ComponentResult; external name '_GraphicsImportGetDataReferenceOffsetAndLimit64';
  3667. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3668. {
  3669. * GraphicsImportGetDefaultMatrix()
  3670. *
  3671. * Availability:
  3672. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3673. * CarbonLib: in CarbonLib 1.0.2 and later
  3674. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3675. * Windows: in qtmlClient.lib 4.0 and later
  3676. }
  3677. function GraphicsImportGetDefaultMatrix( ci: GraphicsImportComponent; var defaultMatrix: MatrixRecord ): ComponentResult; external name '_GraphicsImportGetDefaultMatrix';
  3678. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3679. {
  3680. * GraphicsImportGetDefaultClip()
  3681. *
  3682. * Availability:
  3683. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3684. * CarbonLib: in CarbonLib 1.0.2 and later
  3685. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3686. * Windows: in qtmlClient.lib 4.0 and later
  3687. }
  3688. function GraphicsImportGetDefaultClip( ci: GraphicsImportComponent; var defaultRgn: RgnHandle ): ComponentResult; external name '_GraphicsImportGetDefaultClip';
  3689. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3690. {
  3691. * GraphicsImportGetDefaultGraphicsMode()
  3692. *
  3693. * Availability:
  3694. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3695. * CarbonLib: in CarbonLib 1.0.2 and later
  3696. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3697. * Windows: in qtmlClient.lib 4.0 and later
  3698. }
  3699. function GraphicsImportGetDefaultGraphicsMode( ci: GraphicsImportComponent; var defaultGraphicsMode: SIGNEDLONG; var defaultOpColor: RGBColor ): ComponentResult; external name '_GraphicsImportGetDefaultGraphicsMode';
  3700. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3701. {
  3702. * GraphicsImportGetDefaultSourceRect()
  3703. *
  3704. * Availability:
  3705. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3706. * CarbonLib: in CarbonLib 1.0.2 and later
  3707. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3708. * Windows: in qtmlClient.lib 4.0 and later
  3709. }
  3710. function GraphicsImportGetDefaultSourceRect( ci: GraphicsImportComponent; var defaultSourceRect: Rect ): ComponentResult; external name '_GraphicsImportGetDefaultSourceRect';
  3711. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3712. {
  3713. * GraphicsImportGetColorSyncProfile()
  3714. *
  3715. * Availability:
  3716. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3717. * CarbonLib: in CarbonLib 1.0.2 and later
  3718. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3719. * Windows: in qtmlClient.lib 4.0 and later
  3720. }
  3721. function GraphicsImportGetColorSyncProfile( ci: GraphicsImportComponent; var profile: Handle ): ComponentResult; external name '_GraphicsImportGetColorSyncProfile';
  3722. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3723. {
  3724. * GraphicsImportSetDestRect()
  3725. *
  3726. * Availability:
  3727. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3728. * CarbonLib: in CarbonLib 1.0.2 and later
  3729. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3730. * Windows: in qtmlClient.lib 4.0 and later
  3731. }
  3732. function GraphicsImportSetDestRect( ci: GraphicsImportComponent; const (*var*) destRect: Rect ): ComponentResult; external name '_GraphicsImportSetDestRect';
  3733. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3734. {
  3735. * GraphicsImportGetDestRect()
  3736. *
  3737. * Availability:
  3738. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3739. * CarbonLib: in CarbonLib 1.0.2 and later
  3740. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3741. * Windows: in qtmlClient.lib 4.0 and later
  3742. }
  3743. function GraphicsImportGetDestRect( ci: GraphicsImportComponent; var destRect: Rect ): ComponentResult; external name '_GraphicsImportGetDestRect';
  3744. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3745. {
  3746. * GraphicsImportSetFlags()
  3747. *
  3748. * Availability:
  3749. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3750. * CarbonLib: in CarbonLib 1.0.2 and later
  3751. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3752. * Windows: in qtmlClient.lib 4.0 and later
  3753. }
  3754. function GraphicsImportSetFlags( ci: GraphicsImportComponent; flags: SIGNEDLONG ): ComponentResult; external name '_GraphicsImportSetFlags';
  3755. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3756. {
  3757. * GraphicsImportGetFlags()
  3758. *
  3759. * Availability:
  3760. * Mac OS X: in version 10.0 and later in QuickTime.framework
  3761. * CarbonLib: in CarbonLib 1.0.2 and later
  3762. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  3763. * Windows: in qtmlClient.lib 4.0 and later
  3764. }
  3765. function GraphicsImportGetFlags( ci: GraphicsImportComponent; var flags: SIGNEDLONG ): ComponentResult; external name '_GraphicsImportGetFlags';
  3766. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  3767. { 2 private selectors }
  3768. {
  3769. * GraphicsImportGetBaseDataOffsetAndSize64()
  3770. *
  3771. * Availability:
  3772. * Mac OS X: in version 10.1 and later in QuickTime.framework
  3773. * CarbonLib: in CarbonLib 1.4 and later
  3774. * Non-Carbon CFM: in QuickTimeLib 5.0.2 and later
  3775. * Windows: in qtmlClient.lib 5.0.2 and later
  3776. }
  3777. function GraphicsImportGetBaseDataOffsetAndSize64( ci: GraphicsImportComponent; var offset: wide; var size: wide ): ComponentResult; external name '_GraphicsImportGetBaseDataOffsetAndSize64';
  3778. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  3779. {
  3780. * GraphicsImportSetImageIndexToThumbnail()
  3781. *
  3782. * Availability:
  3783. * Mac OS X: in version 10.2 and later in QuickTime.framework
  3784. * CarbonLib: in CarbonLib 1.6 and later
  3785. * Non-Carbon CFM: in QuickTimeLib 6.0 and later
  3786. * Windows: in qtmlClient.lib 6.0 and later
  3787. }
  3788. function GraphicsImportSetImageIndexToThumbnail( ci: GraphicsImportComponent ): ComponentResult; external name '_GraphicsImportSetImageIndexToThumbnail';
  3789. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  3790. {$ifc TARGET_API_MAC_OSX}
  3791. {
  3792. * GraphicsImportCreateCGImage()
  3793. *
  3794. * Availability:
  3795. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3796. * CarbonLib: not available
  3797. * Non-Carbon CFM: not available
  3798. }
  3799. function GraphicsImportCreateCGImage( ci: GraphicsImportComponent; var imageRefOut: CGImageRef; flags: UInt32 ): ComponentResult; external name '_GraphicsImportCreateCGImage';
  3800. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3801. {$endc} {TARGET_API_MAC_OSX}
  3802. {
  3803. * GraphicsImportSaveAsPictureToDataRef()
  3804. *
  3805. * Availability:
  3806. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3807. * CarbonLib: not available
  3808. * Non-Carbon CFM: not available
  3809. * Windows: in qtmlClient.lib 6.5 and later
  3810. }
  3811. function GraphicsImportSaveAsPictureToDataRef( ci: GraphicsImportComponent; dataRef: Handle; dataRefType: OSType ): ComponentResult; external name '_GraphicsImportSaveAsPictureToDataRef';
  3812. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3813. {
  3814. * GraphicsImportSaveAsQuickTimeImageFileToDataRef()
  3815. *
  3816. * Availability:
  3817. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3818. * CarbonLib: not available
  3819. * Non-Carbon CFM: not available
  3820. * Windows: in qtmlClient.lib 6.5 and later
  3821. }
  3822. function GraphicsImportSaveAsQuickTimeImageFileToDataRef( ci: GraphicsImportComponent; dataRef: Handle; dataRefType: OSType ): ComponentResult; external name '_GraphicsImportSaveAsQuickTimeImageFileToDataRef';
  3823. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3824. {
  3825. * GraphicsImportExportImageFileToDataRef()
  3826. *
  3827. * Availability:
  3828. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3829. * CarbonLib: not available
  3830. * Non-Carbon CFM: not available
  3831. * Windows: in qtmlClient.lib 6.5 and later
  3832. }
  3833. function GraphicsImportExportImageFileToDataRef( ci: GraphicsImportComponent; fileType: OSType; fileCreator: OSType; dataRef: Handle; dataRefType: OSType ): ComponentResult; external name '_GraphicsImportExportImageFileToDataRef';
  3834. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3835. {
  3836. * GraphicsImportDoExportImageFileToDataRefDialog()
  3837. *
  3838. * Availability:
  3839. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3840. * CarbonLib: not available
  3841. * Non-Carbon CFM: not available
  3842. * Windows: in qtmlClient.lib 6.5 and later
  3843. }
  3844. function GraphicsImportDoExportImageFileToDataRefDialog( ci: GraphicsImportComponent; inDataRef: Handle; inDataRefType: OSType; prompt: CFStringRef; filterProc: ModalFilterYDUPP; var outExportedType: OSType; var outDataRef: Handle; var outDataRefType: OSType ): ComponentResult; external name '_GraphicsImportDoExportImageFileToDataRefDialog';
  3845. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3846. {$ifc TARGET_API_MAC_OSX}
  3847. { NOTE: If the source override ColorSync profile is NULL, then the image's ColorSync profile may be used if available, otherwise a generic ColorSync profile may be used. }
  3848. {
  3849. * GraphicsImportSetOverrideSourceColorSyncProfileRef()
  3850. *
  3851. * Availability:
  3852. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3853. * CarbonLib: not available
  3854. * Non-Carbon CFM: not available
  3855. }
  3856. function GraphicsImportSetOverrideSourceColorSyncProfileRef( ci: GraphicsImportComponent; newOverrideSourceProfileRef: CMProfileRef ): ComponentResult; external name '_GraphicsImportSetOverrideSourceColorSyncProfileRef';
  3857. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3858. {
  3859. * GraphicsImportGetOverrideSourceColorSyncProfileRef()
  3860. *
  3861. * Availability:
  3862. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3863. * CarbonLib: not available
  3864. * Non-Carbon CFM: not available
  3865. }
  3866. function GraphicsImportGetOverrideSourceColorSyncProfileRef( ci: GraphicsImportComponent; var outOverrideSourceProfileRef: CMProfileRef ): ComponentResult; external name '_GraphicsImportGetOverrideSourceColorSyncProfileRef';
  3867. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3868. { NOTE: If the destination ColorSync profile is NULL, then a generic ColorSync profile may be used. }
  3869. {
  3870. * GraphicsImportSetDestinationColorSyncProfileRef()
  3871. *
  3872. * Availability:
  3873. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3874. * CarbonLib: not available
  3875. * Non-Carbon CFM: not available
  3876. }
  3877. function GraphicsImportSetDestinationColorSyncProfileRef( ci: GraphicsImportComponent; newDestinationProfileRef: CMProfileRef ): ComponentResult; external name '_GraphicsImportSetDestinationColorSyncProfileRef';
  3878. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3879. {
  3880. * GraphicsImportGetDestinationColorSyncProfileRef()
  3881. *
  3882. * Availability:
  3883. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3884. * CarbonLib: not available
  3885. * Non-Carbon CFM: not available
  3886. }
  3887. function GraphicsImportGetDestinationColorSyncProfileRef( ci: GraphicsImportComponent; var destinationProfileRef: CMProfileRef ): ComponentResult; external name '_GraphicsImportGetDestinationColorSyncProfileRef';
  3888. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3889. {$endc} {TARGET_API_MAC_OSX}
  3890. {
  3891. * GraphicsImportWillUseColorMatching()
  3892. *
  3893. * Availability:
  3894. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3895. * CarbonLib: not available
  3896. * Non-Carbon CFM: not available
  3897. * Windows: in qtmlClient.lib 6.5 and later
  3898. }
  3899. function GraphicsImportWillUseColorMatching( ci: GraphicsImportComponent; var outWillMatch: Boolean ): ComponentResult; external name '_GraphicsImportWillUseColorMatching';
  3900. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3901. {$ifc TARGET_API_MAC_OSX}
  3902. { This convenience API is implemented by the base graphics importer for format-specific importers. }
  3903. {
  3904. * GraphicsImportGetGenericColorSyncProfile()
  3905. *
  3906. * Availability:
  3907. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3908. * CarbonLib: not available
  3909. * Non-Carbon CFM: not available
  3910. }
  3911. function GraphicsImportGetGenericColorSyncProfile( ci: GraphicsImportComponent; pixelFormat: OSType; reservedSetToNULL: UnivPtr; flags: UInt32; var genericColorSyncProfileOut: Handle ): ComponentResult; external name '_GraphicsImportGetGenericColorSyncProfile';
  3912. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3913. {$endc} {TARGET_API_MAC_OSX}
  3914. { Format-specific importers that implement GetColorSyncProfile and that want the base graphics
  3915. importer to automatically support ColorSync matching should:
  3916. (a) implement GraphicsImportSetReturnGenericColorSyncProfile; when it is called, set an internal flag
  3917. (b) change GraphicsImportGetColorSyncProfile so that, if this internal flag is set,
  3918. when the source image file contains a profile
  3919. and the kGraphicsImporterDontUseColorMatching flag is NOT set,
  3920. it returns a generic profile of the appropriate colorspace instead.
  3921. Other importers should *not* implement GraphicsImportSetReturnGenericColorSyncProfile. }
  3922. { WARNING: Applications should not call this API; it is internal graphics importer plumbing.
  3923. Set kGraphicsImporterDontUseColorMatching instead. }
  3924. {
  3925. * GraphicsImportSetReturnGenericColorSyncProfile()
  3926. *
  3927. * Availability:
  3928. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3929. * CarbonLib: not available
  3930. * Non-Carbon CFM: not available
  3931. * Windows: in qtmlClient.lib 6.5 and later
  3932. }
  3933. function GraphicsImportSetReturnGenericColorSyncProfile( ci: GraphicsImportComponent; returnGenericProfilesUnlessDontMatchFlagSet: Boolean ): ComponentResult; external name '_GraphicsImportSetReturnGenericColorSyncProfile';
  3934. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3935. { WARNING: Applications should not call this API; it is internal graphics importer plumbing. }
  3936. {
  3937. * GraphicsImportGetReturnGenericColorSyncProfile()
  3938. *
  3939. * Availability:
  3940. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  3941. * CarbonLib: not available
  3942. * Non-Carbon CFM: not available
  3943. * Windows: in qtmlClient.lib 6.5 and later
  3944. }
  3945. function GraphicsImportGetReturnGenericColorSyncProfile( ci: GraphicsImportComponent; var returnGenericProfilesUnlessDontMatchFlagSet: Boolean ): ComponentResult; external name '_GraphicsImportGetReturnGenericColorSyncProfile';
  3946. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  3947. type
  3948. GraphicsExportComponent = ComponentInstance;
  3949. const
  3950. GraphicsExporterComponentType = FourCharCode('grex');
  3951. kBaseGraphicsExporterSubType = FourCharCode('base');
  3952. { Component flags for Graphics Exporter components }
  3953. const
  3954. graphicsExporterIsBaseExporter = 1 shl 0;
  3955. graphicsExporterCanTranscode = 1 shl 1;
  3956. graphicsExporterUsesImageCompressor = 1 shl 2;
  3957. type
  3958. QTResolutionSettingsPtr = ^QTResolutionSettings;
  3959. QTResolutionSettings = record
  3960. horizontalResolution: Fixed;
  3961. verticalResolution: Fixed;
  3962. end;
  3963. type
  3964. QTTargetDataSizePtr = ^QTTargetDataSize;
  3965. QTTargetDataSize = record
  3966. targetDataSize: UNSIGNEDLONG;
  3967. end;
  3968. type
  3969. QTThumbnailSettingsPtr = ^QTThumbnailSettings;
  3970. QTThumbnailSettings = record
  3971. enableThumbnail: SIGNEDLONG; { a thoroughly padded Boolean}
  3972. maxThumbnailWidth: SIGNEDLONG; { set to zero to let someone else decide}
  3973. maxThumbnailHeight: SIGNEDLONG; { set to zero to let someone else decide}
  3974. end;
  3975. const
  3976. kQTResolutionSettings = FourCharCode('reso');
  3977. kQTTargetDataSize = FourCharCode('dasz');
  3978. kQTDontRecompress = FourCharCode('dntr');
  3979. kQTInterlaceStyle = FourCharCode('ilac');
  3980. kQTColorSyncProfile = FourCharCode('iccp');
  3981. kQTThumbnailSettings = FourCharCode('thum');
  3982. kQTEnableExif = FourCharCode('exif'); { UInt8 (boolean)}
  3983. kQTMetaData = FourCharCode('meta');
  3984. const
  3985. kQTTIFFCompressionMethod = FourCharCode('tifc'); { UInt32}
  3986. kQTTIFFCompression_None = 1;
  3987. kQTTIFFCompression_PackBits = 32773;
  3988. kQTTIFFLittleEndian = FourCharCode('tife'); { UInt8 (boolean)}
  3989. const
  3990. kQTPNGFilterPreference = FourCharCode('pngf'); { UInt32}
  3991. kQTPNGFilterBestForColorType = FourCharCode('bflt');
  3992. kQTPNGFilterNone = 0;
  3993. kQTPNGFilterSub = 1;
  3994. kQTPNGFilterUp = 2;
  3995. kQTPNGFilterAverage = 3;
  3996. kQTPNGFilterPaeth = 4;
  3997. kQTPNGFilterAdaptivePerRow = FourCharCode('aflt');
  3998. kQTPNGInterlaceStyle = FourCharCode('ilac'); { UInt32}
  3999. kQTPNGInterlaceNone = 0;
  4000. kQTPNGInterlaceAdam7 = 1;
  4001. const
  4002. kQTJPEGQuantizationTables = FourCharCode('jpqt');
  4003. kQTJPEGHuffmanTables = FourCharCode('jpht');
  4004. {* These are GraphicsExport procedures *}
  4005. { To use: set the input and output (and other settings as desired) and call GEDoExport. }
  4006. {
  4007. * GraphicsExportDoExport()
  4008. *
  4009. * Availability:
  4010. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4011. * CarbonLib: in CarbonLib 1.0.2 and later
  4012. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4013. * Windows: in qtmlClient.lib 4.0 and later
  4014. }
  4015. function GraphicsExportDoExport( ci: GraphicsExportComponent; var actualSizeWritten: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportDoExport';
  4016. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4017. { Used for internal communication between the base and format-specific graphics exporter: }
  4018. {
  4019. * GraphicsExportCanTranscode()
  4020. *
  4021. * Availability:
  4022. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4023. * CarbonLib: in CarbonLib 1.0.2 and later
  4024. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4025. * Windows: in qtmlClient.lib 4.0 and later
  4026. }
  4027. function GraphicsExportCanTranscode( ci: GraphicsExportComponent; var canTranscode: Boolean ): ComponentResult; external name '_GraphicsExportCanTranscode';
  4028. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4029. {
  4030. * GraphicsExportDoTranscode()
  4031. *
  4032. * Availability:
  4033. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4034. * CarbonLib: in CarbonLib 1.0.2 and later
  4035. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4036. * Windows: in qtmlClient.lib 4.0 and later
  4037. }
  4038. function GraphicsExportDoTranscode( ci: GraphicsExportComponent ): ComponentResult; external name '_GraphicsExportDoTranscode';
  4039. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4040. {
  4041. * GraphicsExportCanUseCompressor()
  4042. *
  4043. * Availability:
  4044. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4045. * CarbonLib: in CarbonLib 1.0.2 and later
  4046. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4047. * Windows: in qtmlClient.lib 4.0 and later
  4048. }
  4049. function GraphicsExportCanUseCompressor( ci: GraphicsExportComponent; var canUseCompressor: Boolean; codecSettingsAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsExportCanUseCompressor';
  4050. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4051. {
  4052. * GraphicsExportDoUseCompressor()
  4053. *
  4054. * Availability:
  4055. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4056. * CarbonLib: in CarbonLib 1.0.2 and later
  4057. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4058. * Windows: in qtmlClient.lib 4.0 and later
  4059. }
  4060. function GraphicsExportDoUseCompressor( ci: GraphicsExportComponent; codecSettingsAtomContainer: UnivPtr; var outDesc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportDoUseCompressor';
  4061. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4062. {
  4063. * GraphicsExportDoStandaloneExport()
  4064. *
  4065. * Availability:
  4066. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4067. * CarbonLib: in CarbonLib 1.0.2 and later
  4068. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4069. * Windows: in qtmlClient.lib 4.0 and later
  4070. }
  4071. function GraphicsExportDoStandaloneExport( ci: GraphicsExportComponent ): ComponentResult; external name '_GraphicsExportDoStandaloneExport';
  4072. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4073. { Queries applications can make of a format-specific graphics exporter: }
  4074. {
  4075. * GraphicsExportGetDefaultFileTypeAndCreator()
  4076. *
  4077. * Availability:
  4078. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4079. * CarbonLib: in CarbonLib 1.0.2 and later
  4080. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4081. * Windows: in qtmlClient.lib 4.0 and later
  4082. }
  4083. function GraphicsExportGetDefaultFileTypeAndCreator( ci: GraphicsExportComponent; var fileType: OSType; var fileCreator: OSType ): ComponentResult; external name '_GraphicsExportGetDefaultFileTypeAndCreator';
  4084. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4085. {
  4086. * GraphicsExportGetDefaultFileNameExtension()
  4087. *
  4088. * Availability:
  4089. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4090. * CarbonLib: in CarbonLib 1.0.2 and later
  4091. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4092. * Windows: in qtmlClient.lib 4.0 and later
  4093. }
  4094. function GraphicsExportGetDefaultFileNameExtension( ci: GraphicsExportComponent; var fileNameExtension: OSType ): ComponentResult; external name '_GraphicsExportGetDefaultFileNameExtension';
  4095. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4096. {
  4097. * GraphicsExportGetMIMETypeList()
  4098. *
  4099. * Availability:
  4100. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4101. * CarbonLib: in CarbonLib 1.0.2 and later
  4102. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4103. * Windows: in qtmlClient.lib 4.0 and later
  4104. }
  4105. function GraphicsExportGetMIMETypeList( ci: GraphicsExportComponent; qtAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsExportGetMIMETypeList';
  4106. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4107. { (1 unused selector) }
  4108. { Graphics exporter settings: }
  4109. {
  4110. * GraphicsExportRequestSettings()
  4111. *
  4112. * Availability:
  4113. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4114. * CarbonLib: in CarbonLib 1.0.2 and later
  4115. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4116. * Windows: in qtmlClient.lib 4.0 and later
  4117. }
  4118. function GraphicsExportRequestSettings( ci: GraphicsExportComponent; filterProc: ModalFilterYDUPP; yourDataProc: UnivPtr ): ComponentResult; external name '_GraphicsExportRequestSettings';
  4119. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4120. {
  4121. * GraphicsExportSetSettingsFromAtomContainer()
  4122. *
  4123. * Availability:
  4124. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4125. * CarbonLib: in CarbonLib 1.0.2 and later
  4126. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4127. * Windows: in qtmlClient.lib 4.0 and later
  4128. }
  4129. function GraphicsExportSetSettingsFromAtomContainer( ci: GraphicsExportComponent; qtAtomContainer: UnivPtr ): ComponentResult; external name '_GraphicsExportSetSettingsFromAtomContainer';
  4130. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4131. {
  4132. * GraphicsExportGetSettingsAsAtomContainer()
  4133. *
  4134. * Availability:
  4135. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4136. * CarbonLib: in CarbonLib 1.0.2 and later
  4137. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4138. * Windows: in qtmlClient.lib 4.0 and later
  4139. }
  4140. function GraphicsExportGetSettingsAsAtomContainer( ci: GraphicsExportComponent; qtAtomContainerPtr: UnivPtr ): ComponentResult; external name '_GraphicsExportGetSettingsAsAtomContainer';
  4141. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4142. {
  4143. * GraphicsExportGetSettingsAsText()
  4144. *
  4145. * Availability:
  4146. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4147. * CarbonLib: in CarbonLib 1.0.2 and later
  4148. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4149. * Windows: in qtmlClient.lib 4.0 and later
  4150. }
  4151. function GraphicsExportGetSettingsAsText( ci: GraphicsExportComponent; var theText: Handle ): ComponentResult; external name '_GraphicsExportGetSettingsAsText';
  4152. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4153. { Graphics exporters may implement some or none of the following: }
  4154. {
  4155. * GraphicsExportSetDontRecompress()
  4156. *
  4157. * Availability:
  4158. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4159. * CarbonLib: in CarbonLib 1.0.2 and later
  4160. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4161. * Windows: in qtmlClient.lib 4.0 and later
  4162. }
  4163. function GraphicsExportSetDontRecompress( ci: GraphicsExportComponent; dontRecompress: Boolean ): ComponentResult; external name '_GraphicsExportSetDontRecompress';
  4164. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4165. {
  4166. * GraphicsExportGetDontRecompress()
  4167. *
  4168. * Availability:
  4169. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4170. * CarbonLib: in CarbonLib 1.0.2 and later
  4171. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4172. * Windows: in qtmlClient.lib 4.0 and later
  4173. }
  4174. function GraphicsExportGetDontRecompress( ci: GraphicsExportComponent; var dontRecompress: Boolean ): ComponentResult; external name '_GraphicsExportGetDontRecompress';
  4175. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4176. {
  4177. * GraphicsExportSetInterlaceStyle()
  4178. *
  4179. * Availability:
  4180. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4181. * CarbonLib: in CarbonLib 1.0.2 and later
  4182. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4183. * Windows: in qtmlClient.lib 4.0 and later
  4184. }
  4185. function GraphicsExportSetInterlaceStyle( ci: GraphicsExportComponent; interlaceStyle: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetInterlaceStyle';
  4186. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4187. {
  4188. * GraphicsExportGetInterlaceStyle()
  4189. *
  4190. * Availability:
  4191. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4192. * CarbonLib: in CarbonLib 1.0.2 and later
  4193. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4194. * Windows: in qtmlClient.lib 4.0 and later
  4195. }
  4196. function GraphicsExportGetInterlaceStyle( ci: GraphicsExportComponent; var interlaceStyle: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetInterlaceStyle';
  4197. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4198. {
  4199. * GraphicsExportSetMetaData()
  4200. *
  4201. * Availability:
  4202. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4203. * CarbonLib: in CarbonLib 1.0.2 and later
  4204. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4205. * Windows: in qtmlClient.lib 4.0 and later
  4206. }
  4207. function GraphicsExportSetMetaData( ci: GraphicsExportComponent; userData: UnivPtr ): ComponentResult; external name '_GraphicsExportSetMetaData';
  4208. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4209. {
  4210. * GraphicsExportGetMetaData()
  4211. *
  4212. * Availability:
  4213. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4214. * CarbonLib: in CarbonLib 1.0.2 and later
  4215. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4216. * Windows: in qtmlClient.lib 4.0 and later
  4217. }
  4218. function GraphicsExportGetMetaData( ci: GraphicsExportComponent; userData: UnivPtr ): ComponentResult; external name '_GraphicsExportGetMetaData';
  4219. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4220. {
  4221. * GraphicsExportSetTargetDataSize()
  4222. *
  4223. * Availability:
  4224. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4225. * CarbonLib: in CarbonLib 1.0.2 and later
  4226. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4227. * Windows: in qtmlClient.lib 4.0 and later
  4228. }
  4229. function GraphicsExportSetTargetDataSize( ci: GraphicsExportComponent; targetDataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetTargetDataSize';
  4230. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4231. {
  4232. * GraphicsExportGetTargetDataSize()
  4233. *
  4234. * Availability:
  4235. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4236. * CarbonLib: in CarbonLib 1.0.2 and later
  4237. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4238. * Windows: in qtmlClient.lib 4.0 and later
  4239. }
  4240. function GraphicsExportGetTargetDataSize( ci: GraphicsExportComponent; var targetDataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetTargetDataSize';
  4241. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4242. {
  4243. * GraphicsExportSetCompressionMethod()
  4244. *
  4245. * Availability:
  4246. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4247. * CarbonLib: in CarbonLib 1.0.2 and later
  4248. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4249. * Windows: in qtmlClient.lib 4.0 and later
  4250. }
  4251. function GraphicsExportSetCompressionMethod( ci: GraphicsExportComponent; compressionMethod: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetCompressionMethod';
  4252. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4253. {
  4254. * GraphicsExportGetCompressionMethod()
  4255. *
  4256. * Availability:
  4257. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4258. * CarbonLib: in CarbonLib 1.0.2 and later
  4259. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4260. * Windows: in qtmlClient.lib 4.0 and later
  4261. }
  4262. function GraphicsExportGetCompressionMethod( ci: GraphicsExportComponent; var compressionMethod: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetCompressionMethod';
  4263. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4264. {
  4265. * GraphicsExportSetCompressionQuality()
  4266. *
  4267. * Availability:
  4268. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4269. * CarbonLib: in CarbonLib 1.0.2 and later
  4270. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4271. * Windows: in qtmlClient.lib 4.0 and later
  4272. }
  4273. function GraphicsExportSetCompressionQuality( ci: GraphicsExportComponent; spatialQuality: CodecQ ): ComponentResult; external name '_GraphicsExportSetCompressionQuality';
  4274. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4275. {
  4276. * GraphicsExportGetCompressionQuality()
  4277. *
  4278. * Availability:
  4279. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4280. * CarbonLib: in CarbonLib 1.0.2 and later
  4281. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4282. * Windows: in qtmlClient.lib 4.0 and later
  4283. }
  4284. function GraphicsExportGetCompressionQuality( ci: GraphicsExportComponent; var spatialQuality: CodecQ ): ComponentResult; external name '_GraphicsExportGetCompressionQuality';
  4285. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4286. {
  4287. * GraphicsExportSetResolution()
  4288. *
  4289. * Availability:
  4290. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4291. * CarbonLib: in CarbonLib 1.0.2 and later
  4292. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4293. * Windows: in qtmlClient.lib 4.0 and later
  4294. }
  4295. function GraphicsExportSetResolution( ci: GraphicsExportComponent; horizontalResolution: Fixed; verticalResolution: Fixed ): ComponentResult; external name '_GraphicsExportSetResolution';
  4296. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4297. {
  4298. * GraphicsExportGetResolution()
  4299. *
  4300. * Availability:
  4301. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4302. * CarbonLib: in CarbonLib 1.0.2 and later
  4303. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4304. * Windows: in qtmlClient.lib 4.0 and later
  4305. }
  4306. function GraphicsExportGetResolution( ci: GraphicsExportComponent; var horizontalResolution: Fixed; var verticalResolution: Fixed ): ComponentResult; external name '_GraphicsExportGetResolution';
  4307. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4308. {
  4309. * GraphicsExportSetDepth()
  4310. *
  4311. * Availability:
  4312. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4313. * CarbonLib: in CarbonLib 1.0.2 and later
  4314. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4315. * Windows: in qtmlClient.lib 4.0 and later
  4316. }
  4317. function GraphicsExportSetDepth( ci: GraphicsExportComponent; depth: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetDepth';
  4318. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4319. {
  4320. * GraphicsExportGetDepth()
  4321. *
  4322. * Availability:
  4323. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4324. * CarbonLib: in CarbonLib 1.0.2 and later
  4325. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4326. * Windows: in qtmlClient.lib 4.0 and later
  4327. }
  4328. function GraphicsExportGetDepth( ci: GraphicsExportComponent; var depth: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetDepth';
  4329. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4330. { (2 unused selectors) }
  4331. {
  4332. * GraphicsExportSetColorSyncProfile()
  4333. *
  4334. * Availability:
  4335. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4336. * CarbonLib: in CarbonLib 1.0.2 and later
  4337. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4338. * Windows: in qtmlClient.lib 4.0 and later
  4339. }
  4340. function GraphicsExportSetColorSyncProfile( ci: GraphicsExportComponent; colorSyncProfile: Handle ): ComponentResult; external name '_GraphicsExportSetColorSyncProfile';
  4341. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4342. {
  4343. * GraphicsExportGetColorSyncProfile()
  4344. *
  4345. * Availability:
  4346. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4347. * CarbonLib: in CarbonLib 1.0.2 and later
  4348. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4349. * Windows: in qtmlClient.lib 4.0 and later
  4350. }
  4351. function GraphicsExportGetColorSyncProfile( ci: GraphicsExportComponent; var colorSyncProfile: Handle ): ComponentResult; external name '_GraphicsExportGetColorSyncProfile';
  4352. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4353. { Always implemented by the base graphics exporter: }
  4354. {
  4355. * GraphicsExportSetProgressProc()
  4356. *
  4357. * Availability:
  4358. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4359. * CarbonLib: in CarbonLib 1.0.2 and later
  4360. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4361. * Windows: in qtmlClient.lib 4.0 and later
  4362. }
  4363. function GraphicsExportSetProgressProc( ci: GraphicsExportComponent; progressProc: ICMProgressProcRecordPtr ): ComponentResult; external name '_GraphicsExportSetProgressProc';
  4364. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4365. {
  4366. * GraphicsExportGetProgressProc()
  4367. *
  4368. * Availability:
  4369. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4370. * CarbonLib: in CarbonLib 1.0.2 and later
  4371. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4372. * Windows: in qtmlClient.lib 4.0 and later
  4373. }
  4374. function GraphicsExportGetProgressProc( ci: GraphicsExportComponent; progressProc: ICMProgressProcRecordPtr ): ComponentResult; external name '_GraphicsExportGetProgressProc';
  4375. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4376. { Sources for the input image: }
  4377. {
  4378. * GraphicsExportSetInputDataReference()
  4379. *
  4380. * Availability:
  4381. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4382. * CarbonLib: in CarbonLib 1.0.2 and later
  4383. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4384. * Windows: in qtmlClient.lib 4.0 and later
  4385. }
  4386. function GraphicsExportSetInputDataReference( ci: GraphicsExportComponent; dataRef: Handle; dataRefType: OSType; desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportSetInputDataReference';
  4387. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4388. {
  4389. * GraphicsExportGetInputDataReference()
  4390. *
  4391. * Availability:
  4392. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4393. * CarbonLib: in CarbonLib 1.0.2 and later
  4394. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4395. * Windows: in qtmlClient.lib 4.0 and later
  4396. }
  4397. function GraphicsExportGetInputDataReference( ci: GraphicsExportComponent; var dataRef: Handle; var dataRefType: OSType ): ComponentResult; external name '_GraphicsExportGetInputDataReference';
  4398. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4399. {
  4400. * GraphicsExportSetInputFile()
  4401. *
  4402. * Availability:
  4403. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4404. * CarbonLib: in CarbonLib 1.0.2 and later
  4405. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4406. * Windows: in qtmlClient.lib 4.0 and later
  4407. }
  4408. function GraphicsExportSetInputFile( ci: GraphicsExportComponent; const (*var*) theFile: FSSpec; desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportSetInputFile';
  4409. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4410. {
  4411. * GraphicsExportGetInputFile()
  4412. *
  4413. * Availability:
  4414. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4415. * CarbonLib: in CarbonLib 1.0.2 and later
  4416. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4417. * Windows: in qtmlClient.lib 4.0 and later
  4418. }
  4419. function GraphicsExportGetInputFile( ci: GraphicsExportComponent; var theFile: FSSpec ): ComponentResult; external name '_GraphicsExportGetInputFile';
  4420. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4421. {
  4422. * GraphicsExportSetInputHandle()
  4423. *
  4424. * Availability:
  4425. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4426. * CarbonLib: in CarbonLib 1.0.2 and later
  4427. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4428. * Windows: in qtmlClient.lib 4.0 and later
  4429. }
  4430. function GraphicsExportSetInputHandle( ci: GraphicsExportComponent; h: Handle; desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportSetInputHandle';
  4431. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4432. {
  4433. * GraphicsExportGetInputHandle()
  4434. *
  4435. * Availability:
  4436. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4437. * CarbonLib: in CarbonLib 1.0.2 and later
  4438. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4439. * Windows: in qtmlClient.lib 4.0 and later
  4440. }
  4441. function GraphicsExportGetInputHandle( ci: GraphicsExportComponent; var h: Handle ): ComponentResult; external name '_GraphicsExportGetInputHandle';
  4442. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4443. {
  4444. * GraphicsExportSetInputPtr()
  4445. *
  4446. * Availability:
  4447. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4448. * CarbonLib: in CarbonLib 1.0.2 and later
  4449. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4450. * Windows: in qtmlClient.lib 4.0 and later
  4451. }
  4452. function GraphicsExportSetInputPtr( ci: GraphicsExportComponent; p: Ptr; size: UNSIGNEDLONG; desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportSetInputPtr';
  4453. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4454. {
  4455. * GraphicsExportGetInputPtr()
  4456. *
  4457. * Availability:
  4458. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4459. * CarbonLib: in CarbonLib 1.0.2 and later
  4460. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4461. * Windows: in qtmlClient.lib 4.0 and later
  4462. }
  4463. function GraphicsExportGetInputPtr( ci: GraphicsExportComponent; var p: Ptr; var size: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetInputPtr';
  4464. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4465. {
  4466. * GraphicsExportSetInputGraphicsImporter()
  4467. *
  4468. * Availability:
  4469. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4470. * CarbonLib: in CarbonLib 1.0.2 and later
  4471. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4472. * Windows: in qtmlClient.lib 4.0 and later
  4473. }
  4474. function GraphicsExportSetInputGraphicsImporter( ci: GraphicsExportComponent; grip: GraphicsImportComponent ): ComponentResult; external name '_GraphicsExportSetInputGraphicsImporter';
  4475. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4476. {
  4477. * GraphicsExportGetInputGraphicsImporter()
  4478. *
  4479. * Availability:
  4480. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4481. * CarbonLib: in CarbonLib 1.0.2 and later
  4482. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4483. * Windows: in qtmlClient.lib 4.0 and later
  4484. }
  4485. function GraphicsExportGetInputGraphicsImporter( ci: GraphicsExportComponent; var grip: GraphicsImportComponent ): ComponentResult; external name '_GraphicsExportGetInputGraphicsImporter';
  4486. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4487. {
  4488. * GraphicsExportSetInputPicture()
  4489. *
  4490. * Availability:
  4491. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4492. * CarbonLib: in CarbonLib 1.0.2 and later
  4493. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4494. * Windows: in qtmlClient.lib 4.0 and later
  4495. }
  4496. function GraphicsExportSetInputPicture( ci: GraphicsExportComponent; picture: PicHandle ): ComponentResult; external name '_GraphicsExportSetInputPicture';
  4497. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4498. {
  4499. * GraphicsExportGetInputPicture()
  4500. *
  4501. * Availability:
  4502. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4503. * CarbonLib: in CarbonLib 1.0.2 and later
  4504. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4505. * Windows: in qtmlClient.lib 4.0 and later
  4506. }
  4507. function GraphicsExportGetInputPicture( ci: GraphicsExportComponent; var picture: PicHandle ): ComponentResult; external name '_GraphicsExportGetInputPicture';
  4508. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4509. {
  4510. * GraphicsExportSetInputGWorld()
  4511. *
  4512. * Availability:
  4513. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4514. * CarbonLib: in CarbonLib 1.0.2 and later
  4515. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4516. * Windows: in qtmlClient.lib 4.0 and later
  4517. }
  4518. function GraphicsExportSetInputGWorld( ci: GraphicsExportComponent; gworld: GWorldPtr ): ComponentResult; external name '_GraphicsExportSetInputGWorld';
  4519. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4520. {
  4521. * GraphicsExportGetInputGWorld()
  4522. *
  4523. * Availability:
  4524. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4525. * CarbonLib: in CarbonLib 1.0.2 and later
  4526. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4527. * Windows: in qtmlClient.lib 4.0 and later
  4528. }
  4529. function GraphicsExportGetInputGWorld( ci: GraphicsExportComponent; var gworld: GWorldPtr ): ComponentResult; external name '_GraphicsExportGetInputGWorld';
  4530. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4531. {
  4532. * GraphicsExportSetInputPixmap()
  4533. *
  4534. * Availability:
  4535. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4536. * CarbonLib: in CarbonLib 1.0.2 and later
  4537. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4538. * Windows: in qtmlClient.lib 4.0 and later
  4539. }
  4540. function GraphicsExportSetInputPixmap( ci: GraphicsExportComponent; pixmap: PixMapHandle ): ComponentResult; external name '_GraphicsExportSetInputPixmap';
  4541. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4542. {
  4543. * GraphicsExportGetInputPixmap()
  4544. *
  4545. * Availability:
  4546. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4547. * CarbonLib: in CarbonLib 1.0.2 and later
  4548. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4549. * Windows: in qtmlClient.lib 4.0 and later
  4550. }
  4551. function GraphicsExportGetInputPixmap( ci: GraphicsExportComponent; var pixmap: PixMapHandle ): ComponentResult; external name '_GraphicsExportGetInputPixmap';
  4552. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4553. { Only applicable when the input is a data reference, file, handle or ptr: }
  4554. {
  4555. * GraphicsExportSetInputOffsetAndLimit()
  4556. *
  4557. * Availability:
  4558. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4559. * CarbonLib: in CarbonLib 1.0.2 and later
  4560. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4561. * Windows: in qtmlClient.lib 4.0 and later
  4562. }
  4563. function GraphicsExportSetInputOffsetAndLimit( ci: GraphicsExportComponent; offset: UNSIGNEDLONG; limit: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetInputOffsetAndLimit';
  4564. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4565. {
  4566. * GraphicsExportGetInputOffsetAndLimit()
  4567. *
  4568. * Availability:
  4569. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4570. * CarbonLib: in CarbonLib 1.0.2 and later
  4571. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4572. * Windows: in qtmlClient.lib 4.0 and later
  4573. }
  4574. function GraphicsExportGetInputOffsetAndLimit( ci: GraphicsExportComponent; var offset: UNSIGNEDLONG; var limit: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetInputOffsetAndLimit';
  4575. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4576. { Used by format-specific graphics exporters when transcoding: }
  4577. {
  4578. * GraphicsExportMayExporterReadInputData()
  4579. *
  4580. * Availability:
  4581. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4582. * CarbonLib: in CarbonLib 1.0.2 and later
  4583. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4584. * Windows: in qtmlClient.lib 4.0 and later
  4585. }
  4586. function GraphicsExportMayExporterReadInputData( ci: GraphicsExportComponent; var mayReadInputData: Boolean ): ComponentResult; external name '_GraphicsExportMayExporterReadInputData';
  4587. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4588. {
  4589. * GraphicsExportGetInputDataSize()
  4590. *
  4591. * Availability:
  4592. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4593. * CarbonLib: in CarbonLib 1.0.2 and later
  4594. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4595. * Windows: in qtmlClient.lib 4.0 and later
  4596. }
  4597. function GraphicsExportGetInputDataSize( ci: GraphicsExportComponent; var size: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetInputDataSize';
  4598. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4599. {
  4600. * GraphicsExportReadInputData()
  4601. *
  4602. * Availability:
  4603. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4604. * CarbonLib: in CarbonLib 1.0.2 and later
  4605. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4606. * Windows: in qtmlClient.lib 4.0 and later
  4607. }
  4608. function GraphicsExportReadInputData( ci: GraphicsExportComponent; dataPtr: UnivPtr; dataOffset: UNSIGNEDLONG; dataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportReadInputData';
  4609. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4610. { Used by format-specific graphics exporters, especially when doing standalone export: }
  4611. {
  4612. * GraphicsExportGetInputImageDescription()
  4613. *
  4614. * Availability:
  4615. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4616. * CarbonLib: in CarbonLib 1.0.2 and later
  4617. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4618. * Windows: in qtmlClient.lib 4.0 and later
  4619. }
  4620. function GraphicsExportGetInputImageDescription( ci: GraphicsExportComponent; var desc: ImageDescriptionHandle ): ComponentResult; external name '_GraphicsExportGetInputImageDescription';
  4621. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4622. {
  4623. * GraphicsExportGetInputImageDimensions()
  4624. *
  4625. * Availability:
  4626. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4627. * CarbonLib: in CarbonLib 1.0.2 and later
  4628. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4629. * Windows: in qtmlClient.lib 4.0 and later
  4630. }
  4631. function GraphicsExportGetInputImageDimensions( ci: GraphicsExportComponent; var dimensions: Rect ): ComponentResult; external name '_GraphicsExportGetInputImageDimensions';
  4632. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4633. {
  4634. * GraphicsExportGetInputImageDepth()
  4635. *
  4636. * Availability:
  4637. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4638. * CarbonLib: in CarbonLib 1.0.2 and later
  4639. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4640. * Windows: in qtmlClient.lib 4.0 and later
  4641. }
  4642. function GraphicsExportGetInputImageDepth( ci: GraphicsExportComponent; var inputDepth: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetInputImageDepth';
  4643. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4644. {
  4645. * GraphicsExportDrawInputImage()
  4646. *
  4647. * Availability:
  4648. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4649. * CarbonLib: in CarbonLib 1.0.2 and later
  4650. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4651. * Windows: in qtmlClient.lib 4.0 and later
  4652. }
  4653. function GraphicsExportDrawInputImage( ci: GraphicsExportComponent; gw: CGrafPtr; gd: GDHandle; const (*var*) srcRect: Rect; const (*var*) dstRect: Rect ): ComponentResult; external name '_GraphicsExportDrawInputImage';
  4654. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4655. { Destinations for the output image: }
  4656. {
  4657. * GraphicsExportSetOutputDataReference()
  4658. *
  4659. * Availability:
  4660. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4661. * CarbonLib: in CarbonLib 1.0.2 and later
  4662. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4663. * Windows: in qtmlClient.lib 4.0 and later
  4664. }
  4665. function GraphicsExportSetOutputDataReference( ci: GraphicsExportComponent; dataRef: Handle; dataRefType: OSType ): ComponentResult; external name '_GraphicsExportSetOutputDataReference';
  4666. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4667. {
  4668. * GraphicsExportGetOutputDataReference()
  4669. *
  4670. * Availability:
  4671. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4672. * CarbonLib: in CarbonLib 1.0.2 and later
  4673. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4674. * Windows: in qtmlClient.lib 4.0 and later
  4675. }
  4676. function GraphicsExportGetOutputDataReference( ci: GraphicsExportComponent; var dataRef: Handle; var dataRefType: OSType ): ComponentResult; external name '_GraphicsExportGetOutputDataReference';
  4677. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4678. {
  4679. * GraphicsExportSetOutputFile()
  4680. *
  4681. * Availability:
  4682. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4683. * CarbonLib: in CarbonLib 1.0.2 and later
  4684. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4685. * Windows: in qtmlClient.lib 4.0 and later
  4686. }
  4687. function GraphicsExportSetOutputFile( ci: GraphicsExportComponent; const (*var*) theFile: FSSpec ): ComponentResult; external name '_GraphicsExportSetOutputFile';
  4688. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4689. {
  4690. * GraphicsExportGetOutputFile()
  4691. *
  4692. * Availability:
  4693. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4694. * CarbonLib: in CarbonLib 1.0.2 and later
  4695. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4696. * Windows: in qtmlClient.lib 4.0 and later
  4697. }
  4698. function GraphicsExportGetOutputFile( ci: GraphicsExportComponent; var theFile: FSSpec ): ComponentResult; external name '_GraphicsExportGetOutputFile';
  4699. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4700. {
  4701. * GraphicsExportSetOutputHandle()
  4702. *
  4703. * Availability:
  4704. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4705. * CarbonLib: in CarbonLib 1.0.2 and later
  4706. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4707. * Windows: in qtmlClient.lib 4.0 and later
  4708. }
  4709. function GraphicsExportSetOutputHandle( ci: GraphicsExportComponent; h: Handle ): ComponentResult; external name '_GraphicsExportSetOutputHandle';
  4710. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4711. {
  4712. * GraphicsExportGetOutputHandle()
  4713. *
  4714. * Availability:
  4715. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4716. * CarbonLib: in CarbonLib 1.0.2 and later
  4717. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4718. * Windows: in qtmlClient.lib 4.0 and later
  4719. }
  4720. function GraphicsExportGetOutputHandle( ci: GraphicsExportComponent; var h: Handle ): ComponentResult; external name '_GraphicsExportGetOutputHandle';
  4721. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4722. {
  4723. * GraphicsExportSetOutputOffsetAndMaxSize()
  4724. *
  4725. * Availability:
  4726. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4727. * CarbonLib: in CarbonLib 1.0.2 and later
  4728. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4729. * Windows: in qtmlClient.lib 4.0 and later
  4730. }
  4731. function GraphicsExportSetOutputOffsetAndMaxSize( ci: GraphicsExportComponent; offset: UNSIGNEDLONG; maxSize: UNSIGNEDLONG; truncateFile: Boolean ): ComponentResult; external name '_GraphicsExportSetOutputOffsetAndMaxSize';
  4732. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4733. {
  4734. * GraphicsExportGetOutputOffsetAndMaxSize()
  4735. *
  4736. * Availability:
  4737. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4738. * CarbonLib: in CarbonLib 1.0.2 and later
  4739. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4740. * Windows: in qtmlClient.lib 4.0 and later
  4741. }
  4742. function GraphicsExportGetOutputOffsetAndMaxSize( ci: GraphicsExportComponent; var offset: UNSIGNEDLONG; var maxSize: UNSIGNEDLONG; var truncateFile: Boolean ): ComponentResult; external name '_GraphicsExportGetOutputOffsetAndMaxSize';
  4743. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4744. {
  4745. * GraphicsExportSetOutputFileTypeAndCreator()
  4746. *
  4747. * Availability:
  4748. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4749. * CarbonLib: in CarbonLib 1.0.2 and later
  4750. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4751. * Windows: in qtmlClient.lib 4.0 and later
  4752. }
  4753. function GraphicsExportSetOutputFileTypeAndCreator( ci: GraphicsExportComponent; fileType: OSType; fileCreator: OSType ): ComponentResult; external name '_GraphicsExportSetOutputFileTypeAndCreator';
  4754. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4755. {
  4756. * GraphicsExportGetOutputFileTypeAndCreator()
  4757. *
  4758. * Availability:
  4759. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4760. * CarbonLib: in CarbonLib 1.0.2 and later
  4761. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4762. * Windows: in qtmlClient.lib 4.0 and later
  4763. }
  4764. function GraphicsExportGetOutputFileTypeAndCreator( ci: GraphicsExportComponent; var fileType: OSType; var fileCreator: OSType ): ComponentResult; external name '_GraphicsExportGetOutputFileTypeAndCreator';
  4765. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4766. { Used by format-specific graphics exporters: }
  4767. {
  4768. * GraphicsExportWriteOutputData()
  4769. *
  4770. * Availability:
  4771. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4772. * CarbonLib: in CarbonLib 1.0.2 and later
  4773. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4774. * Windows: in qtmlClient.lib 4.0 and later
  4775. }
  4776. function GraphicsExportWriteOutputData( ci: GraphicsExportComponent; dataPtr: {const} UnivPtr; dataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportWriteOutputData';
  4777. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4778. {
  4779. * GraphicsExportSetOutputMark()
  4780. *
  4781. * Availability:
  4782. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4783. * CarbonLib: in CarbonLib 1.0.2 and later
  4784. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4785. * Windows: in qtmlClient.lib 4.0 and later
  4786. }
  4787. function GraphicsExportSetOutputMark( ci: GraphicsExportComponent; mark: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetOutputMark';
  4788. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4789. {
  4790. * GraphicsExportGetOutputMark()
  4791. *
  4792. * Availability:
  4793. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4794. * CarbonLib: in CarbonLib 1.0.2 and later
  4795. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4796. * Windows: in qtmlClient.lib 4.0 and later
  4797. }
  4798. function GraphicsExportGetOutputMark( ci: GraphicsExportComponent; var mark: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetOutputMark';
  4799. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4800. {
  4801. * GraphicsExportReadOutputData()
  4802. *
  4803. * Availability:
  4804. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4805. * CarbonLib: in CarbonLib 1.0.2 and later
  4806. * Non-Carbon CFM: in QuickTimeLib 4.0 and later
  4807. * Windows: in qtmlClient.lib 4.0 and later
  4808. }
  4809. function GraphicsExportReadOutputData( ci: GraphicsExportComponent; dataPtr: UnivPtr; dataOffset: UNSIGNEDLONG; dataSize: UNSIGNEDLONG ): ComponentResult; external name '_GraphicsExportReadOutputData';
  4810. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4811. { Allows embedded thumbnail creation, if supported. }
  4812. {
  4813. * GraphicsExportSetThumbnailEnabled()
  4814. *
  4815. * Availability:
  4816. * Mac OS X: in version 10.1 and later in QuickTime.framework
  4817. * CarbonLib: in CarbonLib 1.4 and later
  4818. * Non-Carbon CFM: in QuickTimeLib 5.0.2 and later
  4819. * Windows: in qtmlClient.lib 5.0.2 and later
  4820. }
  4821. function GraphicsExportSetThumbnailEnabled( ci: GraphicsExportComponent; enableThumbnail: Boolean; maxThumbnailWidth: SIGNEDLONG; maxThumbnailHeight: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportSetThumbnailEnabled';
  4822. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  4823. {
  4824. * GraphicsExportGetThumbnailEnabled()
  4825. *
  4826. * Availability:
  4827. * Mac OS X: in version 10.1 and later in QuickTime.framework
  4828. * CarbonLib: in CarbonLib 1.4 and later
  4829. * Non-Carbon CFM: in QuickTimeLib 5.0.2 and later
  4830. * Windows: in qtmlClient.lib 5.0.2 and later
  4831. }
  4832. function GraphicsExportGetThumbnailEnabled( ci: GraphicsExportComponent; var thumbnailEnabled: Boolean; var maxThumbnailWidth: SIGNEDLONG; var maxThumbnailHeight: SIGNEDLONG ): ComponentResult; external name '_GraphicsExportGetThumbnailEnabled';
  4833. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  4834. { Allows export of Exif files, if supported. This disables Exif-incompatible settings such as grayscale JPEG and compressed TIFF, and enables export of Exif metadata. }
  4835. {
  4836. * GraphicsExportSetExifEnabled()
  4837. *
  4838. * Availability:
  4839. * Mac OS X: in version 10.1 and later in QuickTime.framework
  4840. * CarbonLib: in CarbonLib 1.4 and later
  4841. * Non-Carbon CFM: in QuickTimeLib 5.0.2 and later
  4842. * Windows: in qtmlClient.lib 5.0.2 and later
  4843. }
  4844. function GraphicsExportSetExifEnabled( ci: GraphicsExportComponent; enableExif: Boolean ): ComponentResult; external name '_GraphicsExportSetExifEnabled';
  4845. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  4846. {
  4847. * GraphicsExportGetExifEnabled()
  4848. *
  4849. * Availability:
  4850. * Mac OS X: in version 10.1 and later in QuickTime.framework
  4851. * CarbonLib: in CarbonLib 1.4 and later
  4852. * Non-Carbon CFM: in QuickTimeLib 5.0.2 and later
  4853. * Windows: in qtmlClient.lib 5.0.2 and later
  4854. }
  4855. function GraphicsExportGetExifEnabled( ci: GraphicsExportComponent; var exifEnabled: Boolean ): ComponentResult; external name '_GraphicsExportGetExifEnabled';
  4856. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER *)
  4857. {$ifc TARGET_API_MAC_OSX}
  4858. {
  4859. * GraphicsExportSetInputCGImage()
  4860. *
  4861. * Availability:
  4862. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4863. * CarbonLib: not available
  4864. * Non-Carbon CFM: not available
  4865. }
  4866. function GraphicsExportSetInputCGImage( ci: GraphicsExportComponent; imageRef: CGImageRef ): ComponentResult; external name '_GraphicsExportSetInputCGImage';
  4867. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4868. {
  4869. * GraphicsExportGetInputCGImage()
  4870. *
  4871. * Availability:
  4872. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4873. * CarbonLib: not available
  4874. * Non-Carbon CFM: not available
  4875. }
  4876. function GraphicsExportGetInputCGImage( ci: GraphicsExportComponent; var imageRefOut: CGImageRef ): ComponentResult; external name '_GraphicsExportGetInputCGImage';
  4877. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4878. {
  4879. * GraphicsExportSetInputCGBitmapContext()
  4880. *
  4881. * Availability:
  4882. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4883. * CarbonLib: not available
  4884. * Non-Carbon CFM: not available
  4885. }
  4886. function GraphicsExportSetInputCGBitmapContext( ci: GraphicsExportComponent; bitmapContextRef: CGContextRef ): ComponentResult; external name '_GraphicsExportSetInputCGBitmapContext';
  4887. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4888. {
  4889. * GraphicsExportGetInputCGBitmapContext()
  4890. *
  4891. * Availability:
  4892. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4893. * CarbonLib: not available
  4894. * Non-Carbon CFM: not available
  4895. }
  4896. function GraphicsExportGetInputCGBitmapContext( ci: GraphicsExportComponent; var bitmapContextRefOut: CGContextRef ): ComponentResult; external name '_GraphicsExportGetInputCGBitmapContext';
  4897. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4898. {$endc} {TARGET_API_MAC_OSX}
  4899. {
  4900. * GraphicsExportSetFlags()
  4901. *
  4902. * Availability:
  4903. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4904. * CarbonLib: not available
  4905. * Non-Carbon CFM: not available
  4906. }
  4907. function GraphicsExportSetFlags( ci: GraphicsExportComponent; flags: UInt32 ): ComponentResult; external name '_GraphicsExportSetFlags';
  4908. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4909. {
  4910. * GraphicsExportGetFlags()
  4911. *
  4912. * Availability:
  4913. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  4914. * CarbonLib: not available
  4915. * Non-Carbon CFM: not available
  4916. }
  4917. function GraphicsExportGetFlags( ci: GraphicsExportComponent; var flagsOut: UInt32 ): ComponentResult; external name '_GraphicsExportGetFlags';
  4918. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  4919. type
  4920. ImageTranscoderComponent = ComponentInstance;
  4921. const
  4922. ImageTranscodererComponentType = FourCharCode('imtc');
  4923. {* These are ImageTranscoder procedures *}
  4924. {
  4925. * ImageTranscoderBeginSequence()
  4926. *
  4927. * Availability:
  4928. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4929. * CarbonLib: in CarbonLib 1.0 and later
  4930. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4931. * Windows: in qtmlClient.lib 3.0 and later
  4932. }
  4933. function ImageTranscoderBeginSequence( itc: ImageTranscoderComponent; srcDesc: ImageDescriptionHandle; var dstDesc: ImageDescriptionHandle; data: UnivPtr; dataSize: SIGNEDLONG ): ComponentResult; external name '_ImageTranscoderBeginSequence';
  4934. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4935. {
  4936. * ImageTranscoderConvert()
  4937. *
  4938. * Availability:
  4939. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4940. * CarbonLib: in CarbonLib 1.0 and later
  4941. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4942. * Windows: in qtmlClient.lib 3.0 and later
  4943. }
  4944. function ImageTranscoderConvert( itc: ImageTranscoderComponent; srcData: UnivPtr; srcDataSize: SIGNEDLONG; var dstData: UnivPtr; var dstDataSize: SIGNEDLONG ): ComponentResult; external name '_ImageTranscoderConvert';
  4945. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4946. {
  4947. * ImageTranscoderDisposeData()
  4948. *
  4949. * Availability:
  4950. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4951. * CarbonLib: in CarbonLib 1.0 and later
  4952. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4953. * Windows: in qtmlClient.lib 3.0 and later
  4954. }
  4955. function ImageTranscoderDisposeData( itc: ImageTranscoderComponent; dstData: UnivPtr ): ComponentResult; external name '_ImageTranscoderDisposeData';
  4956. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4957. {
  4958. * ImageTranscoderEndSequence()
  4959. *
  4960. * Availability:
  4961. * Mac OS X: in version 10.0 and later in QuickTime.framework
  4962. * CarbonLib: in CarbonLib 1.0 and later
  4963. * Non-Carbon CFM: in QuickTimeLib 2.5 and later
  4964. * Windows: in qtmlClient.lib 3.0 and later
  4965. }
  4966. function ImageTranscoderEndSequence( itc: ImageTranscoderComponent ): ComponentResult; external name '_ImageTranscoderEndSequence';
  4967. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER *)
  4968. //#if (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2) || //!defined(kComponentPropertyListenerCollectionContextVersion)
  4969. { MixedMode ProcInfo constants for component property calls }
  4970. const
  4971. uppCallComponentGetComponentPropertyInfoProcInfo = $0003FFF0;
  4972. uppCallComponentGetComponentPropertyProcInfo = $0003FFF0;
  4973. uppCallComponentSetComponentPropertyProcInfo = $0000FFF0;
  4974. uppCallComponentAddComponentPropertyListenerProcInfo = $0000FFF0;
  4975. uppCallComponentRemoveComponentPropertyListenerProcInfo = $0000FFF0;
  4976. { == CallComponentGetComponentPropertyInfo flags == }
  4977. const
  4978. kComponentPropertyFlagCanSetLater = 1 shl 0;
  4979. kComponentPropertyFlagCanSetNow = 1 shl 1;
  4980. kComponentPropertyFlagCanGetLater = 1 shl 2;
  4981. kComponentPropertyFlagCanGetNow = 1 shl 3;
  4982. kComponentPropertyFlagHasExtendedInfo = 1 shl 4;
  4983. kComponentPropertyFlagValueMustBeReleased = 1 shl 5;
  4984. kComponentPropertyFlagValueIsCFTypeRef = 1 shl 6;
  4985. kComponentPropertyFlagGetBufferMustBeInitialized = 1 shl 7;
  4986. kComponentPropertyFlagWillNotifyListeners = 1 shl 8;
  4987. type
  4988. ComponentPropertyClass = OSType;
  4989. ComponentPropertyClassPtr = ^ComponentPropertyClass;
  4990. ComponentPropertyID = OSType;
  4991. ComponentPropertyIDPtr = ^ComponentPropertyID;
  4992. ComponentValueType = OSType;
  4993. ComponentValueTypePtr = ^ComponentValueType;
  4994. ComponentValuePtr = UnivPtr;
  4995. ComponentValuePtrPtr = ^ComponentValuePtr;
  4996. ConstComponentValuePtr = {const} UnivPtr;
  4997. ConstComponentValuePtrPtr = ^ConstComponentValuePtr;
  4998. { == standard property class constants == }
  4999. const
  5000. kComponentPropertyClassPropertyInfo = FourCharCode('pnfo'); { property info class }
  5001. { property info property IDs }
  5002. kComponentPropertyInfoList = FourCharCode('list'); { array of ComponentPropertyInfo (CFData), one for each property }
  5003. kComponentPropertyCacheSeed = FourCharCode('seed'); { property cache seed value }
  5004. kComponentPropertyCacheFlags = FourCharCode('flgs'); { see kComponentPropertyCache flags }
  5005. kComponentPropertyExtendedInfo = FourCharCode('meta'); { CFDictionary with extended property information}
  5006. { values for kComponentPropertyClassPropertyInfo/kComponentPropertyCacheFlags standard component property }
  5007. const
  5008. kComponentPropertyCacheFlagNotPersistent = 1 shl 0; { property metadata should not be saved in persistent cache}
  5009. kComponentPropertyCacheFlagIsDynamic = 1 shl 1; { property metadata should not cached at all}
  5010. type
  5011. ComponentPropertyInfoPtr = ^ComponentPropertyInfo;
  5012. ComponentPropertyInfo = record
  5013. propClass: ComponentPropertyClass;
  5014. propID: ComponentPropertyID;
  5015. propType: ComponentValueType;
  5016. propSize: ByteCount;
  5017. propFlags: UInt32;
  5018. end;
  5019. //#endif { #MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED }
  5020. { == "QT" prefixed Component Property calls == }
  5021. type
  5022. QTComponentPropertyListenerProcPtr = procedure( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inUserData: UnivPtr );
  5023. QTComponentPropertyListenerUPP = QTComponentPropertyListenerProcPtr;
  5024. {
  5025. * QTGetComponentPropertyInfo()
  5026. *
  5027. * Availability:
  5028. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5029. * CarbonLib: not available
  5030. * Non-Carbon CFM: not available
  5031. }
  5032. function QTGetComponentPropertyInfo( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): ComponentResult; external name '_QTGetComponentPropertyInfo';
  5033. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5034. {
  5035. * QTGetComponentProperty()
  5036. *
  5037. * Availability:
  5038. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5039. * CarbonLib: not available
  5040. * Non-Carbon CFM: not available
  5041. }
  5042. function QTGetComponentProperty( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): ComponentResult; external name '_QTGetComponentProperty';
  5043. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5044. {
  5045. * QTSetComponentProperty()
  5046. *
  5047. * Availability:
  5048. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5049. * CarbonLib: not available
  5050. * Non-Carbon CFM: not available
  5051. }
  5052. function QTSetComponentProperty( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): ComponentResult; external name '_QTSetComponentProperty';
  5053. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5054. {
  5055. * QTAddComponentPropertyListener()
  5056. *
  5057. * Availability:
  5058. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5059. * CarbonLib: not available
  5060. * Non-Carbon CFM: not available
  5061. }
  5062. function QTAddComponentPropertyListener( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inDispatchProc: QTComponentPropertyListenerUPP; inUserData: UnivPtr { can be NULL } ): ComponentResult; external name '_QTAddComponentPropertyListener';
  5063. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5064. {
  5065. * QTRemoveComponentPropertyListener()
  5066. *
  5067. * Availability:
  5068. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5069. * CarbonLib: not available
  5070. * Non-Carbon CFM: not available
  5071. }
  5072. function QTRemoveComponentPropertyListener( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inDispatchProc: QTComponentPropertyListenerUPP; inUserData: UnivPtr { can be NULL } ): ComponentResult; external name '_QTRemoveComponentPropertyListener';
  5073. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5074. { == "QT" prefixed Component Property Listener helpers == }
  5075. type
  5076. QTComponentPropertyListenerCollectionContextPtr = ^QTComponentPropertyListenerCollectionContext;
  5077. QTComponentPropertyListenersRef = CFTypeRef;
  5078. QTComponentPropertyListenerFilterProcPtr = function( inCollection: QTComponentPropertyListenersRef; inCollectionContext: QTComponentPropertyListenerCollectionContextPtr { ptr to avoid circular reference with QTComponentPropertyListenerCollectionContext}; inNotifier: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inListenerCallbackProc: QTComponentPropertyListenerUPP; inListenerProcRefCon: {const} UnivPtr; inFilterProcRefCon: {const} UnivPtr ): Boolean;
  5079. QTComponentPropertyListenerFilterUPP = QTComponentPropertyListenerFilterProcPtr;
  5080. QTComponentPropertyListenerCollectionContext = record
  5081. version: UInt32; { struct version }
  5082. filterProcUPP: QTComponentPropertyListenerFilterUPP;
  5083. filterProcData: UnivPtr;
  5084. end;
  5085. const
  5086. kQTComponentPropertyListenerCollectionContextVersion = 1;
  5087. {
  5088. * NewQTComponentPropertyListenerUPP()
  5089. *
  5090. * Availability:
  5091. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5092. * CarbonLib: not available
  5093. * Non-Carbon CFM: available as macro/inline
  5094. }
  5095. function NewQTComponentPropertyListenerUPP( userRoutine: QTComponentPropertyListenerProcPtr ): QTComponentPropertyListenerUPP; external name '_NewQTComponentPropertyListenerUPP';
  5096. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5097. {
  5098. * NewQTComponentPropertyListenerFilterUPP()
  5099. *
  5100. * Availability:
  5101. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5102. * CarbonLib: not available
  5103. * Non-Carbon CFM: available as macro/inline
  5104. }
  5105. function NewQTComponentPropertyListenerFilterUPP( userRoutine: QTComponentPropertyListenerFilterProcPtr ): QTComponentPropertyListenerFilterUPP; external name '_NewQTComponentPropertyListenerFilterUPP';
  5106. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5107. {
  5108. * DisposeQTComponentPropertyListenerUPP()
  5109. *
  5110. * Availability:
  5111. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5112. * CarbonLib: not available
  5113. * Non-Carbon CFM: available as macro/inline
  5114. }
  5115. procedure DisposeQTComponentPropertyListenerUPP( userUPP: QTComponentPropertyListenerUPP ); external name '_DisposeQTComponentPropertyListenerUPP';
  5116. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5117. {
  5118. * DisposeQTComponentPropertyListenerFilterUPP()
  5119. *
  5120. * Availability:
  5121. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5122. * CarbonLib: not available
  5123. * Non-Carbon CFM: available as macro/inline
  5124. }
  5125. procedure DisposeQTComponentPropertyListenerFilterUPP( userUPP: QTComponentPropertyListenerFilterUPP ); external name '_DisposeQTComponentPropertyListenerFilterUPP';
  5126. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5127. {
  5128. * InvokeQTComponentPropertyListenerUPP()
  5129. *
  5130. * Availability:
  5131. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5132. * CarbonLib: not available
  5133. * Non-Carbon CFM: available as macro/inline
  5134. }
  5135. procedure InvokeQTComponentPropertyListenerUPP( inComponent: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inUserData: UnivPtr; userUPP: QTComponentPropertyListenerUPP ); external name '_InvokeQTComponentPropertyListenerUPP';
  5136. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5137. {
  5138. * InvokeQTComponentPropertyListenerFilterUPP()
  5139. *
  5140. * Availability:
  5141. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5142. * CarbonLib: not available
  5143. * Non-Carbon CFM: available as macro/inline
  5144. }
  5145. function InvokeQTComponentPropertyListenerFilterUPP( inCollection: QTComponentPropertyListenersRef; const (*var*) inCollectionContext: QTComponentPropertyListenerCollectionContext; inNotifier: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inListenerCallbackProc: QTComponentPropertyListenerUPP; inListenerProcRefCon: {const} UnivPtr; inFilterProcRefCon: {const} UnivPtr; userUPP: QTComponentPropertyListenerFilterUPP ): Boolean; external name '_InvokeQTComponentPropertyListenerFilterUPP';
  5146. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5147. {
  5148. * QTComponentPropertyListenerCollectionCreate()
  5149. *
  5150. * Summary:
  5151. * Create a collection to use with the functions
  5152. * ComponentPropertyListenerCollectionAddListener,
  5153. * ComponentPropertyListenerCollectionRemoveListener,
  5154. * ComponentPropertyListenerCollectionNotifyListeners,
  5155. * ComponentPropertyListenerCollectionIsEmpty, and
  5156. * ComponentPropertyListenerCollectionHasListenersForProperty.
  5157. *
  5158. * Parameters:
  5159. *
  5160. * outCollection:
  5161. * Returns the new, empty, listener collection.
  5162. *
  5163. * inAllocator:
  5164. * Allocator used to create the collection and it's contents.
  5165. *
  5166. * inContext:
  5167. * The listener collection context. May be NULL. A copy of the
  5168. * contents of the structure is made, so a pointer to a structure
  5169. * on the stack can be passed.
  5170. *
  5171. * Availability:
  5172. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5173. * CarbonLib: not available
  5174. * Non-Carbon CFM: not available
  5175. }
  5176. function QTComponentPropertyListenerCollectionCreate( inAllocator: CFAllocatorRef { can be NULL }; {const} inContext: QTComponentPropertyListenerCollectionContextPtr { can be NULL }; var outCollection: QTComponentPropertyListenersRef ): OSStatus; external name '_QTComponentPropertyListenerCollectionCreate';
  5177. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5178. {
  5179. * QTComponentPropertyListenerCollectionAddListener()
  5180. *
  5181. * Summary:
  5182. * Add a listener callback for the specified property class and ID
  5183. * to a property listener collection.
  5184. *
  5185. * Parameters:
  5186. *
  5187. * inCollection:
  5188. * The property listener collection.
  5189. *
  5190. * inPropClass:
  5191. * The property class.
  5192. *
  5193. * inPropID:
  5194. * The property ID.
  5195. *
  5196. * inListenerProc:
  5197. * The property listener callback function.
  5198. *
  5199. * inListenerProcRefCon:
  5200. * The data parameter to pass to the listener callback function.
  5201. *
  5202. * Availability:
  5203. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5204. * CarbonLib: not available
  5205. * Non-Carbon CFM: not available
  5206. }
  5207. function QTComponentPropertyListenerCollectionAddListener( inCollection: QTComponentPropertyListenersRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inListenerProc: QTComponentPropertyListenerUPP; inListenerProcRefCon: {const} UnivPtr ): OSStatus; external name '_QTComponentPropertyListenerCollectionAddListener';
  5208. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5209. {
  5210. * QTComponentPropertyListenerCollectionRemoveListener()
  5211. *
  5212. * Summary:
  5213. * Remove a listener callback for the specified property class and
  5214. * ID from a property listener collection.
  5215. *
  5216. * Parameters:
  5217. *
  5218. * inCollection:
  5219. * The property listener collection.
  5220. *
  5221. * inPropClass:
  5222. * The property class.
  5223. *
  5224. * inPropID:
  5225. * The property ID.
  5226. *
  5227. * inListenerProc:
  5228. * The property listener callback function.
  5229. *
  5230. * inListenerProcRefCon:
  5231. * The data parameter to pass to the listener callback function.
  5232. *
  5233. * Availability:
  5234. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5235. * CarbonLib: not available
  5236. * Non-Carbon CFM: not available
  5237. }
  5238. function QTComponentPropertyListenerCollectionRemoveListener( inCollection: QTComponentPropertyListenersRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inListenerProc: QTComponentPropertyListenerUPP; inListenerProcRefCon: {const} UnivPtr ): OSStatus; external name '_QTComponentPropertyListenerCollectionRemoveListener';
  5239. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5240. {
  5241. * QTComponentPropertyListenerCollectionNotifyListeners()
  5242. *
  5243. * Summary:
  5244. * Call all listener callbacks in the collection registered for the
  5245. * specified property class and ID.
  5246. *
  5247. * Discussion:
  5248. * If the "filterProcUPP" in the collection's context is non-NULL,
  5249. * the filter function will be called before each registered
  5250. * listener that matches the specified property class and ID. If the
  5251. * filter function return false, the listener proc will not be
  5252. * called. This is intended to allow a component to change the
  5253. * calling semantics (call another thread, etc), to use a different
  5254. * listener callback signature, etc.
  5255. *
  5256. * Parameters:
  5257. *
  5258. * inCollection:
  5259. * The property listener collection.
  5260. *
  5261. * inNotifier:
  5262. * The calling ComponentInstance.
  5263. *
  5264. * inPropClass:
  5265. * The property class.
  5266. *
  5267. * inPropID:
  5268. * The property ID.
  5269. *
  5270. * inFilterProcRefCon:
  5271. * The data parameter to pass to the filter function.
  5272. *
  5273. * inFlags:
  5274. * Flags. Must be set to 0.
  5275. *
  5276. * Availability:
  5277. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5278. * CarbonLib: not available
  5279. * Non-Carbon CFM: not available
  5280. }
  5281. function QTComponentPropertyListenerCollectionNotifyListeners( inCollection: QTComponentPropertyListenersRef; inNotifier: ComponentInstance; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inFilterProcRefCon: {const} UnivPtr { can be NULL }; inFlags: UInt32 ): OSStatus; external name '_QTComponentPropertyListenerCollectionNotifyListeners';
  5282. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5283. {
  5284. * QTComponentPropertyListenerCollectionIsEmpty()
  5285. *
  5286. * Summary:
  5287. * Return true if the listener collection is empty.
  5288. *
  5289. * Parameters:
  5290. *
  5291. * inCollection:
  5292. * The property listener collection.
  5293. *
  5294. * Availability:
  5295. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5296. * CarbonLib: not available
  5297. * Non-Carbon CFM: not available
  5298. }
  5299. function QTComponentPropertyListenerCollectionIsEmpty( inCollection: QTComponentPropertyListenersRef ): Boolean; external name '_QTComponentPropertyListenerCollectionIsEmpty';
  5300. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5301. {
  5302. * QTComponentPropertyListenerCollectionHasListenersForProperty()
  5303. *
  5304. * Summary:
  5305. * Returns true if there are any listeners registered for the
  5306. * specified property class and ID.
  5307. *
  5308. * Parameters:
  5309. *
  5310. * inCollection:
  5311. * The property listener collection.
  5312. *
  5313. * inPropClass:
  5314. * The property class.
  5315. *
  5316. * inPropID:
  5317. * The property ID.
  5318. *
  5319. * Availability:
  5320. * Mac OS X: in version 10.3 (or QuickTime 6.4) and later in QuickTime.framework
  5321. * CarbonLib: not available
  5322. * Non-Carbon CFM: not available
  5323. }
  5324. function QTComponentPropertyListenerCollectionHasListenersForProperty( inCollection: QTComponentPropertyListenersRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID ): Boolean; external name '_QTComponentPropertyListenerCollectionHasListenersForProperty';
  5325. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  5326. { DRM properties}
  5327. const
  5328. kQTPropertyClass_DRM = FourCharCode('drm ');
  5329. const
  5330. kQTDRMPropertyID_InteractWithUser = FourCharCode('shui'); { Boolean*}
  5331. kQTDRMPropertyID_IsProtected = FourCharCode('prot'); { Boolean*}
  5332. kQTDRMPropertyID_IsAuthorized = FourCharCode('auth'); { Boolean*}
  5333. { UPP call backs }
  5334. { selectors for component calls }
  5335. const
  5336. kGraphicsImportSetDataReferenceSelect = $0001;
  5337. kGraphicsImportGetDataReferenceSelect = $0002;
  5338. kGraphicsImportSetDataFileSelect = $0003;
  5339. kGraphicsImportGetDataFileSelect = $0004;
  5340. kGraphicsImportSetDataHandleSelect = $0005;
  5341. kGraphicsImportGetDataHandleSelect = $0006;
  5342. kGraphicsImportGetImageDescriptionSelect = $0007;
  5343. kGraphicsImportGetDataOffsetAndSizeSelect = $0008;
  5344. kGraphicsImportReadDataSelect = $0009;
  5345. kGraphicsImportSetClipSelect = $000A;
  5346. kGraphicsImportGetClipSelect = $000B;
  5347. kGraphicsImportSetSourceRectSelect = $000C;
  5348. kGraphicsImportGetSourceRectSelect = $000D;
  5349. kGraphicsImportGetNaturalBoundsSelect = $000E;
  5350. kGraphicsImportDrawSelect = $000F;
  5351. kGraphicsImportSetGWorldSelect = $0010;
  5352. kGraphicsImportGetGWorldSelect = $0011;
  5353. kGraphicsImportSetMatrixSelect = $0012;
  5354. kGraphicsImportGetMatrixSelect = $0013;
  5355. kGraphicsImportSetBoundsRectSelect = $0014;
  5356. kGraphicsImportGetBoundsRectSelect = $0015;
  5357. kGraphicsImportSaveAsPictureSelect = $0016;
  5358. kGraphicsImportSetGraphicsModeSelect = $0017;
  5359. kGraphicsImportGetGraphicsModeSelect = $0018;
  5360. kGraphicsImportSetQualitySelect = $0019;
  5361. kGraphicsImportGetQualitySelect = $001A;
  5362. kGraphicsImportSaveAsQuickTimeImageFileSelect = $001B;
  5363. kGraphicsImportSetDataReferenceOffsetAndLimitSelect = $001C;
  5364. kGraphicsImportGetDataReferenceOffsetAndLimitSelect = $001D;
  5365. kGraphicsImportGetAliasedDataReferenceSelect = $001E;
  5366. kGraphicsImportValidateSelect = $001F;
  5367. kGraphicsImportGetMetaDataSelect = $0020;
  5368. kGraphicsImportGetMIMETypeListSelect = $0021;
  5369. kGraphicsImportDoesDrawAllPixelsSelect = $0022;
  5370. kGraphicsImportGetAsPictureSelect = $0023;
  5371. kGraphicsImportExportImageFileSelect = $0024;
  5372. kGraphicsImportGetExportImageTypeListSelect = $0025;
  5373. kGraphicsImportDoExportImageFileDialogSelect = $0026;
  5374. kGraphicsImportGetExportSettingsAsAtomContainerSelect = $0027;
  5375. kGraphicsImportSetExportSettingsFromAtomContainerSelect = $0028;
  5376. kGraphicsImportSetProgressProcSelect = $0029;
  5377. kGraphicsImportGetProgressProcSelect = $002A;
  5378. kGraphicsImportGetImageCountSelect = $002B;
  5379. kGraphicsImportSetImageIndexSelect = $002C;
  5380. kGraphicsImportGetImageIndexSelect = $002D;
  5381. kGraphicsImportGetDataOffsetAndSize64Select = $002E;
  5382. kGraphicsImportReadData64Select = $002F;
  5383. kGraphicsImportSetDataReferenceOffsetAndLimit64Select = $0030;
  5384. kGraphicsImportGetDataReferenceOffsetAndLimit64Select = $0031;
  5385. kGraphicsImportGetDefaultMatrixSelect = $0032;
  5386. kGraphicsImportGetDefaultClipSelect = $0033;
  5387. kGraphicsImportGetDefaultGraphicsModeSelect = $0034;
  5388. kGraphicsImportGetDefaultSourceRectSelect = $0035;
  5389. kGraphicsImportGetColorSyncProfileSelect = $0036;
  5390. kGraphicsImportSetDestRectSelect = $0037;
  5391. kGraphicsImportGetDestRectSelect = $0038;
  5392. kGraphicsImportSetFlagsSelect = $0039;
  5393. kGraphicsImportGetFlagsSelect = $003A;
  5394. kGraphicsImportGetBaseDataOffsetAndSize64Select = $003D;
  5395. kGraphicsImportSetImageIndexToThumbnailSelect = $003E;
  5396. kGraphicsImportCreateCGImageSelect = $003F;
  5397. kGraphicsImportSaveAsPictureToDataRefSelect = $0040;
  5398. kGraphicsImportSaveAsQuickTimeImageFileToDataRefSelect = $0041;
  5399. kGraphicsImportExportImageFileToDataRefSelect = $0042;
  5400. kGraphicsImportDoExportImageFileToDataRefDialogSelect = $0043;
  5401. kGraphicsImportSetOverrideSourceColorSyncProfileRefSelect = $0044;
  5402. kGraphicsImportGetOverrideSourceColorSyncProfileRefSelect = $0045;
  5403. kGraphicsImportSetDestinationColorSyncProfileRefSelect = $0046;
  5404. kGraphicsImportGetDestinationColorSyncProfileRefSelect = $0047;
  5405. kGraphicsImportWillUseColorMatchingSelect = $0048;
  5406. kGraphicsImportGetGenericColorSyncProfileSelect = $0049;
  5407. kGraphicsImportSetReturnGenericColorSyncProfileSelect = $004A;
  5408. kGraphicsImportGetReturnGenericColorSyncProfileSelect = $004B;
  5409. kGraphicsExportDoExportSelect = $0001;
  5410. kGraphicsExportCanTranscodeSelect = $0002;
  5411. kGraphicsExportDoTranscodeSelect = $0003;
  5412. kGraphicsExportCanUseCompressorSelect = $0004;
  5413. kGraphicsExportDoUseCompressorSelect = $0005;
  5414. kGraphicsExportDoStandaloneExportSelect = $0006;
  5415. kGraphicsExportGetDefaultFileTypeAndCreatorSelect = $0007;
  5416. kGraphicsExportGetDefaultFileNameExtensionSelect = $0008;
  5417. kGraphicsExportGetMIMETypeListSelect = $0009;
  5418. kGraphicsExportRequestSettingsSelect = $000B;
  5419. kGraphicsExportSetSettingsFromAtomContainerSelect = $000C;
  5420. kGraphicsExportGetSettingsAsAtomContainerSelect = $000D;
  5421. kGraphicsExportGetSettingsAsTextSelect = $000E;
  5422. kGraphicsExportSetDontRecompressSelect = $000F;
  5423. kGraphicsExportGetDontRecompressSelect = $0010;
  5424. kGraphicsExportSetInterlaceStyleSelect = $0011;
  5425. kGraphicsExportGetInterlaceStyleSelect = $0012;
  5426. kGraphicsExportSetMetaDataSelect = $0013;
  5427. kGraphicsExportGetMetaDataSelect = $0014;
  5428. kGraphicsExportSetTargetDataSizeSelect = $0015;
  5429. kGraphicsExportGetTargetDataSizeSelect = $0016;
  5430. kGraphicsExportSetCompressionMethodSelect = $0017;
  5431. kGraphicsExportGetCompressionMethodSelect = $0018;
  5432. kGraphicsExportSetCompressionQualitySelect = $0019;
  5433. kGraphicsExportGetCompressionQualitySelect = $001A;
  5434. kGraphicsExportSetResolutionSelect = $001B;
  5435. kGraphicsExportGetResolutionSelect = $001C;
  5436. kGraphicsExportSetDepthSelect = $001D;
  5437. kGraphicsExportGetDepthSelect = $001E;
  5438. kGraphicsExportSetColorSyncProfileSelect = $0021;
  5439. kGraphicsExportGetColorSyncProfileSelect = $0022;
  5440. kGraphicsExportSetProgressProcSelect = $0023;
  5441. kGraphicsExportGetProgressProcSelect = $0024;
  5442. kGraphicsExportSetInputDataReferenceSelect = $0025;
  5443. kGraphicsExportGetInputDataReferenceSelect = $0026;
  5444. kGraphicsExportSetInputFileSelect = $0027;
  5445. kGraphicsExportGetInputFileSelect = $0028;
  5446. kGraphicsExportSetInputHandleSelect = $0029;
  5447. kGraphicsExportGetInputHandleSelect = $002A;
  5448. kGraphicsExportSetInputPtrSelect = $002B;
  5449. kGraphicsExportGetInputPtrSelect = $002C;
  5450. kGraphicsExportSetInputGraphicsImporterSelect = $002D;
  5451. kGraphicsExportGetInputGraphicsImporterSelect = $002E;
  5452. kGraphicsExportSetInputPictureSelect = $002F;
  5453. kGraphicsExportGetInputPictureSelect = $0030;
  5454. kGraphicsExportSetInputGWorldSelect = $0031;
  5455. kGraphicsExportGetInputGWorldSelect = $0032;
  5456. kGraphicsExportSetInputPixmapSelect = $0033;
  5457. kGraphicsExportGetInputPixmapSelect = $0034;
  5458. kGraphicsExportSetInputOffsetAndLimitSelect = $0035;
  5459. kGraphicsExportGetInputOffsetAndLimitSelect = $0036;
  5460. kGraphicsExportMayExporterReadInputDataSelect = $0037;
  5461. kGraphicsExportGetInputDataSizeSelect = $0038;
  5462. kGraphicsExportReadInputDataSelect = $0039;
  5463. kGraphicsExportGetInputImageDescriptionSelect = $003A;
  5464. kGraphicsExportGetInputImageDimensionsSelect = $003B;
  5465. kGraphicsExportGetInputImageDepthSelect = $003C;
  5466. kGraphicsExportDrawInputImageSelect = $003D;
  5467. kGraphicsExportSetOutputDataReferenceSelect = $003E;
  5468. kGraphicsExportGetOutputDataReferenceSelect = $003F;
  5469. kGraphicsExportSetOutputFileSelect = $0040;
  5470. kGraphicsExportGetOutputFileSelect = $0041;
  5471. kGraphicsExportSetOutputHandleSelect = $0042;
  5472. kGraphicsExportGetOutputHandleSelect = $0043;
  5473. kGraphicsExportSetOutputOffsetAndMaxSizeSelect = $0044;
  5474. kGraphicsExportGetOutputOffsetAndMaxSizeSelect = $0045;
  5475. kGraphicsExportSetOutputFileTypeAndCreatorSelect = $0046;
  5476. kGraphicsExportGetOutputFileTypeAndCreatorSelect = $0047;
  5477. kGraphicsExportWriteOutputDataSelect = $0048;
  5478. kGraphicsExportSetOutputMarkSelect = $0049;
  5479. kGraphicsExportGetOutputMarkSelect = $004A;
  5480. kGraphicsExportReadOutputDataSelect = $004B;
  5481. kGraphicsExportSetThumbnailEnabledSelect = $004C;
  5482. kGraphicsExportGetThumbnailEnabledSelect = $004D;
  5483. kGraphicsExportSetExifEnabledSelect = $004E;
  5484. kGraphicsExportGetExifEnabledSelect = $004F;
  5485. kGraphicsExportSetInputCGImageSelect = $0050;
  5486. kGraphicsExportGetInputCGImageSelect = $0051;
  5487. kGraphicsExportSetInputCGBitmapContextSelect = $0052;
  5488. kGraphicsExportGetInputCGBitmapContextSelect = $0053;
  5489. kGraphicsExportSetFlagsSelect = $0054;
  5490. kGraphicsExportGetFlagsSelect = $0055;
  5491. kImageTranscoderBeginSequenceSelect = $0001;
  5492. kImageTranscoderConvertSelect = $0002;
  5493. kImageTranscoderDisposeDataSelect = $0003;
  5494. kImageTranscoderEndSequenceSelect = $0004;
  5495. kQTGetComponentPropertyInfoSelect = -11;
  5496. kQTGetComponentPropertySelect = -12;
  5497. kQTSetComponentPropertySelect = -13;
  5498. kQTAddComponentPropertyListenerSelect = -14;
  5499. kQTRemoveComponentPropertyListenerSelect = -15;
  5500. { Aperture modes }
  5501. {
  5502. * Summary:
  5503. * Aperture modes
  5504. *
  5505. * Discussion:
  5506. * You can set the aperture mode property on a movie to indicate
  5507. * whether aspect ratio and clean aperture correction should be
  5508. * performed (kQTPropertyClass_Visual /
  5509. * kQTVisualPropertyID_ApertureMode). When a movie is in clean,
  5510. * production or encoded pixels aperture mode, each track's
  5511. * dimensions are overriden by special dimensions for that mode. The
  5512. * original track dimensions are preserved and can be restored by
  5513. * setting the movie into classic aperture mode. Aperture modes are
  5514. * not saved in movies.
  5515. * You can set the aperture mode property on a decompression session
  5516. * options object to indicate whether pixel buffers should be tagged
  5517. * to enable aspect ratio and clean aperture correction
  5518. * (kQTPropertyClass_ICMDecompressionSessionOptions /
  5519. * kICMDecompressionSessionOptionsPropertyID_ApertureMode).
  5520. }
  5521. const
  5522. {
  5523. * An aperture mode which gives compatibility with behavior in
  5524. * QuickTime 7.0.x and earlier.
  5525. * A movie in classic aperture mode uses track dimensions as set in
  5526. * NewMovieTrack and SetTrackDimensions.
  5527. * A decompression session in classic aperture mode does not set the
  5528. * clean aperture or pixel aspect ratio attachments on emitted pixel
  5529. * buffers.
  5530. * Movies default to classic aperture mode. If you call
  5531. * SetTrackDimensions on a track, the movie is automatically switched
  5532. * into classic aperture mode.
  5533. }
  5534. kQTApertureMode_Classic = FourCharCode('clas');
  5535. {
  5536. * An aperture mode for general display.
  5537. * Where possible, video will be displayed at the correct pixel
  5538. * aspect ratio, trimmed to the clean aperture. A movie in clean
  5539. * aperture mode sets each track's dimensions to match its
  5540. * kQTVisualPropertyID_CleanApertureDimensions.
  5541. * A decompression session in clean aperture mode sets the clean
  5542. * aperture and pixel aspect ratio attachments on emitted pixel
  5543. * buffers based on the image description.
  5544. }
  5545. kQTApertureMode_CleanAperture = FourCharCode('clea');
  5546. {
  5547. * An aperture mode for modal use in authoring applications.
  5548. * Where possible, video will be displayed at the correct pixel
  5549. * aspect ratio, but without trimming to the clean aperture so that
  5550. * the edge processing region can be viewed. A movie in production
  5551. * aperture mode sets each track's dimensions to match its
  5552. * kQTVisualPropertyID_ProductionApertureDimensions.
  5553. * A decompression session in production aperture mode sets the pixel
  5554. * aspect ratio attachments on emitted pixel buffers based on the
  5555. * image description.
  5556. }
  5557. kQTApertureMode_ProductionAperture = FourCharCode('prod');
  5558. {
  5559. * An aperture mode for technical use.
  5560. * Displays all encoded pixels with no aspect ratio or clean aperture
  5561. * compensation. A movie in encoded pixels aperture mode sets each
  5562. * track's dimensions to match its
  5563. * kQTVisualPropertyID_EncodedPixelsDimensions.
  5564. * A decompression session in encoded pixels aperture mode does not
  5565. * set the clean aperture or pixel aspect ratio attachments on
  5566. * emitted pixel buffers.
  5567. }
  5568. kQTApertureMode_EncodedPixels = FourCharCode('enco');
  5569. { Property interface for Image Descriptions }
  5570. {
  5571. * Summary:
  5572. * Properties of image descriptions.
  5573. }
  5574. const
  5575. {
  5576. * Class identifier for image description properties.
  5577. }
  5578. kQTPropertyClass_ImageDescription = FourCharCode('idsc');
  5579. {
  5580. * The width of the encoded image. Usually, but not always, this is
  5581. * the ImageDescription's width field.
  5582. }
  5583. kICMImageDescriptionPropertyID_EncodedWidth = FourCharCode('encw'); { SInt32, Read/Write }
  5584. {
  5585. * The height of the encoded image. Usually, but not always, this is
  5586. * the ImageDescription's height field.
  5587. }
  5588. kICMImageDescriptionPropertyID_EncodedHeight = FourCharCode('ench'); { SInt32, Read/Write }
  5589. {
  5590. * Describes the clean aperture of the buffer. If not specified
  5591. * explicitly in the image description, the default clean aperture
  5592. * (full encoded width and height) will be returned.
  5593. }
  5594. kICMImageDescriptionPropertyID_CleanAperture = FourCharCode('clap'); { Native-endian CleanApertureImageDescriptionExtension, Read/Write }
  5595. {
  5596. * Describes the pixel aspect ratio. If not specified explicitly in
  5597. * the image description, a square (1:1) pixel aspect ratio will be
  5598. * returned.
  5599. }
  5600. kICMImageDescriptionPropertyID_PixelAspectRatio = FourCharCode('pasp'); { Native-endian PixelAspectRatioImageDescriptionExtension, Read/Write }
  5601. {
  5602. * Dimensions at which the image could be displayed on a square-pixel
  5603. * display, generally calculated using the clean aperture and pixel
  5604. * aspect ratio.
  5605. * Note that this value is returned as a FixedPoint; the width and
  5606. * height can also be read separately as rounded SInt32s via
  5607. * kICMImageDescriptionPropertyID_CleanApertureDisplayWidth and
  5608. * kICMImageDescriptionPropertyID_CleanApertureDisplayHeight.
  5609. }
  5610. kICMImageDescriptionPropertyID_CleanApertureDisplayDimensions = FourCharCode('cadi'); { FixedPoint, Read }
  5611. {
  5612. * Dimensions at which the image could be displayed on a square-pixel
  5613. * display, disregarding any clean aperture but honoring the pixel
  5614. * aspect ratio. This may be useful for authoring applications that
  5615. * want to expose the edge processing region. For general viewing,
  5616. * use kICMImageDescriptionPropertyID_CleanApertureDimensions
  5617. * instead.
  5618. * Note that this value is returned as a FixedPoint; the width and
  5619. * height can also be read separately as rounded SInt32s via
  5620. * kICMImageDescriptionPropertyID_ProductionApertureDisplayWidth and
  5621. * kICMImageDescriptionPropertyID_ProductionApertureDisplayHeight.
  5622. }
  5623. kICMImageDescriptionPropertyID_ProductionApertureDisplayDimensions = FourCharCode('prdi'); { FixedPoint, Read }
  5624. {
  5625. * Dimensions of the encoded image.
  5626. * Note that this value is returned as a FixedPoint for convenience;
  5627. * the width and height can also be read separately as SInt32s via
  5628. * kICMImageDescriptionPropertyID_EncodedWidth and
  5629. * kICMImageDescriptionPropertyID_EncodedHeight.
  5630. }
  5631. kICMImageDescriptionPropertyID_EncodedPixelsDimensions = FourCharCode('endi'); { FixedPoint, Read }
  5632. {
  5633. * A width at which the image could be displayed on a square-pixel
  5634. * display, possibly calculated using the clean aperture and pixel
  5635. * aspect ratio.
  5636. }
  5637. kICMImageDescriptionPropertyID_CleanApertureDisplayWidth = FourCharCode('disw'); { SInt32, Read }
  5638. {
  5639. * A height at which the image could be displayed on a square-pixel
  5640. * display, possibly calculated using the clean aperture and pixel
  5641. * aspect ratio.
  5642. }
  5643. kICMImageDescriptionPropertyID_CleanApertureDisplayHeight = FourCharCode('dish'); { SInt32, Read }
  5644. {
  5645. * A width at which the image could be displayed on a square-pixel
  5646. * display, disregarding any clean aperture but honoring the pixel
  5647. * aspect ratio. This may be useful for authoring applications that
  5648. * want to expose the edge processing region. For general viewing,
  5649. * use kICMImageDescriptionPropertyID_CleanApertureDisplayWidth
  5650. * instead.
  5651. }
  5652. kICMImageDescriptionPropertyID_ProductionApertureDisplayWidth = FourCharCode('pdsw'); { SInt32, Read }
  5653. {
  5654. * A height at which the image could be displayed on a square-pixel
  5655. * display, disregarding any clean aperture but honoring the pixel
  5656. * aspect ratio. This may be useful for authoring applications that
  5657. * want to expose the edge processing region. For general viewing,
  5658. * use kICMImageDescriptionPropertyID_CleanApertureDisplayHeight
  5659. * instead.
  5660. }
  5661. kICMImageDescriptionPropertyID_ProductionApertureDisplayHeight = FourCharCode('pdsh'); { SInt32, Read }
  5662. {
  5663. * Synonym for
  5664. * kICMImageDescriptionPropertyID_CleanApertureDisplayWidth.
  5665. }
  5666. kICMImageDescriptionPropertyID_DisplayWidth = FourCharCode('disw'); { SInt32, Read }
  5667. {
  5668. * Synonym for
  5669. * kICMImageDescriptionPropertyID_CleanApertureDisplayHeight.
  5670. }
  5671. kICMImageDescriptionPropertyID_DisplayHeight = FourCharCode('dish'); { SInt32, Read }
  5672. {
  5673. * Synonym for
  5674. * kICMImageDescriptionPropertyID_ProductionApertureDisplayWidth.
  5675. }
  5676. kICMImageDescriptionPropertyID_ProductionDisplayWidth = FourCharCode('pdsw'); { SInt32, Read }
  5677. {
  5678. * Synonym for
  5679. * kICMImageDescriptionPropertyID_ProductionApertureDisplayHeight.
  5680. }
  5681. kICMImageDescriptionPropertyID_ProductionDisplayHeight = FourCharCode('pdsh'); { SInt32, Read }
  5682. {
  5683. * Color information, if available in the
  5684. * NCLCColorInfoImageDescriptionExtension format.
  5685. }
  5686. kICMImageDescriptionPropertyID_NCLCColorInfo = FourCharCode('nclc'); { Native-endian NCLCColorInfoImageDescriptionExtension, Read/Write }
  5687. {
  5688. * A CGColorSpaceRef for the colorspace described by the image
  5689. * description, constructed from video color info or ICC Profile.
  5690. * IMPORTANT NOTE: The YCbCr matrix from the video color info is not
  5691. * represented in the CGColorSpaceRef. The caller of GetProperty is
  5692. * responsible for releasing this, eg, by calling
  5693. * CGColorSpaceRelease. Only supported on Mac OS X.
  5694. }
  5695. kICMImageDescriptionPropertyID_CGColorSpace = FourCharCode('cgcs'); { CGColorSpaceRef, Read -- caller of GetProperty must call CGColorSpaceRelease }
  5696. {
  5697. * A CFDataRef containing the serialized ICC profile described by the
  5698. * image description. The caller of GetProperty is responsible for
  5699. * releasing this, eg, by calling CFRelease.
  5700. }
  5701. kICMImageDescriptionPropertyID_ICCProfile = FourCharCode('iccp'); { CFDataRef, Read/Write -- caller of GetProperty must call CFRelease }
  5702. {
  5703. * The gamma level described by the image description.
  5704. }
  5705. kICMImageDescriptionPropertyID_GammaLevel = FourCharCode('gama'); { Fixed, Read/Write }
  5706. {
  5707. * Information about the number and order of fields, if available.
  5708. }
  5709. kICMImageDescriptionPropertyID_FieldInfo = FourCharCode('fiel'); { FieldInfoImageDescriptionExtension2, Read/Write }
  5710. {
  5711. * The offset in bytes from the start of one row to the next. Only
  5712. * valid if the codec type is a chunky pixel format.
  5713. }
  5714. kICMImageDescriptionPropertyID_RowBytes = FourCharCode('rowb'); { SInt32, Read/Write }
  5715. {
  5716. * A track width suitable for passing to NewMovieTrack when creating
  5717. * a new track to hold this image data.
  5718. }
  5719. kICMImageDescriptionPropertyID_ClassicTrackWidth = FourCharCode('claw'); { Fixed, Read }
  5720. {
  5721. * A track height suitable for passing to NewMovieTrack when creating
  5722. * a new track to hold this image data.
  5723. }
  5724. kICMImageDescriptionPropertyID_ClassicTrackHeight = FourCharCode('clah'); { Fixed, Read }
  5725. {
  5726. * Defines a duration for quantizing time. This is applicable for
  5727. * cases where a single media sample generates visual output that
  5728. * varies continuously through its duration. By interpreting this
  5729. * property, such a sample may be considered to have internal "step
  5730. * points" at multiples of the stepping duration. This can be used to
  5731. * throttle frame generation during playback, and when stepping using
  5732. * InterestingTime APIs. Setting a step duration with value zero
  5733. * removes any current step duration.
  5734. }
  5735. kICMImageDescriptionPropertyID_StepDuration = FourCharCode('step'); { TimeRecord (base ignored), Read/Write }
  5736. {
  5737. * The clean aperture as a FixedRect in source coordinates, within
  5738. * the rectangle defined by the image description width and height,
  5739. * suitable for use as a source rectangle in a decompression
  5740. * sequence.
  5741. * For historical reasons, the DVCPROHD codecs store the production
  5742. * aperture display dimensions in the image description width and
  5743. * height; the actual encoded dimensions are smaller. For DVCPROHD,
  5744. * the clip rect will be relative to the image description width and
  5745. * height, not the encoded dimensions.
  5746. }
  5747. kICMImageDescriptionPropertyID_CleanApertureClipRect = FourCharCode('cacr'); { FixedRect, Read }
  5748. {
  5749. * A matrix transforming the clean aperture clip rect to the origin,
  5750. * scaled to the clean aperture display dimensions.
  5751. * For historical reasons, the DVCPROHD codecs store the production
  5752. * aperture display dimensions in the image description width and
  5753. * height; the actual encoded dimensions are smaller. For DVCPROHD,
  5754. * the matrix will be relative to the image description width and
  5755. * height, not the encoded dimensions.
  5756. }
  5757. kICMImageDescriptionPropertyID_CleanApertureMatrix = FourCharCode('camx'); { MatrixRecord, Read }
  5758. {
  5759. * A matrix transforming the image to the origin, scaled to the
  5760. * production aperture display dimensions.
  5761. * For historical reasons, the DVCPROHD codecs store the production
  5762. * aperture display dimensions in the image description width and
  5763. * height; the actual encoded dimensions are smaller. For DVCPROHD,
  5764. * the matrix will be relative to the image description width and
  5765. * height, not the encoded dimensions.
  5766. }
  5767. kICMImageDescriptionPropertyID_ProductionApertureMatrix = FourCharCode('pamx'); { MatrixRecord, Read }
  5768. {
  5769. * A localized, human readable string summarizing the image as a
  5770. * CFString, ie: "Apple DV, 720 x 480 (640 x 480), Millions".
  5771. * The elements are: the codec name, the encoded pixels dimensions,
  5772. * then parenthetically the clean aperture mode dimensions, but only
  5773. * if they are different from the encoded pixels dimensions; then the
  5774. * depth.
  5775. * The codec name shall be from the localized decompressor component
  5776. * name string if exactly one decompressor with the correct cType is
  5777. * available; otherwise the string in the image description shall be
  5778. * used. The caller of GetProperty is responsible for releasing this
  5779. * CFString, eg, by calling CFRelease.
  5780. }
  5781. kICMImageDescriptionPropertyID_SummaryString = FourCharCode('isum'); { CFStringRef, Read - caller of GetProperty must call CFRelease}
  5782. {
  5783. * ICMImageDescriptionGetPropertyInfo()
  5784. *
  5785. * Summary:
  5786. * Gets info about a particular property of a ImageDescription.
  5787. *
  5788. * Parameters:
  5789. *
  5790. * inDesc:
  5791. * ImageDescriptionHandle being interrogated
  5792. *
  5793. * inPropClass:
  5794. * The class of property being requested
  5795. *
  5796. * inPropID:
  5797. * The ID of the property being requested
  5798. *
  5799. * outPropType:
  5800. * The type of property is returned here (can be NULL)
  5801. *
  5802. * outPropValueSize:
  5803. * The size of property is returned here (can be NULL)
  5804. *
  5805. * outPropertyFlags:
  5806. * The property flags are returned here (can be NULL)
  5807. *
  5808. * Availability:
  5809. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  5810. * CarbonLib: not available
  5811. * Non-Carbon CFM: not available
  5812. }
  5813. function ICMImageDescriptionGetPropertyInfo( inDesc: ImageDescriptionHandle; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMImageDescriptionGetPropertyInfo';
  5814. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  5815. {
  5816. * ICMImageDescriptionGetProperty()
  5817. *
  5818. * Summary:
  5819. * Gets a particular property of a ImageDescriptionHandle.
  5820. *
  5821. * Parameters:
  5822. *
  5823. * inDesc:
  5824. * ImageDescriptionHandle being interrogated
  5825. *
  5826. * inPropClass:
  5827. * The class of property being requested
  5828. *
  5829. * inPropID:
  5830. * The ID of the property being requested
  5831. *
  5832. * inPropValueSize:
  5833. * The size of the property value buffer
  5834. *
  5835. * outPropValueAddress:
  5836. * Points to the buffer to receive the property value
  5837. *
  5838. * outPropValueSizeUsed:
  5839. * Points to a variable to receive the actual size of returned
  5840. * property value (can be NULL)
  5841. *
  5842. * Availability:
  5843. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  5844. * CarbonLib: not available
  5845. * Non-Carbon CFM: not available
  5846. }
  5847. function ICMImageDescriptionGetProperty( inDesc: ImageDescriptionHandle; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMImageDescriptionGetProperty';
  5848. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  5849. {
  5850. * ICMImageDescriptionSetProperty()
  5851. *
  5852. * Summary:
  5853. * Sets a particular property of a ImageDescriptionHandle.
  5854. *
  5855. * Parameters:
  5856. *
  5857. * inDesc:
  5858. * ImageDescriptionHandle being modified
  5859. *
  5860. * inPropClass:
  5861. * The class of property being set
  5862. *
  5863. * inPropID:
  5864. * The ID of the property being set
  5865. *
  5866. * inPropValueSize:
  5867. * The size of property value
  5868. *
  5869. * inPropValueAddress:
  5870. * Points to the property value buffer
  5871. *
  5872. * Availability:
  5873. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  5874. * CarbonLib: not available
  5875. * Non-Carbon CFM: not available
  5876. }
  5877. function ICMImageDescriptionSetProperty( inDesc: ImageDescriptionHandle; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMImageDescriptionSetProperty';
  5878. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  5879. {
  5880. * ICMValidTimeFlags
  5881. *
  5882. * Summary:
  5883. * Flags to describe which time values are valid.
  5884. }
  5885. type
  5886. ICMValidTimeFlagsPtr = ^ICMValidTimeFlags;
  5887. ICMValidTimeFlags = UInt32;
  5888. const
  5889. {
  5890. * Indicates that a display time stamp is valid.
  5891. }
  5892. kICMValidTime_DisplayTimeStampIsValid = 1 shl 0;
  5893. {
  5894. * Indicates that a display duration is valid.
  5895. }
  5896. kICMValidTime_DisplayDurationIsValid = 1 shl 1;
  5897. {
  5898. * Indicates that a decode time stamp is valid.
  5899. }
  5900. kICMValidTime_DecodeTimeStampIsValid = 1 shl 2;
  5901. {
  5902. * Indicates that a decode duration is valid.
  5903. }
  5904. kICMValidTime_DecodeDurationIsValid = 1 shl 3;
  5905. {
  5906. * Indicates that a display offset (the offset from a decode time
  5907. * stamp to a display time stamp) is valid.
  5908. }
  5909. kICMValidTime_DisplayOffsetIsValid = 1 shl 4;
  5910. {
  5911. * ICMDecompressionSessionRef
  5912. *
  5913. * Summary:
  5914. * Represents a decompression session that emits CVPixelBufferRefs
  5915. * containing frames, tagged with display times.
  5916. *
  5917. * Discussion:
  5918. * ICMDecompressionSession does not support source extraction,
  5919. * matrix transformations, graphics transfer modes, region-based
  5920. * clipping or data-loading procedures. Note that the pixel buffers
  5921. * may be output out of display order, provided that the client opts
  5922. * in.
  5923. }
  5924. type
  5925. ICMDecompressionSessionRef = ^SInt32; { an opaque type }
  5926. {
  5927. * QTVisualContextRef
  5928. *
  5929. * Summary:
  5930. * Represents a destination visual rendering environment.
  5931. *
  5932. * Discussion:
  5933. * The QTVisualContextRef type encapsulates a connection to a
  5934. * generic visual destination. A single visual context object may
  5935. * not be associated with more than one movie at a time.
  5936. }
  5937. type
  5938. QTVisualContextRef = ^SInt32; { an opaque type }
  5939. {
  5940. * ICMDecompressionSessionOptionsRef
  5941. *
  5942. * Summary:
  5943. * Holds options for a decompression session.
  5944. }
  5945. type
  5946. ICMDecompressionSessionOptionsRef = ^SInt32; { an opaque type }
  5947. {
  5948. * ICMDecompressionFrameOptionsRef
  5949. *
  5950. * Summary:
  5951. * Holds options for decompressing an individual frame.
  5952. }
  5953. type
  5954. ICMDecompressionFrameOptionsRef = ^SInt32; { an opaque type }
  5955. {
  5956. * ICMDecompressionTrackingFlags
  5957. *
  5958. * Summary:
  5959. * Describes changes in state of a frame queued with an ICM
  5960. * decompression session.
  5961. }
  5962. type
  5963. ICMDecompressionTrackingFlags = UInt32;
  5964. const
  5965. {
  5966. * Indicates that this is the last call for this sourceFrameRefCon.
  5967. }
  5968. kICMDecompressionTracking_LastCall = 1 shl 0;
  5969. {
  5970. * Indicates that the session no longer needs the source data pointer.
  5971. }
  5972. kICMDecompressionTracking_ReleaseSourceData = 1 shl 1;
  5973. {
  5974. * Indicates that a frame is being emitted. The pixelBuffer parameter
  5975. * contains the decompressed frame. If the decompression session is
  5976. * targetting a visual context, the frame has not yet been sent to
  5977. * the visual context but will be after the callback returns.
  5978. }
  5979. kICMDecompressionTracking_EmittingFrame = 1 shl 2;
  5980. {
  5981. * Indicates that this frame was decoded.
  5982. }
  5983. kICMDecompressionTracking_FrameDecoded = 1 shl 3;
  5984. {
  5985. * Indicates that the codec decided to drop this frame.
  5986. }
  5987. kICMDecompressionTracking_FrameDropped = 1 shl 4;
  5988. {
  5989. * Indicates that this frame will not be able to be displayed unless
  5990. * it is queued for redecode (also known as FrameNotDisplayable).
  5991. }
  5992. kICMDecompressionTracking_FrameNeedsRequeueing = 1 shl 5;
  5993. {
  5994. * ICMDecompressionTrackingCallback
  5995. *
  5996. * Summary:
  5997. * The callback through which a client of an ICM decompression
  5998. * session receives decoded frames and information about decoding.
  5999. *
  6000. * Discussion:
  6001. * The client may retain the emitted pixel buffers as long as it
  6002. * needs; they will not be reused before the client releases them.
  6003. *
  6004. * Parameters:
  6005. *
  6006. * decompressionTrackingRefCon:
  6007. * The callback's reference value, copied from the
  6008. * decompressionTrackingRefCon field of the
  6009. * ICMDecompressionTrackingCallbackRecord structure.
  6010. *
  6011. * result:
  6012. * Indicates whether there was an error in decompression.
  6013. *
  6014. * decompressionTrackingFlags:
  6015. * One or more flags describing the a frame's state transitions.
  6016. *
  6017. * pixelBuffer:
  6018. * When the kICMDecompressionTracking_EmittingFrame flag is set in
  6019. * decompressionTrackingFlags, a pixel buffer containing the
  6020. * decompressed frame. Otherwise, NULL.
  6021. *
  6022. * displayTime:
  6023. * If kICMValidTime_DisplayTimeStampIsValid is set in
  6024. * validTimeFlags, the display time of the frame.
  6025. *
  6026. * displayDuration:
  6027. * If kICMValidTime_DisplayDurationIsValid is set in
  6028. * validTimeFlags, the display duration of the frame.
  6029. *
  6030. * validTimeFlags:
  6031. * Indicates which of displayTime and displayDuration is valid.
  6032. *
  6033. * reserved:
  6034. * Reserved for future use. Ignore the value of this parameter.
  6035. *
  6036. * sourceFrameRefCon:
  6037. * The frame's reference value, copied from the sourceFrameRefCon
  6038. * parameter to ICMDecompressionSessionDecodeFrame.
  6039. }
  6040. type
  6041. ICMDecompressionTrackingCallback = procedure( decompressionTrackingRefCon: UnivPtr; result: OSStatus; decompressionTrackingFlags: ICMDecompressionTrackingFlags; pixelBuffer: CVPixelBufferRef; displayTime: TimeValue64; displayDuration: TimeValue64; validTimeFlags: ICMValidTimeFlags; reserved: UnivPtr; sourceFrameRefCon: UnivPtr );
  6042. {
  6043. * ICMDecompressionTrackingCallbackRecord
  6044. *
  6045. * Summary:
  6046. * A tracking callback for an ICM decompression session.
  6047. }
  6048. type
  6049. ICMDecompressionTrackingCallbackRecordPtr = ^ICMDecompressionTrackingCallbackRecord;
  6050. ICMDecompressionTrackingCallbackRecord = record
  6051. {
  6052. * The callback function pointer.
  6053. }
  6054. decompressionTrackingCallback: ICMDecompressionTrackingCallback;
  6055. {
  6056. * The callback's reference value.
  6057. }
  6058. decompressionTrackingRefCon: UnivPtr;
  6059. end;
  6060. {
  6061. * ICMDecompressionSessionCreate()
  6062. *
  6063. * Summary:
  6064. * Creates a session for decompressing video frames.
  6065. *
  6066. * Discussion:
  6067. * Frames will be output through calls to trackingCallback.
  6068. *
  6069. * Parameters:
  6070. *
  6071. * allocator:
  6072. * An allocator for the session. Pass NULL to use the default
  6073. * allocator.
  6074. *
  6075. * desc:
  6076. * An image description for the source frames.
  6077. *
  6078. * decompressionOptions:
  6079. * Options for the session. The session will retain this options
  6080. * object. You may change some options during the session by
  6081. * modifying the object.
  6082. *
  6083. * destinationPixelBufferAttributes:
  6084. * Describes requirements for emitted pixel buffers.
  6085. *
  6086. * trackingCallback:
  6087. * The callback to be called with information about queued frames,
  6088. * and pixel buffers containing the decompressed frames.
  6089. *
  6090. * decompressionSessionOut:
  6091. * Points to a variable to receive the new decompression session.
  6092. *
  6093. * Availability:
  6094. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6095. * CarbonLib: not available
  6096. * Non-Carbon CFM: not available
  6097. }
  6098. function ICMDecompressionSessionCreate( allocator: CFAllocatorRef { can be NULL }; desc: ImageDescriptionHandle; decompressionOptions: ICMDecompressionSessionOptionsRef { can be NULL }; destinationPixelBufferAttributes: CFDictionaryRef { can be NULL }; var trackingCallback: ICMDecompressionTrackingCallbackRecord; var decompressionSessionOut: ICMDecompressionSessionRef ): OSStatus; external name '_ICMDecompressionSessionCreate';
  6099. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6100. {
  6101. * ICMDecompressionSessionCreateForVisualContext()
  6102. *
  6103. * Summary:
  6104. * Creates a session for decompressing video frames.
  6105. *
  6106. * Discussion:
  6107. * Frames will be output to a visual context. If desired, the
  6108. * trackingCallback may attach additional data to pixel buffers
  6109. * before they are sent to the visual context.
  6110. *
  6111. * Parameters:
  6112. *
  6113. * allocator:
  6114. * An allocator for the session. Pass NULL to use the default
  6115. * allocator.
  6116. *
  6117. * desc:
  6118. * An image description for the source frames.
  6119. *
  6120. * decompressionOptions:
  6121. * Options for the session. The session will retain this options
  6122. * object. You may change some options during the session by
  6123. * modifying the object.
  6124. *
  6125. * visualContext:
  6126. * The target visual context.
  6127. *
  6128. * trackingCallback:
  6129. * The callback to be called with information about queued frames,
  6130. * and pixel buffers containing the decompressed frames.
  6131. *
  6132. * decompressionSessionOut:
  6133. * Points to a variable to receive the new decompression session.
  6134. *
  6135. * Availability:
  6136. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6137. * CarbonLib: not available
  6138. * Non-Carbon CFM: not available
  6139. }
  6140. function ICMDecompressionSessionCreateForVisualContext( allocator: CFAllocatorRef { can be NULL }; desc: ImageDescriptionHandle; decompressionOptions: ICMDecompressionSessionOptionsRef { can be NULL }; visualContext: QTVisualContextRef; var trackingCallback: ICMDecompressionTrackingCallbackRecord; var decompressionSessionOut: ICMDecompressionSessionRef ): OSStatus; external name '_ICMDecompressionSessionCreateForVisualContext';
  6141. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6142. {
  6143. * ICMDecompressionSessionRetain()
  6144. *
  6145. * Summary:
  6146. * Increments the retain count of a decompression session.
  6147. *
  6148. * Discussion:
  6149. * If you pass NULL to this function, nothing happens.
  6150. *
  6151. * Availability:
  6152. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6153. * CarbonLib: not available
  6154. * Non-Carbon CFM: not available
  6155. }
  6156. function ICMDecompressionSessionRetain( session: ICMDecompressionSessionRef ): ICMDecompressionSessionRef; external name '_ICMDecompressionSessionRetain';
  6157. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6158. {
  6159. * ICMDecompressionSessionRelease()
  6160. *
  6161. * Summary:
  6162. * Decrements the retain count of a decompression session. If it
  6163. * drops to zero, the session is disposed.
  6164. *
  6165. * Discussion:
  6166. * If you pass NULL to this function, nothing happens.
  6167. *
  6168. * Availability:
  6169. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6170. * CarbonLib: not available
  6171. * Non-Carbon CFM: not available
  6172. }
  6173. procedure ICMDecompressionSessionRelease( session: ICMDecompressionSessionRef ); external name '_ICMDecompressionSessionRelease';
  6174. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6175. {
  6176. * ICMDecompressionSessionGetTypeID()
  6177. *
  6178. * Summary:
  6179. * Returns the CFTypeID for decompression sessions.
  6180. *
  6181. * Availability:
  6182. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6183. * CarbonLib: not available
  6184. * Non-Carbon CFM: not available
  6185. }
  6186. function ICMDecompressionSessionGetTypeID: CFTypeID; external name '_ICMDecompressionSessionGetTypeID';
  6187. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6188. {
  6189. * ICMDecompressionSessionDecodeFrame()
  6190. *
  6191. * Summary:
  6192. * Queues a frame for decompression.
  6193. *
  6194. * Parameters:
  6195. *
  6196. * session:
  6197. * The decompression session.
  6198. *
  6199. * data:
  6200. * Points to the compressed data for this frame. The data must
  6201. * remain in this location until the tracking callback is called
  6202. * with the kICMDecompressionTracking_ReleaseSourceData flag set
  6203. * in decompressionTrackingFlags.
  6204. *
  6205. * dataSize:
  6206. * The number of bytes of compressed data. You may not pass zero
  6207. * in this parameter.
  6208. *
  6209. * frameOptions:
  6210. * Options for this frame.
  6211. *
  6212. * frameTime:
  6213. * Points to a structure describing the frame's timing information.
  6214. *
  6215. * sourceFrameRefCon:
  6216. * Your reference value for the frame.
  6217. *
  6218. * Availability:
  6219. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6220. * CarbonLib: not available
  6221. * Non-Carbon CFM: not available
  6222. }
  6223. function ICMDecompressionSessionDecodeFrame( session: ICMDecompressionSessionRef; data: {const} UnivPtr; dataSize: ByteCount; frameOptions: ICMDecompressionFrameOptionsRef { can be NULL }; const (*var*) frameTime: ICMFrameTimeRecord; sourceFrameRefCon: UnivPtr ): OSStatus; external name '_ICMDecompressionSessionDecodeFrame';
  6224. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6225. {
  6226. * ICMDecompressionSessionGetPropertyInfo()
  6227. *
  6228. * Summary:
  6229. * Retrieves information about properties of a decompression session.
  6230. *
  6231. * Availability:
  6232. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6233. * CarbonLib: not available
  6234. * Non-Carbon CFM: not available
  6235. }
  6236. function ICMDecompressionSessionGetPropertyInfo( session: ICMDecompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMDecompressionSessionGetPropertyInfo';
  6237. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6238. {
  6239. * ICMDecompressionSessionGetProperty()
  6240. *
  6241. * Summary:
  6242. * Retrieves the value of a specific property of a decompression
  6243. * session.
  6244. *
  6245. * Availability:
  6246. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6247. * CarbonLib: not available
  6248. * Non-Carbon CFM: not available
  6249. }
  6250. function ICMDecompressionSessionGetProperty( session: ICMDecompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMDecompressionSessionGetProperty';
  6251. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6252. {
  6253. * ICMDecompressionSessionSetProperty()
  6254. *
  6255. * Summary:
  6256. * Sets the value of a specific property of a decompression session.
  6257. *
  6258. * Availability:
  6259. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6260. * CarbonLib: not available
  6261. * Non-Carbon CFM: not available
  6262. }
  6263. function ICMDecompressionSessionSetProperty( session: ICMDecompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMDecompressionSessionSetProperty';
  6264. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6265. {
  6266. * ICMNonScheduledDisplayTime
  6267. *
  6268. * Discussion:
  6269. * The display time for a decompression session.
  6270. }
  6271. type
  6272. ICMNonScheduledDisplayTime = record
  6273. {
  6274. * A display time. Usually this is the display time of a
  6275. * non-scheduled queued frame.
  6276. }
  6277. displayTime: TimeValue64;
  6278. {
  6279. * The timescale according to which displayTime should be interpreted.
  6280. }
  6281. displayTimeScale: TimeScale;
  6282. {
  6283. * Reserved, set to zero.
  6284. }
  6285. flags: UInt32;
  6286. end;
  6287. {
  6288. * Summary:
  6289. * Properties of decompression sessions.
  6290. }
  6291. const
  6292. {
  6293. * Class identifier for decompression session properties.
  6294. }
  6295. kQTPropertyClass_ICMDecompressionSession = FourCharCode('icds');
  6296. {
  6297. * The non-scheduled display time for a decompression session.
  6298. * Setting this requests display of the non-scheduled queued frame at
  6299. * that display time, if there is one.
  6300. * See ICMDecompressionSessionSetNonScheduledDisplayTime.
  6301. }
  6302. kICMDecompressionSessionPropertyID_NonScheduledDisplayTime = FourCharCode('nsti'); { ICMNonScheduledDisplayTime, Read/Write }
  6303. {
  6304. * The direction for non-scheduled display time.
  6305. * See ICMDecompressionSessionSetNonScheduledDisplayDirection.
  6306. }
  6307. kICMDecompressionSessionPropertyID_NonScheduledDisplayDirection = FourCharCode('nsdu'); { Fixed, Read/Write }
  6308. {
  6309. * The pixel buffer pool from which emitted pixel buffers are
  6310. * allocated. Getting this does not change the retain count of the
  6311. * pool.
  6312. }
  6313. kICMDecompressionSessionPropertyID_PixelBufferPool = FourCharCode('pool'); { CVPixelBufferPoolRef, Read }
  6314. {
  6315. * Indicates whether the a common pixel buffer pool is shared between
  6316. * the decompressor and the session client. This is false if separate
  6317. * pools are used because the decompressor's and the client's pixel
  6318. * buffer attributes were incompatible.
  6319. }
  6320. kICMDecompressionSessionPropertyID_PixelBufferPoolIsShared = FourCharCode('plsh'); { Boolean, Read }
  6321. {
  6322. * ICMDecompressionSessionSetNonScheduledDisplayTime()
  6323. *
  6324. * Summary:
  6325. * Sets the display time for a decompression session, and requests
  6326. * display of the non-scheduled queued frame at that display time,
  6327. * if there is one.
  6328. *
  6329. * Discussion:
  6330. * Call ICMDecompressionSessionSetNonScheduledDisplayTime after
  6331. * queueing non-scheduled frames with
  6332. * ICMDecompressionSessionDecodeFrame with the
  6333. * icmFrameTimeIsNonScheduledDisplayTime flag set to request display
  6334. * of the frame at a particular display time.
  6335. * If there is no queued non-scheduled frame with this display time,
  6336. * the frame with the next earlier display time is displayed. (Which
  6337. * of two display times is earlier is determined using the
  6338. * non-scheduled display time direction, which you can set with
  6339. * ICMDecompressionSessionSetNonScheduledDisplayDirection.) If there
  6340. * is no such frame, nothing happens.
  6341. * This has no effect if frames are scheduled against a timebase.
  6342. *
  6343. * Parameters:
  6344. *
  6345. * session:
  6346. * The decompression session.
  6347. *
  6348. * displayTime:
  6349. * A display time. Usually this is the display time of a
  6350. * non-scheduled queued frame.
  6351. *
  6352. * displayTimeScale:
  6353. * The timescale according to which displayTime should be
  6354. * interpreted.
  6355. *
  6356. * flags:
  6357. * Reserved, set to zero.
  6358. *
  6359. * Availability:
  6360. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6361. * CarbonLib: not available
  6362. * Non-Carbon CFM: not available
  6363. }
  6364. function ICMDecompressionSessionSetNonScheduledDisplayTime( session: ICMDecompressionSessionRef; displayTime: TimeValue64; displayTimeScale: TimeScale; flags: UInt32 ): OSStatus; external name '_ICMDecompressionSessionSetNonScheduledDisplayTime';
  6365. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6366. {
  6367. * ICMDecompressionSessionSetNonScheduledDisplayDirection()
  6368. *
  6369. * Summary:
  6370. * Sets the direction for non-scheduled display time.
  6371. *
  6372. * Discussion:
  6373. * If rate is zero or positive, direction is forwards. If negative,
  6374. * direction is backwards.
  6375. * Any frames queued under the opposite direction will be flushed.
  6376. *
  6377. * The non-scheduled display direction defaults to forwards (rate
  6378. * 1.0).
  6379. *
  6380. * Parameters:
  6381. *
  6382. * session:
  6383. * The decompression session.
  6384. *
  6385. * rate:
  6386. * Indicates the direction.
  6387. *
  6388. * Availability:
  6389. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6390. * CarbonLib: not available
  6391. * Non-Carbon CFM: not available
  6392. }
  6393. function ICMDecompressionSessionSetNonScheduledDisplayDirection( session: ICMDecompressionSessionRef; rate: Fixed ): OSStatus; external name '_ICMDecompressionSessionSetNonScheduledDisplayDirection';
  6394. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6395. {
  6396. * ICMDecompressionSessionFlush()
  6397. *
  6398. * Summary:
  6399. * Flushes frames queued with a decompression session.
  6400. *
  6401. * Discussion:
  6402. * The tracking callback will be called for each frame with the
  6403. * result -1.
  6404. *
  6405. * Parameters:
  6406. *
  6407. * session:
  6408. * The decompression session.
  6409. *
  6410. * Availability:
  6411. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6412. * CarbonLib: not available
  6413. * Non-Carbon CFM: not available
  6414. }
  6415. function ICMDecompressionSessionFlush( session: ICMDecompressionSessionRef ): OSStatus; external name '_ICMDecompressionSessionFlush';
  6416. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6417. {
  6418. * ICMDecompressionSessionOptionsCreate()
  6419. *
  6420. * Summary:
  6421. * Creates a decompression session options object.
  6422. *
  6423. * Availability:
  6424. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6425. * CarbonLib: not available
  6426. * Non-Carbon CFM: not available
  6427. }
  6428. function ICMDecompressionSessionOptionsCreate( allocator: CFAllocatorRef { can be NULL }; var options: ICMDecompressionSessionOptionsRef ): OSStatus; external name '_ICMDecompressionSessionOptionsCreate';
  6429. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6430. {
  6431. * ICMDecompressionSessionOptionsCreateCopy()
  6432. *
  6433. * Summary:
  6434. * Copies a decompression session options object.
  6435. *
  6436. * Availability:
  6437. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6438. * CarbonLib: not available
  6439. * Non-Carbon CFM: not available
  6440. }
  6441. function ICMDecompressionSessionOptionsCreateCopy( allocator: CFAllocatorRef { can be NULL }; originalOptions: ICMDecompressionSessionOptionsRef; var copiedOptions: ICMDecompressionSessionOptionsRef ): OSStatus; external name '_ICMDecompressionSessionOptionsCreateCopy';
  6442. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6443. {
  6444. * ICMDecompressionSessionOptionsRetain()
  6445. *
  6446. * Summary:
  6447. * Increments the retain count of a decompression session options
  6448. * object.
  6449. *
  6450. * Discussion:
  6451. * If you pass NULL to this function, nothing happens.
  6452. *
  6453. * Availability:
  6454. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6455. * CarbonLib: not available
  6456. * Non-Carbon CFM: not available
  6457. }
  6458. function ICMDecompressionSessionOptionsRetain( options: ICMDecompressionSessionOptionsRef ): ICMDecompressionSessionOptionsRef; external name '_ICMDecompressionSessionOptionsRetain';
  6459. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6460. {
  6461. * ICMDecompressionSessionOptionsRelease()
  6462. *
  6463. * Summary:
  6464. * Decrements the retain count of a decompression session options
  6465. * object. If it drops to zero, the object is disposed.
  6466. *
  6467. * Discussion:
  6468. * If you pass NULL to this function, nothing happens.
  6469. *
  6470. * Availability:
  6471. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6472. * CarbonLib: not available
  6473. * Non-Carbon CFM: not available
  6474. }
  6475. procedure ICMDecompressionSessionOptionsRelease( options: ICMDecompressionSessionOptionsRef ); external name '_ICMDecompressionSessionOptionsRelease';
  6476. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6477. {
  6478. * ICMDecompressionSessionOptionsGetTypeID()
  6479. *
  6480. * Summary:
  6481. * Returns the CFTypeID for decompression session options objects.
  6482. *
  6483. * Availability:
  6484. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6485. * CarbonLib: not available
  6486. * Non-Carbon CFM: not available
  6487. }
  6488. function ICMDecompressionSessionOptionsGetTypeID: CFTypeID; external name '_ICMDecompressionSessionOptionsGetTypeID';
  6489. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6490. {
  6491. * ICMDecompressionSessionOptionsGetPropertyInfo()
  6492. *
  6493. * Summary:
  6494. * Retrieves information about properties of a decompression session
  6495. * options object.
  6496. *
  6497. * Availability:
  6498. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6499. * CarbonLib: not available
  6500. * Non-Carbon CFM: not available
  6501. }
  6502. function ICMDecompressionSessionOptionsGetPropertyInfo( options: ICMDecompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMDecompressionSessionOptionsGetPropertyInfo';
  6503. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6504. {
  6505. * ICMDecompressionSessionOptionsGetProperty()
  6506. *
  6507. * Summary:
  6508. * Retrieves the value of a specific property of a decompression
  6509. * session options object.
  6510. *
  6511. * Availability:
  6512. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6513. * CarbonLib: not available
  6514. * Non-Carbon CFM: not available
  6515. }
  6516. function ICMDecompressionSessionOptionsGetProperty( options: ICMDecompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMDecompressionSessionOptionsGetProperty';
  6517. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6518. {
  6519. * ICMDecompressionSessionOptionsSetProperty()
  6520. *
  6521. * Summary:
  6522. * Sets the value of a specific property of a decompression session
  6523. * options object.
  6524. *
  6525. * Availability:
  6526. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6527. * CarbonLib: not available
  6528. * Non-Carbon CFM: not available
  6529. }
  6530. function ICMDecompressionSessionOptionsSetProperty( options: ICMDecompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMDecompressionSessionOptionsSetProperty';
  6531. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6532. {
  6533. * Summary:
  6534. * Properties of decompression session options objects.
  6535. }
  6536. const
  6537. {
  6538. * Class identifier for decompression session options object
  6539. * properties.
  6540. }
  6541. kQTPropertyClass_ICMDecompressionSessionOptions = FourCharCode('idso');
  6542. {
  6543. * By default, this is true, meaning that frames must be output in
  6544. * display order. Set this to false to allow frames to be output in
  6545. * decode order rather than in display order.
  6546. }
  6547. kICMDecompressionSessionOptionsPropertyID_DisplayOrderRequired = FourCharCode('dorq'); { Boolean, Read/Write }
  6548. {
  6549. * A specific decompressor component or component instance to be
  6550. * used, or one of the wildcards anyCodec, bestSpeedCodec,
  6551. * bestFidelityCodec, or bestCompressionCodec.
  6552. * By default, this is anyCodec.
  6553. }
  6554. kICMDecompressionSessionOptionsPropertyID_DecompressorComponent = FourCharCode('imdc'); { DecompressorComponent, Read/Write }
  6555. {
  6556. * The decompression accuracy.
  6557. * The default accuracy is codecNormalQuality.
  6558. }
  6559. kICMDecompressionSessionOptionsPropertyID_Accuracy = FourCharCode('acur'); { CodecQ, Read/Write }
  6560. {
  6561. * Requests special handling of fields. Not all codecs will obey this
  6562. * request; some codecs will only handle it at certain accuracy
  6563. * levels. Ignored for non-interlaced content.
  6564. }
  6565. kICMDecompressionSessionOptionsPropertyID_FieldMode = FourCharCode('fiel'); { ICMFieldMode, Read/Write }
  6566. {
  6567. * The maximum number of buffers ahead of the current time that
  6568. * should be decompressed. Used in sessions that target visual
  6569. * contexts. By default, the number of buffers will be determined
  6570. * from the visual context.
  6571. }
  6572. kICMDecompressionSessionOptionsPropertyID_MaxBufferCount = FourCharCode('m#bf'); { UInt32, Read/Write }
  6573. {
  6574. * The minimum time ahead of the current time that frames should be
  6575. * decompressed. Used in sessions that target visual contexts. By
  6576. * default, the output-ahead time will be determined from the visual
  6577. * context.
  6578. }
  6579. kICMDecompressionSessionOptionsPropertyID_OutputAheadTime = FourCharCode('futu'); { TimeRecord, Read/Write }
  6580. {
  6581. * You can set the aperture mode property on a decompression session
  6582. * options object to indicate whether pixel buffers should be tagged
  6583. * to enable aspect ratio and clean aperture correction. The default
  6584. * aperture mode for a decompression session is clean aperture mode.
  6585. }
  6586. kICMDecompressionSessionOptionsPropertyID_ApertureMode = FourCharCode('apmd'); { OSType, Read/Write }
  6587. {
  6588. * ICMFieldMode
  6589. *
  6590. * Summary:
  6591. * Describes special field handling.
  6592. }
  6593. type
  6594. ICMFieldMode = UInt32;
  6595. const
  6596. {
  6597. * Both fields should be decompressed.
  6598. }
  6599. kICMFieldMode_BothFields = 0;
  6600. {
  6601. * Only the top field should be decompressed, producing a half-height
  6602. * image.
  6603. }
  6604. kICMFieldMode_TopFieldOnly = 1;
  6605. {
  6606. * Only the bottom field should be decompressed, producing a
  6607. * half-height image.
  6608. }
  6609. kICMFieldMode_BottomFieldOnly = 2;
  6610. {
  6611. * Both fields should be decompressed, and then filtered to reduce
  6612. * interlacing artifacts.
  6613. }
  6614. kICMFieldMode_DeinterlaceFields = 3;
  6615. {
  6616. * ICMDecompressionFrameOptionsCreate()
  6617. *
  6618. * Summary:
  6619. * Creates a frame decompression options object.
  6620. *
  6621. * Availability:
  6622. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6623. * CarbonLib: not available
  6624. * Non-Carbon CFM: not available
  6625. }
  6626. function ICMDecompressionFrameOptionsCreate( allocator: CFAllocatorRef { can be NULL }; var options: ICMDecompressionFrameOptionsRef ): OSStatus; external name '_ICMDecompressionFrameOptionsCreate';
  6627. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6628. {
  6629. * ICMDecompressionFrameOptionsCreateCopy()
  6630. *
  6631. * Summary:
  6632. * Copies a frame decompression options object.
  6633. *
  6634. * Availability:
  6635. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6636. * CarbonLib: not available
  6637. * Non-Carbon CFM: not available
  6638. }
  6639. function ICMDecompressionFrameOptionsCreateCopy( allocator: CFAllocatorRef { can be NULL }; originalOptions: ICMDecompressionFrameOptionsRef; var copiedOptions: ICMDecompressionFrameOptionsRef ): OSStatus; external name '_ICMDecompressionFrameOptionsCreateCopy';
  6640. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6641. {
  6642. * ICMDecompressionFrameOptionsRetain()
  6643. *
  6644. * Summary:
  6645. * Increments the retain count of a frame decompression options
  6646. * object.
  6647. *
  6648. * Discussion:
  6649. * If you pass NULL to this function, nothing happens.
  6650. *
  6651. * Availability:
  6652. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6653. * CarbonLib: not available
  6654. * Non-Carbon CFM: not available
  6655. }
  6656. function ICMDecompressionFrameOptionsRetain( options: ICMDecompressionFrameOptionsRef ): ICMDecompressionFrameOptionsRef; external name '_ICMDecompressionFrameOptionsRetain';
  6657. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6658. {
  6659. * ICMDecompressionFrameOptionsRelease()
  6660. *
  6661. * Summary:
  6662. * Decrements the retain count of a frame decompression options
  6663. * object. If it drops to zero, the object is disposed.
  6664. *
  6665. * Discussion:
  6666. * If you pass NULL to this function, nothing happens.
  6667. *
  6668. * Availability:
  6669. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6670. * CarbonLib: not available
  6671. * Non-Carbon CFM: not available
  6672. }
  6673. procedure ICMDecompressionFrameOptionsRelease( options: ICMDecompressionFrameOptionsRef ); external name '_ICMDecompressionFrameOptionsRelease';
  6674. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6675. {
  6676. * ICMDecompressionFrameOptionsGetTypeID()
  6677. *
  6678. * Summary:
  6679. * Returns the CFTypeID for frame decompression options objects.
  6680. *
  6681. * Availability:
  6682. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6683. * CarbonLib: not available
  6684. * Non-Carbon CFM: not available
  6685. }
  6686. function ICMDecompressionFrameOptionsGetTypeID: CFTypeID; external name '_ICMDecompressionFrameOptionsGetTypeID';
  6687. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6688. {
  6689. * ICMDecompressionFrameOptionsGetPropertyInfo()
  6690. *
  6691. * Summary:
  6692. * Retrieves information about properties of a decompression frame
  6693. * options object.
  6694. *
  6695. * Availability:
  6696. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6697. * CarbonLib: not available
  6698. * Non-Carbon CFM: not available
  6699. }
  6700. function ICMDecompressionFrameOptionsGetPropertyInfo( options: ICMDecompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMDecompressionFrameOptionsGetPropertyInfo';
  6701. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6702. {
  6703. * ICMDecompressionFrameOptionsGetProperty()
  6704. *
  6705. * Summary:
  6706. * Retrieves the value of a specific property of a decompression
  6707. * frame options object.
  6708. *
  6709. * Availability:
  6710. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6711. * CarbonLib: not available
  6712. * Non-Carbon CFM: not available
  6713. }
  6714. function ICMDecompressionFrameOptionsGetProperty( options: ICMDecompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMDecompressionFrameOptionsGetProperty';
  6715. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6716. {
  6717. * ICMDecompressionFrameOptionsSetProperty()
  6718. *
  6719. * Summary:
  6720. * Sets the value of a specific property of a decompression frame
  6721. * options object.
  6722. *
  6723. * Availability:
  6724. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  6725. * CarbonLib: not available
  6726. * Non-Carbon CFM: not available
  6727. }
  6728. function ICMDecompressionFrameOptionsSetProperty( options: ICMDecompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMDecompressionFrameOptionsSetProperty';
  6729. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  6730. {
  6731. * Summary:
  6732. * Properties of decompression frame options objects.
  6733. }
  6734. const
  6735. {
  6736. * Class identifier for decompression frame options object properties.
  6737. }
  6738. kQTPropertyClass_ICMDecompressionFrameOptions = FourCharCode('idfo');
  6739. {
  6740. * A specific pixel buffer that the frame should be decompressed
  6741. * into. Setting this circumvents the pixel buffer pool mechanism. If
  6742. * this buffer is not compatible with the codec's pixel buffer
  6743. * requirements, decompression will fail.
  6744. }
  6745. kICMDecompressionFrameOptionsPropertyID_DestinationPixelBuffer = FourCharCode('cvpb'); { CVPixelBufferRef, Read/Write }
  6746. {
  6747. * ICMCompressionSessionRef
  6748. *
  6749. * Summary:
  6750. * Represents a compression session for a sequence of images.
  6751. * B-frame capable.
  6752. }
  6753. type
  6754. ICMCompressionSessionRef = ^SInt32; { an opaque type }
  6755. {
  6756. * ICMEncodedFrameRef
  6757. *
  6758. * Summary:
  6759. * Represents a frame encoded by a compressor component and emitted
  6760. * by a compression session.
  6761. *
  6762. * Discussion:
  6763. * Compressor components have access to the mutable flavor of
  6764. * encoded frame object (ICMMutableEncodedFrameRef); compression
  6765. * session clients receive the read-only flavor
  6766. * (ICMMutableEncodedFrameRef).
  6767. }
  6768. type
  6769. ICMEncodedFrameRef = ^SInt32; { an opaque type }
  6770. ICMEncodedFrameRefPtr = ^ICMEncodedFrameRef;
  6771. ICMMutableEncodedFrameRef = ^SInt32; { an opaque type }
  6772. ICMMutableEncodedFrameRefPtr = ^ICMMutableEncodedFrameRef;
  6773. {
  6774. * ICMCompressionSessionOptionsRef
  6775. *
  6776. * Summary:
  6777. * An opaque struct which holds options to configure a compression
  6778. * session.
  6779. }
  6780. type
  6781. ICMCompressionSessionOptionsRef = ^SInt32; { an opaque type }
  6782. {
  6783. * ICMCompressionFrameOptionsRef
  6784. *
  6785. * Summary:
  6786. * A token which holds options to configure an individual frame
  6787. * during a compression session.
  6788. }
  6789. type
  6790. ICMCompressionFrameOptionsRef = ^SInt32; { an opaque type }
  6791. {
  6792. * ICMMultiPassStorageRef
  6793. *
  6794. * Summary:
  6795. * A mechanism for storing information for each frame of a multipass
  6796. * compression session.
  6797. *
  6798. * Discussion:
  6799. * The ICM provides default storage mechanisms using temporary
  6800. * files, but clients may override this with custom mechanisms.
  6801. }
  6802. type
  6803. ICMMultiPassStorageRef = ^SInt32; { an opaque type }
  6804. {
  6805. * ICMEncodedFrameOutputCallback
  6806. *
  6807. * Summary:
  6808. * The callback through which a client of an ICM compression session
  6809. * receives encoded frames.
  6810. *
  6811. * Discussion:
  6812. * During the encoded frame output callback, the ICM has a reference
  6813. * to the passed ICMEncodedFrame, but the ICM will release that
  6814. * reference afterwards; the callback should retain the encoded
  6815. * frame if the client wants to keep it after the callback returns.
  6816. *
  6817. * Parameters:
  6818. *
  6819. * encodedFrameOutputRefCon:
  6820. * The callback's reference value, copied from the
  6821. * encodedFrameOutputRefCon field of the
  6822. * ICMEncodedFrameOutputRecord.
  6823. *
  6824. * session:
  6825. * The compression session.
  6826. *
  6827. * error:
  6828. * Indicates whether there was an error.
  6829. *
  6830. * frame:
  6831. * The encoded frame.
  6832. *
  6833. * reserved:
  6834. * Reserved for future use. Ignore the value of this parameter.
  6835. *
  6836. * Result:
  6837. * If the callback returns an error, the compressor and ICM will
  6838. * stop emitting frames so that the error can be propogated back to
  6839. * the caller of ICMCompressionSessionEncodeFrame or
  6840. * ICMCompressionSessionCompleteFrames.
  6841. }
  6842. type
  6843. ICMEncodedFrameOutputCallback = function( encodedFrameOutputRefCon: UnivPtr; session: ICMCompressionSessionRef; error: OSStatus; frame: ICMEncodedFrameRef; reserved: UnivPtr ): OSStatus;
  6844. {
  6845. * ICMEncodedFrameOutputRecord
  6846. *
  6847. * Summary:
  6848. * Holds an encoded frame callback and reference value.
  6849. }
  6850. type
  6851. ICMEncodedFrameOutputRecord = record
  6852. {
  6853. * An encoded frame callback.
  6854. }
  6855. encodedFrameOutputCallback: ICMEncodedFrameOutputCallback;
  6856. {
  6857. * The reference value for the encoded frame callback.
  6858. }
  6859. encodedFrameOutputRefCon: UnivPtr;
  6860. {
  6861. * The allocator for encoded frame data. Pass NULL if you do not need
  6862. * a specific allocator.
  6863. }
  6864. frameDataAllocator: CFAllocatorRef;
  6865. end;
  6866. {
  6867. * ICMSourceTrackingFlags
  6868. *
  6869. }
  6870. type
  6871. ICMSourceTrackingFlags = UInt32;
  6872. const
  6873. {
  6874. * Indicates that this is the last call for this sourceFrameRefCon.
  6875. }
  6876. kICMSourceTracking_LastCall = 1 shl 0;
  6877. {
  6878. * Indicates that the session is done with the source pixel buffer
  6879. * and has released any reference to it that it had.
  6880. }
  6881. kICMSourceTracking_ReleasedPixelBuffer = 1 shl 1;
  6882. {
  6883. * Indicates that this frame was encoded.
  6884. }
  6885. kICMSourceTracking_FrameWasEncoded = 1 shl 2;
  6886. {
  6887. * Indicates that this frame was dropped.
  6888. }
  6889. kICMSourceTracking_FrameWasDropped = 1 shl 3;
  6890. {
  6891. * Indicates that this frame was merged into other frames.
  6892. }
  6893. kICMSourceTracking_FrameWasMerged = 1 shl 4;
  6894. {
  6895. * Indicates that the time stamp of this frame was modified.
  6896. }
  6897. kICMSourceTracking_FrameTimeWasChanged = 1 shl 5;
  6898. {
  6899. * Indicates that the ICM has copied the image from the source pixel
  6900. * buffer into another pixel buffer because the source pixel buffer
  6901. * was not compatible with the compressor's required pixel buffer
  6902. * attributes.
  6903. }
  6904. kICMSourceTracking_CopiedPixelBuffer = 1 shl 6;
  6905. {
  6906. * ICMSourceTrackingCallback
  6907. *
  6908. * Summary:
  6909. * A callback which the ICM calls to provide information about the
  6910. * status of a frame that was passed to
  6911. * ICMCompressionSessionEncodeFrame.
  6912. *
  6913. * Discussion:
  6914. * Note that this callback may be called several times.
  6915. *
  6916. * Parameters:
  6917. *
  6918. * sourceTrackingRefCon:
  6919. * The callback's reference value, copied from the
  6920. * sourceTrackingRefCon field of ICMSourceTrackingCallbackRecord.
  6921. *
  6922. * sourceTrackingFlags:
  6923. * Flags describing what has happened to the frame.
  6924. *
  6925. * sourceFrameRefCon:
  6926. * The frame's reference value, copied from the sourceFrameRefCon
  6927. * parameter to ICMCompressionSessionEncodeFrame.
  6928. *
  6929. * reserved:
  6930. * Reserved for future use. Ignore the value of this parameter.
  6931. }
  6932. type
  6933. ICMSourceTrackingCallback = procedure( sourceTrackingRefCon: UnivPtr; sourceTrackingFlags: ICMSourceTrackingFlags; sourceFrameRefCon: UnivPtr; reserved: UnivPtr );
  6934. {
  6935. * ICMSourceTrackingCallbackRecord
  6936. *
  6937. * Summary:
  6938. * A tracking callback for an ICM compression session.
  6939. }
  6940. type
  6941. ICMSourceTrackingCallbackRecordPtr = ^ICMSourceTrackingCallbackRecord;
  6942. ICMSourceTrackingCallbackRecord = record
  6943. {
  6944. * The callback function pointer.
  6945. }
  6946. sourceTrackingCallback: ICMSourceTrackingCallback;
  6947. {
  6948. * The callback's reference value.
  6949. }
  6950. sourceTrackingRefCon: UnivPtr;
  6951. end;
  6952. {
  6953. * ICMFrameType
  6954. *
  6955. * Summary:
  6956. * Informally identifies a type of frame.
  6957. *
  6958. * Discussion:
  6959. * Do not assume that there are no other frame types beyond I, P and
  6960. * B.
  6961. }
  6962. type
  6963. ICMFrameType = UInt16;
  6964. const
  6965. kICMFrameType_I = 'I';
  6966. kICMFrameType_P = 'P';
  6967. kICMFrameType_B = 'B';
  6968. kICMFrameType_Unknown = 0;
  6969. { ICMCompressionSessionRef routines }
  6970. {
  6971. * ICMCompressionSessionCreate()
  6972. *
  6973. * Summary:
  6974. * Creates a compression session for the given codec type.
  6975. *
  6976. * Discussion:
  6977. * Some compressors do not support arbitrary source dimensions, and
  6978. * may override the suggested width and height.
  6979. *
  6980. * Parameters:
  6981. *
  6982. * allocator:
  6983. * An allocator for the session. Pass NULL to use the default
  6984. * allocator.
  6985. *
  6986. * width:
  6987. * The width of frames.
  6988. *
  6989. * height:
  6990. * The height of frames.
  6991. *
  6992. * cType:
  6993. * The codec type.
  6994. *
  6995. * timescale:
  6996. * The timescale to be used for all timestamps and durations used
  6997. * in the session.
  6998. *
  6999. * compressionOptions:
  7000. * Settings configuring the session.
  7001. *
  7002. * sourcePixelBufferAttributes:
  7003. * Required attributes for source pixel buffers, used when
  7004. * creating a pixel buffer pool for source frames. If you do not
  7005. * want the ICM to create one for you, pass NULL. (Using pixel
  7006. * buffers not allocated by the ICM may increase the chance that
  7007. * it will be necessary to copy image data.)
  7008. *
  7009. * encodedFrameOutputRecord:
  7010. * The callback that will receive encoded frames.
  7011. *
  7012. * compressionSessionOut:
  7013. * Points to a variable to receive the created session object.
  7014. *
  7015. * Availability:
  7016. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7017. * CarbonLib: not available
  7018. * Non-Carbon CFM: not available
  7019. }
  7020. function ICMCompressionSessionCreate( allocator: CFAllocatorRef { can be NULL }; width: SInt32; height: SInt32; cType: CodecType; timescale_: TimeScale; compressionOptions: ICMCompressionSessionOptionsRef { can be NULL }; sourcePixelBufferAttributes: CFDictionaryRef { can be NULL }; var encodedFrameOutputRecord: ICMEncodedFrameOutputRecord; var compressionSessionOut: ICMCompressionSessionRef ): OSStatus; external name '_ICMCompressionSessionCreate';
  7021. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7022. {
  7023. * ICMCompressionSessionRetain()
  7024. *
  7025. * Summary:
  7026. * Increments the retain count of a compression session.
  7027. *
  7028. * Discussion:
  7029. * If you pass NULL to this function, nothing happens.
  7030. *
  7031. * Availability:
  7032. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7033. * CarbonLib: not available
  7034. * Non-Carbon CFM: not available
  7035. }
  7036. function ICMCompressionSessionRetain( session: ICMCompressionSessionRef ): ICMCompressionSessionRef; external name '_ICMCompressionSessionRetain';
  7037. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7038. {
  7039. * ICMCompressionSessionRelease()
  7040. *
  7041. * Summary:
  7042. * Decrements the retain count of a compression session. If it
  7043. * drops to zero, the session is disposed.
  7044. *
  7045. * Discussion:
  7046. * If you pass NULL to this function, nothing happens. Remember to
  7047. * call ICMCompressionSessionCompleteFrames first if you want to
  7048. * ensure any pending frames are emitted. If you do not, they will
  7049. * be discarded.
  7050. *
  7051. * Availability:
  7052. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7053. * CarbonLib: not available
  7054. * Non-Carbon CFM: not available
  7055. }
  7056. procedure ICMCompressionSessionRelease( session: ICMCompressionSessionRef ); external name '_ICMCompressionSessionRelease';
  7057. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7058. {
  7059. * ICMCompressionSessionGetTypeID()
  7060. *
  7061. * Summary:
  7062. * Returns the CFTypeID for compression sessions.
  7063. *
  7064. * Availability:
  7065. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7066. * CarbonLib: not available
  7067. * Non-Carbon CFM: not available
  7068. }
  7069. function ICMCompressionSessionGetTypeID: CFTypeID; external name '_ICMCompressionSessionGetTypeID';
  7070. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7071. {
  7072. * ICMCompressionSessionGetPropertyInfo()
  7073. *
  7074. * Summary:
  7075. * Retrieves information about properties of a compression session.
  7076. *
  7077. * Availability:
  7078. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7079. * CarbonLib: not available
  7080. * Non-Carbon CFM: not available
  7081. }
  7082. function ICMCompressionSessionGetPropertyInfo( session: ICMCompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMCompressionSessionGetPropertyInfo';
  7083. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7084. {
  7085. * ICMCompressionSessionGetProperty()
  7086. *
  7087. * Summary:
  7088. * Retrieves the value of a specific property of a compression
  7089. * session.
  7090. *
  7091. * Availability:
  7092. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7093. * CarbonLib: not available
  7094. * Non-Carbon CFM: not available
  7095. }
  7096. function ICMCompressionSessionGetProperty( session: ICMCompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMCompressionSessionGetProperty';
  7097. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7098. {
  7099. * ICMCompressionSessionSetProperty()
  7100. *
  7101. * Summary:
  7102. * Sets the value of a specific property of a compression session.
  7103. *
  7104. * Availability:
  7105. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7106. * CarbonLib: not available
  7107. * Non-Carbon CFM: not available
  7108. }
  7109. function ICMCompressionSessionSetProperty( session: ICMCompressionSessionRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMCompressionSessionSetProperty';
  7110. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7111. {
  7112. * Summary:
  7113. * Properties of compression sessions.
  7114. }
  7115. const
  7116. {
  7117. * Class identifier for compression session properties.
  7118. }
  7119. kQTPropertyClass_ICMCompressionSession = FourCharCode('icse');
  7120. {
  7121. * The time scale for the compression session.
  7122. }
  7123. kICMCompressionSessionPropertyID_TimeScale = FourCharCode('tscl'); { TimeScale, Read }
  7124. {
  7125. * The compressor's pixel buffer attributes for the compression
  7126. * session. You can use these to create a pixel buffer pool for
  7127. * source pixel buffers. Note that this is not the same as the
  7128. * sourcePixelBufferAttributes passed in to
  7129. * ICMCompressionSessionCreate. Getting this property does not change
  7130. * its retain count.
  7131. }
  7132. kICMCompressionSessionPropertyID_CompressorPixelBufferAttributes = FourCharCode('batt'); { CFDictionaryRef, Read }
  7133. {
  7134. * A pool that can provide ideal source pixel buffers for a
  7135. * compression session. The compression session creates this pixel
  7136. * buffer pool based on the compressor's pixel buffer attributes and
  7137. * any pixel buffer attributes passed in to
  7138. * ICMCompressionSessionCreate. If the source pixel buffer attributes
  7139. * and the compressor pixel buffer attributes can not be reconciled,
  7140. * the pool is based on the source pixel buffer attributes and the
  7141. * ICM converts each CVPixelBuffer internally.
  7142. }
  7143. kICMCompressionSessionPropertyID_PixelBufferPool = FourCharCode('pool'); { CVPixelBufferPoolRef, Read }
  7144. {
  7145. * The image description for the compression session. For some
  7146. * codecs, the image description may not be available before the
  7147. * first frame is compressed. Multiple calls to retrieve this
  7148. * property will return the same handle. The ICM will dispose this
  7149. * handle when the compression session is disposed.
  7150. * IMPORTANT: The caller must NOT dispose this handle.
  7151. }
  7152. kICMCompressionSessionPropertyID_ImageDescription = FourCharCode('idsc'); { ImageDescriptionHandle, Read }
  7153. {
  7154. * ICMCompressionSessionGetTimeScale()
  7155. *
  7156. * Summary:
  7157. * Retrieves the time scale for the compression session.
  7158. *
  7159. * Availability:
  7160. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7161. * CarbonLib: not available
  7162. * Non-Carbon CFM: not available
  7163. }
  7164. function ICMCompressionSessionGetTimeScale( session: ICMCompressionSessionRef ): TimeScale; external name '_ICMCompressionSessionGetTimeScale';
  7165. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7166. {
  7167. * ICMCompressionSessionGetPixelBufferPool()
  7168. *
  7169. * Summary:
  7170. * Returns a pool that can provide ideal source pixel buffers for a
  7171. * compression session.
  7172. *
  7173. * Discussion:
  7174. * The compression session creates this pixel buffer pool based on
  7175. * the compressor's pixel buffer attributes and any pixel buffer
  7176. * attributes passed in to ICMCompressionSessionCreate. If the
  7177. * source pixel buffer attributes and the compressor pixel buffer
  7178. * attributes can not be reconciled, the pool is based on the source
  7179. * pixel buffer attributes and the ICM converts each CVPixelBuffer
  7180. * internally.
  7181. *
  7182. * Availability:
  7183. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7184. * CarbonLib: not available
  7185. * Non-Carbon CFM: not available
  7186. }
  7187. function ICMCompressionSessionGetPixelBufferPool( session: ICMCompressionSessionRef ): CVPixelBufferPoolRef; external name '_ICMCompressionSessionGetPixelBufferPool';
  7188. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7189. {
  7190. * ICMCompressionSessionGetImageDescription()
  7191. *
  7192. * Summary:
  7193. * Retrieves the image description for the compression session.
  7194. *
  7195. * Discussion:
  7196. * For some codecs, this may fail if called before the first frame
  7197. * is compressed. Multiple calls to
  7198. * ICMCompressionSessionGetImageDescription will return the same
  7199. * handle. The ICM will dispose this handle when the compression
  7200. * session is disposed.
  7201. * IMPORTANT: The caller must NOT dispose this handle.
  7202. *
  7203. * Availability:
  7204. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7205. * CarbonLib: not available
  7206. * Non-Carbon CFM: not available
  7207. }
  7208. function ICMCompressionSessionGetImageDescription( session: ICMCompressionSessionRef; var imageDescOut: ImageDescriptionHandle ): OSStatus; external name '_ICMCompressionSessionGetImageDescription';
  7209. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7210. { ICMCompressionSessionRef encoding routines }
  7211. {
  7212. * ICMCompressionSessionEncodeFrame()
  7213. *
  7214. * Summary:
  7215. * Call this function to present frames to the compression session.
  7216. * Encoded frames may or may not be output before the function
  7217. * returns.
  7218. *
  7219. * Discussion:
  7220. * The session will retain the pixel buffer as long as necessary;
  7221. * the client should not modify the pixel data until the session
  7222. * releases it. (The most practical way to deal with this is by
  7223. * allocating pixel buffers from a pool.)
  7224. * The client may fill in both, either or neither of
  7225. * displayTimeStamp and displayDuration, but should set the
  7226. * appropriate flags to indicate which is valid. If the client needs
  7227. * to track the progress of a source frame, it should provide a
  7228. * sourceTrackingCallback.
  7229. * Note: If multipass compression is enabled, calls to
  7230. * ICMCompressionSessionEncodeFrame must be bracketed by
  7231. * ICMCompressionSessionBeginPass ... ICMCompressionSessionEndPass.
  7232. *
  7233. * Parameters:
  7234. *
  7235. * session:
  7236. * Identifies the compression session.
  7237. *
  7238. * pixelBuffer:
  7239. * Contains the source image to be compressed. PixelBuffer must
  7240. * have a nonzero reference count. The session will retain it as
  7241. * long as necessary. The client should not modify pixel buffer's
  7242. * pixels until the pixel buffer release callback is called. In a
  7243. * multipass encoding session pass where the compressor suggested
  7244. * the flag kICMCompressionPassMode_NoSourceFrames, you may pass
  7245. * NULL for pixelBuffer.
  7246. *
  7247. * displayTimeStamp:
  7248. * The display timestamp of the frame, using the timescale passed
  7249. * to ICMCompressionSessionCreate. If you pass a valid value, set
  7250. * the kICMValidTime_DisplayTimeStampIsValid flag in
  7251. * validTimeFlags.
  7252. *
  7253. * displayDuration:
  7254. * The display duration of the frame, using the timescale passed
  7255. * to ICMCompressionSessionCreate. If you pass a valid value, set
  7256. * the kICMValidTime_DisplayDurationIsValid flag in validTimeFlags.
  7257. *
  7258. * validTimeFlags:
  7259. * Flags to indicate which of displayTimeStamp and displayDuration
  7260. * are valid.
  7261. *
  7262. * frameOptions:
  7263. * Options for this frame.
  7264. *
  7265. * sourceTrackingCallback:
  7266. * A callback to be notified about the status of this source
  7267. * frame. Pass NULL if you do not require notification.
  7268. *
  7269. * sourceFrameRefCon:
  7270. * Your reference to the source frame.
  7271. *
  7272. * Availability:
  7273. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7274. * CarbonLib: not available
  7275. * Non-Carbon CFM: not available
  7276. }
  7277. function ICMCompressionSessionEncodeFrame( session: ICMCompressionSessionRef; pixelBuffer: CVPixelBufferRef; displayTimeStamp: TimeValue64; displayDuration: TimeValue64; validTimeFlags: ICMValidTimeFlags; frameOptions: ICMCompressionFrameOptionsRef { can be NULL }; sourceTrackingCallback: ICMSourceTrackingCallbackRecordPtr { can be NULL }; sourceFrameRefCon: UnivPtr ): OSStatus; external name '_ICMCompressionSessionEncodeFrame';
  7278. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7279. {
  7280. * ICMCompressionSessionCompleteFrames()
  7281. *
  7282. * Discussion:
  7283. * Call this function to force the compression session to complete
  7284. * encoding frames. Set completeAllFrames to direct the session to
  7285. * complete all pending frames.
  7286. * If completeAllFrames is false, only frames with display time
  7287. * stamps up to and including completeUntilDisplayTimeStamp.
  7288. * If ICMCompressionSessionOptionsSetDurationsNeeded is true and you
  7289. * are passing valid display timestamps but not display durations to
  7290. * ICMCompressionSessionEncodeFrame, pass the display timestamp of
  7291. * the next frame that would be passed to EncodeFrame in
  7292. * nextDisplayTimeStamp.
  7293. * Note: This function might return before frames are completed if
  7294. * the encoded frame callback returns an error.
  7295. *
  7296. * Parameters:
  7297. *
  7298. * session:
  7299. * Identifies the compression session.
  7300. *
  7301. * completeAllFrames:
  7302. * Set to direct the session to complete all pending frames.
  7303. *
  7304. * completeUntilDisplayTimeStamp:
  7305. * If completeAllFrames is false, the display timestamp to
  7306. * complete frames up to. Ignored if completeAllFrames is true.
  7307. *
  7308. * nextDisplayTimeStamp:
  7309. * See above. Ignored unless
  7310. * ICMCompressionSessionOptionsSetDurationsNeeded set true and
  7311. * kICMValidTime_DisplayDurationIsValid was clear in
  7312. * validTimeFlags in last call to ICMCompressionSessionEncodeFrame.
  7313. *
  7314. * Availability:
  7315. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7316. * CarbonLib: not available
  7317. * Non-Carbon CFM: not available
  7318. }
  7319. function ICMCompressionSessionCompleteFrames( session: ICMCompressionSessionRef; completeAllFrames: Boolean; completeUntilDisplayTimeStamp: TimeValue64; nextDisplayTimeStamp: TimeValue64 ): OSStatus; external name '_ICMCompressionSessionCompleteFrames';
  7320. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7321. { ICMCompressionSessionRef multipass support routines }
  7322. {
  7323. * ICMCompressionPassModeFlags
  7324. *
  7325. * Summary:
  7326. * Flags describing how a compressor should behave in a given pass
  7327. * of multipass encoding.
  7328. }
  7329. type
  7330. ICMCompressionPassModeFlagsPtr = ^ICMCompressionPassModeFlags;
  7331. ICMCompressionPassModeFlags = UInt32;
  7332. const
  7333. {
  7334. * In this pass the compressor shall output encoded frames.
  7335. }
  7336. kICMCompressionPassMode_OutputEncodedFrames = 1 shl 0;
  7337. {
  7338. * In this pass the client need not provide source frame buffers.
  7339. }
  7340. kICMCompressionPassMode_NoSourceFrames = 1 shl 1;
  7341. {
  7342. * In this pass the compressor may write private data to multipass
  7343. * storage.
  7344. }
  7345. kICMCompressionPassMode_WriteToMultiPassStorage = 1 shl 2;
  7346. {
  7347. * In this pass the compressor may read private data from multipass
  7348. * storage.
  7349. }
  7350. kICMCompressionPassMode_ReadFromMultiPassStorage = 1 shl 3;
  7351. {
  7352. * The compressor will set this flag to indicate that it will not be
  7353. * able to output encoded frames in the coming pass. If this flag is
  7354. * not set, then the client is allowed to set the
  7355. * kICMCompressionPassMode_OutputEncodedFrames flag when calling
  7356. * ICMCompressionSessionBeginPass.
  7357. }
  7358. kICMCompressionPassMode_NotReadyToOutputEncodedFrames = 1 shl 4;
  7359. {
  7360. * ICMCompressionSessionSupportsMultiPassEncoding()
  7361. *
  7362. * Summary:
  7363. * Queries whether a compression session supports multipass encoding.
  7364. *
  7365. * Discussion:
  7366. * Even if this function returns false, if you set the
  7367. * kICMCompressionSessionOptionsPropertyID_MultiPassStorage property
  7368. * on the CompressionSessionOptions, you must call
  7369. * ICMCompressionSessionBeginPass and ICMCompressionSessionEndPass.
  7370. *
  7371. * Parameters:
  7372. *
  7373. * session:
  7374. * The compression session.
  7375. *
  7376. * multiPassStyleFlags:
  7377. * Reserved. Set to zero.
  7378. *
  7379. * firstPassModeFlagsOut:
  7380. * Points to a variable to receive the session's requested mode
  7381. * flags for the first pass. The client may modify these flags,
  7382. * but should not set kICMCompressionPassMode_NoSourceFrames. Pass
  7383. * NULL if you do not want this information.
  7384. *
  7385. * Result:
  7386. * true if the session supports multipass encoding, false otherwise.
  7387. * If the session does not support multipass encoding,
  7388. * *firstPassModeFlagsOut will be set to
  7389. * kICMCompressionPassMode_OutputEncodedFrames.
  7390. *
  7391. * Availability:
  7392. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7393. * CarbonLib: not available
  7394. * Non-Carbon CFM: not available
  7395. }
  7396. function ICMCompressionSessionSupportsMultiPassEncoding( session: ICMCompressionSessionRef; multiPassStyleFlags: UInt32; firstPassModeFlagsOut: ICMCompressionPassModeFlagsPtr { can be NULL } ): Boolean; external name '_ICMCompressionSessionSupportsMultiPassEncoding';
  7397. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7398. {
  7399. * ICMCompressionSessionBeginPass()
  7400. *
  7401. * Summary:
  7402. * Call to announce the start of a specific compression pass.
  7403. *
  7404. * Discussion:
  7405. * The source frames and frame options for each display timestamp
  7406. * should be the same across passes.
  7407. * During multipass compression, valid displayTimeStamps must be
  7408. * passed to ICMCompressionSessionEncodeFrame since they are used to
  7409. * index the compressor's stored state.
  7410. * During an analysis pass
  7411. * (kICMCompressionPassMode_WriteToMultiPassStorage), the compressor
  7412. * does not output encoded frames, but records compressor-private
  7413. * information for each frame.
  7414. * During repeated analysis passes and the encoding pass
  7415. * (kICMCompressionPassMode_ReadFromMultiPassStorage), the
  7416. * compressor may refer to this information for other frames and use
  7417. * it to improve encoding.
  7418. * During an encoding pass
  7419. * (kICMCompressionPassMode_OutputEncodedFrames), the compressor
  7420. * must output encoded frames.
  7421. * If the compressor set the kICMCompressionPassMode_NoSourceFrames
  7422. * flag for the pass, the client may pass NULL pixel buffers to
  7423. * ICMCompressionSessionEncodeFrame.
  7424. * By default, the ICM provides local storage that lasts only until
  7425. * the compression session is disposed. If the client provides
  7426. * custom multipass storage, pass may be performed at different
  7427. * times or on different machines; segments of each pass may even be
  7428. * distributed.
  7429. *
  7430. * Availability:
  7431. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7432. * CarbonLib: not available
  7433. * Non-Carbon CFM: not available
  7434. }
  7435. function ICMCompressionSessionBeginPass( session: ICMCompressionSessionRef; passModeFlags: ICMCompressionPassModeFlags; flags: UInt32 ): OSStatus; external name '_ICMCompressionSessionBeginPass';
  7436. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7437. {
  7438. * ICMCompressionSessionEndPass()
  7439. *
  7440. * Summary:
  7441. * Call to announce the end of a pass.
  7442. *
  7443. * Availability:
  7444. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7445. * CarbonLib: not available
  7446. * Non-Carbon CFM: not available
  7447. }
  7448. function ICMCompressionSessionEndPass( session: ICMCompressionSessionRef ): OSStatus; external name '_ICMCompressionSessionEndPass';
  7449. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7450. {
  7451. * ICMCompressionSessionProcessBetweenPasses()
  7452. *
  7453. * Summary:
  7454. * Lets the compressor perform processing between passes.
  7455. *
  7456. * Discussion:
  7457. * Call this function repeatedly, until the compressor sets
  7458. * *interpassProcessingDoneOut to true to indicate that it is done
  7459. * with this round of interpass processing.
  7460. * When done, the compressor will indicate its preferred mode for
  7461. * the next pass.
  7462. * The client may choose to begin an encoding pass (by ORing in the
  7463. * kICMCompressionPassMode_OutputEncodedFrames flag) regardless of
  7464. * the compressor's request.
  7465. *
  7466. * Parameters:
  7467. *
  7468. * session:
  7469. * The compression session.
  7470. *
  7471. * flags:
  7472. * Reserved. Set to zero.
  7473. *
  7474. * interpassProcessingDoneOut:
  7475. * Points to a Boolean that will be set to false if
  7476. * ICMCompressionSessionProcessBetweenPasses should be called
  7477. * again, true if not
  7478. *
  7479. * requestedNextPassModeFlagsOut:
  7480. * Points to ICMCompressionPassModeFlags that will be set to the
  7481. * codec's recommended mode flags for the next pass.
  7482. * kICMCompressionPassMode_OutputEncodedFrames will only be set if
  7483. * it recommends that the next pass be the final one.
  7484. *
  7485. * Availability:
  7486. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7487. * CarbonLib: not available
  7488. * Non-Carbon CFM: not available
  7489. }
  7490. function ICMCompressionSessionProcessBetweenPasses( session: ICMCompressionSessionRef; flags: UInt32; var interpassProcessingDoneOut: Boolean; var requestedNextPassModeFlagsOut: ICMCompressionPassModeFlags ): OSStatus; external name '_ICMCompressionSessionProcessBetweenPasses';
  7491. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7492. { ICMCompressionSessionOptionsRef routines }
  7493. {
  7494. * ICMCompressionSessionOptionsCreate()
  7495. *
  7496. * Summary:
  7497. * Creates a compression session options object.
  7498. *
  7499. * Availability:
  7500. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7501. * CarbonLib: not available
  7502. * Non-Carbon CFM: not available
  7503. }
  7504. function ICMCompressionSessionOptionsCreate( allocator: CFAllocatorRef { can be NULL }; var options: ICMCompressionSessionOptionsRef ): OSStatus; external name '_ICMCompressionSessionOptionsCreate';
  7505. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7506. {
  7507. * ICMCompressionSessionOptionsCreateCopy()
  7508. *
  7509. * Summary:
  7510. * Copies a compression session options object.
  7511. *
  7512. * Availability:
  7513. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7514. * CarbonLib: not available
  7515. * Non-Carbon CFM: not available
  7516. }
  7517. function ICMCompressionSessionOptionsCreateCopy( allocator: CFAllocatorRef { can be NULL }; originalOptions: ICMCompressionSessionOptionsRef; var copiedOptions: ICMCompressionSessionOptionsRef ): OSStatus; external name '_ICMCompressionSessionOptionsCreateCopy';
  7518. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7519. {
  7520. * ICMCompressionSessionOptionsRetain()
  7521. *
  7522. * Summary:
  7523. * Increments the retain count of a compression session options
  7524. * object.
  7525. *
  7526. * Discussion:
  7527. * If you pass NULL to this function, nothing happens.
  7528. *
  7529. * Availability:
  7530. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7531. * CarbonLib: not available
  7532. * Non-Carbon CFM: not available
  7533. }
  7534. function ICMCompressionSessionOptionsRetain( options: ICMCompressionSessionOptionsRef ): ICMCompressionSessionOptionsRef; external name '_ICMCompressionSessionOptionsRetain';
  7535. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7536. {
  7537. * ICMCompressionSessionOptionsRelease()
  7538. *
  7539. * Summary:
  7540. * Decrements the retain count of a compression session options
  7541. * object. If it drops to zero, the object is disposed.
  7542. *
  7543. * Discussion:
  7544. * If you pass NULL to this function, nothing happens.
  7545. *
  7546. * Availability:
  7547. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7548. * CarbonLib: not available
  7549. * Non-Carbon CFM: not available
  7550. }
  7551. procedure ICMCompressionSessionOptionsRelease( options: ICMCompressionSessionOptionsRef ); external name '_ICMCompressionSessionOptionsRelease';
  7552. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7553. {
  7554. * ICMCompressionSessionOptionsGetTypeID()
  7555. *
  7556. * Summary:
  7557. * Returns the CFTypeID for compression session options objects.
  7558. *
  7559. * Availability:
  7560. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7561. * CarbonLib: not available
  7562. * Non-Carbon CFM: not available
  7563. }
  7564. function ICMCompressionSessionOptionsGetTypeID: CFTypeID; external name '_ICMCompressionSessionOptionsGetTypeID';
  7565. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7566. {
  7567. * ICMCompressionSessionOptionsGetPropertyInfo()
  7568. *
  7569. * Summary:
  7570. * Retrieves information about properties of a compression session
  7571. * options object.
  7572. *
  7573. * Availability:
  7574. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7575. * CarbonLib: not available
  7576. * Non-Carbon CFM: not available
  7577. }
  7578. function ICMCompressionSessionOptionsGetPropertyInfo( options: ICMCompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMCompressionSessionOptionsGetPropertyInfo';
  7579. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7580. {
  7581. * ICMCompressionSessionOptionsGetProperty()
  7582. *
  7583. * Summary:
  7584. * Retrieves the value of a specific property of a compression
  7585. * session options object.
  7586. *
  7587. * Availability:
  7588. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7589. * CarbonLib: not available
  7590. * Non-Carbon CFM: not available
  7591. }
  7592. function ICMCompressionSessionOptionsGetProperty( options: ICMCompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMCompressionSessionOptionsGetProperty';
  7593. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7594. {
  7595. * ICMCompressionSessionOptionsSetProperty()
  7596. *
  7597. * Summary:
  7598. * Sets the value of a specific property of a compression session
  7599. * options object.
  7600. *
  7601. * Availability:
  7602. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  7603. * CarbonLib: not available
  7604. * Non-Carbon CFM: not available
  7605. }
  7606. function ICMCompressionSessionOptionsSetProperty( options: ICMCompressionSessionOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMCompressionSessionOptionsSetProperty';
  7607. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  7608. const
  7609. {
  7610. * Indicates no limit on the number of frames in the compression
  7611. * window.
  7612. }
  7613. kICMUnlimitedFrameDelayCount = -1;
  7614. {
  7615. * Indicates no time limit on the number of frames in the compression
  7616. * window.
  7617. }
  7618. kICMUnlimitedFrameDelayTime = -1;
  7619. {
  7620. * Indicates no CPU time limit on compression.
  7621. }
  7622. kICMUnlimitedCPUTimeBudget = -1;
  7623. {
  7624. * ICMDataRateLimit
  7625. *
  7626. * Summary:
  7627. * A hard limit on the data rate.
  7628. *
  7629. * Discussion:
  7630. * A hard limit is described by a data size in bytes and a duration
  7631. * in seconds, and requires that the total size of compressed data
  7632. * for any continuous segment of that duration (in decode time) must
  7633. * not exceed the provided data size.
  7634. }
  7635. type
  7636. ICMDataRateLimit = record
  7637. {
  7638. * The number of bytes.
  7639. }
  7640. dataSize: SInt32;
  7641. {
  7642. * The number of seconds.
  7643. }
  7644. dataDuration: Float32;
  7645. end;
  7646. {
  7647. * Summary:
  7648. * Scaling modes
  7649. *
  7650. * Discussion:
  7651. * These constants indicate how source frames to a compression
  7652. * session should be scaled if the dimensions and/or display aspect
  7653. * ratio do not match.
  7654. }
  7655. const
  7656. {
  7657. * The full width and height of source frames shall be scaled to the
  7658. * full width and height of the destination. This is the default if
  7659. * no other scaling mode is specified.
  7660. }
  7661. kICMScalingMode_StretchProductionAperture = FourCharCode('sp2p');
  7662. {
  7663. * The clean aperture of the source frames shall be scaled to the
  7664. * clean aperture of the destination.
  7665. }
  7666. kICMScalingMode_StretchCleanAperture = FourCharCode('sc2c');
  7667. {
  7668. * The clean aperture of the source frames shall be scaled to fit
  7669. * inside the clean aperture of the destination, preserving the
  7670. * original display aspect ratio. If the display aspect ratios are
  7671. * different, the source frames will be centered with black bars
  7672. * above and below, or to the left and right.
  7673. }
  7674. kICMScalingMode_Letterbox = FourCharCode('lett');
  7675. {
  7676. * The clean aperture of the source frames shall be scaled to cover
  7677. * the clean aperture of the destination, preserving the original
  7678. * display aspect ratio. If the display aspect ratios are different,
  7679. * the source frames will be centered and cropped.
  7680. }
  7681. kICMScalingMode_Trim = FourCharCode('trim');
  7682. {
  7683. * ICMSimpleBoundaryConditions
  7684. *
  7685. * Summary:
  7686. * Indicates whether and how a compression session's frames will be
  7687. * concatenated with other compressed frames to form a longer series.
  7688. *
  7689. * Discussion:
  7690. * Some clients divide a long series of frames into several shorter
  7691. * segments, each of which is then compressed by an independent
  7692. * compression session. Boundary conditions tell the compressor
  7693. * about how each session fits into the greater series: does this
  7694. * session stand alone, or will it be used to encode the first
  7695. * segment, a middle segment, or the last segment in a longer
  7696. * continuum?
  7697. * This information enables compressors to ensure that compressed
  7698. * segments can be concatenated smoothly -- for example, avoiding
  7699. * data rate spikes where segments are joined.
  7700. * By default, a session is assumed to stand alone.
  7701. }
  7702. type
  7703. ICMSimpleBoundaryConditions = record
  7704. {
  7705. * True if frames compressed in a separate session will be
  7706. * concatenated before the beginning of this one. False if this is a
  7707. * stand-alone session, or if this session will encode the first
  7708. * segment of a multi-segment compression. By default, false.
  7709. }
  7710. moreFramesBeforeStart: Boolean;
  7711. {
  7712. * True if frames compressed in a separate session will be
  7713. * concatenated following the end of this one. False if this is a
  7714. * stand-alone session, or if this session will encode the last
  7715. * segment of a multi-segment compression. By default, false.
  7716. }
  7717. moreFramesAfterEnd: Boolean;
  7718. end;
  7719. {
  7720. * Summary:
  7721. * Properties of compression sessions options objects.
  7722. }
  7723. const
  7724. {
  7725. * Class identifier for compression session options object properties.
  7726. }
  7727. kQTPropertyClass_ICMCompressionSessionOptions = FourCharCode('icso');
  7728. {
  7729. * Enables temporal compression. By default, temporal compression is
  7730. * disabled.
  7731. * IMPORTANT: If you want temporal compression (P frames and/or B
  7732. * frames) you must set this to true.
  7733. }
  7734. kICMCompressionSessionOptionsPropertyID_AllowTemporalCompression = FourCharCode('p ok'); { Boolean, Read/Write }
  7735. {
  7736. * Enables frame reordering.
  7737. * In order to encode B frames, a compressor must reorder frames,
  7738. * which means that the order in which they will be emitted and
  7739. * stored (the decode order) is different from the order in which
  7740. * they were presented to the compressor (the display order).
  7741. * By default, frame reordering is disabled.
  7742. * IMPORTANT: In order to encode using B frames, you must enable
  7743. * frame reordering.
  7744. }
  7745. kICMCompressionSessionOptionsPropertyID_AllowFrameReordering = FourCharCode('b ok'); { Boolean, Read/Write }
  7746. {
  7747. * Indicates that durations of emitted frames are needed.
  7748. * If this flag is set and source frames are provided with times but
  7749. * not durations, then frames will be delayed so that durations can
  7750. * be calculated as the difference between one frame's time stamp and
  7751. * the next frame's time stamp.
  7752. * By default, this flag is clear, so frames will not be delayed in
  7753. * order to calculate durations.
  7754. * IMPORTANT: If you will be passing encoded frames to
  7755. * AddMediaSampleFromEncodedFrame, you must set this flag to true.
  7756. }
  7757. kICMCompressionSessionOptionsPropertyID_DurationsNeeded = FourCharCode('need'); { Boolean, Read/Write }
  7758. {
  7759. * The maximum interval between key frames, also known as the key
  7760. * frame rate.
  7761. * Key frames, also known as sync frames, reset inter-frame
  7762. * dependencies; decoding a key frame is sufficient to prepare a
  7763. * decompressor for correctly decoding the difference frames that
  7764. * follow.
  7765. * Compressors are allowed to generate key frames more frequently if
  7766. * this would result in more efficient compression.
  7767. * The default key frame interval is 0, which indicates that the
  7768. * compressor should choose where to place all key frames. A key
  7769. * frame interval of 1 indicates that every frame must be a key
  7770. * frame, 2 indicates that at least every other frame must be a key
  7771. * frame, etc.
  7772. }
  7773. kICMCompressionSessionOptionsPropertyID_MaxKeyFrameInterval = FourCharCode('kyfr'); { SInt32, Read/Write }
  7774. {
  7775. * The requested maximum interval between partial sync frames. If the
  7776. * interval is n, any sequence of n successive frames must include at
  7777. * least one key or partial sync frame.
  7778. * Where supported, partial sync frames perform a partial reset of
  7779. * inter-frame dependencies; decoding two partial sync frames and the
  7780. * non-droppable difference frames between them is sufficient to
  7781. * prepare a decompressor for correctly decoding the difference
  7782. * frames that follow.
  7783. * Compressors are allowed to generate partial sync frames more
  7784. * frequently if this would result in more efficient compression.
  7785. *
  7786. * The default partial sync frame interval is 0, which indicates that
  7787. * the compressor should choose where to place partial sync frames. A
  7788. * partial sync frame interval of 1 means there can be no difference
  7789. * frames, so it is equivalent to a key frame interval of 1. A
  7790. * partial sync frame interval of 2 means that every other frame must
  7791. * be a key frame or a partial sync frame.
  7792. * Compressors that do not support partial sync frames will ignore
  7793. * this setting.
  7794. }
  7795. kICMCompressionSessionOptionsPropertyID_MaxPartialSyncFrameInterval = FourCharCode('psfr'); { SInt32, Read/Write }
  7796. {
  7797. * Enables the compressor to modify frame times.
  7798. * Some compressors are able to identify and coalesce runs of
  7799. * identical frames and output single frames with longer duration, or
  7800. * output frames at a different frame rate from the original. This
  7801. * feature is controlled by the "allow frame time changes" flag. By
  7802. * default, this flag is set to false, which forces compressors to
  7803. * emit one encoded frame for every source frame, and to preserve
  7804. * frame display times.
  7805. * (Note: this feature replaces the practice of having compressors
  7806. * return special high similarity values to indicate that frames
  7807. * could be dropped.)
  7808. * If you want to allow the compressor to modify frame times in order
  7809. * to improve compression performance, enable frame time changes.
  7810. }
  7811. kICMCompressionSessionOptionsPropertyID_AllowFrameTimeChanges = FourCharCode('+ ok'); { Boolean, Read/Write }
  7812. {
  7813. * Enables the compressor to call the encoded-frame callback from a
  7814. * different thread.
  7815. * By default, the flag is false, which means that the compressor
  7816. * must call the encoded-frame callback from the same thread that
  7817. * ICMCompressionSessionEncodeFrame and
  7818. * ICMCompressionSessionCompleteFrames were called on.
  7819. }
  7820. kICMCompressionSessionOptionsPropertyID_AllowAsyncCompletion = FourCharCode('asok'); { Boolean, Read/Write }
  7821. {
  7822. * The maximum frame delay count is the maximum number of frames that
  7823. * a compressor is allowed to hold before it must output a compressed
  7824. * frame. It limits the number of frames that may be held in the
  7825. * "compression window". If the maximum frame delay count is M, then
  7826. * before the call to encode frame N returns, frame N-M must have
  7827. * been emitted.
  7828. * The default is kICMUnlimitedFrameDelayCount, which sets no limit
  7829. * on the compression window.
  7830. }
  7831. kICMCompressionSessionOptionsPropertyID_MaxFrameDelayCount = FourCharCode('cwin'); { SInt32, Read/Write }
  7832. {
  7833. * The maximum frame delay time is the maximum difference between a
  7834. * source frame's display time and the corresponding encoded frame's
  7835. * decode time. It limits the span of display time that may be held
  7836. * in the "compression window". If the maximum frame delay time is
  7837. * TM, then before the call to encode a frame with display time TN
  7838. * returns, all frames with display times up to and including TN-TM
  7839. * must have been emitted.
  7840. * The default is kICMUnlimitedFrameDelayTime, which sets no time
  7841. * limit on the compression window.
  7842. }
  7843. kICMCompressionSessionOptionsPropertyID_MaxFrameDelayTime = FourCharCode('cwit'); { TimeValue64, Read/Write }
  7844. {
  7845. * Sets a specific compressor component or component instance to be
  7846. * used, or one of the wildcards anyCodec, bestSpeedCodec,
  7847. * bestFidelityCodec, or bestCompressionCodec.
  7848. * Use this API to force the Image Compression Manager to use a
  7849. * specific compressor component or compressor component instance.
  7850. * (If you pass in a component instance that you opened, the ICM will
  7851. * not close that instance; you must do so after the compression
  7852. * session is released.) To allow the Image Compression Manager to
  7853. * choose the compressor component, set the compressorComponent to
  7854. * anyCodec (the default), bestSpeedCodec, bestFidelityCodec or
  7855. * bestCompressionCodec.
  7856. }
  7857. kICMCompressionSessionOptionsPropertyID_CompressorComponent = FourCharCode('imco'); { CompressorComponent, Read/Write }
  7858. {
  7859. * A handle containing compressor settings. The compressor will be
  7860. * configured with these settings (by a call to
  7861. * ImageCodecSetSettings) during ICMCompressionSessionCreate.
  7862. }
  7863. kICMCompressionSessionOptionsPropertyID_CompressorSettings = FourCharCode('cost'); { Handle, Read/Write }
  7864. {
  7865. * The depth for compression.
  7866. * If a compressor does not support a specific depth, the closest
  7867. * supported depth will be used (preferring deeper depths to
  7868. * shallower depths). The default depth is k24RGBPixelFormat.
  7869. }
  7870. kICMCompressionSessionOptionsPropertyID_Depth = FourCharCode('deep'); { UInt32, Read/Write }
  7871. {
  7872. * The color table for compression. Used with indexed-color depths.
  7873. *
  7874. * Clients who get this property are responsible for disposing the
  7875. * returned CTabHandle.
  7876. }
  7877. kICMCompressionSessionOptionsPropertyID_ColorTable = FourCharCode('clut'); { CTabHandle, Read/Write}
  7878. {
  7879. * The compression quality.
  7880. * This value is always used to set the spatialQuality; if temporal
  7881. * compression is enabled, it is also used to set temporalQuality.
  7882. * <BR> The default quality is codecNormalQuality.
  7883. }
  7884. kICMCompressionSessionOptionsPropertyID_Quality = FourCharCode('qual'); { CodecQ, Read/Write }
  7885. {
  7886. * The long-term desired average data rate in bytes per second.
  7887. * This is not a hard limit.
  7888. * The default data rate is zero, which indicates that the quality
  7889. * setting should determine the size of compressed data.
  7890. * Note that data rate settings only have an effect when timing
  7891. * information is provided for source frames, and that some codecs do
  7892. * not support limiting to specified data rates.
  7893. }
  7894. kICMCompressionSessionOptionsPropertyID_AverageDataRate = FourCharCode('aver'); { SInt32, Read/Write }
  7895. {
  7896. * Zero, one or two hard limits on data rate.
  7897. * Each hard limit is described by a data size in bytes and a
  7898. * duration in seconds, and requires that the total size of
  7899. * compressed data for any contiguous segment of that duration (in
  7900. * decode time) must not exceed the data size.
  7901. * By default, no data rate limits are set.
  7902. * When setting this property, the inPropValueSize parameter should
  7903. * be the number of data rate limits multiplied by
  7904. * sizeof(ICMDataRateLimit).
  7905. * Note that data rate settings only have an effect when timing
  7906. * information is provided for source frames, and that some codecs do
  7907. * not support limiting to specified data rates.
  7908. }
  7909. kICMCompressionSessionOptionsPropertyID_DataRateLimits = FourCharCode('hard'); { C array of ICMDataRateLimit struct, Read/Write }
  7910. {
  7911. * The current number of data rate limits.
  7912. }
  7913. kICMCompressionSessionOptionsPropertyID_DataRateLimitCount = FourCharCode('har#'); { UInt32, Read }
  7914. {
  7915. * The maximum allowed number of data rate limits. (Currently 2.)
  7916. }
  7917. kICMCompressionSessionOptionsPropertyID_MaxDataRateLimits = FourCharCode('mhar'); { UInt32, Read }
  7918. {
  7919. * Indicates that the source was previously compressed.
  7920. * This property is purely an optional, informational hint to the
  7921. * compressor; by default it is false.
  7922. }
  7923. kICMCompressionSessionOptionsPropertyID_WasCompressed = FourCharCode('wasc'); { Boolean, Read/Write }
  7924. {
  7925. * Recommends a CPU time budget for the compressor in microseconds
  7926. * per frame.
  7927. * Zero means to go as fast as possible.
  7928. * By default, this is set to kICMUnlimitedCPUTimeBudget, which sets
  7929. * no limit.
  7930. * This is an advisory hint to the compressor, and some compressors
  7931. * may ignore it. Multithreaded compressors may use this amount of
  7932. * CPU time on each processor.
  7933. * Compressors should not feel compelled to use the full time budget
  7934. * if they complete ahead of time!
  7935. }
  7936. kICMCompressionSessionOptionsPropertyID_CPUTimeBudget = FourCharCode('cput'); { UInt32, Read/Write }
  7937. {
  7938. * Storage for multi-pass compression.
  7939. * To enable multipass compression, the client must provide a storage
  7940. * location for multipass data. Use
  7941. * ICMMultiPassStorageCreateWithTemporaryFile to have the ICM store
  7942. * it in a temporary file. Use
  7943. * ICMMultiPassStorageCreateWithCallbacks to manage the storage
  7944. * yourself.
  7945. * Note that the amount of multipass data to be stored can be
  7946. * substantial; it could be greater than the size of the output movie
  7947. * file.
  7948. * If this property is not NULL, the client must call
  7949. * ICMCompressionSessionBeginPass and ICMCompressionSessionEndPass
  7950. * around groups of calls to ICMCompressionSessionEncodeFrame.
  7951. * By default, this property is NULL and multipass compression is
  7952. * not enabled. The compression session options object retains the
  7953. * multipass storage object, when one is set.
  7954. }
  7955. kICMCompressionSessionOptionsPropertyID_MultiPassStorage = FourCharCode('imps'); { ICMMultiPassStorageRef, Read/Write }
  7956. {
  7957. * Indicates the number of source frames, if known. If nonzero, this
  7958. * should be the exact number of times that the client calls
  7959. * ICMCompressionSessionEncodeFrame in each pass.
  7960. * The default is 0, which indicates that the number of source frames
  7961. * is not known.
  7962. }
  7963. kICMCompressionSessionOptionsPropertyID_SourceFrameCount = FourCharCode('frco'); { UInt64, Read/Write }
  7964. {
  7965. * Indicates the expected frame rate, if known. The frame rate is
  7966. * measured in frames per second. This is not used to control the
  7967. * frame rate; it is provided as a hint to the compressor so that it
  7968. * can set up internal configuration before compression begins. The
  7969. * actual frame rate will depend on frame durations and may vary. By
  7970. * default, this is zero, indicating "unknown".
  7971. }
  7972. kICMCompressionSessionOptionsPropertyID_ExpectedFrameRate = FourCharCode('fran'); { Fixed, Read/Write }
  7973. {
  7974. * Indicates how source frames to a compression session should be
  7975. * scaled if the dimensions and/or display aspect ratio do not match.
  7976. }
  7977. kICMCompressionSessionOptionsPropertyID_ScalingMode = FourCharCode('scam'); { OSType, Read/Write }
  7978. {
  7979. * Describes the clean aperture for compressed frames. Note that if
  7980. * the compressor enforces a clean aperture, it will override this
  7981. * setting. The clean aperture will be set on the output image
  7982. * description and may affect scaling in some scaling modes. By
  7983. * default, this is all zeros, meaning unset.
  7984. }
  7985. kICMCompressionSessionOptionsPropertyID_CleanAperture = FourCharCode('clap'); { Native-endian CleanApertureImageDescriptionExtension, Read/Write }
  7986. {
  7987. * Describes the pixel aspect ratio for compressed frames. Note that
  7988. * if the compressor enforces a pixel aspect ratio, it will override
  7989. * this setting. The pixel aspect ratio will be set on the output
  7990. * image description and may affect scaling in some scaling modes. By
  7991. * default, this is all zeros, meaning unset.
  7992. }
  7993. kICMCompressionSessionOptionsPropertyID_PixelAspectRatio = FourCharCode('pasp'); { Native-endian PixelAspectRatioImageDescriptionExtension, Read/Write }
  7994. {
  7995. * Describes the number and order of fields for compressed frames.
  7996. * Note that if the compressor enforces field info, it will override
  7997. * this setting. The field info will be set on the output image
  7998. * description and may affect scaling in some scaling modes. By
  7999. * default, this is all zeros, meaning unset.
  8000. }
  8001. kICMCompressionSessionOptionsPropertyID_FieldInfo = FourCharCode('fiel'); { FieldInfoImageDescriptionExtension2, Read/Write }
  8002. {
  8003. * Indicates whether and how a compression session's frames will be
  8004. * concatenated with other compressed frames to form a longer series.
  8005. }
  8006. kICMCompressionSessionOptionsPropertyID_SimpleBoundaryConditions = FourCharCode('ends'); { ICMSimpleBoundaryConditions struct, Read/Write }
  8007. {
  8008. * Requests additional distortion to be applied to the aspect ratio
  8009. * in the kICMScalingMode_Letterbox and kICMScalingMode_Trim scaling
  8010. * modes. Values greater than fixed1 mean wider, values less than
  8011. * fixed1 mean narrower. For example, a value of X2Fix(2.0) would
  8012. * make the picture aspect ratio twice as wide.
  8013. }
  8014. kICMCompressionSessionOptionsPropertyID_ExtraAspectRatioStretchFactor = FourCharCode('exsf'); { Fixed, Default fixed1, Read/Write }
  8015. {
  8016. * ICMCompressionSessionOptionsSetAllowTemporalCompression()
  8017. *
  8018. * Summary:
  8019. * Enables temporal compression.
  8020. *
  8021. * Discussion:
  8022. * By default, temporal compression is disabled.
  8023. * IMPORTANT: If you want temporal compression (P frames and/or B
  8024. * frames) you must set this to true.
  8025. *
  8026. * Availability:
  8027. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8028. * CarbonLib: not available
  8029. * Non-Carbon CFM: not available
  8030. }
  8031. function ICMCompressionSessionOptionsSetAllowTemporalCompression( options: ICMCompressionSessionOptionsRef; allowTemporalCompression: Boolean ): OSStatus; external name '_ICMCompressionSessionOptionsSetAllowTemporalCompression';
  8032. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8033. {
  8034. * ICMCompressionSessionOptionsGetAllowTemporalCompression()
  8035. *
  8036. * Summary:
  8037. * Retrieves the allow temporal compression flag.
  8038. *
  8039. * Availability:
  8040. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8041. * CarbonLib: not available
  8042. * Non-Carbon CFM: not available
  8043. }
  8044. function ICMCompressionSessionOptionsGetAllowTemporalCompression( options: ICMCompressionSessionOptionsRef ): Boolean; external name '_ICMCompressionSessionOptionsGetAllowTemporalCompression';
  8045. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8046. {
  8047. * ICMCompressionSessionOptionsSetAllowFrameReordering()
  8048. *
  8049. * Summary:
  8050. * Enables frame reordering.
  8051. *
  8052. * Discussion:
  8053. * In order to encode B frames, a compressor must reorder frames,
  8054. * which means that the order in which they will be emitted and
  8055. * stored (the decode order) is different from the order in which
  8056. * they were presented to the compressor (the display order).
  8057. * By default, frame reordering is disabled.
  8058. * IMPORTANT: In order to encode using B frames, you must enable
  8059. * frame reordering.
  8060. *
  8061. * Availability:
  8062. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8063. * CarbonLib: not available
  8064. * Non-Carbon CFM: not available
  8065. }
  8066. function ICMCompressionSessionOptionsSetAllowFrameReordering( options: ICMCompressionSessionOptionsRef; allowFrameReordering: Boolean ): OSStatus; external name '_ICMCompressionSessionOptionsSetAllowFrameReordering';
  8067. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8068. {
  8069. * ICMCompressionSessionOptionsGetAllowFrameReordering()
  8070. *
  8071. * Summary:
  8072. * Retrieves the allow frame reordering flag.
  8073. *
  8074. * Availability:
  8075. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8076. * CarbonLib: not available
  8077. * Non-Carbon CFM: not available
  8078. }
  8079. function ICMCompressionSessionOptionsGetAllowFrameReordering( options: ICMCompressionSessionOptionsRef ): Boolean; external name '_ICMCompressionSessionOptionsGetAllowFrameReordering';
  8080. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8081. {
  8082. * ICMCompressionSessionOptionsSetDurationsNeeded()
  8083. *
  8084. * Summary:
  8085. * Indicates that durations of emitted frames are needed.
  8086. *
  8087. * Discussion:
  8088. * If this flag is set and source frames are provided with times but
  8089. * not durations, then frames will be delayed so that durations can
  8090. * be calculated as the difference between one frame's time stamp
  8091. * and the next frame's time stamp.
  8092. * By default, this flag is clear, so frames will not be delayed in
  8093. * order to calculate durations.
  8094. * IMPORTANT: If you will be passing encoded frames to
  8095. * AddMediaSampleFromEncodedFrame, you must set this flag to true.
  8096. *
  8097. * Availability:
  8098. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8099. * CarbonLib: not available
  8100. * Non-Carbon CFM: not available
  8101. }
  8102. function ICMCompressionSessionOptionsSetDurationsNeeded( options: ICMCompressionSessionOptionsRef; decodeDurationsNeeded: Boolean ): OSStatus; external name '_ICMCompressionSessionOptionsSetDurationsNeeded';
  8103. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8104. {
  8105. * ICMCompressionSessionOptionsGetDurationsNeeded()
  8106. *
  8107. * Summary:
  8108. * Retrieves the "durations needed" flag.
  8109. *
  8110. * Availability:
  8111. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8112. * CarbonLib: not available
  8113. * Non-Carbon CFM: not available
  8114. }
  8115. function ICMCompressionSessionOptionsGetDurationsNeeded( options: ICMCompressionSessionOptionsRef ): Boolean; external name '_ICMCompressionSessionOptionsGetDurationsNeeded';
  8116. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8117. {
  8118. * ICMCompressionSessionOptionsSetMaxKeyFrameInterval()
  8119. *
  8120. * Summary:
  8121. * Sets the maximum interval between key frames (also known as the
  8122. * key frame rate).
  8123. *
  8124. * Discussion:
  8125. * Compressors are allowed to generate key frames more frequently if
  8126. * this would result in more efficient compression.
  8127. * The default key frame interval is 0, which indicates that the
  8128. * compressor should choose where to place all key frames.
  8129. * (Note: this is a break with previous practice, which used a key
  8130. * frame rate of zero to disable temporal compression.)
  8131. *
  8132. * Availability:
  8133. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8134. * CarbonLib: not available
  8135. * Non-Carbon CFM: not available
  8136. }
  8137. function ICMCompressionSessionOptionsSetMaxKeyFrameInterval( options: ICMCompressionSessionOptionsRef; maxKeyFrameInterval: SInt32 ): OSStatus; external name '_ICMCompressionSessionOptionsSetMaxKeyFrameInterval';
  8138. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8139. {
  8140. * ICMCompressionSessionOptionsGetMaxKeyFrameInterval()
  8141. *
  8142. * Summary:
  8143. * Retrieves the maximum key frame interval.
  8144. *
  8145. * Availability:
  8146. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8147. * CarbonLib: not available
  8148. * Non-Carbon CFM: not available
  8149. }
  8150. function ICMCompressionSessionOptionsGetMaxKeyFrameInterval( options: ICMCompressionSessionOptionsRef ): SInt32; external name '_ICMCompressionSessionOptionsGetMaxKeyFrameInterval';
  8151. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8152. {
  8153. * ICMCompressionSessionOptionsSetAllowFrameTimeChanges()
  8154. *
  8155. * Summary:
  8156. * Enables the compressor to modify frame times.
  8157. *
  8158. * Discussion:
  8159. * Some compressors are able to identify and coalesce runs of
  8160. * identical frames and output single frames with longer duration,
  8161. * or output frames at a different frame rate from the original.
  8162. * This feature is controlled by the "allow frame time changes"
  8163. * flag. By default, this flag is set to false, which forces
  8164. * compressors to emit one encoded frame for every source frame, and
  8165. * to preserve frame display times.
  8166. * (Note: this feature replaces the practice of having compressors
  8167. * return special high similarity values to indicate that frames
  8168. * could be dropped.)
  8169. * If you want to allow the compressor to modify frame times in
  8170. * order to improve compression performance, enable frame time
  8171. * changes.
  8172. *
  8173. * Availability:
  8174. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8175. * CarbonLib: not available
  8176. * Non-Carbon CFM: not available
  8177. }
  8178. function ICMCompressionSessionOptionsSetAllowFrameTimeChanges( options: ICMCompressionSessionOptionsRef; allowFrameTimeChanges: Boolean ): OSStatus; external name '_ICMCompressionSessionOptionsSetAllowFrameTimeChanges';
  8179. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8180. {
  8181. * ICMCompressionSessionOptionsGetAllowFrameTimeChanges()
  8182. *
  8183. * Summary:
  8184. * Retrieves the allow frame time changes flag.
  8185. *
  8186. * Availability:
  8187. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8188. * CarbonLib: not available
  8189. * Non-Carbon CFM: not available
  8190. }
  8191. function ICMCompressionSessionOptionsGetAllowFrameTimeChanges( options: ICMCompressionSessionOptionsRef ): Boolean; external name '_ICMCompressionSessionOptionsGetAllowFrameTimeChanges';
  8192. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8193. { ICMMultiPassStorageRef routines }
  8194. {
  8195. * ICMMultiPassStorageCreationFlags
  8196. *
  8197. }
  8198. type
  8199. ICMMultiPassStorageCreationFlags = UInt32;
  8200. const
  8201. {
  8202. * Indicates that the temporary file should not be deleted when the
  8203. * multipass storage is released.
  8204. }
  8205. kICMMultiPassStorage_DoNotDeleteWhenDone = 1 shl 0;
  8206. {
  8207. * ICMMultiPassStorageCreateWithTemporaryFile()
  8208. *
  8209. * Summary:
  8210. * Creates a multipass storage using a temporary file.
  8211. *
  8212. * Discussion:
  8213. * If you pass NULL for directoryRef, the ICM will use the user's
  8214. * temporary items folder.
  8215. * If you pass NULL for fileName, the ICM will pick a unique name.
  8216. *
  8217. * The file will be deleted when the multipass storage is released,
  8218. * unless you set the kICMMultiPassStorage_DoNotDeleteWhenDone flag.
  8219. *
  8220. * Availability:
  8221. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8222. * CarbonLib: not available
  8223. * Non-Carbon CFM: not available
  8224. }
  8225. function ICMMultiPassStorageCreateWithTemporaryFile( allocator: CFAllocatorRef { can be NULL }; directoryRef: FSRefPtr { can be NULL }; fileName: CFStringRef { can be NULL }; flags: ICMMultiPassStorageCreationFlags; var multiPassStorageOut: ICMMultiPassStorageRef ): OSStatus; external name '_ICMMultiPassStorageCreateWithTemporaryFile';
  8226. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8227. {
  8228. * ICMMultiPassStorageStep
  8229. *
  8230. * Summary:
  8231. * Indicates a jump in time stamps used to index multipass storage.
  8232. }
  8233. type
  8234. ICMMultiPassStorageStep = UInt32;
  8235. const
  8236. {
  8237. * Requests the first time stamp at which a value is stored.
  8238. }
  8239. kICMMultiPassStorage_GetFirstTimeStamp = 1;
  8240. {
  8241. * Requests the previous time stamp before the given time stamp at
  8242. * which a value is stored.
  8243. }
  8244. kICMMultiPassStorage_GetPreviousTimeStamp = 2;
  8245. {
  8246. * Requests the next time stamp after the given time stamp at which a
  8247. * value is stored.
  8248. }
  8249. kICMMultiPassStorage_GetNextTimeStamp = 3;
  8250. {
  8251. * Requests the last time stamp at which a value is stored.
  8252. }
  8253. kICMMultiPassStorage_GetLastTimeStamp = 4;
  8254. {
  8255. * ICMMultiPassSetDataAtTimeStampCallback
  8256. *
  8257. * Summary:
  8258. * Stores a value at a given time stamp.
  8259. *
  8260. * Discussion:
  8261. * The new data should replace any previous data held at that
  8262. * timestamp with that index.
  8263. *
  8264. * Parameters:
  8265. *
  8266. * storageRefCon:
  8267. * The callbacks' reference value.
  8268. *
  8269. * timeStamp:
  8270. * The time stamp at which the value should be stored.
  8271. *
  8272. * index:
  8273. * An index by which multiple values may be stored at a time
  8274. * stamp. The meaning of individual indexes is private to the
  8275. * compressor.
  8276. *
  8277. * data:
  8278. * The data to be stored, or NULL to delete the value. The
  8279. * contents are private to the compressor component.
  8280. }
  8281. type
  8282. ICMMultiPassSetDataAtTimeStampCallback = function( storageRefCon: UnivPtr; timeStamp: TimeValue64; index: SIGNEDLONG; data: CFDataRef ): OSStatus;
  8283. {
  8284. * ICMMultiPassGetTimeStampCallback
  8285. *
  8286. * Summary:
  8287. * Retrieves a time stamp for which a value is stored.
  8288. *
  8289. * Parameters:
  8290. *
  8291. * storageRefCon:
  8292. * The callbacks' reference value.
  8293. *
  8294. * fromTimeStamp:
  8295. * The initial time stamp. Ignored for some values of step.
  8296. *
  8297. * step:
  8298. * Indicates the kind of time stamp search to perform.
  8299. *
  8300. * timeStampOut:
  8301. * Points to a TimeValue64 to receive the found time stamp. Set to
  8302. * -1 if no time stamp is found.
  8303. }
  8304. type
  8305. ICMMultiPassGetTimeStampCallback = function( storageRefCon: UnivPtr; fromTimeStamp: TimeValue64; step: ICMMultiPassStorageStep; var timeStampOut: TimeValue64 ): OSStatus;
  8306. {
  8307. * ICMMultiPassCopyDataAtTimeStampCallback
  8308. *
  8309. * Summary:
  8310. * Retrieves a value at a given time stamp and index.
  8311. *
  8312. * Parameters:
  8313. *
  8314. * storageRefCon:
  8315. * The callbacks' reference value.
  8316. *
  8317. * timeStamp:
  8318. * The time stamp at which the value should be retrieved.
  8319. *
  8320. * index:
  8321. * An index by which multiple values may be stored at a time
  8322. * stamp. The meaning of individual indexes is private to the
  8323. * compressor.
  8324. *
  8325. * dataOut:
  8326. * Points to a variable to receive the value. Set to a
  8327. * newly-created CFMutableData containing the value for the given
  8328. * time stamp and index, or set to NULL if no value is at that
  8329. * time stamp and index. It will be the callers responsibility to
  8330. * release the CFMutableData.
  8331. }
  8332. type
  8333. ICMMultiPassCopyDataAtTimeStampCallback = function( storageRefCon: UnivPtr; timeStamp: TimeValue64; index: SIGNEDLONG; var dataOut: CFMutableDataRef ): OSStatus;
  8334. {
  8335. * ICMMultiPassReleaseCallback
  8336. *
  8337. * Summary:
  8338. * Called when the multipass storage's retain count drops to zero.
  8339. *
  8340. * Parameters:
  8341. *
  8342. * storageRefCon:
  8343. * The callbacks' reference value.
  8344. }
  8345. type
  8346. ICMMultiPassReleaseCallback = function( storageRefCon: UnivPtr ): OSStatus;
  8347. {
  8348. * ICMMultiPassStorageCallbacks
  8349. *
  8350. * Summary:
  8351. * A collection of callbacks for creating a custom multipass storage
  8352. * object.
  8353. }
  8354. type
  8355. ICMMultiPassStorageCallbacks = record
  8356. {
  8357. * The version of the struct. Set to
  8358. * kICMMultiPassStorageCallbacksVersionOne.
  8359. }
  8360. version: UInt32;
  8361. {
  8362. * The callbacks' reference value.
  8363. }
  8364. storageRefCon: UnivPtr;
  8365. {
  8366. * The callback for storing values.
  8367. }
  8368. setDataAtTimeStampCallback: ICMMultiPassSetDataAtTimeStampCallback;
  8369. {
  8370. * The callback for finding time stamps.
  8371. }
  8372. getTimeStampCallback: ICMMultiPassGetTimeStampCallback;
  8373. {
  8374. * The callback for retrieving values.
  8375. }
  8376. copyDataAtTimeStampCallback: ICMMultiPassCopyDataAtTimeStampCallback;
  8377. {
  8378. * The callback for disposing the callback's state when done.
  8379. }
  8380. releaseCallback: ICMMultiPassReleaseCallback;
  8381. end;
  8382. const
  8383. kICMMultiPassStorageCallbacksVersionOne = 1;
  8384. {
  8385. * ICMMultiPassStorageCreateWithCallbacks()
  8386. *
  8387. * Summary:
  8388. * Assembles a multipass storage mechanism from callbacks.
  8389. *
  8390. * Availability:
  8391. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8392. * CarbonLib: not available
  8393. * Non-Carbon CFM: not available
  8394. }
  8395. function ICMMultiPassStorageCreateWithCallbacks( allocator: CFAllocatorRef { can be NULL }; var callbacks: ICMMultiPassStorageCallbacks; var multiPassStorageOut: ICMMultiPassStorageRef ): OSStatus; external name '_ICMMultiPassStorageCreateWithCallbacks';
  8396. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8397. {
  8398. * ICMMultiPassStorageRetain()
  8399. *
  8400. * Summary:
  8401. * Increments the retain count of a multipass storage object.
  8402. *
  8403. * Discussion:
  8404. * If you pass NULL to this function, nothing happens.
  8405. *
  8406. * Availability:
  8407. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8408. * CarbonLib: not available
  8409. * Non-Carbon CFM: not available
  8410. }
  8411. function ICMMultiPassStorageRetain( multiPassStorage: ICMMultiPassStorageRef ): ICMMultiPassStorageRef; external name '_ICMMultiPassStorageRetain';
  8412. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8413. {
  8414. * ICMMultiPassStorageRelease()
  8415. *
  8416. * Summary:
  8417. * Decrements the retain count of a multipass storage object. If it
  8418. * drops to zero, the object is disposed.
  8419. *
  8420. * Discussion:
  8421. * If you pass NULL to this function, nothing happens.
  8422. *
  8423. * Availability:
  8424. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8425. * CarbonLib: not available
  8426. * Non-Carbon CFM: not available
  8427. }
  8428. procedure ICMMultiPassStorageRelease( multiPassStorage: ICMMultiPassStorageRef ); external name '_ICMMultiPassStorageRelease';
  8429. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8430. {
  8431. * ICMMultiPassStorageGetTypeID()
  8432. *
  8433. * Summary:
  8434. * Returns the CFTypeID for multipass storage objects.
  8435. *
  8436. * Availability:
  8437. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8438. * CarbonLib: not available
  8439. * Non-Carbon CFM: not available
  8440. }
  8441. function ICMMultiPassStorageGetTypeID: CFTypeID; external name '_ICMMultiPassStorageGetTypeID';
  8442. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8443. { ICMCompressionFrameOptionsRef routines }
  8444. {
  8445. * ICMCompressionFrameOptionsCreate()
  8446. *
  8447. * Summary:
  8448. * Creates a frame compression options object.
  8449. *
  8450. * Availability:
  8451. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8452. * CarbonLib: not available
  8453. * Non-Carbon CFM: not available
  8454. }
  8455. function ICMCompressionFrameOptionsCreate( allocator: CFAllocatorRef { can be NULL }; session: ICMCompressionSessionRef; var options: ICMCompressionFrameOptionsRef ): OSStatus; external name '_ICMCompressionFrameOptionsCreate';
  8456. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8457. {
  8458. * ICMCompressionFrameOptionsCreateCopy()
  8459. *
  8460. * Summary:
  8461. * Copies a frame compression options object.
  8462. *
  8463. * Availability:
  8464. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8465. * CarbonLib: not available
  8466. * Non-Carbon CFM: not available
  8467. }
  8468. function ICMCompressionFrameOptionsCreateCopy( allocator: CFAllocatorRef { can be NULL }; originalOptions: ICMCompressionFrameOptionsRef; var copiedOptions: ICMCompressionFrameOptionsRef ): OSStatus; external name '_ICMCompressionFrameOptionsCreateCopy';
  8469. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8470. {
  8471. * ICMCompressionFrameOptionsRetain()
  8472. *
  8473. * Summary:
  8474. * Increments the retain count of a frame compression options object.
  8475. *
  8476. * Discussion:
  8477. * If you pass NULL to this function, nothing happens.
  8478. *
  8479. * Availability:
  8480. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8481. * CarbonLib: not available
  8482. * Non-Carbon CFM: not available
  8483. }
  8484. function ICMCompressionFrameOptionsRetain( options: ICMCompressionFrameOptionsRef ): ICMCompressionFrameOptionsRef; external name '_ICMCompressionFrameOptionsRetain';
  8485. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8486. {
  8487. * ICMCompressionFrameOptionsRelease()
  8488. *
  8489. * Summary:
  8490. * Decrements the retain count of a frame compression options
  8491. * object. If it drops to zero, the object is disposed.
  8492. *
  8493. * Discussion:
  8494. * If you pass NULL to this function, nothing happens.
  8495. *
  8496. * Availability:
  8497. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8498. * CarbonLib: not available
  8499. * Non-Carbon CFM: not available
  8500. }
  8501. procedure ICMCompressionFrameOptionsRelease( options: ICMCompressionFrameOptionsRef ); external name '_ICMCompressionFrameOptionsRelease';
  8502. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8503. {
  8504. * ICMCompressionFrameOptionsGetTypeID()
  8505. *
  8506. * Summary:
  8507. * Returns the CFTypeID for frame compression options objects.
  8508. *
  8509. * Availability:
  8510. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8511. * CarbonLib: not available
  8512. * Non-Carbon CFM: not available
  8513. }
  8514. function ICMCompressionFrameOptionsGetTypeID: CFTypeID; external name '_ICMCompressionFrameOptionsGetTypeID';
  8515. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8516. {
  8517. * ICMCompressionFrameOptionsGetPropertyInfo()
  8518. *
  8519. * Summary:
  8520. * Retrieves information about properties of a compression frame
  8521. * options object.
  8522. *
  8523. * Availability:
  8524. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8525. * CarbonLib: not available
  8526. * Non-Carbon CFM: not available
  8527. }
  8528. function ICMCompressionFrameOptionsGetPropertyInfo( options: ICMCompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; outPropType: ComponentValueTypePtr { can be NULL }; outPropValueSize: ByteCountPtr { can be NULL }; outPropertyFlags: UInt32Ptr { can be NULL } ): OSStatus; external name '_ICMCompressionFrameOptionsGetPropertyInfo';
  8529. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8530. {
  8531. * ICMCompressionFrameOptionsGetProperty()
  8532. *
  8533. * Summary:
  8534. * Retrieves the value of a specific property of a compression frame
  8535. * options object.
  8536. *
  8537. * Availability:
  8538. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8539. * CarbonLib: not available
  8540. * Non-Carbon CFM: not available
  8541. }
  8542. function ICMCompressionFrameOptionsGetProperty( options: ICMCompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; outPropValueAddress: ComponentValuePtr; outPropValueSizeUsed: ByteCountPtr { can be NULL } ): OSStatus; external name '_ICMCompressionFrameOptionsGetProperty';
  8543. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8544. {
  8545. * ICMCompressionFrameOptionsSetProperty()
  8546. *
  8547. * Summary:
  8548. * Sets the value of a specific property of a compression frame
  8549. * options object.
  8550. *
  8551. * Availability:
  8552. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8553. * CarbonLib: not available
  8554. * Non-Carbon CFM: not available
  8555. }
  8556. function ICMCompressionFrameOptionsSetProperty( options: ICMCompressionFrameOptionsRef; inPropClass: ComponentPropertyClass; inPropID: ComponentPropertyID; inPropValueSize: ByteCount; inPropValueAddress: ConstComponentValuePtr ): OSStatus; external name '_ICMCompressionFrameOptionsSetProperty';
  8557. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8558. {
  8559. * Summary:
  8560. * Properties of compression frame options objects.
  8561. }
  8562. const
  8563. {
  8564. * Class identifier for compression frame options object properties.
  8565. }
  8566. kQTPropertyClass_ICMCompressionFrameOptions = FourCharCode('icfo');
  8567. {
  8568. * Forces frames to be compressed as key frames.
  8569. * The compressor must obey the "force key frame" flag if set. By
  8570. * default this property is false.
  8571. }
  8572. kICMCompressionFrameOptionsPropertyID_ForceKeyFrame = FourCharCode('keyf'); { Boolean, Read/Write }
  8573. {
  8574. * Requests a frame be compressed as a particular frame type.
  8575. * The frame type setting may be ignored by the compressor if not
  8576. * appropriate.
  8577. * By default this is set to kICMFrameType_Unknown.
  8578. * Do not assume that kICMFrameType_I means a key frame; if you need
  8579. * a key frame, set the "force key frame" property.
  8580. }
  8581. kICMCompressionFrameOptionsPropertyID_FrameType = FourCharCode('frty'); { ICMFrameType, Read/Write }
  8582. {
  8583. * ICMCompressionFrameOptionsSetForceKeyFrame()
  8584. *
  8585. * Summary:
  8586. * Forces frames to be compressed as key frames.
  8587. *
  8588. * Discussion:
  8589. * The compressor must obey the "force key frame" flag if set. By
  8590. * default this is set false.
  8591. *
  8592. * Availability:
  8593. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8594. * CarbonLib: not available
  8595. * Non-Carbon CFM: not available
  8596. }
  8597. function ICMCompressionFrameOptionsSetForceKeyFrame( options: ICMCompressionFrameOptionsRef; forceKeyFrame: Boolean ): OSStatus; external name '_ICMCompressionFrameOptionsSetForceKeyFrame';
  8598. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8599. {
  8600. * ICMCompressionFrameOptionsGetForceKeyFrame()
  8601. *
  8602. * Summary:
  8603. * Retrieves the "force key frame" flag.
  8604. *
  8605. * Availability:
  8606. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8607. * CarbonLib: not available
  8608. * Non-Carbon CFM: not available
  8609. }
  8610. function ICMCompressionFrameOptionsGetForceKeyFrame( options: ICMCompressionFrameOptionsRef ): Boolean; external name '_ICMCompressionFrameOptionsGetForceKeyFrame';
  8611. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8612. {
  8613. * ICMCompressionFrameOptionsSetFrameType()
  8614. *
  8615. * Summary:
  8616. * Requests a frame be compressed as a particular frame type.
  8617. *
  8618. * Discussion:
  8619. * The frame type setting may be ignored by the compressor if not
  8620. * appropriate.
  8621. * By default this is set to kICMFrameType_Unknown.
  8622. * Do not assume that kICMFrameType_I means a key frame; if you need
  8623. * a key frame, set forceKeyFrame.
  8624. *
  8625. * Availability:
  8626. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8627. * CarbonLib: not available
  8628. * Non-Carbon CFM: not available
  8629. }
  8630. function ICMCompressionFrameOptionsSetFrameType( options: ICMCompressionFrameOptionsRef; frameType: ICMFrameType ): OSStatus; external name '_ICMCompressionFrameOptionsSetFrameType';
  8631. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8632. {
  8633. * ICMCompressionFrameOptionsGetFrameType()
  8634. *
  8635. * Summary:
  8636. * Retrieves the frame type setting.
  8637. *
  8638. * Availability:
  8639. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8640. * CarbonLib: not available
  8641. * Non-Carbon CFM: not available
  8642. }
  8643. function ICMCompressionFrameOptionsGetFrameType( options: ICMCompressionFrameOptionsRef ): ICMFrameType; external name '_ICMCompressionFrameOptionsGetFrameType';
  8644. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8645. { ICMEncodedFrameRef routines }
  8646. {
  8647. * ICMEncodedFrameRetain()
  8648. *
  8649. * Summary:
  8650. * Increments the retain count of an encoded frame object.
  8651. *
  8652. * Discussion:
  8653. * If you pass NULL to this function, nothing happens.
  8654. *
  8655. * Availability:
  8656. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8657. * CarbonLib: not available
  8658. * Non-Carbon CFM: not available
  8659. }
  8660. function ICMEncodedFrameRetain( frame: ICMEncodedFrameRef ): ICMEncodedFrameRef; external name '_ICMEncodedFrameRetain';
  8661. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8662. {
  8663. * ICMEncodedFrameRelease()
  8664. *
  8665. * Summary:
  8666. * Decrements the retain count of an encoded frame object. If it
  8667. * drops to zero, the object is disposed.
  8668. *
  8669. * Discussion:
  8670. * If you pass NULL to this function, nothing happens.
  8671. *
  8672. * Availability:
  8673. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8674. * CarbonLib: not available
  8675. * Non-Carbon CFM: not available
  8676. }
  8677. procedure ICMEncodedFrameRelease( frame: ICMEncodedFrameRef ); external name '_ICMEncodedFrameRelease';
  8678. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8679. {
  8680. * ICMEncodedFrameGetTypeID()
  8681. *
  8682. * Summary:
  8683. * Returns the CFTypeID for encoded frame objects.
  8684. *
  8685. * Availability:
  8686. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8687. * CarbonLib: not available
  8688. * Non-Carbon CFM: not available
  8689. }
  8690. function ICMEncodedFrameGetTypeID: CFTypeID; external name '_ICMEncodedFrameGetTypeID';
  8691. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8692. {
  8693. * ICMEncodedFrameGetDataPtr()
  8694. *
  8695. * Summary:
  8696. * Gets the data buffer.
  8697. *
  8698. * Availability:
  8699. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8700. * CarbonLib: not available
  8701. * Non-Carbon CFM: not available
  8702. }
  8703. function ICMEncodedFrameGetDataPtr( frame: ICMEncodedFrameRef ): UInt8Ptr; external name '_ICMEncodedFrameGetDataPtr';
  8704. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8705. {
  8706. * ICMEncodedFrameGetBufferSize()
  8707. *
  8708. * Summary:
  8709. * Gets the size of the data buffer.
  8710. *
  8711. * Discussion:
  8712. * This is the physical size of the buffer.
  8713. *
  8714. * Availability:
  8715. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8716. * CarbonLib: not available
  8717. * Non-Carbon CFM: not available
  8718. }
  8719. function ICMEncodedFrameGetBufferSize( frame: ICMEncodedFrameRef ): ByteCount; external name '_ICMEncodedFrameGetBufferSize';
  8720. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8721. {
  8722. * ICMEncodedFrameGetDataSize()
  8723. *
  8724. * Summary:
  8725. * Gets the data size of the compressed frame in the buffer.
  8726. *
  8727. * Discussion:
  8728. * This is the logical size of the frame data. It may be less than
  8729. * the physical size of the buffer.
  8730. *
  8731. * Availability:
  8732. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8733. * CarbonLib: not available
  8734. * Non-Carbon CFM: not available
  8735. }
  8736. function ICMEncodedFrameGetDataSize( frame: ICMEncodedFrameRef ): ByteCount; external name '_ICMEncodedFrameGetDataSize';
  8737. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8738. {
  8739. * ICMEncodedFrameSetDataSize()
  8740. *
  8741. * Summary:
  8742. * Sets the data size of the compressed frame in the buffer.
  8743. *
  8744. * Availability:
  8745. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8746. * CarbonLib: not available
  8747. * Non-Carbon CFM: not available
  8748. }
  8749. function ICMEncodedFrameSetDataSize( frame: ICMMutableEncodedFrameRef; dataSize: ByteCount ): OSStatus; external name '_ICMEncodedFrameSetDataSize';
  8750. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8751. {
  8752. * ICMEncodedFrameGetDecodeNumber()
  8753. *
  8754. * Summary:
  8755. * Retrieves the decode number.
  8756. *
  8757. * Discussion:
  8758. * The ICM automatically stamps ascending decode numbers on frames
  8759. * after the compressor emits them. The first decode number in a
  8760. * session is 1.
  8761. * Note: Compressors should not call this function.
  8762. *
  8763. * Availability:
  8764. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8765. * CarbonLib: not available
  8766. * Non-Carbon CFM: not available
  8767. }
  8768. function ICMEncodedFrameGetDecodeNumber( frame: ICMEncodedFrameRef ): UInt32; external name '_ICMEncodedFrameGetDecodeNumber';
  8769. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8770. {
  8771. * ICMEncodedFrameGetTimeScale()
  8772. *
  8773. * Summary:
  8774. * Retrieves the timescale.
  8775. *
  8776. * Discussion:
  8777. * This is always the same as the timescale of the compression
  8778. * session.
  8779. *
  8780. * Availability:
  8781. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8782. * CarbonLib: not available
  8783. * Non-Carbon CFM: not available
  8784. }
  8785. function ICMEncodedFrameGetTimeScale( frame: ICMEncodedFrameRef ): TimeScale; external name '_ICMEncodedFrameGetTimeScale';
  8786. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8787. {
  8788. * ICMEncodedFrameGetImageDescription()
  8789. *
  8790. * Summary:
  8791. * Retrieves the image description.
  8792. *
  8793. * Discussion:
  8794. * Returns the same image description handle as
  8795. * ICMCompressionSessionGetImageDescription.
  8796. * IMPORTANT: The caller should NOT dispose this handle.
  8797. *
  8798. * Availability:
  8799. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8800. * CarbonLib: not available
  8801. * Non-Carbon CFM: not available
  8802. }
  8803. function ICMEncodedFrameGetImageDescription( frame: ICMEncodedFrameRef; var imageDescOut: ImageDescriptionHandle ): OSStatus; external name '_ICMEncodedFrameGetImageDescription';
  8804. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8805. {
  8806. * ICMEncodedFrameGetValidTimeFlags()
  8807. *
  8808. * Summary:
  8809. * Retrieves flags indicating which of the time stamps and durations
  8810. * are valid.
  8811. *
  8812. * Availability:
  8813. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8814. * CarbonLib: not available
  8815. * Non-Carbon CFM: not available
  8816. }
  8817. function ICMEncodedFrameGetValidTimeFlags( frame: ICMEncodedFrameRef ): ICMValidTimeFlags; external name '_ICMEncodedFrameGetValidTimeFlags';
  8818. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8819. {
  8820. * ICMEncodedFrameGetDecodeTimeStamp()
  8821. *
  8822. * Summary:
  8823. * Retrieves the frame's decode time stamp.
  8824. *
  8825. * Availability:
  8826. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8827. * CarbonLib: not available
  8828. * Non-Carbon CFM: not available
  8829. }
  8830. function ICMEncodedFrameGetDecodeTimeStamp( frame: ICMEncodedFrameRef ): TimeValue64; external name '_ICMEncodedFrameGetDecodeTimeStamp';
  8831. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8832. {
  8833. * ICMEncodedFrameGetDisplayTimeStamp()
  8834. *
  8835. * Summary:
  8836. * Retrieves the frame's display time stamp.
  8837. *
  8838. * Availability:
  8839. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8840. * CarbonLib: not available
  8841. * Non-Carbon CFM: not available
  8842. }
  8843. function ICMEncodedFrameGetDisplayTimeStamp( frame: ICMEncodedFrameRef ): TimeValue64; external name '_ICMEncodedFrameGetDisplayTimeStamp';
  8844. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8845. {
  8846. * ICMEncodedFrameGetDisplayOffset()
  8847. *
  8848. * Summary:
  8849. * Retrieves the frame's display offset, which is the offset from
  8850. * decode time stamp to display time stamp.
  8851. *
  8852. * Availability:
  8853. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8854. * CarbonLib: not available
  8855. * Non-Carbon CFM: not available
  8856. }
  8857. function ICMEncodedFrameGetDisplayOffset( frame: ICMEncodedFrameRef ): TimeValue64; external name '_ICMEncodedFrameGetDisplayOffset';
  8858. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8859. {
  8860. * ICMEncodedFrameGetDecodeDuration()
  8861. *
  8862. * Summary:
  8863. * Retrieves the frame's decode duration.
  8864. *
  8865. * Availability:
  8866. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8867. * CarbonLib: not available
  8868. * Non-Carbon CFM: not available
  8869. }
  8870. function ICMEncodedFrameGetDecodeDuration( frame: ICMEncodedFrameRef ): TimeValue64; external name '_ICMEncodedFrameGetDecodeDuration';
  8871. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8872. {
  8873. * ICMEncodedFrameGetDisplayDuration()
  8874. *
  8875. * Summary:
  8876. * Retrieves the frame's display duration.
  8877. *
  8878. * Availability:
  8879. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8880. * CarbonLib: not available
  8881. * Non-Carbon CFM: not available
  8882. }
  8883. function ICMEncodedFrameGetDisplayDuration( frame: ICMEncodedFrameRef ): TimeValue64; external name '_ICMEncodedFrameGetDisplayDuration';
  8884. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8885. {
  8886. * ICMEncodedFrameSetValidTimeFlags()
  8887. *
  8888. * Summary:
  8889. * Sets flags that indicate which of the time stamps and durations
  8890. * are valid.
  8891. *
  8892. * Discussion:
  8893. * Note that setting the (decode/display) (timestamp/duration)
  8894. * automatically sets the corresponding valid time flags. For
  8895. * example, calling ICMEncodedFrameSetDecodeTimeStamp sets
  8896. * kICMValidTime_DisplayTimeStampIsValid. If both decode timestamp
  8897. * and display timestamp are valid,
  8898. * kICMValidTime_DisplayOffsetIsValid is automatically set.
  8899. *
  8900. * Availability:
  8901. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8902. * CarbonLib: not available
  8903. * Non-Carbon CFM: not available
  8904. }
  8905. function ICMEncodedFrameSetValidTimeFlags( frame: ICMMutableEncodedFrameRef; validTimeFlags: ICMValidTimeFlags ): OSStatus; external name '_ICMEncodedFrameSetValidTimeFlags';
  8906. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8907. {
  8908. * ICMEncodedFrameSetDecodeTimeStamp()
  8909. *
  8910. * Summary:
  8911. * Sets the decode time stamp.
  8912. *
  8913. * Discussion:
  8914. * This automatically sets the kICMValidTime_DecodeTimeStampIsValid
  8915. * flag. If the display timestamp is valid, it also sets the
  8916. * kICMValidTime_DisplayOffsetIsValid flag.
  8917. *
  8918. * Availability:
  8919. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8920. * CarbonLib: not available
  8921. * Non-Carbon CFM: not available
  8922. }
  8923. function ICMEncodedFrameSetDecodeTimeStamp( frame: ICMMutableEncodedFrameRef; decodeTimeStamp: TimeValue64 ): OSStatus; external name '_ICMEncodedFrameSetDecodeTimeStamp';
  8924. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8925. {
  8926. * ICMEncodedFrameSetDisplayTimeStamp()
  8927. *
  8928. * Summary:
  8929. * Sets the display time stamp.
  8930. *
  8931. * Discussion:
  8932. * This automatically sets the kICMValidTime_DisplayTimeStampIsValid
  8933. * flag. If the decode timestamp is valid, it also sets the
  8934. * kICMValidTime_DisplayOffsetIsValid flag.
  8935. *
  8936. * Availability:
  8937. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8938. * CarbonLib: not available
  8939. * Non-Carbon CFM: not available
  8940. }
  8941. function ICMEncodedFrameSetDisplayTimeStamp( frame: ICMMutableEncodedFrameRef; displayTimeStamp: TimeValue64 ): OSStatus; external name '_ICMEncodedFrameSetDisplayTimeStamp';
  8942. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8943. {
  8944. * ICMEncodedFrameSetDecodeDuration()
  8945. *
  8946. * Summary:
  8947. * Sets the decode duration.
  8948. *
  8949. * Discussion:
  8950. * This automatically sets the kICMValidTime_DecodeDurationIsValid
  8951. * flag.
  8952. *
  8953. * Availability:
  8954. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8955. * CarbonLib: not available
  8956. * Non-Carbon CFM: not available
  8957. }
  8958. function ICMEncodedFrameSetDecodeDuration( frame: ICMMutableEncodedFrameRef; decodeDuration: TimeValue64 ): OSStatus; external name '_ICMEncodedFrameSetDecodeDuration';
  8959. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8960. {
  8961. * ICMEncodedFrameSetDisplayDuration()
  8962. *
  8963. * Summary:
  8964. * Sets the display duration.
  8965. *
  8966. * Discussion:
  8967. * This automatically sets the kICMValidTime_DisplayDurationIsValid
  8968. * flag.
  8969. *
  8970. * Availability:
  8971. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8972. * CarbonLib: not available
  8973. * Non-Carbon CFM: not available
  8974. }
  8975. function ICMEncodedFrameSetDisplayDuration( frame: ICMMutableEncodedFrameRef; displayDuration: TimeValue64 ): OSStatus; external name '_ICMEncodedFrameSetDisplayDuration';
  8976. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8977. {
  8978. * ICMEncodedFrameGetMediaSampleFlags()
  8979. *
  8980. * Summary:
  8981. * Retrieves the media sample flags for an encoded frame.
  8982. *
  8983. * Availability:
  8984. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8985. * CarbonLib: not available
  8986. * Non-Carbon CFM: not available
  8987. }
  8988. function ICMEncodedFrameGetMediaSampleFlags( frame: ICMEncodedFrameRef ): MediaSampleFlags; external name '_ICMEncodedFrameGetMediaSampleFlags';
  8989. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  8990. {
  8991. * ICMEncodedFrameSetMediaSampleFlags()
  8992. *
  8993. * Summary:
  8994. * Sets the media sample flags for an encoded frame.
  8995. *
  8996. * Availability:
  8997. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  8998. * CarbonLib: not available
  8999. * Non-Carbon CFM: not available
  9000. }
  9001. function ICMEncodedFrameSetMediaSampleFlags( frame: ICMMutableEncodedFrameRef; mediaSampleFlags_: MediaSampleFlags ): OSStatus; external name '_ICMEncodedFrameSetMediaSampleFlags';
  9002. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9003. {
  9004. * ICMEncodedFrameGetFrameType()
  9005. *
  9006. * Summary:
  9007. * Retrieves the frame type for an encoded frame.
  9008. *
  9009. * Availability:
  9010. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9011. * CarbonLib: not available
  9012. * Non-Carbon CFM: not available
  9013. }
  9014. function ICMEncodedFrameGetFrameType( frame: ICMEncodedFrameRef ): ICMFrameType; external name '_ICMEncodedFrameGetFrameType';
  9015. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9016. {
  9017. * ICMEncodedFrameSetFrameType()
  9018. *
  9019. * Summary:
  9020. * Sets the frame type for an encoded frame.
  9021. *
  9022. * Availability:
  9023. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9024. * CarbonLib: not available
  9025. * Non-Carbon CFM: not available
  9026. }
  9027. function ICMEncodedFrameSetFrameType( frame: ICMMutableEncodedFrameRef; frameType: ICMFrameType ): OSStatus; external name '_ICMEncodedFrameSetFrameType';
  9028. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9029. {
  9030. * ICMEncodedFrameGetSimilarity()
  9031. *
  9032. * Summary:
  9033. * Retrieves the similarity for an encoded frame.
  9034. *
  9035. * Discussion:
  9036. * 1.0 means identical. 0.0 means not at all alike. By default,
  9037. * this is set to -1.0, which means unknown.
  9038. *
  9039. * Availability:
  9040. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9041. * CarbonLib: not available
  9042. * Non-Carbon CFM: not available
  9043. }
  9044. function ICMEncodedFrameGetSimilarity( frame: ICMEncodedFrameRef ): Float32; external name '_ICMEncodedFrameGetSimilarity';
  9045. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9046. {
  9047. * ICMEncodedFrameSetSimilarity()
  9048. *
  9049. * Summary:
  9050. * Sets the similarity for an encoded frame.
  9051. *
  9052. * Discussion:
  9053. * 1.0 means identical. 0.0 means not at all alike.
  9054. *
  9055. * Availability:
  9056. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9057. * CarbonLib: not available
  9058. * Non-Carbon CFM: not available
  9059. }
  9060. function ICMEncodedFrameSetSimilarity( frame: ICMMutableEncodedFrameRef; similarity: Float32 ): OSStatus; external name '_ICMEncodedFrameSetSimilarity';
  9061. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9062. {
  9063. * ICMEncodedFrameGetSourceFrameRefCon()
  9064. *
  9065. * Summary:
  9066. * Retrieves the source frame reference value.
  9067. *
  9068. * Discussion:
  9069. * This is copied from the sourceFrameRefCon parameter to
  9070. * ICMCompressionSessionEncodeFrame.
  9071. *
  9072. * Availability:
  9073. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9074. * CarbonLib: not available
  9075. * Non-Carbon CFM: not available
  9076. }
  9077. function ICMEncodedFrameGetSourceFrameRefCon( frame: ICMEncodedFrameRef ): UnivPtr; external name '_ICMEncodedFrameGetSourceFrameRefCon';
  9078. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9079. { ICMCompressorSession interface for compressor components }
  9080. {
  9081. * ICMCompressorSessionRef
  9082. *
  9083. * Summary:
  9084. * Represents the session between the ICM and an image compressor
  9085. * component.
  9086. *
  9087. * Discussion:
  9088. * (Do not confuse this with ICMCompressionSessionRef, which is the
  9089. * session between the client and the ICM.) Note: compressors do not
  9090. * need to make any retain or release calls on this token.
  9091. }
  9092. type
  9093. ICMCompressorSessionRef = ^SInt32; { an opaque type }
  9094. {
  9095. * ICMCompressorSourceFrameRef
  9096. *
  9097. * Summary:
  9098. * An opaque token that represents a frame that has been passed to
  9099. * ICMCompressionSessionEncodeFrame.
  9100. *
  9101. * Discussion:
  9102. * Such tokens are passed to the compressor component, which may
  9103. * retain a window of them in order to perform out-of-order encoding.
  9104. }
  9105. type
  9106. ICMCompressorSourceFrameRef = ^SInt32; { an opaque type }
  9107. ICMCompressorSourceFrameRefPtr = ^ICMCompressorSourceFrameRef;
  9108. {
  9109. * ICMCompressorSourceFrameRetain()
  9110. *
  9111. * Summary:
  9112. * Increments the retain count of a source frame object.
  9113. *
  9114. * Discussion:
  9115. * If you pass NULL to this function, nothing happens.
  9116. *
  9117. * Availability:
  9118. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9119. * CarbonLib: not available
  9120. * Non-Carbon CFM: not available
  9121. }
  9122. function ICMCompressorSourceFrameRetain( sourceFrame: ICMCompressorSourceFrameRef ): ICMCompressorSourceFrameRef; external name '_ICMCompressorSourceFrameRetain';
  9123. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9124. {
  9125. * ICMCompressorSourceFrameRelease()
  9126. *
  9127. * Summary:
  9128. * Decrements the retain count of a source frame object. If it
  9129. * drops to zero, the object is disposed.
  9130. *
  9131. * Discussion:
  9132. * If you pass NULL to this function, nothing happens.
  9133. *
  9134. * Availability:
  9135. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9136. * CarbonLib: not available
  9137. * Non-Carbon CFM: not available
  9138. }
  9139. procedure ICMCompressorSourceFrameRelease( sourceFrame: ICMCompressorSourceFrameRef ); external name '_ICMCompressorSourceFrameRelease';
  9140. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9141. {
  9142. * ICMCompressorSourceFrameGetTypeID()
  9143. *
  9144. * Summary:
  9145. * Returns the CFTypeID for source frame objects.
  9146. *
  9147. * Availability:
  9148. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9149. * CarbonLib: not available
  9150. * Non-Carbon CFM: not available
  9151. }
  9152. function ICMCompressorSourceFrameGetTypeID: CFTypeID; external name '_ICMCompressorSourceFrameGetTypeID';
  9153. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9154. {
  9155. * ICMCompressorSourceFrameGetPixelBuffer()
  9156. *
  9157. * Summary:
  9158. * Retrieves a source frame's pixel buffer.
  9159. *
  9160. * Availability:
  9161. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9162. * CarbonLib: not available
  9163. * Non-Carbon CFM: not available
  9164. }
  9165. function ICMCompressorSourceFrameGetPixelBuffer( sourceFrame: ICMCompressorSourceFrameRef ): CVPixelBufferRef; external name '_ICMCompressorSourceFrameGetPixelBuffer';
  9166. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9167. {
  9168. * ICMCompressorSourceFrameGetDisplayNumber()
  9169. *
  9170. * Summary:
  9171. * Retrieves a source frame's display number.
  9172. *
  9173. * Discussion:
  9174. * The ICM tags source frames with display numbers in the order they
  9175. * are passed to ICMCompressionSessionEncodeFrame; the first display
  9176. * number is 1. Compressors may compare these numbers to work out
  9177. * whether prediction is forward or backward even when display times
  9178. * are not provided.
  9179. *
  9180. * Availability:
  9181. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9182. * CarbonLib: not available
  9183. * Non-Carbon CFM: not available
  9184. }
  9185. function ICMCompressorSourceFrameGetDisplayNumber( sourceFrame: ICMCompressorSourceFrameRef ): SIGNEDLONG; external name '_ICMCompressorSourceFrameGetDisplayNumber';
  9186. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9187. {
  9188. * ICMCompressorSourceFrameGetDisplayTimeStampAndDuration()
  9189. *
  9190. * Summary:
  9191. * Retrieves the display time stamp and duration of a source frame.
  9192. *
  9193. * Availability:
  9194. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9195. * CarbonLib: not available
  9196. * Non-Carbon CFM: not available
  9197. }
  9198. function ICMCompressorSourceFrameGetDisplayTimeStampAndDuration( sourceFrame: ICMCompressorSourceFrameRef; displayTimeStampOut: TimeValue64Ptr { can be NULL }; displayDurationOut: TimeValue64Ptr { can be NULL }; timeScaleOut: TimeScalePtr { can be NULL }; validTimeFlagsOut: ICMValidTimeFlagsPtr { can be NULL } ): OSStatus; external name '_ICMCompressorSourceFrameGetDisplayTimeStampAndDuration';
  9199. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9200. {
  9201. * ICMCompressorSourceFrameGetFrameOptions()
  9202. *
  9203. * Summary:
  9204. * Retrieves the frame compression options for a source frame.
  9205. *
  9206. * Availability:
  9207. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9208. * CarbonLib: not available
  9209. * Non-Carbon CFM: not available
  9210. }
  9211. function ICMCompressorSourceFrameGetFrameOptions( sourceFrame: ICMCompressorSourceFrameRef ): ICMCompressionFrameOptionsRef; external name '_ICMCompressorSourceFrameGetFrameOptions';
  9212. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9213. {
  9214. * ICMCompressorSourceFrameDetachPixelBuffer()
  9215. *
  9216. * Summary:
  9217. * Disconnects the pixel buffer from the source frame and allows it
  9218. * to be released.
  9219. *
  9220. * Discussion:
  9221. * Compressor components often need to hold onto
  9222. * ICMCompressorSourceFrameRefs for some time after they are done
  9223. * with the pixel buffers. In order to allow pixel buffer memory to
  9224. * be released earlier, they may call
  9225. * ICMCompressorSourceFrameDetachPixelBuffer to declare that they
  9226. * have no further need for the source frame's pixel buffer. After
  9227. * calling this, ICMCompressorSourceFrameGetPixelBuffer will return
  9228. * NULL.
  9229. *
  9230. * Availability:
  9231. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9232. * CarbonLib: not available
  9233. * Non-Carbon CFM: not available
  9234. }
  9235. function ICMCompressorSourceFrameDetachPixelBuffer( sourceFrame: ICMCompressorSourceFrameRef ): OSStatus; external name '_ICMCompressorSourceFrameDetachPixelBuffer';
  9236. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9237. {
  9238. * ICMCompressorSessionDropFrame()
  9239. *
  9240. * Summary:
  9241. * Called by a compressor to indicate that sourceFrame has been
  9242. * dropped and will not contribute to any encoded frames.
  9243. *
  9244. * Discussion:
  9245. * Calling this function does not automatically release the source
  9246. * frame; if the compressor called ICMCompressorSourceFrameRetain it
  9247. * should still call ICMCompressorSourceFrameRelease.
  9248. *
  9249. * Availability:
  9250. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9251. * CarbonLib: not available
  9252. * Non-Carbon CFM: not available
  9253. }
  9254. function ICMCompressorSessionDropFrame( session: ICMCompressorSessionRef; sourceFrame: ICMCompressorSourceFrameRef ): OSStatus; external name '_ICMCompressorSessionDropFrame';
  9255. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9256. {
  9257. * ICMCompressorSessionEmitEncodedFrame()
  9258. *
  9259. * Summary:
  9260. * Called by a compressor to output an encoded frame corresponding
  9261. * to one (or more) source frames.
  9262. *
  9263. * Discussion:
  9264. * (Encoded frames may only correspond to more than one source frame
  9265. * if allowFrameTimeChanges is set in the
  9266. * compressionSessionOptions.)
  9267. * After calling this, the compressor should release the encoded
  9268. * frame by calling ICMEncodedFrameRelease.
  9269. * Calling this function does not automatically release the source
  9270. * frames; if the compressor called ICMCompressorSourceFrameRetain
  9271. * it should still call ICMCompressorSourceFrameRelease.
  9272. *
  9273. * Availability:
  9274. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9275. * CarbonLib: not available
  9276. * Non-Carbon CFM: not available
  9277. }
  9278. function ICMCompressorSessionEmitEncodedFrame( session: ICMCompressorSessionRef; encodedFrame: ICMMutableEncodedFrameRef; numberOfSourceFrames: SIGNEDLONG; sourceFrames: {variable-size-array} ICMCompressorSourceFrameRefPtr ): OSStatus; external name '_ICMCompressorSessionEmitEncodedFrame';
  9279. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9280. {
  9281. * ICMEncodedFrameCreateMutable()
  9282. *
  9283. * Summary:
  9284. * Called by a compressor to create an encoded-frame token
  9285. * corresponding to a given source frame.
  9286. *
  9287. * Discussion:
  9288. * The encoded frame will initially have zero mediaSampleFlags; if
  9289. * the frame is not a key frame, the compressor must call
  9290. * ICMEncodedFrameSetMediaSampleFlags to set mediaSampleNotSync. If
  9291. * the frame is droppable, the compressor should set
  9292. * mediaSampleDroppable. If the frame is a partial key frame, the
  9293. * compressor should set mediaSamplePartialSync.
  9294. * The encoded frame will initially have undefined decodeTimeStamp
  9295. * and decodeDuration. The compressor may set these directly by
  9296. * calling ICMEncodedFrameSetDecodeTimeStamp and/or
  9297. * ICMEncodedFrameSetDecodeDuration. If these are not set by the
  9298. * compressor, the ICM will attempt to derive them.
  9299. *
  9300. * Availability:
  9301. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9302. * CarbonLib: not available
  9303. * Non-Carbon CFM: not available
  9304. }
  9305. function ICMEncodedFrameCreateMutable( session: ICMCompressorSessionRef; sourceFrame: ICMCompressorSourceFrameRef; bufferSize: ByteCount; var frameOut: ICMMutableEncodedFrameRef ): OSStatus; external name '_ICMEncodedFrameCreateMutable';
  9306. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9307. { Multi-pass storage access routines for compressor components }
  9308. {
  9309. * ICMMultiPassStorageSetDataAtTimeStamp()
  9310. *
  9311. * Summary:
  9312. * Called by a multipass-capable compressor to store data at a given
  9313. * timestamp.
  9314. *
  9315. * Discussion:
  9316. * The new data replaces any previous data held at that timestamp.
  9317. * If data is NULL, the data for that timestamp is deleted. The
  9318. * format of the data is private to the compressor.
  9319. *
  9320. * Parameters:
  9321. *
  9322. * multiPassStorage:
  9323. * The multipass storage object.
  9324. *
  9325. * timeStamp:
  9326. * The time stamp at which the value should be stored.
  9327. *
  9328. * index:
  9329. * An index by which multiple values may be stored at a time
  9330. * stamp. The meaning of individual indexes is private to the
  9331. * compressor.
  9332. *
  9333. * data:
  9334. * The data to be stored, or NULL to delete the value.
  9335. *
  9336. * Availability:
  9337. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9338. * CarbonLib: not available
  9339. * Non-Carbon CFM: not available
  9340. }
  9341. function ICMMultiPassStorageSetDataAtTimeStamp( multiPassStorage: ICMMultiPassStorageRef; timeStamp: TimeValue64; index: SIGNEDLONG; data: CFDataRef ): OSStatus; external name '_ICMMultiPassStorageSetDataAtTimeStamp';
  9342. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9343. {
  9344. * ICMMultiPassStorageGetTimeStamp()
  9345. *
  9346. * Summary:
  9347. * Called by a multipass-capable compressor to retrieve a time stamp
  9348. * for which a value is stored.
  9349. *
  9350. * Parameters:
  9351. *
  9352. * multiPassStorage:
  9353. * The multipass storage object.
  9354. *
  9355. * fromTimeStamp:
  9356. * The initial time stamp. Ignored for some values of step.
  9357. *
  9358. * step:
  9359. * Indicates the kind of time stamp search to perform.
  9360. *
  9361. * timeStampOut:
  9362. * Points to a TimeValue64 to receive the found time stamp. It
  9363. * will be set to -1 if no time stamp is found.
  9364. *
  9365. * Availability:
  9366. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9367. * CarbonLib: not available
  9368. * Non-Carbon CFM: not available
  9369. }
  9370. function ICMMultiPassStorageGetTimeStamp( multiPassStorage: ICMMultiPassStorageRef; fromTimeStamp: TimeValue64; step: ICMMultiPassStorageStep; var timeStampOut: TimeValue64 ): OSStatus; external name '_ICMMultiPassStorageGetTimeStamp';
  9371. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9372. {
  9373. * ICMMultiPassStorageCopyDataAtTimeStamp()
  9374. *
  9375. * Summary:
  9376. * Called by a multipass-capable compressor to retrieve data at a
  9377. * given timestamp.
  9378. *
  9379. * Parameters:
  9380. *
  9381. * multiPassStorage:
  9382. * The multipass storage object.
  9383. *
  9384. * timeStamp:
  9385. * The time stamp at which the value should be retrieved.
  9386. *
  9387. * index:
  9388. * An index by which multiple values may be stored at a time
  9389. * stamp. The meaning of individual indexes is private to the
  9390. * compressor.
  9391. *
  9392. * dataOut:
  9393. * Points to a CFMutableDataRef to receive the value. It will be
  9394. * set to a newly-created CFMutableData containing the value for
  9395. * the given time stamp and index, or set to NULL if no value is
  9396. * at that time stamp and index. It is the caller's responsibility
  9397. * to release the CFMutableData.
  9398. *
  9399. * Availability:
  9400. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9401. * CarbonLib: not available
  9402. * Non-Carbon CFM: not available
  9403. }
  9404. function ICMMultiPassStorageCopyDataAtTimeStamp( multiPassStorage: ICMMultiPassStorageRef; timeStamp: TimeValue64; index: SIGNEDLONG; var dataOut: CFMutableDataRef ): OSStatus; external name '_ICMMultiPassStorageCopyDataAtTimeStamp';
  9405. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9406. {
  9407. * kQTVisualContextTypeKey
  9408. *
  9409. * Summary:
  9410. * Read-only CFStringRef: Type of the visual context.
  9411. *
  9412. * Availability:
  9413. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9414. * CarbonLib: not available
  9415. * Non-Carbon CFM: not available
  9416. }
  9417. var kQTVisualContextTypeKey: CFStringRef; external name '_kQTVisualContextTypeKey'; (* attribute const *)
  9418. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9419. {
  9420. * kQTVisualContextType_PixelBuffer
  9421. *
  9422. * Summary:
  9423. * Value for kQTVisualContextTypeKey for pixel buffer visual
  9424. * contexts.
  9425. *
  9426. * Availability:
  9427. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9428. * CarbonLib: not available
  9429. * Non-Carbon CFM: not available
  9430. }
  9431. var kQTVisualContextType_PixelBuffer: CFStringRef; external name '_kQTVisualContextType_PixelBuffer'; (* attribute const *)
  9432. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9433. {
  9434. * kQTVisualContextType_OpenGLTexture
  9435. *
  9436. * Summary:
  9437. * Value for kQTVisualContextTypeKey for OpenGL texture visual
  9438. * contexts.
  9439. *
  9440. * Availability:
  9441. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9442. * CarbonLib: not available
  9443. * Non-Carbon CFM: not available
  9444. }
  9445. var kQTVisualContextType_OpenGLTexture: CFStringRef; external name '_kQTVisualContextType_OpenGLTexture'; (* attribute const *)
  9446. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9447. {
  9448. * kQTVisualContextWorkingColorSpaceKey
  9449. *
  9450. * Summary:
  9451. * CGColorSpaceRef: Color space in which QuickTime will perform
  9452. * image processing. If this attribute is not set, images will be
  9453. * processed in the output color space.
  9454. *
  9455. * Availability:
  9456. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9457. * CarbonLib: not available
  9458. * Non-Carbon CFM: not available
  9459. }
  9460. var kQTVisualContextWorkingColorSpaceKey: CFStringRef; external name '_kQTVisualContextWorkingColorSpaceKey'; (* attribute const *)
  9461. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9462. {
  9463. * kQTVisualContextOutputColorSpaceKey
  9464. *
  9465. * Summary:
  9466. * CGColorSpaceRef: Color space of images produced by this visual
  9467. * context. If this attribute is not set, images may be in any color
  9468. * space.
  9469. *
  9470. * Availability:
  9471. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9472. * CarbonLib: not available
  9473. * Non-Carbon CFM: not available
  9474. }
  9475. var kQTVisualContextOutputColorSpaceKey: CFStringRef; external name '_kQTVisualContextOutputColorSpaceKey'; (* attribute const *)
  9476. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9477. {
  9478. * kQTVisualContextExpectedReadAheadKey
  9479. *
  9480. * Summary:
  9481. * CFNumberRef: Number of seconds ahead of real-time that the client
  9482. * expects to pull images out of the visual context. Applications
  9483. * using the CoreVideo display link should set this attribute
  9484. * according to value returned from
  9485. * CVDisplayLinkGetOutputVideoLatency().
  9486. *
  9487. * Availability:
  9488. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9489. * CarbonLib: not available
  9490. * Non-Carbon CFM: not available
  9491. }
  9492. var kQTVisualContextExpectedReadAheadKey: CFStringRef; external name '_kQTVisualContextExpectedReadAheadKey'; (* attribute const *)
  9493. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9494. {
  9495. * kQTVisualContextPixelBufferAttributesKey
  9496. *
  9497. * Summary:
  9498. * CFDictionaryRef: Dictionary containing pixel buffer attributes as
  9499. * described for the CoreVideo pixel buffer pool.
  9500. *
  9501. * Availability:
  9502. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9503. * CarbonLib: not available
  9504. * Non-Carbon CFM: not available
  9505. }
  9506. var kQTVisualContextPixelBufferAttributesKey: CFStringRef; external name '_kQTVisualContextPixelBufferAttributesKey'; (* attribute const *)
  9507. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9508. {
  9509. * kQTVisualContextTargetDimensionsKey
  9510. *
  9511. * Summary:
  9512. * CFDictionaryRef: Dictionary containing
  9513. * kQTVisualContextTargetDimensions_WidthKey and
  9514. * kQTVisualContextTargetDimensions_HeightKey. This is only a hint
  9515. * to optimize certain media types, such as text, that can render at
  9516. * any resolution. If this attribute is not set, the movie will
  9517. * render at its native resolution.
  9518. *
  9519. * Availability:
  9520. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9521. * CarbonLib: not available
  9522. * Non-Carbon CFM: not available
  9523. }
  9524. var kQTVisualContextTargetDimensionsKey: CFStringRef; external name '_kQTVisualContextTargetDimensionsKey'; (* attribute const *)
  9525. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9526. {
  9527. * kQTVisualContextTargetDimensions_WidthKey
  9528. *
  9529. * Summary:
  9530. * CFNumberRef: Width, in pixels, of the rendering target.
  9531. *
  9532. * Availability:
  9533. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9534. * CarbonLib: not available
  9535. * Non-Carbon CFM: not available
  9536. }
  9537. var kQTVisualContextTargetDimensions_WidthKey: CFStringRef; external name '_kQTVisualContextTargetDimensions_WidthKey'; (* attribute const *)
  9538. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9539. {
  9540. * kQTVisualContextTargetDimensions_HeightKey
  9541. *
  9542. * Summary:
  9543. * CFNumberRef: Height, in pixels, of the rendering target.
  9544. *
  9545. * Availability:
  9546. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9547. * CarbonLib: not available
  9548. * Non-Carbon CFM: not available
  9549. }
  9550. var kQTVisualContextTargetDimensions_HeightKey: CFStringRef; external name '_kQTVisualContextTargetDimensions_HeightKey'; (* attribute const *)
  9551. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9552. {
  9553. * QTVisualContextRetain()
  9554. *
  9555. * Summary:
  9556. * Increments the visual context's reference count.
  9557. *
  9558. * Discussion:
  9559. * The same visual context is returned for convenience. If
  9560. * visualContext is NULL, nothing happens.
  9561. *
  9562. * Parameters:
  9563. *
  9564. * visualContext:
  9565. * [in] The visual context to retain.
  9566. *
  9567. * Availability:
  9568. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9569. * CarbonLib: not available
  9570. * Non-Carbon CFM: not available
  9571. }
  9572. function QTVisualContextRetain( visualContext: QTVisualContextRef ): QTVisualContextRef; external name '_QTVisualContextRetain';
  9573. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9574. {
  9575. * QTVisualContextRelease()
  9576. *
  9577. * Summary:
  9578. * Decrements the visual context's reference count.
  9579. *
  9580. * Discussion:
  9581. * If the retain count decreases to zero, the visual context is
  9582. * disposed. If visualContext is NULL, nothing happens.
  9583. *
  9584. * Parameters:
  9585. *
  9586. * visualContext:
  9587. * [in] The visual context to release.
  9588. *
  9589. * Availability:
  9590. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9591. * CarbonLib: not available
  9592. * Non-Carbon CFM: not available
  9593. }
  9594. procedure QTVisualContextRelease( visualContext: QTVisualContextRef ); external name '_QTVisualContextRelease';
  9595. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9596. {
  9597. * QTVisualContextGetTypeID()
  9598. *
  9599. * Summary:
  9600. * Returns the CFTypeID for QTVisualContextRef.
  9601. *
  9602. * Discussion:
  9603. * You could use this to test whether a CFTypeRef that extracted
  9604. * from a CF container such as a CFArray was a QTVisualContextRef.
  9605. * All visual contexts have the same CFTypeID. If you need to
  9606. * distinguish between different types of visual contexts (eg.
  9607. * PixelBuffer vs. OpenGLTexture), query for kQTVisualContextTypeKey
  9608. * with QTVisualContextGetAttribute().
  9609. *
  9610. * Availability:
  9611. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9612. * CarbonLib: not available
  9613. * Non-Carbon CFM: not available
  9614. }
  9615. function QTVisualContextGetTypeID: CFTypeID; external name '_QTVisualContextGetTypeID';
  9616. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9617. {
  9618. * QTVisualContextSetAttribute()
  9619. *
  9620. * Summary:
  9621. * Sets a visual context attribute.
  9622. *
  9623. * Parameters:
  9624. *
  9625. * visualContext:
  9626. * [in] The visual context.
  9627. *
  9628. * attributeKey:
  9629. * [in] Identifier of attribute to set.
  9630. *
  9631. * attributeValue:
  9632. * [in] Value of attribute to set, or NULL to remove a value.
  9633. *
  9634. * Availability:
  9635. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9636. * CarbonLib: not available
  9637. * Non-Carbon CFM: not available
  9638. }
  9639. function QTVisualContextSetAttribute( visualContext: QTVisualContextRef; attributeKey: CFStringRef; attributeValue: CFTypeRef { can be NULL } ): OSStatus; external name '_QTVisualContextSetAttribute';
  9640. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9641. {
  9642. * QTVisualContextGetAttribute()
  9643. *
  9644. * Summary:
  9645. * Gets a visual context attribute.
  9646. *
  9647. * Parameters:
  9648. *
  9649. * visualContext:
  9650. * [in] The visual context.
  9651. *
  9652. * attributeKey:
  9653. * [in] Identifier of attribute to get.
  9654. *
  9655. * attributeValueOut:
  9656. * [out] Pointer to variable that will receive the attribute
  9657. * value, or NULL if the attribute is not set.
  9658. *
  9659. * Availability:
  9660. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9661. * CarbonLib: not available
  9662. * Non-Carbon CFM: not available
  9663. }
  9664. function QTVisualContextGetAttribute( visualContext: QTVisualContextRef; attributeKey: CFStringRef; var attributeValueOut: CFTypeRef ): OSStatus; external name '_QTVisualContextGetAttribute';
  9665. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9666. {
  9667. * QTVisualContextImageAvailableCallback
  9668. *
  9669. * Summary:
  9670. * User-defined callback function to recieve notifications when a
  9671. * new image becomes available.
  9672. *
  9673. * Discussion:
  9674. * Due to unpredictible activity, such as user seeks or the arrival
  9675. * of streaming video packets from a network, new images may become
  9676. * available for times supposedly occupied by previous images.
  9677. * Applications using the CoreVideo display link to drive rendering
  9678. * probably do not need to install a callback of this type since
  9679. * they will already be checking for new images at a sufficient rate.
  9680. *
  9681. * Parameters:
  9682. *
  9683. * visualContext:
  9684. * [in] The visual context invoking the callback.
  9685. *
  9686. * timeStamp:
  9687. * [in] Time for which a new image has become available.
  9688. *
  9689. * refCon:
  9690. * [in] User-defined value passed to
  9691. * QTVisualContextSetImageAvailableCallback.
  9692. }
  9693. type
  9694. QTVisualContextImageAvailableCallback = procedure( visualContext: QTVisualContextRef; const (*var*) timeStamp: CVTimeStamp; refCon: UnivPtr );
  9695. {
  9696. * QTVisualContextSetImageAvailableCallback()
  9697. *
  9698. * Summary:
  9699. * Installs user-defined callback to be notified when new images
  9700. * become available.
  9701. *
  9702. * Discussion:
  9703. * This routine installs the user defined
  9704. * QTVisualContextImageAvailableCallback callback. There can only be
  9705. * one callback associated with a QTVisualContext at a given time.
  9706. *
  9707. * Parameters:
  9708. *
  9709. * visualContext:
  9710. * [in] The visual context.
  9711. *
  9712. * imageAvailableCallback:
  9713. * [in] User-defined callback function to recieve notifications.
  9714. * Pass NULL to remove any existing callback.
  9715. *
  9716. * refCon:
  9717. * [in] User-defined value to pass to
  9718. * QTVisualContextImageAvailableCallback.
  9719. *
  9720. * Availability:
  9721. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9722. * CarbonLib: not available
  9723. * Non-Carbon CFM: not available
  9724. }
  9725. function QTVisualContextSetImageAvailableCallback( visualContext: QTVisualContextRef; imageAvailableCallback: QTVisualContextImageAvailableCallback { can be NULL }; refCon: UnivPtr { can be NULL } ): OSStatus; external name '_QTVisualContextSetImageAvailableCallback';
  9726. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9727. {
  9728. * QTVisualContextIsNewImageAvailable()
  9729. *
  9730. * Summary:
  9731. * Queries whether a new image is available for a given time.
  9732. *
  9733. * Discussion:
  9734. * This function returns true if there is a image available for the
  9735. * specified time that is different from the last image retrieved
  9736. * from QTVisualContextCopyImageForTime. See
  9737. * QTVisualContextCopyImageForTime for restrictions on time-stamps.
  9738. *
  9739. * Parameters:
  9740. *
  9741. * visualContext:
  9742. * [in] The visual context.
  9743. *
  9744. * timeStamp:
  9745. * [in] Time in question. Pass NULL to request the image at the
  9746. * current time.
  9747. *
  9748. * Availability:
  9749. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9750. * CarbonLib: not available
  9751. * Non-Carbon CFM: not available
  9752. }
  9753. function QTVisualContextIsNewImageAvailable( visualContext: QTVisualContextRef; {const} timeStamp: CVTimeStampPtr { can be NULL } ): Boolean; external name '_QTVisualContextIsNewImageAvailable';
  9754. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9755. {
  9756. * QTVisualContextCopyImageForTime()
  9757. *
  9758. * Summary:
  9759. * Retrieves an image buffer from the visual context, indexed by the
  9760. * provided timestamp.
  9761. *
  9762. * Discussion:
  9763. * You should not request image buffers further ahead of the current
  9764. * time than the read-ahead time specified with the
  9765. * kQTVisualContextExpectedReadAheadKey attribute. You may skip
  9766. * images by passing later times, but you may not pass an earlier
  9767. * time than passed to a previous call to this function.
  9768. *
  9769. * Parameters:
  9770. *
  9771. * visualContext:
  9772. * [in] The visual context.
  9773. *
  9774. * allocator:
  9775. * [in] Allocator used to create new CVImageBufferRef.
  9776. *
  9777. * timeStamp:
  9778. * [in] Time in question. Pass NULL to request the image at the
  9779. * current time.
  9780. *
  9781. * newImage:
  9782. * [out] Points to variable to receive new image. If there is no
  9783. * video at the requested time, this variable will be set to NULL.
  9784. *
  9785. * Availability:
  9786. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9787. * CarbonLib: not available
  9788. * Non-Carbon CFM: not available
  9789. }
  9790. function QTVisualContextCopyImageForTime( visualContext: QTVisualContextRef; allocator: CFAllocatorRef { can be NULL }; {const} timeStamp: CVTimeStampPtr { can be NULL }; var newImage: CVImageBufferRef ): OSStatus; external name '_QTVisualContextCopyImageForTime';
  9791. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9792. {
  9793. * QTVisualContextTask()
  9794. *
  9795. * Summary:
  9796. * Causes visual context to release internally held resources for
  9797. * later re-use.
  9798. *
  9799. * Discussion:
  9800. * For optimal resource management, this function should be called
  9801. * in every rendering pass, after old images have been released, new
  9802. * images have been used and all rendering has been flushed to the
  9803. * screen. This call is not mandatory.
  9804. *
  9805. * Parameters:
  9806. *
  9807. * visualContext:
  9808. * [in] The visual context.
  9809. *
  9810. * Availability:
  9811. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9812. * CarbonLib: not available
  9813. * Non-Carbon CFM: not available
  9814. }
  9815. procedure QTVisualContextTask( visualContext: QTVisualContextRef ); external name '_QTVisualContextTask';
  9816. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9817. {
  9818. * QTOpenGLTextureContextCreate()
  9819. *
  9820. * Summary:
  9821. * Creates a new OpenGL texture context for the given OpenGL context
  9822. * and pixel format.
  9823. *
  9824. * Discussion:
  9825. * This function will fail if the graphics hardware is insufficient.
  9826. *
  9827. * Parameters:
  9828. *
  9829. * allocator:
  9830. * [in] Allocator used to create the texture context.
  9831. *
  9832. * cglContext:
  9833. * [in] OpenGL context used to create textures.
  9834. *
  9835. * cglPixelFormat:
  9836. * [in] OpenGL pixel format used to create the OpenGL context.
  9837. *
  9838. * attributes:
  9839. * [in] Dictionary of attributes.
  9840. *
  9841. * newTextureContext:
  9842. * [out] Points to a variable to recieve the new OpenGL texture
  9843. * context.
  9844. *
  9845. * Availability:
  9846. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9847. * CarbonLib: not available
  9848. * Non-Carbon CFM: not available
  9849. }
  9850. function QTOpenGLTextureContextCreate( allocator: CFAllocatorRef { can be NULL }; cglContext: CGLContextObj; cglPixelFormat: CGLPixelFormatObj; attributes: CFDictionaryRef { can be NULL }; var newTextureContext: QTVisualContextRef ): OSStatus; external name '_QTOpenGLTextureContextCreate';
  9851. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9852. {
  9853. * QTPixelBufferContextCreate()
  9854. *
  9855. * Summary:
  9856. * Creates a new pixel buffer context with the given attributes.
  9857. *
  9858. * Discussion:
  9859. * This function will fail if the graphics hardware is insufficient.
  9860. *
  9861. * Parameters:
  9862. *
  9863. * allocator:
  9864. * [in] Allocator used to create the pixel buffer context.
  9865. *
  9866. * attributes:
  9867. * [in] Dictionary of attributes.
  9868. *
  9869. * newPixelBufferContext:
  9870. * [out] Points to a variable to recieve the new pixel buffer
  9871. * context.
  9872. *
  9873. * Availability:
  9874. * Mac OS X: in version 10.4 (or QuickTime 7.0) and later in QuickTime.framework
  9875. * CarbonLib: not available
  9876. * Non-Carbon CFM: not available
  9877. }
  9878. function QTPixelBufferContextCreate( allocator: CFAllocatorRef { can be NULL }; attributes: CFDictionaryRef { can be NULL }; var newPixelBufferContext: QTVisualContextRef ): OSStatus; external name '_QTPixelBufferContextCreate';
  9879. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  9880. {$endc} {not TARGET_CPU_64}
  9881. {$endc} {TARGET_OS_MAC}
  9882. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  9883. end.
  9884. {$endc} {not MACOSALLINCLUDE}