version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
PPMNTSC |
|
|
2 |
!!!PPMNTSC |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
ppmntsc - Make RGB colors legal for NTSC or PAL color systems. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__ppmntsc__ [[ __--pal__ ] [[ __--legalonly__ ] [[ |
|
|
18 |
__--illegalonly__ ] [[ __--correctedonly__ ] [[ |
|
|
19 |
__--verbose__ ] [[ __--debug__ ] [[ ''infile'' |
|
|
20 |
] |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
Minimum unique abbreviations of options are |
|
|
24 |
acceptable. |
|
|
25 |
!!DESCRIPTION |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
This program makes colors legal in the NTSC (or PAL) color |
|
|
29 |
systems. Often, images generated on the computer are made |
|
|
30 |
for use in movies which ultimately end up on video tape. |
|
|
31 |
However, the range of colors (as specified by their RGB |
|
|
32 |
values) on a computer does not match the range of colors |
|
|
33 |
that can be represented using the NTSC (or PAL) systems. If |
|
|
34 |
an image with |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
This utility tests each pixel in an image to see if it falls |
|
|
38 |
within the legal NTSC (or PAL) range. If not, it raises or |
|
|
39 |
lowers the pixel's saturation in the output so that it does |
|
|
40 |
fall within legal limits. Pixels that are already OK just go |
|
|
41 |
unmodified into the output. |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
Input is from the file named ''input''. If ''input'' |
|
|
45 |
is __-__, input is from Standard Input. If you don't |
|
|
46 |
specify ''input'', input is from Standard |
|
|
47 |
Input. |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
Output is always to Standard Output. |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
This program handles multi-image PPM input, producing |
|
|
54 |
multi-image PPM output. |
|
|
55 |
!!OPTIONS |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
__--pal__ |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
Use the PAL transform instead of the default |
|
|
62 |
NTSC. |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
__--verbose__ |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
Print a grand total of the number of illegal |
|
|
69 |
pixels. |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__--debug__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
Produce a humongous listing of illegal colors and their |
|
|
76 |
legal counterparts. NOTE: This option may produce a great |
|
|
77 |
deal of output. |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
__--legalonly__ |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
Output only pixels that are already legal. Output black in |
|
|
84 |
place of pixels that are not. |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
__--illegalonly__ |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
Output only pixels that are illegal (and output them |
|
|
91 |
uncorrected). Output black in place of pixels that are |
|
|
92 |
already legal. |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__--correctedonly__ |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
Output only pixels that are corrected versions of illegal |
|
|
99 |
pixels. Output black in place of pixels that are already |
|
|
100 |
legal. |
|
|
101 |
!!SEE ALSO |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
ppm(5), ppmdepth(1), ppmdim(1), |
|
|
105 |
ppmbrighten(1) |
|
|
106 |
!!AUTHOR |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
Wes Barris, Minnesota Supercomputer Center, Inc., Bryan |
|
|
110 |
Henderson |
|
|
111 |
---- |