/external/skia/gm/ |
drawatlascolor.cpp | 123 const int numColors = SK_ARRAY_COUNT(gColors); 124 SkASSERT(numColors == kNumColors); 125 SkRSXform xforms[numColors]; 126 SkRect rects[numColors]; 127 SkColor quadColors[numColors]; 132 for (int i = 0; i < numColors; ++i) { 154 canvas->drawAtlas(fAtlas, xforms, rects, quadColors, numColors, 156 canvas->translate(0.0f, numColors*(target.height()+kPad)); 158 canvas->drawAtlas(fAtlas, xforms, rects, quadColors, numColors,
|
/prebuilts/go/darwin-x86/src/image/gif/ |
writer.go | 276 // NumColors is the maximum number of colors used in the image. 278 NumColors int 280 // Quantizer is used to produce a palette with size NumColors. 351 if opts.NumColors < 1 || 256 < opts.NumColors { 352 opts.NumColors = 256 359 if !ok || len(pm.Palette) > opts.NumColors { 361 pm = image.NewPaletted(b, palette.Plan9[:opts.NumColors]) 363 pm.Palette = opts.Quantizer.Quantize(make(color.Palette, 0, opts.NumColors), m)
|
/prebuilts/go/linux-x86/src/image/gif/ |
writer.go | 276 // NumColors is the maximum number of colors used in the image. 278 NumColors int 280 // Quantizer is used to produce a palette with size NumColors. 351 if opts.NumColors < 1 || 256 < opts.NumColors { 352 opts.NumColors = 256 359 if !ok || len(pm.Palette) > opts.NumColors { 361 pm = image.NewPaletted(b, palette.Plan9[:opts.NumColors]) 363 pm.Palette = opts.Quantizer.Quantize(make(color.Palette, 0, opts.NumColors), m)
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
TextureViewTestActivity.java | 111 private final int numColors = 4; 120 int index = frame % numColors;
|
/external/skia/src/codec/ |
SkBmpRLECodec.h | 29 * @param numColors the number of colors in the color table 39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
|
SkBmpStandardCodec.h | 30 * @param numColors the number of colors in the color table 41 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
|
SkBmpStandardCodec.cpp | 18 uint16_t bitsPerPixel, uint32_t numColors, 24 , fNumColors(numColors) 71 bool SkBmpStandardCodec::createColorTable(SkAlphaType dstAlphaType, int* numColors) { 78 if (nullptr != numColors) { 82 *numColors = maxColors;
|
SkPngCodec.cpp | 97 int numColors; 99 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { 127 if (numColorsWithAlpha < numColors) { 137 SkOpts::RGB_to_RGB1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); 139 SkOpts::RGB_to_BGR1(colorPtr + numColorsWithAlpha, palette, numColors - numColorsWithAlpha); 146 if (numColors < maxColors) { 147 SkPMColor lastColor = numColors > 0 ? colorPtr[numColors - 1] : SK_ColorBLACK; 148 sk_memset32(colorPtr + numColors, lastColor, maxColors - numColors); [all...] |
SkBmpRLECodec.cpp | 18 uint16_t bitsPerPixel, uint32_t numColors, 24 , fNumColors(numColors) 73 bool SkBmpRLECodec::createColorTable(int* numColors) { 80 if (nullptr != numColors) { 84 *numColors = maxColors;
|
SkBmpCodec.cpp | 177 uint32_t numColors = 0; 241 numColors = get_int(iBuffer.get(), 28); 502 *codecOut = new SkBmpStandardCodec(imageInfo, stream, bitsPerPixel, numColors, 521 *codecOut = new SkBmpRLECodec(imageInfo, stream, bitsPerPixel, numColors,
|
/frameworks/base/libs/hwui/ |
Patch.cpp | 43 const int8_t numColors = patch->numColors; 44 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { 45 for (int8_t i = 0; i < numColors; i++) {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
PaletteDetailActivity.java | 123 private void loadImage(final int numColors) { 129 Palette.generateAsync(bitmap, numColors, new Palette.PaletteAsyncListener() {
|
PaletteActivity.java | 181 void setNumColors(int numColors) { 182 mNumColors = numColors;
|
/external/llvm/lib/Support/ |
GraphWriter.cpp | 59 static const int NumColors = 20; 60 static const char* Colors[NumColors] = { 64 return Colors[ColorNumber % NumColors];
|
/frameworks/base/tools/aapt/ |
Images.cpp | 556 int8_t numColors; 713 numColors = numRows * numCols; 714 image->info9Patch.numColors = numColors; 715 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); 768 assert(colorIndex == numColors); 770 for (i=0; i<numColors; i++) { 774 if (i == numColors - 1) printf("\n"); 816 for (int i = 0; i < outPatch->numColors; i++) { [all...] |
/frameworks/base/tools/aapt2/compile/ |
Png.cpp | 173 for (int i = 0; i < outPatch->numColors; i++) { [all...] |
/external/libjpeg-turbo/ |
jquant2.c | 636 int numcolors = cinfo->actual_number_of_colors; local 666 for (i = 0; i < numcolors; i++) { 745 for (i = 0; i < numcolors; i++) { 755 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) 790 for (i = 0; i < numcolors; i++) { 847 int numcolors; /* number of candidate colors */ local [all...] |
/external/opencv3/3rdparty/libjpeg/ |
jquant2.c | 658 int numcolors = cinfo->actual_number_of_colors; local 688 for (i = 0; i < numcolors; i++) { 767 for (i = 0; i < numcolors; i++) { 777 int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[]) 812 for (i = 0; i < numcolors; i++) { 869 int numcolors; \/* number of candidate colors *\/ local [all...] |
/external/mesa3d/src/gallium/state_trackers/xorg/ |
xorg_driver.c | 683 static void drv_load_palette(ScrnInfoPtr pScrn, int numColors, 693 for (i = 0; i < numColors; i++) { 703 for (i = 0; i < numColors; i++) { 719 for (i = 0; i < numColors; i++) { [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
Palette.java | 124 public static Palette generate(Bitmap bitmap, int numColors) { 125 return from(bitmap).maximumColorCount(numColors).generate(); 142 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { 143 return from(bitmap).maximumColorCount(numColors).generate(listener); [all...] |
/external/libvncserver/libvncclient/ |
tight.c | 454 uint8_t numColors; 462 if (!ReadFromRFBServer(client, (char*)&numColors, 1)) 465 client->rectColors = (int)numColors;
|