Home
last modified time | relevance | path

Searched refs:max_value (Results 1 – 14 of 14) sorted by relevance

/plan9/sys/src/cmd/gs/src/
H A Dgdev4693.c44 ulong max_value = (1 << bitspercolor) - 1; in gdev_t4693d_map_rgb_color() local
51 max_value = (1 << bitspercolor) - 1; in gdev_t4693d_map_rgb_color()
54 return ((r*max_value/gx_max_color_value) << (bitspercolor*2)) + in gdev_t4693d_map_rgb_color()
55 ((g*max_value/gx_max_color_value) << bitspercolor) + in gdev_t4693d_map_rgb_color()
56 (b*max_value/gx_max_color_value); in gdev_t4693d_map_rgb_color()
63 ulong max_value = (1 << bitspercolor) - 1; in gdev_t4693d_map_color_rgb() local
67 max_value = (1 << bitspercolor) - 1; in gdev_t4693d_map_color_rgb()
70 prgb[0] = (color >> (bitspercolor*2)) * gx_max_color_value / max_value; in gdev_t4693d_map_color_rgb()
71 prgb[1] = ((color >> bitspercolor) & max_value) * gx_max_color_value / max_value; in gdev_t4693d_map_color_rgb()
72 prgb[2] = (color & max_value) * gx_max_color_value / max_value; in gdev_t4693d_map_color_rgb()
H A Dgxdevndi.c143 uint max_value[GS_CLIENT_COLOR_MAX_COMPONENTS]; in gx_render_device_DeviceN() local
156 max_value[i] = (dev->color_info.gray_index == i) ? in gx_render_device_DeviceN()
165 unsigned long nshades = hsize * max_value[i] + 1; in gx_render_device_DeviceN()
169 if (max_value[i] < MIN_CONTONE_LEVELS) in gx_render_device_DeviceN()
188 vcolor[i] = fractional_color(int_color[i], max_value[i]); in gx_render_device_DeviceN()
219 uint max_value[GS_CLIENT_COLOR_MAX_COMPONENTS]; in gx_devn_reduce_colored_halftone() local
226 max_value[i] = (dev->color_info.gray_index == i) ? in gx_devn_reduce_colored_halftone()
230 v[i] = fractional_color(b[i], max_value[i]); in gx_devn_reduce_colored_halftone()
268 v[i] = fractional_color(bi, max_value[i]); in gx_devn_reduce_colored_halftone()
H A Dgdevpbm.c395 uint max_value = pdev->color_info.max_color; in pkm_map_cmyk_color() local
396 uint cc = cv[0] * max_value / gx_max_color_value; in pkm_map_cmyk_color()
397 uint mc = cv[1] * max_value / gx_max_color_value; in pkm_map_cmyk_color()
398 uint yc = cv[2] * max_value / gx_max_color_value; in pkm_map_cmyk_color()
399 uint kc = cv[3] * max_value / gx_max_color_value; in pkm_map_cmyk_color()
417 uint max_value = dev->color_info.max_color; in pkm_map_color_rgb() local
418 uint not_k = max_value - k; in pkm_map_color_rgb()
421 ((gx_color_value)((ulong)(c) * gx_max_color_value / max_value)) in pkm_map_color_rgb()
423 rgb[0] = CVALUE((max_value - c) * not_k / max_value); in pkm_map_color_rgb()
424 rgb[1] = CVALUE((max_value - m) * not_k / max_value); in pkm_map_color_rgb()
[all …]
H A Dgscpixel.c80 ulong max_value = (1L << pcs->params.pixel.depth) - 1; in gx_restrict_DevicePixel() local
82 pcc->paint.values[0] = (pixel < 0 ? 0 : min(pixel, max_value)); in gx_restrict_DevicePixel()
H A Dgdevsgi.c37 ulong max_value = (1 << bitspercolor) - 1; in sgi_map_rgb_color() local
41 return ((red*max_value / gx_max_color_value) << (bitspercolor * 2)) + in sgi_map_rgb_color()
42 ((green*max_value / gx_max_color_value) << bitspercolor) + in sgi_map_rgb_color()
43 (blue*max_value / gx_max_color_value); in sgi_map_rgb_color()
H A Dgxshade.c168 double max_value = (double)(uint) ((1 << num_bits) - 1); in cs_next_packed_decoded() local
170 double max_value = (double)(uint) in cs_next_packed_decoded() local
177 (decode == 0 ? value / max_value : in cs_next_packed_decoded()
178 decode[0] + value * (decode[1] - decode[0]) / max_value); in cs_next_packed_decoded()
H A Dgximage4.c81 uint max_value = (1 << pim->BitsPerComponent) - 1; in gx_begin_image4() local
93 if ((c0 | c1) > max_value) { in gx_begin_image4()
H A Dgxdevice.h180 #define std_device_color_full_body(dtype, pprocs, dname, w, h, xdpi, ydpi, depth, max_value, dither… argument
182 dci_color(depth, max_value, dither),\
187 #define std_device_color_body(dtype, pprocs, dname, w, h, xdpi, ydpi, depth, max_value, dither)\ argument
190 depth, max_value, dither,\
193 #define std_device_color_stype_body(dtype, pprocs, dname, stype, w, h, xdpi, ydpi, depth, max_value argument
195 dci_color(depth, max_value, dither),\
H A Dzdpnext.c309 gx_color_value max_value = in zsizeimageparams() local
319 if (max_value <= ((ulong) 1 << sizes[i]) - 1) in zsizeimageparams()
H A Dgdevcgm.c67 #define cgm_device(dname, depth, max_value, dither, map_rgb_color, map_color_rgb)\ argument
69 850, 1100, 100, 100, depth, max_value, dither),\
H A Dzusparam.c56 long min_value, max_value; member
606 if (val < pdef->min_value || val > pdef->max_value) in setparams()
H A Dgdevijs.c165 int *pval, int min_value, int max_value, bool only_when_closed);
875 int min_value, int max_value, bool only_when_closed) in gsijs_read_int() argument
886 if ((new_value >= min_value) && (new_value <= max_value)) { in gsijs_read_int()
H A Diutil.c804 int_param(const ref * op, int max_value, int *pparam) in int_param() argument
806 check_int_leu(*op, max_value); in int_param()
H A Dgxclimag.c460 int max_value = (1 << bits_per_pixel) - 1; in clist_begin_typed_image() local
467 dmax != (indexed ? max_value : 1) in clist_begin_typed_image()
477 double denom = (indexed ? 1 : max_value); in clist_begin_typed_image()
479 for (i = 0; i <= max_value; ++i) { in clist_begin_typed_image()