Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/tools/rgb2ycbcr.rst

raw
1 rgb2ycbcr
2 =========
3
4 .. program:: rgb2ycbcr
5
6 Synopsis
7 --------
8
9 **rgb2ycbcr** [ *options* ] *src1.tif src2.tif … dst.tif*
10
11 Description
12 -----------
13
14 :program:`rgb2ycbcr` converts RGB color, greyscale, or bi-level TIFF
15 images to YCbCr images by transforming and sampling pixel data. If multiple
16 files are specified on the command line each source file is converted to a
17 separate directory in the destination file.
18
19 By default, chrominance samples are created by sampling
20 2 by 2 blocks of luminance values; this can be changed with the
21 :option:`-h` and :option:`-v` options.
22 Output data are compressed with the ``PackBits``
23 compression scheme, by default; an alternate scheme can be selected with the
24 :option:`-c` option.
25 By default, output data are compressed in strips with
26 the number of rows in each strip selected so that the
27 size of a strip is never more than 8 kilobytes;
28 the :option:`-r`
29 option can be used to explicitly set the number of
30 rows per strip.
31
32 Options
33 -------
34
35 .. option:: -c compress
36
37 Specify a compression scheme to use when writing image data:
38 :command:`-c none` for no compression,
39 :command:`-c packbits` for the PackBits compression algorithm (the default),
40 :command:`-c jpeg` for the JPEG compression algorithm,
41 :command:`\-c zip` for the deflate compression algorithm, and
42 :command:`-c lzw` for Lempel-Ziv & Welch.
43
44 .. option:: -h size
45
46 Set the horizontal sampling dimension to one of: 1, 2 (default), or 4.
47
48 .. option:: -r striprows
49
50 Write data with a specified number of rows per strip;
51 by default the number of rows/strip is selected so that each strip
52 is approximately 8 kilobytes.
53
54 .. option:: -v size
55
56 Set the vertical sampling dimension to one of: 1, 2 (default), or 4.
57
58 See also
59 --------
60
61 :doc:`tiffinfo` (1),
62 :doc:`tiffcp` (1),
63 :doc:`/functions/libtiff` (3tiff)