Home
last modified time | relevance | path

Searched refs:maxColors (Results 1 - 3 of 3) sorted by relevance

/third_party/skia/src/codec/
H A DSkBmpStandardCodec.cpp71 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() local
72 // Don't bother reading more than maxColors. in createColorTable()
74 fNumColors == 0 ? maxColors : std::min(fNumColors, maxColors); in createColorTable()
113 for (; i < maxColors; i++) { in createColorTable()
118 this->applyColorXform(colorTable, colorTable, maxColors); in createColorTable()
122 fColorTable.reset(new SkColorTable(colorTable, maxColors)); in createColorTable()
H A DSkBmpRLECodec.cpp74 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() local
75 // Don't bother reading more than maxColors. in createColorTable()
77 fNumColors == 0 ? maxColors : std::min(fNumColors, maxColors); in createColorTable()
100 for (; i < maxColors; i++) { in createColorTable()
105 fColorTable.reset(new SkColorTable(colorTable, maxColors)); in createColorTable()
H A DSkPngCodec.cpp317 const int maxColors = 1 << fBitDepth; in createColorTable() local
318 if (numColors < maxColors) { in createColorTable()
320 sk_memset32(colorTable + numColors, lastColor, maxColors - numColors); in createColorTable()
323 fColorTable.reset(new SkColorTable(colorTable, maxColors)); in createColorTable()

Completed in 5 milliseconds