WO2017175897A1 - Method and apparatus for encoding/decoding video signal by using intra-residual prediction - Google Patents

Method and apparatus for encoding/decoding video signal by using intra-residual prediction Download PDF

Info

Publication number
WO2017175897A1
WO2017175897A1 PCT/KR2016/003667 KR2016003667W WO2017175897A1 WO 2017175897 A1 WO2017175897 A1 WO 2017175897A1 KR 2016003667 W KR2016003667 W KR 2016003667W WO 2017175897 A1 WO2017175897 A1 WO 2017175897A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
prediction
block
residual signal
current block
Prior art date
Application number
PCT/KR2016/003667
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 엘지전자(주)
Priority to PCT/KR2016/003667 priority Critical patent/WO2017175897A1/en
Publication of WO2017175897A1 publication Critical patent/WO2017175897A1/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
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • 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
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks

Definitions

  • the present invention relates to a method and apparatus for encoding / decoding a video signal, and more particularly, to a technique for processing a video signal using intra residual prediction.
  • 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.
  • the present invention seeks to provide a method for generating a more accurate prediction block.
  • the present invention is to provide a method for reducing the data amount of the residual signal.
  • the present invention is to provide a method for modifying the prediction signal using the reference residual signal in performing the intra prediction.
  • the present invention also provides a method of deriving a residual signal from other coding information transmitted without transmitting the residual signal.
  • the present invention is to provide a method for searching for a reference block for intra prediction using the information of the neighboring region which has already been reconstructed, and generating a reference residual signal using the same.
  • the present invention is to provide a method for designating a portion of the restoration area as a template and searching for a similar area using the template.
  • the present invention is to provide a method for searching a reference region by using the transmitted position information.
  • the present invention provides a method of designing a coding tool for high efficiency compression.
  • the present invention provides a method for generating a more accurate prediction block.
  • the present invention also provides a method of reducing the data amount of the residual signal.
  • the present invention also provides a method of modifying a prediction signal using a reference residual signal in performing intra prediction.
  • the present invention also provides a method of deriving a residual signal from other coding information transmitted without transmitting the residual signal.
  • the present invention provides a method of searching for a reference block for intra prediction using information of a neighboring region that has already been reconstructed, and generating a reference residual signal using the same.
  • the present invention provides a method of designating a portion of a restoration area as a template and searching for a similar area using the template.
  • the present invention also provides a method for searching a reference region by using transmitted location information.
  • the present invention can reduce the bit rate by transmitting a residual signal at a low cost when using the intra prediction method when coding a still image or a video.
  • the present invention can generate a more accurate prediction block by modifying the prediction signal using the reference residual signal, thereby reducing the data amount of the residual signal, thereby reducing the amount of energy transmitted thereto. have.
  • the present invention can reduce the amount of data to be transmitted by deriving the residual signal from other coding information transmitted without transmitting the residual signal.
  • the present invention can generate a more accurate prediction block by searching for a reference block for intra prediction using information of the neighboring region which has already been reconstructed and generating a reference residual signal using the same.
  • the present invention can improve the prediction accuracy by designating a portion of the reconstructed region as a template and searching for a similar region using the template.
  • the present invention can improve the prediction accuracy by searching the reference region using the transmitted position information.
  • FIG. 1 is a schematic block diagram of an encoder in which encoding of a video signal is performed as an embodiment to which the present invention is applied.
  • FIG. 2 is a schematic block diagram of a decoder in which decoding of a video signal is performed as an embodiment to which the present invention is applied.
  • FIG. 3 is a diagram for describing a division structure of a coding unit according to an embodiment to which the present invention is applied.
  • FIG. 4 is a diagram for describing a prediction unit according to an embodiment to which the present invention is applied.
  • FIG. 5 is a diagram for describing an intra prediction method according to an embodiment to which the present invention is applied.
  • FIG. 6 is a diagram for describing a prediction direction according to an intra prediction mode according to an embodiment to which the present invention is applied.
  • FIG. 7 is a schematic block diagram of an encoder in which encoding of a video signal is performed, according to another embodiment to which the present invention is applied.
  • FIG. 8 is a schematic block diagram of a decoder in which decoding of a video signal is performed as another embodiment to which the present invention is applied.
  • FIG. 9 is a diagram for describing a method of searching for a reference block using surrounding restoration information according to an embodiment to which the present invention is applied.
  • FIG. 10 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
  • FIG. 11 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
  • FIG. 12 is a diagram for describing a method of searching for a reference block using location information according to an embodiment to which the present invention is applied.
  • FIG. 13 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
  • 14 is an embodiment to which the present invention is applied and is a decoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
  • FIG. 15 is a schematic block diagram of an encoder or a decoder that performs coding using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
  • 16 is a flowchart illustrating a method of encoding a video signal using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
  • 17 is a flowchart illustrating a method of reconstructing a video signal by inducing a residual signal according to another embodiment to which the present invention is applied.
  • FIG. 18 is a flowchart illustrating a method of encoding a video signal using a residual signal derived based on a searched reference block and searching for a reference block using position information according to another embodiment to which the present invention is applied.
  • 19 is a flowchart illustrating a method of reconstructing a video signal by searching for a reference block using position information and inducing a residual signal based on the found reference block according to another embodiment to which the present invention is applied.
  • the present invention provides a method of decoding a video signal, the method comprising: searching for a reference block for a current block, wherein the reference block is already reconstructed in the current frame; Generating a reference prediction signal representing a prediction value for the searched reference block; Generating a reference residual signal by subtracting the reference prediction signal from the reference block; Compensating for the residual signal of the current block obtained from the video signal based on the reference residual signal; And reconstructing the current block by adding the compensated residual signal and the prediction signal of the current block.
  • the reference prediction signal is generated according to the intra prediction mode of the current block.
  • the reference block is searched based on a template, and the template has a predetermined shape and is composed of pixels adjacent to the current block.
  • the reference block is searched based on the positional information, and the positional information is extracted from the video signal.
  • the present invention may further include extracting flag information indicating whether a residual signal exists from the video signal, and is performed when the residual signal exists according to the flag information. .
  • the present invention provides a method of encoding a video signal, comprising: searching for a reference block for a current block, wherein the reference block is already reconstructed in the current frame; Generating a reference residual signal of the reference block; Generating a prediction signal of the current block according to an intra prediction mode of the current block; Updating the prediction signal of the current block by adding the reference residual signal to the prediction signal of the current block; And generating a residual signal of the current block based on the updated prediction signal.
  • the present invention may further include generating a reference prediction signal indicating a prediction value for the searched reference block, wherein the reference prediction signal is generated according to an intra prediction mode of the current block.
  • the reference block is searched based on a template, and the template has a predetermined shape and is composed of pixels adjacent to the current block.
  • the present invention includes the steps of encoding the position information of the reference block; And transmitting the position information of the reference block.
  • the present invention includes the steps of performing a transform on the residual signal of the current block; Performing quantization on the converted residual signal; And performing entropy encoding on the quantized residual signal.
  • the present invention provides a device for decoding a video signal, search for a reference block for the current block, generates a reference prediction signal representing a prediction value for the searched reference block, the reference block in the reference prediction signal
  • a reference residual signal generator for generating a reference residual signal by subtracting a
  • a residual signal compensator configured to compensate the residual signal of the current block obtained from the video signal based on the reference residual signal
  • a reconstruction unit configured to reconstruct the current block by adding the compensated residual signal and the prediction signal of the current block, wherein the reference block is already reconstructed in the current frame.
  • the present invention provides a device for encoding a video signal, search for a reference block for the current block, generates a reference residual signal of the reference block, according to the intra prediction mode of the current block
  • a prediction unit generating a prediction signal and updating the prediction signal of the current block by adding the reference residual signal to the prediction signal of the current block
  • a residual signal acquirer configured to generate a residual signal of the current block based on the updated prediction signal.
  • the prediction unit generates a reference prediction signal indicating a prediction value for the searched reference block, and the reference prediction signal is generated according to the intra prediction mode of the current block.
  • the conversion unit for performing the transformation on the residual signal of the current block A quantization unit performing quantization on the converted residual signal; And an entropy encoding unit for performing entropy encoding on the quantized residual signal.
  • terms used in the present invention may be replaced for more appropriate interpretation when there are general terms selected to describe the invention or other terms having similar meanings.
  • signals, data, samples, pictures, frames, blocks, etc. may be appropriately replaced and interpreted in each coding process.
  • partitioning, decomposition, splitting, and division may be appropriately replaced and interpreted in each coding process.
  • FIG. 1 is a schematic block diagram of an encoder in which encoding of a video signal is performed as an embodiment to which the present invention is applied.
  • the encoder 100 may include an image splitter 110, a transformer 120, a quantizer 130, an inverse quantizer 140, an inverse transformer 150, a filter 160, and a decoder. It may include a decoded picture buffer (DPB) 170, an inter predictor 180, an intra predictor 185, and an entropy encoder 190.
  • DPB decoded picture buffer
  • the image divider 110 may divide an input image (or a picture or a frame) input to the encoder 100 into one or more processing units.
  • the processing unit may be a Coding Tree Unit (CTU), a Coding Unit (CU), a Prediction Unit (PU), or a Transform Unit (TU).
  • CTU Coding Tree Unit
  • CU Coding Unit
  • PU Prediction Unit
  • TU Transform Unit
  • the terms are only used for the convenience of description of the present invention, the present invention is not limited to the definition of the terms.
  • the term coding unit is used as a unit used in encoding or decoding a video signal, but the present invention is not limited thereto and may be appropriately interpreted according to the present invention.
  • the encoder 100 may generate a residual signal by subtracting a prediction signal output from the inter predictor 180 or the intra predictor 185 from the input image signal and generate the residual signal.
  • the dual signal is transmitted to the converter 120.
  • the transform unit 120 may generate a transform coefficient by applying a transform technique to the residual signal.
  • the conversion process may be applied to pixel blocks having the same size as the square, or may be applied to blocks of variable size rather than square.
  • the quantization unit 130 may quantize the transform coefficients and transmit the quantized coefficients to the entropy encoding unit 190, and the entropy encoding unit 190 may entropy code the quantized signal and output the bitstream.
  • the quantized signal output from the quantization unit 130 may be used to generate a prediction signal.
  • the quantized signal may restore the residual 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 residual signal to a prediction signal output from the inter predictor 180 or the intra predictor 185.
  • 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 predictor 180. 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 180.
  • the inter prediction unit 180 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 180 may interpolate the signals between pixels in sub-pixel units by applying a lowpass filter in order to solve performance degradation due to discontinuity or quantization of such signals.
  • the subpixels mean virtual pixels generated by applying an interpolation filter
  • the integer pixels mean actual pixels 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 180 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 185 may predict the current block by referring to samples around the block to which current encoding is to be performed.
  • the intra prediction unit 185 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. Then, 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.
  • An embodiment of the present invention provides a method of predicting a residual signal generated during intra prediction from an image which is already reconstructed from a surrounding.
  • the region most similar to the surrounding region of the region to be coded is searched in the reconstructed image, and when the region most similar to the region is searched, the prediction residual signal of the region to which the residual signal of the region is currently coded.
  • another embodiment of the present invention may receive the position information most similar to the peripheral region of the region to be coded from the encoder, and utilize the residual signal of the region as a predictive residual signal of the region to be currently coded.
  • a prediction signal generated by the inter predictor 180 or the intra predictor 185 may be used to generate a reconstruction signal or to generate a residual signal.
  • FIG. 2 is a schematic block diagram of a decoder in which decoding of a video signal is performed as an embodiment to which the present invention is applied.
  • the decoder 200 includes an entropy decoding unit 210, an inverse quantizer 220, an inverse transform unit 230, a filtering unit 240, and a decoded picture buffer unit (DPB) 250. ), An inter predictor 260, and an intra predictor 265.
  • the reconstructed video signal output through the decoder 200 may be reproduced through the reproducing apparatus.
  • the decoder 200 may receive a signal output from the encoder 100 of FIG. 1, and the received signal may be 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 transformer 230 inversely transforms a transform coefficient to obtain a residual signal.
  • a reconstructed signal is generated by adding the obtained residual signal to a prediction signal output from the inter predictor 260 or the intra predictor 265.
  • the filtering unit 240 applies filtering to the reconstructed signal and outputs the filtering to the reproducing apparatus or transmits it to the decoded picture buffer unit 250.
  • the filtered signal transmitted to the decoded picture buffer unit 250 may be used as the reference picture in the inter predictor 260.
  • the embodiments described by the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoder 100 are respectively the filtering unit 240, the inter prediction unit 260, and the decoder. The same may be applied to the intra predictor 265.
  • FIG. 3 is a diagram for describing a division structure of a coding unit according to an embodiment to which the present invention is applied.
  • the encoder may split one image (or picture) in units of a rectangular Coding Tree Unit (CTU).
  • CTU Coding Tree Unit
  • one CTU is sequentially encoded according to a raster scan order.
  • the size of the CTU may be set to any one of 64x64, 32x32, and 16x16, but the present invention is not limited thereto.
  • 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 may include a coding tree block (CTB) for a luma component and a coding tree block (CTB) for two chroma components corresponding thereto.
  • One CTU may be decomposed into a quadtree (QT) structure.
  • QT quadtree
  • one CTU may be divided into four units having a square shape and each side is reduced by half in length.
  • the decomposition of this QT structure can be done recursively.
  • a root node of a QT may be associated with a CTU.
  • the QT may be split until it reaches a leaf node, where the leaf node may be referred to as a coding unit (CU).
  • CU coding unit
  • a CU may mean a basic unit of coding in which an input image is processed, for example, intra / inter prediction is performed.
  • the CU may include a coding block (CB) for a luma component and a CB for two chroma components corresponding thereto.
  • CB coding block
  • the size of the CU may be determined as any one of 64x64, 32x32, 16x16, and 8x8.
  • the present invention is not limited thereto, and in the case of a high resolution image, the size of the CU may be larger or more diverse.
  • the CTU corresponds to a root node and has the smallest depth (ie, level 0) value.
  • the CTU may not be divided according to the characteristics of the input image. In this case, the CTU corresponds to a CU.
  • the CTU may be decomposed in QT form, and as a result, lower nodes having a depth of level 1 may be generated. And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of level 1 corresponds to a CU.
  • 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 level 1.
  • At least one of the nodes having a depth of level 1 may be split into QT again.
  • a node that is no longer partitioned (ie, a leaf node) in a lower node having a level 2 depth 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 level 2.
  • At least one of the nodes having a depth of 2 may be divided into QTs.
  • a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of level 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, and level 3 Has a depth of
  • 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 delivered to the decoder.
  • the information may be defined as a split flag and may be represented by a syntax element "split_cu_flag".
  • the division flag may be included in all CUs except the SCU. For example, if the split flag value is '1', the corresponding CU is divided into four CUs again. If the split flag value is '0', the CU is not divided any more and the coding process for the CU is not divided. Can be performed.
  • the division process of the CU has been described as an example, but the QT structure described above may also be applied to the division process of a transform unit (TU) which is a basic unit for performing transformation.
  • TU transform unit
  • the TU may be hierarchically divided into a QT structure from a CU to be coded.
  • a CU may correspond to a root node of a tree for a transform unit (TU).
  • the TU divided from the CU may be divided into smaller lower TUs.
  • the size of the TU may be determined by any one of 32x32, 16x16, 8x8, and 4x4.
  • the present invention is not limited thereto, and in the case of a high resolution image, the size of the TU may be larger or more diverse.
  • information indicating whether the corresponding TU is divided may be delivered to the decoder.
  • the information may be defined as a split transform flag and may be represented by a syntax element "split_transform_flag".
  • the division conversion flag may be included in all TUs except the TU of the minimum size. For example, if the value of the division conversion flag is '1', the corresponding TU is divided into four TUs again. If the value of the division conversion flag is '0', the corresponding TU is no longer divided.
  • a CU is a basic unit of coding in which intra prediction or inter prediction is performed.
  • a CU may be divided into prediction units (PUs).
  • the PU is a basic unit for generating a prediction block, and may generate different prediction blocks in PU units within one CU.
  • the PU may be 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. 4 is a diagram for describing a prediction unit according to an embodiment to which the present invention is applied.
  • 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 may be divided into two types (ie, 2Nx2N or NxN). Can be.
  • N ⁇ N type PU when divided into N ⁇ N type PU, one CU is divided into four PUs, and different prediction blocks are generated for each PU unit.
  • 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, 2Nx2N, NxN, 2NxN). , Nx2N, nLx2N, nRx2N, 2NxnU, 2NxnD).
  • PU splitting in the form of NxN 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).
  • nLx2N, nRx2N, 2NxnU, and 2NxnD types which are Asymmetric Motion Partition (AMP).
  • '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 an optimal CU partitioning process in a 64x64 CTU, rate-distortion cost can be calculated while partitioning from a 64x64 CU to an 8x8 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 for a 64x64 CU.
  • the 32x32 CU is subdivided into four 16x16 CUs, and a partition structure of an optimal PU and TU that generates a minimum rate-distortion value for each 16x16 CU is determined.
  • 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 quadtree structures from one CU to be coded.
  • the TU divided from the CU may be divided into smaller lower TUs.
  • the size of the TU may be set to any one of 32 ⁇ 32, 16 ⁇ 16, 8 ⁇ 8, and 4 ⁇ 4.
  • a root node of the quadtree is associated with a CU.
  • the quadtree is split until it reaches a leaf node, and the leaf node 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.
  • FIG. 5 and 6 illustrate embodiments to which the present invention is applied.
  • FIG. 5 is a diagram illustrating an intra prediction method
  • FIG. 6 is a diagram illustrating a prediction direction according to an intra prediction mode.
  • the decoder may derive an intra prediction mode of the current processing block (S501).
  • 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_angular prediction mode or an intra directional 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 an intra prediction mode and related names
  • FIG. 6 illustrates a prediction direction according to the intra prediction mode.
  • intra prediction prediction is performed on the current processing block based on the derived prediction mode. Since the reference sample used for the prediction and the specific prediction method vary according to the prediction mode, when the current block is encoded in the intra prediction mode, the decoder may derive the prediction mode of the current block to perform the prediction.
  • the decoder may check whether neighboring samples of the current processing block can be used for prediction and configure reference samples to be used for prediction (S502).
  • neighboring samples of the current processing block are samples adjacent to the left boundary of the current processing block of size nSxnS and a total of 2xnS samples neighboring the bottom-left, top 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 reference samples based on the intra prediction mode (S503).
  • 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 may generate a prediction block for the current processing block based on the intra prediction mode and the reference samples (S504). That is, the decoder predicts the current processing block based on the intra prediction mode derived in the intra prediction mode derivation step S501 and the reference samples obtained through the reference sample configuration step S502 and the reference sample filtering step S503.
  • a block may be generated (ie, predictive sample generation).
  • the left boundary sample ie, the sample in the prediction block adjacent to the left boundary
  • the upper side of the prediction block in step S504.
  • (top) boundary samples i.e., samples in prediction blocks adjacent to the upper 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 a 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.
  • FIG. 7 is a schematic block diagram of an encoder in which encoding of a video signal is performed, according to another embodiment to which the present invention is applied.
  • the encoder to which the present invention is applied includes a predictor 700, a transformer 730, a quantizer 740, an inverse quantizer 750, an inverse transformer 760, and a DPB 770. can do.
  • the prediction unit 700 may include at least one of a reference residual signal generator 710, a reference reconstruction signal generator 711, a reference prediction signal generator 712, and an intra predictor 720. have.
  • the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal.
  • the predictor 700 may include both the intra predictor and the inter predictor as described above. In an embodiment of the present invention, the intra predictor is described, but the present invention is not limited thereto.
  • the converter 730, the quantization unit 740, the inverse quantization unit 750, the inverse transform unit 760, and the DPB 770 may be applied to the contents described with reference to FIGS. 1 and 2. Overlapping descriptions will be omitted.
  • the present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding.
  • the region most similar to the peripheral region of the region to be encoded or decoded is searched in the reconstructed image, and if the most similar region is found, the residual signal of the region is currently encoded or decoded. It can be used as a predictive residual signal of a region.
  • the reference reconstruction signal generator 711 may search for a reference block for the current block in the reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof will be described in detail with reference to FIGS. 9 and 12.
  • a reference reconstruction signal Recon ref may be generated from the found reference block.
  • the reference block since the reference block is a signal that has already been restored, it may be referred to as a reference recovery signal.
  • the reference prediction signal generator 712 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the reference prediction signal generator 712 may generate a reference prediction signal by using the peripheral information of the reference block.
  • coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used.
  • the coding information may include at least one of pixel information or prediction mode information.
  • the reference residual signal generator 710 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal.
  • the intra predictor 720 may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal Pre curr of the current block through the intra prediction.
  • the present invention may update or correct the prediction signal Pred curr of the current block to generate a more accurate prediction signal.
  • the prediction signal Pre curr of the current block may be updated by using a reference residual signal Res ref . That is, the updated prediction signal Pre update may be generated by adding the reference residual signal Res ref to the prediction signal Pred curr of the current block.
  • the residual signal Res curr may be converted by the converter 730, quantized by the quantizer 740, and entropy encoded by an entropy encoding unit (not shown).
  • a residual signal (Res curr) is quantized by the inverse quantization by the inverse again positive unit 750 may be inverse transformed by the inverse transformation unit (760).
  • the residual signal Res curr that has undergone the above process is added to the reference prediction signal Pre ref generated by the reference prediction signal generator 712 to generate a reconstruction signal, and the generated reconstruction signal is a DPB 770. ) Can be stored.
  • the residual signal Res curr may be added to a prediction signal Pre curr of the current block generated by the intra predictor 720 to generate a reconstruction signal, and the generated reconstruction signal is DPB ( 770 may be stored.
  • the stored reconstruction signal may be used for inter prediction or intra prediction.
  • FIG. 8 is a schematic block diagram of a decoder in which decoding of a video signal is performed as another embodiment to which the present invention is applied.
  • a decoder to which the present invention is applied includes a reference residual signal generator 810, a reference reconstruction signal generator 811, a reference prediction signal generator 812, a predictor 820, and an inverse quantizer ( 850, an inverse transform unit 860, and a DPB 870.
  • the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal.
  • the prediction unit 820 may include both the intra prediction unit and the inter prediction unit described above. In an embodiment of the present invention, the prediction unit 820 is described based on the intra prediction unit, but the present invention is not limited thereto.
  • the inverse quantization unit 850, the inverse transform unit 860, and the DPB 870 may be applied to the contents described with reference to FIGS. 1, 2, and 7, and redundant descriptions thereof will be omitted.
  • the reference reconstruction signal generator 811 may search for a reference block with respect to the current block in a reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof will be described in detail with reference to FIGS. 9 and 12.
  • a reference reconstruction signal Recon ref may be generated from the found reference block.
  • the reference block since the reference block is a signal that has already been restored, it may be referred to as a reference recovery signal.
  • the reference prediction signal generator 812 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the reference prediction signal generator 812 may generate a reference prediction signal using the surrounding information of the reference block.
  • coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used.
  • the coding information may include at least one of pixel information or prediction mode information.
  • the reference residual signal generator 810 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal.
  • a decoder to which the present invention is applied may receive a bitstream, and the bitstream may obtain a residual signal Res curr through the inverse quantizer 850 and the inverse transformer 860.
  • the present invention may compensate for the residual signal Res curr for more accurate signal recovery.
  • the residual signal Res curr may be compensated using the residual signal of the reference block similar to the current block. That is, the residual signal Res curr may be compensated by adding the reference residual signal acquired through the reference residual signal generator 810 to the residual signal Res curr .
  • the prediction unit 820 may perform prediction according to the prediction mode determined for the current block, and may generate a prediction signal Pred curr of the current block through the prediction.
  • the video signal may be reconstructed by adding the predicted signal Pred curr and the compensated residual signal.
  • the encoder receives the coordinate information most similar to the peripheral region of the region to be encoded or decoded, and utilizes the residual signal of the region as a predictive residual signal of the region to be currently encoded or decoded. have.
  • FIG. 9 is a diagram for describing a method of searching for a reference block using surrounding restoration information according to an embodiment to which the present invention is applied.
  • the present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding.
  • the region most similar to the peripheral region of the region to be encoded or decoded is searched in the reconstructed image, and if the most similar region is found, the residual signal of the region is currently encoded or decoded. It can be used as a predictive residual signal of a region.
  • the present invention can search for a reference block within a reconstructed area of the current frame using a template.
  • the template may be defined in a predetermined form, for example, may have a form consisting of pixels adjacent to the upper side and the left side of the current block as shown in FIG. 9, but the present invention is not limited thereto.
  • the encoder or the decoder may find a template ref by searching an area most similar to the template curr .
  • the encoder or decoder may determine a reference block by using the template ref for a position corresponding to the current block.
  • the encoder or decoder may perform the following process as described with reference to FIG. 7 or 8.
  • the decoder generates a reference prediction signal Pre ref using the prediction mode of the current block transmitted from the encoder and the surrounding information of the reference block, and subtracts the reference prediction signal Pred ref from the reference block.
  • the reference residual signal Res ref may be generated.
  • the residual signal can be compensated by adding the residual signal Res curr transmitted from the encoder and the reference residual signal Res ref .
  • the compensated residual signal may be combined with the prediction signal of the current block to generate a reconstruction signal Recon curr . If this is expressed as an equation, Equation 1 below.
  • the present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information.
  • Information necessary for decoding in the decoder can be largely classified into mode information and pixel information.
  • the mode information may mean information other than pixel data necessary for image decoding.
  • the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like.
  • the pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal.
  • the residual signal may be represented as information in the pixel domain through entropy decoding, inverse quantization, and inverse transformation, which may be combined with a prediction signal to generate a reconstruction signal.
  • a residual signal can be derived using an already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
  • the method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
  • the method proposed in the present invention can determine whether to use the flag signal.
  • the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
  • FIG. 10 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
  • the encoder to which the present invention is applied may search for a reference block for the current block in the reconstructed region in the current frame (S1010).
  • a template or location information may be used to search the reference block.
  • a reference reconstruction signal may be generated from the found reference block.
  • the encoder can generate a reference prediction signal using the prediction mode of the current block (S1020). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1030).
  • the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1040).
  • the encoder may update the prediction signal of the current block by using the reference residual signal. That is, the updated prediction signal may be generated by adding the reference residual signal to the prediction signal of the current block (S1050).
  • the encoder may generate a residual signal by subtracting the updated prediction signal from the original signal (S1060).
  • the residual signal may be transformed through a transformer, quantized through a quantizer, and entropy encoded through an entropy encoder.
  • FIG. 11 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
  • the decoder to which the present invention is applied may search for a reference block for the current block in the reconstructed region in the current frame (S1110).
  • a template or location information may be used to search the reference block.
  • a reference reconstruction signal may be generated from the found reference block.
  • the decoder may generate a reference prediction signal using the prediction mode of the current block (S1120). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the decoder may generate a reference residual signal by subtracting the reference prediction signal from the reference reconstruction signal (S1130), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
  • the decoder may acquire a residual signal on a pixel domain by performing entropy decoding, inverse quantization, and inverse transformation on a residual signal transmitted from an encoder (S1140), and using the reference residual signal, the pixel The residual signal on the domain may be compensated for (S1150).
  • a reconstruction signal may be generated by adding the predicted signal for the current block and the compensated residual signal.
  • the decoder may compensate for the prediction signal for the current block by using the generated reference residual signal.
  • the compensated prediction signal is summed with the residual signal transmitted from the encoder to generate a reconstruction signal.
  • FIG. 12 is a diagram for describing a method of searching for a reference block using location information according to an embodiment to which the present invention is applied.
  • the present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding.
  • the region most similar to the surrounding region of the region to be encoded or decoded is searched in the reconstructed image, and when the region most similar to the region is searched, the prediction residual of the region to be currently encoded or decoded the residual signal of the corresponding reference region. Can be used as a signal.
  • the present invention can search for a reference block most similar to the current block in a reconstructed area of the current frame.
  • the encoder can code position information of the reference block.
  • the position information of the reference block may be represented by coordinate information.
  • the position information of the reference block may be represented by a vector.
  • the location information may be transmitted to or derived from the decoder.
  • the decoder may determine the reference block by using the location information when receiving the location information. Alternatively, when the location information is derived based on other coding information in the decoder, the reference block may be determined using the derived location information.
  • an area most similar to a peripheral area of the current block may be searched in a reconstructed area of the current frame, and the area corresponding to the current block may be determined therefrom.
  • the template of FIG. 9 may be used to search for the most similar area.
  • the encoder or the decoder may perform the following process as described with reference to FIG. 7 or 8.
  • the decoder generates a reference prediction signal Pre ref using the prediction mode of the current block transmitted from the encoder and the surrounding information of the reference block, and subtracts the reference prediction signal Pred ref from the reference block.
  • the reference residual signal Res ref may be generated.
  • the residual signal can be compensated by adding the residual signal Res curr transmitted from the encoder and the reference residual signal Res ref .
  • the compensated residual signal may be combined with the prediction signal of the current block to generate a reconstruction signal Recon curr . If this is expressed as an equation, Equation 2 below.
  • the present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information.
  • Information necessary for decoding in the decoder can be largely classified into mode information and pixel information.
  • the mode information may mean information other than pixel data necessary for image decoding.
  • the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like.
  • the pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal.
  • the residual signal may be represented as information in the pixel domain through entropy decoding, inverse quantization, and inverse transformation, which may be combined with a prediction signal to generate a reconstruction signal.
  • a residual signal can be derived using an already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
  • the method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
  • the method proposed in the present invention can determine whether to use the flag signal.
  • the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
  • FIG. 13 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
  • the encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1310).
  • a template may be used to search the reference block.
  • FIG. 9 may be applied.
  • the encoder can code position information of the reference block.
  • the position information of the reference block may be represented by coordinate information.
  • the position information of the reference block may be represented by a vector.
  • the location information may be transmitted to the decoder (S1380) or derived from the decoder.
  • a reference reconstruction signal may be generated from the reference block.
  • the encoder may generate a reference prediction signal using the prediction mode of the current block (S1320). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1330).
  • the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1340).
  • the encoder may update the prediction signal of the current block by using the reference residual signal. That is, the updated prediction signal may be generated by adding the reference residual signal to the prediction signal of the current block (S1350).
  • the encoder may generate a residual signal by subtracting the updated prediction signal from the original signal (S1360).
  • the residual signal may be transformed through a transform unit, quantized through a quantization unit, and entropy encoded through an entropy encoding unit (S1370).
  • the position information of the reference block may be entropy encoded together with the residual signal and transmitted to the decoder (S1380).
  • 14 is an embodiment to which the present invention is applied and is a decoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
  • the present invention can generate a reference prediction signal using location information of a reference block and a prediction mode of the current block.
  • the decoder may receive a bitstream including position information of a reference block with respect to the current block.
  • the decoder may extract position information of the reference block from the bitstream.
  • the location information of the reference block is entropy decoded (S1410), and the decoder may search for the reference block by using the location information of the reference block.
  • Position information of the reference block may be represented by coordinate information.
  • the position information of the reference block may be represented by a vector.
  • a reference reconstruction signal may be generated from the found reference block.
  • the decoder may generate a reference prediction signal using the prediction mode of the current block (S1420). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1430), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
  • the decoder may acquire a residual signal on a pixel domain by performing entropy decoding, inverse quantization, and inverse transformation on a residual signal transmitted from an encoder (S1440), and using the reference residual signal, the pixel The residual signal on the domain may be compensated for (S1450).
  • a reconstruction signal may be generated by adding the predicted signal for the current block and the compensated residual signal.
  • the decoder may compensate for the prediction signal for the current block by using the generated reference residual signal.
  • the compensated prediction signal is summed with the residual signal transmitted from the encoder to generate a reconstruction signal.
  • FIG. 15 is a schematic block diagram of an encoder or a decoder that performs coding using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
  • an encoder or decoder to which the present invention is applied may include a reference residual signal generator 1510, a reference reconstruction signal generator 1511, a reference prediction signal generator 1512, an intra predictor 1520, and a reconstruction.
  • the unit 1530 and the DPB 1540 may be included.
  • the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal.
  • the intra prediction unit is described as a reference, but the present invention is not limited thereto.
  • a region most similar to a peripheral region of a region to be encoded or decoded is searched in a reconstructed image, and when a region most similar to the region is searched, a residual of the region to currently encode or decode a residual signal of the region.
  • the reference reconstruction signal generator 1511 may search for a reference block for the current block in a reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof have been described in detail with reference to FIGS. 9 and 12. A reference reconstruction signal Recon ref may be generated from the found reference block.
  • the reference prediction signal generator 1512 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the reference prediction signal generator 1512 may generate a reference prediction signal by using the peripheral information of the reference block.
  • coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used.
  • the coding information may include at least one of pixel information or prediction mode information.
  • the reference residual signal generator 1510 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal.
  • the reference residual signal Res ref generated in this manner may be used as a residual signal of the current block. Therefore, the encoder can reduce the amount of transmitted bits by deriving from the peripheral information without transmitting the residual signal.
  • the intra prediction unit 1520 may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal Pre curr of the current block through the intra prediction.
  • the reconstruction unit 1530 may generate a reconstruction signal by adding the reference residual signal Res ref and the prediction signal Pred curr of the current block. If this is expressed as an equation, Equation 3 below.
  • the present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information.
  • Information necessary for decoding in the decoder can be largely classified into mode information and pixel information.
  • the mode information may mean information other than pixel data necessary for image decoding.
  • the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like.
  • the pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal. By utilizing the present invention, the residual signal can be derived using the already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
  • the method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
  • the method proposed in the present invention can determine whether to use the flag signal.
  • the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
  • 16 is a flowchart illustrating a method of encoding a video signal using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
  • the encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1610).
  • a template may be used to search the reference block.
  • a reference reconstruction signal may be generated from the found reference block.
  • the encoder may generate a reference prediction signal using the prediction mode of the current block (S1620). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1630).
  • the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1640).
  • the encoder may generate a reconstruction signal by adding the reference residual signal and the prediction signal of the current block (S1650).
  • the encoder may determine whether to optimize rate distortion (S1660) while repeating the above process (S1660).
  • the corresponding coding information may be encoded and transmitted (S1670).
  • the coding information may include coding information such as a prediction mode.
  • 17 is a flowchart illustrating a method of reconstructing a video signal by inducing a residual signal according to another embodiment to which the present invention is applied.
  • the decoder to which the present invention is applied may receive a bitstream, and may determine whether a residual signal corresponding to a block to be currently decoded exists in the bitstream (S1710). For example, the decoder may determine this based on flag information indicating whether residual data exists.
  • the decoder may determine whether to derive the residual signal of the current block. For example, the decoder may determine this based on flag information indicating whether to derive the residual signal.
  • the decoder may perform decoding on the residual signal (S1720).
  • the decoder may derive the residual signal based on other information. have.
  • the decoder may search for a reference block for the current block in the reconstructed region in the current frame (S1730). For example, to search the reference block, a template or location information may be used. A reference reconstruction signal may be generated from the found reference block.
  • the decoder may generate a reference prediction signal using the prediction mode of the current block (S1740). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1750), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
  • a reconstruction signal may be generated by adding the prediction signal for the current block and the reference residual signal.
  • FIG. 18 is a flowchart illustrating a method of encoding a video signal using a residual signal derived based on a searched reference block and searching for a reference block using position information according to another embodiment to which the present invention is applied.
  • the encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1810).
  • a template may be used to search the reference block.
  • the embodiment of FIG. 9 may be applied.
  • the encoder can code position information of the reference block.
  • the position information of the reference block may be represented by coordinate information.
  • the position information of the reference block may be represented by a vector.
  • the location information may be transmitted to the decoder (S1870) or derived from the decoder.
  • a reference reconstruction signal may be generated from the reference block.
  • the encoder can generate a reference prediction signal using the prediction mode of the current block (S1820). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1830).
  • the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1840).
  • the encoder may generate a reconstruction signal by adding the reference residual signal and the prediction signal of the current block (S1850).
  • the encoder may determine whether to optimize rate distortion while repeating the above process (S1860).
  • the corresponding coding information may be encoded and transmitted (S1870).
  • the coding information may include coding information such as position information of a reference block, a prediction mode, and the like.
  • 19 is a flowchart illustrating a method of reconstructing a video signal by searching for a reference block using position information and inducing a residual signal based on the found reference block according to another embodiment to which the present invention is applied.
  • the present invention can generate a reference prediction signal using location information of a reference block and a prediction mode of the current block.
  • a decoder to which the present invention is applied may receive a bitstream including position information of a reference block with respect to a current block, and determine whether a residual signal corresponding to a block to be currently decoded exists in the bitstream. It may be (S1910). For example, the decoder may determine this based on flag information indicating whether residual data exists.
  • the decoder may determine whether to derive the residual signal of the current block. For example, the decoder may determine this based on flag information indicating whether to derive the residual signal.
  • the decoder may perform decoding on the residual signal (S1920).
  • the decoder may derive the residual signal based on other information. have.
  • the decoder may extract position information of the reference block from the bitstream.
  • the location information of the reference block is entropy decoded, and the decoder may search for the reference block by using the location information of the reference block (S1930).
  • Position information of the reference block may be represented by coordinate information.
  • the position information of the reference block may be represented by a vector.
  • a reference reconstruction signal may be generated from the found reference block.
  • the decoder may generate a reference prediction signal using the prediction mode of the current block (S1940). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
  • the decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1950), and may generate a reconstruction signal based on the reference residual signal. That is, a reconstruction signal may be generated by adding the prediction signal for the current block and the reference residual signal (S1960).
  • the amount of bits transmitted to the decoder can be reduced by deriving from the neighboring information of the current block without transmitting the residual signal.
  • the embodiments described herein may be implemented and performed on a processor, microprocessor, controller, or chip.
  • the functional units illustrated in FIGS. 1, 2, 7, 8, and 15 may be implemented by a computer, a processor, a microprocessor, a controller, or a chip.
  • the decoder and encoder to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video on demand (VoD) service providing devices, internet streaming service providing devices, three-dimensional (3D) video devices, video telephony video devices, and medical video devices, and the like, for processing video signals and data signals Can be used for
  • the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium.
  • the computer readable recording medium includes all kinds of storage devices for storing computer readable data.
  • the computer-readable recording medium may include, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. Can be.
  • the computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over the Internet).
  • the bit stream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.

Landscapes

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

Abstract

The present invention provides a method for decoding a video signal, the method comprising the steps of: discovering a reference block related to a current block, wherein the reference block has already been reconstructed in a current frame; generating a reference prediction signal representing a predictive value of the discovered reference block; generating a reference residual signal by subtracting the reference prediction signal from the reference block; compensating a residual signal of the current block acquired from the video signal on the basis of the reference residual signal; and reconstructing the current block by adding the compensated residual signal and a prediction signal of the current block.

Description

인트라 레지듀얼 예측을 이용하여 비디오 신호를 인코딩, 디코딩하는 방법 및 장치Method and apparatus for encoding and decoding video signals using intra residual prediction
본 발명은 비디오 신호의 인코딩/디코딩 방법 및 장치에 관한 것이며, 보다 구체적으로 인트라 레지듀얼 예측을 이용하여 비디오 신호를 처리하는 기술에 관한 것이다.The present invention relates to a method and apparatus for encoding / decoding a video signal, and more particularly, to a technique for processing a video signal using intra residual prediction.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다. 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.
본 발명은 보다 정확한 예측 블록을 생성하는 방법을 제공하고자 한다. The present invention seeks to provide a method for generating a more accurate prediction block.
또한, 본 발명은 레지듀얼 신호의 데이터량을 감소시키는 방법을 제공하고자 한다.In addition, the present invention is to provide a method for reducing the data amount of the residual signal.
또한, 본 발명은 인트라 예측을 수행함에 있어서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정하는 방법을 제공하고자 한다.In addition, the present invention is to provide a method for modifying the prediction signal using the reference residual signal in performing the intra prediction.
또한, 본 발명은 레지듀얼 신호를 전송하지 않고 전송된 다른 코딩 정보로부터 레지듀얼 신호를 유도하는 방법을 제공하고자 한다.The present invention also provides a method of deriving a residual signal from other coding information transmitted without transmitting the residual signal.
또한, 본 발명은 이미 복원된 주변 영역의 정보를 이용하여 인트라 예측을 위한 참조 블록을 탐색하고 이를 이용하여 참조 레지듀얼 신호를 생성하는 방법을 제공하고자 한다.In addition, the present invention is to provide a method for searching for a reference block for intra prediction using the information of the neighboring region which has already been reconstructed, and generating a reference residual signal using the same.
또한, 본 발명은 복원 영역의 일정 부분을 템플릿으로 지정하고, 템플릿을 이용하여 유사한 영역을 탐색하는 방법을 제공하고자 한다.In addition, the present invention is to provide a method for designating a portion of the restoration area as a template and searching for a similar area using the template.
또한, 본 발명은 전송된 위치 정보를 이용하여 참조 영역을 탐색하는 방법을 제공하고자 한다.In addition, the present invention is to provide a method for searching a reference region by using the transmitted position information.
상기의 기술적 과제를 해결하기 위해,In order to solve the above technical problem,
본 발명은 고효율 압축을 위한 코딩 도구를 설계하는 방법을 제공한다.The present invention provides a method of designing a coding tool for high efficiency compression.
또한, 본 발명은 보다 정확한 예측 블록을 생성하는 방법을 제공한다. In addition, the present invention provides a method for generating a more accurate prediction block.
또한, 본 발명은 레지듀얼 신호의 데이터량을 감소시키는 방법을 제공한다.The present invention also provides a method of reducing the data amount of the residual signal.
또한, 본 발명은 인트라 예측을 수행함에 있어서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정하는 방법을 제공한다.The present invention also provides a method of modifying a prediction signal using a reference residual signal in performing intra prediction.
또한, 본 발명은 레지듀얼 신호를 전송하지 않고 전송된 다른 코딩 정보로부터 레지듀얼 신호를 유도하는 방법을 제공한다.The present invention also provides a method of deriving a residual signal from other coding information transmitted without transmitting the residual signal.
또한, 본 발명은 이미 복원된 주변 영역의 정보를 이용하여 인트라 예측을 위한 참조 블록을 탐색하고 이를 이용하여 참조 레지듀얼 신호를 생성하는 방법을 제공한다.In addition, the present invention provides a method of searching for a reference block for intra prediction using information of a neighboring region that has already been reconstructed, and generating a reference residual signal using the same.
또한, 본 발명은 복원 영역의 일정 부분을 템플릿으로 지정하고, 템플릿을 이용하여 유사한 영역을 탐색하는 방법을 제공한다.In addition, the present invention provides a method of designating a portion of a restoration area as a template and searching for a similar area using the template.
또한, 본 발명은 전송된 위치 정보를 이용하여 참조 영역을 탐색하는 방법을 제공한다.The present invention also provides a method for searching a reference region by using transmitted location information.
본 발명은 정지 영상 또는 동영상 코딩 시, 인트라 예측 방법을 이용할 때 적은 비용으로 레지듀얼 신호를 전송함으로써 비트율을 저감할 수 있다.The present invention can reduce the bit rate by transmitting a residual signal at a low cost when using the intra prediction method when coding a still image or a video.
또한, 본 발명은 참조 레지듀얼 신호를 이용하여 예측 신호를 수정함으로써 더욱 정확한 예측 블록을 생성할 수 있고, 그에 따라 레지듀얼 신호의 데이터량을 감소시킬 수 있어, 이를 전송하는 에너지의 양을 줄일 수 있다.In addition, the present invention can generate a more accurate prediction block by modifying the prediction signal using the reference residual signal, thereby reducing the data amount of the residual signal, thereby reducing the amount of energy transmitted thereto. have.
또한, 본 발명은 레지듀얼 신호를 전송하지 않고 전송된 다른 코딩 정보로부터 레지듀얼 신호를 유도함으로써 전송 데이터량을 감소키실 수 있다.In addition, the present invention can reduce the amount of data to be transmitted by deriving the residual signal from other coding information transmitted without transmitting the residual signal.
또한, 본 발명은 이미 복원된 주변 영역의 정보를 이용하여 인트라 예측을 위한 참조 블록을 탐색하고 이를 이용하여 참조 레지듀얼 신호를 생성함으로써 보다 정확한 예측 블록을 생성할 수 있다.In addition, the present invention can generate a more accurate prediction block by searching for a reference block for intra prediction using information of the neighboring region which has already been reconstructed and generating a reference residual signal using the same.
또한, 본 발명은 복원 영역의 일정 부분을 템플릿으로 지정하고, 템플릿을 이용하여 유사한 영역을 탐색함으로써 예측 정확도를 향상시킬 수 있다.In addition, the present invention can improve the prediction accuracy by designating a portion of the reconstructed region as a template and searching for a similar region using the template.
또한, 본 발명은 전송된 위치 정보를 이용하여 참조 영역을 탐색함으로써 예측 정확도를 향상시킬 수 있다.In addition, the present invention can improve the prediction accuracy by searching the reference region using the transmitted position information.
도 1은 본 발명이 적용되는 실시예로서, 비디오 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.1 is a schematic block diagram of an encoder in which encoding of a video signal is performed as an embodiment to which the present invention is applied.
도 2는 본 발명이 적용되는 실시예로서, 비디오 신호의 디코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.2 is a schematic block diagram of a decoder in which decoding of a video signal is performed as an embodiment to which the present invention is applied.
도 3은 본 발명이 적용되는 실시예로서, 코딩 유닛의 분할 구조를 설명하기 위한 도면이다.3 is a diagram for describing a division structure of a coding unit according to an embodiment to which the present invention is applied.
도 4는 본 발명이 적용되는 실시예로서, 예측 유닛을 설명하기 위한 도면이다. 4 is a diagram for describing a prediction unit according to an embodiment to which the present invention is applied.
도 5는 본 발명이 적용되는 실시예로서, 인트라 예측 방법을 설명하기 위한 도면이다.5 is a diagram for describing an intra prediction method according to an embodiment to which the present invention is applied.
도 6은 본 발명이 적용되는 실시예로서, 인트라 예측 모드에 따른 예측 방향을 설명하기 위한 도면이다.6 is a diagram for describing a prediction direction according to an intra prediction mode according to an embodiment to which the present invention is applied.
도 7은 본 발명이 적용되는 다른 실시예로서, 비디오 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.7 is a schematic block diagram of an encoder in which encoding of a video signal is performed, according to another embodiment to which the present invention is applied.
도 8은 본 발명이 적용되는 다른 실시예로서, 비디오 신호의 디코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.8 is a schematic block diagram of a decoder in which decoding of a video signal is performed as another embodiment to which the present invention is applied.
도 9는 본 발명이 적용되는 실시예로서, 주변 복원 정보를 이용하여 참조 블록을 탐색하는 방법을 설명하기 위한 도면이다.FIG. 9 is a diagram for describing a method of searching for a reference block using surrounding restoration information according to an embodiment to which the present invention is applied.
도 10은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정(modify)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 10 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
도 11은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 레지듀얼 신호를 보상(compensate)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 11 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
도 12는 본 발명이 적용되는 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하는 방법을 설명하기 위한 도면이다.12 is a diagram for describing a method of searching for a reference block using location information according to an embodiment to which the present invention is applied.
도 13은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정(modify)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 13 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
도 14는 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 레지듀얼 신호를 보상(compensate)하는 과정을 설명하는 디코딩 흐름도이다.14 is an embodiment to which the present invention is applied and is a decoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
도 15는 본 발명이 적용되는 다른 실시예로서, 복원 정보로부터 유도된 레지듀얼 신호를 이용하여 코딩을 수행하는 인코더 또는 디코더 내부의 개략적인 블록도를 나타낸다.FIG. 15 is a schematic block diagram of an encoder or a decoder that performs coding using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
도 16은 본 발명이 적용되는 다른 실시예로서, 복원 정보로부터 유도된 레지듀얼 신호를 이용하여 비디오 신호를 인코딩하는 방법을 설명하는 흐름도이다.16 is a flowchart illustrating a method of encoding a video signal using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
도 17은 본 발명이 적용되는 다른 실시예로서, 레지듀얼 신호를 유도하여 비디오 신호를 복원하는 방법을 설명하는 흐름도이다.17 is a flowchart illustrating a method of reconstructing a video signal by inducing a residual signal according to another embodiment to which the present invention is applied.
도 18은 본 발명이 적용되는 다른 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하고 탐색된 참조 블록에 기초하여 유도된 레지듀얼 신호를 이용하여 비디오 신호를 인코딩하는 방법을 설명하는 흐름도이다.FIG. 18 is a flowchart illustrating a method of encoding a video signal using a residual signal derived based on a searched reference block and searching for a reference block using position information according to another embodiment to which the present invention is applied.
도 19는 본 발명이 적용되는 다른 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하고 탐색된 참조 블록에 기초하여 레지듀얼 신호를 유도하여 비디오 신호를 복원하는 방법을 설명하는 흐름도이다.19 is a flowchart illustrating a method of reconstructing a video signal by searching for a reference block using position information and inducing a residual signal based on the found reference block according to another embodiment to which the present invention is applied.
본 발명은, 비디오 신호를 디코딩하는 방법에 있어서, 현재 블록에 대한 참조 블록을 탐색하는 단계, 여기서 상기 참조 블록은 현재 프레임 내 이미 복원된 것임; 상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하는 단계; 상기 참조 블록에서 상기 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성하는 단계; 상기 참조 레지듀얼 신호에 기초하여, 상기 비디오 신호로부터 획득된 상기 현재 블록의 레지듀얼 신호를 보상하는 단계; 및 상기 보상된 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 상기 현재 블록을 복원하는 단계를 포함하는 것을 특징으로 하는 방법을 제공한다.The present invention provides a method of decoding a video signal, the method comprising: searching for a reference block for a current block, wherein the reference block is already reconstructed in the current frame; Generating a reference prediction signal representing a prediction value for the searched reference block; Generating a reference residual signal by subtracting the reference prediction signal from the reference block; Compensating for the residual signal of the current block obtained from the video signal based on the reference residual signal; And reconstructing the current block by adding the compensated residual signal and the prediction signal of the current block.
또한, 본 발명에서, 상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 한다.In the present invention, the reference prediction signal is generated according to the intra prediction mode of the current block.
또한, 본 발명에서, 상기 참조 블록은 템플릿에 기초하여 탐색되고, 상기 템플릿은 기설정된 형태를 가지며 상기 현재 블록에 인접하는 픽셀들로 구성되는 것을 특징으로 한다.Also, in the present invention, the reference block is searched based on a template, and the template has a predetermined shape and is composed of pixels adjacent to the current block.
또한, 본 발명에서, 상기 참조 블록은 위치 정보에 기초하여 탐색되고, 상기 위치 정보는 상기 비디오 신호로부터 추출되는 것을 특징으로 한다.In the present invention, the reference block is searched based on the positional information, and the positional information is extracted from the video signal.
또한, 본 발명은, 상기 비디오 신호로부터 레지듀얼 신호가 존재하는지 여부를 나타내는 플래그 정보를 추출하는 단계를 더 포함하되, 상기 플래그 정보에 따라 상기 레지듀얼 신호가 존재하는 경우에 수행되는 것을 특징으로 한다.The present invention may further include extracting flag information indicating whether a residual signal exists from the video signal, and is performed when the residual signal exists according to the flag information. .
또한, 본 발명은, 비디오 신호를 인코딩하는 방법에 있어서, 현재 블록에 대한 참조 블록을 탐색하는 단계, 여기서 상기 참조 블록은 현재 프레임 내 이미 복원된 것임; 상기 참조 블록의 참조 레지듀얼 신호를 생성하는 단계; 상기 현재 블록의 인트라 예측 모드에 따라 상기 현재 블록의 예측 신호를 생성하는 단계; 상기 현재 블록의 예측 신호에 상기 참조 레지듀얼 신호를 합함으로써 상기 현재 블록의 예측 신호를 업데이트하는 단계; 및 상기 업데이트된 예측 신호에 기초하여, 상기 현재 블록의 레지듀얼 신호를 생성하는 단계를 포함하는 것을 특징으로 하는 방법을 제공한다.In addition, the present invention provides a method of encoding a video signal, comprising: searching for a reference block for a current block, wherein the reference block is already reconstructed in the current frame; Generating a reference residual signal of the reference block; Generating a prediction signal of the current block according to an intra prediction mode of the current block; Updating the prediction signal of the current block by adding the reference residual signal to the prediction signal of the current block; And generating a residual signal of the current block based on the updated prediction signal.
또한, 본 발명은, 상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하는 단계를 더 포함하되, 상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 한다.The present invention may further include generating a reference prediction signal indicating a prediction value for the searched reference block, wherein the reference prediction signal is generated according to an intra prediction mode of the current block.
또한, 본 발명에서, 상기 참조 블록은 템플릿에 기초하여 탐색되고, 상기 템플릿은 기설정된 형태를 가지며 상기 현재 블록에 인접하는 픽셀들로 구성되는 것을 특징으로 한다.Also, in the present invention, the reference block is searched based on a template, and the template has a predetermined shape and is composed of pixels adjacent to the current block.
또한, 본 발명은, 상기 참조 블록의 위치 정보를 인코딩하는 단계; 및 상기 참조 블록의 위치 정보를 전송하는 단계를 더 포함하는 것을 특징으로 한다.In addition, the present invention includes the steps of encoding the position information of the reference block; And transmitting the position information of the reference block.
또한, 본 발명은, 상기 현재 블록의 레지듀얼 신호에 대해 변환을 수행하는 단계; 상기 변환된 레지듀얼 신호에 대해 양자화를 수행하는 단계; 및 상기 양자화된 레지듀얼 신호에 대해 엔트로피 인코딩을 수행하는 단계를 더 포함하는 것을 특징으로 한다.In addition, the present invention includes the steps of performing a transform on the residual signal of the current block; Performing quantization on the converted residual signal; And performing entropy encoding on the quantized residual signal.
또한, 본 발명은, 비디오 신호를 디코딩하는 장치에 있어서, 현재 블록에 대한 참조 블록을 탐색하고, 상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하고, 상기 참조 블록에서 상기 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성하는 참조 레지듀얼 신호 생성부; 상기 참조 레지듀얼 신호에 기초하여, 상기 비디오 신호로부터 획득된 상기 현재 블록의 레지듀얼 신호를 보상하는 레지듀얼 신호 보상부; 및 상기 보상된 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 상기 현재 블록을 복원하는 복원부를 포함하되, 상기 참조 블록은 현재 프레임 내 이미 복원된 것을 특징으로 하는 장치를 제공한다.In addition, the present invention provides a device for decoding a video signal, search for a reference block for the current block, generates a reference prediction signal representing a prediction value for the searched reference block, the reference block in the reference prediction signal A reference residual signal generator for generating a reference residual signal by subtracting a; A residual signal compensator configured to compensate the residual signal of the current block obtained from the video signal based on the reference residual signal; And a reconstruction unit configured to reconstruct the current block by adding the compensated residual signal and the prediction signal of the current block, wherein the reference block is already reconstructed in the current frame.
또한, 본 발명은, 비디오 신호를 인코딩하는 장치에 있어서, 현재 블록에 대한 참조 블록을 탐색하고, 상기 참조 블록의 참조 레지듀얼 신호를 생성하고, 상기 현재 블록의 인트라 예측 모드에 따라 상기 현재 블록의 예측 신호를 생성하고, 상기 현재 블록의 예측 신호에 상기 참조 레지듀얼 신호를 합함으로써 상기 현재 블록의 예측 신호를 업데이트하는 예측부; 및 상기 업데이트된 예측 신호에 기초하여, 상기 현재 블록의 레지듀얼 신호를 생성하는 레지듀얼 신호 획득부를 포함하는 것을 특징으로 하는 장치를 제공한다.In addition, the present invention provides a device for encoding a video signal, search for a reference block for the current block, generates a reference residual signal of the reference block, according to the intra prediction mode of the current block A prediction unit generating a prediction signal and updating the prediction signal of the current block by adding the reference residual signal to the prediction signal of the current block; And a residual signal acquirer configured to generate a residual signal of the current block based on the updated prediction signal.
또한, 본 발명에서, 상기 예측부는, 상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하고, 상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 한다.In the present invention, the prediction unit generates a reference prediction signal indicating a prediction value for the searched reference block, and the reference prediction signal is generated according to the intra prediction mode of the current block.
또한, 본 발명은, 상기 현재 블록의 레지듀얼 신호에 대해 변환을 수행하는 변환부; 상기 변환된 레지듀얼 신호에 대해 양자화를 수행하는 양자화부; 및 상기 양자화된 레지듀얼 신호에 대해 엔트로피 인코딩을 수행하는 엔트로피 인코딩부를 더 포함하는 것을 특징으로 한다.In addition, the present invention, the conversion unit for performing the transformation on the residual signal of the current block; A quantization unit performing quantization on the converted residual signal; And an entropy encoding unit for performing entropy encoding on the quantized residual signal.
이하, 첨부된 도면을 참조하여 본 발명의 실시예의 구성과 그 작용을 설명하며, 도면에 의해서 설명되는 본 발명의 구성과 작용은 하나의 실시예로서 설명되는 것이며, 이것에 의해서 본 발명의 기술적 사상과 그 핵심 구성 및 작용이 제한되지는 않는다.Hereinafter, the configuration and operation of the embodiments of the present invention with reference to the accompanying drawings, the configuration and operation of the present invention described by the drawings will be described as one embodiment, whereby the technical spirit of the present invention And its core composition and operation are not limited.
아울러, 본 발명에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 발명의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.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 interpreted. .
또한, 본 발명에서 사용되는 용어들은 발명을 설명하기 위해 선택된 일반적인 용어들이나, 유사한 의미를 갖는 다른 용어가 있는 경우 보다 적절한 해석을 위해 대체 가능할 것이다. 예를 들어, 신호, 데이터, 샘플, 픽쳐, 프레임, 블록 등의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다. 또한, 파티셔닝(partitioning), 분해(decomposition), 스플리팅 (splitting) 및 분할(division) 등의 경우에도 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.In addition, terms used in the present invention may be replaced for more appropriate interpretation when there are general terms selected to describe the invention or other terms having similar meanings. For example, signals, data, samples, pictures, frames, blocks, etc. may be appropriately replaced and interpreted in each coding process. In addition, partitioning, decomposition, splitting, and division may be appropriately replaced and interpreted in each coding process.
도 1은 본 발명이 적용되는 실시예로서, 비디오 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.1 is a schematic block diagram of an encoder in which encoding of a video signal is performed as an embodiment to which the present invention is applied.
도 1을 참조하면, 인코더(100)는 영상 분할부(110), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 필터링부(160), 복호 픽쳐 버퍼(DPB: Decoded Picture Buffer)(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함하여 구성될 수 있다.Referring to FIG. 1, the encoder 100 may include an image splitter 110, a transformer 120, a quantizer 130, an inverse quantizer 140, an inverse transformer 150, a filter 160, and a decoder. It may include a decoded picture buffer (DPB) 170, an inter predictor 180, an intra predictor 185, and an entropy encoder 190.
영상 분할부(110)는 인코더(100)에 입력된 입력 영상(Input image)(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛으로 분할할 수 있다. 예를 들어, 상기 처리 유닛은 코딩 트리 유닛(CTU: Coding Tree Unit), 코딩 유닛(CU: Coding Unit), 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)일 수 있다. The image divider 110 may divide an input image (or a picture or a frame) input to the encoder 100 into one or more processing units. For example, the processing unit may be a Coding Tree Unit (CTU), a Coding Unit (CU), a Prediction Unit (PU), or a Transform Unit (TU).
다만, 상기 용어들은 본 발명에 대한 설명의 편의를 위해 사용할 뿐이며, 본 발명은 해당 용어의 정의에 한정되지 않는다. 또한, 본 명세서에서는 설명의 편의를 위해, 비디오 신호를 인코딩 또는 디코딩하는 과정에서 이용되는 단위로써 코딩 유닛이라는 용어를 사용하지만, 본 발명은 그에 한정되지 않으며 발명 내용에 따라 적절하게 해석 가능할 것이다.However, the terms are only used for the convenience of description of the present invention, the present invention is not limited to the definition of the terms. In addition, in the present specification, for convenience of description, the term coding unit is used as a unit used in encoding or decoding a video signal, but the present invention is not limited thereto and may be appropriately interpreted according to the present invention.
인코더(100)는 입력 영상 신호에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(prediction signal)를 감산하여 레지듀얼 신호(residual signal)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. The encoder 100 may generate a residual signal by subtracting a prediction signal output from the inter predictor 180 or the intra predictor 185 from the input image signal and generate the residual signal. The dual signal is transmitted to the converter 120.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수(transform coefficient)를 생성할 수 있다. 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.The transform unit 120 may generate a transform coefficient by applying a transform technique to the residual signal. The conversion process may be applied to pixel blocks having the same size as the square, or may be applied to blocks of variable size rather than square.
양자화부(130)는 변환 계수를 양자화하여 엔트로피 인코딩부(190)로 전송하고, 엔트로피 인코딩부(190)는 양자화된 신호(quantized signal)를 엔트로피 코딩하여 비트스트림으로 출력할 수 있다.The quantization unit 130 may quantize the transform coefficients and transmit the quantized coefficients to the entropy encoding unit 190, and the entropy encoding unit 190 may entropy code the quantized signal and output the bitstream.
양자화부(130)로부터 출력된 양자화된 신호(quantized signal)는 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 신호(quantized signal)는 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호를 복원할 수 있다. 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(prediction signal)에 더함으로써 복원 신호(reconstructed signal)가 생성될 수 있다. The quantized signal output from the quantization unit 130 may be used to generate a prediction signal. For example, the quantized signal may restore the residual 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 residual signal to a prediction signal output from the inter predictor 180 or the intra predictor 185.
한편, 위와 같은 압축 과정에서 인접한 블록들이 서로 다른 양자화 파라미터에 의해 양자화됨으로써 블록 경계가 보이는 열화가 발생될 수 있다. 이러한 현상을 블록킹 열화(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)에 전송된 필터링된 신호는 인터 예측부(180)에서 참조 픽쳐로 사용될 수 있다. 이처럼, 필터링된 픽쳐를 화면간 예측 모드에서 참조 픽쳐로 이용함으로써 화질 뿐만 아니라 부호화 효율도 향상시킬 수 있다. 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 predictor 180. 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)는 필터링된 픽쳐를 인터 예측부(180)에서의 참조 픽쳐로 사용하기 위해 저장할 수 있다.The decoded picture buffer 170 may store the filtered picture for use as a reference picture in the inter prediction unit 180.
인터 예측부(180)는 복원 픽쳐(reconstructed picture)를 참조하여 시간적 중복성 및/또는 공간적 중복성을 제거하기 위해 시간적 예측 및/또는 공간적 예측을 수행한다. 여기서, 예측을 수행하기 위해 이용되는 참조 픽쳐는 이전 시간에 부호화/복호화 시 블록 단위로 양자화와 역양자화를 거친 변환된 신호이기 때문에, 블로킹 아티팩트(blocking artifact)나 링잉 아티팩트(ringing artifact)가 존재할 수 있다. The inter prediction unit 180 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.
따라서, 인터 예측부(180)는 이러한 신호의 불연속이나 양자화로 인한 성능 저하를 해결하기 위해, 로우패스 필터(lowpass filter)를 적용함으로써 픽셀들 사이의 신호를 서브 픽셀 단위로 보간할 수 있다. 여기서, 서브 픽셀은 보간 필터를 적용하여 생성된 가상의 화소를 의미하고, 정수 픽셀은 복원된 픽쳐에 존재하는 실제 화소를 의미한다. 보간 방법으로는 선형 보간, 양선형 보간(bi-linear interpolation), 위너 필터(wiener filter) 등이 적용될 수 있다.Accordingly, the inter prediction unit 180 may interpolate the signals between pixels in sub-pixel units by applying a lowpass filter in order to solve performance degradation due to discontinuity or quantization of such signals. Herein, the subpixels mean virtual pixels generated by applying an interpolation filter, and the integer pixels mean actual pixels existing in the reconstructed picture. As the interpolation method, linear interpolation, bi-linear interpolation, wiener filter, or the like may be applied.
보간 필터는 복원 픽쳐(reconstructed picture)에 적용되어 예측의 정밀도를 향상시킬 수 있다. 예를 들어, 인터 예측부(180)는 정수 픽셀에 보간 필터를 적용하여 보간 픽셀을 생성하고, 보간 픽셀들(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 180 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.
인트라 예측부(185)는 현재 부호화를 진행하려고 하는 블록의 주변에 있는 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 인트라 예측부(185)는 인트라 예측을 수행하기 위해 다음과 같은 과정을 수행할 수 있다. 먼저, 예측 신호를 생성하기 위해 필요한 참조 샘플을 준비할 수 있다. 그리고, 준비된 참조 샘플을 이용하여 예측 신호를 생성할 수 있다. 이후, 예측 모드를 부호화하게 된다. 이때, 참조 샘플은 참조 샘플 패딩 및/또는 참조 샘플 필터링을 통해 준비될 수 있다. 참조 샘플은 예측 및 복원 과정을 거쳤기 때문에 양자화 에러가 존재할 수 있다. 따라서, 이러한 에러를 줄이기 위해 인트라 예측에 이용되는 각 예측 모드에 대해 참조 샘플 필터링 과정이 수행될 수 있다.The intra predictor 185 may predict the current block by referring to samples around the block to which current encoding is to be performed. The intra prediction unit 185 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. Then, 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.
본 발명의 일실시예는 인트라 예측 시 발생하는 레지듀얼 신호를 주변의 이미 복원된 영상으로부터 예측하는 방법을 제공한다. An embodiment of the present invention provides a method of predicting a residual signal generated during intra prediction from an image which is already reconstructed from a surrounding.
일실시예로, 코딩하고자 하는 영역의 주변 영역과 가장 유사한 영역을 이미 복원된 영상 내에서 탐색하고, 가장 유사한 영역이 탐색 되었을 경우 해당 영역의 레지듀얼 신호를 현재 코딩하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수 있다.In an embodiment, the region most similar to the surrounding region of the region to be coded is searched in the reconstructed image, and when the region most similar to the region is searched, the prediction residual signal of the region to which the residual signal of the region is currently coded. Can be utilized as
또한, 본 발명의 다른 일실시예는 코딩하고자 하는 영역의 주변 영역과 가장 유사한 위치 정보를 인코더로부터 전송 받아, 해당 영역의 레지듀얼 신호를 현재 코딩하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수 있다.In addition, another embodiment of the present invention may receive the position information most similar to the peripheral region of the region to be coded from the encoder, and utilize the residual signal of the region as a predictive residual signal of the region to be currently coded.
상기 인터 예측부(180) 또는 상기 인트라 예측부(185)를 통해 생성된 예측 신호(prediction signal)는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. A prediction signal generated by the inter predictor 180 or the intra predictor 185 may be used to generate a reconstruction signal or to generate a residual signal.
도 2는 본 발명이 적용되는 실시예로서, 비디오 신호의 디코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.2 is a schematic block diagram of a decoder in which decoding of a video signal is performed as an embodiment to which the present invention is applied.
도 2를 참조하면, 디코더(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 필터링부(240), 복호 픽쳐 버퍼(DPB: Decoded Picture Buffer Unit)(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 2, the decoder 200 includes an entropy decoding unit 210, an inverse quantizer 220, an inverse transform unit 230, a filtering unit 240, and a decoded picture buffer unit (DPB) 250. ), An inter predictor 260, and an intra predictor 265.
그리고, 디코더(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 may receive a signal output from the encoder 100 of FIG. 1, and the received signal may be 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 transformer 230 inversely transforms a transform coefficient to obtain a residual signal.
획득된 레지듀얼 신호를 인터 예측부(260) 또는 인트라 예측부(265)로부터 출력된 예측 신호(prediction signal)에 더함으로써 복원 신호(reconstructed signal)가 생성된다.A reconstructed signal is generated by adding the obtained residual signal to a prediction signal output from the inter predictor 260 or the intra predictor 265.
필터링부(240)는 복원 신호(reconstructed signal)에 필터링을 적용하여 이를 재생 장치로 출력하거나 복호 픽쳐 버퍼부(250)에 전송한다. 복호 픽쳐 버퍼부(250)에 전송된 필터링된 신호는 인터 예측부(260)에서 참조 픽쳐로 사용될 수 있다. The filtering unit 240 applies filtering to the reconstructed signal and outputs the filtering to the reproducing apparatus or transmits it to the decoded picture buffer unit 250. The filtered signal transmitted to the decoded picture buffer unit 250 may be used as the reference picture in the inter predictor 260.
본 명세서에서, 인코더(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코더의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일하게 적용될 수 있다.In the present specification, the embodiments described by the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoder 100 are respectively the filtering unit 240, the inter prediction unit 260, and the decoder. The same may be applied to the intra predictor 265.
도 3은 본 발명이 적용되는 실시예로서, 코딩 유닛의 분할 구조를 설명하기 위한 도면이다.3 is a diagram for describing a division structure of a coding unit according to an embodiment to which the present invention is applied.
인코더는 하나의 영상(또는 픽쳐)을 사각형 형태의 코딩 트리 유닛(CTU: Coding Tree Unit) 단위로 분할할 수 있다. 그리고, 래스터 스캔 순서(raster scan order)에 따라 하나의 CTU 씩 순차적으로 인코딩한다.The encoder may split one image (or picture) in units of a rectangular Coding Tree Unit (CTU). In addition, one CTU is sequentially encoded according to a raster scan order.
예를 들어, CTU의 크기는 64x64, 32x32, 16x16 중 어느 하나로 정해질 수 있으나, 본 발명은 이에 한정되지 않는다. 인코더는 입력된 영상의 해상도 또는 입력된 영상의 특성 등에 따라 CTU의 크기를 선택하여 사용할 수 있다. CTU은 휘도(luma) 성분에 대한 코딩 트리 블록(CTB: Coding Tree Block)과 이에 대응하는 두 개의 색차(chroma) 성분에 대한 코딩 트리 블록(CTB: Coding Tree Block)을 포함할 수 있다.For example, the size of the CTU may be set to any one of 64x64, 32x32, and 16x16, but the present invention is not limited thereto. 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 may include a coding tree block (CTB) for a luma component and a coding tree block (CTB) for two chroma components corresponding thereto.
하나의 CTU은 쿼드트리(quadtree, 이하 'QT'라 함) 구조로 분해될 수 있다. 예를 들어, 하나의 CTU은 정사각형 형태를 가지면서 각 변의 길이가 절반씩 감소하는 4개의 유닛으로 분할될 수 있다. 이러한 QT 구조의 분해는 재귀적으로 수행될 수 있다. One CTU may be decomposed into a quadtree (QT) structure. For example, one CTU may be divided into four units having a square shape and each side is reduced by half in length. The decomposition of this QT structure can be done recursively.
도 3을 참조하면, QT의 루트 노드(root node)는 CTU와 관련될 수 있다. QT는 리프 노드(leaf node)에 도달할 때까지 분할될 수 있고, 이때 상기 리프 노드는 코딩 유닛(CU: Coding Unit)으로 지칭될 수 있다. Referring to FIG. 3, a root node of a QT may be associated with a CTU. The QT may be split until it reaches a leaf node, where the leaf node may be referred to as a coding unit (CU).
CU은 입력 영상의 처리 과정, 예컨대 인트라(intra)/인터(inter) 예측이 수행되는 코딩의 기본 단위를 의미할 수 있다. CU은 휘도(luma) 성분에 대한 코딩 블록(CB: Coding Block)과 이에 대응하는 두 개의 색차(chroma) 성분에 대한 CB를 포함할 수 있다. 예를 들어, CU의 크기는 64x64, 32x32, 16x16, 8x8 중 어느 하나로 정해질 수 있으나, 본 발명은 이에 한정되지 않으며, 고해상도 영상일 경우, CU의 크기는 더 커지거나 다양해질 수 있다.A CU may mean a basic unit of coding in which an input image is processed, for example, intra / inter prediction is performed. The CU may include a coding block (CB) for a luma component and a CB for two chroma components corresponding thereto. For example, the size of the CU may be determined as any one of 64x64, 32x32, 16x16, and 8x8. However, the present invention is not limited thereto, and in the case of a high resolution image, the size of the CU may be larger or more diverse.
도 3을 참조하면, CTU는 루트 노드(root node)에 해당되고, 가장 작은 깊이(depth)(즉, 레벨 0) 값을 가진다. 입력 영상의 특성에 따라 CTU가 분할되지 않을 수도 있으며, 이 경우 CTU은 CU에 해당된다. Referring to FIG. 3, the CTU corresponds to a root node and has the smallest depth (ie, level 0) value. The CTU may not be divided according to the characteristics of the input image. In this case, the CTU corresponds to a CU.
CTU은 QT 형태로 분해될 수 있으며, 그 결과 레벨 1의 깊이를 가지는 하위 노드들이 생성될 수 있다. 그리고, 레벨 1의 깊이를 가지는 하위 노드에서 더 이상 분할되지 않은 노드(즉, 리프 노드)는 CU에 해당한다. 예를 들어, 도 3(b)에서 노드 a, b 및 j에 대응하는 CU(a), CU(b), CU(j)는 CTU에서 한 번 분할되었으며, 레벨 1의 깊이를 가진다.The CTU may be decomposed in QT form, and as a result, lower nodes having a depth of level 1 may be generated. And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of level 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 level 1. FIG.
레벨 1의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 QT 형태로 분할될 수 있다. 그리고, 레벨 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 level 1 may be split into QT again. And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a level 2 depth 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 level 2. FIG.
또한, 레벨 2의 깊이를 가지는 노드 중 적어도 어느 하나는 다시 QT 형태로 분할될 수 있다. 그리고, 레벨 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 QTs. And, a node that is no longer partitioned (ie, a leaf node) in a lower node having a depth of level 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, and level 3 Has a depth of
인코더에서는 비디오 영상의 특성(예를 들어, 해상도)에 따라서 혹은 부호화의 효율을 고려하여 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가 QT 형태로 분할되므로, LCU의 크기 및 최대 깊이 정보를 이용하면 SCU의 크기를 구할 수 있다. 또는 역으로, SCU의 크기 및 트리의 최대 깊이 정보를 이용하면, LCU의 크기를 구할 수 있다.Since the LCU is divided into QT forms, 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이 분할 되는지 여부를 나타내는 정보가 디코더에 전달될 수 있다. 예를 들어, 상기 정보는 분할 플래그로 정의될 수 있으며, 신택스 엘리먼트 "split_cu_flag"로 표현될 수 있다. 상기 분할 플래그는 SCU을 제외한 모든 CU에 포함될 수 있다. 예를 들어, 상기 분할 플래그의 값이 '1'이면 해당 CU은 다시 4개의 CU으로 나누어지고, 상기 분할 플래그의 값이 '0'이면 해당 CU은 더 이상 나누어지지 않고 해당 CU에 대한 코딩 과정이 수행될 수 있다.For one CU, information indicating whether the corresponding CU is split may be delivered to the decoder. For example, the information may be defined as a split flag and may be represented by a syntax element "split_cu_flag". The division flag may be included in all CUs except the SCU. For example, if the split flag value is '1', the corresponding CU is divided into four CUs again. If the split flag value is '0', the CU is not divided any more and the coding process for the CU is not divided. Can be performed.
앞서 도 3의 실시예에서는 CU의 분할 과정에 대해 예로 들어 설명하였으나, 변환을 수행하는 기본 단위인 변환 유닛(TU: Transform Unit)의 분할 과정에 대해서도 상술한 QT 구조를 적용할 수 있다. In the embodiment of FIG. 3, the division process of the CU has been described as an example, but the QT structure described above may also be applied to the division process of a transform unit (TU) which is a basic unit for performing transformation.
TU는 코딩하려는 CU로부터 QT 구조로 계층적으로 분할될 수 있다. 예를 들어, CU은 변환 유닛(TU)에 대한 트리의 루트 노트(root node)에 해당될 수 있다. The TU may be hierarchically divided into a QT structure from a CU to be coded. For example, a CU may correspond to a root node of a tree for a transform unit (TU).
TU는 QT 구조로 분할되므로 CU로부터 분할된 TU는 다시 더 작은 하위 TU로 분할될 수 있다. 예를 들어, TU의 크기는 32x32, 16x16, 8x8, 4x4 중 어느 하나로 정해질 수 있으나, 본 발명은 이에 한정되지 않으며, 고해상도 영상일 경우, TU의 크기는 더 커지거나 다양해질 수 있다.Since the TU is divided into QT structures, the TU divided from the CU may be divided into smaller lower TUs. For example, the size of the TU may be determined by any one of 32x32, 16x16, 8x8, and 4x4. However, the present invention is not limited thereto, and in the case of a high resolution image, the size of the TU may be larger or more diverse.
하나의 TU에 대하여, 해당 TU이 분할 되는지 여부를 나타내는 정보가 디코더에 전달될 수 있다. 예를 들어, 상기 정보는 분할 변환 플래그로 정의될 수 있으며, 신택스 엘리먼트 "split_transform_flag"로 표현될 수 있다. For one TU, information indicating whether the corresponding TU is divided may be delivered to the decoder. For example, the information may be defined as a split transform flag and may be represented by a syntax element "split_transform_flag".
상기 분할 변환 플래그는 최소 크기의 TU을 제외한 모든 TU에 포함될 수 있다. 예를 들어, 상기 분할 변환 플래그의 값이 '1'이면 해당 TU은 다시 4개의 TU으로 나누어지고, 상기 분할 변환 플래그의 값이 '0'이면 해당 TU은 더 이상 나누어지지 않는다. The division conversion flag may be included in all TUs except the TU of the minimum size. For example, if the value of the division conversion flag is '1', the corresponding TU is divided into four TUs again. If the value of the division conversion flag is '0', the corresponding TU is no longer divided.
상기에서 설명한 바와 같이, CU는 인트라 예측 또는 인터 예측이 수행되는 코딩의 기본 단위이다. 입력 영상을 보다 효과적으로 코딩하기 위하여 CU를 예측 유닛(PU: Prediction Unit) 단위로 분할할 수 있다. As described above, a CU is a basic unit of coding in which intra prediction or inter prediction is performed. In order to code an input image more effectively, a CU may be divided into prediction units (PUs).
PU는 예측 블록을 생성하는 기본 단위로서, 하나의 CU 내에서도 PU 단위로 서로 다르게 예측 블록을 생성할 수 있다. PU는 PU가 속하는 CU의 코딩 모드로 인트라 예측 모드가 사용되는지 인터 예측 모드가 사용되는지에 따라 상이하게 분할될 수 있다.The PU is a basic unit for generating a prediction block, and may generate different prediction blocks in PU units within one CU. The PU may be 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는 본 발명이 적용되는 실시예로서, 예측 유닛을 설명하기 위한 도면이다. 4 is a diagram for describing a prediction unit according to an embodiment to which the present invention is applied.
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의 크기가 2Nx2N(N=4,8,16,32)인 경우를 가정하면, 하나의 CU는 2가지 타입(즉, 2Nx2N 또는 NxN)으로 분할될 수 있다. Referring to FIG. 4 (a), assuming that a size of one CU is 2Nx2N (N = 4,8,16,32), one CU may be divided into two types (ie, 2Nx2N or NxN). Can be.
여기서, 2Nx2N 형태의 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의 크기가 2Nx2N(N=4,8,16,32)인 경우를 가정하면, 하나의 CU는 8가지의 PU 타입(즉, 2Nx2N, NxN, 2NxN, Nx2N, nLx2N, nRx2N, 2NxnU, 2NxnD)으로 분할될 수 있다.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, 2Nx2N, NxN, 2NxN). , Nx2N, nLx2N, nRx2N, 2NxnU, 2NxnD).
인트라 예측과 유사하게, NxN 형태의 PU 분할은 CU의 휘도 성분에 대한 CB의 크기가 최소 크기인 경우(즉, CU가 SCU인 경우)에만 수행될 수 있다. Similar to intra prediction, PU splitting in the form of NxN 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).
인터 예측에서는 가로 방향으로 분할되는 2NxN 형태 및 세로 방향으로 분할되는 Nx2N 형태의 PU 분할을 지원한다. In inter prediction, 2NxN type partitioning in the horizontal direction and Nx2N type PU partitioning in the vertical direction are supported.
또한, 비대칭 움직임 분할(AMP: Asymmetric Motion Partition) 형태인 nLx2N, nRx2N, 2NxnU, 2NxnD 형태의 PU 분할을 지원한다. 여기서, 'n'은 2N의 1/4 값을 의미한다. 다만, AMP는 PU가 속한 CU가 최소 크기의 CU인 경우 사용될 수 없다. In addition, it supports PU partitions of nLx2N, nRx2N, 2NxnU, and 2NxnD 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) 값을 기반으로 결정될 수 있다. 예를 들어, 64x64 CTU 내 최적의 CU 분할 과정을 살펴보면, 64x64 크기의 CU에서 8x8 크기의 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 an optimal CU partitioning process in a 64x64 CTU, rate-distortion cost can be calculated while partitioning from a 64x64 CU to an 8x8 CU. The specific process is as follows.
1) 64x64 크기의 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 for a 64x64 CU.
2) 64x64 CU를 32x32 크기의 CU 4개로 분할하고 각 32x32 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.2) Partition the 64x64 CU into four 32x32 CUs and determine the optimal PU and TU partitioning structure that generates the minimum rate-distortion value for each 32x32 CU.
3) 32x32 CU를 16x16 크기의 CU 4개로 다시 분할하고, 각 16x16 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.3) The 32x32 CU is subdivided into four 16x16 CUs, and a partition structure of an optimal PU and TU that generates a minimum rate-distortion value for each 16x16 CU is determined.
4) 16x16 CU를 8x8 크기의 CU 4개로 다시 분할하고, 각 8x8 CU에 대해 최소의 율-왜곡 값을 발생시키는 최적의 PU와 TU의 분할 구조를 결정한다.4) Subdivide the 16x16 CU into four 8x8 CUs, and determine the optimal PU and TU partitioning structure that generates the minimum rate-distortion value for each 8x8 CU.
5) 위의 3)의 과정에서 산출한 16x16 CU의 율-왜곡 값과 위의 4)의 과정에서 산출한 4개 8x8 CU의 율-왜곡 값의 합을 비교하여 16x16 블록 내에서 최적의 CU의 분할 구조를 결정한다. 이 과정을 나머지 3개의 16x16 CU들에 대해서도 동일하게 수행한다.5) Compare the sum of the rate-distortion values of the 16x16 CUs calculated in step 3) with the rate-distortion values of the four 8x8 CUs calculated in step 4) to determine the optimal CU in the 16x16 block. Determine the partition structure. This process is similarly performed for the remaining three 16x16 CUs.
6) 위의 2)의 과정에서 계산된 32x32 CU의 율-왜곡 값과 위의 5)의 과정에서 획득한 4개 16x16 CU의 율-왜곡 값의 합을 비교하여 32x32 블록 내에서 최적의 CU의 분할 구조를 결정한다. 이 과정을 나머지 3개의 32x32 CU들에 대해서도 동일하게 수행한다.6) Compare the sum of the rate-distortion values of the 32x32 CUs calculated in 2) with the rate-distortion values of the four 16x16 CUs obtained in 5) above, Determine the partition structure. Do this for the remaining three 32x32 CUs.
7) 마지막으로, 위의 1)의 과정에서 계산된 64x64 CU의 율-왜곡 값과 위의 6)의 과정에서 획득한 4개 32x32 CU의 율-왜곡 값의 합을 비교하여 64x64 블록 내에서 최적의 CU의 분할 구조를 결정한다.7) Finally, compare the sum of the rate-distortion values of the 64x64 CUs calculated in 1) with the rate-distortion values of the four 32x32 CUs obtained in 6) above, and then optimize the result within the 64x64 block. 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 quadtree structures to generate a CU, the TUs are hierarchically divided into quadtree 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 quadtree structures, the TU divided from the CU may be divided into smaller lower TUs. In HEVC, the size of the TU may be set to any one of 32 × 32, 16 × 16, 8 × 8, and 4 × 4.
다시 도 3을 참조하면, 쿼드트리의 루트 노드(root node)는 CU와 관련된다고 가정한다. 쿼드트리는 리프 노드(leaf node)에 도달할 때까지 분할되고, 리프 노드는 TU에 해당한다. Referring back to FIG. 3, it is assumed that a root node of the quadtree is associated with a CU. The quadtree is split until it reaches a leaf node, and the leaf node 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 split into a quad tree again, resulting in lower nodes having a depth of 1 (ie, depth = 2). 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.
도 5 및 도 6은 본 발명이 적용되는 실시예들로서, 도 5는 인트라 예측 방법을 설명하기 위한 도면이고, 도 6은 인트라 예측 모드에 따른 예측 방향을 설명하기 위한 도면이다.5 and 6 illustrate embodiments to which the present invention is applied. FIG. 5 is a diagram illustrating an intra prediction method, and FIG. 6 is a diagram illustrating a prediction direction according to an intra prediction mode.
도 5를 참조하면, 디코더는 현재 처리 블록의 인트라 예측 모드를 유도(derivation)할 수 있다(S501).Referring to FIG. 5, the decoder may derive an intra prediction mode of the current processing block (S501).
인트라 예측에서는 예측 모드에 따라 예측에 사용되는 참조 샘플의 위치에 대한 예측 방향을 가질 수 있다. 본 명세서에서는 예측 방향을 가지는 인트라 예측 모드를 인트라 방향성 예측 모드(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. In this specification, an intra prediction mode having a prediction direction is referred to as an intra_angular prediction mode or an intra directional 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은 인트라 예측 모드와 관련 명칭에 대하여 예시하고, 도 6은 인트라 예측 모드에 따른 예측 방향을 예시한다. Table 1 illustrates an intra prediction mode and related names, and FIG. 6 illustrates a prediction direction according to the intra prediction mode.
표 1
인트라 예측 모드(Intra prediction mode) 관련 명칭(Associated name)
0 인트라 플래너(INTRA_PLANAR)
1 인트라 DC(INTRA_DC)
2...34 인트라 방향성 2 ... 인트라 방향성 34(INTRA_ANGULAR2 ... INTRA_ANGULAR34)
Table 1
Intra prediction mode Associated name
0 Intra Planner (INTRA_PLANAR)
One Intra DC (INTRA_DC)
2 ... 34 Intra directional 2 ... Intra directional 34 (INTRA_ANGULAR2 ... INTRA_ANGULAR34)
인트라 예측에서는 유도되는 예측 모드에 기반하여 현재 처리 블록에 대한 예측을 수행한다. 예측 모드에 따라 예측에 사용되는 참조 샘플과 구체적인 예측 방법이 달라지므로, 현재 블록이 인트라 예측 모드로 인코딩된 경우, 디코더는 예측을 수행하기 위해 현재 블록의 예측 모드를 유도할 수 있다. In intra prediction, prediction is performed on the current processing block based on the derived prediction mode. Since the reference sample used for the prediction and the specific prediction method vary according to the prediction mode, when the current block is encoded in the intra prediction mode, the decoder may derive the prediction mode of the current block to perform the prediction.
디코더는 현재 처리 블록의 주변 샘플들(neighboring samples)이 예측에 사용될 수 있는지 확인하고, 예측에 사용할 참조 샘플들을 구성할 수 있다(S502).The decoder may check whether neighboring samples of the current processing block can be used for prediction and configure reference samples to be used for prediction (S502).
인트라 예측에서 현재 처리 블록의 주변 샘플들은 nSxnS 크기의 현재 처리 블록의 좌측(left) 경계에 인접한 샘플 및 좌하측(bottom-left)에 이웃하는 총 2xnS 개의 샘플들, 현재 처리 블록의 상측(top) 경계에 인접한 샘플 및 우상측(top-right)에 이웃하는 총 2xnS 개의 샘플들 및 현재 처리 블록의 좌상측(top-left)에 이웃하는 1개의 샘플을 의미한다. In intra prediction, neighboring samples of the current processing block are samples adjacent to the left boundary of the current processing block of size nSxnS and a total of 2xnS samples neighboring the bottom-left, top of the current processing block. A total of 2xnS samples neighboring the top-right sample and a sample adjacent to the boundary and one sample neighboring 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.
디코더는 인트라 예측 모드에 기반하여 참조 샘플의 필터링을 수행할 수 있다(S503).The decoder may perform filtering of reference samples based on the intra prediction mode (S503).
참조 샘플의 필터링 수행 여부는 현재 처리 블록의 크기에 기반하여 결정될 수 있다. 또한, 참조 샘플의 필터링 방법은 인코더로부터 전달되는 필터링 플래그에 의해 결정될 수 있다. 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.
디코더는 인트라 예측 모드와 참조 샘플들에 기반하여 현재 처리 블록에 대한 예측 블록을 생성하 수 있다(S504). 즉, 디코더는 인트라 예측 모드 유도 단계(S501)에서 유도된 인트라 예측 모드와 참조 샘플 구성 단계(S502)와 참조 샘플 필터링 단계(S503)를 통해 획득한 참조 샘플들에 기반하여 현재 처리 블록에 대한 예측 블록을 생성(즉, 예측 샘플 생성)할 수 있다. The decoder may generate a prediction block for the current processing block based on the intra prediction mode and the reference samples (S504). That is, the decoder predicts the current processing block based on the intra prediction mode derived in the intra prediction mode derivation step S501 and the reference samples obtained through the reference sample configuration step S502 and the reference sample filtering step S503. A block may be generated (ie, predictive sample generation).
현재 처리 블록이 INTRA_DC 모드로 인코딩된 경우 처리 블록 간의 경계의 불연속성(discontinuity)를 최소화하기 위해, S504 단계에서 예측 블록의 좌측(left) 경계 샘플(즉, 좌측 경계에 인접한 예측 블록 내 샘플)과 상측(top) 경계 샘플(즉, 상측 경계에 인접한 예측 블록 내 샘플)을 필터링할 수 있다. In order to minimize the discontinuity of the boundary between the processing blocks when the current processing block is encoded in the INTRA_DC mode, the left boundary sample (ie, the sample in the prediction block adjacent to the left boundary) and the upper side of the prediction block in step S504. (top) boundary samples (i.e., samples in prediction blocks adjacent to the upper boundary) may be filtered.
또한, S504 단계에서 인트라 방향성 예측 모드들 중 수직 방향 모드(vertical mode) 및 수평 방향 모드(horizontal mode)에 대해서도 INTRA_DC 모드와 유사하게 좌측 경계 샘플 또는 상측 경계 샘플에 필터링을 적용할 수 있다. In addition, in operation S504, 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 a 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.
도 7은 본 발명이 적용되는 다른 실시예로서, 비디오 신호의 인코딩이 수행되는 인코더의 개략적인 블록도를 나타낸다.7 is a schematic block diagram of an encoder in which encoding of a video signal is performed, according to another embodiment to which the present invention is applied.
상기 도 7을 살펴보면, 본 발명이 적용되는 인코더는 예측부(700), 변환부(730), 양자화부(740), 역양자화부(750), 역변환부(760) 및 DPB(770)을 포함할 수 있다. 그리고, 상기 예측부(700)는 참조 레지듀얼 신호 생성부(710), 참조 복원 신호 생성부(711), 참조 예측 신호 생성부(712) 및 인트라 예측부(720) 중 적어도 하나를 포함할 수 있다. Referring to FIG. 7, the encoder to which the present invention is applied includes a predictor 700, a transformer 730, a quantizer 740, an inverse quantizer 750, an inverse transformer 760, and a DPB 770. can do. The prediction unit 700 may include at least one of a reference residual signal generator 710, a reference reconstruction signal generator 711, a reference prediction signal generator 712, and an intra predictor 720. have.
한편, 가산기/감산기는 별도의 식별 표시는 하지 않으나, 신호의 합과 차를 산출하기 위해 필요한 곳에서 이용될 수 있음은 당연하다. 또한, 상기 예측부(700)는 앞서 설명한 인트라 예측부 및 인터 예측부를 모두 포함할 수 있으며, 본 발명의 일실시예에서는 인트라 예측부를 기준으로 설명하나 본 발명은 이에 한정되지 않는다.On the other hand, the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal. In addition, the predictor 700 may include both the intra predictor and the inter predictor as described above. In an embodiment of the present invention, the intra predictor is described, but the present invention is not limited thereto.
그리고, 상기 변환부(730), 상기 양자화부(740), 상기 역양자화부(750), 상기 역변환부(760) 및 상기 DPB(770)는 도 1 및 도 2에서 설명한 내용이 적용될 수 있으며, 중복되는 설명은 생략하도록 한다.In addition, the converter 730, the quantization unit 740, the inverse quantization unit 750, the inverse transform unit 760, and the DPB 770 may be applied to the contents described with reference to FIGS. 1 and 2. Overlapping descriptions will be omitted.
본 발명은 인트라 코딩시 발생하는 레지듀얼 신호를 주변의 이미 복원된 영상으로부터 예측하는 방법을 제안한다. The present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding.
본 발명의 일실시예로, 부호화 또는 복호화 하고자 하는 영역의 주변 영역과 가장 유사한 영역을 이미 복원된 영상 내에서 탐색하고, 가장 유사한 영역이 탐색 되었을 경우 해당 영역의 레지듀얼 신호를 현재 부호화 또는 복호화 하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수 있다.In one embodiment of the present invention, the region most similar to the peripheral region of the region to be encoded or decoded is searched in the reconstructed image, and if the most similar region is found, the residual signal of the region is currently encoded or decoded. It can be used as a predictive residual signal of a region.
먼저, 참조 복원 신호 생성부(711)는 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다. 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 이에 대한 구체적인 실시예들은 도 9 및 도 12에서 상세히 설명하도록 한다. 상기 탐색된 참조 블록으로부터 참조 복원 신호(Reconref)를 생성할 수 있다. 여기서, 상기 참조 블록은 이미 복원된 신호이므로, 이를 참조 복원 신호라 부를 수 있다.First, the reference reconstruction signal generator 711 may search for a reference block for the current block in the reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof will be described in detail with reference to FIGS. 9 and 12. A reference reconstruction signal Recon ref may be generated from the found reference block. Here, since the reference block is a signal that has already been restored, it may be referred to as a reference recovery signal.
상기 참조 블록을 탐색한 후, 참조 예측 신호 생성부(712)는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호(Predref)를 생성할 수 있다. 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the reference prediction signal generator 712 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
다른 예로, 참조 예측 신호 생성부(712)는 상기 참조 블록의 주변 정보를 이용하여 참조 예측 신호를 생성할 수 있다. 예를 들어, 상기 참조 블록의 상단 블록, 하단 블록, 좌측 블록, 또는 우측 블록 중 적어도 하나의 블록의 코딩 정보를 이용할 수 있다. 여기서, 상기 코딩 정보는 픽셀 정보 또는 예측 모드 정보 중 적어도 하나를 포함할 수 있다.As another example, the reference prediction signal generator 712 may generate a reference prediction signal by using the peripheral information of the reference block. For example, coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used. Here, the coding information may include at least one of pixel information or prediction mode information.
참조 레지듀얼 신호 생성부(710)는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호(Resref)를 생성할 수 있다.The reference residual signal generator 710 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal.
한편, 인트라 예측부(720)는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호(Predcurr)를 생성할 수 있다.Meanwhile, the intra predictor 720 may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal Pre curr of the current block through the intra prediction.
본 발명은, 좀더 정확한 예측 신호를 생성하기 위해 상기 현재 블록의 예측 신호(Predcurr)를 업데이트 또는 보정할 수 있다. 예를 들어, 참조 레지듀얼 신호(Resref)를 이용하여 상기 현재 블록의 예측 신호(Predcurr)를 업데이트할 수 있다. 즉, 상기 참조 레지듀얼 신호(Resref)를 상기 현재 블록의 예측 신호(Predcurr)에 가산함으로써, 업데이트된 예측 신호(Predupdate)를 생성할 수 있다.The present invention may update or correct the prediction signal Pred curr of the current block to generate a more accurate prediction signal. For example, the prediction signal Pre curr of the current block may be updated by using a reference residual signal Res ref . That is, the updated prediction signal Pre update may be generated by adding the reference residual signal Res ref to the prediction signal Pred curr of the current block.
원본 신호로부터 상기 업데이트된 예측 신호(Predupdate)를 감산함으로써 레지듀얼 신호(Rescurr)를 생성할 수 있다. 상기 레지듀얼 신호(Rescurr)는 변환부(730)를 통해 변환되고, 양자화부(740)를 통해 양자화되고, 엔트로피 인코딩부(미도시)를 통해 엔트로피 인코딩되어 출력될 수 있다.By subtracting the updated prediction signal (Pred update) from the source signal to generate a residual signal (Res curr). The residual signal Res curr may be converted by the converter 730, quantized by the quantizer 740, and entropy encoded by an entropy encoding unit (not shown).
한편, 상기 양자화부(740)를 통해 양자화된 레지듀얼 신호(Rescurr)는 다시 역양화부(750)를 통해 역양자화되고, 역변환부(760)를 통해 역변환될 수 있다. 이와 같은 과정을 거친 레지듀얼 신호(Rescurr)는 상기 참조 예측 신호 생성부(712)를 통해 생성된 참조 예측 신호(Predref)와 가산되어 복원 신호를 생성하며, 생성된 복원 신호는 DPB(770)에 저장될 수 있다. On the other hand, the quantization unit 740, a residual signal (Res curr) is quantized by the inverse quantization by the inverse again positive unit 750 may be inverse transformed by the inverse transformation unit (760). The residual signal Res curr that has undergone the above process is added to the reference prediction signal Pre ref generated by the reference prediction signal generator 712 to generate a reconstruction signal, and the generated reconstruction signal is a DPB 770. ) Can be stored.
다른 예로, 상기 레지듀얼 신호(Rescurr)는 상기 인트라 예측부(720)를 통해 생성된 현재 블록의 예측 신호(Predcurr)와 가산되어 복원 신호를 생성할 수 있으며, 생성된 복원 신호는 DPB(770)에 저장될 수 있다.As another example, the residual signal Res curr may be added to a prediction signal Pre curr of the current block generated by the intra predictor 720 to generate a reconstruction signal, and the generated reconstruction signal is DPB ( 770 may be stored.
저장된 복원 신호는 인터 예측 또는 인트라 예측을 위해 이용될 수 있다.The stored reconstruction signal may be used for inter prediction or intra prediction.
도 8은 본 발명이 적용되는 다른 실시예로서, 비디오 신호의 디코딩이 수행되는 디코더의 개략적인 블록도를 나타낸다.8 is a schematic block diagram of a decoder in which decoding of a video signal is performed as another embodiment to which the present invention is applied.
상기 도 8을 살펴보면, 본 발명이 적용되는 디코더는 참조 레지듀얼 신호 생성부(810), 참조 복원 신호 생성부(811), 참조 예측 신호 생성부(812) 예측부(820), 역양자화부(850), 역변환부(860) 및 DPB(870)을 포함할 수 있다. Referring to FIG. 8, a decoder to which the present invention is applied includes a reference residual signal generator 810, a reference reconstruction signal generator 811, a reference prediction signal generator 812, a predictor 820, and an inverse quantizer ( 850, an inverse transform unit 860, and a DPB 870.
한편, 가산기/감산기는 별도의 식별 표시는 하지 않으나, 신호의 합과 차를 산출하기 위해 필요한 곳에서 이용될 수 있음은 당연하다. 또한, 상기 예측부(820)는 앞서 설명한 인트라 예측부 및 인터 예측부를 모두 포함할 수 있으며, 본 발명의 일실시예에서는 인트라 예측부를 기준으로 설명하나 본 발명은 이에 한정되지 않는다.On the other hand, the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal. In addition, the prediction unit 820 may include both the intra prediction unit and the inter prediction unit described above. In an embodiment of the present invention, the prediction unit 820 is described based on the intra prediction unit, but the present invention is not limited thereto.
그리고, 상기 역양자화부(850), 역변환부(860) 및 DPB(870)는 도 1, 도 2 및 도 7에서 설명한 내용이 적용될 수 있으며, 중복되는 설명은 생략하도록 한다.The inverse quantization unit 850, the inverse transform unit 860, and the DPB 870 may be applied to the contents described with reference to FIGS. 1, 2, and 7, and redundant descriptions thereof will be omitted.
먼저, 참조 복원 신호 생성부(811)는 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다. 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 이에 대한 구체적인 실시예들은 도 9 및 도 12에서 상세히 설명하도록 한다. 상기 탐색된 참조 블록으로부터 참조 복원 신호(Reconref)를 생성할 수 있다. 여기서, 상기 참조 블록은 이미 복원된 신호이므로, 이를 참조 복원 신호라 부를 수 있다.First, the reference reconstruction signal generator 811 may search for a reference block with respect to the current block in a reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof will be described in detail with reference to FIGS. 9 and 12. A reference reconstruction signal Recon ref may be generated from the found reference block. Here, since the reference block is a signal that has already been restored, it may be referred to as a reference recovery signal.
상기 참조 블록을 탐색한 후, 참조 예측 신호 생성부(812)는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호(Predref)를 생성할 수 있다. 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching the reference block, the reference prediction signal generator 812 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
다른 예로, 참조 예측 신호 생성부(812)는 상기 참조 블록의 주변 정보를 이용하여 참조 예측 신호를 생성할 수 있다. 예를 들어, 상기 참조 블록의 상단 블록, 하단 블록, 좌측 블록, 또는 우측 블록 중 적어도 하나의 블록의 코딩 정보를 이용할 수 있다. 여기서, 상기 코딩 정보는 픽셀 정보 또는 예측 모드 정보 중 적어도 하나를 포함할 수 있다.As another example, the reference prediction signal generator 812 may generate a reference prediction signal using the surrounding information of the reference block. For example, coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used. Here, the coding information may include at least one of pixel information or prediction mode information.
참조 레지듀얼 신호 생성부(810)는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호(Resref)를 생성할 수 있다.The reference residual signal generator 810 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal.
한편, 본 발명이 적용되는 디코더는 비트스트림을 입력받고, 상기 비트스트림은 상기 역양자화부(850) 및 상기 역변환부(860)를 거쳐 레지듀얼 신호(Rescurr)를 획득할 수 있다.Meanwhile, a decoder to which the present invention is applied may receive a bitstream, and the bitstream may obtain a residual signal Res curr through the inverse quantizer 850 and the inverse transformer 860.
본 발명은, 보다 정확한 신호 복원을 위해, 레지듀얼 신호(Rescurr)를 보상(compensate)할 수 있다. 예를 들어, 현재 블록과 유사한 참조 블록의 레지듀얼 신호를 이용하여, 상기 레지듀얼 신호(Rescurr)를 보상(compensate)할 수 있다. 즉, 상기 레지듀얼 신호(Rescurr)에 상기 참조 레지듀얼 신호 생성부(810)를 통해 획득된 참조 레지듀얼 신호를 가산함으로써 레지듀얼 신호(Rescurr)를 보상(compensate)할 수 있다.The present invention may compensate for the residual signal Res curr for more accurate signal recovery. For example, the residual signal Res curr may be compensated using the residual signal of the reference block similar to the current block. That is, the residual signal Res curr may be compensated by adding the reference residual signal acquired through the reference residual signal generator 810 to the residual signal Res curr .
그리고, 예측부(820)는 상기 현재 블록에 대해 결정된 예측 모드에 따라 예측을 수행할 수 있고, 상기 예측을 통해 상기 현재 블록의 예측 신호(Predcurr)를 생성할 수 있다.The prediction unit 820 may perform prediction according to the prediction mode determined for the current block, and may generate a prediction signal Pred curr of the current block through the prediction.
상기 예측 신호(Predcurr)와 상기 보상된 레지듀얼 신호를 합하여, 비디오 신호를 복원할 수 있다. The video signal may be reconstructed by adding the predicted signal Pred curr and the compensated residual signal.
본 발명의 다른 실시예로, 부호화 또는 복호화 하고자 하는 영역의 주변 영역과 가장 유사한 좌표 정보를 인코더로부터 전송 받아, 해당 영역의 레지듀얼 신호를 현재 부호화 또는 복호화 하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수도 있다.In another embodiment of the present invention, the encoder receives the coordinate information most similar to the peripheral region of the region to be encoded or decoded, and utilizes the residual signal of the region as a predictive residual signal of the region to be currently encoded or decoded. have.
도 9는 본 발명이 적용되는 실시예로서, 주변 복원 정보를 이용하여 참조 블록을 탐색하는 방법을 설명하기 위한 도면이다.FIG. 9 is a diagram for describing a method of searching for a reference block using surrounding restoration information according to an embodiment to which the present invention is applied.
본 발명은 인트라 코딩시 발생하는 레지듀얼 신호를 주변의 이미 복원된 영상으로부터 예측하는 방법을 제안한다. The present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding.
본 발명의 일실시예로, 부호화 또는 복호화 하고자 하는 영역의 주변 영역과 가장 유사한 영역을 이미 복원된 영상 내에서 탐색하고, 가장 유사한 영역이 탐색 되었을 경우 해당 영역의 레지듀얼 신호를 현재 부호화 또는 복호화 하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수 있다.In one embodiment of the present invention, the region most similar to the peripheral region of the region to be encoded or decoded is searched in the reconstructed image, and if the most similar region is found, the residual signal of the region is currently encoded or decoded. It can be used as a predictive residual signal of a region.
본 발명은, 템플릿을 이용하여 현재 프레임의 복원된 영역(reconstructed area) 내에서 참조 블록을 탐색할 수 있다. 여기서, 템플릿은 기설정된 형태로 정의될 수 있으며, 예를 들어 도 9와 같이 현재 블록의 상측과 좌측에 인접하는 픽셀로 구성되는 형태를 가질 수 있으나 본 발명은 이에 한정되지 않는다.The present invention can search for a reference block within a reconstructed area of the current frame using a template. Here, the template may be defined in a predetermined form, for example, may have a form consisting of pixels adjacent to the upper side and the left side of the current block as shown in FIG. 9, but the present invention is not limited thereto.
도 9를 살펴보면, 인코더 또는 디코더는 템플릿curr와 가장 유사한 영역을 탐색함으로써, 템플릿ref를 찾을 수 있다. 상기 인코더 또는 디코더는 상기 템플릿ref를 이용하여 현재 블록과 대응되는 위치를 참조 블록을 결정할 수 있다.Referring to FIG. 9, the encoder or the decoder may find a template ref by searching an area most similar to the template curr . The encoder or decoder may determine a reference block by using the template ref for a position corresponding to the current block.
참조 블록을 결정한 이후에, 상기 인코더 또는 디코더는 상기 도 7 또는 도 8에서 설명한 바와 같이 이후의 과정을 수행할 수 있다.After determining the reference block, the encoder or decoder may perform the following process as described with reference to FIG. 7 or 8.
예를 들어, 디코더는 인코더로부터 전송된 현재 블록의 예측 모드와 참조 블록의 주변 정보를 이용하여 참조 예측 신호(Predref)를 생성하고, 상기 참조 블록으로부터 상기 참조 예측 신호(Predref)를 감산함으로써 참조 레지듀얼 신호(Resref)를 생성할 수 있다. For example, the decoder generates a reference prediction signal Pre ref using the prediction mode of the current block transmitted from the encoder and the surrounding information of the reference block, and subtracts the reference prediction signal Pred ref from the reference block. The reference residual signal Res ref may be generated.
그리고, 인코더로부터 전송된 레지듀얼 신호(Rescurr)와 상기 참조 레지듀얼 신호(Resref)를 가산함으로써 레지듀얼 신호를 보상할 수 있다. 보상된 레지듀얼 신호는 현재 블록의 예측 신호와 결합함으로써 복원 신호(Reconcurr)를 생성할 수 있다. 이를 수학식으로 표현하면, 아래 수학식 1과 같다.The residual signal can be compensated by adding the residual signal Res curr transmitted from the encoder and the reference residual signal Res ref . The compensated residual signal may be combined with the prediction signal of the current block to generate a reconstruction signal Recon curr . If this is expressed as an equation, Equation 1 below.
수학식 1
Figure PCTKR2016003667-appb-M000001
Equation 1
Figure PCTKR2016003667-appb-M000001
본 발명은, 영상 복호화에 필요한 레지듀얼 신호를 주변 복원 정보로부터 예측함으로써 비트율을 저감할 수 있다. 디코더에서의 복호화를 위해 필요한 정보를 크게 모드 정보와 픽셀 정보로 분류할 수 있다. 상기 모드 정보는 영상 복호에 필요한 픽셀 데이터 이외의 정보를 의미할 수 있다. 예를 들어, 상기 모드 정보는 인트라 예측 모드 정보, MPM 정보, 블록 크기 정보, QP 정보 등을 포함할 수 있다. 상기 픽셀 정보는 원본 신호와 예측 신호와의 차이를 나타내는 레지듀얼 신호를 의미할 수 있다. 상기 레지듀얼 신호는 엔트로피 디코딩, 역양자화 및 역변환을 거쳐 픽셀 도메인의 정보로 표현될 수 있고, 이는 예측 신호와 결합되어 복원 신호를 생성할 수 있다. The present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information. Information necessary for decoding in the decoder can be largely classified into mode information and pixel information. The mode information may mean information other than pixel data necessary for image decoding. For example, the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like. The pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal. The residual signal may be represented as information in the pixel domain through entropy decoding, inverse quantization, and inverse transformation, which may be combined with a prediction signal to generate a reconstruction signal.
본 발명은, 이미 복원된 픽셀을 이용하여 레지듀얼 신호를 유도해 낼 수 있으며 이로 인하여 디코더로 전송되는 정보의 양을 절약할 수 있다.According to the present invention, a residual signal can be derived using an already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
본 발명에서 제안하는 방법은 다양한 색차 구성을 가진 포맷의 각 컴포넌트(RGB, YCbCr 등)를 부호화 또는 복호화 하는데 사용할 수 있다. The method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
또한, 본 발명에서 제안하는 방법은 플래그 신호를 이용하여 이용 여부를 결정할 수 있다. In addition, the method proposed in the present invention can determine whether to use the flag signal.
또한, 본 발명에서 제안하는 방법은 부호화 또는 복호화의 특정 조건 또는 특정 조건의 조합에 의하여 이용 여부를 결정할 수 있다.In addition, the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
도 10은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정(modify)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 10 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
본 발명이 적용되는 인코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1010). 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.The encoder to which the present invention is applied may search for a reference block for the current block in the reconstructed region in the current frame (S1010). For example, to search the reference block, a template or location information may be used. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 인코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1020). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the encoder can generate a reference prediction signal using the prediction mode of the current block (S1020). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 인코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있다(S1030).The encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1030).
한편, 상기 인코더는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호를 생성할 수 있다(S1040).Meanwhile, the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1040).
상기 인코더는 상기 참조 레지듀얼 신호를 이용하여 상기 현재 블록의 예측 신호를 업데이트할 수 있다. 즉, 상기 참조 레지듀얼 신호를 상기 현재 블록의 예측 신호에 가산함으로써, 업데이트된 예측 신호를 생성할 수 있다(S1050).The encoder may update the prediction signal of the current block by using the reference residual signal. That is, the updated prediction signal may be generated by adding the reference residual signal to the prediction signal of the current block (S1050).
그리고, 상기 인코더는 원본 신호로부터 상기 업데이트된 예측 신호를 감산함으로써 레지듀얼 신호를 생성할 수 있다(S1060). 상기 레지듀얼 신호는 변환부를 통해 변환되고, 양자화부를 통해 양자화되고, 엔트로피 인코딩부를 통해 엔트로피 인코딩되어 출력될 수 있다.The encoder may generate a residual signal by subtracting the updated prediction signal from the original signal (S1060). The residual signal may be transformed through a transformer, quantized through a quantizer, and entropy encoded through an entropy encoder.
도 11은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 레지듀얼 신호를 보상(compensate)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 11 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
본 발명이 적용되는 디코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1110). 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.The decoder to which the present invention is applied may search for a reference block for the current block in the reconstructed region in the current frame (S1110). For example, to search the reference block, a template or location information may be used. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 디코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1120). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching the reference block, the decoder may generate a reference prediction signal using the prediction mode of the current block (S1120). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 디코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있고(S1130), 상기 참조 레지듀얼 신호에 기초하여 복원 신호를 생성함으로써 보다 정확한 복원이 가능할 수 있다.The decoder may generate a reference residual signal by subtracting the reference prediction signal from the reference reconstruction signal (S1130), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
구체적으로, 상기 디코더는 인코더로부터 전송된 레지듀얼 신호에 대해 엔트로피 디코딩, 역양자화 및 역변환을 수행함으로써 픽셀 도메인 상의 레지듀얼 신호를 획득할 수 있고(S1140), 상기 참조 레지듀얼 신호를 이용하여 상기 픽셀 도메인 상의 레지듀얼 신호를 보상할 수 있다(S1150).In detail, the decoder may acquire a residual signal on a pixel domain by performing entropy decoding, inverse quantization, and inverse transformation on a residual signal transmitted from an encoder (S1140), and using the reference residual signal, the pixel The residual signal on the domain may be compensated for (S1150).
그리고, 현재 블록에 대한 예측 신호와 상기 보상된 레지듀얼 신호를 합하여 복원 신호를 생성할 수 있다(S1160). In operation S1160, a reconstruction signal may be generated by adding the predicted signal for the current block and the compensated residual signal.
본 발명의 다른 실시예로, 상기 디코더는 생성된 참조 레지듀얼 신호를 이용하여 상기 현재 블록에 대한 예측 신호를 보상할 수도 있다. 상기 보상된 예측 신호는 인코더로부터 전송된 레지듀얼 신호와 합하여 복원 신호를 생성하게 된다.In another embodiment of the present invention, the decoder may compensate for the prediction signal for the current block by using the generated reference residual signal. The compensated prediction signal is summed with the residual signal transmitted from the encoder to generate a reconstruction signal.
도 12는 본 발명이 적용되는 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하는 방법을 설명하기 위한 도면이다.12 is a diagram for describing a method of searching for a reference block using location information according to an embodiment to which the present invention is applied.
본 발명은 인트라 코딩시 발생하는 레지듀얼 신호를 주변의 이미 복원된 영상으로부터 예측하는 방법을 제안한다. 부호화 또는 복호화 하고자 하는 영역의 주변 영역과 가장 유사한 영역을 이미 복원된 영상 내에서 탐색하고, 가장 유사한 영역이 탐색 되었을 경우 대응되는 참조 영역의 레지듀얼 신호를 현재 부호화 또는 복호화 하고자 하는 영역의 예측 레지듀얼 신호로 활용할 수 있다.The present invention proposes a method of predicting a residual signal generated during intra coding from an already reconstructed image of a surrounding. The region most similar to the surrounding region of the region to be encoded or decoded is searched in the reconstructed image, and when the region most similar to the region is searched, the prediction residual of the region to be currently encoded or decoded the residual signal of the corresponding reference region. Can be used as a signal.
본 발명은, 현재 프레임의 복원된 영역(reconstructed area) 내에서 현재 블록과 가장 유사한 참조 블록을 탐색할 수 있다. 상기 참조 블록이 결정되면, 인코더는 상기 참조 블록의 위치 정보를 코딩할 수 있다. 여기서, 상기 참조 블록의 위치 정보는 좌표 정보로 표현될 수 있다. 또는, 상기 참조 블록의 위치 정보는 벡터로 표현될 수도 있다. 그리고, 상기 위치 정보는 디코더로 전송되거나 디코더에서 유도될 수 있다. 디코더는 상기 위치 정보를 수신하면 상기 위치 정보를 이용하여 참조 블록을 결정할 수 있다. 또는, 디코더 내에서 다른 코딩 정보에 기초하여 상기 위치 정보가 유도되는 경우, 상기 유도된 위치 정보를 이용하여 참조 블록을 결정할 수 있다.The present invention can search for a reference block most similar to the current block in a reconstructed area of the current frame. When the reference block is determined, the encoder can code position information of the reference block. Here, the position information of the reference block may be represented by coordinate information. Alternatively, the position information of the reference block may be represented by a vector. The location information may be transmitted to or derived from the decoder. The decoder may determine the reference block by using the location information when receiving the location information. Alternatively, when the location information is derived based on other coding information in the decoder, the reference block may be determined using the derived location information.
다른 예로, 현재 프레임의 복원된 영역(reconstructed area) 내에서 현재 블록의 주변 영역과 가장 유사한 영역를 탐색하고, 그로부터 상기 현재 블록에 대응되는 영역을 결정할 수 있다. 예를 들어, 상기 가장 유사한 영역을 탐색하기 위해 도 9의 템플릿이 이용될 수 있다.As another example, an area most similar to a peripheral area of the current block may be searched in a reconstructed area of the current frame, and the area corresponding to the current block may be determined therefrom. For example, the template of FIG. 9 may be used to search for the most similar area.
참조 블록을 결정한 이후에, 인코더 또는 디코더는 상기 도 7 또는 도 8에서 설명한 바와 같이 이후의 과정을 수행할 수 있다.After determining the reference block, the encoder or the decoder may perform the following process as described with reference to FIG. 7 or 8.
예를 들어, 디코더는 인코더로부터 전송된 현재 블록의 예측 모드와 참조 블록의 주변 정보를 이용하여 참조 예측 신호(Predref)를 생성하고, 상기 참조 블록으로부터 상기 참조 예측 신호(Predref)를 감산함으로써 참조 레지듀얼 신호(Resref)를 생성할 수 있다. For example, the decoder generates a reference prediction signal Pre ref using the prediction mode of the current block transmitted from the encoder and the surrounding information of the reference block, and subtracts the reference prediction signal Pred ref from the reference block. The reference residual signal Res ref may be generated.
그리고, 인코더로부터 전송된 레지듀얼 신호(Rescurr)와 상기 참조 레지듀얼 신호(Resref)를 가산함으로써 레지듀얼 신호를 보상할 수 있다. 보상된 레지듀얼 신호는 현재 블록의 예측 신호와 결합함으로써 복원 신호(Reconcurr)를 생성할 수 있다. 이를 수학식으로 표현하면, 아래 수학식 2와 같다.The residual signal can be compensated by adding the residual signal Res curr transmitted from the encoder and the reference residual signal Res ref . The compensated residual signal may be combined with the prediction signal of the current block to generate a reconstruction signal Recon curr . If this is expressed as an equation, Equation 2 below.
수학식 2
Figure PCTKR2016003667-appb-M000002
Equation 2
Figure PCTKR2016003667-appb-M000002
본 발명은, 영상 복호화에 필요한 레지듀얼 신호를 주변 복원 정보로부터 예측함으로써 비트율을 저감할 수 있다. 디코더에서의 복호화를 위해 필요한 정보를 크게 모드 정보와 픽셀 정보로 분류할 수 있다. 상기 모드 정보는 영상 복호에 필요한 픽셀 데이터 이외의 정보를 의미할 수 있다. 예를 들어, 상기 모드 정보는 인트라 예측 모드 정보, MPM 정보, 블록 크기 정보, QP 정보 등을 포함할 수 있다. 상기 픽셀 정보는 원본 신호와 예측 신호와의 차이를 나타내는 레지듀얼 신호를 의미할 수 있다. 상기 레지듀얼 신호는 엔트로피 디코딩, 역양자화 및 역변환을 거쳐 픽셀 도메인의 정보로 표현될 수 있고, 이는 예측 신호와 결합되어 복원 신호를 생성할 수 있다. The present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information. Information necessary for decoding in the decoder can be largely classified into mode information and pixel information. The mode information may mean information other than pixel data necessary for image decoding. For example, the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like. The pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal. The residual signal may be represented as information in the pixel domain through entropy decoding, inverse quantization, and inverse transformation, which may be combined with a prediction signal to generate a reconstruction signal.
본 발명은, 이미 복원된 픽셀을 이용하여 레지듀얼 신호를 유도해 낼 수 있으며 이로 인하여 디코더로 전송되는 정보의 양을 절약할 수 있다.According to the present invention, a residual signal can be derived using an already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
본 발명에서 제안하는 방법은 다양한 색차 구성을 가진 포맷의 각 컴포넌트(RGB, YCbCr 등)를 부호화 또는 복호화 하는데 사용할 수 있다. The method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
또한, 본 발명에서 제안하는 방법은 플래그 신호를 이용하여 이용 여부를 결정할 수 있다. In addition, the method proposed in the present invention can determine whether to use the flag signal.
또한, 본 발명에서 제안하는 방법은 부호화 또는 복호화의 특정 조건 또는 특정 조건의 조합에 의하여 이용 여부를 결정할 수 있다.In addition, the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
도 13은 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 예측 신호를 수정(modify)하는 과정을 설명하는 인코딩 흐름도이다.FIG. 13 is an embodiment to which the present invention is applied and is an encoding flowchart illustrating a process of modifying a prediction signal using a reference residual signal in intra prediction.
본 발명이 적용되는 인코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1310). 예를 들어, 상기 참조 블록을 탐색하기 위해 템플릿을 이용할 수 있다. 여기서, 도 9의 실시예가 적용될 수 있다.The encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1310). For example, a template may be used to search the reference block. Here, the embodiment of FIG. 9 may be applied.
상기 참조 블록이 결정되면, 인코더는 상기 참조 블록의 위치 정보를 코딩할 수 있다. 여기서, 상기 참조 블록의 위치 정보는 좌표 정보로 표현될 수 있다. 또는, 상기 참조 블록의 위치 정보는 벡터로 표현될 수도 있다. 그리고, 상기 위치 정보는 디코더로 전송되거나(S1380), 디코더에서 유도될 수 있다.When the reference block is determined, the encoder can code position information of the reference block. Here, the position information of the reference block may be represented by coordinate information. Alternatively, the position information of the reference block may be represented by a vector. The location information may be transmitted to the decoder (S1380) or derived from the decoder.
그리고, 상기 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.In addition, a reference reconstruction signal may be generated from the reference block.
상기 참조 블록을 탐색한 후, 상기 인코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1320). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching the reference block, the encoder may generate a reference prediction signal using the prediction mode of the current block (S1320). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 인코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있다(S1330).The encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1330).
한편, 상기 인코더는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호를 생성할 수 있다(S1340).Meanwhile, the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1340).
상기 인코더는 상기 참조 레지듀얼 신호를 이용하여 상기 현재 블록의 예측 신호를 업데이트할 수 있다. 즉, 상기 참조 레지듀얼 신호를 상기 현재 블록의 예측 신호에 가산함으로써, 업데이트된 예측 신호를 생성할 수 있다(S1350).The encoder may update the prediction signal of the current block by using the reference residual signal. That is, the updated prediction signal may be generated by adding the reference residual signal to the prediction signal of the current block (S1350).
그리고, 상기 인코더는 원본 신호로부터 상기 업데이트된 예측 신호를 감산함으로써 레지듀얼 신호를 생성할 수 있다(S1360). 상기 레지듀얼 신호는 변환부를 통해 변환되고, 양자화부를 통해 양자화되고, 엔트로피 인코딩부를 통해 엔트로피 인코딩되어 출력될 수 있다(S1370). 이때, 상기 참조 블록의 위치 정보는 상기 레지듀얼 신호와 함께 엔트로피 인코딩되어 디코더로 전송될 수 있다(S1380).The encoder may generate a residual signal by subtracting the updated prediction signal from the original signal (S1360). The residual signal may be transformed through a transform unit, quantized through a quantization unit, and entropy encoded through an entropy encoding unit (S1370). In this case, the position information of the reference block may be entropy encoded together with the residual signal and transmitted to the decoder (S1380).
도 14는 본 발명이 적용되는 실시예로서, 인트라 예측에서 참조 레지듀얼 신호를 이용하여 레지듀얼 신호를 보상(compensate)하는 과정을 설명하는 디코딩 흐름도이다.14 is an embodiment to which the present invention is applied and is a decoding flowchart illustrating a process of compensating a residual signal using a reference residual signal in intra prediction.
본 발명은, 참조 블록의 위치 정보 및 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다. The present invention can generate a reference prediction signal using location information of a reference block and a prediction mode of the current block.
먼저, 디코더는 현재 블록에 대한 참조 블록의 위치 정보를 포함하는 비트스트림을 수신할 수 있다. 상기 디코더는 상기 비트스트림으로부터 상기 참조 블록의 위치 정보를 추출할 수 있다. 상기 참조 블록의 위치 정보는 엔트로피 디코딩되고(S1410), 상기 디코더는 상기 참조 블록의 위치 정보를 이용하여 참조 블록을 탐색할 수 있다. 상기 참조 블록의 위치 정보는 좌표 정보로 표현될 수 있다. 또는, 상기 참조 블록의 위치 정보는 벡터로 표현될 수도 있다. 그리고, 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.First, the decoder may receive a bitstream including position information of a reference block with respect to the current block. The decoder may extract position information of the reference block from the bitstream. The location information of the reference block is entropy decoded (S1410), and the decoder may search for the reference block by using the location information of the reference block. Position information of the reference block may be represented by coordinate information. Alternatively, the position information of the reference block may be represented by a vector. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 디코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1420). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the decoder may generate a reference prediction signal using the prediction mode of the current block (S1420). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 디코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있고(S1430), 상기 참조 레지듀얼 신호에 기초하여 복원 신호를 생성함으로써 보다 정확한 복원이 가능할 수 있다.The decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1430), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
구체적으로, 상기 디코더는 인코더로부터 전송된 레지듀얼 신호에 대해 엔트로피 디코딩, 역양자화 및 역변환을 수행함으로써 픽셀 도메인 상의 레지듀얼 신호를 획득할 수 있고(S1440), 상기 참조 레지듀얼 신호를 이용하여 상기 픽셀 도메인 상의 레지듀얼 신호를 보상할 수 있다(S1450).In detail, the decoder may acquire a residual signal on a pixel domain by performing entropy decoding, inverse quantization, and inverse transformation on a residual signal transmitted from an encoder (S1440), and using the reference residual signal, the pixel The residual signal on the domain may be compensated for (S1450).
그리고, 현재 블록에 대한 예측 신호와 상기 보상된 레지듀얼 신호를 합하여 복원 신호를 생성할 수 있다(S1460). In operation S1460, a reconstruction signal may be generated by adding the predicted signal for the current block and the compensated residual signal.
본 발명의 다른 실시예로, 상기 디코더는 생성된 참조 레지듀얼 신호를 이용하여 상기 현재 블록에 대한 예측 신호를 보상할 수도 있다. 상기 보상된 예측 신호는 인코더로부터 전송된 레지듀얼 신호와 합하여 복원 신호를 생성하게 된다.In another embodiment of the present invention, the decoder may compensate for the prediction signal for the current block by using the generated reference residual signal. The compensated prediction signal is summed with the residual signal transmitted from the encoder to generate a reconstruction signal.
도 15는 본 발명이 적용되는 다른 실시예로서, 복원 정보로부터 유도된 레지듀얼 신호를 이용하여 코딩을 수행하는 인코더 또는 디코더 내부의 개략적인 블록도를 나타낸다.FIG. 15 is a schematic block diagram of an encoder or a decoder that performs coding using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
상기 도 15를 살펴보면, 본 발명이 적용되는 인코더 또는 디코더는 참조 레지듀얼 신호 생성부(1510), 참조 복원 신호 생성부(1511), 참조 예측 신호 생성부(1512) 인트라 예측부(1520), 복원부(1530) 및 DPB(1540)를 포함할 수 있다. Referring to FIG. 15, an encoder or decoder to which the present invention is applied may include a reference residual signal generator 1510, a reference reconstruction signal generator 1511, a reference prediction signal generator 1512, an intra predictor 1520, and a reconstruction. The unit 1530 and the DPB 1540 may be included.
한편, 가산기/감산기는 별도의 식별 표시는 하지 않으나, 신호의 합과 차를 산출하기 위해 필요한 곳에서 이용될 수 있음은 당연하다. 또한, 도 15에서는 인트라 예측부를 기준으로 설명하나 본 발명은 이에 한정되지 않는다.On the other hand, the adder / subtractor does not have a separate identification mark, but it can be used where necessary to calculate the sum and difference of the signal. In FIG. 15, the intra prediction unit is described as a reference, but the present invention is not limited thereto.
그리고, 상기 복원부(1530) 및 상기 DPB(1540)는 도 1, 도 2, 도 7 및 도 8에서 설명한 내용이 적용될 수 있으며, 중복되는 설명은 생략하도록 한다.In addition, the contents described with reference to FIGS. 1, 2, 7, and 8 may be applied to the restoration unit 1530 and the DPB 1540, and redundant description thereof will be omitted.
본 발명은, 부호화 또는 복호화 하고자 하는 영역의 주변 영역과 가장 유사한 영역을 이미 복원된 영상 내에서 탐색하고, 가장 유사한 영역이 탐색 되었을 경우 해당 영역의 레지듀얼 신호를 현재 부호화 또는 복호화 하고자 하는 영역의 레지듀얼 신호로 활용하는 방법을 제안한다.According to an embodiment of the present invention, a region most similar to a peripheral region of a region to be encoded or decoded is searched in a reconstructed image, and when a region most similar to the region is searched, a residual of the region to currently encode or decode a residual signal of the region. We propose a method to utilize the dual signal.
먼저, 참조 복원 신호 생성부(1511)는 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다. 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 이에 대한 구체적인 실시예들은 도 9 및 도 12에서 상세히 설명하였다. 상기 탐색된 참조 블록으로부터 참조 복원 신호(Reconref)를 생성할 수 있다. First, the reference reconstruction signal generator 1511 may search for a reference block for the current block in a reconstructed region in the current frame. For example, to search the reference block, a template or location information may be used. Specific embodiments thereof have been described in detail with reference to FIGS. 9 and 12. A reference reconstruction signal Recon ref may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 참조 예측 신호 생성부(1512)는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호(Predref)를 생성할 수 있다. 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the reference prediction signal generator 1512 may generate a reference prediction signal Pre ref using the prediction mode of the current block. For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
다른 예로, 참조 예측 신호 생성부(1512)는 상기 참조 블록의 주변 정보를 이용하여 참조 예측 신호를 생성할 수 있다. 예를 들어, 상기 참조 블록의 상단 블록, 하단 블록, 좌측 블록, 또는 우측 블록 중 적어도 하나의 블록의 코딩 정보를 이용할 수 있다. 여기서, 상기 코딩 정보는 픽셀 정보 또는 예측 모드 정보 중 적어도 하나를 포함할 수 있다.As another example, the reference prediction signal generator 1512 may generate a reference prediction signal by using the peripheral information of the reference block. For example, coding information of at least one of an upper block, a lower block, a left block, or a right block of the reference block may be used. Here, the coding information may include at least one of pixel information or prediction mode information.
참조 레지듀얼 신호 생성부(1510)는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호(Resref)를 생성할 수 있다. 이렇게 생성된 참조 레지듀얼 신호(Resref)는 현재 블록의 레지듀얼 신호로 이용될 수 있다. 따라서, 인코더에서는 레지듀얼 신호를 전송하지 않고, 주변 정보로부터 유도함으로써 전송 비트량을 감소시킬 수 있다.The reference residual signal generator 1510 may generate a reference residual signal Res ref by subtracting the reference prediction signal from the reference reconstruction signal. The reference residual signal Res ref generated in this manner may be used as a residual signal of the current block. Therefore, the encoder can reduce the amount of transmitted bits by deriving from the peripheral information without transmitting the residual signal.
한편, 인트라 예측부(1520)는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호(Predcurr)를 생성할 수 있다.Meanwhile, the intra prediction unit 1520 may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal Pre curr of the current block through the intra prediction.
복원부(1530)에서는 상기 참조 레지듀얼 신호(Resref)와 상기 현재 블록의 예측 신호(Predcurr)를 합산하어 복원 신호를 생성할 수 있다. 이를 수학식으로 표현하면, 아래 수학식 3과 같다.The reconstruction unit 1530 may generate a reconstruction signal by adding the reference residual signal Res ref and the prediction signal Pred curr of the current block. If this is expressed as an equation, Equation 3 below.
수학식 3
Figure PCTKR2016003667-appb-M000003
Equation 3
Figure PCTKR2016003667-appb-M000003
본 발명은, 영상 복호화에 필요한 레지듀얼 신호를 주변 복원 정보로부터 예측함으로써 비트율을 저감할 수 있다. 디코더에서의 복호화를 위해 필요한 정보를 크게 모드 정보와 픽셀 정보로 분류할 수 있다. 상기 모드 정보는 영상 복호에 필요한 픽셀 데이터 이외의 정보를 의미할 수 있다. 예를 들어, 상기 모드 정보는 인트라 예측 모드 정보, MPM 정보, 블록 크기 정보, QP 정보 등을 포함할 수 있다. 상기 픽셀 정보는 원본 신호와 예측 신호와의 차이를 나타내는 레지듀얼 신호를 의미할 수 있다. 본 발명을 활용함으로써, 이미 복원된 픽셀을 이용하여 레지듀얼 신호를 유도해 낼 수 있으며 이로 인하여 디코더로 전송하는 정보의 양을 절약할 수 있다.The present invention can reduce the bit rate by predicting the residual signal necessary for video decoding from the peripheral reconstruction information. Information necessary for decoding in the decoder can be largely classified into mode information and pixel information. The mode information may mean information other than pixel data necessary for image decoding. For example, the mode information may include intra prediction mode information, MPM information, block size information, QP information, and the like. The pixel information may mean a residual signal indicating a difference between an original signal and a prediction signal. By utilizing the present invention, the residual signal can be derived using the already reconstructed pixel, thereby saving the amount of information transmitted to the decoder.
본 발명에서 제안하는 방법은 다양한 색차 구성을 가진 포맷의 각 컴포넌트(RGB, YCbCr 등)를 부호화 또는 복호화 하는데 사용할 수 있다. The method proposed in the present invention can be used to encode or decode each component (RGB, YCbCr, etc.) of a format having various color difference configurations.
또한, 본 발명에서 제안하는 방법은 플래그 신호를 이용하여 이용 여부를 결정할 수 있다. In addition, the method proposed in the present invention can determine whether to use the flag signal.
또한, 본 발명에서 제안하는 방법은 부호화 또는 복호화의 특정 조건 또는 특정 조건의 조합에 의하여 이용 여부를 결정할 수 있다.In addition, the method proposed by the present invention can determine whether to use the specific conditions or a combination of specific conditions of encoding or decoding.
도 16은 본 발명이 적용되는 다른 실시예로서, 복원 정보로부터 유도된 레지듀얼 신호를 이용하여 비디오 신호를 인코딩하는 방법을 설명하는 흐름도이다.16 is a flowchart illustrating a method of encoding a video signal using a residual signal derived from reconstruction information according to another embodiment to which the present invention is applied.
본 발명이 적용되는 인코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1610). 예를 들어, 상기 참조 블록을 탐색하기 위해 템플릿을 이용할 수 있다. 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.The encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1610). For example, a template may be used to search the reference block. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 인코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1620). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching the reference block, the encoder may generate a reference prediction signal using the prediction mode of the current block (S1620). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 인코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있다(S1630).The encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1630).
한편, 상기 인코더는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호를 생성할 수 있다(S1640).Meanwhile, the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1640).
상기 인코더는 상기 참조 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 복원 신호를 생성할 수 있다(S1650).The encoder may generate a reconstruction signal by adding the reference residual signal and the prediction signal of the current block (S1650).
상기 인코더는 상기와 같은 과정을 반복하면서, 율-왜곡(Rate Distortion) 최적화 여부를 판단할 수 있다(S1660).The encoder may determine whether to optimize rate distortion (S1660) while repeating the above process (S1660).
상기 판단 결과, 율-왜곡(Rate Distortion) 관점에서 최적이라고 판단되면 해당 코딩 정보를 부호화하여 전송할 수 있다(S1670). 여기서, 상기 코딩 정보는 예측 모드 등 부호화 정보를 포함할 수 있다.As a result of the determination, if it is determined to be optimal in terms of rate distortion, the corresponding coding information may be encoded and transmitted (S1670). Here, the coding information may include coding information such as a prediction mode.
도 17은 본 발명이 적용되는 다른 실시예로서, 레지듀얼 신호를 유도하여 비디오 신호를 복원하는 방법을 설명하는 흐름도이다.17 is a flowchart illustrating a method of reconstructing a video signal by inducing a residual signal according to another embodiment to which the present invention is applied.
본 발명이 적용되는 디코더는 비트스트림을 수신할 수 있고, 현재 디코딩하려는 블록에 대응되는 레지듀얼 신호가 상기 비트스트림 내에 존재하는지 여부를 판단할 수 있다(S1710). 예를 들어, 디코더는 레지듀얼 데이터가 존재하는지 여부를 나타내는 플래그 정보에 기초하여 이를 판단할 수 있다. The decoder to which the present invention is applied may receive a bitstream, and may determine whether a residual signal corresponding to a block to be currently decoded exists in the bitstream (S1710). For example, the decoder may determine this based on flag information indicating whether residual data exists.
다른 예로, 디코더는 현재 블록의 레지듀얼 신호를 유도할지 여부를 판단할 수 있다. 예를 들어, 디코더는 레지듀얼 신호를 유도할지 여부를 나타내는 플래그 정보에 기초하여 이를 판단할 수 있다. As another example, the decoder may determine whether to derive the residual signal of the current block. For example, the decoder may determine this based on flag information indicating whether to derive the residual signal.
상기 판단 결과, 상기 비트스트림 내에 레지듀얼 신호가 존재하거나, 또는 현재 블록의 레지듀얼 신호를 유도하지 않는 것으로 판단된 경우, 상기 디코더는 레지듀얼 신호에 대해 디코딩을 수행할 수 있다(S1720).If it is determined that the residual signal exists in the bitstream or does not derive the residual signal of the current block, the decoder may perform decoding on the residual signal (S1720).
반면, 상기 판단 결과, 상기 비트스트림 내에 레지듀얼 신호가 존재하지 않거나, 또는 현재 블록의 레지듀얼 신호를 유도하는 것으로 판단된 경우, 상기 디코더는 상기 레지듀얼 신호를 다른 정보들에 기초하여 유도할 수 있다.On the other hand, if it is determined that the residual signal does not exist in the bitstream or derives the residual signal of the current block, the decoder may derive the residual signal based on other information. have.
상기 디코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1730). 예를 들어, 상기 참조 블록을 탐색하기 위해, 템플릿을 이용하거나 위치 정보를 이용할 수 있다. 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.The decoder may search for a reference block for the current block in the reconstructed region in the current frame (S1730). For example, to search the reference block, a template or location information may be used. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 디코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1740). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the decoder may generate a reference prediction signal using the prediction mode of the current block (S1740). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 디코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있고(S1750), 상기 참조 레지듀얼 신호에 기초하여 복원 신호를 생성함으로써 보다 정확한 복원이 가능할 수 있다.The decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1750), and may generate more accurate reconstruction by generating a reconstruction signal based on the reference residual signal.
그리고, 현재 블록에 대한 예측 신호와 상기 참조 레지듀얼 신호를 합하여 복원 신호를 생성할 수 있다(S1760). In operation S1760, a reconstruction signal may be generated by adding the prediction signal for the current block and the reference residual signal.
도 18은 본 발명이 적용되는 다른 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하고 탐색된 참조 블록에 기초하여 유도된 레지듀얼 신호를 이용하여 비디오 신호를 인코딩하는 방법을 설명하는 흐름도이다.FIG. 18 is a flowchart illustrating a method of encoding a video signal using a residual signal derived based on a searched reference block and searching for a reference block using position information according to another embodiment to which the present invention is applied.
본 발명이 적용되는 인코더는, 현재 프레임 내 복원된 영역 내에서 현재 블록에 대한 참조 블록을 탐색할 수 있다(S1810). 예를 들어, 상기 참조 블록을 탐색하기 위해 템플릿을 이용할 수 있다. 여기서, 도 9의 실시예가 적용될 수 있다.The encoder to which the present invention is applied may search for a reference block with respect to the current block in the reconstructed region in the current frame (S1810). For example, a template may be used to search the reference block. Here, the embodiment of FIG. 9 may be applied.
상기 참조 블록이 결정되면, 인코더는 상기 참조 블록의 위치 정보를 코딩할 수 있다. 여기서, 상기 참조 블록의 위치 정보는 좌표 정보로 표현될 수 있다. 또는, 상기 참조 블록의 위치 정보는 벡터로 표현될 수도 있다. 그리고, 상기 위치 정보는 디코더로 전송되거나(S1870), 디코더에서 유도될 수 있다.When the reference block is determined, the encoder can code position information of the reference block. Here, the position information of the reference block may be represented by coordinate information. Alternatively, the position information of the reference block may be represented by a vector. The location information may be transmitted to the decoder (S1870) or derived from the decoder.
그리고, 상기 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.In addition, a reference reconstruction signal may be generated from the reference block.
상기 참조 블록을 탐색한 후, 상기 인코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1820). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching the reference block, the encoder can generate a reference prediction signal using the prediction mode of the current block (S1820). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 인코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있다(S1830).The encoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1830).
한편, 상기 인코더는 상기 현재 블록에 대해 결정된 예측 모드에 따라 인트라 예측을 수행할 수 있고, 상기 인트라 예측을 통해 상기 현재 블록의 예측 신호를 생성할 수 있다(S1840).Meanwhile, the encoder may perform intra prediction according to the prediction mode determined for the current block, and generate a prediction signal of the current block through the intra prediction (S1840).
상기 인코더는 상기 참조 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 복원 신호를 생성할 수 있다(S1850).The encoder may generate a reconstruction signal by adding the reference residual signal and the prediction signal of the current block (S1850).
상기 인코더는 상기와 같은 과정을 반복하면서, 율-왜곡(Rate Distortion) 최적화 여부를 판단할 수 있다(S1860).The encoder may determine whether to optimize rate distortion while repeating the above process (S1860).
상기 판단 결과, 율-왜곡(Rate Distortion) 관점에서 최적이라고 판단되면 해당 코딩 정보들을 부호화하여 전송할 수 있다(S1870). 여기서, 상기 코딩 정보들은 참조 블록의 위치 정보, 예측 모드 등 부호화 정보를 포함할 수 있다.As a result of the determination, if it is determined that it is optimal in terms of rate distortion, the corresponding coding information may be encoded and transmitted (S1870). Here, the coding information may include coding information such as position information of a reference block, a prediction mode, and the like.
도 19는 본 발명이 적용되는 다른 실시예로서, 위치 정보를 이용하여 참조 블록을 탐색하고 탐색된 참조 블록에 기초하여 레지듀얼 신호를 유도하여 비디오 신호를 복원하는 방법을 설명하는 흐름도이다.19 is a flowchart illustrating a method of reconstructing a video signal by searching for a reference block using position information and inducing a residual signal based on the found reference block according to another embodiment to which the present invention is applied.
본 발명은, 참조 블록의 위치 정보 및 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다. The present invention can generate a reference prediction signal using location information of a reference block and a prediction mode of the current block.
먼저, 본 발명이 적용되는 디코더는 현재 블록에 대한 참조 블록의 위치 정보를 포함하는 비트스트림을 수신할 수 있고, 현재 디코딩하려는 블록에 대응되는 레지듀얼 신호가 상기 비트스트림 내에 존재하는지 여부를 판단할 수 있다(S1910). 예를 들어, 디코더는 레지듀얼 데이터가 존재하는지 여부를 나타내는 플래그 정보에 기초하여 이를 판단할 수 있다. First, a decoder to which the present invention is applied may receive a bitstream including position information of a reference block with respect to a current block, and determine whether a residual signal corresponding to a block to be currently decoded exists in the bitstream. It may be (S1910). For example, the decoder may determine this based on flag information indicating whether residual data exists.
다른 예로, 디코더는 현재 블록의 레지듀얼 신호를 유도할지 여부를 판단할 수 있다. 예를 들어, 디코더는 레지듀얼 신호를 유도할지 여부를 나타내는 플래그 정보에 기초하여 이를 판단할 수 있다. As another example, the decoder may determine whether to derive the residual signal of the current block. For example, the decoder may determine this based on flag information indicating whether to derive the residual signal.
상기 판단 결과, 상기 비트스트림 내에 레지듀얼 신호가 존재하거나, 또는 현재 블록의 레지듀얼 신호를 유도하지 않는 것으로 판단된 경우, 상기 디코더는 레지듀얼 신호에 대해 디코딩을 수행할 수 있다(S1920).If it is determined that the residual signal exists in the bitstream or does not derive the residual signal of the current block, the decoder may perform decoding on the residual signal (S1920).
반면, 상기 판단 결과, 상기 비트스트림 내에 레지듀얼 신호가 존재하지 않거나, 또는 현재 블록의 레지듀얼 신호를 유도하는 것으로 판단된 경우, 상기 디코더는 상기 레지듀얼 신호를 다른 정보들에 기초하여 유도할 수 있다.On the other hand, if it is determined that the residual signal does not exist in the bitstream or derives the residual signal of the current block, the decoder may derive the residual signal based on other information. have.
한편, 상기 디코더는 상기 비트스트림으로부터 상기 참조 블록의 위치 정보를 추출할 수 있다. 상기 참조 블록의 위치 정보는 엔트로피 디코딩되고, 상기 디코더는 상기 참조 블록의 위치 정보를 이용하여 참조 블록을 탐색할 수 있다(S1930). 상기 참조 블록의 위치 정보는 좌표 정보로 표현될 수 있다. 또는, 상기 참조 블록의 위치 정보는 벡터로 표현될 수도 있다. 그리고, 상기 탐색된 참조 블록으로부터 참조 복원 신호를 생성할 수 있다.Meanwhile, the decoder may extract position information of the reference block from the bitstream. The location information of the reference block is entropy decoded, and the decoder may search for the reference block by using the location information of the reference block (S1930). Position information of the reference block may be represented by coordinate information. Alternatively, the position information of the reference block may be represented by a vector. A reference reconstruction signal may be generated from the found reference block.
상기 참조 블록을 탐색한 후, 상기 디코더는 상기 현재 블록의 예측 모드를 이용하여 참조 예측 신호를 생성할 수 있다(S1940). 예를 들어, 현재 블록의 예측 모드가 인트라 수직 모드인 경우, 인트라 수직 모드에 기초하여 참조 예측 신호를 생성할 수 있다.After searching for the reference block, the decoder may generate a reference prediction signal using the prediction mode of the current block (S1940). For example, when the prediction mode of the current block is an intra vertical mode, a reference prediction signal may be generated based on the intra vertical mode.
상기 디코더는 상기 참조 복원 신호에서 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성할 수 있고(S1950), 상기 참조 레지듀얼 신호에 기초하여 복원 신호를 생성할 수 있다. 즉, 현재 블록에 대한 예측 신호와 상기 참조 레지듀얼 신호를 합하여 복원 신호를 생성할 수 있다(S1960). The decoder may generate a reference residual signal by subtracting a reference prediction signal from the reference reconstruction signal (S1950), and may generate a reconstruction signal based on the reference residual signal. That is, a reconstruction signal may be generated by adding the prediction signal for the current block and the reference residual signal (S1960).
이와 같이, 레지듀얼 신호를 전송하지 않고, 현재 블록의 주변 정보로부터 유도함으로써 디코더에 전송되는 비트량을 감소시킬 수 있다.In this manner, the amount of bits transmitted to the decoder can be reduced by deriving from the neighboring information of the current block without transmitting the residual signal.
상기 기술된 것과 같이, 본 발명에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 상기 도 1, 도 2, 도 7, 도 8 및 도 15에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.As described above, the embodiments described herein may be implemented and performed on a processor, microprocessor, controller, or chip. For example, the functional units illustrated in FIGS. 1, 2, 7, 8, and 15 may be implemented by a computer, a processor, a microprocessor, a controller, or a chip.
또한, 본 발명이 적용되는 디코더 및 인코더는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, 화상 전화 비디오 장치, 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 및 데이터 신호를 처리하기 위해 사용될 수 있다.In addition, the decoder and encoder to which the present invention is applied include a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, a mobile streaming device, Storage media, camcorders, video on demand (VoD) service providing devices, internet streaming service providing devices, three-dimensional (3D) video devices, video telephony video devices, and medical video devices, and the like, for processing video signals and data signals Can be used for
또한, 본 발명이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 발명에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트 스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.In addition, the processing method to which the present invention is applied can be produced in the form of a program executed by a computer, and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer readable recording medium includes all kinds of storage devices for storing computer readable data. The computer-readable recording medium may include, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. Can be. The computer-readable recording medium also includes media embodied in the form of a carrier wave (eg, transmission over the Internet). In addition, the bit stream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다. As mentioned above, preferred embodiments of the present invention are disclosed for the purpose 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 (15)

  1. 비디오 신호를 디코딩하는 방법에 있어서,In the method for decoding a video signal,
    현재 블록에 대한 참조 블록을 탐색하는 단계, 여기서 상기 참조 블록은 현재 프레임 내 이미 복원된 것임;Searching for a reference block for the current block, wherein the reference block is already reconstructed in the current frame;
    상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하는 단계;Generating a reference prediction signal representing a prediction value for the searched reference block;
    상기 참조 블록에서 상기 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성하는 단계;Generating a reference residual signal by subtracting the reference prediction signal from the reference block;
    상기 참조 레지듀얼 신호에 기초하여, 상기 비디오 신호로부터 획득된 상기 현재 블록의 레지듀얼 신호를 보상하는 단계; 및Compensating for the residual signal of the current block obtained from the video signal based on the reference residual signal; And
    상기 보상된 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 상기 현재 블록을 복원하는 단계Restoring the current block by adding the compensated residual signal and the prediction signal of the current block;
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  2. 제1항에 있어서,The method of claim 1,
    상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 하는 방법.The reference prediction signal is generated according to the intra prediction mode of the current block.
  3. 제1항에 있어서,The method of claim 1,
    상기 참조 블록은 템플릿에 기초하여 탐색되고, 상기 템플릿은 기설정된 형태를 가지며 상기 현재 블록에 인접하는 픽셀들로 구성되는 것을 특징으로 하는 방법.Wherein the reference block is searched based on a template, wherein the template has a predetermined shape and is composed of pixels adjacent to the current block.
  4. 제1항에 있어서,The method of claim 1,
    상기 참조 블록은 위치 정보에 기초하여 탐색되고,The reference block is searched based on the location information,
    상기 위치 정보는 상기 비디오 신호로부터 추출되는 것을 특징으로 하는 방법.The location information is extracted from the video signal.
  5. 제1항에 있어서, 상기 방법은,The method of claim 1, wherein
    상기 비디오 신호로부터 레지듀얼 신호가 존재하는지 여부를 나타내는 플래그 정보를 추출하는 단계를 더 포함하되,Extracting flag information indicating whether a residual signal exists from the video signal;
    상기 플래그 정보에 따라 상기 레지듀얼 신호가 존재하는 경우에 수행되는 것을 특징으로 하는 방법.And when the residual signal exists according to the flag information.
  6. 비디오 신호를 인코딩하는 방법에 있어서,In a method of encoding a video signal,
    현재 블록에 대한 참조 블록을 탐색하는 단계, 여기서 상기 참조 블록은 현재 프레임 내 이미 복원된 것임;Searching for a reference block for the current block, wherein the reference block is already reconstructed in the current frame;
    상기 참조 블록의 참조 레지듀얼 신호를 생성하는 단계;Generating a reference residual signal of the reference block;
    상기 현재 블록의 인트라 예측 모드에 따라 상기 현재 블록의 예측 신호를 생성하는 단계;Generating a prediction signal of the current block according to an intra prediction mode of the current block;
    상기 현재 블록의 예측 신호에 상기 참조 레지듀얼 신호를 합함으로써 상기 현재 블록의 예측 신호를 업데이트하는 단계; 및Updating the prediction signal of the current block by adding the reference residual signal to the prediction signal of the current block; And
    상기 업데이트된 예측 신호에 기초하여, 상기 현재 블록의 레지듀얼 신호를 생성하는 단계Generating a residual signal of the current block based on the updated prediction signal
    를 포함하는 것을 특징으로 하는 방법.Method comprising a.
  7. 제6항에 있어서, 상기 방법은,The method of claim 6, wherein the method is
    상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하는 단계를 더 포함하되,Generating a reference prediction signal representing a prediction value for the searched reference block,
    상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 하는 방법.The reference prediction signal is generated according to the intra prediction mode of the current block.
  8. 제6항에 있어서,The method of claim 6,
    상기 참조 블록은 템플릿에 기초하여 탐색되고, 상기 템플릿은 기설정된 형태를 가지며 상기 현재 블록에 인접하는 픽셀들로 구성되는 것을 특징으로 하는 방법.Wherein the reference block is searched based on a template, wherein the template has a predetermined shape and is composed of pixels adjacent to the current block.
  9. 제6항에 있어서, 상기 방법은,The method of claim 6, wherein the method is
    상기 참조 블록의 위치 정보를 인코딩하는 단계; 및Encoding position information of the reference block; And
    상기 참조 블록의 위치 정보를 전송하는 단계Transmitting position information of the reference block
    를 더 포함하는 것을 특징으로 하는 방법.Method further comprising a.
  10. 제6항에 있어서, 상기 방법은,The method of claim 6, wherein the method is
    상기 현재 블록의 레지듀얼 신호에 대해 변환을 수행하는 단계;Performing transformation on the residual signal of the current block;
    상기 변환된 레지듀얼 신호에 대해 양자화를 수행하는 단계; 및 Performing quantization on the converted residual signal; And
    상기 양자화된 레지듀얼 신호에 대해 엔트로피 인코딩을 수행하는 단계Performing entropy encoding on the quantized residual signal
    를 더 포함하는 것을 특징으로 하는 방법.Method further comprising a.
  11. 비디오 신호를 디코딩하는 장치에 있어서,An apparatus for decoding a video signal,
    현재 블록에 대한 참조 블록을 탐색하고, 상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하고, 상기 참조 블록에서 상기 참조 예측 신호를 감산함으로써 참조 레지듀얼 신호를 생성하는 참조 레지듀얼 신호 생성부; Generating a reference residual signal by searching for a reference block for a current block, generating a reference prediction signal representing a prediction value for the searched reference block, and subtracting the reference prediction signal from the reference block part;
    상기 참조 레지듀얼 신호에 기초하여, 상기 비디오 신호로부터 획득된 상기 현재 블록의 레지듀얼 신호를 보상하는 레지듀얼 신호 보상부; 및A residual signal compensator configured to compensate the residual signal of the current block obtained from the video signal based on the reference residual signal; And
    상기 보상된 레지듀얼 신호와 상기 현재 블록의 예측 신호를 합하여 상기 현재 블록을 복원하는 복원부A reconstruction unit reconstructing the current block by adding the compensated residual signal and the prediction signal of the current block
    를 포함하되,Including,
    상기 참조 블록은 현재 프레임 내 이미 복원된 것을 특징으로 하는 장치.And the reference block has already been restored in the current frame.
  12. 제11항에 있어서,The method of claim 11,
    상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 하는 장치.And the reference prediction signal is generated according to an intra prediction mode of the current block.
  13. 비디오 신호를 인코딩하는 장치에 있어서,An apparatus for encoding a video signal,
    현재 블록에 대한 참조 블록을 탐색하고, 상기 참조 블록의 참조 레지듀얼 신호를 생성하고, 상기 현재 블록의 인트라 예측 모드에 따라 상기 현재 블록의 예측 신호를 생성하고, 상기 현재 블록의 예측 신호에 상기 참조 레지듀얼 신호를 합함으로써 상기 현재 블록의 예측 신호를 업데이트하는 예측부; 및Search a reference block for a current block, generate a reference residual signal of the reference block, generate a prediction signal of the current block according to an intra prediction mode of the current block, and reference the prediction signal of the current block A prediction unit for updating a prediction signal of the current block by adding a residual signal; And
    상기 업데이트된 예측 신호에 기초하여, 상기 현재 블록의 레지듀얼 신호를 생성하는 레지듀얼 신호 획득부A residual signal obtaining unit generating a residual signal of the current block based on the updated prediction signal.
    를 포함하는 것을 특징으로 하는 장치.Apparatus comprising a.
  14. 제13항에 있어서, 상기 예측부는,The method of claim 13, wherein the prediction unit,
    상기 탐색된 참조 블록에 대한 예측값을 나타내는 참조 예측 신호를 생성하고, 상기 참조 예측 신호는 상기 현재 블록의 인트라 예측 모드에 따라 생성되는 것을 특징으로 하는 장치.And generate a reference prediction signal representing a prediction value for the searched reference block, wherein the reference prediction signal is generated according to an intra prediction mode of the current block.
  15. 제13항에 있어서, 상기 장치는,The method of claim 13, wherein the device,
    상기 현재 블록의 레지듀얼 신호에 대해 변환을 수행하는 변환부;A transformer for transforming the residual signal of the current block;
    상기 변환된 레지듀얼 신호에 대해 양자화를 수행하는 양자화부; 및 A quantization unit performing quantization on the converted residual signal; And
    상기 양자화된 레지듀얼 신호에 대해 엔트로피 인코딩을 수행하는 엔트로피 인코딩부An entropy encoding unit that performs entropy encoding on the quantized residual signal
    를 더 포함하는 것을 특징으로 하는 장치.Apparatus further comprising a.
PCT/KR2016/003667 2016-04-07 2016-04-07 Method and apparatus for encoding/decoding video signal by using intra-residual prediction WO2017175897A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2016/003667 WO2017175897A1 (en) 2016-04-07 2016-04-07 Method and apparatus for encoding/decoding video signal by using intra-residual prediction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/KR2016/003667 WO2017175897A1 (en) 2016-04-07 2016-04-07 Method and apparatus for encoding/decoding video signal by using intra-residual prediction

Publications (1)

Publication Number Publication Date
WO2017175897A1 true WO2017175897A1 (en) 2017-10-12

Family

ID=60001020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2016/003667 WO2017175897A1 (en) 2016-04-07 2016-04-07 Method and apparatus for encoding/decoding video signal by using intra-residual prediction

Country Status (1)

Country Link
WO (1) WO2017175897A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060105408A (en) * 2005-04-01 2006-10-11 엘지전자 주식회사 Method for scalably encoding and decoding video signal
KR20130107861A (en) * 2012-03-23 2013-10-02 한국전자통신연구원 Method and apparatus for inter layer intra prediction
KR20140120887A (en) * 2012-01-13 2014-10-14 톰슨 라이센싱 Method and device for encoding a block of an image and corresponding reconstructing method and device
KR20140124448A (en) * 2013-04-15 2014-10-27 인텔렉추얼디스커버리 주식회사 Method for encoding and decoding video using intra prediction, and apparatus thereof
KR20160017666A (en) * 2007-10-16 2016-02-16 엘지전자 주식회사 A method and an apparatus for processing a video signal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060105408A (en) * 2005-04-01 2006-10-11 엘지전자 주식회사 Method for scalably encoding and decoding video signal
KR20160017666A (en) * 2007-10-16 2016-02-16 엘지전자 주식회사 A method and an apparatus for processing a video signal
KR20140120887A (en) * 2012-01-13 2014-10-14 톰슨 라이센싱 Method and device for encoding a block of an image and corresponding reconstructing method and device
KR20130107861A (en) * 2012-03-23 2013-10-02 한국전자통신연구원 Method and apparatus for inter layer intra prediction
KR20140124448A (en) * 2013-04-15 2014-10-27 인텔렉추얼디스커버리 주식회사 Method for encoding and decoding video using intra prediction, and apparatus thereof

Similar Documents

Publication Publication Date Title
WO2018062892A1 (en) Method and apparatus for performing optimal prediction on basis of weight index
WO2018030599A1 (en) Intra-prediction mode-based image processing method and device therefor
WO2017222326A1 (en) Video signal processing method and device
WO2017065532A1 (en) Method and apparatus for encoding and decoding video signal
WO2017018664A1 (en) Intra prediction mode-based image processing method and apparatus therefor
WO2019225993A1 (en) Method and apparatus for processing video signal
WO2018097626A1 (en) Video signal processing method and apparatus
WO2018070713A1 (en) Method and apparatus for deriving intra prediction mode for chroma component
WO2018056763A1 (en) Method and apparatus for performing prediction using template-based weight
WO2018124333A1 (en) Intra prediction mode-based image processing method, and apparatus therefor
WO2020071616A1 (en) Cclm-based intra-prediction method and apparatus therefor
WO2020004990A1 (en) Method for processing image on basis of inter-prediction mode and device therefor
WO2019050385A2 (en) Method and apparatus for entropy encoding and decoding video signal
WO2019182295A1 (en) Method and apparatus for processing video signal
WO2017069505A1 (en) Method for encoding/decoding image and device therefor
WO2018066958A1 (en) Method and apparatus for processing video signal
WO2018056701A1 (en) Method and apparatus for processing video signal
WO2020055107A1 (en) Affine motion prediction-based image decoding method and apparatus using affine mvp candidate list in image coding system
WO2020180129A1 (en) Method and device for processing video signal for inter-prediction
WO2016190627A1 (en) Method and device for processing video signal
WO2018062950A1 (en) Picture processing method and apparatus for same
WO2018174457A1 (en) Image processing method and device therefor
WO2019216714A1 (en) Method for processing image on basis of inter-prediction mode and apparatus therefor
WO2018093184A1 (en) Video signal processing method and device
WO2019190199A1 (en) Video signal processing method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16898001

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16898001

Country of ref document: EP

Kind code of ref document: A1