Lines Matching refs:pHeader

629 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) {  in etc1_pkm_format_header()  argument
630 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header()
633 writeBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET, ETC1_RGB_NO_MIPMAPS); in etc1_pkm_format_header()
634 writeBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET, encodedWidth); in etc1_pkm_format_header()
635 writeBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET, encodedHeight); in etc1_pkm_format_header()
636 writeBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET, width); in etc1_pkm_format_header()
637 writeBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET, height); in etc1_pkm_format_header()
642 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader) { in etc1_pkm_is_valid() argument
643 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
646 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); in etc1_pkm_is_valid()
647 etc1_uint32 encodedWidth = readBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET); in etc1_pkm_is_valid()
648 etc1_uint32 encodedHeight = readBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET); in etc1_pkm_is_valid()
649 etc1_uint32 width = readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET); in etc1_pkm_is_valid()
650 etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); in etc1_pkm_is_valid()
658 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader) { in etc1_pkm_get_width() argument
659 return readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET); in etc1_pkm_get_width()
664 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader){ in etc1_pkm_get_height() argument
665 return readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); in etc1_pkm_get_height()