HomeSort by relevance Sort by last modified time
    Searched full:palette (Results 1 - 25 of 443) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/qemu/distrib/sdl-1.2.15/docs/man3/
SDL_SetPalette.3 3 SDL_SetPalette \- Sets the colors in the palette of an 8-bit surface\&.
11 Sets a portion of the palette for the given 8-bit surface\&.
13 Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fISDL_BlitSurface\fR always uses the logical palette when blitting surfaces (if it has to convert between surface pixel formats)\&. Because of this, it is often useful to modify only one or the other palette to achieve various special color effects (e\&.g\&., screen fading, color flashes, screen dimming)\&.
15 This function can modify either the logical or physical palette by specifing \fBSDL_LOGPAL\fP or \fBSDL_PHYSPAL\fPthe in the \fBflags\fR parameter\&.
17 When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetPalette\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&.
22 If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetPalette\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&
    [all...]
SDL_Palette.3 3 SDL_Palette \- Color palette for 8-bit pixel formats
16 Number of colors used in this palette
19 Pointer to \fI\fBSDL_Color\fR\fR structures that make up the palette\&.
22 Each pixel in an 8-bit surface is an index into the \fBcolors\fR field of the \fBSDL_Palette\fR structure store in \fI\fBSDL_PixelFormat\fR\fR\&. A \fBSDL_Palette\fR should never need to be created manually\&. It is automatically created when SDL allocates a \fBSDL_PixelFormat\fR for a surface\&. The colors values of a \fI\fBSDL_Surface\fR\fRs palette can be set with the \fI\fBSDL_SetColors\fP\fR\&.
SDL_SetColors.3 13 When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetColors\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&.
17 Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fBSDL_SetColors\fP modifies both palettes (if present), and is equivalent to calling \fISDL_SetPalette\fR with the \fBflags\fR set to \fB(SDL_LOGPAL | SDL_PHYSPAL)\fP\&.
20 If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetColors\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&.
24 \f(CW/* Create a display surface with a grayscale palette */
46 /* Set palette */
SDL_MapRGBA.3 13 If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned\&.
15 If the specified pixel format has no alpha component the alpha value will be ignored (as it will be in formats with a palette)\&.
SDL_MapRGB.3 13 If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned\&.
SDL_PixelFormat.3 8 SDL_Palette *palette;
78 color=fmt->palette->colors[index];
90 Pixel formats above 8-bit are an entirely different experience\&. They are considered to be "TrueColor" formats and the color information is stored in the pixels themselves, not in a palette\&. The mask, shift and loss fields tell us how the color information is encoded\&. The mask fields allow us to isolate each color component, the shift fields tell us the number of bits to the right of each component in the pixel value and the loss fields tell us the number of bits lost from each component when packing 8-bit color component in a pixel\&.
  /packages/wallpapers/Basic/res/xml/
polar_clock_palettes.xml 5 <palette kind="cycling"
10 <palette kind="cycling"
15 <palette kind="fixed"
21 <palette kind="fixed"
27 <palette kind="fixed"
33 <palette kind="fixed"
39 <palette kind="fixed"
45 <palette kind="fixed"
polar_clock_prefs.xml 34 android:key="palette"
35 android:title="@string/palette"
  /packages/wallpapers/Basic/res/values/
strings.xml 80 <!-- Polar clock: label for "palette" pref -->
81 <string name="palette">Color palette</string>
83 <!-- Polar clock: palette name -->
85 <!-- Polar clock: palette name -->
87 <!-- Polar clock: palette name -->
89 <!-- Polar clock: palette name -->
91 <!-- Polar clock: palette name -->
93 <!-- Polar clock: palette name -->
95 <!-- Polar clock: palette name --
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/video/
SDL_pixels.c 56 format->palette = NULL;
126 format->palette = (SDL_Palette *)SDL_malloc(sizeof(SDL_Palette));
127 if ( format->palette == NULL ) {
132 (format->palette)->ncolors = ncolors;
133 (format->palette)->colors = (SDL_Color *)SDL_malloc(
134 (format->palette)->ncolors*sizeof(SDL_Color));
135 if ( (format->palette)->colors == NULL ) {
141 /* create palette according to masks */
190 format->palette->colors[i].r=r;
194 format->palette->colors[i].g=g
    [all...]
SDL_bmp.c 58 SDL_Palette *palette; local
231 /* Load the palette, if any */
232 palette = (surface->format)->palette;
233 if ( palette ) {
239 SDL_RWread(src, &palette->colors[i].b, 1, 1);
240 SDL_RWread(src, &palette->colors[i].g, 1, 1);
241 SDL_RWread(src, &palette->colors[i].r, 1, 1);
242 palette->colors[i].unused = 0;
246 SDL_RWread(src, &palette->colors[i].b, 1, 1)
    [all...]
  /external/qemu/distrib/sdl-1.2.15/docs/html/
sdlsetpalette.html 83 >SDL_SetPalette&nbsp;--&nbsp;Sets the colors in the palette of an 8-bit surface.</DIV
123 >Sets a portion of the palette for the given 8-bit surface.</P
130 palette that is used for mapping blits to/from the surface and a
131 physical palette (that determines how the hardware will map the colors
136 always uses the logical palette when blitting surfaces (if it has to
138 useful to modify only one or the other palette to achieve various
141 >This function can modify either the logical or physical palette by
178 and the palette is guaranteed to be set the way you desire, even if the window
224 surface palette to determine the actual color palette.</
    [all...]
sdlsetcolors.html 146 and the palette is guaranteed to be set the way you desire, even if the window
166 flag have two palettes, a logical palette that is used for mapping blits
167 to/from the surface and a physical palette (that determines how the
218 surface palette to determine the actual color palette.</P
229 >/* Create a display surface with a grayscale palette */
250 /* Set palette */
  /external/quake/quake/src/QW/client/
vid_null.c 18 void VID_SetPalette (unsigned char *palette)
22 void VID_ShiftPalette (unsigned char *palette)
26 void VID_Init (unsigned char *palette)
vid.h 62 void VID_SetPalette (unsigned char *palette);
65 void VID_ShiftPalette (unsigned char *palette);
68 void VID_Init (unsigned char *palette);
70 // the palette data will go away after the call, so it must be copied off if
79 int VID_SetMode (int modenum, unsigned char *palette);
  /external/opencv/otherlibs/highgui/
utils.cpp 341 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries )
346 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) );
351 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative )
359 palette[i].b = palette[i].g = palette[i].r = (uchar)val;
360 palette[i].a = 0;
365 bool IsColorPalette( PaletteEntry* palette, int bpp )
371 if( palette[i].b != palette[i].g |
    [all...]
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.15/test/
testpalette.c 4 * A simple test of runtime palette modification for animation
79 /* set the palette to the logical screen palette so that blits
81 SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
112 /* copy palette */
113 SDL_SetColors(z, s->format->palette->colors,
114 0, s->format->palette->ncolors);
169 /* Ask explicitly for 8bpp and a hardware palette */
183 boatcols = boat[0]->format->palette->ncolors;
189 * First set the physical screen palette to black, so the user won'
    [all...]
threadwin.c 46 if ( icon->format->palette == NULL ) {
47 fprintf(stderr, "Icon must have a palette!\n");
58 icon->format->palette->colors[*pixels].r,
59 icon->format->palette->colors[*pixels].g,
60 icon->format->palette->colors[*pixels].b);
230 SDL_Color palette[256]; local
304 palette[i].r = 255-i;
305 palette[i].g = 255-i;
306 palette[i].b = 255-i;
308 SDL_SetColors(screen, palette, 0, 256)
    [all...]
  /external/quake/quake/src/WinQuake/
vid.h 62 void VID_SetPalette (unsigned char *palette);
65 void VID_ShiftPalette (unsigned char *palette);
68 void VID_Init (unsigned char *palette);
70 // the palette data will go away after the call, so it must be copied off if
79 int VID_SetMode (int modenum, unsigned char *palette);
  /packages/apps/Calendar/src/com/android/calendar/event/
EventColorCache.java 85 ArrayList<Integer> palette = mColorPaletteMap.get(key); local
86 Integer[] sortedColors = new Integer[palette.size()];
87 Arrays.sort(palette.toArray(sortedColors), comparator);
88 palette.clear();
90 palette.add(color);
92 mColorPaletteMap.put(key, palette);
  /external/qemu/distrib/sdl-1.2.15/src/video/riscos/
SDL_riscossprite.c 60 offsetToSpriteData += 2048; /* Add in size of palette */
90 regs.r[3] = 0; /* Palette flag: 0 = no palette */
108 /* Modify sprite to take into account 256 colour palette */
117 /* Don't need to set up palette as SDL sets up the default
118 256 colour palette */
152 regs.r[3] = -1; /* Current palette */
154 regs.r[5] = 1|2|16; /* R1 - pointer to sprite and can use full palette words */
210 /* Only need to update the palette */
220 /* Need to resize windows and update the palette */
    [all...]
  /external/chromium-trace/trace-viewer/src/
color_scheme.js 12 // The color palette is split in half, with the upper
13 // half of the palette being the "highlighted" verison
15 // 7 + (palette.length / 2).
20 // Within the color palette, there are "regular" colors,
62 // palette.
86 var palette = paletteBase.concat(paletteBase.map(brighten)).
101 * Gets the color palette.
104 return palette;
  /external/libpng/
TODO 10 Add "grayscale->palette" transformation and "palette->grayscale" detection.
  /external/webkit/Source/WebKit/qt/WebCoreSupport/
FullScreenVideoWidget.cpp 44 QPalette palette(this->palette());
45 palette.setColor(QPalette::Base, Qt::black);
46 palette.setColor(QPalette::Background, Qt::black);
47 setPalette(palette);

Completed in 361 milliseconds

1 2 3 4 5 6 7 8 91011>>