Searched refs:row_bytes (Results 1 – 1 of 1) sorted by relevance
260 const size_t row_bytes = png_get_rowbytes(read_ptr, info_ptr); in ReadPng() local261 CHECK(row_bytes == 4 * width); // RGBA in ReadPng()264 output_image->data = std::unique_ptr<uint8_t[]>(new uint8_t[height * row_bytes]); in ReadPng()269 output_image->rows[h] = output_image->data.get() + (h * row_bytes); in ReadPng()