Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkBmpStandardCodec.cpp73 uint32_t colorBytes = 0; in createColorTable() local
89 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()
DSkBmpRLECodec.cpp72 uint32_t colorBytes = 0; in createColorTable() local
88 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()
DSkJpegCodec.cpp92 const size_t colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 : in get_row_bytes() local
95 const size_t colorBytes = dinfo->out_color_components; in get_row_bytes()
97 return dinfo->output_width * colorBytes; in get_row_bytes()
/external/skia/src/gpu/vk/
DGrVkRenderTarget.h113 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize() local
114 SkASSERT(colorBytes > 0); in onGpuMemorySize()
115 return fColorValuesPerPixel * fDesc.fWidth * fDesc.fHeight * colorBytes; in onGpuMemorySize()
/external/skia/src/gpu/
DGrSurface.cpp30 size_t colorBytes = GrBytesPerPixel(desc.fConfig); in WorseCaseSize() local
31 SkASSERT(colorBytes > 0); in WorseCaseSize()
32 size = colorValuesPerPixel * desc.fWidth * desc.fHeight * colorBytes; in WorseCaseSize()
/external/skia/src/gpu/gl/
DGrGLRenderTarget.cpp182 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in totalBytesPerSample() local
183 SkASSERT(colorBytes > 0); in totalBytesPerSample()
185 return fDesc.fWidth * fDesc.fHeight * colorBytes; in totalBytesPerSample()