about summary refs log tree commit diff
path: root/ppmtoyuvsplit.html
blob: 604224c1975353ce8ba845b55f19ba9e47ac7432 (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Ppmtoyuvsplit User Manual</TITLE></HEAD>
<BODY>
<H1>ppmtoyuvsplit</H1>
Updated: 06 March 2003
<BR>

<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

ppmtoyuvsplit - convert a PPM image to 3 subsampled raw YUV files

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>ppmtoyuvsplit</B>
<I>basename</I>
[<I>ppmfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>ppmtoyuvsplit</b> reads a PPM image as input.  Produces 3 raw
files <i>basename</i>.Y, <i>basename</i>.U and <i>basename.V</i> as
output.

<p>The output files are the subsampled raw YUV representation of the
input PPM image, as required by the Stanford MPEG codec.  The Y output
file contains a byte for each pixel in the image, with the rows going
from top to bottom and the columns within each row going left to
right.  The U and V output files are arranged similarly, except that
each byte represents a square of 4 pixels of the image.  The value is
the arithmetic mean of the value for each of those 4 pixels.  Hence, the
Y file is 4 times the size of the U file or V file.

<p>The YUV values are scaled according to CCIR.601, as assumed by
MPEG.

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="yuvsplittoppm.html">yuvsplittoppm</A>,
<A HREF="ppmtoyuv.html">ppmtoyuv</a>,
<A HREF="ppmtoeyuv.html">ppmtoeyuv</A>,
<A HREF="ppmtompeg.html">ppmtompeg</A>,
<A HREF="ppm.html">ppm</A>


<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>

<p>Copyright (C) 1993 by Andre Beck. (<A
HREF="mailto:Andre_Beck@IRS.Inf.TU-Dresden.de">Andre_Beck@IRS.Inf.TU-Dresden.de</A>)

<P>Based on ppmtoyuv.c

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">SEE ALSO</A>
<LI><A HREF="#lbAF">AUTHOR</A>
</UL>
</BODY>
</HTML>