Searched refs:color_palette (Results 1 – 1 of 1) sorted by relevance
368 std::unordered_map<uint32_t, int>* color_palette, in WritePalette() argument370 CHECK(color_palette->size() <= 256); in WritePalette()380 (*color_palette)[color] = index++; in WritePalette()384 for (auto& entry : *color_palette) { in WritePalette()391 auto color_palette_bytes = std::unique_ptr<png_color[]>(new png_color[color_palette->size()]); in WritePalette()398 for (const auto& entry : *color_palette) { in WritePalette()402 CHECK(static_cast<size_t>(index) < color_palette->size()); in WritePalette()419 png_set_PLTE(write_ptr, write_info_ptr, color_palette_bytes.get(), color_palette->size()); in WritePalette()517 std::unordered_map<uint32_t, int> color_palette; in WritePng() local543 color_palette[color] = -1; in WritePng()[all …]