Searched refs:colorBytes (Results 1 – 6 of 6) sorted by relevance
73 uint32_t colorBytes = 0; in createColorTable() local89 colorBytes = numColorsToRead * fBytesPerColor; in createColorTable()90 SkAutoTDeleteArray<uint8_t> cBuffer(new uint8_t[colorBytes]); in createColorTable()91 if (stream()->read(cBuffer.get(), colorBytes) != colorBytes) { in createColorTable()134 if(fOffset < colorBytes) { in createColorTable()145 if (stream()->skip(fOffset - colorBytes) != fOffset - colorBytes) { in createColorTable()
72 uint32_t colorBytes = 0; in createColorTable() local88 colorBytes = numColorsToRead * fBytesPerColor; in createColorTable()89 SkAutoTDeleteArray<uint8_t> cBuffer(new uint8_t[colorBytes]); in createColorTable()90 if (stream()->read(cBuffer.get(), colorBytes) != colorBytes) { in createColorTable()116 if(fOffset < colorBytes) { in createColorTable()127 if (stream()->skip(fOffset - colorBytes) != fOffset - colorBytes) { in createColorTable()
92 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local95 const size_t colorBytes = dinfo->out_color_components; in get_row_bytes()97 return dinfo->output_width * colorBytes; in get_row_bytes()
113 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize() local114 SkASSERT(colorBytes > 0); in onGpuMemorySize()115 return fColorValuesPerPixel * fDesc.fWidth * fDesc.fHeight * colorBytes; in onGpuMemorySize()
30 size_t colorBytes = GrBytesPerPixel(desc.fConfig); in WorseCaseSize() local31 SkASSERT(colorBytes > 0); in WorseCaseSize()32 size = colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes; in WorseCaseSize()
182 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in totalBytesPerSample() local183 SkASSERT(colorBytes > 0); in totalBytesPerSample()185 return fDesc.fWidth * fDesc.fHeight * colorBytes; in totalBytesPerSample()