Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/compile/
DPngCrunch.cpp262 std::unique_ptr<Image> output_image = util::make_unique<Image>(); in ReadPng() local
263 output_image->width = static_cast<int32_t>(width); in ReadPng()
264 output_image->height = static_cast<int32_t>(height); in ReadPng()
270 output_image->data = std::unique_ptr<uint8_t[]>(new uint8_t[height * row_bytes]); in ReadPng()
273 output_image->rows = std::unique_ptr<uint8_t* []>(new uint8_t*[height]); in ReadPng()
275 output_image->rows[h] = output_image->data.get() + (h * row_bytes); in ReadPng()
279 png_read_image(read_ptr, output_image->rows.get()); in ReadPng()
284 return output_image; in ReadPng()