Searched refs:etc1_byte (Results 1 – 2 of 2) sorted by relevance
/external/skia/third_party/etc1/ |
D | etc1.cpp | 130 static inline etc1_byte clamp(int x) { in clamp() 131 return (etc1_byte) (x >= 0 ? (x < 255 ? x : 255) : 0); in clamp() 175 void decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, in decode_subblock() 198 etc1_byte* q = pOut + 3 * (x + 4 * y); in decode_subblock() 208 void etc1_decode_block(const etc1_byte* pIn, etc1_byte* pOut) { in etc1_decode_block() 255 void etc_average_colors_subblock(const etc1_byte* pIn, etc1_uint32 inMask, in etc_average_colors_subblock() 256 etc1_byte* pColors, bool flipped, bool second) { in etc_average_colors_subblock() 271 const etc1_byte* p = pIn + i * 3; in etc_average_colors_subblock() 288 const etc1_byte* p = pIn + i * 3; in etc_average_colors_subblock() 296 pColors[0] = (etc1_byte)((r + 4) >> 3); in etc_average_colors_subblock() [all …]
|
D | etc1.h | 33 typedef unsigned char etc1_byte; typedef 52 void etc1_encode_block(const etc1_byte* pIn, etc1_uint32 validPixelMask, etc1_byte* pOut); 62 void etc1_decode_block(const etc1_byte* pIn, etc1_byte* pOut); 75 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, 76 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut); 86 int etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, 96 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height); 100 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader); 104 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader); 108 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader);
|