摘要 |
A method of coding image data, comprises:
converting (602) a block of image data into transform coefficients; and
quantizing (604) the transform coefficients such that all, some or none of the transform coefficients become zero. The method biseing characterised in that it comprises the further steps of:
constructing (606), from the quantized transform coefficients, a single entity (706) containing all zero and non-zero coefficient information, wherein the constructing comprises:
mapping all the quantized transform coefficients (702) into a one-dimensional list (704) of quantized transform coefficients in any fixed order; and
generating the single entity (706) to indicate all quantized transform coefficients in the one-dimensional list (704) that are non-zero, the single entity being a bit vector and each bit of the bit vector representing a corresponding quantised transform coefficient in the one-dimensional list;
coding (608) the bit vector using an arithmetic coder; and
coding (610, 804) values of the non-zero quantized transform coefficients in any fixed order. |