WO2018174457A1 - Image processing method and device therefor - Google Patents

Image processing method and device therefor Download PDF

Info

Publication number
WO2018174457A1
WO2018174457A1 PCT/KR2018/002929 KR2018002929W WO2018174457A1 WO 2018174457 A1 WO2018174457 A1 WO 2018174457A1 KR 2018002929 W KR2018002929 W KR 2018002929W WO 2018174457 A1 WO2018174457 A1 WO 2018174457A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
transform
amt
luminance
chrominance
Prior art date
Application number
PCT/KR2018/002929
Other languages
French (fr)
Korean (ko)
Inventor
최장원
허진
Original Assignee
엘지전자(주)
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자(주) filed Critical 엘지전자(주)
Publication of WO2018174457A1 publication Critical patent/WO2018174457A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Definitions

  • the present invention relates to a still image or video processing method, and more particularly, to a method for applying an AMT (Adaptive Multiple Core Transform) in the encoding / decoding process of a chrominance image and an apparatus for supporting the same.
  • AMT Adaptive Multiple Core Transform
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or for storing in a form suitable for a storage medium.
  • Media such as an image, an image, an audio, and the like may be a target of compression encoding.
  • a technique of performing compression encoding on an image is called video image compression.
  • Next-generation video content will be characterized by high spatial resolution, high frame rate and high dimensionality of scene representation. Processing such content would result in a tremendous increase in terms of memory storage, memory access rate, and processing power.
  • An object of the present invention is to provide a method and apparatus for efficiently encoding / decoding a still image or a moving image.
  • Another object of the present invention is to provide a method and apparatus for efficiently transforming a residual signal of a color difference image.
  • Another object of the present invention is to provide a method and apparatus for applying an adaptive multiple core transform (AMT) to a chroma image.
  • AMT adaptive multiple core transform
  • Another object of the present invention is to provide a method and apparatus for selecting an AMT transform set for a color difference image.
  • Another object of the present invention is to provide a method and apparatus for setting an AMT transform set for a color difference image.
  • An aspect of the present invention provides a method of decoding a chrominance block of an image, the method comprising: determining whether an adaptive transform kernel is applicable to the chrominance block; Acquiring transform information of the color difference block when the adaptive transform kernel is applicable to the color difference block; And inversely transforming the chrominance block using the obtained transform information.
  • a combination of a first transform applied in a horizontal direction of the chrominance block and a second transform applied in a vertical direction is determined according to the prediction mode of the chrominance block.
  • the transformation information includes first transformation information indicating whether the adaptive transformation kernel is applied to a luminance block associated with the chrominance block,
  • the apparatus further includes second transform information indicating a combination of a transform applied in the horizontal direction and a transform applied in the vertical direction to the luminance block.
  • the first transform information indicates that the adaptive transform kernel is applied to the luminance block
  • inversely transforming the color difference block using the combination of transforms indicated by the second transform information
  • the color difference block Inverse transformation of is performed.
  • the prediction mode of the chrominance block is an intra prediction mode
  • the size of the chrominance block, or the intra prediction mode of the chrominance block is a specific intra prediction mode. Based on the recognition it is determined whether the adaptive transform kernel is applicable.
  • the adaptive transform kernel can be applied to the color difference block.
  • the specific intra prediction mode of the chrominance block uses a first mode for predicting the chrominance pixel value of the chrominance block by using the reconstructed luminance pixel value, or the prediction direction of the luminance block at a position corresponding to the chrominance block.
  • the second mode uses a first mode for predicting the chrominance pixel value of the chrominance block by using the reconstructed luminance pixel value, or the prediction direction of the luminance block at a position corresponding to the chrominance block.
  • the adaptive transform kernel is applicable, when the prediction mode of the color difference block is an inter prediction mode, the size of the color difference block, the prediction block of the color difference block and the prediction block of the luminance block Based on the degree of correlation or the degree of correlation between the predicted block of the chrominance block and the reconstructed block of the luminance block, it is determined whether the adaptive transform kernel is applicable.
  • the conversion information is obtained from a luminance block existing at a position corresponding to the color difference block. If the shape of the luminance block is different, selecting one of a plurality of luminance blocks as the luminance block; And acquiring the conversion information from the selected one luminance block.
  • a luminance block existing at a position corresponding to a specific position of the chrominance block is selected, or an area of an area overlapping with the chrominance block is selected.
  • the largest luminance block is selected, or the luminance block having the largest size is selected among the luminance blocks where the color difference block and the region overlap.
  • the transform information is transmitted from an encoder, and the transform information includes first transform information indicating whether the adaptive transform kernel has been applied to the chrominance block. And when the adaptive transform kernel is applied to the chrominance block, the transform information further includes second transform information indicating a combination of a transform applied in the horizontal direction and a transform applied in the vertical direction to the chrominance block.
  • the prediction mode of the chrominance block is a specific intra prediction mode
  • transformation information of a luminance block associated with the chrominance block is obtained as transformation information of the chrominance block, otherwise, The conversion information is transmitted from the encoder.
  • An aspect of the present invention provides a device for decoding a color difference block of an image, wherein the device includes an inverse transform unit for inversely transforming inverse quantized transform coefficients of the color difference block, wherein the inverse transform unit is adapted to the color difference block.
  • An adaptive transform kernel application determining unit determining whether or not an adaptive transform kernel is applicable;
  • a transformation information obtaining unit obtaining transformation information of the chrominance block when the adaptive transformation kernel is applicable to the chrominance block;
  • a color difference block inverse transform unit which inversely transforms the color difference block by using the obtained conversion information.
  • data compression efficiency may be improved by applying an adaptive multiple core transform (AMT) in a process of encoding / decoding a color difference image.
  • AMT adaptive multiple core transform
  • the number of bits signaled may be reduced by using the AMT information of the luminance block as the AMT information of the chrominance block.
  • whether or not AMT is applicable to the color difference block may be first determined, and a luminance block for obtaining AMT information may be selected through various methods.
  • the conversion efficiency may be improved by using an AMT transform set separately configured according to the characteristics of the chrominance block.
  • the number of bits signaled may be reduced by reducing the number of sub transform sets applicable in each prediction mode.
  • data compression efficiency may be further improved by determining whether AMT is applied to each of the Cb block and the Cr block.
  • FIG. 1 is a schematic block diagram of an encoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
  • FIG. 2 is a schematic block diagram of a decoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
  • FIG. 3 is a diagram for describing a partition structure of a coding unit that may be applied to the present invention.
  • FIG. 4 is a diagram for explaining a prediction unit applicable to the present invention.
  • FIG. 5 illustrates a prediction direction of an intra prediction mode according to an embodiment of the present invention.
  • FIG. 6 is a diagram for describing a QTBT (QuadTree BinaryTree) block division structure according to an embodiment of the present invention.
  • QTBT QuadTree BinaryTree
  • FIG. 7 is a diagram illustrating a block division structure of a QTBT for a luma component and a chroma component according to an embodiment of the present invention.
  • FIG. 8 illustrates selecting one of a plurality of luminance blocks when the block division structure of the luminance block and the chrominance block is different according to an embodiment of the present invention.
  • LM linear model
  • FIG. 10 is a block diagram of an inverse transform unit, according to an exemplary embodiment.
  • FIG. 11 is a flowchart of a method of decoding a color difference block, according to an embodiment of the present invention.
  • the term 'block' or 'unit' refers to a unit in which a process of encoding / decoding such as prediction, transformation, and / or quantization is performed, and may be configured as a multidimensional array of samples (or pixels, pixels).
  • 'Block' or 'unit' may mean a multi-dimensional array of samples for luma components, or may mean a multi-dimensional array of samples for chroma components.
  • the multi-dimensional arrangement of the sample for the luma component and the multi-dimensional arrangement of the sample for the chroma component may also be included.
  • 'block' or 'unit' refers to a coding block (CB) that represents an array of samples to be encoded / decoded, and a coding tree block composed of a plurality of coding blocks (CTB).
  • CB coding block
  • CB coding block
  • CB coding tree block composed of a plurality of coding blocks
  • PB Prediction Block
  • PU Prediction Unit
  • TB Transform Block
  • a 'block' or 'unit' is a syntax structure used in encoding / decoding an array of samples for a luma component and / or a chroma component. can be interpreted to include a sturcture.
  • the syntax structure refers to zero or more syntax elements existing in the bitstream in a specific order, and the syntax element refers to an element of data represented in the bitstream.
  • a 'block' or 'unit' includes a coding unit (CU) including a coding block (CB) and a syntax structure used for encoding the coding block (CB), and a plurality of coding units.
  • TUs transform units
  • the 'block' or 'unit' is not necessarily limited to an array of square or rectangular samples (or pixels or pixels), and polygonal samples having three or more vertices (or pixels or pixels). It can also mean an array of. In this case, it may also be referred to as a polygon block or a polygon unit.
  • FIG. 1 is a schematic block diagram of an encoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
  • the encoder 100 may include an image divider 110, a subtractor 115, a transform unit 120, a quantizer 130, an inverse quantizer 140, an inverse transform unit 150, and a filtering unit. 160, a decoded picture buffer (DPB) 170, a predictor 180, and an entropy encoder 190.
  • the predictor 180 may include an inter predictor 181 and an intra predictor 182.
  • the image divider 110 divides an input video signal (or a picture or a frame) input to the encoder 100 into one or more processing units.
  • the subtractor 115 subtracts the difference from the prediction signal (or prediction block) output from the prediction unit 180 (that is, the inter prediction unit 181 or the intra prediction unit 182) in the input image signal. Generate a residual signal (or difference block). The generated difference signal (or difference block) is transmitted to the converter 120.
  • the transform unit 120 may convert a differential signal (or a differential block) into a transform scheme (eg, a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), and a karhunen-loeve transform (KLT)). Etc.) to generate transform coefficients.
  • a transform scheme eg, a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), and a karhunen-loeve transform (KLT)
  • the quantization unit 130 quantizes the transform coefficients and transmits the transform coefficients to the entropy encoding unit 190, and the entropy encoding unit 190 entropy codes the quantized signals and outputs them as bit streams.
  • the quantized signal output from the quantization unit 130 may be used to generate a prediction signal.
  • the quantized signal may recover the differential signal by applying inverse quantization and inverse transformation through an inverse quantization unit 140 and an inverse transformation unit 150 in a loop.
  • a reconstructed signal may be generated by adding the reconstructed difference signal to a prediction signal output from the inter predictor 181 or the intra predictor 182.
  • the filtering unit 160 applies filtering to the reconstruction signal and outputs it to the reproduction apparatus or transmits the decoded picture buffer to the decoding picture buffer 170.
  • the filtered signal transmitted to the decoded picture buffer 170 may be used as the reference picture in the inter prediction unit 181. As such, by using the filtered picture as a reference picture in the inter prediction mode, not only image quality but also encoding efficiency may be improved.
  • the decoded picture buffer 170 may store the filtered picture for use as a reference picture in the inter prediction unit 181.
  • the inter prediction unit 181 performs temporal prediction and / or spatial prediction to remove temporal redundancy and / or spatial redundancy with reference to a reconstructed picture.
  • the reference picture used to perform the prediction is a transformed signal that has been quantized and dequantized in units of blocks at the time of encoding / decoding, a blocking artifact or a ringing artifact may exist. have.
  • the inter prediction unit 181 may interpolate the signals between pixels in sub-pixel units by applying a lowpass filter to solve performance degradation due to discontinuity or quantization of such signals.
  • the subpixel refers to a virtual pixel generated by applying an interpolation filter
  • the integer pixel refers to an actual pixel existing in the reconstructed picture.
  • the interpolation method linear interpolation, bi-linear interpolation, wiener filter, or the like may be applied.
  • the interpolation filter may be applied to a reconstructed picture to improve the precision of prediction.
  • the inter prediction unit 181 generates an interpolation pixel by applying an interpolation filter to integer pixels, and uses an interpolated block composed of interpolated pixels as a prediction block. You can make predictions.
  • the intra predictor 182 predicts the current block by referring to samples in the vicinity of the block to which the current encoding is to be performed.
  • the intra prediction unit 182 may perform the following process to perform intra prediction. First, reference samples necessary for generating a prediction signal may be prepared. The prediction signal may be generated using the prepared reference sample. In addition, the prediction mode is encoded. In this case, the reference sample may be prepared through reference sample padding and / or reference sample filtering. Since the reference sample has been predicted and reconstructed, there may be a quantization error. Accordingly, the reference sample filtering process may be performed for each prediction mode used for intra prediction to reduce such an error.
  • the prediction signal (or prediction block) generated by the inter prediction unit 181 or the intra prediction unit 182 is used to generate a reconstruction signal (or reconstruction block) or a differential signal (or differential block). It can be used to generate.
  • FIG. 2 is a schematic block diagram of a decoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
  • the decoder 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, and a decoded picture buffer (DPB).
  • Buffer Unit (250) the prediction unit 260 may be configured.
  • the predictor 260 may include an inter predictor 261 and an intra predictor 262.
  • the reconstructed video signal output through the decoder 200 may be reproduced through the reproducing apparatus.
  • the decoder 200 receives a signal (ie, a bit stream) output from the encoder 100 of FIG. 1, and the received signal is entropy decoded through the entropy decoding unit 210.
  • the inverse quantization unit 220 obtains a transform coefficient from the entropy decoded signal using the quantization step size information.
  • the inverse transform unit 230 applies an inverse transform scheme to inverse transform the transform coefficients to obtain a residual signal (or a differential block).
  • the adder 235 outputs the obtained difference signal (or difference block) from the prediction unit 260 (that is, the prediction signal (or prediction block) output from the inter prediction unit 261 or the intra prediction unit 262. ) Generates a reconstructed signal (or a reconstruction block).
  • the filtering unit 240 applies filtering to the reconstructed signal (or the reconstructed block) and outputs the filtering to the reproduction device or transmits the decoded picture buffer unit 250 to the reproduction device.
  • the filtered signal transmitted to the decoded picture buffer unit 250 may be used as a reference picture in the inter predictor 261.
  • the embodiments described by the filtering unit 160, the inter prediction unit 181, and the intra prediction unit 182 of the encoder 100 are respectively the filtering unit 240, the inter prediction unit 261, and the decoder of the decoder. The same may be applied to the intra predictor 262.
  • a still image or video compression technique uses a block-based image compression method.
  • the block-based image compression method is a method of processing an image by dividing the image into specific block units, and may reduce memory usage and calculation amount.
  • FIG. 3 is a diagram for describing a partition structure of a coding unit that may be applied to the present invention.
  • the encoder splits one image (or picture) into units of a coding tree unit (CTU) in a rectangular shape.
  • CTU coding tree unit
  • one CTU is sequentially encoded according to a raster scan order.
  • the size of the CTU can be set to any of 64 ⁇ 64, 32 ⁇ 32, and 16 ⁇ 16.
  • the encoder may select and use the size of the CTU according to the resolution of the input video or the characteristics of the input video.
  • the CTU includes a coding tree block (CTB) for luma components and a CTB for two chroma components corresponding thereto.
  • CTB coding tree block
  • One CTU may be divided into a quad-tree structure. That is, one CTU has a square shape and is divided into four units having a half horizontal size and a half vertical size to generate a coding unit (CU). have. This partitioning of the quad-tree structure can be performed recursively. That is, a CU is hierarchically divided into quad-tree structures from one CTU.
  • CU coding unit
  • the CU refers to a basic unit of coding in which an input image is processed, for example, intra / inter prediction is performed.
  • the CU includes a coding block (CB) for a luma component and a CB for two chroma components corresponding thereto.
  • CB coding block
  • the size of a CU may be one of 64 ⁇ 64, 32 ⁇ 32, 16 ⁇ 16, and 8 ⁇ 8.
  • the root node of the quad-tree is associated with the CTU.
  • the quad-tree is split until it reaches a leaf node, which corresponds to a CU.
  • the CTU may not be divided according to the characteristics of the input image.
  • the CTU corresponds to a CU.
  • a node that is no longer divided ie, a leaf node
  • CU a node that is no longer divided
  • CU a node that is no longer divided
  • CU a node corresponding to nodes a, b, and j are divided once in the CTU and have a depth of one.
  • a node (ie, a leaf node) that is no longer divided in a lower node having a depth of 2 corresponds to a CU.
  • CU (c), CU (h) and CU (i) corresponding to nodes c, h and i are divided twice in the CTU and have a depth of two.
  • a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of 3 corresponds to a CU.
  • CU (d), CU (e), CU (f), and CU (g) corresponding to nodes d, e, f, and g are divided three times in the CTU, Has depth.
  • the maximum size or the minimum size of the CU may be determined according to characteristics (eg, resolution) of the video image or in consideration of encoding efficiency. Information about this or information capable of deriving the information may be included in the bitstream.
  • a CU having a maximum size may be referred to as a largest coding unit (LCU), and a CU having a minimum size may be referred to as a smallest coding unit (SCU).
  • LCU largest coding unit
  • SCU smallest coding unit
  • a CU having a tree structure may be hierarchically divided with predetermined maximum depth information (or maximum level information).
  • Each partitioned CU may have depth information. Since the depth information indicates the number and / or degree of division of the CU, the depth information may include information about the size of the CU.
  • the size of the SCU can be obtained by using the size and maximum depth information of the LCU. Or conversely, using the size of the SCU and the maximum depth information of the tree, the size of the LCU can be obtained.
  • information indicating whether the corresponding CU is split may be transmitted to the decoder.
  • This partitioning information is included in all CUs except the SCU. For example, if the flag indicating whether to split or not is '1', the CU is divided into 4 CUs again. If the flag indicating whether to split or not is '0', the CU is not divided further. Processing may be performed.
  • a CU is a basic unit of coding in which intra prediction or inter prediction is performed.
  • HEVC divides a CU into prediction units (PUs) in order to code an input image more effectively.
  • the PU is a basic unit for generating a prediction block, and may generate different prediction blocks in PU units within one CU. However, PUs belonging to one CU are not mixed with intra prediction and inter prediction, and PUs belonging to one CU are coded by the same prediction method (ie, intra prediction or inter prediction).
  • the PU is not divided into quad-tree structures, but is divided once in a predetermined form in one CU. This will be described with reference to the drawings below.
  • FIG. 4 is a diagram for explaining a prediction unit applicable to the present invention.
  • the PU is divided differently according to whether an intra prediction mode or an inter prediction mode is used as a coding mode of a CU to which the PU belongs.
  • FIG. 4A illustrates a PU when an intra prediction mode is used
  • FIG. 4B illustrates a PU when an inter prediction mode is used.
  • one CU is divided into two types (that is, 2N ⁇ 2N or N ⁇ N). Can be.
  • the division of the PU may be performed only when the size of the CB for the luminance component of the CU is the minimum size (that is, the CU is the SCU).
  • one CU has 8 PU types (ie, 2N ⁇ 2N, N ⁇ N, 2N ⁇ N). , N ⁇ 2N, nL ⁇ 2N, nR ⁇ 2N, 2N ⁇ nU, 2N ⁇ nD).
  • PU splitting in the form of N ⁇ N may be performed only when the size of the CB for the luminance component of the CU is the minimum size (that is, the CU is the SCU).
  • AMP Asymmetric Motion Partition
  • 'n' means a 1/4 value of 2N.
  • AMP cannot be used when the CU to which the PU belongs is a CU of the minimum size.
  • an optimal partitioning structure of a coding unit (CU), a prediction unit (PU), and a transformation unit (TU) is subjected to the following process to perform a minimum rate-distortion. It can be determined based on the value. For example, looking at the optimal CU partitioning process in the 64 ⁇ 64 CTU, the rate-distortion cost can be calculated while the partitioning process from the 64 ⁇ 64 size CU to the 8 ⁇ 8 size CU.
  • the specific process is as follows.
  • the partition structure of the optimal PU and TU that generates the minimum rate-distortion value is determined by performing inter / intra prediction, transform / quantization, inverse quantization / inverse transform, and entropy encoding on a 64 ⁇ 64 CU.
  • the 16 ⁇ 16 CU is subdivided into four 8 ⁇ 8 CUs, and the optimal PU and TU partitioning structure is generated to generate the minimum rate-distortion value for each 8 ⁇ 8 CU.
  • a prediction mode is selected in units of PUs, and prediction and reconstruction are performed in units of actual TUs for the selected prediction mode.
  • the TU means a basic unit in which actual prediction and reconstruction are performed.
  • the TU includes a transform block (TB) for a luma component and a TB for two chroma components corresponding thereto.
  • TB transform block
  • the TUs are hierarchically divided into quad-tree structures from one CU to be coded.
  • the TU divided from the CU can be divided into smaller lower TUs.
  • the size of a TU can be set to any of 32 ⁇ 32, 16 ⁇ 16, 8 ⁇ 8, and 4 ⁇ 4.
  • a root node of the quad-tree is associated with a CU.
  • the quad-tree is split until it reaches a leaf node, which corresponds to a TU.
  • the CU may not be divided according to the characteristics of the input image.
  • the CU corresponds to a TU.
  • a node ie, a leaf node
  • TU (a), TU (b), and TU (j) corresponding to nodes a, b, and j are divided once in a CU and have a depth of 1.
  • FIG. 3B TU (a), TU (b), and TU (j) corresponding to nodes a, b, and j are divided once in a CU and have a depth of 1.
  • a node (ie, a leaf node) that is no longer divided in a lower node having a depth of 2 corresponds to a TU.
  • TU (c), TU (h), and TU (i) corresponding to nodes c, h, and i are divided twice in a CU and have a depth of two.
  • a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of 3 corresponds to a CU.
  • TU (d), TU (e), TU (f), and TU (g) corresponding to nodes d, e, f, and g are divided three times in a CU. Has depth.
  • a TU having a tree structure may be hierarchically divided with predetermined maximum depth information (or maximum level information). Each divided TU may have depth information. Since the depth information indicates the number and / or degree of division of the TU, it may include information about the size of the TU.
  • information indicating whether the corresponding TU is split may be delivered to the decoder.
  • This partitioning information is included in all TUs except the smallest TU. For example, if the value of the flag indicating whether to split is '1', the corresponding TU is divided into four TUs again. If the value of the flag indicating whether to split is '0', the corresponding TU is no longer divided.
  • the decoded portion of the current picture or other pictures in which the current processing unit is included may be used to reconstruct the current processing unit in which decoding is performed.
  • Intra picture or I picture which uses only the current picture for reconstruction, i.e. performs only intra picture prediction, predicts a picture (slice) using at most one motion vector and reference index to predict each unit
  • a picture using a predictive picture or P picture (slice), up to two motion vectors, and a reference index (slice) may be referred to as a bi-predictive picture or a B picture (slice).
  • Intra prediction means a prediction method that derives the current processing block from data elements (eg, sample values, etc.) of the same decoded picture (or slice). That is, a method of predicting pixel values of the current processing block by referring to reconstructed regions in the current picture.
  • data elements eg, sample values, etc.
  • Inter prediction means a prediction method of deriving a current processing block based on data elements (eg, sample values or motion vectors, etc.) of pictures other than the current picture. That is, a method of predicting pixel values of the current processing block by referring to reconstructed regions in other reconstructed pictures other than the current picture.
  • data elements eg, sample values or motion vectors, etc.
  • Intra prediction Intra prediction (or in-screen prediction)
  • the prediction direction may have a prediction direction with respect to the position of a reference sample used for prediction according to a prediction mode.
  • An intra prediction mode having a prediction direction is referred to as an intra directional prediction mode.
  • an intra prediction mode having no prediction direction there are an intra planner (INTRA_PLANAR) prediction mode and an intra DC (INTRA_DC) prediction mode.
  • Table 1 illustrates the intra prediction mode and related names.
  • Intra prediction performs prediction on the current processing block based on the derived prediction mode. Since the prediction mode is different from the reference sample used for the prediction according to the prediction mode, when the current block is encoded in the intra prediction mode, the decoder derives the prediction mode of the current block to perform the prediction.
  • the decoder derives the intra prediction mode of the current processing block. The decoder then checks whether neighboring samples of the current processing block can be used for prediction and constructs reference samples to use for prediction.
  • the neighboring samples of the current processing block are samples neighboring the left boundary of the current processing block of size nS ⁇ nS and a total of 2 ⁇ nS samples neighboring the bottom-left, top of the current processing block. ) Means a total of 2 ⁇ nS samples neighboring to the top border and a sample neighboring to the top border and one sample neighboring to the top-left side of the current processing block.
  • the decoder can construct reference samples for use in prediction by substituting samples that are not available with the available samples.
  • the decoder may perform filtering of the reference sample based on the intra prediction mode.
  • Whether filtering of the reference sample is performed may be determined based on the size of the current processing block.
  • the filtering method of the reference sample may be determined by the filtering flag transmitted from the encoder.
  • the decoder generates a predictive block for the current processing block based on the intra prediction mode and the reference samples. That is, the decoder generates a prediction block for the current processing block based on the intra prediction mode derived from the intra prediction mode derivation step, the reference samples obtained through the reference sample construction step and the reference sample filtering step (ie, the current processing block). My prediction sample).
  • the left boundary sample of the prediction block ie, the sample in the prediction block adjacent to the left boundary
  • a top boundary sample ie, a sample in a prediction block neighboring the top boundary
  • filtering may be applied to the left boundary sample or the upper boundary sample in the vertical direction mode and the horizontal mode among the intra directional prediction modes similarly to the INTRA_DC mode.
  • the value of the prediction sample may be derived based on a reference sample located in the prediction direction.
  • a boundary sample which is not located in the prediction direction among the left boundary sample or the upper boundary sample of the prediction block may be adjacent to the reference sample which is not used for prediction. That is, the distance from the reference sample not used for prediction may be much closer than the distance from the reference sample used for prediction.
  • the decoder may adaptively apply filtering to left boundary samples or upper boundary samples depending on whether the intra prediction direction is vertical or horizontal. That is, when the intra prediction direction is the vertical direction, the filtering may be applied to the left boundary samples, and when the intra prediction direction is the horizontal direction, the filtering may be applied to the upper boundary samples.
  • the prediction block of the current block may be generated by using a total of 35 intra-picture prediction methods.
  • the 35 prediction methods include 33 directional prediction methods and two non-directional prediction methods.
  • 33 directional prediction modes when calculating the prediction sample from the reference samples, the reference sample value is copied to the corresponding prediction sample in consideration of each direction.
  • DC mode and planar mode the prediction sample is calculated by the weighted sum and the average value of neighboring reference samples, respectively.
  • FIG. 5 illustrates a prediction direction of an intra prediction mode according to an embodiment of the present invention.
  • the intra prediction mode may use 67 modes.
  • 35 intra prediction modes may be extended to 67 intra prediction modes.
  • Table 2 below shows an example of a related name of the intra prediction mode having 67 modes.
  • the intra prediction mode with 67 modes includes two non-directional prediction modes and 65 directional prediction modes.
  • the 65 directional prediction modes (modes 2 to 66) include a directional mode in the existing HEVC and a newly added directional mode.
  • the arrows indicated by solid lines represent 33 directional modes of the existing HEVC, and the arrows indicated by dashed lines represent newly added 32 directional modes.
  • the intra planner (INTRA_PLANAR) mode is the same as the existing intra planner mode, and the intra DC (INTRA_DC) mode is the same as the existing intra DC mode.
  • the newly added 32 directional modes can be applied at all (prediction) block sizes, and can also be applied to both intra-coding of luminance and chrominance components.
  • FIG. 6 is a diagram for describing a QTBT (QuadTree BinaryTree) block division structure according to an embodiment of the present invention.
  • QTBT QuadTree BinaryTree
  • Quad-Tree Binary-Tree QTBT
  • QTBT refers to a structure of a coding block in which a quadtree structure and a binarytree structure are combined.
  • an image is coded in units of CTUs, the CTU is divided into quadtrees, and the leaf nodes of the quadtrees are additionally divided into binarytrees.
  • the current block may be divided into a QTBT structure. That is, the CTU may first be hierarchically divided into quadtrees. The leaf nodes of the quadtrees, which are no longer divided into quadtrees, may be hierarchically divided into binary trees.
  • the encoder may signal a split flag to determine whether to split the quadtree in the QTBT structure.
  • the quadtree splitting may be adjusted (or limited) by the MinQTLumaISlice, MinQTChromaISlice or MinQTNonISlice values.
  • MinQTLumaISlice represents the minimum size of the luma component quadtree leaf node in the I-slice.
  • MinQTLumaChromaISlice represents the minimum size of a quadtree leaf node of chroma components in an I-slice.
  • MinQTNonISlice represents the minimum size of the quadtree leaf node in non I-slice.
  • the names of the respective flags can be changed.
  • the luma component and the chroma component in the I-slice may have a partition structure that is independent of each other.
  • the partition structure of the luma component and the chroma component may be determined differently.
  • MinQTLumaISlice and MinQTChromaISlice may have different values.
  • the quadtree structure may have the same split structure of the luma component and the chroma component.
  • the quadtree splitting structure of the luma component and the chroma component may be adjusted by the MinQTNonISlice value.
  • the leaf nodes of the quadtree may be divided into binary trees.
  • binary tree splitting may be adjusted (or limited) by MaxBTDepth, MaxBTDepthISliceL, and MaxBTDepthISliceC.
  • MaxBTDepth represents the maximum depth of binary tree splitting based on leaf nodes of the quadtree in non-I-slices
  • MaxBTDepthISliceL represents the maximum depth of binary tree splitting of luma components in I-slices
  • MaxBTDepthISliceC is I Represents the maximum depth of binary tree splitting of chroma components in slices. The names of the respective flags can be changed.
  • MaxBTDepthISliceL and MaxBTDepthISliceC may have different values in the I-slice.
  • FIG. 7 is a diagram illustrating a block division structure of a QTBT for a luma component and a chroma component according to an embodiment of the present invention.
  • Fig. 7 (a) shows the division structure of QTBT for the luma component
  • Fig. 7 (b) shows the division structure of QTBT for the chroma component.
  • Leaf nodes of the quadtree divided into quadtree structures may be divided into binary trees.
  • the luma component and the chroma component in the I-slice may have different partition structures.
  • a quadtree structure and a binary tree structure may be used together.
  • the following rule may be applied.
  • MaxBTSize is less than or equal to MaxQTSize.
  • MaxBTSize represents the maximum size of the binary tree split and MaxQTSize represents the maximum size of the quadtree split.
  • the leaf node of QT becomes the root of BT.
  • BT defines a vertical split and a horizontal split.
  • MaxQTDepth and MaxBTDepth are predefined.
  • MaxQTDepth represents the maximum depth of quadtree splitting
  • MaxBTDepth represents the maximum depth of binary tree splitting.
  • MaxBTSize and MinQTSize may vary depending on the slice type.
  • the names of the aforementioned flags may be changed.
  • the QTBT structure may be represented as shown in FIG. 7.
  • a block of a luma sample may be referred to as a luma block
  • a block of a chroma sample may be referred to as a chroma block.
  • AMT Adaptive Multiple Core Transfom
  • the encoder obtains a residual signal after performing intra prediction or inter prediction.
  • the encoder may then adaptively select (or determine) the transform scheme according to the prediction mode applied to the residual signal (or residual block).
  • the method in which the encoder adaptively selects / determines a transform scheme to be applied to the residual signal based on the prediction mode may include an adaptive multiple transform (AMT), an enhanced multiple transform (EMT), an adaptive transform kernel, or an adaptive kernel. (Adaptive kernel) and the like.
  • AMT adaptive multiple transform
  • EMT enhanced multiple transform
  • AMT adaptive kernel
  • the scheme is referred to as AMT.
  • AMT may be applied to both a block on which intra prediction is performed and a block on which inter prediction is performed.
  • the encoder decides to apply the AMT, the encoder generates a transform coefficient by applying the transform technique determined based on the AMT to the residual signal.
  • DCT2 and DST7 are used as a transform matrix (or transform technique) to transform the residual signal.
  • DCT5 DCT8 and DST1 are additionally used. Therefore, a total of five transformation matrices are used in AMT.
  • the name of each transformation matrix may be represented in various forms.
  • DCT2 may be expressed as DCT-Type 2 or DCT-II.
  • a transformation matrix or transformation technique may be referred to as a transformation.
  • Table 3 shows an example of a basic equation of five transformation matrices used in AMT.
  • the residual signal obtained through intra prediction may show different statistical characteristics according to the intra prediction mode.
  • different transforms may be applied to the residual signal according to the prediction mode.
  • Table 4 below shows an example of a transform set that can be applied to the current block according to each mode when the prediction mode of the current block is an intra prediction mode.
  • Table 4 shows both an intra prediction mode having 35 modes and an intra prediction mode having 67 modes.
  • the intra prediction mode having 35 modes and the intra prediction mode having 67 modes are composed of a plurality of mode groups each including one or more modes.
  • Table 4 shows that the intra prediction mode is composed of five mode groups. The number of mode groups and the configuration of modes included in each mode group may be changed.
  • Different transform sets may be applied to each mode group.
  • the number of transform sets is equal to the number of mode groups.
  • Table 4 discloses five transform sets.
  • Each transform set includes four combinations of transforms applied in the horizontal direction of the residual block (or residual signal) and transforms applied in the vertical direction.
  • a transform applied in the horizontal direction of the block may be referred to as a horizontal transform or a row direction transform
  • a transform applied in the vertical direction of the block may be referred to as a vertical transform or column. It may be referred to as a column direction transform.
  • Each transform set includes four sub transform sets.
  • the four sub transform sets correspond to transform candidates applicable to the current block. That is, in AMT, a transform candidate that can be applied to the residual signal mode-dependent is determined.
  • the transform set may also be referred to as a set, and the transform subset may also be referred to as a subset.
  • the number of transform subsets included in each transform set, the number of transform sets, or a combination of transform techniques may be changed.
  • the transform set and the sub transform set may be referred to by different names.
  • one set of sub-transforms may be expressed in the form (Hor, Ver).
  • (DCT8, DST7) indicates that the horizontal transform applied to one block is DCT8 and the vertical transform is DST7.
  • set 1 is selected according to Table 4.
  • Table 4 four combinations of DST7 and DST1 are possible. The four combinations are (DST7, DST1), (DST1, DST7), (DST1, DST1) and (DST7, DST7).
  • One of the four combinations is selected by the encoder, and the selected combination can be applied to the current block.
  • Table 5 below shows an example of a transform set that can be applied to the current block when the prediction mode of the current block is inter prediction.
  • the encoder determines whether to apply the AMT of the current block.
  • the encoder may compare the results of applying and not applying AMT based on rate-distortion optimization (RDO), and determine whether to apply AMT to the current block according to the comparison result.
  • RDO rate-distortion optimization
  • the encoder When AMT application is selected, the encoder performs the transformation using all four combinations (i.e., four sub-transform sets) that can be applied to the current block according to the prediction mode, and optimizes based on rate-distortion optimization (RDO). Determine one sub-transform set.
  • RDO rate-distortion optimization
  • Table 4 is used if the prediction mode of the current block is an intra prediction mode
  • Table 5 is used if the prediction mode of the current block is inter screen prediction mode.
  • the encoder may transmit information indicating whether AMT is applied and information indicating a (DCT2, DCT2) transform set to the decoder.
  • a coding unit may be coded in a transform skip mode. In order to avoid duplication of syntax coding, when the AMT flag is not 0, information indicating a transform skip mode (eg, a transform skip flag) may not be transmitted to the decoder.
  • information indicating whether AMT is applied may be transmitted to the decoder. Whether to apply AMT may be controlled by a CU level flag. For example, information indicating whether AMT is applied may be referred to as an AMT flag.
  • the AMT flag may be a 1 bit flag. For example, if a flag value indicating whether AMT is applied is 0, this indicates that AMT is not applied, and if the flag value is 1, AMT may be applied.
  • information indicating an optimal transform set may be additionally transmitted to the decoder.
  • the information indicating the optimal transform set may be one flag indicating one selected sub-transform set, or may be two flags respectively indicating a vertical transform and a horizontal transform.
  • the tables (or information about transform combinations applicable according to the prediction mode) used in the AMT scheme may be predefined in the encoder and the decoder.
  • the decoder When the encoder signals the information of the transform set, the decoder performs the same kind of inverse transform as the transform method indicated by the signaled information.
  • the tables may be defined only in the encoder, in which case the decoder may perform inverse transformation based on the transformation technique indicated by the received information.
  • AMT may be applied to a coding unit having both a width and a height of 64 or less.
  • the AMT described above may be applied to a luminance image (block, slice or picture).
  • a method performed by an encoder and a decoder may be described in some cases, or may be described based only on the method performed by the decoder. However, even if only the method performed at the decoder is disclosed, it is obvious that the same or similar manner as the method performed at the decoder may be performed at the encoder.
  • the decoder may use the AMT information of the luminance block as the AMT information of the chrominance block. That is, the decoder may determine whether AMT is applied to the color difference block and an AMT transform set to be used for inverse transform based on the information of the luma block. According to the present embodiment, the encoder does not separately transmit AMT information of the chrominance block to the decoder.
  • the encoding of the chrominance block is performed after all the encoding of the luminance block is finished.
  • the decoding of the chrominance block is performed after the decoding of the luminance block is completed.
  • the encoder / decoder may know whether AMT is applied to the luminance block at the same position when encoding / decoding the chrominance block.
  • the same position indicates a position corresponding to the position of the corresponding color difference block.
  • the same transform as that applied to the luminance block can be used for the color difference block.
  • the decoder determines whether AMT can be applied to a current chroma block before performing inverse transform. If AMT is applicable to the current color difference block, the decoder obtains AMT conversion information of the luminance block as the conversion information to be applied to the color difference block.
  • the encoder may perform the conversion using AMT through the same process.
  • the encoder / decoder may determine whether AMT can be applied to the current chrominance block by using one of the following three methods.
  • the first method is a method of determining, via a luminance block, whether AMT is applicable to a current color difference block, regardless of a prediction mode and a block size.
  • the encoder / decoder may determine whether AMT can be applied to all color difference blocks through the AMT information of the luminance block. As an example, when the AMT is applied to the luminance block at a position corresponding to the current color difference block, the encoder / decoder may determine that the AMT is also applicable to the current color difference block.
  • the second method is a method of determining whether AMT can be applied when the intra prediction mode of the current color difference block is a specific mode.
  • the encoder / decoder may determine that AMT is applicable when the intra prediction mode of the current color difference block is a direct mode (DM) mode or a linear mode (LM) mode.
  • the DM mode is a prediction mode that uses the intra prediction direction of the luminance block at the same position as the current color difference block.
  • the intra prediction mode of the luminance block at the same position is used as the intra prediction mode of the color difference block. Therefore, in the DM mode, the luminance block and the chrominance block have a high correlation.
  • the LM mode is a method of performing prediction under the assumption that the correlation between the luminance block and the chrominance block is high. Details of the LM mode will be described later.
  • the encoder / decoder may determine not to apply AMT to the current color difference block.
  • the third method is a method of determining whether AMT is applicable according to the size of a current color difference block.
  • the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4 ⁇ 4 and less than or equal to 64 ⁇ 64.
  • the encoder / decoder may determine whether AMT is applicable to the current chrominance block by using one of the following two methods.
  • the first method is a method of determining whether AMT is applicable according to the size of a current color difference block.
  • the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4 ⁇ 4 and less than or equal to 64 ⁇ 64.
  • the second method is a method of determining whether to apply AMT based on a correlation between a prediction block of the current color difference block and a prediction block (or reconstructed block) of the luminance block.
  • the encoder / decoder may determine that AMT may be applied to the current color difference block when the correlation satisfies a preset condition. As an example, if the correlation between the prediction block of the current color difference block and the prediction block (or reconstruction block) of the luminance block is 0.5 or more, the encoder / decoder may determine that AMT is applicable to the current color difference block.
  • the decoder can determine whether AMT is applicable to the current chrominance block by using the schemes described above. When AMT is applicable to the current chrominance block, the decoder uses AMT information of one luminance block related to the current chrominance block as information on the current chrominance block.
  • the block division structures of the color difference component and the luminance sample may be the same or different.
  • the decoder may obtain AMT information of the luminance block in different ways based on whether the block division structure of the color difference component and the luminance sample are the same.
  • the decoder uses the AMT information of the luminance block at the same position as the current color difference block as the AMT information of the current color difference block.
  • AMT information of the luminance block is signaled from the encoder to the decoder.
  • the luminance block at the same position indicates a luminance block existing at a position corresponding to the position of the current color difference block.
  • the decoder first selects one luminance block of the plurality of luminance blocks. Thereafter, the decoder uses the AMT information of the selected one luminance block as the AMT information of the current color difference block.
  • the decoder may determine / select one luminance block by using one of the following three ways.
  • the first method is to select a luminance block existing at a position corresponding to a specific position of a current color difference block.
  • the decoder may obtain AMT information from a luminance block at a position corresponding to the upper left end of the chrominance block or at a position corresponding to the center of the chrominance block.
  • the second method is to select the luminance block having the largest area of the overlapping area with the current color difference block.
  • the third method is to select a luminance block having the largest size among the luminance blocks where the current color difference block and the region overlap.
  • the decoder obtains AMT information from a luminance block existing at a position corresponding to the current chrominance block or a luminance block selected according to one of the above schemes, and uses the obtained AMT information as AMT information of the current chrominance block.
  • the decoder may determine whether to apply the AMT of the current color difference block and the AMT transform set based on the AMT information of the luminance block. It demonstrates concretely below.
  • the decoder does not apply the AMT to the current color difference block. For example, if the AMT flag of the selected luminance block is 0, the decoder may determine not to apply AMT to the current color difference block. In this case, the decoder may apply an inverse transform of (DCT2, DCT2).
  • the decoder also applies AMT to the current color difference block. For example, if the AMT flag of the selected luminance block is 1, the decoder may determine to apply AMT to the current color difference block. At this time, the decoder uses the AMT set (Table 4 and Table 5) of the predefined luminance block. The decoder uses the same sub transform set as the sub transform set applied to the luminance block in the current color difference block. That is, the decoder inversely transforms the current chrominance block based on the sub-conversion set applied to the luminance block.
  • Embodiment 1 information indicating whether AMT is applied to a luminance block and information indicating a sub-transform set applied to the luminance block are transmitted from an encoder to a decoder. However, information indicating the sub-conversion set applied to the luminance block is additionally transmitted to the decoder only when AMT is applied to the luminance block.
  • the AMT information of the luminance block is determined by the encoder through the RDO based on Tables 4 and 5 described above. For details, refer to the description of the above-described AMT.
  • the encoder may adaptively change (or reconstruct) the AMT conversion set (Tables 4 and 5 described above) of the luminance block according to the characteristics of the chrominance block without using the AMT set of the luminance block as it is.
  • the chrominance block and the luminance block have similarities, the chrominance block has more flat areas and simpler characteristics than the luminance block. Therefore, when the AMT transform set of the luminance block is used for conversion of the chrominance block as it is, the conversion efficiency can be reduced.
  • the encoder / decoder may adaptively change / reconfigure the AMT transform sets (Tables 4 and 5) applied to the luminance block according to the characteristics of the chrominance block, and use the changed AMT transform set. Specifically, by limiting the types of transforms constituting the AMT transform set of the luminance block, the AMT transform set of the chrominance block may be obtained separately. A more simplified set of AMT transforms can be applied to the chrominance block. The details of the method of limiting the type of transformation will be described later.
  • the encoder may determine, through the RDO, a sub-transform set to be applied to the chrominance block using an AMT transform set (hereinafter, AMT set of the chrominance block) separately configured for the chrominance block.
  • AMT set of the chrominance block may be stored in advance in the encoder / decoder separately from the AMT transform set (Tables 4 and 5) of the luminance block.
  • the encoder may determine whether or not the color difference block is flat based on a correlation between the color difference block and the luminance block, an edge in the color difference block, or a variation of the color difference block.
  • the encoder may reconstruct the AMT transform set of the luminance block only when it determines that the current chrominance block (or slice, picture) is flat and use it for the transform of the chrominance block.
  • Table 6 below shows the AMT transform set of the luminance block and the AMT transform set of the luminance block when the prediction mode of the current color difference block is an intra prediction mode. An example is shown.
  • a luminance AMT set indicates an AMT transform set that can be applied to a luminance block
  • a color difference AMT set indicates an AMT transform set that can be applied to a chrominance block.
  • the luminance AMT set disclosed in Table 6 are sub-transform sets of Set 0, which is one of the transform sets of Table 4 described above.
  • Table 6 disclosed color difference AMT set can be obtained by maintaining DST7 and DCT5 changing to DCT2 among the conversions constituting the luminance AMT set. It demonstrates concretely below.
  • the AMT transform set of the color difference block may consist of only DST7 and DCT2. That is, in the process of configuring the color difference AMT set by changing the luminance AMT set, all of the DST conversion techniques may be changed to DST7, and all of the DCT conversion techniques may be changed to DCT2. DCT5 and DCT8 may be changed to DCT2, and DST 1 may be changed to DST7.
  • Table 4 By changing Table 4 in this manner, the AMT transform set used for the chrominance block can be obtained.
  • Table 7 shows one of the AMT transform set of the chrominance block obtained by changing the AMT transform set of the luminance block and the AMT transform set of the luminance block when the prediction mode of the current chrominance block is inter prediction. For example.
  • the luminance AMT set is the same as the transform set (Table 5 described above) that can be applied to the luminance block in the inter prediction mode.
  • the color difference AMT set in Table 7 indicates that in the luminance AMT set, DST7 is not changed and DCT 8 is changed to DCT2.
  • the encoder can be used for chrominance block conversion by changing the luminance AMT set in a combination consisting of only DCT2 and DST7 in the same manner as described above in the description of Table 6. For details, refer to the description regarding Table 6 above.
  • the encoder can select one sub-transformation set through the RDO and transform the current color-difference block by using the AMT transform set of the chrominance block.
  • the encoder may transmit information about the sub-transformation set of the color difference AMT set used for the transformation to the decoder.
  • the encoder may send a flag indicating a vertical transform and a flag indicating a horizontal transform.
  • the decoder may inversely transform the current color difference block using a transform technique indicated by the received flags.
  • AMT related information of a current color difference block is signaled from an encoder to a decoder.
  • AMT is not applied to the current color difference block.
  • the encoder does not signal the AMT related information of the current color difference block.
  • the decoder uses the AMT information of the received luminance block as the AMT information of the chrominance block. Therefore, AMT information of the color difference block is not signaled separately.
  • the encoder compares the result of applying the AMT transform set applied to the luminance block to the current chrominance block and the result of applying the existing transform scheme (DCT2 or DST7) to the current chrominance block based on the RDO, and according to the comparison result, If you decide to apply AMT
  • AMT is not applied to the luminance block, AMT is not applied to the chrominance block. Therefore, in this case, AMT information of the color difference block is not signaled.
  • AMT When AMT is applied to the luminance block, whether the current color difference block is applied to AMT is determined based on the RDO comparison result. In this case, a flag indicating whether AMT is applied to the current color difference block may be signaled.
  • the flag indicating whether AMT is applied to the current color difference block may be a 1-bit flag.
  • the encoder compares the result of applying the AMT transform set applied to the luminance block to the Cb / Cr block and the result of applying the conventional transform method based on the RDO. If you decide independently
  • AMT is not applied to the luminance block, AMT is not applied to the Cb block and the Cr block. Therefore, in this case, AMT information is not signaled.
  • AMT When AMT is applied to the luminance block, it is determined whether AMT is applied to each of the Cb block and the Cr block based on the RDO comparison result. In this case, flags indicating whether to apply AMT to each of the Cb block and the Cr block may be signaled to the decoder.
  • the flags indicating whether the Cb block and the Cr block apply AMT may be 1-bit flags, respectively. Therefore, in this case, a total of 2 bits may be signaled for one color difference block.
  • the conversion efficiency can be improved by applying AMT to the color difference block.
  • the decoder may reduce the number of bits signaled by using the AMT information of the luminance block as the AMT information of the chrominance block.
  • FIG. 8 illustrates selecting one of a plurality of luminance blocks when the block division structure of the luminance block and the chrominance block is different according to an embodiment of the present invention.
  • (a) represents a luminance block
  • (b) represents chrominance blocks (Cb blocks, Cr blocks) at positions corresponding to the luminance blocks of (a).
  • 8 shows that the block division structures of the luma block and the chroma block are different.
  • the decoder may select one luminance block to obtain AMT information.
  • the decoder may select one luminance block from which the conversion information is to be obtained. For details of the manner in which the decoder selects one luminance block, refer to the description of Embodiment 1 described above.
  • FIG. 8 illustrates a method of selecting a luminance block existing at a position corresponding to a specific position of the current color difference block. Specifically, in FIG. 8, a luminance block existing at a position corresponding to the upper left end of the color difference block is selected.
  • the decoder uses the AMT information of the selected luminance block as the AMT information of the Cb block and the Cr block.
  • AMT may be applied independently to a chrominance block.
  • the encoder determines whether AMT is applicable to each color difference block, and when it is determined that AMT is applicable, transmits information about an AMT transform set. Unlike the first embodiment, the AMT information of the luminance block is not used in this embodiment. AMT may be independently applied to the color difference block.
  • the encoder determines whether AMT is applicable to the current color difference block. If AMT is applicable to the current chrominance block, the encoder determines through RDO a transform set to be applied to the chrominance block.
  • the encoder may determine whether AMT is applicable to the current color difference block by using one of the following three methods.
  • the first method is a method of determining whether AMT is applicable regardless of the prediction direction of the current color difference block and the size of the block.
  • the second method is a method of determining whether AMT is applicable only when the intra prediction mode of the current color difference block is a specific mode.
  • the encoder may determine that AMT is applicable only when the intra prediction mode of the current color difference block is a horizontal mode, a vertical mode, a DC mode, or a PLANAR mode.
  • the third method is a method of determining whether AMT is applicable according to the size of a current color difference block.
  • the encoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4 ⁇ 4 and less than or equal to 64 ⁇ 64.
  • the encoder may determine whether AMT is applicable to the current chrominance block by using one of the following two methods.
  • the first method is a method of determining whether AMT is applicable according to the size of a current color difference block.
  • the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4 ⁇ 4 and less than or equal to 64 ⁇ 64.
  • the second method is a method of determining whether to apply AMT based on a correlation between a prediction block of the current color difference block and a prediction block (or reconstructed block) of the luminance block.
  • the encoder first obtains the predicted image of the current chrominance block, the predicted image of the luminance block, and the reconstructed image of the luminance block before converting the current chrominance block. Accordingly, the encoder may determine that AMT may be applied to the current color difference block when the correlation degree satisfies a preset condition. As an example, if the correlation between the prediction block of the current chrominance block and the prediction block (or reconstruction block) of the luminance block is 0.5 or more, the encoder may determine that AMT is applicable to the current chrominance block.
  • the encoder can determine whether AMT is applicable to the current chrominance block by using the schemes described above. If AMT is applicable to the current chrominance block, the encoder determines an optimal set of transforms to be applied to the current chrominance block based on the rate-distortion optimization (RDO).
  • RDO rate-distortion optimization
  • the AMT transform set applied to the current color difference block may be set under the same conditions as the AMT transform set (Tables 4 and 5 described above) of the luminance block. That is, the encoder may use Table 4 or Table 5 according to the prediction mode, and determine an optimal transform set based on the RDO.
  • the encoder may use a separate AMT transform set that adaptively reduces the number of AMT transform sets to the chrominance block.
  • the chrominance block has more flat areas and has simpler features than the luminance block. Therefore, when the AMT conversion set of the luminance block is used for the conversion of the chrominance block as it is, the conversion efficiency can be reduced. 1, for improving the conversion efficiency
  • Table 8 shows an example of a transform set that can be applied to a current color difference block in an intra prediction mode.
  • each transform set includes two sub transform sets.
  • DM_PLANAR, DM_DC, DM_HOR, and DM_VER mean a case where the intra prediction mode of the luminance block is the PLANAR mode, the DC mode, the horizontal mode, and the vertical mode when the mode of the color difference block is the DM mode.
  • DM_ETC represents a case where the intra prediction mode of the luminance block is a mode other than those described above.
  • the DM mode is a mode that uses the mode of the luminance block for the color difference block.
  • the mode of the luminance block may be a mode that is not defined in the color difference block.
  • the encoder may apply the AMT transform set applied to the luminance block to the chrominance block.
  • the DM mode and the LM mode will be described later.
  • the encoder when the current prediction mode is the DC mode, the encoder performs transformation using each of the sub-transform sets (DST7, DST7) and (DST1, DST1) included in Set 2, and performs (DST7, DST7) through RDO. And a sub-transform set of one of (DST1, DST1).
  • Each transform set includes two sub transform sets.
  • the encoder determines one sub transform set based on the RDO of the two sub transform sets.
  • the encoder may then send a flag to the decoder indicating the sub-conversion set applied to the current chrominance block. Since two sub-transform sets are defined for each mode, the flag representing the sub-transform set may be a 1-bit flag. That is, by defining only two sets of sub transforms for each prediction mode, the number of bits signaled can be reduced.
  • Table 9 shows an example of a transform set that can be applied to a current color difference block in the case of an inter prediction mode.
  • Table 9 shows two sets of AMT transformations that can be applied in inter prediction mode.
  • the flag indicating the transform set may be a 1 bit flag. This may reduce the number of bits signaled.
  • Tables 8 and 9 described above may be predefined in the encoder.
  • the configuration of the transform sets defined in Tables 8 and 9 can be changed.
  • AMT related information of a current color difference block is signaled from an encoder to a decoder.
  • the encoder does not signal the AMT related information (including information indicating whether the AMT is applied) of the current color difference block to the decoder.
  • the encoder may signal information indicating whether AMT is applied to the current color difference block.
  • the encoder signals information indicating the applied AMT transform set to the decoder.
  • Information indicating whether AMT is applied may be a 1-bit flag.
  • Tables 4 and 5 are used in selecting an AMT transform set.
  • Tables 4 and 5 described above four sub-transform sets are defined for one prediction mode in the case of a luminance block. Therefore, in this case, the information representing the AMT conversion set may be a 2-bit flag.
  • Tables 8 and 9 are used in selecting an AMT transform set. Accordingly, in this case, the encoder signals information indicating whether the current color difference block is applicable to AMT (1 bit flag) and information indicating the AMT transform set to the decoder. Referring to Tables 8 and 9 described above, two sub-transform sets are defined for one prediction mode. Therefore, in this case, the information representing the AMT conversion set may be a 1-bit flag. Compared to 2) described above, the number of bits signaled is reduced.
  • Table 10 shows an example of information signaled from an encoder to a decoder when it is independently determined whether AMT used for a Cb block and a Cr block is independently applied.
  • the AMT mode indicates whether AMT is applied to each of the Cb block and the Cr block. Referring to Table 10, if the AMT mode is 0, this indicates that AMT is applied to the Cb block and the Cr block. If AMT mode is 1, it indicates that AMT has not been applied to the Cb block and the Cr block. If AMT mode is 2, it indicates that AMT has been applied only to the Cb block. If AMT mode is 3, it indicates that AMT is applied only to the Cr block.
  • the encoder may signal information indicating whether AMT is applied to the Cb block and the Cr block to the decoder.
  • information indicating whether AMT is applied may be a 2-bit flag.
  • the encoder may signal information indicating an AMT transform set used in a block to which AMT is applied among chrominance blocks (Cb / Cr blocks).
  • the information representing the AMT transform set may be a 1-bit flag.
  • the information representing the AMT transform set may be a 2-bit flag.
  • AMT can be applied to a color difference block independently.
  • the encoder may use AMT information of a luminance block for a specific prediction mode and apply AMT independently to other prediction modes.
  • Example 3 corresponds to a combination of Example 1 and Example 2 described above.
  • the determination of whether the current color difference block is applicable to the AMT can be performed in the same or similar manner as in the above-described embodiment 1 and embodiment 2, a detailed description thereof will be omitted.
  • the AMT transform set is adaptively configured to the current color difference block and used.
  • Table 11 below shows an example of an AMT transform set that may be applied according to the intra prediction mode when the prediction mode of the current color difference block is the intra prediction mode.
  • the decoder uses the AMT transform set applied to the luminance block in the current chrominance block as in the first embodiment.
  • the method of selecting a luminance block to obtain AMT transform set information and the method of selecting an AMT transform set may be performed in the same or similar manner as described in Embodiment 1 described above.
  • the decoder may independently determine the AMT transform set. That is, AMT information of the luminance block is not used.
  • the AMT transform set determination may be performed in the same or similar manner as the contents disclosed in Embodiment 2 described above.
  • AMT related information of a current color difference block is signaled from an encoder to a decoder.
  • AMT is not applied to the current color difference block.
  • the encoder does not signal the AMT related information of the current color difference block to the decoder.
  • the AMT related information may be signaled to the decoder in the same or similar manner as the contents disclosed in Embodiment 1 described above. For details, refer to Embodiment 1 described above.
  • the AMT related information may be signaled to the decoder in the same or similar manner as the contents disclosed in Embodiment 2 described above. For details, refer to Embodiment 2 described above.
  • data compression efficiency may be further improved by using a combination of a method of determining an AMT transform set independently of a method of using an AMT transform set of a luminance block according to a prediction mode.
  • LM linear model
  • a mode for predicting the pixel value of the chrominance image from the pixel value of the restored luminance image is used.
  • This mode may be referred to as a linear model (LM) mode or a cross-component linear model (CCLM) mode.
  • CCLM mode is a method based on the characteristic that the correlation (correlation) between the luminance image and the chrominance image is high.
  • the prediction of the Cb chrominance image and the Cr chrominance image in the CCLM mode can be performed by using the following equation.
  • pred_c (i, j) represents a Cb color difference image or a Cr color difference image to be predicted.
  • recon_L (2i, 2j) represents a restored luminance image.
  • (i, j) represent the coordinates of the pixel.
  • the pixels of the luminance image to be used in the chrominance image pred_c (i, j) may be used considering all the neighboring pixels in addition to recon_L (2i, 2j).
  • Alpha and beta of Equation 1 are calculated through the cross-correlation and average difference between the surrounding template of the color difference block (Cb block or Cr block) and the luminance block surrounding template, as shown in the gray region of FIG. 9.
  • CCLM methods can be divided into LM, multi-model LM (MMLM), and multi-filter LM (MFLM).
  • MMLM multi-model LM
  • MFLM multi-filter LM
  • the MMLM method calculates luminance pixel values corresponding to chrominance pixels through various filters other than the basic filter used in the LM.
  • the MFLM method classifies alpha and beta of Equation 1 into groups according to pixel values, and predicts chrominance pixels by adaptively applying alpha and beta corresponding to the group.
  • FIG. 10 is a block diagram of an inverse transform unit, according to an exemplary embodiment.
  • the decoder includes an inverse quantization unit for obtaining quantized transform coefficients of the chrominance block and inverse quantizing the quantized transform coefficients.
  • the decoder also includes an inverse transform unit for inversely transforming the inverse quantized transform coefficients.
  • the inverse transform unit 230 generates a residual block by inversely transforming an inverse quantized block (transform coefficients).
  • the inverse transform unit 230 includes an adaptive transform kernel application determiner 10010, a transform information obtainer 10020, and a chrominance block inverse transform unit 10030.
  • the adaptive transform kernel application determiner 10010 determines whether the adaptive transform kernel can be applied to the color difference block.
  • the adaptive transform kernel is a method of adaptively determining a transform scheme to be applied to the residual signal based on the prediction mode.
  • the adaptive transform kernel corresponds to the above-described AMT.
  • a combination of a first transform applied in the horizontal direction of the chrominance block and a second transform applied in the vertical direction is determined according to the prediction mode of the chrominance block.
  • the combination of the first transform and the second transform corresponds to the transform set described above.
  • the transform information obtainer 10020 obtains transform information of the color difference block when the adaptive transform kernel can be applied to the color difference block.
  • the conversion information corresponds to the above-described AMT related information.
  • the conversion information (ie, AMT related information) includes first conversion information (eg, a flag indicating whether to apply AMT) indicating whether the adaptive conversion kernel has been applied to the luminance block associated with the chrominance block.
  • first conversion information eg, a flag indicating whether to apply AMT
  • the transformation information may include second transformation information indicating a combination of a transformation applied in the horizontal direction and a transformation applied in the vertical direction (for example, information indicating an optimal transformation set). ) May be further included.
  • the color difference block inverse transform unit 10030 inversely transforms the color difference block based on the obtained conversion information.
  • the color difference block inverse transform unit may perform inverse transform of the color difference block using a combination of transforms indicated by the second transform information.
  • the adaptive transform kernel application determining unit 10010 determines whether to apply the adaptive transform kernel based on the size of the chrominance block or whether the intra prediction mode is a specific intra prediction mode. Can be.
  • the adaptive transform kernel application determining unit 10010 may determine the size of the color difference block, the correlation between the prediction block of the color difference block and the prediction block of the luminance block, or the prediction block of the color difference block. Based on the correlation between the reconstructed blocks of the and the luma blocks, it may be determined whether the adaptive transform kernel is applicable.
  • the adaptive transform kernel application determiner 10010 may determine that the adaptive transform kernel is applicable to the color difference block when the size of the color difference block is 4x4 or more or 64x64 or less.
  • the adaptive transform kernel application determining unit 10010 may include a first mode (that is, an LM mode) in which a specific intra prediction mode predicts a color difference pixel value of a color difference block using the reconstructed luminance pixel value, or a color difference block.
  • a first mode that is, an LM mode
  • a specific intra prediction mode predicts a color difference pixel value of a color difference block using the reconstructed luminance pixel value, or a color difference block.
  • the second mode ie, the DM mode
  • the transformation information acquisition unit 10020 may obtain the transformation information from the luminance block existing at the position corresponding to the chrominance block.
  • the transformation information acquisition unit 10020 may select one of the plurality of luminance blocks as the luminance block, and obtain the transformation information from the selected luminance block.
  • the conversion information obtaining unit 10020 selects a luminance block existing at a position corresponding to a specific position of the chrominance block, selects a luminance block having the largest area of the region overlapping the chrominance block, or the chrominance block and the region Among the overlapping luminance blocks, the luminance block having the largest size may be selected.
  • FIG. 11 is a flowchart of a method of decoding a color difference block, according to an embodiment of the present invention.
  • Decoding of the chrominance block is performed by the decoder.
  • the decoder determines whether the adaptive transform kernel is applicable to the color difference block (S11010).
  • the adaptive transform kernel corresponds to the AMT described above. Since this procedure may be performed in the same or similar manner as the procedure for determining whether the AMT described in the above embodiments 1 to 3 can be applied, a detailed description thereof will be omitted.
  • the decoder obtains transform information of the color difference block (S11020).
  • the conversion information corresponds to the above-described AMT information.
  • the transformation information includes information indicating whether AMT is applicable to the current color difference block, and further includes information on a transformation set when AMT is applied. Since this procedure may be performed in the same or similar manner as the procedure of acquiring AMT information in the above-described embodiments 1 to 3, detailed description thereof will be omitted.
  • the decoder inversely transforms the color difference block using the obtained transform information (S11030).
  • This procedure may be performed in the same manner as or similar to the procedure performed by the inverse transform based on the AMT information in Embodiments 1 to 3, and thus, a detailed description thereof will be omitted.
  • each component or feature is to be considered optional unless stated otherwise.
  • Each component or feature may be embodied in a form that is not combined with other components or features. It is also possible to combine some of the components and / or features to form an embodiment of the invention.
  • the order of the operations described in the embodiments of the present invention may be changed. Some components or features of one embodiment may be included in another embodiment or may be replaced with corresponding components or features of another embodiment. It is obvious that the claims may be combined to form an embodiment by combining claims that do not have an explicit citation relationship in the claims or as new claims by post-application correction.
  • Embodiments according to the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof.
  • an embodiment of the present invention may include one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, and the like.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGAs field programmable gate arrays
  • processors controllers, microcontrollers, microprocessors, and the like.
  • an embodiment of the present invention may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above.
  • the software code may be stored in memory and driven by the processor.
  • the memory may be located inside or outside the processor, and may exchange data with the processor by various known means.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

An image processing method and a device therefor are disclosed. Particularly, the image processing method comprises: a step of determining whether or not it is possible to apply an adaptive transform kernel to a chroma block; a step of acquiring transform information of the chroma block if it is possible to apply the adaptive transform kernel thereto; and a step of inverse-transforming the chroma block by using the acquired transform information.

Description

영상 처리 방법 및 이를 위한 장치Image processing method and apparatus therefor
본 발명은 정지 영상 또는 동영상 처리 방법에 관한 것으로서, 보다 상세하게는 색차 영상의 부호화/복호화 과정에서 AMT(Adaptive Multiple Core Transform)를 적용하는 방법 및 이를 지원하는 장치에 관한 것이다.The present invention relates to a still image or video processing method, and more particularly, to a method for applying an AMT (Adaptive Multiple Core Transform) in the encoding / decoding process of a chrominance image and an apparatus for supporting the same.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다. Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or for storing in a form suitable for a storage medium. Media such as an image, an image, an audio, and the like may be a target of compression encoding. In particular, a technique of performing compression encoding on an image is called video image compression.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고프레임율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다.Next-generation video content will be characterized by high spatial resolution, high frame rate and high dimensionality of scene representation. Processing such content would result in a tremendous increase in terms of memory storage, memory access rate, and processing power.
따라서, 차세대 비디오 컨텐츠를 보다 효율적으로 처리하기 위한 코딩 툴을 디자인할 필요가 있다.Accordingly, there is a need to design coding tools for more efficiently processing next generation video content.
본 발명은 정지 영상 또는 동영상을 효율적으로 부호화/복호화 하는 방법 및 장치를 제공함에 목적이 있다.An object of the present invention is to provide a method and apparatus for efficiently encoding / decoding a still image or a moving image.
또한, 본 발명은 색차 영상의 잔차 신호(residual signal)를 효율적으로 변환(transform)하기 위한 방법 및 장치를 제공함에 목적이 있다.Another object of the present invention is to provide a method and apparatus for efficiently transforming a residual signal of a color difference image.
또한, 본 발명은 색차 영상(chroma image)에 AMT(Adaptive Multiple Core Transform)을 적용하는 방법 및 장치를 제공함에 목적이 있다.Another object of the present invention is to provide a method and apparatus for applying an adaptive multiple core transform (AMT) to a chroma image.
또한, 본 발명은 색차 영상을 위한 AMT 변환 세트(AMT transform set)를 선택하는 방법 및 장치를 제공함에 목적이 있다.Another object of the present invention is to provide a method and apparatus for selecting an AMT transform set for a color difference image.
또한, 본 발명은 색차 영상을 위한 AMT 변환 세트를 설정하는 방법 및 장치를 제공함에 목적이 있다.Another object of the present invention is to provide a method and apparatus for setting an AMT transform set for a color difference image.
본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned above will be clearly understood by those skilled in the art from the following description. Could be.
본 발명의 일 양상은, 영상의 색차 블록을 복호화하는 방법에 있어서, 상기 색차 블록에 적응 변환 커널(Adaptive transform kernel)이 적용 가능한지 여부를 결정하는 단계; 상기 색차 블록에 상기 적응 변환 커널이 적용 가능한 경우, 상기 색차 블록의 변환 정보를 획득하는 단계; 및 상기 획득된 변환 정보를 이용하여 상기 색차 블록을 역변환하는 단계를 포함한다.An aspect of the present invention provides a method of decoding a chrominance block of an image, the method comprising: determining whether an adaptive transform kernel is applicable to the chrominance block; Acquiring transform information of the color difference block when the adaptive transform kernel is applicable to the color difference block; And inversely transforming the chrominance block using the obtained transform information.
바람직하게, 상기 적응 변환 커널은, 상기 색차 블록의 예측 모드에 따라 상기 색차 블록의 수평 방향으로 적용되는 제1 변환 및 수직 방향으로 적용되는 제2 변환의 조합이 결정된다.Preferably, in the adaptive transform kernel, a combination of a first transform applied in a horizontal direction of the chrominance block and a second transform applied in a vertical direction is determined according to the prediction mode of the chrominance block.
바람직하게, 상기 변환 정보를 획득하는 단계에 있어서, 상기 변환 정보는, 상기 색차 블록과 관련된 휘도 블록에 상기 적응 변환 커널이 적용되었는지 여부를 지시하는 제1 변환 정보를 포함하되, 상기 휘도 블록에 상기 적응 변환 커널이 적용된 경우, 상기 휘도 블록에 수평 방향으로 적용된 변환 및 수직 방향으로 적용된 변환의 조합을 지시하는 제2 변환 정보를 더 포함한다.Preferably, in the acquiring of the transformation information, the transformation information includes first transformation information indicating whether the adaptive transformation kernel is applied to a luminance block associated with the chrominance block, When the adaptive transform kernel is applied, the apparatus further includes second transform information indicating a combination of a transform applied in the horizontal direction and a transform applied in the vertical direction to the luminance block.
바람직하게, 상기 제1 변환 정보가 상기 휘도 블록에 상기 적응 변환 커널이 적용되었음을 지시하면, 상기 색차 블록을 역변환하는 단계에 있어서, 상기 제2 변환 정보가 지시하는 변환의 조합을 이용하여 상기 색차 블록의 역변환이 수행된다.Preferably, when the first transform information indicates that the adaptive transform kernel is applied to the luminance block, inversely transforming the color difference block, using the combination of transforms indicated by the second transform information, the color difference block Inverse transformation of is performed.
바람직하게, 상기 적응 변환 커널이 적용 가능한지 여부를 결정하는 단계에 있어서, 상기 색차 블록의 예측 모드가 인트라 예측 모드인 경우, 상기 색차 블록의 크기, 또는 상기 색차 블록의 인트라 예측 모드가 특정 인트라 예측 모드인지에 기초하여 상기 적응 변환 커널의 적용 가능 여부가 결정된다.Preferably, in the determining whether the adaptive transform kernel is applicable, when the prediction mode of the chrominance block is an intra prediction mode, the size of the chrominance block, or the intra prediction mode of the chrominance block is a specific intra prediction mode. Based on the recognition it is determined whether the adaptive transform kernel is applicable.
바람직하게, 상기 색차 블록의 크기가 4x4 이상 또는 64x64 이하이면, 상기 적응 변환 커널이 상기 색차 블록에 적용될 수 있다.Preferably, if the size of the color difference block is 4x4 or more or 64x64 or less, the adaptive transform kernel can be applied to the color difference block.
바람직하게, 상기 색차 블록의 특정 인트라 예측 모드는, 색차 블록의 색차 화소값을 복원된 휘도 화소값을 이용하여 예측하는 제1 모드, 또는, 색차 블록과 대응되는 위치의 휘도 블록의 예측 방향을 사용하는 제2 모드인 방법.Preferably, the specific intra prediction mode of the chrominance block uses a first mode for predicting the chrominance pixel value of the chrominance block by using the reconstructed luminance pixel value, or the prediction direction of the luminance block at a position corresponding to the chrominance block. The second mode.
바람직하게, 상기 적응 변환 커널이 적용 가능한지 여부를 결정하는 단계에 있어서, 상기 색차 블록의 예측 모드가 인터 예측 모드인 경우, 상기 색차 블록의 크기, 상기 색차 블록의 예측 블록과 상기 휘도 블록의 예측 블록의 상관도, 또는, 상기 색차 블록의 예측 블록과 상기 휘도 블록의 복원 블록의 상관도에 기초하여, 상기 적응 변환 커널의 적용 가능 여부가 결정된다.Preferably, in the determining whether the adaptive transform kernel is applicable, when the prediction mode of the color difference block is an inter prediction mode, the size of the color difference block, the prediction block of the color difference block and the prediction block of the luminance block Based on the degree of correlation or the degree of correlation between the predicted block of the chrominance block and the reconstructed block of the luminance block, it is determined whether the adaptive transform kernel is applicable.
바람직하게, 상기 변환 정보를 획득하는 단계에 있어서, 상기 색차 블록과 상기 휘도 블록의 모양이 동일한 경우, 상기 색차 블록과 대응되는 위치에 존재하는 휘도 블록으로부터 상기 변환 정보가 획득되며, 상기 색차 블록과 상기 휘도 블록의 모양이 상이한 경우, 복수의 휘도 블록들 중 하나를 상기 휘도 블록으로 선택하는 단계; 및 상기 선택된 하나의 휘도 블록으로부터 상기 변환 정보가 획득하는 단계를 더 포함한다.Preferably, in the acquiring of the conversion information, when the color difference block and the luminance block have the same shape, the conversion information is obtained from a luminance block existing at a position corresponding to the color difference block. If the shape of the luminance block is different, selecting one of a plurality of luminance blocks as the luminance block; And acquiring the conversion information from the selected one luminance block.
바람직하게, 상기 복수의 휘도 블록들 중 하나를 상기 휘도 블록으로 선택하는 단계에 있어서, 상기 색차 블록의 특정 위치와 대응되는 위치에 존재하는 휘도 블록이 선택되거나, 상기 색차 블록과 겹치는 영역의 넓이가 가장 큰 휘도 블록이 선택되거나, 또는, 상기 색차 블록과 영역이 겹치는 휘도 블록들 중 크기가 가장 큰 휘도 블록이 선택된다.Preferably, in the selecting of one of the plurality of luminance blocks as the luminance block, a luminance block existing at a position corresponding to a specific position of the chrominance block is selected, or an area of an area overlapping with the chrominance block is selected. The largest luminance block is selected, or the luminance block having the largest size is selected among the luminance blocks where the color difference block and the region overlap.
바람직하게, 상기 변환 정보를 획득하는 단계에 있어서, 상기 변환 정보가 인코더로부터 전송되고, 상기 변환 정보는, 상기 색차 블록에 상기 적응 변환 커널이 적용 되었는지를 지시하는 제1 변환 정보를 포함하되, 상기 색차 블록에 상기 적응 변환 커널이 적용된 경우, 상기 변환 정보는 상기 색차 블록에 수평 방향으로 적용되는 변환 및 수직 방향으로 적용되는 변환의 조합을 지시하는 제2 변환 정보를 더 포함하는 방법.Preferably, in the obtaining of the transform information, the transform information is transmitted from an encoder, and the transform information includes first transform information indicating whether the adaptive transform kernel has been applied to the chrominance block. And when the adaptive transform kernel is applied to the chrominance block, the transform information further includes second transform information indicating a combination of a transform applied in the horizontal direction and a transform applied in the vertical direction to the chrominance block.
바람직하게, 상기 변환 정보를 획득하는 단계에 있어서, 상기 색차 블록의 예측 모드가 특정 인트라 예측 모드이면, 상기 색차 블록과 관련된 휘도 블록의 변환 정보가 상기 색차 블록의 변환 정보로써 획득되고, 그렇지 않으면, 상기 변환 정보가 인코더로부터 전송된다.Preferably, in the acquiring of the transformation information, if the prediction mode of the chrominance block is a specific intra prediction mode, transformation information of a luminance block associated with the chrominance block is obtained as transformation information of the chrominance block, otherwise, The conversion information is transmitted from the encoder.
본 발명의 일 양상은, 영상의 색차 블록을 복호화하는 장치에 있어서, 상기 장치는 상기 색차 블록의 역양자화된 변환 계수들을 역변환하는 역변환부를 포함하되, 상기 역변환부는, 상기 색차 블록에 적응 변환 커널(Adaptive transform kernel)이 적용 가능한지 여부를 결정하는 적응 변환 커널 적용 결정부; 상기 색차 블록에 상기 적응 변환 커널이 적용 가능한 경우, 상기 색차 블록의 변환 정보를 획득하는 변환 정보 획득부; 상기 획득된 변환 정보를 이용하여 상기 색차 블록을 역변환하는 색차 블록 역변환부;를 포함한다.An aspect of the present invention provides a device for decoding a color difference block of an image, wherein the device includes an inverse transform unit for inversely transforming inverse quantized transform coefficients of the color difference block, wherein the inverse transform unit is adapted to the color difference block. An adaptive transform kernel application determining unit determining whether or not an adaptive transform kernel is applicable; A transformation information obtaining unit obtaining transformation information of the chrominance block when the adaptive transformation kernel is applicable to the chrominance block; And a color difference block inverse transform unit which inversely transforms the color difference block by using the obtained conversion information.
본 발명의 실시예에 따르면, 색차 영상을 부호화/복호화 하는 과정에서 AMT(Adaptive Multiple Core Transform)를 적용함으로써 데이터 압축 효율이 향상될 수 있다. According to an embodiment of the present invention, data compression efficiency may be improved by applying an adaptive multiple core transform (AMT) in a process of encoding / decoding a color difference image.
또한, 본 발명의 실시예에 따르면, 휘도 블록의 AMT 정보를 색차 블록의 AMT 정보로 이용함으로써 시그널링되는 비트의 수가 감소될 수 있다.In addition, according to an embodiment of the present invention, the number of bits signaled may be reduced by using the AMT information of the luminance block as the AMT information of the chrominance block.
또한, 본 발명의 실시예에 따르면, 색차 블록에 AMT가 적용 가능한지 여부가 먼저 판단될 수 있고, AMT 정보를 가져올 휘도 블록이 다양한 방법을 통해 선택될 수 있다.In addition, according to an embodiment of the present invention, whether or not AMT is applicable to the color difference block may be first determined, and a luminance block for obtaining AMT information may be selected through various methods.
또한, 본 발명의 실시예에 따르면, 색차 블록의 특성에 따라 별도로 구성된 AMT 변환 세트를 사용함으로써 변환 효율이 향상될 수 있다.In addition, according to an embodiment of the present invention, the conversion efficiency may be improved by using an AMT transform set separately configured according to the characteristics of the chrominance block.
또한, 본 발명의 실시예에 따르면, 각 예측 모드에서 적용 가능한 서브 변환 세트의 수를 줄임으로써 시그널링되는 비트의 수가 감소될 수 있다.Further, according to an embodiment of the present invention, the number of bits signaled may be reduced by reducing the number of sub transform sets applicable in each prediction mode.
또한, 본 발명의 실시예에 따르면, Cb 블록과 Cr 블록 각각에 대해 AMT 적용 여부를 결정함으로써 데이터 압축 효율이 더욱 향상될 수 있다.In addition, according to an embodiment of the present invention, data compression efficiency may be further improved by determining whether AMT is applied to each of the Cb block and the Cr block.
본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtainable in the present invention are not limited to the above-mentioned effects, and other effects not mentioned will be clearly understood by those skilled in the art from the following description. .
도 1은 본 발명이 적용되는 실시예로서, 정지 영상 또는 동영상 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.1 is a schematic block diagram of an encoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
도 2는 본 발명이 적용되는 실시예로서, 정지 영상 또는 동영상 신호의 인코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.2 is a schematic block diagram of a decoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
도 3은 본 발명에 적용될 수 있는 코딩 유닛의 분할 구조를 설명하기 위한 도면이다.3 is a diagram for describing a partition structure of a coding unit that may be applied to the present invention.
도 4는 본 발명에 적용될 수 있는 예측 유닛을 설명하기 위한 도면이다. 4 is a diagram for explaining a prediction unit applicable to the present invention.
도 5는 본 발명의 일 실시예에 따른, 인트라 예측 모드의 예측 방향을 나타낸다.5 illustrates a prediction direction of an intra prediction mode according to an embodiment of the present invention.
도 6은 본 발명의 일 실시예에 따른, QTBT(QuadTree BinaryTree, 이하 'QTBT'라 함) 블록 분할 구조를 설명하기 위한 도면이다.FIG. 6 is a diagram for describing a QTBT (QuadTree BinaryTree) block division structure according to an embodiment of the present invention.
도 7은 본 발명의 일 실시예에 따른, 휘도(luma) 성분과 색차(chroma) 성분에 대한 QTBT의 블록 분할 구조를 비교하여 설명하기 위한 도면이다.FIG. 7 is a diagram illustrating a block division structure of a QTBT for a luma component and a chroma component according to an embodiment of the present invention.
도 8은 본 발명의 일 실시예에 따른, 휘도 블록과 색차 블록의 블록 분할 구조가 상이한 경우, 복수의 휘도 블록들 중 하나를 선택하는 것을 나타낸다.FIG. 8 illustrates selecting one of a plurality of luminance blocks when the block division structure of the luminance block and the chrominance block is different according to an embodiment of the present invention.
도 9는 본 발명의 일 실시예에 따른, LM(Linear Model) 모드를 설명하기 위한 도면이다.9 is a diagram for describing a linear model (LM) mode according to an embodiment of the present invention.
도 10은 본 발명의 일 실시예에 따른, 역변환부의 블록도를 나타낸다.10 is a block diagram of an inverse transform unit, according to an exemplary embodiment.
도 11은 본 발명의 일 실시예에 따른, 색차 블록을 복호화하는 방법의 순서도를 나타낸다.11 is a flowchart of a method of decoding a color difference block, according to an embodiment of the present invention.
이하, 본 발명에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 발명의 예시적인 실시형태를 설명하고자 하는 것이며, 본 발명이 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 발명의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 발명이 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. The detailed description, which will be given below with reference to the accompanying drawings, is intended to explain exemplary embodiments of the present invention and is not intended to represent the only embodiments in which the present invention may be practiced. The following detailed description includes specific details in order to provide a thorough understanding of the present invention. However, one of ordinary skill in the art appreciates that the present invention may be practiced without these specific details.
몇몇 경우, 본 발명의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다. In some instances, well-known structures and devices may be omitted or shown in block diagram form centering on the core functions of the structures and devices in order to avoid obscuring the concepts of the present invention.
아울러, 본 발명에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 발명의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.In addition, the terminology used in the present invention was selected as a general term widely used as possible now, in a specific case will be described using terms arbitrarily selected by the applicant. In such a case, since the meaning is clearly described in the detailed description of the part, it should not be interpreted simply by the name of the term used in the description of the present invention, and it should be understood that the meaning of the term should be understood and interpreted. .
이하의 설명에서 사용되는 특정 용어들은 본 발명의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 발명의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽쳐, 프레임, 블록 등의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.Specific terms used in the following description are provided to help the understanding of the present invention, and the use of such specific terms may be changed to other forms without departing from the technical spirit of the present invention. For example, signals, data, samples, pictures, frames, blocks, etc. may be appropriately replaced and interpreted in each coding process.
이하 본 명세서에서 '블록' 또는 '유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 과정이 수행되는 단위를 의미하며, 샘플(또는 화소, 픽셀)의 다차원 배열로 구성될 수 있다. Hereinafter, the term 'block' or 'unit' refers to a unit in which a process of encoding / decoding such as prediction, transformation, and / or quantization is performed, and may be configured as a multidimensional array of samples (or pixels, pixels).
'블록' 또는 '유닛'은 휘도(luma) 성분에 대한 샘플의 다차원 배열을 의미할 수도 있으며, 색차(chroma) 성분에 대한 샘플의 다차원 배열을 의미할 수도 있다. 또한, 휘도(luma) 성분에 대한 샘플의 다차원 배열과 색차(chroma) 성분에 대한 샘플의 다차원 배열을 모두 포함하여 통칭할 수도 있다. 'Block' or 'unit' may mean a multi-dimensional array of samples for luma components, or may mean a multi-dimensional array of samples for chroma components. In addition, the multi-dimensional arrangement of the sample for the luma component and the multi-dimensional arrangement of the sample for the chroma component may also be included.
예를 들어, '블록' 또는 '유닛'은 인코딩/디코딩의 수행 대상이 되는 샘플의 배열을 의미하는 코딩 블록(CB: Conding Block), 복수의 코딩 블록으로 구성되는 코딩 트리 블록(CTB: Coding Tree Block), 동일한 예측이 적용되는 샘플의 배열을 의미하는 예측 블록(PB: Prediction Block)(또는 예측 유닛(PU: Prediction Unit)), 동일한 변환이 적용되는 샘플의 배열을 의미하는 변환 블록(TB: Transform Block)(또는 변환 유닛(TU: Transform Unit))을 모두 포함하는 의미로 해석될 수 있다. For example, 'block' or 'unit' refers to a coding block (CB) that represents an array of samples to be encoded / decoded, and a coding tree block composed of a plurality of coding blocks (CTB). Block), Prediction Block (PB) (or Prediction Unit (PU)), which means an array of samples to which the same prediction is applied, and Transform Block (TB :), which is an array of samples to which the same transformation is applied. It may be interpreted as meaning including all of a transform block (or a transform unit (TU)).
또한, 본 명세서 별도의 언급이 없는 한, '블록' 또는 '유닛'은 휘도(luma) 성분 및/또는 색차(chroma) 성분에 대한 샘플의 배열을 인코딩/디코딩하는 과정에서 이용되는 신택스 구조(syntax sturcture)를 포함하는 의미로 해석될 수 있다. 여기서, 신택스 구조는 특정한 순서로 비트스트림 내 존재하는 0 또는 그 이상의 신택스 요소(syntax element)를 의미하며, 신택스 요소는 비트스트림 내에서 표현되는 데이터의 요소를 의미한다. Also, unless stated otherwise in this specification, a 'block' or 'unit' is a syntax structure used in encoding / decoding an array of samples for a luma component and / or a chroma component. can be interpreted to include a sturcture. Here, the syntax structure refers to zero or more syntax elements existing in the bitstream in a specific order, and the syntax element refers to an element of data represented in the bitstream.
예를 들어, '블록' 또는 '유닛'은 코딩 블록(CB)과 해당 코딩 블록(CB)의 인코딩을 위해 이용되는 신택스 구조를 포함하는 코딩 유닛(CU: Coding Unit), 복수의 코딩 유닛으로 구성되는 코딩 트리 유닛(CU: Coding Tree Unit), 예측 블록(PB)과 해당 예측 블록(PB)의 예측을 위해 이용되는 신택스 구조를 포함하는 예측 유닛(PU: Prediction Unit), 변환 블록(TB)과 해당 변환 블록(TB)의 변환을 위해 이용되는 신택스 구조를 포함하는 변환 유닛(TU: Transform Unit)을 모두 포함하는 의미로 해석될 수 있다. For example, a 'block' or 'unit' includes a coding unit (CU) including a coding block (CB) and a syntax structure used for encoding the coding block (CB), and a plurality of coding units. A prediction unit (PU), a transform block (TB) including a coding tree unit (CU), a prediction block (PB), and a syntax structure used for prediction of the prediction block (PB); It may be interpreted as meaning including all transform units (TUs) including a syntax structure used for transformation of the corresponding transform block TB.
또한, 본 명세서에서 '블록' 또는 '유닛'은 반드시 정사각형 또는 직사각형 형태의 샘플(또는 화소, 픽셀)의 배열로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태의 샘플(또는 화소, 픽셀)의 배열을 의미할 수도 있다. 이 경우, 폴리곤(Polygon) 블록 또는 폴리곤 유닛으로 지칭될 수도 있다.In addition, in the present specification, the 'block' or 'unit' is not necessarily limited to an array of square or rectangular samples (or pixels or pixels), and polygonal samples having three or more vertices (or pixels or pixels). It can also mean an array of. In this case, it may also be referred to as a polygon block or a polygon unit.
도 1은 본 발명이 적용되는 실시예로서, 정지 영상 또는 동영상 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.1 is a schematic block diagram of an encoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
도 1을 참조하면, 인코더(100)는 영상 분할부(110), 감산기(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 필터링부(160), 복호 픽쳐 버퍼(DPB: Decoded Picture Buffer)(170), 예측부(180) 및 엔트로피 인코딩부(190)를 포함하여 구성될 수 있다. 그리고, 예측부(180)는 인터 예측부(181), 인트라 예측부(182)를 포함하여 구성될 수 있다. Referring to FIG. 1, the encoder 100 may include an image divider 110, a subtractor 115, a transform unit 120, a quantizer 130, an inverse quantizer 140, an inverse transform unit 150, and a filtering unit. 160, a decoded picture buffer (DPB) 170, a predictor 180, and an entropy encoder 190. The predictor 180 may include an inter predictor 181 and an intra predictor 182.
영상 분할부(110)는 인코더(100)에 입력된 입력 영상 신호(Input video signal)(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛으로 분할한다. The image divider 110 divides an input video signal (or a picture or a frame) input to the encoder 100 into one or more processing units.
감산기(115)는 입력 영상 신호에서 예측부(180)로부터(즉, 인터 예측부(181) 또는 인트라 예측부(182))로부터 출력된 예측 신호(prediction signal)(또는 예측 블록)를 감산하여 차분 신호(residual signal)(또는 차분 블록)를 생성한다. 생성된 차분 신호(또는 차분 블록)는 변환부(120)로 전송된다. The subtractor 115 subtracts the difference from the prediction signal (or prediction block) output from the prediction unit 180 (that is, the inter prediction unit 181 or the intra prediction unit 182) in the input image signal. Generate a residual signal (or difference block). The generated difference signal (or difference block) is transmitted to the converter 120.
변환부(120)는 차분 신호(또는 차분 블록)에 변환 기법(예를 들어, DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), GBT(Graph-Based Transform), KLT(Karhunen-Loeve transform) 등)을 적용하여 변환 계수(transform coefficient)를 생성한다. 이때, 변환부(120)는 차분 블록에 적용된 예측 모드와 차분 블록의 크기에 따라서 결정된 변환 기법을 이용하여 변환을 수행함으로써 변환 계수들을 생성할 수 있다. The transform unit 120 may convert a differential signal (or a differential block) into a transform scheme (eg, a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), and a karhunen-loeve transform (KLT)). Etc.) to generate transform coefficients. In this case, the transform unit 120 may generate transform coefficients by performing a transform using a transform mode determined according to the prediction mode applied to the difference block and the size of the difference block.
양자화부(130)는 변환 계수를 양자화하여 엔트로피 인코딩부(190)로 전송하고, 엔트로피 인코딩부(190)는 양자화된 신호(quantized signal)를 엔트로피 코딩하여 비트 스트림으로 출력한다.The quantization unit 130 quantizes the transform coefficients and transmits the transform coefficients to the entropy encoding unit 190, and the entropy encoding unit 190 entropy codes the quantized signals and outputs them as bit streams.
한편, 양자화부(130)로부터 출력된 양자화된 신호(quantized signal)는 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 신호(quantized signal)는 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 차분 신호를 복원할 수 있다. 복원된 차분 신호를 인터 예측부(181) 또는 인트라 예측부(182)로부터 출력된 예측 신호(prediction signal)에 더함으로써 복원 신호(reconstructed signal)가 생성될 수 있다. Meanwhile, the quantized signal output from the quantization unit 130 may be used to generate a prediction signal. For example, the quantized signal may recover the differential signal by applying inverse quantization and inverse transformation through an inverse quantization unit 140 and an inverse transformation unit 150 in a loop. A reconstructed signal may be generated by adding the reconstructed difference signal to a prediction signal output from the inter predictor 181 or the intra predictor 182.
한편, 위와 같은 압축 과정에서 인접한 블록들이 서로 다른 양자화 파라미터에 의해 양자화됨으로써 블록 경계가 보이는 열화가 발생될 수 있다. 이러한 현상을 블록킹 열화(blocking artifacts)라고 하며, 이는 화질을 평가하는 중요한 요소 중의 하나이다. 이러한 열화를 줄이기 위해 필터링 과정을 수행할 수 있다. 이러한 필터링 과정을 통해 블록킹 열화를 제거함과 동시에 현재 픽쳐에 대한 오차를 줄임으로써 화질을 향상시킬 수 있게 된다.Meanwhile, in the compression process as described above, adjacent blocks are quantized by different quantization parameters, thereby causing deterioration of the block boundary. This phenomenon is called blocking artifacts, which is one of the important factors in evaluating image quality. In order to reduce such deterioration, a filtering process may be performed. Through this filtering process, the image quality can be improved by removing the blocking degradation and reducing the error of the current picture.
필터링부(160)는 복원 신호에 필터링을 적용하여 이를 재생 장치로 출력하거나 복호 픽쳐 버퍼(170)에 전송한다. 복호 픽쳐 버퍼(170)에 전송된 필터링된 신호는 인터 예측부(181)에서 참조 픽쳐로 사용될 수 있다. 이처럼, 필터링된 픽쳐를 화면간 예측 모드에서 참조 픽쳐로 이용함으로써 화질뿐만 아니라 부호화 효율도 향상시킬 수 있다. The filtering unit 160 applies filtering to the reconstruction signal and outputs it to the reproduction apparatus or transmits the decoded picture buffer to the decoding picture buffer 170. The filtered signal transmitted to the decoded picture buffer 170 may be used as the reference picture in the inter prediction unit 181. As such, by using the filtered picture as a reference picture in the inter prediction mode, not only image quality but also encoding efficiency may be improved.
복호 픽쳐 버퍼(170)는 필터링된 픽쳐를 인터 예측부(181)에서의 참조 픽쳐으로 사용하기 위해 저장할 수 있다.The decoded picture buffer 170 may store the filtered picture for use as a reference picture in the inter prediction unit 181.
인터 예측부(181)는 복원 픽쳐(reconstructed picture)를 참조하여 시간적 중복성 및/또는 공간적 중복성을 제거하기 위해 시간적 예측 및/또는 공간적 예측을 수행한다. 여기서, 예측을 수행하기 위해 이용되는 참조 픽쳐는 이전 시간에 부호화/복호화 시 블록 단위로 양자화와 역양자화를 거친 변환된 신호이기 때문에, 블로킹 아티팩트(blocking artifact)나 링잉 아티팩트(ringing artifact)가 존재할 수 있다. The inter prediction unit 181 performs temporal prediction and / or spatial prediction to remove temporal redundancy and / or spatial redundancy with reference to a reconstructed picture. Here, since the reference picture used to perform the prediction is a transformed signal that has been quantized and dequantized in units of blocks at the time of encoding / decoding, a blocking artifact or a ringing artifact may exist. have.
따라서, 인터 예측부(181)는 이러한 신호의 불연속이나 양자화로 인한 성능 저하를 해결하기 위해, 로우패스 필터(lowpass filter)를 적용함으로써 픽셀들 사이의 신호를 서브 픽셀 단위로 보간할 수 있다. 여기서, 서브 픽셀은 보간 필터를 적용하여 생성된 가상의 화소를 의미하고, 정수 픽셀은 복원된 픽쳐에 존재하는 실제 화소를 의미한다. 보간 방법으로는 선형 보간, 양선형 보간(bi-linear interpolation), 위너 필터(wiener filter) 등이 적용될 수 있다.Accordingly, the inter prediction unit 181 may interpolate the signals between pixels in sub-pixel units by applying a lowpass filter to solve performance degradation due to discontinuity or quantization of such signals. Herein, the subpixel refers to a virtual pixel generated by applying an interpolation filter, and the integer pixel refers to an actual pixel existing in the reconstructed picture. As the interpolation method, linear interpolation, bi-linear interpolation, wiener filter, or the like may be applied.
보간 필터는 복원 픽쳐(reconstructed picture)에 적용되어 예측의 정밀도를 향상시킬 수 있다. 예를 들어, 인터 예측부(181)는 정수 픽셀에 보간 필터를 적용하여 보간 픽셀을 생성하고, 보간 픽셀들(interpolated pixels)로 구성된 보간 블록(interpolated block)을 예측 블록(prediction block)으로 사용하여 예측을 수행할 수 있다. The interpolation filter may be applied to a reconstructed picture to improve the precision of prediction. For example, the inter prediction unit 181 generates an interpolation pixel by applying an interpolation filter to integer pixels, and uses an interpolated block composed of interpolated pixels as a prediction block. You can make predictions.
인트라 예측부(182)는 현재 부호화를 진행하려고 하는 블록의 주변에 있는 샘플들을 참조하여 현재 블록을 예측한다. 인트라 예측부(182)는, 인트라 예측을 수행하기 위해 다음과 같은 과정을 수행할 수 있다. 먼저, 예측 신호를 생성하기 위해 필요한 참조 샘플을 준비할 수 있다. 그리고, 준비된 참조 샘플을 이용하여 예측 신호를 생성할 수 있다. 또한, 예측 모드를 부호화하게 된다. 이때, 참조 샘플은 참조 샘플 패딩 및/또는 참조 샘플 필터링을 통해 준비될 수 있다. 참조 샘플은 예측 및 복원 과정을 거쳤기 때문에 양자화 에러가 존재할 수 있다. 따라서, 이러한 에러를 줄이기 위해 인트라 예측에 이용되는 각 예측 모드에 대해 참조 샘플 필터링 과정이 수행될 수 있다.The intra predictor 182 predicts the current block by referring to samples in the vicinity of the block to which the current encoding is to be performed. The intra prediction unit 182 may perform the following process to perform intra prediction. First, reference samples necessary for generating a prediction signal may be prepared. The prediction signal may be generated using the prepared reference sample. In addition, the prediction mode is encoded. In this case, the reference sample may be prepared through reference sample padding and / or reference sample filtering. Since the reference sample has been predicted and reconstructed, there may be a quantization error. Accordingly, the reference sample filtering process may be performed for each prediction mode used for intra prediction to reduce such an error.
인터 예측부(181) 또는 상기 인트라 예측부(182)를 통해 생성된 예측 신호(prediction signal)(또는 예측 블록)는 복원 신호(또는 복원 블록)를 생성하기 위해 이용되거나 차분 신호(또는 차분 블록)를 생성하기 위해 이용될 수 있다. The prediction signal (or prediction block) generated by the inter prediction unit 181 or the intra prediction unit 182 is used to generate a reconstruction signal (or reconstruction block) or a differential signal (or differential block). It can be used to generate.
도 2는 본 발명이 적용되는 실시예로서, 정지 영상 또는 동영상 신호의 인코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.2 is a schematic block diagram of a decoder in which encoding of a still image or video signal is performed according to an embodiment to which the present invention is applied.
도 2를 참조하면, 디코더(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산기(235), 필터링부(240), 복호 픽쳐 버퍼(DPB: Decoded Picture Buffer Unit)(250), 예측부(260)를 포함하여 구성될 수 있다. 그리고, 예측부(260)는 인터 예측부(261) 및 인트라 예측부(262)를 포함하여 구성될 수 있다. 2, the decoder 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, and a decoded picture buffer (DPB). Buffer Unit (250), the prediction unit 260 may be configured. The predictor 260 may include an inter predictor 261 and an intra predictor 262.
그리고, 디코더(200)를 통해 출력된 복원 영상 신호(reconstructed video signal)는 재생 장치를 통해 재생될 수 있다.The reconstructed video signal output through the decoder 200 may be reproduced through the reproducing apparatus.
디코더(200)는 도 1의 인코더(100)로부터 출력된 신호(즉, 비트 스트림)을 수신하고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 엔트로피 디코딩된다. The decoder 200 receives a signal (ie, a bit stream) output from the encoder 100 of FIG. 1, and the received signal is entropy decoded through the entropy decoding unit 210.
역양자화부(220)에서는 양자화 스텝 사이즈 정보를 이용하여 엔트로피 디코딩된 신호로부터 변환 계수(transform coefficient)를 획득한다. The inverse quantization unit 220 obtains a transform coefficient from the entropy decoded signal using the quantization step size information.
역변환부(230)에서는 역변환 기법을 적용하여 변환 계수를 역변환하여 차분 신호(residual signal)(또는 차분 블록)를 획득하게 된다. The inverse transform unit 230 applies an inverse transform scheme to inverse transform the transform coefficients to obtain a residual signal (or a differential block).
가산기(235)는 획득된 차분 신호(또는 차분 블록)를 예측부(260)(즉, 인터 예측부(261) 또는 인트라 예측부(262))로부터 출력된 예측 신호(prediction signal)(또는 예측 블록)에 더함으로써 복원 신호(reconstructed signal)(또는 복원 블록)가 생성된다.The adder 235 outputs the obtained difference signal (or difference block) from the prediction unit 260 (that is, the prediction signal (or prediction block) output from the inter prediction unit 261 or the intra prediction unit 262. ) Generates a reconstructed signal (or a reconstruction block).
필터링부(240)는 복원 신호(reconstructed signal)(또는 복원 블록)에 필터링을 적용하여 이를 재생 장치로 출력하거나 복호 픽쳐 버퍼부(250)에 전송한다. 복호 픽쳐 버퍼부(250)에 전송된 필터링된 신호는 인터 예측부(261)에서 참조 픽쳐로 사용될 수 있다. The filtering unit 240 applies filtering to the reconstructed signal (or the reconstructed block) and outputs the filtering to the reproduction device or transmits the decoded picture buffer unit 250 to the reproduction device. The filtered signal transmitted to the decoded picture buffer unit 250 may be used as a reference picture in the inter predictor 261.
본 명세서에서, 인코더(100)의 필터링부(160), 인터 예측부(181) 및 인트라 예측부(182)에서 설명된 실시예들은 각각 디코더의 필터링부(240), 인터 예측부(261) 및 인트라 예측부(262)에도 동일하게 적용될 수 있다.In the present specification, the embodiments described by the filtering unit 160, the inter prediction unit 181, and the intra prediction unit 182 of the encoder 100 are respectively the filtering unit 240, the inter prediction unit 261, and the decoder of the decoder. The same may be applied to the intra predictor 262.
일반적으로 정지 영상 또는 동영상 압축 기술(예를 들어, HEVC)에서는 블록 기반의 영상 압축 방법을 이용한다. 블록 기반의 영상 압축 방법은 영상을 특정 블록 단위로 나누어서 처리하는 방법으로서, 메모리 사용과 연산량을 감소시킬 수 있다. In general, a still image or video compression technique (eg, HEVC) uses a block-based image compression method. The block-based image compression method is a method of processing an image by dividing the image into specific block units, and may reduce memory usage and calculation amount.
도 3은 본 발명에 적용될 수 있는 코딩 유닛의 분할 구조를 설명하기 위한 도면이다.3 is a diagram for describing a partition structure of a coding unit that may be applied to the present invention.
인코더는 하나의 영상(또는 픽쳐)을 사각형 형태의 코딩 트리 유닛(CTU: Coding Tree Unit) 단위로 분할한다. 그리고, 래스터 스캔 순서(raster scan order)에 따라 하나의 CTU 씩 순차적으로 인코딩한다.The encoder splits one image (or picture) into units of a coding tree unit (CTU) in a rectangular shape. In addition, one CTU is sequentially encoded according to a raster scan order.
HEVC에서 CTU의 크기는 64Х64, 32Х32, 16Х16 중 어느 하나로 정해질 수 있다. 인코더는 입력된 영상의 해상도 또는 입력된 영상의 특성 등에 따라 CTU의 크기를 선택하여 사용할 수 있다. CTU은 휘도(luma) 성분에 대한 코딩 트리 블록(CTB: Coding Tree Block)과 이에 대응하는 두 개의 색차(chroma) 성분에 대한 CTB를 포함한다. In HEVC, the size of the CTU can be set to any of 64Х64, 32Х32, and 16Х16. The encoder may select and use the size of the CTU according to the resolution of the input video or the characteristics of the input video. The CTU includes a coding tree block (CTB) for luma components and a CTB for two chroma components corresponding thereto.
하나의 CTU은 쿼드-트리(Quad-tree) 구조로 분할될 수 있다. 즉, 하나의 CTU은 정사각형 형태를 가지면서 절반의 수평 크기(half horizontal size) 및 절반의 수직 크기(half vertical size)를 가지는 4개의 유닛으로 분할되어 코딩 유닛(CU: Coding Unit)이 생성될 수 있다. 이러한 쿼드-트리 구조의 분할은 재귀적으로 수행될 수 있다. 즉, CU은 하나의 CTU로부터 쿼드-트리 구조로 계층적으로 분할된다.One CTU may be divided into a quad-tree structure. That is, one CTU has a square shape and is divided into four units having a half horizontal size and a half vertical size to generate a coding unit (CU). have. This partitioning of the quad-tree structure can be performed recursively. That is, a CU is hierarchically divided into quad-tree structures from one CTU.
CU은 입력 영상의 처리 과정, 예컨대 인트라(intra)/인터(inter) 예측이 수행되는 코딩의 기본 단위를 의미한다. CU은 휘도(luma) 성분에 대한 코딩 블록(CB: Coding Block)과 이에 대응하는 두 개의 색차(chroma) 성분에 대한 CB를 포함한다. HEVC에서 CU의 크기는 64Х64, 32Х32, 16Х16, 8Х8 중 어느 하나로 정해질 수 있다. CU refers to a basic unit of coding in which an input image is processed, for example, intra / inter prediction is performed. The CU includes a coding block (CB) for a luma component and a CB for two chroma components corresponding thereto. In HEVC, the size of a CU may be one of 64Х64, 32Х32, 16Х16, and 8Х8.
도 3을 참조하면, 쿼드-트리의 루트 노드(root node)는 CTU와 관련된다. 쿼드-트리는 리프 노드(leaf node)에 도달할 때까지 분할되고, 리프 노드는 CU에 해당한다. Referring to FIG. 3, the root node of the quad-tree is associated with the CTU. The quad-tree is split until it reaches a leaf node, which corresponds to a CU.
보다 구체적으로 살펴보면, CTU는 루트 노드(root node)에 해당되고, 가장 작은 깊이(depth)(즉, depth=0) 값을 가진다. 입력 영상의 특성에 따라 CTU가 분할되지 않을 수도 있으며, 이 경우 CTU은 CU에 해당한다. More specifically, the CTU corresponds to a root node and has a smallest depth (ie, depth = 0). The CTU may not be divided according to the characteristics of the input image. In this case, the CTU corresponds to a CU.
CTU은 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 1(depth=1)인 하위 노드들이 생성된다. 그리고, 1의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 CU에 해당한다. 예를 들어, 도 3(b)에서 노드 a, b 및 j에 대응하는 CU(a), CU(b), CU(j)는 CTU에서 한 번 분할되었으며, 1의 깊이를 가진다.The CTU may be divided into quad tree shapes, resulting in lower nodes having a depth of 1 (depth = 1). In addition, a node that is no longer divided (ie, a leaf node) in a lower node having a depth of 1 corresponds to a CU. For example, in FIG. 3 (b), CU (a), CU (b), and CU (j) corresponding to nodes a, b, and j are divided once in the CTU and have a depth of one.
1의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 1(즉, depth=2)인 하위 노드들이 생성된다. 그리고, 2의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 CU에 해당한다. 예를 들어, 도 3(b)에서 노드 c, h 및 i에 대응하는 CU(c), CU(h), CU(i)는 CTU에서 두 번 분할되었으며, 2의 깊이를 가진다. At least one of the nodes having a depth of 1 may be divided into quad tree shapes, and as a result, sub nodes having a depth of 1 (ie, depth = 2) are generated. In addition, a node (ie, a leaf node) that is no longer divided in a lower node having a depth of 2 corresponds to a CU. For example, in FIG. 3 (b), CU (c), CU (h) and CU (i) corresponding to nodes c, h and i are divided twice in the CTU and have a depth of two.
또한, 2의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 3(즉, depth=3)인 하위 노드들이 생성된다. 그리고, 3의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 CU에 해당한다. 예를 들어, 도 3(b)에서 노드 d, e, f, g에 대응하는 CU(d), CU(e), CU(f), CU(g)는 CTU에서 3번 분할되었으며, 3의 깊이를 가진다.In addition, at least one of the nodes having a depth of 2 may be divided into quad tree shapes, resulting in lower nodes having a depth of 3 (ie, depth = 3). And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of 3 corresponds to a CU. For example, in FIG. 3 (b), CU (d), CU (e), CU (f), and CU (g) corresponding to nodes d, e, f, and g are divided three times in the CTU, Has depth.
인코더에서는 비디오 영상의 특성(예를 들어, 해상도)에 따라서 혹은 부호화의 효율을 고려하여 CU의 최대 크기 또는 최소 크기를 결정할 수 있다. 그리고, 이에 대한 정보 또는 이를 유도할 수 있는 정보가 비트스트림에 포함될 수 있다. 최대 크기를 가지는 CU를 최대 코딩 유닛(LCU: Largest Coding Unit)이라고 지칭하며, 최소 크기를 가지는 CU를 최소 코딩 유닛(SCU: Smallest Coding Unit)이라고 지칭할 수 있다. In the encoder, the maximum size or the minimum size of the CU may be determined according to characteristics (eg, resolution) of the video image or in consideration of encoding efficiency. Information about this or information capable of deriving the information may be included in the bitstream. A CU having a maximum size may be referred to as a largest coding unit (LCU), and a CU having a minimum size may be referred to as a smallest coding unit (SCU).
또한, 트리 구조를 갖는 CU은 미리 정해진 최대 깊이 정보(또는, 최대 레벨 정보)를 가지고 계층적으로 분할될 수 있다. 그리고, 각각의 분할된 CU은 깊이 정보를 가질 수 있다. 깊이 정보는 CU의 분할된 횟수 및/또는 정도를 나타내므로, CU의 크기에 관한 정보를 포함할 수도 있다.In addition, a CU having a tree structure may be hierarchically divided with predetermined maximum depth information (or maximum level information). Each partitioned CU may have depth information. Since the depth information indicates the number and / or degree of division of the CU, the depth information may include information about the size of the CU.
LCU가 쿼드 트리 형태로 분할되므로, LCU의 크기 및 최대 깊이 정보를 이용하면 SCU의 크기를 구할 수 있다. 또는 역으로, SCU의 크기 및 트리의 최대 깊이 정보를 이용하면, LCU의 크기를 구할 수 있다.Since the LCU is divided into quad tree shapes, the size of the SCU can be obtained by using the size and maximum depth information of the LCU. Or conversely, using the size of the SCU and the maximum depth information of the tree, the size of the LCU can be obtained.
하나의 CU에 대하여, 해당 CU이 분할 되는지 여부를 나타내는 정보(예를 들어, 분할 CU 플래그(split_cu_flag))가 디코더에 전달될 수 있다. 이 분할 정보는 SCU을 제외한 모든 CU에 포함되어 있다. 예를 들어, 분할 여부를 나타내는 플래그의 값이 '1'이면 해당 CU은 다시 4개의 CU으로 나누어지고, 분할 여부를 나타내는 플래그의 값이 '0'이면 해당 CU은 더 이상 나누어지지 않고 해당 CU에 대한 처리 과정이 수행될 수 있다.For one CU, information indicating whether the corresponding CU is split (for example, a split CU flag split_cu_flag) may be transmitted to the decoder. This partitioning information is included in all CUs except the SCU. For example, if the flag indicating whether to split or not is '1', the CU is divided into 4 CUs again. If the flag indicating whether to split or not is '0', the CU is not divided further. Processing may be performed.
상술한 바와 같이, CU는 인트라 예측 또는 인터 예측이 수행되는 코딩의 기본 단위이다. HEVC는 입력 영상을 보다 효과적으로 코딩하기 위하여 CU를 예측 유닛(PU: Prediction Unit) 단위로 분할한다. As described above, a CU is a basic unit of coding in which intra prediction or inter prediction is performed. HEVC divides a CU into prediction units (PUs) in order to code an input image more effectively.
PU는 예측 블록을 생성하는 기본 단위로서, 하나의 CU 내에서도 PU 단위로 서로 다르게 예측 블록을 생성할 수 있다. 다만, 하나의 CU 내에 속한 PU들은 인트라 예측과 인터 예측이 혼합되어 사용되지 않으며, 하나의 CU 내에 속한 PU들은 동일한 예측 방법(즉, 인트라 예측 혹은 인터 예측)으로 코딩된다.The PU is a basic unit for generating a prediction block, and may generate different prediction blocks in PU units within one CU. However, PUs belonging to one CU are not mixed with intra prediction and inter prediction, and PUs belonging to one CU are coded by the same prediction method (ie, intra prediction or inter prediction).
PU는 쿼드-트리 구조로 분할되지 않으며, 하나의 CU에서 미리 정해진 형태로 한번 분할된다. 이에 대하여 아래 도면을 참조하여 설명한다.The PU is not divided into quad-tree structures, but is divided once in a predetermined form in one CU. This will be described with reference to the drawings below.
도 4는 본 발명에 적용될 수 있는 예측 유닛을 설명하기 위한 도면이다. 4 is a diagram for explaining a prediction unit applicable to the present invention.
PU는 PU가 속하는 CU의 코딩 모드로 인트라 예측 모드가 사용되는지 인터 예측 모드가 사용되는지에 따라 상이하게 분할된다.The PU is divided differently according to whether an intra prediction mode or an inter prediction mode is used as a coding mode of a CU to which the PU belongs.
도 4(a)는 인트라 예측 모드가 사용되는 경우의 PU를 예시하고, 도 4(b)는 인터 예측 모드가 사용되는 경우의 PU를 예시한다. FIG. 4A illustrates a PU when an intra prediction mode is used, and FIG. 4B illustrates a PU when an inter prediction mode is used.
도 4(a)를 참조하면, 하나의 CU의 크기가 2NХ2N(N=4,8,16,32)인 경우를 가정하면, 하나의 CU는 2가지 타입(즉, 2NХ2N 또는 NХN)으로 분할될 수 있다. Referring to FIG. 4 (a), assuming that a size of one CU is 2NХ2N (N = 4,8,16,32), one CU is divided into two types (that is, 2NХ2N or NХN). Can be.
여기서, 2NХ2N 형태의 PU로 분할되는 경우, 하나의 CU 내에 하나의 PU만이 존재하는 것을 의미한다. Here, when divided into 2NХ2N type PU, it means that only one PU exists in one CU.
반면, NХN 형태의 PU로 분할되는 경우, 하나의 CU는 4개의 PU로 분할되고, 각 PU 단위 별로 서로 다른 예측 블록이 생성된다. 다만, 이러한 PU의 분할은 CU의 휘도 성분에 대한 CB의 크기가 최소 크기인 경우(즉, CU가 SCU인 경우)에만 수행될 수 있다. On the other hand, when divided into NХN type PU, one CU is divided into four PUs, and different prediction blocks are generated for each PU unit. However, the division of the PU may be performed only when the size of the CB for the luminance component of the CU is the minimum size (that is, the CU is the SCU).
도 4(b)를 참조하면, 하나의 CU의 크기가 2NХ2N(N=4,8,16,32)인 경우를 가정하면, 하나의 CU는 8가지의 PU 타입(즉, 2NХ2N, NХN, 2NХN, NХ2N, nLХ2N, nRХ2N, 2NХnU, 2NХnD)으로 분할될 수 있다.Referring to FIG. 4 (b), assuming that a size of one CU is 2NХ2N (N = 4,8,16,32), one CU has 8 PU types (ie, 2NХ2N, NХN, 2NХN). , NХ2N, nLХ2N, nRХ2N, 2NХnU, 2NХnD).
인트라 예측과 유사하게, NХN 형태의 PU 분할은 CU의 휘도 성분에 대한 CB의 크기가 최소 크기인 경우(즉, CU가 SCU인 경우)에만 수행될 수 있다. Similar to intra prediction, PU splitting in the form of NХN may be performed only when the size of the CB for the luminance component of the CU is the minimum size (that is, the CU is the SCU).
인터 예측에서는 가로 방향으로 분할되는 2NХN 형태 및 세로 방향으로 분할되는 NХ2N 형태의 PU 분할을 지원한다. In inter prediction, 2NХN type partitioning in the horizontal direction and NХ2N type PU partitioning in the vertical direction are supported.
또한, 비대칭 움직임 분할(AMP: Asymmetric Motion Partition) 형태인 nLХ2N, nRХ2N, 2NХnU, 2NХnD 형태의 PU 분할을 지원한다. 여기서, 'n'은 2N의 1/4 값을 의미한다. 다만, AMP는 PU가 속한 CU가 최소 크기의 CU인 경우 사용될 수 없다. In addition, it supports PU partitions of nLХ2N, nRХ2N, 2NХnU, and 2NХnD types, which are Asymmetric Motion Partition (AMP). Here, 'n' means a 1/4 value of 2N. However, AMP cannot be used when the CU to which the PU belongs is a CU of the minimum size.
하나의 CTU 내의 입력 영상을 효율적으로 부호화하기 위해 코딩 유닛(CU), 예측 유닛(PU), 변환 유닛(TU)의 최적의 분할 구조는 아래와 같은 수행 과정을 거쳐 최소 율-왜곡(Rate-Distortion) 값을 기반으로 결정될 수 있다. 예를 들어, 64Х64 CTU 내 최적의 CU 분할 과정을 살펴보면, 64Х64 크기의 CU에서 8Х8 크기의 CU까지의 분할 과정을 거치면서 율-왜곡 비용을 계산할 수 있다. 구체적인 과정은 다음과 같다.In order to efficiently encode an input image within one CTU, an optimal partitioning structure of a coding unit (CU), a prediction unit (PU), and a transformation unit (TU) is subjected to the following process to perform a minimum rate-distortion. It can be determined based on the value. For example, looking at the optimal CU partitioning process in the 64Х64 CTU, the rate-distortion cost can be calculated while the partitioning process from the 64Х64 size CU to the 8Х8 size CU. The specific process is as follows.
1) 64Х64 크기의 CU에 대해 인터/인트라 예측, 변환/양자화, 역양자화/역변환 및 엔트로피 인코딩 수행을 통해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.1) The partition structure of the optimal PU and TU that generates the minimum rate-distortion value is determined by performing inter / intra prediction, transform / quantization, inverse quantization / inverse transform, and entropy encoding on a 64Х64 CU.
2) 64Х64 CU를 32Х32 크기의 CU 4개로 분할하고 각 32Х32 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.2) Divide a 64Х64 CU into four 32Х32 CUs and determine the optimal PU and TU partitioning structure that generates the minimum rate-distortion value for each 32Х32 CU.
3) 32Х32 CU를 16Х16 크기의 CU 4개로 다시 분할하고, 각 16Х16 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.3) Subdivide the 32Х32 CU into four CUs of 16Х16 size and determine the optimal PU and TU partitioning structure that generates the minimum rate-distortion value for each 16Х16 CU.
4) 16Х16 CU를 8Х8 크기의 CU 4개로 다시 분할하고, 각 8Х8 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.4) The 16Х16 CU is subdivided into four 8Х8 CUs, and the optimal PU and TU partitioning structure is generated to generate the minimum rate-distortion value for each 8Х8 CU.
5) 위의 3)의 과정에서 산출한 16Х16 CU의 율-왜곡 값과 위의 4)의 과정에서 산출한 4개 8Х8 CU의 율-왜곡 값의 합을 비교하여 16Х16 블록 내에서 최적의 CU의 분할 구조를 결정한다. 이 과정을 나머지 3개의 16Х16 CU들에 대해서도 동일하게 수행한다.5) Compare the sum of the rate-distortion values of the 16Х16 CUs calculated in step 3) with the rate-distortion values of the four 8Х8 CUs calculated in step 4) above to find the optimal CU in the 16Х16 block. Determine the partition structure. Do the same for the remaining three 16Х16 CUs.
6) 위의 2)의 과정에서 계산된 32Х32 CU의 율-왜곡 값과 위의 5)의 과정에서 획득한 4개 16Х16 CU의 율-왜곡 값의 합을 비교하여 32Х32 블록 내에서 최적의 CU의 분할 구조를 결정한다. 이 과정을 나머지 3개의 32Х32 CU들에 대해서도 동일하게 수행한다.6) Compare the sum of the rate-distortion values of the 32Х32 CUs calculated in 2) above with the rate-distortion values of the four 16Х16 CUs obtained in the above 5). Determine the partition structure. Do this for the remaining three 32Х32 CUs.
7) 마지막으로, 위의 1)의 과정에서 계산된 64Х64 CU의 율-왜곡 값과 위의 6)의 과정에서 획득한 4개 32Х32 CU의 율-왜곡 값의 합을 비교하여 64Х64 블록 내에서 최적의 CU의 분할 구조를 결정한다.7) Finally, compare the sum of the rate-distortion values of the 64Х64 CUs computed in 1) above with the rate-distortion values of the four 32Х32 CUs obtained in 6) above. Determine the partition structure of the CU.
인트라 예측 모드에서, PU 단위로 예측 모드가 선택되고, 선택된 예측 모드에 대해 실제 TU 단위로 예측과 재구성이 수행된다.In the intra prediction mode, a prediction mode is selected in units of PUs, and prediction and reconstruction are performed in units of actual TUs for the selected prediction mode.
TU는 실제 예측과 재구성이 수행되는 기본 단위를 의미한다. TU는 휘도(luma) 성분에 대한 변환 블록(TB: Transform Block)과 이에 대응하는 두 개의 색차(chroma) 성분에 대한 TB를 포함한다. TU means a basic unit in which actual prediction and reconstruction are performed. The TU includes a transform block (TB) for a luma component and a TB for two chroma components corresponding thereto.
앞서 도 3의 예시에서 하나의 CTU가 쿼드-트리 구조로 분할되어 CU가 생성되는 것과 같이, TU는 코딩하려는 하나의 CU로부터 쿼드-트리 구조로 계층적으로 분할된다. In the example of FIG. 3, as one CTU is divided into quad-tree structures to generate CUs, the TUs are hierarchically divided into quad-tree structures from one CU to be coded.
TU는 쿼드-트리 구조로 분할되므로 CU로부터 분할된 TU는 다시 더 작은 하위 TU로 분할될 수 있다. HEVC에서는 TU의 크기는 32Х32, 16Х16, 8Х8, 4Х4 중 어느 하나로 정해질 수 있다.Since the TU is divided into quad-tree structures, the TU divided from the CU can be divided into smaller lower TUs. In HEVC, the size of a TU can be set to any of 32Х32, 16Х16, 8Х8, and 4Х4.
다시 도 3을 참조하면, 쿼드-트리의 루트 노드(root node)는 CU와 관련된다고 가정한다. 쿼드-트리는 리프 노드(leaf node)에 도달할 때까지 분할되고, 리프 노드는 TU에 해당한다. Referring again to FIG. 3, it is assumed that a root node of the quad-tree is associated with a CU. The quad-tree is split until it reaches a leaf node, which corresponds to a TU.
보다 구체적으로 살펴보면, CU는 루트 노드(root node)에 해당되고, 가장 작은 깊이(depth)(즉, depth=0) 값을 가진다. 입력 영상의 특성에 따라 CU가 분할되지 않을 수도 있으며, 이 경우 CU은 TU에 해당한다. In more detail, a CU corresponds to a root node and has a smallest depth (that is, depth = 0). The CU may not be divided according to the characteristics of the input image. In this case, the CU corresponds to a TU.
CU은 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 1(depth=1)인 하위 노드들이 생성된다. 그리고, 1의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 TU에 해당한다. 예를 들어, 도 3(b)에서 노드 a, b 및 j에 대응하는 TU(a), TU(b), TU(j)는 CU에서 한 번 분할되었으며, 1의 깊이를 가진다.The CU may be divided into quad tree shapes, resulting in lower nodes having a depth of 1 (depth = 1). In addition, a node (ie, a leaf node) that is no longer divided in a lower node having a depth of 1 corresponds to a TU. For example, in FIG. 3B, TU (a), TU (b), and TU (j) corresponding to nodes a, b, and j are divided once in a CU and have a depth of 1. FIG.
1의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 1(즉, depth=2)인 하위 노드들이 생성된다. 그리고, 2의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 TU에 해당한다. 예를 들어, 도 3(b)에서 노드 c, h 및 i에 대응하는 TU(c), TU(h), TU(i)는 CU에서 두 번 분할되었으며, 2의 깊이를 가진다. At least one of the nodes having a depth of 1 may be divided into quad tree shapes, and as a result, sub nodes having a depth of 1 (ie, depth = 2) are generated. In addition, a node (ie, a leaf node) that is no longer divided in a lower node having a depth of 2 corresponds to a TU. For example, in FIG. 3B, TU (c), TU (h), and TU (i) corresponding to nodes c, h, and i are divided twice in a CU and have a depth of two.
또한, 2의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 쿼드 트리 형태로 분할될 수 있으며, 그 결과 깊이 3(즉, depth=3)인 하위 노드들이 생성된다. 그리고, 3의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 CU에 해당한다. 예를 들어, 도 3(b)에서 노드 d, e, f, g에 대응하는 TU(d), TU(e), TU(f), TU(g)는 CU에서 3번 분할되었으며, 3의 깊이를 가진다.In addition, at least one of the nodes having a depth of 2 may be divided into quad tree shapes, resulting in lower nodes having a depth of 3 (ie, depth = 3). And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of 3 corresponds to a CU. For example, in FIG. 3 (b), TU (d), TU (e), TU (f), and TU (g) corresponding to nodes d, e, f, and g are divided three times in a CU. Has depth.
트리 구조를 갖는 TU은 미리 정해진 최대 깊이 정보(또는, 최대 레벨 정보)를 가지고 계층적으로 분할될 수 있다. 그리고, 각각의 분할된 TU은 깊이 정보를 가질 수 있다. 깊이 정보는 TU의 분할된 횟수 및/또는 정도를 나타내므로, TU의 크기에 관한 정보를 포함할 수도 있다.A TU having a tree structure may be hierarchically divided with predetermined maximum depth information (or maximum level information). Each divided TU may have depth information. Since the depth information indicates the number and / or degree of division of the TU, it may include information about the size of the TU.
하나의 TU에 대하여, 해당 TU이 분할 되는지 여부를 나타내는 정보(예를 들어, 분할 TU 플래그(split_transform_flag))가 디코더에 전달될 수 있다. 이 분할 정보는 최소 크기의 TU을 제외한 모든 TU에 포함되어 있다. 예를 들어, 분할 여부를 나타내는 플래그의 값이 '1'이면 해당 TU은 다시 4개의 TU으로 나누어지고, 분할 여부를 나타내는 플래그의 값이 '0'이면 해당 TU은 더 이상 나누어지지 않는다. For one TU, information indicating whether the corresponding TU is split (for example, split TU flag split_transform_flag) may be delivered to the decoder. This partitioning information is included in all TUs except the smallest TU. For example, if the value of the flag indicating whether to split is '1', the corresponding TU is divided into four TUs again. If the value of the flag indicating whether to split is '0', the corresponding TU is no longer divided.
예측(prediction)Prediction
디코딩이 수행되는 현재 처리 유닛을 복원하기 위해서 현재 처리 유닛이 포함된 현재 픽쳐 또는 다른 픽쳐들의 디코딩된 부분을 이용할 수 있다. The decoded portion of the current picture or other pictures in which the current processing unit is included may be used to reconstruct the current processing unit in which decoding is performed.
복원에 현재 픽쳐만을 이용하는, 즉 화면내 예측만을 수행하는 픽쳐(슬라이스)를 인트라 픽쳐 또는 I 픽쳐(슬라이스), 각 유닛을 예측하기 위하여 최대 하나의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 예측 픽쳐(predictive picture) 또는 P 픽쳐(슬라이스), 최대 두 개의 움직임 벡터 및 레퍼런스 인덱스를 이용하는 픽쳐(슬라이스)를 쌍예측 픽쳐(Bi-predictive picture) 또는 B 픽쳐(슬라이스)라고 지칭할 수 있다. Intra picture or I picture (slice), which uses only the current picture for reconstruction, i.e. performs only intra picture prediction, predicts a picture (slice) using at most one motion vector and reference index to predict each unit A picture using a predictive picture or P picture (slice), up to two motion vectors, and a reference index (slice) may be referred to as a bi-predictive picture or a B picture (slice).
인트라 예측은 동일한 디코딩된 픽쳐(또는 슬라이스)의 데이터 요소(예를 들어, 샘플 값 등)으로부터 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다. Intra prediction means a prediction method that derives the current processing block from data elements (eg, sample values, etc.) of the same decoded picture (or slice). That is, a method of predicting pixel values of the current processing block by referring to reconstructed regions in the current picture.
인터 예측은 현재 픽쳐 이외의 픽쳐의 데이터 요소(예를 들어, 샘플 값 또는 움직임 벡터 등)의 기반하여 현재 처리 블록을 도출하는 예측 방법을 의미한다. 즉, 현재 픽쳐 이외의 복원된 다른 픽쳐 내의 복원된 영역들을 참조하여 현재 처리 블록의 픽셀값을 예측하는 방법을 의미한다.Inter prediction means a prediction method of deriving a current processing block based on data elements (eg, sample values or motion vectors, etc.) of pictures other than the current picture. That is, a method of predicting pixel values of the current processing block by referring to reconstructed regions in other reconstructed pictures other than the current picture.
인트라Intra 예측( prediction( IntraIntra prediction)(또는 화면 내 예측) prediction (or in-screen prediction)
인트라 예측에서는 예측 모드에 따라 예측에 사용되는 참조 샘플의 위치에 대한 예측 방향을 가질 수 있다. 예측 방향을 가지는 인트라 예측 모드를 인트라 방향성 예측 모드(Intra_Angular prediction mode)라고 지칭한다. 반면, 예측 방향을 가지지 않는 인트라 예측 모드로서, 인트라 플래너(INTRA_PLANAR) 예측 모드, 인트라 DC(INTRA_DC) 예측 모드가 있다. In intra prediction, the prediction direction may have a prediction direction with respect to the position of a reference sample used for prediction according to a prediction mode. An intra prediction mode having a prediction direction is referred to as an intra directional prediction mode. On the other hand, as an intra prediction mode having no prediction direction, there are an intra planner (INTRA_PLANAR) prediction mode and an intra DC (INTRA_DC) prediction mode.
아래의 표 1은 인트라 예측 모드와 관련 명칭에 대하여 예시한다.Table 1 below illustrates the intra prediction mode and related names.
Figure PCTKR2018002929-appb-T000001
Figure PCTKR2018002929-appb-T000001
인트라 예측에서는 도출되는 예측 모드에 기반하여 현재 처리 블록에 대한 예측을 수행한다. 예측 모드에 따라 예측에 사용되는 참조 샘플과 구체적인 예측 방법이 달라지므로, 현재 블록이 인트라 예측 모드로 인코딩된 경우, 디코더는 예측을 수행하기 위해 현재 블록의 예측 모드를 도출한다. Intra prediction performs prediction on the current processing block based on the derived prediction mode. Since the prediction mode is different from the reference sample used for the prediction according to the prediction mode, when the current block is encoded in the intra prediction mode, the decoder derives the prediction mode of the current block to perform the prediction.
디코더는 현재 처리 블록의 인트라 예측 모드를 도출(derivation)한다. 이후, 디코더는 현재 처리 블록의 주변 샘플들(neighboring samples)이 예측에 사용될 수 있는지 확인하고, 예측에 사용할 참조 샘플들을 구성한다.The decoder derives the intra prediction mode of the current processing block. The decoder then checks whether neighboring samples of the current processing block can be used for prediction and constructs reference samples to use for prediction.
인트라 예측에서 현재 처리 블록의 주변 샘플들은 nSХnS 크기의 현재 처리 블록의 좌측(left) 경계에 이웃한 샘플 및 좌하측(bottom-left)에 이웃하는 총 2ХnS 개의 샘플들, 현재 처리 블록의 상측(top) 경계에 이웃한 샘플 및 우상측(top-right)에 이웃하는 총 2ХnS 개의 샘플들 및 현재 처리 블록의 좌상측(top-left)에 이웃하는 1개의 샘플을 의미한다. In intra prediction, the neighboring samples of the current processing block are samples neighboring the left boundary of the current processing block of size nSХnS and a total of 2ХnS samples neighboring the bottom-left, top of the current processing block. ) Means a total of 2ХnS samples neighboring to the top border and a sample neighboring to the top border and one sample neighboring to the top-left side of the current processing block.
그러나, 현재 처리 블록의 주변 샘플들 중 일부는 아직 디코딩되지 않았거나, 이용 가능하지 않을 수 있다. 이 경우, 디코더는 이용 가능한 샘플들로 이용 가능하지 않은 샘플들을 대체(substitution)하여 예측에 사용할 참조 샘플들을 구성할 수 있다. However, some of the surrounding samples of the current processing block may not be decoded yet or may be available. In this case, the decoder can construct reference samples for use in prediction by substituting samples that are not available with the available samples.
디코더는 인트라 예측 모드에 기반하여 참조 샘플의 필터링을 수행할 수 있다.The decoder may perform filtering of the reference sample based on the intra prediction mode.
참조 샘플의 필터링 수행 여부는 현재 처리 블록의 크기에 기반하여 결정될 수 있다. 또한, 참조 샘플의 필터링 방법은 인코더로부터 전달되는 필터링 플래그에 의해 결정될 수 있다. Whether filtering of the reference sample is performed may be determined based on the size of the current processing block. In addition, the filtering method of the reference sample may be determined by the filtering flag transmitted from the encoder.
디코더는 인트라 예측 모드와 참조 샘플들에 기반하여 현재 처리 블록에 대한 예측 블록을 생성한다. 즉, 디코더는 인트라 예측 모드 도출 단계에서 도출된 인트라 예측 모드와 참조 샘플 구성 단계와 참조 샘플 필터링 단계를 통해 획득한 참조 샘플들에 기반하여 현재 처리 블록에 대한 예측 블록을 생성(즉, 현재 처리 블록 내 예측 샘플 생성)한다. The decoder generates a predictive block for the current processing block based on the intra prediction mode and the reference samples. That is, the decoder generates a prediction block for the current processing block based on the intra prediction mode derived from the intra prediction mode derivation step, the reference samples obtained through the reference sample construction step and the reference sample filtering step (ie, the current processing block). My prediction sample).
현재 처리 블록이 INTRA_DC 모드로 인코딩된 경우 처리 블록 간의 경계의 불연속성(discontinuity)을 최소화하기 위해, 예측 블록 생성 단계에서 예측 블록의 좌측(left) 경계 샘플(즉, 좌측 경계에 이웃한 예측 블록 내 샘플)과 상측(top) 경계 샘플(즉, 상측 경계에 이웃한 예측 블록 내 샘플)을 필터링할 수 있다. In order to minimize the discontinuity of the boundary between the processing blocks when the current processing block is encoded in INTRA_DC mode, the left boundary sample of the prediction block (ie, the sample in the prediction block adjacent to the left boundary) in the prediction block generation step. ) And a top boundary sample (ie, a sample in a prediction block neighboring the top boundary) may be filtered.
또한, 예측 블록 생성 단계에서 인트라 방향성 예측 모드들 중 수직 방향 모드(vertical mode) 및 수평 방향 모드(horizontal mode)에 대해서도 INTRA_DC 모드와 유사하게 좌측 경계 샘플 또는 상측 경계 샘플에 필터링을 적용할 수 있다. In addition, in the prediction block generation step, filtering may be applied to the left boundary sample or the upper boundary sample in the vertical direction mode and the horizontal mode among the intra directional prediction modes similarly to the INTRA_DC mode.
보다 구체적으로 살펴보면, 현재 처리 블록이 수직 방향 모드(vertical mode) 또는 수평 방향 모드(horizontal mode)로 인코딩된 경우, 예측 방향에 위치하는 참조 샘플에 기반하여 예측 샘플의 값을 도출할 수 있다. 이때, 예측 블록의 좌측 경계 샘플 또는 상측 경계 샘플 중 예측 방향에 위치하지 않는 경계 샘플이 예측에 사용되지 않는 참조 샘플과 이웃할 수 있다. 즉, 예측에 사용되는 참조 샘플과의 거리보다 예측에 사용되지 않는 참조 샘플과의 거리가 훨씬 가까울 수 있다.In more detail, when the current processing block is encoded in the vertical mode or the horizontal mode, the value of the prediction sample may be derived based on a reference sample located in the prediction direction. In this case, a boundary sample which is not located in the prediction direction among the left boundary sample or the upper boundary sample of the prediction block may be adjacent to the reference sample which is not used for prediction. That is, the distance from the reference sample not used for prediction may be much closer than the distance from the reference sample used for prediction.
따라서, 디코더는 인트라 예측 방향이 수직 방향인지 수평 방향인지에 따라 적응적으로 좌측 경계 샘플들 또는 상측 경계 샘플들에 필터링을 적용할 수 있다. 즉, 인트라 예측 방향이 수직 방향인 경우, 좌측 경계 샘플들에 필터링을 적용하고, 인트라 예측 방향이 수평 방향인 경우, 상측 경계 샘플들에 필터링을 적용할 수 있다.Thus, the decoder may adaptively apply filtering to left boundary samples or upper boundary samples depending on whether the intra prediction direction is vertical or horizontal. That is, when the intra prediction direction is the vertical direction, the filtering may be applied to the left boundary samples, and when the intra prediction direction is the horizontal direction, the filtering may be applied to the upper boundary samples.
상술한 바와 같이, 현재 블록의 예측 블록은 총 35가지 화면 내 예측 방법을 사용함으로써 생성될 수 있다. 35가지 예측 방법은 33가지 방향성 예측 방법과 두 가지의 무 방향성 예측 방법을 포함한다. 33가지 방향성 예측 모드의 경우, 참조 샘플들로부터 예측 샘플을 계산할 때, 각각의 방향성을 고려하여 참조 샘플 값이 해당 예측 샘플로 복사된다. 반면, 두 가지의 무 방향성 예측 방법인 DC 모드와 플래너(Planar) 모드의 경우, 각각 주변 이웃하는 참조 샘플의 평균 값과 가중 합으로 예측 샘플이 계산된다.As described above, the prediction block of the current block may be generated by using a total of 35 intra-picture prediction methods. The 35 prediction methods include 33 directional prediction methods and two non-directional prediction methods. For the 33 directional prediction modes, when calculating the prediction sample from the reference samples, the reference sample value is copied to the corresponding prediction sample in consideration of each direction. On the other hand, in the two non-directional prediction methods, DC mode and planar mode, the prediction sample is calculated by the weighted sum and the average value of neighboring reference samples, respectively.
이하에서는, 67가지 모드를 사용하는 인트라 예측에 대해 설명한다.In the following, intra prediction using 67 modes will be described.
도 5는 본 발명의 일 실시예에 따른, 인트라 예측 모드의 예측 방향을 나타낸다.5 illustrates a prediction direction of an intra prediction mode according to an embodiment of the present invention.
도 5를 참조하면, 인트라 예측 모드는 67개의 모드를 사용할 수 있다. 고해상도 영상의 인트라 부호화 및 예측의 정확성 향상을 위해, 35 가지 인트라 예측 모드가 67 가지 인트라 예측 모드로 확장될 수 있다.Referring to FIG. 5, the intra prediction mode may use 67 modes. In order to improve the accuracy of intra coding and prediction of a high resolution image, 35 intra prediction modes may be extended to 67 intra prediction modes.
아래의 표 2는, 67 가지 모드를 갖는 인트라 예측 모드의 관련 명칭의 일 예를 나타낸다.Table 2 below shows an example of a related name of the intra prediction mode having 67 modes.
Figure PCTKR2018002929-appb-T000002
Figure PCTKR2018002929-appb-T000002
67 가지 모드를 갖는 인트라 예측 모드는, 2개의 무 방향성 예측 모드와 65개의 방향성 예측 모드를 포함한다. 65개의 방향성 예측 모드(모드 2 내지 66)는 기존의 HEVC에서의 방향성 모드와 새로 추가된 방향성 모드를 포함한다.The intra prediction mode with 67 modes includes two non-directional prediction modes and 65 directional prediction modes. The 65 directional prediction modes (modes 2 to 66) include a directional mode in the existing HEVC and a newly added directional mode.
도 5에서, 실선으로 표시된 화살표들은 기존 HEVC의 33가지 방향성 모드를 나타내고, 점선으로 표시된 화살표들은 새로 추가된 32가지 방향성 모드를 나타낸다.In FIG. 5, the arrows indicated by solid lines represent 33 directional modes of the existing HEVC, and the arrows indicated by dashed lines represent newly added 32 directional modes.
인트라 플래너(INTRA_PLANAR) 모드는 기존의 인트라 플래너 모드와 동일하고, 인트라 DC(INTRA_DC) 모드는 기존의 인트라 DC 모드와 동일하다. 새로 추가된 32가지 방향성 모드는 모든 (예측) 블록 크기에서 적용될 수 있고, 또한 휘도 성분과 색차 성분의 인트라 부호화에서 모두 적용될 수 있다.The intra planner (INTRA_PLANAR) mode is the same as the existing intra planner mode, and the intra DC (INTRA_DC) mode is the same as the existing intra DC mode. The newly added 32 directional modes can be applied at all (prediction) block sizes, and can also be applied to both intra-coding of luminance and chrominance components.
도 6은 본 발명의 일 실시예에 따른, QTBT(QuadTree BinaryTree, 이하 'QTBT'라 함) 블록 분할 구조를 설명하기 위한 도면이다.FIG. 6 is a diagram for describing a QTBT (QuadTree BinaryTree) block division structure according to an embodiment of the present invention.
쿼드트리와 이진트리(QTBT: Quad-Tree Binary-Tree)Quad-Tree Binary-Tree (QTBT)
QTBT는 쿼드트리(quadtree) 구조와 이진트리(binarytree) 구조가 결합된 코딩 블록의 구조를 말한다. 구체적으로, QTBT 블록 분할 구조에서는 영상을 CTU 단위로 코딩하며, CTU는 쿼드트리(quadtree) 형태로 분할되고, 쿼드트리의 리프 노드(leaf node)는 추가적으로 이진트리(binarytree) 형태로 분할된다. QTBT refers to a structure of a coding block in which a quadtree structure and a binarytree structure are combined. In detail, in the QTBT block division structure, an image is coded in units of CTUs, the CTU is divided into quadtrees, and the leaf nodes of the quadtrees are additionally divided into binarytrees.
이하에서는, 도 6을 참조하여 QTBT 구조와 이를 지원하는 분할 플래그(split flag) 신택스에 대하여 설명한다.Hereinafter, the QTBT structure and the split flag syntax supporting the same will be described with reference to FIG. 6.
상기 도 6을 참조하면, 현재 블록은 QTBT 구조로 분할될 수 있다. 즉, CTU는 먼저 쿼드트리 형태로 계층적으로 분할될 수 있다. 그리고, 쿼드트리 형태로 더 이상 분할되지 않는 쿼드트리의 리프 노드(leaf node)는 이진 트리 형태로 계층적으로 분할될 수 있다.Referring to FIG. 6, the current block may be divided into a QTBT structure. That is, the CTU may first be hierarchically divided into quadtrees. The leaf nodes of the quadtrees, which are no longer divided into quadtrees, may be hierarchically divided into binary trees.
인코더는 QTBT 구조에서 쿼드트리의 분할 여부 결정을 위하여 분할 플래그를 시그널링할 수 있다. 이때, 쿼드트리 분할은 MinQTLumaISlice, MinQTChromaISlice 또는 MinQTNonISlice 값에 의해 조정(또는 제한)될 수 있다. 여기서, MinQTLumaISlice는 I-슬라이스에서 루마(luma)성분의 쿼드트리 리프 노드의 최소 크기를 나타낸다. MinQTLumaChromaISlice는 I-슬라이스에서 크로마(chroma) 성분의 쿼드트리 리프 노드의 최소 크기를 나타낸다. MinQTNonISlice는 비 I-슬라이스(non I-slice)에서 쿼드트리 리프 노드의 최소 크기를 나타낸다. 각 플래그들의 명칭은 변경될 수 있다.The encoder may signal a split flag to determine whether to split the quadtree in the QTBT structure. At this time, the quadtree splitting may be adjusted (or limited) by the MinQTLumaISlice, MinQTChromaISlice or MinQTNonISlice values. Here, MinQTLumaISlice represents the minimum size of the luma component quadtree leaf node in the I-slice. MinQTLumaChromaISlice represents the minimum size of a quadtree leaf node of chroma components in an I-slice. MinQTNonISlice represents the minimum size of the quadtree leaf node in non I-slice. The names of the respective flags can be changed.
QTBT의 쿼드트리 구조에서는 I-슬라이스에서 루마 성분과 크로마 성분이 서로 독립적인 분할 구조를 가질 수 있다. 예를 들어, QTBT 구조에서 I-슬라이스의 경우, 루마 성분과 크로마 성분의 분할 구조는 서로 다르게 결정될 수 있다. 이와 같은 분할 구조를 지원하기 위하여, MinQTLumaISlice와 MinQTChromaISlice는 서로 다른 값을 가질 수 있다.In the quadtree structure of QTBT, the luma component and the chroma component in the I-slice may have a partition structure that is independent of each other. For example, in the case of I-slice in the QTBT structure, the partition structure of the luma component and the chroma component may be determined differently. In order to support such a partitioning structure, MinQTLumaISlice and MinQTChromaISlice may have different values.
다른 예로, QTBT 의 비 I-슬라이스에서 쿼드트리 구조는 루마 성분과 크로마 성분의 분할 구조가 동일하게 결정될 수 있다. 예를 들어, 비 I-슬라이스의 경우, 루마 성분과 크로마 성분의 쿼드트리 분할 구조는 MinQTNonISlice 값에 의해 조정될 수 있다.As another example, in the non-I-slice of the QTBT, the quadtree structure may have the same split structure of the luma component and the chroma component. For example, for non I-slices, the quadtree splitting structure of the luma component and the chroma component may be adjusted by the MinQTNonISlice value.
QTBT 구조에서 쿼드트리의 리프 노드는 이진트리 형태로 분할될 수 있다. 이때, 이진 트리 분할은 MaxBTDepth, MaxBTDepthISliceL 및 MaxBTDepthISliceC에 의해 조정(또는 제한)될 수 있다. 여기서, MaxBTDepth는 비 I-슬라이스에서 쿼드트리의 리프 노드를 기준으로 이진트리 분할의 최대 깊이(depth)를 나타내고, MaxBTDepthISliceL는 I-슬라이스에서 루마 성분의 이진트리 분할의 최대 깊이를 나타내고, MaxBTDepthISliceC는 I-슬라이스에서 크로마 성분의 이진트리 분할의 최대 깊이를 나타낸다. 각 플래그들의 명칭은 변경될 수 있다.In the QTBT structure, the leaf nodes of the quadtree may be divided into binary trees. In this case, binary tree splitting may be adjusted (or limited) by MaxBTDepth, MaxBTDepthISliceL, and MaxBTDepthISliceC. Where MaxBTDepth represents the maximum depth of binary tree splitting based on leaf nodes of the quadtree in non-I-slices, MaxBTDepthISliceL represents the maximum depth of binary tree splitting of luma components in I-slices, and MaxBTDepthISliceC is I Represents the maximum depth of binary tree splitting of chroma components in slices. The names of the respective flags can be changed.
또한, QTBT의 I-슬라이스에서 루마 성분과 크로마 성분이 서로 다른 구조를 가질 수 있기 때문에, I-슬라이스에서 MaxBTDepthISliceL와 MaxBTDepthISliceC는 서로 다른 값을 가질 수 있다.In addition, since the luma component and the chroma component may have different structures in the I-slice of QTBT, MaxBTDepthISliceL and MaxBTDepthISliceC may have different values in the I-slice.
도 7은 본 발명의 일 실시예에 따른, 휘도(luma) 성분과 색차(chroma) 성분에 대한 QTBT의 블록 분할 구조를 비교하여 설명하기 위한 도면이다.FIG. 7 is a diagram illustrating a block division structure of a QTBT for a luma component and a chroma component according to an embodiment of the present invention.
상기 도 7을 참조하면, 현재 슬라이스가 I-슬라이스인 경우를 가정한다. 도 7(a)는 루마 성분에 대한 QTBT의 분할 구조를 나타내고, 도 7(b)는 크로마 성분에 대한 QTBT의 분할 구조를 나타낸다. 쿼드트리 구조로 분할된 쿼드트리의 리프 노드는 이진트리 형태로 분할될 수 있다. 전술한 바와 같이, I-슬라이스에서 루마 성분과 크로마 성분은 서로 다른 분할 구조를 가질 수 있다.Referring to FIG. 7, it is assumed that the current slice is an I-slice. Fig. 7 (a) shows the division structure of QTBT for the luma component, and Fig. 7 (b) shows the division structure of QTBT for the chroma component. Leaf nodes of the quadtree divided into quadtree structures may be divided into binary trees. As described above, the luma component and the chroma component in the I-slice may have different partition structures.
QTBT의 분할 구조의 경우, 쿼드트리 구조와 이진트리 구조를 함께 사용할 수 있으며, 이 경우 다음과 같은 규칙이 적용될 수 있다.In the case of the split structure of QTBT, a quadtree structure and a binary tree structure may be used together. In this case, the following rule may be applied.
첫째, MaxBTSize는 MaxQTSize보다 작거나 같다. 여기서, MaxBTSize는 이진트리 분할의 최대 크기를 나타내고, MaxQTSize 는 쿼드트리 분할의 최대 크기를 나타낸다. First, MaxBTSize is less than or equal to MaxQTSize. Here, MaxBTSize represents the maximum size of the binary tree split and MaxQTSize represents the maximum size of the quadtree split.
둘째, QT의 리프 노드(Leaf node)가 BT의 루트(root)가 된다.Second, the leaf node of QT becomes the root of BT.
셋째, 한 번 BT로 분할되면 다시 QT로 분할 될 수 없다Third, once split into BT, can not be split into QT again
넷째, BT는 수직 분할(Vertical Split) 및 수평 분할(Horizontal Split)을 정의한다.Fourth, BT defines a vertical split and a horizontal split.
다섯째, MaxQTDepth, MaxBTDepth를 미리 정의한다. 여기서, MaxQTDepth 는 쿼드트리 분할의 최대 깊이(depth)를 나타내고, MaxBTDepth는 이진트리 분할의 최대 깊이(depth)를 나타낸다. Fifth, MaxQTDepth and MaxBTDepth are predefined. Here, MaxQTDepth represents the maximum depth of quadtree splitting, and MaxBTDepth represents the maximum depth of binary tree splitting.
여섯째, MaxBTSize, MinQTSize 는 슬라이스 타입(slice type)에 따라 달라질 수 있다.Sixth, MaxBTSize and MinQTSize may vary depending on the slice type.
상술한 각 플래그들의 명칭은 변경될 수 있다.The names of the aforementioned flags may be changed.
QTBT 구조는 앞서 살펴본 바와 같이, 상기 도 7과 같이 표현될 수 있다.As described above, the QTBT structure may be represented as shown in FIG. 7.
YCbCr 포맷은 영상을 루마와 크로마 성분으로 나눈 것이기 때문에 서로 간의 유사성은 분명히 존재하지만, 크로마 성분은 루마 성분에 비해 더욱 단순한 특징이 있다. Since the YCbCr format divides the image into luma and chroma components, similarities between each other clearly exist, but the chroma component has simpler features than the luma component.
이하에서, 루마 성분(luma sample)의 블록을 휘도 블록(luma block)으로 지칭할 수 있고, 크로마 성분(chroma sample)의 블록을 색차 블록(chroma block)으로 지칭할 수 있다. Hereinafter, a block of a luma sample may be referred to as a luma block, and a block of a chroma sample may be referred to as a chroma block.
AMT(Adaptive Multiple Core Transfom)Adaptive Multiple Core Transfom (AMT)
인코더는 화면 내 예측(intra prediction) 또는 화면 간 예측(inter prediction)을 수행한 뒤 잔차 신호(residual signal)를 획득한다. 이후, 인코더는 잔차 신호(또는 잔차 블록)에 적용된 예측 모드에 따라 변환 기법을 적응적으로 선택(또는 결정(determine))할 수 있다. The encoder obtains a residual signal after performing intra prediction or inter prediction. The encoder may then adaptively select (or determine) the transform scheme according to the prediction mode applied to the residual signal (or residual block).
인코더가 예측 모드에 기초하여 잔차 신호에 적용할 변환 기법을 적응적으로 선택/결정하는 방식은 AMT(Adaptive Multiple Transform), EMT(Enhanced Multiple Transform), 적응 변환 커널(Adaptive transform kernel), 또는 적응 커널(Adaptive kernel) 등으로 지칭될 수 있다. 이하에서는, 편의를 위해 상기 방식을 AMT로 지칭한다. The method in which the encoder adaptively selects / determines a transform scheme to be applied to the residual signal based on the prediction mode may include an adaptive multiple transform (AMT), an enhanced multiple transform (EMT), an adaptive transform kernel, or an adaptive kernel. (Adaptive kernel) and the like. Hereinafter, for convenience, the scheme is referred to as AMT.
AMT는 화면 내 예측이 수행된 블록과 화면 간 예측이 수행된 블록 모두에 적용될 수 있다. 인코더는 AMT를 적용하기로 결정한 경우, AMT에 기초하여 결정된 변환 기법을 잔차 신호에 적용함으로써 변환 계수를 생성한다.AMT may be applied to both a block on which intra prediction is performed and a block on which inter prediction is performed. When the encoder decides to apply the AMT, the encoder generates a transform coefficient by applying the transform technique determined based on the AMT to the residual signal.
기존의 HEVC에서는 잔차 신호를 변환하기 위해 DCT2와 DST7 만이 변환 행렬(transform matrix)(또는 변환 기법)로서 사용된다. 이와 달리, AMT에서는 DST2와 DST7 외에, DCT5, DCT8 및 DST1이 추가로 사용된다. 따라서, AMT에서는 총 5개의 변환 행렬들이 사용된다. 본 명세서에서 각 변환 행렬의 명칭은 다양한 형태로 나타낼 수 있다. 일 예로, DCT2는 DCT-Type 2 또는 DCT-II로 표현될 수 있다. 또한, 편의를 위해 변환 행렬 또는 변환 기법은 변환으로 지칭될 수 있다.In conventional HEVC, only DCT2 and DST7 are used as a transform matrix (or transform technique) to transform the residual signal. In contrast, in AMT, in addition to DST2 and DST7, DCT5, DCT8 and DST1 are additionally used. Therefore, a total of five transformation matrices are used in AMT. In this specification, the name of each transformation matrix may be represented in various forms. For example, DCT2 may be expressed as DCT-Type 2 or DCT-II. Also, for convenience, a transformation matrix or transformation technique may be referred to as a transformation.
아래의 표 3은, AMT에서 사용되는 다섯 개의 변환 행렬들의 기본 수식의 일 예를 나타낸다. Table 3 below shows an example of a basic equation of five transformation matrices used in AMT.
Figure PCTKR2018002929-appb-T000003
Figure PCTKR2018002929-appb-T000003
화면 내 예측(intra prediction)을 통해 획득된 잔차 신호는 화면 내 예측 모드에 따라 서로 다른 통계적 특성을 나타낼 수 있다. AMT에서는 예측 모드에 따라 잔차 신호에 서로 다른 변환이 적용될 수 있다. The residual signal obtained through intra prediction may show different statistical characteristics according to the intra prediction mode. In AMT, different transforms may be applied to the residual signal according to the prediction mode.
아래의 표 4는, 현재 블록의 예측 모드가 화면 내 예측 모드(intra prediction mode)인 경우, 각 모드에 따라 현재 블록에 적용될 수 있는 변환 세트의 일 예를 나타낸다. Table 4 below shows an example of a transform set that can be applied to the current block according to each mode when the prediction mode of the current block is an intra prediction mode.
Figure PCTKR2018002929-appb-T000004
Figure PCTKR2018002929-appb-T000004
표 4는 35가지 모드를 갖는 인트라 예측 모드와 67가지의 모드를 갖는 인트라 예측 모드를 모두 나타낸다. 표 4를 참조하면, 35개 모드를 갖는 인트라 예측 모드와 67개의 모드를 갖는 인트라 예측 모드는 각각 하나 이상의 모드를 포함하는 복수의 모드 그룹으로 구성된다. 일 예로, 표 4는 인트라 예측 모드가 5개의 모드 그룹으로 구성된 것을 나타낸다. 모드 그룹의 수와 각 모드 그룹에 포함된 모드의 구성은 변경될 수 있다.Table 4 shows both an intra prediction mode having 35 modes and an intra prediction mode having 67 modes. Referring to Table 4, the intra prediction mode having 35 modes and the intra prediction mode having 67 modes are composed of a plurality of mode groups each including one or more modes. For example, Table 4 shows that the intra prediction mode is composed of five mode groups. The number of mode groups and the configuration of modes included in each mode group may be changed.
각 모드 그룹 별로 서로 다른 변환 세트(transform set)가 적용될 수 있다. 변환 세트의 수는 모드 그룹의 수와 동일하다. 표 4는 5개의 변환 세트를 개시한다.Different transform sets may be applied to each mode group. The number of transform sets is equal to the number of mode groups. Table 4 discloses five transform sets.
각 변환 세트는 잔차 블록(또는 잔차 신호)의 수평 방향으로 적용되는 변환과 수직 방향으로 적용되는 변환의 4가지 조합을 포함한다. 이하에서, 블록의 수평 방향으로 적용되는 변환은 수평 변환(horizontal transform) 또는 행 방향 변환(row direction transform) 으로 지칭될 수 있고, 블록의 수직 방향으로 적용되는 변환은 수직 변환(vertical transform) 또는 열 방향 변환(column direction transform)으로 지칭될 수 있다. Each transform set includes four combinations of transforms applied in the horizontal direction of the residual block (or residual signal) and transforms applied in the vertical direction. Hereinafter, a transform applied in the horizontal direction of the block may be referred to as a horizontal transform or a row direction transform, and a transform applied in the vertical direction of the block may be referred to as a vertical transform or column. It may be referred to as a column direction transform.
하나의 수평 변환과 및 하나의 수직 변환의 조합은 서브 변환 세트(sub transform set)로 지칭될 수 있다. 각 변환 세트는 4개의 서브 변환 세트를 포함한다. 4개의 서브 변환 세트는 현재 블록에 적용 가능한 변환 후보(transform candidate)에 해당한다. 즉, AMT에서, 예측 모드에 의존적으로(mode-dependent) 잔차 신호에 적용될 수 있는 변환 후보(transform candidate)가 결정된다.The combination of one horizontal transform and one vertical transform may be referred to as a sub transform set. Each transform set includes four sub transform sets. The four sub transform sets correspond to transform candidates applicable to the current block. That is, in AMT, a transform candidate that can be applied to the residual signal mode-dependent is determined.
변환 세트는 세트로도 지칭될 수 있고, 변환 서브 세트는 서브 세트로도 지칭될 수 있다. 각 변환 세트에 포함된 변환 서브 세트의 개수, 변환 세트의 번호 또는 변환 기법의 조합은 변경될 수 있다. 변환 세트와 서브 변환 세트는 다른 명칭으로 지칭될 수 있다.The transform set may also be referred to as a set, and the transform subset may also be referred to as a subset. The number of transform subsets included in each transform set, the number of transform sets, or a combination of transform techniques may be changed. The transform set and the sub transform set may be referred to by different names.
본 명세서에서, 하나의 서브 변환 세트(즉, 수평 변환과 수직 변환의 조합)는 (Hor, Ver) 형태로 표현될 수 있다. 예를 들어, (DCT8, DST7) 은 하나의 블록에 적용되는 수평 변환이 DCT8이고, 수직 변환이 DST7인 것을 나타낸다.In the present specification, one set of sub-transforms (ie, a combination of a horizontal transform and a vertical transform) may be expressed in the form (Hor, Ver). For example, (DCT8, DST7) indicates that the horizontal transform applied to one block is DCT8 and the vertical transform is DST7.
예를 들어, 인코더가 67개의 모드를 갖는 인트라 예측 모드를 사용하고, 현재 블록의 모드가 3인 경우를 설명한다. 이 경우, 표 4에 따라 set 1이 선택된다. Set 1에서는 DST7과 DST1 의 4가지 조합이 가능하다. 4가지 조합은 (DST7, DST1), (DST1, DST7), (DST1, DST1) 및 (DST7, DST7)이다. 상기 4가지 조합 중 하나가 인코더에 의해 선택되고, 선택된 조합이 현재 블록에 적용될 수 있다.For example, the case where the encoder uses the intra prediction mode having 67 modes and the mode of the current block is 3 will be described. In this case, set 1 is selected according to Table 4. In Set 1, four combinations of DST7 and DST1 are possible. The four combinations are (DST7, DST1), (DST1, DST7), (DST1, DST1) and (DST7, DST7). One of the four combinations is selected by the encoder, and the selected combination can be applied to the current block.
아래의 표 5는, 현재 블록의 예측 모드가 화면 간 예측 모드(inter prediction)인 경우, 현재 블록에 적용될 수 있는 변환 세트의 일 예를 나타낸다.Table 5 below shows an example of a transform set that can be applied to the current block when the prediction mode of the current block is inter prediction.
Figure PCTKR2018002929-appb-T000005
Figure PCTKR2018002929-appb-T000005
표 5를 참조하면, 화면 간 예측의 경우, 4가지 조합의 변환 세트가 사용된다. 변환 세트의 구성은 변경될 수 있다.Referring to Table 5, for inter prediction, four combinations of transform sets are used. The configuration of the transform set can be changed.
먼저, 인코더는 현재 블록의 AMT 적용 여부를 결정한다. 인코더는 AMT를 적용한 경우와 적용하지 않은 경우의 결과를 율-왜곡 최적화(rate-distortion optimization, RDO)에 기초하여 비교하고, 비교 결과에 따라 현재 블록의 AMT 적용 여부를 결정할 수 있다.First, the encoder determines whether to apply the AMT of the current block. The encoder may compare the results of applying and not applying AMT based on rate-distortion optimization (RDO), and determine whether to apply AMT to the current block according to the comparison result.
AMT 적용이 선택된 경우, 인코더는 예측 모드에 따라 현재 블록에 적용될 수 있는 4가지 조합(즉, 4개의 서브 변환 세트) 모두 이용하여 변환을 수행하고, 율-왜곡 최적화(RDO)에 기초하여 최적의 하나의 서브 변환 세트를 결정한다. 이때, 현재 블록의 예측 모드가 화면 내 예측 모드이면 표 4가 이용되고, 화면 간 예측 모드이면 표 5가 이용된다.When AMT application is selected, the encoder performs the transformation using all four combinations (i.e., four sub-transform sets) that can be applied to the current block according to the prediction mode, and optimizes based on rate-distortion optimization (RDO). Determine one sub-transform set. In this case, Table 4 is used if the prediction mode of the current block is an intra prediction mode, and Table 5 is used if the prediction mode of the current block is inter screen prediction mode.
AMT 미적용이 선택된 경우, 화면 내 예측 및 화면 간 예측 모두에서, (DCT2, DCT2) 가 잔차 신호에 적용된다. 잔차 신호의 특성상 행 방향과 열 방향 모두에 대해 DCT2가 최적인 경우가 빈번하게 발생되기 때문이다. 인코더는 AMT 적용 여부를 나타내는 정보 및 (DCT2, DCT2) 변환 세트를 지시하는 정보를 디코더로 전송할 수 있다. 또한 AMT가 적용되지 않는 경우, 코딩 유닛이 변환 스킵 모드(transform skip mode)로 코딩될 수도 있다. 신택스 코딩의 중복을 피하기 위해, AMT flag가 0이 아닌 경우 변환 스킵 모드를 나타내는 정보(예를 들어, 변환 스킵 플래그(transform skip flag))는 디코더로 전송되지 않을 수 있다.If no AMT is selected, (DCT2, DCT2) is applied to the residual signal in both intra picture and inter picture prediction. The reason is that the DCT2 is optimal for both the row direction and the column direction due to the characteristics of the residual signal. The encoder may transmit information indicating whether AMT is applied and information indicating a (DCT2, DCT2) transform set to the decoder. In addition, when AMT is not applied, a coding unit may be coded in a transform skip mode. In order to avoid duplication of syntax coding, when the AMT flag is not 0, information indicating a transform skip mode (eg, a transform skip flag) may not be transmitted to the decoder.
하나의 코딩 유닛(또는 변환 유닛)에 대하여, AMT 적용 여부를 나타내는 정보가 디코더로 전송될 수 있다. AMT 적용 여부는 CU 레벨 플래그(CU level flag)에 의해 제어될 수 있다. 일 예로, AMT 적용 여부를 나타내는 정보는 AMT flag로 지칭될 수 있다. AMT flag는 1 비트 플래그(1 bit flag) 일 수 있다. 일 예로, AMT 적용 여부를 나타내는 플래그 값이 0이면 AMT가 미적용됨을 나타내고, 상기 플래그 값이 1이면 AMT가 적용됨을 나타낼 수 있다. For one coding unit (or transform unit), information indicating whether AMT is applied may be transmitted to the decoder. Whether to apply AMT may be controlled by a CU level flag. For example, information indicating whether AMT is applied may be referred to as an AMT flag. The AMT flag may be a 1 bit flag. For example, if a flag value indicating whether AMT is applied is 0, this indicates that AMT is not applied, and if the flag value is 1, AMT may be applied.
AMT가 적용된 경우, 최적의 변환 세트를 지시하는 정보가 추가로 디코더로 전송될 수 있다. 최적 변환 세트를 지시하는 정보는 선택된 하나의 서브 변환 세트를 나타내는 하나의 플래그일 수 있고, 수직 방향 변환과 수평 방향 변환을 각각 나타내는 두 개의 플래그일 수도 있다. When AMT is applied, information indicating an optimal transform set may be additionally transmitted to the decoder. The information indicating the optimal transform set may be one flag indicating one selected sub-transform set, or may be two flags respectively indicating a vertical transform and a horizontal transform.
AMT 방식에 사용되는 상기 표들(또는 예측 모드에 따라 적용 가능한 변환 조합에 관한 정보들)은 인코더와 디코더에 미리 정의될 수 있다. 인코더가 변환 세트의 정보를 시그널링하는 경우, 디코더는 시그널링된 정보가 지시하는 변환 방법과 동일한 종류의 역변환을 수행한다. 상기 표들은 인코더에만 정의될 수도 있으며, 이 경우 디코더는 수신된 정보가 지시하는 변환 기법에 기초하여 역변환을 수행할 수 있다. The tables (or information about transform combinations applicable according to the prediction mode) used in the AMT scheme may be predefined in the encoder and the decoder. When the encoder signals the information of the transform set, the decoder performs the same kind of inverse transform as the transform method indicated by the signaled information. The tables may be defined only in the encoder, in which case the decoder may perform inverse transformation based on the transformation technique indicated by the received information.
일 예로, AMT는 너비와 높이가 모두 64 이하인 코딩 유닛에 적용될 수 있다. 또한, 상술한 AMT는 휘도 영상(블록, 슬라이스 또는 픽쳐)에 적용될 수 있다.For example, AMT may be applied to a coding unit having both a width and a height of 64 or less. In addition, the AMT described above may be applied to a luminance image (block, slice or picture).
이하에서는, 본 명세서에서 제안하는, AMT를 색차 영상의 부호화/복호화 과정에 적용하는 방법에 대해 설명한다. 휘도 영상 외에 색차 영상에도 AMT를 적용함으로써 데이터 압축 효율 향상시킬 수 있다.Hereinafter, a method of applying the AMT to the encoding / decoding process of the chrominance image proposed in the present specification will be described. Data compression efficiency can be improved by applying AMT to color difference images in addition to luminance images.
이하의 실시예들을 설명하는 과정에서, 경우에 따라 인코더와 디코더에서 수행되는 방법이 각각 설명되거나, 또한, 디코더에서 수행되는 방법만을 중심으로 설명될 수도 있다. 그러나, 디코더에서 수행되는 방법만이 개시된 경우에도, 디코더에서 수행되는 방식과 동일 또는 유사한 방식이 인코더에서도 수행될 수 있음은 자명하다.In the following description of the embodiments, a method performed by an encoder and a decoder may be described in some cases, or may be described based only on the method performed by the decoder. However, even if only the method performed at the decoder is disclosed, it is obvious that the same or similar manner as the method performed at the decoder may be performed at the encoder.
실시예 1Example 1
실시예 1에 따르면, 디코더는 휘도 블록의 AMT 정보를 색차 블록의 AMT 정보로써 이용할 수 있다. 즉, 디코더는 색차 블록의 AMT 적용 여부 및 역변환에 이용할 AMT 변환 세트를 휘도 블록(luma block)의 정보를 기초로 결정할 수 있다. 본 실시예에 따르면, 인코더는 색차 블록의 AMT 정보를 별도로 디코더로 전송하지 않는다.According to the first embodiment, the decoder may use the AMT information of the luminance block as the AMT information of the chrominance block. That is, the decoder may determine whether AMT is applied to the color difference block and an AMT transform set to be used for inverse transform based on the information of the luma block. According to the present embodiment, the encoder does not separately transmit AMT information of the chrominance block to the decoder.
색차 블록의 부호화는 휘도 블록의 부호화가 모두 끝난 후에 수행된다. 또한, 색차 블록의 복호화는 휘도 블록의 복호화가 모두 끝난 후에 수행된다. 따라서, 인코더/디코더는 색차 블록을 부호화/복호화할 때 동일 위치의 휘도 블록에 AMT가 적용 되었는지 여부를 알 수 있다. 여기서, 동일 위치는 해당 색차 블록의 위치와 대응되는 위치를 나타낸다. 본 실시예에서는 휘도 블록에 적용된 변환과 동일한 변환을 색차 블록에 이용할 수 있다. The encoding of the chrominance block is performed after all the encoding of the luminance block is finished. In addition, the decoding of the chrominance block is performed after the decoding of the luminance block is completed. Accordingly, the encoder / decoder may know whether AMT is applied to the luminance block at the same position when encoding / decoding the chrominance block. Here, the same position indicates a position corresponding to the position of the corresponding color difference block. In the present embodiment, the same transform as that applied to the luminance block can be used for the color difference block.
먼저, 디코더는 역변환을 수행하기 전, 현재 색차 블록(current chroma block)에 AMT 적용이 가능한지 여부를 결정(determine)한다. 현재 색차 블록에 AMT 적용이 가능한 경우, 디코더는 휘도 블록의 AMT 변환 정보를 색차 블록에 적용될 변환 정보로써 획득한다. 인코더도 동일한 과정을 통해 AMT를 이용하여 변환을 수행할 수 있다.First, the decoder determines whether AMT can be applied to a current chroma block before performing inverse transform. If AMT is applicable to the current color difference block, the decoder obtains AMT conversion information of the luminance block as the conversion information to be applied to the color difference block. The encoder may perform the conversion using AMT through the same process.
이하에서는, 인코더/디코더가 현재 색차 블록에 AMT 적용이 가능한지 여부를 결정하는 방법을 설명한다. 먼저, 현재 색차 블록의 예측 모드가 화면 내 예측 모드(intra prediction mode)인 경우를 설명하고, 이후 예측 모드가 화면 간 예측 모드(inter prediction mode)인 경우를 설명한다.Hereinafter, a method of determining whether the encoder / decoder can apply AMT to the current color difference block will be described. First, a case in which the prediction mode of the current color difference block is an intra prediction mode will be described, and then a case in which the prediction mode is an inter prediction mode will be described.
현재 Now 색차Color difference 블록에 AMT가 적용  AMT is applied to the block 가능한지 여부를Whether it is possible 결정 decision
현재 색차 블록의 예측 모드가 화면 내 예측 모드인 경우, 인코더/디코더는 이하의 세가지 방식 중 하나를 이용함으로써 현재 색차 블록에 AMT가 적용될 수 있는지 여부를 결정할 수 있다.When the prediction mode of the current chrominance block is an intra prediction mode, the encoder / decoder may determine whether AMT can be applied to the current chrominance block by using one of the following three methods.
1) 첫번째 방식은, 예측 모드와 블록의 크기에 무관하게, 현재 색차 블록에 AMT가 적용 가능한지 여부를 휘도 블록을 통해 결정하는 방식이다.1) The first method is a method of determining, via a luminance block, whether AMT is applicable to a current color difference block, regardless of a prediction mode and a block size.
인코더/디코더는 모든 색차 블록에 대해 AMT가 적용될 수 있는지 여부를 휘도 블록의 AMT 정보를 통해 결정할 수 있다. 일 예로, 인코더/디코더는 현재 색차 블록과 대응되는 위치의 휘도 블록에 AMT가 적용된 경우, 현재 색차 블록에도 AMT가 적용 가능한 것으로 결정할 수 있다. The encoder / decoder may determine whether AMT can be applied to all color difference blocks through the AMT information of the luminance block. As an example, when the AMT is applied to the luminance block at a position corresponding to the current color difference block, the encoder / decoder may determine that the AMT is also applicable to the current color difference block.
2) 두번째 방식은, 현재 색차 블록의 인트라 예측 모드가 특정한 모드인 경우, AMT가 적용될 수 있는지 여부를 결정하는 방식이다. 2) The second method is a method of determining whether AMT can be applied when the intra prediction mode of the current color difference block is a specific mode.
일 예로, 인코더/디코더는 현재 색차 블록의 인트라 예측 모드가 DM(Direct Mode) 모드 또는 LM(Linear Mode) 모드인 경우 AMT가 적용 가능하다고 결정할 수 있다. DM 모드는 현재 색차 블록과 동일한 위치에 있는 휘도 블록의 화면 내 예측 방향을 그대로 사용하는 예측 모드이다. DM 모드의 경우, 동일 위치의 휘도 블록의 화면 내 예측 모드가 그대로 색차 블록의 화면 내 예측 모드로써 사용된다. 따라서 DM 모드에서 휘도 블록과 색차 블록은 높은 상관도(correlation)를 갖는다. LM 모드는 휘도 블록과 색차 블록의 상관도가 높다는 가정하에 예측을 수행하는 방법이다. LM 모드에 대한 구체적인 내용은 후술한다. For example, the encoder / decoder may determine that AMT is applicable when the intra prediction mode of the current color difference block is a direct mode (DM) mode or a linear mode (LM) mode. The DM mode is a prediction mode that uses the intra prediction direction of the luminance block at the same position as the current color difference block. In the DM mode, the intra prediction mode of the luminance block at the same position is used as the intra prediction mode of the color difference block. Therefore, in the DM mode, the luminance block and the chrominance block have a high correlation. The LM mode is a method of performing prediction under the assumption that the correlation between the luminance block and the chrominance block is high. Details of the LM mode will be described later.
다른 예로, 현재 색차 블록의 인트라 예측 모드가 DC 모드인 경우, 인코더/디코더는 현재 색차 블록에 AMT를 적용하지 않는 것으로 결정할 수 있다.As another example, when the intra prediction mode of the current color difference block is the DC mode, the encoder / decoder may determine not to apply AMT to the current color difference block.
3) 세번째 방식은, 현재 색차 블록의 크기에 따라 AMT가 적용 가능한지 여부를 결정하는 방식이다. 3) The third method is a method of determining whether AMT is applicable according to the size of a current color difference block.
일 예로, 인코더/디코더는 현재 색차 블록의 크기가 4Х4 이상이고 64Х64 이하인 경우에만 AMT 적용 가능하다고 결정할 수 있다.As an example, the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4Х4 and less than or equal to 64Х64.
현재 색차 블록의 예측 모드가 화면 간 예측 모드인 경우, 인코더/디코더는 이하의 두가지 방식들 중 하나를 이용함으로써 현재 색차 블록에 AMT가 적용 가능한지 여부를 결정할 수 있다.When the prediction mode of the current chrominance block is the inter prediction mode, the encoder / decoder may determine whether AMT is applicable to the current chrominance block by using one of the following two methods.
1) 첫번째 방식은, 현재 색차 블록의 크기에 따라 AMT가 적용 가능한지 여부를 결정하는 방식이다. 1) The first method is a method of determining whether AMT is applicable according to the size of a current color difference block.
일 예로, 인코더/디코더는 현재 색차 블록의 크기가 4Х4 이상이고 64Х64 이하인 경우에만 AMT 적용 가능하다고 결정할 수 있다.As an example, the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4Х4 and less than or equal to 64Х64.
2) 두번째 방식은, 현재 색차 블록의 예측 블록 및 휘도 블록의 예측 블록(또는 복원 블록(reconstructed block)) 간의 상관도(correlation)에 기초하여 AMT 적용 가능 여부를 결정하는 방식이다. 2) The second method is a method of determining whether to apply AMT based on a correlation between a prediction block of the current color difference block and a prediction block (or reconstructed block) of the luminance block.
영상의 부호화/복호화 순서에 따라, 인코더/디코더는 현재 색차 블록을 변환/역변환하기 전, 현재 색차 블록의 예측 영상과 휘도 블록의 예측 영상 및 휘도 블록의 복원 영상을 이미 획득한다. 따라서, 인코더/디코더는 상관도가 미리 설정된 조건을 만족하는 경우, 현재 색차 블록에 AMT가 적용될 수 있다고 결정할 수 있다. 일 예로, 인코더/디코더는 현재 색차 블록의 예측 블록 및 휘도 블록의 예측 블록(또는 복원 블록)의 상관도가 0.5 이상이면, 현재 색차 블록에 AMT가 적용 가능한 것으로 결정할 수 있다.According to the encoding / decoding order of the image, the encoder / decoder already acquires the predicted image of the current chrominance block, the predicted image of the luminance block, and the reconstructed image of the luminance block before converting / inversely transforming the current chrominance block. Accordingly, the encoder / decoder may determine that AMT may be applied to the current color difference block when the correlation satisfies a preset condition. As an example, if the correlation between the prediction block of the current color difference block and the prediction block (or reconstruction block) of the luminance block is 0.5 or more, the encoder / decoder may determine that AMT is applicable to the current color difference block.
디코더는 상술한 방식들을 이용함으로써 현재 색차 블록에 AMT가 적용 가능한지 여부를 결정할 수 있다. 현재 색차 블록에 AMT가 적용 가능한 경우, 디코더는 현재 색차 블록과 관련된 하나의 휘도 블록의 AMT 정보를 현재 색차 블록의 정보로써 이용한다. The decoder can determine whether AMT is applicable to the current chrominance block by using the schemes described above. When AMT is applicable to the current chrominance block, the decoder uses AMT information of one luminance block related to the current chrominance block as information on the current chrominance block.
도 7에 관한 설명에서 상술한 바와 같이, 색차 성분(luma sample)과 휘도 성분(chroma sample)의 블록 분할 구조가 동일하거나 상이할 수 있다. 디코더는 색차 성분(luma sample)과 휘도 성분(chroma sample)의 블록 분할 구조가 동일한지 여부에 기초하여, 서로 다른 방식으로 휘도 블록의 AMT 정보를 획득할 수 있다. As described above with reference to FIG. 7, the block division structures of the color difference component and the luminance sample may be the same or different. The decoder may obtain AMT information of the luminance block in different ways based on whether the block division structure of the color difference component and the luminance sample are the same.
색차 성분과 휘도 성분의 블록 분할 구조가 동일하면, 현재 색차 블록과 현재 색차 블록의 위치와 대응되는 위치에 존재하는 휘도 블록의 모양이 동일하다. 이 경우, 디코더는 현재 색차 블록과 동일한 위치에 있는 휘도 블록의 AMT 정보를 현재 색차 블록의 AMT 정보로써 이용한다. 휘도 블록의 AMT 정보는 인코더로부터 디코더로 시그널링된다. 동일한 위치의 휘도 블록이란 현재 색차 블록의 위치와 대응되는 위치에 존재하는 휘도 블록을 나타낸다. If the block division structures of the chrominance component and the luminance component are the same, the shapes of the luminance blocks existing at positions corresponding to the positions of the current chrominance block and the current chrominance block are the same. In this case, the decoder uses the AMT information of the luminance block at the same position as the current color difference block as the AMT information of the current color difference block. AMT information of the luminance block is signaled from the encoder to the decoder. The luminance block at the same position indicates a luminance block existing at a position corresponding to the position of the current color difference block.
색차 성분과 휘도 성분의 블록 분할 구조가 상이하면, 현재 색차 블록과 현재 색차 블록의 위치와 대응되는 위치에 존재하는 휘도 블록의 모양이 상이할 수 있다. 이 경우, 디코더는 먼저 복수의 휘도 블록들 중 하나의 휘도 블록을 선택한다. 이후, 디코더는 선택된 하나의 휘도 블록의 AMT 정보를 현재 색차 블록의 AMT 정보로써 이용한다. 디코더는 아래의 세 가지 방식들 중 하나를 이용함으로써 하나의 휘도 블록을 결정/선택할 수 있다.When the block division structures of the chrominance component and the luminance component are different, the shapes of the luminance blocks existing at positions corresponding to the positions of the current chrominance block and the current chrominance block may be different. In this case, the decoder first selects one luminance block of the plurality of luminance blocks. Thereafter, the decoder uses the AMT information of the selected one luminance block as the AMT information of the current color difference block. The decoder may determine / select one luminance block by using one of the following three ways.
1) 첫번째 방식은, 현재 색차 블록의 특정 위치와 대응되는 위치에 존재하는 휘도 블록을 선택하는 방식이다. 일 예로, 디코더는 색차 블록의 좌상단과 대응되는 위치 또는 색차 블록의 중심과 대응되는 위치에 있는 휘도 블록으로부터 AMT 정보를 획득할 수 있다.1) The first method is to select a luminance block existing at a position corresponding to a specific position of a current color difference block. For example, the decoder may obtain AMT information from a luminance block at a position corresponding to the upper left end of the chrominance block or at a position corresponding to the center of the chrominance block.
2) 두번째 방식은, 현재 색차 블록과 겹치는 영역의 넓이가 가장 큰 휘도 블록을 선택하는 방식이다. 2) The second method is to select the luminance block having the largest area of the overlapping area with the current color difference block.
3) 세번째 방식은, 현재 색차 블록과 영역이 겹치는 휘도 블록들 중 크기가 가장 큰 휘도 블록을 선택하는 방식이다. 3) The third method is to select a luminance block having the largest size among the luminance blocks where the current color difference block and the region overlap.
디코더는 현재 색차 블록과 대응하는 위치에 존재하는 휘도 블록 또는 상기 방식들 중 하나에 따라 선택된 휘도 블록으로부터 AMT 정보를 획득하고, 획득된 AMT 정보를 현재 색차 블록의 AMT 정보로써 이용한다. 디코더는 휘도 블록의 AMT 정보에 기초하여 현재 색차 블록의 AMT 적용 여부 및 AMT 변환 세트를 결정할 수 있다. 이하에서 구체적으로 설명한다.The decoder obtains AMT information from a luminance block existing at a position corresponding to the current chrominance block or a luminance block selected according to one of the above schemes, and uses the obtained AMT information as AMT information of the current chrominance block. The decoder may determine whether to apply the AMT of the current color difference block and the AMT transform set based on the AMT information of the luminance block. It demonstrates concretely below.
디코더는 휘도 블록에 AMT가 적용되지 않은 경우, 현재 색차 블록에도 AMT를 적용하지 않는다. 예를 들어, 디코더는 선택된 휘도 블록의 AMT flag가 0인 경우 현재 색차 블록에도 AMT를 적용하지 않는 것으로 결정할 수 있다. 이 경우 디코더는 (DCT2, DCT2) 의 역변환을 적용할 수 있다. If the AMT is not applied to the luminance block, the decoder does not apply the AMT to the current color difference block. For example, if the AMT flag of the selected luminance block is 0, the decoder may determine not to apply AMT to the current color difference block. In this case, the decoder may apply an inverse transform of (DCT2, DCT2).
디코더는 휘도 블록에 AMT가 적용된 경우, 현재 색차 블록에도 AMT를 적용한다. 예를 들어, 디코더는 선택된 휘도 블록의 AMT flag가 1인 경우 현재 색차 블록에 AMT를 적용하는 것으로 결정할 수 있다. 이때, 디코더는 미리 정의된 휘도 블록의 AMT 세트(표 4 및 표 5)를 이용한다. 디코더는 휘도 블록에 적용된 서브 변환 세트와 동일한 서브 변환 세트를 현재 색차 블록에 이용한다. 즉, 디코더는 휘도 블록에 적용된 서브 변환 세트에 기초하여 현재 색차 블록을 역변환한다. If AMT is applied to the luminance block, the decoder also applies AMT to the current color difference block. For example, if the AMT flag of the selected luminance block is 1, the decoder may determine to apply AMT to the current color difference block. At this time, the decoder uses the AMT set (Table 4 and Table 5) of the predefined luminance block. The decoder uses the same sub transform set as the sub transform set applied to the luminance block in the current color difference block. That is, the decoder inversely transforms the current chrominance block based on the sub-conversion set applied to the luminance block.
실시예 1에서, 휘도 블록에 AMT가 적용 되었는지 여부를 나타내는 정보와 휘도 블록에 적용된 서브 변환 세트를 나타내는 정보는 인코더로부터 디코더로 전송된다. 다만, 휘도 블록에 적용된 서브 변환 세트를 나타내는 정보는 휘도 블록에 AMT가 적용된 경우에만 추가적으로 디코더로 전송된다. 휘도 블록의 AMT 정보는 상술한 표 4와 표 5를 기초로 RDO를 통해 인코더에 의해 결정된다. 구체적인 내용은 상술한 AMT에 관한 설명을 참조한다. In Embodiment 1, information indicating whether AMT is applied to a luminance block and information indicating a sub-transform set applied to the luminance block are transmitted from an encoder to a decoder. However, information indicating the sub-conversion set applied to the luminance block is additionally transmitted to the decoder only when AMT is applied to the luminance block. The AMT information of the luminance block is determined by the encoder through the RDO based on Tables 4 and 5 described above. For details, refer to the description of the above-described AMT.
인코더는 휘도 블록의 AMT 세트를 그대로 사용하지 않고, 휘도 블록의 AMT 변환 세트(상술한 표 4 및 표 5)를 색차 블록의 특성에 따라 적응적으로 변경(또는 재구성)하여 사용할 수 있다. 색차 블록과 휘도 블록은 유사성을 갖지만, 색차 블록은 휘도 블록에 비해 평탄한 영역이 많고 더 단순한 특징을 갖는다. 따라서 휘도 블록의 AMT 변환 세트를 그대로 색차 블록의 변환에 이용하는 경우, 변환 효율이 감소할 수 있다. The encoder may adaptively change (or reconstruct) the AMT conversion set (Tables 4 and 5 described above) of the luminance block according to the characteristics of the chrominance block without using the AMT set of the luminance block as it is. Although the chrominance block and the luminance block have similarities, the chrominance block has more flat areas and simpler characteristics than the luminance block. Therefore, when the AMT transform set of the luminance block is used for conversion of the chrominance block as it is, the conversion efficiency can be reduced.
변환 효율성 향상을 위해, 인코더/디코더는 휘도 블록에 적용되는 AMT 변환 세트(표 4 및 표 5)를 색차 블록의 특성에 따라 적응적으로 변경/재구성하고, 변경된 AMT 변환 세트를 이용할 수 있다. 구체적으로, 휘도 블록의 AMT 변환 세트를 구성하는 변환의 종류를 한정함으로써, 색차 블록의 AMT 변환 세트가 별도로 획득될 수 있다. 더 간소화된 AMT 변환 세트가 색차 블록에 적용될 수 있다. 변환의 종류를 한정하는 방법에 관한 구체적인 내용은 후술한다.To improve conversion efficiency, the encoder / decoder may adaptively change / reconfigure the AMT transform sets (Tables 4 and 5) applied to the luminance block according to the characteristics of the chrominance block, and use the changed AMT transform set. Specifically, by limiting the types of transforms constituting the AMT transform set of the luminance block, the AMT transform set of the chrominance block may be obtained separately. A more simplified set of AMT transforms can be applied to the chrominance block. The details of the method of limiting the type of transformation will be described later.
인코더는 색차 블록을 위해 별도로 구성된 AMT 변환 세트(이하, 색차 블록의 AMT 세트)를 이용하여 색차 블록에 적용될 서브 변환 세트를 RDO를 통해 결정할 수 있다. 색차 블록의 AMT 변환 세트는 휘도 블록의 AMT 변환 세트(표 4 및 표 5)와 별도로 인코더/디코더에 미리 저장될 수 있다.The encoder may determine, through the RDO, a sub-transform set to be applied to the chrominance block using an AMT transform set (hereinafter, AMT set of the chrominance block) separately configured for the chrominance block. The AMT transform set of the chrominance block may be stored in advance in the encoder / decoder separately from the AMT transform set (Tables 4 and 5) of the luminance block.
또한, 인코더는 색차 블록과 휘도 블록의 상관도(correlation), 색차 블록 내의 에지(edge) 또는 색차 블록의 variation 등에 기초하여 색차 블록이 평탄한지 여부(또는 평탄한 정도)를 결정할 수 있다. 인코더는 현재 색차 블록(또는 슬라이스, 픽쳐)이 평탄하다고 결정한 경우에만 휘도 블록의 AMT 변환 세트를 재구성하고, 이를 색차 블록의 변환에 이용할 수도 있다. In addition, the encoder may determine whether or not the color difference block is flat based on a correlation between the color difference block and the luminance block, an edge in the color difference block, or a variation of the color difference block. The encoder may reconstruct the AMT transform set of the luminance block only when it determines that the current chrominance block (or slice, picture) is flat and use it for the transform of the chrominance block.
아래의 표 6은, 현재 색차 블록의 예측 모드가 화면 내 예측(intra prediction) 모드인 경우, 휘도 블록의 AMT 변환 세트 및 상기 휘도 블록의 AMT 변환 세트를 변경함으로써 획득된 색차 블록의 AMT 변환 세트의 일 예를 나타낸다. Table 6 below shows the AMT transform set of the luminance block and the AMT transform set of the luminance block when the prediction mode of the current color difference block is an intra prediction mode. An example is shown.
Figure PCTKR2018002929-appb-T000006
Figure PCTKR2018002929-appb-T000006
표 6 및 후술할 표 7에서, 휘도 AMT set(Luma AMT set)는 휘도 블록에 적용될 수 있는 AMT 변환 세트를 나타내고, 색차 AMT set(chroma AMT set)는 색차 블록에 적용될 수 있는 AMT 변환 세트를 나타낸다.In Table 6 and Table 7 to be described later, a luminance AMT set (Luma AMT set) indicates an AMT transform set that can be applied to a luminance block, and a color difference AMT set (chroma AMT set) indicates an AMT transform set that can be applied to a chrominance block. .
표 6에 개시된 휘도 AMT 세트는, 상술한 표 4의 변환 세트들 중 하나인 Set 0의 서브 변환 세트들이다. 표 6개 개시된 색차 AMT 세트는, 휘도 AMT 세트를 구성하는 변환들 중 DST7은 그대로 유지되고 DCT5가 DCT2로 변경됨으로써 획득될 수 있다. 이하에서 구체적으로 설명한다.The luminance AMT set disclosed in Table 6 are sub-transform sets of Set 0, which is one of the transform sets of Table 4 described above. Table 6 disclosed color difference AMT set can be obtained by maintaining DST7 and DCT5 changing to DCT2 among the conversions constituting the luminance AMT set. It demonstrates concretely below.
일 예로, 변환 효율 향상을 위해, 색차 블록의 AMT 변환 세트는 DST7 및 DCT2 만으로 구성될 수 있다. 즉, 휘도 AMT 세트를 변경함으로써 색차 AMT 세트가 구성되는 과정에서, DST 변환 기법은 모두 DST7로 변경되고, DCT 변환 기법은 모두 DCT2로 변경될 수 있다. DCT5 및 DCT8은 DCT2로 변경 될 수 있고, DST 1은 DST7로 변경될 수 있다. 이 같은 방식을 통해 표 4를 변경함으로써, 색차 블록에 사용되는 AMT 변환 세트가 획득될 수 있다. For example, in order to improve conversion efficiency, the AMT transform set of the color difference block may consist of only DST7 and DCT2. That is, in the process of configuring the color difference AMT set by changing the luminance AMT set, all of the DST conversion techniques may be changed to DST7, and all of the DCT conversion techniques may be changed to DCT2. DCT5 and DCT8 may be changed to DCT2, and DST 1 may be changed to DST7. By changing Table 4 in this manner, the AMT transform set used for the chrominance block can be obtained.
아래의 표 7은, 현재 색차 블록의 예측 모드가 화면 간 예측(inter prediction)의 경우, 휘도 블록의 AMT 변환 세트 및 상기 휘도 블록의 AMT 변환 세트를 변경함으로써 획득된 색차 블록의 AMT 변환 세트의 일 예를 나타낸다. Table 7 below shows one of the AMT transform set of the chrominance block obtained by changing the AMT transform set of the luminance block and the AMT transform set of the luminance block when the prediction mode of the current chrominance block is inter prediction. For example.
Figure PCTKR2018002929-appb-T000007
Figure PCTKR2018002929-appb-T000007
표 7에서, 휘도 AMT 세트는 화면 간 예측 모드일 때 휘도 블록에 적용될 수 있는 변환 세트(상술한 표 5)와 동일하다. 표 7의 색차 AMT 세트는, 휘도 AMT 세트에서 DST7은 변경되지 않고 DCT 8이 DCT2로 변경된 것을 나타낸다.In Table 7, the luminance AMT set is the same as the transform set (Table 5 described above) that can be applied to the luminance block in the inter prediction mode. The color difference AMT set in Table 7 indicates that in the luminance AMT set, DST7 is not changed and DCT 8 is changed to DCT2.
인코더는 표 6에 관한 설명에서 상술한 바와 동일한 방식으로, DCT2와 DST7 만으로 구성된 조합으로 휘도 AMT 세트를 변경함으로써 색차 블록 변환에 사용할 수 있다. 구체적인 설명은 상술한 표 6에 관한 설명을 참조한다.The encoder can be used for chrominance block conversion by changing the luminance AMT set in a combination consisting of only DCT2 and DST7 in the same manner as described above in the description of Table 6. For details, refer to the description regarding Table 6 above.
인코더는 색차 블록의 AMT 변환 세트를 이용함으로써 RDO를 통해 하나의 서브 변환 세트를 선택하고, 현재 색차 블록을 변환할 수 있다. 인코더는 변환에 사용된 색차 AMT 세트의 서브 변환 세트에 관한 정보를 디코더로 전송할 수 있다. 인코더는 수직 변환을 나타내는 플래그 및 수평 변환을 나타내는 플래그를 전송할 수도 있다. 디코더는 수신된 플래그들이 나타내는 변환 기법을 이용하여 현재 색차 블록을 역변환할 수 있다.The encoder can select one sub-transformation set through the RDO and transform the current color-difference block by using the AMT transform set of the chrominance block. The encoder may transmit information about the sub-transformation set of the color difference AMT set used for the transformation to the decoder. The encoder may send a flag indicating a vertical transform and a flag indicating a horizontal transform. The decoder may inversely transform the current color difference block using a transform technique indicated by the received flags.
이하에서는, 본 실시예에서, 현재 색차 블록의 AMT 관련 정보가 인코더로부터 디코더로 시그널링되는지 여부에 대해 설명한다. Hereinafter, in the present embodiment, it is described whether AMT related information of a current color difference block is signaled from an encoder to a decoder.
1) 현재 색차 블록이 AMT 적용 조건을 충족하지 못한 경우 1) When the current color difference block does not meet the AMT application condition
현재 색차 블록에 AMT가 적용되지 않는다. 이 경우, 인코더는 현재 색차 블록의 AMT 관련 정보를 시그널링하지 않는다.AMT is not applied to the current color difference block. In this case, the encoder does not signal the AMT related information of the current color difference block.
2) 현재 색차 블록이 AMT 적용 조건을 충족하고, 휘도 블록의 AMT 정보를 색차 블록의 AMT 정보로써 사용하는 경우 2) When the current color difference block satisfies the AMT application condition and uses the AMT information of the luminance block as the AMT information of the color difference block.
이 경우, 디코더는 수신된 휘도 블록의 AMT 정보를 색차 블록의 AMT 정보로써 이용한다. 따라서 색차 블록의 AMT 정보가 별도로 시그널링되지 않는다. In this case, the decoder uses the AMT information of the received luminance block as the AMT information of the chrominance block. Therefore, AMT information of the color difference block is not signaled separately.
3) 인코더가 휘도 블록에 적용된 AMT 변환 세트를 현재 색차 블록에 적용한 결과와 기존 변환 방식(DCT2 또는 DST7)을 현재 색차 블록에 적용한 결과를 RDO에 기초하여 비교하고, 비교 결과에 따라 현재 색차 블록의 AMT 적용 여부를 결정하는 경우 3) The encoder compares the result of applying the AMT transform set applied to the luminance block to the current chrominance block and the result of applying the existing transform scheme (DCT2 or DST7) to the current chrominance block based on the RDO, and according to the comparison result, If you decide to apply AMT
휘도 블록에 AMT가 적용되지 않은 경우, 색차 블록에도 AMT가 적용되지 않는다. 따라서 이 경우 색차 블록의 AMT 정보는 시그널링되지 않는다. If AMT is not applied to the luminance block, AMT is not applied to the chrominance block. Therefore, in this case, AMT information of the color difference block is not signaled.
휘도 블록에 AMT가 적용된 경우, 현재 색차 블록의 AMT 적용 여부를 RDO 비교 결과에 기초하여 결정한다. 이때 현재 색차 블록에 AMT가 적용되는지 여부를 나타내는 플래그가 시그널링될 수 있다. 현재 색차 블록의 AMT 적용 여부를 나타내는 플래그는 1bit 플래그일 수 있다.When AMT is applied to the luminance block, whether the current color difference block is applied to AMT is determined based on the RDO comparison result. In this case, a flag indicating whether AMT is applied to the current color difference block may be signaled. The flag indicating whether AMT is applied to the current color difference block may be a 1-bit flag.
4) 인코더가 Cb/Cr 블록 각각에 휘도 블록에 적용된 AMT 변환 세트를 적용한 결과와 기존 변환 방식을 적용한 결과를 RDO에 기초하여 비교하고, 비교 결과에 따라 Cb 블록과 Cr 블록 각각의 AMT 적용 여부를 독립적으로 결정하는 경우4) The encoder compares the result of applying the AMT transform set applied to the luminance block to the Cb / Cr block and the result of applying the conventional transform method based on the RDO. If you decide independently
휘도 블록에 AMT 적용되지 않은 경우, Cb 블록과 Cr 블록에도 AMT가 적용되지 않는다. 따라서 이 경우 AMT 정보가 시그널링되지 않는다.If AMT is not applied to the luminance block, AMT is not applied to the Cb block and the Cr block. Therefore, in this case, AMT information is not signaled.
휘도 블록에 AMT가 적용된 경우, RDO 비교 결과에 기초하여 Cb 블록과 Cr 블록 각각의 AMT 적용 여부를 결정한다. 이때 Cb 블록과 Cr 블록 각각의 AMT 적용 여부를 나타내는 플래그들이 디코더로 시그널링 될 수 있다. Cb 블록과 Cr 블록의 AMT 적용 여부를 나타내는 플래그는 각각 1 비트 플래그일 수 있다. 따라서 이 경우 하나의 색차 블록에 대해 총 2 비트가 시그널링될 수 있다.When AMT is applied to the luminance block, it is determined whether AMT is applied to each of the Cb block and the Cr block based on the RDO comparison result. In this case, flags indicating whether to apply AMT to each of the Cb block and the Cr block may be signaled to the decoder. The flags indicating whether the Cb block and the Cr block apply AMT may be 1-bit flags, respectively. Therefore, in this case, a total of 2 bits may be signaled for one color difference block.
상술한 바와 같이, 본 실시예에 의하면, 색차 블록에도 AMT를 적용함으로써 변환 효율을 향상시킬 수 있다. 또한, 디코더가 휘도 블록의 AMT 정보를 색차 블록의 AMT 정보로 이용함으로써, 시그널링되는 비트 수를 줄일 수 있다. As described above, according to the present embodiment, the conversion efficiency can be improved by applying AMT to the color difference block. In addition, the decoder may reduce the number of bits signaled by using the AMT information of the luminance block as the AMT information of the chrominance block.
도 8은 본 발명의 일 실시예에 따른, 휘도 블록과 색차 블록의 블록 분할 구조가 상이한 경우, 복수의 휘도 블록들 중 하나를 선택하는 것을 나타낸다.FIG. 8 illustrates selecting one of a plurality of luminance blocks when the block division structure of the luminance block and the chrominance block is different according to an embodiment of the present invention.
도 8에서, (a)는 휘도 블록을 나타내고, (b)는 (a)의 휘도 블록과 대응되는 위치에 있는 색차 블록(Cb 블록, Cr 블록)들을 나타낸다. 또한, 도 8은 휘도 블록(luma block)과 색차 블록(chroma block)의 블록 분할 구조가 상이한 것을 나타낸다. 도 8을 참조하면, 디코더는 휘도 블록과 색차 블록의 분할 정보가 상이한 경우, AMT 정보를 가져올 하나의 휘도 블록을 선택할 수 있다.In FIG. 8, (a) represents a luminance block, and (b) represents chrominance blocks (Cb blocks, Cr blocks) at positions corresponding to the luminance blocks of (a). 8 shows that the block division structures of the luma block and the chroma block are different. Referring to FIG. 8, when the splitting information of the luminance block and the chrominance block is different, the decoder may select one luminance block to obtain AMT information.
휘도 블록과 색차 블록의 분할 정보가 상이한 경우, 디코더는 변환 정보를 가져올 하나의 휘도 블록을 선택할 수 있다. 디코더가 하나의 휘도 블록을 선택하는 방식들의 구체적인 내용은 상술한 실시예 1에 관한 설명을 참조한다.When the split information of the luminance block and the chrominance block is different, the decoder may select one luminance block from which the conversion information is to be obtained. For details of the manner in which the decoder selects one luminance block, refer to the description of Embodiment 1 described above.
하나의 휘도 블록을 선택하는 방식들 중, 도 8은 현재 색차 블록의 특정 위치와 대응되는 위치에 존재하는 휘도 블록을 선택하는 방식을 나타낸다. 구체적으로, 도 8에서는 색차 블록의 좌상단과 대응되는 위치에 존재하는 휘도 블록이 선택된다. 디코더는 선택된 휘도 블록의 AMT 정보를 Cb 블록과 Cr 블록의 AMT 정보로써 이용한다. Among the methods of selecting one luminance block, FIG. 8 illustrates a method of selecting a luminance block existing at a position corresponding to a specific position of the current color difference block. Specifically, in FIG. 8, a luminance block existing at a position corresponding to the upper left end of the color difference block is selected. The decoder uses the AMT information of the selected luminance block as the AMT information of the Cb block and the Cr block.
실시예 2Example 2
실시예 2에 따르면, 색차 블록에 독립적으로 AMT가 적용될 수 있다. 본 실시예에 따르면, 인코더는 각 색차 블록에 대한 AMT 적용 가능 여부를 결정하고, AMT가 적용 가능한 것으로 결정된 경우, AMT 변환 세트에 관한 정보를 전송한다. 본 실시예에서는, 실시예 1과 달리 휘도 블록의 AMT 정보가 이용되지 않는다. 색차 블록에 AMT가 독립적으로 적용될 수 있다.According to Embodiment 2, AMT may be applied independently to a chrominance block. According to the present embodiment, the encoder determines whether AMT is applicable to each color difference block, and when it is determined that AMT is applicable, transmits information about an AMT transform set. Unlike the first embodiment, the AMT information of the luminance block is not used in this embodiment. AMT may be independently applied to the color difference block.
먼저, 인코더는 잔차 신호에 대해 변환을 수행하기 전, 현재 색차 블록에 AMT 적용이 가능한지 여부를 결정한다. 현재 색차 블록에 AMT 적용이 가능한 경우, 인코더는 색차 블록에 적용될 변환 세트를 RDO를 통해 결정한다.First, before performing transformation on the residual signal, the encoder determines whether AMT is applicable to the current color difference block. If AMT is applicable to the current chrominance block, the encoder determines through RDO a transform set to be applied to the chrominance block.
이하에서는, 인코더가 현재 색차 블록에 AMT 적용이 가능한지 여부를 결정하는 방법을 설명한다. 먼저 현재 색차 블록의 예측 모드가 화면 내 예측 모드인 경우를 설명하고, 이후 화면 간 예측 모드인 경우를 설명한다.Hereinafter, a method of determining whether or not an encoder can apply AMT to a current color difference block will be described. First, the case where the prediction mode of the current color difference block is the intra prediction mode will be described, and the case where the prediction mode of the current chrominance block is the inter prediction mode will now be described.
현재 색차 블록의 예측 모드가 화면 내 예측인 경우, 인코더는 이하의 세가지 방식 중 하나를 이용함으로써 현재 색차 블록에 AMT가 적용 가능한지 여부를 결정할 수 있다.When the prediction mode of the current color difference block is intra prediction, the encoder may determine whether AMT is applicable to the current color difference block by using one of the following three methods.
1) 첫번째 방식은, 현재 색차 블록의 예측 방향과 블록의 크기에 상관없이 AMT가 적용 가능한지 여부를 결정하는 방식이다.1) The first method is a method of determining whether AMT is applicable regardless of the prediction direction of the current color difference block and the size of the block.
2) 두번째 방식은, 현재 색차 블록의 인트라 예측 모드가 특정한 모드인 경우에만 AMT가 적용 가능한지 여부를 결정하는 방식이다. 일 예로, 인코더는 현재 색차 블록의 인트라 예측 모드가 Horizontal 모드, Vertical 모드, DC 모드, 또는 PLANAR 모드인 경우에만 AMT가 적용 가능하다고 결정할 수 있다.2) The second method is a method of determining whether AMT is applicable only when the intra prediction mode of the current color difference block is a specific mode. As an example, the encoder may determine that AMT is applicable only when the intra prediction mode of the current color difference block is a horizontal mode, a vertical mode, a DC mode, or a PLANAR mode.
3) 세번째 방식은, 현재 색차 블록의 크기에 따라 AMT가 적용 가능한지 여부를 결정하는 방식이다. 일 예로, 인코더는 현재 색차 블록의 크기가 4Х4 이상이고 64Х64 이하인 경우에만 AMT 적용 가능하다고 결정할 수 있다.3) The third method is a method of determining whether AMT is applicable according to the size of a current color difference block. As an example, the encoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4Х4 and less than or equal to 64Х64.
현재 색차 블록의 예측 모드가 화면 간 예측인 경우, 인코더는 이하의 두가지 방식들 중 하나를 이용함으로써 현재 색차 블록에 AMT가 적용 가능한지 여부를 결정할 수 있다.When the prediction mode of the current chrominance block is inter prediction, the encoder may determine whether AMT is applicable to the current chrominance block by using one of the following two methods.
1) 첫번째 방식은, 현재 색차 블록의 크기에 따라 AMT가 적용 가능한지 여부를 결정하는 방식이다. 일 예로, 인코더/디코더는 현재 색차 블록의 크기가 4Х4 이상이고 64Х64 이하인 경우에만 AMT 적용 가능하다고 결정할 수 있다.1) The first method is a method of determining whether AMT is applicable according to the size of a current color difference block. As an example, the encoder / decoder may determine that AMT is applicable only when the size of the current color difference block is greater than or equal to 4Х4 and less than or equal to 64Х64.
2) 두번째 방식은, 현재 색차 블록의 예측 블록 및 휘도 블록의 예측 블록(또는 복원 블록(reconstructed block)) 간의 상관도(correlation)에 기초하여 AMT 적용 가능 여부를 결정하는 방식이다. 영상의 부호화 순서에 따라, 인코더는 현재 색차 블록을 변환하기 전에, 현재 색차 블록의 예측 영상과 휘도 블록의 예측 영상 및 휘도 블록의 복원 영상을 먼저 획득한다. 따라서, 인코더는 상기 상관도가 미리 설정된 조건을 만족하는 경우, 현재 색차 블록에 AMT가 적용될 수 있다고 결정할 수 있다. 일 예로, 인코더는 현재 색차 블록의 예측 블록 및 휘도 블록의 예측 블록(또는 복원 블록)의 상관도가 0.5 이상이면, 현재 색차 블록에 AMT가 적용가능 하다고 결정할 수 있다.2) The second method is a method of determining whether to apply AMT based on a correlation between a prediction block of the current color difference block and a prediction block (or reconstructed block) of the luminance block. According to the encoding order of the image, the encoder first obtains the predicted image of the current chrominance block, the predicted image of the luminance block, and the reconstructed image of the luminance block before converting the current chrominance block. Accordingly, the encoder may determine that AMT may be applied to the current color difference block when the correlation degree satisfies a preset condition. As an example, if the correlation between the prediction block of the current chrominance block and the prediction block (or reconstruction block) of the luminance block is 0.5 or more, the encoder may determine that AMT is applicable to the current chrominance block.
인코더는 상술한 방식들을 이용함으로써 현재 색차 블록에 AMT가 적용 가능한지 여부를 결정할 수 있다. 현재 색차 블록에 AMT가 적용 가능한 경우, 인코더는 율-왜곡 최적화(RDO)에 기초하여 현재 색차 블록에 적용되는 최적의 변환 세트를 결정한다.The encoder can determine whether AMT is applicable to the current chrominance block by using the schemes described above. If AMT is applicable to the current chrominance block, the encoder determines an optimal set of transforms to be applied to the current chrominance block based on the rate-distortion optimization (RDO).
현재 색차 블록에 적용되는 AMT 변환 세트는 휘도 블록의 AMT 변환 세트(상술한 표 4 및 표 5)와 동일한 조건으로 설정될 수 있다. 즉, 인코더는 예측 모드에 따라 상술한 표 4 또는 표 5를 이용할 수 있고, RDO에 기초하여 최적의 변환 세트를 결정할 수 있다.The AMT transform set applied to the current color difference block may be set under the same conditions as the AMT transform set (Tables 4 and 5 described above) of the luminance block. That is, the encoder may use Table 4 or Table 5 according to the prediction mode, and determine an optimal transform set based on the RDO.
또한, 인코더는 색차 블록에 적응적으로 AMT 변환 세트의 수를 줄인 별도의 AMT 변환 세트를 이용할 수 있다. 색차 블록이 휘도 블록에 비해 평탄한 영역이 많고 더 단순한 특징을 갖는다. 따라서, 따라서 휘도 블록의 AMT 변환 세트를 그대로 색차 블록의 변환에 이용하는 경우, 변환 효율이 감소할 수 있다. 변환 효율성 향상을 위해, 1개의 In addition, the encoder may use a separate AMT transform set that adaptively reduces the number of AMT transform sets to the chrominance block. The chrominance block has more flat areas and has simpler features than the luminance block. Therefore, when the AMT conversion set of the luminance block is used for the conversion of the chrominance block as it is, the conversion efficiency can be reduced. 1, for improving the conversion efficiency
아래의 표 8은, 화면 내 예측 모드(intra prediction mode)의 경우, 현재 색차 블록에 적용될 수 있는 변환 세트의 일 예를 나타낸다. Table 8 below shows an example of a transform set that can be applied to a current color difference block in an intra prediction mode.
Figure PCTKR2018002929-appb-T000008
Figure PCTKR2018002929-appb-T000008
표 8에서, 각 변환 세트는 2 개의 서브 변환 세트를 포함한다. 또한, 표 8에서, DM_PLANAR, DM_DC, DM_HOR 및 DM_VER는, 색차 블록의 모드가 DM 모드일 때 휘도 블록의 화면 내 예측 모드가 PLANAR 모드, DC 모드, Horizontal 모드 및 Vertical 모드인 경우를 의미한다. DM_ETC는 휘도 블록의 화면 내 예측 모드가 상술한 모드들 이외의 모드인 경우를 나타낸다. DM 모드는 색차 블록에 휘도 블록의 모드를 이용하는 모드이다. 이때, 휘도 블록의 모드가 색차 블록에 정의되지 않은 모드일 수 있다. 이 경우 인코더는 휘도 블록에 적용된 AMT 변환 세트를 색차 블록에 적용할 수도 있다. DM 모드와 LM 모드에 대해서는 후술한다.In Table 8, each transform set includes two sub transform sets. In addition, in Table 8, DM_PLANAR, DM_DC, DM_HOR, and DM_VER mean a case where the intra prediction mode of the luminance block is the PLANAR mode, the DC mode, the horizontal mode, and the vertical mode when the mode of the color difference block is the DM mode. DM_ETC represents a case where the intra prediction mode of the luminance block is a mode other than those described above. The DM mode is a mode that uses the mode of the luminance block for the color difference block. In this case, the mode of the luminance block may be a mode that is not defined in the color difference block. In this case, the encoder may apply the AMT transform set applied to the luminance block to the chrominance block. The DM mode and the LM mode will be described later.
일 예로, 현재 예측 모드가 DC 모드인 경우, 인코더는 Set 2에 포함된 서브 변환 세트 (DST7, DST7)과 (DST1, DST1) 각각을 이용하여 변환을 수행하고, RDO를 통해 (DST7, DST7) 및 (DST1, DST1) 중 하나의 서브 변환 세트를 결정한다. For example, when the current prediction mode is the DC mode, the encoder performs transformation using each of the sub-transform sets (DST7, DST7) and (DST1, DST1) included in Set 2, and performs (DST7, DST7) through RDO. And a sub-transform set of one of (DST1, DST1).
각 변환 세트는 2개의 서브 변환 세트를 포함한다. 인코더는 2개의 서브 변환 세트 중 RDO에 기초하여 하나의 서브 변환 세트를 결정한다. 이후, 인코더는 현재 색차 블록에 적용된 서브 변환 세트를 나타내는 플래그를 디코더로 전송할 수 있다. 각 모드에 대해 2개의 서브 변환 세트가 정의되기 때문에, 서브 변환 세트를 나타내는 플래그는 1비트 플래그일 수 있다. 즉, 각 예측 모드에 대해 2개의 서브 변환 세트만을 정의함으로써, 시그널링되는 비트의 수가 감소될 수 있다.Each transform set includes two sub transform sets. The encoder determines one sub transform set based on the RDO of the two sub transform sets. The encoder may then send a flag to the decoder indicating the sub-conversion set applied to the current chrominance block. Since two sub-transform sets are defined for each mode, the flag representing the sub-transform set may be a 1-bit flag. That is, by defining only two sets of sub transforms for each prediction mode, the number of bits signaled can be reduced.
아래의 표 9는, 화면 간 예측 모드(inter prediction mode)의 경우, 현재 색차 블록에 적용될 수 있는 변환 세트의 일 예를 나타낸다.Table 9 below shows an example of a transform set that can be applied to a current color difference block in the case of an inter prediction mode.
Figure PCTKR2018002929-appb-T000009
Figure PCTKR2018002929-appb-T000009
표 9는 화면 간 예측 모드일 때 적용될 수 있는 두가지 AMT 변환 세트를 나타낸다. 화면 내 예측 모드의 경우와 마찬가지로, 변환 세트를 나타내는 플래그는 1 bit 플래그일 수 있다. 이로 인해 시그널링되는 비트 수가 감소될 수 있다.Table 9 shows two sets of AMT transformations that can be applied in inter prediction mode. As in the case of the intra prediction mode, the flag indicating the transform set may be a 1 bit flag. This may reduce the number of bits signaled.
상술한 표 8 및 표 9는 인코더에 미리 정의될 수 있다. 표 8 및 표 9에 정의된 변환 세트의 구성은 바뀔 수 있다.Tables 8 and 9 described above may be predefined in the encoder. The configuration of the transform sets defined in Tables 8 and 9 can be changed.
이하에서는, 본 실시예에서, 현재 색차 블록의 AMT 관련 정보가 인코더로부터 디코더로 시그널링되는지 여부에 대해 설명한다.Hereinafter, in the present embodiment, it is described whether AMT related information of a current color difference block is signaled from an encoder to a decoder.
1) 현재 색차 블록이 AMT 적용 조건을 충족하지 못한 경우 1) When the current color difference block does not meet the AMT application condition
현재 색차 블록에 AMT가 적용되지 않는다. 이 경우, 인코더는 현재 색차 블록의 AMT 관련 정보(AMT 적용 여부를 나타내는 정보 포함)를 디코더로 시그널링하지 않는다.AMT is not applied to the current color difference block. In this case, the encoder does not signal the AMT related information (including information indicating whether the AMT is applied) of the current color difference block to the decoder.
2) 현재 색차 블록이 AMT 적용 조건을 충족하고, 휘도 블록에 적용된 AMT 변환 세트를 색차 블록에 사용하는 경우2) When the current color difference block satisfies the AMT application condition and uses the AMT transform set applied to the luminance block in the color difference block.
인코더는 현재 색차 블록의 AMT 적용 여부를 나타내는 정보를 시그널링할 수 있다. 추가로, 현재 색차 블록에 AMT가 적용된 경우, 인코더는 적용된 AMT 변환 세트를 나타내는 정보를 디코더로 시그널링한다. AMT 적용 여부를 나타내는 정보는 1bit 플래그일 수 있다. The encoder may signal information indicating whether AMT is applied to the current color difference block. In addition, when AMT is applied to the current chrominance block, the encoder signals information indicating the applied AMT transform set to the decoder. Information indicating whether AMT is applied may be a 1-bit flag.
이 케이스는, AMT 변환 세트를 선택하는 과정에서 표 4와 표 5가 이용된다. 상술한 표 4 및 표 5를 참조하면, 휘도 블록의 경우 하나의 예측 모드에 대해 4가지 서브 변환 세트가 정의된다. 따라서 이 경우 AMT 변환 세트를 나타내는 정보는 2bit 플래그일 수 있다.In this case, Tables 4 and 5 are used in selecting an AMT transform set. Referring to Tables 4 and 5 described above, four sub-transform sets are defined for one prediction mode in the case of a luminance block. Therefore, in this case, the information representing the AMT conversion set may be a 2-bit flag.
3) 현재 색차 블록이 AMT 적용 조건을 충족하고, 표 8 및 표 9에 기초하여 AMT 변환 세트를 결정하는 경우3) When the current chrominance block satisfies the AMT application condition and determines the AMT transform set based on Tables 8 and 9
이 케이스는 상술한 2)와 달리, AMT 변환 세트를 선택하는 과정에서 표 8 및 표 9가 이용된다. 따라서, 이 경우 인코더는 현재 색차 블록의 AMT 적용 가능 여부를 나타내는 정보(1bit 플래그), 및 AMT 변환 세트를 나타내는 정보를 디코더로 시그널링한다. 상술한 표 8 및 표 9를 참조하면, 하나의 예측 모드에 대해 2가지 서브 변환 세트가 정의된다. 따라서 이 경우 AMT 변환 세트를 나타내는 정보가 1bit 플래그일 수 있다. 상술한 2)에 비해 시그널링되는 비트 수가 감소된다.In this case, unlike in 2), Tables 8 and 9 are used in selecting an AMT transform set. Accordingly, in this case, the encoder signals information indicating whether the current color difference block is applicable to AMT (1 bit flag) and information indicating the AMT transform set to the decoder. Referring to Tables 8 and 9 described above, two sub-transform sets are defined for one prediction mode. Therefore, in this case, the information representing the AMT conversion set may be a 1-bit flag. Compared to 2) described above, the number of bits signaled is reduced.
4) Cb 블록과 Cr 블록이 모두 AMT 적용 조건을 충족하고, 인코더가 Cb 블록과 Cr 블록의 AMT 적용 여부를 각각 독립적으로 결정하는 경우4) When both the Cb block and the Cr block meet the AMT application condition, and the encoder independently determines whether to apply the AMT to the Cb block and the Cr block, respectively.
아래의 표 10은, Cb 블록과 Cr 블록에 사용되는 AMT 적용 여부가 독립적으로 결정되는 경우, 인코더에서 디코더로 시그널링되는 정보의 일 예시를 나타낸다.Table 10 below shows an example of information signaled from an encoder to a decoder when it is independently determined whether AMT used for a Cb block and a Cr block is independently applied.
Figure PCTKR2018002929-appb-T000010
Figure PCTKR2018002929-appb-T000010
표 10에서, AMT mode는 Cb 블록과 Cr 블록 각각에 AMT가 적용되었는지 여부를 나타낸다. 표 10을 참조하면, AMT mode가 0이면, Cb 블록 및 Cr 블록에 AMT가 적용 되었음을 나타낸다. AMT mode가 1이면, Cb 블록 및 Cr 블록에 AMT 적용 되지 않았음을 나타낸다. AMT mode가 2이면, Cb 블록에만 AMT 적용 되었음을 나타낸다. AMT mode가 3이면 Cr 블록에만 AMT 적용 되었음을 나타낸다. In Table 10, the AMT mode indicates whether AMT is applied to each of the Cb block and the Cr block. Referring to Table 10, if the AMT mode is 0, this indicates that AMT is applied to the Cb block and the Cr block. If AMT mode is 1, it indicates that AMT has not been applied to the Cb block and the Cr block. If AMT mode is 2, it indicates that AMT has been applied only to the Cb block. If AMT mode is 3, it indicates that AMT is applied only to the Cr block.
인코더는 Cb 블록 및 Cr 블록의 AMT 적용 여부를 나타내는 정보를 디코더로 시그널링할 수 있다. 표 10을 참조하면, 경우의 수가 4가지이기 때문에, AMT 적용 여부를 나타내는 정보는 2 bit 플래그일 수 있다. 또한, 추가로, 인코더는 색차 블록(Cb/Cr 블록) 중 AMT가 적용되는 블록에 사용되는 AMT 변환 세트를 나타내는 정보를 시그널링할 수 있다. AMT 변환 세트를 나타내는 정보는 1 비트 플래그일 수 있다. Cb 블록과 Cr 블록 모두에 AMT가 적용된 경우, AMT 변환 세트를 나타내는 정보는 2 비트 플래그일 수 있다.The encoder may signal information indicating whether AMT is applied to the Cb block and the Cr block to the decoder. Referring to Table 10, since there are four cases, information indicating whether AMT is applied may be a 2-bit flag. In addition, the encoder may signal information indicating an AMT transform set used in a block to which AMT is applied among chrominance blocks (Cb / Cr blocks). The information representing the AMT transform set may be a 1-bit flag. When AMT is applied to both the Cb block and the Cr block, the information representing the AMT transform set may be a 2-bit flag.
상술한 실시예를 통해, 독립적으로 색차 블록에 AMT를 적용할 수 있다. Through the above-described embodiments, AMT can be applied to a color difference block independently.
실시예 3Example 3
실시예 3에 따르면, 인코더는 특정 예측 모드에 대해서는 휘도 블록의 AMT 정보를 이용하고, 그 외의 예측 모드에는 독립적으로 AMT를 적용할 수 있다. 실시예 3은 상술한 실시예 1과 실시예 2의 조합에 해당한다.According to the third embodiment, the encoder may use AMT information of a luminance block for a specific prediction mode and apply AMT independently to other prediction modes. Example 3 corresponds to a combination of Example 1 and Example 2 described above.
본 실시예에서, 현재 색차 블록의 AMT 적용 가능 여부의 판단은 상술한 실시예 1 과 실시예 2에서와 동일 또는 유사하게 수행될 수 있으므로, 자세한 설명은 생략한다.In the present embodiment, the determination of whether the current color difference block is applicable to the AMT can be performed in the same or similar manner as in the above-described embodiment 1 and embodiment 2, a detailed description thereof will be omitted.
본 실시예에서는, 현재 색차 블록에 적응적으로 AMT 변환 세트를 구성하고, 이를 이용한다.In this embodiment, the AMT transform set is adaptively configured to the current color difference block and used.
아래의 표 11은, 현재 색차 블록의 예측 모드가 화면 내 예측 모드인 경우, 화면 내 예측 모드에 따라 적용될 수 있는 AMT 변환 세트의 일 예를 나타낸다.Table 11 below shows an example of an AMT transform set that may be applied according to the intra prediction mode when the prediction mode of the current color difference block is the intra prediction mode.
Figure PCTKR2018002929-appb-T000011
Figure PCTKR2018002929-appb-T000011
표 11을 참조하면, 현재 색차 블록의 예측 모드가 DM 모드 또는 LM 모드인 경우, 디코더는 상술한 실시예 1과 같이 휘도 블록에 적용된 AMT 변환 세트를 현재 색차 블록에 이용한다. AMT 변환 세트 정보를 가져올 휘도 블록을 선택하는 방법 및 AMT 변환 세트를 선택하는 방법은 상술한 실시예 1에 개시된 내용과 동일 또는 유사한 방식으로 수행될 수 있다.Referring to Table 11, when the prediction mode of the current chrominance block is the DM mode or the LM mode, the decoder uses the AMT transform set applied to the luminance block in the current chrominance block as in the first embodiment. The method of selecting a luminance block to obtain AMT transform set information and the method of selecting an AMT transform set may be performed in the same or similar manner as described in Embodiment 1 described above.
현재 색차 블록의 예측 모드가 DM 모드 또는 LM 모드가 아닌 경우, 디코더는 독립적으로 AMT 변환 세트를 결정할 수 있다. 즉, 휘도 블록의 AMT 정보가 이용되지 않는다. AMT 변환 세트 결정은 상술한 실시예 2에 개시된 내용과 동일 또는 유사한 방식으로 수행될 수 있다.If the prediction mode of the current chrominance block is not the DM mode or the LM mode, the decoder may independently determine the AMT transform set. That is, AMT information of the luminance block is not used. The AMT transform set determination may be performed in the same or similar manner as the contents disclosed in Embodiment 2 described above.
이하에서는, 본 실시예에서, 현재 색차 블록의 AMT 관련 정보가 인코더로부터 디코더로 시그널링되는지 여부에 대해 설명한다.Hereinafter, in the present embodiment, it is described whether AMT related information of a current color difference block is signaled from an encoder to a decoder.
1) 현재 색차 블록이 AMT 적용 조건을 충족하지 못한 경우1) When the current color difference block does not meet the AMT application condition
현재 색차 블록에 AMT가 적용되지 않는다. 이 경우, 인코더는 현재 색차 블록의 AMT 관련 정보를 디코더로 시그널링하지 않는다.AMT is not applied to the current color difference block. In this case, the encoder does not signal the AMT related information of the current color difference block to the decoder.
2) 현재 색차 블록의 화면 내 예측 모드가 DM 모드 또는 LM 모드인 경우2) When the intra prediction mode of the current color difference block is DM mode or LM mode.
AMT 관련 정보가 상술한 실시예 1에서 개시된 내용과 동일 또는 유사한 방식으로 디코더로 시그널링될 수 있다. 구체적인 내용은 상술한 실시예 1을 참조한다.The AMT related information may be signaled to the decoder in the same or similar manner as the contents disclosed in Embodiment 1 described above. For details, refer to Embodiment 1 described above.
3) 현재 색차 블록의 화면 내 예측 모드가 DM 모드 또는 LM 모드가 아닌 경우3) When the intra prediction mode of the current color difference block is not DM mode or LM mode.
AMT 관련 정보가 상술한 실시예 2에서 개시된 내용과 동일 또는 유사한 방식으로 디코더로 시그널링될 수 있다. 구체적인 내용은 상술한 실시예 2를 참조한다.The AMT related information may be signaled to the decoder in the same or similar manner as the contents disclosed in Embodiment 2 described above. For details, refer to Embodiment 2 described above.
본 실시예를 통해, 예측 모드에 따라 휘도 블록의 AMT 변환 세트를 이용하는 방식과 독립적으로 AMT 변환 세트를 결정하는 방식을 조합하여 사용함으로써 데이터 압축 효율이 더 향상될 수 있다.According to the present embodiment, data compression efficiency may be further improved by using a combination of a method of determining an AMT transform set independently of a method of using an AMT transform set of a luminance block according to a prediction mode.
도 9는 본 발명의 일 실시예에 따른, LM(Linear Model) 모드를 설명하기 위한 도면이다.9 is a diagram for describing a linear model (LM) mode according to an embodiment of the present invention.
색차 영상의 화면 내 예측 모드의 하나로써, 색차 영상의 화소값을 복원된 휘도 영상의 화소값에서 예측하는 모드가 이용된다. 이 모드는 LM(Linear Model) 모드 또는 CCLM(Cross-Component Linear Model) 모드로 지칭될 수 있다. CCLM 모드는 휘도 영상과 색차 영상간의 상관도(correlation)가 높다는 특성에 기반한 방법이다. As one of the intra prediction modes of the chrominance image, a mode for predicting the pixel value of the chrominance image from the pixel value of the restored luminance image is used. This mode may be referred to as a linear model (LM) mode or a cross-component linear model (CCLM) mode. CCLM mode is a method based on the characteristic that the correlation (correlation) between the luminance image and the chrominance image is high.
CCLM 모드에서의 Cb 색차 영상 및 Cr 색차 영상의 예측은 다음의 식을 이용함으로써 수행될 수 있다.The prediction of the Cb chrominance image and the Cr chrominance image in the CCLM mode can be performed by using the following equation.
Figure PCTKR2018002929-appb-M000001
Figure PCTKR2018002929-appb-M000001
수학식 1에서, pred_c(i,j)는 예측될 Cb 색차 영상 또는 Cr 색차 영상을 나타낸다. recon_L(2i,2j)은 복원된 휘도 영상을 나타낸다. (i, j)는 화소의 좌표를 나타낸다. In Equation 1, pred_c (i, j) represents a Cb color difference image or a Cr color difference image to be predicted. recon_L (2i, 2j) represents a restored luminance image. (i, j) represent the coordinates of the pixel.
4:2:0 컬러 포맷(color format)에서, 휘도 영상의 크기가 색차 영상의 2배이기 때문에, 영상 크기의 차이가 고려되어야 한다. 따라서 색차 영상 pred_c(i,j)에 사용될 휘도 영상의 화소는 recon_L(2i,2j)외에 주변 화소까지 모두 고려하여 사용될 수 있다. 수학식 1의 알파, 베타는 도 9의 회색 영역과 같이, 색차 블록(Cb 블록 또는 Cr 블록)의 주변 template과 휘도 블록 주변 template 간의 cross-correlation 및 평균값의 차이를 통해 계산된다.In the 4: 2: 0 color format, since the size of the luminance image is twice the color difference image, the difference in image size should be taken into account. Therefore, the pixels of the luminance image to be used in the chrominance image pred_c (i, j) may be used considering all the neighboring pixels in addition to recon_L (2i, 2j). Alpha and beta of Equation 1 are calculated through the cross-correlation and average difference between the surrounding template of the color difference block (Cb block or Cr block) and the luminance block surrounding template, as shown in the gray region of FIG. 9.
CCLM 방법은 LM, MMLM(multi-model LM), MFLM(multi-filter LM)으로 나눌 수 있다. MMLM 방법은 LM에서 사용되는 기본 필터 이외의 다양한 필터를 통해 색차 화소에 대응하는 휘도 화소 값을 계산한다. MFLM 방법은 화소 값에 따라 수학식 1의 알파, 베타를 여러 그룹으로 분류하고, 해당 그룹에 맞는 알파, 베타를 적응적으로 적용함으로써 색차 화소를 예측한다.CCLM methods can be divided into LM, multi-model LM (MMLM), and multi-filter LM (MFLM). The MMLM method calculates luminance pixel values corresponding to chrominance pixels through various filters other than the basic filter used in the LM. The MFLM method classifies alpha and beta of Equation 1 into groups according to pixel values, and predicts chrominance pixels by adaptively applying alpha and beta corresponding to the group.
도 10은 본 발명의 일 실시예에 따른, 역변환부의 블록도를 나타낸다.10 is a block diagram of an inverse transform unit, according to an exemplary embodiment.
디코더는 색차 블록의 양자화된 변환 계수들을 획득하고, 양자화된 변환 계수들을 역양자화는 역양자화부를 포함한다. 또한, 디코더는 역양자화된 변환 계수들을 역변환하는 역변환부를 포함한다. 역변환부(230)는 역양자화된 블록(변환 계수들)을 역변환함으로써 잔차 블록을 생성한다. The decoder includes an inverse quantization unit for obtaining quantized transform coefficients of the chrominance block and inverse quantizing the quantized transform coefficients. The decoder also includes an inverse transform unit for inversely transforming the inverse quantized transform coefficients. The inverse transform unit 230 generates a residual block by inversely transforming an inverse quantized block (transform coefficients).
역변환부(230)는 적응 변환 커널 적용 결정부(10010), 변환 정보 획득부(10020) 및 색차 블록 역변환부(10030)를 포함한다.The inverse transform unit 230 includes an adaptive transform kernel application determiner 10010, a transform information obtainer 10020, and a chrominance block inverse transform unit 10030.
적응 변환 커널 적용 결정부(10010)는, 색차 블록에 적응 변환 커널이 적용될 수 있는지 여부를 결정한다. 적응 변환 커널은 예측 모드에 기초하여 잔차 신호에 적용할 변환 기법을 적응적으로 결정하는 방식이다. 즉, 적응 변환 커널은 상술한 AMT에 해당한다. The adaptive transform kernel application determiner 10010 determines whether the adaptive transform kernel can be applied to the color difference block. The adaptive transform kernel is a method of adaptively determining a transform scheme to be applied to the residual signal based on the prediction mode. In other words, the adaptive transform kernel corresponds to the above-described AMT.
적응 변환 커널(즉, AMT)은, 색차 블록의 예측 모드에 따라 색차 블록의 수평 방향으로 적용되는 제1 변환 및 수직 방향으로 적용되는 제2 변환의 조합이 결정된다. 제1 변환과 제2 변환의 조합은 상술한 변환 세트에 해당한다.In the adaptive transform kernel (ie, AMT), a combination of a first transform applied in the horizontal direction of the chrominance block and a second transform applied in the vertical direction is determined according to the prediction mode of the chrominance block. The combination of the first transform and the second transform corresponds to the transform set described above.
변환 정보 획득부(10020)는, 색차 블록에 적응 변환 커널이 적용될 수 있는 경우, 색차 블록의 변환 정보를 획득한다. 변환 정보는 상술한 AMT 관련 정보에 해당한다.The transform information obtainer 10020 obtains transform information of the color difference block when the adaptive transform kernel can be applied to the color difference block. The conversion information corresponds to the above-described AMT related information.
변환 정보(즉, AMT 관련 정보)는, 색차 블록과 관련된 휘도 블록에 적응 변환 커널이 적용되었는지 여부를 지시하는 제1 변환 정보(일 예로, AMT 적용 여부를 나타내는 플래그)를 포함한다. 그리고, 휘도 블록에 적응 변환 커널이 적용된 경우, 변환 정보는 휘도 블록에 수평 방향으로 적용된 변환 및 수직 방향으로 적용된 변환의 조합을 지시하는 제2 변환 정보(일 예로, 최적의 변환 세트를 지시하는 정보)를 더 포함할 수 있다.The conversion information (ie, AMT related information) includes first conversion information (eg, a flag indicating whether to apply AMT) indicating whether the adaptive conversion kernel has been applied to the luminance block associated with the chrominance block. When the adaptive transform kernel is applied to the luminance block, the transformation information may include second transformation information indicating a combination of a transformation applied in the horizontal direction and a transformation applied in the vertical direction (for example, information indicating an optimal transformation set). ) May be further included.
색차 블록 역변환부(10030)는 획득된 변환 정보에 기초하여 색차 블록을 역변환한다. 색차 블록 역변환부는, 제1 변환 정보가 휘도 블록에 적응 변환 커널이 적용 되었음을 지시하면, 제2 변환 정보가 지시하는 변환의 조합을 이용하여 색차 블록의 역변환을 수행할 수 있다.The color difference block inverse transform unit 10030 inversely transforms the color difference block based on the obtained conversion information. When the first transform information indicates that the adaptive transform kernel is applied to the luminance block, the color difference block inverse transform unit may perform inverse transform of the color difference block using a combination of transforms indicated by the second transform information.
적응 변환 커널 적용 결정부(10010)는, 색차 블록의 예측 모드가 인트라 예측 모드인 경우, 색차 블록의 크기, 또는 인트라 예측 모드가 특정 인트라 예측 모드인지에 기초하여 적응 변환 커널의 적용 가능 여부를 결정할 수 있다. When the prediction mode of the chrominance block is an intra prediction mode, the adaptive transform kernel application determining unit 10010 determines whether to apply the adaptive transform kernel based on the size of the chrominance block or whether the intra prediction mode is a specific intra prediction mode. Can be.
적응 변환 커널 적용 결정부(10010)는, 색차 블록의 예측 모드가 인터 예측 모드인 경우, 색차 블록의 크기, 색차 블록의 예측 블록과 휘도 블록의 예측 블록의 상관도, 또는, 색차 블록의 예측 블록과 휘도 블록의 복원 블록의 상관도에 기초하여, 적응 변환 커널의 적용 가능 여부를 결정할 수 있다.When the prediction mode of the color difference block is the inter prediction mode, the adaptive transform kernel application determining unit 10010 may determine the size of the color difference block, the correlation between the prediction block of the color difference block and the prediction block of the luminance block, or the prediction block of the color difference block. Based on the correlation between the reconstructed blocks of the and the luma blocks, it may be determined whether the adaptive transform kernel is applicable.
적응 변환 커널 적용 결정부(10010)는, 색차 블록의 크기가 4x4 이상 또는 64x64 이하이면, 색차 블록에 적응 변환 커널을 적용 가능한 것으로 결정할 수 있다.  The adaptive transform kernel application determiner 10010 may determine that the adaptive transform kernel is applicable to the color difference block when the size of the color difference block is 4x4 or more or 64x64 or less.
또한, 적응 변환 커널 적용 결정부(10010)는, 특정 인트라 예측 모드가, 색차 블록의 색차 화소값을 복원된 휘도 화소값을 이용하여 예측하는 제1 모드(즉, LM 모드), 또는, 색차 블록과 대응되는 위치의 휘도 블록의 예측 방향을 사용하는 제2 모드(즉, DM 모드)인 경우, 색차 블록에 적응 변환 커널이 적용 가능한 것으로 결정할 수 있다.In addition, the adaptive transform kernel application determining unit 10010 may include a first mode (that is, an LM mode) in which a specific intra prediction mode predicts a color difference pixel value of a color difference block using the reconstructed luminance pixel value, or a color difference block. In the case of the second mode (ie, the DM mode) using the prediction direction of the luminance block at the position corresponding to, it may be determined that the adaptive transform kernel is applicable to the chrominance block.
변환 정보 획득부(10020)는, 색차 블록과 휘도 블록의 모양이 동일한 경우, 색차 블록과 대응되는 위치에 존재하는 휘도 블록으로부터 변환 정보를 획득할 수 있다. When the chrominance block and the luminance block have the same shape, the transformation information acquisition unit 10020 may obtain the transformation information from the luminance block existing at the position corresponding to the chrominance block.
변환 정보 획득부(10020)는, 색차 블록과 휘도 블록의 모양이 상이한 경우, 복수의 휘도 블록들 중 하나를 휘도 블록으로 선택하고, 선택된 하나의 휘도 블록으로부터 변환 정보를 획득할 수 있다. When the shape of the chrominance block and the luminance block are different from each other, the transformation information acquisition unit 10020 may select one of the plurality of luminance blocks as the luminance block, and obtain the transformation information from the selected luminance block.
변환 정보 획득부(10020)는, 색차 블록의 특정 위치와 대응되는 위치에 존재하는 휘도 블록을 선택하거나, 색차 블록과 겹치는 영역의 넓이가 가장 큰 휘도 블록을 선택하거나, 또는, 색차 블록과 영역이 겹치는 휘도 블록들 중 크기가 가장 큰 휘도 블록을 선택할 수 있다. The conversion information obtaining unit 10020 selects a luminance block existing at a position corresponding to a specific position of the chrominance block, selects a luminance block having the largest area of the region overlapping the chrominance block, or the chrominance block and the region Among the overlapping luminance blocks, the luminance block having the largest size may be selected.
도 11은 본 발명의 일 실시예에 따른, 색차 블록을 복호화하는 방법의 순서도를 나타낸다.11 is a flowchart of a method of decoding a color difference block, according to an embodiment of the present invention.
디코더에 의해 색차 블록의 복호화가 수행된다.Decoding of the chrominance block is performed by the decoder.
디코더는 색차 블록에 적응 변환 커널이 적용 가능한지 여부를 결정한다(S11010). 적응 변환 커널은 상술한 AMT에 해당한다. 이 절차는 상술한 실시예 1 내지 3에서 개시된 AMT 적용 가능 여부를 결정하는 절차와 동일 또는 유사하게 수행될 수 있으므로 자세한 설명을 생략한다.The decoder determines whether the adaptive transform kernel is applicable to the color difference block (S11010). The adaptive transform kernel corresponds to the AMT described above. Since this procedure may be performed in the same or similar manner as the procedure for determining whether the AMT described in the above embodiments 1 to 3 can be applied, a detailed description thereof will be omitted.
이후, 디코더는 색차 블록에 적응 변환 커널이 적용 가능한 경우, 색차 블록의 변환 정보를 획득한다(S11020). 변환 정보는 상술한 AMT 정보에 해당한다. 변환 정보는 현재 색차 블록에 AMT 적용 가능 여부를 나타내는 정보를 포함하며, AMT가 적용되는 경우 변환 세트에 관한 정보를 더 포함한다. 이 절차는 상술한 실시예 1 내지 3에서 AMT 정보를 획득하는 절차와 동일 또는 유사 하게 수행될 수 있으므로 자세한 설명을 생략한다.Subsequently, when the adaptive transform kernel is applicable to the color difference block, the decoder obtains transform information of the color difference block (S11020). The conversion information corresponds to the above-described AMT information. The transformation information includes information indicating whether AMT is applicable to the current color difference block, and further includes information on a transformation set when AMT is applied. Since this procedure may be performed in the same or similar manner as the procedure of acquiring AMT information in the above-described embodiments 1 to 3, detailed description thereof will be omitted.
이후, 디코더는 획득된 변환 정보를 이용하여 색차 블록을 역변환한다(S11030). 이 절차는 상술한 실시예 1 내지 3에서 AMT 정보를 기초로 역변환이 수행하는 절차와 동일 또는 유사 하게 수행될 수 있으므로 자세한 설명을 생략한다.Thereafter, the decoder inversely transforms the color difference block using the obtained transform information (S11030). This procedure may be performed in the same manner as or similar to the procedure performed by the inverse transform based on the AMT information in Embodiments 1 to 3, and thus, a detailed description thereof will be omitted.
이상에서 설명된 실시예들은 본 발명의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 발명의 실시예를 구성하는 것도 가능하다. 본 발명의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.The embodiments described above are the components and features of the present invention are combined in a predetermined form. Each component or feature is to be considered optional unless stated otherwise. Each component or feature may be embodied in a form that is not combined with other components or features. It is also possible to combine some of the components and / or features to form an embodiment of the invention. The order of the operations described in the embodiments of the present invention may be changed. Some components or features of one embodiment may be included in another embodiment or may be replaced with corresponding components or features of another embodiment. It is obvious that the claims may be combined to form an embodiment by combining claims that do not have an explicit citation relationship in the claims or as new claims by post-application correction.
본 발명에 따른 실시예는 다양한 수단, 예를 들어, 하드웨어, 펌웨어(firmware), 소프트웨어 또는 그것들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 본 발명의 일 실시예는 하나 또는 그 이상의 ASICs(application specific integrated circuits), DSPs(digital signal processors), DSPDs(digital signal processing devices), PLDs(programmable logic devices), FPGAs(field programmable gate arrays), 프로세서, 콘트롤러, 마이크로 콘트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다.Embodiments according to the present invention may be implemented by various means, for example, hardware, firmware, software, or a combination thereof. In the case of a hardware implementation, an embodiment of the present invention may include one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs ( field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, and the like.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 발명의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고 받을 수 있다.In the case of implementation by firmware or software, an embodiment of the present invention may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above. The software code may be stored in memory and driven by the processor. The memory may be located inside or outside the processor, and may exchange data with the processor by various known means.
본 발명은 본 발명의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 발명의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 발명의 등가적 범위 내에서의 모든 변경은 본 발명의 범위에 포함된다.It will be apparent to those skilled in the art that the present invention may be embodied in other specific forms without departing from the essential features of the present invention. Accordingly, the above detailed description should not be construed as limiting in all aspects and should be considered as illustrative. The scope of the invention should be determined by reasonable interpretation of the appended claims, and all changes within the equivalent scope of the invention are included in the scope of the invention.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.As mentioned above, preferred embodiments of the present invention are disclosed for purposes of illustration, and those skilled in the art can improve and change various other embodiments within the spirit and technical scope of the present invention disclosed in the appended claims below. , Replacement or addition would be possible.

Claims (13)

  1. 영상의 색차 블록을 복호화하는 방법에 있어서,In the method for decoding the chrominance block of the image,
    상기 색차 블록에 적응 변환 커널(Adaptive transform kernel)이 적용 가능한지 여부를 결정하는 단계;Determining whether an adaptive transform kernel is applicable to the chrominance block;
    상기 색차 블록에 상기 적응 변환 커널이 적용 가능한 경우, 상기 색차 블록의 변환 정보를 획득하는 단계; 및Acquiring transform information of the color difference block when the adaptive transform kernel is applicable to the color difference block; And
    상기 획득된 변환 정보를 이용하여 상기 색차 블록을 역변환하는 단계를 포함하는 방법.And inversely transforming the chrominance block using the obtained transform information.
  2. 제1항에 있어서,The method of claim 1,
    상기 적응 변환 커널은, 상기 색차 블록의 예측 모드에 따라 상기 색차 블록의 수평 방향으로 적용되는 제1 변환 및 수직 방향으로 적용되는 제2 변환의 조합이 결정되는 방법.And wherein the adaptive transform kernel determines a combination of a first transform applied in a horizontal direction of the chrominance block and a second transform applied in a vertical direction according to the prediction mode of the chrominance block.
  3. 제1항에 있어서,The method of claim 1,
    상기 변환 정보를 획득하는 단계에 있어서, In acquiring the conversion information,
    상기 변환 정보는, 상기 색차 블록과 관련된 휘도 블록에 상기 적응 변환 커널이 적용되었는지 여부를 지시하는 제1 변환 정보를 포함하되,The transformation information includes first transformation information indicating whether the adaptive transformation kernel is applied to a luminance block associated with the chrominance block.
    상기 휘도 블록에 상기 적응 변환 커널이 적용된 경우, 상기 휘도 블록에 수평 방향으로 적용된 변환 및 수직 방향으로 적용된 변환의 조합을 지시하는 제2 변환 정보를 더 포함하는 방법.And when the adaptive transform kernel is applied to the luminance block, further comprising second transform information indicating a combination of a transform applied in the horizontal direction and a transform applied in the vertical direction to the luminance block.
  4. 제3항에 있어서,The method of claim 3,
    상기 제1 변환 정보가 상기 휘도 블록에 상기 적응 변환 커널이 적용되었음을 지시하면, If the first transform information indicates that the adaptive transform kernel has been applied to the luminance block,
    상기 색차 블록을 역변환하는 단계에 있어서,Inversely transforming the chrominance block,
    상기 제2 변환 정보가 지시하는 변환의 조합을 이용하여 상기 색차 블록의 역변환이 수행되는 방법.An inverse transform of the chrominance block is performed using a combination of transforms indicated by the second transform information.
  5. 제1항에 있어서,The method of claim 1,
    상기 적응 변환 커널이 적용 가능한지 여부를 결정하는 단계에 있어서,In determining whether the adaptive transform kernel is applicable,
    상기 색차 블록의 예측 모드가 인트라 예측 모드인 경우, When the prediction mode of the chrominance block is an intra prediction mode,
    상기 색차 블록의 크기, 또는 상기 색차 블록의 인트라 예측 모드가 특정 인트라 예측 모드인지에 기초하여 상기 적응 변환 커널의 적용 가능 여부가 결정되는 방법.The applicability of the adaptive transform kernel is determined based on the size of the chrominance block or whether the intra prediction mode of the chrominance block is a specific intra prediction mode.
  6. 제5항에 있어서,The method of claim 5,
    상기 색차 블록의 크기가 4x4 이상 또는 64x64 이하이면, 상기 적응 변환 커널이 상기 색차 블록에 적용될 수 있는 방법.If the size of the chrominance block is greater than 4x4 or less than 64x64, the adaptive transform kernel may be applied to the chrominance block.
  7. 제5항에 있어서,The method of claim 5,
    상기 색차 블록의 특정 인트라 예측 모드는, 색차 블록의 색차 화소값을 복원된 휘도 화소값을 이용하여 예측하는 제1 모드, 또는, 색차 블록과 대응되는 위치의 휘도 블록의 예측 방향을 사용하는 제2 모드인 방법.The specific intra prediction mode of the chrominance block may include a first mode for predicting the chrominance pixel value of the chrominance block using the reconstructed luminance pixel value, or a second using the prediction direction of the luminance block at a position corresponding to the chrominance block. How is the mode.
  8. 제3항에 있어서,The method of claim 3,
    상기 적응 변환 커널이 적용 가능한지 여부를 결정하는 단계에 있어서,In determining whether the adaptive transform kernel is applicable,
    상기 색차 블록의 예측 모드가 인터 예측 모드인 경우,When the prediction mode of the chrominance block is an inter prediction mode,
    상기 색차 블록의 크기, 상기 색차 블록의 예측 블록과 상기 휘도 블록의 예측 블록의 상관도, 또는, 상기 색차 블록의 예측 블록과 상기 휘도 블록의 복원 블록의 상관도에 기초하여, 상기 적응 변환 커널의 적용 가능 여부가 결정되는 방법.Based on the magnitude of the chrominance block, the correlation between the prediction block of the chrominance block and the prediction block of the luminance block, or the correlation between the prediction block of the chrominance block and the reconstruction block of the luminance block. How is it applicable?
  9. 제3항에 있어서,The method of claim 3,
    상기 변환 정보를 획득하는 단계에 있어서,In acquiring the conversion information,
    상기 색차 블록과 상기 휘도 블록의 모양이 동일한 경우, 상기 색차 블록과 대응되는 위치에 존재하는 휘도 블록으로부터 상기 변환 정보가 획득되며, When the color difference block and the luminance block have the same shape, the conversion information is obtained from a luminance block existing at a position corresponding to the color difference block.
    상기 색차 블록과 상기 휘도 블록의 모양이 상이한 경우, If the shape of the color difference block and the luminance block is different,
    복수의 휘도 블록들 중 하나를 상기 휘도 블록으로 선택하는 단계; 및Selecting one of a plurality of luminance blocks as the luminance block; And
    상기 선택된 하나의 휘도 블록으로부터 상기 변환 정보가 획득하는 단계를 더 포함하는 방법.Obtaining the conversion information from the selected one luminance block.
  10. 제9항에 있어서,The method of claim 9,
    상기 복수의 휘도 블록들 중 하나를 상기 휘도 블록으로 선택하는 단계에 있어서,Selecting one of the plurality of luminance blocks as the luminance block;
    상기 색차 블록의 특정 위치와 대응되는 위치에 존재하는 휘도 블록이 선택되거나, 상기 색차 블록과 겹치는 영역의 넓이가 가장 큰 휘도 블록이 선택되거나, 또는, 상기 색차 블록과 영역이 겹치는 휘도 블록들 중 크기가 가장 큰 휘도 블록이 선택되는 방법.A luminance block existing at a position corresponding to a specific position of the chrominance block is selected, or a luminance block having the largest area of the area overlapping the chrominance block is selected, or a size among luminance blocks where the color difference block and the area overlap Where the largest luminance block is selected.
  11. 제1항에 있어서,The method of claim 1,
    상기 변환 정보를 획득하는 단계에 있어서,In acquiring the conversion information,
    상기 변환 정보가 인코더로부터 전송되고, The conversion information is transmitted from an encoder,
    상기 변환 정보는, 상기 색차 블록에 상기 적응 변환 커널이 적용 되었는지를 지시하는 제1 변환 정보를 포함하되, The transformation information includes first transformation information indicating whether the adaptive transformation kernel is applied to the chrominance block.
    상기 색차 블록에 상기 적응 변환 커널이 적용된 경우, 상기 변환 정보는 상기 색차 블록에 수평 방향으로 적용되는 변환 및 수직 방향으로 적용되는 변환의 조합을 지시하는 제2 변환 정보를 더 포함하는 방법.And when the adaptive transform kernel is applied to the chrominance block, the transform information further includes second transform information indicating a combination of a transform applied in a horizontal direction and a transform applied in a vertical direction to the chrominance block.
  12. 제1항에 있어서,The method of claim 1,
    상기 변환 정보를 획득하는 단계에 있어서,In acquiring the conversion information,
    상기 색차 블록의 예측 모드가 특정 인트라 예측 모드이면, 상기 색차 블록과 관련된 휘도 블록의 변환 정보가 상기 색차 블록의 변환 정보로써 획득되고,If the prediction mode of the chrominance block is a specific intra prediction mode, transformation information of the luminance block associated with the chrominance block is obtained as transformation information of the chrominance block,
    그렇지 않으면, 상기 변환 정보가 인코더로부터 전송되는 방법.Otherwise, the conversion information is transmitted from an encoder.
  13. 영상의 색차 블록을 복호화하는 장치에 있어서, An apparatus for decoding a chrominance block of an image,
    상기 장치는 상기 색차 블록의 역양자화된 변환 계수들을 역변환하는 역변환부를 포함하되, 상기 역변환부는, The apparatus includes an inverse transform unit for inversely transforming inverse quantized transform coefficients of the chrominance block, wherein the inverse transform unit includes:
    상기 색차 블록에 적응 변환 커널(Adaptive transform kernel)이 적용 가능한지 여부를 결정하는 적응 변환 커널 적용 결정부;An adaptive transform kernel application determiner configured to determine whether an adaptive transform kernel is applicable to the color difference block;
    상기 색차 블록에 상기 적응 변환 커널이 적용 가능한 경우, 상기 색차 블록의 변환 정보를 획득하는 변환 정보 획득부;A transformation information obtaining unit obtaining transformation information of the chrominance block when the adaptive transformation kernel is applicable to the chrominance block;
    상기 획득된 변환 정보를 이용하여 상기 색차 블록을 역변환하는 색차 블록 역변환부;를 포함하는 장치.And a color difference block inverse transform unit which inversely transforms the color difference block by using the obtained conversion information.
PCT/KR2018/002929 2017-03-22 2018-03-13 Image processing method and device therefor WO2018174457A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762474612P 2017-03-22 2017-03-22
US62/474,612 2017-03-22

Publications (1)

Publication Number Publication Date
WO2018174457A1 true WO2018174457A1 (en) 2018-09-27

Family

ID=63585476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2018/002929 WO2018174457A1 (en) 2017-03-22 2018-03-13 Image processing method and device therefor

Country Status (1)

Country Link
WO (1) WO2018174457A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031316A (en) * 2018-10-09 2020-04-17 腾讯美国有限责任公司 Video decoding method and device, computer equipment and storage medium
WO2020159198A1 (en) * 2019-01-28 2020-08-06 주식회사 엑스리스 Video signal encoding/decoding method and device therefor
CN112422991A (en) * 2019-08-23 2021-02-26 杭州海康威视数字技术股份有限公司 Encoding method, decoding method and device
CN112511832A (en) * 2019-09-16 2021-03-16 腾讯美国有限责任公司 Video decoding method, device and readable storage medium
CN113170147A (en) * 2018-12-04 2021-07-23 华为技术有限公司 Video encoder, video decoder, and corresponding methods
RU2810900C2 (en) * 2019-02-22 2023-12-29 Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд. Selection of neighbouring sample for internal prediction
US11902507B2 (en) 2018-12-01 2024-02-13 Beijing Bytedance Network Technology Co., Ltd Parameter derivation for intra prediction
US11930185B2 (en) 2018-11-06 2024-03-12 Beijing Bytedance Network Technology Co., Ltd. Multi-parameters based intra prediction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101250608B1 (en) * 2012-06-15 2013-04-09 한국방송공사 Method for encoding partitioned block in video encoding
KR20130128441A (en) * 2010-12-21 2013-11-26 가부시키가이샤 엔.티.티.도코모 Enhanced intra-prediction coding using planar representations
KR20160108618A (en) * 2011-10-19 2016-09-19 주식회사 케이티 Method and apparatus for encoding/decoding image
KR20170000394A (en) * 2012-09-28 2017-01-02 캐논 가부시끼가이샤 Method, apparatus and system for encoding and decoding the transform units of a coding unit
KR20170003476A (en) * 2015-06-30 2017-01-09 한국과학기술원 Image conversion apparatus and image conversion method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130128441A (en) * 2010-12-21 2013-11-26 가부시키가이샤 엔.티.티.도코모 Enhanced intra-prediction coding using planar representations
KR20160108618A (en) * 2011-10-19 2016-09-19 주식회사 케이티 Method and apparatus for encoding/decoding image
KR101250608B1 (en) * 2012-06-15 2013-04-09 한국방송공사 Method for encoding partitioned block in video encoding
KR20170000394A (en) * 2012-09-28 2017-01-02 캐논 가부시끼가이샤 Method, apparatus and system for encoding and decoding the transform units of a coding unit
KR20170003476A (en) * 2015-06-30 2017-01-09 한국과학기술원 Image conversion apparatus and image conversion method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031316A (en) * 2018-10-09 2020-04-17 腾讯美国有限责任公司 Video decoding method and device, computer equipment and storage medium
CN111031316B (en) * 2018-10-09 2023-03-24 腾讯美国有限责任公司 Video decoding method and device, computer equipment and storage medium
US11930185B2 (en) 2018-11-06 2024-03-12 Beijing Bytedance Network Technology Co., Ltd. Multi-parameters based intra prediction
US11902507B2 (en) 2018-12-01 2024-02-13 Beijing Bytedance Network Technology Co., Ltd Parameter derivation for intra prediction
CN113170147A (en) * 2018-12-04 2021-07-23 华为技术有限公司 Video encoder, video decoder, and corresponding methods
US11722668B2 (en) 2018-12-04 2023-08-08 Huawei Technologies Co., Ltd. Video encoder, video decoder, and corresponding method
CN112514384A (en) * 2019-01-28 2021-03-16 株式会社 Xris Video signal encoding/decoding method and apparatus thereof
US11570436B2 (en) 2019-01-28 2023-01-31 Apple Inc. Video signal encoding/decoding method and device therefor
WO2020159198A1 (en) * 2019-01-28 2020-08-06 주식회사 엑스리스 Video signal encoding/decoding method and device therefor
US11863745B2 (en) 2019-01-28 2024-01-02 Apple Inc. Video signal encoding/decoding method and device therefor
RU2810900C2 (en) * 2019-02-22 2023-12-29 Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд. Selection of neighbouring sample for internal prediction
CN112422991A (en) * 2019-08-23 2021-02-26 杭州海康威视数字技术股份有限公司 Encoding method, decoding method and device
CN112422991B (en) * 2019-08-23 2022-04-15 杭州海康威视数字技术股份有限公司 Encoding method, decoding method and device
CN112511832A (en) * 2019-09-16 2021-03-16 腾讯美国有限责任公司 Video decoding method, device and readable storage medium
CN112511832B (en) * 2019-09-16 2023-06-20 腾讯美国有限责任公司 Video decoding method, apparatus and readable storage medium

Similar Documents

Publication Publication Date Title
WO2018026219A1 (en) Video signal processing method and device
WO2017222326A1 (en) Video signal processing method and device
WO2018030599A1 (en) Intra-prediction mode-based image processing method and device therefor
WO2017018664A1 (en) Intra prediction mode-based image processing method and apparatus therefor
WO2017204532A1 (en) Image encoding/decoding method and recording medium for same
WO2017176030A1 (en) Method and apparatus for processing video signal
WO2018026118A1 (en) Image encoding/decoding method
WO2018026166A1 (en) Image encoding/decoding method and apparatus, and recording medium storing bitstream
WO2018070809A1 (en) Image processing method, and image decoding and encoding method using same
WO2017171370A1 (en) Method and apparatus for processing video signal
WO2017204427A1 (en) Image processing method, and image encoding and decoding method using same
WO2018047995A1 (en) Intra-prediction mode-based image processing method and apparatus therefor
WO2020111785A1 (en) Method for encoding/decoding video signal and apparatus therefor
WO2018124843A1 (en) Image encoding/decoding method, apparatus, and recording medium for storing bitstream
WO2018174457A1 (en) Image processing method and device therefor
WO2017086747A1 (en) Method and device for encoding/decoding image using geometrically modified picture
WO2018124333A1 (en) Intra prediction mode-based image processing method, and apparatus therefor
WO2018212579A1 (en) Method and device for video signal processing
WO2020050685A1 (en) Method and device for coding/decoding image using intra prediction
WO2020004990A1 (en) Method for processing image on basis of inter-prediction mode and device therefor
WO2020071616A1 (en) Cclm-based intra-prediction method and apparatus therefor
WO2019190201A1 (en) Video signal processing method and device
WO2016200234A1 (en) Method for encoding/decoding image and device therefor
WO2018056701A1 (en) Method and apparatus for processing video signal
WO2018066958A1 (en) Method and apparatus for processing video signal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18770851

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18770851

Country of ref document: EP

Kind code of ref document: A1