home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-05-02 | 94.1 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: QT 2.0 Toolbox Changes
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Apr 25 12:42:34 1994, modified Sun May 1 20:00:15 1994, creator 'HLX2', type 'ONLN', 93896 bytes "QT 2.0 Toolbox Changes" , at 0x16f48 2197 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 51 54 20 32 2e 30 | 20 54 6f 6f 6c 62 6f 78 |..QT 2.0| Toolbox|
|00000010| 20 43 68 61 6e 67 65 73 | 00 00 00 00 00 00 00 00 | Changes|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 01 6e c8 00 | 00 08 95 a9 e1 a3 7a a9 |.....n..|......z.|
|00000060| e9 f3 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a6 1a 00 00 |........|........|
|00000080| 51 75 69 63 6b 54 69 6d | 65 20 32 2e 30 0d 49 6e |QuickTim|e 2.0.In|
|00000090| 74 65 72 66 61 63 65 20 | 73 74 75 66 66 0d 54 68 |terface |stuff.Th|
|000000a0| 69 73 20 64 6f 63 75 6d | 65 6e 74 20 64 69 73 63 |is docum|ent disc|
|000000b0| 75 73 73 65 73 20 6d 6f | 73 74 20 6f 66 20 74 68 |usses mo|st of th|
|000000c0| 65 20 69 6e 74 65 72 66 | 61 63 65 20 61 64 64 69 |e interf|ace addi|
|000000d0| 74 69 6f 6e 73 20 61 6e | 64 20 63 68 61 6e 67 65 |tions an|d change|
|000000e0| 73 20 73 69 6e 63 65 20 | 51 75 69 63 6b 54 69 6d |s since |QuickTim|
|000000f0| 65 20 31 2e 36 2e 20 44 | 65 74 61 69 6c 73 20 6f |e 1.6. D|etails o|
|00000100| 6e 20 44 61 74 61 20 48 | 61 6e 64 6c 65 72 73 20 |n Data H|andlers |
|00000110| 61 6e 64 20 44 65 63 6f | 6d 70 72 65 73 73 6f 72 |and Deco|mpressor|
|00000120| 73 20 61 72 65 20 69 6e | 63 6c 75 64 65 64 20 69 |s are in|cluded i|
|00000130| 6e 20 73 65 70 61 72 61 | 74 65 20 64 6f 63 75 6d |n separa|te docum|
|00000140| 65 6e 74 73 2e 20 54 68 | 65 20 6d 61 6a 6f 72 69 |ents. Th|e majori|
|00000150| 74 79 20 6f 66 20 63 68 | 61 6e 67 65 73 20 65 78 |ty of ch|anges ex|
|00000160| 70 6c 61 69 6e 65 64 20 | 68 65 72 65 20 77 69 6c |plained |here wil|
|00000170| 6c 20 6e 6f 74 20 69 6d | 70 61 63 74 20 6d 6f 73 |l not im|pact mos|
|00000180| 74 20 64 65 76 65 6c 6f | 70 65 72 73 20 77 68 6f |t develo|pers who|
|00000190| 20 73 69 6d 70 6c 79 20 | 70 6c 61 79 20 62 61 63 | simply |play bac|
|000001a0| 6b 20 51 75 69 63 6b 54 | 69 6d 65 20 6d 6f 76 69 |k QuickT|ime movi|
|000001b0| 65 73 20 69 6e 73 69 64 | 65 20 74 68 65 69 72 20 |es insid|e their |
|000001c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 48 6f 77 |applicat|ion. How|
|000001d0| 65 76 65 72 2c 20 61 70 | 70 6c 69 63 61 74 69 6f |ever, ap|plicatio|
|000001e0| 6e 73 20 77 68 69 63 68 | 20 6d 61 6b 65 20 6d 6f |ns which| make mo|
|000001f0| 72 65 20 65 78 74 65 6e | 73 69 76 65 20 75 73 65 |re exten|sive use|
|00000200| 20 6f 66 20 51 75 69 63 | 6b 54 69 6d 65 20 77 69 | of Quic|kTime wi|
|00000210| 6c 6c 20 62 65 6e 65 66 | 69 74 20 66 72 6f 6d 20 |ll benef|it from |
|00000220| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 6e 65 77 20 |some of |the new |
|00000230| 66 65 61 74 75 72 65 73 | 2e 0d 4d 6f 76 69 65 20 |features|..Movie |
|00000240| 54 6f 6f 6c 62 6f 78 0d | 53 65 74 4d 6f 76 69 65 |Toolbox.|SetMovie|
|00000250| 43 6f 6c 6f 72 54 61 62 | 6c 65 0d 70 61 73 63 61 |ColorTab|le.pasca|
|00000260| 6c 20 4f 53 45 72 72 20 | 53 65 74 4d 6f 76 69 65 |l OSErr |SetMovie|
|00000270| 43 6f 6c 6f 72 54 61 62 | 6c 65 28 4d 6f 76 69 65 |ColorTab|le(Movie|
|00000280| 20 74 68 65 4d 6f 76 69 | 65 2c 20 43 54 61 62 48 | theMovi|e, CTabH|
|00000290| 61 6e 64 6c 65 20 63 74 | 61 62 29 0d 53 65 74 4d |andle ct|ab).SetM|
|000002a0| 6f 76 69 65 43 6f 6c 6f | 72 54 61 62 6c 65 20 61 |ovieColo|rTable a|
|000002b0| 6c 6c 6f 77 73 20 61 20 | 63 6f 6c 6f 72 20 74 61 |llows a |color ta|
|000002c0| 62 6c 65 20 74 6f 20 62 | 65 20 61 73 73 6f 63 69 |ble to b|e associ|
|000002d0| 61 74 65 64 20 77 69 74 | 68 20 61 20 6d 6f 76 69 |ated wit|h a movi|
|000002e0| 65 2e 20 54 68 65 20 63 | 6f 6c 6f 72 20 74 61 62 |e. The c|olor tab|
|000002f0| 6c 65 20 69 73 20 70 61 | 73 73 65 64 20 69 6e 20 |le is pa|ssed in |
|00000300| 74 68 65 20 63 74 61 62 | 20 70 61 72 61 6d 65 74 |the ctab| paramet|
|00000310| 65 72 2e 20 49 66 20 74 | 68 65 20 6d 6f 76 69 65 |er. If t|he movie|
|00000320| 20 61 6c 72 65 61 64 79 | 20 68 61 64 20 61 20 63 | already| had a c|
|00000330| 6f 6c 6f 72 20 74 61 62 | 6c 65 2c 20 74 68 65 20 |olor tab|le, the |
|00000340| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 20 77 69 6c 6c |color ta|ble will|
|00000350| 20 62 65 20 72 65 70 6c | 61 63 65 64 20 77 69 74 | be repl|aced wit|
|00000360| 68 20 74 68 65 20 6e 65 | 77 20 6f 6e 65 2e 20 49 |h the ne|w one. I|
|00000370| 66 20 6e 69 6c 20 69 73 | 20 70 61 73 73 65 64 20 |f nil is| passed |
|00000380| 66 6f 72 20 74 68 65 20 | 63 6f 6c 6f 72 20 74 61 |for the |color ta|
|00000390| 62 6c 65 2c 20 61 6e 79 | 20 65 78 69 73 74 69 6e |ble, any| existin|
|000003a0| 67 20 63 6f 6c 6f 72 20 | 74 61 62 6c 65 20 77 69 |g color |table wi|
|000003b0| 6c 6c 20 62 65 20 72 65 | 6d 6f 76 65 64 2e 20 54 |ll be re|moved. T|
|000003c0| 68 65 20 4d 6f 76 69 65 | 20 54 6f 6f 6c 62 6f 78 |he Movie| Toolbox|
|000003d0| 20 6d 61 6b 65 73 20 61 | 20 63 6f 70 79 20 6f 66 | makes a| copy of|
|000003e0| 20 74 68 65 20 70 61 73 | 73 65 64 20 69 6e 20 63 | the pas|sed in c|
|000003f0| 6f 6c 6f 72 20 74 61 62 | 6c 65 2e 20 54 68 65 20 |olor tab|le. The |
|00000400| 6d 6f 76 69 65 d5 73 20 | 63 6f 6c 6f 72 20 74 61 |movie.s |color ta|
|00000410| 62 6c 65 20 69 73 20 73 | 74 6f 72 65 64 20 77 69 |ble is s|tored wi|
|00000420| 74 68 20 74 68 65 20 6d | 6f 76 69 65 2c 20 61 6e |th the m|ovie, an|
|00000430| 64 20 69 73 20 74 72 61 | 6e 73 66 65 72 72 65 64 |d is tra|nsferred|
|00000440| 20 62 79 20 43 6f 70 79 | 4d 6f 76 69 65 53 65 74 | by Copy|MovieSet|
|00000450| 74 69 6e 67 73 2e 0d 54 | 68 65 20 63 6f 6c 6f 72 |tings..T|he color|
|00000460| 20 74 61 62 6c 65 20 6d | 61 79 20 62 65 20 75 73 | table m|ay be us|
|00000470| 65 64 20 74 6f 20 6d 6f | 64 69 66 79 20 74 68 65 |ed to mo|dify the|
|00000480| 20 70 61 6c 65 74 74 65 | 20 6f 66 20 74 68 65 20 | palette| of the |
|00000490| 69 6e 64 65 78 65 64 20 | 64 69 73 70 6c 61 79 20 |indexed |display |
|000004a0| 64 65 76 69 63 65 73 20 | 77 68 65 6e 20 74 68 65 |devices |when the|
|000004b0| 20 6d 6f 76 69 65 20 69 | 73 20 70 6c 61 79 65 64 | movie i|s played|
|000004c0| 20 62 61 63 6b 2e 20 20 | 49 66 20 74 68 65 20 6d | back. |If the m|
|000004d0| 6f 76 69 65 20 63 6f 6e | 74 72 6f 6c 6c 65 72 20 |ovie con|troller |
|000004e0| 69 73 20 75 73 65 64 2c | 20 74 68 69 73 20 68 61 |is used,| this ha|
|000004f0| 70 70 65 6e 73 20 61 75 | 74 6f 6d 61 74 69 63 61 |ppens au|tomatica|
|00000500| 6c 6c 79 20 69 73 20 74 | 68 65 20 6d 63 46 6c 61 |lly is t|he mcFla|
|00000510| 67 73 55 73 65 57 69 6e | 64 6f 77 50 61 6c 65 74 |gsUseWin|dowPalet|
|00000520| 74 65 20 66 6c 61 67 20 | 6f 6e 20 74 68 65 20 6d |te flag |on the m|
|00000530| 6f 76 69 65 20 63 6f 6e | 74 72 6f 6c 6c 65 72 20 |ovie con|troller |
|00000540| 69 73 20 73 65 74 2e 20 | 49 6e 20 61 70 70 6c 69 |is set. |In appli|
|00000550| 63 61 74 69 6f 6e 73 20 | 77 68 69 63 68 20 64 6f |cations |which do|
|00000560| 20 6e 6f 74 20 75 73 65 | 20 74 68 65 20 6d 6f 76 | not use| the mov|
|00000570| 69 65 20 63 6f 6e 74 72 | 6f 6c 6c 65 72 2c 20 74 |ie contr|oller, t|
|00000580| 68 65 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 20 73 |he color| table s|
|00000590| 68 6f 75 6c 64 20 62 65 | 20 72 65 74 72 69 65 76 |hould be| retriev|
|000005a0| 65 64 20 75 73 69 6e 67 | 20 47 65 74 4d 6f 76 69 |ed using| GetMovi|
|000005b0| 65 43 6f 6c 6f 72 54 61 | 62 6c 65 20 28 73 65 65 |eColorTa|ble (see|
|000005c0| 20 62 65 6c 6f 77 29 20 | 61 6e 64 20 70 61 73 73 | below) |and pass|
|000005d0| 65 64 20 6f 6e 20 74 6f | 20 74 68 65 20 50 61 6c |ed on to| the Pal|
|000005e0| 65 74 74 65 20 4d 61 6e | 61 67 65 72 2e 0d 47 65 |ette Man|ager..Ge|
|000005f0| 74 4d 6f 76 69 65 43 6f | 6c 6f 72 54 61 62 6c 65 |tMovieCo|lorTable|
|00000600| 0d 70 61 73 63 61 6c 20 | 4f 53 45 72 72 20 47 65 |.pascal |OSErr Ge|
|00000610| 74 4d 6f 76 69 65 43 6f | 6c 6f 72 54 61 62 6c 65 |tMovieCo|lorTable|
|00000620| 28 4d 6f 76 69 65 20 74 | 68 65 4d 6f 76 69 65 2c |(Movie t|heMovie,|
|00000630| 20 43 54 61 62 48 61 6e | 64 6c 65 20 2a 63 74 61 | CTabHan|dle *cta|
|00000640| 62 29 0d 47 65 74 4d 6f | 76 69 65 43 6f 6c 6f 72 |b).GetMo|vieColor|
|00000650| 54 61 62 6c 65 20 72 65 | 74 75 72 6e 73 20 61 20 |Table re|turns a |
|00000660| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 6d 6f 76 69 |copy of |the movi|
|00000670| 65 d5 73 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 2e |e.s colo|r table.|
|00000680| 20 49 66 20 74 68 65 20 | 6d 6f 76 69 65 20 64 6f | If the |movie do|
|00000690| 65 73 20 6e 6f 74 20 68 | 61 76 65 20 61 20 63 6f |es not h|ave a co|
|000006a0| 6c 6f 72 20 74 61 62 6c | 65 2c 20 2a 63 74 61 62 |lor tabl|e, *ctab|
|000006b0| 20 69 73 20 73 65 74 20 | 74 6f 20 6e 69 6c 2e 20 | is set |to nil. |
|000006c0| 54 68 65 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 20 |The colo|r table |
|000006d0| 69 73 20 61 74 74 61 63 | 68 65 64 20 74 6f 20 74 |is attac|hed to t|
|000006e0| 68 65 20 6d 6f 76 69 65 | 20 75 73 69 6e 67 20 53 |he movie| using S|
|000006f0| 65 74 4d 6f 76 69 65 43 | 6f 6c 6f 72 54 61 62 6c |etMovieC|olorTabl|
|00000700| 65 2e 0d 4e 65 77 4d 6f | 76 69 65 46 72 6f 6d 55 |e..NewMo|vieFromU|
|00000710| 73 65 72 50 72 6f 63 0d | 70 61 73 63 61 6c 20 4f |serProc.|pascal O|
|00000720| 53 45 72 72 20 4e 65 77 | 4d 6f 76 69 65 46 72 6f |SErr New|MovieFro|
|00000730| 6d 55 73 65 72 50 72 6f | 63 28 4d 6f 76 69 65 20 |mUserPro|c(Movie |
|00000740| 2a 6d 2c 20 73 68 6f 72 | 74 20 66 6c 61 67 73 2c |*m, shor|t flags,|
|00000750| 20 42 6f 6f 6c 65 61 6e | 20 2a 64 61 74 61 52 65 | Boolean| *dataRe|
|00000760| 66 57 61 73 43 68 61 6e | 67 65 64 2c 20 47 65 74 |fWasChan|ged, Get|
|00000770| 4d 6f 76 69 65 55 50 50 | 20 67 65 74 50 72 6f 63 |MovieUPP| getProc|
|00000780| 2c 20 76 6f 69 64 20 2a | 72 65 66 43 6f 6e 2c 20 |, void *|refCon, |
|00000790| 48 61 6e 64 6c 65 20 64 | 65 66 61 75 6c 74 44 61 |Handle d|efaultDa|
|000007a0| 74 61 52 65 66 2c 20 4f | 53 54 79 70 65 20 64 61 |taRef, O|SType da|
|000007b0| 74 61 52 65 66 54 79 70 | 65 29 0d 4e 65 77 4d 6f |taRefTyp|e).NewMo|
|000007c0| 76 69 65 46 72 6f 6d 55 | 73 65 72 50 72 6f 63 20 |vieFromU|serProc |
|000007d0| 69 73 20 74 68 65 20 75 | 6c 74 69 6d 61 74 65 20 |is the u|ltimate |
|000007e0| 69 6e 20 74 68 65 20 73 | 65 65 6d 69 6e 67 6c 79 |in the s|eemingly|
|000007f0| 20 6e 65 76 65 72 20 65 | 6e 64 69 6e 67 20 70 61 | never e|nding pa|
|00000800| 72 61 64 65 20 6f 66 20 | 4e 65 77 4d 6f 76 69 65 |rade of |NewMovie|
|00000810| 46 72 6f 6d 57 68 61 74 | 65 76 65 72 20 63 61 6c |FromWhat|ever cal|
|00000820| 6c 73 20 69 6e 20 74 68 | 65 20 4d 6f 76 69 65 20 |ls in th|e Movie |
|00000830| 54 6f 6f 6c 62 6f 78 2e | 20 54 68 69 73 20 6f 6e |Toolbox.| This on|
|00000840| 65 20 73 68 6f 75 6c 64 | 20 61 70 70 65 61 73 65 |e should| appease|
|00000850| 20 74 68 65 20 72 65 6d | 61 69 6e 69 6e 67 20 63 | the rem|aining c|
|00000860| 6f 6d 70 6c 61 69 6e 65 | 72 73 2e 20 4d 6f 73 74 |omplaine|rs. Most|
|00000870| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 | the par|ameters |
|00000880| 61 72 65 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |are the |same as |
|00000890| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 4e 65 77 |the exis|ting New|
|000008a0| 4d 6f 76 69 65 20 63 61 | 6c 6c 73 2e 20 54 68 65 |Movie ca|lls. The|
|000008b0| 20 64 61 74 61 20 66 6f | 72 20 74 68 65 20 6d 6f | data fo|r the mo|
|000008c0| 76 69 65 20 72 65 73 6f | 75 72 63 65 20 69 73 20 |vie reso|urce is |
|000008d0| 72 65 74 72 69 65 76 65 | 64 20 62 79 20 63 61 6c |retrieve|d by cal|
|000008e0| 6c 69 6e 67 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |ling a f|unction |
|000008f0| 70 6f 69 6e 74 65 72 20 | 6f 66 20 74 68 65 20 74 |pointer |of the t|
|00000900| 79 70 65 20 73 68 6f 77 | 6e 20 62 65 6c 6f 77 2e |ype show|n below.|
|00000910| 0d 20 74 79 70 65 64 65 | 66 20 70 61 73 63 61 6c |. typede|f pascal|
|00000920| 20 4f 53 45 72 72 20 28 | 2a 47 65 74 4d 6f 76 69 | OSErr (|*GetMovi|
|00000930| 65 50 72 6f 63 50 74 72 | 29 28 6c 6f 6e 67 20 6f |eProcPtr|)(long o|
|00000940| 66 66 73 65 74 2c 20 6c | 6f 6e 67 20 73 69 7a 65 |ffset, l|ong size|
|00000950| 2c 20 76 6f 69 64 20 2a | 64 61 74 61 50 74 72 2c |, void *|dataPtr,|
|00000960| 20 76 6f 69 64 20 2a 72 | 65 66 43 6f 6e 29 3b 0d | void *r|efCon);.|
|00000970| 54 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |The func|tion is |
|00000980| 70 61 73 73 65 64 20 61 | 6e 20 6f 66 66 73 65 74 |passed a|n offset|
|00000990| 20 69 6e 74 6f 20 74 68 | 65 20 6d 6f 76 69 65 20 | into th|e movie |
|000009a0| 72 65 73 6f 75 72 63 65 | 2c 20 74 68 65 20 73 69 |resource|, the si|
|000009b0| 7a 65 20 6f 66 20 74 68 | 65 20 64 61 74 61 20 72 |ze of th|e data r|
|000009c0| 65 71 75 65 73 74 65 64 | 2c 20 61 6e 64 20 61 20 |equested|, and a |
|000009d0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 20 6c 6f 63 |pointer |to a loc|
|000009e0| 61 74 69 6f 6e 20 74 6f | 20 70 75 74 20 74 68 65 |ation to| put the|
|000009f0| 20 64 61 74 61 2e 20 54 | 68 65 20 72 65 66 43 6f | data. T|he refCo|
|00000a00| 6e 20 70 61 73 73 65 64 | 20 69 6e 74 6f 20 4e 65 |n passed| into Ne|
|00000a10| 77 4d 6f 76 69 65 46 72 | 6f 6d 55 73 65 72 50 72 |wMovieFr|omUserPr|
|00000a20| 6f 63 20 69 73 20 61 6c | 73 6f 20 70 61 73 73 65 |oc is al|so passe|
|00000a30| 64 20 62 61 63 6b 2e 0d | 4e 6f 72 6d 61 6c 6c 79 |d back..|Normally|
|00000a40| 20 77 68 65 6e 20 61 20 | 6d 6f 76 69 65 20 69 73 | when a |movie is|
|00000a50| 20 6c 6f 61 64 65 64 20 | 66 72 6f 6d 20 61 20 66 | loaded |from a f|
|00000a60| 69 6c 65 2c 20 74 68 65 | 20 4d 6f 76 69 65 20 54 |ile, the| Movie T|
|00000a70| 6f 6f 6c 62 6f 78 20 61 | 73 73 69 67 6e 73 20 74 |oolbox a|ssigns t|
|00000a80| 68 61 74 20 66 69 6c 65 | 20 61 73 20 74 68 65 20 |hat file| as the |
|00000a90| 64 65 66 61 75 6c 74 20 | 44 61 74 61 20 52 65 66 |default |Data Ref|
|00000aa0| 65 72 65 6e 63 65 20 66 | 6f 72 20 74 68 65 20 6d |erence f|or the m|
|00000ab0| 6f 76 69 65 2e 20 54 68 | 69 73 20 69 73 20 74 68 |ovie. Th|is is th|
|00000ac0| 65 6e 20 75 73 65 64 20 | 74 6f 20 72 65 73 6f 6c |en used |to resol|
|00000ad0| 76 65 20 73 65 6c 66 20 | 63 6f 6e 74 61 69 6e 65 |ve self |containe|
|00000ae0| 64 20 6d 65 64 69 61 2c | 20 61 6e 64 20 61 73 20 |d media,| and as |
|00000af0| 61 20 62 61 73 69 73 20 | 66 6f 72 20 41 6c 69 61 |a basis |for Alia|
|00000b00| 73 20 4d 61 6e 61 67 65 | 72 20 72 65 6c 61 74 69 |s Manage|r relati|
|00000b10| 76 65 20 73 65 61 72 63 | 68 65 73 20 77 68 65 6e |ve searc|hes when|
|00000b20| 20 61 70 70 6c 69 63 61 | 62 6c 65 2e 20 42 65 63 | applica|ble. Bec|
|00000b30| 61 75 73 65 20 74 68 65 | 72 65 20 69 73 20 6e 6f |ause the|re is no|
|00000b40| 20 65 78 70 6c 69 63 69 | 74 20 66 69 6c 65 20 70 | explici|t file p|
|00000b50| 61 72 61 6d 65 74 65 72 | 20 74 6f 20 4e 65 77 4d |arameter| to NewM|
|00000b60| 6f 76 69 65 46 72 6f 6d | 55 73 65 72 50 72 6f 63 |ovieFrom|UserProc|
|00000b70| 2c 20 74 68 65 20 63 61 | 6c 6c 20 61 6c 6c 6f 77 |, the ca|ll allow|
|00000b80| 73 20 79 6f 75 20 74 6f | 20 70 61 73 73 20 69 6e |s you to| pass in|
|00000b90| 20 74 68 65 20 61 63 74 | 75 61 6c 20 44 61 74 61 | the act|ual Data|
|00000ba0| 20 52 65 66 65 72 65 6e | 63 65 20 62 65 69 6e 67 | Referen|ce being|
|00000bb0| 20 75 73 65 64 2c 20 69 | 66 20 61 70 70 72 6f 70 | used, i|f approp|
|00000bc0| 72 69 61 74 65 2e 20 46 | 6f 72 20 65 78 61 6d 70 |riate. F|or examp|
|00000bd0| 6c 65 2c 20 69 66 20 61 | 20 6d 6f 76 69 65 20 69 |le, if a| movie i|
|00000be0| 73 20 62 65 69 6e 67 20 | 6c 6f 61 64 65 64 20 66 |s being |loaded f|
|00000bf0| 72 6f 6d 20 61 20 66 69 | 6c 65 2c 20 79 6f 75 20 |rom a fi|le, you |
|00000c00| 77 6f 75 6c 64 20 70 61 | 73 73 20 61 6e 20 41 6c |would pa|ss an Al|
|00000c10| 69 61 73 20 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |ias to t|he file |
|00000c20| 66 6f 72 20 74 68 65 20 | 44 61 74 61 20 52 65 66 |for the |Data Ref|
|00000c30| 65 72 65 6e 63 65 20 61 | 6e 64 20 d4 61 6c 69 73 |erence a|nd .alis|
|00000c40| d5 20 66 6f 72 20 74 68 | 65 20 64 61 74 61 52 65 |. for th|e dataRe|
|00000c50| 66 54 79 70 65 2e 20 0d | 53 65 74 4d 65 64 69 61 |fType. .|SetMedia|
|00000c60| 44 65 66 61 75 6c 74 44 | 61 74 61 52 65 66 49 6e |DefaultD|ataRefIn|
|00000c70| 64 65 78 0d 70 61 73 63 | 61 6c 20 4f 53 45 72 72 |dex.pasc|al OSErr|
|00000c80| 20 53 65 74 4d 65 64 69 | 61 44 65 66 61 75 6c 74 | SetMedi|aDefault|
|00000c90| 44 61 74 61 52 65 66 49 | 6e 64 65 78 28 20 4d 65 |DataRefI|ndex( Me|
|00000ca0| 64 69 61 20 74 68 65 4d | 65 64 69 61 2c 20 73 68 |dia theM|edia, sh|
|00000cb0| 6f 72 74 20 69 6e 64 65 | 78 20 29 0d 53 65 74 4d |ort inde|x ).SetM|
|00000cc0| 65 64 69 61 44 65 66 61 | 75 6c 74 44 61 74 61 52 |ediaDefa|ultDataR|
|00000cd0| 65 66 49 6e 64 65 78 20 | 77 61 73 20 61 64 64 65 |efIndex |was adde|
|00000ce0| 64 20 74 6f 20 63 6f 76 | 65 72 20 66 6f 72 20 61 |d to cov|er for a|
|00000cf0| 6e 20 41 50 49 20 66 6c | 61 77 20 74 68 61 74 20 |n API fl|aw that |
|00000d00| 68 61 73 20 65 78 69 73 | 74 65 64 2c 20 62 75 74 |has exis|ted, but|
|00000d10| 20 77 61 73 20 6e 6f 74 | 20 65 76 69 64 65 6e 74 | was not| evident|
|00000d20| 2c 20 73 69 6e 63 65 20 | 51 75 69 63 6b 54 69 6d |, since |QuickTim|
|00000d30| 65 20 31 2e 30 2e 20 54 | 68 65 20 51 75 69 63 6b |e 1.0. T|he Quick|
|00000d40| 54 69 6d 65 20 41 50 49 | 20 68 61 73 20 61 6c 77 |Time API| has alw|
|00000d50| 61 79 73 20 73 75 70 70 | 6f 72 74 65 64 20 61 20 |ays supp|orted a |
|00000d60| 4d 65 64 69 61 20 77 69 | 74 68 20 6d 75 6c 74 69 |Media wi|th multi|
|00000d70| 70 6c 65 20 64 61 74 61 | 20 72 65 66 65 72 65 6e |ple data| referen|
|00000d80| 63 65 73 20 28 69 2e 65 | 2e 20 61 20 74 72 61 63 |ces (i.e|. a trac|
|00000d90| 6b 20 74 68 61 74 20 68 | 61 73 20 64 61 74 61 20 |k that h|as data |
|00000da0| 69 6e 20 6d 75 6c 74 69 | 70 6c 65 20 66 69 6c 65 |in multi|ple file|
|00000db0| 73 29 2e 20 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |s). Howe|ver, the|
|00000dc0| 20 51 75 69 63 6b 54 69 | 6d 65 20 69 6d 70 6c 65 | QuickTi|me imple|
|00000dd0| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 6e 6c 79 20 65 |mentatio|n only e|
|00000de0| 76 65 72 20 73 75 70 70 | 6f 72 74 65 64 20 61 20 |ver supp|orted a |
|00000df0| 73 69 6e 67 6c 65 20 44 | 61 74 61 20 52 65 66 65 |single D|ata Refe|
|00000e00| 72 65 6e 63 65 20 70 65 | 72 20 6d 65 64 69 61 2e |rence pe|r media.|
|00000e10| 20 51 75 69 63 6b 54 69 | 6d 65 20 32 2e 30 20 66 | QuickTi|me 2.0 f|
|00000e20| 75 6c 6c 79 20 73 75 70 | 70 6f 72 74 73 20 6d 75 |ully sup|ports mu|
|00000e30| 6c 74 69 70 6c 65 20 44 | 61 74 61 20 52 65 66 65 |ltiple D|ata Refe|
|00000e40| 72 65 6e 63 65 73 20 70 | 65 72 20 6d 65 64 69 61 |rences p|er media|
|00000e50| 2e 0d 54 68 65 20 42 65 | 67 69 6e 4d 65 64 69 61 |..The Be|ginMedia|
|00000e60| 45 64 69 74 73 20 63 61 | 6c 6c 20 69 73 20 64 65 |Edits ca|ll is de|
|00000e70| 66 69 6e 65 64 20 74 6f | 20 6f 70 65 6e 20 74 68 |fined to| open th|
|00000e80| 65 20 4d 65 64 69 61 d5 | 73 20 64 61 74 61 20 72 |e Media.|s data r|
|00000e90| 65 66 65 72 65 6e 63 65 | 20 66 6f 72 20 77 72 69 |eference| for wri|
|00000ea0| 74 69 6e 67 2e 20 55 6e | 66 6f 72 74 75 6e 61 74 |ting. Un|fortunat|
|00000eb0| 65 6c 79 2c 20 69 6e 20 | 74 68 65 20 63 61 73 65 |ely, in |the case|
|00000ec0| 20 6f 66 20 6d 75 6c 74 | 69 70 6c 65 20 44 61 74 | of mult|iple Dat|
|00000ed0| 61 20 52 65 66 65 72 65 | 6e 63 65 73 2c 20 77 68 |a Refere|nces, wh|
|00000ee0| 69 63 68 20 44 61 74 61 | 20 52 65 66 65 72 65 6e |ich Data| Referen|
|00000ef0| 63 65 20 74 6f 20 63 68 | 6f 6f 73 65 20 69 73 20 |ce to ch|oose is |
|00000f00| 61 6d 62 69 67 75 6f 75 | 73 2e 20 53 65 74 4d 65 |ambiguou|s. SetMe|
|00000f10| 64 69 61 44 65 66 61 75 | 6c 74 44 61 74 61 52 65 |diaDefau|ltDataRe|
|00000f20| 66 49 6e 64 65 78 20 61 | 6c 6c 6f 77 73 20 79 6f |fIndex a|llows yo|
|00000f30| 75 20 74 6f 20 73 70 65 | 63 69 66 79 20 77 68 69 |u to spe|cify whi|
|00000f40| 63 68 20 44 61 74 61 20 | 52 65 66 65 72 65 6e 63 |ch Data |Referenc|
|00000f50| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |e should| be used|
|00000f60| 20 77 68 65 6e 20 42 65 | 67 69 6e 4d 65 64 69 61 | when Be|ginMedia|
|00000f70| 45 64 69 74 73 20 69 73 | 20 63 61 6c 6c 65 64 2e |Edits is| called.|
|00000f80| 20 20 42 79 20 64 65 66 | 61 75 6c 74 2c 20 74 68 | By def|ault, th|
|00000f90| 65 20 66 69 72 73 74 20 | 44 61 74 61 20 52 65 66 |e first |Data Ref|
|00000fa0| 65 72 65 6e 63 65 20 69 | 73 20 75 73 65 64 2c 20 |erence i|s used, |
|00000fb0| 66 6f 72 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |for comp|atibilit|
|00000fc0| 79 2e 20 49 66 20 79 6f | 75 20 63 68 61 6e 67 65 |y. If yo|u change|
|00000fd0| 20 74 68 65 20 69 6e 64 | 65 78 2c 20 79 6f 75 20 | the ind|ex, you |
|00000fe0| 63 61 6e 20 73 65 74 20 | 69 74 20 74 6f 20 30 20 |can set |it to 0 |
|00000ff0| 74 6f 20 72 65 73 65 74 | 20 74 6f 20 74 68 65 20 |to reset| to the |
|00001000| 64 65 66 61 75 6c 74 2e | 0d 47 65 74 44 61 74 61 |default.|.GetData|
|00001010| 48 61 6e 64 6c 65 72 0d | 70 61 73 63 61 6c 20 43 |Handler.|pascal C|
|00001020| 6f 6d 70 6f 6e 65 6e 74 | 20 47 65 74 44 61 74 61 |omponent| GetData|
|00001030| 48 61 6e 64 6c 65 72 28 | 48 61 6e 64 6c 65 20 64 |Handler(|Handle d|
|00001040| 61 74 61 52 65 66 2c 20 | 4f 53 54 79 70 65 20 64 |ataRef, |OSType d|
|00001050| 61 74 61 52 65 66 54 79 | 70 65 2c 20 6c 6f 6e 67 |ataRefTy|pe, long|
|00001060| 20 66 6c 61 67 73 29 0d | 47 65 74 44 61 74 61 48 | flags).|GetDataH|
|00001070| 61 6e 64 6c 65 72 20 72 | 65 74 75 72 6e 73 20 74 |andler r|eturns t|
|00001080| 68 65 20 62 65 73 74 20 | 44 61 74 61 20 48 61 6e |he best |Data Han|
|00001090| 64 6c 65 72 20 43 6f 6d | 70 6f 6e 65 6e 74 20 74 |dler Com|ponent t|
|000010a0| 6f 20 75 73 65 20 74 6f | 20 61 63 63 65 73 73 20 |o use to| access |
|000010b0| 74 68 65 20 44 61 74 61 | 20 52 65 66 65 72 65 6e |the Data| Referen|
|000010c0| 63 65 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |ce speci|fied by |
|000010d0| 74 68 65 20 64 61 74 61 | 52 65 66 20 61 6e 64 20 |the data|Ref and |
|000010e0| 64 61 74 61 52 65 66 54 | 79 70 65 2e 20 54 68 65 |dataRefT|ype. The|
|000010f0| 20 66 6c 61 67 73 20 69 | 6e 64 69 63 61 74 65 20 | flags i|ndicate |
|00001100| 74 68 65 20 74 61 73 6b | 20 66 6f 72 20 77 68 69 |the task| for whi|
|00001110| 63 68 20 74 68 65 20 72 | 65 71 75 65 73 74 65 64 |ch the r|equested|
|00001120| 20 44 61 74 61 20 48 61 | 6e 64 6c 65 72 20 77 69 | Data Ha|ndler wi|
|00001130| 6c 6c 20 62 65 20 75 73 | 65 64 2e 20 54 68 65 20 |ll be us|ed. The |
|00001140| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 6c 61 67 73 20 |followin|g flags |
|00001150| 61 72 65 20 63 75 72 72 | 65 6e 74 6c 79 20 64 65 |are curr|ently de|
|00001160| 66 69 6e 65 64 2e 0d 6b | 44 61 74 61 48 43 61 6e |fined..k|DataHCan|
|00001170| 52 65 61 64 20 3d 20 31 | 4c 3c 3c 30 2c 0d 6b 44 |Read = 1|L<<0,.kD|
|00001180| 61 74 61 48 43 61 6e 57 | 72 69 74 65 20 3d 20 31 |ataHCanW|rite = 1|
|00001190| 4c 3c 3c 33 2c 0d 6b 44 | 61 74 61 48 43 61 6e 53 |L<<3,.kD|ataHCanS|
|000011a0| 74 72 65 61 6d 69 6e 67 | 57 72 69 74 65 20 3d 20 |treaming|Write = |
|000011b0| 31 3c 3c 36 0d 54 68 65 | 73 65 20 62 69 74 73 20 |1<<6.The|se bits |
|000011c0| 6d 61 79 20 62 65 20 63 | 6f 6d 62 69 6e 65 64 20 |may be c|ombined |
|000011d0| 69 66 20 74 68 65 20 73 | 69 74 75 61 74 69 6f 6e |if the s|ituation|
|000011e0| 20 72 65 71 75 69 72 65 | 73 2e 20 48 6f 77 65 76 | require|s. Howev|
|000011f0| 65 72 2c 20 6e 6f 74 65 | 20 74 68 61 74 20 61 20 |er, note| that a |
|00001200| 70 61 72 74 69 63 75 6c | 61 72 20 44 61 74 61 20 |particul|ar Data |
|00001210| 48 61 6e 64 6c 65 72 20 | 6d 61 79 20 6f 6e 6c 79 |Handler |may only|
|00001220| 20 73 75 70 70 6f 72 74 | 20 61 20 6c 69 6d 69 74 | support| a limit|
|00001230| 65 64 20 73 75 62 73 65 | 74 20 6f 66 20 74 68 65 |ed subse|t of the|
|00001240| 73 65 20 66 65 61 74 75 | 72 65 73 2e 20 46 6f 72 |se featu|res. For|
|00001250| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 44 61 | example|, the Da|
|00001260| 74 61 20 48 61 6e 64 6c | 65 72 20 75 73 65 64 20 |ta Handl|er used |
|00001270| 62 79 20 74 68 65 20 53 | 65 71 75 65 6e 63 65 20 |by the S|equence |
|00001280| 47 72 61 62 62 65 72 20 | 66 6f 72 20 6d 6f 76 69 |Grabber |for movi|
|00001290| 65 20 63 61 70 74 75 72 | 65 20 6f 6e 6c 79 20 73 |e captur|e only s|
|000012a0| 75 70 70 6f 72 74 73 20 | d2 53 74 72 65 61 6d 69 |upports |.Streami|
|000012b0| 6e 67 57 72 69 74 65 d3 | 2e 0d 4f 6e 63 65 20 61 |ngWrite.|..Once a|
|000012c0| 20 44 61 74 61 20 48 61 | 6e 64 6c 65 72 20 63 6f | Data Ha|ndler co|
|000012d0| 6d 70 6f 6e 65 6e 74 20 | 69 73 20 6f 62 74 61 69 |mponent |is obtai|
|000012e0| 6e 65 64 2c 20 69 74 20 | 6d 61 79 20 62 65 20 6f |ned, it |may be o|
|000012f0| 70 65 6e 65 64 20 61 6e | 64 20 75 73 65 64 20 61 |pened an|d used a|
|00001300| 73 20 65 78 70 6c 61 69 | 6e 65 64 20 74 68 65 20 |s explai|ned the |
|00001310| 64 61 74 61 20 68 61 6e | 64 6c 65 72 20 64 6f 63 |data han|dler doc|
|00001320| 75 6d 65 6e 74 61 74 69 | 6f 6e 2e 20 0d 53 65 74 |umentati|on. .Set|
|00001330| 4d 65 64 69 61 50 72 65 | 66 65 72 72 65 64 43 68 |MediaPre|ferredCh|
|00001340| 75 6e 6b 53 69 7a 65 0d | 70 61 73 63 61 6c 20 4f |unkSize.|pascal O|
|00001350| 53 45 72 72 20 53 65 74 | 4d 65 64 69 61 50 72 65 |SErr Set|MediaPre|
|00001360| 66 65 72 72 65 64 43 68 | 75 6e 6b 53 69 7a 65 28 |ferredCh|unkSize(|
|00001370| 20 4d 65 64 69 61 20 74 | 68 65 4d 65 64 69 61 2c | Media t|heMedia,|
|00001380| 20 6c 6f 6e 67 20 6d 61 | 78 43 68 75 6e 6b 53 69 | long ma|xChunkSi|
|00001390| 7a 65 20 29 0d 54 6f 20 | 62 65 20 64 6f 63 75 6d |ze ).To |be docum|
|000013a0| 65 6e 74 65 64 20 73 6f | 6f 6e 2e 0d 47 65 74 4d |ented so|on..GetM|
|000013b0| 65 64 69 61 50 72 65 66 | 65 72 72 65 64 43 68 75 |ediaPref|erredChu|
|000013c0| 6e 6b 53 69 7a 65 0d 70 | 61 73 63 61 6c 20 4f 53 |nkSize.p|ascal OS|
|000013d0| 45 72 72 20 47 65 74 4d | 65 64 69 61 50 72 65 66 |Err GetM|ediaPref|
|000013e0| 65 72 72 65 64 43 68 75 | 6e 6b 53 69 7a 65 28 20 |erredChu|nkSize( |
|000013f0| 4d 65 64 69 61 20 74 68 | 65 4d 65 64 69 61 2c 20 |Media th|eMedia, |
|00001400| 6c 6f 6e 67 20 2a 6d 61 | 78 43 68 75 6e 6b 53 69 |long *ma|xChunkSi|
|00001410| 7a 65 20 29 0d 54 6f 20 | 62 65 20 64 6f 63 75 6d |ze ).To |be docum|
|00001420| 65 6e 74 65 64 20 73 6f | 6f 6e 2e 0d 41 64 64 4d |ented so|on..AddM|
|00001430| 65 64 69 61 53 61 6d 70 | 6c 65 52 65 66 65 72 65 |ediaSamp|leRefere|
|00001440| 6e 63 65 73 0d 54 68 65 | 20 4d 6f 76 69 65 20 54 |nces.The| Movie T|
|00001450| 6f 6f 6c 62 6f 78 d5 73 | 20 41 64 64 4d 65 64 69 |oolbox.s| AddMedi|
|00001460| 61 53 61 6d 70 6c 65 52 | 65 66 65 72 65 6e 63 65 |aSampleR|eference|
|00001470| 20 72 6f 75 74 69 6e 65 | 20 61 6c 6c 6f 77 73 20 | routine| allows |
|00001480| 61 20 73 61 6d 70 6c 65 | 20 6f 72 20 67 72 6f 75 |a sample| or grou|
|00001490| 70 20 6f 66 20 73 61 6d | 70 6c 65 73 20 74 6f 20 |p of sam|ples to |
|000014a0| 62 65 20 61 64 64 65 64 | 20 74 6f 20 61 20 6d 65 |be added| to a me|
|000014b0| 64 69 61 2e 20 54 68 65 | 20 73 69 7a 65 20 6f 66 |dia. The| size of|
|000014c0| 20 65 61 63 68 20 73 61 | 6d 70 6c 65 20 61 64 64 | each sa|mple add|
|000014d0| 65 64 20 77 69 74 68 20 | 61 20 73 69 6e 67 6c 65 |ed with |a single|
|000014e0| 20 63 61 6c 6c 20 6d 75 | 73 74 20 62 65 20 6f 66 | call mu|st be of|
|000014f0| 20 74 68 65 20 73 61 6d | 65 20 73 69 7a 65 2e 20 | the sam|e size. |
|00001500| 42 65 63 61 75 73 65 20 | 6f 66 20 63 6f 6d 70 72 |Because |of compr|
|00001510| 65 73 73 69 6f 6e 2c 20 | 65 61 63 68 20 76 69 64 |ession, |each vid|
|00001520| 65 6f 20 66 72 61 6d 65 | 20 69 6e 20 61 20 6d 65 |eo frame| in a me|
|00001530| 64 69 61 20 6f 66 74 65 | 6e 20 68 61 73 20 61 20 |dia ofte|n has a |
|00001540| 64 69 66 66 65 72 65 6e | 74 20 73 69 7a 65 2e 20 |differen|t size. |
|00001550| 41 73 20 65 61 63 68 20 | 73 61 6d 70 6c 65 20 69 |As each |sample i|
|00001560| 73 20 61 64 64 65 64 2c | 20 61 20 73 65 70 61 72 |s added,| a separ|
|00001570| 61 74 65 20 d2 63 68 75 | 6e 6b d3 20 69 73 20 63 |ate .chu|nk. is c|
|00001580| 72 65 61 74 65 64 2e 20 | 43 68 75 6e 6b 73 20 61 |reated. |Chunks a|
|00001590| 72 65 20 6d 6f 73 74 6c | 79 20 61 6e 20 69 6e 74 |re mostl|y an int|
|000015a0| 65 72 6e 61 6c 20 51 75 | 69 63 6b 54 69 6d 65 20 |ernal Qu|ickTime |
|000015b0| 63 6f 6e 63 65 70 74 2e | 20 41 20 63 68 75 6e 6b |concept.| A chunk|
|000015c0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 73 20 74 68 65 | corresp|onds the|
|000015d0| 20 73 61 6d 70 6c 65 73 | 20 61 64 64 65 64 20 62 | samples| added b|
|000015e0| 79 20 61 20 63 61 6c 6c | 20 74 6f 20 41 64 64 4d |y a call| to AddM|
|000015f0| 65 64 69 61 53 61 6d 70 | 6c 65 20 6f 72 20 41 64 |ediaSamp|le or Ad|
|00001600| 64 4d 65 64 69 61 53 61 | 6d 70 6c 65 52 65 66 65 |dMediaSa|mpleRefe|
|00001610| 72 65 6e 63 65 73 2e 20 | 20 57 68 65 6e 20 69 74 |rences. | When it|
|00001620| 20 69 73 20 74 6f 20 62 | 65 20 75 73 65 64 2c 20 | is to b|e used, |
|00001630| 74 68 65 20 63 68 75 6e | 6b 20 6f 66 20 64 61 74 |the chun|k of dat|
|00001640| 61 20 69 73 20 6c 6f 61 | 64 65 64 20 69 6e 74 6f |a is loa|ded into|
|00001650| 20 61 20 48 61 6e 64 6c | 65 20 69 6e 20 6d 65 6d | a Handl|e in mem|
|00001660| 6f 72 79 2e 20 20 41 20 | 6d 6f 76 69 65 20 63 61 |ory. A |movie ca|
|00001670| 6e 20 62 65 20 6d 61 64 | 65 20 74 6f 20 70 65 72 |n be mad|e to per|
|00001680| 66 6f 72 6d 20 62 65 74 | 74 65 72 20 69 6e 20 73 |form bet|ter in s|
|00001690| 65 76 65 72 61 6c 20 77 | 61 79 73 20 69 66 20 69 |everal w|ays if i|
|000016a0| 74 20 68 61 73 20 66 65 | 77 65 72 20 63 68 75 6e |t has fe|wer chun|
|000016b0| 6b 73 2e 20 20 41 64 64 | 4d 65 64 69 61 53 61 6d |ks. Add|MediaSam|
|000016c0| 70 6c 65 52 65 66 65 72 | 65 6e 63 65 73 20 77 69 |pleRefer|ences wi|
|000016d0| 6c 6c 20 61 74 74 65 6d | 70 74 20 74 6f 20 63 6f |ll attem|pt to co|
|000016e0| 6e 73 6f 6c 69 64 61 74 | 65 20 61 64 6a 61 63 65 |nsolidat|e adjace|
|000016f0| 6e 74 20 73 61 6d 70 6c | 65 20 72 65 66 65 72 65 |nt sampl|e refere|
|00001700| 6e 63 65 73 20 69 6e 74 | 6f 20 61 20 73 69 6e 67 |nces int|o a sing|
|00001710| 6c 65 20 63 68 75 6e 6b | 20 28 75 70 20 74 6f 20 |le chunk| (up to |
|00001720| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 73 70 65 63 |the maxi|mum spec|
|00001730| 69 66 69 65 64 20 72 65 | 74 75 72 6e 65 64 20 62 |ified re|turned b|
|00001740| 79 20 47 65 74 4d 65 64 | 69 61 50 72 65 66 65 72 |y GetMed|iaPrefer|
|00001750| 72 65 64 43 68 75 6e 6b | 53 69 7a 65 29 2c 20 20 |redChunk|Size), |
|00001760| 70 72 6f 76 69 64 69 6e | 67 20 62 65 74 74 65 72 |providin|g better|
|00001770| 20 70 6c 61 79 62 61 63 | 6b 20 70 65 72 66 6f 72 | playbac|k perfor|
|00001780| 6d 61 6e 63 65 20 69 6e | 20 6d 6f 73 74 20 63 61 |mance in| most ca|
|00001790| 73 65 73 2e 0d 70 61 73 | 63 61 6c 20 4f 53 45 72 |ses..pas|cal OSEr|
|000017a0| 72 20 41 64 64 4d 65 64 | 69 61 53 61 6d 70 6c 65 |r AddMed|iaSample|
|000017b0| 52 65 66 65 72 65 6e 63 | 65 73 28 20 4d 65 64 69 |Referenc|es( Medi|
|000017c0| 61 20 74 68 65 4d 65 64 | 69 61 2c 20 53 61 6d 70 |a theMed|ia, Samp|
|000017d0| 6c 65 44 65 73 63 72 69 | 70 74 69 6f 6e 48 61 6e |leDescri|ptionHan|
|000017e0| 64 6c 65 20 73 61 6d 70 | 6c 65 44 65 73 63 72 69 |dle samp|leDescri|
|000017f0| 70 74 69 6f 6e 48 2c 20 | 20 6c 6f 6e 67 20 6e 75 |ptionH, | long nu|
|00001800| 6d 62 65 72 4f 66 53 61 | 6d 70 6c 65 52 65 66 65 |mberOfSa|mpleRefe|
|00001810| 72 65 6e 63 65 73 2c 20 | 53 61 6d 70 6c 65 52 65 |rences, |SampleRe|
|00001820| 66 65 72 65 6e 63 65 50 | 74 72 20 73 61 6d 70 6c |ferenceP|tr sampl|
|00001830| 65 52 65 66 73 2c 20 54 | 69 6d 65 56 61 6c 75 65 |eRefs, T|imeValue|
|00001840| 20 2a 73 61 6d 70 6c 65 | 54 69 6d 65 20 29 3b 20 | *sample|Time ); |
|00001850| 0d 53 61 6d 70 6c 65 73 | 20 72 65 66 65 72 65 6e |.Samples| referen|
|00001860| 63 65 73 20 61 64 64 65 | 64 20 74 6f 20 74 68 65 |ces adde|d to the|
|00001870| 20 6d 65 64 69 61 20 75 | 73 69 6e 67 20 41 64 64 | media u|sing Add|
|00001880| 4d 65 64 69 61 53 61 6d | 70 6c 65 52 65 66 65 72 |MediaSam|pleRefer|
|00001890| 65 6e 63 65 73 20 61 6c | 6c 20 73 68 61 72 65 20 |ences al|l share |
|000018a0| 61 20 73 69 6e 67 6c 65 | 20 73 61 6d 70 6c 65 20 |a single| sample |
|000018b0| 64 65 73 63 72 69 70 74 | 69 6f 6e 2e 20 54 68 65 |descript|ion. The|
|000018c0| 20 63 61 6c 6c 65 72 20 | 6d 75 73 74 20 61 6c 6c | caller |must all|
|000018d0| 6f 63 61 74 65 20 61 6e | 64 20 66 69 6c 6c 20 69 |ocate an|d fill i|
|000018e0| 6e 20 61 6e 20 61 72 72 | 61 79 20 6f 66 20 53 61 |n an arr|ay of Sa|
|000018f0| 6d 70 6c 65 52 65 66 65 | 72 65 6e 63 65 52 65 63 |mpleRefe|renceRec|
|00001900| 6f 72 64 73 2e 20 54 68 | 65 20 6e 75 6d 62 65 72 |ords. Th|e number|
|00001910| 20 6f 66 20 53 61 6d 70 | 6c 65 52 65 66 65 72 65 | of Samp|leRefere|
|00001920| 6e 63 65 52 65 63 6f 72 | 64 73 20 69 73 20 70 61 |nceRecor|ds is pa|
|00001930| 73 73 65 64 20 69 6e 20 | 61 6c 6f 6e 67 20 77 69 |ssed in |along wi|
|00001940| 74 68 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |th a poi|nter to |
|00001950| 74 68 65 20 53 61 6d 70 | 6c 65 52 65 66 65 72 65 |the Samp|leRefere|
|00001960| 6e 63 65 52 65 63 6f 72 | 64 73 2e 20 54 68 65 20 |nceRecor|ds. The |
|00001970| 6d 65 64 69 61 20 74 69 | 6d 65 20 61 74 20 77 68 |media ti|me at wh|
|00001980| 69 63 68 20 74 68 65 20 | 66 69 72 73 74 20 73 61 |ich the |first sa|
|00001990| 6d 70 6c 65 20 77 61 73 | 20 61 64 64 65 64 20 69 |mple was| added i|
|000019a0| 73 20 72 65 74 75 72 6e | 65 64 20 69 6e 20 73 61 |s return|ed in sa|
|000019b0| 6d 70 6c 65 54 69 6d 65 | 2e 20 54 68 65 20 74 69 |mpleTime|. The ti|
|000019c0| 6d 65 73 20 6f 66 20 61 | 6c 6c 20 6f 74 68 65 72 |mes of a|ll other|
|000019d0| 20 73 61 6d 70 6c 65 73 | 20 63 61 6e 20 62 65 20 | samples| can be |
|000019e0| 64 65 74 65 72 6d 69 6e | 65 64 20 66 72 6f 6d 20 |determin|ed from |
|000019f0| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00001a00| 74 68 65 20 53 61 6d 70 | 6c 65 52 65 66 65 72 65 |the Samp|leRefere|
|00001a10| 6e 63 65 52 65 63 6f 72 | 64 20 61 72 72 61 79 2e |nceRecor|d array.|
|00001a20| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00001a30| 53 61 6d 70 6c 65 52 65 | 66 65 72 65 6e 63 65 52 |SampleRe|ferenceR|
|00001a40| 65 63 6f 72 64 20 7b 0d | 09 6c 6f 6e 67 09 09 64 |ecord {.|.long..d|
|00001a50| 61 74 61 4f 66 66 73 65 | 74 3b 0d 09 6c 6f 6e 67 |ataOffse|t;..long|
|00001a60| 09 09 64 61 74 61 53 69 | 7a 65 3b 0d 09 54 69 6d |..dataSi|ze;..Tim|
|00001a70| 65 56 61 6c 75 65 09 64 | 75 72 61 74 69 6f 6e 50 |eValue.d|urationP|
|00001a80| 65 72 53 61 6d 70 6c 65 | 3b 0d 09 6c 6f 6e 67 20 |erSample|;..long |
|00001a90| 09 09 6e 75 6d 62 65 72 | 4f 66 53 61 6d 70 6c 65 |..number|OfSample|
|00001aa0| 73 3b 0d 09 73 68 6f 72 | 74 20 09 73 61 6d 70 6c |s;..shor|t .sampl|
|00001ab0| 65 46 6c 61 67 73 3b 0d | 7d 20 53 61 6d 70 6c 65 |eFlags;.|} Sample|
|00001ac0| 52 65 66 65 72 65 6e 63 | 65 52 65 63 6f 72 64 2c |Referenc|eRecord,|
|00001ad0| 20 2a 53 61 6d 70 6c 65 | 52 65 66 65 72 65 6e 63 | *Sample|Referenc|
|00001ae0| 65 50 74 72 3b 0d 54 68 | 65 20 66 69 65 6c 64 73 |ePtr;.Th|e fields|
|00001af0| 20 69 6e 20 74 68 65 20 | 53 61 6d 70 6c 65 52 65 | in the |SampleRe|
|00001b00| 66 65 72 65 6e 63 65 52 | 65 63 6f 72 64 20 6d 75 |ferenceR|ecord mu|
|00001b10| 73 74 20 62 65 20 66 69 | 6c 6c 65 64 20 6f 75 74 |st be fi|lled out|
|00001b20| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 66 6f 72 20 | complet|ely for |
|00001b30| 65 61 63 68 20 65 6c 65 | 6d 65 6e 74 20 69 6e 20 |each ele|ment in |
|00001b40| 74 68 65 20 61 72 72 61 | 79 2e 20 54 68 65 20 66 |the arra|y. The f|
|00001b50| 69 65 6c 64 73 20 68 61 | 76 65 20 74 68 65 20 73 |ields ha|ve the s|
|00001b60| 61 6d 65 20 6d 65 61 6e | 69 6e 67 73 20 61 73 20 |ame mean|ings as |
|00001b70| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 6f |the para|meters o|
|00001b80| 66 20 74 68 65 20 73 61 | 6d 65 20 6e 61 6d 65 20 |f the sa|me name |
|00001b90| 74 6f 20 74 68 65 20 41 | 64 64 4d 65 64 69 61 53 |to the A|ddMediaS|
|00001ba0| 61 6d 70 6c 65 20 72 6f | 75 74 69 6e 65 2e 0d 53 |ample ro|utine..S|
|00001bb0| 65 74 4d 6f 76 69 65 44 | 72 61 77 69 6e 67 43 6f |etMovieD|rawingCo|
|00001bc0| 6d 70 6c 65 74 65 50 72 | 6f 63 0d 70 61 73 63 61 |mpletePr|oc.pasca|
|00001bd0| 6c 20 76 6f 69 64 20 53 | 65 74 4d 6f 76 69 65 44 |l void S|etMovieD|
|00001be0| 72 61 77 69 6e 67 43 6f | 6d 70 6c 65 74 65 50 72 |rawingCo|mpletePr|
|00001bf0| 6f 63 28 20 4d 6f 76 69 | 65 20 74 68 65 4d 6f 76 |oc( Movi|e theMov|
|00001c00| 69 65 2c 20 6c 6f 6e 67 | 20 66 6c 61 67 73 2c 20 |ie, long| flags, |
|00001c10| 4d 6f 76 69 65 44 72 61 | 77 69 6e 67 43 6f 6d 70 |MovieDra|wingComp|
|00001c20| 6c 65 74 65 55 50 50 20 | 70 72 6f 63 2c 20 6c 6f |leteUPP |proc, lo|
|00001c30| 6e 67 20 72 65 66 43 6f | 6e 29 0d 53 65 74 4d 6f |ng refCo|n).SetMo|
|00001c40| 76 69 65 44 72 61 77 69 | 6e 67 43 6f 6d 70 6c 65 |vieDrawi|ngComple|
|00001c50| 74 65 50 72 6f 63 20 65 | 78 69 73 74 65 64 20 77 |teProc e|xisted w|
|00001c60| 69 74 68 20 51 75 69 63 | 6b 54 69 6d 65 20 31 2e |ith Quic|kTime 1.|
|00001c70| 36 2c 20 62 75 74 20 68 | 61 73 20 67 61 69 6e 65 |6, but h|as gaine|
|00001c80| 64 20 61 6e 20 65 78 74 | 72 61 20 70 61 72 61 6d |d an ext|ra param|
|00001c90| 65 74 65 72 20 77 69 74 | 68 20 51 75 69 63 6b 54 |eter wit|h QuickT|
|00001ca0| 69 6d 65 20 32 2e 30 2e | 20 41 70 70 6c 69 63 61 |ime 2.0.| Applica|
|00001cb0| 74 69 6f 6e 73 20 77 68 | 69 63 68 20 75 73 65 20 |tions wh|ich use |
|00001cc0| 74 68 65 20 6f 6c 64 20 | 63 61 6c 6c 20 77 69 6c |the old |call wil|
|00001cd0| 6c 20 73 74 69 6c 6c 20 | 77 6f 72 6b 2c 20 68 6f |l still |work, ho|
|00001ce0| 77 65 76 65 72 2e 20 54 | 68 65 20 61 64 64 69 74 |wever. T|he addit|
|00001cf0| 69 6f 6e 61 6c 20 70 61 | 72 61 6d 65 74 65 72 20 |ional pa|rameter |
|00001d00| 61 6c 6c 6f 77 73 20 73 | 6f 6d 65 20 66 6c 61 67 |allows s|ome flag|
|00001d10| 73 20 74 6f 20 62 65 20 | 70 61 73 73 65 64 20 69 |s to be |passed i|
|00001d20| 6e 20 77 68 69 63 68 20 | 64 65 74 65 72 6d 69 6e |n which |determin|
|00001d30| 65 20 77 68 65 6e 20 74 | 68 65 20 4d 6f 76 69 65 |e when t|he Movie|
|00001d40| 44 72 61 77 69 6e 67 43 | 6f 6d 70 6c 65 74 65 50 |DrawingC|ompleteP|
|00001d50| 72 6f 63 20 73 68 6f 75 | 6c 64 20 62 65 20 63 61 |roc shou|ld be ca|
|00001d60| 6c 6c 65 64 2e 20 50 72 | 65 76 69 6f 75 73 6c 79 |lled. Pr|eviously|
|00001d70| 20 69 74 20 77 61 73 20 | 63 61 6c 6c 65 64 20 65 | it was |called e|
|00001d80| 76 65 72 79 20 74 69 6d | 65 20 4d 6f 76 69 65 73 |very tim|e Movies|
|00001d90| 54 61 73 6b 20 77 61 73 | 20 63 61 6c 6c 65 64 2e |Task was| called.|
|00001da0| 20 54 68 69 73 20 77 61 | 73 20 64 65 65 6d 65 64 | This wa|s deemed|
|00001db0| 20 74 6f 20 62 65 20 75 | 73 65 6c 65 73 73 20 69 | to be u|seless i|
|00001dc0| 6e 20 6d 6f 73 74 20 63 | 61 73 65 73 2e 20 49 74 |n most c|ases. It|
|00001dd0| 20 69 73 20 6d 6f 72 65 | 20 75 73 65 66 75 6c 20 | is more| useful |
|00001de0| 74 6f 20 6f 6e 6c 79 20 | 62 65 20 63 61 6c 6c 65 |to only |be calle|
|00001df0| 64 20 77 68 65 6e 20 74 | 68 65 20 6d 6f 76 69 65 |d when t|he movie|
|00001e00| 20 68 61 73 20 64 72 61 | 77 6e 20 73 6f 6d 65 74 | has dra|wn somet|
|00001e10| 68 69 6e 67 20 69 6e 20 | 4d 6f 76 69 65 73 54 61 |hing in |MoviesTa|
|00001e20| 73 6b 2e 20 54 68 65 20 | 66 6c 61 67 73 20 61 6c |sk. The |flags al|
|00001e30| 6c 6f 77 20 74 68 69 73 | 2e 0d 65 6e 75 6d 20 7b |low this|..enum {|
|00001e40| 0d 09 6d 6f 76 69 65 44 | 72 61 77 69 6e 67 43 61 |..movieD|rawingCa|
|00001e50| 6c 6c 57 68 65 6e 43 68 | 61 6e 67 65 64 20 3d 20 |llWhenCh|anged = |
|00001e60| 30 2c 0d 09 6d 6f 76 69 | 65 44 72 61 77 69 6e 67 |0,..movi|eDrawing|
|00001e70| 43 61 6c 6c 41 6c 77 61 | 79 73 20 3d 20 31 0d 7d |CallAlwa|ys = 1.}|
|00001e80| 3b 0d 43 6f 6e 76 65 72 | 74 4d 6f 76 69 65 54 6f |;.Conver|tMovieTo|
|00001e90| 46 69 6c 65 0d 43 6f 6e | 76 65 72 74 4d 6f 76 69 |File.Con|vertMovi|
|00001ea0| 65 54 6f 46 69 6c 65 20 | 68 61 73 20 62 65 65 6e |eToFile |has been|
|00001eb0| 20 6d 6f 64 69 66 69 65 | 64 20 74 6f 20 73 75 70 | modifie|d to sup|
|00001ec0| 70 6f 72 74 20 61 20 d2 | 53 61 76 65 20 41 73 d3 |port a .|Save As.|
|00001ed0| 20 73 74 79 6c 65 20 64 | 69 61 6c 6f 67 2e 20 42 | style d|ialog. B|
|00001ee0| 79 20 73 65 74 74 69 6e | 67 20 74 68 65 20 73 68 |y settin|g the sh|
|00001ef0| 6f 77 55 73 65 72 53 65 | 74 74 69 6e 67 73 44 69 |owUserSe|ttingsDi|
|00001f00| 61 6c 6f 67 20 66 6c 61 | 67 20 6f 6e 20 69 6e 70 |alog fla|g on inp|
|00001f10| 75 74 2c 20 79 6f 75 20 | 63 61 6e 20 72 65 71 75 |ut, you |can requ|
|00001f20| 65 73 74 20 74 68 61 74 | 20 74 68 65 20 64 69 61 |est that| the dia|
|00001f30| 6c 6f 67 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |log be d|isplayed|
|00001f40| 2e 20 54 68 65 20 75 73 | 65 72 20 77 69 6c 6c 20 |. The us|er will |
|00001f50| 62 65 20 70 72 6f 6d 70 | 74 65 64 20 66 6f 72 20 |be promp|ted for |
|00001f60| 61 20 66 69 6c 65 20 6e | 61 6d 65 2c 20 61 6e 64 |a file n|ame, and|
|00001f70| 20 66 6f 72 20 74 68 65 | 20 74 79 70 65 20 6f 66 | for the| type of|
|00001f80| 20 66 69 6c 65 20 74 68 | 61 74 20 73 68 6f 75 6c | file th|at shoul|
|00001f90| 64 20 62 65 20 63 72 65 | 61 74 65 64 2e 20 4d 6f |d be cre|ated. Mo|
|00001fa0| 76 69 65 73 20 63 61 6e | 20 62 65 20 73 61 76 65 |vies can| be save|
|00001fb0| 64 20 61 73 20 d2 6e 6f | 72 6d 61 6c d3 20 72 65 |d as .no|rmal. re|
|00001fc0| 66 65 72 65 6e 63 65 20 | 6d 6f 76 69 65 73 2c 20 |ference |movies, |
|00001fd0| 66 6c 61 74 74 65 6e 65 | 64 20 6d 6f 76 69 65 73 |flattene|d movies|
|00001fe0| 2c 20 73 69 6e 67 6c 65 | 20 66 6f 72 6b 20 66 6c |, single| fork fl|
|00001ff0| 61 74 74 65 6e 65 64 20 | 6d 6f 76 69 65 73 2c 20 |attened |movies, |
|00002000| 6f 72 20 69 6e 20 61 6e | 79 20 66 6f 72 6d 61 74 |or in an|y format|
|00002010| 20 74 68 61 74 20 61 6e | 20 45 78 70 6f 72 74 20 | that an| Export |
|00002020| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 73 20 61 76 61 |componen|t is ava|
|00002030| 69 6c 61 62 6c 65 20 66 | 6f 72 2e 0d 49 6e 20 73 |ilable f|or..In s|
|00002040| 6f 6d 65 20 63 61 73 65 | 73 2c 20 61 6e 20 61 70 |ome case|s, an ap|
|00002050| 70 6c 69 63 61 74 69 6f | 6e 20 6d 61 79 20 6f 6e |plicatio|n may on|
|00002060| 6c 79 20 77 61 6e 74 20 | 65 78 70 6f 72 74 20 6f |ly want |export o|
|00002070| 70 74 69 6f 6e 73 20 64 | 69 73 70 6c 61 79 65 64 |ptions d|isplayed|
|00002080| 2e 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 |. In thi|s case, |
|00002090| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 62 69 |the foll|owing bi|
|000020a0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 73 65 74 0d |t should| be set.|
|000020b0| 6d 6f 76 69 65 54 6f 46 | 69 6c 65 4f 6e 6c 79 45 |movieToF|ileOnlyE|
|000020c0| 78 70 6f 72 74 20 3d 20 | 34 0d 4e 65 77 4d 6f 76 |xport = |4.NewMov|
|000020d0| 69 65 46 72 6f 6d 46 69 | 6c 65 0d 4e 65 77 4d 6f |ieFromFi|le.NewMo|
|000020e0| 76 69 65 46 72 6f 6d 46 | 69 6c 65 20 68 61 73 20 |vieFromF|ile has |
|000020f0| 62 65 65 6e 20 6d 6f 64 | 69 66 69 65 64 20 74 6f |been mod|ified to|
|00002100| 20 61 6c 6c 6f 77 20 6d | 6f 76 69 65 73 20 74 6f | allow m|ovies to|
|00002110| 20 62 65 20 6f 62 74 61 | 69 6e 65 64 20 66 72 6f | be obta|ined fro|
|00002120| 6d 20 63 65 72 74 61 69 | 6e 20 74 79 70 65 73 20 |m certai|n types |
|00002130| 6f 66 20 66 69 6c 65 73 | 20 77 68 69 63 68 20 64 |of files| which d|
|00002140| 6f 20 6e 6f 74 20 63 6f | 6e 74 61 69 6e 20 6d 6f |o not co|ntain mo|
|00002150| 76 69 65 20 72 65 73 6f | 75 72 63 65 73 2e 20 43 |vie reso|urces. C|
|00002160| 72 65 61 74 69 6e 67 20 | 61 20 51 75 69 63 6b 54 |reating |a QuickT|
|00002170| 69 6d 65 20 6d 6f 76 69 | 65 20 66 72 6f 6d 20 73 |ime movi|e from s|
|00002180| 6f 6d 65 20 74 79 70 65 | 73 20 6f 66 20 66 69 6c |ome type|s of fil|
|00002190| 65 73 20 69 73 20 61 20 | 73 69 6d 70 6c 65 20 6d |es is a |simple m|
|000021a0| 61 74 74 65 72 20 6f 66 | 20 63 72 65 61 74 69 6e |atter of| creatin|
|000021b0| 67 20 61 20 6d 65 64 69 | 61 20 77 68 69 63 68 20 |g a medi|a which |
|000021c0| 72 65 66 65 72 65 6e 63 | 65 73 20 74 68 65 20 65 |referenc|es the e|
|000021d0| 78 69 73 74 69 6e 67 20 | 64 61 74 61 2e 20 4e 6f |xisting |data. No|
|000021e0| 20 63 68 61 6e 67 65 20 | 74 6f 20 74 68 65 20 64 | change |to the d|
|000021f0| 61 74 61 20 69 73 20 6e | 65 63 65 73 73 61 72 79 |ata is n|ecessary|
|00002200| 2e 20 41 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |. An exa|mple of |
|00002210| 73 75 63 68 20 61 20 66 | 69 6c 65 20 69 73 20 41 |such a f|ile is A|
|00002220| 49 46 46 20 73 6f 75 6e | 64 20 66 69 6c 65 73 2e |IFF soun|d files.|
|00002230| 20 57 68 65 6e 20 4e 65 | 77 4d 6f 76 69 65 46 72 | When Ne|wMovieFr|
|00002240| 6f 6d 46 69 6c 65 20 66 | 69 6e 64 73 20 74 68 61 |omFile f|inds tha|
|00002250| 74 20 6e 6f 20 6d 6f 76 | 69 65 20 72 65 73 6f 75 |t no mov|ie resou|
|00002260| 72 63 65 20 69 73 20 70 | 72 65 73 65 6e 74 20 69 |rce is p|resent i|
|00002270| 6e 20 61 20 66 69 6c 65 | 2c 20 69 74 20 77 69 6c |n a file|, it wil|
|00002280| 6c 20 61 74 74 65 6d 70 | 74 20 74 6f 20 6c 6f 63 |l attemp|t to loc|
|00002290| 61 74 65 20 61 20 4d 6f | 76 69 65 20 49 6d 70 6f |ate a Mo|vie Impo|
|000022a0| 72 74 20 43 6f 6d 70 6f | 6e 65 6e 74 20 77 68 69 |rt Compo|nent whi|
|000022b0| 63 68 20 63 61 6e 20 63 | 72 65 61 74 65 20 61 20 |ch can c|reate a |
|000022c0| 6d 6f 76 69 65 20 72 65 | 66 65 72 65 6e 63 69 6e |movie re|ferencin|
|000022d0| 67 20 74 68 65 20 66 69 | 6c 65 2e 20 49 66 20 61 |g the fi|le. If a|
|000022e0| 6e 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 69 6d |n approp|riate im|
|000022f0| 70 6f 72 74 20 63 6f 6d | 70 6f 6e 65 6e 74 20 69 |port com|ponent i|
|00002300| 73 20 66 6f 75 6e 64 2c | 20 69 74 20 69 73 20 75 |s found,| it is u|
|00002310| 73 65 64 20 74 6f 20 67 | 65 6e 65 72 61 74 65 20 |sed to g|enerate |
|00002320| 74 68 65 20 6d 6f 76 69 | 65 20 77 68 69 63 68 20 |the movi|e which |
|00002330| 69 73 20 72 65 74 75 72 | 6e 65 64 20 66 72 6f 6d |is retur|ned from|
|00002340| 20 4e 65 77 4d 6f 76 69 | 65 46 72 6f 6d 46 69 6c | NewMovi|eFromFil|
|00002350| 65 2e 20 46 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |e. For m|ore deta|
|00002360| 69 6c 73 2c 20 73 65 65 | 20 74 68 65 20 73 65 63 |ils, see| the sec|
|00002370| 74 69 6f 6e 20 6f 6e 20 | 69 6d 70 6f 72 74 20 63 |tion on |import c|
|00002380| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 20 0d 54 72 61 63 |omponent|s. .Trac|
|00002390| 6b 20 52 65 66 65 72 65 | 6e 63 65 73 0d 54 72 61 |k Refere|nces.Tra|
|000023a0| 63 6b 20 52 65 66 65 72 | 65 6e 63 65 73 20 61 72 |ck Refer|ences ar|
|000023b0| 65 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 66 65 77 |e one of| the few|
|000023c0| 20 6e 65 77 20 6d 61 6a | 6f 72 20 6e 65 77 20 63 | new maj|or new c|
|000023d0| 6f 6e 63 65 70 74 73 20 | 69 6e 20 74 68 65 20 4d |oncepts |in the M|
|000023e0| 6f 76 69 65 20 54 6f 6f | 6c 62 6f 78 20 66 6f 72 |ovie Too|lbox for|
|000023f0| 20 4e 69 63 6f 2e 20 51 | 75 69 63 6b 54 69 6d 65 | Nico. Q|uickTime|
|00002400| d5 73 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 6d |.s suppo|rt for m|
|00002410| 75 6c 74 69 70 6c 65 20 | 74 72 61 63 6b 73 20 61 |ultiple |tracks a|
|00002420| 6c 6c 6f 77 73 20 66 6f | 72 20 6d 61 6e 79 20 69 |llows fo|r many i|
|00002430| 6e 74 65 72 65 73 74 69 | 6e 67 20 6d 6f 76 69 65 |nteresti|ng movie|
|00002440| 73 20 74 6f 20 62 65 20 | 63 6f 6e 73 74 72 75 63 |s to be |construc|
|00002450| 74 65 64 2e 20 55 6e 66 | 6f 72 74 75 6e 61 74 65 |ted. Unf|ortunate|
|00002460| 6c 79 2c 20 74 68 65 20 | 74 72 61 63 6b 73 20 74 |ly, the |tracks t|
|00002470| 68 65 6d 73 65 6c 76 65 | 73 20 6f 6e 6c 79 20 64 |hemselve|s only d|
|00002480| 65 73 63 72 69 62 65 20 | 74 68 65 20 6b 69 6e 64 |escribe |the kind|
|00002490| 20 6f 66 20 6d 65 64 69 | 61 20 74 68 61 74 20 74 | of medi|a that t|
|000024a0| 68 65 20 74 72 61 63 6b | 20 63 6f 6e 74 61 69 6e |he track| contain|
|000024b0| 73 2e 20 54 68 65 72 65 | 20 69 73 20 6e 6f 20 69 |s. There| is no i|
|000024c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 64 65 73 63 72 |nformati|on descr|
|000024d0| 69 62 69 6e 67 20 74 68 | 65 20 74 72 61 63 6b 73 |ibing th|e tracks|
|000024e0| 20 72 65 6c 61 74 69 6f | 6e 73 68 69 70 20 74 6f | relatio|nship to|
|000024f0| 20 6f 6e 65 20 61 6e 6f | 74 68 65 72 2e 20 46 6f | one ano|ther. Fo|
|00002500| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 6e 20 61 20 |r exampl|e, in a |
|00002510| 6d 6f 76 69 65 20 77 69 | 74 68 20 61 20 73 6f 75 |movie wi|th a sou|
|00002520| 6e 64 2c 20 76 69 64 65 | 6f 2c 20 61 6e 64 20 74 |nd, vide|o, and t|
|00002530| 65 78 74 20 74 72 61 63 | 6b 2c 20 74 68 65 72 65 |ext trac|k, there|
|00002540| 20 69 73 20 6e 6f 20 77 | 61 79 20 74 6f 20 6b 6e | is no w|ay to kn|
|00002550| 6f 77 20 69 66 20 74 68 | 65 20 74 65 78 74 20 74 |ow if th|e text t|
|00002560| 72 61 63 6b 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |rack con|tains th|
|00002570| 65 20 73 63 72 69 70 74 | 2c 20 63 68 61 72 61 63 |e script|, charac|
|00002580| 74 65 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ter info|rmation,|
|00002590| 20 63 6f 6d 6d 65 6e 74 | 61 72 79 2c 20 73 75 62 | comment|ary, sub|
|000025a0| 74 69 74 6c 65 73 2c 20 | 6f 72 20 6f 74 68 65 72 |titles, |or other|
|000025b0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 20 54 72 | informa|tion. Tr|
|000025c0| 61 63 6b 20 52 65 66 65 | 72 65 6e 63 65 73 20 70 |ack Refe|rences p|
|000025d0| 72 6f 76 69 64 65 20 61 | 20 67 65 6e 65 72 61 6c |rovide a| general|
|000025e0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 66 6f 72 20 64 | mechani|sm for d|
|000025f0| 65 73 63 72 69 62 69 6e | 67 20 61 6e 20 61 72 62 |escribin|g an arb|
|00002600| 69 74 72 61 72 69 6c 79 | 20 63 6f 6d 70 6c 65 78 |itrarily| complex|
|00002610| 20 77 65 62 20 6f 66 20 | 74 72 61 63 6b 20 72 65 | web of |track re|
|00002620| 6c 61 74 69 6f 6e 73 68 | 69 70 73 20 69 6e 20 61 |lationsh|ips in a|
|00002630| 20 51 75 69 63 6b 54 69 | 6d 65 20 6d 6f 76 69 65 | QuickTi|me movie|
|00002640| 2e 0d 45 61 63 68 20 74 | 72 61 63 6b 20 6d 61 69 |..Each t|rack mai|
|00002650| 6e 74 61 69 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |ntains a| list of|
|00002660| 20 61 6c 6c 20 6f 74 68 | 65 72 20 74 72 61 63 6b | all oth|er track|
|00002670| 73 20 74 68 61 74 20 69 | 74 20 72 65 66 65 72 65 |s that i|t refere|
|00002680| 6e 63 65 73 2e 20 54 68 | 65 20 74 79 70 65 20 6f |nces. Th|e type o|
|00002690| 66 20 74 72 61 63 6b 20 | 72 65 66 65 72 65 6e 63 |f track |referenc|
|000026a0| 65 20 69 73 20 64 65 73 | 63 72 69 62 65 64 20 62 |e is des|cribed b|
|000026b0| 79 20 61 6e 20 4f 53 54 | 79 70 65 2e 20 41 73 20 |y an OST|ype. As |
|000026c0| 61 6c 77 61 79 73 2c 20 | 6c 6f 77 65 72 63 61 73 |always, |lowercas|
|000026d0| 65 20 6f 6e 6c 79 20 74 | 79 70 65 73 20 61 72 65 |e only t|ypes are|
|000026e0| 20 72 65 73 65 72 76 65 | 64 20 66 6f 72 20 75 73 | reserve|d for us|
|000026f0| 65 20 62 79 20 41 70 70 | 6c 65 2e 20 4f 74 68 65 |e by App|le. Othe|
|00002700| 72 73 20 63 61 6e 20 62 | 65 20 64 65 66 69 6e 65 |rs can b|e define|
|00002710| 64 20 62 79 20 74 68 65 | 20 64 65 76 65 6c 6f 70 |d by the| develop|
|00002720| 65 72 20 63 6f 6d 6d 75 | 6e 69 74 79 2e 20 45 61 |er commu|nity. Ea|
|00002730| 63 68 20 74 72 61 63 6b | 20 6d 61 79 20 68 61 76 |ch track| may hav|
|00002740| 65 20 61 6e 20 61 72 62 | 69 74 72 61 72 79 20 6e |e an arb|itrary n|
|00002750| 75 6d 62 65 72 20 6f 66 | 20 74 72 61 63 6b 20 72 |umber of| track r|
|00002760| 65 66 65 72 65 6e 63 65 | 20 74 79 70 65 73 2e 20 |eference| types. |
|00002770| 54 68 65 72 65 20 6d 61 | 79 20 62 65 20 61 6e 79 |There ma|y be any|
|00002780| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 72 61 63 6b | number |of track|
|00002790| 20 72 65 66 65 72 65 6e | 63 65 73 20 6f 66 20 61 | referen|ces of a|
|000027a0| 20 67 69 76 65 6e 20 74 | 72 61 63 6b 20 72 65 66 | given t|rack ref|
|000027b0| 65 72 65 6e 63 65 20 74 | 79 70 65 20 69 6e 20 65 |erence t|ype in e|
|000027c0| 61 63 68 20 74 72 61 63 | 6b 2e 20 46 6f 72 20 65 |ach trac|k. For e|
|000027d0| 78 61 6d 70 6c 65 2c 20 | 69 66 20 61 20 72 65 66 |xample, |if a ref|
|000027e0| 65 72 65 6e 63 65 20 74 | 79 70 65 20 69 6e 64 69 |erence t|ype indi|
|000027f0| 63 61 74 65 64 20 74 68 | 61 74 20 6f 6e 65 20 74 |cated th|at one t|
|00002800| 72 61 63 6b 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |rack con|tains th|
|00002810| 65 20 61 75 64 69 6f 20 | 66 6f 72 20 74 68 65 20 |e audio |for the |
|00002820| 74 72 61 63 6b 20 73 70 | 65 63 69 66 79 69 6e 67 |track sp|ecifying|
|00002830| 20 74 68 65 20 72 65 66 | 65 72 65 6e 63 65 2c 20 | the ref|erence, |
|00002840| 6f 6e 65 20 76 69 64 65 | 6f 20 74 72 61 63 6b 20 |one vide|o track |
|00002850| 6d 69 67 68 74 20 63 6f | 6e 74 61 69 6e 20 74 77 |might co|ntain tw|
|00002860| 6f 20 73 75 63 68 20 72 | 65 66 65 72 65 6e 63 65 |o such r|eference|
|00002870| 73 2c 20 6f 6e 65 20 66 | 6f 72 20 74 68 65 20 73 |s, one f|or the s|
|00002880| 70 6f 6b 65 6e 20 70 6f | 72 74 69 6f 6e 20 6f 66 |poken po|rtion of|
|00002890| 20 74 68 65 20 61 75 64 | 69 6f 20 61 6e 64 20 6f | the aud|io and o|
|000028a0| 6e 65 20 66 6f 72 20 74 | 68 65 20 62 61 63 6b 67 |ne for t|he backg|
|000028b0| 72 6f 75 6e 64 20 6d 75 | 73 69 63 2e 0d 54 72 61 |round mu|sic..Tra|
|000028c0| 63 6b 20 72 65 66 65 72 | 65 6e 63 65 73 20 61 72 |ck refer|ences ar|
|000028d0| 65 20 73 61 76 65 64 20 | 77 69 74 68 20 6d 6f 76 |e saved |with mov|
|000028e0| 69 65 73 2e 20 54 68 65 | 79 20 61 72 65 20 6d 61 |ies. The|y are ma|
|000028f0| 69 6e 74 61 69 6e 65 64 | 20 62 79 20 65 64 69 74 |intained| by edit|
|00002900| 73 20 69 66 20 68 69 67 | 68 20 6c 65 76 65 6c 20 |s if hig|h level |
|00002910| 6d 6f 76 69 65 20 74 6f | 6f 6c 62 6f 78 20 65 64 |movie to|olbox ed|
|00002920| 69 74 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 61 |iting co|mmands a|
|00002930| 72 65 20 75 73 65 64 20 | 28 6f 6e 6c 79 20 74 68 |re used |(only th|
|00002940| 6f 73 65 20 65 64 69 74 | 69 6e 67 20 63 61 6c 6c |ose edit|ing call|
|00002950| 73 20 77 68 69 63 68 20 | 64 65 61 6c 20 64 69 72 |s which |deal dir|
|00002960| 65 63 74 6c 79 20 77 69 | 74 68 20 74 72 61 63 6b |ectly wi|th track|
|00002970| 73 20 64 6f 20 6e 6f 74 | 20 6d 61 69 6e 74 61 69 |s do not| maintai|
|00002980| 6e 20 74 72 61 63 6b 20 | 72 65 66 65 72 65 6e 63 |n track |referenc|
|00002990| 65 73 29 2e 0d 50 72 65 | 73 65 6e 74 6c 79 2c 20 |es)..Pre|sently, |
|000029a0| 74 68 65 20 6f 6e 6c 79 | 20 41 70 70 6c 65 20 64 |the only| Apple d|
|000029b0| 65 66 69 6e 65 64 20 75 | 73 65 20 66 6f 72 20 54 |efined u|se for T|
|000029c0| 72 61 63 6b 20 52 65 66 | 65 72 65 6e 63 65 73 20 |rack Ref|erences |
|000029d0| 69 73 20 74 6f 20 69 6e | 64 69 63 61 74 65 20 74 |is to in|dicate t|
|000029e0| 68 65 20 54 69 6d 65 20 | 43 6f 64 65 20 74 72 61 |he Time |Code tra|
|000029f0| 63 6b 20 66 6f 72 20 61 | 20 67 69 76 65 6e 20 74 |ck for a| given t|
|00002a00| 72 61 63 6b 2e 0d 20 0d | 70 61 73 63 61 6c 20 4f |rack.. .|pascal O|
|00002a10| 53 45 72 72 20 41 64 64 | 54 72 61 63 6b 52 65 66 |SErr Add|TrackRef|
|00002a20| 65 72 65 6e 63 65 28 54 | 72 61 63 6b 20 74 68 65 |erence(T|rack the|
|00002a30| 54 72 61 63 6b 2c 20 54 | 72 61 63 6b 20 72 65 66 |Track, T|rack ref|
|00002a40| 54 72 61 63 6b 2c 20 4f | 53 54 79 70 65 20 72 65 |Track, O|SType re|
|00002a50| 66 54 79 70 65 2c 20 6c | 6f 6e 67 20 2a 61 64 64 |fType, l|ong *add|
|00002a60| 65 64 49 6e 64 65 78 29 | 3b 0d 43 72 65 61 74 65 |edIndex)|;.Create|
|00002a70| 73 20 61 20 6e 65 77 20 | 74 72 61 63 6b 20 72 65 |s a new |track re|
|00002a80| 66 65 72 65 6e 63 65 20 | 66 6f 72 20 74 68 65 54 |ference |for theT|
|00002a90| 72 61 63 6b 20 72 65 66 | 65 72 72 69 6e 67 20 74 |rack ref|erring t|
|00002aa0| 6f 20 72 65 66 54 72 61 | 63 6b 2e 20 54 68 65 20 |o refTra|ck. The |
|00002ab0| 72 65 66 65 72 65 6e 63 | 65 20 77 69 6c 6c 20 62 |referenc|e will b|
|00002ac0| 65 20 6f 66 20 74 79 70 | 65 20 72 65 66 54 79 70 |e of typ|e refTyp|
|00002ad0| 65 2e 20 54 68 65 20 69 | 6e 64 65 78 20 74 68 61 |e. The i|ndex tha|
|00002ae0| 74 20 74 68 65 20 72 65 | 66 65 72 65 6e 63 65 20 |t the re|ference |
|00002af0| 77 61 73 20 61 64 64 65 | 64 20 77 69 6c 6c 20 62 |was adde|d will b|
|00002b00| 65 20 72 65 74 75 72 6e | 65 64 20 69 6e 20 61 64 |e return|ed in ad|
|00002b10| 64 65 64 49 6e 64 65 78 | 2e 20 61 64 64 65 64 49 |dedIndex|. addedI|
|00002b20| 6e 64 65 78 20 6d 61 79 | 20 62 65 20 73 65 74 20 |ndex may| be set |
|00002b30| 74 6f 20 6e 69 6c 2e 20 | 57 69 74 68 69 6e 20 65 |to nil. |Within e|
|00002b40| 61 63 68 20 74 72 61 63 | 6b 20 72 65 66 65 72 65 |ach trac|k refere|
|00002b50| 6e 63 65 20 74 79 70 65 | 2c 20 74 68 65 20 69 6e |nce type|, the in|
|00002b60| 64 65 78 20 76 61 6c 75 | 65 73 20 62 65 67 69 6e |dex valu|es begin|
|00002b70| 20 61 74 20 31 2e 0d 70 | 61 73 63 61 6c 20 4f 53 | at 1..p|ascal OS|
|00002b80| 45 72 72 20 44 65 6c 65 | 74 65 54 72 61 63 6b 52 |Err Dele|teTrackR|
|00002b90| 65 66 65 72 65 6e 63 65 | 28 54 72 61 63 6b 20 74 |eference|(Track t|
|00002ba0| 68 65 54 72 61 63 6b 2c | 20 4f 53 54 79 70 65 20 |heTrack,| OSType |
|00002bb0| 72 65 66 54 79 70 65 2c | 20 6c 6f 6e 67 20 69 6e |refType,| long in|
|00002bc0| 64 65 78 29 3b 0d 44 65 | 6c 65 74 65 73 20 74 68 |dex);.De|letes th|
|00002bd0| 65 20 74 72 61 63 6b 20 | 72 65 66 65 72 65 6e 63 |e track |referenc|
|00002be0| 65 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 74 |e contai|ned in t|
|00002bf0| 68 65 54 72 61 63 6b 2c | 20 61 6e 64 20 73 70 65 |heTrack,| and spe|
|00002c00| 63 69 66 69 65 64 20 62 | 79 20 72 65 66 54 79 70 |cified b|y refTyp|
|00002c10| 65 20 61 6e 64 20 69 6e | 64 65 78 2e 20 49 66 20 |e and in|dex. If |
|00002c20| 74 68 65 72 65 20 61 72 | 65 20 6f 74 68 65 72 20 |there ar|e other |
|00002c30| 72 65 66 65 72 65 6e 63 | 65 73 20 6f 66 20 74 68 |referenc|es of th|
|00002c40| 65 20 73 61 6d 65 20 74 | 79 70 65 20 77 69 74 68 |e same t|ype with|
|00002c50| 20 61 6e 20 69 6e 64 65 | 78 20 76 61 6c 75 65 20 | an inde|x value |
|00002c60| 67 72 65 61 74 65 72 20 | 74 68 61 6e 20 69 6e 64 |greater |than ind|
|00002c70| 65 78 2c 20 74 68 65 69 | 72 20 69 6e 64 69 63 65 |ex, thei|r indice|
|00002c80| 73 20 77 69 6c 6c 20 65 | 61 63 68 20 62 65 20 64 |s will e|ach be d|
|00002c90| 65 63 72 65 6d 65 6e 74 | 65 64 20 62 79 20 6f 6e |ecrement|ed by on|
|00002ca0| 65 2e 0d 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 |e..pasca|l OSErr |
|00002cb0| 53 65 74 54 72 61 63 6b | 52 65 66 65 72 65 6e 63 |SetTrack|Referenc|
|00002cc0| 65 28 54 72 61 63 6b 20 | 74 68 65 54 72 61 63 6b |e(Track |theTrack|
|00002cd0| 2c 20 54 72 61 63 6b 20 | 72 65 66 54 72 61 63 6b |, Track |refTrack|
|00002ce0| 2c 20 4f 53 54 79 70 65 | 20 72 65 66 54 79 70 65 |, OSType| refType|
|00002cf0| 2c 20 6c 6f 6e 67 20 69 | 6e 64 65 78 29 3b 0d 4d |, long i|ndex);.M|
|00002d00| 6f 64 69 66 69 65 73 20 | 61 6e 20 65 78 69 73 74 |odifies |an exist|
|00002d10| 69 6e 67 20 74 72 61 63 | 6b 20 72 65 66 65 72 65 |ing trac|k refere|
|00002d20| 6e 63 65 2e 20 54 68 65 | 20 72 65 66 65 72 65 6e |nce. The| referen|
|00002d30| 63 65 20 69 73 20 63 6f | 6e 74 61 69 6e 65 64 20 |ce is co|ntained |
|00002d40| 69 6e 20 74 68 65 20 74 | 68 65 54 72 61 63 6b 2c |in the t|heTrack,|
|00002d50| 20 69 73 20 6f 66 20 74 | 79 70 65 20 72 65 66 54 | is of t|ype refT|
|00002d60| 79 70 65 2c 20 61 6e 64 | 20 68 61 73 20 61 6e 20 |ype, and| has an |
|00002d70| 69 6e 64 65 78 20 76 61 | 6c 75 65 20 6f 66 20 69 |index va|lue of i|
|00002d80| 6e 64 65 78 2e 20 54 68 | 65 20 72 65 66 65 72 65 |ndex. Th|e refere|
|00002d90| 6e 63 65 20 77 69 6c 6c | 20 62 65 20 6d 6f 64 69 |nce will| be modi|
|00002da0| 66 69 65 64 20 74 6f 20 | 72 65 66 65 72 20 74 6f |fied to |refer to|
|00002db0| 20 72 65 66 54 72 61 63 | 6b 2e 0d 70 61 73 63 61 | refTrac|k..pasca|
|00002dc0| 6c 20 54 72 61 63 6b 20 | 47 65 74 54 72 61 63 6b |l Track |GetTrack|
|00002dd0| 52 65 66 65 72 65 6e 63 | 65 28 54 72 61 63 6b 20 |Referenc|e(Track |
|00002de0| 74 68 65 54 72 61 63 6b | 2c 20 4f 53 54 79 70 65 |theTrack|, OSType|
|00002df0| 20 72 65 66 54 79 70 65 | 2c 20 6c 6f 6e 67 20 69 | refType|, long i|
|00002e00| 6e 64 65 78 29 3b 0d 52 | 65 74 75 72 6e 73 20 74 |ndex);.R|eturns t|
|00002e10| 68 65 20 74 72 61 63 6b | 20 72 65 66 65 72 72 65 |he track| referre|
|00002e20| 64 20 74 6f 20 62 79 20 | 74 68 65 20 72 65 66 65 |d to by |the refe|
|00002e30| 72 65 6e 63 65 20 63 6f | 6e 74 61 69 6e 65 64 20 |rence co|ntained |
|00002e40| 69 6e 20 74 68 65 54 72 | 61 63 6b 2c 20 6f 66 20 |in theTr|ack, of |
|00002e50| 74 79 70 65 20 72 65 66 | 54 79 70 65 2c 20 61 6e |type ref|Type, an|
|00002e60| 64 20 69 6e 64 65 78 20 | 6f 66 20 69 6e 64 65 78 |d index |of index|
|00002e70| 2e 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |. If the|re is no|
|00002e80| 20 73 75 63 68 20 72 65 | 66 65 72 65 6e 63 65 2c | such re|ference,|
|00002e90| 20 6e 69 6c 20 69 73 20 | 72 65 74 75 72 6e 65 64 | nil is |returned|
|00002ea0| 2e 0d 70 61 73 63 61 6c | 20 4f 53 54 79 70 65 20 |..pascal| OSType |
|00002eb0| 47 65 74 4e 65 78 74 54 | 72 61 63 6b 52 65 66 65 |GetNextT|rackRefe|
|00002ec0| 72 65 6e 63 65 54 79 70 | 65 28 54 72 61 63 6b 20 |renceTyp|e(Track |
|00002ed0| 74 68 65 54 72 61 63 6b | 2c 20 4f 53 54 79 70 65 |theTrack|, OSType|
|00002ee0| 20 72 65 66 54 79 70 65 | 29 3b 0d 47 65 74 4e 65 | refType|);.GetNe|
|00002ef0| 78 74 54 72 61 63 6b 52 | 65 66 65 72 65 6e 63 65 |xtTrackR|eference|
|00002f00| 54 79 70 65 20 61 6c 6c | 6f 77 73 20 79 6f 75 20 |Type all|ows you |
|00002f10| 74 6f 20 69 74 65 72 61 | 74 65 20 74 68 72 6f 75 |to itera|te throu|
|00002f20| 67 68 20 61 6c 6c 20 74 | 68 65 20 72 65 66 65 72 |gh all t|he refer|
|00002f30| 65 6e 63 65 20 74 79 70 | 65 73 20 66 6f 72 20 61 |ence typ|es for a|
|00002f40| 20 67 69 76 65 6e 20 74 | 72 61 63 6b 2e 20 54 6f | given t|rack. To|
|00002f50| 20 6f 62 74 61 69 6e 20 | 74 68 65 20 66 69 72 73 | obtain |the firs|
|00002f60| 74 20 72 65 66 65 72 65 | 6e 63 65 20 74 79 70 65 |t refere|nce type|
|00002f70| 2c 20 70 61 73 73 20 30 | 20 66 6f 72 20 72 65 66 |, pass 0| for ref|
|00002f80| 54 79 70 65 2e 20 46 6f | 72 20 65 61 63 68 20 73 |Type. Fo|r each s|
|00002f90| 75 63 63 65 73 73 69 76 | 65 20 72 65 66 65 72 65 |uccessiv|e refere|
|00002fa0| 6e 63 65 20 74 79 70 65 | 2c 20 70 61 73 73 20 69 |nce type|, pass i|
|00002fb0| 6e 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 72 |n the pr|evious r|
|00002fc0| 65 66 54 79 70 65 2e 20 | 57 68 65 6e 20 74 68 65 |efType. |When the|
|00002fd0| 72 65 20 61 72 65 20 6e | 6f 20 6d 6f 72 65 20 72 |re are n|o more r|
|00002fe0| 65 66 65 72 65 6e 63 65 | 20 74 79 70 65 73 2c 20 |eference| types, |
|00002ff0| 30 20 69 73 20 72 65 74 | 75 72 6e 65 64 2e 0d 70 |0 is ret|urned..p|
|00003000| 61 73 63 61 6c 20 6c 6f | 6e 67 20 47 65 74 54 72 |ascal lo|ng GetTr|
|00003010| 61 63 6b 52 65 66 65 72 | 65 6e 63 65 43 6f 75 6e |ackRefer|enceCoun|
|00003020| 74 28 54 72 61 63 6b 20 | 74 68 65 54 72 61 63 6b |t(Track |theTrack|
|00003030| 2c 20 4f 53 54 79 70 65 | 20 72 65 66 54 79 70 65 |, OSType| refType|
|00003040| 29 3b 0d 52 65 74 75 72 | 6e 73 20 74 68 65 20 6e |);.Retur|ns the n|
|00003050| 75 6d 62 65 72 20 6f 66 | 20 72 65 66 65 72 65 6e |umber of| referen|
|00003060| 63 65 73 20 6f 66 20 74 | 68 65 20 74 79 70 65 20 |ces of t|he type |
|00003070| 72 65 66 54 79 70 65 20 | 63 6f 6e 74 61 69 6e 65 |refType |containe|
|00003080| 64 20 69 6e 20 74 68 65 | 54 72 61 63 6b 2e 20 49 |d in the|Track. I|
|00003090| 66 20 74 68 65 72 65 20 | 61 72 65 20 6e 6f 20 72 |f there |are no r|
|000030a0| 65 66 65 72 65 6e 63 65 | 73 20 6f 66 20 74 68 65 |eference|s of the|
|000030b0| 20 67 69 76 65 6e 20 74 | 79 70 65 2c 20 30 20 69 | given t|ype, 0 i|
|000030c0| 73 20 72 65 74 75 72 6e | 65 64 2e 0d 47 65 74 4d |s return|ed..GetM|
|000030d0| 6f 76 69 65 49 6e 64 54 | 72 61 63 6b 54 79 70 65 |ovieIndT|rackType|
|000030e0| 0d 70 61 73 63 61 6c 20 | 54 72 61 63 6b 20 47 65 |.pascal |Track Ge|
|000030f0| 74 4d 6f 76 69 65 49 6e | 64 54 72 61 63 6b 54 79 |tMovieIn|dTrackTy|
|00003100| 70 65 28 4d 6f 76 69 65 | 20 74 68 65 4d 6f 76 69 |pe(Movie| theMovi|
|00003110| 65 2c 20 6c 6f 6e 67 20 | 69 6e 64 65 78 2c 20 4f |e, long |index, O|
|00003120| 53 54 79 70 65 20 74 72 | 61 63 6b 54 79 70 65 2c |SType tr|ackType,|
|00003130| 20 6c 6f 6e 67 20 66 6c | 61 67 73 29 0d 47 65 74 | long fl|ags).Get|
|00003140| 4d 6f 76 69 65 49 6e 64 | 54 72 61 63 6b 54 79 70 |MovieInd|TrackTyp|
|00003150| 65 20 70 72 6f 76 69 64 | 65 73 20 61 6e 20 65 61 |e provid|es an ea|
|00003160| 73 79 20 77 61 79 20 74 | 6f 20 69 74 65 72 61 74 |sy way t|o iterat|
|00003170| 65 20 74 68 72 6f 75 67 | 68 20 61 6c 6c 20 74 72 |e throug|h all tr|
|00003180| 61 63 6b 73 20 69 6e 20 | 61 20 6d 6f 76 69 65 20 |acks in |a movie |
|00003190| 6f 66 20 65 69 74 68 65 | 72 20 61 20 67 69 76 65 |of eithe|r a give|
|000031a0| 6e 20 6d 65 64 69 61 20 | 74 79 70 65 20 6f 72 20 |n media |type or |
|000031b0| 20 77 68 69 63 68 20 73 | 75 70 70 6f 72 74 20 61 | which s|upport a|
|000031c0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 6d 65 64 69 | particu|lar medi|
|000031d0| 61 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |a charac|teristic|
|000031e0| 2e 20 54 68 65 20 6d 6f | 76 69 65 20 74 6f 20 73 |. The mo|vie to s|
|000031f0| 63 61 6e 20 69 73 20 70 | 61 73 73 65 64 20 69 6e |can is p|assed in|
|00003200| 20 74 68 65 4d 6f 76 69 | 65 20 70 61 72 61 6d 65 | theMovi|e parame|
|00003210| 74 65 72 2e 20 54 68 65 | 20 69 6e 64 65 78 20 70 |ter. The| index p|
|00003220| 61 72 61 6d 65 74 65 72 | 20 69 73 20 61 20 76 61 |arameter| is a va|
|00003230| 6c 75 65 20 66 72 6f 6d | 20 31 20 74 6f 20 6e 2e |lue from| 1 to n.|
|00003240| 20 54 68 65 20 69 6e 64 | 65 78 20 76 61 6c 75 65 | The ind|ex value|
|00003250| 73 20 74 6f 20 6e 6f 74 | 20 72 65 66 65 72 20 74 |s to not| refer t|
|00003260| 6f 20 74 68 65 20 74 72 | 61 63 6b d5 73 20 69 6e |o the tr|ack.s in|
|00003270| 64 65 78 20 69 6e 20 74 | 68 65 20 6d 6f 76 69 65 |dex in t|he movie|
|00003280| 2e 20 20 54 68 65 20 6d | 65 64 69 61 20 74 79 70 |. The m|edia typ|
|00003290| 65 20 6f 72 20 6d 65 64 | 69 61 20 63 68 61 72 61 |e or med|ia chara|
|000032a0| 63 74 65 72 69 73 74 69 | 63 20 74 6f 20 73 65 61 |cteristi|c to sea|
|000032b0| 72 63 68 20 66 6f 72 20 | 69 73 20 70 61 73 73 65 |rch for |is passe|
|000032c0| 64 20 69 6e 20 74 68 65 | 20 74 72 61 63 6b 54 79 |d in the| trackTy|
|000032d0| 70 65 20 66 69 65 6c 64 | 2e 20 54 68 65 20 66 6c |pe field|. The fl|
|000032e0| 61 67 73 20 66 69 65 6c | 64 20 61 6c 6c 6f 77 73 |ags fiel|d allows|
|000032f0| 20 79 6f 75 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 | you to |control |
|00003300| 77 68 65 74 68 65 72 20 | 74 68 65 20 74 72 61 63 |whether |the trac|
|00003310| 6b 54 79 70 65 20 66 69 | 65 6c 64 20 69 73 20 69 |kType fi|eld is i|
|00003320| 6e 74 65 72 70 72 65 74 | 65 64 20 61 73 20 61 20 |nterpret|ed as a |
|00003330| 6d 65 64 69 61 20 74 79 | 70 65 20 6f 72 20 61 20 |media ty|pe or a |
|00003340| 6d 65 64 69 61 20 63 68 | 61 72 61 63 74 65 72 69 |media ch|aracteri|
|00003350| 73 74 69 63 2e 20 49 74 | 20 69 73 20 61 6e 20 65 |stic. It| is an e|
|00003360| 72 72 6f 72 20 74 6f 20 | 70 61 73 73 20 62 6f 74 |rror to |pass bot|
|00003370| 68 20 6d 6f 76 69 65 54 | 72 61 63 6b 4d 65 64 69 |h movieT|rackMedi|
|00003380| 61 54 79 70 65 20 20 61 | 6e 64 20 6d 6f 76 69 65 |aType a|nd movie|
|00003390| 54 72 61 63 6b 43 68 61 | 72 61 63 74 65 72 69 73 |TrackCha|racteris|
|000033a0| 74 69 63 2e 20 49 66 20 | 79 6f 75 20 6f 6e 6c 79 |tic. If |you only|
|000033b0| 20 77 61 6e 74 20 74 6f | 20 69 74 65 72 61 74 65 | want to| iterate|
|000033c0| 20 74 68 72 6f 75 67 68 | 20 20 65 6e 61 62 6c 65 | through| enable|
|000033d0| 64 20 74 72 61 63 6b 73 | 2c 20 73 65 74 20 74 68 |d tracks|, set th|
|000033e0| 65 20 6d 6f 76 69 65 54 | 72 61 63 6b 45 6e 61 62 |e movieT|rackEnab|
|000033f0| 6c 65 64 4f 6e 6c 79 20 | 66 6c 61 67 2e 0d 65 6e |ledOnly |flag..en|
|00003400| 75 6d 20 7b 0d 09 6d 6f | 76 69 65 54 72 61 63 6b |um {..mo|vieTrack|
|00003410| 4d 65 64 69 61 54 79 70 | 65 20 3d 20 31 3c 3c 30 |MediaTyp|e = 1<<0|
|00003420| 2c 0d 09 6d 6f 76 69 65 | 54 72 61 63 6b 43 68 61 |,..movie|TrackCha|
|00003430| 72 61 63 74 65 72 69 73 | 74 69 63 20 3d 20 31 3c |racteris|tic = 1<|
|00003440| 3c 31 2c 0d 09 6d 6f 76 | 69 65 54 72 61 63 6b 45 |<1,..mov|ieTrackE|
|00003450| 6e 61 62 6c 65 64 4f 6e | 6c 79 20 3d 20 31 3c 3c |nabledOn|ly = 1<<|
|00003460| 32 0d 7d 3b 0d 49 66 20 | 61 20 74 72 61 63 6b 20 |2.};.If |a track |
|00003470| 63 61 6e 6e 6f 74 20 62 | 65 20 66 6f 75 6e 64 20 |cannot b|e found |
|00003480| 74 6f 20 6d 61 74 63 68 | 20 74 68 65 20 73 70 65 |to match| the spe|
|00003490| 63 69 66 69 65 64 20 63 | 72 69 74 65 72 69 61 2c |cified c|riteria,|
|000034a0| 20 6e 69 6c 20 69 73 20 | 72 65 74 75 72 6e 65 64 | nil is |returned|
|000034b0| 2e 0d 41 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 2c |..As an |example,|
|000034c0| 20 74 6f 20 66 69 6e 64 | 20 74 68 65 20 74 68 69 | to find| the thi|
|000034d0| 72 64 20 65 6e 61 62 6c | 65 64 20 74 72 61 63 6b |rd enabl|ed track|
|000034e0| 20 69 6e 20 61 20 6d 6f | 76 69 65 20 74 68 61 74 | in a mo|vie that|
|000034f0| 20 73 75 70 70 6f 72 74 | 73 20 74 68 65 20 73 6f | support|s the so|
|00003500| 75 6e 64 20 63 68 61 72 | 61 63 74 65 72 69 73 74 |und char|acterist|
|00003510| 69 63 2c 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ic, the |followin|
|00003520| 67 20 6c 69 6e 65 20 6f | 66 20 63 6f 64 65 20 63 |g line o|f code c|
|00003530| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 2e 0d 74 68 |ould be |used..th|
|00003540| 65 54 72 61 63 6b 20 3d | 20 47 65 74 4d 6f 76 69 |eTrack =| GetMovi|
|00003550| 65 49 6e 64 54 72 61 63 | 6b 54 79 70 65 28 74 68 |eIndTrac|kType(th|
|00003560| 65 4d 6f 76 69 65 2c 20 | 33 2c 20 41 75 64 69 6f |eMovie, |3, Audio|
|00003570| 4d 65 64 69 61 43 68 61 | 72 61 63 74 65 72 69 73 |MediaCha|racteris|
|00003580| 74 69 63 2c 20 20 6d 6f | 76 69 65 54 72 61 63 6b |tic, mo|vieTrack|
|00003590| 43 68 61 72 61 63 74 65 | 72 69 73 74 69 63 20 20 |Characte|ristic |
|000035a0| 7c 20 6d 6f 76 69 65 54 | 72 61 63 6b 45 6e 61 62 || movieT|rackEnab|
|000035b0| 6c 65 64 4f 6e 6c 79 29 | 3b 0d 54 68 65 20 6d 65 |ledOnly)|;.The me|
|000035c0| 64 69 61 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |dia type| of the |
|000035d0| 72 65 74 75 72 6e 65 64 | 20 74 72 61 63 6b 20 63 |returned| track c|
|000035e0| 6f 75 6c 64 20 62 65 20 | 61 6e 79 20 6d 65 64 69 |ould be |any medi|
|000035f0| 61 20 74 79 70 65 20 74 | 68 61 74 20 73 75 70 70 |a type t|hat supp|
|00003600| 6f 72 74 73 20 74 68 65 | 20 41 75 64 69 6f 4d 65 |orts the| AudioMe|
|00003610| 64 69 61 43 68 61 72 61 | 63 74 65 72 69 73 74 69 |diaChara|cteristi|
|00003620| 63 2e 20 49 6e 20 51 75 | 69 63 6b 54 69 6d 65 20 |c. In Qu|ickTime |
|00003630| 32 2e 30 2c 20 74 68 65 | 73 65 20 69 6e 63 6c 75 |2.0, the|se inclu|
|00003640| 64 65 20 74 68 65 20 53 | 6f 75 6e 64 2c 20 4d 75 |de the S|ound, Mu|
|00003650| 73 69 63 2c 20 61 6e 64 | 20 4d 50 45 47 20 4d 65 |sic, and| MPEG Me|
|00003660| 64 69 61 20 48 61 6e 64 | 6c 65 72 73 2e 0d 50 72 |dia Hand|lers..Pr|
|00003670| 65 6c 6f 61 64 69 6e 67 | 20 54 72 61 63 6b 73 0d |eloading| Tracks.|
|00003680| 54 68 65 72 65 20 61 72 | 65 20 6f 63 63 61 73 69 |There ar|e occasi|
|00003690| 6f 6e 73 2c 20 70 61 72 | 74 69 63 75 6c 61 72 6c |ons, par|ticularl|
|000036a0| 79 20 77 68 65 6e 20 63 | 72 65 61 74 69 6e 67 20 |y when c|reating |
|000036b0| 6d 6f 76 69 65 73 20 66 | 6f 72 20 43 44 2d 52 4f |movies f|or CD-RO|
|000036c0| 4d 20 70 6c 61 79 62 61 | 63 6b 2c 20 77 68 65 72 |M playba|ck, wher|
|000036d0| 65 20 69 74 20 6d 61 79 | 20 62 65 20 75 73 65 66 |e it may| be usef|
|000036e0| 75 6c 20 74 6f 20 6c 6f | 61 64 20 61 6e 20 65 6e |ul to lo|ad an en|
|000036f0| 74 69 72 65 20 74 72 61 | 63 6b 20 69 6e 74 6f 20 |tire tra|ck into |
|00003700| 6d 65 6d 6f 72 79 2e 20 | 53 70 65 63 69 66 69 63 |memory. |Specific|
|00003710| 20 65 78 61 6d 70 6c 65 | 73 20 6f 66 20 74 68 69 | example|s of thi|
|00003720| 73 20 69 6e 63 6c 75 64 | 65 20 6d 6f 76 69 65 73 |s includ|e movies|
|00003730| 20 77 68 69 63 68 20 63 | 6f 6e 74 61 69 6e 20 74 | which c|ontain t|
|00003740| 65 78 74 20 61 6e 64 2f | 6f 72 20 6d 75 73 69 63 |ext and/|or music|
|00003750| 20 74 72 61 63 6b 73 20 | 77 68 69 63 68 20 6d 61 | tracks |which ma|
|00003760| 79 20 62 65 20 73 6d 61 | 6c 6c 20 65 6e 6f 75 67 |y be sma|ll enoug|
|00003770| 68 20 74 6f 20 65 61 73 | 69 6c 79 20 66 69 74 20 |h to eas|ily fit |
|00003780| 69 6e 74 6f 20 6d 65 6d | 6f 72 79 2e 20 42 79 20 |into mem|ory. By |
|00003790| 6c 6f 61 64 69 6e 67 20 | 74 68 65 73 65 20 74 72 |loading |these tr|
|000037a0| 61 63 6b 73 2c 20 79 6f | 75 20 63 61 6e 20 67 75 |acks, yo|u can gu|
|000037b0| 61 72 61 6e 74 65 65 20 | 61 63 63 65 73 73 20 74 |arantee |access t|
|000037c0| 6f 20 74 68 65 20 74 72 | 61 63 6b 20 64 61 74 61 |o the tr|ack data|
|000037d0| 20 77 69 74 68 6f 75 74 | 20 68 61 76 69 6e 67 20 | without| having |
|000037e0| 74 6f 20 77 6f 72 72 79 | 20 61 62 6f 75 74 20 74 |to worry| about t|
|000037f0| 68 65 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 6f |he possi|bility o|
|00003800| 66 20 61 20 43 44 20 72 | 65 61 64 2e 0d 51 75 69 |f a CD r|ead..Qui|
|00003810| 63 6b 54 69 6d 65 20 68 | 61 73 20 73 75 70 70 6f |ckTime h|as suppo|
|00003820| 72 74 65 64 20 6c 6f 61 | 64 69 6e 67 20 61 20 74 |rted loa|ding a t|
|00003830| 72 61 63 6b 20 70 65 72 | 6d 61 6e 65 6e 74 6c 79 |rack per|manently|
|00003840| 20 69 6e 74 6f 20 6d 65 | 6d 6f 72 79 20 73 69 6e | into me|mory sin|
|00003850| 63 65 20 51 75 69 63 6b | 54 69 6d 65 20 31 2e 35 |ce Quick|Time 1.5|
|00003860| 2c 20 77 68 65 6e 20 74 | 68 65 20 6b 65 65 70 49 |, when t|he keepI|
|00003870| 6e 52 61 6d 20 66 6c 61 | 67 20 77 61 73 20 61 64 |nRam fla|g was ad|
|00003880| 64 65 64 20 74 6f 20 74 | 68 65 20 4c 6f 61 64 58 |ded to t|he LoadX|
|00003890| 58 58 58 49 6e 74 6f 52 | 61 6d 43 61 6c 6c 73 2e |XXXIntoR|amCalls.|
|000038a0| 20 55 6e 66 6f 72 74 75 | 6e 61 74 65 6c 79 2c 20 | Unfortu|nately, |
|000038b0| 74 6f 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |to take |advantag|
|000038c0| 65 20 6f 66 20 74 68 69 | 73 20 66 65 61 74 75 72 |e of thi|s featur|
|000038d0| 65 2c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |e, appli|cations |
|000038e0| 68 61 64 20 74 6f 20 65 | 78 70 6c 69 63 69 74 6c |had to e|xplicitl|
|000038f0| 79 20 6c 6f 61 64 20 61 | 20 74 72 61 63 6b 20 69 |y load a| track i|
|00003900| 6e 74 6f 20 6d 65 6d 6f | 72 79 2e 20 51 75 69 63 |nto memo|ry. Quic|
|00003910| 6b 54 69 6d 65 20 32 2e | 30 20 70 72 6f 76 69 64 |kTime 2.|0 provid|
|00003920| 65 73 20 61 20 77 61 79 | 20 74 6f 20 65 78 70 6c |es a way| to expl|
|00003930| 69 63 69 74 6c 79 20 6d | 61 72 6b 20 61 20 70 6f |icitly m|ark a po|
|00003940| 72 74 69 6f 6e 20 6f 66 | 20 61 20 74 72 61 63 6b |rtion of| a track|
|00003950| 20 74 6f 20 62 65 20 6c | 6f 61 64 65 64 20 69 6e | to be l|oaded in|
|00003960| 74 6f 20 6d 65 6d 6f 72 | 79 20 77 68 65 6e 20 74 |to memor|y when t|
|00003970| 68 65 20 6d 6f 76 69 65 | 20 69 73 20 6f 70 65 6e |he movie| is open|
|00003980| 65 64 2e 20 49 6e 20 74 | 68 69 73 20 77 61 79 2c |ed. In t|his way,|
|00003990| 20 74 68 65 20 63 72 65 | 61 74 6f 72 20 6f 66 20 | the cre|ator of |
|000039a0| 74 68 65 20 6d 6f 76 69 | 65 20 63 61 6e 20 63 6f |the movi|e can co|
|000039b0| 6e 74 72 6f 6c 20 77 68 | 69 63 68 20 70 6f 72 74 |ntrol wh|ich port|
|000039c0| 69 6f 6e 73 20 73 68 6f | 75 6c 64 20 62 65 20 6c |ions sho|uld be l|
|000039d0| 6f 61 64 65 64 2e 20 43 | 6c 65 61 72 6c 79 20 74 |oaded. C|learly t|
|000039e0| 68 69 73 20 66 65 61 74 | 75 72 65 20 73 68 6f 75 |his feat|ure shou|
|000039f0| 6c 64 20 62 65 20 75 73 | 65 64 20 77 69 74 68 20 |ld be us|ed with |
|00003a00| 63 61 72 65 2c 20 61 73 | 20 6c 6f 61 64 69 6e 67 |care, as| loading|
|00003a10| 20 61 20 74 72 61 63 6b | 20 69 6e 74 6f 20 6d 65 | a track| into me|
|00003a20| 6d 6f 72 79 20 6d 61 79 | 20 63 6f 6e 73 75 6d 65 |mory may| consume|
|00003a30| 20 61 20 74 72 65 6d 65 | 6e 64 6f 75 73 20 61 6d | a treme|ndous am|
|00003a40| 6f 75 6e 74 20 6f 66 20 | 6d 65 6d 6f 72 79 2e 0d |ount of |memory..|
|00003a50| 54 72 61 63 6b 20 70 72 | 65 6c 6f 61 64 20 73 65 |Track pr|eload se|
|00003a60| 74 74 69 6e 67 73 20 61 | 72 65 20 6e 6f 74 20 74 |ttings a|re not t|
|00003a70| 72 61 6e 73 66 65 72 72 | 65 64 20 62 79 20 43 6f |ransferr|ed by Co|
|00003a80| 70 79 54 72 61 63 6b 53 | 65 74 74 69 6e 67 73 2e |pyTrackS|ettings.|
|00003a90| 20 54 68 65 79 20 61 72 | 65 20 74 72 61 6e 73 66 | They ar|e transf|
|00003aa0| 65 72 72 65 64 20 62 79 | 20 46 6c 61 74 74 65 6e |erred by| Flatten|
|00003ab0| 4d 6f 76 69 65 20 61 6e | 64 20 46 6c 61 74 74 65 |Movie an|d Flatte|
|00003ac0| 6e 4d 6f 76 69 65 44 61 | 74 61 2e 20 49 66 20 61 |nMovieDa|ta. If a|
|00003ad0| 20 74 72 61 63 6b 20 68 | 61 73 20 61 20 70 72 65 | track h|as a pre|
|00003ae0| 6c 6f 61 64 54 69 6d 65 | 2c 20 69 74 20 77 69 6c |loadTime|, it wil|
|00003af0| 6c 20 62 65 20 66 6c 61 | 74 74 65 6e 65 64 20 61 |l be fla|ttened a|
|00003b00| 74 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 74 |t the st|art of t|
|00003b10| 68 65 20 6d 6f 76 69 65 | 20 66 69 6c 65 2c 20 69 |he movie| file, i|
|00003b20| 6e 73 74 65 61 64 20 6f | 66 20 62 65 69 6e 67 20 |nstead o|f being |
|00003b30| 69 6e 74 65 72 6c 65 61 | 76 65 64 20 77 69 74 68 |interlea|ved with|
|00003b40| 20 74 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 65 | the res|t of the|
|00003b50| 20 74 72 61 63 6b 73 2e | 20 54 79 70 69 63 61 6c | tracks.| Typical|
|00003b60| 6c 79 20 74 68 69 73 20 | 77 69 6c 6c 20 69 6d 70 |ly this |will imp|
|00003b70| 72 6f 76 65 20 6c 6f 61 | 64 20 74 69 6d 65 20 77 |rove loa|d time w|
|00003b80| 68 65 6e 20 74 68 65 20 | 74 72 61 63 6b 20 69 73 |hen the |track is|
|00003b90| 20 70 72 65 6c 6f 61 64 | 65 64 2e 20 0d 70 61 73 | preload|ed. .pas|
|00003ba0| 63 61 6c 20 76 6f 69 64 | 20 53 65 74 54 72 61 63 |cal void| SetTrac|
|00003bb0| 6b 4c 6f 61 64 53 65 74 | 74 69 6e 67 73 28 54 72 |kLoadSet|tings(Tr|
|00003bc0| 61 63 6b 20 74 68 65 54 | 72 61 63 6b 2c 20 54 69 |ack theT|rack, Ti|
|00003bd0| 6d 65 56 61 6c 75 65 20 | 70 72 65 6c 6f 61 64 54 |meValue |preloadT|
|00003be0| 69 6d 65 2c 20 54 69 6d | 65 56 61 6c 75 65 20 70 |ime, Tim|eValue p|
|00003bf0| 72 65 6c 6f 61 64 44 75 | 72 61 74 69 6f 6e 2c 20 |reloadDu|ration, |
|00003c00| 6c 6f 6e 67 20 70 72 65 | 6c 6f 61 64 46 6c 61 67 |long pre|loadFlag|
|00003c10| 73 2c 20 6c 6f 6e 67 20 | 64 65 66 61 75 6c 74 48 |s, long |defaultH|
|00003c20| 69 6e 74 73 29 0d 53 65 | 74 54 72 61 63 6b 4c 6f |ints).Se|tTrackLo|
|00003c30| 61 64 53 65 74 74 69 6e | 67 73 20 61 6c 6c 6f 77 |adSettin|gs allow|
|00003c40| 73 20 79 6f 75 20 74 6f | 20 73 70 65 63 69 66 79 |s you to| specify|
|00003c50| 20 74 68 65 20 6c 6f 61 | 64 20 74 69 6d 65 20 70 | the loa|d time p|
|00003c60| 61 72 61 6d 65 74 65 72 | 73 20 6f 66 20 74 68 65 |arameter|s of the|
|00003c70| 20 67 69 76 65 6e 20 74 | 72 61 63 6b 2e 20 54 68 | given t|rack. Th|
|00003c80| 65 20 70 72 65 6c 6f 61 | 64 54 69 6d 65 20 61 6e |e preloa|dTime an|
|00003c90| 64 20 70 72 65 6c 6f 61 | 64 44 75 72 61 74 69 6f |d preloa|dDuratio|
|00003ca0| 6e 20 76 61 6c 75 65 73 | 20 61 6c 6c 6f 77 20 79 |n values| allow y|
|00003cb0| 6f 75 20 74 6f 20 73 70 | 65 63 69 66 79 20 77 68 |ou to sp|ecify wh|
|00003cc0| 69 63 68 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 74 |ich port|ion of t|
|00003cd0| 68 65 20 74 72 61 63 6b | 20 73 68 6f 75 6c 64 20 |he track| should |
|00003ce0| 62 65 20 6c 6f 61 64 65 | 64 20 69 6e 74 6f 20 6d |be loade|d into m|
|00003cf0| 65 6d 6f 72 79 2e 20 49 | 66 20 70 72 65 6c 6f 61 |emory. I|f preloa|
|00003d00| 64 54 69 6d 65 20 69 73 | 20 73 65 74 20 74 6f 20 |dTime is| set to |
|00003d10| 2d 31 2c 20 74 68 65 20 | 65 6e 74 69 72 65 20 74 |-1, the |entire t|
|00003d20| 72 61 63 6b 20 69 73 20 | 6c 6f 61 64 65 64 20 61 |rack is |loaded a|
|00003d30| 6e 64 20 70 72 65 6c 6f | 61 64 44 75 72 61 74 69 |nd prelo|adDurati|
|00003d40| 6f 6e 20 69 73 20 69 67 | 6e 6f 72 65 64 2e 20 54 |on is ig|nored. T|
|00003d50| 68 65 20 70 72 65 6c 6f | 61 64 46 6c 61 67 73 20 |he prelo|adFlags |
|00003d60| 6d 75 73 74 20 62 65 20 | 73 65 74 20 74 6f 20 6f |must be |set to o|
|00003d70| 6e 65 20 6f 66 20 74 68 | 65 20 76 61 6c 75 65 73 |ne of th|e values|
|00003d80| 20 73 68 6f 77 20 62 65 | 6c 6f 77 2c 20 6f 72 20 | show be|low, or |
|00003d90| 74 68 65 20 70 72 65 6c | 6f 61 64 54 69 6d 65 20 |the prel|oadTime |
|00003da0| 61 6e 64 20 70 72 65 6c | 6f 61 64 44 75 72 61 74 |and prel|oadDurat|
|00003db0| 69 6f 6e 20 76 61 6c 75 | 65 73 20 61 72 65 20 69 |ion valu|es are i|
|00003dc0| 67 6e 6f 72 65 64 2e 0d | 65 6e 75 6d 20 20 7b 0d |gnored..|enum {.|
|00003dd0| 09 70 72 65 6c 6f 61 64 | 41 6c 77 61 79 73 09 09 |.preload|Always..|
|00003de0| 3d 20 31 4c 20 3c 3c 20 | 30 2c 0d 09 70 72 65 6c |= 1L << |0,..prel|
|00003df0| 6f 61 64 4f 6e 6c 79 49 | 66 45 6e 61 62 6c 65 64 |oadOnlyI|fEnabled|
|00003e00| 09 3d 20 31 4c 20 3c 3c | 20 31 0d 7d 3b 0d 41 6c |.= 1L <<| 1.};.Al|
|00003e10| 6f 6e 67 20 77 69 74 68 | 20 74 68 65 20 6c 6f 61 |ong with| the loa|
|00003e20| 64 20 73 65 74 74 69 6e | 67 73 2c 20 74 68 65 20 |d settin|gs, the |
|00003e30| 64 65 66 61 75 6c 74 20 | 68 69 6e 74 73 20 61 72 |default |hints ar|
|00003e40| 65 20 61 6c 73 6f 20 73 | 74 6f 72 65 64 2e 20 59 |e also s|tored. Y|
|00003e50| 6f 75 20 70 61 73 73 20 | 74 68 65 73 65 20 69 6e |ou pass |these in|
|00003e60| 20 74 68 65 20 64 65 66 | 61 75 6c 74 48 69 6e 74 | the def|aultHint|
|00003e70| 73 20 70 61 72 61 6d 65 | 74 65 72 2e 20 49 66 20 |s parame|ter. If |
|00003e80| 62 6f 74 68 20 74 68 65 | 20 64 65 66 61 75 6c 74 |both the| default|
|00003e90| 48 69 6e 74 73 20 61 6e | 64 20 70 72 65 6c 6f 61 |Hints an|d preloa|
|00003ea0| 64 46 6c 61 67 73 20 61 | 72 65 20 73 65 74 20 74 |dFlags a|re set t|
|00003eb0| 6f 20 30 2c 20 6e 6f 20 | 70 72 65 6c 6f 61 64 20 |o 0, no |preload |
|00003ec0| 73 65 74 74 69 6e 67 73 | 20 61 72 65 20 73 74 6f |settings| are sto|
|00003ed0| 72 65 64 20 77 69 74 68 | 20 74 68 65 20 6d 6f 76 |red with| the mov|
|00003ee0| 69 65 2e 20 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |ie. .pas|cal void|
|00003ef0| 20 47 65 74 54 72 61 63 | 6b 4c 6f 61 64 53 65 74 | GetTrac|kLoadSet|
|00003f00| 74 69 6e 67 73 28 54 72 | 61 63 6b 20 74 68 65 54 |tings(Tr|ack theT|
|00003f10| 72 61 63 6b 2c 20 54 69 | 6d 65 56 61 6c 75 65 20 |rack, Ti|meValue |
|00003f20| 2a 70 72 65 6c 6f 61 64 | 54 69 6d 65 2c 20 54 69 |*preload|Time, Ti|
|00003f30| 6d 65 56 61 6c 75 65 20 | 2a 70 72 65 6c 6f 61 64 |meValue |*preload|
|00003f40| 44 75 72 61 74 69 6f 6e | 2c 20 6c 6f 6e 67 20 2a |Duration|, long *|
|00003f50| 70 72 65 6c 6f 61 64 46 | 6c 61 67 73 2c 20 6c 6f |preloadF|lags, lo|
|00003f60| 6e 67 20 2a 64 65 66 61 | 75 6c 74 48 69 6e 74 73 |ng *defa|ultHints|
|00003f70| 29 0d 47 65 74 54 72 61 | 63 6b 4c 6f 61 64 53 65 |).GetTra|ckLoadSe|
|00003f80| 74 74 69 6e 67 73 20 61 | 6c 6c 6f 77 73 20 79 6f |ttings a|llows yo|
|00003f90| 75 20 74 6f 20 72 65 74 | 72 69 65 76 65 20 74 68 |u to ret|rieve th|
|00003fa0| 65 20 63 75 72 72 65 6e | 74 20 70 72 65 6c 6f 61 |e curren|t preloa|
|00003fb0| 64 20 73 65 74 74 69 6e | 67 73 20 66 6f 72 20 74 |d settin|gs for t|
|00003fc0| 68 65 20 67 69 76 65 6e | 20 74 72 61 63 6b 2e 20 |he given| track. |
|00003fd0| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |The para|meters a|
|00003fe0| 72 65 20 65 78 70 6c 61 | 69 6e 65 64 20 61 62 6f |re expla|ined abo|
|00003ff0| 76 65 2c 20 75 6e 64 65 | 72 20 53 65 74 54 72 61 |ve, unde|r SetTra|
|00004000| 63 6b 4c 6f 61 64 53 65 | 74 74 69 6e 67 73 2e 20 |ckLoadSe|ttings. |
|00004010| 0d 48 69 6e 74 73 0d 53 | 65 76 65 72 61 6c 20 6e |.Hints.S|everal n|
|00004020| 65 77 20 6d 6f 76 69 65 | 2f 6d 65 64 69 61 20 70 |ew movie|/media p|
|00004030| 6c 61 79 62 61 63 6b 20 | 68 69 6e 74 73 20 68 61 |layback |hints ha|
|00004040| 76 65 20 62 65 65 6e 20 | 61 64 64 65 64 20 66 6f |ve been |added fo|
|00004050| 72 20 51 75 69 63 6b 54 | 69 6d 65 20 32 2e 30 2e |r QuickT|ime 2.0.|
|00004060| 20 54 68 65 79 20 61 72 | 65 20 65 78 70 6c 61 69 | They ar|e explai|
|00004070| 6e 65 64 20 62 65 6c 6f | 77 2e 0d 68 69 6e 74 73 |ned belo|w..hints|
|00004080| 44 6f 6e 74 50 75 72 67 | 65 0d 54 68 69 73 20 68 |DontPurg|e.This h|
|00004090| 69 6e 74 20 69 6e 73 74 | 72 75 63 74 73 20 74 68 |int inst|ructs th|
|000040a0| 65 20 4d 6f 76 69 65 20 | 54 6f 6f 6c 62 6f 78 20 |e Movie |Toolbox |
|000040b0| 6e 6f 74 20 74 6f 20 64 | 69 73 70 6f 73 65 20 6f |not to d|ispose o|
|000040c0| 66 20 6d 6f 76 69 65 20 | 64 61 74 61 20 61 66 74 |f movie |data aft|
|000040d0| 65 72 20 69 74 20 68 61 | 73 20 70 6c 61 79 65 64 |er it ha|s played|
|000040e0| 20 69 74 2e 20 49 6e 73 | 74 65 61 64 20 74 68 65 | it. Ins|tead the|
|000040f0| 20 64 61 74 61 20 69 73 | 20 6b 65 70 74 20 69 6e | data is| kept in|
|00004100| 20 6d 65 6d 6f 72 79 20 | 69 6e 20 61 20 70 75 72 | memory |in a pur|
|00004110| 67 65 61 62 6c 65 20 68 | 61 6e 64 6c 65 2e 20 54 |geable h|andle. T|
|00004120| 68 69 73 20 63 61 6e 20 | 70 72 6f 76 69 64 65 20 |his can |provide |
|00004130| 67 6f 6f 64 20 72 65 73 | 75 6c 74 73 20 66 6f 72 |good res|ults for|
|00004140| 20 73 6d 61 6c 6c 20 6d | 6f 76 69 65 73 20 70 6c | small m|ovies pl|
|00004150| 61 79 69 6e 67 20 69 6e | 20 6c 6f 6f 70 20 6d 6f |aying in| loop mo|
|00004160| 64 65 2e 20 49 6e 20 6d | 6f 73 74 20 63 61 73 65 |de. In m|ost case|
|00004170| 73 20 69 74 20 63 61 6e | 20 68 75 72 74 20 70 6c |s it can| hurt pl|
|00004180| 61 79 62 61 63 6b 20 61 | 73 20 74 68 65 20 68 65 |ayback a|s the he|
|00004190| 61 70 20 62 65 63 6f 6d | 65 73 20 66 75 6c 6c 20 |ap becom|es full |
|000041a0| 6f 66 20 62 6c 6f 63 6b | 73 2c 20 74 68 65 20 6d |of block|s, the m|
|000041b0| 65 6d 6f 72 79 20 6d 61 | 6e 61 67 65 72 20 73 74 |emory ma|nager st|
|000041c0| 61 72 74 73 20 74 6f 20 | 74 68 72 61 73 68 2e 20 |arts to |thrash. |
|000041d0| 55 73 65 20 74 68 69 73 | 20 68 69 6e 74 20 61 74 |Use this| hint at|
|000041e0| 20 79 6f 75 72 20 6f 77 | 6e 20 72 69 73 6b 2e 0d | your ow|n risk..|
|000041f0| 68 69 6e 74 73 49 6e 61 | 63 74 69 76 65 0d 54 68 |hintsIna|ctive.Th|
|00004200| 69 73 20 68 69 6e 74 20 | 74 65 6c 6c 73 20 74 68 |is hint |tells th|
|00004210| 65 20 4d 6f 76 69 65 20 | 54 6f 6f 6c 62 6f 78 20 |e Movie |Toolbox |
|00004220| 74 68 61 74 20 74 68 65 | 20 6d 6f 76 69 65 20 69 |that the| movie i|
|00004230| 73 20 6e 6f 74 20 69 6e | 20 61 6e 20 61 63 74 69 |s not in| an acti|
|00004240| 76 65 20 77 69 6e 64 6f | 77 2e 20 54 68 65 20 74 |ve windo|w. The t|
|00004250| 6f 6f 6c 62 6f 78 20 6d | 61 79 20 75 73 65 20 74 |oolbox m|ay use t|
|00004260| 68 69 73 20 68 69 6e 74 | 20 61 73 20 61 20 77 61 |his hint| as a wa|
|00004270| 79 20 74 6f 20 61 6c 6c | 6f 63 61 74 65 20 73 63 |y to all|ocate sc|
|00004280| 61 72 63 65 20 68 61 72 | 64 77 61 72 65 20 72 65 |arce har|dware re|
|00004290| 73 6f 75 72 63 65 73 20 | 28 73 75 63 68 20 61 73 |sources |(such as|
|000042a0| 20 4d 50 45 47 20 64 65 | 63 6f 64 65 72 73 29 2e | MPEG de|coders).|
|000042b0| 20 54 68 69 73 20 68 69 | 6e 74 20 69 73 20 61 75 | This hi|nt is au|
|000042c0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 73 65 74 20 |tomatica|lly set |
|000042d0| 62 79 20 74 68 65 20 4d | 6f 76 69 65 20 43 6f 6e |by the M|ovie Con|
|000042e0| 74 72 6f 6c 6c 65 72 2e | 0d 54 69 6d 65 42 61 73 |troller.|.TimeBas|
|000042f0| 65 73 0d 49 74 20 69 73 | 20 6e 6f 77 20 73 61 66 |es.It is| now saf|
|00004300| 65 20 74 6f 20 75 73 65 | 20 74 68 65 20 53 65 74 |e to use| the Set|
|00004310| 54 69 6d 65 42 61 73 65 | 4d 61 73 74 65 72 54 69 |TimeBase|MasterTi|
|00004320| 6d 65 42 61 73 65 20 61 | 6e 64 20 53 65 74 54 69 |meBase a|nd SetTi|
|00004330| 6d 65 42 61 73 65 4d 61 | 73 74 65 72 43 6c 6f 63 |meBaseMa|sterCloc|
|00004340| 6b 20 63 61 6c 6c 73 20 | 6f 6e 20 61 20 54 69 6d |k calls |on a Tim|
|00004350| 65 42 61 73 65 20 74 68 | 61 74 20 68 61 73 20 63 |eBase th|at has c|
|00004360| 61 6c 6c 62 61 63 6b 73 | 20 61 6c 72 65 61 64 79 |allbacks| already|
|00004370| 20 73 63 68 65 64 75 6c | 65 64 20 6f 6e 20 69 74 | schedul|ed on it|
|00004380| 2e 20 49 6e 20 74 68 65 | 20 70 61 73 74 2c 20 63 |. In the| past, c|
|00004390| 68 61 6e 67 69 6e 67 20 | 74 68 65 20 74 69 6d 65 |hanging |the time|
|000043a0| 20 73 6f 75 72 63 65 20 | 66 6f 72 20 61 6e 20 65 | source |for an e|
|000043b0| 78 69 73 74 69 6e 67 20 | 54 69 6d 65 42 61 73 65 |xisting |TimeBase|
|000043c0| 20 77 6f 75 6c 64 20 65 | 66 66 65 63 74 69 76 65 | would e|ffective|
|000043d0| 6c 79 20 6f 72 70 68 61 | 6e 20 61 6e 79 20 65 78 |ly orpha|n any ex|
|000043e0| 69 73 74 69 6e 67 20 63 | 61 6c 6c 62 61 63 6b 73 |isting c|allbacks|
|000043f0| 20 6f 6e 20 74 68 61 74 | 20 54 69 6d 65 42 61 73 | on that| TimeBas|
|00004400| 65 2e 20 54 68 69 73 20 | 73 69 74 75 61 74 69 6f |e. This |situatio|
|00004410| 6e 20 68 61 73 20 62 65 | 65 6e 20 66 69 78 65 64 |n has be|en fixed|
|00004420| 2e 0d 41 6e 20 6f 62 73 | 63 75 72 65 2c 20 64 69 |..An obs|cure, di|
|00004430| 66 66 69 63 75 6c 74 20 | 74 6f 20 65 78 70 6c 61 |fficult |to expla|
|00004440| 69 6e 20 66 6c 61 67 20 | 77 61 73 20 61 64 64 65 |in flag |was adde|
|00004450| 64 20 74 6f 20 74 68 65 | 20 54 69 6d 65 42 61 73 |d to the| TimeBas|
|00004460| 65 46 6c 61 67 73 2e 20 | 49 74 73 20 6f 76 65 72 |eFlags. |Its over|
|00004470| 61 6c 6c 20 65 66 66 65 | 63 74 20 69 73 20 74 6f |all effe|ct is to|
|00004480| 20 6d 61 6b 65 20 53 65 | 74 54 69 6d 65 42 61 73 | make Se|tTimeBas|
|00004490| 65 54 69 6d 65 2f 53 65 | 74 54 69 6d 65 42 61 73 |eTime/Se|tTimeBas|
|000044a0| 65 54 69 6d 65 56 61 6c | 75 65 20 64 6f 20 6e 6f |eTimeVal|ue do no|
|000044b0| 74 68 69 6e 67 2e 20 54 | 68 69 73 20 69 73 20 61 |thing. T|his is a|
|000044c0| 63 74 75 61 6c 6c 79 20 | 75 73 65 66 75 6c 20 69 |ctually |useful i|
|000044d0| 6e 20 63 61 73 65 73 20 | 77 68 65 72 65 20 54 69 |n cases |where Ti|
|000044e0| 6d 65 42 61 73 65 73 20 | 61 72 65 20 62 65 69 6e |meBases |are bein|
|000044f0| 67 20 73 6c 61 76 65 64 | 20 74 6f 67 65 74 68 65 |g slaved| togethe|
|00004500| 72 2e 20 41 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |r. An ex|ample of|
|00004510| 20 69 74 73 20 75 73 65 | 66 75 6c 6e 65 73 73 20 | its use|fulness |
|00004520| 73 68 6f 75 6c 64 20 70 | 72 6f 62 61 62 6c 79 20 |should p|robably |
|00004530| 62 65 20 67 65 6e 65 72 | 61 74 65 64 2e 0d 6d 61 |be gener|ated..ma|
|00004540| 69 6e 74 61 69 6e 54 69 | 6d 65 42 61 73 65 5a 65 |intainTi|meBaseZe|
|00004550| 72 6f 0d 44 61 74 61 20 | 52 65 66 65 72 65 6e 63 |ro.Data |Referenc|
|00004560| 65 73 0d 54 68 65 20 4d | 6f 76 69 65 20 54 6f 6f |es.The M|ovie Too|
|00004570| 6c 62 6f 78 20 6e 6f 77 | 20 66 75 6c 6c 79 20 73 |lbox now| fully s|
|00004580| 75 70 70 6f 72 74 73 20 | 68 61 76 69 6e 67 20 61 |upports |having a|
|00004590| 20 4d 65 64 69 61 20 77 | 68 69 63 68 20 72 65 66 | Media w|hich ref|
|000045a0| 65 72 73 20 74 6f 20 64 | 61 74 61 20 69 6e 20 73 |ers to d|ata in s|
|000045b0| 65 76 65 72 61 6c 20 66 | 69 6c 65 73 2e 20 49 6e |everal f|iles. In|
|000045c0| 20 74 68 65 20 70 61 73 | 74 2c 20 65 61 63 68 20 | the pas|t, each |
|000045d0| 4d 65 64 69 61 20 63 6f | 75 6c 64 20 6f 6e 6c 79 |Media co|uld only|
|000045e0| 20 72 65 66 65 72 20 74 | 6f 20 6f 6e 65 20 66 69 | refer t|o one fi|
|000045f0| 6c 65 2e 20 54 68 69 73 | 20 66 65 61 74 75 72 65 |le. This| feature|
|00004600| 20 6d 61 6b 65 73 20 65 | 64 69 74 69 6e 67 20 6d | makes e|diting m|
|00004610| 6f 76 69 65 73 20 65 61 | 73 69 65 72 2c 20 69 6e |ovies ea|sier, in|
|00004620| 20 74 68 61 74 20 61 20 | 6e 65 77 20 74 72 61 63 | that a |new trac|
|00004630| 6b 20 64 6f 65 73 6e d5 | 74 20 68 61 76 65 20 74 |k doesn.|t have t|
|00004640| 6f 20 62 65 20 63 72 65 | 61 74 65 64 20 66 6f 72 |o be cre|ated for|
|00004650| 20 65 61 63 68 20 66 69 | 6c 65 20 74 68 61 74 20 | each fi|le that |
|00004660| 69 73 20 72 65 66 65 72 | 65 6e 63 65 64 2e 20 49 |is refer|enced. I|
|00004670| 74 20 61 6c 73 6f 20 68 | 65 6c 70 73 20 74 6f 20 |t also h|elps to |
|00004680| 69 6d 70 72 6f 76 65 20 | 70 6c 61 79 62 61 63 6b |improve |playback|
|00004690| 2c 20 73 69 6e 63 65 20 | 61 20 6d 6f 76 69 65 20 |, since |a movie |
|000046a0| 77 69 74 68 20 66 65 77 | 65 72 20 74 72 61 63 6b |with few|er track|
|000046b0| 73 20 63 61 6e 20 62 65 | 20 70 6c 61 79 65 64 20 |s can be| played |
|000046c0| 62 61 63 6b 20 6d 6f 72 | 65 20 65 61 73 69 6c 79 |back mor|e easily|
|000046d0| 2e 20 54 68 65 20 65 78 | 69 73 74 69 6e 67 20 4d |. The ex|isting M|
|000046e0| 6f 76 69 65 20 54 6f 6f | 6c 62 6f 78 20 69 6e 74 |ovie Too|lbox int|
|000046f0| 65 72 66 61 63 65 73 20 | 77 6f 72 6b 20 66 6f 72 |erfaces |work for|
|00004700| 20 73 75 70 70 6f 72 74 | 69 6e 67 20 6d 75 6c 74 | support|ing mult|
|00004710| 69 70 6c 65 20 64 61 74 | 61 20 72 65 66 65 72 65 |iple dat|a refere|
|00004720| 6e 63 65 73 2e 20 50 6c | 65 61 73 65 20 72 65 66 |nces. Pl|ease ref|
|00004730| 65 72 20 74 6f 20 49 6e | 73 69 64 65 20 4d 61 63 |er to In|side Mac|
|00004740| 69 6e 74 6f 73 68 3a 20 | 51 75 69 63 6b 54 69 6d |intosh: |QuickTim|
|00004750| 65 20 66 6f 72 20 74 68 | 65 20 64 65 74 61 69 6c |e for th|e detail|
|00004760| 73 20 6f 6e 20 77 6f 72 | 6b 69 6e 67 20 77 69 74 |s on wor|king wit|
|00004770| 68 20 6d 75 6c 74 69 70 | 6c 65 20 64 61 74 61 20 |h multip|le data |
|00004780| 72 65 66 65 72 65 6e 63 | 65 73 2e 20 4f 6e 6c 79 |referenc|es. Only|
|00004790| 20 6f 6e 65 20 6e 65 77 | 20 63 61 6c 6c 20 77 61 | one new| call wa|
|000047a0| 73 20 61 64 64 65 64 20 | 74 6f 20 68 65 6c 70 20 |s added |to help |
|000047b0| 73 75 70 70 6f 72 74 20 | 74 68 69 73 20 66 65 61 |support |this fea|
|000047c0| 74 75 72 65 2c 20 53 65 | 74 4d 65 64 69 61 44 65 |ture, Se|tMediaDe|
|000047d0| 66 61 75 6c 74 44 61 74 | 61 52 65 66 49 6e 64 65 |faultDat|aRefInde|
|000047e0| 78 2c 20 77 68 69 63 68 | 20 69 73 20 64 65 73 63 |x, which| is desc|
|000047f0| 72 69 62 65 64 20 61 62 | 6f 76 65 2e 0d 44 61 74 |ribed ab|ove..Dat|
|00004800| 61 20 48 61 6e 64 6c 65 | 72 73 0d 54 68 65 20 4d |a Handle|rs.The M|
|00004810| 6f 76 69 65 20 54 6f 6f | 6c 62 6f 78 d5 73 20 64 |ovie Too|lbox.s d|
|00004820| 61 74 61 20 68 61 6e 64 | 6c 65 72 20 69 6e 74 65 |ata hand|ler inte|
|00004830| 72 66 61 63 65 20 68 61 | 73 20 6e 65 76 65 72 20 |rface ha|s never |
|00004840| 62 65 65 6e 20 70 75 62 | 6c 69 63 6c 79 20 64 6f |been pub|licly do|
|00004850| 63 75 6d 65 6e 74 65 64 | 2e 20 57 69 74 68 20 51 |cumented|. With Q|
|00004860| 75 69 63 6b 54 69 6d 65 | 20 32 2e 30 2c 20 74 68 |uickTime| 2.0, th|
|00004870| 65 20 64 61 74 61 20 68 | 61 6e 64 6c 65 72 20 69 |e data h|andler i|
|00004880| 6e 74 65 72 66 61 63 65 | 20 68 61 73 20 62 65 65 |nterface| has bee|
|00004890| 6e 20 6d 61 64 65 20 70 | 75 62 6c 69 63 2e 20 54 |n made p|ublic. T|
|000048a0| 68 65 20 64 61 74 61 20 | 68 61 6e 64 6c 65 72 20 |he data |handler |
|000048b0| 69 6e 74 65 72 66 61 63 | 65 20 69 73 20 6e 6f 74 |interfac|e is not|
|000048c0| 20 62 61 63 6b 77 61 72 | 64 73 20 63 6f 6d 70 61 | backwar|ds compa|
|000048d0| 74 69 62 6c 65 20 77 69 | 74 68 20 65 61 72 6c 69 |tible wi|th earli|
|000048e0| 65 72 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 51 75 |er versi|on of Qu|
|000048f0| 69 63 6b 54 69 6d 65 2e | 0d 49 6e 20 6d 6f 73 74 |ickTime.|.In most|
|00004900| 20 63 61 73 65 73 2c 20 | 64 65 76 65 6c 6f 70 65 | cases, |develope|
|00004910| 72 73 20 77 69 6c 6c 20 | 68 61 76 65 20 6e 6f 20 |rs will |have no |
|00004920| 6e 65 65 64 20 74 6f 20 | 69 6e 74 65 72 61 63 74 |need to |interact|
|00004930| 20 64 69 72 65 63 74 6c | 79 20 77 69 74 68 20 44 | directl|y with D|
|00004940| 61 74 61 20 48 61 6e 64 | 6c 65 72 73 2e 20 54 68 |ata Hand|lers. Th|
|00004950| 65 69 72 20 73 65 72 76 | 69 63 65 73 20 61 72 65 |eir serv|ices are|
|00004960| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 4d 6f 76 | used by| the Mov|
|00004970| 69 65 20 54 6f 6f 6c 62 | 6f 78 20 61 6e 64 20 74 |ie Toolb|ox and t|
|00004980| 68 65 20 53 65 71 75 65 | 6e 63 65 20 47 72 61 62 |he Seque|nce Grab|
|00004990| 62 65 72 2e 20 48 6f 77 | 65 76 65 72 2c 20 69 66 |ber. How|ever, if|
|000049a0| 20 64 65 76 65 6c 6f 70 | 65 72 20 6e 65 65 64 73 | develop|er needs|
|000049b0| 20 74 6f 20 75 73 65 20 | 61 20 64 61 74 61 20 68 | to use |a data h|
|000049c0| 61 6e 64 6c 65 72 2c 20 | 74 68 65 79 20 73 68 6f |andler, |they sho|
|000049d0| 75 6c 64 20 75 73 65 20 | 74 68 65 20 4d 6f 76 69 |uld use |the Movi|
|000049e0| 65 20 54 6f 6f 6c 62 6f | 78 d5 73 20 47 65 74 44 |e Toolbo|x.s GetD|
|000049f0| 61 74 61 48 61 6e 64 6c | 65 72 20 63 61 6c 6c 20 |ataHandl|er call |
|00004a00| 74 6f 20 6c 6f 63 61 74 | 65 20 74 68 65 20 61 70 |to locat|e the ap|
|00004a10| 70 72 6f 70 72 69 61 74 | 65 20 64 61 74 61 20 68 |propriat|e data h|
|00004a20| 61 6e 64 6c 65 72 2c 20 | 72 61 74 68 65 72 20 74 |andler, |rather t|
|00004a30| 68 61 6e 20 75 73 69 6e | 67 20 74 68 65 20 43 6f |han usin|g the Co|
|00004a40| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 d5 |mponent |Manager.|
|00004a50| 73 20 46 69 6e 64 4e 65 | 78 74 43 6f 6d 70 6f 6e |s FindNe|xtCompon|
|00004a60| 65 6e 74 20 6f 72 20 4f | 70 65 6e 43 6f 6d 70 6f |ent or O|penCompo|
|00004a70| 6e 65 6e 74 20 72 6f 75 | 74 69 6e 65 73 2e 0d 54 |nent rou|tines..T|
|00004a80| 68 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |he imple|mentatio|
|00004a90| 6e 20 64 65 74 61 69 6c | 73 20 66 6f 72 20 44 61 |n detail|s for Da|
|00004aa0| 74 61 20 48 61 6e 64 6c | 65 72 73 20 61 72 65 20 |ta Handl|ers are |
|00004ab0| 63 6f 6e 74 61 69 6e 65 | 64 20 69 6e 20 61 20 73 |containe|d in a s|
|00004ac0| 65 70 61 72 61 74 65 20 | 64 6f 63 75 6d 65 6e 74 |eparate |document|
|00004ad0| 2e 0d 48 61 6e 64 6c 65 | 20 44 61 74 61 20 48 61 |..Handle| Data Ha|
|00004ae0| 6e 64 6c 65 72 0d 51 75 | 69 63 6b 54 69 6d 65 20 |ndler.Qu|ickTime |
|00004af0| 32 2e 30 20 61 64 64 73 | 20 61 20 6e 65 77 20 6b |2.0 adds| a new k|
|00004b00| 69 6e 64 20 6f 66 20 64 | 61 74 61 20 68 61 6e 64 |ind of d|ata hand|
|00004b10| 6c 65 72 2c 20 6f 6e 65 | 20 74 68 61 74 20 6f 70 |ler, one| that op|
|00004b20| 65 72 61 74 65 73 20 6f | 6e 20 64 61 74 61 20 69 |erates o|n data i|
|00004b30| 6e 20 6d 65 6d 6f 72 79 | 2c 20 72 61 74 68 65 72 |n memory|, rather|
|00004b40| 20 74 68 61 6e 20 64 61 | 74 61 20 69 6e 20 61 20 | than da|ta in a |
|00004b50| 66 69 6c 65 2e 20 54 68 | 69 73 20 70 72 6f 76 69 |file. Th|is provi|
|00004b60| 64 65 73 20 61 20 63 6f | 6e 76 65 6e 69 65 6e 74 |des a co|nvenient|
|00004b70| 20 77 61 79 20 74 6f 20 | 63 72 65 61 74 65 20 73 | way to |create s|
|00004b80| 6d 61 6c 6c 20 74 65 6d | 70 6f 72 61 72 79 20 6d |mall tem|porary m|
|00004b90| 6f 76 69 65 73 20 77 69 | 74 68 6f 75 74 20 68 61 |ovies wi|thout ha|
|00004ba0| 76 69 6e 67 20 74 6f 20 | 63 72 65 61 74 65 20 61 |ving to |create a|
|00004bb0| 20 66 69 6c 65 20 74 6f | 20 63 6f 6e 74 61 69 6e | file to| contain|
|00004bc0| 20 74 68 65 20 64 61 74 | 61 2e 20 54 68 65 20 64 | the dat|a. The d|
|00004bd0| 61 74 61 20 68 61 6e 64 | 6c 65 72 20 68 61 73 20 |ata hand|ler has |
|00004be0| 61 20 73 75 62 74 79 70 | 65 20 6f 66 20 d4 68 6e |a subtyp|e of .hn|
|00004bf0| 64 6c d5 2e 20 0d 44 61 | 74 61 20 52 65 66 65 72 |dl.. .Da|ta Refer|
|00004c00| 65 6e 63 65 73 20 66 6f | 72 20 74 68 65 20 48 61 |ences fo|r the Ha|
|00004c10| 6e 64 6c 65 20 44 61 74 | 61 20 48 61 6e 64 6c 65 |ndle Dat|a Handle|
|00004c20| 72 20 61 72 65 20 63 6c | 65 61 72 6c 79 20 6e 6f |r are cl|early no|
|00004c30| 74 20 4d 61 63 69 6e 74 | 6f 73 68 20 61 6c 69 61 |t Macint|osh alia|
|00004c40| 73 20 68 61 6e 64 6c 65 | 73 2c 20 61 73 20 77 69 |s handle|s, as wi|
|00004c50| 74 68 20 74 68 65 20 6e | 6f 72 6d 61 6c 20 66 69 |th the n|ormal fi|
|00004c60| 6c 65 20 62 61 73 65 64 | 20 64 61 74 61 20 68 61 |le based| data ha|
|00004c70| 6e 64 6c 65 72 2e 20 49 | 6e 73 74 65 61 64 20 69 |ndler. I|nstead i|
|00004c80| 74 20 75 73 65 73 20 61 | 20 34 20 62 79 74 65 20 |t uses a| 4 byte |
|00004c90| 68 61 6e 64 6c 65 2e 20 | 49 66 20 74 68 65 20 68 |handle. |If the h|
|00004ca0| 61 6e 64 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 61 |andle co|ntains a|
|00004cb0| 20 6e 69 6c 2c 20 74 68 | 65 6e 20 74 68 65 20 48 | nil, th|en the H|
|00004cc0| 61 6e 64 6c 65 20 44 61 | 74 61 20 48 61 6e 64 6c |andle Da|ta Handl|
|00004cd0| 65 72 20 63 72 65 61 74 | 65 73 20 61 20 68 61 6e |er creat|es a han|
|00004ce0| 64 6c 65 20 74 6f 20 75 | 73 65 20 74 6f 20 73 74 |dle to u|se to st|
|00004cf0| 6f 72 65 20 74 68 65 20 | 64 61 74 61 20 61 64 64 |ore the |data add|
|00004d00| 65 64 2e 20 49 66 20 74 | 68 65 20 68 61 6e 64 6c |ed. If t|he handl|
|00004d10| 65 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 6e 6f 6e |e contai|ns a non|
|00004d20| 2d 7a 65 72 6f 20 76 61 | 6c 75 65 2c 20 74 68 65 |-zero va|lue, the|
|00004d30| 20 76 61 6c 75 65 20 69 | 73 20 75 73 65 64 20 61 | value i|s used a|
|00004d40| 73 20 61 20 68 61 6e 64 | 6c 65 20 77 68 69 63 68 |s a hand|le which|
|00004d50| 20 74 68 65 20 63 6c 69 | 65 6e 74 20 69 73 20 72 | the cli|ent is r|
|00004d60| 65 73 70 6f 6e 73 69 62 | 6c 65 20 66 6f 72 20 61 |esponsib|le for a|
|00004d70| 6c 6c 6f 63 61 74 69 6e | 67 20 61 6e 64 20 64 69 |llocatin|g and di|
|00004d80| 73 70 6f 73 69 6e 67 2e | 20 49 6e 20 74 68 69 73 |sposing.| In this|
|00004d90| 20 73 65 63 6f 6e 64 20 | 63 61 73 65 2c 20 74 68 | second |case, th|
|00004da0| 65 20 68 61 6e 64 6c 65 | 20 63 61 6e 20 62 65 20 |e handle| can be |
|00004db0| 70 72 65 6c 6f 61 64 65 | 64 20 77 69 74 68 20 64 |preloade|d with d|
|00004dc0| 61 74 61 2e 20 46 75 72 | 74 68 65 72 2c 20 6d 75 |ata. Fur|ther, mu|
|00004dd0| 6c 74 69 70 6c 65 20 48 | 61 6e 64 6c 65 20 44 61 |ltiple H|andle Da|
|00004de0| 74 61 20 48 61 6e 64 6c | 65 72 73 20 63 61 6e 20 |ta Handl|ers can |
|00004df0| 73 68 61 72 65 20 61 63 | 63 65 73 73 20 74 6f 20 |share ac|cess to |
|00004e00| 74 68 65 20 73 61 6d 65 | 20 68 61 6e 64 6c 65 2e |the same| handle.|
|00004e10| 20 49 6e 20 65 69 74 68 | 65 72 20 63 61 73 65 2c | In eith|er case,|
|00004e20| 20 69 66 20 64 61 74 61 | 20 69 73 20 61 64 64 65 | if data| is adde|
|00004e30| 64 20 74 6f 20 74 68 65 | 20 68 61 6e 64 6c 65 2c |d to the| handle,|
|00004e40| 20 69 74 20 69 73 20 61 | 64 64 65 64 20 61 74 20 | it is a|dded at |
|00004e50| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 65 |the end |of the e|
|00004e60| 78 69 73 74 69 6e 67 20 | 68 61 6e 64 6c 65 20 61 |xisting |handle a|
|00004e70| 6e 64 20 74 68 65 20 68 | 61 6e 64 6c 65 20 69 73 |nd the h|andle is|
|00004e80| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 20 72 | appropr|iately r|
|00004e90| 65 73 69 7a 65 64 2e 0d | 54 6f 20 63 72 65 61 74 |esized..|To creat|
|00004ea0| 65 20 61 20 4d 6f 76 69 | 65 20 77 68 69 63 68 20 |e a Movi|e which |
|00004eb0| 75 73 65 73 20 74 68 65 | 20 48 61 6e 64 6c 65 20 |uses the| Handle |
|00004ec0| 44 61 74 61 20 48 61 6e | 64 6c 65 72 2c 20 79 6f |Data Han|dler, yo|
|00004ed0| 75 20 73 69 6d 70 6c 79 | 20 70 61 73 73 20 d4 68 |u simply| pass .h|
|00004ee0| 64 6e 6c d5 20 69 6e 20 | 70 6c 61 63 65 20 6f 66 |dnl. in |place of|
|00004ef0| 20 d4 61 6c 69 73 d5 20 | 74 6f 20 4e 65 77 54 72 | .alis. |to NewTr|
|00004f00| 61 63 6b 4d 65 64 69 61 | 20 61 6e 64 20 70 61 73 |ackMedia| and pas|
|00004f10| 73 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |s the ap|propriat|
|00004f20| 65 20 64 61 74 61 20 72 | 65 66 65 72 65 6e 63 65 |e data r|eference|
|00004f30| 20 68 61 6e 64 6c 65 2c | 20 61 73 20 64 65 73 63 | handle,| as desc|
|00004f40| 72 69 62 65 64 20 61 62 | 6f 76 65 2e 0d 44 61 74 |ribed ab|ove..Dat|
|00004f50| 61 20 73 74 6f 72 65 64 | 20 69 6e 20 61 20 48 61 |a stored| in a Ha|
|00004f60| 6e 64 6c 65 20 44 61 74 | 61 20 48 61 6e 64 6c 65 |ndle Dat|a Handle|
|00004f70| 72 20 69 73 20 6e 6f 74 | 20 73 61 76 65 64 20 77 |r is not| saved w|
|00004f80| 69 74 68 20 61 20 6d 6f | 76 69 65 2e 20 49 66 20 |ith a mo|vie. If |
|00004f90| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 73 61 76 65 |you want| to save|
|00004fa0| 20 74 68 65 20 64 61 74 | 61 2c 20 79 6f 75 20 63 | the dat|a, you c|
|00004fb0| 61 6e 20 75 73 65 20 46 | 6c 61 74 74 65 6e 4d 6f |an use F|lattenMo|
|00004fc0| 76 69 65 20 6f 72 20 49 | 6e 73 65 72 74 54 72 61 |vie or I|nsertTra|
|00004fd0| 63 6b 53 65 67 6d 65 6e | 74 20 74 6f 20 63 6f 70 |ckSegmen|t to cop|
|00004fe0| 79 20 74 68 65 20 64 61 | 74 61 20 74 6f 20 61 6e |y the da|ta to an|
|00004ff0| 6f 74 68 65 72 20 6d 65 | 64 69 61 20 77 68 69 63 |other me|dia whic|
|00005000| 68 20 72 65 66 65 72 65 | 6e 63 65 73 20 61 20 66 |h refere|nces a f|
|00005010| 69 6c 65 2e 0d 42 61 73 | 65 2f 44 65 72 69 76 65 |ile..Bas|e/Derive|
|00005020| 64 20 4d 65 64 69 61 20 | 48 61 6e 64 6c 65 72 73 |d Media |Handlers|
|00005030| 0d 54 68 65 72 65 20 68 | 61 76 65 20 62 65 65 6e |.There h|ave been|
|00005040| 20 6e 6f 20 6d 61 6a 6f | 72 20 6d 6f 64 69 66 69 | no majo|r modifi|
|00005050| 63 61 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 44 |cations |to the D|
|00005060| 65 72 69 76 65 64 20 4d | 65 64 69 61 20 48 61 6e |erived M|edia Han|
|00005070| 64 6c 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 66 |dler int|erface f|
|00005080| 6f 72 20 51 75 69 63 6b | 54 69 6d 65 20 32 2e 30 |or Quick|Time 2.0|
|00005090| 2e 20 48 6f 77 65 76 65 | 72 2c 20 62 65 63 61 75 |. Howeve|r, becau|
|000050a0| 73 65 20 74 68 65 20 44 | 61 74 61 20 48 61 6e 64 |se the D|ata Hand|
|000050b0| 6c 65 72 20 69 6e 74 65 | 72 66 61 63 65 20 69 73 |ler inte|rface is|
|000050c0| 20 6e 6f 77 20 61 76 61 | 69 6c 61 62 6c 65 20 74 | now ava|ilable t|
|000050d0| 6f 20 61 75 74 68 6f 72 | 73 20 6f 66 20 44 65 72 |o author|s of Der|
|000050e0| 69 76 65 64 20 4d 65 64 | 69 61 20 48 61 6e 64 6c |ived Med|ia Handl|
|000050f0| 65 72 73 2c 20 69 74 20 | 69 73 20 6e 6f 77 20 70 |ers, it |is now p|
|00005100| 6f 73 73 69 62 6c 65 2c | 20 74 68 6f 75 67 68 20 |ossible,| though |
|00005110| 66 61 72 20 66 72 6f 6d | 20 74 72 69 76 69 61 6c |far from| trivial|
|00005120| 2c 20 74 6f 20 77 72 69 | 74 65 20 61 20 44 65 72 |, to wri|te a Der|
|00005130| 69 76 65 64 20 4d 65 64 | 69 61 20 48 61 6e 64 6c |ived Med|ia Handl|
|00005140| 65 72 20 77 68 69 63 68 | 20 73 75 70 70 6f 72 74 |er which| support|
|00005150| 73 20 61 20 6d 75 63 68 | 20 68 69 67 68 65 72 20 |s a much| higher |
|00005160| 64 61 74 61 20 62 61 6e | 64 77 69 64 74 68 20 74 |data ban|dwidth t|
|00005170| 68 61 6e 20 62 65 66 6f | 72 65 2e 20 46 6f 72 20 |han befo|re. For |
|00005180| 65 78 61 6d 70 6c 65 2c | 20 74 68 65 20 4d 50 45 |example,| the MPE|
|00005190| 47 20 4d 65 64 69 61 20 | 48 61 6e 64 6c 65 72 2c |G Media |Handler,|
|000051a0| 20 77 68 69 63 68 20 73 | 75 70 70 6f 72 74 73 20 | which s|upports |
|000051b0| 64 61 74 61 20 72 61 74 | 65 73 20 75 70 20 74 6f |data rat|es up to|
|000051c0| 20 33 30 30 6b 2f 73 65 | 63 6f 6e 64 2c 20 69 73 | 300k/se|cond, is|
|000051d0| 20 61 20 44 65 72 69 76 | 65 64 20 4d 65 64 69 61 | a Deriv|ed Media|
|000051e0| 20 48 61 6e 64 6c 65 72 | 2e 0d 54 68 65 72 65 20 | Handler|..There |
|000051f0| 68 61 76 65 20 62 65 65 | 6e 20 61 20 66 65 77 20 |have bee|n a few |
|00005200| 61 64 64 69 74 69 6f 6e | 73 20 74 6f 20 74 68 65 |addition|s to the|
|00005210| 20 44 65 72 69 76 65 64 | 20 4d 65 64 69 61 20 48 | Derived| Media H|
|00005220| 61 6e 64 6c 65 72 20 69 | 6e 74 65 72 66 61 63 65 |andler i|nterface|
|00005230| 2e 20 54 68 65 73 65 20 | 61 72 65 20 64 65 73 63 |. These |are desc|
|00005240| 72 69 62 65 64 20 62 65 | 6c 6f 77 2e 0d 70 61 73 |ribed be|low..pas|
|00005250| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|00005260| 75 6c 74 20 4d 65 64 69 | 61 46 6f 72 63 65 55 70 |ult Medi|aForceUp|
|00005270| 64 61 74 65 20 28 4d 65 | 64 69 61 48 61 6e 64 6c |date (Me|diaHandl|
|00005280| 65 72 20 6d 68 2c 20 6c | 6f 6e 67 20 66 6f 72 63 |er mh, l|ong forc|
|00005290| 65 55 70 64 61 74 65 46 | 6c 61 67 73 29 0d 4d 65 |eUpdateF|lags).Me|
|000052a0| 64 69 61 46 6f 72 63 65 | 55 70 64 61 74 65 20 69 |diaForce|Update i|
|000052b0| 73 20 61 20 63 61 6c 6c | 20 6d 61 64 65 20 62 79 |s a call| made by|
|000052c0| 20 74 68 65 20 44 65 72 | 69 76 65 64 20 4d 65 64 | the Der|ived Med|
|000052d0| 69 61 20 48 61 6e 64 6c | 65 72 20 74 6f 20 74 68 |ia Handl|er to th|
|000052e0| 65 20 42 61 73 65 20 4d | 65 64 69 61 20 48 61 6e |e Base M|edia Han|
|000052f0| 64 6c 65 72 2c 20 6d 75 | 63 68 20 6c 69 6b 65 20 |dler, mu|ch like |
|00005300| 4d 65 64 69 61 53 65 74 | 48 61 6e 64 6c 65 72 43 |MediaSet|HandlerC|
|00005310| 61 70 61 62 69 6c 69 74 | 69 65 73 2e 20 41 20 6c |apabilit|ies. A l|
|00005320| 6f 6e 67 20 6f 66 20 66 | 6c 61 67 73 20 69 73 20 |ong of f|lags is |
|00005330| 70 61 73 73 65 64 20 74 | 6f 20 69 6e 64 69 63 61 |passed t|o indica|
|00005340| 74 65 20 77 68 61 74 20 | 61 63 74 69 6f 6e 73 20 |te what |actions |
|00005350| 73 68 6f 75 6c 64 20 74 | 61 6b 65 20 70 6c 61 63 |should t|ake plac|
|00005360| 65 2e 0d 65 6e 75 6d 20 | 7b 0d 09 66 6f 72 63 65 |e..enum |{..force|
|00005370| 55 70 64 61 74 65 52 65 | 64 72 61 77 20 3d 20 31 |UpdateRe|draw = 1|
|00005380| 3c 3c 30 2c 0d 09 66 6f | 72 63 65 55 70 64 61 74 |<<0,..fo|rceUpdat|
|00005390| 65 4e 65 77 42 75 66 66 | 65 72 20 3d 20 31 3c 3c |eNewBuff|er = 1<<|
|000053a0| 31 0d 7d 3b 0d 50 61 73 | 73 69 6e 67 20 66 6f 72 |1.};.Pas|sing for|
|000053b0| 63 65 55 70 64 61 74 65 | 52 65 64 72 61 77 20 20 |ceUpdate|Redraw |
|000053c0| 63 61 75 73 65 73 20 74 | 68 65 20 42 61 73 65 20 |causes t|he Base |
|000053d0| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 74 6f |Media Ha|ndler to|
|000053e0| 20 63 61 6c 6c 20 74 68 | 65 20 44 65 72 69 76 65 | call th|e Derive|
|000053f0| 64 20 20 4d 65 64 69 61 | 20 48 61 6e 64 6c 65 72 |d Media| Handler|
|00005400| 20 61 74 20 74 68 65 20 | 6e 65 78 74 20 4d 6f 76 | at the |next Mov|
|00005410| 69 65 73 54 61 73 6b 20 | 63 61 6c 6c 20 74 6f 20 |iesTask |call to |
|00005420| 75 70 64 61 74 65 20 74 | 68 65 20 69 6d 61 67 65 |update t|he image|
|00005430| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2e 20 | on the |screen. |
|00005440| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 20 69 |This is |useful i|
|00005450| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 68 |f you wa|nt to ch|
|00005460| 61 6e 67 65 20 74 68 65 | 20 69 6d 61 67 65 20 6f |ange the| image o|
|00005470| 6e 20 74 68 65 20 73 63 | 72 65 65 6e 20 62 61 73 |n the sc|reen bas|
|00005480| 65 64 20 6f 6e 20 61 20 | 63 61 6c 6c 20 6d 61 64 |ed on a |call mad|
|00005490| 65 20 74 6f 20 74 68 65 | 20 6d 65 64 69 61 2c 20 |e to the| media, |
|000054a0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 74 69 6d 65 |rather t|han time|
|000054b0| 20 63 68 61 6e 67 69 6e | 67 2e 20 41 6e 20 65 78 | changin|g. An ex|
|000054c0| 61 6d 70 6c 65 20 6f 66 | 20 74 68 69 73 20 77 6f |ample of| this wo|
|000054d0| 75 6c 64 20 62 65 20 68 | 69 67 68 6c 69 67 68 74 |uld be h|ighlight|
|000054e0| 69 6e 67 20 74 65 78 74 | 20 77 68 65 6e 20 74 68 |ing text| when th|
|000054f0| 65 20 6d 6f 76 69 65 20 | 69 73 20 73 74 6f 70 70 |e movie |is stopp|
|00005500| 65 64 2e 20 54 68 65 20 | 73 61 6d 70 6c 65 20 6e |ed. The |sample n|
|00005510| 75 6d 62 65 72 20 62 65 | 69 6e 67 20 64 69 73 70 |umber be|ing disp|
|00005520| 6c 61 79 65 64 20 6f 6e | 20 74 68 65 20 73 63 72 |layed on| the scr|
|00005530| 65 65 6e 20 69 73 20 73 | 74 69 6c 6c 20 74 68 65 |een is s|till the|
|00005540| 20 73 61 6d 65 2c 20 62 | 75 74 20 74 68 65 20 69 | same, b|ut the i|
|00005550| 6d 61 67 65 20 6e 65 65 | 64 73 20 74 6f 20 62 65 |mage nee|ds to be|
|00005560| 20 72 65 20 64 72 61 77 | 6e 20 74 6f 20 73 68 6f | re draw|n to sho|
|00005570| 77 20 74 68 65 20 68 69 | 67 68 6c 69 67 68 74 2e |w the hi|ghlight.|
|00005580| 20 50 61 73 73 69 6e 67 | 20 66 6f 72 63 65 55 70 | Passing| forceUp|
|00005590| 64 61 74 65 4e 65 77 42 | 75 66 66 65 72 20 63 61 |dateNewB|uffer ca|
|000055a0| 75 73 65 73 20 74 68 65 | 20 42 61 73 65 20 4d 65 |uses the| Base Me|
|000055b0| 64 69 61 20 48 61 6e 64 | 6c 65 72 20 74 6f 20 72 |dia Hand|ler to r|
|000055c0| 65 61 6c 6c 6f 63 61 74 | 65 20 69 74 73 20 6f 66 |eallocat|e its of|
|000055d0| 66 20 73 63 72 65 65 6e | 20 62 75 66 66 65 72 20 |f screen| buffer |
|000055e0| 61 74 20 20 74 68 65 20 | 6e 65 78 74 20 4d 6f 76 |at the |next Mov|
|000055f0| 69 65 73 54 61 73 6b 2e | 20 54 68 69 73 20 69 73 |iesTask.| This is|
|00005600| 20 75 73 65 66 75 6c 20 | 69 66 20 79 6f 75 20 6e | useful |if you n|
|00005610| 65 65 64 20 74 6f 20 63 | 68 61 6e 67 65 20 74 68 |eed to c|hange th|
|00005620| 65 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |e charac|teristic|
|00005630| 73 20 6f 66 20 74 68 65 | 20 6f 66 66 20 73 63 72 |s of the| off scr|
|00005640| 65 65 6e 20 69 6d 61 67 | 65 20 62 75 66 66 65 72 |een imag|e buffer|
|00005650| 20 64 75 72 69 6e 67 20 | 70 6c 61 79 62 61 63 6b | during |playback|
|00005660| 2e 20 54 68 65 20 20 66 | 6f 72 63 65 55 70 64 61 |. The f|orceUpda|
|00005670| 74 65 52 65 64 72 61 77 | 20 20 61 6e 64 20 66 6f |teRedraw| and fo|
|00005680| 72 63 65 55 70 64 61 74 | 65 4e 65 77 42 75 66 66 |rceUpdat|eNewBuff|
|00005690| 65 72 20 20 66 6c 61 67 | 73 20 6d 61 79 20 62 65 |er flag|s may be|
|000056a0| 20 63 6f 6d 62 69 6e 65 | 64 2e 20 20 50 61 73 73 | combine|d. Pass|
|000056b0| 69 6e 67 20 30 20 66 6f | 72 20 74 68 65 20 66 6c |ing 0 fo|r the fl|
|000056c0| 61 67 73 20 68 61 73 20 | 6e 6f 20 65 66 66 65 63 |ags has |no effec|
|000056d0| 74 2e 0d 70 61 73 63 61 | 6c 20 43 6f 6d 70 6f 6e |t..pasca|l Compon|
|000056e0| 65 6e 74 52 65 73 75 6c | 74 20 4d 65 64 69 61 47 |entResul|t MediaG|
|000056f0| 65 74 44 72 61 77 69 6e | 67 52 67 6e 20 28 4d 65 |etDrawin|gRgn (Me|
|00005700| 64 69 61 48 61 6e 64 6c | 65 72 20 6d 68 2c 20 52 |diaHandl|er mh, R|
|00005710| 67 6e 48 61 6e 64 6c 65 | 20 2a 70 61 72 74 69 61 |gnHandle| *partia|
|00005720| 6c 52 67 6e 29 0d 54 68 | 65 72 65 20 61 72 65 20 |lRgn).Th|ere are |
|00005730| 6f 63 63 61 73 69 6f 6e | 73 20 77 68 65 6e 20 61 |occasion|s when a|
|00005740| 20 6d 65 64 69 61 20 68 | 61 6e 64 6c 65 72 20 6d | media h|andler m|
|00005750| 61 79 20 6f 6e 6c 79 20 | 63 68 61 6e 67 65 20 61 |ay only |change a|
|00005760| 20 73 6d 61 6c 6c 20 70 | 6f 72 74 69 6f 6e 20 6f | small p|ortion o|
|00005770| 66 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 61 72 |f the dr|awing ar|
|00005780| 65 61 20 61 76 61 69 6c | 61 62 6c 65 2e 20 49 66 |ea avail|able. If|
|00005790| 20 74 68 65 20 6d 65 64 | 69 61 20 68 61 6e 64 6c | the med|ia handl|
|000057a0| 65 72 20 69 73 20 75 73 | 69 6e 67 20 61 6e 20 6f |er is us|ing an o|
|000057b0| 66 66 20 73 63 72 65 65 | 6e 20 62 75 66 66 65 72 |ff scree|n buffer|
|000057c0| 2c 20 74 68 65 20 65 6e | 74 69 72 65 20 62 75 66 |, the en|tire buf|
|000057d0| 66 65 72 20 77 6f 75 6c | 64 20 74 68 65 6e 20 62 |fer woul|d then b|
|000057e0| 65 20 63 6f 70 69 65 64 | 20 74 6f 20 74 68 65 20 |e copied| to the |
|000057f0| 73 63 72 65 65 6e 2c 20 | 65 76 65 6e 20 74 68 6f |screen, |even tho|
|00005800| 75 67 68 20 6f 6e 6c 79 | 20 61 20 73 6d 61 6c 6c |ugh only| a small|
|00005810| 20 61 72 65 61 20 63 68 | 61 6e 67 65 64 2e 20 4d | area ch|anged. M|
|00005820| 65 64 69 61 47 65 74 44 | 72 61 77 69 6e 67 52 67 |ediaGetD|rawingRg|
|00005830| 6e 20 70 72 6f 76 69 64 | 65 73 20 61 20 77 61 79 |n provid|es a way|
|00005840| 20 66 6f 72 20 74 68 65 | 20 6d 65 64 69 61 20 74 | for the| media t|
|00005850| 6f 20 69 6e 64 69 63 61 | 74 65 20 77 68 69 63 68 |o indica|te which|
|00005860| 20 70 6f 72 74 69 6f 6e | 20 6f 66 20 74 68 65 20 | portion| of the |
|00005870| 69 6d 61 67 65 20 63 68 | 61 6e 67 65 64 2c 20 73 |image ch|anged, s|
|00005880| 6f 20 6f 6e 6c 79 20 74 | 68 61 74 20 61 72 65 61 |o only t|hat area|
|00005890| 20 69 73 20 63 6f 70 69 | 65 64 20 74 6f 20 74 68 | is copi|ed to th|
|000058a0| 65 20 73 63 72 65 65 6e | 2e 20 4f 6e 20 72 65 74 |e screen|. On ret|
|000058b0| 75 72 6e 20 66 72 6f 6d | 20 4d 65 64 69 61 49 64 |urn from| MediaId|
|000058c0| 6c 65 2c 20 74 68 65 20 | 6d 50 61 72 74 69 61 6c |le, the |mPartial|
|000058d0| 44 72 61 77 20 66 6c 61 | 67 20 73 68 6f 75 6c 64 |Draw fla|g should|
|000058e0| 20 62 65 20 73 65 74 20 | 69 6e 20 74 68 65 20 6f | be set |in the o|
|000058f0| 75 74 70 75 74 20 66 6c | 61 67 73 2e 20 54 68 69 |utput fl|ags. Thi|
|00005900| 73 20 66 6c 61 67 20 69 | 6e 64 69 63 61 74 65 73 |s flag i|ndicates|
|00005910| 20 74 6f 20 74 68 65 20 | 42 61 73 65 20 4d 65 64 | to the |Base Med|
|00005920| 69 61 20 48 61 6e 64 6c | 65 72 20 74 68 61 74 20 |ia Handl|er that |
|00005930| 6f 6e 6c 79 20 70 61 72 | 74 20 6f 66 20 74 68 65 |only par|t of the|
|00005940| 20 69 6d 61 67 65 20 73 | 68 6f 75 6c 64 20 62 65 | image s|hould be|
|00005950| 20 63 6f 70 69 65 64 20 | 66 72 6f 6d 20 74 68 65 | copied |from the|
|00005960| 20 62 75 66 66 65 72 20 | 74 6f 20 74 68 65 20 73 | buffer |to the s|
|00005970| 63 72 65 65 6e 2e 20 54 | 68 65 20 42 61 73 65 20 |creen. T|he Base |
|00005980| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 74 68 |Media Ha|ndler th|
|00005990| 65 6e 20 63 61 6c 6c 73 | 20 74 68 65 20 44 65 72 |en calls| the Der|
|000059a0| 69 76 65 64 20 4d 65 64 | 69 61 20 48 61 6e 64 6c |ived Med|ia Handl|
|000059b0| 65 72 d5 73 20 4d 65 64 | 69 61 47 65 74 44 72 61 |er.s Med|iaGetDra|
|000059c0| 77 69 6e 67 52 67 6e 20 | 72 6f 75 74 69 6e 65 20 |wingRgn |routine |
|000059d0| 74 6f 20 6f 62 74 61 69 | 6e 20 61 20 72 65 67 69 |to obtai|n a regi|
|000059e0| 6f 6e 20 72 65 70 72 65 | 73 65 6e 74 69 6e 67 20 |on repre|senting |
|000059f0| 74 68 65 20 61 72 65 61 | 20 74 6f 20 63 6f 70 79 |the area| to copy|
|00005a00| 2e 20 54 68 65 20 72 65 | 67 69 6f 6e 20 72 65 74 |. The re|gion ret|
|00005a10| 75 72 6e 65 64 20 62 79 | 20 4d 65 64 69 61 47 65 |urned by| MediaGe|
|00005a20| 74 44 72 61 77 69 6e 67 | 52 67 6e 20 69 73 20 6f |tDrawing|Rgn is o|
|00005a30| 77 6e 65 64 20 62 79 20 | 74 68 65 20 44 65 72 69 |wned by |the Deri|
|00005a40| 76 65 64 20 4d 65 64 69 | 61 20 48 61 6e 64 6c 65 |ved Medi|a Handle|
|00005a50| 72 2c 20 74 68 65 20 42 | 61 73 65 20 4d 65 64 69 |r, the B|ase Medi|
|00005a60| 61 20 48 61 6e 64 6c 65 | 72 20 64 6f 65 73 20 6e |a Handle|r does n|
|00005a70| 6f 74 20 64 69 73 70 6f | 73 65 20 6f 66 20 69 74 |ot dispo|se of it|
|00005a80| 2e 0d 0d 0d 4d 50 45 47 | 0d 46 72 6f 6d 20 74 68 |....MPEG|.From th|
|00005a90| 65 20 70 65 72 73 70 65 | 63 74 69 76 65 20 6f 66 |e perspe|ctive of|
|00005aa0| 20 6d 6f 73 74 20 61 70 | 70 6c 69 63 61 74 69 6f | most ap|plicatio|
|00005ab0| 6e 20 64 65 76 65 6c 6f | 70 65 72 73 2c 20 51 75 |n develo|pers, Qu|
|00005ac0| 69 63 6b 54 69 6d 65 d5 | 73 20 73 75 70 70 6f 72 |ickTime.|s suppor|
|00005ad0| 74 20 66 6f 72 20 4d 50 | 45 47 20 77 69 6c 6c 20 |t for MP|EG will |
|00005ae0| 72 65 71 75 69 72 65 20 | 6c 69 74 74 6c 65 20 6f |require |little o|
|00005af0| 72 20 6e 6f 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |r no add|itional |
|00005b00| 65 66 66 6f 72 74 2e 20 | 4d 50 45 47 20 66 69 6c |effort. |MPEG fil|
|00005b10| 65 73 20 61 72 65 20 6f | 70 65 6e 65 64 20 64 69 |es are o|pened di|
|00005b20| 72 65 63 74 6c 79 20 62 | 79 20 51 75 69 63 6b 54 |rectly b|y QuickT|
|00005b30| 69 6d 65 20 75 73 69 6e | 67 20 74 68 65 20 69 6d |ime usin|g the im|
|00005b40| 70 6f 72 74 20 6d 65 63 | 68 61 6e 69 73 6d 20 74 |port mec|hanism t|
|00005b50| 68 61 74 20 68 61 73 20 | 62 65 65 6e 20 70 72 65 |hat has |been pre|
|00005b60| 73 65 6e 74 20 73 69 6e | 63 65 20 51 75 69 63 6b |sent sin|ce Quick|
|00005b70| 54 69 6d 65 20 31 2e 35 | 2e 20 4d 50 45 47 20 66 |Time 1.5|. MPEG f|
|00005b80| 69 6c 65 73 20 63 61 6e | 20 62 65 20 6f 70 65 6e |iles can| be open|
|00005b90| 65 64 20 75 73 69 6e 67 | 20 74 68 65 20 6e 6f 72 |ed using| the nor|
|00005ba0| 6d 61 6c 20 4f 70 65 6e | 4d 6f 76 69 65 46 69 6c |mal Open|MovieFil|
|00005bb0| 65 2c 20 4e 65 77 4d 6f | 76 69 65 46 72 6f 6d 46 |e, NewMo|vieFromF|
|00005bc0| 69 6c 65 2c 20 43 6c 6f | 73 65 4d 6f 76 69 65 46 |ile, Clo|seMovieF|
|00005bd0| 69 6c 65 20 73 65 71 75 | 65 6e 63 65 2e 20 54 68 |ile sequ|ence. Th|
|00005be0| 65 20 51 75 69 63 6b 54 | 69 6d 65 20 4d 6f 76 69 |e QuickT|ime Movi|
|00005bf0| 65 20 69 73 20 67 65 6e | 65 72 61 74 65 64 20 6f |e is gen|erated o|
|00005c00| 6e 20 74 68 65 20 66 6c | 79 2e 20 4d 50 45 47 20 |n the fl|y. MPEG |
|00005c10| 6d 6f 76 69 65 73 20 64 | 6f 20 6e 6f 74 20 63 6f |movies d|o not co|
|00005c20| 6e 74 61 69 6e 20 73 6f | 75 6e 64 20 6f 72 20 76 |ntain so|und or v|
|00005c30| 69 64 65 6f 20 74 72 61 | 63 6b 73 2e 20 49 6e 20 |ideo tra|cks. In |
|00005c40| 74 68 65 69 72 20 70 6c | 61 63 65 20 69 73 20 61 |their pl|ace is a|
|00005c50| 20 73 69 6e 67 6c 65 20 | 74 72 61 63 6b 2c 20 68 | single |track, h|
|00005c60| 61 6e 64 6c 65 64 20 62 | 79 20 74 68 65 20 4d 50 |andled b|y the MP|
|00005c70| 45 47 20 4d 65 64 69 61 | 20 48 61 6e 64 6c 65 72 |EG Media| Handler|
|00005c80| 2e 20 54 68 69 73 20 6d | 65 64 69 61 20 68 61 6e |. This m|edia han|
|00005c90| 64 6c 65 72 20 68 61 73 | 20 62 6f 74 68 20 76 69 |dler has| both vi|
|00005ca0| 64 65 6f 20 61 6e 64 20 | 61 75 64 69 6f 20 63 6f |deo and |audio co|
|00005cb0| 6d 70 6f 6e 65 6e 74 73 | 2e 20 4d 6f 76 69 65 73 |mponents|. Movies|
|00005cc0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 4d 50 45 47 | contain|ing MPEG|
|00005cd0| 20 77 6f 72 6b 20 77 69 | 74 68 20 61 6e 79 20 61 | work wi|th any a|
|00005ce0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 20 |pplicati|on that |
|00005cf0| 73 75 70 70 6f 72 74 73 | 20 73 74 61 6e 64 61 72 |supports| standar|
|00005d00| 64 20 51 75 69 63 6b 54 | 69 6d 65 20 70 6c 61 79 |d QuickT|ime play|
|00005d10| 62 61 63 6b 2e 0d 54 68 | 65 72 65 20 61 72 65 20 |back..Th|ere are |
|00005d20| 73 6f 6d 65 20 64 69 66 | 66 65 72 65 6e 63 65 73 |some dif|ferences|
|00005d30| 20 77 69 74 68 20 68 6f | 77 20 4d 50 45 47 20 69 | with ho|w MPEG i|
|00005d40| 73 20 68 61 6e 64 6c 65 | 64 20 74 68 61 74 20 6d |s handle|d that m|
|00005d50| 61 79 20 65 66 66 65 63 | 74 20 61 70 70 6c 69 63 |ay effec|t applic|
|00005d60| 61 74 69 6f 6e 73 20 77 | 68 69 63 68 20 70 72 6f |ations w|hich pro|
|00005d70| 76 69 64 65 20 6d 6f 72 | 65 20 65 78 74 65 6e 73 |vide mor|e extens|
|00005d80| 69 76 65 20 65 64 69 74 | 69 6e 67 20 73 75 70 70 |ive edit|ing supp|
|00005d90| 6f 72 74 20 74 68 61 6e | 20 74 68 65 20 73 74 61 |ort than| the sta|
|00005da0| 6e 64 61 72 64 20 4d 6f | 76 69 65 20 43 6f 6e 74 |ndard Mo|vie Cont|
|00005db0| 72 6f 6c 6c 65 72 2e 20 | 4d 50 45 47 20 6d 6f 76 |roller. |MPEG mov|
|00005dc0| 65 73 20 63 61 6e 20 62 | 65 20 65 64 69 74 65 64 |es can b|e edited|
|00005dd0| 20 75 73 69 6e 67 20 6e | 6f 72 6d 61 6c 20 65 64 | using n|ormal ed|
|00005de0| 69 74 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 2e 20 |iting co|mmands. |
|00005df0| 48 6f 77 65 76 65 72 2c | 20 74 68 65 20 73 61 6d |However,| the sam|
|00005e00| 70 6c 65 20 66 6f 72 6d | 61 74 20 69 73 20 65 78 |ple form|at is ex|
|00005e10| 74 72 65 6d 65 6c 79 20 | 64 69 66 66 65 72 65 6e |tremely |differen|
|00005e20| 74 2e 20 41 20 74 79 70 | 69 63 61 6c 20 4d 50 45 |t. A typ|ical MPE|
|00005e30| 47 20 74 72 61 63 6b 20 | 68 61 73 20 6f 6e 6c 79 |G track |has only|
|00005e40| 20 6f 6e 65 20 67 69 61 | 6e 74 20 73 61 6d 70 6c | one gia|nt sampl|
|00005e50| 65 2e 20 54 68 69 73 20 | 6d 61 6b 65 73 20 77 6f |e. This |makes wo|
|00005e60| 72 6b 69 6e 67 20 77 69 | 74 68 20 63 61 6c 6c 73 |rking wi|th calls|
|00005e70| 20 6c 69 6b 65 20 47 65 | 74 4d 65 64 69 61 53 61 | like Ge|tMediaSa|
|00005e80| 6d 70 6c 65 20 69 6d 70 | 72 61 63 74 69 63 61 6c |mple imp|ractical|
|00005e90| 2e 20 54 68 65 72 65 20 | 69 73 20 6e 6f 74 20 63 |. There |is not c|
|00005ea0| 75 72 72 65 6e 74 6c 79 | 20 61 6e 20 65 78 70 6f |urrently| an expo|
|00005eb0| 72 74 20 63 6f 6d 70 6f | 6e 65 6e 74 20 77 68 69 |rt compo|nent whi|
|00005ec0| 63 68 20 77 6f 75 6c 64 | 20 61 6c 6c 6f 77 20 61 |ch would| allow a|
|00005ed0| 20 51 75 69 63 6b 54 69 | 6d 65 20 65 64 69 74 65 | QuickTi|me edite|
|00005ee0| 64 20 4d 50 45 47 20 6d | 6f 76 69 65 20 74 6f 20 |d MPEG m|ovie to |
|00005ef0| 62 65 20 74 75 72 6e 65 | 64 20 62 61 63 6b 20 69 |be turne|d back i|
|00005f00| 6e 74 6f 20 61 20 70 75 | 72 65 20 4d 50 45 47 20 |nto a pu|re MPEG |
|00005f10| 73 74 72 65 61 6d 2e 20 | 54 68 69 73 20 6d 61 79 |stream. |This may|
|00005f20| 20 61 6c 73 6f 20 62 65 | 20 61 64 64 72 65 73 73 | also be| address|
|00005f30| 65 64 2e 20 53 6f 6d 65 | 20 4d 50 45 47 20 68 61 |ed. Some| MPEG ha|
|00005f40| 72 64 77 61 72 65 20 6d | 61 79 20 6e 6f 74 20 73 |rdware m|ay not s|
|00005f50| 75 70 70 6f 72 74 20 61 | 6e 79 20 61 63 63 65 73 |upport a|ny acces|
|00005f60| 73 20 74 6f 20 74 68 65 | 20 4d 50 45 47 20 69 6d |s to the| MPEG im|
|00005f70| 61 67 65 20 64 61 74 61 | 2e 20 54 68 69 73 20 6d |age data|. This m|
|00005f80| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 20 74 72 |eans tha|t the tr|
|00005f90| 61 63 6b 20 63 61 6e 6e | 6f 74 20 62 65 20 69 6d |ack cann|ot be im|
|00005fa0| 61 67 65 64 20 6f 66 66 | 20 73 63 72 65 65 6e 2c |aged off| screen,|
|00005fb0| 20 61 6e 64 20 74 68 61 | 74 20 63 61 6c 6c 73 20 | and tha|t calls |
|00005fc0| 6c 69 6b 65 20 47 65 74 | 4d 6f 76 69 65 50 69 63 |like Get|MoviePic|
|00005fd0| 74 20 6d 61 79 20 66 61 | 69 6c 2e 20 0d 4d 50 45 |t may fa|il. .MPE|
|00005fe0| 47 20 70 6c 61 79 62 61 | 63 6b 20 63 75 72 72 65 |G playba|ck curre|
|00005ff0| 6e 74 6c 79 20 72 65 71 | 75 69 72 65 73 20 73 70 |ntly req|uires sp|
|00006000| 65 63 69 61 6c 20 68 61 | 72 64 77 61 72 65 2e 20 |ecial ha|rdware. |
|00006010| 41 6c 6c 20 6b 6e 6f 77 | 6e 20 68 61 72 64 77 61 |All know|n hardwa|
|00006020| 72 65 20 6f 6e 6c 79 20 | 73 75 70 70 6f 72 74 73 |re only |supports|
|00006030| 20 70 6c 61 79 62 61 63 | 6b 20 6f 66 20 6f 6e 65 | playbac|k of one|
|00006040| 20 4d 50 45 47 20 73 74 | 72 65 61 6d 20 61 74 20 | MPEG st|ream at |
|00006050| 61 20 74 69 6d 65 2e 20 | 54 68 69 73 20 6d 65 61 |a time. |This mea|
|00006060| 6e 73 20 74 68 61 74 20 | 69 66 20 74 77 6f 20 4d |ns that |if two M|
|00006070| 50 45 47 20 6d 6f 76 69 | 65 73 20 61 72 65 20 6f |PEG movi|es are o|
|00006080| 70 65 6e 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |pen at t|he same |
|00006090| 74 69 6d 65 2c 20 6f 6e | 6c 79 20 6f 6e 65 20 77 |time, on|ly one w|
|000060a0| 69 6c 6c 20 70 6c 61 79 | 20 61 74 20 61 20 74 69 |ill play| at a ti|
|000060b0| 6d 65 2e 20 54 68 65 20 | 4d 50 45 47 20 4d 65 64 |me. The |MPEG Med|
|000060c0| 69 61 20 48 61 6e 64 6c | 65 72 20 77 69 6c 6c 20 |ia Handl|er will |
|000060d0| 6d 6f 64 65 72 61 74 65 | 20 61 73 20 62 65 73 74 |moderate| as best|
|000060e0| 20 69 74 20 63 61 6e 2c | 20 6d 75 63 68 20 61 73 | it can,| much as|
|000060f0| 20 74 68 65 20 53 6f 75 | 6e 64 20 4d 65 64 69 61 | the Sou|nd Media|
|00006100| 20 48 61 6e 64 6c 65 72 | 20 6d 6f 64 65 72 61 74 | Handler| moderat|
|00006110| 65 64 20 74 68 65 20 64 | 69 73 74 72 69 62 75 74 |ed the d|istribut|
|00006120| 69 6f 6e 20 6f 66 20 73 | 6f 75 6e 64 20 63 68 61 |ion of s|ound cha|
|00006130| 6e 6e 65 6c 73 20 77 68 | 65 6e 20 75 73 69 6e 67 |nnels wh|en using|
|00006140| 20 53 6f 75 6e 64 20 4d | 61 6e 61 67 65 72 20 32 | Sound M|anager 2|
|00006150| 2e 30 2e 0d 44 65 76 65 | 6c 6f 70 65 72 73 20 62 |.0..Deve|lopers b|
|00006160| 75 69 6c 64 69 6e 67 20 | 4d 50 45 47 20 68 61 72 |uilding |MPEG har|
|00006170| 64 77 61 72 65 20 73 68 | 6f 75 6c 64 20 63 6f 6e |dware sh|ould con|
|00006180| 74 61 63 74 20 41 70 70 | 6c 65 20 74 6f 20 6f 62 |tact App|le to ob|
|00006190| 74 61 69 6e 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tain inf|ormation|
|000061a0| 20 6f 6e 20 74 68 65 20 | 51 75 69 63 6b 54 69 6d | on the |QuickTim|
|000061b0| 65 d5 73 20 73 6f 66 74 | 77 61 72 65 20 69 6e 74 |e.s soft|ware int|
|000061c0| 65 72 66 61 63 65 2e 0d | 0d 0d 49 6d 61 67 65 20 |erface..|..Image |
|000061d0| 43 6f 6d 70 72 65 73 73 | 69 6f 6e 20 4d 61 6e 61 |Compress|ion Mana|
|000061e0| 67 65 72 0d 44 65 63 6f | 6d 70 72 65 73 73 53 65 |ger.Deco|mpressSe|
|000061f0| 71 75 65 6e 63 65 46 72 | 61 6d 65 57 68 65 6e 0d |quenceFr|ameWhen.|
|00006200| 70 61 73 63 61 6c 20 4f | 53 45 72 72 20 44 65 63 |pascal O|SErr Dec|
|00006210| 6f 6d 70 72 65 73 73 53 | 65 71 75 65 6e 63 65 46 |ompressS|equenceF|
|00006220| 72 61 6d 65 57 68 65 6e | 28 49 6d 61 67 65 53 65 |rameWhen|(ImageSe|
|00006230| 71 75 65 6e 63 65 20 73 | 65 71 49 44 2c 50 74 72 |quence s|eqID,Ptr|
|00006240| 20 64 61 74 61 2c 6c 6f | 6e 67 20 64 61 74 61 53 | data,lo|ng dataS|
|00006250| 69 7a 65 2c 43 6f 64 65 | 63 46 6c 61 67 73 20 69 |ize,Code|cFlags i|
|00006260| 6e 46 6c 61 67 73 2c 43 | 6f 64 65 63 46 6c 61 67 |nFlags,C|odecFlag|
|00006270| 73 20 2a 6f 75 74 46 6c | 61 67 73 2c 49 43 4d 43 |s *outFl|ags,ICMC|
|00006280| 6f 6d 70 6c 65 74 69 6f | 6e 50 72 6f 63 52 65 63 |ompletio|nProcRec|
|00006290| 6f 72 64 50 74 72 20 61 | 73 79 6e 63 43 6f 6d 70 |ordPtr a|syncComp|
|000062a0| 6c 65 74 69 6f 6e 50 72 | 6f 63 2c 63 6f 6e 73 74 |letionPr|oc,const|
|000062b0| 20 49 43 4d 46 72 61 6d | 65 54 69 6d 65 50 74 72 | ICMFram|eTimePtr|
|000062c0| 20 66 72 61 6d 65 54 69 | 6d 65 29 0d 54 68 69 73 | frameTi|me).This|
|000062d0| 20 6e 65 77 20 76 61 72 | 69 61 6e 74 20 6f 66 20 | new var|iant of |
|000062e0| 74 68 65 20 44 65 63 6f | 6d 70 72 65 73 73 53 65 |the Deco|mpressSe|
|000062f0| 71 75 65 6e 63 65 46 72 | 61 6d 65 20 63 61 6c 6c |quenceFr|ame call|
|00006300| 2c 20 61 6c 6c 6f 77 73 | 20 61 20 49 43 4d 46 72 |, allows| a ICMFr|
|00006310| 61 6d 65 54 69 6d 65 50 | 74 72 20 74 6f 20 62 65 |ameTimeP|tr to be|
|00006320| 20 70 61 73 73 65 64 20 | 69 6e 20 61 6c 6f 6e 67 | passed |in along|
|00006330| 20 77 69 74 68 20 74 68 | 65 20 66 72 61 6d 65 2e | with th|e frame.|
|00006340| 20 54 68 69 73 20 49 43 | 4d 46 72 61 6d 65 54 69 | This IC|MFrameTi|
|00006350| 6d 65 50 74 72 20 69 6e | 64 69 63 61 74 65 73 20 |mePtr in|dicates |
|00006360| 74 68 65 20 74 69 6d 65 | 20 61 74 20 77 68 69 63 |the time| at whic|
|00006370| 68 20 74 68 65 20 69 6d | 61 67 65 20 64 61 74 61 |h the im|age data|
|00006380| 20 73 68 6f 75 6c 64 20 | 62 65 20 64 69 73 70 6c | should |be displ|
|00006390| 61 79 65 64 2c 20 61 73 | 20 77 65 6c 6c 20 61 73 |ayed, as| well as|
|000063a0| 20 74 68 65 20 66 72 61 | 6d 65 d5 73 20 64 75 72 | the fra|me.s dur|
|000063b0| 61 74 69 6f 6e 20 61 6e | 64 20 74 68 65 20 6d 6f |ation an|d the mo|
|000063c0| 76 69 65 d5 73 20 63 75 | 72 72 65 6e 74 20 70 6c |vie.s cu|rrent pl|
|000063d0| 61 79 20 62 61 63 6b 20 | 72 61 74 65 2e 20 55 73 |ay back |rate. Us|
|000063e0| 69 6e 67 20 74 68 69 73 | 20 6d 65 63 68 61 6e 69 |ing this| mechani|
|000063f0| 73 6d 2c 20 73 65 76 65 | 72 61 6c 20 66 72 61 6d |sm, seve|ral fram|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.