CPC H04N 19/50 (2014.11) [H04N 19/91 (2014.11)] | 8 Claims |
1. A video decoding method comprising the steps of:
parsing a non-zero flag indicating whether a residual coefficient is non-zero from a bitstream;
parsing absolute value information for determining an absolute value of the residual coefficient from the bitstream when the non-zero flag indicates that the residual coefficient is non-zero; and
determining the absolute value of the residual coefficient based on the absolute value information,
wherein
the absolute value information comprises a residual coefficient comparison flag indicating whether the residual coefficient is greater than a first value,
a parity flag is further parsed from the bitstream when the residual coefficient is greater than the first value; and the parity flag indicates whether the value of the residual coefficient is an even number or an odd number,
a first adjusted remnant coefficient comparison flag indicating whether an adjusted remnant coefficient derived by bit-shifting the residual coefficient to the right by 1 is greater than a second value is further parsed when the residual coefficient is greater than the first value,
wherein N is the second value, and wherein the residual coefficient is determined to be 2N or 2N+1 depending on the parity flag in either the case the adjusted remnant coefficient is less than the second value or equal to the second value;
wherein when the adjusted remnant coefficient is greater than the second value, a residual value information is further parsed, and
the residual value information comprises a value obtained by subtracting the second value from the adjusted remnant coefficient,
wherein R represents the value of the residual value information, the residual coefficient is determined to be 2(N+R) or 2(N+R)+1 depending on the parity flag.
|