/haiku-fatelf/headers/libs/agg/util/ |
H A D | agg_color_conv_rgb8.h | 185 unsigned rgb = *(int16u*)src; local 186 dst[R] = (unsigned char)((rgb >> 7) & 0xF8); 187 dst[1] = (unsigned char)((rgb >> 2) & 0xF8); 188 dst[B] = (unsigned char)((rgb << 3) & 0xF8); 238 unsigned rgb = *(int16u*)src; local 239 dst[R] = (rgb >> 8) & 0xF8; 240 dst[1] = (rgb >> 3) & 0xFC; 241 dst[B] = (rgb << 3) & 0xF8; 292 int rgb = *(int16*)src; local 293 dst[R] = (int8u)((rgb >> 352 int rgb = *(int16*)src; local 410 unsigned rgb = *(int16u*)src; local 430 unsigned rgb = *(int16u*)src; local [all...] |
/haiku-fatelf/src/add-ons/translators/webp/libwebp/dec/ |
H A D | yuv.h | 30 uint8_t* const rgb) { 34 rgb[0] = VP8kClip[y + r_off - YUV_RANGE_MIN]; 35 rgb[1] = VP8kClip[y + g_off - YUV_RANGE_MIN]; 36 rgb[2] = VP8kClip[y + b_off - YUV_RANGE_MIN]; 29 VP8YuvToRgb(uint8_t y, uint8_t u, uint8_t v, uint8_t* const rgb) argument
|
/haiku-fatelf/src/add-ons/translators/exr/openexr/imath/ |
H A D | ImathColorAlgo.h | 58 Vec3<double> rgb2hsv_d(const Vec3<double> &rgb); 60 Color4<double> rgb2hsv_d(const Color4<double> &rgb); 120 rgb2hsv(const Vec3<T> &rgb) argument 124 Vec3<double> v = Vec3<double>(rgb.x / double(limits<T>::max()), 125 rgb.y / double(limits<T>::max()), 126 rgb.z / double(limits<T>::max())); 134 Vec3<double> v = Vec3<double>(rgb.x, rgb.y, rgb.z); 143 rgb2hsv(const Color4<T> &rgb) argument [all...] |
/haiku-fatelf/headers/libs/agg/ |
H A D | agg_pixfmt_rgb_packed.h | 47 pixel_type rgb = *p; local 48 calc_type r = (rgb >> 7) & 0xF8; 49 calc_type g = (rgb >> 2) & 0xF8; 50 calc_type b = (rgb << 3) & 0xF8; 87 pixel_type rgb = *p; local 88 calc_type r = (rgb >> 7) & 0xF8; 89 calc_type g = (rgb >> 2) & 0xF8; 90 calc_type b = (rgb << 3) & 0xF8; 133 pixel_type rgb = *p; local 134 calc_type r = m_gamma->dir((rgb >> 178 pixel_type rgb = *p; local 217 pixel_type rgb = *p; local 260 pixel_type rgb = *p; local 301 pixel_type rgb = *p; local 343 pixel_type rgb = *p; local 388 pixel_type rgb = *p; local 559 pixel_type rgb = *p; local 598 pixel_type rgb = *p; local 641 pixel_type rgb = *p; local [all...] |
/haiku-fatelf/headers/private/interface/ |
H A D | ColorConversion.h | 35 inline uint8 IndexForRGB15(uint16 rgb) const; 37 inline uint8 IndexForRGB16(uint16 rgb) const; 39 inline uint8 IndexForRGB24(uint32 rgb) const;
|
/haiku-fatelf/src/apps/pulse/ |
H A D | PulseApp.cpp | 68 uint32 rgb = strtoul(optarg, NULL, 0); local 69 rgb = rgb << 8; 70 rgb |= 0x000000ff; 74 framecolor = rgb; 77 activecolor = rgb; 80 idlecolor = rgb;
|
/haiku-fatelf/src/libs/pdflib/libs/pdflib/ |
H A D | p_color.c | 89 color->val.rgb.r, color->val.rgb.g, color->val.rgb.b); 159 return (c1->val.rgb.r == c2->val.rgb.r && 160 c1->val.rgb.g == c2->val.rgb.g && 161 c1->val.rgb.b == c2->val.rgb.b); 419 c.val.rgb [all...] |
H A D | p_gif.c | 439 unsigned char rgb[3]; local 444 if (! PDC_OK_FREAD(fp, rgb, sizeof(rgb))) { 448 (*buffer)[i][0] = rgb[0] ; 449 (*buffer)[i][1] = rgb[1] ; 450 (*buffer)[i][2] = rgb[2] ;
|
H A D | p_color.h | 98 } rgb; member in union:__anon4937::__anon4938
|
H A D | p_shading.c | 277 color1.val.rgb.r = c_1; 278 color1.val.rgb.g = c_2; 279 color1.val.rgb.b = c_3;
|
/haiku-fatelf/src/add-ons/translators/webp/libwebp/enc/ |
H A D | picture.c | 200 const uint8_t* const rgb, int rgb_stride, 203 const uint8_t* const r_ptr = rgb + (swap ? 2 : 0); 204 const uint8_t* const g_ptr = rgb + 1; 205 const uint8_t* const b_ptr = rgb + (swap ? 0 : 2); 239 const uint8_t* const rgb, int rgb_stride) { 241 return Import(picture, rgb, rgb_stride, 3, 0); 245 const uint8_t* const rgb, int rgb_stride) { 247 return Import(picture, rgb, rgb_stride, 3, 1); 267 static size_t Encode(const uint8_t* rgb, int width, int height, int stride, argument 289 ok = import(&pic, rgb, strid 199 Import(WebPPicture* const picture, const uint8_t* const rgb, int rgb_stride, int step, int swap) argument 238 WebPPictureImportRGB(WebPPicture* const picture, const uint8_t* const rgb, int rgb_stride) argument 244 WebPPictureImportBGR(WebPPicture* const picture, const uint8_t* const rgb, int rgb_stride) argument [all...] |
/haiku-fatelf/src/add-ons/translators/webp/libwebp/webp/ |
H A D | encode.h | 32 size_t WebPEncodeRGB(const uint8_t* rgb, int width, int height, int stride, 187 // *rgb buffer should have a size of at least height * rgb_stride. 190 const uint8_t* const rgb, int rgb_stride);
|
/haiku-fatelf/src/add-ons/translators/hpgs/lib/ |
H A D | hpgspaint.c | 224 static int pdv_setrgbcolor (hpgs_device *_this, const hpgs_color *rgb) argument 228 pdv->gstate->color = *rgb; 230 pdv->color.r = (unsigned char)(rgb->r*255.0); 231 pdv->color.g = (unsigned char)(rgb->g*255.0); 232 pdv->color.b = (unsigned char)(rgb->b*255.0); 237 pdv->gstate->pattern_color = *rgb; 320 static int pdv_setpatcol(hpgs_device *_this, const hpgs_color *rgb) argument 324 pdv->gstate->pattern_color = *rgb; 326 pdv->patcol.r = (unsigned char)(rgb->r * 255.0); 327 pdv->patcol.g = (unsigned char)(rgb [all...] |
H A D | hpgsdevices.c | 90 int hpgs_setpatcol (hpgs_device *_this, const hpgs_color *rgb) argument 94 return _this->vtable->setpatcol(_this,rgb); 502 static int eps_setrgbcolor (hpgs_device *_this, const hpgs_color *rgb) argument 508 if (hpgs_ostream_printf(eps->out,"%g %g %g r\n",rgb->r,rgb->g,rgb->b) < 0) 511 eps->color = *rgb; 599 static int eps_setpatcol(hpgs_device *_this, const hpgs_color *rgb) argument 603 eps->pattern_color.r = (unsigned char)(rgb->r * 255.0); 604 eps->pattern_color.g = (unsigned char)(rgb 640 hpgs_color rgb = eps->color; local [all...] |
H A D | hpgsreader.c | 877 hpgs_color rgb; local 890 rgb.r = rgb.g = rgb.b = 0.8; 891 if (hpgs_setrgbcolor(dev,&rgb)) 919 rgb.r = rgb.g = rgb.b = 0.0; 920 if (hpgs_setrgbcolor(dev,&rgb))
|
/haiku-fatelf/src/add-ons/print/drivers/pcl6/ |
H A D | PCL6Rasterizer.cpp | 265 int rgb = 0; local 268 rgb |= kRed; 270 rgb |= kGreen; 272 rgb |= kBlue; 276 if (rgb & (1 << plane))
|
/haiku-fatelf/src/kits/interface/ |
H A D | ColorConversion.cpp | 213 \param rgb The RGB 15 color value (R[14:10]G[9:5]B[4:0]). 218 PaletteConverter::IndexForRGB15(uint16 rgb) const 220 return fColorMap->index_map[rgb]; 246 \param rgb The RGB 16 color value (R[15:11]G[10:5]B[4:0]). 251 PaletteConverter::IndexForRGB16(uint16 rgb) const 253 return fColorMap->index_map[((rgb >> 1) & 0x7fe0) | (rgb & 0x1f)]; 279 \param rgb The RGB 32 color value (R[31:24]G[23:16]B[15:8]). 284 PaletteConverter::IndexForRGB24(uint32 rgb) const 286 return fColorMap->index_map[((rgb [all...] |
/haiku-fatelf/src/libs/print/libprint/ |
H A D | GraphicsDriver.cpp | 827 const rgb_color* rgb = &cmap->color_list[*s]; local 828 *d ++ = rgb->red; 829 *d ++ = rgb->green; 830 *d ++ = rgb->blue; 873 const rgb_color* rgb = &cmap->color_list[*s]; local 874 *d = _ConvertToGray(rgb->red, rgb->green, rgb->blue);
|
/haiku-fatelf/src/libs/print/libgutenprint/test/ |
H A D | testdither.c | 183 unsigned short rgb[IMAGE_WIDTH * 6], /* RGB buffer */ local 412 image_get_row(rgb, i); 413 stp_dither_internal(v, i, rgb, 0, 0, NULL); 419 image_get_row(rgb, i); 420 stp_dither_internal(v, i, rgb, 0, 0, NULL);
|
/haiku-fatelf/src/libs/pdflib/libs/tiff/ |
H A D | tif_luv.c | 736 XYZtoRGB24(float xyz[3], uint8 rgb[3]) argument 745 rgb[0] = (r <= 0.) ? 0 : (r >= 1.) ? 255 : (int)(256.*sqrt(r)); 746 rgb[1] = (g <= 0.) ? 0 : (g >= 1.) ? 255 : (int)(256.*sqrt(g)); 747 rgb[2] = (b <= 0.) ? 0 : (b >= 1.) ? 255 : (int)(256.*sqrt(b)); 979 uint8* rgb = (uint8*) op; local 985 XYZtoRGB24(xyz, rgb); 986 rgb += 3; 1123 uint8* rgb = (uint8*) op; local 1129 XYZtoRGB24(xyz, rgb); 1130 rgb [all...] |
/haiku-fatelf/src/libs/tiff/ |
H A D | tif_luv.c | 714 XYZtoRGB24(float xyz[3], uint8 rgb[3]) argument 723 rgb[0] = (uint8)((r<=0.) ? 0 : (r >= 1.) ? 255 : (int)(256.*sqrt(r))); 724 rgb[1] = (uint8)((g<=0.) ? 0 : (g >= 1.) ? 255 : (int)(256.*sqrt(g))); 725 rgb[2] = (uint8)((b<=0.) ? 0 : (b >= 1.) ? 255 : (int)(256.*sqrt(b))); 955 uint8* rgb = (uint8*) op; local 961 XYZtoRGB24(xyz, rgb); 962 rgb += 3; 1093 uint8* rgb = (uint8*) op; local 1099 XYZtoRGB24(xyz, rgb); 1100 rgb [all...] |
/haiku-fatelf/src/build/libbe/interface/ |
H A D | Bitmap.cpp | 324 inline uint8 IndexForRGB15(uint16 rgb) const; 326 inline uint8 IndexForRGB16(uint16 rgb) const; 328 inline uint8 IndexForRGB24(uint32 rgb) const; 482 \param rgb The RGB 15 color value (R[14:10]G[9:5]B[4:0]). 486 PaletteConverter::IndexForRGB15(uint16 rgb) const 488 return fColorMap->index_map[rgb]; 513 \param rgb The RGB 16 color value (R[15:11]G[10:5]B[4:0]). 517 PaletteConverter::IndexForRGB16(uint16 rgb) const 519 return fColorMap->index_map[((rgb >> 1) & 0x7fe0) | (rgb [all...] |
/haiku-fatelf/src/libs/ncurses/tack/ |
H A D | color.c | 273 int rgb; local 284 rgb = R + G + B; 285 if (rgb > bright_value) { 286 bright_value = rgb;
|
/haiku-fatelf/src/libs/print/libgutenprint/src/testpattern/ |
H A D | run-testpattern | 78 mode rgb 8;
|
/haiku-fatelf/src/libs/print/libgutenprint/src/main/ |
H A D | color-conversions.c | 55 /* rgb/hsl conversions taken from Gimp common/autostretch_hsv.c */ 61 calc_rgb_to_hsl(unsigned short *rgb, double *hue, double *sat, argument 70 red = rgb[0] / 65535.0; 71 green = rgb[1] / 65535.0; 72 blue = rgb[2] / 65535.0; 154 calc_hsl_to_rgb(unsigned short *rgb, double h, double s, double l) argument 162 rgb[0] = l * 65535; 163 rgb[1] = l * 65535; 164 rgb[2] = l * 65535; 178 rgb[ 213 update_saturation_from_rgb(unsigned short *rgb, const unsigned short *brightness_lookup, double adjust, double isat, int do_usermap) argument [all...] |