CPC H04N 19/91 (2014.11) [H04N 19/129 (2014.11); H04N 19/13 (2014.11); H04N 19/18 (2014.11); H04N 19/70 (2014.11)] | 7 Claims |
1. A method for decoding a video signal, comprising:
checking whether a coding block is divided into plural transform blocks;
based on that the coding block is divided into the plural transform blocks, determining a limited region within a current transform block among the plural transform blocks based on a width and a height of the current transform block, wherein a last non-zero transform coefficient is positioned in the limited region within the current transform block;
obtaining first information on a position of the last non-zero transform coefficient within the limited region, wherein the first information on a position of the last non-zero transform coefficient includes prefix information of a horizontal position and prefix information of a vertical position for the last non-zero transform coefficient, and suffix information of a horizontal position and suffix information of a vertical position for the last non-zero transform coefficient; and
decoding the current transform block based on the position of the last non-zero transform coefficient,
wherein the prefix information of the horizontal position and the prefix information of the vertical position for the last non-zero transform coefficient are inversely binarized based on a truncated unary code, and
wherein the suffix information of the horizontal position and the suffix information of the vertical position for the last non-zero transform coefficient are inversely binarized based on a fixed length code.
|