Lines Matching full:width
503 etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height) {
504 return (((width + 3) & ~3) * ((height + 3) & ~3)) >> 1;
512 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height,
523 etc1_uint32 encodedWidth = (width + 3) & ~3;
533 etc1_uint32 xEnd = width - x;
569 etc1_uint32 width, etc1_uint32 height,
576 etc1_uint32 encodedWidth = (width + 3) & ~3;
585 etc1_uint32 xEnd = width - x;
633 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) {
635 etc1_uint32 encodedWidth = (width + 3) & ~3;
640 writeBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET, width);
653 etc1_uint32 width = readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET);
656 encodedWidth >= width && encodedWidth - width < 4 &&
660 // Read the image width from a PKM header