Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wretile(3T) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3T)

TIFFOpen(3T)

TIFFWriteTile(3T)

TIFFWriteRawTile(3T)



TIFFWriteEncodedTile(3T) UNIX System V(June 18, 1991)  TIFFWriteEncodedTile(3T)


NAME
      TIFFWritedEncodedTile - compress and write a tile of data to an open TIFF
      file

SYNOPSIS
      #include <tiffio.h>
      int TIFFWriteEncodedTile(TIFF* tif, uint tile, uchar* buf, uint size)

DESCRIPTION
      Compress size bytes of raw data from buf and append the result to the end
      of the specified tile.  TIFFWriteEncodedTile() returns -1 if an error was
      encountered; otherwise it returns the value of size.  Note that the value
      of tile is a ``raw tile number.''  That is, the caller must take into
      account whether or not the data are organized in separate places
      (PlanarConfiguration=2).  TIFFComputeTile() automatically does this when
      converting an (x,y,z,sample) coordinate quadruple to a tile number.

      The library attempts to hide bit- and byte-ordering differences between
      the image and the native machine by converting data from the native
      machine order.  Bit reversal is always done if the FillOrder tag is
      opposite to the native machine bit order.  Byte swapping of 16- and 32-
      bit samples is automatically done when Compression=1 (``no
      compression''), but otherwise is left to the compression algorithms
      (which should generate compressed data in the native byte ordering of the
      machine).

DIAGNOSTICS
      All error messages are directed to the TIFFError(3T) routine.

      %s: Must set "ImageWidth" before writing data.  The image's width has not
      be set before the first write.  See TIFFSetField(3T) for information on
      how to do this.

      %s: Must set "PlanarConfiguration" before writing data.  The organization
      of data has not be defined before the first write.  See TIFFSetField(3T)
      for information on how to do this.

SEE ALSO
      intro(3T), TIFFOpen(3T), TIFFWriteTile(3T), TIFFWriteRawTile(3T)















10/89                                                                    Page 1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026