Home | History | Annotate | Download | only in etc1

Lines Matching refs:pHeader

641 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) {
642 memcpy(pHeader, kMagic, sizeof(kMagic));
645 writeBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET, ETC1_RGB_NO_MIPMAPS);
646 writeBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET, encodedWidth);
647 writeBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET, encodedHeight);
648 writeBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET, width);
649 writeBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET, height);
654 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader) {
655 if (memcmp(pHeader, kMagic, sizeof(kMagic))) {
658 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET);
659 etc1_uint32 encodedWidth = readBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET);
660 etc1_uint32 encodedHeight = readBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET);
661 etc1_uint32 width = readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET);
662 etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET);
670 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader) {
671 return readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET);
676 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader){
677 return readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET);