Home
last modified time | relevance | path

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

/aosp14/frameworks/base/tools/aapt2/compile/
H A DPngCrunch.cpp264 std::unique_ptr<Image> output_image = util::make_unique<Image>(); in ReadPng() local
265 output_image->width = static_cast<int32_t>(width); in ReadPng()
266 output_image->height = static_cast<int32_t>(height); in ReadPng()
272 output_image->data = std::unique_ptr<uint8_t[]>(new uint8_t[height * row_bytes]); in ReadPng()
275 output_image->rows = std::unique_ptr<uint8_t* []>(new uint8_t*[height]); in ReadPng()
277 output_image->rows[h] = output_image->data.get() + (h * row_bytes); in ReadPng()
281 png_read_image(read_ptr, output_image->rows.get()); in ReadPng()
286 return output_image; in ReadPng()