Encoding, decoding and compression Sphere