38 static const char module[] =
"TIFFComputeStrip";
46 "%lu: Sample out of range, max %lu",
68 "TIFFNumberOfStrips");
78 static const char module[] =
"TIFFVStripSize64";
94 uint16 ycbcrsubsampling[2];
95 uint16 samplingblock_samples;
98 uint64 samplingrow_samples;
103 "Invalid td_samplesperpixel value");
108 if ((ycbcrsubsampling[0] != 1 && ycbcrsubsampling[0] != 2 && ycbcrsubsampling[0] != 4)
109 ||(ycbcrsubsampling[1] != 1 && ycbcrsubsampling[1] != 2 && ycbcrsubsampling[1] != 4))
112 "Invalid YCbCr subsampling (%dx%d)",
114 ycbcrsubsampling[1] );
117 samplingblock_samples=ycbcrsubsampling[0]*ycbcrsubsampling[1]+2;
130 static const char module[] =
"TIFFVStripSize";
142 static const char module[] =
"TIFFRawStripSize64";
147#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
149 "%I64u: Invalid strip byte count, strip %lu",
151 (
unsigned long) strip);
154 "%llu: Invalid strip byte count, strip %lu",
155 (
unsigned long long) bytecount,
156 (
unsigned long) strip);
166 static const char module[] =
"TIFFRawStripSize";
204 static const char module[] =
"TIFFStripSize";
239 else if (rows>0xFFFFFFFF)
259 static const char module[] =
"TIFFScanlineSize64";
268 uint16 ycbcrsubsampling[2];
269 uint16 samplingblock_samples;
270 uint32 samplingblocks_hor;
271 uint64 samplingrow_samples;
276 "Invalid td_samplesperpixel value");
282 if (((ycbcrsubsampling[0]!=1)&&(ycbcrsubsampling[0]!=2)&&(ycbcrsubsampling[0]!=4)) ||
283 ((ycbcrsubsampling[1]!=1)&&(ycbcrsubsampling[1]!=2)&&(ycbcrsubsampling[1]!=4)))
286 "Invalid YCbCr subsampling");
289 samplingblock_samples = ycbcrsubsampling[0]*ycbcrsubsampling[1]+2;
293 scanline_size = (samplingrow_size/ycbcrsubsampling[1]);
306 if (scanline_size == 0)
311 return(scanline_size);
316 static const char module[] =
"TIFFScanlineSize";
331 static const char module[] =
"TIFFRasterScanlineSize64";
346 static const char module[] =
"TIFFRasterScanlineSize";
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
uint16 td_samplesperpixel
TIFFStripMethod tif_defstripsize
uint64 _TIFFMultiply64(TIFF *tif, uint64 first, uint64 second, const char *where)
int TIFFGetFieldDefaulted(TIFF *tif, uint32 tag,...)
uint32 _TIFFMultiply32(TIFF *tif, uint32 first, uint32 second, const char *where)
tmsize_t _TIFFCastUInt64ToSSize(TIFF *tif, uint64 val, const char *module)
uint64 TIFFGetStrileByteCount(TIFF *tif, uint32 strile)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
uint32 TIFFComputeStrip(TIFF *tif, uint32 row, uint16 sample)
tmsize_t TIFFStripSize(TIFF *tif)
tmsize_t TIFFScanlineSize(TIFF *tif)
tmsize_t TIFFRawStripSize(TIFF *tif, uint32 strip)
uint64 TIFFScanlineSize64(TIFF *tif)
uint64 TIFFRawStripSize64(TIFF *tif, uint32 strip)
uint64 TIFFRasterScanlineSize64(TIFF *tif)
uint32 TIFFDefaultStripSize(TIFF *tif, uint32 request)
uint64 TIFFVStripSize64(TIFF *tif, uint32 nrows)
tmsize_t TIFFVStripSize(TIFF *tif, uint32 nrows)
tmsize_t TIFFRasterScanlineSize(TIFF *tif)
uint32 _TIFFDefaultStripSize(TIFF *tif, uint32 s)
uint64 TIFFStripSize64(TIFF *tif)
uint32 TIFFNumberOfStrips(TIFF *tif)
#define PLANARCONFIG_SEPARATE
#define PHOTOMETRIC_YCBCR
#define TIFFTAG_YCBCRSUBSAMPLING
#define PLANARCONFIG_CONTIG
#define TIFFhowmany_64(x, y)
#define STRIP_SIZE_DEFAULT
#define TIFFhowmany_32(x, y)
#define TIFFhowmany8_64(x)