Lines Matching refs:img

82 void DibInstallHack(TIFFDibImage* img) ;
97 TIFFDibImage img; in ReadTIFF() local
100 if (TIFFRGBAImageBegin(&img.tif, tif, -1, emsg)) { in ReadTIFF()
104 DibInstallHack(&img); in ReadTIFF()
106 npixels = img.tif.width * img.tif.height; in ReadTIFF()
109 if (TIFFRGBAImageGet(&img.tif, raster, img.tif.width, img.tif.height)) { in ReadTIFF()
110 pDIB = TIFFRGBA2DIB(&img, raster); in ReadTIFF()
115 TIFFRGBAImageEnd(&img.tif); in ReadTIFF()
134 TIFFRGBAImage* img = &dib->tif; in TIFFRGBA2DIB() local
146 TIFFGetField(img->tif, TIFFTAG_IMAGEWIDTH, &imageWidth); in TIFFRGBA2DIB()
147 TIFFGetField(img->tif, TIFFTAG_IMAGELENGTH, &imageLength); in TIFFRGBA2DIB()
148 TIFFGetField(img->tif, TIFFTAG_BITSPERSAMPLE, &BitsPerSample); in TIFFRGBA2DIB()
149 TIFFGetField(img->tif, TIFFTAG_ROWSPERSTRIP, &RowsPerStrip); in TIFFRGBA2DIB()
150 TIFFGetField(img->tif, TIFFTAG_SAMPLESPERPIXEL, &SamplePerPixel); in TIFFRGBA2DIB()
151 TIFFGetField(img->tif, TIFFTAG_PHOTOMETRIC, &PhotometricInterpretation); in TIFFRGBA2DIB()
275 TIFFRGBAImage* img, \
285 TIFFRGBAImage* img,\
294 static int getStripContig1Bit(TIFFRGBAImage* img, uint32* uraster, uint32 w, uint32 h);
302 TIFFRGBAImage* img = &dib->tif; in DibInstallHack() local
304 switch (img->photometric) { in DibInstallHack()
307 switch (img->bitspersample) { in DibInstallHack()
309 img->put.contig = putContig1bitTile; in DibInstallHack()
310 img->get = getStripContig1Bit; in DibInstallHack()
325 int samplesperpixel = img->samplesperpixel; in DECLAREContigPutFunc()
352 setorientation(TIFFRGBAImage* img, uint32 h) in setorientation() argument
354 TIFF* tif = img->tif; in setorientation()
357 switch (img->orientation) { in setorientation()
362 img->orientation = ORIENTATION_BOTLEFT; in setorientation()
372 img->orientation = ORIENTATION_TOPLEFT; in setorientation()
393 getStripContig1Bit(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h) in getStripContig1Bit() argument
395 TIFF* tif = img->tif; in getStripContig1Bit()
396 tileContigRoutine put = img->put.contig; in getStripContig1Bit()
402 uint32 imagewidth = img->width; in getStripContig1Bit()
416 y = setorientation(img, h); in getStripContig1Bit()
417 orientation = img->orientation; in getStripContig1Bit()
424 rowstoread = rowsperstrip - (row + img->row_offset) % rowsperstrip; in getStripContig1Bit()
426 strip = TIFFComputeStrip(tif,row+img->row_offset, 0); in getStripContig1Bit()
427 stripsize = ((row + img->row_offset)%rowsperstrip + nrow) * scanline; in getStripContig1Bit()
429 && img->stoponerr) in getStripContig1Bit()
435 pos = ((row + img->row_offset) % rowsperstrip) * scanline; in getStripContig1Bit()
436 (*put)(img, (uint32*)(braster+y*wb), 0, y, w, nrow, fromskew, toskew, buf + pos); in getStripContig1Bit()