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

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/skia/src/opts/
SkBitmapProcState_opts_SSSE3.h 15 int count, uint32_t* colors);
18 int count, uint32_t* colors);
21 int count, uint32_t* colors);
24 int count, uint32_t* colors);
SkBitmapProcState_opts_SSE2.h 15 int count, uint32_t* colors);
18 int count, uint32_t* colors);
31 int count, uint16_t* colors);
  /external/skia/src/opts/
SkBitmapProcState_opts_SSSE3.h 15 int count, uint32_t* colors);
18 int count, uint32_t* colors);
21 int count, uint32_t* colors);
24 int count, uint32_t* colors);
SkBitmapProcState_opts_SSE2.h 15 int count, uint32_t* colors);
18 int count, uint32_t* colors);
31 int count, uint16_t* colors);
  /external/qemu/distrib/sdl-1.2.15/docs/man3/
SDL_Palette.3 9 SDL_Color *colors;
16 Number of colors used in this 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_SetPalette.3 3 SDL_SetPalette \- Sets the colors in the palette of an 8-bit surface\&.
8 \fBint \fBSDL_SetPalette\fP\fR(\fBSDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors\fR);
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)\&.
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\&.
19 The color components of a \fI\fBSDL_Color\fR\fR structure are 8-bits in size, giving you a total of 256^3=16777216 colors\&.
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\&.
28 SDL_Color colors[256];
33 /* Fill colors with color information */
35 colors[i]\&.r=i;
36 colors[i]\&.g=i
    [all...]
SDL_SetColors.3 8 \fBint \fBSDL_SetColors\fP\fR(\fBSDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors\fR);
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\&.
15 The color components of a \fI\fBSDL_Color\fR\fR structure are 8-bits in size, giving you a total of 256^3 =16777216 colors\&.
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\&.
26 SDL_Color colors[256];
31 /* Fill colors with color information */
33 colors[i]\&.r=i;
34 colors[i]\&.g=i;
35 colors[i]\&.b=i
    [all...]
  /external/chromium_org/third_party/skia/gm/
verylargebitmap.cpp 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) {
18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2,
27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
29 make_bm(&bm, width, height, colors);
77 SkColor colors[2]; variable
80 colors[0] = SK_ColorRED;
81 colors[1] = SK_ColorGREEN;
82 show_bm(canvas, small, small, colors);
85 colors[0] = SK_ColorBLUE;
86 colors[1] = SK_ColorMAGENTA
    [all...]
shallowgradient.cpp 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
15 return SkGradientShader::CreateLinear(pts, colors, NULL, count,
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count,
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) {
29 colors, NULL, count,
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
35 colors, NULL, count);
61 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; variable
62 const int colorCount = SK_ARRAY_COUNT(colors);
    [all...]
  /external/skia/gm/
verylargebitmap.cpp 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) {
18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2,
27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
29 make_bm(&bm, width, height, colors);
77 SkColor colors[2]; variable
80 colors[0] = SK_ColorRED;
81 colors[1] = SK_ColorGREEN;
82 show_bm(canvas, small, small, colors);
85 colors[0] = SK_ColorBLUE;
86 colors[1] = SK_ColorMAGENTA
    [all...]
shallowgradient.cpp 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
15 return SkGradientShader::CreateLinear(pts, colors, NULL, count,
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count,
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) {
29 colors, NULL, count,
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
35 colors, NULL, count);
61 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; variable
62 const int colorCount = SK_ARRAY_COUNT(colors);
    [all...]
  /external/chromium_org/third_party/skia/include/effects/
SkGradientShader.h 23 /** By default gradients will interpolate their colors in unpremul space
25 * gradients will premultiply their colors first, and then interpolate
38 @param colors The array[count] of colors, to be distributed between the two points
40 each corresponding color in the colors array. If this is NULL,
41 the the colors are distributed evenly between the start and end point.
44 @param count Must be >=2. The number of colors (and pos if not NULL) entries.
48 const SkColor colors[], const SkScalar pos[], int count,
53 const SkColor colors[], const SkScalar pos[], int count,
55 return CreateLinear(pts, colors, pos, count, mode, 0, NULL)
    [all...]
  /external/skia/include/effects/
SkGradientShader.h 23 /** By default gradients will interpolate their colors in unpremul space
25 * gradients will premultiply their colors first, and then interpolate
38 @param colors The array[count] of colors, to be distributed between the two points
40 each corresponding color in the colors array. If this is NULL,
41 the the colors are distributed evenly between the start and end point.
44 @param count Must be >=2. The number of colors (and pos if not NULL) entries.
48 const SkColor colors[], const SkScalar pos[], int count,
53 const SkColor colors[], const SkScalar pos[], int count,
55 return CreateLinear(pts, colors, pos, count, mode, 0, NULL)
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
CalendarColorCache.java 21 import android.provider.CalendarContract.Colors;
29 * of the accounts which contain optional calendar colors, and thus should allow for the
30 * user to choose calendar colors.
43 private static String[] PROJECTION = new String[] {Colors.ACCOUNT_NAME, Colors.ACCOUNT_TYPE };
46 * Interface which provides callback after provider query of calendar colors.
51 * Callback after the set of accounts with additional calendar colors are loaded.
77 mService.startQuery(0, null, Colors.CONTENT_URI, PROJECTION,
78 Colors.COLOR_TYPE + "=" + Colors.TYPE_CALENDAR, null, null)
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkColorTable.h 19 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by
26 /** Makes a deep copy of colors.
29 SkColorTable(const SkPMColor colors[], int count,
39 /** Returns the number of colors in the table.
52 * Return the array of colors for reading. This must be balanced by a call
66 RGB16 colors that mirror the 32bit colors. However, this function
  /external/skia/include/core/
SkColorTable.h 19 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by
26 /** Makes a deep copy of colors.
29 SkColorTable(const SkPMColor colors[], int count,
39 /** Returns the number of colors in the table.
52 * Return the array of colors for reading. This must be balanced by a call
66 RGB16 colors that mirror the 32bit colors. However, this function
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 53 final int[] colors = new int[] { Color.GREEN, Color.RED }; local
55 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]);
58 checkColors(colors, positions, TOLERANCE);
62 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local
64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
68 checkColors(colors, positions, TOLERANCE);
72 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
79 checkColors(colors, positions, TOLERANCE)
    [all...]
  /external/chromium_org/third_party/skia/tests/
ShaderOpacityTest.cpp 59 SkColor colors[2]; local
65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0);
67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count,
74 colors[0] = SkColorSetARGB(0, 0, 0, 0);
75 colors[1] = SkColorSetARGB(0, 0, 0, 0);
76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);
82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0);
84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode)
    [all...]
  /external/skia/tests/
ShaderOpacityTest.cpp 59 SkColor colors[2]; local
65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0);
67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count,
74 colors[0] = SkColorSetARGB(0, 0, 0, 0);
75 colors[1] = SkColorSetARGB(0, 0, 0, 0);
76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);
82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0);
84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
SweepGradient.java 42 * @param colors The colors to be distributed between around the center.
43 * There must be at least 2 colors in the array.
45 * each corresponding color in the colors array, beginning
48 * If positions is NULL, then the colors are automatically
52 int colors[], float positions[]) {
53 if (colors.length < 2) {
54 throw new IllegalArgumentException("needs >= 2 number of colors");
56 if (positions != null && colors.length != positions.length) {
63 mColors = colors;
    [all...]
LinearGradient.java 46 @param colors The colors to be distributed along the gradient line
48 each corresponding color in the colors array. If this is null,
49 the the colors are distributed evenly along the gradient line.
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[],
54 if (colors.length < 2) {
55 throw new IllegalArgumentException("needs >= 2 number of colors");
57 if (positions != null && colors.length != positions.length) {
65 mColors = colors;
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt))
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GradientStopsActivity.java 45 int[] colors = new int[] { 0xffff0000, 0xff0000ff }; local
48 colors, positions, Shader.TileMode.CLAMP);
55 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 };
58 colors, positions, Shader.TileMode.CLAMP);
65 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 };
68 colors, positions, Shader.TileMode.CLAMP);
75 colors = new int[] { 0xff000000, 0xffffffff };
77 colors, null, Shader.TileMode.CLAMP);
85 colors, null, Shader.TileMode.REPEAT);
93 colors, null, Shader.TileMode.MIRROR)
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkBitmapProcState_sample.h 30 int count, DSTTYPE* SK_RESTRICT colors);
33 int count, DSTTYPE* SK_RESTRICT colors);
36 int count, DSTTYPE* SK_RESTRICT colors);
39 int count, DSTTYPE* SK_RESTRICT colors);
43 int count, DSTTYPE* SK_RESTRICT colors) {
44 SkASSERT(count > 0 && colors != NULL);
62 *colors++ = RETURNDST(src);
68 *colors++ = RETURNDST(src);
75 *colors++ = RETURNDST(src);
85 int count, DSTTYPE* SK_RESTRICT colors) {
    [all...]
  /external/skia/src/core/
SkBitmapProcState_sample.h 30 int count, DSTTYPE* SK_RESTRICT colors);
33 int count, DSTTYPE* SK_RESTRICT colors);
36 int count, DSTTYPE* SK_RESTRICT colors);
39 int count, DSTTYPE* SK_RESTRICT colors);
43 int count, DSTTYPE* SK_RESTRICT colors) {
44 SkASSERT(count > 0 && colors != NULL);
62 *colors++ = RETURNDST(src);
68 *colors++ = RETURNDST(src);
75 *colors++ = RETURNDST(src);
85 int count, DSTTYPE* SK_RESTRICT colors) {
    [all...]
  /external/qemu/distrib/sdl-1.2.15/test/
testwin.c 28 SDL_Color *colors, *cmap; local
42 /* Set the display colors -- on a hicolor display this is a no-op */
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
47 memcpy(colors, picture->format->palette->colors,
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
62 colors[i].r = r<<5;
63 colors[i].g = g<<5;
64 colors[i].b = b<<6;
69 NOTICE("testwin: setting colors\n")
    [all...]

Completed in 1225 milliseconds

1 2 3 4 5 6 7 8 91011>>