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()
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()
265 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local267 return dinfo->output_width * colorBytes; in get_row_bytes()
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()
40 size_t colorBytes = (size_t) width * height * GrBytesPerPixel(desc.fConfig); in WorstCaseSize() local46 size = colorValuesPerPixel * colorBytes; in WorstCaseSize()47 size += colorBytes/3; // in case we have to mipmap in WorstCaseSize()