%!PS-Adobe-2.0 %%Version: 0.1 %%DocumentFonts: (atend) %%Pages: (atend) %%EndComments % % Version 3.3.2 prologue for troff files. % /#copies 1 store /aspectratio 1 def /formsperpage 1 def /landscape false def /linewidth .3 def /magnification 1 def /margin 0 def /orientation 0 def /resolution 720 def /rotation 1 def /xoffset 0 def /yoffset 0 def /roundpage true def /useclippath true def /pagebbox [0 0 612 792] def /R /Times-Roman def /I /Times-Italic def /B /Times-Bold def /BI /Times-BoldItalic def /H /Helvetica def /HI /Helvetica-Oblique def /HB /Helvetica-Bold def /HX /Helvetica-BoldOblique def /CW /Courier def /CO /Courier def /CI /Courier-Oblique def /CB /Courier-Bold def /CX /Courier-BoldOblique def /PA /Palatino-Roman def /PI /Palatino-Italic def /PB /Palatino-Bold def /PX /Palatino-BoldItalic def /Hr /Helvetica-Narrow def /Hi /Helvetica-Narrow-Oblique def /Hb /Helvetica-Narrow-Bold def /Hx /Helvetica-Narrow-BoldOblique def /KR /Bookman-Light def /KI /Bookman-LightItalic def /KB /Bookman-Demi def /KX /Bookman-DemiItalic def /AR /AvantGarde-Book def /AI /AvantGarde-BookOblique def /AB /AvantGarde-Demi def /AX /AvantGarde-DemiOblique def /NR /NewCenturySchlbk-Roman def /NI /NewCenturySchlbk-Italic def /NB /NewCenturySchlbk-Bold def /NX /NewCenturySchlbk-BoldItalic def /ZD /ZapfDingbats def /ZI /ZapfChancery-MediumItalic def /S /S def /S1 /S1 def /GR /Symbol def /inch {72 mul} bind def /min {2 copy gt {exch} if pop} bind def /setup { counttomark 2 idiv {def} repeat pop landscape {/orientation 90 orientation add def} if /scaling 72 resolution div def linewidth setlinewidth 1 setlinecap pagedimensions xcenter ycenter translate orientation rotation mul rotate width 2 div neg height 2 div translate xoffset inch yoffset inch neg translate margin 2 div dup neg translate magnification dup aspectratio mul scale scaling scaling scale addmetrics 0 0 moveto } def /pagedimensions { useclippath userdict /gotpagebbox known not and { /pagebbox [clippath pathbbox newpath] def roundpage currentdict /roundpagebbox known and {roundpagebbox} if } if pagebbox aload pop 4 -1 roll exch 4 1 roll 4 copy landscape {4 2 roll} if sub /width exch def sub /height exch def add 2 div /xcenter exch def add 2 div /ycenter exch def userdict /gotpagebbox true put } def /addmetrics { /Symbol /S null Sdefs cf /Times-Roman /S1 StandardEncoding dup length array copy S1defs cf } def /pagesetup { /page exch def currentdict /pagedict known currentdict page known and { page load pagedict exch get cvx exec } if } def /decodingdefs [ {counttomark 2 idiv {y moveto show} repeat} {neg /y exch def counttomark 2 idiv {y moveto show} repeat} {neg moveto {2 index stringwidth pop sub exch div 0 32 4 -1 roll widthshow} repeat} {neg moveto {spacewidth sub 0.0 32 4 -1 roll widthshow} repeat} {counttomark 2 idiv {y moveto show} repeat} {neg setfunnytext} ] def /setdecoding {/t decodingdefs 3 -1 roll get bind def} bind def /w {neg moveto show} bind def /m {neg dup /y exch def moveto} bind def /done {/lastpage where {pop lastpage} if} def /f { dup /font exch def findfont exch dup /ptsize exch def scaling div dup /size exch def scalefont setfont linewidth ptsize mul scaling 10 mul div setlinewidth /spacewidth ( ) stringwidth pop def } bind def /changefont { /fontheight exch def /fontslant exch def currentfont [ 1 0 fontheight ptsize div fontslant sin mul fontslant cos div fontheight ptsize div 0 0 ] makefont setfont } bind def /sf {f} bind def /cf { dup length 2 idiv /entries exch def /chtab exch def /newencoding exch def /newfont exch def findfont dup length 1 add dict /newdict exch def {1 index /FID ne {newdict 3 1 roll put}{pop pop} ifelse} forall newencoding type /arraytype eq {newdict /Encoding newencoding put} if newdict /Metrics entries dict put newdict /Metrics get begin chtab aload pop 1 1 entries {pop def} for newfont newdict definefont pop end } bind def % % A few arrays used to adjust reference points and character widths in some % of the printer resident fonts. If square roots are too high try changing % the lines describing /radical and /radicalex to, % % /radical [0 -75 550 0] % /radicalex [-50 -75 500 0] % % Move braceleftbt a bit - default PostScript character is off a bit. % /Sdefs [ /bracketlefttp [201 500] /bracketleftbt [201 500] /bracketrighttp [-81 380] /bracketrightbt [-83 380] /braceleftbt [203 490] /bracketrightex [220 -125 500 0] /radical [0 0 550 0] /radicalex [-50 0 500 0] /parenleftex [-20 -170 0 0] /integral [100 -50 500 0] /infinity [10 -75 730 0] ] def /S1defs [ /underscore [0 80 500 0] /endash [7 90 650 0] ] def % % Tries to round clipping path dimensions, as stored in array pagebbox, so they % match one of the known sizes in the papersizes array. Lower left coordinates % are always set to 0. % /roundpagebbox { 7 dict begin /papersizes [8.5 inch 11 inch 14 inch 17 inch] def /mappapersize { /val exch def /slop .5 inch def /diff slop def /j 0 def 0 1 papersizes length 1 sub { /i exch def papersizes i get val sub abs dup diff le {/diff exch def /j i def} {pop} ifelse } for diff slop lt {papersizes j get} {val} ifelse } def pagebbox 0 0 put pagebbox 1 0 put pagebbox dup 2 get mappapersize 2 exch put pagebbox dup 3 get mappapersize 3 exch put end } bind def %%EndProlog %%BeginSetup mark % % Encoding vector and redefinition of findfont for the ISO Latin1 standard. % The 18 characters missing from ROM based fonts on older printers are noted % below. % /ISOLatin1Encoding [ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash /zero /one /two /three /four /five /six /seven /eight /nine /colon /semicolon /less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent /dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron /space /exclamdown /cent /sterling /currency /yen /brokenbar % missing /section /dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree % missing /plusminus % missing /twosuperior % missing /threesuperior % missing /acute /mu % missing /paragraph /periodcentered /cedilla /onesuperior % missing /ordmasculine /guillemotright /onequarter % missing /onehalf % missing /threequarters % missing /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth % missing /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply % missing /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute % missing /Thorn % missing /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth % missing /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide % missing /oslash /ugrave /uacute /ucircumflex /udieresis /yacute % missing /thorn % missing /ydieresis ] def /NewFontDirectory FontDirectory maxlength dict def % % Apparently no guarantee findfont is defined in systemdict so the obvious % % systemdict /findfont get exec % % can generate an error. So far the only exception is a VT600 (version 48.0). % userdict /@RealFindfont known not { userdict begin /@RealFindfont systemdict begin /findfont load end def end } if /findfont { dup NewFontDirectory exch known not { dup %dup systemdict /findfont get exec % not always in systemdict dup userdict /@RealFindfont get exec dup /Encoding get StandardEncoding eq { dup length dict begin {1 index /FID ne {def}{pop pop} ifelse} forall /Encoding ISOLatin1Encoding def currentdict end /DummyFontName exch definefont } if NewFontDirectory 3 1 roll put } if NewFontDirectory exch get } bind def setup %%EndSetup %%Page: 1 1 /saveobj save def mark 1 pagesetup 12 /Times-Bold f (Ppmtoyuv User) 2266 1230 w (Manual) 3092 1230 w 10 /Times-Bold f (ppmtoyuv) 720 1920 w 10 /Times-Roman f (Updated: 06 June 2005) 720 2076 w (Table Of Contents) 720 2196 w 10 /Times-Bold f (NAME) 720 2436 w 10 /Times-Roman f (ppmtoyuv \255 convert a PPM image to an Abekas YUV file) 720 2592 w 10 /Times-Bold f (SYNOPSIS) 720 2832 w (ppmtoyuv) 720 2988 w 10 /Times-Roman f ([) 1179 2988 w 10 /Times-Italic f (ppmfile) 1212 2988 w 10 /Times-Roman f (]) 1512 2988 w 10 /Times-Bold f (DESCRIPTION) 720 3228 w 10 /Times-Roman f (This program is part of Netpbm.) 720 3420 w 10 /Times-Bold f (ppmtoyuv) 720 3576 w 10 /Times-Roman f (reads a PPM image as input and produces an Abekas YUV file as output.) 1179 3576 w (The) 720 3732 w (output) 908 3732 w (file) 1197 3732 w (contains) 1363 3732 w (a) 1729 3732 w (raster) 1806 3732 w (of) 2060 3732 w (four) 2176 3732 w (byte) 2375 3732 w (YUV) 2580 3732 w (codes,) 2829 3732 w (each) 3114 3732 w (uniquely) 3329 3732 w (associated) 3712 3732 w (with) 4156 3732 w (two) 4368 3732 w (side\255by\255side) 4552 3732 w (pixels) 720 3852 w (in) 993 3852 w (the) 1105 3852 w (image.) 1261 3852 w (The) 1589 3852 w (raster) 1778 3852 w (contains) 2033 3852 w (rows) 2400 3852 w (in) 2628 3852 w (order) 2740 3852 w (from) 2984 3852 w (top) 3212 3852 w (to) 3374 3852 w (bottom,) 3486 3852 w (and) 3829 3852 w (within) 4007 3852 w (each) 4297 3852 w (row) 4513 3852 w (columns) 4701 3852 w (from left to right.) 720 3972 w (So the output file size in bytes is twice the number of pixels in the image.) 1464 3972 w (Each) 720 4128 w (YUV) 950 4128 w (code) 1197 4128 w (is) 1416 4128 w (associated) 1514 4128 w (with) 1955 4128 w (two) 2164 4128 w (pixels) 2345 4128 w (from) 2615 4128 w (the) 2840 4128 w (input) 2993 4128 w (image) 3230 4128 w (that) 3505 4128 w (we) 3686 4128 w (will) 3833 4128 w (call) 4020 4128 w (the) 4195 4128 w (left) 4348 4128 w (pixel) 4512 4128 w (and) 4743 4128 w (the) 4918 4128 w (right) 720 4248 w (pixel.) 944 4248 w (The) 1229 4248 w (2nd) 1419 4248 w (byte) 1604 4248 w (of) 1811 4248 w (the) 1929 4248 w (code) 2086 4248 w (is) 2309 4248 w (the) 2411 4248 w (Y) 2568 4248 w (value) 2675 4248 w (of) 2926 4248 w (the) 3044 4248 w (left) 3201 4248 w (pixel.) 3369 4248 w (The) 3654 4248 w (4th) 3844 4248 w (byte) 4007 4248 w (of) 4214 4248 w (the) 4332 4248 w (code) 4489 4248 w (is) 4711 4248 w (the) 4812 4248 w (Y) 4968 4248 w (value) 720 4368 w (of) 964 4368 w (the) 1075 4368 w (right) 1225 4368 w (pixel.) 1442 4368 w (The) 1720 4368 w (1st) 1903 4368 w (byte) 2048 4368 w (of) 2248 4368 w (the) 2360 4368 w (code) 2511 4368 w (is) 2728 4368 w (an) 2824 4368 w (average) 2947 4368 w (of) 3285 4368 w (the) 3397 4368 w (U) 3548 4368 w (value) 3649 4368 w (of) 3894 4368 w (the) 4006 4368 w (pixel) 4157 4368 w (to) 4386 4368 w (the) 4493 4368 w (left) 4644 4368 w (of) 4806 4368 w (the) 4918 4368 w (left) 720 4488 w (pixel,) 890 4488 w (the) 1151 4488 w (left) 1309 4488 w (pixel,) 1478 4488 w (and) 1739 4488 w (the) 1919 4488 w (right) 2077 4488 w (pixel.) 2302 4488 w (The) 2588 4488 w (3rd) 2779 4488 w (byte) 2948 4488 w (of) 3156 4488 w (the) 3275 4488 w (code) 3433 4488 w (is) 3657 4488 w (analogous) 3760 4488 w (for) 4201 4488 w (V) 4353 4488 w (values.) 4461 4488 w (These) 4802 4488 w (averages) 720 4608 w (are) 1100 4608 w (weighted) 1253 4608 w (arithmetic) 1651 4608 w (means) 2088 4608 w (where) 2375 4608 w (the) 2650 4608 w (left) 2804 4608 w (pixel) 2969 4608 w (is) 3201 4608 w (weighted) 3300 4608 w (double) 3698 4608 w (what) 4002 4608 w (the) 4228 4608 w (other) 4382 4608 w (two) 4619 4608 w (pixels) 4801 4608 w (are weighted.) 720 4728 w (This) 720 4884 w (format) 926 4884 w (is) 1220 4884 w (reminiscent) 1315 4884 w (of) 1809 4884 w (but) 1921 4884 w (rather) 2078 4884 w (different) 2339 4884 w (from) 2711 4884 w (the) 2934 4884 w (common) 3085 4884 w (YUV) 3464 4884 w (4:2:0) 3709 4884 w (format) 3944 4884 w (\(aka) 4239 4884 w (YUV) 4439 4884 w (420\)) 4684 4884 w (and) 4896 4884 w (the) 720 5004 w (similar) 872 5004 w (YUV) 1180 5004 w (4:4:4,) 1426 5004 w (YUV) 1687 5004 w (4:2:2,) 1933 5004 w (YUV) 2194 5004 w (4:1:1,) 2440 5004 w (YUV) 2701 5004 w (4:1:1s,) 2947 5004 w (and) 3247 5004 w (YUV) 3421 5004 w (4:1:0.) 3667 5004 w (In) 3953 5004 w (YUV) 4066 5004 w (4:2:0,) 4312 5004 w (the) 4572 5004 w (raster) 4723 5004 w (is) 4973 5004 w (different) 720 5124 w (for) 1101 5124 w (even) 1255 5124 w (numbered) 1481 5124 w (lines) 1918 5124 w (and) 2145 5124 w (odd) 2327 5124 w (numbered) 2515 5124 w (lines.) 2952 5124 w (On) 3229 5124 w (even) 3389 5124 w (numbered) 3615 5124 w (lines,) 4052 5124 w (there) 4304 5124 w (are) 4542 5124 w (twice) 4702 5124 w (as) 4957 5124 w (many) 720 5244 w (bits) 970 5244 w (for) 1143 5244 w (Y) 1287 5244 w (of) 1387 5244 w (each) 1498 5244 w (pixel) 1708 5244 w (as) 1936 5244 w (for) 2047 5244 w (U) 2191 5244 w (or) 2291 5244 w (V.) 2402 5244 w (On) 2552 5244 w (odd) 2702 5244 w (numbered) 2880 5244 w (lines,) 3307 5244 w (there) 3549 5244 w (are) 3776 5244 w (the) 3925 5244 w (same) 4075 5244 w (number) 4308 5244 w (of) 4641 5244 w (bits) 4752 5244 w (for) 4924 5244 w (Y as on even numbered lines, but no bits at all for U and V.) 720 5364 w 10 /Times-Bold f (SEE ALSO) 720 5604 w 10 /Times-Roman f (yuvtoppm, ppmtoeyuv, ppmtoyuvsplit, ppm) 720 5760 w 10 /Times-Bold f (AUTHOR) 720 6000 w 10 /Times-Roman f (Marc) 720 6192 w (Boucher) 967 6192 w (marc@PostImage.COM,) 1342 6192 w (based) 2370 6192 w (on) 2634 6192 w (Example) 2771 6192 w (Conversion) 3164 6192 w (Program,) 3663 6192 w (A60/A64) 4070 6192 w (Digital) 4480 6192 w (Video) 4796 6192 w (Interface Manual, page 69.) 720 6312 w (Copyright \(C\) 1991 by DHD PostImage Inc.) 720 6468 w (Copyright \(C\) 1987 by Abekas Video Systems Inc.) 720 6624 w 10 /S1 f (________________________________________________________________________) 720 6744 w cleartomark showpage saveobj restore %%EndPage: 1 1 %%Page: 2 2 /saveobj save def mark 2 pagesetup 10 /Times-Roman f (\255 2 \255) 2797 480 w 10 /Times-Bold f (Table Of Contents) 720 840 w 10 /LucidaSansUnicode22 f (\031) 720 1032 w 10 /Times-Roman f (NAME) 970 1032 w 10 /LucidaSansUnicode22 f (\031) 720 1188 w 10 /Times-Roman f (SYNOPSIS) 970 1188 w 10 /LucidaSansUnicode22 f (\031) 720 1344 w 10 /Times-Roman f (DESCRIPTION) 970 1344 w 10 /LucidaSansUnicode22 f (\031) 720 1500 w 10 /Times-Roman f (SEE ALSO) 970 1500 w 10 /LucidaSansUnicode22 f (\031) 720 1656 w 10 /Times-Roman f (AUTHOR) 970 1656 w cleartomark showpage saveobj restore %%EndPage: 2 2 %%Trailer done %%DocumentFonts: Times-Roman LucidaSansUnicode22 Times-Italic Times-Bold S1 %%Pages: 2