home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / VideoToolboxMATLAB.c < prev    next >
MacBinary  |  1994-10-24  |  2.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Oct 24 19:25:26 1994, modified Mon Oct 24 19:25:26 1994, creator Think C, type ASCII, 1933 bytes "VideoToolboxMATLAB.c" , at 0x80d 382 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID raw Group 3 FAX bitmap default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 4d 41 |..VideoT|oolboxMA|
|00000010| 54 4c 41 42 2e 63 00 00 | 00 00 00 00 00 00 00 00 |TLAB.c..|........|
|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 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 07 8d 00 | 00 01 7e aa d1 f2 e6 aa |........|..~.....|
|00000060| d1 f2 e6 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 af c0 00 00 |........|........|
|00000080| 2f 2a 0d 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 4d |/*.Video|ToolboxM|
|00000090| 41 54 4c 41 42 2e 63 0d | 55 73 65 20 74 68 69 73 |ATLAB.c.|Use this|
|000000a0| 20 66 69 6c 65 20 74 6f | 20 61 73 6b 20 54 48 49 | file to| ask THI|
|000000b0| 4e 4b 20 43 20 74 6f 20 | 70 72 65 63 6f 6d 70 69 |NK C to |precompi|
|000000c0| 6c 65 20 74 68 65 20 56 | 69 64 65 6f 54 6f 6f 6c |le the V|ideoTool|
|000000d0| 62 6f 78 2e 68 20 68 65 | 61 64 65 72 20 77 69 74 |box.h he|ader wit|
|000000e0| 68 20 74 68 65 0d 4d 41 | 54 4c 41 42 20 6f 70 74 |h the.MA|TLAB opt|
|000000f0| 69 6f 6e 20 65 6e 61 62 | 6c 65 64 20 74 6f 20 63 |ion enab|led to c|
|00000100| 72 65 61 74 65 20 22 56 | 69 64 65 6f 54 6f 6f 6c |reate "V|ideoTool|
|00000110| 62 6f 78 4d 41 54 4c 41 | 42 2e 70 72 65 22 2e 20 |boxMATLA|B.pre". |
|00000120| 28 54 6f 20 63 72 65 61 | 74 65 20 70 6c 61 69 6e |(To crea|te plain|
|00000130| 20 6f 6c 64 0d 56 69 64 | 65 6f 54 6f 6f 6c 62 6f | old.Vid|eoToolbo|
|00000140| 78 2e 70 72 65 2c 20 75 | 73 65 20 56 69 64 65 6f |x.pre, u|se Video|
|00000150| 54 6f 6f 6c 62 6f 78 2e | 63 20 69 6e 73 74 65 61 |Toolbox.|c instea|
|00000160| 64 20 6f 66 20 74 68 69 | 73 20 66 69 6c 65 2e 29 |d of thi|s file.)|
|00000170| 20 45 6e 61 62 6c 69 6e | 67 20 74 68 65 20 4d 41 | Enablin|g the MA|
|00000180| 54 4c 41 42 0d 6f 70 74 | 69 6f 6e 20 69 73 20 6f |TLAB.opt|ion is o|
|00000190| 6e 6c 79 20 75 73 65 66 | 75 6c 20 69 66 20 79 6f |nly usef|ul if yo|
|000001a0| 75 27 72 65 20 63 72 65 | 61 74 69 6e 67 20 4d 41 |u're cre|ating MA|
|000001b0| 54 4c 41 42 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |TLAB cod|e resour|
|000001c0| 63 65 73 2c 20 69 2e 65 | 2e 20 73 75 62 72 6f 75 |ces, i.e|. subrou|
|000001d0| 74 69 6e 65 73 0d 66 6f | 72 20 74 68 65 20 4d 41 |tines.fo|r the MA|
|000001e0| 54 4c 41 42 20 70 72 6f | 67 72 61 6d 2e 0d 0d 49 |TLAB pro|gram...I|
|000001f0| 4e 53 54 52 55 43 54 49 | 4f 4e 53 3a 0d 57 68 69 |NSTRUCTI|ONS:.Whi|
|00000200| 6c 65 20 79 6f 75 20 68 | 61 76 65 20 74 68 69 73 |le you h|ave this|
|00000210| 20 66 69 6c 65 20 6f 70 | 65 6e 2c 20 73 65 6c 65 | file op|en, sele|
|00000220| 63 74 20 50 72 65 63 6f | 6d 70 69 6c 65 20 66 72 |ct Preco|mpile fr|
|00000230| 6f 6d 20 54 48 49 4e 4b | 20 43 d5 73 20 53 6f 75 |om THINK| C.s Sou|
|00000240| 72 63 65 20 6d 65 6e 75 | 2e 0d 53 61 76 65 20 74 |rce menu|..Save t|
|00000250| 68 65 20 72 65 73 75 6c | 74 20 61 73 20 d2 56 69 |he resul|t as .Vi|
|00000260| 64 65 6f 54 6f 6f 6c 62 | 6f 78 4d 41 54 4c 41 42 |deoToolb|oxMATLAB|
|00000270| 2e 70 72 65 d3 20 69 6e | 20 74 68 65 20 56 69 64 |.pre. in| the Vid|
|00000280| 65 6f 54 6f 6f 6c 62 6f | 78 53 6f 75 72 63 65 73 |eoToolbo|xSources|
|00000290| 20 66 6f 6c 64 65 72 20 | 6f 72 20 69 6e 0d 79 6f | folder |or in.yo|
|000002a0| 75 72 20 70 72 6f 6a 65 | 63 74 27 73 20 66 6f 6c |ur proje|ct's fol|
|000002b0| 64 65 72 20 28 6f 72 20 | 61 6e 79 20 73 75 62 66 |der (or |any subf|
|000002c0| 6f 6c 64 65 72 20 77 69 | 74 68 69 6e 20 69 74 29 |older wi|thin it)|
|000002d0| 2e 20 46 6f 72 20 65 61 | 63 68 20 73 75 69 74 61 |. For ea|ch suita|
|000002e0| 62 6c 65 20 70 72 6f 6a | 65 63 74 2c 0d 74 79 70 |ble proj|ect,.typ|
|000002f0| 65 20 74 68 65 20 6c 69 | 6e 65 0d 0d 23 69 6e 63 |e the li|ne..#inc|
|00000300| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00000310| 6f 78 4d 41 54 4c 41 42 | 2e 70 72 65 22 0d 0d 69 |oxMATLAB|.pre"..i|
|00000320| 6e 74 6f 20 74 68 65 20 | 45 64 69 74 3a 4f 70 74 |nto the |Edit:Opt|
|00000330| 69 6f 6e 73 3a 54 48 49 | 4e 4b 20 43 3a 50 72 65 |ions:THI|NK C:Pre|
|00000340| 66 69 78 20 77 69 6e 64 | 6f 77 2e 20 0d 0d 57 41 |fix wind|ow. ..WA|
|00000350| 52 4e 49 4e 47 53 3a 0d | 56 69 64 65 6f 54 6f 6f |RNINGS:.|VideoToo|
|00000360| 6c 62 6f 78 4d 41 54 4c | 41 42 2e 70 72 65 20 69 |lboxMATL|AB.pre i|
|00000370| 73 20 6f 6e 6c 79 20 61 | 70 70 72 6f 70 72 69 61 |s only a|ppropria|
|00000380| 74 65 20 66 6f 72 20 54 | 48 49 4e 4b 20 43 20 70 |te for T|HINK C p|
|00000390| 72 6f 6a 65 63 74 73 20 | 74 68 61 74 20 61 72 65 |rojects |that are|
|000003a0| 20 75 73 65 64 20 74 6f | 0d 62 75 69 6c 64 20 65 | used to|.build e|
|000003b0| 78 74 65 72 6e 61 6c 20 | 63 6f 64 65 20 72 65 73 |xternal |code res|
|000003c0| 6f 75 72 63 65 73 2c 20 | 69 2e 65 2e 20 22 4d 45 |ources, |i.e. "ME|
|000003d0| 58 22 20 73 75 62 72 6f | 75 74 69 6e 65 73 2c 20 |X" subro|utines, |
|000003e0| 66 6f 72 20 4d 41 54 4c | 41 42 2e 20 4e 6f 20 6f |for MATL|AB. No o|
|000003f0| 6e 65 20 68 61 73 0d 79 | 65 74 20 74 72 69 65 64 |ne has.y|et tried|
|00000400| 20 75 73 69 6e 67 20 4d | 65 74 72 6f 77 65 72 6b | using M|etrowerk|
|00000410| 73 20 43 6f 64 65 57 61 | 72 72 69 6f 72 20 43 20 |s CodeWa|rrior C |
|00000420| 74 6f 20 62 75 69 6c 64 | 20 4d 45 58 20 73 74 75 |to build| MEX stu|
|00000430| 66 66 2e 20 49 74 20 70 | 72 6f 62 61 62 6c 79 20 |ff. It p|robably |
|00000440| 77 69 6c 6c 0d 74 61 6b | 65 20 71 75 69 74 65 20 |will.tak|e quite |
|00000450| 61 20 62 69 74 20 6f 66 | 20 74 77 65 61 6b 69 6e |a bit of| tweakin|
|00000460| 67 20 62 65 66 6f 72 65 | 20 69 74 20 77 6f 72 6b |g before| it work|
|00000470| 73 20 63 6f 72 72 65 63 | 74 6c 79 2e 0d 0d 50 72 |s correc|tly...Pr|
|00000480| 65 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 69 67 6e |ecompila|tion ign|
|00000490| 6f 72 65 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ores the| content|
|000004a0| 73 20 6f 66 20 74 68 65 | 20 54 48 49 4e 4b 20 43 |s of the| THINK C|
|000004b0| 20 50 72 65 66 69 78 20 | 77 69 6e 64 6f 77 2e 0d | Prefix |window..|
|000004c0| 0d 55 6e 66 6f 72 74 75 | 6e 61 74 65 6c 79 20 54 |.Unfortu|nately T|
|000004d0| 48 49 4e 4b 20 43 20 64 | 6f 65 73 6e 27 74 20 63 |HINK C d|oesn't c|
|000004e0| 68 65 63 6b 20 77 68 65 | 74 68 65 72 20 61 20 70 |heck whe|ther a p|
|000004f0| 72 65 63 6f 6d 70 69 6c | 65 64 20 68 65 61 64 65 |recompil|ed heade|
|00000500| 72 20 69 73 20 6f 75 74 | 20 6f 66 20 64 61 74 65 |r is out| of date|
|00000510| 2e 0d 49 66 20 79 6f 75 | 20 75 70 64 61 74 65 20 |..If you| update |
|00000520| 61 6e 79 20 6f 66 20 74 | 68 65 20 54 48 49 4e 4b |any of t|he THINK|
|00000530| 20 43 2c 20 53 74 61 6e | 64 61 72 64 20 43 2c 20 | C, Stan|dard C, |
|00000540| 6f 72 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 2e |or Video|Toolbox.|
|00000550| 68 20 68 65 61 64 65 72 | 73 2c 20 74 68 65 6e 20 |h header|s, then |
|00000560| 79 6f 75 0d 73 68 6f 75 | 6c 64 20 72 65 63 72 65 |you.shou|ld recre|
|00000570| 61 74 65 20 74 68 65 20 | 70 72 65 63 6f 6d 70 69 |ate the |precompi|
|00000580| 6c 65 64 20 68 65 61 64 | 65 72 2e 20 41 6c 73 6f |led head|er. Also|
|00000590| 2c 20 74 68 65 20 70 72 | 65 63 6f 6d 70 69 6c 65 |, the pr|ecompile|
|000005a0| 64 20 68 65 61 64 65 72 | 20 77 69 6c 6c 0d 72 65 |d header| will.re|
|000005b0| 66 6c 65 63 74 20 74 68 | 65 20 63 6f 6d 70 69 6c |flect th|e compil|
|000005c0| 65 72 20 61 6e 64 20 6c | 61 6e 67 75 61 67 65 20 |er and l|anguage |
|000005d0| 73 65 74 74 69 6e 67 73 | 20 69 6e 20 65 66 66 65 |settings| in effe|
|000005e0| 63 74 20 61 74 20 74 68 | 65 20 74 69 6d 65 20 6f |ct at th|e time o|
|000005f0| 66 0d 70 72 65 63 6f 6d | 70 69 6c 61 74 69 6f 6e |f.precom|pilation|
|00000600| 20 28 65 2e 67 2e 20 73 | 69 7a 65 20 6f 66 20 69 | (e.g. s|ize of i|
|00000610| 6e 74 20 61 6e 64 20 64 | 6f 75 62 6c 65 29 2c 20 |nt and d|ouble), |
|00000620| 73 6f 20 69 66 20 79 6f | 75 20 68 61 76 65 20 64 |so if yo|u have d|
|00000630| 69 66 66 65 72 65 6e 74 | 20 70 72 6f 6a 65 63 74 |ifferent| project|
|00000640| 73 0d 77 69 74 68 20 64 | 69 66 66 65 72 65 6e 74 |s.with d|ifferent|
|00000650| 20 73 65 74 74 69 6e 67 | 73 20 74 68 65 6e 20 79 | setting|s then y|
|00000660| 6f 75 20 6d 61 79 20 6e | 65 65 64 20 76 61 72 69 |ou may n|eed vari|
|00000670| 6f 75 73 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ous vers|ions of |
|00000680| 74 68 65 20 70 72 65 63 | 6f 6d 70 69 6c 65 64 0d |the prec|ompiled.|
|00000690| 68 65 61 64 65 72 2e 20 | 49 20 64 6f 6e d5 74 20 |header. |I don.t |
|000006a0| 6b 6e 6f 77 20 77 68 69 | 63 68 20 63 6f 6d 70 69 |know whi|ch compi|
|000006b0| 6c 65 72 20 73 65 74 74 | 69 6e 67 73 20 6d 61 74 |ler sett|ings mat|
|000006c0| 74 65 72 3b 20 74 68 65 | 20 54 48 49 4e 4b 20 43 |ter; the| THINK C|
|000006d0| 20 6d 61 6e 75 61 6c 20 | 64 6f 65 73 6e d5 74 0d | manual |doesn.t.|
|000006e0| 73 61 79 2e 20 49 66 20 | 69 6e 20 64 6f 75 62 74 |say. If |in doubt|
|000006f0| 2c 20 72 65 63 6f 6d 70 | 69 6c 65 20 74 68 65 20 |, recomp|ile the |
|00000700| 68 65 61 64 65 72 2e 0d | 0d 59 6f 75 20 63 61 6e |header..|.You can|
|00000710| 20 61 64 64 20 74 68 69 | 73 20 66 69 6c 65 20 74 | add thi|s file t|
|00000720| 6f 20 79 6f 75 72 20 70 | 72 6f 6a 65 63 74 2e 20 |o your p|roject. |
|00000730| 49 74 20 77 6f 6e 27 74 | 20 67 65 6e 65 72 61 74 |It won't| generat|
|00000740| 65 20 61 6e 79 20 63 6f | 64 65 20 6f 72 20 61 66 |e any co|de or af|
|00000750| 66 65 63 74 20 79 6f 75 | 72 0d 70 72 6f 6a 65 63 |fect you|r.projec|
|00000760| 74 20 69 6e 20 61 6e 79 | 20 77 61 79 2e 20 49 74 |t in any| way. It|
|00000770| 20 6d 65 72 65 6c 79 20 | 6b 65 65 70 73 20 74 68 | merely |keeps th|
|00000780| 69 73 20 66 69 6c 65 20 | 68 61 6e 64 79 2e 0d 0d |is file |handy...|
|00000790| 48 49 53 54 4f 52 59 3a | 0d 39 2f 31 35 2f 39 33 |HISTORY:|.9/15/93|
|000007a0| 09 64 67 70 09 57 72 6f | 74 65 20 69 74 2c 20 62 |.dgp.Wro|te it, b|
|000007b0| 61 73 65 64 20 6f 6e 20 | 56 49 64 65 6f 54 6f 6f |ased on |VIdeoToo|
|000007c0| 6c 62 6f 78 2e 63 2e 0d | 2a 2f 0d 23 69 66 6e 64 |lbox.c..|*/.#ifnd|
|000007d0| 65 66 20 4d 41 54 4c 41 | 42 0d 09 23 64 65 66 69 |ef MATLA|B..#defi|
|000007e0| 6e 65 20 4d 41 54 4c 41 | 42 20 31 0d 23 65 6e 64 |ne MATLA|B 1.#end|
|000007f0| 69 66 0d 23 69 6e 63 6c | 75 64 65 20 22 56 69 64 |if.#incl|ude "Vid|
|00000800| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 22 0d 00 00 00 |eoToolbo|x.h"....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000890| 2f 2f 20 41 64 64 65 64 | 20 62 79 20 64 67 70 2c |// Added| by dgp,|
|000008a0| 20 77 68 6f 20 61 6c 73 | 6f 20 63 68 61 6e 67 65 | who als|o change|
|000008b0| 14 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 4d 41 54 |.VideoTo|olboxMAT|
|000008c0| 4c 41 42 2e 63 6f 02 00 | 00 00 50 61 72 74 53 49 |LAB.co..|..PartSI|
|000008d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 ab bf ee 74 00 00 | 00 00 00 00 01 7e 4c 4f |.....t..|.....~LO|
|00000900| 41 54 20 2a 2a 75 2c 20 | 46 4c 4f 41 54 20 77 5b |AT **u, |FLOAT w[|
|00000910| 5d 2c 20 46 4c 4f 41 54 | 20 2a 2a 76 2c 20 69 6e |], FLOAT| **v, in|
|00000920| 74 20 6d 2c 20 69 6e 74 | 20 6e 2c 20 46 4c 4f 41 |t m, int| n, FLOA|
|00000930| 54 20 62 5b 5d 2c 20 46 | 4c 4f 41 54 20 78 5b 5d |T b[], F|LOAT x[]|
|00000940| 29 0d 7b 0d 09 69 6e 74 | 20 6a 6a 2c 6a 2c 69 3b |).{..int| jj,j,i;|
|00000950| 0d 09 46 4c 4f 41 54 20 | 73 2c 2a 74 6d 70 3b 0d |..FLOAT |s,*tmp;.|
|00000960| 0d 09 74 6d 70 3d 76 65 | 63 74 6f 72 28 31 2c 6e |..tmp=ve|ctor(1,n|
|00000970| 29 3b 0d 09 66 6f 72 20 | 28 6a 3d 31 3b 6a 3c 3d |);..for |(j=1;j<=|
|00000980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 8d |........|...*....|
|000009b0| 02 7d 00 4c 00 10 01 86 | 02 40 aa d1 ac 99 00 00 |.}.L....|.@......|
|000009c0| 03 fc 00 00 03 fc 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|000009d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1d 2d 2c |...L...L|...2..-,|
|000009e0| 19 58 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.X.....2|..MPSR..|
|000009f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1d 2a 90 00 00 |........|....*...|
+--------+-------------------------+-------------------------+--------+--------+