Home
last modified time | relevance | path

Searched refs:td_samplesperpixel (Results 1 – 25 of 32) sorted by relevance

12

/external/opencv3/3rdparty/libtiff/
Dtif_strip.c46 if (sample >= td->td_samplesperpixel) { in TIFFComputeStrip()
49 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFComputeStrip()
69 nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel, in TIFFNumberOfStrips()
102 if(td->td_samplesperpixel!=3) in TIFFVStripSize64()
282 (td->td_samplesperpixel==3)&& in TIFFScanlineSize64()
290 if(td->td_samplesperpixel!=3) in TIFFScanlineSize64()
315 scanline_samples=_TIFFMultiply64(tif,td->td_imagewidth,td->td_samplesperpixel,module); in TIFFScanlineSize64()
354 scanline = _TIFFMultiply64(tif, scanline, td->td_samplesperpixel, module); in TIFFRasterScanlineSize64()
358 td->td_samplesperpixel, module)); in TIFFRasterScanlineSize64()
Dtif_tile.c101 s >= td->td_samplesperpixel) { in TIFFCheckTile()
105 (unsigned long) (td->td_samplesperpixel - 1)); in TIFFCheckTile()
135 ntiles = _TIFFMultiply32(tif, ntiles, td->td_samplesperpixel, in TIFFNumberOfTiles()
154 rowsize = _TIFFMultiply64(tif, rowsize, td->td_samplesperpixel, in TIFFTileRowSize64()
187 (td->td_samplesperpixel==3)&& in TIFFVTileSize64()
Dtif_dir.c99 if ((uint16) *v > td->td_samplesperpixel) in setExtraSamples()
133 uint16 i = td->td_samplesperpixel; in checkInkNamesString()
150 td->td_samplesperpixel, in checkInkNamesString()
151 td->td_samplesperpixel-i); in checkInkNamesString()
255 td->td_samplesperpixel = (uint16) v; in _TIFFVSetField()
275 … _TIFFsetDoubleArray(&td->td_sminsamplevalue, va_arg(ap, double*), td->td_samplesperpixel); in _TIFFVSetField()
277 … setDoubleArrayOneValue(&td->td_sminsamplevalue, va_arg(ap, double), td->td_samplesperpixel); in _TIFFVSetField()
281 … _TIFFsetDoubleArray(&td->td_smaxsamplevalue, va_arg(ap, double*), td->td_samplesperpixel); in _TIFFVSetField()
283 … setDoubleArrayOneValue(&td->td_smaxsamplevalue, va_arg(ap, double), td->td_samplesperpixel); in _TIFFVSetField()
413 v = (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1; in _TIFFVSetField()
[all …]
Dtif_print.c391 i = td->td_samplesperpixel; in TIFFPrintDirectory()
469 fprintf(fd, " Samples/Pixel: %u\n", td->td_samplesperpixel); in TIFFPrintDirectory()
482 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory()
489 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory()
542 for (i = 1; i < td->td_samplesperpixel; i++) in TIFFPrintDirectory()
601 value_count = td->td_samplesperpixel; in TIFFPrintDirectory()
Dtif_write.c85 if (sample >= td->td_samplesperpixel) { in TIFFWriteScanline()
88 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFWriteScanline()
456 td->td_samplesperpixel : TIFFNumberOfTiles(tif); in TIFFSetupStrips()
460 td->td_samplesperpixel : TIFFNumberOfStrips(tif); in TIFFSetupStrips()
463 td->td_stripsperimage /= td->td_samplesperpixel; in TIFFSetupStrips()
519 if (tif->tif_dir.td_samplesperpixel == 1) { in TIFFWriteCheck()
Dtif_dirwrite.c495 …!TIFFWriteDirectoryTagShort(tif,&ndir,dir,TIFFTAG_SAMPLESPERPIXEL,tif->tif_dir.td_samplesperpixel)) in TIFFWriteDirectorySec()
577 …mpleformatArray(tif,&ndir,dir,TIFFTAG_SMINSAMPLEVALUE,tif->tif_dir.td_samplesperpixel,tif->tif_dir… in TIFFWriteDirectorySec()
582 …mpleformatArray(tif,&ndir,dir,TIFFTAG_SMAXSAMPLEVALUE,tif->tif_dir.td_samplesperpixel,tif->tif_dir… in TIFFWriteDirectorySec()
1095 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(uint8));
1101 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1103 o=TIFFWriteDirectoryTagCheckedByteArray(tif,ndir,dir,tag,tif->tif_dir.td_samplesperpixel,m);
1147 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(int8));
1153 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1155 o=TIFFWriteDirectoryTagCheckedSbyteArray(tif,ndir,dir,tag,tif->tif_dir.td_samplesperpixel,m);
1196 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(uint16)); in TIFFWriteDirectoryTagShortPerSample()
[all …]
Dtif_aux.c111 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFDefaultTransferFunction()
193 *va_arg(ap, uint16 *) = td->td_samplesperpixel; in TIFFVGetFieldDefaulted()
280 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFVGetFieldDefaulted()
Dtif_jpeg.c694 (tif->tif_dir.td_samplesperpixel==3)) in JPEGFixupTags()
829 if (n!=8+data->tif->tif_dir.td_samplesperpixel*3) in JPEGFixupTagsSubsamplingSec()
837 for (o=1; o<data->tif->tif_dir.td_samplesperpixel; o++) in JPEGFixupTagsSubsamplingSec()
1077 td->td_samplesperpixel : 1)) { in JPEGPreDecode()
1678 sp->cinfo.c.input_components = td->td_samplesperpixel; in JPEGPreEncode()
1696 …OMETRIC_MINISWHITE || td->td_photometric == PHOTOMETRIC_MINISBLACK) && td->td_samplesperpixel == 1) in JPEGPreEncode()
1700 else if (td->td_photometric == PHOTOMETRIC_SEPARATED && td->td_samplesperpixel == 4) in JPEGPreEncode()
Dtif_dir.h79 uint16 td_samplesperpixel; member
Dtif_dirread.c2741 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirEntryPersampleShort()
2747 nb=tif->tif_dir.td_samplesperpixel; in TIFFReadDirEntryPersampleShort()
2770 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2776 nb=tif->tif_dir.td_samplesperpixel;
3646 tif->tif_dir.td_stripsperimage /= tif->tif_dir.td_samplesperpixel; in TIFFReadDirectory()
3714 if (dp->tdir_count != (uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirectory()
3886 if ( tif->tif_dir.td_bitspersample>=8 && tif->tif_dir.td_samplesperpixel==3) in TIFFReadDirectory()
3914 tif->tif_dir.td_nstrips != (uint32)tif->tif_dir.td_samplesperpixel)) { in TIFFReadDirectory()
4229 expected=(uint32)tif->tif_dir.td_samplesperpixel; in TIFFReadCustomDirectory()
4322 space /= td->td_samplesperpixel; in EstimateStripByteCounts()
Dtif_read.c192 if (sample >= td->td_samplesperpixel) { in TIFFSeek()
195 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFSeek()
Dtif_luv.c1196 switch (PACK(td->td_samplesperpixel, td->td_bitspersample, td->td_sampleformat)) { in LogL16GuessDataFmt()
1298 switch (td->td_samplesperpixel) { in LogLuvGuessDataFmt()
1512 td->td_samplesperpixel = in LogLuvClose()
/external/pdfium/third_party/libtiff/
Dtif_strip.c46 if (sample >= td->td_samplesperpixel) { in TIFFComputeStrip()
49 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFComputeStrip()
69 nstrips = _TIFFMultiply32(tif, nstrips, (uint32)td->td_samplesperpixel, in TIFFNumberOfStrips()
102 if(td->td_samplesperpixel!=3) in TIFFVStripSize64()
282 (td->td_samplesperpixel==3)&& in TIFFScanlineSize64()
290 if(td->td_samplesperpixel!=3) in TIFFScanlineSize64()
315 scanline_samples=_TIFFMultiply64(tif,td->td_imagewidth,td->td_samplesperpixel,module); in TIFFScanlineSize64()
360 scanline = _TIFFMultiply64(tif, scanline, td->td_samplesperpixel, module); in TIFFRasterScanlineSize64()
364 td->td_samplesperpixel, module)); in TIFFRasterScanlineSize64()
Dtif_tile.c101 s >= td->td_samplesperpixel) { in TIFFCheckTile()
105 (unsigned long) (td->td_samplesperpixel - 1)); in TIFFCheckTile()
135 ntiles = _TIFFMultiply32(tif, ntiles, td->td_samplesperpixel, in TIFFNumberOfTiles()
165 if (td->td_samplesperpixel == 0) in TIFFTileRowSize64()
170 rowsize = _TIFFMultiply64(tif, rowsize, td->td_samplesperpixel, in TIFFTileRowSize64()
210 (td->td_samplesperpixel==3)&& in TIFFVTileSize64()
Dtif_dir.c99 if ((uint16) *v > td->td_samplesperpixel) in setExtraSamples()
133 uint16 i = td->td_samplesperpixel; in checkInkNamesString()
150 td->td_samplesperpixel, in checkInkNamesString()
151 td->td_samplesperpixel-i); in checkInkNamesString()
257 td->td_samplesperpixel = (uint16) v; in _TIFFVSetField()
277 _TIFFsetDoubleArray(&td->td_sminsamplevalue, va_arg(ap, double*), td->td_samplesperpixel); in _TIFFVSetField()
279 setDoubleArrayOneValue(&td->td_sminsamplevalue, va_arg(ap, double), td->td_samplesperpixel); in _TIFFVSetField()
283 _TIFFsetDoubleArray(&td->td_smaxsamplevalue, va_arg(ap, double*), td->td_samplesperpixel); in _TIFFVSetField()
285 setDoubleArrayOneValue(&td->td_smaxsamplevalue, va_arg(ap, double), td->td_samplesperpixel); in _TIFFVSetField()
421 v = (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1; in _TIFFVSetField()
[all …]
Dtif_write.c85 if (sample >= td->td_samplesperpixel) { in TIFFWriteScanline()
88 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFWriteScanline()
500 td->td_samplesperpixel : TIFFNumberOfTiles(tif); in TIFFSetupStrips()
504 td->td_samplesperpixel : TIFFNumberOfStrips(tif); in TIFFSetupStrips()
507 td->td_stripsperimage /= td->td_samplesperpixel; in TIFFSetupStrips()
563 if (tif->tif_dir.td_samplesperpixel == 1) { in TIFFWriteCheck()
Dtif_print.c393 i = td->td_samplesperpixel; in TIFFPrintDirectory()
471 fprintf(fd, " Samples/Pixel: %u\n", td->td_samplesperpixel); in TIFFPrintDirectory()
484 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory()
491 int count = (tif->tif_flags & TIFF_PERSAMPLE) ? td->td_samplesperpixel : 1; in TIFFPrintDirectory()
544 for (i = 1; i < td->td_samplesperpixel; i++) in TIFFPrintDirectory()
603 value_count = td->td_samplesperpixel; in TIFFPrintDirectory()
Dtif_dirwrite.c495 …!TIFFWriteDirectoryTagShort(tif,&ndir,dir,TIFFTAG_SAMPLESPERPIXEL,tif->tif_dir.td_samplesperpixel)) in TIFFWriteDirectorySec()
577 …mpleformatArray(tif,&ndir,dir,TIFFTAG_SMINSAMPLEVALUE,tif->tif_dir.td_samplesperpixel,tif->tif_dir… in TIFFWriteDirectorySec()
582 …mpleformatArray(tif,&ndir,dir,TIFFTAG_SMAXSAMPLEVALUE,tif->tif_dir.td_samplesperpixel,tif->tif_dir… in TIFFWriteDirectorySec()
1095 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(uint8));
1101 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1103 o=TIFFWriteDirectoryTagCheckedByteArray(tif,ndir,dir,tag,tif->tif_dir.td_samplesperpixel,m);
1147 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(int8));
1153 for (na=m, nb=0; nb<tif->tif_dir.td_samplesperpixel; na++, nb++)
1155 o=TIFFWriteDirectoryTagCheckedSbyteArray(tif,ndir,dir,tag,tif->tif_dir.td_samplesperpixel,m);
1196 m=_TIFFmalloc(tif->tif_dir.td_samplesperpixel*sizeof(uint16)); in TIFFWriteDirectoryTagShortPerSample()
[all …]
Dtif_aux.c111 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFDefaultTransferFunction()
193 *va_arg(ap, uint16 *) = td->td_samplesperpixel; in TIFFVGetFieldDefaulted()
280 if (td->td_samplesperpixel - td->td_extrasamples > 1) { in TIFFVGetFieldDefaulted()
Dtif_jpeg.c710 (tif->tif_dir.td_samplesperpixel==3)) in JPEGFixupTags()
849 if (n!=8+data->tif->tif_dir.td_samplesperpixel*3) in JPEGFixupTagsSubsamplingSec()
857 for (o=1; o<data->tif->tif_dir.td_samplesperpixel; o++) in JPEGFixupTagsSubsamplingSec()
1097 td->td_samplesperpixel : 1)) { in JPEGPreDecode()
1609 sp->cinfo.c.input_components = td->td_samplesperpixel; in JPEGSetupEncode()
1617 …OMETRIC_MINISWHITE || td->td_photometric == PHOTOMETRIC_MINISBLACK) && td->td_samplesperpixel == 1) in JPEGSetupEncode()
1619 else if (td->td_photometric == PHOTOMETRIC_RGB && td->td_samplesperpixel == 3) in JPEGSetupEncode()
1621 else if (td->td_photometric == PHOTOMETRIC_SEPARATED && td->td_samplesperpixel == 4) in JPEGSetupEncode()
1790 sp->cinfo.c.input_components = td->td_samplesperpixel; in JPEGPreEncode()
Dtif_dir.h79 uint16 td_samplesperpixel; member
Dtif_getimage.c98 colorchannels = td->td_samplesperpixel - td->td_extrasamples; in TIFFRGBAImageOK()
117 && td->td_samplesperpixel != 1 in TIFFRGBAImageOK()
123 "Samples/pixel", td->td_samplesperpixel, in TIFFRGBAImageOK()
158 if (td->td_samplesperpixel < 4) { in TIFFRGBAImageOK()
161 "Samples/pixel", td->td_samplesperpixel); in TIFFRGBAImageOK()
185 if( td->td_samplesperpixel != 3 ) in TIFFRGBAImageOK()
189 "Samples/pixel", td->td_samplesperpixel); in TIFFRGBAImageOK()
194 if( td->td_samplesperpixel != 3 || td->td_bitspersample != 8 ) in TIFFRGBAImageOK()
198 "Samples/pixel", td->td_samplesperpixel, in TIFFRGBAImageOK()
Dtif_dirread.c2721 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirEntryPersampleShort()
2727 nb=tif->tif_dir.td_samplesperpixel; in TIFFReadDirEntryPersampleShort()
2750 if (direntry->tdir_count<(uint64)tif->tif_dir.td_samplesperpixel)
2756 nb=tif->tif_dir.td_samplesperpixel;
3627 tif->tif_dir.td_stripsperimage /= tif->tif_dir.td_samplesperpixel; in TIFFReadDirectory()
3697 if (dp->tdir_count != (uint64)tif->tif_dir.td_samplesperpixel) in TIFFReadDirectory()
3882 if ( tif->tif_dir.td_bitspersample>=8 && tif->tif_dir.td_samplesperpixel==3) in TIFFReadDirectory()
3910 tif->tif_dir.td_nstrips != (uint32)tif->tif_dir.td_samplesperpixel)) { in TIFFReadDirectory()
4225 expected=(uint32)tif->tif_dir.td_samplesperpixel; in TIFFReadCustomDirectory()
4319 space /= td->td_samplesperpixel; in EstimateStripByteCounts()
Dtif_read.c192 if (sample >= td->td_samplesperpixel) { in TIFFSeek()
195 (unsigned long) sample, (unsigned long) td->td_samplesperpixel); in TIFFSeek()
Dtif_luv.c1210 switch (PACK(td->td_samplesperpixel, td->td_bitspersample, td->td_sampleformat)) { in LogL16GuessDataFmt()
1312 switch (td->td_samplesperpixel) { in LogLuvGuessDataFmt()
1526 td->td_samplesperpixel = in LogLuvClose()

12