question: encodes the image via the etc1 compression scheme . only format #rgb565 and format #rgb888 are supported . addsa pkm header in front of the compressed image data . concode_field_sep ByteBuffer compressedData concode_elem_sep int dataOffset concode_elem_sep int width concode_elem_sep int PKM_HEADER_SIZE concode_elem_sep int ETC1_RGB8_OES concode_elem_sep int height concode_field_sep boolean hasPKMHeader concode_elem_sep boolean isValidPKM concode_elem_sep void formatHeader concode_elem_sep Pixmap decodeImage concode_elem_sep void decodeImage concode_elem_sep int getPixelSize concode_elem_sep ETC1Data encodeImage concode_elem_sep ByteBuffer encodeImage concode_elem_sep int getHeightPKM concode_elem_sep int getWidthPKM concode_elem_sep void checkNPOT concode_elem_sep void dispose concode_elem_sep String toString concode_elem_sep int getCompressedDataSize concode_elem_sep void write
target: ETC1Data function ( Pixmap arg0 ) { int loc0 = getPixelSize ( arg0 . getFormat ( ) ) ; ByteBuffer loc1 = encodeImagePKM ( arg0 . getPixels ( ) , 0 , arg0 . getWidth ( ) , arg0 . getHeight ( ) , loc0 ) ; BufferUtils . newUnsafeByteBuffer ( loc1 ) ; return new ETC1Data ( arg0 . getWidth ( ) , arg0 . getHeight ( ) , loc1 , 16 ) ; }