CPC H04N 19/61 (2014.11) [H04N 19/176 (2014.11); H04N 19/46 (2014.11); H04N 19/625 (2014.11); H04N 19/70 (2014.11)] | 3 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;
checking whether a condition related to a width and a height of the transform unit is satisfied;
determining a width variable and a height variable related to a transform target region based on the SBT flag and the condition; and
performing an inverse-transform on the transform target region based on the width variable and the height variable related to the transform target region,
wherein, based on the SBT flag indicating that the SBT is applied to the transform unit and the condition being satisfied, the width variable related to the transform target region is determined as a first reference value,
wherein, based on the SBT flag indicating that the SBT is not applied to the transform unit or the condition not being satisfied, the width variable related to the transform target region is determined as a smaller value among the width of the transform unit and a second reference value,
wherein, based on the SBT flag indicating that the SBT is applied to the transform unit and the condition being satisfied, the height variable related to the transform target region is determined as the first reference value,
wherein, based on the SBT flag indicating that the SBT is not applied to the transform unit or the condition not being satisfied, the height variable related to the transform target region is determined as a smaller value among the height of the transform unit and the second reference value,
wherein the inverse-transform on the transform target region comprises a horizontal direction transform and a vertical direction transform on a non-zero region in the transform unit,
wherein a horizontal transform kernel index indicating a type of a horizontal transform kernel for the horizontal direction transform is derived based on the SBT flag,
wherein a vertical transform kernel index indicating a type of a vertical transform kernel for the vertical direction transform is derived based on the SBT flag,
wherein a width of the non-zero region is determined as a smaller value among the width of the transform unit and 16, based on the horizontal transform kernel index being greater than zero, and
wherein a height of the non-zero region is determined as a smaller value among the height of the transform unit and 16, based on the vertical transform kernel index being greater than zero.
|