Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkBmpStandardCodec.cpp67 uint32_t colorBytes = 0; in createColorTable() local
77 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()
DSkBmpRLECodec.cpp70 uint32_t colorBytes = 0; in createColorTable() local
80 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()
DSkJpegCodec.cpp265 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local
267 return dinfo->output_width * colorBytes; in get_row_bytes()
/external/skqp/src/codec/
DSkBmpStandardCodec.cpp67 uint32_t colorBytes = 0; in createColorTable() local
77 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()
DSkBmpRLECodec.cpp67 uint32_t colorBytes = 0; in createColorTable() local
77 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()
DSkJpegCodec.cpp315 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local
317 return dinfo->output_width * colorBytes; in get_row_bytes()
/external/skqp/src/gpu/
DGrSurface.cpp40 size_t colorBytes = (size_t) width * height * GrBytesPerPixel(desc.fConfig); in WorstCaseSize() local
46 size = colorValuesPerPixel * colorBytes; in WorstCaseSize()
47 size += colorBytes/3; // in case we have to mipmap in WorstCaseSize()