/inkscape/src/libdepixelize/priv/ |
H A D | colorspace.h | 44 inline void rgb2yuv(const guint8 rgb[], guint8 yuv[]) argument 46 rgb2yuv(rgb[0], rgb[1], rgb[2], yuv[0], yuv[1], yuv[2]);
|
/inkscape/src/trace/ |
H A D | imagemap-gdk.cpp | 200 RGB rgb = iMap->getPixelValue(iMap, x, y); local 201 p[0] = rgb.r & 0xff; 202 p[1] = rgb.g & 0xff; 203 p[2] = rgb.b & 0xff;
|
H A D | filterset.cpp | 124 RGB rgb = me->getPixel(me, j, i); local 125 sumR += weight * (int)rgb.r; 126 sumG += weight * (int)rgb.g; 127 sumB += weight * (int)rgb.b; 392 RGB rgb = qMap->getPixelValue(qMap, x, y); local 393 int sum = rgb.r + rgb.g + rgb.b; 398 // printf("%d %d %d : %d\n", rgb.r, rgb [all...] |
H A D | imagemap.cpp | 123 static void ppSetPixelLong(PackedPixelMap *me, int x, int y, unsigned long rgb) argument 126 *pix = rgb; 152 unsigned long rgb = me->getPixel(me, x, y); local 153 unsigned char r = (unsigned char) ((rgb>>16) & 0xff); 154 unsigned char g = (unsigned char) ((rgb>> 8) & 0xff); 155 unsigned char b = (unsigned char) ((rgb ) & 0xff); 233 static void rSetPixelRGB(RgbMap *me, int x, int y, RGB rgb) argument 236 *pix = rgb; 262 RGB rgb = me->getPixel(me, x, y); local 263 fputc(rgb 351 RGB rgb = me->clut[((*pix)&0xff)]; local 372 RGB rgb = me->getPixelValue(me, x, y); local 434 RGB rgb; local [all...] |
H A D | quantize.cpp | 33 RGB rgb; // rgb's prefix of that node member in struct:Ocnode_def 49 color_prefix(stored in rgb):width 146 inline RGB operator>>(RGB rgb, int s) argument 149 res.r = rgb.r >> s; res.g = rgb.g >> s; res.b = rgb.b >> s; 157 inline int childIndex(RGB rgb) argument 159 return (((rgb.r)&1)<<2) | (((rgb 227 ocnodeLeaf(pool<Ocnode> *pool, Ocnode **ref, RGB rgb) argument 522 findRGB(RGB *rgbpal, int ncolor, RGB rgb) argument 586 RGB rgb = rgbmap->getPixel(rgbmap, x, y); local [all...] |
H A D | siox.cpp | 119 CieLab::CieLab(unsigned long rgb) argument 123 int ir = (rgb>>16) & 0xff; 124 int ig = (rgb>> 8) & 0xff; 125 int ib = (rgb ) & 0xff; 591 unsigned int rgb = getPixel(x, y); local 592 //unsigned int alpha = (rgb>>24) & 0xff; 593 unsigned int r = ((rgb>>16) & 0xff); 594 unsigned int g = ((rgb>> 8) & 0xff); 595 unsigned int b = ((rgb ) & 0xff); 673 unsigned int rgb local [all...] |
/inkscape/src/widgets/ |
H A D | swatch-selector.cpp | 79 guint32 rgb = color.toRGBA32( 0x00 ); local 84 sp_svg_write_color(c, sizeof(c), rgb);
|
/inkscape/src/libcroco/ |
H A D | cr-term.h | 27 #include "cr-rgb.h" 110 CRRgb * rgb ; member in union:_CRTerm::__anon105
|
H A D | cr-rgb.c | 29 #include "cr-rgb.h" 214 *@a_unit: the unit of the rgb values. 243 *Serializes the rgb into a zero terminated string. 246 *rgb. MUST BE FREED by the caller using g_free(). 314 *If the rgb values are expressed in percentage, 340 *Sets rgb values to the RGB. 370 *sets the value of the rgb to inherit. 391 * Returns TRUE if the rgb is set to the value "inherit", FALSE otherwise. 406 *Tests if the rgb is set to the 409 *Returns TRUE if the rgb ha 461 const CRRgb *rgb = b; local [all...] |
H A D | cr-token.h | 30 #include "cr-rgb.h" 110 CRRgb *rgb ; member in union:_CRToken::__anon107
|
H A D | cr-style.c | 1061 CRRgb *rgb = &a_style->rgb_props[RGB_PROP_BACKGROUND_COLOR].sv; local 1065 status = cr_rgb_set_from_term (rgb, a_value); 1128 if (a_value->content.rgb) { 1130 (rgb_color, a_value->content.rgb);
|
H A D | cr-tknzr.c | 1239 *rgb: rgb '('S*{num}%?S* ',' {num}#?S*,S*{num}#?S*')' 1242 *@param a_rgb out parameter the parsed rgb. 1971 CRRgb *rgb = NULL; local 2128 status = cr_tknzr_parse_rgb (a_this, &rgb); 2129 if (status == CR_OK && rgb) { 2130 status = cr_token_set_rgb (token, rgb); 2132 if (rgb) { 2134 &rgb->location) ; 2136 rgb [all...] |
/inkscape/src/svg/ |
H A D | svg-color.cpp | 49 unsigned long rgb; member in struct:SPSVGColor 237 /* handle #rgb case */ 250 } else if (strneq(str, "rgb(", 4)) { 357 gfloat rgb[3]; local 359 sp_color_hsl_to_rgb_floatv( rgb, h, s, l ); 361 val = static_cast<guint>(floor(CLAMP(rgb[0], 0.0, 1.0) * 255.9999)) << 24; 362 val |= (static_cast<guint>(floor(CLAMP(rgb[1], 0.0, 1.0) * 255.9999)) << 16); 363 val |= (static_cast<guint>(floor(CLAMP(rgb[2], 0.0, 1.0) * 255.9999)) << 8); 461 /* Can use the shorter three-digit form #rgb instead of #rrggbb. */ 505 colors[sp_svg_color_named[i].name] = sp_svg_color_named[i].rgb; [all...] |
/inkscape/src/ui/widget/ |
H A D | color-wheel-selector.cpp | 239 float rgb[3] = { 0, 0, 0 }; local 240 sp_color_hsv_to_rgb_floatv(rgb, h, s, v); 242 SPColor color(rgb[0], rgb[1], rgb[2]);
|
H A D | color-scales.cpp | 199 float rgb[3]; local 200 sp_color_cmyk_to_rgb_floatv(rgb, c[0], c[1], c[2], c[3]); 201 color.set(rgb[0], rgb[1], rgb[2]); 324 gfloat rgb[3]; local 334 sp_color_hsl_to_rgb_floatv(rgb, getScaled(_a[0]), getScaled(_a[1]), getScaled(_a[2])); 335 sp_color_rgb_to_cmyk_floatv(cmyka, rgb[0], rgb[1], rgb[ 652 gfloat rgb[3]; local [all...] |
H A D | selected-style.cpp | 1308 float rgb[3]; local 1309 sp_color_hsl_to_rgb_floatv (rgb, hsla[0], hsla[1], hsla[2]); 1314 (SP_COLOR_F_TO_U(rgb[0])), 1315 (SP_COLOR_F_TO_U(rgb[1])), 1316 (SP_COLOR_F_TO_U(rgb[2])),
|
/inkscape/src/ |
H A D | color.cpp | 220 * Fill rgb float array with values from SPColor. 221 * \pre color != NULL && rgb != NULL && rgb[0-2] is meaningful 224 sp_color_get_rgb_floatv(SPColor const *color, float *rgb) argument 227 return_if_fail (rgb != NULL); 229 rgb[0] = color->v.c[0]; 230 rgb[1] = color->v.c[1]; 231 rgb[2] = color->v.c[2]; 290 * Fill rgb float array from h,s,v float values. 293 sp_color_hsv_to_rgb_floatv (float *rgb, floa argument 378 sp_color_hsl_to_rgb_floatv(float *rgb, float h, float s, float l) argument 434 sp_color_cmyk_to_rgb_floatv(float *rgb, float c, float m, float y, float k) argument [all...] |
/inkscape/src/extension/internal/ |
H A D | latex-pstricks.cpp | 190 float rgb[3]; local 196 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 197 os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[2] << "}\n"; local 225 float rgb[3]; local 232 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); 233 os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[ local [all...] |
H A D | metafile-print.h | 67 float rgb[3]; // also background color, but as 0-1 float. member in struct:Inkscape::Extension::Internal::PrintMetafile::GRADVALUES
|
H A D | odf.h | 129 GradientStop() : rgb(0), opacity(0) 132 { rgb = rgbArg; opacity = opacityArg; } 141 rgb = other.rgb; 144 unsigned long rgb; member in class:Inkscape::Extension::Internal::GradientStop 228 if (g1.rgb != g2.rgb)
|
H A D | pov-out.cpp | 299 float rgb[3]; local 300 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 304 // rgb[0], rgb[1], rgb[2], 1.0 - dopacity); 306 rgbf.append(dstr(rgb[0])); rgbf.append(", "); 307 rgbf.append(dstr(rgb[1])); rgbf.append(", "); 308 rgbf.append(dstr(rgb[2])); rgbf.append(", "); 534 out(" pigment { rgb <0,0,0> }\n"); 563 out(" pigment { rgb < [all...] |
H A D | wmf-print.cpp | 160 gv.rgb[0] = (float) U_RGBAGetR(gv.bgc) / 255.0; 161 gv.rgb[1] = (float) U_RGBAGetG(gv.bgc) / 255.0; 162 gv.rgb[2] = (float) U_RGBAGetB(gv.bgc) / 255.0; 337 float rgb[3]; local 375 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 376 hatchColor = U_RGB(255 * rgb[0], 255 * rgb[1], 255 * rgb[2]); 546 float rgb[3]; local 549 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); 670 float rgb[3]; local 1460 float rgb[3]; local [all...] |
H A D | cairo-render-context.cpp | 709 // In SVG, the rgb channels as well as the alpha channel is used in masking. 1235 float rgb[3]; local 1236 sp_color_get_rgb_floatv(&lg->vector.stops[i].color, rgb); 1237 cairo_pattern_add_color_stop_rgba(pattern, lg->vector.stops[i].offset, rgb[0], rgb[1], rgb[2], lg->vector.stops[i].opacity * alpha); 1257 float rgb[3]; local 1258 sp_color_get_rgb_floatv(&rg->vector.stops[i].color, rgb); 1259 cairo_pattern_add_color_stop_rgba(pattern, rg->vector.stops[i].offset, rgb[0], rgb[ 1347 float rgb[3]; local 1368 float rgb[3]; local [all...] |
H A D | odf.cpp | 1483 unsigned long rgb = (rgba >> 8) & 0xffffff; local 1485 GradientStop gs(rgb, opacity); 1564 snprintf(buf, 127, " draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\"", gi.stops[0].rgb, gi.stops[1].rgb); 1596 snprintf(buf, 127, "draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\" ", gi.stops[0].rgb, gi.stops[1].rgb);
|
/inkscape/src/trace/potrace/ |
H A D | inkscape-potrace.cpp | 216 //rgbMap->writePPM(rgbMap, "rgb.ppm"); 304 RGB rgb = newGm->clut[i]; local 305 int grayVal = (rgb.r + rgb.g + rgb.b) / 3; 306 rgb.r = rgb.g = rgb.b = grayVal; 307 newGm->clut[i] = rgb; 565 RGB rgb local [all...] |