Home
last modified time | relevance | path

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

123

/AliOS-Things-master/components/SDL2/src/video/yuv2rgb/
A Dyuv_rgb.h33 uint8_t *rgb, uint32_t rgb_stride,
39 uint8_t *rgb, uint32_t rgb_stride,
45 uint8_t *rgb, uint32_t rgb_stride,
51 uint8_t *rgb, uint32_t rgb_stride,
57 uint8_t *rgb, uint32_t rgb_stride,
63 uint8_t *rgb, uint32_t rgb_stride,
69 uint8_t *rgb, uint32_t rgb_stride,
75 uint8_t *rgb, uint32_t rgb_stride,
81 uint8_t *rgb, uint32_t rgb_stride,
87 uint8_t *rgb, uint32_t rgb_stride,
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Dyuv_sse41.c438 y[i] = VP8RGBToY(rgb[0], rgb[1], rgb[2], YUV_HALF); in ConvertRGB24ToY_SSE41()
482 ConvertRGBToY_SSE41(&rgb[0], &rgb[2], &rgb[4], &Y0); in ConvertARGBToY_SSE41()
483 ConvertRGBToY_SSE41(&rgb[1], &rgb[3], &rgb[5], &Y1); in ConvertARGBToY_SSE41()
512 HorizontalAddPack_SSE41(&rgb[0], &rgb[1], &rgb[0]); in ConvertARGBToUV_SSE41()
513 HorizontalAddPack_SSE41(&rgb[2], &rgb[3], &rgb[2]); in ConvertARGBToUV_SSE41()
514 HorizontalAddPack_SSE41(&rgb[4], &rgb[5], &rgb[4]); in ConvertARGBToUV_SSE41()
515 ConvertRGBToUV_SSE41(&rgb[0], &rgb[2], &rgb[4], &U0, &V0); in ConvertARGBToUV_SSE41()
518 HorizontalAddPack_SSE41(&rgb[0], &rgb[1], &rgb[0]); in ConvertARGBToUV_SSE41()
519 HorizontalAddPack_SSE41(&rgb[2], &rgb[3], &rgb[2]); in ConvertARGBToUV_SSE41()
520 HorizontalAddPack_SSE41(&rgb[4], &rgb[5], &rgb[4]); in ConvertARGBToUV_SSE41()
[all …]
A Dyuv_sse2.c592 y[i] = VP8RGBToY(rgb[0], rgb[1], rgb[2], YUV_HALF); in ConvertRGB24ToY_SSE2()
636 ConvertRGBToY_SSE2(&rgb[0], &rgb[2], &rgb[4], &Y0); in ConvertARGBToY_SSE2()
637 ConvertRGBToY_SSE2(&rgb[1], &rgb[3], &rgb[5], &Y1); in ConvertARGBToY_SSE2()
666 HorizontalAddPack_SSE2(&rgb[0], &rgb[1], &rgb[0]); in ConvertARGBToUV_SSE2()
667 HorizontalAddPack_SSE2(&rgb[2], &rgb[3], &rgb[2]); in ConvertARGBToUV_SSE2()
668 HorizontalAddPack_SSE2(&rgb[4], &rgb[5], &rgb[4]); in ConvertARGBToUV_SSE2()
669 ConvertRGBToUV_SSE2(&rgb[0], &rgb[2], &rgb[4], &U0, &V0); in ConvertARGBToUV_SSE2()
672 HorizontalAddPack_SSE2(&rgb[0], &rgb[1], &rgb[0]); in ConvertARGBToUV_SSE2()
673 HorizontalAddPack_SSE2(&rgb[2], &rgb[3], &rgb[2]); in ConvertARGBToUV_SSE2()
674 HorizontalAddPack_SSE2(&rgb[4], &rgb[5], &rgb[4]); in ConvertARGBToUV_SSE2()
[all …]
A Dyuv.h80 uint8_t* const rgb) { in VP8YuvToRgb() argument
81 rgb[0] = VP8YUVToR(y, v); in VP8YuvToRgb()
82 rgb[1] = VP8YUVToG(y, u, v); in VP8YuvToRgb()
83 rgb[2] = VP8YUVToB(y, u); in VP8YuvToRgb()
94 uint8_t* const rgb) { in VP8YuvToRgb565() argument
101 rgb[0] = gb; in VP8YuvToRgb565()
102 rgb[1] = rg; in VP8YuvToRgb565()
104 rgb[0] = rg; in VP8YuvToRgb565()
105 rgb[1] = gb; in VP8YuvToRgb565()
A Dyuv.c171 static void ConvertRGB24ToY_C(const uint8_t* rgb, uint8_t* y, int width) { in ConvertRGB24ToY_C() argument
173 for (i = 0; i < width; ++i, rgb += 3) { in ConvertRGB24ToY_C()
174 y[i] = VP8RGBToY(rgb[0], rgb[1], rgb[2], YUV_HALF); in ConvertRGB24ToY_C()
185 void WebPConvertRGBA32ToUV_C(const uint16_t* rgb, in WebPConvertRGBA32ToUV_C() argument
188 for (i = 0; i < width; i += 1, rgb += 4) { in WebPConvertRGBA32ToUV_C()
189 const int r = rgb[0], g = rgb[1], b = rgb[2]; in WebPConvertRGBA32ToUV_C()
241 void (*WebPConvertRGB24ToY)(const uint8_t* rgb, uint8_t* y, int width);
243 void (*WebPConvertRGBA32ToUV)(const uint16_t* rgb,
A Dyuv_neon.c49 static void ConvertRGB24ToY_NEON(const uint8_t* rgb, uint8_t* y, int width) { in ConvertRGB24ToY_NEON() argument
51 for (i = 0; i + 8 <= width; i += 8, rgb += 3 * 8) { in ConvertRGB24ToY_NEON()
52 const uint8x8x3_t RGB = vld3_u8(rgb); in ConvertRGB24ToY_NEON()
56 for (; i < width; ++i, rgb += 3) { // left-over in ConvertRGB24ToY_NEON()
57 y[i] = VP8RGBToY(rgb[0], rgb[1], rgb[2], YUV_HALF); in ConvertRGB24ToY_NEON()
117 static void ConvertRGBA32ToUV_NEON(const uint16_t* rgb, in ConvertRGBA32ToUV_NEON() argument
120 for (i = 0; i + 8 <= width; i += 8, rgb += 4 * 8) { in ConvertRGBA32ToUV_NEON()
121 const uint16x8x4_t RGB = vld4q_u16((const uint16_t*)rgb); in ConvertRGBA32ToUV_NEON()
127 for (; i < width; i += 1, rgb += 4) { in ConvertRGBA32ToUV_NEON()
128 const int r = rgb[0], g = rgb[1], b = rgb[2]; in ConvertRGBA32ToUV_NEON()
A Dupsampling_mips_dsp_r2.c50 static WEBP_INLINE void YuvToRgb(int y, int u, int v, uint8_t* const rgb) { in YuvToRgb() argument
53 rgb[0] = r; in YuvToRgb()
54 rgb[1] = g; in YuvToRgb()
55 rgb[2] = b; in YuvToRgb()
64 static WEBP_INLINE void YuvToRgb565(int y, int u, int v, uint8_t* const rgb) { in YuvToRgb565() argument
71 rgb[0] = gb; in YuvToRgb565()
72 rgb[1] = rg; in YuvToRgb565()
74 rgb[0] = rg; in YuvToRgb565()
75 rgb[1] = gb; in YuvToRgb565()
A Dalpha_processing_neon.c64 uint8_t* const rgb = rgba + (alpha_first ? 1 : 0); in ApplyAlphaMultiply_NEON() local
69 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_NEON()
70 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_NEON()
71 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_NEON()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/swig/
A Dlibwebp.py136 def WebPEncodeRGB(rgb, width, height, stride, quality_factor): argument
139 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor)
144 def WebPEncodeRGBA(rgb, width, height, stride, quality_factor): argument
147 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor)
152 def WebPEncodeBGR(rgb, width, height, stride, quality_factor): argument
155 rgb, _UNUSED, _UNUSED, width, height, stride, quality_factor)
160 def WebPEncodeBGRA(rgb, width, height, stride, quality_factor): argument
168 def WebPEncodeLosslessRGB(rgb, width, height, stride): argument
175 def WebPEncodeLosslessRGBA(rgb, width, height, stride): argument
182 def WebPEncodeLosslessBGR(rgb, width, height, stride): argument
[all …]
A Dlibwebp.swig73 %typemap (in) const uint8_t* rgb (Py_buffer rgb_buffer) {
89 %typemap(freearg) const uint8_t* rgb {
218 typedef size_t (*WebPEncodeFunction)(const uint8_t* rgb,
221 typedef size_t (*WebPEncodeLosslessFunction)(const uint8_t* rgb,
225 static uint8_t* EncodeLossy(const uint8_t* rgb,
232 encfn(rgb, width, height, stride, quality_factor, &output);
240 static uint8_t* EncodeLossless(const uint8_t* rgb,
382 byte[] rgb, int width, int height, int stride) {
384 rgb, UNUSED, UNUSED, outputSize, width, height, stride);
406 def func(rgb, width, height, stride, quality_factor):
[all …]
/AliOS-Things-master/components/SDL2/test/
A Dtestyuv_cvt.c27 yuv[0] = (int)(0.299 * rgb[0] + 0.587 * rgb[1] + 0.114 * rgb[2]); in RGBtoYUV()
28 yuv[1] = (int)((rgb[2] - yuv[0]) * 0.565 + 128); in RGBtoYUV()
51 R = rgb[0]; in RGBtoYUV()
52 G = rgb[1]; in RGBtoYUV()
53 B = rgb[2]; in RGBtoYUV()
197 Uint8 *rgb; in ConvertRGBtoPacked4() local
200 rgb = src; in ConvertRGBtoPacked4()
229 rgb += 3; in ConvertRGBtoPacked4()
234 rgb += 3; in ConvertRGBtoPacked4()
247 rgb += 3; in ConvertRGBtoPacked4()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/test/
A Draw_decode.c109 unsigned char *rgb = buffer + 3 * pixel; in check_rgb_pixel() local
111 if( rgb[0] >= min_red && rgb[0] <= max_red && in check_rgb_pixel()
112 rgb[1] >= min_green && rgb[1] <= max_green && in check_rgb_pixel()
113 rgb[2] >= min_blue && rgb[2] <= max_blue ) { in check_rgb_pixel()
119 rgb[0], min_red, max_red, in check_rgb_pixel()
120 rgb[1], min_green, max_green, in check_rgb_pixel()
121 rgb[2], min_blue, max_blue ); in check_rgb_pixel()
A DMakefile.am100 tiffcrop-doubleflip-rgb-3c-8b.sh \
109 tiffcrop-extract-rgb-3c-16b.sh \
110 tiffcrop-extract-rgb-3c-8b.sh \
129 tiffcrop-R90-rgb-3c-16b.sh \
130 tiffcrop-R90-rgb-3c-8b.sh \
133 tiff2bw-rgb-3c-8b.sh \
142 tiff2rgba-rgb-3c-16b.sh \
143 tiff2rgba-rgb-3c-8b.sh \
158 images/rgb-3c-16b.tiff \
159 images/rgb-3c-8b.tiff \
[all …]
A DCMakeLists.txt94 tiffcrop-R90-rgb-3c-16b.sh
95 tiffcrop-R90-rgb-3c-8b.sh
104 tiff2rgba-rgb-3c-16b.sh
105 tiff2rgba-rgb-3c-8b.sh
120 images/rgb-3c-16b.tiff
121 images/rgb-3c-8b.tiff
127 images/rgb-3c-8b.bmp)
135 images/rgb-3c-8b.ppm)
145 images/rgb-3c-8b.tiff)
320 add_convert_test(bmp2tiff rgb "" "images/rgb-3c-8b.bmp" TRUE)
[all …]
/AliOS-Things-master/components/py_engine/engine/drivers/display/
A Dlcd160cr_test.py91 fbuf.fill(lcd.rgb(128 + int(64 * math.cos(0.1 * i)), 128, 192))
97 lcd.rgb(128, 255, 64),
99 fbuf.hline(0, ty, w, lcd.rgb(64, 64, 64))
100 fbuf.vline(tx, 0, h, lcd.rgb(64, 64, 64))
101 fbuf.rect(tx - 3, ty - 3, 7, 7, lcd.rgb(64, 64, 64))
111 lcd.rgb(128 + 10 * j, 0, 128 - 10 * j),
171 rgb = c << 12 | c << 6
173 rgb = 0xF800 | c << 6
174 line[2 * u] = rgb
175 line[2 * u + 1] = rgb >> 8
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/testpngs/
A Dmakepngs.sh63 for c in gray gray-alpha rgb rgb-alpha
67 for c in gray rgb
85 mpg linear rgb-alpha 16 # error limits only
87 mpg sRGB rgb-alpha 16 # required: code coverage: pngread.c:2422 untested
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/test/images/
A DREADME.txt12 rgb-3c-16b.tiff
13 rgb-3c-8b.tiff
21 rgb-3c-8b.bmp
29 rgb-3c-8b.ppm
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_xpm.c186 static int color_to_rgb(char *spec, int speclen, Uint32 *rgb) in color_to_rgb() argument
189 static struct { char *name; Uint32 rgb; } known[] = { in color_to_rgb() member
900 *rgb = (Uint32)SDL_strtol(buf, NULL, 16); in color_to_rgb()
906 *rgb = known[i].rgb; in color_to_rgb()
1090 Uint32 rgb, pixel; in load_xpm() local
1105 if (!color_to_rgb(colname, (int)(p - colname), &rgb)) in load_xpm()
1111 c->r = (Uint8)(rgb >> 16); in load_xpm()
1112 c->g = (Uint8)(rgb >> 8); in load_xpm()
1113 c->b = (Uint8)(rgb); in load_xpm()
1116 pixel = rgb; in load_xpm()
[all …]
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/pages/netCfg/
A DnetCfg.acss34 color: rgb(0, 162, 255);
42 border: 1rpx solid rgb(0, 162, 255);
43 color: rgb(168, 168, 168);
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dpngdec.c244 uint8_t* volatile rgb = NULL; in ReadPNG() local
310 stride = (int64_t)(has_alpha ? 4 : 3) * width * sizeof(*rgb); in ReadPNG()
316 rgb = (uint8_t*)malloc((size_t)stride * height); in ReadPNG()
317 if (rgb == NULL) goto Error; in ReadPNG()
319 png_bytep row = rgb; in ReadPNG()
335 ok = has_alpha ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNG()
336 : WebPPictureImportRGB(pic, rgb, (int)stride); in ReadPNG()
347 free(rgb); in ReadPNG()
A Dpnmdec.c182 uint8_t* rgb = NULL, *tmp_rgb; in ReadPNM() local
219 rgb = (uint8_t*)malloc((size_t)stride * info.height); in ReadPNM()
220 if (rgb == NULL) goto End; in ReadPNM()
223 tmp_rgb = rgb; in ReadPNM()
244 ok = (info.depth == 4) ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNM()
245 : WebPPictureImportRGB(pic, rgb, (int)stride); in ReadPNM()
250 free((void*)rgb); in ReadPNM()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpicture_csp_enc.c310 y[i] = RGBToGray(rgb[0 * w + i], rgb[1 * w + i], rgb[2 * w + i]); in StoreGray()
831 for (i = 0; i < width; i += 1, rgb += 4) { in ConvertRowsToUV()
832 const int r = rgb[0], g = rgb[1], b = rgb[2]; in ConvertRowsToUV()
1099 const uint8_t* r_ptr = rgb + (swap_rb ? 2 : 0); in Import()
1100 const uint8_t* g_ptr = rgb + 1; in Import()
1122 memcpy(dst, rgb, width * 4); in Import()
1123 rgb += rgb_stride; in Import()
1130 const uint8_t* a_ptr = rgb + 3; in Import()
1139 rgb += rgb_stride; in Import()
1163 return (picture != NULL && rgb != NULL) in WebPPictureImportBGR()
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_yuv.c188 Uint8 *rgb, Uint32 rgb_stride, in yuv_rgb_sse() argument
208 … yuv420_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
212 … yuv420_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
216 … yuv420_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
220 … yuv420_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
240 … yuv422_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
297 Uint8 *rgb, Uint32 rgb_stride, in yuv_rgb_std() argument
312 yuv420_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
316 yuv420_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
320 yuv420_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/
A Drpng2-x.c223 } rgb[] = { variable
1196 r1 = rgb[bg[pat].rgb1_max].r; in rpng2_x_load_bg_image()
1197 g1 = rgb[bg[pat].rgb1_max].g; in rpng2_x_load_bg_image()
1198 b1 = rgb[bg[pat].rgb1_max].b; in rpng2_x_load_bg_image()
1199 r2 = rgb[bg[pat].rgb2_max].r; in rpng2_x_load_bg_image()
1200 g2 = rgb[bg[pat].rgb2_max].g; in rpng2_x_load_bg_image()
1201 b2 = rgb[bg[pat].rgb2_max].b; in rpng2_x_load_bg_image()
1968 r1 = rgb[bg[pat].rgb1_max].r; in rpng2_x_reload_bg_image()
1969 g1 = rgb[bg[pat].rgb1_max].g; in rpng2_x_reload_bg_image()
1970 b1 = rgb[bg[pat].rgb1_max].b; in rpng2_x_reload_bg_image()
[all …]
A Drpng2-win.c198 } rgb[] = { variable
871 uch r1_min = rgb[bg[pat].rgb1_min].r;
872 uch g1_min = rgb[bg[pat].rgb1_min].g;
873 uch b1_min = rgb[bg[pat].rgb1_min].b;
874 uch r2_min = rgb[bg[pat].rgb2_min].r;
944 r1 = rgb[bg[pat].rgb1_max].r;
945 g1 = rgb[bg[pat].rgb1_max].g;
946 b1 = rgb[bg[pat].rgb1_max].b;
947 r2 = rgb[bg[pat].rgb2_max].r;
948 g2 = rgb[bg[pat].rgb2_max].g;
[all …]

Completed in 51 milliseconds

123