Lines Matching refs:uint16

114 horizontalAccumulateF(uint16 *wp, int n, int stride, float *op,  in horizontalAccumulateF()
177 horizontalAccumulate12(uint16 *wp, int n, int stride, int16 *op, in horizontalAccumulate12()
184 #define CLAMP12(t) (((t) < 3071) ? (uint16) (t) : 3071) in horizontalAccumulate12()
245 horizontalAccumulate16(uint16 *wp, int n, int stride, uint16 *op, in horizontalAccumulate16()
246 uint16 *ToLinear16) in horizontalAccumulate16()
297 horizontalAccumulate11(uint16 *wp, int n, int stride, uint16 *op) in horizontalAccumulate11()
311 op[0] = (uint16)((cr += wp[0]) & mask); in horizontalAccumulate11()
312 op[1] = (uint16)((cg += wp[1]) & mask); in horizontalAccumulate11()
313 op[2] = (uint16)((cb += wp[2]) & mask); in horizontalAccumulate11()
324 op[0] = (uint16)((cr += wp[0]) & mask); in horizontalAccumulate11()
325 op[1] = (uint16)((cg += wp[1]) & mask); in horizontalAccumulate11()
326 op[2] = (uint16)((cb += wp[2]) & mask); in horizontalAccumulate11()
327 op[3] = (uint16)((ca += wp[3]) & mask); in horizontalAccumulate11()
342 horizontalAccumulate8(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8()
391 horizontalAccumulate8abgr(uint16 *wp, int n, int stride, unsigned char *op, in horizontalAccumulate8abgr()
463 uint16 *tbuf;
464 uint16 stride;
474 uint16 *ToLinear16;
476 uint16 *FromLT2;
477 uint16 *From14; /* Really for 16-bit data, but we shift down 2 */
478 uint16 *From8;
501 uint16 *ToLinear16; in PixarLogMakeTables()
503 uint16 *FromLT2; in PixarLogMakeTables()
504 uint16 *From14; /* Really for 16-bit data, but we shift down 2 */ in PixarLogMakeTables()
505 uint16 *From8; in PixarLogMakeTables()
516 FromLT2 = (uint16 *)_TIFFmalloc(lt2size*sizeof(uint16)); in PixarLogMakeTables()
517 From14 = (uint16 *)_TIFFmalloc(16384*sizeof(uint16)); in PixarLogMakeTables()
518 From8 = (uint16 *)_TIFFmalloc(256*sizeof(uint16)); in PixarLogMakeTables()
520 ToLinear16 = (uint16 *)_TIFFmalloc(TSIZEP1 * sizeof(uint16)); in PixarLogMakeTables()
553 ToLinear16[i] = (v > 65535.0) ? 65535 : (uint16)v; in PixarLogMakeTables()
562 FromLT2[i] = (uint16)j; in PixarLogMakeTables()
574 From14[i] = (uint16)j; in PixarLogMakeTables()
581 From8[i] = (uint16)j; in PixarLogMakeTables()
599 static int PixarLogEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s);
600 static int PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s);
690 td->td_rowsperstrip), sizeof(uint16)); in PixarLogSetupDecode()
692 tbuf_size = add_ms(tbuf_size, sizeof(uint16) * sp->stride); in PixarLogSetupDecode()
695 sp->tbuf = (uint16 *) _TIFFmalloc(tbuf_size); in PixarLogSetupDecode()
721 PixarLogPreDecode(TIFF* tif, uint16 s) in PixarLogPreDecode()
743 PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) in PixarLogDecode()
751 uint16 *up; in PixarLogDecode()
760 nsamples = occ / sizeof(uint16); /* XXX uint16 == 16 bits */ in PixarLogDecode()
782 sp->stream.avail_out = (uInt) (nsamples * sizeof(uint16)); in PixarLogDecode()
783 if (sp->stream.avail_out != nsamples * sizeof(uint16)) in PixarLogDecode()
848 (uint16 *)op, sp->ToLinear16); in PixarLogDecode()
849 op += llen * sizeof(uint16); in PixarLogDecode()
858 (uint16 *)op); in PixarLogDecode()
859 op += llen * sizeof(uint16); in PixarLogDecode()
897 td->td_rowsperstrip), sizeof(uint16)); in PixarLogSetupEncode()
900 sp->tbuf = (uint16 *) _TIFFmalloc(tbuf_size); in PixarLogSetupEncode()
923 PixarLogPreEncode(TIFF* tif, uint16 s) in PixarLogPreEncode()
945 horizontalDifferenceF(float *ip, int n, int stride, uint16 *wp, uint16 *FromLT2) in horizontalDifferenceF()
958 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
959 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
960 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
966 r1 = (int32) CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifferenceF()
967 g1 = (int32) CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifferenceF()
968 b1 = (int32) CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifferenceF()
971 r2 = wp[0] = (uint16) CLAMP(ip[0]); in horizontalDifferenceF()
972 g2 = wp[1] = (uint16) CLAMP(ip[1]); in horizontalDifferenceF()
973 b2 = wp[2] = (uint16) CLAMP(ip[2]); in horizontalDifferenceF()
974 a2 = wp[3] = (uint16) CLAMP(ip[3]); in horizontalDifferenceF()
980 r1 = (int32) CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifferenceF()
981 g1 = (int32) CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifferenceF()
982 b1 = (int32) CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifferenceF()
983 a1 = (int32) CLAMP(ip[3]); wp[3] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifferenceF()
986 REPEAT(stride, wp[0] = (uint16) CLAMP(ip[0]); wp++; ip++) in horizontalDifferenceF()
990 wp[0] = (uint16)(((int32)CLAMP(ip[0])-(int32)CLAMP(ip[-stride])) & mask); in horizontalDifferenceF()
1000 unsigned short *wp, uint16 *From14) in horizontalDifference16()
1018 r1 = CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference16()
1019 g1 = CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference16()
1020 b1 = CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference16()
1030 r1 = CLAMP(ip[0]); wp[0] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference16()
1031 g1 = CLAMP(ip[1]); wp[1] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference16()
1032 b1 = CLAMP(ip[2]); wp[2] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference16()
1033 a1 = CLAMP(ip[3]); wp[3] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifference16()
1040 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference16()
1051 unsigned short *wp, uint16 *From8) in horizontalDifference8()
1066 r1 = CLAMP(ip[3]); wp[3] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference8()
1067 g1 = CLAMP(ip[4]); wp[4] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference8()
1068 b1 = CLAMP(ip[5]); wp[5] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference8()
1078 r1 = CLAMP(ip[4]); wp[4] = (uint16)((r1-r2) & mask); r2 = r1; in horizontalDifference8()
1079 g1 = CLAMP(ip[5]); wp[5] = (uint16)((g1-g2) & mask); g2 = g1; in horizontalDifference8()
1080 b1 = CLAMP(ip[6]); wp[6] = (uint16)((b1-b2) & mask); b2 = b1; in horizontalDifference8()
1081 a1 = CLAMP(ip[7]); wp[7] = (uint16)((a1-a2) & mask); a2 = a1; in horizontalDifference8()
1090 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference8()
1102 PixarLogEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) in PixarLogEncode()
1121 n = cc / sizeof(uint16); /* XXX uint16 == 16 bits */ in PixarLogEncode()
1151 horizontalDifference16((uint16 *)bp, llen, in PixarLogEncode()
1153 bp += llen * sizeof(uint16); in PixarLogEncode()
1173 sp->stream.avail_in = (uInt) (n * sizeof(uint16)); in PixarLogEncode()
1174 if ((sp->stream.avail_in / sizeof(uint16)) != (uInt) n) in PixarLogEncode()