to compress the wavelet coefficients we use Embedded Zerotree Algorithm:
the coefficients describing low frequencies are placed in the front of the stream, higher frequencies are placed further;
the coefficients can be roughly approximated using only the beginning of the stream, further part of the stream provides additional refinement information.