Blob Blame History Raw
<!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>