Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 21 of 21) sorted by relevance

/haiku/headers/libs/agg/util/
H A Dagg_color_conv_rgb8.h185 unsigned rgb = *(int16u*)src; in operator() local
186 dst[R] = (unsigned char)((rgb >> 7) & 0xF8); in operator()
187 dst[1] = (unsigned char)((rgb >> 2) & 0xF8); in operator()
188 dst[B] = (unsigned char)((rgb << 3) & 0xF8); in operator()
238 unsigned rgb = *(int16u*)src; in operator() local
239 dst[R] = (rgb >> 8) & 0xF8; in operator()
240 dst[1] = (rgb >> 3) & 0xFC; in operator()
241 dst[B] = (rgb << 3) & 0xF8; in operator()
292 int rgb = *(int16*)src; in operator() local
293 dst[R] = (int8u)((rgb >> 7) & 0xF8); in operator()
[all …]
/haiku/src/add-ons/translators/avif/
H A DAVIFTranslator.cpp282 avifRGBImage rgb; in _TranslateFromBits() local
283 avifRGBImageSetDefaults(&rgb, image); in _TranslateFromBits()
284 rgb.depth = depth; in _TranslateFromBits()
285 rgb.format = rgbFormat; in _TranslateFromBits()
286 rgb.ignoreAlpha = ignoreAlpha; in _TranslateFromBits()
288 rgb.pixels = static_cast<uint8_t*>(malloc(bitsSize)); in _TranslateFromBits()
289 if (rgb.pixels == NULL) in _TranslateFromBits()
291 rgb.rowBytes = bitsHeader.rowBytes; in _TranslateFromBits()
293 if (stream->Read(rgb.pixels, bitsSize) != bitsSize) { in _TranslateFromBits()
294 free(rgb.pixels); in _TranslateFromBits()
[all …]
/haiku/headers/libs/agg/
H A Dagg_pixfmt_rgb_packed.h47 pixel_type rgb = *p; in blend_pix() local
48 calc_type r = (rgb >> 7) & 0xF8; in blend_pix()
49 calc_type g = (rgb >> 2) & 0xF8; in blend_pix()
50 calc_type b = (rgb << 3) & 0xF8; in blend_pix()
87 pixel_type rgb = *p; in blend_pix() local
88 calc_type r = (rgb >> 7) & 0xF8; in blend_pix()
89 calc_type g = (rgb >> 2) & 0xF8; in blend_pix()
90 calc_type b = (rgb << 3) & 0xF8; in blend_pix()
133 pixel_type rgb = *p; in blend_pix() local
134 calc_type r = m_gamma->dir((rgb >> 7) & 0xF8); in blend_pix()
[all …]
/haiku/src/apps/pulse/
H A DPulseApp.cpp70 uint32 rgb = strtoul(optarg, NULL, 0); in PulseApp() local
71 rgb = rgb << 8; in PulseApp()
72 rgb |= 0x000000ff; in PulseApp()
76 framecolor = rgb; in PulseApp()
79 activecolor = rgb; in PulseApp()
82 idlecolor = rgb; in PulseApp()
/haiku/src/kits/shared/
H A DHSL.cpp11 hsl_color::from_rgb(const rgb_color& rgb) in from_rgb() argument
15 float r = rgb.red / 255.0f; in from_rgb()
16 float g = rgb.green / 255.0f; in from_rgb()
17 float b = rgb.blue / 255.0f; in from_rgb()
/haiku/headers/private/interface/
H A DColorConversion.h38 inline uint8 IndexForRGB15(uint16 rgb) const;
40 inline uint8 IndexForRGB16(uint16 rgb) const;
42 inline uint8 IndexForRGB24(uint32 rgb) const;
/haiku/src/add-ons/print/drivers/pcl6/
H A DPCL6Rasterizer.cpp265 int rgb = 0; in MergePlaneBuffersToCurrentLine() local
268 rgb |= kRed; in MergePlaneBuffersToCurrentLine()
270 rgb |= kGreen; in MergePlaneBuffersToCurrentLine()
272 rgb |= kBlue; in MergePlaneBuffersToCurrentLine()
276 if (rgb & (1 << plane)) in MergePlaneBuffersToCurrentLine()
/haiku/headers/private/shared/
H A DHSL.h15 static hsl_color from_rgb(const rgb_color& rgb);
/haiku/src/libs/print/libprint/
H A DGraphicsDriver.cpp855 const rgb_color* rgb = &cmap->color_list[*s]; in _ConvertCMAP8ToRGB24() local
856 *d ++ = rgb->red; in _ConvertCMAP8ToRGB24()
857 *d ++ = rgb->green; in _ConvertCMAP8ToRGB24()
858 *d ++ = rgb->blue; in _ConvertCMAP8ToRGB24()
901 const rgb_color* rgb = &cmap->color_list[*s]; in _ConvertCMAP8ToGray() local
902 *d = _ConvertToGray(rgb->red, rgb->green, rgb->blue); in _ConvertCMAP8ToGray()
/haiku/src/kits/interface/
H A DColorConversion.cpp219 PaletteConverter::IndexForRGB15(uint16 rgb) const in IndexForRGB15()
221 return fColorMap->index_map[rgb]; in IndexForRGB15()
252 PaletteConverter::IndexForRGB16(uint16 rgb) const in IndexForRGB16()
254 return fColorMap->index_map[((rgb >> 1) & 0x7fe0) | (rgb & 0x1f)]; in IndexForRGB16()
285 PaletteConverter::IndexForRGB24(uint32 rgb) const in IndexForRGB24()
287 return fColorMap->index_map[((rgb & 0xf8000000) >> 17) in IndexForRGB24()
288 | ((rgb & 0xf80000) >> 14) in IndexForRGB24()
289 | ((rgb & 0xf800) >> 11)]; in IndexForRGB24()
/haiku/src/build/libbe/interface/
H A DBitmap.cpp332 inline uint8 IndexForRGB15(uint16 rgb) const;
334 inline uint8 IndexForRGB16(uint16 rgb) const;
336 inline uint8 IndexForRGB24(uint32 rgb) const;
494 PaletteConverter::IndexForRGB15(uint16 rgb) const in IndexForRGB15()
496 return fColorMap->index_map[rgb]; in IndexForRGB15()
525 PaletteConverter::IndexForRGB16(uint16 rgb) const in IndexForRGB16()
527 return fColorMap->index_map[((rgb >> 1) & 0x7fe0) | (rgb & 0x1f)]; in IndexForRGB16()
556 PaletteConverter::IndexForRGB24(uint32 rgb) const in IndexForRGB24()
558 return fColorMap->index_map[((rgb & 0xf8000000) >> 17) in IndexForRGB24()
559 | ((rgb & 0xf80000) >> 14) | ((rgb & 0xf800) >> 11)]; in IndexForRGB24()
/haiku/src/add-ons/translators/jpeg2000/
H A DREADME24 Write Black&White images as RGB24 tells translator to write B_GRAY1 images as rgb jpeg. If it's tur…
/haiku/src/apps/poorman/libhttpd/
H A Dmime_types.txt118 rgb image/x-rgb
/haiku/src/add-ons/media/plugins/ffmpeg/
H A Dyuvrgb_ssse3.nasm7 ; A rather unoptimised set of ssse3 yuv to rgb converters
17 ; does the yuv to rgb conversion using 16 bit fixed point and the
H A Dyuvrgb_sse2.nasm7 ; A rather unoptimised set of sse2 yuv to rgb converters
17 ; does the yuv to rgb conversion using 16 bit fixed point and the
H A Dyuvrgb_sse.nasm7 ; A rather unoptimised set of sse yuv to rgb converters
17 ; does the yuv to rgb conversion using 16 bit fixed point and the
/haiku/src/add-ons/translators/raw/
H A DRAW.cpp1729 ushort (*rgb)[TS][TS][3]; in _AHDInterpolate() local
1738 rgb = (ushort(*)[TS][TS][3])buffer; in _AHDInterpolate()
1751 memset(rgb, 0, 12 * TS * TS); in _AHDInterpolate()
1764 rgb[0][row - top][col - left][1] in _AHDInterpolate()
1770 rgb[1][row - top][col - left][1] = ULIM(val, in _AHDInterpolate()
1782 rix = &rgb[d][row - top][col - left]; in _AHDInterpolate()
1868 = rgb[hm[1] > hm[0]][tr][tc][c]; in _AHDInterpolate()
1873 = (rgb[0][tr][tc][c] + rgb[1][tr][tc][c]) >> 1; in _AHDInterpolate()
/haiku/src/add-ons/translators/jpeg/
H A DREADME32 Write Black&White images as RGB24 tells translator to write B_GRAY1 images as rgb jpeg. If it's tur…
/haiku/src/add-ons/media/media-add-ons/video_mixer/
H A Dyuvrgb.nasm7 ; A rather unoptimised set of yuv to rgb converters
17 ; does the yuv to rgb conversion using 16 bit fixed point and the
/haiku/src/tests/kits/storage/
H A DMimeTypeTest.cpp409 char rgb[3]; in reduce_color_depth() local
410 rgb[0] = data[2]; // red in reduce_color_depth()
411 rgb[1] = data[1]; // green in reduce_color_depth()
412 rgb[2] = data[0]; // blue in reduce_color_depth()
413 dest8.SetBits(rgb, 3, i, B_RGB32); in reduce_color_depth()
/haiku/src/data/ids/
H A Dusb.ids19218 ff00 steel series rgb keyboard