home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Programming Stuff / Documentation / How to write an MPEG Player < prev    next >
MacBinary  |  1994-04-25  |  18.5 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: How to write an MPEG Player

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Mon Apr 25 12:49:38 1994, modified Mon Apr 25 13:51:16 1994, creator 'HLX2', type 'ONLN', 17324 bytes "How to write an MPEG Player" , at 0x442c 1313 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1b 48 6f 77 20 74 6f | 20 77 72 69 74 65 20 61 |..How to| write a|
|00000010| 6e 20 4d 50 45 47 20 50 | 6c 61 79 65 72 00 00 00 |n MPEG P|layer...|
|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 00 43 ac 00 | 00 05 21 a9 e1 a5 22 a9 |.....C..|..!...".|
|00000060| e1 b3 94 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 75 2b 00 00 |........|....u+..|
|00000080| 4d 50 45 47 20 53 74 72 | 65 61 6d 73 20 41 50 49 |MPEG Str|eams API|
|00000090| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 0d 4d 50 45 | Descrip|tion.MPE|
|000000a0| 47 20 53 74 72 65 61 6d | 20 43 6f 6d 70 6f 6e 65 |G Stream| Compone|
|000000b0| 6e 74 73 0d 23 64 65 66 | 69 6e 65 20 53 79 73 74 |nts.#def|ine Syst|
|000000c0| 65 6d 4d 65 64 69 61 54 | 79 70 65 20 27 73 79 73 |emMediaT|ype 'sys|
|000000d0| 20 27 0d 23 64 65 66 69 | 6e 65 20 6b 4d 50 45 47 | '.#defi|ne kMPEG|
|000000e0| 53 74 72 65 61 6d 50 6c | 61 79 65 72 54 79 70 65 |StreamPl|ayerType|
|000000f0| 20 27 6d 70 67 31 27 0d | 4d 50 45 47 20 53 74 72 | 'mpg1'.|MPEG Str|
|00000100| 65 61 6d 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 68 |eam comp|onents h|
|00000110| 61 76 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 74 79 |ave comp|onent ty|
|00000120| 70 65 20 27 6d 70 67 31 | 27 2c 20 61 6e 64 20 73 |pe 'mpg1|', and s|
|00000130| 75 62 74 79 70 65 20 53 | 79 73 74 65 6d 4d 65 64 |ubtype S|ystemMed|
|00000140| 69 61 54 79 70 65 2c 20 | 56 69 64 65 6f 4d 65 64 |iaType, |VideoMed|
|00000150| 69 61 54 79 70 65 2c 20 | 6f 72 20 41 75 64 69 6f |iaType, |or Audio|
|00000160| 4d 65 64 69 61 54 79 70 | 65 2e 20 20 54 6f 64 61 |MediaTyp|e. Toda|
|00000170| 79 20 28 41 70 72 69 6c | 20 31 35 2c 20 31 39 39 |y (April| 15, 199|
|00000180| 34 29 2c 20 74 68 65 20 | 4d 50 45 47 20 4d 65 64 |4), the |MPEG Med|
|00000190| 69 61 20 48 61 6e 64 6c | 65 72 20 6c 6f 6f 6b 73 |ia Handl|er looks|
|000001a0| 20 6f 6e 6c 79 20 66 6f | 72 20 61 20 73 79 73 74 | only fo|r a syst|
|000001b0| 65 6d 20 73 74 72 65 61 | 6d 20 70 6c 61 79 65 72 |em strea|m player|
|000001c0| 2e 20 20 49 6e 20 74 68 | 65 20 6e 65 61 72 20 66 |. In th|e near f|
|000001d0| 75 74 75 72 65 2c 20 74 | 68 65 20 4d 50 45 47 20 |uture, t|he MPEG |
|000001e0| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 77 69 |Media Ha|ndler wi|
|000001f0| 6c 6c 20 62 65 20 63 61 | 70 61 62 6c 65 20 6f 66 |ll be ca|pable of|
|00000200| 20 68 61 6e 64 6c 69 6e | 67 20 65 6c 65 6d 65 6e | handlin|g elemen|
|00000210| 74 61 72 79 20 4d 50 45 | 47 20 76 69 64 65 6f 20 |tary MPE|G video |
|00000220| 6f 72 20 61 75 64 69 6f | 20 73 74 72 65 61 6d 73 |or audio| streams|
|00000230| 20 61 6e 64 20 77 69 6c | 6c 20 63 6f 6e 6e 65 63 | and wil|l connec|
|00000240| 74 20 64 69 72 65 63 74 | 6c 79 20 74 6f 20 74 68 |t direct|ly to th|
|00000250| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 63 6f |e approp|riate co|
|00000260| 6d 70 6f 6e 65 6e 74 2e | 0d 54 68 65 20 67 65 6e |mponent.|.The gen|
|00000270| 65 72 61 6c 20 66 6c 6f | 77 20 6f 66 20 64 61 74 |eral flo|w of dat|
|00000280| 61 20 61 6e 64 20 64 69 | 76 69 73 69 6f 6e 20 6f |a and di|vision o|
|00000290| 66 20 6c 61 62 6f 72 20 | 61 6d 6f 6e 67 20 74 68 |f labor |among th|
|000002a0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 69 73 20 |e compon|ents is |
|000002b0| 61 73 20 66 6f 6c 6c 6f | 77 73 2e 20 20 54 68 65 |as follo|ws. The|
|000002c0| 20 4d 50 45 47 20 4d 65 | 64 69 61 20 48 61 6e 64 | MPEG Me|dia Hand|
|000002d0| 6c 65 72 20 74 61 6b 65 | 73 20 63 61 72 65 20 6f |ler take|s care o|
|000002e0| 66 20 66 65 74 63 68 69 | 6e 67 20 64 61 74 61 20 |f fetchi|ng data |
|000002f0| 66 72 6f 6d 20 74 68 65 | 20 64 61 74 61 20 68 61 |from the| data ha|
|00000300| 6e 64 6c 65 72 2c 20 6d | 61 6e 61 67 69 6e 67 20 |ndler, m|anaging |
|00000310| 65 64 69 74 73 2c 20 61 | 6e 64 20 63 6f 6e 76 65 |edits, a|nd conve|
|00000320| 72 74 69 6e 67 20 75 73 | 65 72 20 69 6e 74 65 72 |rting us|er inter|
|00000330| 66 61 63 65 20 63 6f 6d | 6d 61 6e 64 73 20 28 63 |face com|mands (c|
|00000340| 6f 6e 76 65 79 65 64 20 | 76 69 61 20 74 68 65 20 |onveyed |via the |
|00000350| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 41 50 |Media Ha|ndler AP|
|00000360| 49 29 2c 20 20 69 6e 74 | 6f 20 61 70 70 72 6f 70 |I), int|o approp|
|00000370| 72 69 61 74 65 20 4d 50 | 45 47 20 53 74 72 65 61 |riate MP|EG Strea|
|00000380| 6d 20 41 50 49 20 63 61 | 6c 6c 73 2e 20 20 54 68 |m API ca|lls. Th|
|00000390| 65 20 4d 50 45 47 20 4d | 65 64 69 61 20 48 61 6e |e MPEG M|edia Han|
|000003a0| 64 6c 65 72 20 69 73 20 | 61 20 64 65 72 69 76 65 |dler is |a derive|
|000003b0| 64 20 6d 65 64 69 61 20 | 68 61 6e 64 6c 65 72 2c |d media |handler,|
|000003c0| 20 61 73 20 64 6f 63 75 | 6d 65 6e 74 65 64 20 69 | as docu|mented i|
|000003d0| 6e 20 49 6e 73 69 64 65 | 20 4d 61 63 20 51 75 69 |n Inside| Mac Qui|
|000003e0| 63 6b 54 69 6d 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |ckTime C|omponent|
|000003f0| 73 2e 0d 54 68 65 20 4d | 50 45 47 20 53 74 72 65 |s..The M|PEG Stre|
|00000400| 61 6d 20 68 61 6e 64 6c | 65 72 27 73 20 66 75 6e |am handl|er's fun|
|00000410| 63 74 69 6f 6e 20 69 73 | 20 74 6f 20 69 6d 70 6c |ction is| to impl|
|00000420| 65 6d 65 6e 74 20 49 53 | 4f 2d 31 31 31 37 32 2d |ement IS|O-11172-|
|00000430| 31 20 28 4d 50 45 47 2d | 31 20 53 79 73 74 65 6d |1 (MPEG-|1 System|
|00000440| 73 29 2e 20 20 54 68 65 | 20 73 79 73 74 65 6d 20 |s). The| system |
|00000450| 73 74 72 65 61 6d 20 68 | 61 6e 64 6c 65 72 20 69 |stream h|andler i|
|00000460| 73 20 74 6f 6c 64 20 62 | 79 20 74 68 65 20 6d 65 |s told b|y the me|
|00000470| 64 69 61 20 68 61 6e 64 | 6c 65 72 20 77 68 61 74 |dia hand|ler what|
|00000480| 20 74 69 6d 65 27 73 20 | 76 61 6c 75 65 20 6f 66 | time's |value of|
|00000490| 20 74 68 65 20 73 74 72 | 65 61 6d 20 69 73 20 75 | the str|eam is u|
|000004a0| 73 65 72 20 69 73 20 65 | 78 70 65 63 74 69 6e 67 |ser is e|xpecting|
|000004b0| 20 74 6f 20 62 65 20 70 | 72 65 73 65 6e 74 65 64 | to be p|resented|
|000004c0| 20 77 69 74 68 2e 20 20 | 20 54 68 65 20 73 79 73 | with. | The sys|
|000004d0| 74 65 6d 20 73 74 72 65 | 61 6d 20 68 61 6e 64 6c |tem stre|am handl|
|000004e0| 65 72 20 69 73 20 74 68 | 65 6e 20 72 65 73 70 6f |er is th|en respo|
|000004f0| 6e 73 69 62 6c 65 20 66 | 6f 72 20 72 65 71 75 65 |nsible f|or reque|
|00000500| 73 74 69 6e 67 20 64 61 | 74 61 20 61 73 20 6e 65 |sting da|ta as ne|
|00000510| 65 64 65 64 20 61 6e 64 | 20 64 65 63 6f 64 69 6e |eded and| decodin|
|00000520| 67 20 69 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 |g it app|ropriate|
|00000530| 6c 79 2e 20 20 20 54 68 | 65 20 73 79 73 74 65 6d |ly. Th|e system|
|00000540| 20 73 74 72 65 61 6d 20 | 68 61 6e 64 6c 65 72 20 | stream |handler |
|00000550| 69 6e 63 6c 75 64 65 64 | 20 77 69 74 68 20 51 75 |included| with Qu|
|00000560| 69 63 6b 54 69 6d 65 20 | 32 2e 30 20 69 6d 70 6c |ickTime |2.0 impl|
|00000570| 65 6d 65 6e 74 73 20 6f | 6e 6c 79 20 74 68 65 20 |ements o|nly the |
|00000580| 73 79 73 74 65 6d 20 6c | 61 79 65 72 20 66 75 6e |system l|ayer fun|
|00000590| 63 74 69 6f 6e 73 3b 20 | 69 74 20 6c 6f 6f 6b 73 |ctions; |it looks|
|000005a0| 20 66 6f 72 20 61 6e 64 | 20 75 73 65 73 20 61 75 | for and| uses au|
|000005b0| 64 69 6f 20 61 6e 64 20 | 76 69 64 65 6f 20 4d 50 |dio and |video MP|
|000005c0| 45 47 20 73 74 72 65 61 | 6d 20 70 6c 61 79 65 72 |EG strea|m player|
|000005d0| 73 20 74 6f 20 69 6d 70 | 6c 65 6d 65 6e 74 20 74 |s to imp|lement t|
|000005e0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 73 |he rest |of the s|
|000005f0| 74 61 6e 64 61 72 64 2e | 20 0d 54 69 6d 65 0d 74 |tandard.| .Time.t|
|00000600| 79 70 65 64 65 66 20 70 | 61 73 63 61 6c 20 6c 6f |ypedef p|ascal lo|
|00000610| 6e 67 20 28 4d 50 45 47 | 54 69 6d 65 50 72 6f 63 |ng (MPEG|TimeProc|
|00000620| 29 20 28 6c 6f 6e 67 20 | 72 65 66 63 6f 6e 20 29 |) (long |refcon )|
|00000630| 3b 0d 74 79 70 65 64 65 | 66 20 4d 50 45 47 54 69 |;.typede|f MPEGTi|
|00000640| 6d 65 50 72 6f 63 20 2a | 4d 50 45 47 54 69 6d 65 |meProc *|MPEGTime|
|00000650| 50 72 6f 63 50 74 72 3b | 0d 74 79 70 65 64 65 66 |ProcPtr;|.typedef|
|00000660| 20 49 6e 74 36 34 42 69 | 74 20 53 43 52 54 79 70 | Int64Bi|t SCRTyp|
|00000670| 65 3b 0d 54 68 65 20 6d | 61 73 74 65 72 20 63 6c |e;.The m|aster cl|
|00000680| 6f 63 6b 20 69 73 20 6f | 62 74 61 69 6e 65 64 20 |ock is o|btained |
|00000690| 62 79 20 6d 61 70 70 69 | 6e 67 20 51 75 69 63 6b |by mappi|ng Quick|
|000006a0| 54 69 6d 65 27 73 20 63 | 6c 6f 63 6b 20 6f 6e 74 |Time's c|lock ont|
|000006b0| 6f 20 74 68 65 20 39 30 | 6b 68 7a 20 74 69 6d 65 |o the 90|khz time|
|000006c0| 6c 69 6e 65 20 6f 66 20 | 74 68 65 20 4d 50 45 47 |line of |the MPEG|
|000006d0| 20 73 74 72 65 61 6d 20 | 62 65 69 6e 67 20 64 65 | stream |being de|
|000006e0| 63 6f 64 65 64 2e 20 20 | 20 54 6f 20 63 6f 6e 76 |coded. | To conv|
|000006f0| 65 79 20 74 68 69 73 20 | 69 6e 66 6f 72 6d 61 74 |ey this |informat|
|00000700| 69 6f 6e 2c 20 74 68 65 | 20 4d 50 45 47 20 4d 65 |ion, the| MPEG Me|
|00000710| 64 69 61 20 68 61 6e 64 | 6c 65 72 20 70 72 6f 76 |dia hand|ler prov|
|00000720| 69 64 65 73 20 61 20 70 | 72 6f 63 65 64 75 72 65 |ides a p|rocedure|
|00000730| 20 74 6f 20 4d 50 45 47 | 20 53 74 72 65 61 6d 20 | to MPEG| Stream |
|00000740| 68 61 6e 64 6c 65 72 73 | 20 74 68 61 74 20 72 65 |handlers| that re|
|00000750| 74 75 72 6e 73 20 74 68 | 65 20 63 75 72 72 65 6e |turns th|e curren|
|00000760| 74 20 74 69 6d 65 20 69 | 6e 20 39 30 6b 68 7a 20 |t time i|n 90khz |
|00000770| 75 6e 69 74 73 2e 0d 54 | 69 6d 65 20 76 61 6c 75 |units..T|ime valu|
|00000780| 65 73 20 61 72 65 20 73 | 74 6f 72 65 64 20 69 6e |es are s|tored in|
|00000790| 20 36 34 62 69 74 20 73 | 74 72 75 63 74 73 2c 20 | 64bit s|tructs, |
|000007a0| 49 6e 74 36 34 42 69 74 | 2c 20 61 73 20 64 65 66 |Int64Bit|, as def|
|000007b0| 69 6e 65 64 20 69 6e 20 | 54 6f 6f 6c 55 74 69 6c |ined in |ToolUtil|
|000007c0| 73 2e 68 20 69 6e 20 74 | 68 65 20 55 6e 69 76 65 |s.h in t|he Unive|
|000007d0| 72 73 61 6c 20 48 65 61 | 64 65 72 73 2e 20 20 53 |rsal Hea|ders. S|
|000007e0| 69 6e 63 65 20 4d 50 45 | 47 20 74 69 6d 65 20 76 |ince MPE|G time v|
|000007f0| 61 6c 75 65 73 20 61 72 | 65 20 33 33 20 62 69 74 |alues ar|e 33 bit|
|00000800| 73 2c 20 6f 6e 6c 79 20 | 74 68 65 20 6c 65 61 73 |s, only |the leas|
|00000810| 74 20 73 69 67 6e 69 66 | 69 63 61 6e 74 20 62 69 |t signif|icant bi|
|00000820| 74 20 69 6e 20 74 68 65 | 20 68 69 67 68 20 6c 6f |t in the| high lo|
|00000830| 6e 67 20 6f 66 20 74 68 | 65 20 73 74 72 75 63 74 |ng of th|e struct|
|00000840| 20 68 61 73 20 61 6e 79 | 20 6d 65 61 6e 69 6e 67 | has any| meaning|
|00000850| 2e 0d 46 75 6e 63 74 69 | 6f 6e 73 0d 70 61 73 63 |..Functi|ons.pasc|
|00000860| 61 6c 20 43 6f 6d 70 6f | 6e 65 6e 74 52 65 73 75 |al Compo|nentResu|
|00000870| 6c 74 20 4d 50 45 47 53 | 74 72 65 61 6d 48 61 76 |lt MPEGS|treamHav|
|00000880| 65 54 68 65 50 6f 77 65 | 72 28 43 6f 6d 70 6f 6e |eThePowe|r(Compon|
|00000890| 65 6e 74 49 6e 73 74 61 | 6e 63 65 20 63 69 29 20 |entInsta|nce ci) |
|000008a0| 0d 70 61 73 63 61 6c 20 | 43 6f 6d 70 6f 6e 65 6e |.pascal |Componen|
|000008b0| 74 52 65 73 75 6c 74 20 | 4d 50 45 47 53 74 72 65 |tResult |MPEGStre|
|000008c0| 61 6d 47 69 76 65 49 74 | 55 70 28 43 6f 6d 70 6f |amGiveIt|Up(Compo|
|000008d0| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 20 63 69 29 |nentInst|ance ci)|
|000008e0| 20 0d 4f 70 65 6e 20 61 | 6e 64 20 43 6c 6f 73 65 | .Open a|nd Close|
|000008f0| 20 61 64 68 65 72 65 20 | 74 6f 20 74 68 65 20 73 | adhere |to the s|
|00000900| 74 61 6e 64 61 72 64 20 | 41 50 49 2e 20 20 48 6f |tandard |API. Ho|
|00000910| 77 65 76 65 72 2c 20 61 | 20 73 74 72 65 61 6d 20 |wever, a| stream |
|00000920| 63 6f 6d 70 6f 6e 65 6e | 74 20 73 68 6f 75 6c 64 |componen|t should|
|00000930| 20 6e 6f 74 20 61 63 74 | 75 61 6c 6c 79 20 70 6c | not act|ually pl|
|00000940| 61 79 20 6f 72 20 65 76 | 65 6e 20 62 65 20 63 61 |ay or ev|en be ca|
|00000950| 6c 6c 65 64 20 75 6e 6c | 65 73 73 20 69 74 20 22 |lled unl|ess it "|
|00000960| 48 61 73 20 54 68 65 20 | 50 6f 77 65 72 22 2e 20 |Has The |Power". |
|00000970| 20 41 6e 20 6f 70 65 6e | 20 6d 6f 76 69 65 20 6d | An open| movie m|
|00000980| 75 73 74 20 68 61 76 65 | 20 62 65 65 6e 20 63 61 |ust have| been ca|
|00000990| 6c 6c 65 64 20 62 79 20 | 4d 50 45 47 53 74 72 65 |lled by |MPEGStre|
|000009a0| 61 6d 73 48 61 76 65 54 | 68 65 50 6f 77 65 72 20 |amsHaveT|hePower |
|000009b0| 62 65 66 6f 72 65 20 70 | 6c 61 79 69 6e 67 2e 20 |before p|laying. |
|000009c0| 20 49 66 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 | If a di|fferent |
|000009d0| 6d 6f 76 69 65 20 6e 65 | 65 64 73 20 74 68 65 20 |movie ne|eds the |
|000009e0| 73 61 6d 65 20 68 61 72 | 64 77 61 72 65 2c 20 74 |same har|dware, t|
|000009f0| 68 65 6e 20 74 68 65 20 | 6f 70 65 6e 20 6f 6e 65 |hen the |open one|
|00000a00| 20 77 69 6c 6c 20 62 65 | 20 63 61 6c 6c 65 64 20 | will be| called |
|00000a10| 77 69 74 68 20 47 69 76 | 65 49 74 55 70 2c 20 61 |with Giv|eItUp, a|
|00000a20| 6e 64 20 74 68 65 20 6e | 65 77 20 6d 6f 76 69 65 |nd the n|ew movie|
|00000a30| 20 77 69 6c 6c 20 62 65 | 20 63 61 6c 6c 65 64 20 | will be| called |
|00000a40| 77 69 74 68 20 48 61 76 | 65 54 68 65 50 6f 77 65 |with Hav|eThePowe|
|00000a50| 72 2e 20 20 54 68 69 73 | 20 69 73 20 64 6f 6e 65 |r. This| is done|
|00000a60| 20 74 6f 20 68 65 6c 70 | 20 61 72 62 69 74 72 61 | to help| arbitra|
|00000a70| 74 65 20 62 65 74 77 65 | 65 6e 20 6d 75 6c 74 69 |te betwe|en multi|
|00000a80| 70 6c 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 69 6e |ple comp|onent in|
|00000a90| 73 74 61 6e 63 65 73 20 | 74 68 61 74 20 64 65 70 |stances |that dep|
|00000aa0| 65 6e 64 20 6f 6e 20 74 | 68 65 20 73 61 6d 65 20 |end on t|he same |
|00000ab0| 68 61 72 64 77 61 72 65 | 2e 20 20 4f 6e 65 20 70 |hardware|. One p|
|00000ac0| 6f 73 73 69 62 6c 65 20 | 75 73 65 20 6f 66 20 74 |ossible |use of t|
|00000ad0| 68 69 73 20 69 73 20 74 | 68 61 74 20 61 20 76 69 |his is t|hat a vi|
|00000ae0| 64 65 6f 20 6f 72 20 61 | 75 64 69 6f 20 73 74 72 |deo or a|udio str|
|00000af0| 65 61 6d 20 70 6c 61 79 | 65 72 20 6d 61 79 20 63 |eam play|er may c|
|00000b00| 6c 6f 73 65 20 64 69 66 | 66 65 72 65 6e 74 6c 79 |lose dif|ferently|
|00000b10| 20 64 65 70 65 6e 64 69 | 6e 67 20 75 70 6f 6e 20 | dependi|ng upon |
|00000b20| 77 68 65 74 68 65 72 20 | 6f 72 20 6e 6f 74 20 69 |whether |or not i|
|00000b30| 74 20 d2 68 61 73 20 74 | 68 65 20 70 6f 77 65 72 |t .has t|he power|
|00000b40| d3 20 61 74 20 74 68 61 | 74 20 74 69 6d 65 2e 20 |. at tha|t time. |
|00000b50| 54 68 69 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |This par|t of the|
|00000b60| 20 41 50 49 20 69 73 20 | 75 6e 64 65 72 20 72 65 | API is |under re|
|00000b70| 76 69 65 77 20 61 6e 64 | 20 6d 61 79 20 62 65 20 |view and| may be |
|00000b80| 65 6c 69 6d 69 6e 61 74 | 65 64 20 69 6e 20 66 61 |eliminat|ed in fa|
|00000b90| 76 6f 72 20 6f 66 20 73 | 69 6d 70 6c 79 20 6f 6e |vor of s|imply on|
|00000ba0| 6c 79 20 68 61 76 69 6e | 67 20 6f 6e 65 20 63 6f |ly havin|g one co|
|00000bb0| 6d 70 6f 6e 65 6e 74 20 | 6f 70 65 6e 20 61 74 20 |mponent |open at |
|00000bc0| 61 20 74 69 6d 65 2e 20 | 20 0d 70 61 73 63 61 6c |a time. | .pascal|
|00000bd0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 52 65 73 75 6c 74 | Compone|ntResult|
|00000be0| 20 4d 50 45 47 53 74 72 | 65 61 6d 53 65 74 4d 50 | MPEGStr|eamSetMP|
|00000bf0| 45 47 54 69 6d 65 50 72 | 6f 63 28 43 6f 6d 70 6f |EGTimePr|oc(Compo|
|00000c00| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 20 63 69 2c |nentInst|ance ci,|
|00000c10| 20 4d 50 45 47 54 69 6d | 65 50 72 6f 63 50 74 72 | MPEGTim|eProcPtr|
|00000c20| 20 43 6c 6f 63 6b 2c 20 | 6c 6f 6e 67 20 43 6c 6f | Clock, |long Clo|
|00000c30| 63 6b 52 65 66 63 6f 6e | 29 0d 54 68 65 20 4d 65 |ckRefcon|).The Me|
|00000c40| 64 69 61 20 48 61 6e 64 | 6c 65 72 27 73 20 63 6c |dia Hand|ler's cl|
|00000c50| 6f 63 6b 20 66 75 6e 63 | 74 69 6f 6e 20 61 6e 64 |ock func|tion and|
|00000c60| 20 73 69 6e 67 6c 65 20 | 70 61 72 61 6d 65 74 65 | single |paramete|
|00000c70| 72 20 61 72 65 20 70 61 | 73 73 65 64 20 61 74 20 |r are pa|ssed at |
|00000c80| 74 68 69 73 20 74 69 6d | 65 20 73 6f 20 74 68 61 |this tim|e so tha|
|00000c90| 74 20 74 68 65 79 20 63 | 61 6e 20 62 65 20 63 61 |t they c|an be ca|
|00000ca0| 63 68 65 64 20 66 6f 72 | 20 6c 61 74 65 72 20 75 |ched for| later u|
|00000cb0| 73 65 2e 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 |se. Thi|s functi|
|00000cc0| 6f 6e 20 77 69 6c 6c 20 | 62 65 20 63 61 6c 6c 65 |on will |be calle|
|00000cd0| 64 20 62 79 20 74 68 65 | 20 4d 50 45 47 20 6d 65 |d by the| MPEG me|
|00000ce0| 64 69 61 20 68 61 6e 64 | 6c 65 72 20 61 66 74 65 |dia hand|ler afte|
|00000cf0| 72 20 74 68 65 20 6f 70 | 65 6e 20 63 61 6c 6c 20 |r the op|en call |
|00000d00| 62 75 74 20 62 65 66 6f | 72 65 20 61 6e 79 20 63 |but befo|re any c|
|00000d10| 61 6c 6c 73 20 74 6f 20 | 69 6e 69 74 2c 20 69 64 |alls to |init, id|
|00000d20| 6c 65 2c 20 6f 72 20 64 | 65 63 6f 64 65 2e 0d 70 |le, or d|ecode..p|
|00000d30| 61 73 63 61 6c 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ascal Co|mponentR|
|00000d40| 65 73 75 6c 74 20 4d 50 | 45 47 53 74 72 65 61 6d |esult MP|EGStream|
|00000d50| 49 6e 69 74 28 43 6f 6d | 70 6f 6e 65 6e 74 49 6e |Init(Com|ponentIn|
|00000d60| 73 74 61 6e 63 65 20 63 | 69 29 20 0d 54 68 65 20 |stance c|i) .The |
|00000d70| 49 6e 69 74 20 63 61 6c | 6c 20 70 72 6f 76 69 64 |Init cal|l provid|
|00000d80| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 77 69 |es compo|nents wi|
|00000d90| 74 68 20 74 68 65 69 72 | 20 66 69 72 73 74 20 6f |th their| first o|
|00000da0| 70 70 6f 72 74 75 6e 69 | 74 79 20 74 6f 20 64 6f |pportuni|ty to do|
|00000db0| 20 61 6e 79 74 68 69 6e | 67 20 74 68 61 74 20 6d | anythin|g that m|
|00000dc0| 69 67 68 74 20 61 66 66 | 65 63 74 20 74 68 65 20 |ight aff|ect the |
|00000dd0| 64 69 73 70 6c 61 79 20 | 6f 66 20 69 6e 66 6f 72 |display |of infor|
|00000de0| 6d 61 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 75 73 |mation t|o the us|
|00000df0| 65 72 2e 20 20 51 75 69 | 63 6b 54 69 6d 65 27 73 |er. Qui|ckTime's|
|00000e00| 20 73 79 73 74 65 6d 20 | 73 74 72 65 61 6d 20 70 | system |stream p|
|00000e10| 6c 61 79 65 72 20 63 61 | 6c 6c 73 20 74 68 65 20 |layer ca|lls the |
|00000e20| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 69 6e |correspo|nding in|
|00000e30| 69 74 20 66 75 6e 63 74 | 69 6f 6e 73 20 6f 66 20 |it funct|ions of |
|00000e40| 74 68 65 20 61 74 74 61 | 63 68 65 64 20 61 75 64 |the atta|ched aud|
|00000e50| 69 6f 20 61 6e 64 20 76 | 69 64 65 6f 20 70 6c 61 |io and v|ideo pla|
|00000e60| 79 65 72 73 2e 20 20 54 | 68 69 73 20 69 73 20 61 |yers. T|his is a|
|00000e70| 20 67 6f 6f 64 20 74 69 | 6d 65 20 74 6f 20 63 6c | good ti|me to cl|
|00000e80| 65 61 72 20 73 63 72 65 | 65 6e 73 2c 20 70 75 74 |ear scre|ens, put|
|00000e90| 20 75 70 20 77 69 6e 64 | 6f 77 73 2c 20 65 74 63 | up wind|ows, etc|
|00000ea0| 2e 2e 2e 2e 20 0d 70 61 | 73 63 61 6c 20 43 6f 6d |.... .pa|scal Com|
|00000eb0| 70 6f 6e 65 6e 74 52 65 | 73 75 6c 74 20 4d 50 45 |ponentRe|sult MPE|
|00000ec0| 47 53 74 72 65 61 6d 44 | 65 63 6f 64 65 28 43 6f |GStreamD|ecode(Co|
|00000ed0| 6d 70 6f 6e 65 6e 74 49 | 6e 73 74 61 6e 63 65 20 |mponentI|nstance |
|00000ee0| 63 69 2c 20 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |ci, unsi|gned cha|
|00000ef0| 72 20 2a 64 61 74 61 2c | 20 6c 6f 6e 67 20 73 69 |r *data,| long si|
|00000f00| 7a 65 2c 20 42 6f 6f 6c | 65 61 6e 20 49 73 50 54 |ze, Bool|ean IsPT|
|00000f10| 53 2c 20 53 43 52 54 79 | 70 65 20 2a 50 54 53 29 |S, SCRTy|pe *PTS)|
|00000f20| 20 0d 54 68 65 20 64 65 | 63 6f 64 65 20 63 61 6c | .The de|code cal|
|00000f30| 6c 20 69 73 20 75 73 65 | 64 20 74 6f 20 70 61 73 |l is use|d to pas|
|00000f40| 73 20 64 61 74 61 20 74 | 68 61 74 20 6d 75 73 74 |s data t|hat must|
|00000f50| 20 62 65 20 64 65 63 6f | 64 65 64 2e 20 20 54 68 | be deco|ded. Th|
|00000f60| 65 20 66 69 72 73 74 20 | 74 77 6f 20 70 61 72 61 |e first |two para|
|00000f70| 6d 65 74 65 72 73 20 69 | 6e 64 69 63 61 74 65 20 |meters i|ndicate |
|00000f80| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 20 61 6e 64 |the loca|tion and|
|00000f90| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 64 61 74 | size of| the dat|
|00000fa0| 61 2e 20 20 57 68 65 6e | 20 64 61 74 61 20 69 73 |a. When| data is|
|00000fb0| 20 70 61 73 73 65 64 20 | 74 6f 20 65 6c 65 6d 65 | passed |to eleme|
|00000fc0| 6e 74 61 72 79 20 73 74 | 72 65 61 6d 73 2c 20 61 |ntary st|reams, a|
|00000fd0| 20 42 6f 6f 6c 65 61 6e | 20 69 6e 64 69 63 61 74 | Boolean| indicat|
|00000fe0| 65 73 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |es if th|ere is a|
|00000ff0| 20 50 54 53 20 61 73 73 | 6f 63 69 61 74 65 64 20 | PTS ass|ociated |
|00001000| 77 69 74 68 20 74 68 65 | 20 64 61 74 61 20 62 65 |with the| data be|
|00001010| 69 6e 67 20 70 61 73 73 | 65 64 2e 0d 70 61 73 63 |ing pass|ed..pasc|
|00001020| 61 6c 20 43 6f 6d 70 6f | 6e 65 6e 74 52 65 73 75 |al Compo|nentResu|
|00001030| 6c 74 20 4d 50 45 47 53 | 74 72 65 61 6d 49 64 6c |lt MPEGS|treamIdl|
|00001040| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 49 6e 73 74 61 |e(Compon|entInsta|
|00001050| 6e 63 65 20 63 69 29 20 | 0d 54 68 65 20 69 64 6c |nce ci) |.The idl|
|00001060| 65 20 63 61 6c 6c 20 69 | 73 20 61 6e 20 6f 70 70 |e call i|s an opp|
|00001070| 6f 72 74 75 6e 69 74 79 | 20 74 6f 20 70 65 72 66 |ortunity| to perf|
|00001080| 6f 72 6d 20 77 68 61 74 | 65 76 65 72 20 70 72 6f |orm what|ever pro|
|00001090| 63 65 73 73 69 6e 67 20 | 69 73 20 64 65 73 69 72 |cessing |is desir|
|000010a0| 65 64 2e 20 0d 57 68 65 | 6e 65 76 65 72 20 74 68 |ed. .Whe|never th|
|000010b0| 65 20 4d 50 45 47 20 4d | 65 64 69 61 20 48 61 6e |e MPEG M|edia Han|
|000010c0| 64 6c 65 72 20 6b 6e 6f | 77 73 20 74 68 61 74 20 |dler kno|ws that |
|000010d0| 69 74 20 69 73 20 70 61 | 73 73 69 6e 67 20 64 69 |it is pa|ssing di|
|000010e0| 73 63 6f 6e 74 69 6e 75 | 6f 75 73 20 64 61 74 61 |scontinu|ous data|
|000010f0| 20 74 6f 20 61 74 74 61 | 63 68 65 64 20 73 74 72 | to atta|ched str|
|00001100| 65 61 6d 20 70 6c 61 79 | 65 72 73 20 28 62 65 63 |eam play|ers (bec|
|00001110| 61 75 73 65 20 6f 66 20 | 65 72 72 6f 72 20 6f 72 |ause of |error or|
|00001120| 20 73 65 65 6b 73 29 2c | 20 69 74 20 63 61 6c 6c | seeks),| it call|
|00001130| 73 20 74 68 65 20 72 65 | 73 65 74 20 66 75 6e 63 |s the re|set func|
|00001140| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 61 74 74 61 |tion of |the atta|
|00001150| 63 68 65 64 20 73 74 72 | 65 61 6d 20 70 6c 61 79 |ched str|eam play|
|00001160| 65 72 73 2e 20 20 54 68 | 69 73 20 73 68 6f 75 6c |ers. Th|is shoul|
|00001170| 64 20 62 65 20 75 73 65 | 64 20 61 73 20 61 20 73 |d be use|d as a s|
|00001180| 69 67 6e 61 6c 20 74 6f | 20 66 6c 75 73 68 20 61 |ignal to| flush a|
|00001190| 6c 6c 20 62 75 66 66 65 | 72 73 20 61 6e 64 20 6e |ll buffe|rs and n|
|000011a0| 6f 74 20 64 65 63 6f 64 | 65 20 65 6c 65 6d 65 6e |ot decod|e elemen|
|000011b0| 74 61 72 79 20 73 74 72 | 65 61 6d 20 64 61 74 61 |tary str|eam data|
|000011c0| 20 75 6e 74 69 6c 20 61 | 70 70 72 6f 70 72 69 61 | until a|ppropria|
|000011d0| 74 65 20 72 65 20 73 79 | 6e 63 68 72 6f 6e 69 7a |te re sy|nchroniz|
|000011e0| 61 74 69 6f 6e 20 63 6f | 6e 64 69 74 69 6f 6e 73 |ation co|nditions|
|000011f0| 20 68 61 76 65 20 62 65 | 65 6e 20 73 61 74 69 73 | have be|en satis|
|00001200| 66 69 65 64 2e 0d 70 61 | 73 63 61 6c 20 43 6f 6d |fied..pa|scal Com|
|00001210| 70 6f 6e 65 6e 74 52 65 | 73 75 6c 74 20 4d 50 45 |ponentRe|sult MPE|
|00001220| 47 53 74 72 65 61 6d 53 | 65 74 52 61 74 65 28 43 |GStreamS|etRate(C|
|00001230| 6f 6d 70 6f 6e 65 6e 74 | 49 6e 73 74 61 6e 63 65 |omponent|Instance|
|00001240| 20 63 69 2c 20 46 69 78 | 65 64 29 20 0d 70 61 73 | ci, Fix|ed) .pas|
|00001250| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|00001260| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 53 65 |ult MPEG|StreamSe|
|00001270| 74 56 6f 6c 75 6d 65 28 | 43 6f 6d 70 6f 6e 65 6e |tVolume(|Componen|
|00001280| 74 49 6e 73 74 61 6e 63 | 65 20 63 69 2c 20 73 68 |tInstanc|e ci, sh|
|00001290| 6f 72 74 20 76 6f 6c 75 | 6d 65 29 20 0d 70 61 73 |ort volu|me) .pas|
|000012a0| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|000012b0| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 53 65 |ult MPEG|StreamSe|
|000012c0| 74 44 69 6d 65 6e 73 69 | 6f 6e 73 28 43 6f 6d 70 |tDimensi|ons(Comp|
|000012d0| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 63 69 |onentIns|tance ci|
|000012e0| 2c 20 46 69 78 65 64 2c | 20 46 69 78 65 64 29 20 |, Fixed,| Fixed) |
|000012f0| 0d 70 61 73 63 61 6c 20 | 43 6f 6d 70 6f 6e 65 6e |.pascal |Componen|
|00001300| 74 52 65 73 75 6c 74 20 | 4d 50 45 47 53 74 72 65 |tResult |MPEGStre|
|00001310| 61 6d 53 65 74 4d 61 74 | 72 69 78 28 43 6f 6d 70 |amSetMat|rix(Comp|
|00001320| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 63 69 |onentIns|tance ci|
|00001330| 2c 20 4d 61 74 72 69 78 | 52 65 63 6f 72 64 20 2a |, Matrix|Record *|
|00001340| 29 20 0d 70 61 73 63 61 | 6c 20 43 6f 6d 70 6f 6e |) .pasca|l Compon|
|00001350| 65 6e 74 52 65 73 75 6c | 74 20 4d 50 45 47 53 74 |entResul|t MPEGSt|
|00001360| 72 65 61 6d 47 65 74 53 | 72 63 52 67 6e 28 43 6f |reamGetS|rcRgn(Co|
|00001370| 6d 70 6f 6e 65 6e 74 49 | 6e 73 74 61 6e 63 65 20 |mponentI|nstance |
|00001380| 63 69 2c 20 52 67 6e 48 | 61 6e 64 6c 65 2c 20 54 |ci, RgnH|andle, T|
|00001390| 69 6d 65 56 61 6c 75 65 | 29 20 0d 54 68 65 73 65 |imeValue|) .These|
|000013a0| 20 70 72 6f 63 65 64 75 | 72 65 73 20 61 72 65 20 | procedu|res are |
|000013b0| 63 61 6c 6c 65 64 20 77 | 68 65 6e 20 75 73 65 72 |called w|hen user|
|000013c0| 20 6f 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | or appl|ication |
|000013d0| 61 63 74 69 6f 6e 73 20 | 69 6e 73 74 72 75 63 74 |actions |instruct|
|000013e0| 20 51 75 69 63 6b 54 69 | 6d 65 20 74 6f 20 64 6f | QuickTi|me to do|
|000013f0| 20 73 6f 2e 20 20 54 68 | 65 20 41 50 49 20 66 6f | so. Th|e API fo|
|00001400| 72 20 74 68 65 73 65 20 | 63 61 6c 6c 73 20 73 75 |r these |calls su|
|00001410| 70 70 6f 72 74 20 74 68 | 65 20 63 6f 72 72 65 73 |pport th|e corres|
|00001420| 70 6f 6e 64 69 6e 67 20 | 70 61 72 74 73 20 6f 66 |ponding |parts of|
|00001430| 20 74 68 65 20 41 50 49 | 20 66 6f 72 20 64 65 72 | the API| for der|
|00001440| 69 76 65 64 20 4d 65 64 | 69 61 20 48 61 6e 64 6c |ived Med|ia Handl|
|00001450| 65 72 73 2e 0d 70 61 73 | 63 61 6c 20 43 6f 6d 70 |ers..pas|cal Comp|
|00001460| 6f 6e 65 6e 74 52 65 73 | 75 6c 74 20 4d 50 45 47 |onentRes|ult MPEG|
|00001470| 53 74 72 65 61 6d 46 72 | 61 6d 65 56 69 73 69 62 |StreamFr|ameVisib|
|00001480| 6c 65 28 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |le(Compo|nentInst|
|00001490| 61 6e 63 65 20 63 69 2c | 20 42 6f 6f 6c 65 61 6e |ance ci,| Boolean|
|000014a0| 20 2a 69 73 56 69 73 69 | 62 6c 65 29 20 0d 54 68 | *isVisi|ble) .Th|
|000014b0| 65 20 46 72 61 6d 65 56 | 69 73 69 62 6c 65 20 66 |e FrameV|isible f|
|000014c0| 75 6e 63 74 69 6f 6e 20 | 69 6e 64 69 63 61 74 65 |unction |indicate|
|000014d0| 73 20 74 6f 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |s to a c|omponent|
|000014e0| 20 63 61 6c 6c 69 6e 67 | 20 61 20 76 69 64 65 6f | calling| a video|
|000014f0| 20 73 74 72 65 61 6d 20 | 70 6c 61 79 65 72 20 74 | stream |player t|
|00001500| 68 61 74 20 61 20 66 72 | 61 6d 65 20 69 73 20 76 |hat a fr|ame is v|
|00001510| 69 73 69 62 6c 65 2e 20 | 20 49 6e 20 67 65 6e 65 |isible. | In gene|
|00001520| 72 61 6c 2c 20 74 68 69 | 73 20 66 75 6e 63 74 69 |ral, thi|s functi|
|00001530| 6f 6e 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 66 |on will |return f|
|00001540| 61 6c 73 65 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |alse imm|ediately|
|00001550| 20 61 66 74 65 72 20 61 | 20 72 65 73 65 74 20 63 | after a| reset c|
|00001560| 61 6c 6c 2c 20 20 61 6e | 64 20 77 69 6c 6c 20 74 |all, an|d will t|
|00001570| 75 72 6e 20 74 6f 20 74 | 72 75 65 20 73 68 6f 72 |urn to t|rue shor|
|00001580| 74 6c 79 20 61 66 74 65 | 72 77 61 72 64 2c 20 61 |tly afte|rward, a|
|00001590| 6e 64 20 74 68 65 72 65 | 61 66 74 65 72 2c 20 75 |nd there|after, u|
|000015a0| 6e 74 69 6c 20 61 6e 6f | 74 68 65 72 20 72 65 73 |ntil ano|ther res|
|000015b0| 65 74 20 63 61 6c 6c 2e | 0d 70 61 73 63 61 6c 20 |et call.|.pascal |
|000015c0| 43 6f 6d 70 6f 6e 65 6e | 74 52 65 73 75 6c 74 20 |Componen|tResult |
|000015d0| 4d 50 45 47 53 74 72 65 | 61 6d 44 69 73 70 6c 61 |MPEGStre|amDispla|
|000015e0| 79 28 43 6f 6d 70 6f 6e | 65 6e 74 49 6e 73 74 61 |y(Compon|entInsta|
|000015f0| 6e 63 65 20 63 69 29 0d | 44 6f 20 49 20 77 61 6e |nce ci).|Do I wan|
|00001600| 74 20 74 6f 20 6b 65 65 | 70 20 74 68 69 73 20 41 |t to kee|p this A|
|00001610| 50 49 20 66 75 6e 63 74 | 69 6f 6e 3f 20 20 54 68 |PI funct|ion? Th|
|00001620| 69 73 2c 20 61 6e 64 20 | 74 68 65 20 6d 61 74 72 |is, and |the matr|
|00001630| 69 78 20 61 6e 64 20 64 | 69 6d 65 6e 73 69 6f 6e |ix and d|imension|
|00001640| 73 20 61 6e 64 20 73 72 | 63 20 72 67 6e 20 66 75 |s and sr|c rgn fu|
|00001650| 6e 63 74 69 6f 6e 73 20 | 73 68 6f 75 6c 64 20 66 |nctions |should f|
|00001660| 6f 72 6d 20 74 68 65 20 | 62 61 73 69 73 20 6f 66 |orm the |basis of|
|00001670| 20 61 20 62 65 74 74 65 | 72 20 74 68 6f 75 67 68 | a bette|r though|
|00001680| 74 20 6f 75 74 20 64 69 | 73 70 6c 61 79 20 61 70 |t out di|splay ap|
|00001690| 69 2e 0d 70 61 73 63 61 | 6c 20 43 6f 6d 70 6f 6e |i..pasca|l Compon|
|000016a0| 65 6e 74 52 65 73 75 6c | 74 20 4d 50 45 47 53 74 |entResul|t MPEGSt|
|000016b0| 72 65 61 6d 57 68 61 74 | 54 69 6d 65 49 73 49 74 |reamWhat|TimeIsIt|
|000016c0| 28 43 6f 6d 70 6f 6e 65 | 6e 74 49 6e 73 74 61 6e |(Compone|ntInstan|
|000016d0| 63 65 20 63 69 2c 20 42 | 6f 6f 6c 65 61 6e 20 2a |ce ci, B|oolean *|
|000016e0| 69 73 56 69 73 69 62 6c | 65 2c 20 6c 6f 6e 67 20 |isVisibl|e, long |
|000016f0| 2a 53 43 52 29 20 0d 54 | 68 69 73 20 66 75 6e 63 |*SCR) .T|his func|
|00001700| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 62 79 20 |tion is |used by |
|00001710| 74 68 65 20 4d 50 45 47 | 20 4d 65 64 69 61 20 48 |the MPEG| Media H|
|00001720| 61 6e 64 6c 65 72 20 74 | 6f 20 71 75 65 72 79 20 |andler t|o query |
|00001730| 74 68 65 20 73 79 73 74 | 65 6d 20 68 61 6e 64 6c |the syst|em handl|
|00001740| 65 72 20 61 73 20 74 6f | 20 77 68 61 74 20 74 68 |er as to| what th|
|00001750| 65 20 53 43 52 20 69 73 | 20 6f 66 20 74 68 65 20 |e SCR is| of the |
|00001760| 6e 65 78 74 20 62 79 74 | 65 20 69 74 20 65 78 70 |next byt|e it exp|
|00001770| 65 63 74 73 20 74 6f 20 | 72 65 63 65 69 76 65 2e |ects to |receive.|
|00001780| 20 20 54 68 69 73 20 76 | 61 6c 75 65 20 63 61 6e | This v|alue can|
|00001790| 20 74 68 65 6e 20 62 65 | 20 75 73 65 64 20 74 6f | then be| used to|
|000017a0| 20 64 65 63 69 64 65 20 | 69 66 20 6d 6f 72 65 20 | decide |if more |
|000017b0| 64 61 74 61 20 73 68 6f | 75 6c 64 20 62 65 20 66 |data sho|uld be f|
|000017c0| 65 74 63 68 65 64 20 66 | 72 6f 6d 20 74 68 65 20 |etched f|rom the |
|000017d0| 64 61 74 61 20 68 61 6e | 64 6c 65 72 2e 20 20 54 |data han|dler. T|
|000017e0| 68 69 73 20 63 61 6c 6c | 20 73 68 6f 75 6c 64 20 |his call| should |
|000017f0| 62 65 20 72 65 70 6c 61 | 63 65 64 20 62 79 20 61 |be repla|ced by a|
|00001800| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 6c | functio|n that l|
|00001810| 65 74 73 20 74 68 65 20 | 73 79 73 74 65 6d 20 68 |ets the |system h|
|00001820| 61 6e 64 6c 65 72 20 64 | 65 63 69 64 65 2e 2e 2e |andler d|ecide...|
|00001830| 2e 0d 70 61 73 63 61 6c | 20 43 6f 6d 70 6f 6e 65 |..pascal| Compone|
|00001840| 6e 74 52 65 73 75 6c 74 | 20 4d 50 45 47 53 74 72 |ntResult| MPEGStr|
|00001850| 65 61 6d 53 61 6d 70 6c | 65 73 50 65 72 53 65 63 |eamSampl|esPerSec|
|00001860| 6f 6e 64 28 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |ond(Comp|onentIns|
|00001870| 74 61 6e 63 65 20 63 69 | 2c 20 46 69 78 65 64 20 |tance ci|, Fixed |
|00001880| 2a 53 61 6d 70 6c 65 73 | 50 65 72 53 65 63 29 20 |*Samples|PerSec) |
|00001890| 0d 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 |.This fu|nction i|
|000018a0| 73 20 75 73 65 66 75 6c | 20 66 6f 72 20 68 65 6c |s useful| for hel|
|000018b0| 70 69 6e 67 20 74 68 65 | 20 4d 50 45 47 20 4d 65 |ping the| MPEG Me|
|000018c0| 64 69 61 20 48 61 6e 64 | 6c 65 72 20 73 75 70 70 |dia Hand|ler supp|
|000018d0| 6f 72 74 20 66 75 6e 63 | 74 69 6f 6e 73 20 6c 69 |ort func|tions li|
|000018e0| 6b 65 20 4e 65 78 74 49 | 6e 74 65 72 65 73 74 69 |ke NextI|nteresti|
|000018f0| 6e 67 54 69 6d 65 2c 20 | 77 68 69 63 68 20 69 73 |ngTime, |which is|
|00001900| 20 75 73 65 64 20 66 6f | 72 20 74 68 69 6e 67 73 | used fo|r things|
|00001910| 20 6c 69 6b 65 20 73 69 | 6e 67 6c 65 20 66 72 61 | like si|ngle fra|
|00001920| 6d 65 20 73 74 65 70 70 | 69 6e 67 2e 0d 70 61 73 |me stepp|ing..pas|
|00001930| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|00001940| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 57 61 |ult MPEG|StreamWa|
|00001950| 6e 74 54 6f 44 65 63 6f | 64 65 28 43 6f 6d 70 6f |ntToDeco|de(Compo|
|00001960| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 20 63 69 2c |nentInst|ance ci,|
|00001970| 20 6c 6f 6e 67 20 73 69 | 7a 65 2c 20 42 6f 6f 6c | long si|ze, Bool|
|00001980| 65 61 6e 20 2a 57 61 6e | 74 54 6f 29 20 0d 54 68 |ean *Wan|tTo) .Th|
|00001990| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 73 |is funct|ion is s|
|000019a0| 6f 6d 65 74 69 6d 65 73 | 20 63 61 6c 6c 65 64 20 |ometimes| called |
|000019b0| 62 79 20 74 68 65 20 4d | 65 64 69 61 20 48 61 6e |by the M|edia Han|
|000019c0| 64 6c 65 72 20 74 6f 20 | 6c 65 74 20 74 68 65 20 |dler to |let the |
|000019d0| 53 79 73 74 65 6d 20 73 | 74 72 65 61 6d 20 70 6c |System s|tream pl|
|000019e0| 61 79 65 72 20 64 65 63 | 69 64 65 20 69 66 20 69 |ayer dec|ide if i|
|000019f0| 74 20 77 6f 75 6c 64 20 | 6c 69 6b 65 20 73 69 7a |t would |like siz|
|00001a00| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 79 74 65 |e number| of byte|
|00001a10| 73 20 74 6f 20 62 65 20 | 70 61 73 73 65 64 20 74 |s to be |passed t|
|00001a20| 6f 20 69 74 2e 20 20 53 | 74 72 65 61 6d 20 70 6c |o it. S|tream pl|
|00001a30| 61 79 65 72 73 20 77 69 | 74 68 20 6c 61 72 67 65 |ayers wi|th large|
|00001a40| 20 61 6d 6f 75 6e 74 73 | 20 6f 66 20 62 75 66 66 | amounts| of buff|
|00001a50| 65 72 69 6e 67 20 63 61 | 6e 20 74 68 65 72 65 62 |ering ca|n thereb|
|00001a60| 79 20 72 65 71 75 65 73 | 74 20 65 78 74 72 61 20 |y reques|t extra |
|00001a70| 64 61 74 61 20 74 6f 20 | 62 75 66 66 65 72 20 61 |data to |buffer a|
|00001a80| 68 65 61 64 2e 0d 0d 46 | 00 00 00 00 02 d7 02 23 |head...F|.......#|
|00001a90| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 02 23 00 00 02 d7 | 00 00 00 00 00 00 00 0c |...#....|........|
|00001ab0| 00 1e 00 1f 00 01 00 0a | 00 00 00 00 03 18 02 64 |........|.......d|
|00001ac0| 00 2c 00 0b 00 10 08 50 | 61 6c 61 74 69 6e 6f 00 |.,.....P|alatino.|
|00001ad0| 00 03 00 10 00 04 01 00 | 00 0d 00 12 00 2e 00 04 |........|........|
|00001ae0| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00001af0| 00 00 00 29 00 82 00 3d | 01 a6 00 2b a0 57 1c 4d |...)...=|...+.W.M|
|00001b00| 50 45 47 20 53 74 72 65 | 61 6d 73 20 41 50 49 20 |PEG Stre|ams API |
|00001b10| 44 65 73 63 72 69 70 74 | 69 6f 6e 00 00 0d 00 0c |Descript|ion.....|
|00001b20| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 1d 00 63 |...d..ON|LN.d...c|
|00001b30| 00 3c 00 71 00 d5 00 28 | 00 8c 00 5a 16 4d 50 45 |.<.q...(|...Z.MPE|
|00001b40| 47 20 53 74 72 65 61 6d | 20 43 6f 6d 70 6f 6e 65 |G Stream| Compone|
|00001b50| 6e 74 73 00 00 2c 00 0a | 00 16 07 43 6f 75 72 69 |nts..,..|...Couri|
|00001b60| 65 72 00 03 00 16 00 04 | 00 00 00 0d 00 0a 00 a1 |er......|........|
|00001b70| 00 64 00 10 4f 4e 4c 4e | 00 64 00 34 00 80 00 5b |.d..ONLN|.d.4...[|
|00001b80| 00 8c 01 0f 00 2b 1f 1c | 1e 23 64 65 66 69 6e 65 |.....+..|.#define|
|00001b90| 20 53 79 73 74 65 6d 4d | 65 64 69 61 54 79 70 65 | SystemM|ediaType|
|00001ba0| 20 27 73 79 73 20 27 00 | 00 a1 00 64 00 10 4f 4e | 'sys '.|...d..ON|
|00001bb0| 4c 4e 00 64 00 53 00 8b | 00 5b 00 97 01 33 00 2a |LN.d.S..|.[...3.*|
|00001bc0| 0b 24 23 64 65 66 69 6e | 65 20 6b 4d 50 45 47 53 |.$#defin|e kMPEGS|
|00001bd0| 74 72 65 61 6d 50 6c 61 | 79 65 72 54 79 70 65 20 |treamPla|yerType |
|00001be0| 27 6d 70 67 31 27 00 03 | 00 10 00 0d 00 0c 00 a1 |'mpg1'..|........|
|00001bf0| 00 64 00 10 4f 4e 4c 4e | 00 64 00 78 00 a2 00 3c |.d..ONLN|.d.x...<|
|00001c00| 00 b0 01 c0 00 28 00 cb | 00 5a 3e 4d 50 45 47 20 |.....(..|.Z>MPEG |
|00001c10| 53 74 72 65 61 6d 20 63 | 6f 6d 70 6f 6e 65 6e 74 |Stream c|omponent|
|00001c20| 73 20 68 61 76 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |s have c|omponent|
|00001c30| 20 74 79 70 65 20 27 6d | 70 67 31 27 2c 20 61 6e | type 'm|pg1', an|
|00001c40| 64 20 73 75 62 74 79 70 | 65 00 00 03 00 16 00 a1 |d subtyp|e.......|
|00001c50| 00 64 00 10 4f 4e 4c 4e | 00 64 00 b7 00 b0 00 3c |.d..ONLN|.d.....<|
|00001c60| 00 bc 00 a5 00 2a 0e 0f | 53 79 73 74 65 6d 4d 65 |.....*..|SystemMe|
|00001c70| 64 69 61 54 79 70 65 00 | 00 03 00 10 00 a1 00 64 |diaType.|.......d|
|00001c80| 00 10 4f 4e 4c 4e 00 64 | 00 c6 00 b0 00 a5 00 be |..ONLN.d|........|
|00001c90| 00 ab 00 29 69 02 2c 20 | 00 03 00 16 00 a1 00 64 |...)i., |.......d|
|00001ca0| 00 10 4f 4e 4c 4e 00 64 | 00 c8 00 b0 00 ab 00 bc |..ONLN.d|........|
|00001cb0| 01 0d 00 29 06 0e 56 69 | 64 65 6f 4d 65 64 69 61 |...)..Vi|deoMedia|
|00001cc0| 54 79 70 65 00 03 00 10 | 00 a1 00 64 00 10 4f 4e |Type....|...d..ON|
|00001cd0| 4c 4e 00 64 00 d6 00 b0 | 01 0d 00 be 01 22 00 29 |LN.d....|.....".)|
|00001ce0| 62 05 2c 20 6f 72 20 00 | 00 03 00 16 00 a1 00 64 |b., or .|.......d|
|00001cf0| 00 10 4f 4e 4c 4e 00 64 | 00 db 00 b0 01 22 00 bc |..ONLN.d|....."..|
|00001d00| 01 84 00 29 15 0e 41 75 | 64 69 6f 4d 65 64 69 61 |...)..Au|dioMedia|
|00001d10| 54 79 70 65 00 03 00 10 | 00 a1 00 64 00 10 4f 4e |Type....|...d..ON|
|00001d20| 4c 4e 00 64 00 e9 00 b0 | 01 84 00 be 01 e6 00 29 |LN.d....|.......)|
|00001d30| 62 13 2e 20 20 54 6f 64 | 61 79 20 28 41 70 72 69 |b.. Tod|ay (Apri|
|00001d40| 6c 20 31 35 2c 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |l 15,...|.d..ONLN|
|00001d50| 00 64 00 fd 00 be 00 3c | 00 cc 01 e7 00 28 00 e7 |.d.....<|.....(..|
|00001d60| 00 5a 4c 31 39 39 34 29 | 2c 20 74 68 65 20 4d 50 |.ZL1994)|, the MP|
|00001d70| 45 47 20 4d 65 64 69 61 | 20 48 61 6e 64 6c 65 72 |EG Media| Handler|
|00001d80| 20 6c 6f 6f 6b 73 20 6f | 6e 6c 79 20 66 6f 72 20 | looks o|nly for |
|00001d90| 61 20 73 79 73 74 65 6d | 20 73 74 72 65 61 6d 20 |a system| stream |
|00001da0| 70 6c 61 79 65 72 2e 20 | 20 49 6e 20 74 68 65 00 |player. | In the.|
|00001db0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 4a 00 cc |...d..ON|LN.d.J..|
|00001dc0| 00 3c 00 da 01 e9 00 2a | 0e 4a 6e 65 61 72 20 66 |.<.....*|.Jnear f|
|00001dd0| 75 74 75 72 65 2c 20 74 | 68 65 20 4d 50 45 47 20 |uture, t|he MPEG |
|00001de0| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 77 69 |Media Ha|ndler wi|
|00001df0| 6c 6c 20 62 65 20 63 61 | 70 61 62 6c 65 20 6f 66 |ll be ca|pable of|
|00001e00| 20 68 61 6e 64 6c 69 6e | 67 20 65 6c 65 6d 65 6e | handlin|g elemen|
|00001e10| 74 61 72 79 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |tary...d|..ONLN.d|
|00001e20| 01 95 00 da 00 3c 00 e8 | 01 d3 00 2a 0e 48 4d 50 |.....<..|...*.HMP|
|00001e30| 45 47 20 76 69 64 65 6f | 20 6f 72 20 61 75 64 69 |EG video| or audi|
|00001e40| 6f 20 73 74 72 65 61 6d | 73 20 61 6e 64 20 77 69 |o stream|s and wi|
|00001e50| 6c 6c 20 63 6f 6e 6e 65 | 63 74 20 64 69 72 65 63 |ll conne|ct direc|
|00001e60| 74 6c 79 20 74 6f 20 74 | 68 65 20 61 70 70 72 6f |tly to t|he appro|
|00001e70| 70 72 69 61 74 65 00 a1 | 00 64 00 10 4f 4e 4c 4e |priate..|.d..ONLN|
|00001e80| 00 64 01 de 00 e8 00 3c | 00 f6 00 7f 00 2a 0e 0a |.d.....<|.....*..|
|00001e90| 63 6f 6d 70 6f 6e 65 6e | 74 2e 00 a1 00 64 00 10 |componen|t....d..|
|00001ea0| 4f 4e 4c 4e 00 64 01 e9 | 00 f6 00 3c 01 04 01 da |ONLN.d..|...<....|
|00001eb0| 00 2a 0e 49 54 68 65 20 | 67 65 6e 65 72 61 6c 20 |.*.IThe |general |
|00001ec0| 66 6c 6f 77 20 6f 66 20 | 64 61 74 61 20 61 6e 64 |flow of |data and|
|00001ed0| 20 64 69 76 69 73 69 6f | 6e 20 6f 66 20 6c 61 62 | divisio|n of lab|
|00001ee0| 6f 72 20 61 6d 6f 6e 67 | 20 74 68 65 20 63 6f 6d |or among| the com|
|00001ef0| 70 6f 6e 65 6e 74 73 20 | 69 73 20 61 73 00 00 a1 |ponents |is as...|
|00001f00| 00 64 00 10 4f 4e 4c 4e | 00 64 02 33 01 04 00 3c |.d..ONLN|.d.3...<|
|00001f10| 01 12 01 df 00 2a 0e 4a | 66 6f 6c 6c 6f 77 73 2e |.....*.J|follows.|
|00001f20| 20 20 54 68 65 20 4d 50 | 45 47 20 4d 65 64 69 61 | The MP|EG Media|
|00001f30| 20 48 61 6e 64 6c 65 72 | 20 74 61 6b 65 73 20 63 | Handler| takes c|
|00001f40| 61 72 65 20 6f 66 20 66 | 65 74 63 68 69 6e 67 20 |are of f|etching |
|00001f50| 64 61 74 61 20 66 72 6f | 6d 20 74 68 65 20 64 61 |data fro|m the da|
|00001f60| 74 61 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 7e |ta...d..|ONLN.d.~|
|00001f70| 01 12 00 3c 01 20 01 e9 | 00 2a 0e 49 68 61 6e 64 |...<. ..|.*.Ihand|
|00001f80| 6c 65 72 2c 20 6d 61 6e | 61 67 69 6e 67 20 65 64 |ler, man|aging ed|
|00001f90| 69 74 73 2c 20 61 6e 64 | 20 63 6f 6e 76 65 72 74 |its, and| convert|
|00001fa0| 69 6e 67 20 75 73 65 72 | 20 69 6e 74 65 72 66 61 |ing user| interfa|
|00001fb0| 63 65 20 63 6f 6d 6d 61 | 6e 64 73 20 28 63 6f 6e |ce comma|nds (con|
|00001fc0| 76 65 79 65 64 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |veyed...|.d..ONLN|
|00001fd0| 00 64 02 c8 01 20 00 3c | 01 2e 01 dc 00 2a 0e 49 |.d... .<|.....*.I|
|00001fe0| 76 69 61 20 74 68 65 20 | 4d 65 64 69 61 20 48 61 |via the |Media Ha|
|00001ff0| 6e 64 6c 65 72 20 41 50 | 49 29 2c 20 20 69 6e 74 |ndler AP|I), int|
|00002000| 6f 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 4d 50 |o approp|riate MP|
|00002010| 45 47 20 53 74 72 65 61 | 6d 20 41 50 49 20 63 61 |EG Strea|m API ca|
|00002020| 6c 6c 73 2e 20 20 54 68 | 65 00 00 a1 00 64 00 10 |lls. Th|e....d..|
|00002030| 4f 4e 4c 4e 00 64 03 12 | 01 2e 00 3c 01 3c 01 dc |ONLN.d..|...<.<..|
|00002040| 00 2a 0e 46 4d 50 45 47 | 20 4d 65 64 69 61 20 48 |.*.FMPEG| Media H|
|00002050| 61 6e 64 6c 65 72 20 69 | 73 20 61 20 64 65 72 69 |andler i|s a deri|
|00002060| 76 65 64 20 6d 65 64 69 | 61 20 68 61 6e 64 6c 65 |ved medi|a handle|
|00002070| 72 2c 20 61 73 20 64 6f | 63 75 6d 65 6e 74 65 64 |r, as do|cumented|
|00002080| 20 69 6e 20 49 6e 73 69 | 64 65 00 a1 00 64 00 10 | in Insi|de...d..|
|00002090| 4f 4e 4c 4e 00 64 03 59 | 01 3c 00 3c 01 4a 00 e3 |ONLN.d.Y|.<.<.J..|
|000020a0| 00 2a 0e 19 4d 61 63 20 | 51 75 69 63 6b 54 69 6d |.*..Mac |QuickTim|
|000020b0| 65 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 00 00 a1 |e Compon|ents....|
|000020c0| 00 64 00 10 4f 4e 4c 4e | 00 64 03 73 01 4a 00 3c |.d..ONLN|.d.s.J.<|
|000020d0| 01 58 01 e1 00 2a 0e 46 | 54 68 65 20 4d 50 45 47 |.X...*.F|The MPEG|
|000020e0| 20 53 74 72 65 61 6d 20 | 68 61 6e 64 6c 65 72 27 | Stream |handler'|
|000020f0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 74 6f |s functi|on is to|
|00002100| 20 69 6d 70 6c 65 6d 65 | 6e 74 20 49 53 4f 2d 31 | impleme|nt ISO-1|
|00002110| 31 31 37 32 2d 31 20 28 | 4d 50 45 47 2d 31 00 a1 |1172-1 (|MPEG-1..|
|00002120| 00 64 00 10 4f 4e 4c 4e | 00 64 03 ba 01 58 00 3c |.d..ONLN|.d...X.<|
|00002130| 01 66 01 ca 00 2a 0e 46 | 53 79 73 74 65 6d 73 29 |.f...*.F|Systems)|
|00002140| 2e 20 20 54 68 65 20 73 | 79 73 74 65 6d 20 73 74 |. The s|ystem st|
|00002150| 72 65 61 6d 20 68 61 6e | 64 6c 65 72 20 69 73 20 |ream han|dler is |
|00002160| 74 6f 6c 64 20 62 79 20 | 74 68 65 20 6d 65 64 69 |told by |the medi|
|00002170| 61 20 68 61 6e 64 6c 65 | 72 20 77 68 61 74 00 a1 |a handle|r what..|
|00002180| 00 64 00 10 4f 4e 4c 4e | 00 64 04 01 01 66 00 3c |.d..ONLN|.d...f.<|
|00002190| 01 74 01 cd 00 2a 0e 4b | 74 69 6d 65 27 73 20 76 |.t...*.K|time's v|
|000021a0| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 73 74 72 65 |alue of |the stre|
|000021b0| 61 6d 20 69 73 20 75 73 | 65 72 20 69 73 20 65 78 |am is us|er is ex|
|000021c0| 70 65 63 74 69 6e 67 20 | 74 6f 20 62 65 20 70 72 |pecting |to be pr|
|000021d0| 65 73 65 6e 74 65 64 20 | 77 69 74 68 2e 20 20 20 |esented |with. |
|000021e0| 54 68 65 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |The....d|..ONLN.d|
|000021f0| 04 4d 01 74 00 3c 01 82 | 01 e0 00 2a 0e 4b 73 79 |.M.t.<..|...*.Ksy|
|00002200| 73 74 65 6d 20 73 74 72 | 65 61 6d 20 68 61 6e 64 |stem str|eam hand|
|00002210| 6c 65 72 20 69 73 20 74 | 68 65 6e 20 72 65 73 70 |ler is t|hen resp|
|00002220| 6f 6e 73 69 62 6c 65 20 | 66 6f 72 20 72 65 71 75 |onsible |for requ|
|00002230| 65 73 74 69 6e 67 20 64 | 61 74 61 20 61 73 20 6e |esting d|ata as n|
|00002240| 65 65 64 65 64 20 61 6e | 64 00 00 a1 00 64 00 10 |eeded an|d....d..|
|00002250| 4f 4e 4c 4e 00 64 04 99 | 01 82 00 3c 01 90 01 ba |ONLN.d..|...<....|
|00002260| 00 2a 0e 44 64 65 63 6f | 64 69 6e 67 20 69 74 20 |.*.Ddeco|ding it |
|00002270| 61 70 70 72 6f 70 72 69 | 61 74 65 6c 79 2e 20 20 |appropri|ately. |
|00002280| 20 54 68 65 20 73 79 73 | 74 65 6d 20 73 74 72 65 | The sys|tem stre|
|00002290| 61 6d 20 68 61 6e 64 6c | 65 72 20 69 6e 63 6c 75 |am handl|er inclu|
|000022a0| 64 65 64 20 77 69 74 68 | 00 a1 00 64 00 10 4f 4e |ded with|...d..ON|
|000022b0| 4c 4e 00 64 04 de 01 90 | 00 3c 01 9e 01 de 00 2a |LN.d....|.<.....*|
|000022c0| 0e 4a 51 75 69 63 6b 54 | 69 6d 65 20 32 2e 30 20 |.JQuickT|ime 2.0 |
|000022d0| 69 6d 70 6c 65 6d 65 6e | 74 73 20 6f 6e 6c 79 20 |implemen|ts only |
|000022e0| 74 68 65 20 73 79 73 74 | 65 6d 20 6c 61 79 65 72 |the syst|em layer|
|000022f0| 20 66 75 6e 63 74 69 6f | 6e 73 3b 20 69 74 20 6c | functio|ns; it l|
|00002300| 6f 6f 6b 73 20 66 6f 72 | 20 61 6e 64 00 a1 00 64 |ooks for| and...d|
|00002310| 00 10 4f 4e 4c 4e 00 64 | 05 29 01 9e 00 3c 01 ac |..ONLN.d|.)...<..|
|00002320| 01 ca 00 2a 0e 45 75 73 | 65 73 20 61 75 64 69 6f |...*.Eus|es audio|
|00002330| 20 61 6e 64 20 76 69 64 | 65 6f 20 4d 50 45 47 20 | and vid|eo MPEG |
|00002340| 73 74 72 65 61 6d 20 70 | 6c 61 79 65 72 73 20 74 |stream p|layers t|
|00002350| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 74 68 65 20 |o implem|ent the |
|00002360| 72 65 73 74 20 6f 66 20 | 74 68 65 00 00 a1 00 64 |rest of |the....d|
|00002370| 00 10 4f 4e 4c 4e 00 64 | 05 6f 01 ac 00 3c 01 ba |..ONLN.d|.o...<..|
|00002380| 00 6f 00 2a 0e 09 73 74 | 61 6e 64 61 72 64 2e 00 |.o.*..st|andard..|
|00002390| 00 04 01 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|000023a0| 05 7a 01 c4 00 3c 01 d2 | 00 5a 00 2a 18 04 54 69 |.z...<..|.Z.*..Ti|
|000023b0| 6d 65 00 03 00 16 00 04 | 00 00 00 0d 00 0a 00 a1 |me......|........|
|000023c0| 00 64 00 10 4f 4e 4c 4e | 00 64 05 7f 01 e1 00 5b |.d..ONLN|.d.....[|
|000023d0| 01 ed 01 87 00 2b 1f 1c | 32 74 79 70 65 64 65 66 |.....+..|2typedef|
|000023e0| 20 70 61 73 63 61 6c 20 | 6c 6f 6e 67 20 28 4d 50 | pascal |long (MP|
|000023f0| 45 47 54 69 6d 65 50 72 | 6f 63 29 20 28 6c 6f 6e |EGTimePr|oc) (lon|
|00002400| 67 20 72 65 66 63 6f 6e | 20 29 3b 00 00 a1 00 64 |g refcon| );....d|
|00002410| 00 10 4f 4e 4c 4e 00 64 | 05 b2 01 ec 00 5b 01 f8 |..ONLN.d|.....[..|
|00002420| 01 3f 00 2a 0b 26 74 79 | 70 65 64 65 66 20 4d 50 |.?.*.&ty|pedef MP|
|00002430| 45 47 54 69 6d 65 50 72 | 6f 63 20 2a 4d 50 45 47 |EGTimePr|oc *MPEG|
|00002440| 54 69 6d 65 50 72 6f 63 | 50 74 72 3b 00 a1 00 64 |TimeProc|Ptr;...d|
|00002450| 00 10 4f 4e 4c 4e 00 64 | 05 d9 01 f7 00 5b 02 03 |..ONLN.d|.....[..|
|00002460| 00 f1 00 2a 0b 19 74 79 | 70 65 64 65 66 20 49 6e |...*..ty|pedef In|
|00002470| 74 36 34 42 69 74 20 53 | 43 52 54 79 70 65 3b 00 |t64Bit S|CRType;.|
|00002480| 00 03 00 10 00 0d 00 0c | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00002490| 4c 4e 00 64 05 f3 02 0c | 00 3c 02 1a 01 dd 00 28 |LN.d....|.<.....(|
|000024a0| 02 35 00 5a 48 54 68 65 | 20 6d 61 73 74 65 72 20 |.5.ZHThe| master |
|000024b0| 63 6c 6f 63 6b 20 69 73 | 20 6f 62 74 61 69 6e 65 |clock is| obtaine|
|000024c0| 64 20 62 79 20 6d 61 70 | 70 69 6e 67 20 51 75 69 |d by map|ping Qui|
|000024d0| 63 6b 54 69 6d 65 27 73 | 20 63 6c 6f 63 6b 20 6f |ckTime's| clock o|
|000024e0| 6e 74 6f 20 74 68 65 20 | 39 30 6b 68 7a 00 00 a1 |nto the |90khz...|
|000024f0| 00 64 00 10 4f 4e 4c 4e | 00 64 06 3c 02 1a 00 3c |.d..ONLN|.d.<...<|
|00002500| 02 28 01 d8 00 2a 0e 48 | 74 69 6d 65 6c 69 6e 65 |.(...*.H|timeline|
|00002510| 20 6f 66 20 74 68 65 20 | 4d 50 45 47 20 73 74 72 | of the |MPEG str|
|00002520| 65 61 6d 20 62 65 69 6e | 67 20 64 65 63 6f 64 65 |eam bein|g decode|
|00002530| 64 2e 20 20 20 54 6f 20 | 63 6f 6e 76 65 79 20 74 |d. To |convey t|
|00002540| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |his info|rmation,|
|00002550| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 85 02 28 |...d..ON|LN.d...(|
|00002560| 00 3c 02 36 01 d4 00 2a | 0e 43 74 68 65 20 4d 50 |.<.6...*|.Cthe MP|
|00002570| 45 47 20 4d 65 64 69 61 | 20 68 61 6e 64 6c 65 72 |EG Media| handler|
|00002580| 20 70 72 6f 76 69 64 65 | 73 20 61 20 70 72 6f 63 | provide|s a proc|
|00002590| 65 64 75 72 65 20 74 6f | 20 4d 50 45 47 20 53 74 |edure to| MPEG St|
|000025a0| 72 65 61 6d 20 68 61 6e | 64 6c 65 72 73 00 00 a1 |ream han|dlers...|
|000025b0| 00 64 00 10 4f 4e 4c 4e | 00 64 06 c9 02 36 00 3c |.d..ONLN|.d...6.<|
|000025c0| 02 44 01 32 00 2a 0e 2d | 74 68 61 74 20 72 65 74 |.D.2.*.-|that ret|
|000025d0| 75 72 6e 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |urns the| current|
|000025e0| 20 74 69 6d 65 20 69 6e | 20 39 30 6b 68 7a 20 75 | time in| 90khz u|
|000025f0| 6e 69 74 73 2e 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |nits....|.d..ONLN|
|00002600| 00 64 06 f7 02 44 00 3c | 02 52 01 df 00 2a 0e 4f |.d...D.<|.R...*.O|
|00002610| 54 69 6d 65 20 76 61 6c | 75 65 73 20 61 72 65 20 |Time val|ues are |
|00002620| 73 74 6f 72 65 64 20 69 | 6e 20 36 34 62 69 74 20 |stored i|n 64bit |
|00002630| 73 74 72 75 63 74 73 2c | 20 49 6e 74 36 34 42 69 |structs,| Int64Bi|
|00002640| 74 2c 20 61 73 20 64 65 | 66 69 6e 65 64 20 69 6e |t, as de|fined in|
|00002650| 20 54 6f 6f 6c 55 74 69 | 6c 73 2e 68 20 69 6e 00 | ToolUti|ls.h in.|
|00002660| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 07 47 02 52 |...d..ON|LN.d.G.R|
|00002670| 00 3c 02 60 01 d4 00 2a | 0e 4a 74 68 65 20 55 6e |.<.`...*|.Jthe Un|
|00002680| 69 76 65 72 73 61 6c 20 | 48 65 61 64 65 72 73 2e |iversal |Headers.|
|00002690| 20 20 53 69 6e 63 65 20 | 4d 50 45 47 20 74 69 6d | Since |MPEG tim|
|000026a0| 65 20 76 61 6c 75 65 73 | 20 61 72 65 20 33 33 20 |e values| are 33 |
|000026b0| 62 69 74 73 2c 20 6f 6e | 6c 79 20 74 68 65 20 6c |bits, on|ly the l|
|000026c0| 65 61 73 74 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |east...d|..ONLN.d|
|000026d0| 07 92 02 60 00 3c 02 6e | 01 8e 00 2a 0e 3f 73 69 |...`.<.n|...*.?si|
|000026e0| 67 6e 69 66 69 63 61 6e | 74 20 62 69 74 20 69 6e |gnifican|t bit in|
|000026f0| 20 74 68 65 20 68 69 67 | 68 20 6c 6f 6e 67 20 6f | the hig|h long o|
|00002700| 66 20 74 68 65 20 73 74 | 72 75 63 74 20 68 61 73 |f the st|ruct has|
|00002710| 20 61 6e 79 20 6d 65 61 | 6e 69 6e 67 2e 00 00 04 | any mea|ning....|
|00002720| 01 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 d2 |.....d..|ONLN.d..|
|00002730| 02 7a 00 3c 02 88 00 74 | 00 2a 1a 09 46 75 6e 63 |.z.<...t|.*..Func|
|00002740| 74 69 6f 6e 73 00 00 03 | 00 16 00 04 00 00 00 0d |tions...|........|
|00002750| 00 0a 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 dc |.....d..|ONLN.d..|
|00002760| 02 97 00 5b 02 a3 01 d5 | 00 2b 1f 1c 3f 70 61 73 |...[....|.+..?pas|
|00002770| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|00002780| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 48 61 |ult MPEG|StreamHa|
|00002790| 76 65 54 68 65 50 6f 77 | 65 72 28 43 6f 6d 70 6f |veThePow|er(Compo|
|000027a0| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 00 a1 00 64 |nentInst|ance...d|
|000027b0| 00 10 4f 4e 4c 4e 00 64 | 08 1c 02 a2 00 84 02 ae |..ONLN.d|........|
|000027c0| 00 96 00 2b 29 0b 03 63 | 69 29 00 ff 0e e2 00 00 |...+)..c|i)......|
|000027d0| 00 00 02 d7 02 23 00 11 | 02 ff 0c 00 ff ff ff ff |.....#..|........|
|000027e0| 00 00 00 00 00 00 00 00 | 02 23 00 00 02 d7 00 00 |........|.#......|
|000027f0| 00 00 00 00 00 0c 00 1e | 00 1f 00 01 00 0a 00 00 |........|........|
|00002800| 00 00 03 18 02 64 00 2c | 00 0a 00 16 07 43 6f 75 |.....d.,|.....Cou|
|00002810| 72 69 65 72 00 03 00 16 | 00 0d 00 0a 00 2e 00 04 |rier....|........|
|00002820| 00 00 00 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00002830| 00 00 00 29 00 5b 00 35 | 01 d5 00 2b 79 51 3f 70 |...).[.5|...+yQ?p|
|00002840| 61 73 63 61 6c 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ascal Co|mponentR|
|00002850| 65 73 75 6c 74 20 4d 50 | 45 47 53 74 72 65 61 6d |esult MP|EGStream|
|00002860| 47 69 76 65 49 74 55 70 | 28 43 6f 6d 70 6f 6e 65 |GiveItUp|(Compone|
|00002870| 6e 74 49 6e 73 74 61 6e | 63 65 20 63 69 29 00 2c |ntInstan|ce ci).,|
|00002880| 00 0b 00 10 08 50 61 6c | 61 74 69 6e 6f 00 00 03 |.....Pal|atino...|
|00002890| 00 10 00 0d 00 0c 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|000028a0| 00 64 00 41 00 40 00 3c | 00 4e 01 df 00 28 00 69 |.d.A.@.<|.N...(.i|
|000028b0| 00 5a 47 4f 70 65 6e 20 | 61 6e 64 20 43 6c 6f 73 |.ZGOpen |and Clos|
|000028c0| 65 20 61 64 68 65 72 65 | 20 74 6f 20 74 68 65 20 |e adhere| to the |
|000028d0| 73 74 61 6e 64 61 72 64 | 20 41 50 49 2e 20 20 48 |standard| API. H|
|000028e0| 6f 77 65 76 65 72 2c 20 | 61 20 73 74 72 65 61 6d |owever, |a stream|
|000028f0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 00 a1 00 64 00 10 | compone|nt...d..|
|00002900| 4f 4e 4c 4e 00 64 00 89 | 00 4e 00 3c 00 5c 01 d1 |ONLN.d..|.N.<.\..|
|00002910| 00 2a 0e 49 73 68 6f 75 | 6c 64 20 6e 6f 74 20 61 |.*.Ishou|ld not a|
|00002920| 63 74 75 61 6c 6c 79 20 | 70 6c 61 79 20 6f 72 20 |ctually |play or |
|00002930| 65 76 65 6e 20 62 65 20 | 63 61 6c 6c 65 64 20 75 |even be |called u|
|00002940| 6e 6c 65 73 73 20 69 74 | 20 22 48 61 73 20 54 68 |nless it| "Has Th|
|00002950| 65 20 50 6f 77 65 72 22 | 2e 20 20 41 6e 00 00 a1 |e Power"|. An...|
|00002960| 00 64 00 10 4f 4e 4c 4e | 00 64 00 d3 00 5c 00 3c |.d..ONLN|.d...\.<|
|00002970| 00 6a 01 11 00 2a 0e 24 | 6f 70 65 6e 20 6d 6f 76 |.j...*.$|open mov|
|00002980| 69 65 20 6d 75 73 74 20 | 68 61 76 65 20 62 65 65 |ie must |have bee|
|00002990| 6e 20 63 61 6c 6c 65 64 | 20 62 79 20 00 03 00 16 |n called| by ....|
|000029a0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 00 f7 00 5c |...d..ON|LN.d...\|
|000029b0| 01 11 00 68 01 b2 00 29 | d5 17 4d 50 45 47 53 74 |...h...)|..MPEGSt|
|000029c0| 72 65 61 6d 73 48 61 76 | 65 54 68 65 50 6f 77 65 |reamsHav|eThePowe|
|000029d0| 72 00 00 03 00 10 00 a1 | 00 64 00 10 4f 4e 4c 4e |r.......|.d..ONLN|
|000029e0| 00 64 01 0e 00 5c 01 b2 | 00 6a 01 d7 00 29 a1 07 |.d...\..|.j...)..|
|000029f0| 20 62 65 66 6f 72 65 00 | 00 a1 00 64 00 10 4f 4e | before.|...d..ON|
|00002a00| 4c 4e 00 64 01 16 00 6a | 00 3c 00 78 01 d6 00 28 |LN.d...j|.<.x...(|
|00002a10| 00 93 00 5a 49 70 6c 61 | 79 69 6e 67 2e 20 20 49 |...ZIpla|ying. I|
|00002a20| 66 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 6d 6f |f a diff|erent mo|
|00002a30| 76 69 65 20 6e 65 65 64 | 73 20 74 68 65 20 73 61 |vie need|s the sa|
|00002a40| 6d 65 20 68 61 72 64 77 | 61 72 65 2c 20 74 68 65 |me hardw|are, the|
|00002a50| 6e 20 74 68 65 20 6f 70 | 65 6e 20 6f 6e 65 00 a1 |n the op|en one..|
|00002a60| 00 64 00 10 4f 4e 4c 4e | 00 64 01 60 00 78 00 3c |.d..ONLN|.d.`.x.<|
|00002a70| 00 86 00 a4 00 2a 0e 14 | 77 69 6c 6c 20 62 65 20 |.....*..|will be |
|00002a80| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 00 03 00 16 |called w|ith ....|
|00002a90| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 74 00 78 |...d..ON|LN.d.t.x|
|00002aa0| 00 a4 00 84 00 dc 00 29 | 68 08 47 69 76 65 49 74 |.......)|h.GiveIt|
|00002ab0| 55 70 00 03 00 10 00 a1 | 00 64 00 10 4f 4e 4c 4e |Up......|.d..ONLN|
|00002ac0| 00 64 01 7c 00 78 00 dc | 00 86 01 b7 00 29 38 27 |.d.|.x..|.....)8'|
|00002ad0| 2c 20 61 6e 64 20 74 68 | 65 20 6e 65 77 20 6d 6f |, and th|e new mo|
|00002ae0| 76 69 65 20 77 69 6c 6c | 20 62 65 20 63 61 6c 6c |vie will| be call|
|00002af0| 65 64 20 77 69 74 68 00 | 00 03 00 16 00 a1 00 64 |ed with.|.......d|
|00002b00| 00 10 4f 4e 4c 4e 00 64 | 01 a4 00 86 00 3c 00 92 |..ONLN.d|.....<..|
|00002b10| 00 90 00 28 00 af 00 5a | 0c 48 61 76 65 54 68 65 |...(...Z|.HaveThe|
|00002b20| 50 6f 77 65 72 00 00 03 | 00 10 00 a1 00 64 00 10 |Power...|.....d..|
|00002b30| 4f 4e 4c 4e 00 64 01 b0 | 00 86 00 90 00 94 01 e0 |ONLN.d..|........|
|00002b40| 00 29 54 3c 2e 20 20 54 | 68 69 73 20 69 73 20 64 |.)T<. T|his is d|
|00002b50| 6f 6e 65 20 74 6f 20 68 | 65 6c 70 20 61 72 62 69 |one to h|elp arbi|
|00002b60| 74 72 61 74 65 20 62 65 | 74 77 65 65 6e 20 6d 75 |trate be|tween mu|
|00002b70| 6c 74 69 70 6c 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ltiple c|omponent|
|00002b80| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 01 ed 00 94 |...d..ON|LN.d....|
|00002b90| 00 3c 00 a2 01 ec 00 28 | 00 bd 00 5a 4f 69 6e 73 |.<.....(|...ZOins|
|00002ba0| 74 61 6e 63 65 73 20 74 | 68 61 74 20 64 65 70 65 |tances t|hat depe|
|00002bb0| 6e 64 20 6f 6e 20 74 68 | 65 20 73 61 6d 65 20 68 |nd on th|e same h|
|00002bc0| 61 72 64 77 61 72 65 2e | 20 20 4f 6e 65 20 70 6f |ardware.| One po|
|00002bd0| 73 73 69 62 6c 65 20 75 | 73 65 20 6f 66 20 74 68 |ssible u|se of th|
|00002be0| 69 73 20 69 73 20 74 68 | 61 74 20 61 00 a1 00 64 |is is th|at a...d|
|00002bf0| 00 10 4f 4e 4c 4e 00 64 | 02 3d 00 a2 00 3c 00 b0 |..ONLN.d|.=...<..|
|00002c00| 01 e3 00 2a 0e 49 76 69 | 64 65 6f 20 6f 72 20 61 |...*.Ivi|deo or a|
|00002c10| 75 64 69 6f 20 73 74 72 | 65 61 6d 20 70 6c 61 79 |udio str|eam play|
|00002c20| 65 72 20 6d 61 79 20 63 | 6c 6f 73 65 20 64 69 66 |er may c|lose dif|
|00002c30| 66 65 72 65 6e 74 6c 79 | 20 64 65 70 65 6e 64 69 |ferently| dependi|
|00002c40| 6e 67 20 75 70 6f 6e 20 | 77 68 65 74 68 65 72 00 |ng upon |whether.|
|00002c50| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 02 87 00 b0 |...d..ON|LN.d....|
|00002c60| 00 3c 00 be 01 d7 00 2a | 0e 4c 6f 72 20 6e 6f 74 |.<.....*|.Lor not|
|00002c70| 20 69 74 20 d2 68 61 73 | 20 74 68 65 20 70 6f 77 | it .has| the pow|
|00002c80| 65 72 d3 20 61 74 20 74 | 68 61 74 20 74 69 6d 65 |er. at t|hat time|
|00002c90| 2e 20 54 68 69 73 20 70 | 61 72 74 20 6f 66 20 74 |. This p|art of t|
|00002ca0| 68 65 20 41 50 49 20 69 | 73 20 75 6e 64 65 72 20 |he API i|s under |
|00002cb0| 72 65 76 69 65 77 00 a1 | 00 64 00 10 4f 4e 4c 4e |review..|.d..ONLN|
|00002cc0| 00 64 02 d4 00 be 00 3c | 00 cc 01 e3 00 2a 0e 47 |.d.....<|.....*.G|
|00002cd0| 61 6e 64 20 6d 61 79 20 | 62 65 20 65 6c 69 6d 69 |and may |be elimi|
|00002ce0| 6e 61 74 65 64 20 69 6e | 20 66 61 76 6f 72 20 6f |nated in| favor o|
|00002cf0| 66 20 73 69 6d 70 6c 79 | 20 6f 6e 6c 79 20 68 61 |f simply| only ha|
|00002d00| 76 69 6e 67 20 6f 6e 65 | 20 63 6f 6d 70 6f 6e 65 |ving one| compone|
|00002d10| 6e 74 20 6f 70 65 6e 00 | 00 a1 00 64 00 10 4f 4e |nt open.|...d..ON|
|00002d20| 4c 4e 00 64 03 1c 00 cc | 00 3c 00 da 00 6f 00 2a |LN.d....|.<...o.*|
|00002d30| 0e 0a 61 74 20 61 20 74 | 69 6d 65 2e 00 03 00 16 |..at a t|ime.....|
|00002d40| 00 0d 00 0a 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00002d50| 03 29 00 e6 00 5b 00 f2 | 01 e7 00 2b 1f 19 42 70 |.)...[..|...+..Bp|
|00002d60| 61 73 63 61 6c 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ascal Co|mponentR|
|00002d70| 65 73 75 6c 74 20 4d 50 | 45 47 53 74 72 65 61 6d |esult MP|EGStream|
|00002d80| 53 65 74 4d 50 45 47 54 | 69 6d 65 50 72 6f 63 28 |SetMPEGT|imeProc(|
|00002d90| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 73 74 61 6e 63 |Componen|tInstanc|
|00002da0| 65 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 03 6c |e....d..|ONLN.d.l|
|00002db0| 00 f1 00 84 00 fd 01 8c | 00 2b 29 0b 2c 63 69 2c |........|.+).,ci,|
|00002dc0| 20 4d 50 45 47 54 69 6d | 65 50 72 6f 63 50 74 72 | MPEGTim|eProcPtr|
|00002dd0| 20 43 6c 6f 63 6b 2c 20 | 6c 6f 6e 67 20 43 6c 6f | Clock, |long Clo|
|00002de0| 63 6b 52 65 66 63 6f 6e | 29 00 00 03 00 10 00 0d |ckRefcon|).......|
|00002df0| 00 0c 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 03 99 |.....d..|ONLN.d..|
|00002e00| 01 08 00 3c 01 16 01 dc | 00 28 01 31 00 5a 4a 54 |...<....|.(.1.ZJT|
|00002e10| 68 65 20 4d 65 64 69 61 | 20 48 61 6e 64 6c 65 72 |he Media| Handler|
|00002e20| 27 73 20 63 6c 6f 63 6b | 20 66 75 6e 63 74 69 6f |'s clock| functio|
|00002e30| 6e 20 61 6e 64 20 73 69 | 6e 67 6c 65 20 70 61 72 |n and si|ngle par|
|00002e40| 61 6d 65 74 65 72 20 61 | 72 65 20 70 61 73 73 65 |ameter a|re passe|
|00002e50| 64 20 61 74 20 74 68 69 | 73 00 00 a1 00 64 00 10 |d at thi|s....d..|
|00002e60| 4f 4e 4c 4e 00 64 03 e4 | 01 16 00 3c 01 24 01 da |ONLN.d..|...<.$..|
|00002e70| 00 2a 0e 4f 74 69 6d 65 | 20 73 6f 20 74 68 61 74 |.*.Otime| so that|
|00002e80| 20 74 68 65 79 20 63 61 | 6e 20 62 65 20 63 61 63 | they ca|n be cac|
|00002e90| 68 65 64 20 66 6f 72 20 | 6c 61 74 65 72 20 75 73 |hed for |later us|
|00002ea0| 65 2e 20 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f |e. This| functio|
|00002eb0| 6e 20 77 69 6c 6c 20 62 | 65 20 63 61 6c 6c 65 64 |n will b|e called|
|00002ec0| 20 62 79 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 | by....d|..ONLN.d|
|00002ed0| 04 34 01 24 00 3c 01 32 | 01 de 00 2a 0e 4e 74 68 |.4.$.<.2|...*.Nth|
|00002ee0| 65 20 4d 50 45 47 20 6d | 65 64 69 61 20 68 61 6e |e MPEG m|edia han|
|00002ef0| 64 6c 65 72 20 61 66 74 | 65 72 20 74 68 65 20 6f |dler aft|er the o|
|00002f00| 70 65 6e 20 63 61 6c 6c | 20 62 75 74 20 62 65 66 |pen call| but bef|
|00002f10| 6f 72 65 20 61 6e 79 20 | 63 61 6c 6c 73 20 74 6f |ore any |calls to|
|00002f20| 20 69 6e 69 74 2c 20 69 | 64 6c 65 2c 00 a1 00 64 | init, i|dle,...d|
|00002f30| 00 10 4f 4e 4c 4e 00 64 | 04 83 01 32 00 3c 01 40 |..ONLN.d|...2.<.@|
|00002f40| 00 74 00 2a 0e 0a 6f 72 | 20 64 65 63 6f 64 65 2e |.t.*..or| decode.|
|00002f50| 00 03 00 16 00 0d 00 0a | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00002f60| 4c 4e 00 64 04 8e 01 4a | 00 5b 01 56 01 bd 00 2b |LN.d...J|.[.V...+|
|00002f70| 1f 17 3b 70 61 73 63 61 | 6c 20 43 6f 6d 70 6f 6e |..;pasca|l Compon|
|00002f80| 65 6e 74 52 65 73 75 6c | 74 20 4d 50 45 47 53 74 |entResul|t MPEGSt|
|00002f90| 72 65 61 6d 49 6e 69 74 | 28 43 6f 6d 70 6f 6e 65 |reamInit|(Compone|
|00002fa0| 6e 74 49 6e 73 74 61 6e | 63 65 20 63 69 29 00 03 |ntInstan|ce ci)..|
|00002fb0| 00 10 00 0d 00 0c 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00002fc0| 00 64 04 cb 01 5f 00 3c | 01 6d 01 e9 00 28 01 88 |.d..._.<|.m...(..|
|00002fd0| 00 5a 4d 54 68 65 20 49 | 6e 69 74 20 63 61 6c 6c |.ZMThe I|nit call|
|00002fe0| 20 70 72 6f 76 69 64 65 | 73 20 63 6f 6d 70 6f 6e | provide|s compon|
|00002ff0| 65 6e 74 73 20 77 69 74 | 68 20 74 68 65 69 72 20 |ents wit|h their |
|00003000| 66 69 72 73 74 20 6f 70 | 70 6f 72 74 75 6e 69 74 |first op|portunit|
|00003010| 79 20 74 6f 20 64 6f 20 | 61 6e 79 74 68 69 6e 67 |y to do |anything|
|00003020| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 05 19 01 6d |...d..ON|LN.d...m|
|00003030| 00 3c 01 7b 01 e4 00 2a | 0e 4d 74 68 61 74 20 6d |.<.{...*|.Mthat m|
|00003040| 69 67 68 74 20 61 66 66 | 65 63 74 20 74 68 65 20 |ight aff|ect the |
|00003050| 64 69 73 70 6c 61 79 20 | 6f 66 20 69 6e 66 6f 72 |display |of infor|
|00003060| 6d 61 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 75 73 |mation t|o the us|
|00003070| 65 72 2e 20 20 51 75 69 | 63 6b 54 69 6d 65 27 73 |er. Qui|ckTime's|
|00003080| 20 73 79 73 74 65 6d 00 | 00 a1 00 64 00 10 4f 4e | system.|...d..ON|
|00003090| 4c 4e 00 64 05 67 01 7b | 00 3c 01 89 01 e8 00 2a |LN.d.g.{|.<.....*|
|000030a0| 0e 4e 73 74 72 65 61 6d | 20 70 6c 61 79 65 72 20 |.Nstream| player |
|000030b0| 63 61 6c 6c 73 20 74 68 | 65 20 63 6f 72 72 65 73 |calls th|e corres|
|000030c0| 70 6f 6e 64 69 6e 67 20 | 69 6e 69 74 20 66 75 6e |ponding |init fun|
|000030d0| 63 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 61 74 |ctions o|f the at|
|000030e0| 74 61 63 68 65 64 20 61 | 75 64 69 6f 20 61 6e 64 |tached a|udio and|
|000030f0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 05 b6 01 89 |...d..ON|LN.d....|
|00003100| 00 3c 01 97 01 d0 00 2a | 0e 4d 76 69 64 65 6f 20 |.<.....*|.Mvideo |
|00003110| 70 6c 61 79 65 72 73 2e | 20 20 54 68 69 73 20 69 |players.| This i|
|00003120| 73 20 61 20 67 6f 6f 64 | 20 74 69 6d 65 20 74 6f |s a good| time to|
|00003130| 20 63 6c 65 61 72 20 73 | 63 72 65 65 6e 73 2c 20 | clear s|creens, |
|00003140| 70 75 74 20 75 70 20 77 | 69 6e 64 6f 77 73 2c 20 |put up w|indows, |
|00003150| 65 74 63 2e 2e 2e 2e 00 | 00 03 00 16 00 0d 00 0a |etc.....|........|
|00003160| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 06 05 01 a1 |...d..ON|LN.d....|
|00003170| 00 5b 01 ad 01 c9 00 2b | 1f 17 3d 70 61 73 63 61 |.[.....+|..=pasca|
|00003180| 6c 20 43 6f 6d 70 6f 6e | 65 6e 74 52 65 73 75 6c |l Compon|entResul|
|00003190| 74 20 4d 50 45 47 53 74 | 72 65 61 6d 44 65 63 6f |t MPEGSt|reamDeco|
|000031a0| 64 65 28 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |de(Compo|nentInst|
|000031b0| 61 6e 63 65 20 63 69 2c | 00 a1 00 64 00 10 4f 4e |ance ci,|...d..ON|
|000031c0| 4c 4e 00 64 06 43 01 ac | 00 84 01 b8 01 ec 00 2b |LN.d.C..|.......+|
|000031d0| 29 0b 3c 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |).<unsig|ned char|
|000031e0| 20 2a 64 61 74 61 2c 20 | 6c 6f 6e 67 20 73 69 7a | *data, |long siz|
|000031f0| 65 2c 20 42 6f 6f 6c 65 | 61 6e 20 49 73 50 54 53 |e, Boole|an IsPTS|
|00003200| 2c 20 53 43 52 54 79 70 | 65 20 2a 50 54 53 29 00 |, SCRTyp|e *PTS).|
|00003210| 00 03 00 10 00 0d 00 0c | 00 a1 00 64 00 10 4f 4e |........|...d..ON|
|00003220| 4c 4e 00 64 06 81 01 c5 | 00 3c 01 d3 01 c4 00 28 |LN.d....|.<.....(|
|00003230| 01 ee 00 5a 49 54 68 65 | 20 64 65 63 6f 64 65 20 |...ZIThe| decode |
|00003240| 63 61 6c 6c 20 69 73 20 | 75 73 65 64 20 74 6f 20 |call is |used to |
|00003250| 70 61 73 73 20 64 61 74 | 61 20 74 68 61 74 20 6d |pass dat|a that m|
|00003260| 75 73 74 20 62 65 20 64 | 65 63 6f 64 65 64 2e 20 |ust be d|ecoded. |
|00003270| 20 54 68 65 20 66 69 72 | 73 74 20 74 77 6f 00 a1 | The fir|st two..|
|00003280| 00 64 00 10 4f 4e 4c 4e | 00 64 06 cb 01 d3 00 3c |.d..ONLN|.d.....<|
|00003290| 01 e1 01 e3 00 2a 0e 4e | 70 61 72 61 6d 65 74 65 |.....*.N|paramete|
|000032a0| 72 73 20 69 6e 64 69 63 | 61 74 65 20 74 68 65 20 |rs indic|ate the |
|000032b0| 6c 6f 63 61 74 69 6f 6e | 20 61 6e 64 20 73 69 7a |location| and siz|
|000032c0| 65 20 6f 66 20 74 68 65 | 20 64 61 74 61 2e 20 20 |e of the| data. |
|000032d0| 57 68 65 6e 20 64 61 74 | 61 20 69 73 20 70 61 73 |When dat|a is pas|
|000032e0| 73 65 64 20 74 6f 00 a1 | 00 64 00 10 4f 4e 4c 4e |sed to..|.d..ONLN|
|000032f0| 00 64 07 1a 01 e1 00 3c | 01 ef 01 df 00 2a 0e 4d |.d.....<|.....*.M|
|00003300| 65 6c 65 6d 65 6e 74 61 | 72 79 20 73 74 72 65 61 |elementa|ry strea|
|00003310| 6d 73 2c 20 61 20 42 6f | 6f 6c 65 61 6e 20 69 6e |ms, a Bo|olean in|
|00003320| 64 69 63 61 74 65 73 20 | 69 66 20 74 68 65 72 65 |dicates |if there|
|00003330| 20 69 73 20 61 20 50 54 | 53 20 61 73 73 6f 63 69 | is a PT|S associ|
|00003340| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 00 00 a1 |ated wit|h the...|
|00003350| 00 64 00 10 4f 4e 4c 4e | 00 64 07 68 01 ef 00 3c |.d..ONLN|.d.h...<|
|00003360| 01 fd 00 9e 00 2a 0e 12 | 64 61 74 61 20 62 65 69 |.....*..|data bei|
|00003370| 6e 67 20 70 61 73 73 65 | 64 2e 00 03 00 16 00 0d |ng passe|d.......|
|00003380| 00 0a 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 07 7b |.....d..|ONLN.d.{|
|00003390| 02 07 00 5b 02 13 01 bd | 00 2b 1f 17 3b 70 61 73 |...[....|.+..;pas|
|000033a0| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|000033b0| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 49 64 |ult MPEG|StreamId|
|000033c0| 6c 65 28 43 6f 6d 70 6f | 6e 65 6e 74 49 6e 73 74 |le(Compo|nentInst|
|000033d0| 61 6e 63 65 20 63 69 29 | 00 03 00 10 00 0d 00 0c |ance ci)|........|
|000033e0| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 07 b8 02 1e |...d..ON|LN.d....|
|000033f0| 00 3c 02 2c 01 d1 00 28 | 02 47 00 5a 4a 54 68 65 |.<.,...(|.G.ZJThe|
|00003400| 20 69 64 6c 65 20 63 61 | 6c 6c 20 69 73 20 61 6e | idle ca|ll is an|
|00003410| 20 6f 70 70 6f 72 74 75 | 6e 69 74 79 20 74 6f 20 | opportu|nity to |
|00003420| 70 65 72 66 6f 72 6d 20 | 77 68 61 74 65 76 65 72 |perform |whatever|
|00003430| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 69 73 20 64 | process|ing is d|
|00003440| 65 73 69 72 65 64 2e 00 | 00 a1 00 64 00 10 4f 4e |esired..|...d..ON|
|00003450| 4c 4e 00 64 08 04 02 3a | 00 3c 02 48 01 e2 00 2a |LN.d...:|.<.H...*|
|00003460| 1c 46 57 68 65 6e 65 76 | 65 72 20 74 68 65 20 4d |.FWhenev|er the M|
|00003470| 50 45 47 20 4d 65 64 69 | 61 20 48 61 6e 64 6c 65 |PEG Medi|a Handle|
|00003480| 72 20 6b 6e 6f 77 73 20 | 74 68 61 74 20 69 74 20 |r knows |that it |
|00003490| 69 73 20 70 61 73 73 69 | 6e 67 20 64 69 73 63 6f |is passi|ng disco|
|000034a0| 6e 74 69 6e 75 6f 75 73 | 00 a1 00 64 00 10 4f 4e |ntinuous|...d..ON|
|000034b0| 4c 4e 00 64 08 4b 02 48 | 00 3c 02 56 01 d1 00 2a |LN.d.K.H|.<.V...*|
|000034c0| 0e 4f 64 61 74 61 20 74 | 6f 20 61 74 74 61 63 68 |.Odata t|o attach|
|000034d0| 65 64 20 73 74 72 65 61 | 6d 20 70 6c 61 79 65 72 |ed strea|m player|
|000034e0| 73 20 28 62 65 63 61 75 | 73 65 20 6f 66 20 65 72 |s (becau|se of er|
|000034f0| 72 6f 72 20 6f 72 20 73 | 65 65 6b 73 29 2c 20 69 |ror or s|eeks), i|
|00003500| 74 20 63 61 6c 6c 73 20 | 74 68 65 20 72 65 73 65 |t calls |the rese|
|00003510| 74 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 08 9b |t....d..|ONLN.d..|
|00003520| 02 56 00 3c 02 64 01 d4 | 00 2a 0e 4c 66 75 6e 63 |.V.<.d..|.*.Lfunc|
|00003530| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 61 74 74 61 |tion of |the atta|
|00003540| 63 68 65 64 20 73 74 72 | 65 61 6d 20 70 6c 61 79 |ched str|eam play|
|00003550| 65 72 73 2e 20 20 54 68 | 69 73 20 73 68 6f 75 6c |ers. Th|is shoul|
|00003560| 64 20 62 65 20 75 73 65 | 64 20 61 73 20 61 20 73 |d be use|d as a s|
|00003570| 69 67 6e 61 6c 20 74 6f | 00 a1 00 64 00 10 4f 4e |ignal to|...d..ON|
|00003580| 4c 4e 00 64 08 e8 02 64 | 00 3c 02 72 01 df 00 2a |LN.d...d|.<.r...*|
|00003590| 0e 4c 66 6c 75 73 68 20 | 61 6c 6c 20 62 75 66 66 |.Lflush |all buff|
|000035a0| 65 72 73 20 61 6e 64 20 | 6e 6f 74 20 64 65 63 6f |ers and |not deco|
|000035b0| 64 65 20 65 6c 65 6d 65 | 6e 74 61 72 79 20 73 74 |de eleme|ntary st|
|000035c0| 72 65 61 6d 20 64 61 74 | 61 20 75 6e 74 69 6c 20 |ream dat|a until |
|000035d0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 72 65 00 a1 |appropri|ate re..|
|000035e0| 00 64 00 10 4f 4e 4c 4e | 00 64 09 35 02 72 00 3c |.d..ONLN|.d.5.r.<|
|000035f0| 02 80 01 44 00 2a 0e 2f | 73 79 6e 63 68 72 6f 6e |...D.*./|synchron|
|00003600| 69 7a 61 74 69 6f 6e 20 | 63 6f 6e 64 69 74 69 6f |ization |conditio|
|00003610| 6e 73 20 68 61 76 65 20 | 62 65 65 6e 20 73 61 74 |ns have |been sat|
|00003620| 69 73 66 69 65 64 2e 00 | 00 03 00 16 00 0d 00 0a |isfied..|........|
|00003630| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 09 65 02 94 |...d..ON|LN.d.e..|
|00003640| 00 5b 02 a0 01 cf 00 2b | 1f 21 3e 70 61 73 63 61 |.[.....+|.!>pasca|
|00003650| 6c 20 43 6f 6d 70 6f 6e | 65 6e 74 52 65 73 75 6c |l Compon|entResul|
|00003660| 74 20 4d 50 45 47 53 74 | 72 65 61 6d 53 65 74 52 |t MPEGSt|reamSetR|
|00003670| 61 74 65 28 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |ate(Comp|onentIns|
|00003680| 74 61 6e 63 65 20 63 69 | 2c 00 00 a1 00 64 00 10 |tance ci|,....d..|
|00003690| 4f 4e 4c 4e 00 64 09 a4 | 02 9f 00 84 02 ab 00 a8 |ONLN.d..|........|
|000036a0| 00 2b 29 0b 06 46 69 78 | 65 64 29 00 00 ff 0d 7e |.+)..Fix|ed)....~|
|000036b0| 00 00 00 00 02 d7 02 23 | 00 11 02 ff 0c 00 ff ff |.......#|........|
|000036c0| ff ff 00 00 00 00 00 00 | 00 00 02 23 00 00 02 d7 |........|...#....|
|000036d0| 00 00 00 00 00 00 00 0c | 00 1e 00 1f 00 01 00 0a |........|........|
|000036e0| 00 00 00 00 03 18 02 64 | 00 2c 00 0a 00 16 07 43 |.......d|.,.....C|
|000036f0| 6f 75 72 69 65 72 00 03 | 00 16 00 0d 00 0a 00 2e |ourier..|........|
|00003700| 00 04 00 00 00 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003710| 00 64 00 00 00 29 00 5b | 00 35 01 db 00 2b 79 51 |.d...).[|.5...+yQ|
|00003720| 40 70 61 73 63 61 6c 20 | 43 6f 6d 70 6f 6e 65 6e |@pascal |Componen|
|00003730| 74 52 65 73 75 6c 74 20 | 4d 50 45 47 53 74 72 65 |tResult |MPEGStre|
|00003740| 61 6d 53 65 74 56 6f 6c | 75 6d 65 28 43 6f 6d 70 |amSetVol|ume(Comp|
|00003750| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 63 69 |onentIns|tance ci|
|00003760| 2c 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 41 |,....d..|ONLN.d.A|
|00003770| 00 34 00 84 00 40 00 d2 | 00 2b 29 0b 0d 73 68 6f |.4...@..|.+)..sho|
|00003780| 72 74 20 76 6f 6c 75 6d | 65 29 00 a1 00 64 00 10 |rt volum|e)...d..|
|00003790| 4f 4e 4c 4e 00 64 00 50 | 00 3f 00 5b 00 4b 01 db |ONLN.d.P|.?.[.K..|
|000037a0| 00 28 00 67 00 79 40 70 | 61 73 63 61 6c 20 43 6f |.(.g.y@p|ascal Co|
|000037b0| 6d 70 6f 6e 65 6e 74 52 | 65 73 75 6c 74 20 4d 50 |mponentR|esult MP|
|000037c0| 45 47 53 74 72 65 61 6d | 53 65 74 44 69 6d 65 6e |EGStream|SetDimen|
|000037d0| 73 69 6f 6e 73 28 43 6f | 6d 70 6f 6e 65 6e 74 49 |sions(Co|mponentI|
|000037e0| 6e 73 74 61 6e 63 65 00 | 00 a1 00 64 00 10 4f 4e |nstance.|...d..ON|
|000037f0| 4c 4e 00 64 00 91 00 4a | 00 84 00 56 00 ea 00 2b |LN.d...J|...V...+|
|00003800| 29 0b 11 63 69 2c 20 46 | 69 78 65 64 2c 20 46 69 |)..ci, F|ixed, Fi|
|00003810| 78 65 64 29 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |xed)...d|..ONLN.d|
|00003820| 00 a4 00 55 00 5b 00 61 | 01 db 00 28 00 7d 00 79 |...U.[.a|...(.}.y|
|00003830| 40 70 61 73 63 61 6c 20 | 43 6f 6d 70 6f 6e 65 6e |@pascal |Componen|
|00003840| 74 52 65 73 75 6c 74 20 | 4d 50 45 47 53 74 72 65 |tResult |MPEGStre|
|00003850| 61 6d 53 65 74 4d 61 74 | 72 69 78 28 43 6f 6d 70 |amSetMat|rix(Comp|
|00003860| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 63 69 |onentIns|tance ci|
|00003870| 2c 00 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 00 e5 |,....d..|ONLN.d..|
|00003880| 00 60 00 84 00 6c 00 de | 00 2b 29 0b 0f 4d 61 74 |.`...l..|.+)..Mat|
|00003890| 72 69 78 52 65 63 6f 72 | 64 20 2a 29 00 a1 00 64 |rixRecor|d *)...d|
|000038a0| 00 10 4f 4e 4c 4e 00 64 | 00 f6 00 6b 00 5b 00 77 |..ONLN.d|...k.[.w|
|000038b0| 01 db 00 28 00 93 00 79 | 40 70 61 73 63 61 6c 20 |...(...y|@pascal |
|000038c0| 43 6f 6d 70 6f 6e 65 6e | 74 52 65 73 75 6c 74 20 |Componen|tResult |
|000038d0| 4d 50 45 47 53 74 72 65 | 61 6d 47 65 74 53 72 63 |MPEGStre|amGetSrc|
|000038e0| 52 67 6e 28 43 6f 6d 70 | 6f 6e 65 6e 74 49 6e 73 |Rgn(Comp|onentIns|
|000038f0| 74 61 6e 63 65 20 63 69 | 2c 00 00 a1 00 64 00 10 |tance ci|,....d..|
|00003900| 4f 4e 4c 4e 00 64 01 37 | 00 76 00 84 00 82 01 02 |ONLN.d.7|.v......|
|00003910| 00 2b 29 0b 15 52 67 6e | 48 61 6e 64 6c 65 2c 20 |.+)..Rgn|Handle, |
|00003920| 54 69 6d 65 56 61 6c 75 | 65 29 00 2c 00 0b 00 10 |TimeValu|e).,....|
|00003930| 08 50 61 6c 61 74 69 6e | 6f 00 00 03 00 10 00 0d |.Palatin|o.......|
|00003940| 00 0c 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 01 4e |.....d..|ONLN.d.N|
|00003950| 00 8d 00 3c 00 9b 01 ba | 00 28 00 b6 00 5a 45 54 |...<....|.(...ZET|
|00003960| 68 65 73 65 20 70 72 6f | 63 65 64 75 72 65 73 20 |hese pro|cedures |
|00003970| 61 72 65 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 |are call|ed when |
|00003980| 75 73 65 72 20 6f 72 20 | 61 70 70 6c 69 63 61 74 |user or |applicat|
|00003990| 69 6f 6e 20 61 63 74 69 | 6f 6e 73 20 69 6e 73 74 |ion acti|ons inst|
|000039a0| 72 75 63 74 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |ruct...d|..ONLN.d|
|000039b0| 01 94 00 9b 00 3c 00 a9 | 01 e2 00 2a 0e 4c 51 75 |.....<..|...*.LQu|
|000039c0| 69 63 6b 54 69 6d 65 20 | 74 6f 20 64 6f 20 73 6f |ickTime |to do so|
|000039d0| 2e 20 20 54 68 65 20 41 | 50 49 20 66 6f 72 20 74 |. The A|PI for t|
|000039e0| 68 65 73 65 20 63 61 6c | 6c 73 20 73 75 70 70 6f |hese cal|ls suppo|
|000039f0| 72 74 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |rt the c|orrespon|
|00003a00| 64 69 6e 67 20 70 61 72 | 74 73 00 a1 00 64 00 10 |ding par|ts...d..|
|00003a10| 4f 4e 4c 4e 00 64 01 e1 | 00 a9 00 3c 00 b7 01 14 |ONLN.d..|...<....|
|00003a20| 00 2a 0e 26 6f 66 20 74 | 68 65 20 41 50 49 20 66 |.*.&of t|he API f|
|00003a30| 6f 72 20 64 65 72 69 76 | 65 64 20 4d 65 64 69 61 |or deriv|ed Media|
|00003a40| 20 48 61 6e 64 6c 65 72 | 73 2e 00 03 00 16 00 0d | Handler|s.......|
|00003a50| 00 0a 00 a1 00 64 00 10 | 4f 4e 4c 4e 00 64 02 08 |.....d..|ONLN.d..|
|00003a60| 00 c3 00 5b 00 cf 01 d5 | 00 2b 1f 19 3f 70 61 73 |...[....|.+..?pas|
|00003a70| 63 61 6c 20 43 6f 6d 70 | 6f 6e 65 6e 74 52 65 73 |cal Comp|onentRes|
|00003a80| 75 6c 74 20 4d 50 45 47 | 53 74 72 65 61 6d 46 72 |ult MPEG|StreamFr|
|00003a90| 61 6d 65 56 69 73 69 62 | 6c 65 28 43 6f 6d 70 6f |ameVisib|le(Compo|
|00003aa0| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 00 a1 00 64 |nentInst|ance...d|
|00003ab0| 00 10 4f 4e 4c 4e 00 64 | 02 48 00 ce 00 84 00 da |..ONLN.d|.H......|
|00003ac0| 01 0e 00 2b 29 0b 17 63 | 69 2c 20 42 6f 6f 6c 65 |...+)..c|i, Boole|
|00003ad0| 61 6e 20 2a 69 73 56 69 | 73 69 62 6c 65 29 00 03 |an *isVi|sible)..|
|00003ae0| 00 10 00 0d 00 0c 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003af0| 00 64 02 61 00 e5 00 3c | 00 f3 00 55 00 28 01 0e |.d.a...<|...U.(..|
|00003b00| 00 5a 04 54 68 65 20 00 | 00 03 00 16 00 a1 00 64 |.Z.The .|.......d|
|00003b10| 00 10 4f 4e 4c 4e 00 64 | 02 65 00 e5 00 55 00 f1 |..ONLN.d|.e...U..|
|00003b20| 00 a9 00 29 19 0c 46 72 | 61 6d 65 56 69 73 69 62 |...)..Fr|ameVisib|
|00003b30| 6c 65 00 03 00 10 00 a1 | 00 64 00 10 4f 4e 4c 4e |le......|.d..ONLN|
|00003b40| 00 64 02 71 00 e5 00 a9 | 00 f3 01 e7 00 29 54 39 |.d.q....|.....)T9|
|00003b50| 20 66 75 6e 63 74 69 6f | 6e 20 69 6e 64 69 63 61 | functio|n indica|
|00003b60| 74 65 73 20 74 6f 20 61 | 20 63 6f 6d 70 6f 6e 65 |tes to a| compone|
|00003b70| 6e 74 20 63 61 6c 6c 69 | 6e 67 20 61 20 76 69 64 |nt calli|ng a vid|
|00003b80| 65 6f 20 73 74 72 65 61 | 6d 00 00 a1 00 64 00 10 |eo strea|m....d..|
|00003b90| 4f 4e 4c 4e 00 64 02 ab | 00 f3 00 3c 01 01 01 c3 |ONLN.d..|...<....|
|00003ba0| 00 28 01 1c 00 5a 4c 70 | 6c 61 79 65 72 20 74 68 |.(...ZLp|layer th|
|00003bb0| 61 74 20 61 20 66 72 61 | 6d 65 20 69 73 20 76 69 |at a fra|me is vi|
|00003bc0| 73 69 62 6c 65 2e 20 20 | 49 6e 20 67 65 6e 65 72 |sible. |In gener|
|00003bd0| 61 6c 2c 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |al, this| functio|
|00003be0| 6e 20 77 69 6c 6c 20 72 | 65 74 75 72 6e 20 66 61 |n will r|eturn fa|
|00003bf0| 6c 73 65 00 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |lse....d|..ONLN.d|
|00003c00| 02 f8 01 01 00 3c 01 0f | 01 d3 00 2a 0e 4d 69 6d |.....<..|...*.Mim|
|00003c10| 6d 65 64 69 61 74 65 6c | 79 20 61 66 74 65 72 20 |mediatel|y after |
|00003c20| 61 20 72 65 73 65 74 20 | 63 61 6c 6c 2c 20 20 61 |a reset |call, a|
|00003c30| 6e 64 20 77 69 6c 6c 20 | 74 75 72 6e 20 74 6f 20 |nd will |turn to |
|00003c40| 74 72 75 65 20 73 68 6f | 72 74 6c 79 20 61 66 74 |true sho|rtly aft|
|00003c50| 65 72 77 61 72 64 2c 20 | 61 6e 64 00 00 a1 00 64 |erward, |and....d|
|00003c60| 00 10 4f 4e 4c 4e 00 64 | 03 46 01 0f 00 3c 01 1d |..ONLN.d|.F...<..|
|00003c70| 00 f9 00 2a 0e 25 74 68 | 65 72 65 61 66 74 65 72 |...*.%th|ereafter|
|00003c80| 2c 20 75 6e 74 69 6c 20 | 61 6e 6f 74 68 65 72 20 |, until |another |
|00003c90| 72 65 73 65 74 20 63 61 | 6c 6c 2e 00 00 03 00 16 |reset ca|ll......|
|00003ca0| 00 0d 00 0a 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00003cb0| 03 6c 01 2b 00 5b 01 37 | 01 cf 00 2b 1f 1b 3e 70 |.l.+.[.7|...+..>p|
|00003cc0| 61 73 63 61 6c 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ascal Co|mponentR|
|00003cd0| 65 73 75 6c 74 20 4d 50 | 45 47 53 74 72 65 61 6d |esult MP|EGStream|
|00003ce0| 44 69 73 70 6c 61 79 28 | 43 6f 6d 70 6f 6e 65 6e |Display(|Componen|
|00003cf0| 74 49 6e 73 74 61 6e 63 | 65 20 63 69 29 00 00 03 |tInstanc|e ci)...|
|00003d00| 00 10 00 0d 00 0c 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00003d10| 00 64 03 ab 01 40 00 3c | 01 4e 01 da 00 28 01 69 |.d...@.<|.N...(.i|
|00003d20| 00 5a 49 44 6f 20 49 20 | 77 61 6e 74 20 74 6f 20 |.ZIDo I |want to |
|00003d30| 6b 65 65 70 20 74 68 69 | 73 20 41 50 49 20 66 75 |keep thi|s API fu|
|00003d40| 6e 63 74 69 6f 6e 3f 20 | 20 54 68 69 73 2c 20 61 |nction? | This, a|
|00003d50| 6e 64 20 74 68 65 20 6d | 61 74 72 69 78 20 61 6e |nd the m|atrix an|
|00003d60| 64 20 64 69 6d 65 6e 73 | 69 6f 6e 73 00 a1 00 64 |d dimens|ions...d|
|00003d70| 00 10 4f 4e 4c 4e 00 64 | 03 f5 01 4e 00 3c 01 5c |..ONLN.d|...N.<.\|
|00003d80| 01 ec 00 2a 0e 50 61 6e | 64 20 73 72 63 20 72 67 |...*.Pan|d src rg|
|00003d90| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 20 73 68 6f 75 |n functi|ons shou|
|00003da0| 6c 64 20 66 6f 72 6d 20 | 74 68 65 20 62 61 73 69 |ld form |the basi|
|00003db0| 73 20 6f 66 20 61 20 62 | 65 74 74 65 72 20 74 68 |s of a b|etter th|
|00003dc0| 6f 75 67 68 74 20 6f 75 | 74 20 64 69 73 70 6c 61 |ought ou|t displa|
|00003dd0| 79 20 61 70 69 2e 00 03 | 00 16 00 0d 00 0a 00 a1 |y api...|........|
|00003de0| 00 64 00 10 4f 4e 4c 4e | 00 64 04 46 01 66 00 5b |.d..ONLN|.d.F.f.[|
|00003df0| 01 72 01 d5 00 2b 1f 17 | 3f 70 61 73 63 61 6c 20 |.r...+..|?pascal |
|00003e00| 43 6f 6d 70 6f 6e 65 6e | 74 52 65 73 75 6c 74 20 |Componen|tResult |
|00003e10| 4d 50 45 47 53 74 72 65 | 61 6d 57 68 61 74 54 69 |MPEGStre|amWhatTi|
|00003e20| 6d 65 49 73 49 74 28 43 | 6f 6d 70 6f 6e 65 6e 74 |meIsIt(C|omponent|
|00003e30| 49 6e 73 74 61 6e 63 65 | 00 a1 00 64 00 10 4f 4e |Instance|...d..ON|
|00003e40| 4c 4e 00 64 04 86 01 71 | 00 84 01 7d 01 50 00 2b |LN.d...q|...}.P.+|
|00003e50| 29 0b 22 63 69 2c 20 42 | 6f 6f 6c 65 61 6e 20 2a |)."ci, B|oolean *|
|00003e60| 69 73 56 69 73 69 62 6c | 65 2c 20 6c 6f 6e 67 20 |isVisibl|e, long |
|00003e70| 2a 53 43 52 29 00 00 03 | 00 10 00 0d 00 0c 00 a1 |*SCR)...|........|
|00003e80| 00 64 00 10 4f 4e 4c 4e | 00 64 04 aa 01 86 00 3c |.d..ONLN|.d.....<|
|00003e90| 01 94 01 c0 00 28 01 af | 00 5a 43 54 68 69 73 20 |.....(..|.ZCThis |
|00003ea0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 75 73 65 64 |function| is used|
|00003eb0| 20 62 79 20 74 68 65 20 | 4d 50 45 47 20 4d 65 64 | by the |MPEG Med|
|00003ec0| 69 61 20 48 61 6e 64 6c | 65 72 20 74 6f 20 71 75 |ia Handl|er to qu|
|00003ed0| 65 72 79 20 74 68 65 20 | 73 79 73 74 65 6d 00 a1 |ery the |system..|
|00003ee0| 00 64 00 10 4f 4e 4c 4e | 00 64 04 ee 01 94 00 3c |.d..ONLN|.d.....<|
|00003ef0| 01 a2 01 e9 00 2a 0e 51 | 68 61 6e 64 6c 65 72 20 |.....*.Q|handler |
|00003f00| 61 73 20 74 6f 20 77 68 | 61 74 20 74 68 65 20 53 |as to wh|at the S|
|00003f10| 43 52 20 69 73 20 6f 66 | 20 74 68 65 20 6e 65 78 |CR is of| the nex|
|00003f20| 74 20 62 79 74 65 20 69 | 74 20 65 78 70 65 63 74 |t byte i|t expect|
|00003f30| 73 20 74 6f 20 72 65 63 | 65 69 76 65 2e 20 20 54 |s to rec|eive. T|
|00003f40| 68 69 73 20 76 61 6c 75 | 65 00 00 a1 00 64 00 10 |his valu|e....d..|
|00003f50| 4f 4e 4c 4e 00 64 05 40 | 01 a2 00 3c 01 b0 01 c4 |ONLN.d.@|...<....|
|00003f60| 00 2a 0e 47 63 61 6e 20 | 74 68 65 6e 20 62 65 20 |.*.Gcan |then be |
|00003f70| 75 73 65 64 20 74 6f 20 | 64 65 63 69 64 65 20 69 |used to |decide i|
|00003f80| 66 20 6d 6f 72 65 20 64 | 61 74 61 20 73 68 6f 75 |f more d|ata shou|
|00003f90| 6c 64 20 62 65 20 66 65 | 74 63 68 65 64 20 66 72 |ld be fe|tched fr|
|00003fa0| 6f 6d 20 74 68 65 20 64 | 61 74 61 00 00 a1 00 64 |om the d|ata....d|
|00003fb0| 00 10 4f 4e 4c 4e 00 64 | 05 88 01 b0 00 3c 01 be |..ONLN.d|.....<..|
|00003fc0| 01 c2 00 2a 0e 49 68 61 | 6e 64 6c 65 72 2e 20 20 |...*.Iha|ndler. |
|00003fd0| 54 68 69 73 20 63 61 6c | 6c 20 73 68 6f 75 6c 64 |This cal|l should|
|00003fe0| 20 62 65 20 72 65 70 6c | 61 63 65 64 20 62 79 20 | be repl|aced by |
|00003ff0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 74 68 61 74 20 |a functi|on that |
|00004000| 6c 65 74 73 20 74 68 65 | 20 73 79 73 74 65 6d 00 |lets the| system.|
|00004010| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 05 d2 01 be |...d..ON|LN.d....|
|00004020| 00 3c 01 cc 00 9a 00 2a | 0e 12 68 61 6e 64 6c 65 |.<.....*|..handle|
|00004030| 72 20 64 65 63 69 64 65 | 2e 2e 2e 2e 00 03 00 16 |r decide|........|
|00004040| 00 0d 00 0a 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |.......d|..ONLN.d|
|00004050| 05 e5 01 d6 00 5b 01 e2 | 00 df 00 2b 1f 17 16 70 |.....[..|...+...p|
|00004060| 61 73 63 61 6c 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ascal Co|mponentR|
|00004070| 65 73 75 6c 74 00 00 a1 | 00 64 00 10 4f 4e 4c 4e |esult...|.d..ONLN|
|00004080| 00 64 05 fc 01 e1 00 84 | 01 ed 01 c8 00 2b 29 0b |.d......|.....+).|
|00004090| 36 4d 50 45 47 53 74 72 | 65 61 6d 53 61 6d 70 6c |6MPEGStr|eamSampl|
|000040a0| 65 73 50 65 72 53 65 63 | 6f 6e 64 28 43 6f 6d 70 |esPerSec|ond(Comp|
|000040b0| 6f 6e 65 6e 74 49 6e 73 | 74 61 6e 63 65 20 63 69 |onentIns|tance ci|
|000040c0| 2c 20 46 69 78 65 64 00 | 00 a1 00 64 00 10 4f 4e |, Fixed.|...d..ON|
|000040d0| 4c 4e 00 64 06 33 01 ec | 00 84 01 f8 00 de 00 2a |LN.d.3..|.......*|
|000040e0| 0b 0f 2a 53 61 6d 70 6c | 65 73 50 65 72 53 65 63 |..*Sampl|esPerSec|
|000040f0| 29 00 00 03 00 10 00 0d | 00 0c 00 a1 00 64 00 10 |).......|.....d..|
|00004100| 4f 4e 4c 4e 00 64 06 44 | 02 01 00 3c 02 0f 01 bb |ONLN.d.D|...<....|
|00004110| 00 28 02 2a 00 5a 42 54 | 68 69 73 20 66 75 6e 63 |.(.*.ZBT|his func|
|00004120| 74 69 6f 6e 20 69 73 20 | 75 73 65 66 75 6c 20 66 |tion is |useful f|
|00004130| 6f 72 20 68 65 6c 70 69 | 6e 67 20 74 68 65 20 4d |or helpi|ng the M|
|00004140| 50 45 47 20 4d 65 64 69 | 61 20 48 61 6e 64 6c 65 |PEG Medi|a Handle|
|00004150| 72 20 73 75 70 70 6f 72 | 74 00 00 a1 00 64 00 10 |r suppor|t....d..|
|00004160| 4f 4e 4c 4e 00 64 06 87 | 02 0f 00 3c 02 1d 00 8c |ONLN.d..|...<....|
|00004170| 00 2a 0e 0f 66 75 6e 63 | 74 69 6f 6e 73 20 6c 69 |.*..func|tions li|
|00004180| 6b 65 20 00 00 03 00 16 | 00 a1 00 64 00 10 4f 4e |ke .....|...d..ON|
|00004190| 4c 4e 00 64 06 96 02 0f | 00 8c 02 1b 01 11 00 29 |LN.d....|.......)|
|000041a0| 50 13 4e 65 78 74 49 6e | 74 65 72 65 73 74 69 6e |P.NextIn|terestin|
|000041b0| 67 54 69 6d 65 00 00 03 | 00 10 00 a1 00 64 00 10 |gTime...|.....d..|
|000041c0| 4f 4e 4c 4e 00 64 06 a9 | 02 0f 01 11 02 1d 01 d8 |ONLN.d..|........|
|000041d0| 00 29 85 26 2c 20 77 68 | 69 63 68 20 69 73 20 75 |.).&, wh|ich is u|
|000041e0| 73 65 64 20 66 6f 72 20 | 74 68 69 6e 67 73 20 6c |sed for |things l|
|000041f0| 69 6b 65 20 73 69 6e 67 | 6c 65 00 a1 00 64 00 10 |ike sing|le...d..|
|00004200| 4f 4e 4c 4e 00 64 06 d0 | 02 1d 00 3c 02 2b 00 92 |ONLN.d..|...<.+..|
|00004210| 00 28 02 46 00 5a 0f 66 | 72 61 6d 65 20 73 74 65 |.(.F.Z.f|rame ste|
|00004220| 70 70 69 6e 67 2e 00 03 | 00 16 00 0d 00 0a 00 a1 |pping...|........|
|00004230| 00 64 00 10 4f 4e 4c 4e | 00 64 06 e0 02 35 00 5b |.d..ONLN|.d...5.[|
|00004240| 02 41 01 d5 00 2b 1f 17 | 3f 70 61 73 63 61 6c 20 |.A...+..|?pascal |
|00004250| 43 6f 6d 70 6f 6e 65 6e | 74 52 65 73 75 6c 74 20 |Componen|tResult |
|00004260| 4d 50 45 47 53 74 72 65 | 61 6d 57 61 6e 74 54 6f |MPEGStre|amWantTo|
|00004270| 44 65 63 6f 64 65 28 43 | 6f 6d 70 6f 6e 65 6e 74 |Decode(C|omponent|
|00004280| 49 6e 73 74 61 6e 63 65 | 00 a1 00 64 00 10 4f 4e |Instance|...d..ON|
|00004290| 4c 4e 00 64 07 20 02 40 | 00 84 02 4c 01 3e 00 2b |LN.d. .@|...L.>.+|
|000042a0| 29 0b 1f 63 69 2c 20 6c | 6f 6e 67 20 73 69 7a 65 |)..ci, l|ong size|
|000042b0| 2c 20 42 6f 6f 6c 65 61 | 6e 20 2a 57 61 6e 74 54 |, Boolea|n *WantT|
|000042c0| 6f 29 00 03 00 10 00 0d | 00 0c 00 a1 00 64 00 10 |o)......|.....d..|
|000042d0| 4f 4e 4c 4e 00 64 07 41 | 02 55 00 3c 02 63 01 d1 |ONLN.d.A|.U.<.c..|
|000042e0| 00 28 02 7e 00 5a 48 54 | 68 69 73 20 66 75 6e 63 |.(.~.ZHT|his func|
|000042f0| 74 69 6f 6e 20 69 73 20 | 73 6f 6d 65 74 69 6d 65 |tion is |sometime|
|00004300| 73 20 63 61 6c 6c 65 64 | 20 62 79 20 74 68 65 20 |s called| by the |
|00004310| 4d 65 64 69 61 20 48 61 | 6e 64 6c 65 72 20 74 6f |Media Ha|ndler to|
|00004320| 20 6c 65 74 20 74 68 65 | 20 53 79 73 74 65 6d 00 | let the| System.|
|00004330| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 07 8a 02 63 |...d..ON|LN.d...c|
|00004340| 00 3c 02 71 01 d6 00 2a | 0e 4e 73 74 72 65 61 6d |.<.q...*|.Nstream|
|00004350| 20 70 6c 61 79 65 72 20 | 64 65 63 69 64 65 20 69 | player |decide i|
|00004360| 66 20 69 74 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 |f it wou|ld like |
|00004370| 73 69 7a 65 20 6e 75 6d | 62 65 72 20 6f 66 20 62 |size num|ber of b|
|00004380| 79 74 65 73 20 74 6f 20 | 62 65 20 70 61 73 73 65 |ytes to |be passe|
|00004390| 64 20 74 6f 20 69 74 2e | 00 a1 00 64 00 10 4f 4e |d to it.|...d..ON|
|000043a0| 4c 4e 00 64 07 da 02 71 | 00 3c 02 7f 01 e7 00 2a |LN.d...q|.<.....*|
|000043b0| 0e 4d 53 74 72 65 61 6d | 20 70 6c 61 79 65 72 73 |.MStream| players|
|000043c0| 20 77 69 74 68 20 6c 61 | 72 67 65 20 61 6d 6f 75 | with la|rge amou|
|000043d0| 6e 74 73 20 6f 66 20 62 | 75 66 66 65 72 69 6e 67 |nts of b|uffering|
|000043e0| 20 63 61 6e 20 74 68 65 | 72 65 62 79 20 72 65 71 | can the|reby req|
|000043f0| 75 65 73 74 20 65 78 74 | 72 61 20 64 61 74 61 00 |uest ext|ra data.|
|00004400| 00 a1 00 64 00 10 4f 4e | 4c 4e 00 64 08 28 02 7f |...d..ON|LN.d.(..|
|00004410| 00 3c 02 8d 00 92 00 2a | 0e 10 74 6f 20 62 75 66 |.<.....*|..to buf|
|00004420| 66 65 72 20 61 68 65 61 | 64 2e 00 ff 00 00 00 00 |fer ahea|d.......|
|00004430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004480| 00 00 01 00 00 00 03 eb | 00 00 02 eb 00 00 01 36 |........|.......6|
|00004490| 6d 20 70 6c 61 79 65 72 | 73 2e 20 20 54 68 69 73 |m player|s. This|
|000044a0| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used |
|000044b0| 1b 48 6f 77 20 74 6f 20 | 77 72 69 74 65 20 61 6e |.How to |write an|
|000044c0| 20 4d 50 45 47 20 50 6c | 61 79 65 72 02 00 00 00 | MPEG Pl|ayer....|
|000044d0| 00 00 4f 4e 4c 4e 48 4c | 58 32 01 00 00 68 01 00 |..ONLNHL|X2...h..|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 a9 e1 a5 22 00 00 | 43 ac 00 00 05 21 6e 74 |....."..|C....!nt|
|00004500| 61 72 79 20 73 74 72 65 | 61 6d 20 64 61 74 61 20 |ary stre|am data |
|00004510| 75 6e 74 69 6c 20 61 70 | 70 72 6f 70 72 69 61 74 |until ap|propriat|
|00004520| 65 20 72 65 00 a1 00 64 | 00 10 4f 4e 4c 4e 00 64 |e re...d|..ONLN.d|
|00004530| ff ff 00 00 00 00 00 00 | 00 00 00 2a 0e 2f 73 79 |........|...*./sy|
|00004540| 6e 63 68 72 6f 6e 69 7a | 61 74 69 6f 6e 20 63 6f |nchroniz|ation co|
|00004550| 6e 64 69 74 69 6f 6e 73 | 20 68 61 76 65 20 62 65 |nditions| have be|
|00004560| 65 6e 20 73 61 74 69 73 | 66 69 65 64 2e 00 00 03 |en satis|fied....|
|00004570| 00 16 00 0d 00 0a 00 a1 | 00 64 00 10 4f 4e 4c 4e |........|.d..ONLN|
|00004580| 00 00 00 30 00 00 1a 06 | 00 00 0d 46 00 00 00 00 |...0....|...F....|
|00004590| 00 00 08 1e 00 00 27 4c | 00 00 0e e2 00 00 08 21 |......'L|.......!|
|000045a0| 00 00 11 ca 00 00 36 2e | 00 00 0d 7e 00 00 11 cd |......6.|...~....|
|000045b0| 00 00 1a 04 00 00 00 52 | 00 00 27 4c 00 00 0e e2 |.......R|..'L....|
|000045c0| 00 00 08 21 00 3d 91 70 | 00 00 36 2e 00 00 0d 7e |...!.=.p|..6....~|
|000045d0| 00 00 11 cd 00 00 1a 04 | 00 3d de 80 6b 01 00 04 |........|.=..k...|
|000045e0| 00 34 0d f0 00 34 18 68 | 07 43 6f 75 72 69 65 72 |.4...4.h|.Courier|
|000045f0| 00 03 00 16 00 3d 91 30 | 00 00 00 00 00 00 1a 06 |.....=.0|........|
|00004600| 00 00 1a 06 00 00 29 a6 | 00 03 00 00 00 1a 00 05 |......).|........|
|00004610| 00 01 00 03 00 00 00 00 | 02 d7 02 23 00 00 1a 06 |........|...#....|
|00004620| 00 00 29 a6 00 00 00 00 | 00 00 00 00 00 00 00 02 |..).....|........|
|00004630| 00 00 00 00 00 d8 00 01 | 00 00 00 00 ff ff 00 02 |........|........|
|00004640| 00 00 00 01 ff ff 00 03 | 00 00 00 02 ff ff 00 04 |........|........|
|00004650| 00 00 00 03 ff ff 00 05 | 00 00 00 04 ff ff 00 06 |........|........|
|00004660| 00 00 00 05 ff ff 00 07 | 00 00 00 06 ff ff 00 08 |........|........|
|00004670| 00 00 00 07 ff ff 00 09 | 00 00 00 08 ff ff 00 0a |........|........|
|00004680| 00 00 00 09 ff ff 00 0b | 00 00 00 0a ff ff 00 0c |........|........|
|00004690| 00 00 00 0b ff ff 00 0d | 00 00 00 0c ff ff 00 0e |........|........|
|000046a0| 00 00 00 0d ff ff 00 0f | 00 00 00 0e ff ff 00 10 |........|........|
|000046b0| 00 00 00 0f ff ff 00 11 | 00 00 00 10 ff ff 00 12 |........|........|
|000046c0| 00 00 00 11 ff ff 00 13 | 00 00 00 12 ff ff 00 14 |........|........|
|000046d0| 00 00 00 13 ff ff 00 15 | 00 00 00 14 ff ff 00 16 |........|........|
|000046e0| 00 00 00 15 ff ff 00 17 | 00 00 00 16 ff ff 00 18 |........|........|
|000046f0| 00 00 00 17 ff ff 00 19 | 00 00 00 18 ff ff 00 1a |........|........|
|00004700| 00 00 00 19 ff ff ff ff | 00 00 00 1a ff ff 00 00 |........|........|
|00004710| 00 3e 00 1b 07 53 79 6d | 62 6f 6c 73 01 41 01 42 |.>...Sym|bols.A.B|
|00004720| 01 43 01 44 01 45 01 46 | 01 47 01 48 01 49 01 4a |.C.D.E.F|.G.H.I.J|
|00004730| 01 4b 01 4c 01 4d 01 4e | 01 4f 01 50 01 51 01 52 |.K.L.M.N|.O.P.Q.R|
|00004740| 01 53 01 54 01 55 01 56 | 01 57 01 58 01 59 01 5a |.S.T.U.V|.W.X.Y.Z|
|00004750| 00 00 00 00 00 00 00 a8 | 00 00 00 00 00 00 00 1d |........|........|
|00004760| 00 00 00 34 00 00 00 53 | 00 00 00 78 00 00 01 e9 |...4...S|...x....|
|00004770| 00 00 03 73 00 00 05 7a | 00 00 05 7f 00 00 05 b2 |...s...z|........|
|00004780| 00 00 05 d9 00 00 05 f3 | 00 00 06 f7 00 00 07 d2 |........|........|
|00004790| 00 00 07 dc 00 00 08 21 | 00 00 08 62 00 00 0b 4a |.......!|...b...J|
|000047a0| 00 00 0b ba 00 00 0c af | 00 00 0c ec 00 00 0e 26 |........|.......&|
|000047b0| 00 00 0e a2 00 00 0f 9c | 00 00 0f d9 00 00 10 25 |........|.......%|
|000047c0| 00 00 11 86 00 00 11 cd | 00 00 12 1d 00 00 12 71 |........|.......q|
|000047d0| 00 00 12 c3 00 00 13 1b | 00 00 13 d5 00 00 14 2e |........|........|
|000047e0| 00 00 15 39 00 00 15 78 | 00 00 16 13 00 00 16 77 |...9...x|.......w|
|000047f0| 00 00 17 b2 00 00 18 11 | 00 00 18 ad 00 00 19 0e |........|........|
|00004800| 00 00 00 08 00 00 00 01 | 00 03 00 01 00 00 00 20 |........|....... |
|00004810| 00 01 00 16 00 16 00 0a | 00 01 00 16 00 16 00 0c |........|........|
|00004820| 00 00 00 10 00 10 00 0c | 00 00 00 10 00 10 00 12 |........|........|
|00004830| 00 00 00 13 00 02 08 50 | 61 6c 61 74 69 6e 6f 07 |.......P|alatino.|
|00004840| 43 6f 75 72 69 65 72 00 | 00 00 04 00 00 ff ff 00 |Courier.|........|
|00004850| 00 00 18 00 00 00 52 00 | 00 00 2a 00 00 03 07 00 |......R.|..*.....|
|00004860| 00 02 3c 00 01 00 01 00 | 03 00 70 00 00 01 00 00 |..<.....|..p.....|
|00004870| 00 03 eb 00 00 02 eb 00 | 00 01 36 00 23 d7 18 09 |........|..6.#...|
|00004880| 30 00 00 00 1c 01 36 00 | 0d 70 61 67 65 00 00 00 |0.....6.|.page...|
|00004890| 72 63 68 70 74 00 00 00 | 7e 62 6f 6f 6b 00 00 00 |rchpt...|~book...|
|000048a0| 8a 54 4f 43 20 00 00 00 | 96 54 4f 43 23 00 00 00 |.TOC ...|.TOC#...|
|000048b0| a2 49 44 58 20 00 00 00 | ae 49 44 58 23 00 00 00 |.IDX ...|.IDX#...|
|000048c0| ba 49 44 58 50 00 00 00 | c6 50 41 52 41 00 00 00 |.IDXP...|.PARA...|
|000048d0| d2 46 4f 4c 4f 00 00 00 | de 44 43 46 4e 00 00 00 |.FOLO...|.DCFN...|
|000048e0| ea 44 43 46 23 00 00 00 | f6 46 4f 4c 53 00 00 01 |.DCF#...|.FOLS...|
|000048f0| 02 53 54 49 46 00 00 01 | 0e 03 e8 ff ff 00 00 00 |.STIF...|........|
|00004900| 00 00 00 00 00 03 e8 ff | ff 00 00 00 34 00 00 00 |........|....4...|
|00004910| 00 03 e8 ff ff 00 00 00 | 8a 00 00 00 00 03 e8 ff |........|........|
|00004920| ff 00 00 00 a8 00 00 00 | 00 03 e8 ff ff 00 00 00 |........|........|
|00004930| ac 00 00 00 00 03 e8 ff | ff 00 00 00 b2 00 00 00 |........|........|
|00004940| 00 03 e8 ff ff 00 00 01 | 8e 00 00 00 00 03 e8 ff |........|........|
|00004950| ff 00 00 01 d0 00 00 00 | 00 03 e8 ff ff 00 00 01 |........|........|
|00004960| d4 00 00 00 00 03 e8 ff | ff 00 00 02 80 00 00 00 |........|........|
|00004970| 00 03 e8 ff ff 00 00 02 | 8c 00 00 00 00 03 e8 ff |........|........|
|00004980| ff 00 00 02 b0 00 00 00 | 00 03 e8 ff ff 00 00 02 |........|........|
|00004990| c7 00 00 00 00 03 e8 ff | ff 00 00 02 cf 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+