1. A method for encoding an image, comprising: dividing a coefficient vector into a plurality of sub-vectors; indicating position of a sub-vector of the plurality of sub-vectors within the coefficient vector; and encoding the coefficient values of the sub-vector using a variable-length coder.