Home
last modified time | relevance | path

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

123

/external/qemu/distrib/sdl-1.2.15/test/
Dtestwin.c27 int ncolors; in DrawPict() local
44 ncolors = picture->format->palette->ncolors; in DrawPict()
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color)); in DrawPict()
46 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color)); in DrawPict()
48 ncolors*sizeof(SDL_Color)); in DrawPict()
53 ncolors = 256; in DrawPict()
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color)); in DrawPict()
55 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color)); in DrawPict()
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors) && in DrawPict()
151 memcpy(cmap, colors, ncolors*sizeof(SDL_Color)); in DrawPict()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_pixels.c122 int ncolors = 1<<bpp; in SDL_AllocFormat() local
124 fprintf(stderr,"bpp=%d ncolors=%d\n",bpp,ncolors); in SDL_AllocFormat()
132 (format->palette)->ncolors = ncolors; in SDL_AllocFormat()
134 (format->palette)->ncolors*sizeof(SDL_Color)); in SDL_AllocFormat()
186 for(i=0; i < ncolors; ++i) { in SDL_AllocFormat()
208 } else if ( ncolors == 2 ) { in SDL_AllocFormat()
219 (format->palette)->ncolors*sizeof(SDL_Color)); in SDL_AllocFormat()
323 for ( i=0; i<pal->ncolors; ++i ) { in SDL_FindColor()
424 int ncolors) in SDL_ApplyGamma() argument
428 for ( i=0; i<ncolors; ++i ) { in SDL_ApplyGamma()
[all …]
DSDL_video.c271 0, vf->palette->ncolors, vf->palette->colors); in SDL_VideoInit()
545 SDL_VideoSurface->format->palette->ncolors* in SDL_CreateShadowSurface()
720 video->SetColors(this, 0, vf->palette->ncolors, in SDL_SetVideoMode()
1157 int firstcolor, int ncolors) in SetPalette_logical() argument
1164 ncolors * sizeof(*colors)); in SetPalette_logical()
1177 ncolors * sizeof(*colors)); in SetPalette_logical()
1184 SDL_Color *colors, int firstcolor, int ncolors) in SetPalette_physical() argument
1194 colors, ncolors * sizeof(*colors)); in SetPalette_physical()
1218 video->gammacols = SDL_malloc(pp->ncolors in SetPalette_physical()
1223 pp->ncolors); in SetPalette_physical()
[all …]
DSDL_bmp.c252 palette->ncolors = biClrUsed; in SDL_LoadBMP_RW()
467 biClrUsed = surface->format->palette->ncolors; in SDL_SaveBMP_RW()
489 int ncolors; in SDL_SaveBMP_RW() local
492 ncolors = surface->format->palette->ncolors; in SDL_SaveBMP_RW()
493 for ( i=0; i<ncolors; ++i ) { in SDL_SaveBMP_RW()
DSDL_pixels_c.h46 extern void SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors);
/external/jpeg/
Drdcolmap.c51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local
55 for (index = 0; index < ncolors; index++) { in add_map_entry()
63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry()
67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry()
68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry()
69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
Drdrle.c124 if (source->header.ncolors == 1 && source->header.ncmap == 0) { in start_input_rle()
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) { in start_input_rle()
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) { in start_input_rle()
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) { in start_input_rle()
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) { in start_input_rle()
166 (JDIMENSION) (width * source->header.ncolors), in start_input_rle()
296 for (channel = 0; channel < source->header.ncolors; channel++) { in load_image()
/external/qemu/distrib/jpeg-6b/
Drdcolmap.c51 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local
55 for (index = 0; index < ncolors; index++) { in add_map_entry()
63 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry()
67 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry()
68 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry()
69 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
Drdrle.c124 if (source->header.ncolors == 1 && source->header.ncmap == 0) { in start_input_rle()
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) { in start_input_rle()
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) { in start_input_rle()
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) { in start_input_rle()
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) { in start_input_rle()
166 (JDIMENSION) (width * source->header.ncolors), in start_input_rle()
296 for (channel = 0; channel < source->header.ncolors; channel++) { in load_image()
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11video.c66 static int X11_SetColors(_THIS, int firstcolor, int ncolors,
987 int ncolors; in X11_CreateWindow() local
990 ncolors = SDL_Visual->map_entries; in X11_CreateWindow()
991 SDL_XPixels = SDL_malloc(ncolors * sizeof(int)); in X11_CreateWindow()
996 SDL_memset(SDL_XPixels, 0, ncolors * sizeof(*SDL_XPixels)); in X11_CreateWindow()
1376 int X11_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in X11_SetColors() argument
1388 xcmap = SDL_stack_alloc(XColor, ncolors); in X11_SetColors()
1391 for ( i=0; i<ncolors; ++i ) { in X11_SetColors()
1398 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors); in X11_SetColors()
1416 int nc = this->screen->format->palette->ncolors; in X11_SetColors()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA2/
DSDL_epocvideo.cpp118 static int EPOC_SetColors(_THIS, int firstcolor, int ncolors,
290 int EPOC_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in EPOC_SetColors() argument
292 if ((firstcolor+ncolors) > 256) in EPOC_SetColors()
299 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
310 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
323 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
337 if(EpocSdlEnv::SetPalette(firstcolor, ncolors, palette) == KErrNone) in EPOC_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/dga/
DSDL_dgavideo.c50 static int DGA_SetColors(_THIS, int firstcolor, int ncolors,
994 static int DGA_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in DGA_SetColors() argument
1003 xcmap = SDL_stack_alloc(XColor, ncolors); in DGA_SetColors()
1004 for ( i=0; i<ncolors; ++i ) { in DGA_SetColors()
1012 XStoreColors(DGA_Display, DGA_colormap, xcmap, ncolors); in DGA_SetColors()
1023 int i, ncolors; in DGA_SetGammaRamp() local
1034 ncolors = 64; /* Is this right? */ in DGA_SetGammaRamp()
1036 ncolors = 256; in DGA_SetGammaRamp()
1038 for ( i=0; i<ncolors; ++i ) { in DGA_SetGammaRamp()
1039 Uint8 c = (256 * i / ncolors); in DGA_SetGammaRamp()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/ggi/
DSDL_ggivideo.c55 static int GGI_SetColors(_THIS, int firstcolor, int ncolors,
355 int GGI_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in GGI_SetColors() argument
361 for (i = 0; i < ncolors; i++) in GGI_SetColors()
368 ggiSetPalette(VIS, firstcolor, ncolors, pal); in GGI_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
DSDL_ph_video.c47 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
594 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in ph_SetColors() argument
608 for (i=firstcolor; i<firstcolor+ncolors; i++) in ph_SetColors()
622 for (i=firstcolor; i<firstcolor+ncolors; i++) in ph_SetColors()
630 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0); in ph_SetColors()
637 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0); in ph_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/windib/
DSDL_dibvideo.c95 static int DIB_SetColors(_THIS, int firstcolor, int ncolors,
308 int ncolors; in DIB_CreatePalette() local
310 ncolors = (1 << bpp); in DIB_CreatePalette()
312 ncolors*sizeof(PALETTEENTRY)); in DIB_CreatePalette()
314 palette->palNumEntries = ncolors; in DIB_CreatePalette()
316 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry); in DIB_CreatePalette()
859 binfo_size += video->format->palette->ncolors *
892 video->format->palette->ncolors*sizeof(RGBQUAD));
1014 int DIB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
1030 for ( i=0; i<ncolors; ++i ) {
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
DSDL_nxvideo.c45 static int NX_SetColors (_THIS, int firstcolor, int ncolors, SDL_Color * colors) ;
398 int NX_SetColors (_THIS, int firstcolor, int ncolors, SDL_Color * colors) in NX_SetColors() argument
405 if (ncolors > 256) return 0 ; in NX_SetColors()
407 pal.count = ncolors ; in NX_SetColors()
408 for (i = 0; i < ncolors; ++ i) { in NX_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
DSDL_dx5video.c425 static int DX5_SetColors(_THIS, int firstcolor, int ncolors,
2191 static void DX5_CompressPalette(_THIS, SDL_Color *colors, int ncolors, int maxcolors) argument
2205 if ( maxcolors > ncolors ) {
2206 maxcolors = ncolors;
2218 pool = SDL_stack_alloc(int, 2*ncolors);
2224 SDL_memset(seen, 0, ncolors*sizeof(int));
2225 order = pool+ncolors;
2229 for ( i=0; i<ncolors; ++i ) {
2244 for ( i=0; i<ncolors; ++i ) {
2270 int DX5_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/xbios/
DSDL_xbios.c77 static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
975 static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in XBIOS_SetColors() argument
984 for (i=0;i<ncolors;i++) in XBIOS_SetColors()
995 for(i = 0; i < ncolors; i++) in XBIOS_SetColors()
1003 EsetPalette(firstcolor,ncolors,TT_palette); in XBIOS_SetColors()
1007 for(i = 0; i < ncolors; i++) in XBIOS_SetColors()
1015 VsetRGB(firstcolor,ncolors,F30_palette); in XBIOS_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/nds/
DSDL_ndsvideo.c44 static int NDS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
472 int NDS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in NDS_SetColors() argument
483 int i,j=firstcolor+ncolors; in NDS_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/
DSDL_DirectFB_video.c57 static int DirectFB_SetColors(_THIS, int firstcolor, int ncolors,
310 palette->ncolors = size; in AllocatePalette()
1054 int DirectFB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in DirectFB_SetColors() argument
1064 if (firstcolor + ncolors > 256) in DirectFB_SetColors()
1065 ncolors = 256 - firstcolor; in DirectFB_SetColors()
1067 if (ncolors > 0) in DirectFB_SetColors()
1070 DFBColor entries[ncolors]; in DirectFB_SetColors()
1072 for (i=0; i<ncolors; i++) in DirectFB_SetColors()
1080 palette->SetEntries (palette, entries, ncolors, firstcolor); in DirectFB_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/dummy/
DSDL_nullvideo.c55 static int DUMMY_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
223 int DUMMY_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in DUMMY_SetColors() argument
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/
DSDL_aavideo.c47 static int AA_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
352 int AA_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in AA_SetColors() argument
356 for ( i=0; i < ncolors; i++ ) { in AA_SetColors()
/external/qemu/distrib/sdl-1.2.15/include/
DSDL_video.h64 int ncolors; member
467 SDL_Color *colors, int firstcolor, int ncolors);
487 int ncolors);
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
DSDL_wimpvideo.c48 int WIMP_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
355 int WIMP_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in WIMP_SetColors() argument
362 for (j = 0; j < ncolors; j++) in WIMP_SetColors()
/external/qemu/distrib/sdl-1.2.15/src/video/macrom/
DSDL_romvideo.c59 static int ROM_SetColors(_THIS, int firstcolor, int ncolors,
671 static int ROM_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in ROM_SetColors() argument
684 if ( (firstcolor+ncolors) > ((**cTab).ctSize+1) ) { in ROM_SetColors()
689 for ( i=0; i< ncolors; ++i ) { in ROM_SetColors()

123