CPC H04N 19/91 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/60 (2014.11)] | 7 Claims |
1. A method of decoding an image, the method comprising:
receiving a bitstream including coefficient information of a current transform block, the coefficient information including sub-block information and absolute value information, the sub-block information indicating whether a sub-block in the current transform block includes at least one non-zero coefficient, the absolute value information indicating whether an absolute value of a current transform coefficient of the sub-block in the current transform block is greater than 3; and
in response to the sub-block information indicating that the sub-block in the current transform block includes the at least one non-zero coefficient, entropy-decoding the absolute value information of the current transform coefficient from the bitstream,
wherein entropy-decoding the absolute value information of the current transform coefficient comprises:
determining probability information of the absolute value information of the current transform coefficient based on significant coefficient flag information of neighboring transform coefficients of the current transform coefficient, the significant coefficient flag information indicating whether a neighboring transform coefficient is non-zero or not;
decoding the absolute value information of the current transform coefficient based on the probability information,
wherein the neighboring transform coefficients include coefficients with coordinates of (x+2, y), (x+1, y+1), and (x, y+2), and
wherein x and y are representative of coordinates of the current transform coefficient.
|