Search

US-20260129235-A1 - METHOD AND APPARATUS FOR ENCODING/DECODING RESIDUAL DATA BASED ON A PLURALITY OF TRANSFORMATIONS

US20260129235A1US 20260129235 A1US20260129235 A1US 20260129235A1US-20260129235-A1

Abstract

An image decoding method according to the present invention can comprise the steps of: acquiring residual coefficients of a current block; dequantizing the residual coefficients; performing secondary inverse transformation on the dequantized residual coefficients; and performing primary inverse transformation on the performance result of the secondary inverse transformation. The secondary inverse transformation can be performed for a partial region of the current block.

Inventors

  • Bae Keun Lee

Assignees

  • KR CORPORATION

Dates

Publication Date
20260507
Application Date
20251226
Priority Date
20180608

Claims (8)

  1. 1 - 15 . (canceled)
  2. 16 . A method of decoding an image, the method comprising: obtaining prediction samples of a current block; obtaining residual coefficients of the current block; performing inverse-quantization for the residual coefficients; performing a secondary inverse-transform for the current block; performing a primary inverse-transform on a result of performing the secondary inverse-transform; and reconstructing the current block by summing residual samples, resulting from the primary inverse-transform, and the prediction samples, wherein the secondary inverse-transform is performed for inverse-quantized residual coefficients, resultant from the invers-quantization, included in a partial region of the current block, wherein the secondary inverse-transform is performed by using an inverse-transform matrix and an input matrix, the input matrix being generated by arranging the inverse quantized residual coefficients of a two-dimensional form in the partial region in a one-dimensional form, and wherein a number of rows or columns of the inverse-transform matrix is greater than a number of the inverse-quantized residual coefficients included in the partial region.
  3. 17 . The method of claim 16 , wherein a size of the partial region is adaptively determined based on a size of the current block.
  4. 18 . The method of claim 16 , wherein a transform type for the primary inverse transform is determined based on index information signaled through a bitstream.
  5. 19 . The method of claim 18 , wherein the index information specifies any one of a plurality of transform sets, wherein a first transform type candidate included in the transform set is determined as a horizontal directional transform type of the current block, and wherein a second transform type candidate included in the transform set is determined as a vertical directional transform type of the current block.
  6. 20 . The method of claim 16 , wherein a transform type for the primary inverse transform is determined by comparing a width of the current block or a height of the current block with a threshold value.
  7. 21 . A method of encoding an image, the method comprising: obtaining prediction samples of a current block; obtaining residual samples of the current block by subtracting the prediction samples from original samples; performing a primary transform on the residual samples of the current block; performing a secondary transform for the current block; quantizing transform coefficients generated as a result of the secondary transform; and encoding the quantized transform coefficients, wherein the secondary transform is performed for intermediate transform coefficients, resultant from the primary transform, included in a partial region of the current block, wherein the secondary transform is performed by using a transform matrix and an input matrix, the input matrix being generated by arranging the intermediate transform coefficients of a two-dimensional form in a one-dimensional form, and wherein a number of rows or columns of the transform matrix is less than a number of the intermediate transform coefficients included in the partial region.
  8. 22 . A device for transmitting compressed video data, comprising: a processor configured to obtain the compressed video data; and a transmitter configured to transmit the compressed video data, wherein obtaining the compressed video data comprises: obtaining prediction samples of a current block; obtaining residual samples of the current block by subtracting the prediction samples from original samples; performing a primary transform on the residual samples of the current block; performing a secondary transform for the current block; quantizing transform coefficients generated as a result of the secondary transform; and encoding the quantized transform coefficients, wherein the secondary transform is performed for intermediate transform coefficients, resultant from the primary transform, included in a partial region of the current block, wherein the secondary transform is performed by using a transform matrix and an input matrix, the input matrix being generated by arranging the intermediate transform coefficients of a two-dimensional form in a one-dimensional form, and wherein a number of rows or columns of the transform matrix is less than a number of the intermediate transform coefficients included in the partial region.

Description

TECHNICAL FIELD The present invention relates to a method and an apparatus for processing video signal. BACKGROUND ART Recently, demands for high-resolution and high-quality images such as high definition (HD) images and ultra-high definition (UHD) images have increased in various application fields. However, higher resolution and quality image data has increasing amounts of data in comparison with conventional image data. Therefore, when transmitting image data by using a medium such as conventional wired and wireless broadband networks, or when storing image data by using a conventional storage medium, costs of transmitting and storing increase. In order to solve these problems occurring with an increase in resolution and quality of image data, high-efficiency image encoding/decoding techniques may be utilized. Image compression technology includes various techniques, including: an inter-prediction technique of predicting a pixel value included in a current picture from a previous or subsequent picture of the current picture; an intra-prediction technique of predicting a pixel value included in a current picture by using pixel information in the current picture; an entropy encoding technique of assigning a short code to a value with a high appearance frequency and assigning a long code to a value with a low appearance frequency; etc. Image data may be effectively compressed by using such image compression technology, and may be transmitted or stored. In the meantime, with demands for high-resolution images, demands for stereographic image content, which is a new image service, have also increased. A video compression technique for effectively providing stereographic image content with high resolution and ultra-high resolution is being discussed. DISCLOSURE Technical Problem An object of the present invention is to provide a method and an apparatus for encoding/decoding residual data based on a plurality of transformations. An object of the present invention is to provide a method and an apparatus for performing the secondary transformation on a partial region of a block on which the primary transformation has been performed. The technical objects to be achieved by the present invention are not limited to the above-mentioned technical problems. And, other technical problems that are not mentioned will be apparently understood to those skilled in the art from the following description. Technical Solution A video signal decoding method and apparatus according to the present invention may acquire residual coefficients of a current block, inverse quantize the residual coefficients, perform a secondary inverse transformation on the inverse quantized residual coefficients, and perform a primary inverse transformation on a result of performing the secondary inverse transformation. In this case, the secondary inverse transformation is performed on a partial region of the current block. A video signal encoding method and apparatus according to the present invention may perform a primary transformation on residual samples, perform a secondary transformation on primary transform coefficients generated as a result of the primary transformation, quantize secondary transform coefficients generated as a result of the secondary transformation, and encode the quantized transform coefficients. In this case, the secondary transformation is performed on a partial region of a current block. In the method and apparatus for encoding/decoding a video signal according to the present invention, the secondary transformation/inverse transformation is performed using a transform matrix and a one-dimensional matrix generated by arranging the inverse quantized residual coefficients included in the partial region in one dimension. In the method and apparatus for encoding/decoding a video signal according to the present invention, a number of rows or columns of the transform matrix is smaller than a number of samples included in the partial region. In the method and apparatus for encoding/decoding a video signal according to the present invention, a size or shape of the partial region is determined based on a size or shape of the current block. In the method and apparatus for encoding/decoding a video signal according to the present invention, a transform/inverse transform type for the primary inverse transformation is determined based on index information signaled through a bitstream. In the method and apparatus for encoding/decoding a video signal according to the present invention, the index information specifies any one of a plurality of transform sets, a first transform type candidate included in the transform set is determined as a horizontal direction transform type of the current block, and a second transform type candidate included in the transform set is determined as a vertical direction transform type of the current block. In the method and apparatus for encoding/decoding a video signal according to the present invention, a tr