Home
last modified time | relevance | path

Searched refs:num_comp (Results 1 – 25 of 26) sorted by relevance

12

/plan9/sys/src/cmd/gs/src/
H A Dgdevppla.c78 int num_comp = tdev->color_info.num_components; in gdev_prn_set_planar() local
80 int depth = tdev->color_info.depth / num_comp; in gdev_prn_set_planar()
82 if (num_comp < 3 || num_comp > 4) in gdev_prn_set_planar()
90 planes[0].shift = depth * (num_comp - 1); in gdev_prn_set_planar()
94 return gdev_mem_set_planar(mdev, num_comp, planes); in gdev_prn_set_planar()
H A Dgdevtsep.c661 int num_comp = num_std_colorants + num_spot; in number_output_separations() local
663 if (num_comp > num_dev_comp) in number_output_separations()
664 num_comp = num_dev_comp; in number_output_separations()
666 num_comp = num_order; in number_output_separations()
667 return num_comp; in number_output_separations()
716 int num_comp = number_output_separations(num_dev_comp, num_std_colorants, in tiffsep_prn_close() local
723 for (comp_num = 0; comp_num < num_comp; comp_num++ ) { in tiffsep_prn_close()
753 build_cmyk_map(tiffsep_device * pdev, int num_comp, in build_cmyk_map() argument
758 for (comp_num = 0; comp_num < num_comp; comp_num++ ) { in build_cmyk_map()
789 int num_comp, int pixel_size, cmyk_composite_map * cmyk_map) in build_cmyk_raster_line() argument
[all …]
H A Dgsht1.c215 pdht->num_comp = 4; in gs_sethalftone_prepare()
248 uint count = pht->params.multiple.num_comp; in gs_sethalftone_prepare()
313 pdht->num_comp = 0; in gs_sethalftone_prepare()
316 pdht->num_comp = count; in gs_sethalftone_prepare()
582 pht->params.multiple.num_comp); in gs_sethalftone_try_wts()
585 pht->params.multiple.num_comp > 1) in gs_sethalftone_try_wts()
601 uint num_comp = pht->params.multiple.num_comp; in gs_sethalftone_try_wts() local
608 for (i = 0; i < num_comp; i++) { in gs_sethalftone_try_wts()
619 num_comp, in gs_sethalftone_try_wts()
625 for (i = 0; i < num_comp; i++) { in gs_sethalftone_try_wts()
[all …]
H A Dgshtx.c101 pht->params.ht_multiple.num_comp = num_comps; in gs_ht_build()
131 if (comp >= pht->params.ht_multiple.num_comp) in gs_ht_set_spot_comp()
167 if (comp >= pht->params.ht_multiple.num_comp) in gs_ht_set_threshold_comp()
218 int num_comps = pht->params.ht_multiple.num_comp; in check_ht()
274 int num_comps = pht->params.ht_multiple.num_comp; in alloc_ht_order()
277 pht->params.ht_multiple.num_comp, in alloc_ht_order()
412 int num_comps = pht->params.ht_multiple.num_comp; in gs_ht_install()
467 dev_ht.num_comp = num_comps; in gs_ht_install()
569 if (component_index >= pht->params.ht_multiple.num_comp) in gs_ht_set_mask_comp()
H A Dgxwts.c433 int num_comp = pdevc->colors.wts.num_components; in gx_dc_wts_fill_rectangle_4() local
448 for (i = 0; i < num_comp; i++) { in gx_dc_wts_fill_rectangle_4()
472 for (i = 0; i < num_comp; i++) { in gx_dc_wts_fill_rectangle_4()
485 int num_comp = pdevc->colors.wts.num_components; in gx_dc_wts_fill_rectangle() local
487 if (num_comp == 1) in gx_dc_wts_fill_rectangle()
489 else if (num_comp <= 4) in gx_dc_wts_fill_rectangle()
500 uint num_comp = pdevc1->colors.wts.num_components; in gx_dc_wts_equal() local
505 num_comp != pdevc2->colors.wts.num_components in gx_dc_wts_equal()
511 num_comp * sizeof(pdevc1->colors.wts.levels[0])); in gx_dc_wts_equal()
H A Dgxdevndi.c102 int num_comp = pdht->num_comp; in gx_render_device_DeviceN_wts() local
104 for (i = 0; i < num_comp; i++) { in gx_render_device_DeviceN_wts()
116 for (i = 0; i < num_comp; i++) { in gx_render_device_DeviceN_wts()
123 pdevc->colors.wts.num_components = num_comp; in gx_render_device_DeviceN_wts()
H A Dgdevp14.c442 int num_comp = n_chan - 1; in pdf14_pop_transparency_group() local
501 for (i = 0; i < num_comp; ++i) { in pdf14_pop_transparency_group()
505 tos_pixel[num_comp] = tos_ptr[x + num_comp * tos_planestride]; in pdf14_pop_transparency_group()
506 nos_pixel[num_comp] = nos_ptr[x + num_comp * nos_planestride]; in pdf14_pop_transparency_group()
510 int mask_alpha = mask_ptr[x + num_comp * mask_planestride]; in pdf14_pop_transparency_group()
573 for (i = 0; i < num_comp; ++i) in pdf14_pop_transparency_group()
575 nos_ptr[x + num_comp * nos_planestride] = nos_pixel[num_comp]; in pdf14_pop_transparency_group()
810 int num_comp = buf->n_chan - 1; in pdf14_put_image() local
833 switch (num_comp) { in pdf14_put_image()
867 linebuf = gs_alloc_bytes(pdev->memory, width * num_comp, "pdf14_put_image"); in pdf14_put_image()
[all …]
H A Dgxclrast.c510 uint num_comp; in clist_playback_band() local
513 cmd_getw(num_comp, cbp); in clist_playback_band()
515 halftone_type, num_comp); in clist_playback_band()
518 num_comp, mem); in clist_playback_band()
2311 cmd_resize_halftone(gx_device_halftone **ppdht, uint num_comp, in cmd_resize_halftone() argument
2319 if (num_comp != pdht->num_comp) { in cmd_resize_halftone()
2326 if (num_comp < pdht->num_comp) { in cmd_resize_halftone()
2330 for (i = pdht->num_comp; i-- > num_comp;) in cmd_resize_halftone()
2333 if (num_comp == 0) { in cmd_resize_halftone()
2337 pcomp = gs_resize_object(mem, pdht->components, num_comp, in cmd_resize_halftone()
[all …]
H A Dgdevpdfv.c720 int num_comp; in pdf_put_mesh_shading() local
729 num_comp = 1; in pdf_put_mesh_shading()
732 num_comp = gs_color_space_num_components(pcs); in pdf_put_mesh_shading()
755 for (i = 0; i < num_comp; ++i) { in pdf_put_mesh_shading()
782 4 + num_comp * 2); in pdf_put_mesh_shading()
804 data_params.num_components = num_comp; in pdf_put_mesh_shading()
822 data_params.num_components = num_comp; in pdf_put_mesh_shading()
839 data_params.num_components = num_comp * (flag == 0 ? 4 : 2); in pdf_put_mesh_shading()
858 data_params.num_components = num_comp * (flag == 0 ? 4 : 2); in pdf_put_mesh_shading()
H A Dgsht.c610 for (i = 0; i < pdht->num_comp; ++i) in gx_device_halftone_release()
620 pdht->num_comp = 0; in gx_device_halftone_release()
981 dht.num_comp = dht.num_dev_comp = num_comps; in gx_imager_dev_ht_install()
997 int input_ncomps = pdht->num_comp; in gx_imager_dev_ht_install()
1171 int input_ncomps = pdht->num_comp; in gx_imager_dev_ht_install()
1308 for (i = 0; i < pdht->num_comp; i++) { in gx_imager_set_effective_xfer()
H A Dgdevpdfg.c870 for (i = 0; i < pdht->num_comp ; ++i) { in pdf_write_colorscreen_halftone()
882 pdht->num_comp > 3 ? ht_ids[3] : ht_ids[1]); in pdf_write_colorscreen_halftone()
886 if (pdht->num_comp > 3) in pdf_write_colorscreen_halftone()
981 for (j = 0; j < pmht->num_comp; j++) in pdf_get_halftone_component_index()
984 if (j == pmht->num_comp) { in pdf_get_halftone_component_index()
986 for (j = 0; j < pmht->num_comp; j++) in pdf_get_halftone_component_index()
989 if (j == pmht->num_comp) in pdf_get_halftone_component_index()
1005 ids = (long *)gs_alloc_byte_array(mem, pmht->num_comp, sizeof(long), in pdf_write_multiple_halftone()
1009 for (i = 0; i < pdht->num_comp; ++i) { in pdf_write_multiple_halftone()
1050 for (i = 0; i < pdht->num_comp; ++i) { in pdf_write_multiple_halftone()
H A Dgxht.h168 uint num_comp; member
H A Dgscdevn.c426 int num_comp = pcs->params.device_n.num_components; in check_DeviceN_component_names() local
438 pcolor_component_map->num_components = num_comp; in check_DeviceN_component_names()
454 for(i = 0; i < num_comp; i++ ) { in check_DeviceN_component_names()
H A Dgdevsgi.c15 #define sgi_prn_device(procs, dev_name, num_comp, depth, max_gray, max_color, print_page)\ argument
19 num_comp, depth, max_gray, max_color, max_gray+1, max_color+1, \
H A Dgdevccr.c86 #define ccr_prn_device(procs, dev_name, margin, num_comp, depth, max_gray, max_rgb, print_page)\ argument
90 num_comp, depth, max_gray, max_rgb, max_gray + 1, max_rgb + 1,\
H A Dgxdht.h311 uint num_comp; /* Number of components in the halftone */ member
H A Dgdevmgr.c46 #define mgr_prn_device(procs, dev_name, num_comp, depth, mgr_depth,\ argument
51 num_comp, depth, max_gray, max_rgb, dither_gray, dither_rgb,\
H A Ddxmain.c975 int num_comp = 0; in display_sync() local
982 num_comp = j+1; in display_sync()
996 for (j=0; j<num_comp; j++) { in display_sync()
1003 for (j=0; j<num_comp; j++) { in display_sync()
H A Dzshade.c168 int num_comp = gs_color_space_num_components(pcs_orig); in build_shading() local
171 if (num_comp < 0) /* Pattern color space */ in build_shading()
H A Dgdevpdfc.c878 int num_comp = gs_color_space_num_components(pcs); in pdf_color_space_named() local
880 gs_alloc_byte_array(pdev->pdf_memory, num_comp, in pdf_color_space_named()
887 memcpy(copy_ranges, ranges, num_comp * sizeof(gs_range_t)); in pdf_color_space_named()
H A Dgxcht.c105 uint num_comp = pdevc1->colors.colored.num_components; in gx_dc_ht_colored_equal() local
112 num_comp != pdevc2->colors.colored.num_components in gx_dc_ht_colored_equal()
118 num_comp * sizeof(pdevc1->colors.colored.c_base[0])) && in gx_dc_ht_colored_equal()
121 num_comp * sizeof(pdevc1->colors.colored.c_level[0])); in gx_dc_ht_colored_equal()
H A Dgxdhtserial.c598 num_dev_comps = dht.num_dev_comp = dht.num_comp = *data++; in gx_ht_read_and_install()
H A Dgdevdsp.c1396 int num_comp = num_std_colorants + num_spot; in display_set_separations() local
1405 for (sep_num = 0; sep_num < num_comp; sep_num++) { in display_set_separations()
1411 for (comp_num = 0; comp_num < num_comp; comp_num++) { in display_set_separations()
H A Dzht2.c231 pht->params.multiple.num_comp = j; in zsethalftone5()
H A Dgdevpbm.c95 #define pbm_prn_device(procs, dev_name, magic, is_raw, num_comp, depth, max_gray, max_rgb, optimize… argument
99 num_comp, depth, max_gray, max_rgb, max_gray + 1, max_rgb + 1,\

12