WO2020076034A1 - Prediction method using current picture referencing mode, and image decoding device therefor - Google Patents

Prediction method using current picture referencing mode, and image decoding device therefor Download PDF

Info

Publication number
WO2020076034A1
WO2020076034A1 PCT/KR2019/013129 KR2019013129W WO2020076034A1 WO 2020076034 A1 WO2020076034 A1 WO 2020076034A1 KR 2019013129 W KR2019013129 W KR 2019013129W WO 2020076034 A1 WO2020076034 A1 WO 2020076034A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
ibc
block
prediction
flag
Prior art date
Application number
PCT/KR2019/013129
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
Priority claimed from KR1020190067724A external-priority patent/KR20200040179A/en
Application filed by 에스케이텔레콤 주식회사 filed Critical 에스케이텔레콤 주식회사
Priority to CN201980081334.7A priority Critical patent/CN113170196A/en
Publication of WO2020076034A1 publication Critical patent/WO2020076034A1/en
Priority to US17/225,397 priority patent/US11405639B2/en
Priority to US17/847,748 priority patent/US11838544B2/en
Priority to US17/847,706 priority patent/US11838542B2/en
Priority to US17/847,727 priority patent/US11838543B2/en
Priority to US17/847,783 priority patent/US11838545B2/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/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to encoding and decoding of an image, and to a prediction method for improving the efficiency of encoding and decoding and an image decoding apparatus using the same.
  • video data Since video data has a large amount of data compared to audio data or still image data, it requires a lot of hardware resources including memory to store or transmit itself without processing for compression.
  • HVC High Efficiency Video Coding
  • the present invention aims to provide an improved image encoding and decoding technology.
  • one aspect of the present invention is to improve the efficiency of encoding and decoding through various methods for determining a prediction mode of a current block. It's about improving skills.
  • An aspect of the present invention as a method of predicting a current block to be decoded in a current picture reference (intra block copy, ibc) mode, enables to indicate whether application of the ibc mode is permitted from a bitstream Decoding type information indicating whether the type of the flag and slice is inter; Decoding an ibc flag indicating whether the prediction mode of the current block is the ibc mode based on the enable flag and the type information from the bitstream; When the ibc flag indicates the ibc mode, decoding motion information not including a reference picture index of the current block from the bitstream; And predicting the current block using a block indicated by the motion information in the current picture in which the current block is located.
  • ibc current picture reference
  • Another aspect of the present invention is an enable flag indicating whether application of a current picture reference (intra block copy, ibc) mode is permitted from a bitstream and a type indicating whether the type of slice is inter.
  • Decoding information decoding the ibc flag indicating whether the prediction mode of the current block is the ibc mode depending on the enable flag and the type information, and when the ibc flag indicates the ibc mode, the current block
  • a decoding unit that decodes motion information not including a reference picture index of; And a prediction unit for predicting the current block by using a block indicated by the motion information in the current picture in which the current block is located.
  • bit efficiency can be improved.
  • FIG. 1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
  • FIG. 2 is a diagram for explaining a method of dividing a block using a QTBTTT structure.
  • 3 is a diagram for describing a plurality of intra prediction modes.
  • FIG. 4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
  • FIG. 5 is a diagram for describing a current picture reference technique.
  • FIG. 6 is a diagram for explaining a conventional method of classifying prediction modes.
  • FIG. 7 is a flowchart illustrating an example of a prediction mode determination proposed by the present invention.
  • FIG. 8 is a flowchart illustrating an example of predicting a current block in a current picture reference mode.
  • 9 to 14 are views for explaining various methods proposed in the present invention.
  • 15 is a flowchart illustrating an embodiment of the present invention for predicting a current block in ibc_BVP mode.
  • 16 to 18 are diagrams for describing BVP candidates included in the BVP candidate list for ibc mode.
  • FIG. 1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
  • an image encoding apparatus and sub-components of the apparatus will be described with reference to FIG. 1.
  • the image encoding apparatus includes a block division unit 110, a prediction unit 120, a subtractor 130, a transformation unit 140, a quantization unit 145, an encoding unit 150, an inverse quantization unit 160, and an inverse transformation unit ( 165), an adder 170, a filter unit 180 and a memory 190.
  • Each component of the video encoding apparatus may be implemented in hardware or software, or a combination of hardware and software. Further, the function of each component may be implemented in software, and the microprocessor may be implemented to execute the function of software corresponding to each component.
  • One image is composed of a plurality of pictures. Each picture is divided into a plurality of regions, and encoding is performed for each region. For example, one picture is divided into one or more tiles or / and slices. Here, one or more tiles may be defined as a tile group. Each tile or / slice is divided into one or more coding tree units (CTUs). And each CTU is divided into one or more coding units (CUs) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in one CTU is encoded as the syntax of the CTU.
  • CTUs coding tree units
  • CUs coding units
  • information commonly applied to all blocks in one tile is encoded as the syntax of a tile or encoded as a syntax of a tile group in which a plurality of tiles are collected, and information applied to all blocks constituting one picture is It is encoded in a picture parameter set (PPS) or a picture header.
  • PPS picture parameter set
  • information commonly referred to by a plurality of pictures is encoded in a sequence parameter set (SPS).
  • SPS sequence parameter set
  • VPS video parameter set
  • the block splitter 110 determines the size of a coding tree unit (CTU).
  • CTU size Information about the size of the CTU (CTU size) is encoded as a syntax of an SPS or a PPS and transmitted to an image decoding apparatus.
  • the block dividing unit 110 divides each picture constituting an image into a plurality of coding tree units (CTUs) having a predetermined size, and then repeatedly repeats the CTU using a tree structure. (recursively) split.
  • CTUs coding tree units
  • a leaf node in a tree structure becomes a coding unit (CU), which is a basic unit of encoding.
  • the tree structure includes a quad tree (QuadTree, QT) in which a parent node (or parent node) is divided into four child nodes (or child nodes) of the same size, or a binary tree (BinaryTree) in which a parent node is divided into two child nodes. , BT), or a ternary tree in which the upper node is divided into three lower nodes in a 1: 2: 1 ratio, or a structure in which two or more of these QT structures, BT structures, and TT structures are mixed. have.
  • QT quad tree
  • BinaryTree binary tree
  • a QTBT QuadTree plus BinaryTree
  • a QTBTTT QuadTree plus BinaryTree TernaryTree
  • MTT Multiple-Type Tree
  • the CTU can be first divided into a QT structure.
  • the quadtree split may be repeated until the size of the splitting block reaches the minimum block size (MinQTSize) of the leaf node allowed in QT.
  • the first flag (QT_split_flag) indicating whether each node of the QT structure is divided into 4 nodes of the lower layer is encoded by the encoder 150 and signaled to the video decoding apparatus. If the leaf node of QT is not larger than the maximum block size (MaxBTSize) of the root node allowed by BT, it may be further divided into any one or more of BT structure or TT structure.
  • MaxBTSize maximum block size
  • a plurality of split directions may exist. For example, there may be two directions in which a block of a corresponding node is horizontally divided and a vertically divided direction.
  • a second flag indicating whether nodes are split
  • a flag indicating additional splitting direction vertical or horizontal
  • / or splitting type Boary or Ternary
  • a CU split flag indicating that the block is split first and a QT split flag (split_qt_flag) indicating whether the split type is QT split is encoded 150 ) And signaled to the video decoding apparatus. If the CU split flag (split_cu_flag) value does not indicate that the partition has not been split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of encoding.
  • CU coding unit
  • the split type is QT or MTT through the QT split flag (split_qt_flag) value.
  • the split type is QT, there is no additional information, and when the split type is MTT, additionally, a flag indicating the MTT split direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and / or a flag indicating the MTT split type (Binary or Ternary) (mtt_split_cu_binary_flag) is encoded by the encoding unit 150 and signaled to the video decoding apparatus.
  • split_flag indicating whether each node of the BT structure is divided into blocks of a lower layer and split type information indicating a split type are encoded by the encoder 150 and transmitted to an image decoding apparatus.
  • split_flag there may be further a type of dividing a block of a corresponding node into two blocks having an asymmetric shape.
  • the asymmetric form may include a form of dividing a block of a corresponding node into two rectangular blocks having a size ratio of 1: 3, or a form of dividing a block of a corresponding node in a diagonal direction.
  • CU may have various sizes according to QTBT or QTBTTT division from CTU.
  • a block corresponding to a CU ie, a leaf node of QTBTTT
  • a 'current block' a block corresponding to a CU (ie, a leaf node of QTBTTT) to be encoded or decoded.
  • the prediction unit 120 predicts the current block to generate a prediction block.
  • the prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit 124.
  • each of the current blocks in a picture can be predictively coded.
  • prediction of the current block may be performed using intra prediction technology (using data from a picture containing the current block) or inter prediction technology (using data from a picture coded before a picture containing the current block). Can be performed.
  • Inter prediction includes both one-way prediction and two-way prediction.
  • the intra prediction unit 122 predicts pixels in the current block using pixels (reference pixels) located around the current block in the current picture including the current block.
  • a plurality of intra prediction modes may include 65 non-directional modes including a planar mode and a DC mode. Peripheral pixels to be used and expressions are defined differently for each prediction mode.
  • the intra prediction unit 122 may determine an intra prediction mode to be used to encode the current block.
  • the intra prediction unit 122 may encode the current block using various intra prediction modes and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 calculates rate distortion values using rate-distortion analysis for various tested intra prediction modes, and has the best rate distortion characteristics among the tested modes. The intra prediction mode can also be selected.
  • the intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts a current block using a neighboring pixel (reference pixel) and an arithmetic expression determined according to the selected intra prediction mode.
  • Information on the selected intra prediction mode is encoded by the encoding unit 150 and transmitted to the image decoding apparatus.
  • the inter prediction unit 124 generates a prediction block for the current block through a motion compensation process.
  • the block most similar to the current block is searched in the reference picture that is encoded and decoded before the current picture, and a predicted block for the current block is generated using the searched block. Then, a motion vector corresponding to displacement between the current block in the current picture and the prediction block in the reference picture is generated.
  • motion estimation is performed on luma components, and motion vectors calculated based on luma components are used for both luma components and chroma components.
  • the motion information including information about the reference picture and motion vector used to predict the current block is encoded by the encoder 150 and transmitted to the video decoding apparatus.
  • the subtractor 130 subtracts the prediction block generated by the intra prediction unit 122 or the inter prediction unit 124 from the current block to generate a residual block.
  • the transform unit 140 converts the residual signal in the residual block having pixel values in the spatial domain into a transform coefficient in the frequency domain.
  • the transform unit 140 may transform residual signals in the residual block using the entire size of the residual block as a transform unit, or divide the residual block into two subblocks that are a transform region and a non-transformed region, and convert the sub Residual signals can be transformed using only blocks as transform units.
  • the transform region sub-block may be one of two rectangular blocks having a size ratio of 1: 1 on the horizontal axis (or vertical axis).
  • a flag (cu_sbt_flag), directional (vertical / horizontal) information (cu_sbt_horizontal_flag), and / or location information (cu_sbt_pos_flag) indicating that only the sub-block is converted is encoded by the encoder 150 and signaled to the video decoding apparatus.
  • the size of the transform region sub-block may have a size ratio of 1: 3 based on the horizontal axis (or vertical axis).
  • a flag (cu_sbt_quad_flag) for classifying the split is additionally encoded by the encoder 150 to decode the image. Signaled to the device.
  • the quantization unit 145 quantizes transform coefficients output from the transform unit 140 and outputs the quantized transform coefficients to the encoder 150.
  • the encoding unit 150 generates a bitstream by encoding quantized transform coefficients using an encoding method such as CABAC (Context-based Adaptive Binary Arithmetic Code).
  • the encoder 150 encodes information such as a CTU size, a CU split flag, a QT split flag, an MTT split direction, and an MTT split type related to block splitting, so that the video decoding apparatus can split the block in the same way as the video coding apparatus. To make.
  • the encoder 150 encodes information about a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and intra prediction information (that is, intra prediction mode) according to the prediction type. Information) or inter prediction information (information on reference pictures and motion vectors).
  • the inverse quantization unit 160 inverse quantizes the quantized transform coefficients output from the quantization unit 145 to generate transform coefficients.
  • the inverse transform unit 165 reconstructs the residual block by transforming transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain.
  • the adder 170 restores the current block by adding the reconstructed residual block and the predicted block generated by the predictor 120.
  • the pixels in the reconstructed current block are used as a reference pixel when intra prediction of a next order block.
  • the filter unit 180 filters the reconstructed pixels to reduce blocking artifacts, ringing artifacts, and blurring artifacts caused by block-based prediction and transformation / quantization. To perform.
  • the filter unit 180 may include a deblocking filter 182 and a sample adaptive offset (SAO) filter 184.
  • SAO sample adaptive offset
  • the deblocking filter 180 filters the boundary between the restored blocks to remove blocking artifacts caused by block-level encoding / decoding, and the SAO filter 184 adds additional deblocking filtered images. Filtering is performed.
  • the SAO filter 184 is a filter used to compensate for a difference between a reconstructed pixel and an original pixel caused by lossy coding.
  • the reconstructed blocks filtered through the deblocking filter 182 and the SAO filter 184 are stored in the memory 190.
  • the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded.
  • FIG. 4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
  • an image decoding apparatus and sub-components of the apparatus will be described with reference to FIG. 4.
  • the image decoding apparatus may include a decoding unit 410, an inverse quantization unit 420, an inverse transform unit 430, a prediction unit 440, an adder 450, a filter unit 460, and a memory 470. have.
  • each component of the video decoding apparatus may be implemented in hardware or software, or a combination of hardware and software. Further, the function of each component may be implemented in software, and the microprocessor may be implemented to execute the function of software corresponding to each component.
  • the decoder 410 determines a current block to be decoded by decoding a bitstream received from an image encoding apparatus and extracting information related to block partitioning, and prediction information and residual signal information required to restore the current block. To extract.
  • the decoder 410 extracts information on the CTU size from a Sequence Parameter Set (SPS) or a Picture Parameter Set (PPS) to determine the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, that is, the root node, and the CTU is split using the tree structure by extracting the segmentation information for the CTU.
  • SPS Sequence Parameter Set
  • PPS Picture Parameter Set
  • the first flag (QT_split_flag) related to the splitting of the QT is extracted, and each node is divided into four nodes of a lower layer.
  • the second flag (MTT_split_flag) and split direction (vertical / horizontal) and / or split type (binary / ternary) information related to the splitting of the MTT are extracted to extract the corresponding leaf node from the MTT. Divide into structures. Through this, each node below the leaf node of QT is recursively divided into a BT or TT structure.
  • a CU split flag indicating whether to split the CU is first extracted, and when the corresponding block is split, a QT split flag (split_qt_flag) is extracted. . If the split type is not QT and MTT, a flag indicating the MTT splitting direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and / or a flag indicating the MTT splitting type (Binary or Ternary) (mtt_split_cu_binary_flag) is additionally extracted.
  • each node may have 0 or more repetitive MTT splits after 0 or more repetitive QT splits. For example, in the CTU, MTT splitting may occur immediately, or conversely, only multiple QT splitting may occur.
  • the first flag (QT_split_flag) related to the division of the QT is extracted, and each node is divided into four nodes of a lower layer. Then, for a node corresponding to a leaf node of QT, split flag (split_flag) indicating whether to be further divided by BT and split direction information are extracted.
  • the decoder 410 when determining a current block to be decoded through partitioning of a tree structure, extracts information on a prediction type indicating whether the current block is intra predicted or inter predicted. When the prediction type information indicates intra prediction, the decoder 410 extracts a syntax element for intra prediction information (intra prediction mode) of the current block. When the prediction type information indicates inter prediction, the decoder 410 extracts syntax elements for the inter prediction information, that is, information indicating a motion vector and a reference picture referenced by the motion vector.
  • the decoder 410 extracts information about quantized transform coefficients of the current block as information about the residual signal.
  • the inverse quantization unit 420 inverse quantizes the quantized transform coefficients, and the inverse transform unit 430 inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals to generate a residual block for the current block. .
  • the inverse transform unit 430 when the inverse transform unit 430 inversely transforms only a partial region (subblock) of a transform block, a flag (cu_sbt_flag) indicating that only a subblock of the transform block is transformed, and vertical / horizontal information (cu_sbt_horizontal_flag) of the subblock ) And / or extracting the location information (cu_sbt_pos_flag) of the sub-blocks, and restoring the residual signals by inverse transforming the transform coefficients of the corresponding sub-blocks from the frequency domain to the spatial domain.
  • a flag indicating that only a subblock of the transform block is transformed
  • vertical / horizontal information cu_sbt_horizontal_flag
  • the prediction unit 440 may include an intra prediction unit 442 and an inter prediction unit 444.
  • the intra prediction unit 442 is activated when the prediction type of the current block is intra prediction
  • the inter prediction unit 444 is activated when the prediction type of the current block is inter prediction.
  • the intra prediction unit 442 determines an intra prediction mode of a current block among a plurality of intra prediction modes from syntax elements for an intra prediction mode extracted from the decoder 410, and according to the intra prediction mode, reference pixels around the current block Use to predict the current block.
  • the inter prediction unit 444 determines a motion vector of a current block and a reference picture referred to by the motion vector using a syntax element for an intra prediction mode extracted from the decoding unit 410, and uses the motion vector and the reference picture. To predict the current block.
  • the adder 450 restores the current block by adding the residual block output from the inverse transform unit and the prediction block output from the inter prediction unit or the intra prediction unit.
  • the pixels in the reconstructed current block are used as a reference pixel in intra prediction of a block to be decoded later.
  • the filter unit 460 may include a deblocking filter 462 and a SAO filter 464.
  • the deblocking filter 462 deblocks the boundary between the reconstructed blocks in order to remove blocking artifacts caused by block-by-block decoding.
  • the SAO filter 464 performs additional filtering on the reconstructed block after deblocking filtering to compensate for the difference between the reconstructed pixel and the original pixel caused by lossy coding.
  • the reconstructed blocks filtered through the deblocking filter 462 and the SAO filter 464 are stored in the memory 470. When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded.
  • the present invention proposes new methods for determining a prediction mode of a block to be coded and / or decoded (current block) and performing prediction on the current block based on the prediction mode.
  • the prediction mode determined through the present invention can be largely divided into an inter mode, an intra mode, and a current picture referencing (cpr) mode.
  • the cpr mode may be referred to as an ibc (intra block copy) mode.
  • the inter mode may include skip mode, merge mode, and AMVP mode, and cpr mode, i.e., ibc mode, may include ibc_skip mode, ibc_merge mode, and ibc_BVP mode.
  • ibc_skip mode is ibc mode applied to skip mode
  • ibc_merge mode is ibc mode applied to merge mode
  • ibc_BVP mode is ibc mode applied to AMVP mode.
  • the ibc mode is one of intra prediction methods, and an example of the ibc mode is represented in FIG. 5. As illustrated in FIG. 5, in ibc mode, prediction information of a current block is obtained from another block (reference block) located in the same picture (current picture).
  • a block including a pattern corresponds to a block or region (Coded region) in which decoding is already completed, and a block not including a pattern is a block or region in which decoding is not completed (Not coded yet). Therefore, the reference block from which the prediction information of the current block is obtained corresponds to a block that has already been decoded.
  • the reference block is indicated by a motion vector (MV), and in ibc mode, this motion vector may be referred to as a block vector (BV).
  • prediction information of the current block is obtained from a reference block indicated by BV, while in intra mode, prediction information is obtained from pixels adjacent to the periphery of the current block. Further, in ibc mode, prediction information is obtained from a reference block located in the same picture, while in inter mode, prediction information is obtained from a reference block located in another picture.
  • the slice type may include I-slice (intra slice), P-slice (predictive slice) and B-slice (bi-predictive slice).
  • I-slice is only available for intra prediction. Therefore, when the current block is included in the I-slice, a process of parsing and decoding information required for intra prediction (S692) is performed. In contrast, P-slices and B-slices are capable of both inter prediction and intra prediction. Therefore, when the current block is not included in the I-slice, additional determination processes for the current block are performed.
  • a process of parsing and decoding a flag (skip_flag) indicating whether the current block is predicted as a skip mode (S620) and a process of determining skip_flag (S630) are performed.
  • skip_flag 1
  • the prediction mode of the current block corresponds to skip mode.
  • merge_index merge index
  • the prediction mode of the current block may correspond to any one of modes other than skip mode (merge mode, AMVP mode, and intra mode).
  • the process of parsing and decoding a flag indicating whether the current block is predicted in the inter mode or the intra mode (the flag indicating whether the current block is predicted as the intra mode, pred_mode_flag) ( S640) and a process of determining pred_mode_flag (S650) is performed.
  • the prediction mode of the current block may correspond to one of a merge mode and an AMVP mode.
  • a flag (merge_flag) indicating whether a current block is predicted as a merge mode is parsed and decoded (S660) and a merge_flag is determined (S670).
  • pred_mode_flag indicates an intra mode
  • a process of parsing and decoding information required for intra prediction is performed.
  • the ibc mode may be applied based on whether a reference block for the current block is located in the same picture as the current picture. For example, when the prediction mode of the current block is determined to be a skip mode or a merge mode, when a merge candidate's reference picture indicated by merge_idx is the same as the current picture, the current block may be determined and predicted in ibc_skip mode or ibc_merge mode. have.
  • the prediction mode of the current block is determined to be the AMVP mode
  • the reference picture index (ref_idx) signaled from the video encoding device indicates the same picture as the current picture
  • the current block is determined and predicted as the ibc_BVP mode You can.
  • Whether the ibc mode is on or off may be defined through separate flags (sps_curr_pic_ref_enabled_flag and pps_curr_pic_ref_enabled_flag), and Table 1 and Table 2 below show an example of defining whether the ibc mode is on or off through each of the above flags.
  • Equation 1 shows an example in which the current picture is added to the reference picture list.
  • the present invention proposes new syntax and semantics for distinguishing prediction modes of the current block.
  • the present invention proposes syntax and semantics for a current block (predicted) encoded in ibc mode in an image encoding apparatus.
  • the present invention proposes new BVP candidates included in the BVP candidate list for the current block predicted in ibc_BVP mode.
  • the video encoding apparatus determines the prediction mode of the current block based on whether the preset conditions are satisfied, and signals the video decoding apparatus by including syntax elements indicating whether the preset conditions are satisfied in the bitstream.
  • the video decoding apparatus determines whether the preset conditions are satisfied (S710), and determines the prediction mode of the current block based on the determination result (S720). In addition, the video decoding apparatus predicts the current block based on the determined prediction mode (S730).
  • the 'preset conditions' refer to a criterion for determining the prediction mode of the current block.
  • the preset conditions include whether the type of the tile group (hereinafter referred to as 'tile group') containing the current block is intra (or whether the tile group type is inter), and whether the ibc mode is active (on). It may include whether or not (application of the ibc mode is allowed) and whether the prediction mode of the current block is the merge mode. Also, the preset conditions may include whether the current block is encoded in an intra mode (or inter mode) and whether the current block prediction mode is an ibc mode.
  • Type information may be implemented with a predefined syntax element (eg, tile_group_type).
  • the tile group may be referred to differently as a tile or a slice. Accordingly, 'whether the type of the tile group is intra' may be differently understood as 'whether the tile type is intra' or 'whether the slice type is intra'.
  • ibc_enabled_flag may be implemented with a predefined syntax element (eg, ibc_enabled_flag).
  • ibc_enabled_flag may be defined in one or more locations among SPS, PPS, tile group header, tile header, and CTU header.
  • Whether the prediction mode of the current block is a merge mode may be indicated through a syntax element (merge_flag) indicating this.
  • Whether the current block is coded in inter mode (or intra mode) may be indicated through a syntax element (pred_mode_flag) indicating this.
  • Whether the prediction mode of the current block is ibc mode may be indicated through a syntax element (pred_mode_ibc_flag) indicating this.
  • the image decoding apparatus decodes the enable flag and type information from the bitstream (S810).
  • the image encoding apparatus selectively transmits the ibc flag by including the enable flag, type information, and / or the ibc flag as indicated by the prediction mode of the current block.
  • the decoder 410 decodes the ibc flag depending on the decoded enable flag, type information, and / or the prediction mode of the current block (S820). For example, the image decoding apparatus may decode the ibc flag when the enable flag is on and the type information indicates intra.
  • the video decoding apparatus decodes the ibc flag when the enable flag is on, the type information indicates inter (type information does not indicate intra), and the prediction mode is inter (prediction mode is not intra). can do.
  • the video encoding apparatus transmits the motion information of the current block by including it in the bitstream, and the video decoding apparatus decodes the motion information included in the bitstream (S830).
  • the reference picture index is not included in the motion information of the current block to be decoded.
  • the video decoding apparatus (that is, the prediction unit) predicts the current block using a block (reference block) indicated by the decoded motion information (S840).
  • the reference block corresponds to a block located in the same picture (current picture) as the current block.
  • the present invention has a difference from the conventional method of determining that the current block is predicted in the ibc_BVP mode using the reference picture index signaled from the video encoding apparatus.
  • the conventional method parses both the BVP index (BVP_idx), the BVD and the reference picture index, whereas the present invention parses only the BVP index and BVD. That is, in the present invention, since the current block can be predicted in the ibc_BVP mode based on only the BVP index and the BVD without signaling for the reference picture index, bit efficiency can be improved.
  • the embodiments described below may be performed in the same manner in both the image encoding apparatus and the image decoding apparatus, but for convenience of explanation and understanding, the image decoding apparatus will be mainly described.
  • the process of parsing and decoding a specific syntax element by the decoder 410 or the video decoding apparatus is preferably understood as being included in the bitstream by the video encoding apparatus encoding the specific syntax element.
  • the first embodiment corresponds to an example in which a prediction mode of a current block is determined based on whether the predetermined conditions are satisfied, and a current block is predicted using the determined prediction mode.
  • Example 1-1 whether the application of the ibc mode is allowed, whether the type of the tile group is intra, whether the prediction mode of the current block is a merge mode, and the prediction mode of the current block All or part of whether it is in the ibc mode and whether the current block is encoded by inter prediction may be used.
  • the image decoding apparatus may determine whether the application of the ibc mode is allowed or the tile group type is intra using the decoded information (S910).
  • step S910 when the enable flag indicates that the application of the ibc mode is permitted or indicates that the type information is not intra (if the application of the ibc mode is not allowed and the tile group type is inter, the application of the ibc mode is allowed.
  • the image decoding apparatus parses and decodes merge_flag (S920) and determines merge_flag (S930).
  • the prediction mode of the current block may correspond to any one of a skip mode, a merge mode, an ibc_skip mode, and an ibc_merge mode.
  • the video decoding apparatus may distinguish between the skip / merge mode and the ibc_skip / ibc_merge mode using merge_idx that is parsed and decoded through S940.
  • the prediction mode of the current block corresponds to the ibc_skip / ibc_merge mode.
  • the prediction mode of the current block corresponds to the skip / merge mode.
  • the distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which value of 1 and 0 indicates information (eg, cbf) parsed and decoded through S990.
  • the video decoding apparatus determines whether the application of the ibc mode is permitted or the tile group type is intra using the enable flag and type information (S910), and displays information indicating whether the prediction mode of the current block is a merge mode. Parsing and decoding (S920), it can be determined (S930).
  • the prediction mode of the current block may correspond to any one of AMVP mode, ibc_BVP mode, and intra mode.
  • the video decoding apparatus may parse and decode mode information (pred_mode_flag) (S950) and determine pred_mode_flag (S960).
  • pred_mode_flag indicates inter prediction in step S960 (when not indicating intra prediction)
  • the video decoding apparatus uses an enable flag and type information, and a separate syntax indicating that the current block is predicted in ibc mode (pred_mode_ibc_flag) It may be determined whether or not to parse (S970). That is, if the prediction mode is not intra prediction in step S960, the image decoding apparatus may determine whether to parse the pred_mode_ibc_flag using the enable flag and type information (S970).
  • the video decoding apparatus may determine the type information again (S980).
  • the type information indicates inter in step S980, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S982).
  • the video decoding apparatus parses motion information for predicting the current block in the AMVP mode when the tile group type is inter without applying ibc mode. And decryption.
  • the video decoding apparatus parses and decodes pred_mode_ibc_flag (S984), The pred_mode_ibc_flag may be determined (S986). Even if pred_mode_ibc_flag does not indicate ibc mode in step S986, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information for predicting the current block in the AMVP mode (S982).
  • the image decoding apparatus may determine whether the ibc mode is permitted using the enable flag and type information and whether the tile group type is intra (S970).
  • the image decoding apparatus may parse and decode pred_mode_ibc_flag (S984) and determine pred_mode_ibc_flag (S986).
  • pred_mode_ibc_flag indicates the ibc mode in step S986
  • the prediction mode of the current block corresponds to the ibc_BVP mode.
  • the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S988).
  • the video decoding apparatus may determine the type information again (S980). Even if the type information does not indicate an inter (in the case of indicating an intra) in step S980, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S988).
  • the image decoding apparatus may further perform the processes of parsing and decoding the mode information (pred_mode_flag) before S970 (S950), and determining (S960).
  • pred_mode_flag mode information
  • the video decoding apparatus may perform the above-described S970 process and processes after this S970 process. .
  • the image decoding apparatus may be configured to perform the above-described S910 process, S920 process, and S930 process before the S950 process.
  • operation S950 may be performed.
  • the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S992).
  • step S960 even if the mode information does not indicate inter prediction, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S992). In the intra mode, cbf is not signaled and is derived to 1 (S994).
  • Example 1-1 The number of bits consumed or allocated to determine the prediction mode for the current block based on Example 1-1 is represented in FIG. 10.
  • CU type corresponds to an item indicating whether the current block is predicted in inter mode or intra mode, and CU mode indicates whether the current block is in skip mode, merge mode, AMVP mode, ibc_skip mode, ibc_merge mode or ibc_BVP mode. Corresponds to the item indicating whether the mode is predicted.
  • Total bits correspond to an item indicating the number of bits consumed or allocated to determine the prediction mode of the current block for each prediction mode
  • tile group type is I-type (when the CU type is intra)
  • ibc_enabled_flag 1
  • ibc_enabled_flag 0
  • Example 1-2 corresponds to another example of determining a prediction mode of a current block using new syntax and semantics, and predicting a current block based on the determined prediction mode. As shown in FIG. 11, in Embodiment 1-2, some or all of the preset conditions may be applied to determine a prediction mode of the current block.
  • the video decoding apparatus may determine whether the application of the ibc mode is permitted or the tile group type is intra using the enable flag and type information (S1110).
  • the image decoding apparatus parses and decodes the merge_flag (S1120) and may determine this (S1130).
  • the video decoding apparatus may distinguish between skip / merge mode and ibc_skip / ibc_merge mode using merge_idx parsed and decoded through step S1140. Specifically, when the reference picture of the merge candidate indicated by the decoded merge_idx is the same as the current picture, the prediction mode of the current block corresponds to the ibc_skip / ibc_merge mode. When the reference picture of the merge candidate indicated by the decoded merge_idx is not the same as the current picture, the prediction mode of the current block corresponds to skip / merge mode.
  • the distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which value of 1 or 0 is indicated by cbf parsed and decoded through the process S1190.
  • the image decoding apparatus may parse and decode mode information (pred_mode_flag) (S1150) and determine pred_mode_flag (S1160).
  • the video decoding apparatus may determine the type information (S1170).
  • the type information indicates the inter in step S1170
  • the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S1180).
  • the image decoding apparatus can determine whether the ibc mode is applied using the enable flag and type information and whether the tile group type is intra (S1182).
  • step S1182 when the enable flag indicates that the application of the ibc mode is allowed and the type information indicates inter, the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1184) and determine pred_mode_ibc_flag (S1186).
  • pred_mode_ibc_flag indicates ibc mode in step S1186, the prediction mode of the current block corresponds to the ibc_BVP mode.
  • the image decoding apparatus may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1188).
  • the image decoding apparatus may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1188).
  • the image decoding apparatus may further perform the processes of parsing and decoding the mode information (pred_mode_flag) before the process S1182 (S1150) and determining it (S1160).
  • the process S1182 may be performed when pred_mode_flag does not indicate inter prediction in step S1160
  • the process S1170 may be performed when pred_mode_flag indicates inter prediction in step S1160.
  • the image decoding apparatus may be configured to perform the above-described steps S1110, S1120, and S1130 before S1150.
  • step S1150 may be performed.
  • the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192).
  • step S1182 even when the enable flag indicates that the application of the ibc mode is not permitted or the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192).
  • the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192). In the intra mode, cbf is not signaled and is derived to 1 (S1194).
  • Example 12 The number of bits consumed or allocated to determine the prediction mode for the current block based on Example 1-2 is represented in FIG. 12.
  • tile group type is I-type (when the CU type is intra)
  • ibc_enabled_flag 1
  • ibc_enabled_flag 0
  • Examples 1-3 correspond to another example of determining a prediction mode of a current block using new syntax and semantics, and predicting a current block based on the determined prediction mode. As illustrated in FIG. 13, in Examples 1-3, some or all of the preset conditions may be performed to determine the prediction mode of the current block.
  • the image decoding apparatus may determine whether the application of the ibc mode is allowed or the type of the tile group is intra using the enable flag and type information (S1310). When the application of the ibc mode is permitted or the tile group type is inter, the image decoding apparatus parses and decodes the merge_flag (S1320) and can determine this (S1330).
  • the prediction mode of the current block may correspond to any one of skip mode, merge mode, ibc_skip mode, and ibc_merge mode.
  • the video decoding apparatus may distinguish between skip / merge mode and ibc_skip / ibc_merge mode by using merge_idx parsed and decoded through S1340.
  • the distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which of 1 and 0 the cbf parsed and decoded through S1390 indicates.
  • the image decoding apparatus may determine enable flag and type information (S1350).
  • the enable flag in step S1350 indicates that the application of the ibc mode is allowed and the type information indicates inter
  • the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1384) and determine pred_mode_ibc_flag (S1386).
  • pred_mode_ibc_flag does not indicate ibc mode in step S1386 or the enable flag indicates that application of ibc mode is not permitted in step S1350, or the type information indicates intra, the video decoding apparatus uses mode information (pred_mode_flag). Parsing and decoding (S1360), it can be determined (S1370).
  • the video decoding apparatus may determine type information (S1380).
  • the type information indicates inter in step S1380, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S1382).
  • the image decoding apparatus may determine whether the ibc mode is permitted using the enable flag and type information and whether the tile group type is intra (S1350).
  • the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1384) and determine pred_mode_ibc_flag (S1386).
  • pred_mode_ibc_flag indicates ibc mode in step S1386, the prediction mode of the current block corresponds to the ibc_BVP mode.
  • the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1388).
  • the video decoding apparatus parses and decodes the mode information (pred_mode_flag) (S1360), It can be determined (S1370).
  • pred_mode_flag indicates inter prediction in step S1370
  • the video decoding apparatus may determine type information (S1380).
  • the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1388).
  • the image decoding apparatus may be configured to perform the aforementioned S1310 process, S1320 process, and S1330 process before the S1350 process.
  • step S1350 may be performed.
  • step S1310 when the enable flag indicates that the application of the ibc mode is not allowed and the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Therefore, the image decoding apparatus parses and decodes information for predicting the current block in intra mode (S1392).
  • pred_mode_flag does not indicate inter prediction in step S1370
  • the prediction mode of the current block corresponds to the intra mode. Therefore, the image decoding apparatus parses and decodes information for predicting the current block in intra mode (S1392). In the intra mode, cbf is not signaled and is led to 1 (S1394).
  • FIG. 14 The number of bits consumed or allocated to determine the prediction mode for the current block based on Examples 1-3 is illustrated in FIG. 14.
  • merge_flag 0
  • pred_mode_ibc_flag 0
  • pred_mode_flag 1
  • a total of 5 bits are allocated to determine the AMVP mode.
  • tile group type is I-type (when the CU type is intra)
  • ibc_enabled_flag 1
  • ibc_enabled_flag 0
  • the present invention may be configured to indicate that the prediction mode of the current block corresponds to the ibc mode (any of ibc_skip mode, ibc_merge mode, and ibc_BVP mode) by explicitly signaling pred_mode_ibc_flag.
  • the ibc mode any of ibc_skip mode, ibc_merge mode, and ibc_BVP mode
  • the image decoding apparatus configures a BVP candidate list consisting of one or more prediction block vector predictor (BVP) candidates (S1510).
  • the video decoding apparatus selects a BVP candidate corresponding to the BVP index (included in the motion information) signaled from the video encoding apparatus from the BVP candidate list (S1520).
  • the image decoding apparatus derives a block vector (BV) for the current block by summing the selected BVP candidates (selected BVPs) and the BVD signal (included in the motion information) from the image encoding apparatus (S1530), and deriving
  • the current block may be predicted by obtaining prediction information from the reference block in the current picture indicated by the BV (S1540).
  • the BVP candidate list constructed through Example 2-1 includes: 1) BV of a block predicted in ibc mode among one or more blocks spatially adjacent to the current block (spatial neighboring block); 2) one or more temporally adjacent to the current block.
  • a BV of a block predicted in ibc mode and 3) a preset BV may be included as BVP candidates. That is, the BVP candidates included in the BVP candidate list may include BVs of spatial neighboring blocks predicted in ibc mode, BVs of temporal neighboring blocks predicted in ibc mode, and preset BVs.
  • one or more of blocks A0, A1, and A2 located on the left side of the current block and / or blocks B0 located above the current block B1, B2) may be included, and a block AB located in the upper left of the current block may be further included.
  • the block AB located in the upper left of the current block may be treated as a block located to the left of the current block, or may be treated as a block located above the current block.
  • Blocks located on the left side of the current block include a block A1 located at the bottom and / or a block A0 located at the bottom based on the height direction H of the current block, or a block A2 located at the center. It may be further included.
  • Blocks located above the current block include a block B1 located at the right and / or a block B0 located at the right end based on the width direction W of the current block, or a block B2 located at the center It may be further included.
  • A1 may be a block including a pixel located at the bottom left of the current block as its right-most pixel, and A2 positioned at the left-most center of the current block. It may be a block including a pixel as its rightmost pixel.
  • B1 may be a block including the rightmost pixel of the current block as its rightmost pixel, and B2 may be a block including the pixel located at the uppermost center of the current block as its rightmost pixel.
  • AB may be a block including the leftmost pixel of the current block as its rightmost pixel
  • A0 may be a block including the leftmost pixel of the current block as its rightmost pixel
  • B0 is a current block It may be a block including the rightmost pixel of the rightmost pixel of its own.
  • the video decoding apparatus searches for one or more blocks among blocks located on the left side of the current block and / or one or more blocks among blocks positioned above the current block and / or blocks located in the upper left of the current block according to a preset order.
  • One or more BVP candidates may be derived, and the BVP candidate list may be constructed by including the derived BVP candidates.
  • the image decoding apparatus searches for a block A1 located on the left side of the current block and a block B1 located on the upper side in a predetermined order to derive BVP candidates, and includes the derived BVP candidates to list the BVP candidates. Can be configured.
  • the apparatus for decoding an image may derive one or more BVP candidates by searching blocks A0, A1, and / or A2 and / or AB located on the left side of the current block in a preset order. Furthermore, the image decoding apparatus may derive one or more BVP candidates by searching for blocks B0, B1 and / or B2 and / or AB located above the current block in a preset order.
  • the temporal neighboring block may refer to one or more blocks adjacent to this col_block based on a collocated block (col_block) located in a collocated picture (col_picture).
  • the col_picture may be specified in advance, such as a picture located at the first position (index of 0) of the reference picture list (L0 or L1).
  • the col_block is located in the col_picture, but may be specified in advance, such as a block located in the same position as the current picture in the current block.
  • the temporal adjacent blocks include a block BR located at the lower right of the col_ block, a block CT located at the center of the col_ block, and a block TR located at the upper right of the col_ block, and A block BL located at the bottom left of the col_block may be included.
  • BR may be a block including a pixel located at the bottom right of the current block as its leftmost pixel
  • CT indicates a pixel located at the center of the current block. It may be a block included as its leftmost pixel.
  • TR may be a block including a pixel located at the top right of the current block as its leftmost pixel
  • BL may be a block including a pixel located at the bottom left of the current block as its leftmost pixel.
  • the video decoding apparatus may search temporal temporal blocks according to a preset order to derive one or more BVP candidates, and construct the BVP candidate list by including the derived BVP candidates.
  • the preset BV may correspond to a BV indicating a position moved to the upper left by the height and width of the current block.
  • the preset BV may be (-W, -H).
  • the preset BV may be (-W * k, -H * k) in which the size of the BV is changed using an arbitrary constant k.
  • the preset BV may be referred to as a default BV in terms of being preset, rather than being acquired through a search process.
  • the BVs described through Embodiment 2-1 may indicate a relative position based on the CTU including the current block or a relative position based on the current block. As shown in FIG. 18, based on the upper leftmost pixel B of the current block, the BVs described through Example 2-1 are relative positions after setting this pixel B as a zero vector. It may be a vector indicating. Also, based on the leftmost pixel A of the CTU including the current block, the BVs described through Example 2-1 may be a vector indicating a relative position after setting the pixel A to a zero vector. have.
  • the video decoding apparatus may (optionally) express BVs based on either the CTU including the current block or the current block.
  • BVs based on the current block or by expressing BVs based on the CTU including the current block (optionally applying a criterion for expressing BVs), it is possible to efficiently set a search range for searching BVP candidates. do. Accordingly, the present invention can effectively reduce the amount of memory consumed for BVP candidate search, as well as the number of bits consumed to represent BV.
  • Example 2-2 a history-based BV is proposed that can replace BV of temporal adjacent blocks.
  • the BVP candidate list constructed through Example 2-2 may include BVs of blocks predicted (predicted) in ibc mode. That is, the BVP candidate list of Example 2-2 may include BVs of blocks predicted in ibc mode among blocks that have already been decoded (predicted) before the current block is decoded.
  • BVs BVs of blocks whose prediction is completed in ibc mode
  • HBV history-based block vector predictor
  • HBV may have a FIFO (first in first out) structure capable of storing one or more BVs.
  • FIFO first in first out
  • the BV stored first in the HBV may correspond to a zero vector.
  • BV of blocks whose prediction is completed in ibc mode is sequentially (FIFO) stored in HBV according to the prediction order (decoding order)
  • the specific block (current block) is to be predicted in ibc mode
  • the last BV stored in HBV From then, one or more BVs may be selected by searching sequentially (in the reverse order of the stored order or in the reverse order of the decoding order), and then the selected BVs may be included in the BVP candidate list.
  • the BVP candidate list construction process implemented through Example 2-2 includes' spatial BV construction process ⁇ BV configuration process selected from HBV ',' spatial BV construction process ⁇ BV configuration process selected from HBV ⁇ preset BV configuration Process' and 'spatial BV construction process ⁇ temporal BV construction process ⁇ BV construction process selected from HBV' can be implemented in various orders.
  • the video decoding apparatus may select an appropriate number of BVs from HBVs according to the type of BV to be replaced (temporal BV and / or preset BV).
  • 'the BV configuration process selected from HBV' may be performed when the number of BVP candidates included in the BVP candidate list is less than the maximum number that can be included in the BVP candidate list through the BV configuration process (s) previously performed. .
  • Example 2-3 a zero BV is proposed that can replace the preset BV.
  • the process of constructing the BVP candidate list implemented through Examples 2-3 includes 'spatial BV constructing process ⁇ temporal BV constructing process ⁇ zero BV constructing process' and 'spatial BV constructing process ⁇ selected BV constructing process from HBV ⁇ zero BV constructing process' 'It can be implemented in various order.
  • the 'zero BV configuration process' may be performed when the number of BVP candidates included in the BVP candidate list is less than the maximum number that can be included in the BVP candidate list through the previously performed BV configuration process (es).

Landscapes

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

Abstract

Disclosed are a prediction method using a current picture referencing mode, and an image decoding device therefor. Provided according to an embodiment of the present invention is a method for predicting a current block, which is a block to be decoded, by using a current picture referencing (intra block copy (ibc)) mode, the method comprising the steps of: decoding, from a bitstream, an enable flag indicating whether the application of the ibc mode is allowed, and type information indicating whether the type of slices is an inter type; depending on the enable flag and the type information, decoding from the bitstream an ibc flag indicating whether a prediction mode for the current block is the ibc mode; when the ibc flag indicates the ibc mode, decoding, from the bitstream, movement information having no index of pictures referred to by the current block; and predicting the current block by using a block indicated by the movement information within a current picture in which the current block is located. Representative drawing: figure 4

Description

현재 픽처 참조 모드를 이용한 예측 방법 및 영상 복호화 장치Prediction method and video decoding apparatus using current picture reference mode
본 발명은 영상의 부호화 및 복호화에 관한 것으로서, 부호화 및 복호화의 효율을 향상시킨 예측 방법 및 이를 이용한 영상 복호화 장치에 관한 것이다.The present invention relates to encoding and decoding of an image, and to a prediction method for improving the efficiency of encoding and decoding and an image decoding apparatus using the same.
동영상 데이터는 음성 데이터나 정지 영상 데이터 등에 비하여 많은 데이터량을 가지기 때문에, 압축을 위한 처리 없이 그 자체를 저장하거나 전송하기 위해서는 메모리를 포함하여 많은 하드웨어 자원을 필요로 한다. Since video data has a large amount of data compared to audio data or still image data, it requires a lot of hardware resources including memory to store or transmit itself without processing for compression.
따라서, 통상적으로 동영상 데이터를 저장하거나 전송할 때에는 부호화기를 사용하여 동영상 데이터를 압축하여 저장하거나 전송하며, 복호화기에서는 압축된 동영상 데이터를 수신하여 압축을 해제하고 재생한다. 이러한 동영상 압축 기술로는 H.264/AVC를 비롯하여, H.264/AVC에 비해 약 40% 정도의 부호화 효율을 향상시킨 HEVC(High Efficiency Video Coding)가 존재한다. Therefore, when storing or transmitting video data, the video data is compressed and stored or transmitted using an encoder, and the decoder receives compressed video data, decompresses and plays the video data. HVC (High Efficiency Video Coding), which improves coding efficiency by about 40% compared to H.264 / AVC, includes H.264 / AVC.
그러나, 영상의 크기 및 해상도, 프레임율이 점차 증가하고 있고, 이에 따라 부호화해야 하는 데이터량도 증가하고 있으므로 기존의 압축 기술보다 더 부호화 효율이 좋고 화질 개선 효과도 높은 새로운 압축 기술이 요구된다.However, since the size, resolution, and frame rate of the image are gradually increasing, and thus the amount of data to be encoded is also increasing, a new compression technique having better encoding efficiency and higher image quality improvement effect than the existing compression technique is required.
이러한 요구에 부응하기 위해 본 발명은 개선된 영상 부호화 및 복호화 기술을 제공하는 것을 목적으로 하며, 특히, 본 발명의 일 측면은 현재 블록의 예측 모드를 결정하는 다양한 방법들을 통해 부호화 및 복호화의 효율을 향상시키는 기술과 관련된다.In order to meet these demands, the present invention aims to provide an improved image encoding and decoding technology. In particular, one aspect of the present invention is to improve the efficiency of encoding and decoding through various methods for determining a prediction mode of a current block. It's about improving skills.
본 발명의 일 측면은, 복호화 대상인 현재 블록을 현재 픽처 참조(intra block copy, ibc) 모드로 예측하는 방법으로서, 비트스트림으로부터, 상기 ibc 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 복호화하는 단계; 상기 인에이블 플래그 및 상기 타입 정보에 의존하여, 상기 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 상기 비트스트림으로부터 복호화하는 단계; 상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우, 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 상기 비트스트림으로부터 복호화하는 단계; 및 상기 현재 블록이 위치하는 현재 픽처 내에서 상기 움직임 정보에 의해 지시되는 블록을 이용하여 상기 현재 블록을 예측하는 단계를 포함하는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법을 제공한다.An aspect of the present invention, as a method of predicting a current block to be decoded in a current picture reference (intra block copy, ibc) mode, enables to indicate whether application of the ibc mode is permitted from a bitstream Decoding type information indicating whether the type of the flag and slice is inter; Decoding an ibc flag indicating whether the prediction mode of the current block is the ibc mode based on the enable flag and the type information from the bitstream; When the ibc flag indicates the ibc mode, decoding motion information not including a reference picture index of the current block from the bitstream; And predicting the current block using a block indicated by the motion information in the current picture in which the current block is located.
본 발명의 다른 일 측면은, 비트스트림으로부터, 현재 픽처 참조(intra block copy, ibc) 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 복호화하고, 상기 인에이블 플래그 및 상기 타입 정보에 의존하여 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 복호화하며, 상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 복호화하는 복호화부; 및 상기 현재 블록이 위치하는 현재 픽처 내에서 상기 움직임 정보에 의해 지시되는 블록을 이용하여 상기 현재 블록을 예측하는 예측부를 포함하는 것을 특징으로 하는 영상 복호화 장치를 제공한다.Another aspect of the present invention is an enable flag indicating whether application of a current picture reference (intra block copy, ibc) mode is permitted from a bitstream and a type indicating whether the type of slice is inter. Decoding information, decoding the ibc flag indicating whether the prediction mode of the current block is the ibc mode depending on the enable flag and the type information, and when the ibc flag indicates the ibc mode, the current block A decoding unit that decodes motion information not including a reference picture index of; And a prediction unit for predicting the current block by using a block indicated by the motion information in the current picture in which the current block is located.
이상에서 설명한 바와 같이 본 발명의 일 실시예에 의하면, 예측 모드를 결정하기 위해 할당되는 비트 수가 해당하는 예측 모드의 빈도수에 적응적으로 조절되므로 비트 효율성을 향상시킬 수 있다.As described above, according to an embodiment of the present invention, since the number of bits allocated to determine the prediction mode is adaptively adjusted to the frequency of the corresponding prediction mode, bit efficiency can be improved.
도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다.1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
도 2는 QTBTTT 구조를 이용하여 블록을 분할하는 방법을 설명하기 위한 도면이다.2 is a diagram for explaining a method of dividing a block using a QTBTTT structure.
도 3은 복수의 인트라 예측 모드들을 설명하기 위한 도면이다.3 is a diagram for describing a plurality of intra prediction modes.
도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다.4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
도 5는 현재 픽처 참조 기술을 설명하기 위한 도면이다.5 is a diagram for describing a current picture reference technique.
도 6은 예측 모드들을 구분하는 종래 방법을 설명하기 위한 도면이다.6 is a diagram for explaining a conventional method of classifying prediction modes.
도 7은 본 발명에서 제안하는 예측 모드 결정에 대한 일 예를 설명하기 위한 순서도이다.7 is a flowchart illustrating an example of a prediction mode determination proposed by the present invention.
도 8은 현재 블록을 현재 픽처 참조 모드로 예측하는 일 예를 설명하기 위한 순서도이다.8 is a flowchart illustrating an example of predicting a current block in a current picture reference mode.
도 9 내지 도 14는 본 발명에서 제안하는 다양한 방법들을 설명하기 위한 도면이다.9 to 14 are views for explaining various methods proposed in the present invention.
도 15는 현재 블록을 ibc_BVP 모드로 예측하는 본 발명의 일 실시예를 설명하기 위한 순서도이다.15 is a flowchart illustrating an embodiment of the present invention for predicting a current block in ibc_BVP mode.
도 16 내지 도 18은 ibc 모드 용 BVP 후보 리스트에 포함되는 BVP 후보들을 설명하기 위한 도면이다.16 to 18 are diagrams for describing BVP candidates included in the BVP candidate list for ibc mode.
이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성 요소들에 식별 부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail through exemplary drawings. It should be noted that in adding identification numbers to the components of each drawing, the same components have the same reference numerals as possible even though they are displayed on different drawings. In addition, in describing the present invention, when it is determined that detailed descriptions of related well-known structures or functions may obscure the subject matter of the present invention, detailed descriptions thereof will be omitted.
도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다. 이하에서는 도 1을 참조하여 영상 부호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure. Hereinafter, an image encoding apparatus and sub-components of the apparatus will be described with reference to FIG. 1.
영상 부호화 장치는 블록 분할부(110), 예측부(120), 감산기(130), 변환부(140), 양자화부(145), 부호화부(150), 역양자화부(160), 역변환부(165), 가산기(170), 필터부(180) 및 메모리(190)를 포함하여 구성될 수 있다.The image encoding apparatus includes a block division unit 110, a prediction unit 120, a subtractor 130, a transformation unit 140, a quantization unit 145, an encoding unit 150, an inverse quantization unit 160, and an inverse transformation unit ( 165), an adder 170, a filter unit 180 and a memory 190.
영상 부호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.Each component of the video encoding apparatus may be implemented in hardware or software, or a combination of hardware and software. Further, the function of each component may be implemented in software, and the microprocessor may be implemented to execute the function of software corresponding to each component.
하나의 영상(비디오)는 복수의 픽처들로 구성된다. 각 픽처들은 복수의 영역으로 분할되고 각 영역마다 부호화가 수행된다. 예를 들어, 하나의 픽처는 하나 이상의 타일(Tile) 또는/및 슬라이스(Slice)로 분할된다. 여기서, 하나 이상의 타일을 타일 그룹(Tile Group)으로 정의할 수 있다. 각 타일 또는/슬라이스는 하나 이상의 CTU(Coding Tree Unit)로 분할된다. 그리고 각 CTU는 트리 구조에 의해 하나 이상의 CU(Coding Unit)들로 분할된다. 각 CU에 적용되는 정보들은 CU의 신택스로서 부호화되고, 하나의 CTU에 포함된 CU들에 공통적으로 적용되는 정보는 CTU의 신택스로서 부호화된다. 또한, 하나의 타일 내의 모든 블록들에 공통적으로 적용되는 정보는 타일의 신택스로서 부호화되거나 다수 개의 타일을 모아 놓은 타일 그룹의 신택스로서 부호화되며, 하나의 픽처들을 구성하는 모든 블록들에 적용되는 정보는 픽처 파라미터 셋(PPS, Picture Parameter Set) 혹은 픽처 헤더에 부호화된다. 나아가, 복수의 픽처가 공통으로 참조하는 정보들은 시퀀스 파라미터 셋(SPS, Sequence Parameter Set)에 부호화된다. 그리고, 하나 이상의 SPS가 공통으로 참조하는 정보들은 비디오 파라미터 셋(VPS, Video Parameter Set)에 부호화된다.One image (video) is composed of a plurality of pictures. Each picture is divided into a plurality of regions, and encoding is performed for each region. For example, one picture is divided into one or more tiles or / and slices. Here, one or more tiles may be defined as a tile group. Each tile or / slice is divided into one or more coding tree units (CTUs). And each CTU is divided into one or more coding units (CUs) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in one CTU is encoded as the syntax of the CTU. In addition, information commonly applied to all blocks in one tile is encoded as the syntax of a tile or encoded as a syntax of a tile group in which a plurality of tiles are collected, and information applied to all blocks constituting one picture is It is encoded in a picture parameter set (PPS) or a picture header. Furthermore, information commonly referred to by a plurality of pictures is encoded in a sequence parameter set (SPS). And, information that is commonly referenced by one or more SPSs is encoded in a video parameter set (VPS).
블록 분할부(110)는 CTU(Coding Tree Unit)의 크기를 결정한다. CTU의 크기에 대한 정보(CTU size)는 SPS 또는 PPS의 신택스로서 부호화되어 영상 복호화 장치로 전달된다. The block splitter 110 determines the size of a coding tree unit (CTU). Information about the size of the CTU (CTU size) is encoded as a syntax of an SPS or a PPS and transmitted to an image decoding apparatus.
블록 분할부(110)는 영상을 구성하는 각 픽처(picture)를 미리 결정된 크기를 가지는 복수의 CTU(Coding Tree Unit)들로 분할한 이후에, 트리 구조(tree structure)를 이용하여 CTU를 반복적으로(recursively) 분할한다. 트리 구조에서의 리프 노드(leaf node)가 부호화의 기본 단위인 CU(coding unit)가 된다. The block dividing unit 110 divides each picture constituting an image into a plurality of coding tree units (CTUs) having a predetermined size, and then repeatedly repeats the CTU using a tree structure. (recursively) split. A leaf node in a tree structure becomes a coding unit (CU), which is a basic unit of encoding.
트리 구조로는 상위 노드(혹은 부모 노드)가 동일한 크기의 네 개의 하위 노드(혹은 자식 노드)로 분할되는 쿼드트리(QuadTree, QT), 또는 상위 노드가 두 개의 하위 노드로 분할되는 바이너리트리(BinaryTree, BT), 또는 상위 노드가 1:2:1 비율로 세 개의 하위 노드로 분할되는 터너리트리(TernaryTree, TT), 또는 이러한 QT 구조, BT 구조 및 TT 구조 중 둘 이상을 혼용한 구조일 수 있다. 예컨대, QTBT(QuadTree plus BinaryTree) 구조가 사용될 수 있고, 또는 QTBTTT(QuadTree plus BinaryTree TernaryTree) 구조가 사용될 수 있다. 여기서, BTTT를 합쳐서 MTT(Multiple-Type Tree)라 칭할 수 있다. The tree structure includes a quad tree (QuadTree, QT) in which a parent node (or parent node) is divided into four child nodes (or child nodes) of the same size, or a binary tree (BinaryTree) in which a parent node is divided into two child nodes. , BT), or a ternary tree in which the upper node is divided into three lower nodes in a 1: 2: 1 ratio, or a structure in which two or more of these QT structures, BT structures, and TT structures are mixed. have. For example, a QTBT (QuadTree plus BinaryTree) structure may be used, or a QTBTTT (QuadTree plus BinaryTree TernaryTree) structure may be used. Here, BTTT may be collectively referred to as MTT (Multiple-Type Tree).
도 2는 QTBTTT 분할 트리 구조를 보인다. 도 2에서 보는 바와 같이, CTU는 먼저 QT 구조로 분할될 수 있다. 쿼드트리 분할은 분할 블록(splitting block)의 크기가 QT에서 허용되는 리프 노드의 최소 블록 크기(MinQTSize)에 도달할 때까지 반복될 수 있다. QT 구조의 각 노드가 하위 레이어의 4개의 노드들로 분할되는지 여부를 지시하는 제1 플래그(QT_split_flag)는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. QT의 리프 노드가 BT에서 허용되는 루트 노드의 최대 블록 크기(MaxBTSize)보다 크지 않은 경우, BT 구조 또는 TT 구조 중 어느 하나 이상으로 더 분할될 수 있다. BT 구조 및/또는 TT 구조에서는 복수의 분할 방향이 존재할 수 있다. 예컨대, 해당 노드의 블록이 가로로 분할되는 방향과 세로로 분할되는 방향 두 가지가 존재할 수 있다. 도 2와 같이, MTT 분할이 시작되면, 노드들이 분할되었는지 여부를 지시하는 제2 플래그(mtt_split_flag)와, 분할이 되었다면 추가적으로 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그 및/또는 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다.2 shows a QTBTTT split tree structure. As shown in FIG. 2, the CTU can be first divided into a QT structure. The quadtree split may be repeated until the size of the splitting block reaches the minimum block size (MinQTSize) of the leaf node allowed in QT. The first flag (QT_split_flag) indicating whether each node of the QT structure is divided into 4 nodes of the lower layer is encoded by the encoder 150 and signaled to the video decoding apparatus. If the leaf node of QT is not larger than the maximum block size (MaxBTSize) of the root node allowed by BT, it may be further divided into any one or more of BT structure or TT structure. In the BT structure and / or the TT structure, a plurality of split directions may exist. For example, there may be two directions in which a block of a corresponding node is horizontally divided and a vertically divided direction. As illustrated in FIG. 2, when MTT splitting is started, a second flag (mtt_split_flag) indicating whether nodes are split, and a flag indicating additional splitting direction (vertical or horizontal) and / or splitting type (Binary or Ternary) The flag indicating) is encoded by the encoding unit 150 and signaled to the video decoding apparatus.
트리 구조의 다른 예로서, QTBTTT 구조를 사용하여 블록을 분할하는 경우, 먼저 분할 되었음을 나타내는 CU 분할 플래그(split_cu_flag) 및 분할 타입이 QT 분할인지를 지시하는 QT 분할 플래그(split_qt_flag) 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. CU 분할 플래그(split_cu_flag) 값이 분할되지 않았음을 지시하지 않는 경우, 해당 노드의 블록이 분할 트리 구조에서의 리프 노드(leaf node)가 되어 부호화의 기본 단위인 CU(coding unit)가 된다. CU 분할 플래그(split_cu_flag) 값이 분할되었음을 지시하지 않는 경우, QT 분할 플래그(split_qt_flag) 값을 통해 분할 타입이 QT 혹은 MTT인지를 구분한다. 분할 타입이 QT인 경우에는 더 이상의 추가 정보가 없으며, 분할 타입이 MTT인 경우에는 추가적으로 MTT 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그(mtt_split_cu_vertical_flag) 및/또는 MTT 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그(mtt_split_cu_binary_flag)가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다.As another example of a tree structure, when a block is split using a QTBTTT structure, information about a CU split flag (split_cu_flag) indicating that the block is split first and a QT split flag (split_qt_flag) indicating whether the split type is QT split is encoded 150 ) And signaled to the video decoding apparatus. If the CU split flag (split_cu_flag) value does not indicate that the partition has not been split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of encoding. If the CU split flag (split_cu_flag) value does not indicate that the split is performed, it is determined whether the split type is QT or MTT through the QT split flag (split_qt_flag) value. When the split type is QT, there is no additional information, and when the split type is MTT, additionally, a flag indicating the MTT split direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and / or a flag indicating the MTT split type (Binary or Ternary) (mtt_split_cu_binary_flag) is encoded by the encoding unit 150 and signaled to the video decoding apparatus.
트리 구조의 다른 예시로서 QTBT가 사용되는 경우, 해당 노드의 블록을 동일 크기의 두 개 블록으로 가로로 분할하는 타입(즉, symmetric horizontal splitting)과 세로로 분할하는 타입(즉, symmetric vertical splitting) 두 가지가 존재할 수 있다. BT 구조의 각 노드가 하위 레이어의 블록으로 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할되는 타입을 지시하는 분할 타입 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다. 한편, 해당 노드의 블록을 서로 비대칭 형태의 두 개의 블록으로 분할하는 타입이 추가로 더 존재할 수도 있다. 비대칭 형태에는 해당 노드의 블록을 1:3의 크기 비율을 가지는 두 개의 직사각형 블록으로 분할하는 형태가 포함될 수 있고, 혹은 해당 노드의 블록을 대각선 방향으로 분할하는 형태가 포함될 수도 있다.When QTBT is used as another example of a tree structure, two types of horizontally dividing a block of a corresponding node into two blocks of the same size (ie, symmetric horizontal splitting) and a vertically dividing type (ie, symmetric vertical splitting). Branches can exist. The split flag (split_flag) indicating whether each node of the BT structure is divided into blocks of a lower layer and split type information indicating a split type are encoded by the encoder 150 and transmitted to an image decoding apparatus. On the other hand, there may be further a type of dividing a block of a corresponding node into two blocks having an asymmetric shape. The asymmetric form may include a form of dividing a block of a corresponding node into two rectangular blocks having a size ratio of 1: 3, or a form of dividing a block of a corresponding node in a diagonal direction.
CU는 CTU로부터의 QTBT 또는 QTBTTT 분할에 따라 다양한 크기를 가질 수 있다. 이하에서는, 부호화 또는 복호화하고자 하는 CU(즉, QTBTTT의 리프 노드)에 해당하는 블록을 '현재블록'이라 칭한다.CU may have various sizes according to QTBT or QTBTTT division from CTU. Hereinafter, a block corresponding to a CU (ie, a leaf node of QTBTTT) to be encoded or decoded is referred to as a 'current block'.
예측부(120)는 현재블록을 예측하여 예측블록을 생성한다. 예측부(120)는 인트라 예측부(122)와 인터 예측부(124)를 포함한다. The prediction unit 120 predicts the current block to generate a prediction block. The prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit 124.
일반적으로, 픽처 내 현재블록들은 각각 예측적으로 코딩될 수 있다. 일반적으로 현재블록의 예측은 (현재블록을 포함하는 픽처로부터의 데이터를 사용하는) 인트라 예측 기술 또는 (현재블록을 포함하는 픽처 이전에 코딩된 픽처로부터의 데이터를 사용하는) 인터 예측 기술을 사용하여 수행될 수 있다. 인터 예측은 단방향 예측과 양방향 예측 모두를 포함한다.In general, each of the current blocks in a picture can be predictively coded. In general, prediction of the current block may be performed using intra prediction technology (using data from a picture containing the current block) or inter prediction technology (using data from a picture coded before a picture containing the current block). Can be performed. Inter prediction includes both one-way prediction and two-way prediction.
인트라 예측부(122)는 현재블록이 포함된 현재 픽처 내에서 현재블록의 주변에 위치한 픽셀(참조 픽셀)들을 이용하여 현재블록 내의 픽셀들을 예측한다. 예측 방향에 따라 복수의 인트라 예측모드가 존재한다. 예컨대, 도 3에서 보는 바와 같이, 복수의 인트라 예측모드는 planar 모드와 DC 모드를 포함하는 비방향성 모드와 65개의 방향성 모드를 포함할 수 있다. 각 예측모드에 따라 사용할 주변 픽셀과 연산식이 다르게 정의된다.The intra prediction unit 122 predicts pixels in the current block using pixels (reference pixels) located around the current block in the current picture including the current block. There are multiple intra prediction modes according to the prediction direction. For example, as shown in FIG. 3, a plurality of intra prediction modes may include 65 non-directional modes including a planar mode and a DC mode. Peripheral pixels to be used and expressions are defined differently for each prediction mode.
인트라 예측부(122)는 현재블록을 부호화하는데 사용할 인트라 예측 모드를 결정할 수 있다. 일부 예들에서, 인트라 예측부(122)는 여러 인트라 예측 모드들을 사용하여 현재블록을 인코딩하고, 테스트된 모드들로부터 사용할 적절한 인트라 예측 모드를 선택할 수도 있다. 예를 들어, 인트라 예측부(122)는 여러 테스트된 인트라 예측 모드들에 대한 레이트 왜곡(rate-distortion) 분석을 사용하여 레이트 왜곡 값들을 계산하고, 테스트된 모드들 중 최선의 레이트 왜곡 특징들을 갖는 인트라 예측 모드를 선택할 수도 있다.The intra prediction unit 122 may determine an intra prediction mode to be used to encode the current block. In some examples, the intra prediction unit 122 may encode the current block using various intra prediction modes and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 calculates rate distortion values using rate-distortion analysis for various tested intra prediction modes, and has the best rate distortion characteristics among the tested modes. The intra prediction mode can also be selected.
인트라 예측부(122)는 복수의 인트라 예측 모드 중에서 하나의 인트라 예측 모드를 선택하고, 선택된 인트라 예측 모드에 따라 결정되는 주변 픽셀(참조 픽셀)과 연산식을 사용하여 현재블록을 예측한다. 선택된 인트라 예측 모드에 대한 정보가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다.The intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts a current block using a neighboring pixel (reference pixel) and an arithmetic expression determined according to the selected intra prediction mode. Information on the selected intra prediction mode is encoded by the encoding unit 150 and transmitted to the image decoding apparatus.
인터 예측부(124)는 움직임 보상 과정을 통해 현재블록에 대한 예측블록을 생성한다. 현재 픽처보다 먼저 부호화 및 복호화된 참조픽처 내에서 현재블록과 가장 유사한 블록을 탐색하고, 그 탐색된 블록을 이용하여 현재블록에 대한 예측블록을 생성한다. 그리고, 현재 픽처 내의 현재블록과 참조픽처 내의 예측블록 간의 변위(displacement)에 해당하는 움직임벡터(motion vector)를 생성한다. 일반적으로, 움직임 추정은 루마(luma) 성분에 대해 수행되고, 루마 성분에 기초하여 계산된 모션 벡터는 루마 성분 및 크로마 성분 모두에 대해 사용된다. 현재블록을 예측하기 위해 사용된 참조픽처에 대한 정보 및 움직임벡터에 대한 정보를 포함하는 움직임 정보는 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 전달된다.The inter prediction unit 124 generates a prediction block for the current block through a motion compensation process. The block most similar to the current block is searched in the reference picture that is encoded and decoded before the current picture, and a predicted block for the current block is generated using the searched block. Then, a motion vector corresponding to displacement between the current block in the current picture and the prediction block in the reference picture is generated. Generally, motion estimation is performed on luma components, and motion vectors calculated based on luma components are used for both luma components and chroma components. The motion information including information about the reference picture and motion vector used to predict the current block is encoded by the encoder 150 and transmitted to the video decoding apparatus.
감산기(130)는 현재블록으로부터 인트라 예측부(122) 또는 인터 예측부(124)에 의해 생성된 예측블록을 감산하여 잔차블록을 생성한다.The subtractor 130 subtracts the prediction block generated by the intra prediction unit 122 or the inter prediction unit 124 from the current block to generate a residual block.
변환부(140)는 공간 영역의 픽셀 값들을 가지는 잔차블록 내의 잔차 신호를 주파수 도메인의 변환 계수로 변환한다. 변환부(140)는 잔차블록의 전체 크기를 변환 단위로 사용하여 잔차블록 내의 잔차 신호들을 변환할 수 있으며, 또는 잔차블록을 변환 영역 및 비변환 영역인 두 개의 서브블록으로 구분하여, 변환 영역 서브블록만 변환 단위로 사용하여 잔차 신호들을 변환할 수 있다. 여기서, 변환 영역 서브블록은 가로축 (혹은 세로축) 기준 1:1의 크기 비율을 가지는 두 개의 직사각형 블록 중 하나일 수 있다. 이런 경우, 서브블록 만을 변환하였음을 지시하는 플래그(cu_sbt_flag), 방향성(vertical/horizontal) 정보(cu_sbt_horizontal_flag) 및/또는 위치 정보(cu_sbt_pos_flag)가 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. 또한, 변환 영역 서브블록의 크기는 가로축 (혹은 세로축) 기준 1:3의 크기 비율을 가질 수 있으며, 이런 경우 해당 분할을 구분하는 플래그(cu_sbt_quad_flag)가 추가적으로 부호화부(150)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. The transform unit 140 converts the residual signal in the residual block having pixel values in the spatial domain into a transform coefficient in the frequency domain. The transform unit 140 may transform residual signals in the residual block using the entire size of the residual block as a transform unit, or divide the residual block into two subblocks that are a transform region and a non-transformed region, and convert the sub Residual signals can be transformed using only blocks as transform units. Here, the transform region sub-block may be one of two rectangular blocks having a size ratio of 1: 1 on the horizontal axis (or vertical axis). In this case, a flag (cu_sbt_flag), directional (vertical / horizontal) information (cu_sbt_horizontal_flag), and / or location information (cu_sbt_pos_flag) indicating that only the sub-block is converted is encoded by the encoder 150 and signaled to the video decoding apparatus. . In addition, the size of the transform region sub-block may have a size ratio of 1: 3 based on the horizontal axis (or vertical axis). In this case, a flag (cu_sbt_quad_flag) for classifying the split is additionally encoded by the encoder 150 to decode the image. Signaled to the device.
양자화부(145)는 변환부(140)로부터 출력되는 변환 계수들을 양자화하고, 양자화된 변환 계수들을 부호화부(150)로 출력한다.The quantization unit 145 quantizes transform coefficients output from the transform unit 140 and outputs the quantized transform coefficients to the encoder 150.
부호화부(150)는 양자화된 변환 계수들을 CABAC(Context-based Adaptive Binary Arithmetic Code) 등의 부호화 방식을 사용하여 부호화함으로써 비트스트림을 생성한다. 부호화부(150)는 블록 분할과 관련된 CTU size, CU 분할 플래그, QT 분할 플래그, MTT 분할 방향, MTT 분할 타입 등의 정보를 부호화하여, 영상 복호화 장치가 영상 부호화 장치와 동일하게 블록을 분할할 수 있도록 한다.The encoding unit 150 generates a bitstream by encoding quantized transform coefficients using an encoding method such as CABAC (Context-based Adaptive Binary Arithmetic Code). The encoder 150 encodes information such as a CTU size, a CU split flag, a QT split flag, an MTT split direction, and an MTT split type related to block splitting, so that the video decoding apparatus can split the block in the same way as the video coding apparatus. To make.
또한, 부호화부(150)는 현재블록이 인트라 예측에 의해 부호화되었는지 아니면 인터 예측에 의해 부호화되었는지 여부를 지시하는 예측 타입에 대한 정보를 부호화하고, 예측 타입에 따라 인트라 예측정보(즉, 인트라 예측 모드에 대한 정보) 또는 인터 예측정보(참조픽처 및 움직임벡터에 대한 정보)를 부호화한다.Also, the encoder 150 encodes information about a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and intra prediction information (that is, intra prediction mode) according to the prediction type. Information) or inter prediction information (information on reference pictures and motion vectors).
역양자화부(160)는 양자화부(145)로부터 출력되는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 생성한다. 역변환부(165)는 역양자화부(160)로부터 출력되는 변환 계수들을 주파수 도메인으로부터 공간 도메인으로 변환하여 잔차블록을 복원한다.The inverse quantization unit 160 inverse quantizes the quantized transform coefficients output from the quantization unit 145 to generate transform coefficients. The inverse transform unit 165 reconstructs the residual block by transforming transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain.
가산부(170)는 복원된 잔차블록과 예측부(120)에 의해 생성된 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 다음 순서의 블록을 인트라 예측할 때 참조 픽셀로서 사용된다.The adder 170 restores the current block by adding the reconstructed residual block and the predicted block generated by the predictor 120. The pixels in the reconstructed current block are used as a reference pixel when intra prediction of a next order block.
필터부(180)는 블록 기반의 예측 및 변환/양자화로 인해 발생하는 블록킹 아티팩트(blocking artifacts), 링잉 아티팩트(ringing artifacts), 블러링 아티팩트(blurring artifacts) 등을 줄이기 위해 복원된 픽셀들에 대한 필터링을 수행한다. 필터부(180)는 디블록킹 필터(182)와 SAO(Sample Adaptive Offset) 필터(184)를 포함할 수 있다.The filter unit 180 filters the reconstructed pixels to reduce blocking artifacts, ringing artifacts, and blurring artifacts caused by block-based prediction and transformation / quantization. To perform. The filter unit 180 may include a deblocking filter 182 and a sample adaptive offset (SAO) filter 184.
디블록킹 필터(180)는 블록 단위의 부호화/복호화로 인해 발생하는 블록킹 현상(blocking artifact)을 제거하기 위해 복원된 블록 간의 경계를 필터링하고, SAO 필터(184)는 디블록킹 필터링된 영상에 대해 추가적인 필터링을 수행한다. SAO 필터(184)는 손실 부호화(lossy coding)로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해 사용되는 필터이다.The deblocking filter 180 filters the boundary between the restored blocks to remove blocking artifacts caused by block-level encoding / decoding, and the SAO filter 184 adds additional deblocking filtered images. Filtering is performed. The SAO filter 184 is a filter used to compensate for a difference between a reconstructed pixel and an original pixel caused by lossy coding.
디블록킹 필터(182) 및 SAO 필터(184)를 통해 필터링된 복원블록은 메모리(190)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The reconstructed blocks filtered through the deblocking filter 182 and the SAO filter 184 are stored in the memory 190. When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded.
도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다. 이하에서는 도 4를 참조하여 영상 복호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure. Hereinafter, an image decoding apparatus and sub-components of the apparatus will be described with reference to FIG. 4.
영상 복호화 장치는 복호화부(410), 역양자화부(420), 역변환부(430), 예측부(440), 가산기(450), 필터부(460) 및 메모리(470)를 포함하여 구성될 수 있다. The image decoding apparatus may include a decoding unit 410, an inverse quantization unit 420, an inverse transform unit 430, a prediction unit 440, an adder 450, a filter unit 460, and a memory 470. have.
도 1의 영상 부호화 장치와 마찬가지로, 영상 복호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.Similar to the video encoding apparatus of FIG. 1, each component of the video decoding apparatus may be implemented in hardware or software, or a combination of hardware and software. Further, the function of each component may be implemented in software, and the microprocessor may be implemented to execute the function of software corresponding to each component.
복호화부(410)는 영상 부호화 장치로부터 수신한 비트스트림을 복호화하여 블록 분할과 관련된 정보를 추출함으로써 복호화하고자 하는 현재블록을 결정하고, 현재블록을 복원하기 위해 필요한 예측정보와 잔차신호에 대한 정보 등을 추출한다.The decoder 410 determines a current block to be decoded by decoding a bitstream received from an image encoding apparatus and extracting information related to block partitioning, and prediction information and residual signal information required to restore the current block. To extract.
복호화부(410)는 SPS(Sequence Parameter Set) 또는 PPS(Picture Parameter Set)로부터 CTU size에 대한 정보를 추출하여 CTU의 크기를 결정하고, 픽처를 결정된 크기의 CTU로 분할한다. 그리고, CTU를 트리 구조의 최상위 레이어, 즉, 루트 노드로 결정하고, CTU에 대한 분할정보를 추출함으로써 트리 구조를 이용하여 CTU를 분할한다. The decoder 410 extracts information on the CTU size from a Sequence Parameter Set (SPS) or a Picture Parameter Set (PPS) to determine the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, that is, the root node, and the CTU is split using the tree structure by extracting the segmentation information for the CTU.
예컨대, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 MTT의 분할과 관련된 제2 플래그(MTT_split_flag) 및 분할 방향(vertical / horizontal) 및/또는 분할 타입(binary / ternary) 정보를 추출하여 해당 리프 노드를 MTT 구조로 분할한다. 이를 통해 QT의 리프 노드 이하의 각 노드들을 BT 또는 TT 구조로 반복적으로(recursively) 분할한다.For example, when the CTU is split using the QTBTTT structure, first, the first flag (QT_split_flag) related to the splitting of the QT is extracted, and each node is divided into four nodes of a lower layer. In addition, for the node corresponding to the leaf node of the QT, the second flag (MTT_split_flag) and split direction (vertical / horizontal) and / or split type (binary / ternary) information related to the splitting of the MTT are extracted to extract the corresponding leaf node from the MTT. Divide into structures. Through this, each node below the leaf node of QT is recursively divided into a BT or TT structure.
또 다른 예로서, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 CU의 분할 여부를 지시하는 CU 분할 플래그(split_cu_flag)를 추출하고, 해당 블록이 분할된 경우, QT 분할 플래그(split_qt_flag)를 추출한다. 분할 타입이 QT가 아니고 MTT인 경우, MTT 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그(mtt_split_cu_vertical_flag) 및/또는 MTT 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그(mtt_split_cu_binary_flag)를 추가적으로 추출한다. 분할 과정에서 각 노드는 0번 이상의 반복적인 QT 분할 후에 0번 이상의 반복적인 MTT 분할이 발생할 수 있다. 예컨대, CTU는 바로 MTT 분할이 발생하거나, 반대로 다수 번의 QT 분할만 발생할 수도 있다. As another example, when a CTU is split using a QTBTTT structure, a CU split flag (split_cu_flag) indicating whether to split the CU is first extracted, and when the corresponding block is split, a QT split flag (split_qt_flag) is extracted. . If the split type is not QT and MTT, a flag indicating the MTT splitting direction (vertical or horizontal) (mtt_split_cu_vertical_flag) and / or a flag indicating the MTT splitting type (Binary or Ternary) (mtt_split_cu_binary_flag) is additionally extracted. In the splitting process, each node may have 0 or more repetitive MTT splits after 0 or more repetitive QT splits. For example, in the CTU, MTT splitting may occur immediately, or conversely, only multiple QT splitting may occur.
다른 예로서, QTBT 구조를 사용하여 CTU를 분할하는 경우, QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 BT로 더 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할 방향 정보를 추출한다.As another example, when the CTU is split using the QTBT structure, the first flag (QT_split_flag) related to the division of the QT is extracted, and each node is divided into four nodes of a lower layer. Then, for a node corresponding to a leaf node of QT, split flag (split_flag) indicating whether to be further divided by BT and split direction information are extracted.
한편, 복호화부(410)는 트리 구조의 분할을 통해 복호화하고자 하는 현재블록을 결정하게 되면, 현재블록이 인트라 예측되었는지 아니면 인터 예측되었는지를 지시하는 예측 타입에 대한 정보를 추출한다. 예측 타입 정보가 인트라 예측을 지시하는 경우, 복호화부(410)는 현재블록의 인트라 예측정보(인트라 예측 모드)에 대한 신택스 요소를 추출한다. 예측 타입 정보가 인터 예측을 지시하는 경우, 복호화부(410)는 인터 예측정보에 대한 신택스 요소, 즉, 움직임벡터 및 그 움직임벡터가 참조하는 참조픽처를 나타내는 정보를 추출한다.On the other hand, when determining a current block to be decoded through partitioning of a tree structure, the decoder 410 extracts information on a prediction type indicating whether the current block is intra predicted or inter predicted. When the prediction type information indicates intra prediction, the decoder 410 extracts a syntax element for intra prediction information (intra prediction mode) of the current block. When the prediction type information indicates inter prediction, the decoder 410 extracts syntax elements for the inter prediction information, that is, information indicating a motion vector and a reference picture referenced by the motion vector.
한편, 복호화부(410)는 잔차신호에 대한 정보로서 현재블록의 양자화된 변환계수들에 대한 정보를 추출한다.Meanwhile, the decoder 410 extracts information about quantized transform coefficients of the current block as information about the residual signal.
역양자화부(420)는 양자화된 변환계수들을 역양자화하고, 역변환부(430)는 역양자화된 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환하여 잔차신호들을 복원함으로써 현재블록에 대한 잔차블록을 생성한다.The inverse quantization unit 420 inverse quantizes the quantized transform coefficients, and the inverse transform unit 430 inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals to generate a residual block for the current block. .
또한, 역변환부(430)는 변환블록의 일부 영역(서브블록)만 역변환하는 경우, 변환블록의 서브블록만을 변환하였음을 지시하는 플래그(cu_sbt_flag), 서브블록의 방향성(vertical/horizontal) 정보(cu_sbt_horizontal_flag) 및/또는 서브블록의 위치 정보(cu_sbt_pos_flag)를 추출하여, 해당 서브블록의 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환함으로써 잔차신호들을 복원하고, 역변환되지 않은 영역에 대해서는 잔차신호로 "0" 값을 채움으로써 현재블록에 대한 최종 잔차블록을 생성한다.In addition, when the inverse transform unit 430 inversely transforms only a partial region (subblock) of a transform block, a flag (cu_sbt_flag) indicating that only a subblock of the transform block is transformed, and vertical / horizontal information (cu_sbt_horizontal_flag) of the subblock ) And / or extracting the location information (cu_sbt_pos_flag) of the sub-blocks, and restoring the residual signals by inverse transforming the transform coefficients of the corresponding sub-blocks from the frequency domain to the spatial domain. By filling, we create the final residual block for the current block.
예측부(440)는 인트라 예측부(442) 및 인터 예측부(444)를 포함할 수 있다. 인트라 예측부(442)는 현재블록의 예측 타입이 인트라 예측일 때 활성화되고, 인터 예측부(444)는 현재블록의 예측 타입이 인터 예측일 때 활성화된다.The prediction unit 440 may include an intra prediction unit 442 and an inter prediction unit 444. The intra prediction unit 442 is activated when the prediction type of the current block is intra prediction, and the inter prediction unit 444 is activated when the prediction type of the current block is inter prediction.
인트라 예측부(442)는 복호화부(410)로부터 추출된 인트라 예측 모드에 대한 신택스 요소로부터 복수의 인트라 예측 모드 중 현재블록의 인트라 예측 모드를 결정하고, 인트라 예측 모드에 따라 현재블록 주변의 참조 픽셀들을 이용하여 현재블록을 예측한다.The intra prediction unit 442 determines an intra prediction mode of a current block among a plurality of intra prediction modes from syntax elements for an intra prediction mode extracted from the decoder 410, and according to the intra prediction mode, reference pixels around the current block Use to predict the current block.
인터 예측부(444)는 복호화부(410)로부터 추출된 인트라 예측 모드에 대한 신택스 요소를 이용하여 현재블록의 움직임벡터와 그 움직임벡터가 참조하는 참조픽처를 결정하고, 움직임벡터와 참조픽처를 이용하여 현재블록을 예측한다.The inter prediction unit 444 determines a motion vector of a current block and a reference picture referred to by the motion vector using a syntax element for an intra prediction mode extracted from the decoding unit 410, and uses the motion vector and the reference picture. To predict the current block.
가산기(450)는 역변환부로부터 출력되는 잔차블록과 인터 예측부 또는 인트라 예측부로부터 출력되는 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 이후에 복호화할 블록을 인트라 예측할 때의 참조픽셀로서 활용된다.The adder 450 restores the current block by adding the residual block output from the inverse transform unit and the prediction block output from the inter prediction unit or the intra prediction unit. The pixels in the reconstructed current block are used as a reference pixel in intra prediction of a block to be decoded later.
필터부(460)는 디블록킹 필터(462) 및 SAO 필터(464)를 포함할 수 있다. 디블록킹 필터(462)는 블록 단위의 복호화로 인해 발생하는 블록킹 현상(blocking artifact)를 제거하기 위해, 복원된 블록 간의 경계를 디블록킹 필터링한다. SAO 필터(464)는 손실 부호화(lossy coding)으로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해, 디블록킹 필터링 이후의 복원된 블록에 대해 추가적인 필터링을 수행한다. 디블록킹 필터(462) 및 SAO 필터(464)를 통해 필터링된 복원블록은 메모리(470)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.The filter unit 460 may include a deblocking filter 462 and a SAO filter 464. The deblocking filter 462 deblocks the boundary between the reconstructed blocks in order to remove blocking artifacts caused by block-by-block decoding. The SAO filter 464 performs additional filtering on the reconstructed block after deblocking filtering to compensate for the difference between the reconstructed pixel and the original pixel caused by lossy coding. The reconstructed blocks filtered through the deblocking filter 462 and the SAO filter 464 are stored in the memory 470. When all blocks in one picture are reconstructed, the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded.
본 발명은 부호화 및/또는 복호화 대상 블록(현재 블록)의 예측 모드를 결정하고, 이를 기반으로 현재 블록에 대한 예측을 수행하는 새로운 방법들을 제안한다. The present invention proposes new methods for determining a prediction mode of a block to be coded and / or decoded (current block) and performing prediction on the current block based on the prediction mode.
본 발명을 통해 결정되는 예측 모드는 크게, 인터 모드, 인트라 모드 및 현재 픽처 참조(current picture referencing, cpr) 모드로 구분될 수 있다. cpr 모드는 ibc(intra block copy) 모드로 지칭될 수 있다. 인터 모드에는 skip 모드, merge 모드 및 AMVP 모드가 포함될 수 있고, cpr 모드 즉, ibc 모드에는 ibc_skip 모드, ibc_merge 모드 및 ibc_BVP 모드가 포함될 수 있다. ibc_skip 모드는 skip 모드에 ibc 모드가 적용된 것이며, ibc_merge 모드는 merge 모드에 ibc 모드가 적용된 것이고, ibc_BVP 모드는 AMVP 모드에 ibc 모드가 적용된 것이다. The prediction mode determined through the present invention can be largely divided into an inter mode, an intra mode, and a current picture referencing (cpr) mode. The cpr mode may be referred to as an ibc (intra block copy) mode. The inter mode may include skip mode, merge mode, and AMVP mode, and cpr mode, i.e., ibc mode, may include ibc_skip mode, ibc_merge mode, and ibc_BVP mode. ibc_skip mode is ibc mode applied to skip mode, ibc_merge mode is ibc mode applied to merge mode, and ibc_BVP mode is ibc mode applied to AMVP mode.
ibc 모드는 인트라 예측 방법 중 하나로서, ibc 모드에 대한 일 예가 도 5에 표현되어 있다. 도 5에 표현된 바와 같이, ibc 모드에서, 현재 블록(Current block)의 예측 정보는 동일 픽처(현재 픽처, Current picture) 내에 위치하는 다른 블록(참조 블록, Reference block)으로부터 획득된다. The ibc mode is one of intra prediction methods, and an example of the ibc mode is represented in FIG. 5. As illustrated in FIG. 5, in ibc mode, prediction information of a current block is obtained from another block (reference block) located in the same picture (current picture).
도 5의 현재 픽처에 포함된 블록들 중 패턴이 포함된 블록은 이미 복호화가 완료된 블록 또는 영역(Coded region)에 해당하며, 패턴이 포함되지 않은 블록은 복호화가 완료되지 않은 블록 또는 영역(Not coded yet)에 해당한다. 따라서, 현재 블록의 예측 정보가 획득되는 참조 블록은 이미 복호화가 완료된 블록에 해당한다. 참조 블록은 움직임 벡터(motion vector, MV)에 의해 지시되며, ibc 모드에서 이 움직임 벡터는 블록 벡터(block vector, BV)로 지칭될 수 있다. Of the blocks included in the current picture of FIG. 5, a block including a pattern corresponds to a block or region (Coded region) in which decoding is already completed, and a block not including a pattern is a block or region in which decoding is not completed (Not coded yet). Therefore, the reference block from which the prediction information of the current block is obtained corresponds to a block that has already been decoded. The reference block is indicated by a motion vector (MV), and in ibc mode, this motion vector may be referred to as a block vector (BV).
이와 같은 ibc 모드에서는 BV가 지시하는 참조 블록으로부터 현재 블록의 예측 정보가 획득되는 반면, 인트라 모드에서는 현재 블록의 주변에 인접한 픽셀들로부터 예측 정보가 획득된다. 또한, ibc 모드에서는 동일한 픽처에 위치하는 참조 블록으로부터 예측 정보가 획득되는 반면, 인터 모드에서는 다른 픽처에 위치하는 참조 블록으로부터 예측 정보가 획득된다.In this ibc mode, prediction information of the current block is obtained from a reference block indicated by BV, while in intra mode, prediction information is obtained from pixels adjacent to the periphery of the current block. Further, in ibc mode, prediction information is obtained from a reference block located in the same picture, while in inter mode, prediction information is obtained from a reference block located in another picture.
예측 모드를 결정하는 종래 방법에서는 먼저, 현재 블록이 포함된 슬라이스의 타입(slice_type!=I)을 판단하는 과정(S610)이 수행된다. 슬라이스 타입에는 I-슬라이스(intra slice), P-슬라이스(predictive slice) 및 B-슬라이스(bi-predictive slice)가 포함될 수 있다. In the conventional method of determining the prediction mode, first, a process (S610) of determining the type (slice_type! = I) of the slice including the current block is performed. The slice type may include I-slice (intra slice), P-slice (predictive slice) and B-slice (bi-predictive slice).
I-슬라이스는 인트라 예측만 가능하다. 따라서, 현재 블록이 I-슬라이스에 포함된 경우, 인트라 예측을 위해 요구되는 정보들을 파싱 및 복호화하는 과정(S692)이 수행된다. 이와 달리, P-슬라이스와 B-슬라이스는 인터 예측 및 인트라 예측이 모두 가능하다. 따라서, 현재 블록이 I-슬라이스에 포함되지 않는 경우, 현재 블록에 대한 추가적인 판단 과정들이 수행된다. I-slice is only available for intra prediction. Therefore, when the current block is included in the I-slice, a process of parsing and decoding information required for intra prediction (S692) is performed. In contrast, P-slices and B-slices are capable of both inter prediction and intra prediction. Therefore, when the current block is not included in the I-slice, additional determination processes for the current block are performed.
먼저, 현재 블록이 skip 모드로 예측되었는지 여부를 지시하는 플래그(skip_flag)를 파싱 및 복호화하는 과정(S620)과, skip_flag를 판단하는 과정(S630)이 수행된다. skip_flag가 on(skip_flag=1)인 경우, 현재 블록의 예측 모드는 skip 모드에 해당한다. 따라서, skip 모드 예측에 이용되는 움직임 정보를 획득하기 위해, 머지 인덱스(merge_index)를 파싱 및 복호화하는 과정(S680)이 추가적으로 수행되게 된다. First, a process of parsing and decoding a flag (skip_flag) indicating whether the current block is predicted as a skip mode (S620) and a process of determining skip_flag (S630) are performed. When skip_flag is on (skip_flag = 1), the prediction mode of the current block corresponds to skip mode. Accordingly, in order to obtain motion information used for skip mode prediction, a process of parsing and decoding the merge index (merge_index) (S680) is additionally performed.
이와 달리, skip_flag가 off(skip_flag=0)인 경우, 현재 블록의 예측 모드는 skip 모드 이외의 모드(merge 모드, AMVP 모드 및 인트라 모드) 중 어느 하나에 해당할 수 있다. 이를 더욱 정확히 판단하기 위해, 현재 블록이 인터 모드와 인트라 모드 중 어느 모드로 예측되었는지 여부를 지시하는 플래그(현재 블록이 인트라 모드로 예측되었는지 여부를 지시하는 플래그, pred_mode_flag)를 파싱 및 복호화하는 과정(S640)과 pred_mode_flag를 판단하는 과정(S650)이 수행된다.Alternatively, when skip_flag is off (skip_flag = 0), the prediction mode of the current block may correspond to any one of modes other than skip mode (merge mode, AMVP mode, and intra mode). In order to determine this more accurately, the process of parsing and decoding a flag indicating whether the current block is predicted in the inter mode or the intra mode (the flag indicating whether the current block is predicted as the intra mode, pred_mode_flag) ( S640) and a process of determining pred_mode_flag (S650) is performed.
pred_mode_flag가 인터 모드를 지시하는 경우, 현재 블록의 예측 모드는 merge 모드 및 AMVP 모드 중 어느 하나에 해당할 수 있다. 이를 더욱 정확히 판단하기 위해, 현재 블록이 merge 모드로 예측되었는지 여부를 지시하는 플래그(merge_flag)를 파싱 및 복호화하는 과정(S660)과 merge_flag를 판단하는 과정(S670)이 수행된다. When pred_mode_flag indicates an inter mode, the prediction mode of the current block may correspond to one of a merge mode and an AMVP mode. In order to determine this more accurately, a flag (merge_flag) indicating whether a current block is predicted as a merge mode is parsed and decoded (S660) and a merge_flag is determined (S670).
merge_flag가 on(merge_flag=1)인 경우, 현재 블록의 예측 모드는 merge 모드에 해당한다. 따라서, 머지 인덱스(merge_index)를 파싱 및 복호화하는 과정(S680)이 수행되게 된다. 이와 달리, merge_flag가 off(merge_flag=0)인 경우, 현재 블록의 예측 모드는 AMVP 모드에 해당한다. 따라서, AMVP 예측을 위해 요구되는 정보(motion information)를 파싱 및 복호화하는 과정(S690)이 수행된다.When merge_flag is on (merge_flag = 1), the prediction mode of the current block corresponds to the merge mode. Accordingly, a process of parsing and decoding the merge index (merge_index) (S680) is performed. In contrast, when merge_flag is off (merge_flag = 0), the prediction mode of the current block corresponds to the AMVP mode. Therefore, a process of parsing and decoding information required for AMVP prediction (S690) is performed.
다시, S650과정으로 돌아가, pred_mode_flag가 인트라 모드를 지시하는 경우, 인트라 예측을 위해 요구되는 정보들을 파싱 및 복호화하는 과정(S692)이 수행된다.Returning to step S650, when pred_mode_flag indicates an intra mode, a process of parsing and decoding information required for intra prediction (S692) is performed.
도 6을 통해 설명된 종래 방법에서, ibc 모드는 현재 블록에 대한 참조 블록이 현재 픽처와 동일한 픽처 내에 위치하는지 여부를 기준으로 적용될 수 있다. 예를 들어, 현재 블록의 예측 모드가 skip 모드 또는 merge 모드로 판단되면서, merge_idx가 지시하는 머지 후보의 참조 픽처가 현재 픽처와 동일한 경우, 해당 현재 블록은 ibc_skip 모드 또는 ibc_merge 모드로 결정 및 예측될 수 있다.In the conventional method described with reference to FIG. 6, the ibc mode may be applied based on whether a reference block for the current block is located in the same picture as the current picture. For example, when the prediction mode of the current block is determined to be a skip mode or a merge mode, when a merge candidate's reference picture indicated by merge_idx is the same as the current picture, the current block may be determined and predicted in ibc_skip mode or ibc_merge mode. have.
또 다른 예로, 현재 블록의 예측 모드가 AMVP 모드로 판단되면서, 영상 부호화 장치로부터 시그널링된 참조 픽처 인덱스(ref_idx)가 현재 픽처와 동일한 픽처를 지시하는 경우, 해당 현재 블록은 ibc_BVP 모드로 결정 및 예측될 수 있다.As another example, when the prediction mode of the current block is determined to be the AMVP mode, when the reference picture index (ref_idx) signaled from the video encoding device indicates the same picture as the current picture, the current block is determined and predicted as the ibc_BVP mode You can.
ibc 모드의 on/off 여부는 별도의 플래그(sps_curr_pic_ref_enabled_flag 및 pps_curr_pic_ref_enabled_flag)를 통해 정의될 수 있으며, 아래 표 1 및 표 2는 위 플래그 각각을 통해 ibc 모드의 on/off 여부를 정의하는 일 예를 나타낸다.Whether the ibc mode is on or off may be defined through separate flags (sps_curr_pic_ref_enabled_flag and pps_curr_pic_ref_enabled_flag), and Table 1 and Table 2 below show an example of defining whether the ibc mode is on or off through each of the above flags.
Figure PCTKR2019013129-appb-img-000001
Figure PCTKR2019013129-appb-img-000001
Figure PCTKR2019013129-appb-img-000002
Figure PCTKR2019013129-appb-img-000002
또한, 머지 후보의 참조 픽처와 현재 픽처가 동일한지 여부 및 참조 픽처 인덱스가 현재 픽처와 동일한 픽처를 지시하는지 여부를 판단하기 위하여, 현재 픽처가 참조 픽처 리스트에 추가되어야 한다. 아래 수학식 1은 현재 픽처가 참조 픽처 리스트에 추가되는 일 예를 나타낸다.Further, in order to determine whether the reference picture of the merge candidate and the current picture are the same and whether the reference picture index indicates the same picture as the current picture, the current picture must be added to the reference picture list. Equation 1 below shows an example in which the current picture is added to the reference picture list.
Figure PCTKR2019013129-appb-img-000003
Figure PCTKR2019013129-appb-img-000003
본 발명은 현재 블록의 예측 모드들을 구분하는 새로운 신택스(syntax) 및 시멘틱(semantics)을 제안한다. 또한, 본 발명은 영상 부호화 장치에서 ibc 모드로 부호화된(예측된) 현재 블록에 대한 신택스 및 시멘틱을 제안한다. 나아가, 본 발명은 ibc_BVP 모드로 예측된 현재 블록에 대해, BVP 후보 리스트에 포함되는 새로운 BVP 후보들을 제안한다.The present invention proposes new syntax and semantics for distinguishing prediction modes of the current block. In addition, the present invention proposes syntax and semantics for a current block (predicted) encoded in ibc mode in an image encoding apparatus. Furthermore, the present invention proposes new BVP candidates included in the BVP candidate list for the current block predicted in ibc_BVP mode.
본 발명에서, 영상 부호화 장치는 미리 설정된 조건들의 만족 여부를 기초로 현재 블록의 예측 모드를 결정하고, 미리 설정된 조건들의 만족 여부를 나타내는 신택스 요소들을 비트스트림에 포함시켜 영상 복호화 장치로 시그널링한다. 영상 복호화 장치는 미리 설정된 조건들의 만족 여부를 판단하고(S710), 판단 결과를 기초로 현재 블록의 예측 모드를 결정한다(S720). 또한, 영상 복호화 장치는 결정된 예측 모드를 기준으로 현재 블록을 예측한다(S730).In the present invention, the video encoding apparatus determines the prediction mode of the current block based on whether the preset conditions are satisfied, and signals the video decoding apparatus by including syntax elements indicating whether the preset conditions are satisfied in the bitstream. The video decoding apparatus determines whether the preset conditions are satisfied (S710), and determines the prediction mode of the current block based on the determination result (S720). In addition, the video decoding apparatus predicts the current block based on the determined prediction mode (S730).
'미리 설정된 조건들'이란, 현재 블록의 예측 모드를 결정하기 위한 기준을 의미한다. 미리 설정된 조건들에는 현재 블록이 포함된 타일 그룹(이하 '타일 그룹'이라 지칭한다)의 타입이 인트라인지 여부(또는, 타일 그룹의 타입이 인터인지 여부), ibc 모드가 활성 상태(on)인지 여부(ibc 모드의 적용이 허용되는지 여부) 및 현재 블록의 예측 모드가 머지 모드인지 여부가 포함될 수 있다. 또한, 미리 설정된 조건들에는 현재 블록이 인트라 모드(또는, 인터 모드)로 부호화되었는지 여부 및 현재 블록의 예측 모드가 ibc 모드인지 여부도 포함될 수 있다.The 'preset conditions' refer to a criterion for determining the prediction mode of the current block. The preset conditions include whether the type of the tile group (hereinafter referred to as 'tile group') containing the current block is intra (or whether the tile group type is inter), and whether the ibc mode is active (on). It may include whether or not (application of the ibc mode is allowed) and whether the prediction mode of the current block is the merge mode. Also, the preset conditions may include whether the current block is encoded in an intra mode (or inter mode) and whether the current block prediction mode is an ibc mode.
타일 그룹의 타입이 인트라인지 여부는 이를 지시하는 타입 정보를 통해 지시될 수 있다. 타입 정보는 미리 정의된 신택스 요소(예를 들어, tile_group_type)로 구현될 수 있다. 본 명세서에서 타입 정보에 대한 판단은 'tile group=inter?'로 표현될 수 있다. 여기서, 타일 그룹은 타일 또는 슬라이스 등으로 달리 지칭될 수 있다. 따라서, '타일 그룹의 타입이 인트라인지 여부'는 '타일의 타입이 인트라인지 여부' 또는 '슬라이스의 타입이 인트라인지 여부'로 달리 이해될 수 있다.Whether the type of the tile group is intra may be indicated through type information indicating it. Type information may be implemented with a predefined syntax element (eg, tile_group_type). In this specification, the judgment on the type information may be expressed as 'tile group = inter?'. Here, the tile group may be referred to differently as a tile or a slice. Accordingly, 'whether the type of the tile group is intra' may be differently understood as 'whether the tile type is intra' or 'whether the slice type is intra'.
ibc 모드의 적용이 허용되는지 여부는 이를 지시하는 인에이블 플래그를 통해 지시될 수 있다. 인에이블 플래그는 미리 정의된 신택스 요소(예를 들어, ibc_enabled_flag)로 구현될 수 있다. ibc_enabled_flag는 SPS, PPS, 타일 그룹 헤더, 타일 헤더, CTU 헤더 중 하나 이상의 위치에서 정의될 수 있다.Whether the application of ibc mode is permitted may be indicated through an enable flag indicating this. The enable flag may be implemented with a predefined syntax element (eg, ibc_enabled_flag). ibc_enabled_flag may be defined in one or more locations among SPS, PPS, tile group header, tile header, and CTU header.
현재 블록의 예측 모드가 머지 모드인지 여부는 이를 지시하는 신택스 요소(merge_flag)를 통해 지시될 수 있다. 현재 블록이 인터 모드(또는, 인트라 모드)로 부호화되었는지 여부는 이를 지시하는 신택스 요소(pred_mode_flag)를 통해 지시될 수 있다. 현재 블록의 예측 모드가 ibc 모드인지 여부는 이를 지시하는 신택스 요소(pred_mode_ibc_flag)를 통해 지시될 수 있다.Whether the prediction mode of the current block is a merge mode may be indicated through a syntax element (merge_flag) indicating this. Whether the current block is coded in inter mode (or intra mode) may be indicated through a syntax element (pred_mode_flag) indicating this. Whether the prediction mode of the current block is ibc mode may be indicated through a syntax element (pred_mode_ibc_flag) indicating this.
이와 같은 미리 설정된 조건들의 전부 또는 일부를 적용하여 현재 블록의 예측 모드를 ibc_BVP 모드로 결정하는 과정에 대한 일 예를 설명하면 아래와 같다.An example of the process of determining the prediction mode of the current block as the ibc_BVP mode by applying all or a part of these preset conditions will be described below.
영상 부호화 장치가 인에이블 플래그와 타일 그룹에 대한 타입 정보를 비트스트림에 포함시켜 전송하면, 영상 복호화 장치(즉, 복호화부)는 비트스트림으로부터 인에이블 플래그와 타입 정보를 복호화한다(S810). When the image encoding apparatus transmits the enable flag and the type information for the tile group in the bitstream, the image decoding apparatus (ie, the decoder) decodes the enable flag and type information from the bitstream (S810).
또한, 영상 부호화 장치는 인에이블 플래그, 타입 정보 및/또는 현재 블록의 예측 모드가 지시하는 바에 따라 ibc 플래그를 비트스트림에 선택적으로 포함시켜 전송한다. 복호화부(410)는 복호화된 인에이블 플래그, 타입 정보 및/또는 현재 블록의 예측 모드에 의존하여 ibc 플래그를 복호화한다(S820). 예를 들어, 영상 복호화 장치는 인에이블 플래그가 on이면서 타입 정보가 인트라를 지시하는 경우에 ibc 플래그를 복호화할 수 있다. 또한, 영상 복호화 장치는 인에이블 플래그가 on이고, 타입 정보가 인터를 지시(타입 정보가 인트라를 지시하지 않음)하면서, 예측 모드가 인터인(예측 모드가 인트라가 아님) 경우에 ibc 플래그를 복호화할 수 있다.In addition, the image encoding apparatus selectively transmits the ibc flag by including the enable flag, type information, and / or the ibc flag as indicated by the prediction mode of the current block. The decoder 410 decodes the ibc flag depending on the decoded enable flag, type information, and / or the prediction mode of the current block (S820). For example, the image decoding apparatus may decode the ibc flag when the enable flag is on and the type information indicates intra. In addition, the video decoding apparatus decodes the ibc flag when the enable flag is on, the type information indicates inter (type information does not indicate intra), and the prediction mode is inter (prediction mode is not intra). can do.
ibc 플래그가 ibc 모드를 지시하는 경우, 영상 부호화 장치는 현재 블록의 움직임 정보를 비트스트림에 포함시켜 전송하며, 영상 복호화 장치는 비트스트림에 포함된 움직임 정보를 복호화한다(S830). 복호화되는 현재 블록의 움직임 정보에는 참조 픽처 인덱스가 포함되어 있지 않다. When the ibc flag indicates the ibc mode, the video encoding apparatus transmits the motion information of the current block by including it in the bitstream, and the video decoding apparatus decodes the motion information included in the bitstream (S830). The reference picture index is not included in the motion information of the current block to be decoded.
영상 복호화 장치(즉, 예측부)는 복호화된 움직임 정보에 의해 지시되는 블록(참조 블록)을 이용하여 현재 블록을 예측한다(S840). 참조 블록은 현재 블록과 동일한 픽처(현재 픽처) 내에 위치하는 블록에 해당한다.The video decoding apparatus (that is, the prediction unit) predicts the current block using a block (reference block) indicated by the decoded motion information (S840). The reference block corresponds to a block located in the same picture (current picture) as the current block.
이와 같이, 본 발명에서는 별도의 신택스 요소(pred_mode_ibc_flag)를 이용하여 현재 블록이 ibc 모드(ibc_BVP 모드)로 예측되었음을 결정할 수 있다. 따라서, 본 발명은 영상 부호화 장치로부터 시그널링된 참조 픽처 인덱스를 이용하여 현재 블록이 ibc_BVP 모드로 예측되었음을 결정하는 종래 방법과 차이점을 가진다.As described above, in the present invention, it can be determined that the current block is predicted in the ibc mode (ibc_BVP mode) using a separate syntax element (pred_mode_ibc_flag). Therefore, the present invention has a difference from the conventional method of determining that the current block is predicted in the ibc_BVP mode using the reference picture index signaled from the video encoding apparatus.
이와 같은 차이점으로 인하여, 종래 방법은 BVP 인덱스(BVP_idx), BVD 및 참조 픽처 인덱스를 모두 파싱하는데 반하여, 본 발명은 BVP 인덱스와 BVD만을 파싱한다. 즉, 본 발명에서는 참조 픽처 인덱스에 대한 시그널링 없이, BVP 인덱스와 BVD만에 기반하여 현재 블록을 ibc_BVP 모드로 예측할 수 있으므로, 비트 효율성이 향상될 수 있다.Due to this difference, the conventional method parses both the BVP index (BVP_idx), the BVD and the reference picture index, whereas the present invention parses only the BVP index and BVD. That is, in the present invention, since the current block can be predicted in the ibc_BVP mode based on only the BVP index and the BVD without signaling for the reference picture index, bit efficiency can be improved.
이하에서 설명되는 실시예들은 영상 부호화 장치 및 영상 복호화 장치 모두에서 동일하게 수행될 수 있으나, 설명과 이해의 편의를 위해 영상 복호화 장치를 중심으로 설명하도록 한다. 다만, 복호화부(410) 또는 영상 복호화 장치가 특정 신택스 요소를 파싱 및 복호화하는 과정은 영상 부호화 장치가 이 특정 신택스 요소를 부호화하여 비트스트림에 포함시키는 것으로 이해되는 것이 바람직하다.The embodiments described below may be performed in the same manner in both the image encoding apparatus and the image decoding apparatus, but for convenience of explanation and understanding, the image decoding apparatus will be mainly described. However, the process of parsing and decoding a specific syntax element by the decoder 410 or the video decoding apparatus is preferably understood as being included in the bitstream by the video encoding apparatus encoding the specific syntax element.
실시예 1Example 1
실시예 1은 미리 설정된 조건들에 대한 만족 여부를 기초로 현재 블록의 예측 모드를 결정하고, 결정된 예측 모드로 현재 블록을 예측하는 예에 해당한다.The first embodiment corresponds to an example in which a prediction mode of a current block is determined based on whether the predetermined conditions are satisfied, and a current block is predicted using the determined prediction mode.
실시예 1-1Example 1-1
도 9에 도시된 바와 같이, 실시예 1-1에서는, ibc 모드의 적용이 허용되는지 여부, 타일 그룹의 타입이 인트라인지 여부, 현재 블록의 예측 모드가 머지 모드인지 여부, 현재 블록의 예측 모드가 ibc 모드인지 여부 및 현재 블록이 인터 예측에 의해 부호화되었는지 여부 중 전부 또는 일부가 이용될 수 있다.9, in Example 1-1, whether the application of the ibc mode is allowed, whether the type of the tile group is intra, whether the prediction mode of the current block is a merge mode, and the prediction mode of the current block All or part of whether it is in the ibc mode and whether the current block is encoded by inter prediction may be used.
skip 모드, merge 모드, ibc_skip 모드 및 ibc_merge 모드skip mode, merge mode, ibc_skip mode and ibc_merge mode
인에이블 플래그 및 타입 정보가 복호화되면, 영상 복호화 장치는 복호화된 정보들을 이용하여 ibc 모드의 적용이 허용되거나 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S910). When the enable flag and the type information are decoded, the image decoding apparatus may determine whether the application of the ibc mode is allowed or the tile group type is intra using the decoded information (S910).
S910 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하거나 타입 정보가 인트라가 아님을 지시하는 경우(ibc 모드의 적용이 허용되지 않으면서 타일 그룹의 타입이 인터 경우, ibc 모드의 적용이 허용되면서 타일 그룹의 타입이 인트라인 경우 및 ibc 모드의 적용이 허용되면서 타일 그룹의 타입이 인터인 경우), 영상 복호화 장치는 merge_flag를 파싱 및 복호화하고(S920), merge_flag를 판단한다(S930). In step S910, when the enable flag indicates that the application of the ibc mode is permitted or indicates that the type information is not intra (if the application of the ibc mode is not allowed and the tile group type is inter, the application of the ibc mode is allowed. When the tile group type is Intra and the ibc mode is allowed while the tile group type is Inter), the image decoding apparatus parses and decodes merge_flag (S920) and determines merge_flag (S930).
S930 과정에서 merge_flag가 '현재 블록의 예측 모드가 머지 모드임'을 지시하는 경우, 현재 블록의 예측 모드는 skip 모드, merge 모드, ibc_skip 모드 및 ibc_merge 모드 중 어느 하나에 해당할 수 있다. 이 경우, 영상 복호화 장치는 S940 과정을 통해 파싱 및 복호화되는 merge_idx를 이용하여 skip/merge 모드와 ibc_skip/ibc_merge 모드를 구분할 수 있다. When the merge_flag indicates 'the prediction mode of the current block is a merge mode' in step S930, the prediction mode of the current block may correspond to any one of a skip mode, a merge mode, an ibc_skip mode, and an ibc_merge mode. In this case, the video decoding apparatus may distinguish between the skip / merge mode and the ibc_skip / ibc_merge mode using merge_idx that is parsed and decoded through S940.
복호화된 merge_idx가 지시하는 머지 후보의 참조 픽처가 현재 픽처와 동일한 경우, 해당 현재 블록의 예측 모드는 ibc_skip/ibc_merge 모드에 해당한다. 이와 달리, 복호화된 merge_idx가 지시하는 머지 후보의 참조 픽처가 현재 픽처와 동일하지 않은 경우, 해당 현재 블록의 예측 모드는 skip/merge 모드에 해당한다When the reference picture of the merge candidate indicated by the decoded merge_idx is the same as the current picture, the prediction mode of the current block corresponds to the ibc_skip / ibc_merge mode. On the other hand, when the reference picture of the merge candidate indicated by the decoded merge_idx is not the same as the current picture, the prediction mode of the current block corresponds to the skip / merge mode.
skip 모드와 merge 모드의 구분 및 ibc_skip 모드와 ibc_merge 모드의 구분은 S990 과정을 통해 파싱 및 복호화되는 정보(예를 들어, cbf)가 1 및 0 중 어느 값을 지시하는지 여부에 따라 결정될 수 있다.The distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which value of 1 and 0 indicates information (eg, cbf) parsed and decoded through S990.
AMVP 모드AMVP mode
영상 복호화 장치는 인에이블 플래그 및 타입 정보를 이용하여 ibc 모드의 적용이 허용되거나 타일 그룹의 타입이 인트라인지 여부를 판단하고(S910), 현재 블록의 예측 모드가 머지 모드인지 여부를 지시하는 정보를 파싱 및 복호화하며(S920), 이를 판단할 수 있다(S930).The video decoding apparatus determines whether the application of the ibc mode is permitted or the tile group type is intra using the enable flag and type information (S910), and displays information indicating whether the prediction mode of the current block is a merge mode. Parsing and decoding (S920), it can be determined (S930).
S930 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우, 현재 블록의 예측 모드는 AMVP 모드, ibc_BVP 모드 및 인트라 모드 중 어느 하나에 해당할 수 있다. 현재 블록의 예측 모드를 AMVP 모드, ibc_BVP 모드 및 인트라 모드 중 어느 하나로 결정하기 위하여, 영상 복호화 장치는 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S950), pred_mode_flag를 판단할 수 있다(S960).If merge_flag does not indicate a merge mode in step S930, the prediction mode of the current block may correspond to any one of AMVP mode, ibc_BVP mode, and intra mode. In order to determine the prediction mode of the current block as one of the AMVP mode, ibc_BVP mode, and intra mode, the video decoding apparatus may parse and decode mode information (pred_mode_flag) (S950) and determine pred_mode_flag (S960).
S960 과정에서 pred_mode_flag가 인터 예측을 지시하는 경우(인트라 예측을 지시하지 않는 경우), 영상 복호화 장치는 인에이블 플래그 및 타입 정보를 이용하여, 현재 블록이 ibc 모드로 예측되었음을 나타내는 별도의 신택스(pred_mode_ibc_flag)에 대한 파싱 여부를 결정할 수 있다(S970). 즉, S960 과정에서 예측 모드가 인트라 예측이 아닌 경우, 영상 복호화 장치는 인에이블 플래그 및 타입 정보를 이용하여, pred_mode_ibc_flag에 대한 파싱 여부를 결정할 수 있다(S970). When pred_mode_flag indicates inter prediction in step S960 (when not indicating intra prediction), the video decoding apparatus uses an enable flag and type information, and a separate syntax indicating that the current block is predicted in ibc mode (pred_mode_ibc_flag) It may be determined whether or not to parse (S970). That is, if the prediction mode is not intra prediction in step S960, the image decoding apparatus may determine whether to parse the pred_mode_ibc_flag using the enable flag and type information (S970).
S970 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하지 않거나 타입 정보가 인트라를 지시하는 경우, 영상 복호화 장치는 타입 정보를 다시 판단할 수 있다(S980). S980 과정에서 타입 정보가 인터를 지시하는 경우, 현재 블록의 예측 모드는 AMVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 AMVP 모드로 예측하기 위한 움직임 정보들(ref_idx, mvd, mvp_idx)을 파싱 및 복호화할 수 있다(S982). If the enable flag does not indicate that the application of the ibc mode is allowed in step S970 or the type information indicates intra, the video decoding apparatus may determine the type information again (S980). When the type information indicates inter in step S980, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S982).
S970 과정, S980 과정 및 S982 과정을 통합하여 다시 설명하면, 영상 복호화 장치는 ibc 모드의 적용이 허용되지 않으면서 타일 그룹의 타입이 인터인 경우에 현재 블록을 AMVP 모드로 예측하기 위한 움직임 정보들을 파싱 및 복호화하는 것으로 이해될 수 있다.When the S970 process, the S980 process, and the S982 process are combined and described again, the video decoding apparatus parses motion information for predicting the current block in the AMVP mode when the tile group type is inter without applying ibc mode. And decryption.
한편, S970 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하고 타입 정보가 인터를 지시하는 경우(인트라가 아님을 지시하는 경우), 영상 복호화 장치는 pred_mode_ibc_flag를 파싱 및 복호화하고(S984), pred_mode_ibc_flag를 판단할 수 있다(S986). S986 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하지 않는 경우에도 현재 블록의 예측 모드는 AMVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 AMVP 모드로 예측하기 위한 움직임 정보들을 파싱 및 복호화할 수 있다(S982). On the other hand, if the enable flag in step S970 indicates that the application of the ibc mode is allowed and the type information indicates inter (when indicating not intra), the video decoding apparatus parses and decodes pred_mode_ibc_flag (S984), The pred_mode_ibc_flag may be determined (S986). Even if pred_mode_ibc_flag does not indicate ibc mode in step S986, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information for predicting the current block in the AMVP mode (S982).
ibc_BVP 모드ibc_BVP mode
영상 복호화 장치는 인에이블 플래그와 타입 정보를 이용하여 ibc 모드의 적용이 허용되며 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S970).The image decoding apparatus may determine whether the ibc mode is permitted using the enable flag and type information and whether the tile group type is intra (S970).
S970 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하며 타입 정보가 인터를 지시하는 경우, 영상 복호화 장치는 pred_mode_ibc_flag를 파싱 및 복호화하고(S984), pred_mode_ibc_flag를 판단할 수 있다(S986). S986 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하는 경우, 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S988).When the enable flag in step S970 indicates that the application of the ibc mode is permitted and the type information indicates inter, the image decoding apparatus may parse and decode pred_mode_ibc_flag (S984) and determine pred_mode_ibc_flag (S986). When pred_mode_ibc_flag indicates the ibc mode in step S986, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S988).
S970 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하거나 타입 정보가 인트라를 지시하는 경우, 영상 복호화 장치는 타입 정보를 다시 판단할 수 있다(S980). S980 과정에서 타입 정보가 인터를 지시하지 않는 경우(인트라를 지시하는 경우)에도 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S988). If the enable flag in step S970 indicates that the application of the ibc mode is not permitted or the type information indicates intra, the video decoding apparatus may determine the type information again (S980). Even if the type information does not indicate an inter (in the case of indicating an intra) in step S980, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S988).
실시형태에 따라, 영상 복호화 장치는 S970 과정 이전에 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S950), 이를 판단하는(S960) 과정들을 더 수행할 수 있다. 이와 같은 실시형태의 경우, S960 과정에서 현재 블록의 예측 모드가 인트라 예측이 아님(인터 예측)이 지시되는 경우에, 영상 복호화 장치는 전술된 S970 과정과 이 S970 과정 이후의 과정들을 수행할 수 있다.According to an embodiment, the image decoding apparatus may further perform the processes of parsing and decoding the mode information (pred_mode_flag) before S970 (S950), and determining (S960). In the case of such an embodiment, when it is indicated in step S960 that the prediction mode of the current block is not intra prediction (inter prediction), the video decoding apparatus may perform the above-described S970 process and processes after this S970 process. .
실시형태에 따라, 영상 복호화 장치는 전술된 S910 과정, S920 과정 및 S930 과정들을 S950 과정 이전에 수행하도록 구성될 수 있다. 이와 같은 실시형태의 경우, S930 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우에 S950 과정이 수행될 수 있다. According to an embodiment, the image decoding apparatus may be configured to perform the above-described S910 process, S920 process, and S930 process before the S950 process. In the case of such an embodiment, when merge_flag does not indicate a merge mode in operation S930, operation S950 may be performed.
인트라 모드Intra mode
S910 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하면서 타입 정보가 인트라를 지시하는 경우, 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화할 수 있다(S992).When the enable flag in step S910 indicates that application of the ibc mode is not allowed and the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S992).
한편, S960 과정에서, 모드 정보가 인터 예측을 지시하지 않는 경우에도 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화할 수 있다(S992). 인트라 모드인 경우, cbf는 시그널링되지 않고 1로 유도된다(S994).Meanwhile, in step S960, even if the mode information does not indicate inter prediction, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S992). In the intra mode, cbf is not signaled and is derived to 1 (S994).
실시예 1-1을 기반으로 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 도 10에 표현되어 있다. The number of bits consumed or allocated to determine the prediction mode for the current block based on Example 1-1 is represented in FIG. 10.
도 10의 Tile group type은 타일 그룹이 I-타입, P-타입 및 B-타입 중 어느 타입에 해당하는지 여부를 나타내는 항목이다. 타일 그룹이 I-타입에 해당하면 tile group≠inter로 판단되고, 타일 그룹이 P-타입 또는 B-타입에 해당하면 tile group=inter로 판단된다.The tile group type of FIG. 10 is an item indicating whether a tile group corresponds to I-type, P-type, or B-type. If the tile group corresponds to the I-type, it is determined to be tile group ≠ inter, and if the tile group corresponds to the P-type or B-type, it is determined to be tile group = inter.
CU type은 현재 블록이 인터 모드와 인트라 모드 중 어느 모드로 예측되었는지 여부를 나타내는 항목에 해당하며, CU mode는 현재 블록이 skip 모드, merge 모드, AMVP 모드, ibc_skip 모드, ibc_merge 모드 및 ibc_BVP 모드 중 어느 모드로 예측되었는지 여부를 나타내는 항목에 해당한다.CU type corresponds to an item indicating whether the current block is predicted in inter mode or intra mode, and CU mode indicates whether the current block is in skip mode, merge mode, AMVP mode, ibc_skip mode, ibc_merge mode or ibc_BVP mode. Corresponds to the item indicating whether the mode is predicted.
mode는 현재 블록의 예측 모드를 판단하는 전체 과정에서 merge_flag, pred_mode_flag 및 pred_mode_ibc_flag 각각의 on/off 여부를 나타내는 항목에 해당하며, ref_idx는 참조 픽처 인덱스의 시그널링 여부를 나타내는 항목에 해당하고, cbf는 현재 블록에 대한 변환 계수가 모두 zero 값을 가지는지 아니면, 이 변환 계수가 하나 이상의 non-zero 값을 가지는지 여부를 나타내는 항목에 해당한다.mode corresponds to an item indicating whether each of merge_flag, pred_mode_flag and pred_mode_ibc_flag is on / off in the entire process of determining the prediction mode of the current block, ref_idx corresponds to an item indicating whether to reference the reference picture index, and cbf is the current block Corresponds to the item indicating whether all of the transform coefficients for have a zero value or whether the transform coefficients have one or more non-zero values.
Total bits는 현재 블록의 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수를 각 예측 모드 별로 구분하여 나타내는 항목에 해당하며, ibc=off는 ibc_enabled_flag가 off인 경우에 각 과정에 소모되는 비트들을 나타내는 항목에 해당한다. 즉, ibc=off 항목을 제외한 전술된 항목들은 ibc_enabled_flag가 on인 상태를 전제로(ibc 방법이 적용됨을 전제로) 한 비트 수를 나타낸다.Total bits correspond to an item indicating the number of bits consumed or allocated to determine the prediction mode of the current block for each prediction mode, and ibc = off represents items consumed in each process when ibc_enabled_flag is off Corresponds to That is, the above-mentioned items excluding the ibc = off item indicate the number of bits on the premise that ibc_enabled_flag is on (assuming that the ibc method is applied).
이하에서는, ibc_enabled_flag=1인 경우를 전제로 각 예측 모드를 결정하기 위해 할당되는 비트 수에 대해 먼저 설명한 후, ibc_enabled_flag=0을 전제로 각 예측 모드를 결정하기 위해 할당되는 비트 수에 대해 후술하도록 한다. Hereinafter, the number of bits allocated to determine each prediction mode on the premise of ibc_enabled_flag = 1 will be described first, and then the number of bits allocated to determine each prediction mode on the premise of ibc_enabled_flag = 0 will be described later. .
Tile group type이 P-타입 또는 B-타입이고 CU type이 inter인 경우를 가정하면, tile group=inter가 추가적으로 더 전제된다. 따라서, CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어 skip 모드를 결정하기 위해 2비트가 할당된다. Assuming that the tile group type is P-type or B-type and the CU type is inter, tile group = inter is further premised. Therefore, when CU mode is skip, merge_flag = 1, ref_idx is not signaled, and cbf = 0, and 2 bits are allocated to determine the skip mode.
CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어 merge 모드를 결정하기 위해 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_flag=1, pred_mode_ibc_flag=0, ref_idx=0 및 cbf=0 or 1이 되어 AMVP 모드를 결정하기 위해 총 5비트가 할당된다.When CU mode is merge, merge_flag = 1, ref_idx is not signaled, and cbf = 1, and 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_flag = 1, pred_mode_ibc_flag = 0, ref_idx = 0 and cbf = 0 or 1, and a total of 5 bits are allocated to determine the AMVP mode.
Tile group type이 P-타입 또는 B-타입이고 CU type이 intra인 경우, CU mode가 인트라 모드임을 결정하기 위해 총 2비트(merge_flag=0 및 pred_mode_flag=0)가 할당된다. 이 경우, cbf는 시그널링되는 것이 아닌, 1로 유도된다.When the tile group type is P-type or B-type and the CU type is intra, a total of 2 bits (merge_flag = 0 and pred_mode_flag = 0) are allocated to determine that the CU mode is intra mode. In this case, cbf is not signaled, but is led to 1.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU mode가 ibc_BVP임을 결정하기 위해 총 4비트(merge_flag=0, pred_mode_flag=1, pred_mode_ibc_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 4 bits (merge_flag = 0, pred_mode_flag = 1, pred_mode_ibc_flag = 1, cbf = 0 or 1) are allocated to determine that the CU mode is ibc_BVP.
Tile group type이 I-타입인 경우(CU type이 intra인 경우)에는 ibc_enabled_flag=1에 더하여 tile group≠inter이 추가적으로 더 전제된다. 따라서, CU type이 인트라 모드임을 결정하기 위해 총 2비트(merge_flag=0 및 pred_mode_flag=0)가 할당된다. When the tile group type is I-type (when the CU type is intra), in addition to ibc_enabled_flag = 1, tile group ≠ inter is additionally premised. Therefore, a total of 2 bits (merge_flag = 0 and pred_mode_flag = 0) are allocated to determine that the CU type is intra mode.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU mode가 ibc_BVP임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 3 bits (merge_flag = 0, pred_mode_flag = 1, cbf = 0 or 1) are allocated to determine that CU mode is ibc_BVP.
ibc 기능이 off된 경우(ibc_enabled_flag=0)에 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 ibc=off 항목에 표현되어 있다. ibc 기능이 off되었으므로, Tile group type이 P-타입 또는 B-타입에 해당하며, CU type이 inter에 해당하고, pred_mode_ibc_flag=0이 전제된다.When the ibc function is off (ibc_enabled_flag = 0), the number of bits consumed or allocated to determine the prediction mode for the current block is expressed in the ibc = off item. Since ibc function is off, Tile group type corresponds to P-type or B-type, CU type corresponds to inter, and pred_mode_ibc_flag = 0 is assumed.
CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어 skip 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어 merge 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_flag=1, ref_idx=0 및 cbf=0 or 1이 되어 AMVP 모드를 결정하기 위해 총 4비트가 할당된다.When CU mode is skip, merge_flag = 1, ref_idx is not signaled, and cbf = 0, so a total of 2 bits are allocated to determine the skip mode. When CU mode is merge, merge_flag = 1, ref_idx is not signaled, and cbf = 1, so a total of 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_flag = 1, ref_idx = 0 and cbf = 0 or 1, and a total of 4 bits are allocated to determine the AMVP mode.
실시예 1-2Example 1-2
실시예 1-2는 새로운 신택스 및 시멘틱을 이용하여 현재 블록의 예측 모드를 결정하고, 결정된 예측 모드를 기반으로 현재 블록을 예측하는 다른 일 예에 해당한다. 도 11에 도시된 바와 같이, 실시예 1-2에서는, 미리 설정된 조건들 중 일부 또는 전부가 적용되어 현재 블록의 예측 모드가 결정될 수 있다.Example 1-2 corresponds to another example of determining a prediction mode of a current block using new syntax and semantics, and predicting a current block based on the determined prediction mode. As shown in FIG. 11, in Embodiment 1-2, some or all of the preset conditions may be applied to determine a prediction mode of the current block.
skip 모드, merge 모드, ibc_skip 모드 및 ibc_merge 모드skip mode, merge mode, ibc_skip mode and ibc_merge mode
영상 복호화 장치는 인에이블 플래그 및 타입 정보를 이용하여 ibc 모드의 적용이 허용되거나 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S1110). S1110 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하거나 타입 정보가 인터를 지시하는 경우, 영상 복호화 장치는 merge_flag를 파싱 및 복호화하며(S1120), 이를 판단할 수 있다(S1130). The video decoding apparatus may determine whether the application of the ibc mode is permitted or the tile group type is intra using the enable flag and type information (S1110). In step S1110, when the enable flag indicates that the application of the ibc mode is allowed or the type information indicates inter, the image decoding apparatus parses and decodes the merge_flag (S1120) and may determine this (S1130).
S1130 과정에서 merge_flag가 머지 모드를 지시하는 경우, 영상 복호화 장치는 S1140 과정을 통해 파싱 및 복호화되는 merge_idx를 이용하여 skip/merge 모드와 ibc_skip/ibc_merge 모드를 구분할 수 있다. 구체적으로, 복호화된 merge_idx가 지시하는 머지 후보의 참조 픽처가 현재 픽처와 동일한 경우, 해당 현재 블록의 예측 모드는 ibc_skip/ibc_merge 모드에 해당한다. 복호화된 merge_idx가 지시하는 머지 후보의 참조 픽처가 현재 픽처와 동일하지 않은 경우, 해당 현재 블록의 예측 모드는 skip/merge 모드에 해당한다If merge_flag indicates a merge mode in step S1130, the video decoding apparatus may distinguish between skip / merge mode and ibc_skip / ibc_merge mode using merge_idx parsed and decoded through step S1140. Specifically, when the reference picture of the merge candidate indicated by the decoded merge_idx is the same as the current picture, the prediction mode of the current block corresponds to the ibc_skip / ibc_merge mode. When the reference picture of the merge candidate indicated by the decoded merge_idx is not the same as the current picture, the prediction mode of the current block corresponds to skip / merge mode.
skip 모드와 merge 모드의 구분 및 ibc_skip 모드와 ibc_merge 모드의 구분은 S1190 과정을 통해 파싱 및 복호화되는 cbf가 1 및 0 중 어느 값을 지시하는지 여부에 따라 결정될 수 있다.The distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which value of 1 or 0 is indicated by cbf parsed and decoded through the process S1190.
AMVP 모드AMVP mode
S1130 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우, 영상 복호화 장치는 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S1150), pred_mode_flag를 판단할 수 있다(S1160).If merge_flag does not indicate a merge mode in step S1130, the image decoding apparatus may parse and decode mode information (pred_mode_flag) (S1150) and determine pred_mode_flag (S1160).
S1160 과정에서 pred_mode_flag가 인터 예측을 지시하는 경우, 영상 복호화 장치는 타입 정보를 판단할 수 있다(S1170). S1170 과정에서 타입 정보가 인터를 지시하는 경우, 현재 블록의 예측 모드는 AMVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 AMVP 모드로 예측하기 위한 움직임 정보들(ref_idx, mvd, mvp_idx)을 파싱 및 복호화할 수 있다(S1180).When pred_mode_flag indicates inter prediction in step S1160, the video decoding apparatus may determine the type information (S1170). When the type information indicates the inter in step S1170, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S1180).
ibc_BVP 모드ibc_BVP mode
영상 복호화 장치는 인에이블 플래그와 타입 정보를 이용하여 ibc 모드의 적용이 허용되며 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S1182).The image decoding apparatus can determine whether the ibc mode is applied using the enable flag and type information and whether the tile group type is intra (S1182).
S1182 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하며 타입 정보가 인터를 지시하는 경우, 영상 복호화 장치는 pred_mode_ibc_flag를 파싱 및 복호화하고(S1184), pred_mode_ibc_flag를 판단할 수 있다(S1186). S1186 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하는 경우, 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S1188).In step S1182, when the enable flag indicates that the application of the ibc mode is allowed and the type information indicates inter, the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1184) and determine pred_mode_ibc_flag (S1186). When pred_mode_ibc_flag indicates ibc mode in step S1186, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the image decoding apparatus may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1188).
S1170 과정에서 타입 정보가 인트라를 지시하는 경우에도 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S1188).Even when the type information indicates intra in step S1170, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the image decoding apparatus may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1188).
실시형태에 따라, 영상 복호화 장치는 S1182 과정 이전에 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S1150), 이를 판단하는(S1160) 과정들을 더 수행할 수 있다. 이와 같은 실시형태의 경우, S1160 과정에서 pred_mode_flag가 인터 예측을 지시하지 않는 경우에 S1182 과정이 수행될 수 있으며, S1160 과정에서 pred_mode_flag가 인터 예측을 지시하는 경우에 S1170 과정이 수행될 수 있다.According to an embodiment, the image decoding apparatus may further perform the processes of parsing and decoding the mode information (pred_mode_flag) before the process S1182 (S1150) and determining it (S1160). In the case of such an embodiment, the process S1182 may be performed when pred_mode_flag does not indicate inter prediction in step S1160, and the process S1170 may be performed when pred_mode_flag indicates inter prediction in step S1160.
실시형태에 따라, 영상 복호화 장치는 전술된 S1110 과정, S1120 과정 및 S1130 과정들을 S1150 과정 이전에 수행하도록 구성될 수 있다. 이와 같은 실시형태의 경우, S1130 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우에 S1150 과정이 수행될 수 있다. According to an embodiment, the image decoding apparatus may be configured to perform the above-described steps S1110, S1120, and S1130 before S1150. In the case of such an embodiment, when merge_flag does not indicate a merge mode in step S1130, step S1150 may be performed.
인트라 모드Intra mode
S1110 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하면서 타입 정보가 인트라를 지시하는 경우, 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화할 수 있다(S1192).When the enable flag in step S1110 indicates that the application of the ibc mode is not allowed and the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192).
또한, S1182 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하거나 타입 정보가 인트라를 지시하는 경우에도 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화할 수 있다(S1192). In addition, in step S1182, even when the enable flag indicates that the application of the ibc mode is not permitted or the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192).
나아가, S1186 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하지 않는 경우에도 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화할 수 있다(S1192). 인트라 모드인 경우, cbf는 시그널링되지 않고 1로 유도된다(S1194).Furthermore, even if pred_mode_ibc_flag does not indicate ibc mode in step S1186, the prediction mode of the current block corresponds to the intra mode. Accordingly, the image decoding apparatus may parse and decode information for predicting the current block in intra mode (S1192). In the intra mode, cbf is not signaled and is derived to 1 (S1194).
실시예 1-2를 기반으로 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 도 12에 표현되어 있다. The number of bits consumed or allocated to determine the prediction mode for the current block based on Example 1-2 is represented in FIG. 12.
도 12의 Tile group type 항목, CU type 항목 CU mode 항목, mode 항목, ref_idx 항목, cbf 항목, Total bits 항목 및 ibc=off 항목은 전술된 도 10과 동일한 의미를 가진다.The tile group type item, CU type item CU mode item, mode item, ref_idx item, cbf item, Total bits item, and ibc = off item of FIG. 12 have the same meaning as in FIG. 10 described above.
이하에서는, ibc_enabled_flag=1인 경우를 전제로 각 예측 모드를 결정하기 위해 할당되는 비트 수에 대해 먼저 설명한 후, ibc_enabled_flag=0을 전제로 각 예측 모드를 결정하기 위해 할당되는 비트 수에 대해 후술하도록 한다. Hereinafter, the number of bits allocated to determine each prediction mode on the premise of ibc_enabled_flag = 1 will be described first, and then the number of bits allocated to determine each prediction mode on the premise of ibc_enabled_flag = 0 will be described later. .
Tile group type이 P-타입 또는 B-타입이고 CU type이 inter인 경우를 가정하면, tile group=inter이 추가적으로 더 전제된다. 따라서, CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어 skip 모드를 결정하기 위해 총 2비트가 할당된다. Assuming that the tile group type is P-type or B-type and the CU type is inter, tile group = inter is further premised. Therefore, when CU mode is skip, merge_flag = 1, ref_idx is not signaled, and cbf = 0, so a total of 2 bits are allocated to determine the skip mode.
CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어 merge 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_flag=1, ref_idx=0 및 cbf=0 or 1이 되어 AMVP 모드를 결정하기 위해 총 4비트가 할당된다.When CU mode is merge, merge_flag = 1, ref_idx is not signaled, and cbf = 1, so a total of 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_flag = 1, ref_idx = 0 and cbf = 0 or 1, and a total of 4 bits are allocated to determine the AMVP mode.
Tile group type이 P-타입 또는 B-타입이고 CU type이 intra인 경우, CU type이 인트라 모드임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_flag=0 및 pred_mode_ibc_flag=0)가 할당된다. 이 경우, cbf는 시그널링되는 것이 아닌, 1로 유도된다.When the tile group type is P-type or B-type and the CU type is intra, a total of 3 bits (merge_flag = 0, pred_mode_flag = 0 and pred_mode_ibc_flag = 0) are allocated to determine that the CU type is intra mode. In this case, cbf is not signaled, but is led to 1.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU mode가 ibc_BVP임을 결정하기 위해 총 4비트(merge_flag=0, pred_mode_flag=0, pred_mode_ibc_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 4 bits (merge_flag = 0, pred_mode_flag = 0, pred_mode_ibc_flag = 1, cbf = 0 or 1) are allocated to determine that the CU mode is ibc_BVP.
Tile group type이 I-타입인 경우(CU type이 intra인 경우)에는 ibc_enabled_flag=1에 더하여 tile group≠inter이 추가적으로 더 전제된다. 따라서, CU type이 인트라 모드임을 결정하기 위해 총 2비트(merge_flag=0 및 pred_mode_flag=0)가 할당된다. When the tile group type is I-type (when the CU type is intra), in addition to ibc_enabled_flag = 1, tile group ≠ inter is additionally premised. Therefore, a total of 2 bits (merge_flag = 0 and pred_mode_flag = 0) are allocated to determine that the CU type is intra mode.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU type이 ibc_BVP임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 3 bits (merge_flag = 0, pred_mode_flag = 1, cbf = 0 or 1) are allocated to determine that the CU type is ibc_BVP.
ibc 기능이 off된 경우(ibc_enabled_flag=0)에 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 ibc=off 항목에 표현되어 있다. ibc 기능이 off되었으므로, Tile group type이 P-타입 또는 B-타입에 해당하며, CU type이 inter에 해당하고, pred_mode_ibc_flag=0이 전제된다.When the ibc function is off (ibc_enabled_flag = 0), the number of bits consumed or allocated to determine the prediction mode for the current block is expressed in the ibc = off item. Since ibc function is off, Tile group type corresponds to P-type or B-type, CU type corresponds to inter, and pred_mode_ibc_flag = 0 is assumed.
CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어 skip 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어 merge 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_flag=1, ref_idx=0 및 cbf=0 or 1이 되어 AMVP 모드를 결정하기 위해 총 4비트가 할당된다.When CU mode is skip, merge_flag = 1, ref_idx is not signaled, and cbf = 0, so a total of 2 bits are allocated to determine the skip mode. When CU mode is merge, merge_flag = 1, ref_idx is not signaled, and cbf = 1, so a total of 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_flag = 1, ref_idx = 0 and cbf = 0 or 1, and a total of 4 bits are allocated to determine the AMVP mode.
실시예 1-3Example 1-3
실시예 1-3은 새로운 신택스 및 시멘틱을 이용하여 현재 블록의 예측 모드를 결정하고, 결정된 예측 모드를 기반으로 현재 블록을 예측하는 또 다른 일 예에 해당한다. 도 13에 도시된 바와 같이, 실시예 1-3에서는, 미리 설정된 조건들 중 일부 또는 전부가 수행되어 현재 블록의 예측 모드가 결정될 수 있다.Examples 1-3 correspond to another example of determining a prediction mode of a current block using new syntax and semantics, and predicting a current block based on the determined prediction mode. As illustrated in FIG. 13, in Examples 1-3, some or all of the preset conditions may be performed to determine the prediction mode of the current block.
skip 모드, merge 모드, ibc_skip 모드 및 ibc_merge 모드skip mode, merge mode, ibc_skip mode and ibc_merge mode
영상 복호화 장치는 인에이블 플래그 및 타입 정보를 이용하여 ibc 모드의 적용이 허용되거나 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S1310). ibc 모드의 적용이 허용되거나 타일 그룹의 타입이 인터인 경우, 영상 복호화 장치는 merge_flag를 파싱 및 복호화하며(S1320), 이를 판단할 수 있다(S1330). The image decoding apparatus may determine whether the application of the ibc mode is allowed or the type of the tile group is intra using the enable flag and type information (S1310). When the application of the ibc mode is permitted or the tile group type is inter, the image decoding apparatus parses and decodes the merge_flag (S1320) and can determine this (S1330).
S1330 과정에서 merge_flag가 머지 모드를 지시하는 경우, 현재 블록의 예측 모드는 skip 모드, merge 모드, ibc_skip 모드 및 ibc_merge 모드 중 어느 하나에 해당할 수 있다. 영상 복호화 장치는 S1340 과정을 통해 파싱 및 복호화되는 merge_idx를 이용하여 skip/merge 모드와 ibc_skip/ibc_merge 모드를 구분할 수 있다. When merge_flag indicates a merge mode in step S1330, the prediction mode of the current block may correspond to any one of skip mode, merge mode, ibc_skip mode, and ibc_merge mode. The video decoding apparatus may distinguish between skip / merge mode and ibc_skip / ibc_merge mode by using merge_idx parsed and decoded through S1340.
skip 모드와 merge 모드의 구분 및 ibc_skip 모드와 ibc_merge 모드의 구분은 S1390 과정을 통해 파싱 및 복호화되는 cbf가 1 및 0 중 어느 값을 지시하는지 여부에 따라 결정될 수 있다.The distinction between the skip mode and the merge mode and the distinction between the ibc_skip mode and the ibc_merge mode may be determined according to which of 1 and 0 the cbf parsed and decoded through S1390 indicates.
AMVP 모드AMVP mode
S1330 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우, 영상 복호화 장치는 인에이블 플래그 및 타입 정보를 판단할 수 있다(S1350). S1350 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하며 타입 정보가 인터를 지시하는 경우, 영상 복호화 장치는 pred_mode_ibc_flag를 파싱 및 복호화하고(S1384), pred_mode_ibc_flag를 판단할 수 있다(S1386).If merge_flag does not indicate a merge mode in step S1330, the image decoding apparatus may determine enable flag and type information (S1350). When the enable flag in step S1350 indicates that the application of the ibc mode is allowed and the type information indicates inter, the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1384) and determine pred_mode_ibc_flag (S1386).
S1386 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하지 않는 경우 또는 S1350 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하거나 타입 정보가 인트라를 지시하는 경우, 영상 복호화 장치는 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S1360), 이를 판단할 수 있다(S1370).If pred_mode_ibc_flag does not indicate ibc mode in step S1386 or the enable flag indicates that application of ibc mode is not permitted in step S1350, or the type information indicates intra, the video decoding apparatus uses mode information (pred_mode_flag). Parsing and decoding (S1360), it can be determined (S1370).
S1370 과정에서 pred_mode_flag가 인터 예측을 지시하는 경우, 영상 복호화 장치는 타입 정보를 판단할 수 있다(S1380). S1380 과정에서 타입 정보가 인터를 지시하는 경우, 현재 블록의 예측 모드는 AMVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 AMVP 모드로 예측하기 위한 정보들(ref_idx, mvd, mvp_idx)을 파싱 및 복호화할 수 있다(S1382).When pred_mode_flag indicates inter prediction in step S1370, the video decoding apparatus may determine type information (S1380). When the type information indicates inter in step S1380, the prediction mode of the current block corresponds to the AMVP mode. Accordingly, the apparatus for decoding an image may parse and decode information (ref_idx, mvd, mvp_idx) for predicting the current block in the AMVP mode (S1382).
ibc_BVP 모드ibc_BVP mode
영상 복호화 장치는 인에이블 플래그와 타입 정보를 이용하여 ibc 모드의 적용이 허용되며 타일 그룹의 타입이 인트라인지 여부를 판단할 수 있다(S1350).The image decoding apparatus may determine whether the ibc mode is permitted using the enable flag and type information and whether the tile group type is intra (S1350).
S1350 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용됨을 지시하며 타입 정보가 인터를 지시하는 경우, 영상 복호화 장치는 pred_mode_ibc_flag를 파싱 및 복호화하고(S1384), pred_mode_ibc_flag를 판단할 수 있다(S1386). S1386 과정에서 pred_mode_ibc_flag가 ibc 모드를 지시하는 경우, 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S1388).When the enable flag in step S1350 indicates that the application of the ibc mode is allowed and the type information indicates inter, the video decoding apparatus may parse and decode pred_mode_ibc_flag (S1384) and determine pred_mode_ibc_flag (S1386). When pred_mode_ibc_flag indicates ibc mode in step S1386, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1388).
실시형태에 따라, S1350 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하거나 타입 정보가 인트라를 지시하는 경우, 영상 복호화 장치는 모드 정보(pred_mode_flag)를 파싱 및 복호화하고(S1360), 이를 판단할 수 있다(S1370). S1370 과정에서 pred_mode_flag가 인터 예측을 지시하는 경우, 영상 복호화 장치는 타입 정보를 판단할 수 있다(S1380). S1380 과정에서 타입 정보가 인트라를 지시하는 경우, 현재 블록의 예측 모드는 ibc_BVP 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 ibc_BVP 모드로 예측하기 위한 움직임 정보들(bvd, bvp_idx)을 파싱 및 복호화할 수 있다(S1388).According to the embodiment, when the enable flag in step S1350 indicates that the application of the ibc mode is not permitted or the type information indicates intra, the video decoding apparatus parses and decodes the mode information (pred_mode_flag) (S1360), It can be determined (S1370). When pred_mode_flag indicates inter prediction in step S1370, the video decoding apparatus may determine type information (S1380). When the type information indicates intra in step S1380, the prediction mode of the current block corresponds to the ibc_BVP mode. Accordingly, the apparatus for decoding an image may parse and decode motion information (bvd, bvp_idx) for predicting the current block in ibc_BVP mode (S1388).
실시형태에 따라, 영상 복호화 장치는 전술된 S1310 과정, S1320 과정 및 S1330 과정들을 S1350 과정 이전에 수행하도록 구성될 수 있다. 이와 같은 실시형태의 경우, S1330 과정에서 merge_flag가 머지 모드를 지시하지 않는 경우에 S1350 과정이 수행될 수 있다.According to an embodiment, the image decoding apparatus may be configured to perform the aforementioned S1310 process, S1320 process, and S1330 process before the S1350 process. In the case of such an embodiment, when merge_flag does not indicate a merge mode in step S1330, step S1350 may be performed.
인트라 모드Intra mode
S1310 과정에서 인에이블 플래그가 ibc 모드의 적용이 허용되지 않음을 지시하며 타입 정보가 인트라를 지시하는 경우, 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화한다(S1392).In step S1310, when the enable flag indicates that the application of the ibc mode is not allowed and the type information indicates intra, the prediction mode of the current block corresponds to the intra mode. Therefore, the image decoding apparatus parses and decodes information for predicting the current block in intra mode (S1392).
또한, S1370 과정에서 pred_mode_flag가 인터 예측을 지시하지 않는 경우에도 현재 블록의 예측 모드는 인트라 모드에 해당한다. 따라서, 영상 복호화 장치는 현재 블록을 인트라 모드로 예측하기 위한 정보들을 파싱 및 복호화한다(S1392). 인트라 모드인 경우, cbf는 시그널링되지 않고 1로 유도된다(S1394).In addition, even if pred_mode_flag does not indicate inter prediction in step S1370, the prediction mode of the current block corresponds to the intra mode. Therefore, the image decoding apparatus parses and decodes information for predicting the current block in intra mode (S1392). In the intra mode, cbf is not signaled and is led to 1 (S1394).
실시예 1-3을 기반으로 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 도 14에 표현되어 있다. 도 14의 Tile group type 항목, CU type 항목 CU mode 항목, mode 항목, ref_idx 항목, cbf 항목, Total bits 항목 및 ibc=off 항목은 전술된 도 10 및 도 12와 동일한 의미를 가진다.The number of bits consumed or allocated to determine the prediction mode for the current block based on Examples 1-3 is illustrated in FIG. 14. The tile group type item, CU type item CU mode item, mode item, ref_idx item, cbf item, Total bits item, and ibc = off item of FIG. 14 have the same meanings as those of FIGS. 10 and 12 described above.
Tile group type이 P-타입 또는 B-타입이고 CU type이 inter인 경우를 가정하면, tile group=inter가 추가적으로 더 전제된다. 따라서, CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어, skip 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어, merge 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_ibc_flag=0, pred_mode_flag=1, ref_idx=0 및 cbf=0 or 1이 되어, AMVP 모드를 결정하기 위해 총 5비트가 할당된다.Assuming that the tile group type is P-type or B-type and the CU type is inter, tile group = inter is further premised. Therefore, when CU mode is skip, merge_flag = 1, ref_idx is not signaled, cbf = 0, and a total of 2 bits are allocated to determine the skip mode. When CU mode is merge, merge_flag = 1, ref_idx is not signaled, cbf = 1, and a total of 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_ibc_flag = 0, pred_mode_flag = 1, ref_idx = 0 and cbf = 0 or 1, and a total of 5 bits are allocated to determine the AMVP mode.
Tile group type이 P-타입 또는 B-타입이고 CU type이 intra인 경우, CU type이 인트라 모드임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_ibc_flag=0 및 pred_mode_flag=0)가 할당된다. 이 경우, cbf는 시그널링되는 것이 아닌, 1로 유도된다. When the tile group type is P-type or B-type and the CU type is intra, a total of 3 bits (merge_flag = 0, pred_mode_ibc_flag = 0 and pred_mode_flag = 0) are allocated to determine that the CU type is intra mode. In this case, cbf is not signaled, but is led to 1.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU mode가 ibc_BVP임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_ibc_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 3 bits (merge_flag = 0, pred_mode_ibc_flag = 1, cbf = 0 or 1) are allocated to determine that CU mode is ibc_BVP.
Tile group type이 I-타입인 경우(CU type이 intra인 경우)에는 ibc_enabled_flag=1에 더하여 tile group≠inter이 추가적으로 더 전제된다. 따라서, CU type이 인트라 모드임을 결정하기 위해 총 2비트(merge_flag=0 및 pred_mode_flag=0)가 할당된다. When the tile group type is I-type (when the CU type is intra), in addition to ibc_enabled_flag = 1, tile group ≠ inter is additionally premised. Therefore, a total of 2 bits (merge_flag = 0 and pred_mode_flag = 0) are allocated to determine that the CU type is intra mode.
또한, CU mode가 ibc_skip임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=0)가 할당되며, CU mode가 ibc_merge임을 결정하기 위해 총 2비트(merge_flag=1 및 cbf=1)가 할당되고, CU mode가 ibc_BVP임을 결정하기 위해 총 3비트(merge_flag=0, pred_mode_flag=1, cbf=0 or 1)가 할당된다.In addition, a total of 2 bits (merge_flag = 1 and cbf = 0) are allocated to determine that the CU mode is ibc_skip, and a total of 2 bits (merge_flag = 1 and cbf = 1) are allocated to determine that the CU mode is ibc_merge, A total of 3 bits (merge_flag = 0, pred_mode_flag = 1, cbf = 0 or 1) are allocated to determine that CU mode is ibc_BVP.
ibc 기능이 off된 경우(ibc_enabled_flag=0)에 현재 블록에 대한 예측 모드를 결정하기 위해 소모 또는 할당되는 비트 수가 ibc=off 항목에 표현되어 있다. ibc 기능이 off되었으므로, Tile group type이 P-타입 또는 B-타입에 해당하며, CU type이 inter에 해당하고, pred_mode_ibc_flag=0이 전제된다.When the ibc function is off (ibc_enabled_flag = 0), the number of bits consumed or allocated to determine the prediction mode for the current block is expressed in the ibc = off item. Since ibc function is off, Tile group type corresponds to P-type or B-type, CU type corresponds to inter, and pred_mode_ibc_flag = 0 is assumed.
CU mode가 skip인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=0이 되어, skip 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 merge인 경우에는 merge_flag=1이고, ref_idx는 시그널링되지 않으며, cbf=1이 되어, merge 모드를 결정하기 위해 총 2비트가 할당된다. CU mode가 AMVP인 경우에는 merge_flag=0, pred_mode_flag=1, ref_idx=0 및 cbf=0 or 1이 되어, AMVP 모드를 결정하기 위해 총 4비트가 할당된다.When CU mode is skip, merge_flag = 1, ref_idx is not signaled, cbf = 0, and a total of 2 bits are allocated to determine the skip mode. When CU mode is merge, merge_flag = 1, ref_idx is not signaled, cbf = 1, and a total of 2 bits are allocated to determine the merge mode. When the CU mode is AMVP, merge_flag = 0, pred_mode_flag = 1, ref_idx = 0 and cbf = 0 or 1, and a total of 4 bits are allocated to determine the AMVP mode.
실시예 2Example 2
이하에서는, 도 15 내지 도 18을 참조하여, ibc 모드에 이용되는 예측 블록 벡터 후보 리스트(BVP 후보 리스트)를 구성하는 방법에 대한 본 발명의 다양한 실시예에 대해 설명하도록 한다.Hereinafter, various embodiments of the present invention for a method of constructing a prediction block vector candidate list (BVP candidate list) used in the ibc mode will be described with reference to FIGS. 15 to 18.
전술된 바와 같이, 본 발명은 pred_mode_ibc_flag를 명시적으로 시그널링함으로써 현재 블록의 예측 모드가 ibc 모드(ibc_skip 모드, ibc_merge 모드 및 ibc_BVP 모드 중 어느 하나)에 해당함을 지시하도록 구성될 수 있다. As described above, the present invention may be configured to indicate that the prediction mode of the current block corresponds to the ibc mode (any of ibc_skip mode, ibc_merge mode, and ibc_BVP mode) by explicitly signaling pred_mode_ibc_flag.
현재 블록의 예측 모드가 ibc_BVP 모드에 해당하는 경우, 영상 복호화 장치는 하나 이상의 예측 블록 벡터(block vector predictor, BVP) 후보들로 구성되는 BVP 후보 리스트를 구성한다(S1510). 또한, 영상 복호화 장치는 영상 부호화 장치로부터 시그널링되는(움직임 정보에 포함된) BVP 인덱스와 대응되는 BVP 후보를 BVP 후보 리스트로부터 선별한다(S1520). 이후, 영상 복호화 장치는 선별된 BVP 후보(선별된 BVP)와 영상 부호화 장치로부터 시그널링된(움직임 정보에 포함된) BVD를 합산하여 현재 블록에 대한 블록 벡터(BV)를 도출하고(S1530), 도출된 BV가 지시하는 현재 픽처 내 참조 블록으로부터 예측 정보를 획득함으로써 현재 블록을 예측할 수 있다(S1540).When the prediction mode of the current block corresponds to the ibc_BVP mode, the image decoding apparatus configures a BVP candidate list consisting of one or more prediction block vector predictor (BVP) candidates (S1510). In addition, the video decoding apparatus selects a BVP candidate corresponding to the BVP index (included in the motion information) signaled from the video encoding apparatus from the BVP candidate list (S1520). Subsequently, the image decoding apparatus derives a block vector (BV) for the current block by summing the selected BVP candidates (selected BVPs) and the BVD signal (included in the motion information) from the image encoding apparatus (S1530), and deriving The current block may be predicted by obtaining prediction information from the reference block in the current picture indicated by the BV (S1540).
실시예 2-1Example 2-1
실시예 2-1을 통해 구성되는 BVP 후보 리스트에는 1) 현재 블록에 공간적으로 인접한 하나 이상의 블록들(공간적 인접 블록) 중 ibc 모드로 예측된 블록의 BV, 2) 현재 블록에 시간적으로 인접한 하나 이상의 블록들(시간적 인접 블록) 중 ibc 모드로 예측된 블록의 BV 및 3) 미리 설정된 BV가 BVP 후보들로 포함될 수 있다. 즉, BVP 후보 리스트에 포함되는 BVP 후보에는 ibc 모드로 예측된 공간적 인접 블록의 BV, ibc 모드로 예측된 시간적 인접 블록의 BV 및 미리 설정된 BV가 포함될 수 있다.The BVP candidate list constructed through Example 2-1 includes: 1) BV of a block predicted in ibc mode among one or more blocks spatially adjacent to the current block (spatial neighboring block); 2) one or more temporally adjacent to the current block. Among blocks (temporary neighboring blocks), a BV of a block predicted in ibc mode and 3) a preset BV may be included as BVP candidates. That is, the BVP candidates included in the BVP candidate list may include BVs of spatial neighboring blocks predicted in ibc mode, BVs of temporal neighboring blocks predicted in ibc mode, and preset BVs.
공간적 인접 블록에는 도 16에 표현된 바와 같이, 현재 블록(Current block)의 좌측에 위치하는 블록들(A0, A1, A2) 중 하나 이상 및/또는 현재 블록의 상측에 위치하는 블록들(B0, B1, B2) 중 하나 이상이 포함될 수 있으며, 현재 블록의 좌측 상단에 위치하는 블록(AB)이 더 포함될 수 있다. 여기서, 현재 블록의 좌측 상단에 위치하는 블록(AB)은 현재 블록의 좌측에 위치하는 블록으로 취급되거나, 현재 블록의 상측에 위치하는 블록으로 취급될 수도 있다.As shown in FIG. 16, in the spatially adjacent block, one or more of blocks A0, A1, and A2 located on the left side of the current block and / or blocks B0 located above the current block B1, B2) may be included, and a block AB located in the upper left of the current block may be further included. Here, the block AB located in the upper left of the current block may be treated as a block located to the left of the current block, or may be treated as a block located above the current block.
현재 블록의 좌측에 위치하는 블록들에는 현재 블록의 높이 방향(H)을 기준으로 하부에 위치한 블록(A1) 및/또는 하단에 위치한 블록(A0)이 포함되거나, 중앙부에 위치한 블록(A2)이 더 포함될 수 있다. 현재 블록의 상측에 위치한 블록들에는 현재 블록의 너비 방향(W)을 기준으로 우측에 위치한 블록(B1) 및/또는 우측 끝단에 위치한 블록(B0)이 포함되거나, 중앙부에 위치한 블록(B2)이 더 포함될 수 있다.Blocks located on the left side of the current block include a block A1 located at the bottom and / or a block A0 located at the bottom based on the height direction H of the current block, or a block A2 located at the center. It may be further included. Blocks located above the current block include a block B1 located at the right and / or a block B0 located at the right end based on the width direction W of the current block, or a block B2 located at the center It may be further included.
픽셀을 기준으로 하여 공간적 인접 블록들의 위치를 다시 표현하면, A1은 현재 블록의 최좌하측에 위치한 픽셀을 자신의 최우하측 픽셀로 포함하는 블록일 수 있으며, A2는 현재 블록의 최좌측 중앙에 위치한 픽셀을 자신의 최우하측 픽셀로 포함하는 블록일 수 있다. B1은 현재 블록의 최우상측 픽셀을 자신의 최우하측 픽셀로 포함하는 블록일 수 있으며, B2는 현재 블록의 최상측 중앙에 위치한 픽셀을 자신의 최우하측 픽셀로 포함하는 블록일 수 있다. AB는 현재 블록의 최좌상측 픽셀을 자신의 최우하측 픽셀로 포함하는 블록일 수 있고, A0는 현재 블록의 최좌하측 픽셀을 자신의 최우상측 픽셀로 포함하는 블록일 수 있으며, B0는 현재 블록의 최우상측 픽셀을 자신의 최좌하측 픽셀로 포함하는 블록일 수 있다.If the spatial neighboring blocks are re-expressed based on a pixel, A1 may be a block including a pixel located at the bottom left of the current block as its right-most pixel, and A2 positioned at the left-most center of the current block. It may be a block including a pixel as its rightmost pixel. B1 may be a block including the rightmost pixel of the current block as its rightmost pixel, and B2 may be a block including the pixel located at the uppermost center of the current block as its rightmost pixel. AB may be a block including the leftmost pixel of the current block as its rightmost pixel, A0 may be a block including the leftmost pixel of the current block as its rightmost pixel, and B0 is a current block It may be a block including the rightmost pixel of the rightmost pixel of its own.
영상 복호화 장치는 현재 블록의 좌측에 위치한 블록들 중 하나 이상의 블록 및/또는 현재 블록의 상측에 위치한 블록들 중 하나 이상의 블록 및/또는 현재 블록의 좌측 상단에 위치한 블록을 미리 설정된 순서에 따라 탐색하여 하나 이상의 BVP 후보들을 도출하고, 도출된 BVP 후보들을 포함시켜 BVP 후보 리스트를 구성할 수 있다. 예를 들어, 영상 복호화 장치는 현재 블록의 좌측에 위치한 블록(A1) 및 상측에 위치한 블록(B1)을 미리 설정된 순서에 따라 탐색하여 BVP 후보들을 도출하고, 도출된 BVP 후보들을 포함시켜 BVP 후보 리스트를 구성할 수 있다.The video decoding apparatus searches for one or more blocks among blocks located on the left side of the current block and / or one or more blocks among blocks positioned above the current block and / or blocks located in the upper left of the current block according to a preset order. One or more BVP candidates may be derived, and the BVP candidate list may be constructed by including the derived BVP candidates. For example, the image decoding apparatus searches for a block A1 located on the left side of the current block and a block B1 located on the upper side in a predetermined order to derive BVP candidates, and includes the derived BVP candidates to list the BVP candidates. Can be configured.
또한, 영상 복호화 장치는 현재 블록의 좌측에 위치한 블록들(A0, A1 및/또는 A2 및/또는 AB)을 미리 설정된 순서에 따라 탐색하여 하나 이상의 BVP 후보들을 도출할 수 있다. 나아가, 영상 복호화 장치는 현재 블록의 상측에 위치한 블록들(B0, B1 및/또는 B2 및/또는 AB)을 미리 설정된 순서에 따라 탐색하여 하나 이상의 BVP 후보들을 도출할 수 있다.Also, the apparatus for decoding an image may derive one or more BVP candidates by searching blocks A0, A1, and / or A2 and / or AB located on the left side of the current block in a preset order. Furthermore, the image decoding apparatus may derive one or more BVP candidates by searching for blocks B0, B1 and / or B2 and / or AB located above the current block in a preset order.
도 17에 도시된 바와 같이, 시간적 인접 블록이란 collocated 픽처(col_픽처) 내에 위치하는 collocated 블록(col_블록)을 기준으로, 이 col_블록에 인접하는 하나 이상의 블록들을 의미할 수 있다. 여기서, col_픽처는 참조 픽처 리스트(L0 또는 L1)의 첫 번째 위치(0의 인덱스)에 자리하는 픽처와 같이 미리 특정될 수 있다. col_블록은 col_픽처 내에 자리하되, 현재 블록의 현재 픽처 내 위치와 동일한 위치에 자리하는 블록과 같이 미리 특정될 수 있다.As illustrated in FIG. 17, the temporal neighboring block may refer to one or more blocks adjacent to this col_block based on a collocated block (col_block) located in a collocated picture (col_picture). Here, the col_picture may be specified in advance, such as a picture located at the first position (index of 0) of the reference picture list (L0 or L1). The col_block is located in the col_picture, but may be specified in advance, such as a block located in the same position as the current picture in the current block.
도 17에 도시된 바와 같이, 시간적 인접 블록에는 col_블록의 우측 하단에 위치한 블록(BR), col_블록의 중앙부에 위치한 블록(CT), col_블록의 우측 상부에 위치한 블록(TR) 및 col_블록의 하단 좌측에 위치한 블록(BL)이 포함될 수 있다.As shown in FIG. 17, the temporal adjacent blocks include a block BR located at the lower right of the col_ block, a block CT located at the center of the col_ block, and a block TR located at the upper right of the col_ block, and A block BL located at the bottom left of the col_block may be included.
픽셀을 기준으로 하여 시간적 인접 블록들의 위치를 다시 표현하면, BR은 현재 블록의 최우하측에 위치한 픽셀을 자신의 최좌하측 픽셀로 포함하는 블록일 수 있고, CT는 현재 블록의 중앙에 위치한 픽셀을 자신의 최좌상측 픽셀로 포함하는 블록일 수 있다. TR은 현재 블록의 최우상측에 위치한 픽셀을 자신의 최좌상측 픽셀로 포함하는 블록일 수 있고, BL은 현재 블록의 최좌하측에 위치한 픽셀을 자신의 최좌상측 픽셀로 포함하는 블록일 수 있다.Re-expressing the positions of temporal adjacent blocks based on a pixel, BR may be a block including a pixel located at the bottom right of the current block as its leftmost pixel, and CT indicates a pixel located at the center of the current block. It may be a block included as its leftmost pixel. TR may be a block including a pixel located at the top right of the current block as its leftmost pixel, and BL may be a block including a pixel located at the bottom left of the current block as its leftmost pixel. .
영상 복호화 장치는 시간적 인접 블록들을 미리 설정된 순서에 따라 탐색하여 하나 이상의 BVP 후보들을 도출하고, 도출된 BVP 후보들을 포함시켜 BVP 후보 리스트를 구성할 수 있다.The video decoding apparatus may search temporal temporal blocks according to a preset order to derive one or more BVP candidates, and construct the BVP candidate list by including the derived BVP candidates.
미리 설정된 BV는 현재 블록의 높이 및 너비만큼 좌상측으로 이동한 위치를 지시하는 BV에 해당할 수 있다. 예를 들어, 현재 블록의 너비가 W이고, 현재 블록의 높이가 H인 경우, 미리 설정된 BV는 (-W, -H)일 수 있다. 또한, 미리 설정된 BV는 임의의 상수 k를 이용하여 BV의 크기를 변경한 (-W*k, -H*k)일 수 있다. 미리 설정된 BV는 탐색 과정을 통해 획득되는 것이 아닌, 미리 설정되어 있다는 측면에서, 디폴트(default) BV로 지칭될 수 있다.The preset BV may correspond to a BV indicating a position moved to the upper left by the height and width of the current block. For example, when the width of the current block is W and the height of the current block is H, the preset BV may be (-W, -H). In addition, the preset BV may be (-W * k, -H * k) in which the size of the BV is changed using an arbitrary constant k. The preset BV may be referred to as a default BV in terms of being preset, rather than being acquired through a search process.
실시예 2-1을 통해 설명된 BV들은 현재 블록이 포함된 CTU를 기준으로 한 상대적 위치를 지시하거나 현재 블록을 기준으로 한 상대적 위치를 지시할 수 있다. 도 18에 표현된 바와 같이, 현재 블록(Current block)의 최좌상측 픽셀(B)을 기준으로 보면, 실시예 2-1을 통해 설명된 BV들은 이 픽셀 B를 제로 벡터로 설정한 후의 상대적 위치를 지시하는 벡터일 수 있다. 또한, 현재 블록이 포함된 CTU의 최좌상측 픽셀(A)을 기준으로 보면, 실시예 2-1을 통해 설명된 BV들은 이 픽셀 A를 제로 벡터로 설정한 후의 상대적 위치를 지시하는 벡터일 수 있다.The BVs described through Embodiment 2-1 may indicate a relative position based on the CTU including the current block or a relative position based on the current block. As shown in FIG. 18, based on the upper leftmost pixel B of the current block, the BVs described through Example 2-1 are relative positions after setting this pixel B as a zero vector. It may be a vector indicating. Also, based on the leftmost pixel A of the CTU including the current block, the BVs described through Example 2-1 may be a vector indicating a relative position after setting the pixel A to a zero vector. have.
영상 복호화 장치는 현재 블록이 포함된 CTU와 현재 블록 중 어느 하나를 기준으로 하여 (선택적으로) BV들을 표현할 수 있다. 현재 블록을 기준으로 BV들을 표현하거나 현재 블록이 포함된 CTU를 기준으로 BV들을 표현하면(BV들을 표현하기 위한 기준을 선택적으로 적용하면), BVP 후보들을 탐색하기 위한 search range를 효율적으로 설정할 수 있게 된다. 따라서, 본 발명은 BVP 후보 탐색에 소모되는 메모리 양을 효과적으로 감소시킬 수 있음은 물론, BV를 표현하는데 소모되는 비트 수 또한 감소시킬 수 있다. The video decoding apparatus may (optionally) express BVs based on either the CTU including the current block or the current block. By expressing BVs based on the current block or by expressing BVs based on the CTU including the current block (optionally applying a criterion for expressing BVs), it is possible to efficiently set a search range for searching BVP candidates. do. Accordingly, the present invention can effectively reduce the amount of memory consumed for BVP candidate search, as well as the number of bits consumed to represent BV.
실시예 2-2Example 2-2
실시예 2-2에서는 시간적 인접 블록의 BV를 대체할 수 있는 history-based BV가 제안된다. 실시예 2-2를 통해 구성되는 BVP 후보 리스트에는 ibc 모드로 예측된(예측이 완료된) 블록의 BV가 포함될 수 있다. 즉, 실시예 2-2의 BVP 후보 리스트에는 현재 블록이 복호화되기 이전에 이미 복호화가 완료된(예측이 완료된) 블록들 중 ibc 모드로 예측된 블록들의 BV가 포함될 수 있다.In Example 2-2, a history-based BV is proposed that can replace BV of temporal adjacent blocks. The BVP candidate list constructed through Example 2-2 may include BVs of blocks predicted (predicted) in ibc mode. That is, the BVP candidate list of Example 2-2 may include BVs of blocks predicted in ibc mode among blocks that have already been decoded (predicted) before the current block is decoded.
ibc 모드로 예측이 완료된 블록들의 BV를 현재 블록의 예측에 이용하기 위하여, ibc 모드로 예측이 완료된 블록들의 BV를 저장하는 구성이 요구된다. 본 발명에서는 이 '저장하는 구성'을 'record'또는 ibc 모드 용 HBV(history-based BV)라 지칭하도록 한다. 또한, HBV에 저장되는 BV(ibc 모드로 예측이 완료된 블록들의 BV)들은 리스트를 구성할 수 있으며, 이 리스트는 HBVP(history-based block vector predictor) 후보 리스트로 지칭될 수 있다.In order to use the BV of blocks whose prediction is completed in ibc mode for prediction of the current block, a configuration is required to store the BV of blocks whose prediction is completed in ibc mode. In the present invention, this 'storing configuration' will be referred to as 'record' or HBV (history-based BV) for ibc mode. In addition, BVs (BVs of blocks whose prediction is completed in ibc mode) stored in the HBV may constitute a list, and this list may be referred to as a history-based block vector predictor (HBVP) candidate list.
HBV는 하나 이상의 BV를 저장할 수 있는 FIFO(first in first out) 구조를 가질 수 있다. 타일 그룹 등과 같이 병렬 처리를 위한 독립적인 처리 단위마다 별도의 BVP 후보 리스트가 구성되는 경우, HBV에 최초로 저장되는 BV는 제로 벡터에 해당할 수 있다.HBV may have a FIFO (first in first out) structure capable of storing one or more BVs. When a separate BVP candidate list is configured for each independent processing unit for parallel processing such as a tile group, the BV stored first in the HBV may correspond to a zero vector.
ibc 모드로 예측이 완료된 블록들의 BV가 예측 순서(복호화 순서)에 따라 HBV에 순차적으로(FIFO) 저장된 후, 특정 블록(현재 블록)을 ibc 모드로 예측하고자 하는 경우에 HBV에 가장 마지막으로 저장된 BV부터 순차적으로(저장되는 순서에 역순으로 또는 복호화 순서에 역순으로) 탐색하여 하나 이상의 BV를 선별한 후, 선별된 BV들을 BVP 후보 리스트에 포함시킬 수 있다.When the BV of blocks whose prediction is completed in ibc mode is sequentially (FIFO) stored in HBV according to the prediction order (decoding order), when the specific block (current block) is to be predicted in ibc mode, the last BV stored in HBV From then, one or more BVs may be selected by searching sequentially (in the reverse order of the stored order or in the reverse order of the decoding order), and then the selected BVs may be included in the BVP candidate list.
HBV로부터 선별된 BV들은 BVP 후보 리스트에 포함되는 BV들 중 '시간적 BV' 및/또는 '미리 설정된 BV'를 대체할 수 있다. 즉, 실시예 2-2를 통해 구현되는 BVP 후보 리스트 구성 과정은 '공간적 BV 구성 과정→HBV로부터 선별된 BV 구성 과정', '공간적 BV 구성 과정→HBV로부터 선별된 BV 구성 과정→미리 설정된 BV 구성 과정' 및 '공간적 BV 구성 과정→시간적 BV 구성 과정→ HBV로부터 선별된 BV 구성 과정' 등과 같이 다양한 순서로 구현될 수 있다. BVs selected from HBV may replace 'temporal BV' and / or 'pre-established BV' among the BVs included in the BVP candidate list. That is, the BVP candidate list construction process implemented through Example 2-2 includes' spatial BV construction process → BV configuration process selected from HBV ',' spatial BV construction process → BV configuration process selected from HBV → preset BV configuration Process' and 'spatial BV construction process → temporal BV construction process → BV construction process selected from HBV' can be implemented in various orders.
여기서, '시간적 BV'란 시간적 인접 블록들 중 ibc 모드로 예측된 인접 블록들의 BV를 의미하고, '공간적 BV'란 공간적 인접 블록들 중 ibc 모드로 예측된 인접 블록들의 BV를 의미한다. 따라서, 영상 복호화 장치는 대체되는 BV의 종류(시간적 BV 및/또는 미리 설정된 BV)에 따라 적절한 개수의 BV들을 HBV로부터 선별할 수 있다. 또한, 'HBV로부터 선별된 BV 구성 과정'은 앞서 수행된 BV 구성 과정(들)을 통해 BVP 후보 리스트에 포함되는 BVP 후보의 개수가 BVP 후보 리스트에 포함될 수 있는 최대 개수 미만인 경우에 수행될 수 있다.Here, 'temporal BV' means BV of adjacent blocks predicted in ibc mode among temporal neighboring blocks, and 'spatial BV' means BV of adjacent blocks predicted in ibc mode among spatial neighboring blocks. Accordingly, the video decoding apparatus may select an appropriate number of BVs from HBVs according to the type of BV to be replaced (temporal BV and / or preset BV). In addition, 'the BV configuration process selected from HBV' may be performed when the number of BVP candidates included in the BVP candidate list is less than the maximum number that can be included in the BVP candidate list through the BV configuration process (s) previously performed. .
실시예 2-3Example 2-3
실시예 2-3에서는 미리 설정된 BV를 대체할 수 있는 제로(zero) BV가 제안된다.In Example 2-3, a zero BV is proposed that can replace the preset BV.
실시예 2-3를 통해 구현되는 BVP 후보 리스트 구성 과정은 '공간적 BV 구성 과정→시간적 BV 구성 과정→제로 BV 구성 과정' 및 '공간적 BV 구성 과정→HBV로부터 선별된 BV 구성 과정→제로 BV 구성 과정' 등과 같이 다양한 순서로 구현될 수 있다.The process of constructing the BVP candidate list implemented through Examples 2-3 includes 'spatial BV constructing process → temporal BV constructing process → zero BV constructing process' and 'spatial BV constructing process → selected BV constructing process from HBV → zero BV constructing process' 'It can be implemented in various order.
'제로 BV 구성 과정'은 앞서 수행된 BV 구성 과정(들)을 통해 BVP 후보 리스트에 포함되는 BVP 후보의 개수가 BVP 후보 리스트에 포함될 수 있는 최대 개수 미만인 경우에 수행될 수 있다.The 'zero BV configuration process' may be performed when the number of BVP candidates included in the BVP candidate list is less than the maximum number that can be included in the BVP candidate list through the previously performed BV configuration process (es).
이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것은 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical spirit of the present embodiment, and those skilled in the art to which this embodiment belongs may be able to make various modifications and variations without departing from the essential characteristics of the present embodiment. Therefore, the present embodiments are not intended to limit the technical spirit of the present embodiment, but to explain, and the scope of the technical spirit of the present embodiment is not limited by these embodiments. The protection scope of the present embodiment should be interpreted by the claims below, and all technical spirits within the equivalent range should be interpreted as being included in the scope of the present embodiment.
CROSS-REFERENCE TO RELATED APPLICATIONCROSS-REFERENCE TO RELATED APPLICATION
본 특허출원은, 본 명세서에 그 전체가 참고로서 포함되는, 2018년 10월 8일에 한국에 출원한 특허출원번호 제10-2018-0119881호 및, 2019년 6월 10일에 한국에 출원한 특허출원번호 제10-2019-0067724호에 대해 우선권을 주장한다.This patent application is filed in Korea on October 8, 2018, Patent Application No. 10-2018-0119881, filed in Korea on June 10, 2019, the entire contents of which are incorporated herein by reference. Priority is claimed on Patent Application No. 10-2019-0067724.

Claims (20)

  1. 복호화 대상인 현재 블록을 현재 픽처 참조(intra block copy, ibc) 모드로 예측하는 방법으로서,As a method of predicting the current block to be decoded in the current picture reference (intra block copy, ibc) mode,
    비트스트림으로부터, 상기 ibc 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 복호화하는 단계;Decoding, from a bitstream, an enable flag indicating whether application of the ibc mode is allowed and type information indicating whether a type of slice is inter;
    상기 인에이블 플래그 및 상기 타입 정보에 의존하여, 상기 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 상기 비트스트림으로부터 복호화하는 단계;Decoding an ibc flag indicating whether the prediction mode of the current block is the ibc mode based on the enable flag and the type information from the bitstream;
    상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우, 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 상기 비트스트림으로부터 복호화하는 단계; 및When the ibc flag indicates the ibc mode, decoding motion information not including a reference picture index of the current block from the bitstream; And
    상기 현재 블록이 위치하는 현재 픽처 내에서 상기 움직임 정보에 의해 지시되는 블록을 이용하여 상기 현재 블록을 예측하는 단계를 포함하는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.And predicting the current block using a block indicated by the motion information in the current picture in which the current block is located.
  2. 제1항에 있어서,According to claim 1,
    상기 ibc 플래그는,The ibc flag,
    상기 인에이블 플래그가 상기 ibc 모드의 적용이 허용됨을 지시하고 상기 타입 정보가 인터를 지시하는 경우에 복호화되는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using the current picture reference mode, characterized in that the enable flag is decoded when the ibc mode is allowed to be applied and the type information indicates an inter.
  3. 제2항에 있어서,According to claim 2,
    상기 ibc 플래그를 복호화하기 이전에, 상기 현재 블록이 인트라 예측에 의해 부호화되었는지 여부를 지시하는 모드 정보를 상기 비트스트림으로부터 복호화하는 단계를 더 포함하고,Before decoding the ibc flag, further comprising decoding mode information indicating whether the current block has been encoded by intra prediction from the bitstream,
    상기 인에이블 플래그 및 상기 타입 정보는,The enable flag and the type information,
    상기 모드 정보가 인터 예측을 지시하는 경우에 판단되는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using a current picture reference mode, characterized in that it is determined when the mode information indicates inter prediction.
  4. 제3항에 있어서,According to claim 3,
    상기 움직임 정보는,The motion information,
    상기 인에이블 플래그가 상기 ibc 모드의 적용이 허용됨을 지시하고 상기 타입 정보가 인터가 아님을 지시하는 경우에 복호화되는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using the current picture reference mode, characterized in that the enable flag is decoded when the ibc mode is applied and the type information is not inter.
  5. 제2항에 있어서,According to claim 2,
    상기 ibc 플래그를 복호화하기 이전에, 상기 현재 블록이 인트라 예측에 의해 부호화되었는지 여부를 지시하는 모드 정보를 상기 비트스트림으로부터 복호화하는 단계를 더 포함하고,Before decoding the ibc flag, further comprising decoding mode information indicating whether the current block has been encoded by intra prediction from the bitstream,
    상기 인에이블 플래그 및 상기 타입 정보는,The enable flag and the type information,
    상기 모드 정보가 인트라 예측을 지시하는 경우에 판단되는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using a current picture reference mode, characterized in that it is determined when the mode information indicates intra prediction.
  6. 제5항에 있어서,The method of claim 5,
    상기 움직임 정보는,The motion information,
    상기 모드 정보가 인터 예측을 지시하고 상기 타입 정보가 인터가 아님을 지시하는 경우에 복호화되는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using a current picture reference mode, characterized in that the mode information is decoded when it indicates inter prediction and the type information is not inter.
  7. 제1항에 있어서,According to claim 1,
    상기 예측하는 단계는,The predicting step,
    하나 이상의 예측 블록 벡터(block vector predictor, BVP) 후보가 포함된 BVP 후보 리스트로부터, 상기 움직임 정보에 포함된 BVP 인덱스와 대응되는 BVP 후보를 선별하는 단계;Selecting a BVP candidate corresponding to a BVP index included in the motion information from a list of BVP candidates including one or more prediction block vector predictor (BVP) candidates;
    상기 움직임 정보에 포함된 차분 블록 벡터(block vector difference, BVD)와 상기 선별된 BVP 후보를 이용하여 상기 현재 블록의 블록 벡터(block vector, BV)를 도출하는 단계; 및Deriving a block vector (BV) of the current block using a differential block vector difference (BVD) included in the motion information and the selected BVP candidate; And
    상기 도출된 BV가 상기 현재 픽처 내에서 지시하는 블록을 이용하여 상기 현재 블록을 예측하는 단계를 포함하고,And predicting the current block by using the block indicated by the derived BV in the current picture,
    상기 BVP 후보 리스트는,The BVP candidate list,
    상기 현재 블록에 대한 하나 이상의 공간적 인접 블록 중 상기 ibc 모드로 예측된 블록의 BV, 상기 ibc 모드로 예측이 완료된 하나 이상의 블록의 BV 및 하나 이상의 제로(zero) BV를 상기 BVP 후보로 포함하는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.And a BV of a block predicted by the ibc mode among one or more spatial neighboring blocks for the current block, a BV of one or more blocks predicted by the ibc mode, and one or more zero BVs as the BVP candidates. A prediction method using the current picture reference mode.
  8. 제7항에 있어서,The method of claim 7,
    상기 공간적 인접 블록은,The spatial adjacent block,
    상기 현재 블록을 기준으로 좌측에 위치한 좌측 블록 및 상측에 위치한 상측 블록을 포함하고,It includes a left block located on the left and an upper block located on the upper side based on the current block,
    상기 좌측 블록은,The left block,
    상기 현재 블록의 높이 방향을 기준으로, 하부에 위치한 블록을 포함하며,Based on the height direction of the current block, includes a block located at the bottom,
    상기 상측 블록은,The upper block,
    상기 현재 블록의 너비 방향을 기준으로, 우측에 위치한 블록을 포함하는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using a current picture reference mode, comprising a block located on the right side based on the width direction of the current block.
  9. 제7항에 있어서,The method of claim 7,
    상기 ibc 모드로 예측이 완료된 블록의 BV는,The BV of the block for which prediction is completed in the ibc mode,
    상기 ibc 모드로 예측이 완료된 블록들의 BV가 예측 순서에 따라 저장된 후보 리스트로부터, 저장 순서에 역순으로 선별되어 상기 BVP 후보 리스트에 포함된 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.The prediction method using the current picture reference mode, characterized in that BVs of blocks whose prediction is completed in the ibc mode are included in the BVP candidate list after being sorted in reverse order from a candidate list stored in a prediction order.
  10. 비트스트림으로부터, 현재 픽처 참조(intra block copy, ibc) 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 복호화하고, 상기 인에이블 플래그 및 상기 타입 정보에 의존하여 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 복호화하며, 상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 복호화하는 복호화부; 및From the bitstream, an enable flag indicating whether the application of the current picture reference (intra block copy, ibc) mode is allowed, and type information indicating whether the type of the slice is inter, decode the type information, and enable the The ibc flag indicating whether the prediction mode of the current block is the ibc mode is decoded depending on the flag and the type information, and when the ibc flag indicates the ibc mode, the reference picture index of the current block is not included. A decoder for decoding motion information; And
    상기 현재 블록이 위치하는 현재 픽처 내에서 상기 움직임 정보에 의해 지시되는 블록을 이용하여 상기 현재 블록을 예측하는 예측부를 포함하는 것을 특징으로 하는 영상 복호화 장치.And a prediction unit for predicting the current block using a block indicated by the motion information in the current picture in which the current block is located.
  11. 제10항에 있어서,The method of claim 10,
    상기 ibc 플래그는,The ibc flag,
    상기 인에이블 플래그가 상기 ibc 모드의 적용이 허용됨을 지시하고 상기 타입 정보가 인터를 지시하는 경우에 복호화되는 것을 특징으로 하는 영상 복호화 장치.And when the enable flag indicates that application of the ibc mode is allowed and the type information indicates inter, the video decoding apparatus.
  12. 제11항에 있어서,The method of claim 11,
    상기 복호화부는,The decoding unit,
    상기 ibc 플래그를 복호화하기 이전에, 상기 현재 블록이 인트라 예측에 의해 부호화되었는지 여부를 지시하는 모드 정보를 복호화하고,Before decoding the ibc flag, mode information indicating whether the current block is encoded by intra prediction is decoded,
    상기 인에이블 플래그 및 상기 타입 정보는,The enable flag and the type information,
    상기 모드 정보가 인터 예측을 지시하는 경우에 판단되는 것을 특징으로 하는 영상 복호화 장치.An image decoding apparatus characterized in that it is determined when the mode information indicates inter prediction.
  13. 제12항에 있어서,The method of claim 12,
    상기 복호화부는,The decoding unit,
    상기 인에이블 플래그가 상기 ibc 모드의 적용이 허용됨을 지시하고 상기 타입 정보가 인터가 아님을 지시하는 경우에 상기 움직임 정보를 복호화하는 것을 특징으로 하는 영상 복호화 장치.And decoding the motion information when the enable flag indicates that the application of the ibc mode is allowed and the type information is not inter.
  14. 제11항에 있어서,The method of claim 11,
    상기 복호화부는,The decoding unit,
    상기 ibc 플래그를 복호화하기 이전에, 상기 현재 블록이 인트라 예측에 의해 부호화되었는지 여부를 지시하는 모드 정보를 복호화하고,Before decoding the ibc flag, mode information indicating whether the current block is encoded by intra prediction is decoded,
    상기 인에이블 플래그 및 상기 타입 정보는,The enable flag and the type information,
    상기 모드 정보가 인트라 예측을 지시하는 경우에 판단되는 것을 특징으로 하는 영상 복호화 장치.An image decoding apparatus characterized in that it is determined when the mode information indicates intra prediction.
  15. 제14항에 있어서,The method of claim 14,
    상기 복호화부는,The decoding unit,
    상기 모드 정보가 인터 예측을 지시하고 상기 타입 정보가 인터가 아님을 지시하는 경우에 상기 움직임 정보를 복호화하는 것을 특징으로 하는 영상 복호화 장치.And decoding the motion information when the mode information indicates inter prediction and the type information is not inter.
  16. 제10항에 있어서,The method of claim 10,
    상기 예측부는,The prediction unit,
    하나 이상의 예측 블록 벡터(block vector predictor, BVP) 후보가 포함된 BVP 후보 리스트로부터 상기 움직임 정보에 포함된 BVP 인덱스와 대응되는 BVP 후보를 선별하고, 상기 움직임 정보에 포함된 차분 블록 벡터(block vector difference, BVD)와 상기 선별된 BVP 후보를 이용하여 상기 현재 블록의 블록 벡터(block vector, BV)를 도출하며, 상기 도출된 BV가 상기 현재 픽처 내에서 지시하는 블록을 이용하여 상기 현재 블록을 예측하고,A BVP candidate corresponding to the BVP index included in the motion information is selected from a list of BVP candidates including one or more prediction block vector predictor (BVP) candidates, and a block vector difference included in the motion information , BVD) and the selected BVP candidate to derive a block vector (BV) of the current block, and predict the current block using a block indicated by the derived BV in the current picture, ,
    상기 BVP 후보 리스트는,The BVP candidate list,
    상기 현재 블록에 대한 하나 이상의 공간적 인접 블록 중 상기 ibc 모드로 예측된 블록의 BV, 상기 ibc 모드로 예측이 완료된 블록의 BV 및 제로(zero) BV를 상기 BVP 후보로 포함하는 것을 특징으로 하는 영상 복호화 장치.The decoding of an image comprising the BV of a block predicted by the ibc mode among the one or more spatial neighboring blocks for the current block, and a BV and a zero BV of a block predicted by the ibc mode as the BVP candidates. Device.
  17. 제16항에 있어서,The method of claim 16,
    상기 공간적 인접 블록은,The spatial adjacent block,
    상기 현재 블록을 기준으로 좌측에 위치한 좌측 블록 및 상측에 위치한 상측 블록을 포함하고,It includes a left block located on the left and an upper block located on the upper side based on the current block,
    상기 좌측 블록은,The left block,
    상기 현재 블록의 높이 방향을 기준으로, 하부에 위치한 블록을 포함하며,Based on the height direction of the current block, includes a block located at the bottom,
    상기 상측 블록은,The upper block,
    상기 현재 블록의 너비 방향을 기준으로, 우측에 위치한 블록을 포함하는 것을 특징으로 하는 영상 복호화 장치.And a block located on the right side based on the width direction of the current block.
  18. 제16항에 있어서,The method of claim 16,
    상기 ibc 모드로 예측이 완료된 블록의 BV는,The BV of the block for which prediction is completed in the ibc mode,
    상기 ibc 모드로 예측이 완료된 블록들의 BV가 예측 순서에 따라 저장된 후보 리스트로부터, 저장 순서에 역순으로 선별되어 상기 BVP 후보 리스트에 포함된 것을 특징으로 하는 영상 복호화 장치.The BV of the blocks whose prediction is completed in the ibc mode is selected from a candidate list stored in a prediction order, in reverse order, and included in the BVP candidate list.
  19. 영상 부호화 장치에서 수행되는 방법으로서,As a method performed in the video encoding device,
    현재 픽처 참조(intra block copy, ibc) 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 부호화하는 단계;Encoding an enable flag indicating whether application of the current picture reference (intra block copy, ibc) mode is permitted and type information indicating whether a slice type is inter;
    상기 인에이블 플래그 및 상기 타입 정보에 의존하여, 상기 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 부호화하는 단계; 및Encoding an ibc flag indicating whether the prediction mode of the current block is the ibc mode, depending on the enable flag and the type information; And
    상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우, 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 부호화하는 단계를 포함하고,When the ibc flag indicates the ibc mode, encoding motion information not including a reference picture index of the current block,
    상기 움직임 정보는,The motion information,
    상기 현재 블록이 위치하는 현재 픽처 내에서 상기 현재 블록의 예측에 이용될 블록을 지시하는 것을 특징으로 하는 현재 픽처 참조 모드를 이용한 예측 방법.A prediction method using a current picture reference mode, characterized in that a block to be used for prediction of the current block is indicated within a current picture in which the current block is located.
  20. 영상 부호화 장치로서,As a video encoding device,
    현재 픽처 참조(intra block copy, ibc) 모드의 적용이 허용되는지 여부를 지시하는 인에이블(enable) 플래그 및 슬라이스의 타입이 인터인지 여부를 지시하는 타입 정보를 부호화하고, 상기 인에이블 플래그 및 상기 타입 정보에 의존하여 상기 현재 블록의 예측 모드가 상기 ibc 모드인지 여부를 지시하는 ibc 플래그를 부호화하며, 상기 ibc 플래그가 상기 ibc 모드를 지시하는 경우 상기 현재 블록의 참조 픽처 인덱스가 포함되지 않은 움직임 정보를 부호화하는 부호화부를 포함하고,The enable flag indicating whether the application of the current picture reference (intra block copy, ibc) mode is allowed and the type information indicating whether the type of the slice is inter, encodes the enable flag and the type Depending on information, an ibc flag indicating whether the prediction mode of the current block is the ibc mode is encoded, and when the ibc flag indicates the ibc mode, motion information not including a reference picture index of the current block is encoded. It includes an encoding unit for encoding,
    상기 움직임 정보는,The motion information,
    상기 현재 블록이 위치하는 현재 픽처 내에서 상기 현재 블록의 예측에 이용될 블록을 지시하는 것을 특징으로 하는 영상 부호화 장치.And a block to be used for prediction of the current block in the current picture in which the current block is located.
PCT/KR2019/013129 2018-10-08 2019-10-07 Prediction method using current picture referencing mode, and image decoding device therefor WO2020076034A1 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
CN201980081334.7A CN113170196A (en) 2018-10-08 2019-10-07 Prediction method using current picture reference mode and image decoding apparatus thereof
US17/225,397 US11405639B2 (en) 2018-10-08 2021-04-08 Prediction method using current picture referencing mode, and video decoding device therefor
US17/847,748 US11838544B2 (en) 2018-10-08 2022-06-23 Prediction method using current picture referencing mode, and video decoding device therefor
US17/847,706 US11838542B2 (en) 2018-10-08 2022-06-23 Prediction method using current picture referencing mode, and video decoding device therefor
US17/847,727 US11838543B2 (en) 2018-10-08 2022-06-23 Prediction method using current picture referencing mode, and video decoding device therefor
US17/847,783 US11838545B2 (en) 2018-10-08 2022-06-23 Prediction method using current picture referencing mode, and video decoding device therefor

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2018-0119881 2018-10-08
KR20180119881 2018-10-08
KR10-2019-0067724 2019-06-10
KR1020190067724A KR20200040179A (en) 2018-10-08 2019-06-10 Prediction method and apparatus using the current picture referencing mode

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/225,397 Continuation US11405639B2 (en) 2018-10-08 2021-04-08 Prediction method using current picture referencing mode, and video decoding device therefor

Publications (1)

Publication Number Publication Date
WO2020076034A1 true WO2020076034A1 (en) 2020-04-16

Family

ID=70163985

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/013129 WO2020076034A1 (en) 2018-10-08 2019-10-07 Prediction method using current picture referencing mode, and image decoding device therefor

Country Status (1)

Country Link
WO (1) WO2020076034A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015194913A1 (en) * 2014-06-20 2015-12-23 성균관대학교 산학협력단 Method for encoding/decoding image and device using same
KR20180013918A (en) * 2015-05-29 2018-02-07 퀄컴 인코포레이티드 Slice level intra block copy and other video coding improvements
KR20180063094A (en) * 2015-10-02 2018-06-11 퀄컴 인코포레이티드 Intra block copy merge mode and padding of unavailable IBC reference areas

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015194913A1 (en) * 2014-06-20 2015-12-23 성균관대학교 산학협력단 Method for encoding/decoding image and device using same
KR20180013918A (en) * 2015-05-29 2018-02-07 퀄컴 인코포레이티드 Slice level intra block copy and other video coding improvements
KR20180063094A (en) * 2015-10-02 2018-06-11 퀄컴 인코포레이티드 Intra block copy merge mode and padding of unavailable IBC reference areas

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MA, JONGHYUN ET AL.: "Intra Block Copy Analysis to Improve Coding Efficiency for HEVC Screen Content Coding", JOURNAL OF BROADCAST ENGINEERING, vol. 20, no. 1, 31 January 2015 (2015-01-31), pages 57 - 67, XP055704054, Retrieved from the Internet <URL:http:/7dx.doi.org/10.5909/JBE.2015.20.1.57> [retrieved on 20191230] *
XU, XIAOZHONG ET AL.: "Intra block copy improvement on top of Tencent's CfP response", JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11. JVET-J0050_ - R2, 20 April 2018 (2018-04-20), San Diego, US, pages 1 - 3, XP030151230, Retrieved from the Internet <URL:http://phenix.int-evry.fr/jvet> [retrieved on 20191227] *

Similar Documents

Publication Publication Date Title
WO2018212578A1 (en) Method and device for video signal processing
WO2018066959A1 (en) Method and apparatus for processing video signal
WO2018056763A1 (en) Method and apparatus for performing prediction using template-based weight
WO2018062950A1 (en) Picture processing method and apparatus for same
WO2020204419A1 (en) Adaptive loop filter-based video or image coding
WO2020180143A1 (en) Video or image coding based on luma mapping with chroma scaling
WO2020171673A1 (en) Video signal processing method and apparatus for intra prediction
WO2020180122A1 (en) Video or image coding on basis of conditionally parsed alf model and reshaping model
WO2021125700A1 (en) Prediction weighted table-based image/video coding method and apparatus
WO2021141226A1 (en) Bdpcm-based image decoding method for luma component and chroma component, and device for same
WO2021091256A1 (en) Image/video coding method and device
WO2021040398A1 (en) Image or video coding based on palette escape coding
WO2020197207A1 (en) Filtering-based video or image coding comprising mapping
WO2020138958A1 (en) Bidirectional prediction method and image decoding device
WO2019066175A1 (en) Image decoding method and device in accordance with block split structure in image coding system
WO2014098374A1 (en) Scalable video decoding method using mpm, and apparatus using such method
WO2021091255A1 (en) High level syntax signaling method and device for image/video coding
WO2021125701A1 (en) Image/video coding method and apparatus based on inter prediction
WO2021125702A1 (en) Image/video coding method and device based on weighted prediction
WO2021091252A1 (en) Method and device for processing image information for image/video coding
WO2017078450A1 (en) Image decoding method and apparatus in image coding system
WO2020190085A1 (en) Video or image coding based on in-loop filtering
WO2020204412A1 (en) Video or image coding accompanied by adaptive loop filtering procedure
WO2020076034A1 (en) Prediction method using current picture referencing mode, and image decoding device therefor
WO2020122574A1 (en) Coding tool setting method and image decoding apparatus

Legal Events

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

Ref document number: 19870129

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19870129

Country of ref document: EP

Kind code of ref document: A1