10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
15908N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
10139N/A<!ENTITY cmd "rgb2ycbcr">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<refentry id="rgb2ycbcr-1">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>rgb2ycbcr</refentrytitle><manvolnum>1</manvolnum>
10139N/A<refmiscinfo class="date">26 Mar 2004</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
11904N/A<indexterm><primary>rgb2ycbcr</primary></indexterm><indexterm><primary>convert
10139N/Anon-YCbCr TIFF images to YCbCr TIFF images</primary></indexterm>
10139N/A<refnamediv id="rgb2ycbcr-1-name"><refname>rgb2ycbcr</refname><refpurpose>
10139N/Aconvert non-YCbCr TIFF images to YCbCr TIFF images</refpurpose></refnamediv>
10139N/A<refsynopsisdiv id="rgb2ycbcr-1-synp"><title>&synp-tt;</title>
10139N/A<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option role="nodash"><replaceable>
10139N/Aoptions</replaceable></option></arg><arg choice="plain"><option role="nodash"><replaceable>
10139N/Asrc1.tif</replaceable></option></arg><arg choice="opt" rep="repeat"><option
10139N/Arole="nodash"><replaceable>src2.tif</replaceable></option></arg><arg choice="plain"><option
10139N/Arole="nodash"><replaceable>dest.tif</replaceable></option></arg>
10139N/A</cmdsynopsis></refsynopsisdiv>
10139N/A<refsect1 id="rgb2ycbcr-1-desc"><title>&desc-tt;</title>
10139N/A<para><command>&cmd;</command> converts RGB color, grayscale, or bi-level
10139N/ATIFF images to YCbCr images by transforming and sampling pixel data. If multiple
10139N/Afiles are specified on the command line, each source file is converted to
10139N/Aa separate directory in the destination file.</para>
10139N/A<para>By default, chrominance samples are created by sampling 2 by 2 blocks
10139N/Aof luminance values, and output data files are compressed with the LZW compression
10139N/Ascheme, with each strip no more than 8 kilobytes. These characteristics can
10139N/Abe overridden or explicitly specified with the options described below.</para>
10139N/A</refsect1>
10139N/A<refsect1 id="rgb2ycbcr-1-opts"><title>&opts-tt;</title>
10139N/A<para>The following options are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option>c</option></term><listitem><para>Specify a compression
10139N/Ascheme to use when writing image data:</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><option>c jpeg</option></term><listitem><para>Baseline
10139N/AJPEG compression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c lzw</option></term><listitem><para>Lempel-Ziv
10139N/Aand Welch algorithm. This is the default algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c none</option></term><listitem><para>No compression.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c packbits</option></term><listitem><para>PackBits
10139N/Acompression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></listitem></varlistentry>
10139N/A<varlistentry><term><option>h</option></term><listitem><para>Set the horizontal
10139N/Asampling dimension to one of the following: 1, 2, or 4. The default value
10139N/Ais 2.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>r</option></term><listitem><para>Write data with
10139N/Aa specified number of rows per strip. By default, the number of rows per strip
10139N/Ais selected so that each strip is approximately 8 kilobytes.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>v</option></term><listitem><para>Set the vertical
10139N/Asampling dimension to one of the following: 1, 2, or 4. The default value
10139N/Ais 2.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="rgb2ycbcr-1-oper"><title>&oper-tt;</title>
10139N/A<para>The following operands are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option role="nodash"><replaceable>src.tif</replaceable></option></term>
10139N/A<listitem><para>The name of the input file that contains non-YCbCr TIFF data.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash"><replaceable>dest.tif</replaceable></option></term>
10139N/A<listitem><para>The name of the output file that contains YCbCr TIFF data.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="rgb2ycbcr-1-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
10139N/A</row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
13623N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="rgb2ycbcr-1-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para><citerefentry><refentrytitle>tiffinfo</refentrytitle><manvolnum>1</manvolnum>
10139N/A</citerefentry>, <citerefentry><refentrytitle>tiffcp</refentrytitle><manvolnum>
10139N/A1</manvolnum></citerefentry>, <citerefentry><refentrytitle>libtiff</refentrytitle>
10139N/A<manvolnum>3</manvolnum></citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="rgb2ycbcr-1-note"><title>&note-tt;</title>
10139N/A<para>Updated by Breda McColgan, Sun Microsystems Inc., 2004.</para>
10139N/A</refsect1>
10139N/A</refentry>