Compression & quantization are linear function or non linear function? If it may be linear in some cases, what are the cases?