QM encoder is an adaptive binary arithmetic coding procedure which is widely used in entropy coding such as JPEG.