summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-40/man1/ppmntsc.1
blob: 04ce9fc1444748bfd6cde9e73a7d07f2fa7cbf55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Ppmntsc User Manual" 0 "19 April 2000" "netpbm documentation"

.SH NAME

ppmntsc - Make RGB colors legal for NTSC or PAL color systems.

.UN synopsis
.SH SYNOPSIS

\fBppmntsc\fP

[\fB--pal\fP]
[\fB--legalonly\fP]
[\fB--illegalonly\fP]
[\fB--correctedonly\fP]
[\fB--verbose\fP]
[\fB--debug\fP]
[\fIinfile\fP]
.PP
Minimum unique abbreviations of options are acceptable.

.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
This program makes colors legal in the NTSC (or PAL) color systems.
Often, images generated on the computer are made for use in movies
which ultimately end up on a television screen.  However, the range of colors
(as specified by their RGB values) on a computer does not match the
range of colors that can be represented using the NTSC (or PAL)
systems.  If an image with "illegal" colors is sent directly
to an NTSC (or PAL) video system for recording, the
"illegal" colors will be clipped.  This may result in an
undesirable looking picture.
.PP
This utility tests each pixel in an image to see if it falls
within the legal NTSC (or PAL) range.  If not, it raises or lowers the
pixel's saturation in the output so that it does fall within legal
limits.  Pixels that are already OK just go unmodified into the
output.
.PP
Input is from the file named \fIinput\fP.  If \fIinput\fP is
\fB-\fP, input is from Standard Input.  If you don't specify
\fIinput\fP, input is from Standard Input.
.PP
Output is always to Standard Output.
.PP
This program handles multi-image PPM input, producing multi-image
PPM output.

.UN options
.SH OPTIONS
.PP
In addition to the options common to all programs based on libnetpbm
(most notably \fB-quiet\fP, see 
.UR index.html#commonoptions
 Common Options
.UE
\&), \fBppmntsc\fP recognizes the following
command line options:



.TP
\fB--pal\fP
Use the PAL transform instead of the default NTSC.

.TP
\fB--verbose\fP
Print a grand total of the number of illegal pixels.

.TP
\fB--debug\fP
Produce a humongous listing of illegal colors and their legal counterparts.
NOTE:  This option may produce a great deal of output.

.TP
\fB--legalonly\fP
Output only pixels that are already legal.  Output black in place of pixels
that are not.

.TP
\fB--illegalonly\fP
Output only pixels that are illegal (and output them uncorrected).
Output black in place of pixels that are already legal.

.TP
\fB--correctedonly\fP
Output only pixels that are corrected versions of illegal pixels.  Output
black in place of pixels that are already legal.



.UN seealso
.SH SEE ALSO
.BR "pamdepth" (1)\c
\&,
.BR "ppmdim" (1)\c
\&,
.BR "pambrighten" (1)\c
\&,
.BR "ppm" (1)\c
\&

.UN author
.SH AUTHOR

Wes Barris, Minnesota Supercomputer Center, Inc., Bryan Henderson
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/ppmntsc.html
.PP