|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Read supported images into associated eight-bit RGBA rasters. More...
Go to the source code of this file.
Macros | |
| #define | FLIP_VERTICALLY 0x01 |
| Select reversed raster row order. | |
| #define | FLIP_HORIZONTALLY 0x02 |
| Select reversal within copied raster rows. | |
| #define | EMSG_BUF_SIZE 1024 |
| Reserve 1024 bytes for RGBA rejection messages. | |
| #define | REPEAT8(op) |
| Expand an operation eight times. | |
| #define | REPEAT4(op) |
| Expand an operation four times. | |
| #define | REPEAT2(op) |
| Expand an operation twice. | |
| #define | CASE8(x, op) |
| Dispatch an eight-pixel unrolled remainder. | |
| #define | CASE4(x, op) |
| Dispatch a four-pixel unrolled remainder. | |
| #define | NOP |
| Supply an empty loop operation. | |
| #define | UNROLL8(w, op1, op2) |
| Traverse complete eight-pixel groups and their remainder. | |
| #define | UNROLL4(w, op1, op2) |
| Traverse complete four-pixel groups and their remainder. | |
| #define | UNROLL2(w, op1, op2) |
| Traverse complete two-pixel groups and their remainder. | |
| #define | SKEW(r, g, b, skew) |
| Advance three plane pointers by a source skew. | |
| #define | SKEW4(r, g, b, a, skew) |
| Advance four plane pointers by a source skew. | |
| #define | A1 (((uint32_t)0xffL) << 24) |
| Set an opaque alpha byte in a packed word. | |
| #define | PACK(r, g, b) ((uint32_t)(r) | ((uint32_t)(g) << 8) | ((uint32_t)(b) << 16) | A1) |
| Pack RGB bytes with opaque alpha. | |
| #define | PACK4(r, g, b, a) |
| Pack RGB and alpha bytes. | |
| #define | DECLAREContigPutFunc(name) |
| Declare the concrete contiguous packer signature. | |
| #define | DECLARESepPutFunc(name) |
| Declare the concrete separate-plane packer signature. | |
| #define | YCbCrtoRGB(dst, Y) |
| Convert a local YCbCr group and pack an opaque output word. | |
| #define | GREY(x) |
| Append a grayscale-map entry to the expansion table. | |
| #define | CVT(x) ((uint16_t)((x) >> 8)) |
| Reduce a palette entry to its high byte. | |
| #define | CMAP(x) |
| Append a palette-map entry to the expansion table. | |
Functions | |
| static int | gtTileContig (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight) |
| Read contiguous tiles into a clipped RGBA raster. | |
| static int | gtTileSeparate (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight) |
| Read separate-plane tiles into a clipped RGBA raster. | |
| static int | gtStripContig (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight) |
| Read contiguous strips into a clipped RGBA raster. | |
| static int | gtStripSeparate (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight) |
| Read separate-plane strips into a clipped RGBA raster. | |
| static int | PickContigCase (TIFFRGBAImage *img) |
| Select contiguous get/put callbacks for the conversion. | |
| static int | PickSeparateCase (TIFFRGBAImage *img) |
| Select separate-plane get/put callbacks for the conversion. | |
| static int | BuildMapUaToAa (TIFFRGBAImage *img) |
| Build the unassociated-to-associated eight-bit channel map. | |
| static int | BuildMapBitdepth16To8 (TIFFRGBAImage *img) |
| Build rounded sixteen-to-eight-bit sample reduction. | |
| static uint16_t | checkedOrientation (uint16_t orientation) |
| Validate a TIFF orientation number. | |
| int | TIFFRGBAImageOK (TIFF *tif, char emsg[1024]) |
| Check preliminary RGBA compatibility of the current directory. | |
| void | TIFFRGBAImageEnd (TIFFRGBAImage *img) |
| Release RGBA conversion tables and copied colormaps. | |
| static int | isCCITTCompression (TIFF *tif) |
| Recognise CCITT fax compression schemes. | |
| int | TIFFRGBAImageBegin (TIFFRGBAImage *img, TIFF *tif, int stop, char emsg[1024]) |
| Initialise an RGBA reader and select conversion methods. | |
| int | TIFFRGBAImageGet (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight) |
| Read and convert a selected image area through installed callbacks. | |
| int | TIFFReadRGBAImageOriented (TIFF *tif, uint32_t rwidth, uint32_t rheight, uint32_t *raster, int orientation, int stop) |
| Read the current image into a packed RGBA raster. | |
| int | TIFFReadRGBAImage (TIFF *tif, uint32_t rwidth, uint32_t rheight, uint32_t *raster, int stop) |
| Read the current image into a packed RGBA raster. | |
| static int | setorientation (TIFFRGBAImage *img) |
| Choose horizontal and vertical raster flips. | |
| static int | calcCopyToRasterParameter (TIFFRGBAImage *img, uint32_t *raster, uint32_t rwidth, uint32_t rheight, uint32_t *pwcpy, uint32_t *phcpy, int *pflip, uint32_t **pp_raster_start, int32_t *ptoskew, uint32_t *py, bool isTiled, uint32_t tilewidth, const char *funcName) |
| Compute clipped raster placement and signed row steps. | |
| static int | checkColOffsetByteAligned (TIFFRGBAImage *img, const char *module, uint64_t bitoffset) |
| Reject a packed-sample offset between byte boundaries. | |
| static void | put8bitcmaptile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 8bitcmaptile samples into RGBA words. | |
| static void | put4bitcmaptile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 4bitcmaptile samples into RGBA words. | |
| static void | put2bitcmaptile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 2bitcmaptile samples into RGBA words. | |
| static void | put1bitcmaptile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 1bitcmaptile samples into RGBA words. | |
| static void | putgreytile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack greytile samples into RGBA words. | |
| static void | putagreytile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack agreytile samples into RGBA words. | |
| static void | put16bitbwtile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 16bitbwtile samples into RGBA words. | |
| static void | put1bitbwtile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 1bitbwtile samples into RGBA words. | |
| static void | put2bitbwtile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 2bitbwtile samples into RGBA words. | |
| static void | put4bitbwtile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack 4bitbwtile samples into RGBA words. | |
| static void | putRGBcontig8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBcontig8bittile samples into RGBA words. | |
| static void | putRGBAAcontig8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBAAcontig8bittile samples into RGBA words. | |
| static void | putRGBUAcontig8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBUAcontig8bittile samples into RGBA words. | |
| static void | putRGBcontig16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBcontig16bittile samples into RGBA words. | |
| static void | putRGBAAcontig16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBAAcontig16bittile samples into RGBA words. | |
| static void | putRGBUAcontig16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBUAcontig16bittile samples into RGBA words. | |
| static void | putRGBcontig8bitCMYKtile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBcontig8bitCMYKtile samples into RGBA words. | |
| static void | putRGBcontig8bitCMYKMaptile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack RGBcontig8bitCMYKMaptile samples into RGBA words. | |
| static void | putRGBseparate8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBseparate8bittile samples into RGBA words. | |
| static void | putRGBAAseparate8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBAAseparate8bittile samples into RGBA words. | |
| static void | putCMYKseparate8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack CMYKseparate8bittile samples into RGBA words. | |
| static void | putRGBUAseparate8bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBUAseparate8bittile samples into RGBA words. | |
| static void | putRGBseparate16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBseparate16bittile samples into RGBA words. | |
| static void | putRGBAAseparate16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBAAseparate16bittile samples into RGBA words. | |
| static void | putRGBUAseparate16bittile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack RGBUAseparate16bittile samples into RGBA words. | |
| static void | putcontig8bitCIELab8 (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitCIELab8 samples into RGBA words. | |
| static void | putcontig8bitCIELab16 (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitCIELab16 samples into RGBA words. | |
| static void | putcontig8bitYCbCr44tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr44tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr42tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr42tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr41tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr41tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr22tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr22tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr21tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr21tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr12tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr12tile samples into RGBA words. | |
| static void | putcontig8bitYCbCr11tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *pp) |
| Pack contig8bitYCbCr11tile samples into RGBA words. | |
| static void | putseparate8bitYCbCr11tile (TIFFRGBAImage *img, uint32_t *cp, uint32_t x, uint32_t y, uint32_t w, uint32_t h, int32_t fromskew, int32_t toskew, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) |
| Pack separate8bitYCbCr11tile samples into RGBA words. | |
| static int | isInRefBlackWhiteRange (float f) |
| Check a reference endpoint against conversion integer bounds. | |
| static int | initYCbCrConversion (TIFFRGBAImage *img) |
| Allocate and initialise RGBA YCbCr contribution tables. | |
| static tileContigRoutine | initCIELabConversion (TIFFRGBAImage *img) |
| Prepare Lab state and select an 8- or 16-bit packer. | |
| static int | makebwmap (TIFFRGBAImage *img) |
| Build byte-indexed packed grayscale expansion tables. | |
| static int | setupMap (TIFFRGBAImage *img) |
| Build sample scaling and grayscale unpacking maps. | |
| static int | checkcmap (TIFFRGBAImage *img) |
| Infer whether copied palette entries use eight or sixteen bits. | |
| static void | cvtcmap (TIFFRGBAImage *img) |
| Reduce all copied palette entries to their high byte. | |
| static int | makecmap (TIFFRGBAImage *img) |
| Build byte-indexed packed palette expansion tables. | |
| static int | buildMap (TIFFRGBAImage *img) |
| Build the lookup maps needed by a selected photometric case. | |
| int | TIFFReadRGBAStrip (TIFF *tif, uint32_t row, uint32_t *raster) |
| Read and convert one whole strip to packed RGBA. | |
| int | TIFFReadRGBAStripExt (TIFF *tif, uint32_t row, uint32_t *raster, int stop_on_error) |
| Read and convert one whole strip to packed RGBA. | |
| int | TIFFReadRGBATile (TIFF *tif, uint32_t col, uint32_t row, uint32_t *raster) |
| Read and convert one whole tile to packed RGBA. | |
| int | TIFFReadRGBATileExt (TIFF *tif, uint32_t col, uint32_t row, uint32_t *raster, int stop_on_error) |
| Read and convert one whole tile to packed RGBA. | |
Variables | |
| static const char | photoTag [] = "PhotometricInterpretation" |
| Name the photometric tag in diagnostic messages. | |
| static const TIFFDisplay | display_sRGB |
| Describe the fixed display transform used for Lab output. | |
| static char const *const | orientationStrings [] |
| Map checked orientation numbers to diagnostic labels. | |
Read supported images into associated eight-bit RGBA rasters.
Definition in file tif_getimage.c.