Method and apparatus for encoding or decoding video signal
The present invention relates to a video signal decoding method and apparatus therefor. A decoding method according to an embodiment of the present invention comprises: setting a structure of a coding block constituting a current image; setting a structure of transform blocks corresponding to the coding block; and generating a prediction signal by using the transform blocks, and wherein the coding block includes any one or more blocks of a square block and a non-square block.
1. A method of decoding a video signal, the video signal including transform block including at least one transform coefficient group, comprising:
obtaining transform region information indicating at least two transform regions, the transform regions included in a transform block;
partitioning the transform block into the transform regions based on the transform region information, the transform region including a first transform region and a second transform region, the first transform region including a first transform coefficient groups and the second transform region including a second transform coefficient groups;
obtaining a scan method of the transform regions, respectively; and
scanning a part of the transform region based on the scan method,
wherein the part of the transform region comprises the first transform region,
wherein the first and the second transform coefficient groups include at least one transform coefficients, respectively,
wherein the scan method comprising a scan order for coding the transform coefficients of the first and the second transform coefficient groups,
wherein when the first transform coefficient groups are included in a low frequency region, the transform coefficients of the first transform coefficient groups are scanned prior to the transform coefficients of the second transform coefficient groups, and
wherein the scan method of the transform regions in the transform block indicates at least two scan methods.
2. The method of claim 1 , wherein the transform region information is determined based on at least one of horizontal length and vertical length.
3. The method of claim 1 , wherein a first scan method for scanning the transform coefficients of the first transform region is different from a second scan method for scanning the transform coefficients of the second transform region.
4. The method of claim 1 , wherein the transform block is scanned transform region including transform coefficient groups in a lower frequency region.
5. The method of claim 1 , wherein the transform region is scanned the transform coefficient groups in the transform region using a diagonal scan method.
6. A non-transitory computer readable storage medium stored with code thereon for use by an apparatus for decoding a video signal, which when executed by a processor, the video signal including transform block including at least one transform coefficient group, causes the apparatus to perform:
obtaining transform region information indicating at least two transform regions, the transform regions included in a transform block;
partitioning the transform block into the transform regions based on the transform region information, the transform region including a first transform region and a second transform region, the first transform region including a first transform coefficient groups and the second transform region including a second transform coefficient groups;
obtaining a scan method of the transform regions, respectively; and
scanning a part of the transform region based on the scan method,
wherein the part of the transform region comprises the first transform region,
wherein the first and the second transform coefficient groups include at least one transform coefficients, respectively,
wherein the scan method comprising a scan order for coding the transform coefficients of the first and the second transform coefficient groups,
wherein when the first transform coefficient groups are included in a low frequency region, the transform coefficients of the first transform coefficient groups are scanned prior to the transform coefficients of the second transform coefficient groups, and
wherein the scan method of the transform regions in the transform block indicates at least two scan methods.
7. The medium of claim 6 , wherein the transform region information is determined based on at least one of horizontal length and vertical length.
8. The medium of claim 6 , wherein a first scan method for scanning the transform coefficients of the first transform region is different from a second scan method for scanning the transform coefficients of the second transform region.
9. The medium of claim 6 , wherein the transform block is scanned transform region including transform coefficient groups in a lower frequency region.
10. The medium of claim 6 , wherein the transform region is scanned the transform coefficient groups in the transform region using a diagonal scan method.
11. The medium of claim 6 , wherein the transform region information is determined based on whether the transform coefficient groups are included in a low frequency region or a high frequency region.
12. The medium of claim 6 , wherein the first transform region of a low frequency region is scanned prior to the second transform region of a high frequency region.
13. The medium of claim 6 , wherein the scan method includes a first scan order between the transform regions of the transform block, a second scan order between the transform coefficient groups of any transform region, and a third scan order between the transform coefficients of any transform group.
14. The medium of claim 6 , wherein the transform region information is determined based on whether the transform coefficient groups are included in a low frequency region or a high frequency region.
15. The medium of claim 6 , wherein the first transform region of a low frequency region is scanned prior to the second transform region of a high frequency region.
16. The medium of claim 6 , wherein the scan method includes a first scan order between the transform regions of the transform block, a second scan order between the transform coefficient groups of any transform region, and a third scan order between the transform coefficients of any transform group.