Searched refs:colorBytes (Results 1 – 7 of 7) sorted by relevance
67 uint32_t colorBytes = 0; in createColorTable() local77 colorBytes = numColorsToRead * fBytesPerColor; in createColorTable()78 std::unique_ptr<uint8_t[]> cBuffer(new uint8_t[colorBytes]); in createColorTable()79 if (stream()->read(cBuffer.get(), colorBytes) != colorBytes) { in createColorTable()129 if(fOffset < colorBytes) { in createColorTable()140 if (stream()->skip(fOffset - colorBytes) != fOffset - colorBytes) { in createColorTable()
67 uint32_t colorBytes = 0; in createColorTable() local77 colorBytes = numColorsToRead * fBytesPerColor; in createColorTable()78 std::unique_ptr<uint8_t[]> cBuffer(new uint8_t[colorBytes]); in createColorTable()79 if (stream()->read(cBuffer.get(), colorBytes) != colorBytes) { in createColorTable()106 if(fOffset < colorBytes) { in createColorTable()117 if (stream()->skip(fOffset - colorBytes) != fOffset - colorBytes) { in createColorTable()
315 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local317 return dinfo->output_width * colorBytes; in get_row_bytes()
70 uint32_t colorBytes = 0; in createColorTable() local80 colorBytes = numColorsToRead * fBytesPerColor; in createColorTable()81 std::unique_ptr<uint8_t[]> cBuffer(new uint8_t[colorBytes]); in createColorTable()82 if (stream()->read(cBuffer.get(), colorBytes) != colorBytes) { in createColorTable()109 if(fOffset < colorBytes) { in createColorTable()120 if (stream()->skip(fOffset - colorBytes) != fOffset - colorBytes) { in createColorTable()
264 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local266 return dinfo->output_width * colorBytes; in get_row_bytes()
36 size_t colorBytes = (size_t) width * height * GrBytesPerPixel(desc.fConfig); in WorstCaseSize() local42 size = colorValuesPerPixel * colorBytes; in WorstCaseSize()43 size += colorBytes/3; // in case we have to mipmap in WorstCaseSize()