Searched refs:ncolors (Results 1 - 25 of 55) sorted by relevance

123

/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestwin.c27 int ncolors; local
44 ncolors = picture->format->palette->ncolors;
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
46 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
48 ncolors*sizeof(SDL_Color));
53 ncolors = 256;
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
55 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors)
[all...]
/external/jpeg/
H A Drdcolmap.c51 int ncolors = cinfo->actual_number_of_colors; local
55 for (index = 0; index < ncolors; index++) {
63 if (ncolors >= (MAXJSAMPLE+1))
67 colormap0[ncolors] = (JSAMPLE) R;
68 colormap1[ncolors] = (JSAMPLE) G;
69 colormap2[ncolors] = (JSAMPLE) B;
H A Drdrle.c124 if (source->header.ncolors == 1 && source->header.ncmap == 0) {
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) {
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) {
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) {
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) {
166 (JDIMENSION) (width * source->header.ncolors),
296 for (channel = 0; channel < source->header.ncolors; channel++) {
/external/qemu/distrib/jpeg-6b/
H A Drdcolmap.c51 int ncolors = cinfo->actual_number_of_colors; local
55 for (index = 0; index < ncolors; index++) {
63 if (ncolors >= (MAXJSAMPLE+1))
67 colormap0[ncolors] = (JSAMPLE) R;
68 colormap1[ncolors] = (JSAMPLE) G;
69 colormap2[ncolors] = (JSAMPLE) B;
H A Drdrle.c124 if (source->header.ncolors == 1 && source->header.ncmap == 0) {
127 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) {
131 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) {
135 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) {
139 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) {
166 (JDIMENSION) (width * source->header.ncolors),
296 for (channel = 0; channel < source->header.ncolors; channel++) {
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_pixels.c122 int ncolors = 1<<bpp; local
124 fprintf(stderr,"bpp=%d ncolors=%d\n",bpp,ncolors);
132 (format->palette)->ncolors = ncolors;
134 (format->palette)->ncolors*sizeof(SDL_Color));
186 for(i=0; i < ncolors; ++i) {
208 } else if ( ncolors == 2 ) {
219 (format->palette)->ncolors*sizeof(SDL_Color));
323 for ( i=0; i<pal->ncolors;
423 SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors) argument
[all...]
H A DSDL_pixels_c.h46 extern void SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors);
H A DSDL_bmp.c252 palette->ncolors = biClrUsed;
467 biClrUsed = surface->format->palette->ncolors;
489 int ncolors; local
492 ncolors = surface->format->palette->ncolors;
493 for ( i=0; i<ncolors; ++i ) {
H A DSDL_video.c271 0, vf->palette->ncolors, vf->palette->colors);
545 SDL_VideoSurface->format->palette->ncolors*
720 video->SetColors(this, 0, vf->palette->ncolors,
1157 int firstcolor, int ncolors)
1164 ncolors * sizeof(*colors));
1177 ncolors * sizeof(*colors));
1184 SDL_Color *colors, int firstcolor, int ncolors)
1194 colors, ncolors * sizeof(*colors));
1218 video->gammacols = SDL_malloc(pp->ncolors
1223 pp->ncolors);
1156 SetPalette_logical(SDL_Surface *screen, SDL_Color *colors, int firstcolor, int ncolors) argument
1183 SetPalette_physical(SDL_Surface *screen, SDL_Color *colors, int firstcolor, int ncolors) argument
1264 SDL_SetPalette(SDL_Surface *screen, int which, SDL_Color *colors, int firstcolor, int ncolors) argument
1334 SDL_SetColors(SDL_Surface *screen, SDL_Color *colors, int firstcolor, int ncolors) argument
[all...]
H A DSDL_gamma.c182 pal->colors, 0, pal->ncolors);
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11video.c66 static int X11_SetColors(_THIS, int firstcolor, int ncolors,
987 int ncolors; local
990 ncolors = SDL_Visual->map_entries;
991 SDL_XPixels = SDL_malloc(ncolors * sizeof(int));
996 SDL_memset(SDL_XPixels, 0, ncolors * sizeof(*SDL_XPixels));
1376 int X11_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
1388 xcmap = SDL_stack_alloc(XColor, ncolors);
1391 for ( i=0; i<ncolors; ++i ) {
1398 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);
1416 int nc = this->screen->format->palette->ncolors;
1469 int i, ncolors; local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA2/
H A DSDL_epocvideo.cpp118 static int EPOC_SetColors(_THIS, int firstcolor, int ncolors,
290 int EPOC_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
292 if ((firstcolor+ncolors) > 256)
299 for(int i = firstcolor; i < ncolors; i++)
310 for(int i = firstcolor; i < ncolors; i++)
323 for(int i = firstcolor; i < ncolors; i++)
337 if(EpocSdlEnv::SetPalette(firstcolor, ncolors, palette) == KErrNone)
/external/qemu/distrib/sdl-1.2.15/src/video/dummy/
H A 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) argument
/external/qemu/distrib/sdl-1.2.15/src/video/ggi/
H A DSDL_ggivideo.c55 static int GGI_SetColors(_THIS, int firstcolor, int ncolors,
355 int GGI_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
361 for (i = 0; i < ncolors; i++)
368 ggiSetPalette(VIS, firstcolor, ncolors, pal);
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
H A DSDL_nxvideo.c45 static int NX_SetColors (_THIS, int firstcolor, int ncolors, SDL_Color * colors) ;
397 // ncolors <= 256
398 int NX_SetColors (_THIS, int firstcolor, int ncolors, SDL_Color * colors) argument
405 if (ncolors > 256) return 0 ;
407 pal.count = ncolors ;
408 for (i = 0; i < ncolors; ++ i) {
/external/qemu/distrib/sdl-1.2.15/src/video/dga/
H A 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) argument
1003 xcmap = SDL_stack_alloc(XColor, ncolors);
1004 for ( i=0; i<ncolors; ++i ) {
1012 XStoreColors(DGA_Display, DGA_colormap, xcmap, ncolors);
1023 int i, ncolors; local
1034 ncolors = 64; /* Is this right? */
1036 ncolors = 256;
1038 for ( i=0; i<ncolors; ++i ) {
1039 Uint8 c = (256 * i / ncolors);
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/windib/
H A DSDL_dibvideo.c95 static int DIB_SetColors(_THIS, int firstcolor, int ncolors,
308 int ncolors; local
310 ncolors = (1 << bpp);
312 ncolors*sizeof(PALETTEENTRY));
314 palette->palNumEntries = ncolors;
316 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry);
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;
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
H A 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) argument
608 for (i=firstcolor; i<firstcolor+ncolors; i++)
622 for (i=firstcolor; i<firstcolor+ncolors; i++)
630 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0);
637 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0);
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/
H A 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) argument
356 for ( i=0; i < ncolors; i++ ) {
/external/qemu/distrib/sdl-1.2.15/src/video/nds/
H A 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) argument
483 int i,j=firstcolor+ncolors;
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
H A 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_Colo argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/xbios/
H A 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) argument
984 for (i=0;i<ncolors;i++)
995 for(i = 0; i < ncolors; i++)
1003 EsetPalette(firstcolor,ncolors,TT_palette);
1007 for(i = 0; i < ncolors; i++)
1015 VsetRGB(firstcolor,ncolors,F30_palette);
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/
H A DSDL_DirectFB_video.c57 static int DirectFB_SetColors(_THIS, int firstcolor, int ncolors,
310 palette->ncolors = size;
1054 int DirectFB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
1064 if (firstcolor + ncolors > 256)
1065 ncolors = 256 - firstcolor;
1067 if (ncolors > 0)
1070 DFBColor entries[ncolors];
1072 for (i=0; i<ncolors; i++)
1080 palette->SetEntries (palette, entries, ncolors, firstcolor);
/external/qemu/distrib/sdl-1.2.15/include/
H A DSDL_video.h64 int ncolors; member in struct:SDL_Palette
467 SDL_Color *colors, int firstcolor, int ncolors);
487 int ncolors);
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/
H A 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) argument
362 for (j = 0; j < ncolors; j++)

Completed in 249 milliseconds

123