Home
last modified time | relevance | path

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

/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()
148 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
150 canvas->translate(0.0f, numColors*(target.height()+kPad)); in onDraw()
152 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()
148 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
150 canvas->translate(0.0f, numColors*(target.height()+kPad)); in onDraw()
152 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
/external/skia/src/codec/
DSkPngCodec.cpp257 int numColors; in createColorTable() local
259 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
289 if (numColorsWithAlpha < numColors) { in createColorTable()
300 numColors - numColorsWithAlpha); in createColorTable()
303 numColors - numColorsWithAlpha); in createColorTable()
308 this->applyColorXform(colorTable, colorTable, numColors); in createColorTable()
314 if (numColors < maxColors) { in createColorTable()
315 SkPMColor lastColor = numColors > 0 ? colorTable[numColors - 1] : SK_ColorBLACK; in createColorTable()
316 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 std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, uint32_t numColors,
DSkBmpStandardCodec.cpp19 uint32_t numColors, uint32_t bytesPerColor, uint32_t offset, in SkBmpStandardCodec() argument
24 , 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.cpp253 int numColors; in createColorTable() local
255 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numColors)) { in createColorTable()
285 if (numColorsWithAlpha < numColors) { in createColorTable()
296 numColors - numColorsWithAlpha); in createColorTable()
299 numColors - numColorsWithAlpha); in createColorTable()
304 this->applyColorXform(colorTable, colorTable, numColors); in createColorTable()
310 if (numColors < maxColors) { in createColorTable()
311 SkPMColor lastColor = numColors > 0 ? colorTable[numColors - 1] : SK_ColorBLACK; in createColorTable()
312 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()
482 bitsPerPixel, numColors, bytesPerColor, in ReadHeader()
572 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()
DSkBmpStandardCodec.h43 std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, uint32_t numColors,
DSkBmpStandardCodec.cpp19 uint32_t numColors, uint32_t bytesPerColor, uint32_t offset, in SkBmpStandardCodec() argument
24 , 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/geometry/
DvktGeometryLayeredRenderingTests.cpp684 const int numColors = DE_LENGTH_OF_ARRAY(s_colors); in initPrograms() local
686 colorTable << " const vec4 colors[" << numColors << "] = vec4[" << numColors << "]("; in initPrograms()
690 for (int i = 0; i < numColors; ++i) in initPrograms()
/external/skia/third_party/gif/
DSkGifImageReader.cpp761 const int numColors = 2 << (currentComponent[8] & 0x7); in parse() local
802 currentFrame->localColorMap().setNumColors(numColors); in parse()
803 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/fragment_ops/
DvktFragmentOperationsScissorMultiViewportTests.cpp418 std::vector<Vec4> generateColors (const int numColors) in generateColors() argument
440 DE_ASSERT(numColors <= DE_LENGTH_OF_ARRAY(colors)); in generateColors()
442 return std::vector<Vec4>(colors, colors + numColors); in generateColors()
/external/skqp/third_party/gif/
DSkGifImageReader.cpp761 const int numColors = 2 << (currentComponent[8] & 0x7); in parse() local
802 currentFrame->localColorMap().setNumColors(numColors); in parse()
803 GETN(SK_BYTES_PER_COLORMAP_ENTRY * numColors, SkGIFImageColormap); in parse()
DSkGifImageReader.h176 int numColors() const { return m_colors; } in numColors() function
/external/libvncserver/webclients/novnc/include/
Drfb.js1605 var indexedToRGB = function (data, numColors, palette, width, height) { argument
1610 if (numColors === 2) {
1654 var numColors = rQ[rQi + 2] + 1;
1655 var paletteSize = numColors * this._fb_depth;
1659 var bpp = (numColors <= 2) ? 1 : 8;
1685 var rgb = indexedToRGB(data, numColors, palette, this._FBU.width, this._FBU.height);
/external/libvncserver/libvncclient/
Dtight.c454 uint8_t numColors; in InitFilterPaletteBPP() local
462 if (!ReadFromRFBServer(client, (char*)&numColors, 1)) in InitFilterPaletteBPP()
465 client->rectColors = (int)numColors; in InitFilterPaletteBPP()
/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()
/external/deqp/external/openglcts/modules/common/
DglcBlendEquationAdvancedTests.cpp791 int numColors, const glw::GLfloat* colors) in BlendTest() argument
797 , m_numColors(numColors) in BlendTest()