Searched refs:cshift (Results 1 – 6 of 6) sorted by relevance
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gdevbit.c | 172 gx_color_index cshift = color; in bit_map_color_rgb() local 174 cv[2] = cvalue(cshift & mask); in bit_map_color_rgb() 175 cshift >>= bpc; in bit_map_color_rgb() 176 cv[1] = cvalue(cshift & mask); in bit_map_color_rgb() 177 cv[0] = cvalue(cshift >> bpc); in bit_map_color_rgb() 183 gx_color_index cshift = color; in bit_map_color_rgb() local 186 k = cshift & mask; in bit_map_color_rgb() 187 cshift >>= bpc; in bit_map_color_rgb() 188 y = cshift & mask; in bit_map_color_rgb() 189 cshift >>= bpc; in bit_map_color_rgb() [all …]
|
| H A D | spdiff.c | 156 #define ENCODE_UNALIGNED_LOOP(shift, cshift, de)\ in s_PDiff_process() argument 162 t = (s0 << (cshift)) | (ss->prev[ci] >> (shift));\ in s_PDiff_process() 173 int cshift = 8 - colors; in s_PDiff_process() local 175 ENCODE1_LOOP(t ^ ((s0 << cshift) | (t >> colors))); in s_PDiff_process() 178 int cshift = 8 - shift; in s_PDiff_process() local 180 ENCODE_UNALIGNED_LOOP(shift, cshift, *p ^ t); in s_PDiff_process() 207 #define DECODE_UNALIGNED_LOOP(shift, cshift, de)\ in s_PDiff_process() argument 213 t = (s0 << (cshift)) | (ss->prev[ci] >> (shift));\ in s_PDiff_process() 222 int cshift = 8 - colors; in s_PDiff_process() local 224 DECODE1_LOOP(*p ^ (s0 << cshift), t ^ (t >> colors)); in s_PDiff_process() [all …]
|
| H A D | gdevm1.c | 112 # define CFETCH_RIGHT(cptr, shift, cshift)\ argument 114 # define CFETCH_LEFT(cptr, shift, cshift)\ argument 133 # define CFETCH_RIGHT(cptr, shift, cshift)\ argument 136 (CCONT(cptr, 0) << (cshift)) :\ 137 ((chunk)*(const byte *)(cptr) << (cshift)) & 0xff00) 138 # define CFETCH_LEFT(cptr, shift, cshift)\ argument 141 (CCONT(cptr, 0) >> (cshift)) :\ 142 ((CCONT(cptr, 0) & 0xff00) >> (cshift)) & 0xff)
|
| H A D | gdevpbm.c | 411 gx_color_index cshift = color; in pkm_map_color_rgb() local 413 uint k = cshift & mask; in pkm_map_color_rgb() 414 uint y = (cshift >>= bpc) & mask; in pkm_map_color_rgb() 415 uint m = (cshift >>= bpc) & mask; in pkm_map_color_rgb() 416 uint c = cshift >> bpc; in pkm_map_color_rgb()
|
| H A D | gdevps.c | 473 int cshift = 8 - shift; in psw_put_bits() local 476 stream_putc(s, (byte)((*src << shift) + (src[1] >> cshift))); in psw_put_bits()
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | wrgif.c | 224 int cshift = dinfo->cinfo->data_precision - 8; in emit_header() local 265 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); in emit_header() 266 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); in emit_header() 267 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); in emit_header() 270 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); in emit_header()
|