|
Packit |
994f1a |
.\" $Header: /cvs/maptools/cvsroot/libtiff/man/rgb2ycbcr.1,v 1.4 2006/04/20 12:17:19 dron Exp $
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Copyright (c) 1991-1997 Sam Leffler
|
|
Packit |
994f1a |
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
Packit |
994f1a |
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
Packit |
994f1a |
.\" that (i) the above copyright notices and this permission notice appear in
|
|
Packit |
994f1a |
.\" all copies of the software and related documentation, and (ii) the names of
|
|
Packit |
994f1a |
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
Packit |
994f1a |
.\" publicity relating to the software without the specific, prior written
|
|
Packit |
994f1a |
.\" permission of Sam Leffler and Silicon Graphics.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
994f1a |
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
Packit |
994f1a |
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
Packit |
994f1a |
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
Packit |
994f1a |
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
Packit |
994f1a |
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
Packit |
994f1a |
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
Packit |
994f1a |
.\" OF THIS SOFTWARE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.if n .po 0
|
|
Packit |
994f1a |
.TH RGB2YCBCR 1 "November 2, 2005" "libtiff"
|
|
Packit |
994f1a |
.SH NAME
|
|
Packit |
994f1a |
rgb2ycbcr \- convert non-YCbCr
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
images to a YCbCr
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
image
|
|
Packit |
994f1a |
.SH SYNOPSIS
|
|
Packit |
994f1a |
.B rgb2ycbcr
|
|
Packit |
994f1a |
[
|
|
Packit |
994f1a |
.I options
|
|
Packit |
994f1a |
]
|
|
Packit |
994f1a |
.I "src1.tif src2.tif ... dst.tif"
|
|
Packit |
994f1a |
.SH DESCRIPTION
|
|
Packit |
994f1a |
.I rgb2ycbcr
|
|
Packit |
994f1a |
converts
|
|
Packit |
994f1a |
.SM RGB
|
|
Packit |
994f1a |
color, greyscale, or bi-level
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
images to YCbCr images by transforming and sampling pixel data. If multiple
|
|
Packit |
994f1a |
files are specified on the command line each source file is converted to a
|
|
Packit |
994f1a |
separate directory in the destination file.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
By default, chrominance samples are created by sampling
|
|
Packit |
994f1a |
2 by 2 blocks of luminance values; this can be changed with the
|
|
Packit |
994f1a |
.B \-h
|
|
Packit |
994f1a |
and
|
|
Packit |
994f1a |
.B \-v
|
|
Packit |
994f1a |
options.
|
|
Packit |
994f1a |
Output data are compressed with the
|
|
Packit |
994f1a |
.SM PackBits
|
|
Packit |
994f1a |
compression scheme, by default; an alternate scheme can be selected with the
|
|
Packit |
994f1a |
.B \-c
|
|
Packit |
994f1a |
option.
|
|
Packit |
994f1a |
By default, output data are compressed in strips with
|
|
Packit |
994f1a |
the number of rows in each strip selected so that the
|
|
Packit |
994f1a |
size of a strip is never more than 8 kilobytes;
|
|
Packit |
994f1a |
the
|
|
Packit |
994f1a |
.B \-r
|
|
Packit |
994f1a |
option can be used to explicitly set the number of
|
|
Packit |
994f1a |
rows per strip.
|
|
Packit |
994f1a |
.SH OPTIONS
|
|
Packit |
994f1a |
.TP
|
|
Packit |
994f1a |
.B \-c
|
|
Packit |
994f1a |
Specify a compression scheme to use when writing image data:
|
|
Packit |
994f1a |
.B "\-c none"
|
|
Packit |
994f1a |
for no compression,
|
|
Packit |
994f1a |
.B "\-c packbits"
|
|
Packit |
994f1a |
for the PackBits compression algorithm (the default),
|
|
Packit |
994f1a |
.B "\-c jpeg"
|
|
Packit |
994f1a |
for the JPEG compression algorithm,
|
|
Packit |
994f1a |
.B "\-c zip"
|
|
Packit |
994f1a |
for the deflate compression algorithm,
|
|
Packit |
994f1a |
and
|
|
Packit |
994f1a |
.B "\-c lzw"
|
|
Packit |
994f1a |
for Lempel-Ziv & Welch.
|
|
Packit |
994f1a |
.TP
|
|
Packit |
994f1a |
.B \-h
|
|
Packit |
994f1a |
Set the horizontal sampling dimension to one of: 1, 2 (default), or 4.
|
|
Packit |
994f1a |
.TP
|
|
Packit |
994f1a |
.B \-r
|
|
Packit |
994f1a |
Write data with a specified number of rows per strip;
|
|
Packit |
994f1a |
by default the number of rows/strip is selected so that each strip
|
|
Packit |
994f1a |
is approximately 8 kilobytes.
|
|
Packit |
994f1a |
.TP
|
|
Packit |
994f1a |
.B \-v
|
|
Packit |
994f1a |
Set the vertical sampling dimension to one of: 1, 2 (default), or 4.
|
|
Packit |
994f1a |
.SH "SEE ALSO"
|
|
Packit |
994f1a |
.BR tiffinfo (1),
|
|
Packit |
994f1a |
.BR tiffcp (1),
|
|
Packit |
994f1a |
.BR libtiff (3)
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
Libtiff library home page:
|
|
Packit |
994f1a |
.BR http://www.remotesensing.org/libtiff
|