/external/webp/src/dsp/ |
H A D | upsampling_mips_dsp_r2.c | 57 static WEBP_INLINE void YuvToBgr(int y, int u, int v, uint8_t* const bgr) { argument 60 bgr[0] = b; 61 bgr[1] = g; 62 bgr[2] = r;
|
H A D | yuv.h | 87 uint8_t* const bgr) { 88 bgr[0] = VP8YUVToB(y, u); 89 bgr[1] = VP8YUVToG(y, u, v); 90 bgr[2] = VP8YUVToR(y, v); 86 VP8YuvToBgr(int y, int u, int v, uint8_t* const bgr) argument
|
H A D | yuv.c | 178 static void ConvertBGR24ToY_C(const uint8_t* bgr, uint8_t* y, int width) { argument 180 for (i = 0; i < width; ++i, bgr += 3) { 181 y[i] = VP8RGBToY(bgr[2], bgr[1], bgr[0], YUV_HALF); 242 void (*WebPConvertBGR24ToY)(const uint8_t* bgr, uint8_t* y, int width);
|
H A D | upsampling_msa.c | 257 static void YuvToBgr(int y, int u, int v, uint8_t* const bgr) { argument 262 bgr[0] = Clip8(b1 >> 6); 263 bgr[1] = Clip8(g1 >> 6); 264 bgr[2] = Clip8(r1 >> 6);
|
H A D | yuv_neon.c | 61 static void ConvertBGR24ToY_NEON(const uint8_t* bgr, uint8_t* y, int width) { argument 63 for (i = 0; i + 8 <= width; i += 8, bgr += 3 * 8) { 64 const uint8x8x3_t BGR = vld3_u8(bgr); 68 for (; i < width; ++i, bgr += 3) { // left-over 69 y[i] = VP8RGBToY(bgr[2], bgr[1], bgr[0], YUV_HALF);
|
H A D | yuv_sse2.c | 596 static void ConvertBGR24ToY_SSE2(const uint8_t* bgr, uint8_t* y, int width) { argument 599 for (i = 0; i < max_width; bgr += 3 * 16 * 2) { 603 RGB24PackedToPlanar_SSE2(bgr, bgr_plane); 625 for (; i < width; ++i, bgr += 3) { // left-over 626 y[i] = VP8RGBToY(bgr[2], bgr[1], bgr[0], YUV_HALF);
|
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_bmp.cpp | 195 uchar* bgr = bgr_buffer; local 216 if( m_width*3 + 32 > buffer_size ) bgr = new uchar[m_width*3 + 32]; 230 FillColorRow1( color ? data : bgr, src, m_width, m_palette ); 232 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1) ); 476 if( bgr != bgr_buffer ) delete[] bgr;
|
H A D | grfmt_sunras.cpp | 181 uchar* bgr = bgr_buffer; local 194 bgr = new uchar[m_width*3 + 32]; 358 m_strm.GetBytes( color ? data : bgr, src_pitch ); 367 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1), 396 if( bgr != bgr_buffer ) delete[] bgr;
|
H A D | utils.cpp | 141 uchar* bgr, int bgr_step, CvSize size ) 146 for( i = 0; i < size.width; i++, bgr += 3 ) 148 bgr[0] = bgr[1] = bgr[2] = gray[i]; 150 bgr += bgr_step - size.width*3; 156 uchar* bgr, int bgr_step, 163 for( i = 0; i < size.width; i++, bgr += 3, bgra += 4 ) 166 bgr[0] = t0; bgr[ 140 icvCvt_Gray2BGR_8u_C1C3R( const uchar* gray, int gray_step, uchar* bgr, int bgr_step, CvSize size ) argument 155 icvCvt_BGRA2BGR_8u_C4C3R( const uchar* bgra, int bgra_step, uchar* bgr, int bgr_step, CvSize size, int _swap_rb ) argument 194 icvCvt_BGR2RGB_8u_C3R( const uchar* bgr, int bgr_step, uchar* rgb, int rgb_step, CvSize size ) argument 211 icvCvt_BGR2RGB_16u_C3R( const ushort* bgr, int bgr_step, ushort* rgb, int rgb_step, CvSize size ) argument 264 icvCvt_BGR5552BGR_8u_C2C3R( const uchar* bgr555, int bgr555_step, uchar* bgr, int bgr_step, CvSize size ) argument 282 icvCvt_BGR5652BGR_8u_C2C3R( const uchar* bgr565, int bgr565_step, uchar* bgr, int bgr_step, CvSize size ) argument 300 icvCvt_CMYK2BGR_8u_C4C3R( const uchar* cmyk, int cmyk_step, uchar* bgr, int bgr_step, CvSize size ) argument [all...] |
/external/pdfium/testing/image_diff/ |
H A D | image_diff_png.cpp | 72 void ConvertBGRtoRGB(const unsigned char* bgr, argument 77 const unsigned char* pixel_in = &bgr[x * 3];
|
/external/freetype/src/truetype/ |
H A D | ttinterp.h | 407 FT_Bool bgr; /* bgr instead of rgb? */ member in struct:TT_ExecContextRec_
|
/external/libpng/ |
H A D | pngwrite.c | 1804 const int bgr = (format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; local 1806 # define bgr 0 macro 1832 entry[(2 ^ bgr)]); 1836 entry[bgr]); 1863 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], 1867 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, 1891 palette[i].blue = entry[afirst + (2 ^ bgr)]; 1893 palette[i].red = entry[afirst + bgr]; 1915 # ifdef bgr 1916 # undef bgr macro [all...] |
H A D | pngread.c | 1878 const int bgr = (image->format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; local 1880 # define bgr 0 macro 1912 entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; 1914 entry[afirst + bgr] = (png_uint_16)red; 1950 entry[afirst + (2 ^ bgr)] = (png_byte)blue; 1952 entry[afirst + bgr] = (png_byte)red; 1970 # ifdef bgr 1971 # undef bgr macro
|
/external/pdfium/third_party/libpng16/ |
H A D | pngwrite.c | 1791 const int bgr = (format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; local 1793 # define bgr 0 macro 1819 entry[(2 ^ bgr)]); 1823 entry[bgr]); 1850 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], 1854 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, 1878 palette[i].blue = entry[afirst + (2 ^ bgr)]; 1880 palette[i].red = entry[afirst + bgr]; 1902 # ifdef bgr 1903 # undef bgr macro [all...] |
H A D | pngread.c | 1866 const int bgr = (image->format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; local 1868 # define bgr 0 macro 1900 entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; 1902 entry[afirst + bgr] = (png_uint_16)red; 1937 entry[afirst + (2 ^ bgr)] = (png_byte)blue; 1939 entry[afirst + bgr] = (png_byte)red; 1956 # ifdef bgr 1957 # undef bgr macro
|
/external/swiftshader/src/Renderer/ |
H A D | Surface.cpp | 436 unsigned int bgr = palette[((unsigned char*)element)[0]]; local 438 r = (bgr & 0x000000FF) * (1.0f / 0x000000FF); 439 g = (bgr & 0x0000FF00) * (1.0f / 0x0000FF00); 440 b = (bgr & 0x00FF0000) * (1.0f / 0x00FF0000); 610 signed char* bgr = (signed char*)element; local 612 r = max(bgr[0] * (1.0f / 0x7F), -1.0f); 613 g = max(bgr[1] * (1.0f / 0x7F), -1.0f); 614 b = max(bgr[2] * (1.0f / 0x7F), -1.0f); 629 signed char* bgr = (signed char*)element; local 631 r = bgr[ 638 unsigned char* bgr = (unsigned char*)element; local 765 short* bgr = (short*)element; local 774 unsigned short* bgr = (unsigned short*)element; local 803 int* bgr = (int*)element; local 812 unsigned int* bgr = (unsigned int*)element; local [all...] |
/external/libpng/contrib/libtests/ |
H A D | pngvalid.c | 8486 IT(bgr); variable 8488 #define PT ITSTRUCT(bgr)
|