/AliOS-Things-master/components/SDL2/src/video/ |
A D | SDL_pixels.c | 661 palette->colors = in SDL_AllocPalette() 671 SDL_memset(palette->colors, 0xFF, ncolors * sizeof(*palette->colors)); in SDL_AllocPalette() 719 if (colors != (palette->colors + firstcolor)) { in SDL_SetPaletteColors() 720 SDL_memcpy(palette->colors + firstcolor, colors, in SDL_SetPaletteColors() 761 colors[i].r = r; in SDL_DitherColors() 764 colors[i].g = g; in SDL_DitherColors() 768 colors[i].b = b; in SDL_DitherColors() 942 (src->colors, dst->colors, in Map1to1() 957 src->colors[i].r, src->colors[i].g, in Map1to1() 958 src->colors[i].b, src->colors[i].a); in Map1to1() [all …]
|
A D | SDL_bmp.c | 420 SDL_RWread(src, &palette->colors[i].b, 1, 1); in SDL_LoadBMP_RW() 421 SDL_RWread(src, &palette->colors[i].g, 1, 1); in SDL_LoadBMP_RW() 422 SDL_RWread(src, &palette->colors[i].r, 1, 1); in SDL_LoadBMP_RW() 423 palette->colors[i].a = SDL_ALPHA_OPAQUE; in SDL_LoadBMP_RW() 436 palette->colors[i].a = SDL_ALPHA_OPAQUE; in SDL_LoadBMP_RW() 744 SDL_Color *colors; in SDL_SaveBMP_RW() local 747 colors = surface->format->palette->colors; in SDL_SaveBMP_RW() 750 SDL_RWwrite(dst, &colors[i].b, 1, 1); in SDL_SaveBMP_RW() 751 SDL_RWwrite(dst, &colors[i].g, 1, 1); in SDL_SaveBMP_RW() 752 SDL_RWwrite(dst, &colors[i].r, 1, 1); in SDL_SaveBMP_RW() [all …]
|
A D | SDL_surface.c | 101 palette->colors[0].r = 0xFF; in SDL_CreateRGBSurfaceWithFormat() 102 palette->colors[0].g = 0xFF; in SDL_CreateRGBSurfaceWithFormat() 103 palette->colors[0].b = 0xFF; in SDL_CreateRGBSurfaceWithFormat() 104 palette->colors[1].r = 0x00; in SDL_CreateRGBSurfaceWithFormat() 105 palette->colors[1].g = 0x00; in SDL_CreateRGBSurfaceWithFormat() 106 palette->colors[1].b = 0x00; in SDL_CreateRGBSurfaceWithFormat() 991 if ((format->palette->colors[i].r != 0xFF) || in SDL_ConvertSurface() 993 (format->palette->colors[i].b != 0xFF)) in SDL_ConvertSurface() 1013 SDL_memcpy(convert->format->palette->colors, in SDL_ConvertSurface() 1014 format->palette->colors, in SDL_ConvertSurface() [all …]
|
A D | SDL_pixels_c.h | 41 extern void SDL_DitherColors(SDL_Color * colors, int bpp);
|
A D | SDL_blit_A.c | 54 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlpha() 55 dG = dstfmt->palette->colors[*dst].g; in BlitNto1SurfaceAlpha() 56 dB = dstfmt->palette->colors[*dst].b; in BlitNto1SurfaceAlpha() 100 dR = dstfmt->palette->colors[*dst].r; in BlitNto1PixelAlpha() 101 dG = dstfmt->palette->colors[*dst].g; in BlitNto1PixelAlpha() 102 dB = dstfmt->palette->colors[*dst].b; in BlitNto1PixelAlpha() 149 dR = dstfmt->palette->colors[*dst].r; in BlitNto1SurfaceAlphaKey() 150 dG = dstfmt->palette->colors[*dst].g; in BlitNto1SurfaceAlphaKey() 151 dB = dstfmt->palette->colors[*dst].b; in BlitNto1SurfaceAlphaKey()
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG_tga.c | 209 SDL_Color *colors = img->format->palette->colors; in IMG_LoadTGA_RW() local 219 colors[i].r = (c >> 7) & 0xf8; in IMG_LoadTGA_RW() 220 colors[i].g = (c >> 2) & 0xf8; in IMG_LoadTGA_RW() 221 colors[i].b = c << 3; in IMG_LoadTGA_RW() 226 colors[i].b = *p++; in IMG_LoadTGA_RW() 227 colors[i].g = *p++; in IMG_LoadTGA_RW() 228 colors[i].r = *p++; in IMG_LoadTGA_RW() 244 SDL_Color *colors = img->format->palette->colors; in IMG_LoadTGA_RW() local 246 colors[i].r = colors[i].g = colors[i].b = i; in IMG_LoadTGA_RW()
|
A D | IMG_lbm.c | 270 Image->format->palette->colors[i].r = *ptr++; in IMG_LoadLBM_RW() 271 Image->format->palette->colors[i].g = *ptr++; in IMG_LoadLBM_RW() 272 Image->format->palette->colors[i].b = *ptr++; in IMG_LoadLBM_RW() 286 Image->format->palette->colors[i].r = (*ptr++)/2; in IMG_LoadLBM_RW() 287 Image->format->palette->colors[i].g = (*ptr++)/2; in IMG_LoadLBM_RW() 288 Image->format->palette->colors[i].b = (*ptr++)/2; in IMG_LoadLBM_RW() 299 Image->format->palette->colors[i].r = Image->format->palette->colors[i%nbcolors].r; in IMG_LoadLBM_RW() 300 Image->format->palette->colors[i].g = Image->format->palette->colors[i%nbcolors].g; in IMG_LoadLBM_RW() 301 Image->format->palette->colors[i].b = Image->format->palette->colors[i%nbcolors].b; in IMG_LoadLBM_RW()
|
A D | IMG_pcx.c | 242 SDL_Color *colors = surface->format->palette->colors; in IMG_LoadPCX_RW() local 259 SDL_RWread(src, &colors[i].r, 1, 1); in IMG_LoadPCX_RW() 260 SDL_RWread(src, &colors[i].g, 1, 1); in IMG_LoadPCX_RW() 261 SDL_RWread(src, &colors[i].b, 1, 1); in IMG_LoadPCX_RW() 265 colors[i].r = pcxh.Colormap[i * 3]; in IMG_LoadPCX_RW() 266 colors[i].g = pcxh.Colormap[i * 3 + 1]; in IMG_LoadPCX_RW() 267 colors[i].b = pcxh.Colormap[i * 3 + 2]; in IMG_LoadPCX_RW()
|
A D | IMG_xpm.c | 1008 struct color_hash *colors = NULL; in load_xpm() local 1060 im_colors = image->format->palette->colors; in load_xpm() 1073 colors = create_colorhash(ncolors); in load_xpm() 1074 if (!colors) { in load_xpm() 1118 add_colorhash(colors, nextkey, cpp, pixel); in load_xpm() 1138 dst[x] = (Uint8)QUICK_COLORHASH(colors, in load_xpm() 1142 dst[x] = (Uint8)get_colorhash(colors, in load_xpm() 1147 ((Uint32*)dst)[x] = get_colorhash(colors, in load_xpm() 1166 free_colorhash(colors); in load_xpm()
|
A D | IMG_bmp.c | 458 SDL_RWread(src, &palette->colors[i].b, 1, 1); in LoadBMP_RW() 459 SDL_RWread(src, &palette->colors[i].g, 1, 1); in LoadBMP_RW() 460 SDL_RWread(src, &palette->colors[i].r, 1, 1); in LoadBMP_RW() 461 palette->colors[i].a = SDL_ALPHA_OPAQUE; in LoadBMP_RW() 465 SDL_RWread(src, &palette->colors[i].b, 1, 1); in LoadBMP_RW() 466 SDL_RWread(src, &palette->colors[i].g, 1, 1); in LoadBMP_RW() 467 SDL_RWread(src, &palette->colors[i].r, 1, 1); in LoadBMP_RW() 468 SDL_RWread(src, &palette->colors[i].a, 1, 1); in LoadBMP_RW() 474 palette->colors[i].a = SDL_ALPHA_OPAQUE; in LoadBMP_RW()
|
A D | IMG_png.c | 442 palette->colors[i].r = (Uint8)i; in IMG_LoadPNG_RW() 443 palette->colors[i].g = (Uint8)i; in IMG_LoadPNG_RW() 444 palette->colors[i].b = (Uint8)i; in IMG_LoadPNG_RW() 449 palette->colors[i].b = png_palette[i].blue; in IMG_LoadPNG_RW() 450 palette->colors[i].g = png_palette[i].green; in IMG_LoadPNG_RW() 451 palette->colors[i].r = png_palette[i].red; in IMG_LoadPNG_RW() 582 color_ptr[i].red = palette->colors[i].r; in IMG_SavePNG_RW_libpng() 583 color_ptr[i].green = palette->colors[i].g; in IMG_SavePNG_RW_libpng() 584 color_ptr[i].blue = palette->colors[i].b; in IMG_SavePNG_RW_libpng()
|
A D | IMG_pnm.c | 170 SDL_Color *c = surface->format->palette->colors; in IMG_LoadPNM_RW() 177 SDL_Color *c = surface->format->palette->colors; in IMG_LoadPNM_RW()
|
A D | nanosvgrast.h | 115 unsigned int colors[256]; member 991 cr = cache->colors[0] & 0xff; in nsvg__scanlineSolid() 992 cg = (cache->colors[0] >> 8) & 0xff; in nsvg__scanlineSolid() 993 cb = (cache->colors[0] >> 16) & 0xff; in nsvg__scanlineSolid() 994 ca = (cache->colors[0] >> 24) & 0xff; in nsvg__scanlineSolid() 1034 c = cache->colors[(int)nsvg__clampf(gy*255.0f, 0, 255.0f)]; in nsvg__scanlineSolid() 1081 c = cache->colors[(int)nsvg__clampf(gd*255.0f, 0, 255.0f)]; in nsvg__scanlineSolid() 1280 cache->colors[i] = 0; in nsvg__initPaint() 1295 cache->colors[i] = ca; in nsvg__initPaint() 1310 cache->colors[ia+j] = nsvg__lerpRGBA(ca,cb,u); in nsvg__initPaint() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/ |
A D | makepng.c | 210 if (*colors) in image_size_of_type() 261 switch (colors[0]) in generate_palette() 265 colors[0]); in generate_palette() 269 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255, in generate_palette() 274 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], in generate_palette() 279 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255, in generate_palette() 284 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], in generate_palette() 894 colors); in write_png() 1674 *colors = ncolors; in parse_color() 1686 unsigned int colors[5]; in main() local [all …]
|
/AliOS-Things-master/components/SDL2/src/video/haiku/ |
A D | SDL_bmessagebox.cc | 168 SetBackgroundColor(&aColorScheme->colors[SDL_MESSAGEBOX_COLOR_BACKGROUND]); in ApplyAndParseColorScheme() 169 fTextColor = ConvertColorType(&aColorScheme->colors[SDL_MESSAGEBOX_COLOR_TEXT]); in ApplyAndParseColorScheme() 170 SetButtonColors(&aColorScheme->colors[SDL_MESSAGEBOX_COLOR_BUTTON_BORDER], in ApplyAndParseColorScheme() 171 &aColorScheme->colors[SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND], in ApplyAndParseColorScheme() 172 &aColorScheme->colors[SDL_MESSAGEBOX_COLOR_TEXT], in ApplyAndParseColorScheme() 173 &aColorScheme->colors[SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED]); in ApplyAndParseColorScheme()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testautomation_pixels.c | 352 SDLTest_AssertCheck(result->colors != NULL, "Verify value of result.colors is not NULL"); in pixels_allocFreePalette() 353 if (result->colors != NULL) { in pixels_allocFreePalette() 355 …DLTest_AssertCheck(result->colors[i].r == 255, "Verify value of result.colors[%d].r; expected: 255… in pixels_allocFreePalette() 356 …DLTest_AssertCheck(result->colors[i].g == 255, "Verify value of result.colors[%d].g; expected: 255… in pixels_allocFreePalette() 357 …DLTest_AssertCheck(result->colors[i].b == 255, "Verify value of result.colors[%d].b; expected: 255… in pixels_allocFreePalette()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/dbs/xtiff/ |
A D | xtiff.c | 581 XColor *colors = NULL; in GetVisual() local 598 MCHECK(colors); in GetVisual() 602 colors[i].red = redMap[i]; in GetVisual() 603 colors[i].green = greenMap[i]; in GetVisual() 604 colors[i].blue = blueMap[i]; in GetVisual() 633 MCHECK(colors); in GetVisual() 636 colors[i].pixel = i; in GetVisual() 637 colors[i].red = redMap[i]; in GetVisual() 639 colors[i].blue = blueMap[i]; in GetVisual() 682 if (colors != NULL) in GetVisual() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/ |
A D | utils.c | 255 uint32_t colors[COLOR_HASH_SIZE]; in WebPGetColorPalette() local 273 colors[key] = last_pix; in WebPGetColorPalette() 280 } else if (colors[key] == last_pix) { in WebPGetColorPalette() 296 palette[num_colors] = colors[i]; in WebPGetColorPalette()
|
/AliOS-Things-master/components/SDL2/src/joystick/hidapi/ |
A D | SDL_hidapi_ps4.c | 191 static const Uint8 colors[7][3] = { in SetLedsForPlayerIndex() local 202 player_index %= SDL_arraysize(colors); in SetLedsForPlayerIndex() 207 effects->ucLedRed = colors[player_index][0]; in SetLedsForPlayerIndex() 208 effects->ucLedGreen = colors[player_index][1]; in SetLedsForPlayerIndex() 209 effects->ucLedBlue = colors[player_index][2]; in SetLedsForPlayerIndex()
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/ |
A D | genpng.c | 91 } colors[] = variable 109 #define color_count ((sizeof colors)/(sizeof colors[0])) 118 if (strcmp(colors[icolor].name, arg) == 0) in color_of() 119 return colors+icolor; in color_of()
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_messagebox.h | 88 SDL_MessageBoxColor colors[SDL_MESSAGEBOX_COLOR_MAX]; member
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | usage.txt | 209 will display the image with half saturated colors. 283 -colors N Reduce image to at most N colors. This reduces the 288 colors. (-colors is the recommended name, -quantize 321 more than 256 colors, -colors 256 is assumed (unless 322 you specify a smaller number of colors). If you 323 specify -fast, the default number of colors is 216. 340 is emitted if -colors is specified; otherwise, 24-bit 360 quantizing colors; this is slow but usually produces 370 set of colors to be used. The FILE must be a GIF 371 or PPM file. This option overrides -colors and [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_objx/ |
A D | lv_gauge.h | 81 void lv_gauge_set_needle_count(lv_obj_t * gauge, uint8_t needle_cnt, const lv_color_t colors[]);
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/ |
A D | gifdec.c | 93 const GifColorType* colors; in Remap() local 98 colors = cmap->Colors; in Remap() 104 const GifColorType c = colors[src[i]]; in Remap()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/ |
A D | alpha_enc.c | 182 int colors = 0; in GetNumColors() local 193 if (color[j] > 0) ++colors; in GetNumColors() 195 return colors; in GetNumColors()
|