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

12

/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/sdl-1.2.12/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;
422 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.c233 palette->ncolors = biClrUsed;
438 biClrUsed = surface->format->palette->ncolors;
460 int ncolors; local
463 ncolors = surface->format->palette->ncolors;
464 for ( i=0; i<ncolors; ++i ) {
H A DSDL_video.c265 0, vf->palette->ncolors, vf->palette->colors);
537 SDL_VideoSurface->format->palette->ncolors*
703 video->SetColors(this, 0, vf->palette->ncolors,
1135 int firstcolor, int ncolors)
1142 ncolors * sizeof(*colors));
1155 ncolors * sizeof(*colors));
1162 SDL_Color *colors, int firstcolor, int ncolors)
1172 colors, ncolors * sizeof(*colors));
1196 video->gammacols = SDL_malloc(pp->ncolors
1201 pp->ncolors);
1134 SetPalette_logical(SDL_Surface *screen, SDL_Color *colors, int firstcolor, int ncolors) argument
1161 SetPalette_physical(SDL_Surface *screen, SDL_Color *colors, int firstcolor, int ncolors) argument
1242 SDL_SetPalette(SDL_Surface *screen, int which, SDL_Color *colors, int firstcolor, int ncolors) argument
1312 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.12/src/video/cybergfx/
H A DSDL_cgxvideo.c50 static int CGX_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
74 Int i, ncolors;
84 ncolors = SDL_Visual->map_entries;
85 for ( i=0; i<ncolors; ++i ) {
86 Uint8 c = (256 * i / ncolors);
93 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);
755 int ncolors,i; local
761 ncolors=256;
763 ncolors = 1 << screen->format->BitsPerPixel;
765 SDL_XPixels = (Sint32 *)SDL_malloc(ncolors * sizeo
1235 CGX_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
H A DSDL_x11video.c66 static int X11_SetColors(_THIS, int firstcolor, int ncolors,
967 int ncolors; local
970 ncolors = SDL_Visual->map_entries;
971 SDL_XPixels = SDL_malloc(ncolors * sizeof(int));
976 SDL_memset(SDL_XPixels, 0, ncolors * sizeof(*SDL_XPixels));
1351 int X11_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
1363 xcmap = SDL_stack_alloc(XColor, ncolors);
1366 for ( i=0; i<ncolors; ++i ) {
1373 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);
1391 int nc = this->screen->format->palette->ncolors;
1444 int i, ncolors; local
[all...]
/external/qemu/distrib/sdl-1.2.12/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.12/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.12/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.12/src/video/dga/
H A DSDL_dgavideo.c55 static int DGA_SetColors(_THIS, int firstcolor, int ncolors,
990 static int DGA_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
999 xcmap = SDL_stack_alloc(XColor, ncolors);
1000 for ( i=0; i<ncolors; ++i ) {
1008 XStoreColors(DGA_Display, DGA_colormap, xcmap, ncolors);
1019 int i, ncolors; local
1030 ncolors = 64; /* Is this right? */
1032 ncolors = 256;
1034 for ( i=0; i<ncolors; ++i ) {
1035 Uint8 c = (256 * i / ncolors);
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/windib/
H A DSDL_dibvideo.c74 static int DIB_SetColors(_THIS, int firstcolor, int ncolors,
274 int ncolors; local
276 ncolors = (1 << bpp);
278 ncolors*sizeof(PALETTEENTRY));
280 palette->palNumEntries = ncolors;
282 GetSystemPaletteEntries(hdc, 0, ncolors, palette->palPalEntry);
722 binfo_size += video->format->palette->ncolors *
755 video->format->palette->ncolors*sizeof(RGBQUAD));
937 int DIB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
953 for ( i=0; i<ncolors;
[all...]
/external/qemu/distrib/sdl-1.2.12/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.12/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.12/src/video/windx5/
H A DSDL_dx5video.c409 static int DX5_SetColors(_THIS, int firstcolor, int ncolors,
2174 static void DX5_CompressPalette(_THIS, SDL_Color *colors, int ncolors, int maxcolors) argument
2188 if ( maxcolors > ncolors ) {
2189 maxcolors = ncolors;
2201 pool = SDL_stack_alloc(int, 2*ncolors);
2207 SDL_memset(seen, 0, ncolors*sizeof(int));
2208 order = pool+ncolors;
2212 for ( i=0; i<ncolors; ++i ) {
2227 for ( i=0; i<ncolors; ++i ) {
2253 int DX5_SetColors(_THIS, int firstcolor, int ncolors, SDL_Colo argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/xbios/
H A DSDL_xbios.c72 static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
817 static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
825 for (i=0;i<ncolors;i++)
836 for(i = 0; i < ncolors; i++)
845 EsetPalette(firstcolor,ncolors,TT_palette);
849 for(i = 0; i < ncolors; i++)
858 VsetRGB(firstcolor,ncolors,F30_palette);
/external/qemu/distrib/sdl-1.2.12/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.12/include/
H A DSDL_video.h57 int ncolors; member in struct:SDL_Palette
424 SDL_Color *colors, int firstcolor, int ncolors);
444 int ncolors);
/external/qemu/distrib/sdl-1.2.12/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++)
/external/qemu/distrib/sdl-1.2.12/src/video/macrom/
H A 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) argument
684 if ( (firstcolor+ncolors) > ((**cTab).ctSize+1) ) {
689 for ( i=0; i< ncolors; ++i ) {
/external/qemu/distrib/sdl-1.2.12/src/video/dc/
H A DSDL_dcvideo.c42 static int DC_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
309 static int DC_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
/external/qemu/distrib/sdl-1.2.12/src/video/qtopia/
H A DSDL_sysvideo.cc58 static int QT_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
367 int QT_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
H A DSDL_fbvideo.c137 static int FB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
889 current->format->palette->ncolors = 16;
1590 static int FB_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) argument
1599 for (i = 0; i < ncolors; i++) {
1605 cmap.len = ncolors;
1614 ncolors = this->screen->format->palette->ncolors;
1616 cmap.len = ncolors;
1621 for ( i=ncolors-1; i>=0; --i ) {

Completed in 238 milliseconds

12