| /plan9/sys/src/cmd/gs/src/ |
| H A D | gscolor.c | 55 pcc->paint.values[0] = 0.0; in gx_init_paint_1() 60 pcc->paint.values[2] = 0.0; in gx_init_paint_3() 61 pcc->paint.values[1] = 0.0; in gx_init_paint_3() 62 pcc->paint.values[0] = 0.0; in gx_init_paint_3() 68 pcc->paint.values[3] = 1.0; in gx_init_paint_4() 79 pcc->paint.values[0] = FORCE_UNIT(pcc->paint.values[0]); in gx_restrict01_paint_1() 84 pcc->paint.values[2] = FORCE_UNIT(pcc->paint.values[2]); in gx_restrict01_paint_3() 85 pcc->paint.values[1] = FORCE_UNIT(pcc->paint.values[1]); in gx_restrict01_paint_3() 86 pcc->paint.values[0] = FORCE_UNIT(pcc->paint.values[0]); in gx_restrict01_paint_3() 91 pcc->paint.values[3] = FORCE_UNIT(pcc->paint.values[3]); in gx_restrict01_paint_4() [all …]
|
| H A D | gscrdp.c | 42 const float *values, int size, gs_memory_t * mem) in write_floats() argument 50 memcpy(p, values, size * sizeof(float)); in write_floats() 61 float values[3]; in write_vector3() local 63 store_vector3(values, pvec); in write_vector3() 64 return write_floats(plist, key, values, 3, mem); in write_vector3() 70 float values[9]; in write_matrix3() local 74 store_vector3(values, &pmat->cu); in write_matrix3() 75 store_vector3(values + 3, &pmat->cv); in write_matrix3() 76 store_vector3(values + 6, &pmat->cw); in write_matrix3() 77 return write_floats(plist, key, values, 9, mem); in write_matrix3() [all …]
|
| H A D | gscolor2.c | 103 lookup_indexed_map(const gs_indexed_params * params, int index, float *values) in lookup_indexed_map() argument 106 const float *pv = ¶ms->lookup.map->values[index * m]; in lookup_indexed_map() 108 memcpy(values, pv, sizeof(*values) * m); in lookup_indexed_map() 116 gs_free_object(pmem, ((gs_indexed_map *) pmap)->values, cname); in free_indexed_map() 132 pimap->values = in alloc_indexed_map() 135 if (pimap->values == 0) { in alloc_indexed_map() 140 pimap->values = 0; in alloc_indexed_map() 268 map_palette_entry_1(const gs_indexed_params * params, int indx, float *values) in map_palette_entry_1() argument 270 values[0] = params->lookup.map->values[indx]; in map_palette_entry_1() 275 map_palette_entry_3(const gs_indexed_params * params, int indx, float *values) in map_palette_entry_3() argument [all …]
|
| H A D | gsciemap.c | 44 (&(pcache)->vecs.values[(int)LOOKUP_INDEX(vin, pcache, 0)]) 108 pc->paint.values[0], pc->paint.values[1], in gx_concretize_CIEDEFG() 109 pc->paint.values[2], pc->paint.values[3]); in gx_concretize_CIEDEFG() 119 double v0 = pc->paint.values[i]; in gx_concretize_CIEDEFG() 128 double v = pcie->caches_defg.DecodeDEFG[i].floats.values[vi]; in gx_concretize_CIEDEFG() 132 (pcie->caches_defg.DecodeDEFG[i].floats.values[vi + 1] - v); in gx_concretize_CIEDEFG() 167 pc->paint.values[0], pc->paint.values[1], in gx_concretize_CIEDEF() 168 pc->paint.values[2]); in gx_concretize_CIEDEF() 178 double v0 = pc->paint.values[i]; in gx_concretize_CIEDEF() 187 double v = pcie->caches_def.DecodeDEF[i].floats.values[vi]; in gx_concretize_CIEDEF() [all …]
|
| H A D | zcharx.c | 99 float *values; in moveshow() local 107 values = (float *)ialloc_byte_array(size, sizeof(float), "moveshow"); in moveshow() 108 if (values == 0) in moveshow() 115 values[i] = (float)value.value.intval; break; in moveshow() 117 values[i] = value.value.realval; break; in moveshow() 122 ifree_object(values, "moveshow"); in moveshow() 127 (have_x ? values : (float *)0), in moveshow() 128 (have_y ? values : (float *)0), in moveshow() 131 ifree_object(values, "moveshow"); in moveshow()
|
| H A D | gxi12bit.c | 113 penum->mask_color.values[i] = in gs_image_class_2_fracs() 114 bits2frac(penum->mask_color.values[i], 12); in gs_image_class_2_fracs() 153 if (*v < penum->mask_color.values[i] || in mask_color12_matches() 154 *v > penum->mask_color.values[i + 1] in mask_color12_matches() 240 cc.paint.values[0], cc.paint.values[1], in image_render_frac() 241 cc.paint.values[2], cc.paint.values[3]); in image_render_frac() 243 cc.paint.values[3]); in image_render_frac() 265 cc.paint.values[0], cc.paint.values[1], in image_render_frac() 266 cc.paint.values[2]); in image_render_frac() 284 cc.paint.values[0]); in image_render_frac() [all …]
|
| H A D | zdscpars.c | 194 int values[4]; in dsc_put_bounding_box() local 199 values[0] = pbbox->llx; in dsc_put_bounding_box() 200 values[1] = pbbox->lly; in dsc_put_bounding_box() 201 values[2] = pbbox->urx; in dsc_put_bounding_box() 202 values[3] = pbbox->ury; in dsc_put_bounding_box() 203 va.data = values; in dsc_put_bounding_box() 321 float values[4]; in dsc_viewing_orientation() local 335 values[0] = pctm->xx; in dsc_viewing_orientation() 336 values[1] = pctm->xy; in dsc_viewing_orientation() 337 values[2] = pctm->yx; in dsc_viewing_orientation() [all …]
|
| H A D | zfont1.c | 46 find_zone_height(float *pmax_height, int count, const float *values) in find_zone_height() argument 52 if ((zone_height = values[i + 1] - values[i]) > *pmax_height) in find_zone_height() 117 &pdata1->BlueValues.values[0], NULL)) < 0 || in charstring_font_params() 122 &pdata1->FamilyBlues.values[0], NULL)) < 0 || in charstring_font_params() 126 &pdata1->FamilyOtherBlues.values[0], NULL)) < 0 || in charstring_font_params() 137 &pdata1->OtherBlues.values[0], NULL)) < 0 || in charstring_font_params() 142 &pdata1->StdHW.values[0], NULL, in charstring_font_params() 146 &pdata1->StdVW.values[0], NULL, in charstring_font_params() 150 &pdata1->StemSnapH.values[0], NULL)) < 0 || in charstring_font_params() 153 &pdata1->StemSnapV.values[0], NULL)) < 0 || in charstring_font_params() [all …]
|
| H A D | gxi16bit.c | 96 if (*v < penum->mask_color.values[i] || in mask_color16_matches() 97 *v > penum->mask_color.values[i + 1] in mask_color16_matches() 183 cc.paint.values[0], cc.paint.values[1], in image_render_frac() 184 cc.paint.values[2], cc.paint.values[3]); in image_render_frac() 186 cc.paint.values[3]); in image_render_frac() 208 cc.paint.values[0], cc.paint.values[1], in image_render_frac() 209 cc.paint.values[2]); in image_render_frac() 227 cc.paint.values[0]); in image_render_frac() 249 cc.paint.values[0]); in image_render_frac() 251 dprintf1(",%g", cc.paint.values[i]); in image_render_frac()
|
| H A D | gxfmap.h | 48 frac values[transfer_map_size]; member 70 gx_color_frac_map(cf, &pgs->m->values[0])) 76 (pgs->m->values[frac2bits(cf, log2_transfer_map_size)]) 96 ((pmap)->values[(int)((v) * transfer_map_size + 0.5)] / frac_1_float)
|
| H A D | gscie.c | 79 pcf->values[i] = (*(rprocs)->procs[j])(v, pcie);\ 81 cname, j, i, v, pcf->values[i]);\ 111 double origin = pcf->values[0]; in cache_is_linear() 112 double diff = pcf->values[countof(pcf->values) - 1] - origin; in cache_is_linear() 113 double scale = diff / (countof(pcf->values) - 1); in cache_is_linear() 117 for (i = 1; i < countof(pcf->values) - 1; ++i, test += scale) in cache_is_linear() 118 if (fabs(pcf->values[i] - test) >= 0.5 / countof(pcf->values)) in cache_is_linear() 122 diff * pcf->params.factor / (countof(pcf->values) - 1); in cache_is_linear() 294 return pcache->values[index]; in gs_cie_cached_value() 367 cie_restrict(&pcc->paint.values[0], &pcie->RangeDEFG.ranges[0]); in gx_restrict_CIEDEFG() [all …]
|
| H A D | zfilterx.c | 49 ushort *values; in bhc_setup() local 95 pbhcs->definition.values = values = in bhc_setup() 98 if (counts == 0 || values == 0) { in bhc_setup() 99 ifree_object(values, "bhc_setup(values)"); in bhc_setup() 108 values[i] = data[i + num_counts + 1]; in bhc_setup() 109 pbhcs->definition.values = values; in bhc_setup() 177 def.values = data + (def.num_counts + 1); in zcomputecodes()
|
| H A D | gxcmap.c | 592 pdc->ccolor.paint.values[i] = pcc->paint.values[i]; in gx_default_remap_color() 609 pconc[0] = unit_frac(pc->paint.values[0], ftemp); in gx_concretize_DeviceGray() 632 frac fgray = unit_frac(pc->paint.values[0], ftemp); in gx_remap_DeviceGray() 635 pdc->ccolor.paint.values[0] = pc->paint.values[0]; in gx_remap_DeviceGray() 654 pconc[0] = unit_frac(pc->paint.values[0], ftemp); in gx_concretize_DeviceRGB() 655 pconc[1] = unit_frac(pc->paint.values[1], ftemp); in gx_concretize_DeviceRGB() 656 pconc[2] = unit_frac(pc->paint.values[2], ftemp); in gx_concretize_DeviceRGB() 679 … frac fred = unit_frac(pc->paint.values[0], ftemp), fgreen = unit_frac(pc->paint.values[1], ftemp), in gx_remap_DeviceRGB() 680 fblue = unit_frac(pc->paint.values[2], ftemp); in gx_remap_DeviceRGB() 683 pdc->ccolor.paint.values[0] = pc->paint.values[0]; in gx_remap_DeviceRGB() [all …]
|
| H A D | idict.c | 193 code = gs_alloc_ref_array(mem, &pdict->values, a_all, asize, in dict_create_contents() 197 r_set_attrs(&pdict->values, new_mask); in dict_create_contents() 198 refset_null_new(pdict->values.value.refs, asize, new_mask); in dict_create_contents() 360 *ppvalue = pdict->values.value.refs + (pslot - kbot); in dict_find() 367 *ppvalue = pdict->values.value.refs + (pslot - kbot); in dict_find() 379 *ppvalue = pdict->values.value.refs + (kp - kbot); in dict_find() 398 *ppvalue = pdict->values.value.refs + (kp - kbot); in dict_find() 405 *ppvalue = pdict->values.value.refs + in dict_find() 465 index = pvslot - pdict->values.value.refs; in dict_put() 529 ref_assign_old_in(mem, &pdref->value.pdict->values, pvslot, pvalue, in dict_put() [all …]
|
| H A D | gdevpdtd.c | 70 pdf_font_descriptor_values_t values; member 125 GC_STRING_ELT(pdf_font_descriptor_t, common.values.FontName), in BASIC_PTRS() 138 GC_STRING_ELT(pdf_sub_font_descriptor_t, common.values.FontName) in BASIC_PTRS() 170 pdf_put_name(pdev, pfd->values.FontName.data, pfd->values.FontName.size); in write_FontDescriptor_common() 171 pdf_write_font_bbox(pdev, &pfd->values.FontBBox); in write_FontDescriptor_common() 176 {str, gs_param_type_int, offset_of(pdf_font_descriptor_common_t, values.memb)} in write_FontDescriptor_common() 195 int Flags = pfd->values.Flags; in write_FontDescriptor_common() 232 memset(&pfd->common.values, 0, in pdf_font_descriptor_alloc() 233 sizeof(*pfd) - offset_of(pdf_font_descriptor_t, common.values)); in pdf_font_descriptor_alloc() 281 return &pfd->common.values.FontName; in pdf_font_descriptor_name() [all …]
|
| H A D | sdcparam.c | 478 UINT16 values[DCTSIZE2]; in s_DCT_put_quantization_tables() local 481 code = quant_params(quant_tables.list, istr, DCTSIZE2, values, in s_DCT_put_quantization_tables() 487 if (!memcmp(table_ptrs[j]->quantval, values, sizeof(values))) in s_DCT_put_quantization_tables() 503 memcpy(this_table->quantval, values, sizeof(values)); in s_DCT_put_quantization_tables() 511 const UINT8 counts[16], const UINT8 * values, int codes_size) in find_huff_values() argument 517 !memcmp(table_ptrs[j]->huffval, values, in find_huff_values() 518 codes_size * sizeof(values[0]))) in find_huff_values() 569 UINT8 counts[16], values[256]; in s_DCT_put_huffman_tables() local 581 values); in s_DCT_put_huffman_tables() 585 j = find_huff_values(ac_table_ptrs, nac, counts, values, in s_DCT_put_huffman_tables() [all …]
|
| H A D | gdevxini.c | 879 gx_device_X values; in gdev_x_put_params() local 886 values = *xdev; in gdev_x_put_params() 891 ecode = param_put_bool(plist, ".IsPageDevice", &values.IsPageDevice, ecode); in gdev_x_put_params() 892 ecode = param_put_long(plist, "MaxBitmap", &values.MaxBitmap, ecode); in gdev_x_put_params() 893 ecode = param_put_int(plist, "MaxTempPixmap", &values.MaxTempPixmap, ecode); in gdev_x_put_params() 894 ecode = param_put_int(plist, "MaxTempImage", &values.MaxTempImage, ecode); in gdev_x_put_params() 895 ecode = param_put_int(plist, "MaxBufferedTotal", &values.MaxBufferedTotal, ecode); in gdev_x_put_params() 896 ecode = param_put_int(plist, "MaxBufferedArea", &values.MaxBufferedArea, ecode); in gdev_x_put_params() 897 ecode = param_put_int(plist, "MaxBufferedCount", &values.MaxBufferedCount, ecode); in gdev_x_put_params() 906 xdev->IsPageDevice = values.IsPageDevice; in gdev_x_put_params() [all …]
|
| H A D | gdevpsdi.c | 137 cc.paint.values[0] = cc.paint.values[1] = cc.paint.values[2] = MIN_FLOAT; in choose_DCT_params() 139 cc.paint.values[0] = MAX_FLOAT; cc.paint.values[1] = MIN_FLOAT; cc.paint.values[2] = MIN_FLOAT; in choose_DCT_params() 141 cc.paint.values[0] = MIN_FLOAT; cc.paint.values[1] = MAX_FLOAT; cc.paint.values[2] = MIN_FLOAT; in choose_DCT_params() 143 cc.paint.values[0] = MIN_FLOAT; cc.paint.values[1] = MIN_FLOAT; cc.paint.values[2] = MAX_FLOAT; in choose_DCT_params() 164 cc.paint.values[0] = MAX_FLOAT; cc.paint.values[1] = cc.paint.values[2] = 0; in choose_DCT_params() 166 cc.paint.values[0] /= 2; in choose_DCT_params() 168 cc.paint.values[0] /= 2; in choose_DCT_params()
|
| H A D | gximage.h | 105 cc.paint.values[i] = (sample_value) * (1.0 / 255.0); /* faster than / */\ 108 cc.paint.values[i] =\ 112 cc.paint.values[i] =\ 118 cc.paint.values[i] =\ 179 uint values[GS_IMAGE_MAX_COMPONENTS * 2]; /* MaskColor values, */ member
|
| H A D | gdevpdte.c | 704 scale *= ppts->values.size; in process_text_return_width() 706 scale = 0.001 * ppts->values.size; in process_text_return_width() 717 ppts->values.pdfont, ch, font, in process_text_return_width() 736 &ppts->values.matrix, &dpt); in process_text_return_width() 805 bool composite = (ppts->values.pdfont->FontType == ft_composite); in process_text_modify_width() 811 scale *= ppts->values.size; in process_text_modify_width() 813 scale = 0.001 * ppts->values.size; in process_text_modify_width() 819 start.x = ppts->values.matrix.tx; in process_text_modify_width() 820 start.y = ppts->values.matrix.ty; in process_text_modify_width() 849 pdf_font_resource_t *pdsubf = ppts->values.pdfont->u.type0.DescendantFont; in process_text_modify_width() [all …]
|
| H A D | gsfcmap1.c | 49 const byte *pv = pclr->values.data; 61 case 2: return ENUM_STRING(&pclr->values); 67 RELOC_STRING_VAR(pclr->values); 278 pvalue = pclr->values.data + k * pclr->value_size; in code_map_decode_next_multidim_regime() 501 lookup->values.data + penum->index[1] * lookup->value_size; in adobe1_next_entry() 560 byte *values = in gs_cmap_adobe1_alloc() local 569 (keys_size != 0 && keys == 0) || (values_size != 0 && values == 0)) { in gs_cmap_adobe1_alloc() 570 gs_free_string(mem, values, values_size, "gs_cmap_alloc(values)"); in gs_cmap_adobe1_alloc() 586 lookups[0].values.data = values; in gs_cmap_adobe1_alloc() 587 lookups[0].values.size = values_size; in gs_cmap_adobe1_alloc()
|
| H A D | gdevpsf1.c | 63 write_float_array(gs_param_list *plist, const char *key, const float *values, in write_float_array() argument 70 fa.data = values; in write_float_array() 217 write_float_array(plist, "BlueValues", pdata->BlueValues.values, in write_Private() 219 write_float_array(plist, "OtherBlues", pdata->OtherBlues.values, in write_Private() 221 write_float_array(plist, "FamilyBlues", pdata->FamilyBlues.values, in write_Private() 223 write_float_array(plist, "FamilyOtherBlues", pdata->FamilyOtherBlues.values, in write_Private() 225 write_float_array(plist, "StdHW", pdata->StdHW.values, in write_Private() 227 write_float_array(plist, "StdVW", pdata->StdVW.values, in write_Private() 229 write_float_array(plist, "StemSnapH", pdata->StemSnapH.values, in write_Private() 231 write_float_array(plist, "StemSnapV", pdata->StemSnapV.values, in write_Private() [all …]
|
| H A D | gxicolor.c | 72 v0 = (byte)penum->mask_color.values[2 * i]; in gs_image_class_4_color() 73 v1 = (byte)penum->mask_color.values[2 * i + 1]; in gs_image_class_4_color() 100 if (*v < penum->mask_color.values[i] || in mask_color_matches() 101 *v > penum->mask_color.values[i + 1] in mask_color_matches() 247 if_debug1('B', "[B]cc[3]=%g\n", cc.paint.values[3]); in image_render_color() 252 cc.paint.values[0], cc.paint.values[1], in image_render_color() 253 cc.paint.values[2]); in image_render_color() 342 cc.paint.values[0]); in image_render_color() 344 dprintf1(",%g", cc.paint.values[i]); in image_render_color()
|
| H A D | gxfont1.h | 44 float values[(size)*2];\ 49 float values[size];\ 87 int (*push_values)(void *callback_data, const fixed *values,
|
| /plan9/sys/src/cmd/mk/ |
| H A D | env.c | 53 envy[nextv++].values = value; in envinsert() 63 delword(e->values); in envupd() 64 e->values = value; in envupd() 68 e->values = value; in envupd()
|