Home
last modified time | relevance | path

Searched refs:numColors (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/gm/
Ddrawatlascolor.cpp129 const int numColors = SK_ARRAY_COUNT(gColors); in onDraw() local
130 SkASSERT(numColors == kNumColors); in onDraw()
131 SkRSXform xforms[numColors]; in onDraw()
132 SkRect rects[numColors]; in onDraw()
133 SkColor quadColors[numColors]; in onDraw()
138 for (int i = 0; i < numColors; ++i) { in onDraw()
157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
159 canvas->translate(0.0f, numColors*(target.height()+kPad)); in onDraw()
161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
/external/skqp/gm/
Ddrawatlascolor.cpp116 const int numColors = SK_ARRAY_COUNT(gColors); in onDraw() local
117 SkASSERT(numColors == kNumColors); in onDraw()
118 SkRSXform xforms[numColors]; in onDraw()
119 SkRect rects[numColors]; in onDraw()
120 SkColor quadColors[numColors]; in onDraw()
125 for (int i = 0; i < numColors; ++i) { in onDraw()
144 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
146 canvas->translate(0.0f, numColors*(target.height()+kPad)); in onDraw()
148 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
/external/harfbuzz_ng/src/
Dhb-ot-color-cpal-table.hh118 unsigned int get_color_count () const { return numColors; } in get_color_count()
127 { return v1 ().get_color_name_id (this, color_index, numColors); } in get_color_name_id()
142 numColors); in get_palette_colors()
147 …unsigned int count = hb_min ((unsigned) hb_max ((int) (numColors - start_offset), 0), *color_count… in get_palette_colors()
152 return numColors; in get_palette_colors()
169 (version == 0 || v1 ().sanitize (c, this, numPalettes, numColors))); in sanitize()
175 HBUINT16 numColors; /* Number of colors in each palette. */ member
/external/skia/src/codec/
DSkPngCodec.cpp261 int numColors; in createColorTable() local
263 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
290 if (numColorsWithAlpha < numColors) { in createColorTable()
301 numColors - numColorsWithAlpha); in createColorTable()
304 numColors - numColorsWithAlpha); in createColorTable()
309 this->applyColorXform(colorTable, colorTable, numColors); in createColorTable()
315 if (numColors < maxColors) { in createColorTable()
316 SkPMColor lastColor = numColors > 0 ? colorTable[numColors - 1] : SK_ColorBLACK; in createColorTable()
317 sk_memset32(colorTable + numColors, lastColor, maxColors - numColors); in createColorTable()
DSkBmpCodec.cpp219 uint32_t numColors = 0; in ReadHeader() local
247 numColors = get_int(iBuffer.get(), 28); in ReadHeader()
487 bitsPerPixel, numColors, bytesPerColor, in ReadHeader()
578 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()
DSkBmpStandardCodec.h43 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
DSkBmpRLECodec.h39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
DSkBmpStandardCodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
25 , fNumColors(numColors) in SkBmpStandardCodec()
DSkBmpRLECodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument
24 , fNumColors(numColors) in SkBmpRLECodec()
/external/skqp/src/codec/
DSkPngCodec.cpp261 int numColors; in createColorTable() local
263 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
290 if (numColorsWithAlpha < numColors) { in createColorTable()
301 numColors - numColorsWithAlpha); in createColorTable()
304 numColors - numColorsWithAlpha); in createColorTable()
309 this->applyColorXform(colorTable, colorTable, numColors); in createColorTable()
315 if (numColors < maxColors) { in createColorTable()
316 SkPMColor lastColor = numColors > 0 ? colorTable[numColors - 1] : SK_ColorBLACK; in createColorTable()
317 sk_memset32(colorTable + numColors, lastColor, maxColors - numColors); in createColorTable()
DSkBmpCodec.cpp219 uint32_t numColors = 0; in ReadHeader() local
247 numColors = get_int(iBuffer.get(), 28); in ReadHeader()
487 bitsPerPixel, numColors, bytesPerColor, in ReadHeader()
577 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()
DSkBmpStandardCodec.h43 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
DSkBmpRLECodec.h39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
DSkBmpStandardCodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
25 , fNumColors(numColors) in SkBmpStandardCodec()
DSkBmpRLECodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument
24 , fNumColors(numColors) in SkBmpRLECodec()
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/
DvktFragmentOperationsScissorMultiViewportTests.cpp171 std::vector<Vec4> generateColors (const int numColors) in generateColors() argument
193 DE_ASSERT(numColors <= DE_LENGTH_OF_ARRAY(colors)); in generateColors()
195 return std::vector<Vec4>(colors, colors + numColors); in generateColors()
/external/angle/src/image_util/
Dloadimage_etc.cpp715 size_t numColors, in matchBC1Bits()
739 ASSERT(numColors <= kNumPixelsInBlock); in matchBC1Bits()
744 for (size_t i = 0; i < numColors; i++) in matchBC1Bits()
784 for (size_t i = 0; i < numColors; i++) in matchBC1Bits()
833 size_t numColors, in packBC1()
847 bits = matchBC1Bits(pixelIndices, pixelIndexCounts, subblockColors, numColors, minColor, in packBC1()
986 size_t numColors, in selectEndPointPCA()
997 for (size_t i = 0; i < numColors; i++) in selectEndPointPCA()
1020 for (size_t i = 0; i < numColors; i++) in selectEndPointPCA()
1099 for (size_t i = 0; i < numColors; i++) in selectEndPointPCA()
/external/skia/third_party/libgifcodec/
DSkGifImageReader.cpp792 const int numColors = 2 << (currentComponent[8] & 0x7); in parse() local
833 currentFrame->localColorMap().setNumColors(numColors); in parse()
834 GETN(SK_BYTES_PER_COLORMAP_ENTRY * numColors, SkGIFImageColormap); in parse()
DSkGifImageReader.h178 int numColors() const { return m_colors; } in numColors() function
/external/skqp/third_party/gif/
DSkGifImageReader.cpp762 const int numColors = 2 << (currentComponent[8] & 0x7); in parse() local
803 currentFrame->localColorMap().setNumColors(numColors); in parse()
804 GETN(SK_BYTES_PER_COLORMAP_ENTRY * numColors, SkGIFImageColormap); in parse()
DSkGifImageReader.h176 int numColors() const { return m_colors; } in numColors() function
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawShaderViewportIndexTests.cpp369 std::vector<Vec4> generateColors (const int numColors) in generateColors() argument
391 DE_ASSERT(numColors <= DE_LENGTH_OF_ARRAY(colors)); in generateColors()
393 return std::vector<Vec4>(colors, colors + numColors); in generateColors()
DvktDrawShaderLayerTests.cpp506 std::vector<Vec4> generateColors (int numColors) in generateColors() argument
529 result.reserve(numColors); in generateColors()
531 for (int i = 0; i < numColors; ++i) in generateColors()
/external/deqp/modules/gles2/functional/
Des2fBufferTestUtil.cpp546 const int numColors = 256; in computeIndexVerifierColors() local
551 dst.resize(numColors); in computeIndexVerifierColors()
/external/deqp/modules/glshared/
DglsBufferTestUtil.cpp735 const int numColors = 256; in computeIndexVerifierColors() local
740 dst.resize(numColors); in computeIndexVerifierColors()

12