| /libtiff-4.0.7/contrib/pds/ |
| H A D | tif_pdsdirread.c | 127 long v; in TIFFReadPrivateDataSubDirectory() local 455 float v; in TIFFFetchRational() local 458 !cvtRational(tif, dir, l[0], l[1], &v) ? 1.0f : v); in TIFFFetchRational() 477 float v; in TIFFFetchFloat() 488 return (v); in TIFFFetchFloat() 551 uint16 v[2]; in TIFFFetchShortPair() local 565 TIFFSetField(tif, dir->tdir_tag, v[0], v[1]); in TIFFFetchShortPair() 852 { double v; in TIFFFetchNormalSubTag() local 899 if (v[i] != v[0]) { in TIFFFetchPerSampleShorts() 905 *pl = v[0]; in TIFFFetchPerSampleShorts() [all …]
|
| H A D | tif_pdsdirwrite.c | 484 if (v > 0xffffL) { in TIFFSetupShortLong() 486 dir->tdir_offset = v; in TIFFSetupShortLong() 517 uint16 buf[10], v; in TIFFWritePerSampleShorts() local 525 w[i] = v; in TIFFWritePerSampleShorts() 541 double buf[10], v; in TIFFWritePerSampleAnys() local 550 w[i] = v; in TIFFWritePerSampleAnys() 565 uint16 v[2]; in TIFFSetupShortPair() local 567 TIFFGetField(tif, tag, &v[0], &v[1]); in TIFFSetupShortPair() 670 float fv = v[i]; in TIFFWriteRationalArray() 775 bp[i] = (int16) v[i]; in TIFFWriteAnyArray() [all …]
|
| /libtiff-4.0.7/libtiff/ |
| H A D | tif_dir.c | 164 uint32 v32, i, v; in _TIFFVSetField() local 244 if (v != FILLORDER_LSB2MSB && v != FILLORDER_MSB2LSB) in _TIFFVSetField() 250 if (v < ORIENTATION_TOPLEFT || ORIENTATION_LEFTBOT < v) in _TIFFVSetField() 257 if (v == 0) in _TIFFVSetField() 325 if (v != PLANARCONFIG_CONTIG && v != PLANARCONFIG_SEPARATE) in _TIFFVSetField() 337 if (v < RESUNIT_NONE || RESUNIT_CENTIMETER < v) in _TIFFVSetField() 396 switch (v) { in _TIFFVSetField() 407 if (v < SAMPLEFORMAT_UINT || SAMPLEFORMAT_COMPLEXIEEEFP < v) in _TIFFVSetField() 457 v = checkInkNamesString(tif, v, s); in _TIFFVSetField() 458 status = v > 0; in _TIFFVSetField() [all …]
|
| H A D | tif_luv.c | 920 if (v < UV_VSTART) in uv_encode() 987 y = 4.*v * s; in LogLuv24toXYZ() 1001 double u, v, s; in LogLuv24fromXYZ() local 1008 v = V_NEU; in LogLuv24fromXYZ() 1011 v = 9.*XYZ[1] / s; in LogLuv24fromXYZ() 1040 double u, v; in Luv24toLuv48() local 1045 v = V_NEU; in Luv24toLuv48() 1125 y = 4.*v * s; in LogLuv32toXYZ() 1139 double u, v, s; in LogLuv32fromXYZ() local 1146 v = V_NEU; in LogLuv32fromXYZ() [all …]
|
| H A D | tif_next.c | 35 #define SETPIXEL(op, v) { \ argument 37 case 0: op[0] = (unsigned char) ((v) << 6); break; \ 38 case 1: op[0] |= (v) << 4; break; \ 39 case 2: op[0] |= (v) << 2; break; \ 40 case 3: *op++ |= (v); op_offset++; break; \
|
| H A D | tif_vms.c | 286 _TIFFmemset(tdata_t p, int v, tsize_t c) in _TIFFmemset() argument 288 memset(p, v, (size_t) c); in _TIFFmemset() 534 float_t t; int v = (fp)->ieee.exp; \ 535 if (v) v += -127 + 129; /* alter bias of exponent */\ 536 t.native.exp = v; /* implicit truncation of exponent */\ 538 v = (fp)->ieee.mant; \ 539 t.native.mant1 = v >> 16; \ 540 t.native.mant2 = v;\
|
| H A D | tif_pixarlog.c | 499 double b, c, linstep, v; in PixarLogMakeTables() local 542 v = i * linstep; in PixarLogMakeTables() 543 ToLinearF[j++] = (float)v; in PixarLogMakeTables() 552 v = ToLinearF[i]*65535.0 + 0.5; in PixarLogMakeTables() 553 ToLinear16[i] = (v > 65535.0) ? 65535 : (uint16)v; in PixarLogMakeTables() 554 v = ToLinearF[i]*255.0 + 0.5; in PixarLogMakeTables() 555 ToLinear8[i] = (v > 255.0) ? 255 : (unsigned char)v; in PixarLogMakeTables() 950 #define CLAMP(v) ( (v<(float)0.) ? 0 \ in horizontalDifferenceF() argument 951 : (v<(float)2.) ? FromLT2[(int)(v*fltsize)] \ in horizontalDifferenceF() 1006 #define CLAMP(v) From14[(v) >> 2] in horizontalDifference16() argument [all …]
|
| H A D | tiffiop.h | 260 #define TIFFSafeMultiply(t,v,m) ((((t)(m) != (t)0) && (((t)(((v)*(m))/(m))) == (t)(v))) ? (t)((v)*(… argument
|
| H A D | tif_thunder.c | 59 #define SETPIXEL(op, v) { \ argument 60 lastpixel = (v) & 0xf; \
|
| H A D | tif_unix.c | 332 _TIFFmemset(void* p, int v, tmsize_t c) in _TIFFmemset() argument 334 memset(p, v, (size_t) c); in _TIFFmemset()
|
| H A D | tif_win32.c | 376 _TIFFmemset(void* p, int v, tmsize_t c) in _TIFFmemset() argument 378 memset(p, v, (size_t) c); in _TIFFmemset()
|
| /libtiff-4.0.7/tools/ |
| H A D | tiffdither.c | 47 #define CopyField(tag, v) \ argument 48 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v) 112 register int v; in fsdither() local 115 v = *thisptr++; in fsdither() 116 if (v < 0) in fsdither() 117 v = 0; in fsdither() 118 else if (v > 255) in fsdither() 119 v = 255; in fsdither() 120 if (v > threshold) { in fsdither() 122 v -= 255; in fsdither() [all …]
|
| H A D | tiff2bw.c | 59 register int v, red = RED, green = GREEN, blue = BLUE; in compresscontig() local 62 v = red*(*rgb++); in compresscontig() 63 v += green*(*rgb++); in compresscontig() 64 v += blue*(*rgb++); in compresscontig() 65 *out++ = v>>8; in compresscontig() 97 v = red*rmap[ix]; in compresspalette() 98 v += green*gmap[ix]; in compresspalette() 99 v += blue*bmap[ix]; in compresspalette() 100 *out++ = v>>8; in compresspalette() 317 #define CopyField(tag, v) \ argument [all …]
|
| H A D | rgb2ycbcr.c | 45 #define CopyField(tag, v) \ argument 46 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v) 153 float *v = (float *)_TIFFmalloc(256 * sizeof (float)); in setupLuma() local 156 v[i] = c * i; in setupLuma() 157 return (v); in setupLuma()
|
| H A D | tiff2rgba.c | 45 #define CopyField(tag, v) \ argument 46 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v) 492 uint16 v[1]; in tiffcvt() local 514 v[0] = EXTRASAMPLE_ASSOCALPHA; in tiffcvt() 515 TIFFSetField(out, TIFFTAG_EXTRASAMPLES, 1, v); in tiffcvt()
|
| H A D | pal2rgb.c | 60 #define CopyField(tag, v) \ argument 61 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v) 269 #define CopyField(tag, v) \ argument 270 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v)
|
| H A D | thumbnail.c | 136 #define CopyField(tag, v) \ argument 137 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v) 413 static int clamp(float v, int low, int high) in clamp() argument 414 { return (v < low ? low : v > high ? high : (int)v); } in clamp()
|
| H A D | tiffsplit.c | 39 #define CopyField(tag, v) \ argument 40 if (TIFFGetField(in, tag, &v)) TIFFSetField(out, tag, v)
|
| /libtiff-4.0.7/archive/tools/ |
| H A D | ycbcr.c | 24 static int abs(int v) { return (v < 0 ? -v : v); } in abs() argument 25 static double pct(int v,double range) { return (v*100. / range); } in pct() argument 88 float *v = (float *)_TIFFmalloc(256 * sizeof (float)); in setupLuma() local 91 v[i] = c * i; in setupLuma() 92 return (v); in setupLuma()
|
| H A D | sgisv.c | 175 uint32 v = ss[x]; in svRGBSeparate() local 176 rp[x] = v; in svRGBSeparate() 177 gp[x] = v >> 8; in svRGBSeparate() 178 bp[x] = v >> 16; in svRGBSeparate() 212 uint32 v = ss[x]; in svRGBContig() local 213 pp[0] = v; in svRGBContig() 214 pp[1] = v >> 8; in svRGBContig() 215 pp[2] = v >> 16; in svRGBContig()
|
| H A D | sgi2tiff.c | 132 uint16 v[1]; in main() local 133 v[0] = EXTRASAMPLE_UNASSALPHA; in main() 134 TIFFSetField(out, TIFFTAG_EXTRASAMPLES, 1, v); in main()
|
| /libtiff-4.0.7/test/images/ |
| H A D | minisblack-1c-8b.pgm | 4 …v}���˵�vkd]at������dDS^[YZ\\[^]_`aa``aa^ab`Xh����������ü��d}}�����ש���������x@��������������������… 8 …nKLI[ri[WWURSTPNLNLJc{}���vQTSYWZ]\_toZYY[[[\]\YY\\]_baadabcd``a``__a_a`acd\v���������������������… 11 …Y\\\]]]]]^babcccbccca^_\_a_aabc`b]������������������������"4Ml�������v��������j�����������o… 22 …`y�������������ƶ�����ɘ��������to�ƽ�����������nWF+k��������cASQORIZ�[u{w|���v~r���������ZMUW[]][\^… 28 …t����ˮvfbWMLX[ZXWWZ]_`ffeiijiga^_bdb_aq��Ͱ�iaeN2>DL`jpu|���������®����ۗ=^mx~������Udk���{v|��T 57 …KNMIEHEC=9<AHE>558668/9�����������������������������#5������������������`1v������m�������Оi~���… 58 …LMIEJIH><<AKF;899662)C����������������������������xW�������������������^ASespd������Ƴ����v���zj{ 78 0=?EHFGMOQRSTSXXVUWYUPHB<!)0356+%;?.#)'v���������������������������E"FJNZjuuonuuk… 80 …/<EGLJKMNRQTTRUSSTSOMF?;+/-+#$#-(4O-0RB1/���������������������������v/'FKOScspegsvk… 99 …�����������������U%7?RZZUZeori^Xcinv|~rlmlou}}|sf_X^_X^bdkhiqw|�����������������v [all …]
|
| /libtiff-4.0.7/test/ |
| H A D | raw_decode.c | 162 unsigned short h, v; in main() local 189 status = TIFFGetField(tif,TIFFTAG_YCBCRSUBSAMPLING, &h, &v); in main() 190 if ( status == 0 || h != 2 || v != 2) { in main()
|
| /libtiff-4.0.7/contrib/tags/ |
| H A D | xtif_dir.c | 95 int i=0, v=0; in _XTIFFVSetField() local 141 TIFFErrorExt(tif->tif_clientdata, tif->tif_name, "%d: Bad value for \"%s\"", v, in _XTIFFVSetField()
|
| /libtiff-4.0.7/ |
| H A D | TODO | 1 # $Header: /cvs/maptools/cvsroot/libtiff/TODO,v 1.6 2002-10-10 05:28:43 warmerda Exp $
|