Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp378 std::unordered_set<uint32_t>* alpha_palette) { in WritePalette() argument
380 CHECK(alpha_palette->size() <= 256); in WritePalette()
388 for (uint32_t color : *alpha_palette) { in WritePalette()
403 if (!alpha_palette->empty()) { in WritePalette()
404 alpha_palette_bytes = std::unique_ptr<png_byte[]>(new png_byte[alpha_palette->size()]); in WritePalette()
420 CHECK(static_cast<size_t>(index) < alpha_palette->size()); in WritePalette()
431 png_set_tRNS(write_ptr, write_info_ptr, alpha_palette_bytes.get(), alpha_palette->size(), in WritePalette()
529 std::unordered_set<uint32_t> alpha_palette; in WritePng() local
559 alpha_palette.insert(color); in WritePng()
580 << " alphaPaletteSize=" << alpha_palette.size() in WritePng()
[all …]