CPC H04N 19/60 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 13 Claims |
1. A method for decoding a video signal, comprising:
obtaining a sub-block transform (SBT) flag indicating whether a SBT is applied, wherein the SBT represents a transform applied to a transform unit corresponding to one of subblocks split from a coding unit;
determining a width variable and a height variable related to a transform target region based on the SBT flag and a width and a height of the transform unit,
wherein, based on a first condition that (i) the SBT flag equals to 1, (ii) the width of the transform unit is a first reference value, and (iii) the height of the transform unit is less than a second reference value: the width variable related to the transform target region is determined as a third reference value, and
wherein, based on a second condition that (i) the SBT flag equals to 1, (ii) the height of the transform unit is the first reference value, and (iii) the width of the transform unit is less than the second reference value: the height variable related to the transform target region is determined as the third reference value;
obtaining position information of a last significant coefficient according to a scan order within the transform unit, wherein the position information of the last significant coefficient is determined based on prefix information determined by the width variable and the height variable related to the transform target region; and
performing an inverse-transform based on the position information of the last significant coefficient.
|