Home
last modified time | relevance | path

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

12

/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/skia/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 = MIN<unsigned int> (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,
DSkBmpStandardCodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
25 , fNumColors(numColors) in SkBmpStandardCodec()
DSkBmpRLECodec.h39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
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,
DSkBmpStandardCodec.cpp19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
25 , fNumColors(numColors) in SkBmpStandardCodec()
DSkBmpRLECodec.h39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
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.cpp192 std::vector<Vec4> generateColors (const int numColors) in generateColors() argument
214 DE_ASSERT(numColors <= DE_LENGTH_OF_ARRAY(colors)); in generateColors()
216 return std::vector<Vec4>(colors, colors + numColors); in generateColors()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineDynamicOffsetTests.cpp161 const deUint32 numColors = DE_LENGTH_OF_ARRAY(testColors); in init() local
167 const VkDeviceSize bufferSize = offsetAlignment * numColors; in init()
356 for (deUint32 colorIdx = 0; colorIdx < numColors; colorIdx++) in init()
749 const deUint32 numColors = DE_LENGTH_OF_ARRAY(testColors); in init() local
754 const VkDeviceSize bufferSize = offsetAlignment * numColors; in init()
820 for (deUint32 colorIdx = 0; colorIdx < numColors; colorIdx++) in init()
/external/skia/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/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.cpp459 std::vector<Vec4> generateColors (const int numColors) in generateColors() argument
481 DE_ASSERT(numColors <= DE_LENGTH_OF_ARRAY(colors)); in generateColors()
483 return std::vector<Vec4>(colors, colors + numColors); in generateColors()
DvktDrawShaderLayerTests.cpp683 std::vector<Vec4> generateColors (int numColors) in generateColors() argument
706 result.reserve(numColors); in generateColors()
708 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/external/vulkancts/modules/vulkan/geometry/
DvktGeometryLayeredRenderingTests.cpp767 const int numColors = DE_LENGTH_OF_ARRAY(s_colors); in initPrograms() local
769 colorTable << " const vec4 colors[" << numColors << "] = vec4[" << numColors << "]("; in initPrograms()
773 for (int i = 0; i < numColors; ++i) in initPrograms()

12