Home
last modified time | relevance | path

Searched refs:bgr (Results 1 – 25 of 54) sorted by relevance

123

/external/opencv3/modules/imgcodecs/src/
Dutils.cpp108 uchar* bgr, int bgr_step, CvSize size ) in icvCvt_Gray2BGR_8u_C1C3R() argument
113 for( i = 0; i < size.width; i++, bgr += 3 ) in icvCvt_Gray2BGR_8u_C1C3R()
115 bgr[0] = bgr[1] = bgr[2] = gray[i]; in icvCvt_Gray2BGR_8u_C1C3R()
117 bgr += bgr_step - size.width*3; in icvCvt_Gray2BGR_8u_C1C3R()
123 ushort* bgr, int bgr_step, CvSize size ) in icvCvt_Gray2BGR_16u_C1C3R() argument
128 for( i = 0; i < size.width; i++, bgr += 3 ) in icvCvt_Gray2BGR_16u_C1C3R()
130 bgr[0] = bgr[1] = bgr[2] = gray[i]; in icvCvt_Gray2BGR_16u_C1C3R()
132 bgr += bgr_step/sizeof(bgr[0]) - size.width*3; in icvCvt_Gray2BGR_16u_C1C3R()
138 uchar* bgr, int bgr_step, in icvCvt_BGRA2BGR_8u_C4C3R()
145 for( i = 0; i < size.width; i++, bgr += 3, bgra += 4 ) in icvCvt_BGRA2BGR_8u_C4C3R()
[all …]
Dutils.hpp58 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* bgr, int bgr_step,
69 uchar* bgr, int bgr_step, CvSize size );
71 ushort* bgr, int bgr_step, CvSize size );
74 uchar* bgr, int bgr_step,
77 ushort* bgr, int bgr_step,
80 void icvCvt_BGR2RGB_8u_C3R( const uchar* bgr, int bgr_step,
83 void icvCvt_BGR2RGB_16u_C3R( const ushort* bgr, int bgr_step,
100 uchar* bgr, int bgr_step, CvSize size );
102 uchar* bgr, int bgr_step, CvSize size );
104 uchar* bgr, int bgr_step, CvSize size );
Dgrfmt_sunras.cpp173 uchar* bgr = _bgr; in readData() local
337 m_strm.getBytes( color ? data : bgr, src_pitch ); in readData()
346 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1), in readData()
Dgrfmt_bmp.cpp215 uchar *src = _src, *bgr = _bgr; in readData() local
228 FillColorRow1( color ? data : bgr, src, m_width, m_palette ); in readData()
230 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1) ); in readData()
/external/opencv/otherlibs/highgui/
Dutils.cpp141 uchar* bgr, int bgr_step, CvSize size ) in icvCvt_Gray2BGR_8u_C1C3R() argument
146 for( i = 0; i < size.width; i++, bgr += 3 ) in icvCvt_Gray2BGR_8u_C1C3R()
148 bgr[0] = bgr[1] = bgr[2] = gray[i]; in icvCvt_Gray2BGR_8u_C1C3R()
150 bgr += bgr_step - size.width*3; in icvCvt_Gray2BGR_8u_C1C3R()
156 uchar* bgr, int bgr_step, in icvCvt_BGRA2BGR_8u_C4C3R()
163 for( i = 0; i < size.width; i++, bgr += 3, bgra += 4 ) in icvCvt_BGRA2BGR_8u_C4C3R()
166 bgr[0] = t0; bgr[1] = t1; in icvCvt_BGRA2BGR_8u_C4C3R()
167 t0 = bgra[swap_rb^2]; bgr[2] = t0; in icvCvt_BGRA2BGR_8u_C4C3R()
169 bgr += bgr_step - size.width*3; in icvCvt_BGRA2BGR_8u_C4C3R()
194 void icvCvt_BGR2RGB_8u_C3R( const uchar* bgr, int bgr_step, in icvCvt_BGR2RGB_8u_C3R() argument
[all …]
Dutils.h58 void icvCvt_BGR2Gray_16u_C3C1R( const ushort* bgr, int bgr_step,
61 void icvCvt_BGR2Gray_8u_C3C1R( const uchar* bgr, int bgr_step,
68 uchar* bgr, int bgr_step, CvSize size );
70 uchar* bgr, int bgr_step,
72 void icvCvt_BGR2RGB_8u_C3R( const uchar* bgr, int bgr_step,
75 void icvCvt_BGR2RGB_16u_C3R( const ushort* bgr, int bgr_step,
88 uchar* bgr, int bgr_step, CvSize size );
90 uchar* bgr, int bgr_step, CvSize size );
92 uchar* bgr, int bgr_step, CvSize size );
Dgrfmt_sunras.cpp181 uchar* bgr = bgr_buffer; in ReadData() local
194 bgr = new uchar[m_width*3 + 32]; in ReadData()
358 m_strm.GetBytes( color ? data : bgr, src_pitch ); in ReadData()
367 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1), in ReadData()
396 if( bgr != bgr_buffer ) delete[] bgr; in ReadData()
Dgrfmt_bmp.cpp195 uchar* bgr = bgr_buffer; in ReadData() local
216 if( m_width*3 + 32 > buffer_size ) bgr = new uchar[m_width*3 + 32]; in ReadData()
230 FillColorRow1( color ? data : bgr, src, m_width, m_palette ); in ReadData()
232 icvCvt_BGR2Gray_8u_C3C1R( bgr, 0, data, 0, cvSize(m_width,1) ); in ReadData()
476 if( bgr != bgr_buffer ) delete[] bgr; in ReadData()
/external/opencv3/modules/photo/test/
Dtest_denoising.cuda.cpp62 …cv::Mat bgr = readImage("../gpu/denoising/lena_noised_gaussian_sigma=20_multi_0.png", cv::IMREAD_… in TEST() local
63 ASSERT_FALSE(bgr.empty()); in TEST()
64 cv::resize(bgr, bgr, cv::Size(256, 256)); in TEST()
67 cv::cvtColor(bgr, gray, cv::COLOR_BGR2GRAY); in TEST()
70 cv::cuda::nonLocalMeans(GpuMat(bgr), dbgr, 20); in TEST()
95 …cv::Mat bgr = readImage("../gpu/denoising/lena_noised_gaussian_sigma=20_multi_0.png", cv::IMREAD_… in TEST() local
96 ASSERT_FALSE(bgr.empty()); in TEST()
99 cv::cvtColor(bgr, gray, cv::COLOR_BGR2GRAY); in TEST()
104 cv::cuda::fastNlMeansDenoisingColored(GpuMat(bgr), dbgr, 20, 10); in TEST()
/external/opencv3/modules/videostab/src/
Dprecomp.hpp62 inline float intensity(const cv::Point3_<uchar> &bgr) in intensity() argument
64 return 0.3f*bgr.x + 0.59f*bgr.y + 0.11f*bgr.z; in intensity()
/external/libvncserver/webclients/novnc/include/
Ddisplay.js353 var bgr;
355 bgr = color;
357 bgr = this._colourMap[color[0]];
359 var red = bgr[2];
360 var green = bgr[1];
361 var blue = bgr[0];
378 var bgr;
380 bgr = color;
382 bgr = this._colourMap[color[0]];
384 var red = bgr[2];
[all …]
/external/opencv3/3rdparty/libwebp/dsp/
Dyuv.h84 uint8_t* const bgr) { in VP8YuvToBgr() argument
88 bgr[0] = VP8kClip[y + b_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
89 bgr[1] = VP8kClip[y + g_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
90 bgr[2] = VP8kClip[y + r_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
170 uint8_t* const bgr) { in VP8YuvToBgr() argument
171 bgr[0] = VP8Clip8(VP8YUVToB(y, u)); in VP8YuvToBgr()
172 bgr[1] = VP8Clip8(VP8YUVToG(y, u, v)); in VP8YuvToBgr()
173 bgr[2] = VP8Clip8(VP8YUVToR(y, v)); in VP8YuvToBgr()
/external/webp/src/dsp/
Dyuv_sse2.c289 __m128i bgr[6]; in VP8YuvToBgr32() local
297 bgr[0] = _mm_packus_epi16(B0, B1); in VP8YuvToBgr32()
298 bgr[1] = _mm_packus_epi16(B2, B3); in VP8YuvToBgr32()
299 bgr[2] = _mm_packus_epi16(G0, G1); in VP8YuvToBgr32()
300 bgr[3] = _mm_packus_epi16(G2, G3); in VP8YuvToBgr32()
301 bgr[4] = _mm_packus_epi16(R0, R1); in VP8YuvToBgr32()
302 bgr[5] = _mm_packus_epi16(R2, R3); in VP8YuvToBgr32()
305 PlanarTo24b(bgr, dst); in VP8YuvToBgr32()
415 __m128i bgr[6]; in YuvToBgrRow() local
423 bgr[0] = _mm_packus_epi16(B0, B1); in YuvToBgrRow()
[all …]
Dyuv.c228 static void ConvertBGR24ToY(const uint8_t* bgr, uint8_t* y, int width) { in ConvertBGR24ToY() argument
230 for (i = 0; i < width; ++i, bgr += 3) { in ConvertBGR24ToY()
231 y[i] = VP8RGBToY(bgr[2], bgr[1], bgr[0], YUV_HALF); in ConvertBGR24ToY()
248 void (*WebPConvertBGR24ToY)(const uint8_t* bgr, uint8_t* y, int width);
Dyuv.h101 uint8_t* const bgr) { in VP8YuvToBgr() argument
102 bgr[0] = VP8YUVToB(y, u); in VP8YuvToBgr()
103 bgr[1] = VP8YUVToG(y, u, v); in VP8YuvToBgr()
104 bgr[2] = VP8YUVToR(y, v); in VP8YuvToBgr()
Dupsampling_mips_dsp_r2.c60 static WEBP_INLINE void YuvToBgr(int y, int u, int v, uint8_t* const bgr) {
63 bgr[0] = b;
64 bgr[1] = g;
65 bgr[2] = r;
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
Dimage_util_numpy_impl.py29 bgr = image[y][x]
30 return rgba_color.RgbaColor(bgr[2], bgr[1], bgr[0])
/external/opencv3/3rdparty/libwebp/webp/
Dencode.h52 WEBP_EXTERN(size_t) WebPEncodeBGR(const uint8_t* bgr,
68 WEBP_EXTERN(size_t) WebPEncodeLosslessBGR(const uint8_t* bgr,
432 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
/external/webp/include/webp/
Dencode.h52 WEBP_EXTERN(size_t) WebPEncodeBGR(const uint8_t* bgr,
68 WEBP_EXTERN(size_t) WebPEncodeLosslessBGR(const uint8_t* bgr,
454 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
/external/webp/src/webp/
Dencode.h52 WEBP_EXTERN(size_t) WebPEncodeBGR(const uint8_t* bgr,
68 WEBP_EXTERN(size_t) WebPEncodeLosslessBGR(const uint8_t* bgr,
454 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
/external/opencv3/samples/python2/
Dopt_flow.py37 bgr = cv2.cvtColor(hsv, cv2.COLOR_HSV2BGR)
38 return bgr
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_tiff.cpp201 unsigned char cmyk[4], bgr[3]; in TIFFCmyk2Rgb() local
203 IccLib_TranslateImage(p->icc_ctx, bgr, cmyk, 1); in TIFFCmyk2Rgb()
204 *r = bgr[2], *g = bgr[1], *b = bgr[0]; in TIFFCmyk2Rgb()
/external/pdfium/third_party/lpng_v163/
Dpngwrite.c1891 const int bgr = (format & PNG_FORMAT_FLAG_BGR) ? 2 : 0; in png_image_set_PLTE() local
1893 # define bgr 0 in png_image_set_PLTE() macro
1919 entry[(2 ^ bgr)]); in png_image_set_PLTE()
1923 entry[bgr]); in png_image_set_PLTE()
1950 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1954 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
1978 palette[i].blue = entry[afirst + (2 ^ bgr)]; in png_image_set_PLTE()
1980 palette[i].red = entry[afirst + bgr]; in png_image_set_PLTE()
2002 # ifdef bgr in png_image_set_PLTE()
2003 # undef bgr in png_image_set_PLTE()
/external/libpng/
Dpngwrite.c1791 const int bgr = (format & PNG_FORMAT_FLAG_BGR) != 0 ? 2 : 0; in png_image_set_PLTE() local
1793 # define bgr 0 in png_image_set_PLTE() macro
1819 entry[(2 ^ bgr)]); in png_image_set_PLTE()
1823 entry[bgr]); in png_image_set_PLTE()
1850 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1854 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
1878 palette[i].blue = entry[afirst + (2 ^ bgr)]; in png_image_set_PLTE()
1880 palette[i].red = entry[afirst + bgr]; in png_image_set_PLTE()
1902 # ifdef bgr in png_image_set_PLTE()
1903 # undef bgr in png_image_set_PLTE()
/external/opencv3/doc/tutorials/ios/video_processing/
Dvideo_processing.markdown179 Mat bgr;
180 cvtColor(image_copy, bgr, COLOR_GRAY2BGR);
182 cvtColor(bgr, image, COLOR_BGR2BGRA);

123