/external/opencv/otherlibs/highgui/ |
D | utils.cpp | 341 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ) in CvtPaletteToGray() argument 346 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) ); in CvtPaletteToGray() 351 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative ) in FillGrayPalette() argument 359 palette[i].b = palette[i].g = palette[i].r = (uchar)val; in FillGrayPalette() 360 palette[i].a = 0; in FillGrayPalette() 365 bool IsColorPalette( PaletteEntry* palette, int bpp ) in IsColorPalette() argument 371 if( palette[i].b != palette[i].g || in IsColorPalette() 372 palette[i].b != palette[i].r ) in IsColorPalette() 444 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette ) in FillColorRow8() argument 449 *((PaletteEntry*)(data-3)) = palette[*indices++]; in FillColorRow8() [all …]
|
D | utils.h | 96 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative = false ); 97 bool IsColorPalette( PaletteEntry* palette, int bpp ); 98 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ); 104 uchar* FillColorRow8( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 105 uchar* FillGrayRow8( uchar* data, uchar* indices, int len, uchar* palette ); 106 uchar* FillColorRow4( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 107 uchar* FillGrayRow4( uchar* data, uchar* indices, int len, uchar* palette ); 108 uchar* FillColorRow1( uchar* data, uchar* indices, int len, PaletteEntry* palette ); 109 uchar* FillGrayRow1( uchar* data, uchar* indices, int len, uchar* palette );
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
D | SDL_pixels.c | 56 format->palette = NULL; in SDL_AllocFormat() 126 format->palette = (SDL_Palette *)SDL_malloc(sizeof(SDL_Palette)); in SDL_AllocFormat() 127 if ( format->palette == NULL ) { in SDL_AllocFormat() 132 (format->palette)->ncolors = ncolors; in SDL_AllocFormat() 133 (format->palette)->colors = (SDL_Color *)SDL_malloc( in SDL_AllocFormat() 134 (format->palette)->ncolors*sizeof(SDL_Color)); in SDL_AllocFormat() 135 if ( (format->palette)->colors == NULL ) { in SDL_AllocFormat() 190 format->palette->colors[i].r=r; in SDL_AllocFormat() 194 format->palette->colors[i].g=g; in SDL_AllocFormat() 198 format->palette->colors[i].b=b; in SDL_AllocFormat() [all …]
|
D | SDL_bmp.c | 58 SDL_Palette *palette; in SDL_LoadBMP_RW() local 213 palette = (surface->format)->palette; in SDL_LoadBMP_RW() 214 if ( palette ) { in SDL_LoadBMP_RW() 220 SDL_RWread(src, &palette->colors[i].b, 1, 1); in SDL_LoadBMP_RW() 221 SDL_RWread(src, &palette->colors[i].g, 1, 1); in SDL_LoadBMP_RW() 222 SDL_RWread(src, &palette->colors[i].r, 1, 1); in SDL_LoadBMP_RW() 223 palette->colors[i].unused = 0; in SDL_LoadBMP_RW() 227 SDL_RWread(src, &palette->colors[i].b, 1, 1); in SDL_LoadBMP_RW() 228 SDL_RWread(src, &palette->colors[i].g, 1, 1); in SDL_LoadBMP_RW() 229 SDL_RWread(src, &palette->colors[i].r, 1, 1); in SDL_LoadBMP_RW() [all …]
|
D | SDL_surface.c | 605 if ( dst->format->palette || (color == 0) ) { in SDL_FillRect() 801 if ( format->palette != NULL ) { in SDL_ConvertSurface() 803 for ( i=0; i<format->palette->ncolors; ++i ) { in SDL_ConvertSurface() 804 if ( (format->palette->colors[i].r != 0) || in SDL_ConvertSurface() 805 (format->palette->colors[i].g != 0) || in SDL_ConvertSurface() 806 (format->palette->colors[i].b != 0) ) in SDL_ConvertSurface() 809 if ( i == format->palette->ncolors ) { in SDL_ConvertSurface() 832 if ( format->palette && convert->format->palette ) { in SDL_ConvertSurface() 833 SDL_memcpy(convert->format->palette->colors, in SDL_ConvertSurface() 834 format->palette->colors, in SDL_ConvertSurface() [all …]
|
/external/libpng/ |
D | pngrtran.c | 164 png_set_dither(png_structp png_ptr, png_colorp palette, in png_set_dither() argument 247 palette[i] = palette[j]; in png_set_dither() 269 tmp_color = palette[j]; in png_set_dither() 270 palette[j] = palette[i]; in png_set_dither() 271 palette[i] = tmp_color; in png_set_dither() 287 min_d = PNG_COLOR_DIST(palette[d_index], palette[0]); in png_set_dither() 292 d = PNG_COLOR_DIST(palette[d_index], palette[k]); in png_set_dither() 364 d = PNG_COLOR_DIST(palette[i], palette[j]); in png_set_dither() 411 palette[png_ptr->index_to_palette[j]] in png_set_dither() 412 = palette[num_new_palette]; in png_set_dither() [all …]
|
D | example.c | 280 png_colorp palette; 292 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) 298 png_set_dither(png_ptr, palette, num_palette, 566 png_colorp palette; 645 palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH 648 png_set_PLTE(png_ptr, info_ptr, palette, PNG_MAX_PALETTE_LENGTH); 807 png_free(png_ptr, palette); 808 palette = NULL;
|
/external/qemu/distrib/libpng-1.2.19/ |
D | pngrtran.c | 141 png_set_dither(png_structp png_ptr, png_colorp palette, in png_set_dither() argument 219 palette[i] = palette[j]; in png_set_dither() 240 tmp_color = palette[j]; in png_set_dither() 241 palette[j] = palette[i]; in png_set_dither() 242 palette[i] = tmp_color; in png_set_dither() 258 min_d = PNG_COLOR_DIST(palette[d_index], palette[0]); in png_set_dither() 263 d = PNG_COLOR_DIST(palette[d_index], palette[k]); in png_set_dither() 338 d = PNG_COLOR_DIST(palette[i], palette[j]); in png_set_dither() 385 palette[png_ptr->index_to_palette[j]] in png_set_dither() 386 = palette[num_new_palette]; in png_set_dither() [all …]
|
/external/quake/quake/src/WinQuake/ |
D | vid.h | 62 void VID_SetPalette (unsigned char *palette); 65 void VID_ShiftPalette (unsigned char *palette); 68 void VID_Init (unsigned char *palette); 79 int VID_SetMode (int modenum, unsigned char *palette);
|
D | vid_dos.cpp | 90 void VID_Init (unsigned char *palette) in VID_Init() argument 123 VID_SetMode (vid_modenum, palette); in VID_Init() 198 int VID_SetMode (int modenum, unsigned char *palette) in VID_SetMode() argument 243 if (!VID_SetMode (vid_modenum, palette)) // restore prior mode in VID_SetMode() 265 (*pcurrentmode->setpalette) (&vid, pcurrentmode, palette); in VID_SetMode() 285 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 287 if (palette != vid_current_palette) in VID_SetPalette() 288 Q_memcpy(vid_current_palette, palette, 768); in VID_SetPalette() 298 void VID_ShiftPalette (unsigned char *palette) in VID_ShiftPalette() argument 301 VID_SetPalette (palette); in VID_ShiftPalette()
|
D | vid_null.cpp | 37 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 41 void VID_ShiftPalette (unsigned char *palette) in VID_ShiftPalette() argument 45 void VID_Init (unsigned char *palette) in VID_Init() argument
|
D | gl_vidandroid.cpp | 81 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 101 pal = palette; in VID_SetPalette() 274 unsigned char palette[768]; in Check_Gamma() local 292 palette[i] = (unsigned char) inf; in Check_Gamma() 296 memcpy (pal, palette, sizeof(palette)); in Check_Gamma() 299 void VID_Init(unsigned char *palette) in VID_Init() argument 334 Check_Gamma(palette); in VID_Init() 335 VID_SetPalette(palette); in VID_Init()
|
D | vid_svgalib.cpp | 239 unsigned char palette[768]; in VID_Gamma_f() local 254 palette[i] = inf; in VID_Gamma_f() 257 VID_SetPalette (palette); in VID_Gamma_f() 447 void VID_SetPalette(byte *palette) in VID_SetPalette() argument 457 memcpy(vid_current_palette, palette, sizeof(vid_current_palette)); in VID_SetPalette() 464 *(tp++) = *(palette++) >> 2; in VID_SetPalette() 472 int VID_SetMode (int modenum, unsigned char *palette) in VID_SetMode() argument 538 VID_SetPalette(palette); in VID_SetMode() 555 void VID_Init(unsigned char *palette) in VID_Init() argument 603 VID_SetMode(current_mode, palette); in VID_Init() [all …]
|
D | gl_vidlinux.cpp | 214 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 231 pal = palette; in VID_SetPalette() 582 unsigned char palette[768]; in Check_Gamma() local 602 palette[i] = inf; in Check_Gamma() 605 memcpy (pal, palette, sizeof(palette)); in Check_Gamma() 608 void VID_Init(unsigned char *palette) in VID_Init() argument 688 Check_Gamma(palette); in VID_Init() 689 VID_SetPalette(palette); in VID_Init()
|
D | vid_x.cpp | 442 void VID_Init (unsigned char *palette) in VID_Init() argument 605 VID_SetPalette(palette); in VID_Init() 681 void VID_SetPalette(unsigned char *palette) in VID_SetPalette() argument 688 st2d_8to16table[i]= xlib_rgb16(palette[i*3], palette[i*3+1],palette[i*3+2]); in VID_SetPalette() 689 st2d_8to24table[i]= xlib_rgb24(palette[i*3], palette[i*3+1],palette[i*3+2]); in VID_SetPalette() 694 if (palette != current_palette) in VID_SetPalette() 695 memcpy(current_palette, palette, 768); in VID_SetPalette() 700 colors[i].red = palette[i*3] * 257; in VID_SetPalette() 701 colors[i].green = palette[i*3+1] * 257; in VID_SetPalette() 702 colors[i].blue = palette[i*3+2] * 257; in VID_SetPalette()
|
/external/webkit/Source/WebKit/qt/WebCoreSupport/ |
D | FullScreenVideoWidget.cpp | 44 QPalette palette(this->palette()); in FullScreenVideoWidget() local 45 palette.setColor(QPalette::Base, Qt::black); in FullScreenVideoWidget() 46 palette.setColor(QPalette::Background, Qt::black); in FullScreenVideoWidget() 47 setPalette(palette); in FullScreenVideoWidget()
|
D | QtFallbackWebPopup.cpp | 130 QPalette palette = m_combo->palette(); in show() local 132 palette.setColor(QPalette::Background, backgroundColor); in show() 134 palette.setColor(QPalette::Foreground, foregroundColor); in show() 135 m_combo->setPalette(palette); in show()
|
/external/quake/quake/src/QW/client/ |
D | vid.h | 62 void VID_SetPalette (unsigned char *palette); 65 void VID_ShiftPalette (unsigned char *palette); 68 void VID_Init (unsigned char *palette); 79 int VID_SetMode (int modenum, unsigned char *palette);
|
D | vid_null.c | 18 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 22 void VID_ShiftPalette (unsigned char *palette) in VID_ShiftPalette() argument 26 void VID_Init (unsigned char *palette) in VID_Init() argument
|
D | vid_svgalib.c | 240 unsigned char palette[768]; in VID_Gamma_f() local 255 palette[i] = inf; in VID_Gamma_f() 258 VID_SetPalette (palette); in VID_Gamma_f() 448 void VID_SetPalette(byte *palette) in VID_SetPalette() argument 458 memcpy(vid_current_palette, palette, sizeof(vid_current_palette)); in VID_SetPalette() 465 *(tp++) = *(palette++) >> 2; in VID_SetPalette() 473 int VID_SetMode (int modenum, unsigned char *palette) in VID_SetMode() argument 539 VID_SetPalette(palette); in VID_SetMode() 556 void VID_Init(unsigned char *palette) in VID_Init() argument 606 VID_SetMode(current_mode, palette); in VID_Init() [all …]
|
D | gl_vidandroid.c | 58 void VID_SetPalette (unsigned char *palette) in VID_SetPalette() argument 77 pal = palette; in VID_SetPalette() 216 void VID_Init(unsigned char *palette) in VID_Init() argument 251 VID_SetPalette(palette); in VID_Init()
|
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/ |
D | SDL_DirectFB_video.c | 215 IDirectFBPalette *palette; member 293 SDL_Palette *palette; in AllocatePalette() local 296 palette = SDL_calloc (1, sizeof(SDL_Palette)); in AllocatePalette() 297 if (!palette) in AllocatePalette() 310 palette->ncolors = size; in AllocatePalette() 311 palette->colors = colors; in AllocatePalette() 313 return palette; in AllocatePalette() 354 if (!format->palette) in DFBToSDLPixelFormat() 355 format->palette = AllocatePalette(256); in DFBToSDLPixelFormat() 609 if (current->hwdata->palette) in DirectFB_SetVideoMode() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/video/photon/ |
D | SDL_ph_image.c | 37 PgColor_t* palette=NULL; in ph_SetupImage() local 77 palette=SDL_malloc(_Pg_MAX_PALETTE*sizeof(PgColor_t)); in ph_SetupImage() 78 if (palette==NULL) in ph_SetupImage() 83 PgGetPalette(palette); in ph_SetupImage() 86 …if ((SDL_Image = PhCreateImage(NULL, screen->w, screen->h, type, palette, _Pg_MAX_PALETTE, 1)) == … in ph_SetupImage() 89 SDL_free(palette); in ph_SetupImage() 389 if (SDL_Image->palette) in ph_DestroyImage() 391 SDL_free(SDL_Image->palette); in ph_DestroyImage() 665 if ((surface->format->palette) && (color<=surface->format->palette->ncolors)) in ph_ExpandColor() 667 truecolor=PgRGB(surface->format->palette->colors[color].r, in ph_ExpandColor() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder_libpng.cpp | 563 png_colorp palette; in decodePalette() local 569 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); in decodePalette() 599 *colorPtr++ = SkPreMultiplyARGB(*trans++, palette->red, palette->green, palette->blue); in decodePalette() 600 palette++; in decodePalette() 605 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue); in decodePalette() 606 palette++; in decodePalette() 968 png_color* SK_RESTRICT palette, in pack_palette() argument 1000 palette[i].red = SkUnPreMultiply::ApplyScale(s, SkGetPackedR32(c)); in pack_palette() 1001 palette[i].green = SkUnPreMultiply::ApplyScale(s,SkGetPackedG32(c)); in pack_palette() 1002 palette[i].blue = SkUnPreMultiply::ApplyScale(s, SkGetPackedB32(c)); in pack_palette() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/video/aalib/ |
D | SDL_aavideo.h | 42 aa_palette palette; member 54 #define AA_palette (this->hidden->palette)
|