Home
last modified time | relevance | path

Searched refs:bgra (Results 1 – 25 of 57) sorted by relevance

123

/external/webrtc/modules/desktop_capture/
Drgba_color.cc38 RgbaColor::RgbaColor(const uint8_t* bgra) in RgbaColor() argument
39 : RgbaColor(bgra[0], bgra[1], bgra[2], bgra[3]) {} in RgbaColor()
41 RgbaColor::RgbaColor(uint32_t bgra) in RgbaColor() argument
42 : RgbaColor(reinterpret_cast<uint8_t*>(&bgra)) {} in RgbaColor()
Drgba_color.h32 explicit RgbaColor(const uint8_t* bgra);
38 explicit RgbaColor(uint32_t bgra);
/external/libdrm/tests/etnaviv/
Dwrite_bmp.c67 bmp_header_write(int fd, int width, int height, int bgra, int noflip, int alpha) in bmp_header_write() argument
94 if (bgra) { in bmp_header_write()
104 bmp_dump32(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename) in bmp_dump32() argument
114 bmp_header_write(fd, width, height, bgra, false, true); in bmp_dump32()
120 bmp_dump32_noflip(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename) in bmp_dump32_noflip() argument
130 bmp_header_write(fd, width, height, bgra, true, true); in bmp_dump32_noflip()
136 bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha, cons… in bmp_dump32_ex() argument
146 bmp_header_write(fd, width, height, bgra, flip, alpha); in bmp_dump32_ex()
Dwrite_bmp.h28 void bmp_dump32(char *buffer, unsigned width, unsigned height, bool bgra, const char *filename);
30 void bmp_dump32_noflip(char *buffer, unsigned width, unsigned height, bool bgra, const char *filena…
32 void bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha,…
/external/skia/gm/
Dskbug_9819.cpp18 bgra; variable
20 bgra.allocPixels(info.makeColorType(kBGRA_8888_SkColorType));
24 bgra.eraseColor(yellow);
29 c->drawImage(bgra.asImage(), 0,1);
/external/swiftshader/src/Main/
DFrameBuffer.cpp207 Int4 bgra = *Pointer<Int4>(s, sStride % 16 ? 1 : 16); in copyRoutine() local
209 *Pointer<Int4>(d, 1) = ((bgra & Int4(0x00FF0000)) >> 16) | in copyRoutine()
210 ((bgra & Int4(0x000000FF)) << 16) | in copyRoutine()
211 (bgra & Int4(0xFF00FF00)); in copyRoutine()
315 Int4 bgra = *Pointer<Int4>(s, sStride % 16 ? 1 : 16); in copyRoutine() local
317 *Pointer<Int4>(d, 1) = ((bgra & Int4(0x00FF0000)) >> 16) | in copyRoutine()
318 ((bgra & Int4(0x000000FF)) << 16) | in copyRoutine()
319 (bgra & Int4(0xFF00FF00)); in copyRoutine()
367 Int bgra = *Pointer<Int>(s); in copyRoutine() local
368 *Pointer<Int>(d) = ((bgra & Int(0x00FF0000)) >> 16) | in copyRoutine()
[all …]
/external/skia/src/ports/
DSkImageEncoder_WIC.cpp85 uint32_t bgra = *bitmap.getAddr32(x, y); in SkEncodeImageWithWIC() local
86 dstRow[0] = (uint8_t) ((bgra >> 0) & 0xFF); in SkEncodeImageWithWIC()
87 dstRow[1] = (uint8_t) ((bgra >> 8) & 0xFF); in SkEncodeImageWithWIC()
88 dstRow[2] = (uint8_t) ((bgra >> 16) & 0xFF); in SkEncodeImageWithWIC()
/external/skqp/src/ports/
DSkImageEncoder_WIC.cpp85 uint32_t bgra = *bitmap.getAddr32(x, y); in SkEncodeImageWithWIC() local
86 dstRow[0] = (uint8_t) (bgra >> 0); in SkEncodeImageWithWIC()
87 dstRow[1] = (uint8_t) (bgra >> 8); in SkEncodeImageWithWIC()
88 dstRow[2] = (uint8_t) (bgra >> 16); in SkEncodeImageWithWIC()
/external/webp/src/dsp/
Dupsampling_mips_dsp_r2.c112 uint8_t* const bgra) { in YuvToBgra() argument
115 bgra[0] = b; in YuvToBgra()
116 bgra[1] = g; in YuvToBgra()
117 bgra[2] = r; in YuvToBgra()
118 bgra[3] = 0xff; in YuvToBgra()
Dyuv.h135 uint8_t* const bgra) { in VP8YuvToBgra() argument
136 VP8YuvToBgr(y, u, v, bgra); in VP8YuvToBgra()
137 bgra[3] = 0xff; in VP8YuvToBgra()
/external/mesa3d/src/intel/isl/
Disl_format_layout.csv112 B8G8R8A8_UNORM , 32, 1, 1, 1, un8, un8, un8, un8, , , , bgra, line…
113 B8G8R8A8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, un8, , , , bgra, sr…
128 B10G10R10A2_UNORM , 32, 1, 1, 1, un10, un10, un10, un2, , , , bgra, line…
129 B10G10R10A2_UNORM_SRGB , 32, 1, 1, 1, un10, un10, un10, un2, , , , bgra, sr…
149 B8G8R8X8_UNORM , 32, 1, 1, 1, un8, un8, un8, x8, , , , bgra, line…
150 B8G8R8X8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, x8, , , , bgra, sr…
154 B10G10R10X2_UNORM , 32, 1, 1, 1, un10, un10, un10, x2, , , , bgra, line…
167 B5G5R5A1_UNORM , 16, 1, 1, 1, un5, un5, un5, un1, , , , bgra, line…
168 B5G5R5A1_UNORM_SRGB , 16, 1, 1, 1, un5, un5, un5, un1, , , , bgra, sr…
169 B4G4R4A4_UNORM , 16, 1, 1, 1, un4, un4, un4, un4, , , , bgra, line…
[all …]
/external/skia/tests/
DNonlinearBlendingTest.cpp29 auto bgra = skcms_PixelFormat_BGRA_8888, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
DReadPixelsTest.cpp387 static const uint32_t bgra[kNumPixels] = { variable
420 return bgra; in five_reference_pixels()
/external/skqp/tests/
DNonlinearBlendingTest.cpp29 auto bgra = skcms_PixelFormat_BGRA_8888, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
/external/freetype/src/base/
Dftbitmap.c467 ft_gray_for_premultiplied_srgb_bgra( const FT_Byte* bgra ) in ft_gray_for_premultiplied_srgb_bgra() argument
469 FT_UInt a = bgra[3]; in ft_gray_for_premultiplied_srgb_bgra()
491 l = ( 4732UL /* 0.0722 * 65536 */ * bgra[0] * bgra[0] + in ft_gray_for_premultiplied_srgb_bgra()
492 46871UL /* 0.7152 * 65536 */ * bgra[1] * bgra[1] + in ft_gray_for_premultiplied_srgb_bgra()
493 13933UL /* 0.2126 * 65536 */ * bgra[2] * bgra[2] ) >> 16; in ft_gray_for_premultiplied_srgb_bgra()
/external/webp/src/webp/
Dencode.h58 WEBP_EXTERN size_t WebPEncodeBGRA(const uint8_t* bgra,
78 WEBP_EXTERN size_t WebPEncodeLosslessBGRA(const uint8_t* bgra,
479 WebPPicture* picture, const uint8_t* bgra, int bgra_stride);
/external/webp/include/webp/
Dencode.h58 WEBP_EXTERN size_t WebPEncodeBGRA(const uint8_t* bgra,
78 WEBP_EXTERN size_t WebPEncodeLosslessBGRA(const uint8_t* bgra,
479 WebPPicture* picture, const uint8_t* bgra, int bgra_stride);
/external/angle/src/image_util/
Dloadimage.cpp842 uint16_t bgra = source[x]; in LoadBGRA4ToBGRA8() local
844 static_cast<uint8_t>(((bgra & 0xF000) >> 8) | ((bgra & 0xF000) >> 12)); in LoadBGRA4ToBGRA8()
846 static_cast<uint8_t>(((bgra & 0x0F00) >> 4) | ((bgra & 0x0F00) >> 8)); in LoadBGRA4ToBGRA8()
848 static_cast<uint8_t>(((bgra & 0x00F0) << 0) | ((bgra & 0x00F0) >> 4)); in LoadBGRA4ToBGRA8()
850 static_cast<uint8_t>(((bgra & 0x000F) << 4) | ((bgra & 0x000F) >> 0)); in LoadBGRA4ToBGRA8()
1127 uint16_t bgra = source[x]; in LoadBGR5A1ToBGRA8() local
1129 static_cast<uint8_t>(((bgra & 0xF800) >> 8) | ((bgra & 0xF800) >> 13)); in LoadBGR5A1ToBGRA8()
1131 static_cast<uint8_t>(((bgra & 0x07C0) >> 3) | ((bgra & 0x07C0) >> 8)); in LoadBGR5A1ToBGRA8()
1133 static_cast<uint8_t>(((bgra & 0x003E) << 2) | ((bgra & 0x003E) >> 3)); in LoadBGR5A1ToBGRA8()
1134 dest[4 * x + 3] = static_cast<uint8_t>((bgra & 0x0001) ? 0xFF : 0); in LoadBGR5A1ToBGRA8()
/external/skqp/src/core/
DSkColor.cpp109 SkColor4f SkColor4f::FromColor(SkColor bgra) { in FromColor() argument
111 swizzle_rb(Sk4f_fromL32(bgra)).store(rgba.vec()); in FromColor()
/external/mesa3d/src/mesa/main/
Dtexcompress_etc.c725 bool bgra) in etc2_unpack_srgb8() argument
748 if (bgra) { in etc2_unpack_srgb8()
811 bool bgra) in etc2_unpack_srgb8_alpha8() argument
835 if (bgra) { in etc2_unpack_srgb8_alpha8()
1071 bool bgra) in etc2_unpack_srgb8_punchthrough_alpha1() argument
1092 if (bgra) { in etc2_unpack_srgb8_punchthrough_alpha1()
1223 bool bgra) in _mesa_unpack_etc2_format() argument
1232 src_width, src_height, bgra); in _mesa_unpack_etc2_format()
1240 src_width, src_height, bgra); in _mesa_unpack_etc2_format()
1264 src_width, src_height, bgra); in _mesa_unpack_etc2_format()
Dtexcompress_etc.h81 bool bgra);
/external/skia/src/core/
DSkColor.cpp110 SkColor4f SkColor4f::FromColor(SkColor bgra) { in FromColor() argument
112 swizzle_rb(Sk4f_fromL32(bgra)).store(rgba.vec()); in FromColor()
/external/pdfium/testing/image_diff/
Dimage_diff_png.cpp163 uint8_t* bgra, in ConvertRGBtoBGRA() argument
167 uint8_t* pixel_out = &bgra[x * 4]; in ConvertRGBtoBGRA()
415 void ConvertBGRAtoRGB(const uint8_t* bgra, in ConvertBGRAtoRGB() argument
420 const uint8_t* pixel_in = &bgra[x * 4]; in ConvertBGRAtoRGB()
/external/swiftshader/src/Pipeline/
DVertexRoutine.cpp200 bool bgra = false; in readStream() local
235 bgra = true; in readStream()
421 bgra = true; in readStream()
442 bgra = true; in readStream()
458 bgra = true; in readStream()
480 bgra = true; in readStream()
500 if(bgra) in readStream()
/external/skia/src/opts/
DSkSwizzler_opts.h443 __m512i bgra = _mm512_shuffle_epi8(rgba, swapRB); in RGBA_to_BGRA() local
444 _mm512_storeu_si512((__m512i*) dst, bgra); in RGBA_to_BGRA()
717 __m256i bgra = _mm256_shuffle_epi8(rgba, swapRB); in RGBA_to_BGRA() local
718 _mm256_storeu_si256((__m256i*) dst, bgra); in RGBA_to_BGRA()
962 __m128i bgra = _mm_shuffle_epi8(rgba, swapRB); in RGBA_to_BGRA() local
963 _mm_storeu_si128((__m128i*) dst, bgra); in RGBA_to_BGRA()

123