Lines Matching refs:height
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,
524 etc1_uint32 encodedHeight = (height + 3) & ~3;
527 etc1_uint32 yEnd = height - y;
569 etc1_uint32 width, etc1_uint32 height,
577 etc1_uint32 encodedHeight = (height + 3) & ~3;
580 etc1_uint32 yEnd = height - y;
633 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) {
636 etc1_uint32 encodedHeight = (height + 3) & ~3;
641 writeBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET, height);
654 etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET);
657 encodedHeight >= height && encodedHeight - height < 4;
666 // Read the image height from a PKM header