Video encoding / decoding method and apparatus for applying merge mode using motion vector differential to combined intra / inter prediction mode or geometric partition mode

The use of CIIP and geometric partitioning modes with motion vector differences in video encoding/decoding addresses the challenge of increasing video sizes and resolutions, enhancing efficiency in data handling and compression.

JP2024533823APending Publication Date: 2024-09-12HYUNDAI MOTOR CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024519800
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-09-29
Filing Date
2022-09-30
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing video compression techniques struggle to efficiently handle increasing video sizes, resolutions, and frame rates, requiring improved methods for generating predicted blocks in video encoding/decoding processes.

Method used

The method employs a Combined Inter/Intra Prediction (CIIP) mode and geometric partitioning mode, utilizing motion vector differences to generate predicted blocks, and applies a merge mode using these differences to improve encoding/decoding efficiency.

Benefits of technology

Enhances video encoding/decoding efficiency by effectively handling larger video data with improved prediction techniques, reducing the amount of data required for storage and transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533823000001
    Figure 2024533823000001
Patent Text Reader

Abstract

A video encoding / decoding method and apparatus are provided. The video decoding method according to the present disclosure includes a step of determining whether to apply a Combined Inter / Intra Prediction (CIIP) mode or a geometric partition mode, a step of deriving a motion vector from a merge candidate list, a step of correcting the motion vector using motion vector difference information, and a step of generating a prediction block of a current block based on the corrected motion vector.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a video encoding / decoding method and apparatus for applying a merge mode using a motion vector difference to a combined intra / inter prediction mode or a geometric partition mode, and more particularly to a video encoding / decoding method and apparatus for generating a prediction block for a current block by applying a merge mode using a motion vector difference to a combined inter / intra prediction (CIIP) mode or a geometric partition mode. [Background technology]

[0002] The following description is merely intended to provide background information related to the present invention and may not constitute prior art.

[0003] Video data has a larger amount of data than audio data or still image data, and therefore requires a large amount of hardware resources, including memory, to store or transmit the video data without compression processing.

[0004] Generally, when video data is stored or transmitted, the video data is compressed using an encoder and then stored or transmitted, and the compressed video data is received and decompressed by a decoder for playback. Such video compression technologies include H.264 / AVC, High Efficiency Video Coding (HEVC), and Versatile Video Coding (VVC), which has improved coding efficiency by about 30% or more compared to HEVC.

[0005] However, as video size, resolution, and frame rate gradually increase, the amount of data that needs to be encoded also increases accordingly. This calls for new compression technologies that offer better encoding efficiency and greater image quality improvement than conventional compression technologies.

[0006] The combined inter / intra prediction (CIIP) mode is a method of generating a predicted block of a current block by weighting an intra prediction signal and an inter prediction signal. The geometric partition mode is a method of dividing one coding unit (CU) into two regions, performing inter prediction independently on the two divided regions, and generating a predicted block of a current block by weighting two inter prediction signals. The merge mode using motion vector difference adds a motion vector difference to the motion vector induced in the general merge mode to correct the motion vector. It is necessary to correct the motion vector used when generating an inter prediction block by applying the merge mode using motion vector difference to the CIIP mode or geometric partition mode. Summary of the Invention [Problem to be solved by the invention]

[0007] The present disclosure provides a method and apparatus for generating a predicted block of a current block based on a combined inter / intra prediction (CIIP) mode.

[0008] Another object of the present disclosure is to provide a method and apparatus for generating a predicted block of a current block based on a geometric partition mode.

[0009] Another object of the present disclosure is to provide a method and apparatus for applying a merge mode using a motion vector difference to the CIIP mode.

[0010] It is a further object of the present disclosure to provide a method and apparatus for applying a merge mode using motion vector differentials in a geometric partition mode.

[0011] Another object of the present disclosure is to provide a method and apparatus for improving video encoding / decoding efficiency.

[0012] Furthermore, the present disclosure aims to provide a recording medium storing a bitstream generated by the video encoding / decoding method or apparatus of the present disclosure.

[0013] Another object of the present disclosure is to provide a method and apparatus for transmitting a bitstream generated by the video encoding / decoding method or apparatus of the present disclosure. [Means for solving the problem]

[0014] The video decoding method according to the present disclosure includes a step of determining whether to apply CIIP (Combined Inter / Intra Prediction, CIIP) mode or geometric partition mode, a step of deriving a motion vector from a merge candidate list, a step of correcting the motion vector using motion vector difference information, and a step of generating a prediction block of a current block based on the corrected motion vector.

[0015] The video encoding method according to the present disclosure includes a step of determining whether to apply a CIIP mode or a geometric partitioning mode, a step of determining a motion vector from a merge candidate list, a step of correcting the motion vector using motion vector difference information, and a step of generating a prediction block of a current block based on the corrected motion vector.

[0016] Further, the present disclosure provides a method for transmitting a bitstream generated by a video encoding method or apparatus according to the present disclosure.

[0017] The present disclosure also provides a recording medium storing a bitstream generated by the video encoding method or apparatus according to the present disclosure.

[0018] Furthermore, according to the present disclosure, there is provided a recording medium storing a bitstream received and decoded by the video decoding device according to the present disclosure and used to restore a video. Effect of the Invention

[0019] According to the present disclosure, a method and apparatus for generating a predicted block of a current block based on a combined inter / intra prediction (CIIP) mode is provided.

[0020] Further, the present disclosure provides a method and apparatus for generating a predicted block of a current block based on a geometric partition mode.

[0021] The present disclosure also provides a method and apparatus for applying a merge mode using motion vector differentials to a CIIP mode.

[0022] Further, the present disclosure provides a method and apparatus for applying a merge mode using motion vector differentials to a geometric partition mode.

[0023] Further, in accordance with the present disclosure, a method and apparatus for improving video encoding / decoding efficiency is provided.

[0024] The effects obtained by the present disclosure are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the following description. [Brief description of the drawings]

[0025] [Figure 1] FIG. 1 is an exemplary block diagram of a video encoding device capable of implementing the techniques of this disclosure. [Diagram 2] FIG. 2 is a diagram for explaining a method of dividing a block using the QTBTTT structure. [Figure 3a] FIG. 3a is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 3b] FIG. 3b is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 4]FIG. 4 is a diagram illustrating an example of neighboring blocks of a current block. [Diagram 5] FIG. 5 is an exemplary block diagram of a video decoding device capable of implementing the techniques of this disclosure. [Figure 6] FIG. 6 is a diagram illustrating a method of generating a predicted block of a current block in a combined inter / intra prediction (CIIP) mode. [Figure 7] FIG. 7 is a diagram illustrating neighboring blocks to be referred to in determining weights in a combined intra-inter prediction mode according to an embodiment of the present disclosure. [Figure 8] FIG. 8 is a diagram illustrating a method for determining weights in a combined intra-inter prediction mode according to an embodiment of the present disclosure. [Figure 9] FIG. 9 is a diagram illustrating a method of applying a geometric partitioning mode to a 32×32 block according to an embodiment of the present disclosure. [Figure 10a] FIG. 10a is a diagram for explaining angle parameters and distance parameters in the geometric division mode according to one embodiment of the present disclosure. [Figure 10b] FIG. 10b is a diagram for explaining angle parameters and distance parameters in the geometric division mode according to one embodiment of the present disclosure. [Figure 11] FIG. 11 is a diagram for explaining a lookup table of division direction information in the geometric division mode according to an embodiment of the present disclosure. [Figure 12] FIG. 12 is a diagram illustrating directional information of a motion vector difference according to an embodiment of the present disclosure. [Figure 13] FIG. 13 is a diagram illustrating distance information of a motion vector difference according to an embodiment of the present disclosure. [Figure 14] FIG. 14 is a diagram for explaining a flowchart for applying inter prediction according to an embodiment of the present disclosure. [Figure 15] FIG. 15 is a diagram for explaining directional information of a motion vector difference according to another embodiment of the present disclosure. [Figure 16] FIG. 16 is a diagram for explaining a syntax structure in a case where a merge mode using a motion vector difference is applied to a combined intra inter prediction mode according to an embodiment of the present disclosure. [Figure 17] FIG. 17 is a diagram illustrating a syntax structure in a combined intra-inter prediction mode according to an embodiment of the present disclosure. [Figure 18] FIG. 18 is a diagram for explaining a syntax structure when a merge mode using a motion vector difference is applied to a geometric partition mode according to an embodiment of the present disclosure. [Figure 19] Figure 19 is a diagram illustrating a process of deriving motion vector difference information of a second region divided from motion vector difference information of a first region divided in a geometric division mode in one embodiment of the present disclosure. [Figure 20] Figure 20 is a diagram illustrating a process of deriving motion vector difference information of a second region divided from motion vector difference information of a first region divided in a geometric division mode in another embodiment of the present disclosure. [Figure 21] FIG. 21 is a diagram for explaining a syntax structure when a merge mode using a motion vector difference is applied to a geometric partition mode according to another embodiment of the present disclosure. [Figure 22] FIG. 22 is a diagram for explaining a flowchart for applying inter prediction by applying a merge mode using a motion vector difference according to an embodiment of the present disclosure. [Diagram 23] FIG. 23 is a diagram for explaining a flowchart for applying inter prediction by applying a merge mode using a motion vector difference according to another embodiment of the present disclosure. [Figure 24] FIG. 24 is a diagram illustrating a video decoding process according to one embodiment of the present disclosure. [Diagram 25] FIG. 25 is a diagram illustrating a video encoding process according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] Hereinafter, the embodiments of the present invention will be described in detail with reference to the drawings. When referring to the components in each drawing, it should be noted that the same components are given the same reference numerals as much as possible even if they are shown in different drawings. In addition, when describing the present embodiment, if it is determined that a detailed description of related known configurations or functions will make the gist of the present embodiment unclear, the detailed description will be omitted.

[0027] 1 is an exemplary block diagram of a video encoding device capable of implementing the technology of the present disclosure. Hereinafter, the video encoding device and its lower components will be described with reference to the diagram of FIG.

[0028] The video encoding device is configured to include a picture division unit 110, a prediction unit 120, a subtractor 130, a transformation unit 140, a quantization unit 145, a rearrangement unit 150, an entropy encoding unit 155, an inverse quantization unit 160, an inverse transformation unit 165, an adder 170, a loop filter unit 180, and a memory 190.

[0029] Each component of the video encoding device may be implemented in hardware or software, or in a combination of hardware and software. Further, the function of each component may be implemented in software, and a microprocessor may execute the software function corresponding to each component.

[0030] A video is composed of one or more sequences including a plurality of pictures. Each picture is divided into a plurality of regions, and coding is performed for each region. For example, a picture is divided into one or more tiles and / or slices. Here, one or more tiles are defined as a tile group. Each tile and / or slice is divided into one or more coding tree units (CTUs). Each CTU is divided into one or more coding units (CUs) according to a tree structure. Information applied to each CU is coded as a CU syntax, and information commonly applied to CUs included in one CTU is coded as a CTU syntax. Furthermore, information commonly applied to all blocks in one slice is coded as a slice header syntax, and information commonly applied to all blocks constituting one or more pictures is coded in a picture parameter set (PPS) or a picture header. Furthermore, information commonly referred to by a plurality of pictures is coded in a sequence parameter set (SPS). Information commonly referenced by one or more SPSs is coded into a Video Parameter Set (VPS). Furthermore, information commonly applied to one tile or tile group may be coded as syntax in a tile or tile group header. Syntax included in an SPS, PPS, slice header, tile or tile group header is referred to as high level syntax.

[0031] The picture division unit 110 determines the size of a coding tree unit (CTU). Information on the size of the CTU (CTU size) is encoded as an SPS or PPS syntax and transmitted to a video decoding apparatus.

[0032] The picture division unit 110 divides each picture constituting an image into a plurality of coding tree units (CTUs) having a predetermined size, and then recursively divides the CTUs using a tree structure, in which leaf nodes become coding units (CUs), which are basic units of encoding.

[0033] The tree structure may be a quad tree (QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, a binary tree (BT) in which an upper node is divided into two lower nodes, a ternary tree (TT) in which an upper node is divided into three lower nodes in a ratio of 1:2:1, or a structure that combines two or more of the QT, BT, and TT structures. For example, a QTBT (Quad Tree plus Binary Tree) structure may be used, or a QTBTTT (Quad Tree plus Binary Tree Ternary Tree) structure may be used. Here, BTTT and TT are collectively referred to as MTT (Multiple-Type Tree).

[0034] FIG. 2 is a diagram for explaining a method of dividing a block using the QTBTTT structure.

[0035] As shown in FIG. 2, the CTU is first split into a QT structure. The quadtree split is repeated until the size of a splitting block reaches the minimum block size MinQTSize of a leaf node allowed in QT. A first flag QT_split_flag indicating whether each node of the QT structure is split into four nodes of a lower layer is coded by the entropy coding unit 155 and signaled to the video decoding device. If the leaf node of the QT is not larger than the maximum block size MaxBTSize of a root node allowed in BT, it is further split into one or more of a BT structure or a TT structure. In the BT structure and / or the TT structure, there are multiple splitting directions. For example, there are two directions, that is, a direction in which the block of the corresponding node is split horizontally and a direction in which the block of the corresponding node is split vertically. As shown in FIG. 2, when MTT splitting is initiated, a second flag mtt_split_flag indicating whether the node has been split, and if split, a flag indicating the split direction (vertical or horizontal) and / or a flag indicating the split type (Binary or Ternary) are additionally coded by the entropy coding unit 155 and signaled to the video decoding device.

[0036] Alternatively, before encoding the first flag QT_split_flag indicating whether each node is split into four nodes in the lower layer, a CU split flag split_cu_flag indicating whether the node is split may be encoded. If the CU split flag split_cu_flag value indicates that the node is not 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 coding. If the CU split flag split_cu_flag value indicates that the node is split, the video coding apparatus starts coding from the first flag in the above-mentioned manner.

[0037] When QTBT is used as another example of a tree structure, there are two types: a type in which a block of a corresponding node is split horizontally into two blocks of the same size (i.e., symmetric horizontal splitting) and a type in which a block of a corresponding node is split vertically (i.e., symmetric vertical splitting). A split flag split_flag indicating whether each node of the BT structure is split into a block of a lower layer and split type information indicating the type of split are coded by the entropy coding unit 155 and transmitted to the video decoding device. Meanwhile, there may be an additional type in which a block of a corresponding node is split into two blocks of an asymmetric shape. The asymmetric shape may include a shape in which a block of a corresponding node is split into two rectangular blocks having a size ratio of 1:3, or a shape in which a block of a corresponding node is split diagonally.

[0038] The CU has various sizes according to the QTBT or QTBTTT division from the CTU. Hereinafter, the block corresponding to the CU to be encoded or decoded (i.e., the leaf node of QTBTTT) is referred to as the "current block". Depending on the QTBTTT division adopted, the shape of the current block may be not only square but also rectangular.

[0039] The prediction unit 120 predicts the current block to generate a predicted block. The prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit .

[0040] In general, each current block in a picture is predictively coded. In general, prediction of the current block is performed using intra prediction techniques (using data from the picture containing the current block) or inter prediction techniques (using data from a picture coded prior to the picture containing the current block). Inter prediction includes both unidirectional prediction and bidirectional prediction.

[0041] The intra prediction unit 122 predicts pixels in a current block using pixels (reference pixels) located around the current block in a current picture including the current block. There are a number of intra prediction modes depending on the prediction direction. For example, as shown in FIG. 3A, the multiple intra prediction modes include two non-directional modes including a planar mode and a DC mode, and 65 directional modes. Different neighboring pixels and calculation formulas are defined according to each prediction mode.

[0042] For efficient directional prediction of a rectangular current block, directional modes (intra prediction modes 67 to 80 and -1 to -14) are additionally used, as shown by dashed arrows in FIG. 3b. These are called "wide angle intra-prediction modes." In FIG. 3b, the arrows indicate corresponding reference samples used for prediction, but do not indicate the prediction direction. The prediction direction is opposite to the direction indicated by the arrows. The wide angle intra-prediction modes are modes that perform prediction in the opposite direction to a specific directional mode without additional bit transmission when the current block is rectangular. In this case, some wide angle intra-prediction modes available for the current block are determined from among the wide angle intra-prediction modes according to the ratio of the width and height of the rectangular current block. For example, wide-angle intra prediction modes with angles less than 45 degrees (intra prediction modes 67 to 80) are available when the current block has a rectangular shape with its height smaller than its width, and wide-angle intra prediction modes with angles greater than -135 degrees (intra prediction modes -1 to -14) are available when the current block has a rectangular shape with its width greater than its height.

[0043] The intra prediction unit 122 determines the intra prediction mode to use 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 may calculate a bit-rate-distortion value using a bit-rate-distortion analysis for the various tested intra prediction modes and select the intra prediction mode with the best bit-rate-distortion characteristics among the tested modes.

[0044] The intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts a current block using surrounding pixels (reference pixels) and an arithmetic equation determined by the selected intra prediction mode. Information about the selected intra prediction mode is encoded by the entropy encoding unit 155 and transmitted to the video decoding device.

[0045] The inter prediction unit 124 generates a prediction block for a current block using a motion compensation process. The inter prediction unit 124 searches for a block most similar to the current block in a reference picture that has been coded and decoded prior to the current picture, and generates a prediction block for the current block using the searched block. Then, it generates a motion vector (MV) corresponding to a displacement between the current block in the current picture and the prediction block in the reference picture. In general, motion estimation is performed on a luma component, and a motion vector calculated based on the luma component is used for both the luma component and the chroma component. Motion information including information on the reference picture used to predict the current block and information on the motion vector is coded by the entropy coding unit 155 and transmitted to the video decoding device.

[0046] The inter prediction unit 124 may perform interpolation on the reference picture or the reference block to improve prediction accuracy. That is, a sub-sample between two consecutive integer samples is interpolated by applying a filter coefficient to a plurality of consecutive integer samples including the two integer samples. When a step of searching for a block most similar to the current block is performed on the interpolated reference picture, the motion vector is expressed to a precision of a decimal unit, not a precision of an integer sample unit. The precision or resolution of the motion vector is set differently for each target region to be encoded, for example, a slice, a tile, a CTU, a CU, etc. When such an adaptive motion vector resolution (AMVR) is applied, information on the motion vector resolution applied to each target region must be signaled for each target region. For example, when the target region is a CU, information on the motion vector resolution applied for each CU is signaled. The information on the motion vector resolution is information indicating the precision of a differential motion vector, which will be described later.

[0047] Meanwhile, the inter prediction unit 124 performs inter prediction using bi-prediction. In the case of bi-prediction, two reference pictures and two motion vectors representing the position of a block most similar to the current block in each reference picture are used. The inter prediction unit 124 selects a first reference picture and a second reference picture from a reference picture list 0 (RefPicList0) and a reference picture list 1 (RefPicList1), respectively, and generates a first reference block and a second reference block by searching for a block similar to the current block in each reference picture. Then, the inter prediction unit 124 averages or weighted averages the first reference block and the second reference block to generate a predicted block for the current block. Then, the inter prediction unit 124 transmits motion information including information on the two reference pictures used to predict the current block and information on the two motion vectors to the encoding unit 150. Here, the reference picture list 0 is composed of pictures that are before the current picture in display order among previously restored pictures, and the reference picture list 1 is composed of pictures that are after the current picture in display order among previously restored pictures. However, this is not necessarily limited to the above, and previously restored pictures after the current picture in the display order may be additionally included in reference picture list 0, and conversely, previously restored pictures before the current picture may be additionally included in reference picture list 1.

[0048] Various methods are used to minimize the amount of bits required to code the motion information.

[0049] For example, if the reference picture and motion vector of the current block are the same as those of a neighboring block, the motion information of the current block can be transmitted to the video decoding device by encoding information that can identify the neighboring block. This method is called a "merge mode."

[0050] In the merge mode, the inter prediction unit 124 selects a predetermined number of merge candidate blocks (hereinafter, referred to as "merge candidates") from the neighboring blocks of the current block.

[0051] As shown in Fig. 4, all or some of the left block A0, the lower left block A1, the upper block B0, the upper right block B1, and the upper left block A2 adjacent to the current block in the current picture are used as neighboring blocks for deriving merging candidates. Furthermore, a block located in a reference picture (which may be the same as or different from the reference picture used to predict the current block) may be used as a merging candidate, instead of the current picture in which the current block is located. For example, a co-located block with the current block in the reference picture or a block adjacent to the co-located block may be additionally used as a merging candidate. If the number of merging candidates selected by the above-described method is less than a preset number, a zero vector is added to the merging candidates.

[0052] The inter prediction unit 124 uses the neighboring blocks to construct a merge list including a predetermined number of merge candidates. The inter prediction unit 124 selects a merge candidate to be used as motion information of the current block from among the merge candidates included in the merge list, and generates merge index information for identifying the selected candidate. The generated merge index information is encoded by the encoding unit 150 and transmitted to the video decoding device.

[0053] Merge skip mode is a special case of merge mode, and when all the transform coefficients for entropy coding are close to zero after quantization, only the neighboring block selection information is transmitted without transmitting the residual signal. By using the merge skip mode, it is possible to achieve relatively high coding efficiency for low-motion images, still images, screen content images, etc.

[0054] Hereinafter, the merge mode and the merge skip mode will be collectively referred to as the merge / skip mode.

[0055] Yet another method for encoding motion information is the Advanced Motion Vector Prediction (AMVP) mode.

[0056] In the AMVP mode, the inter prediction unit 124 derives a predicted motion vector candidate for the motion vector of the current block using neighboring blocks of the current block. As the neighboring blocks used to derive the predicted motion vector candidate, all or some of the left block A0, the lower left block A1, the upper block B0, the upper right block B1, and the upper left block A2 adjacent to the current block in the current picture shown in FIG. 4 are used. Furthermore, a block located in a reference picture (which may be the same as or different from the reference picture used to predict the current block) rather than the current picture in which the current block is located may be used as a neighboring block used to derive the predicted motion vector candidate. For example, a block located in the same position as the current block in the reference picture (collocated block) or a block adjacent to the block located in the same position is used. If the number of motion vector candidates is less than a preset number according to the above-described method, a zero vector is added to the motion vector candidates.

[0057] The inter prediction unit 124 derives motion vector predictor candidates using the motion vectors of the neighboring blocks, determines a motion vector predictor for the motion vector of the current block using the motion vector predictor candidates, and calculates a difference motion vector by subtracting the motion vector predictor from the motion vector of the current block.

[0058] The motion vector predictor is obtained by applying a predefined function (e.g., median, average calculation, etc.) to the motion vector predictor candidate. In this case, the video decoding device also knows the predefined function. In addition, since the neighboring blocks used to derive the motion vector predictor candidate are blocks that have already been encoded and decoded, the video decoding device also already knows the motion vectors of the neighboring blocks. Therefore, the video encoding device does not need to encode information for identifying the motion vector predictor candidate. Therefore, in this case, information on the differential motion vector and information on the reference picture used to predict the current block are encoded.

[0059] Meanwhile, the motion vector predictor may be determined by selecting one of the motion vector predictor candidates, in which case information for identifying the selected motion vector predictor candidate is additionally encoded together with information on the difference motion vector and information on the reference picture used to predict the current block.

[0060] The subtractor 130 subtracts the predicted block generated by the intra predictor 122 or the inter predictor 124 from the current block to generate a residual block.

[0061] The transform unit 140 transforms the residual signal in the residual block having pixel values ​​in the spatial domain into transform coefficients in the frequency domain. The transform unit 140 may transform the residual signal in the residual block using the entire size of the residual block as a transform unit, or may divide the residual block into a plurality of sub-blocks and transform the sub-blocks as transform units. Alternatively, the transform domain may be divided into two sub-blocks, a transform domain and a non-transform domain, and the residual signal may be transformed using only the transform domain sub-block as a transform unit. Here, the transform domain sub-block is one of two rectangular blocks having a size ratio of 1:1 based on the horizontal axis (or vertical axis). In this case, a flag cu_sbt_flag indicating that only the sub-block has been transformed, directionality (vertical / horizontal) information cu_sbt_horizontal_flag, and / or position information cu_sbt_pos_flag are coded by the entropy coding unit 155 and signaled to the video decoding apparatus. In addition, the size of the transform domain sub-block has a size ratio of 1:3 based on the horizontal axis (or vertical axis), and in this case, a flag cu_sbt_quad_flag that distinguishes the corresponding division is additionally coded by the entropy coding unit 155 and signaled to the video decoding device.

[0062] Meanwhile, the transform unit 140 performs transforms on the residual block in the horizontal and vertical directions separately. Various types of transform functions or transform matrices are used for the transform. For example, a pair of transform functions for horizontal and vertical transforms is defined as a Multiple Transform Set (MTS). The transform unit 140 selects one transform function pair having the highest transform efficiency from the MTS, and transforms the residual block in the horizontal and vertical directions, respectively. Information mts_idx about the transform function pair selected from the MTS is coded by the entropy coding unit 155 and signaled to the video decoding device.

[0063] The quantization unit 145 quantizes the transform coefficients output from the transform unit 140 using the quantization parameter, and outputs the quantized transform coefficients to the entropy coding unit 155. For any block or frame, the quantization unit 145 may directly quantize an associated residual block without transforming it. The quantization unit 145 may apply different quantization coefficients (scaling values) depending on the position of the transform coefficient within the transform block. The quantization matrix applied to the two-dimensionally arranged quantized transform coefficients is coded and signaled to a video decoding device.

[0064] The reordering unit 150 performs reordering of the coefficient values ​​on the quantized residual values.

[0065] The rearrangement unit 150 converts a two-dimensional coefficient array into a one-dimensional coefficient sequence using coefficient scanning. For example, the rearrangement unit 150 uses a zig-zag scan or a diagonal scan to scan from a DC coefficient to a high-frequency region coefficient and outputs a one-dimensional coefficient sequence. Depending on the size of the transform unit and the intra prediction mode, a vertical scan that scans the two-dimensional coefficient array in the column direction and a horizontal scan that scans the two-dimensional block shape coefficient in the row direction may be used instead of the zig-zag scan. That is, depending on the size of the transform unit and the intra prediction mode, a scan method to be used may be determined from among a zig-zag scan, a diagonal scan, a vertical scan, and a horizontal scan.

[0066] The entropy coding unit 155 generates a bitstream by coding the sequence of one-dimensional quantized transform coefficients output from the reordering unit 150 using various coding schemes such as CABAC (Context-based Adaptive Binary Arithmetic Code) and Exponential Golomb.

[0067] The entropy coding unit 155 also encodes information related to block division, such as a CTU size, a CU division flag, a QT division flag, an MTT division type, and an MTT division direction, so that the video decoding device can divide the block in the same manner as the video coding device. The entropy coding unit 155 also encodes information related to a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and encodes intra prediction information (i.e., information related to an intra prediction mode) or inter prediction information (information related to a coding mode of motion information (merge mode or AMVP mode), a merge index in the case of the merge mode, and information related to a reference picture index and a differential motion vector in the case of the AMVP mode) according to the prediction type. The entropy coding unit 155 also encodes information related to quantization, such as information related to a quantization parameter and information related to a quantization matrix.

[0068] The inverse quantization unit 160 generates transform coefficients by inverse quantizing the quantized transform coefficients output from the quantization unit 145. The inverse transform unit 165 transforms the transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain to reconstruct the residual block.

[0069] The adder 170 reconstructs the current block by adding the reconstructed residual block and the prediction block generated by the prediction unit 120. The pixels in the reconstructed current block are used as reference pixels when intra-predicting the next block in the order.

[0070] The loop filter unit 180 performs filtering on the restored pixels to reduce blocking artifacts, ringing artifacts, blurring artifacts, etc., that occur due to block-based prediction and transform / quantization. The filter unit 180 includes all or some of a deblocking filter 182, a sample adaptive offset (SAO) filter 184, and an adaptive loop filter (ALF) 186 as in-loop filters.

[0071] The deblocking filter 182 filters the boundaries between reconstructed blocks to remove blocking artifacts caused by block-based encoding / decoding, and the SAO filter 184 and alf 186 perform additional filtering on the deblock-filtered image. The SAO filter 184 and alf 186 are filters used to compensate for differences between reconstructed pixels and original pixels caused by lossy coding. The SAO filter 184 applies an offset in units of CTUs to improve not only subjective image quality but also coding efficiency. In contrast, the ALF 186 performs block-based filtering and applies different filters to distinguish edges and degree of change of a corresponding block to compensate for distortion. Information about the filter coefficients used in the ALF is coded and signaled to the video decoder.

[0072] The reconstructed blocks filtered through the deblocking filter 182, the SAO filter 184, and the ALF 186 are stored in a memory 190. When all blocks in a picture are reconstructed, the reconstructed picture is used as a reference picture for inter-predicting blocks in a picture to be coded later.

[0073] 5 is an exemplary block diagram of a video decoding device capable of implementing the technology of the present disclosure. Hereinafter, the video decoding device and its sub-components will be described with reference to FIG.

[0074] The video decoding apparatus includes an entropy decoding unit 510 , a reordering unit 515 , an inverse quantization unit 520 , an inverse transform unit 530 , a prediction unit 540 , an adder 550 , a loop filter unit 560 , and a memory 570 .

[0075] Like the video encoding device of Fig. 1, each component of the video decoding device may be implemented in hardware or software, or in a combination of hardware and software. Furthermore, the function of each component may be implemented in software, and a microprocessor may execute the software function corresponding to each component.

[0076] The entropy decoding unit 510 determines a current block to be decoded by decoding a bitstream generated by a video encoding device and extracting information related to block division, and extracts prediction information and information related to a residual signal required to restore the current block.

[0077] The entropy decoding unit 510 extracts information about 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. The entropy decoding unit 510 then determines the CTU as the top layer of a tree structure, i.e., the root node, and extracts division information about the CTU, thereby dividing the CTU using the tree structure.

[0078] For example, when splitting a CTU using the QTBTTT structure, first, the first flag QT_split_flag related to the split of QT is extracted, and each node is split into four nodes in the lower layer. Then, for a node corresponding to a leaf node of QT, the second flag MTT_split_flag related to the split of MTT and the split direction (vertical / horizontal) and / or split type (binary / ternary) information are extracted, and the corresponding leaf node is split into an MTT structure. As a result, each node below the leaf node of QT is recursively split into a BT or TT structure.

[0079] As another example, when splitting a CTU using the QTBTTT structure, a CU split flag split_cu_flag indicating whether or not the CU can be split may be extracted first, and if the corresponding block is split, a first flag QT_split_flag may be extracted. During the splitting process, each node may undergo zero or more repeated QT splits followed by zero or more repeated MTT splits. For example, a CTU may undergo an immediate MTT split, or may only undergo multiple QT splits.

[0080] As another example, when splitting a CTU using the QTBT structure, the first flag QT_split_flag related to the split of the QT is extracted and each node is split into four nodes in the lower layer. Then, for nodes corresponding to leaf nodes of the QT, the split flag split_flag indicating whether or not the node is further split by the BT and the split direction information are extracted.

[0081] Meanwhile, when the entropy decoding unit 510 determines the current block to be decoded using the division of the tree structure, it extracts information on a prediction type indicating whether the current block is intra-predicted or inter-predicted. If the prediction type information indicates intra-prediction, the entropy decoding unit 510 extracts syntax elements related to intra-prediction information (intra-prediction mode) of the current block. If the prediction type information indicates inter-prediction, the entropy decoding unit 510 extracts syntax elements related to inter-prediction information, i.e., a motion vector and information indicating a reference picture to which the motion vector refers.

[0082] In addition, the entropy decoding unit 510 extracts information related to quantization and information related to the quantized transform coefficients of the current block as information related to the residual signal.

[0083] The reordering unit 515 may rearrange the sequence of one-dimensional quantized transform coefficients entropy decoded by the entropy decoding unit 510 back into a two-dimensional coefficient array (i.e., a block) in the reverse order of the coefficient scanning order performed by the video encoding device.

[0084] The inverse quantization unit 520 inverse quantizes the quantized transform coefficients using a quantization parameter. The inverse quantization unit 520 may apply different quantization coefficients (scaling values) to the two-dimensionally arranged quantized transform coefficients. The inverse quantization unit 520 performs inverse quantization by applying a matrix of quantization coefficients (scaling values) from the video encoding device to the two-dimensional array of quantized transform coefficients.

[0085] The inverse transform unit 530 inversely transforms the dequantized transform coefficients from the frequency domain to the spatial domain to restore a residual signal, thereby generating a residual block for the current block.

[0086] In addition, when the inverse transform unit 530 inverse transforms only a portion (sub-block) of the transform block, it extracts a flag cu_sbt_flag indicating that only a sub-block of the transform block has been transformed, sub-block directionality (vertical / horizontal) information cu_sbt_horizontal_flag, and / or sub-block position information cu_sbt_pos_flag, restores the residual signal by inverse transforming the transform coefficients of the corresponding sub-block from the frequency domain to the spatial domain, and generates a final residual block for the current block by filling the residual signal with ``0'' values ​​for areas that are not inverse transformed.

[0087] In addition, when MTS is applied, the inverse transform unit 530 determines a transform function or transform matrix to be applied in the horizontal and vertical directions, respectively, using the MTS information mts_idx signaled from the video encoding device, and performs inverse transform on the transform coefficients in the transform block in the horizontal and vertical directions using the determined transform function.

[0088] The prediction unit 540 includes an intra prediction unit 542 and an inter prediction unit 544. The intra prediction unit 542 is activated when the prediction type of the current block is intra prediction, and the inter prediction unit 544 is activated when the prediction type of the current block is inter prediction.

[0089] The intra prediction unit 542 determines an intra prediction mode of the current block from among multiple intra prediction modes from a syntax element for the intra prediction mode extracted from the entropy decoding unit 510, and predicts the current block using reference pixels surrounding the current block according to the intra prediction mode.

[0090] The inter prediction unit 544 determines a motion vector of the current block and a reference picture to which the motion vector refers using syntax elements for the inter prediction mode extracted from the entropy decoding unit 510, and predicts the current block using the motion vector and the reference picture.

[0091] The adder 550 reconstructs a current block by adding a residual block output from the inverse transform unit and a predicted block output from the inter prediction unit or the intra prediction unit. The reconstructed pixels in the current block are used as reference pixels when intra predicting a block to be decoded later.

[0092] The loop filter unit 560 includes a deblocking filter 562, an SAO filter 564, and an ALF 566 as in-loop filters. The deblocking filter 562 deblocks the boundaries between reconstructed blocks to remove blocking artifacts caused by block-by-block decoding. The SAO filter 564 and the ALF 566 perform additional filtering on the reconstructed blocks after deblock filtering to compensate for differences between reconstructed pixels and original pixels caused by lossy coding. The filter coefficients of the ALF are determined using information on the filter coefficients decoded from the bitstream.

[0093] The reconstructed blocks filtered through the deblocking filter 562, the SAO filter 564, and the ALF 566 are stored in a memory 570. Once all blocks in a picture are reconstructed, the reconstructed picture is used as a reference picture for inter-predicting blocks in a picture to be coded later.

[0094] FIG. 6 is a diagram for explaining a method of generating a prediction block of a current block in a combined inter / intra prediction (CIIP) mode. The intra prediction mode has the same meaning as the intra prediction mode. The intra prediction mode and the intra prediction mode may be mixed. The inter prediction mode has the same meaning as the inter prediction mode. The inter prediction mode and the inter prediction mode may be mixed. The combined intra inter prediction mode has the same meaning as the combined intra inter prediction mode. The combined intra inter prediction mode and the CIIP mode may be mixed. In the CIIP mode, the inter prediction block is generated in the same manner as in the general merge mode. The intra prediction block is generated by applying a planar mode to reference pixels adjacent to the periphery of the current block. A final CIIP-based prediction block is generated by applying weights to the generated inter prediction block and intra prediction block.

[0095] Referring to FIG. 6, a reference block Pinter in a reference picture is derived based on a merge mode. A planar mode is applied to reference pixels adjacent to a current block to generate an intra-predicted block PPlanar. A weight is applied to the reference block Pinter and the intra-predicted block PPlanar to generate a CIIP-based predicted block PCIIP. The weight applied to the reference block Pinter corresponds to Winter. The weight applied to the intra-predicted block PPlanar corresponds to Wintra. The CIIP-based predicted block PCIIP is Generated using the formula TIFF2024533823000002.tif7161.

[0096] 7 is a diagram illustrating a neighboring block to be referenced for determining a weight in a combined intra-frame inter-frame prediction mode according to an embodiment of the present disclosure. In the combined intra-frame inter-frame prediction mode, the weight is determined in consideration of whether the neighboring blocks adjacent to the current block are coded in intra-frame prediction mode.

[0097] Referring to FIG. 7, in the CIIP mode, the weight is determined in consideration of whether an upper peripheral block A and a left peripheral block L adjacent to a current block are coded in an intra prediction mode.

[0098] 8 is a diagram illustrating a method for determining weights in combined intra-frame inter-frame prediction modes according to an embodiment of the present disclosure. If neighboring blocks adjacent to a current block code intra-prediction modes more, a large weight is assigned to the intra-prediction block. Conversely, if neighboring blocks adjacent to a current block code intra-prediction modes less, a small weight is assigned to the intra-prediction block.

[0099] Referring to FIG. 8, if the upper peripheral block A and the left peripheral block L of the current block in FIG. 7 code an intra prediction mode, a weight assigned to the intra prediction block corresponds to 3. If the upper peripheral block A codes an intra prediction mode and the left peripheral block L does not code an intra prediction mode, a weight assigned to the intra prediction block corresponds to 2. If the upper peripheral block A does not code an intra prediction mode and the left peripheral block L codes an intra prediction mode, a weight assigned to the intra prediction block corresponds to 2. If the upper peripheral block A does not code an intra prediction mode and the left peripheral block L does not code an intra prediction mode, a weight assigned to the intra prediction block corresponds to 1.

[0100] FIG. 9 is a diagram for explaining a method of applying a geometric partitioning mode to a 32×32 block according to an embodiment of the present disclosure. In the geometric partitioning mode, one coding unit is divided into two regions by a straight line partitioning boundary. Inter prediction is performed for the two divided regions using different motion information. Inter prediction blocks are generated for the two divided regions, respectively. A final prediction block of the geometric partitioning mode is generated by weighting the two generated inter prediction blocks. The geometric partitioning mode sets a partitioning boundary region defined by a straight line using an angle parameter and a distance parameter. The weighted average has the same meaning as the weighted sum.

[0101] 9, a 32×32 block is divided into two regions. Inter prediction is performed on each of the two divided regions. φ corresponds to an angle parameter. ρ corresponds to a distance parameter. A line dividing the 32×32 block is set using the angle parameter and the distance parameter.

[0102] 10a and 10b are diagrams for explaining angle parameters and distance parameters in the geometric division mode according to one embodiment of the present disclosure.

[0103] Referring to FIG. 10a, the angle parameters are defined to a total of 20 quantized angles by symmetrically dividing the range of 360 degrees within a coding unit.

[0104] Referring to Fig. 10b, the distance parameter is defined as four quantized distances. Of the total 80 division directions that occur by the combination of the angle parameter and the distance parameter, 10 overlapping division directions and 6 overlapping division directions between the binary tree division and the ternary tree division are excluded. Therefore, the geometric division mode uses a total of 64 division directions.

[0105] FIG. 11 is a diagram for explaining a lookup table of split direction information in a geometric partition mode according to an embodiment of the present disclosure. A combination of an angle parameter and a distance parameter is defined as a look-up table. Split direction information is transmitted for each coding unit. In the geometric partition mode, a merge candidate list for the geometric partition mode including only unidirectional motion information is constructed from a general merge candidate list. This simplifies the coding of motion information and reduces the number of possible combinations. A merge index used in each partition region is transmitted using the merge candidate list for the geometric partition mode.

[0106] Referring to FIG 11, split direction information (e.g., merge_gpm_partition_idx) is determined by information on an angle parameter (e.g., angleIdx) and information on a distance parameter (e.g., distanceIdx). merge_gpm_partition_idx according to a combination of angleIdx and distanceIdx is defined as a lookup table. The value of merge_gpm_partition_idx ranges from 0 to 63. merge_gpm_partition_idx is transmitted for each coding unit.

[0107] 12 is a diagram for explaining direction information of a motion vector difference according to an embodiment of the present disclosure. In the general merge mode, motion information of the merge candidate list is used as motion information of the current block, and no additional motion information is transmitted. The general merge mode has an advantage of minimizing the amount of bits, but has a limitation in that it cannot express optimal motion information. The merge mode with motion vector difference (Merge with Motion Vector Difference, MMVD) corrects motion information by adding a motion vector difference to a motion vector induced in the general merge mode.

[0108] To reduce complexity, the merge mode using motion vector difference uses only the first and second candidates in the candidate list of the general merge mode. One candidate is selected from the two candidates, and the motion vector of the selected candidate is set as the initial motion vector. The final motion vector is determined by adding the additionally transmitted motion vector difference information to the initial motion vector. The motion vector difference information includes direction information and distance information.

[0109] Referring to FIG. 12, the direction information of the motion vector difference can only be corrected in the vertical or horizontal direction. The direction information of the motion vector difference is composed of four directions. Index 0 is assigned to the direction information of the motion vector difference that is corrected by +1 in the horizontal direction and 0 in the vertical direction. Index 1 is assigned to the direction information of the motion vector difference that is corrected by -1 in the horizontal direction and 0 in the vertical direction. Index 2 is assigned to the direction information of the motion vector difference that is corrected by 0 in the horizontal direction and +1 in the vertical direction. Index 3 is assigned to the direction information of the motion vector difference that is corrected by 0 in the horizontal direction and -1 in the vertical direction.

[0110] FIG. 13 is a diagram illustrating distance information of a motion vector difference according to an embodiment of the present disclosure.

[0111] Referring to FIG. 13, the distance information of the motion vector difference is composed of luminance pixel distances, which are motion distances. The direction information of the motion vector difference is composed of eight motion distances. Index 0 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 1 / 4. Index 1 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 1 / 2. Index 2 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 1. Index 3 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 2. Index 4 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 4. Index 5 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 8. Index 6 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 16. Index 7 is assigned to the distance information of the motion vector difference whose luminance pixel distance is 32.

[0112] FIG. 14 is a diagram for explaining a flowchart for applying inter prediction according to an embodiment of the present disclosure.

[0113] Referring to FIG. 14, it is determined whether or not the SKIP mode is applied (S1410). If it is determined that the SKIP mode is applied (S1410-YES), the SKIP mode is applied (S1420). If it is determined that the SKIP mode is not applied (S1410-NO), it is determined whether or not the merge mode is applied (S1430). If it is determined that the merge mode is not applied (S1430-NO), the AMVP (Adaptive Motion Vector Prediction) mode is applied (S1440). If it is determined that the merge mode is applied (S1430-YES), it is determined whether or not the merge mode is applied to the sub-block (S1450). If it is determined that the merge mode is applied to the sub-block (S1450-YES), the merge mode is applied to the sub-block (S1460). Sub-block-based temporal motion vector prediction and AFFINE merge mode are applied. If it is determined that no merge mode applies to the sub-block (S1450-NO), then it is determined whether a general merge mode applies (S1470).

[0114] If it is determined that the general merge mode is not applied (S1470-NO), it is determined whether or not the CIIP mode is applied (S1480). If it is determined that the CIIP mode is not applied (S1480-NO), the geometric partition mode is applied (S1481). If it is determined that the CIIP mode is applied (S1480-YES), the CIIP mode is applied (S1482). If it is determined that the general merge mode is applied (S1470-YES), it is determined whether or not the merge mode using the motion vector difference is applied (S1490). If it is determined that the merge mode using the motion vector difference is applied (S1490-YES), the merge mode using the motion vector difference is applied (S1491). If it is determined that the merge mode using the motion vector difference is not applied (S1490-NO), the general merge mode is applied (S1492).

[0115] FIG. 15 is a diagram for explaining directional information of a motion vector difference according to another embodiment of the present disclosure. In order to improve the accuracy of a motion vector in the CIIP mode, an inter-predicted block is generated taking into account the motion vector difference. A predicted block of a current block is generated by weighted averaging the inter-predicted block generated in this way with an intra-predicted block. When an inter-predicted block is generated in the CIIP mode, a motion vector of a selected candidate from the merge mode candidate list is set as an initial motion vector. A final motion vector is determined by adding motion vector difference information to the initial motion vector. The inter-predicted block derived from the final motion vector is used as the inter-predicted block in the CIIP mode.

[0116] The motion vector difference information is used in combination with the four pieces of direction information described in Fig. 12 and the eight pieces of distance information described in Fig. 13. Diagonal direction information is added to the four pieces of direction information described in Fig. 12.

[0117] 15, the direction information of the motion vector difference is configured with a total of eight pieces of direction information by adding diagonal direction information to the four pieces of direction information described in FIG. 12. Index 0 is assigned to the direction information of the motion vector difference for correction by +1 in the horizontal direction and 0 in the vertical direction. Index 1 is assigned to the direction information of the motion vector difference for correction by -1 in the horizontal direction and 0 in the vertical direction. Index 2 is assigned to the direction information of the motion vector difference for correction by 0 in the horizontal direction and +1 in the vertical direction. Index 3 is assigned to the direction information of the motion vector difference for correction by 0 in the horizontal direction and -1 in the vertical direction. Index 4 is assigned to the direction information of the motion vector difference for correction by +1 in the horizontal direction and +1 in the vertical direction. Index 5 is assigned to the direction information of the motion vector difference for correction by -1 in the horizontal direction and +1 in the vertical direction. Index 6 is assigned to the direction information of the motion vector difference for correction by -1 in the horizontal direction and -1 in the vertical direction. Index 7 is assigned to the direction information of the motion vector difference for correction by +1 in the horizontal direction and -1 in the vertical direction. Therefore, the motion vector difference information is used in combination with the eight pieces of direction information and the eight pieces of distance information described with reference to FIG.

[0118] 16 is a diagram for explaining a syntax structure when a merge mode using a motion vector difference is applied to a combined intra-frame inter-frame prediction mode according to an embodiment of the present disclosure. When a merge mode using a motion vector difference is applied to a CIIP mode, motion vector difference information is additionally used for correcting motion information, so information on the motion vector difference is transmitted. A method of transmitting or parsing information on the motion vector difference is the same as a method of transmitting or parsing information on the motion vector difference in the merge mode.

[0119] Referring to FIG. 16, information indicating whether to use a merge mode using a motion vector difference in the CIIP mode (e.g., ciip_mmvd_enabled_flag) is signaled in a sequence parameter set (sps), a picture parameter set (pps), a picture header (ph), or a slice header (sh). Information indicating whether to use a merge mode using a motion vector difference in the CIIP mode for a current block (e.g., ciip_mmvd_merge_flag) is signaled. Distance information of the motion vector difference used in the CIIP mode (e.g., ciip_mmvd_distance_idx) and direction information of the motion vector difference used in the CIIP mode (e.g., ciip_mmvd_direction_idx) are signaled. ciip_mmvd_direction_idx represents the four direction information described in FIG. 12 or the eight direction information described in FIG. 15.

[0120] FIG. 17 is a diagram illustrating a syntax structure in a combined intra-inter prediction mode according to an embodiment of the present disclosure.

[0121] 17, in the CIIP mode, a merge index (e.g., merge_idx) may not be transmitted. The merge_idx is fixed to 0, and signaling of the merge_idx is omitted. This improves coding efficiency.

[0122] FIG. 18 is a diagram for explaining a syntax structure when a merge mode using a motion vector difference is applied to a geometric partition mode according to an embodiment of the present disclosure. An inter prediction block for two regions divided using a motion vector difference in the geometric partition mode is generated. The two generated inter prediction blocks are combined to generate a final prediction block for the geometric partition mode. The two generated inter prediction blocks are weighted averaged to generate a final prediction block for the geometric partition mode. Here, the weight value corresponds to an arbitrary value. When generating inter prediction blocks for two regions in the geometric partition mode, a motion vector of a candidate selected from a candidate list of the general merge mode for each divided region is set as an initial motion vector. A final motion vector is determined by adding the motion vector difference information and the initial motion vector. Two divided regions generate two inter prediction blocks using a final motion vector. The two inter prediction blocks are combined to generate a final prediction block for the geometric partition mode. The two inter prediction blocks are weighted averaged to generate a final prediction block for the geometric partition mode. Here, the weight value corresponds to an arbitrary value.

[0123] Different motion vector differentials are applied to two regions divided in the geometric partition mode. When different motion vector differentials are applied to two regions divided in the geometric partition mode, a final motion vector is determined by applying motion vector differential information to the two divided regions independently. Thus, motion vector differential information for each region is transmitted independently. A method of transmitting or analyzing information on the motion vector differential is the same as a method of transmitting or analyzing information on the motion vector differential in the merge mode.

[0124] 18, information indicating whether to use a merge mode using a motion vector differential in the geometric partitioning mode (e.g., gpm_mmvd_enabled_flag) is signaled in a sequence parameter set, a picture parameter set, a picture header, or a slice header. Information indicating whether to use a merge mode using a motion vector differential in a first region partitioned in the geometric partitioning mode (e.g., gpm_mmvd_merge_idx0_flag) is signaled. Information indicating whether to use a merge mode using a motion vector differential in a second region partitioned in the geometric partitioning mode (e.g., gpm_mmvd_merge_idx1_flag) is signaled.

[0125] Distance information of the motion vector difference used in the first divided region (e.g., gpm_mmvd_distance_idx_idx0) is signaled. Distance information of the motion vector difference used in the second divided region (e.g., gpm_mmvd_distance_idx_idx1) is signaled. Direction information of the motion vector difference used in the first divided region (e.g., gpm_mmvd_dricention_idx_idx0) is signaled. Direction information of the motion vector difference used in the second divided region (e.g., gpm_mmvd_direction_idx_idx1) is signaled. gpm_mmvd_direction_idx_idx0 and gpm_mmvd_direction_idx_idx1 represent the four direction information described in FIG. 12 or the eight direction information described in FIG. 15.

[0126] 19 is a diagram for explaining a process of deriving motion vector difference information of a second region divided from motion vector difference information of a first region divided in a geometric division mode according to an embodiment of the present disclosure. In the geometric division mode, the motion vector difference information of the second region is derived using the motion vector difference information of the first region. In the geometric division mode, the motion vector difference information of an arbitrary region is used to derive motion vector difference information of another region.

[0127] Referring to Figure 19, in the geometric partition mode, the current block is partitioned into a first region and a second region. The first region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV0. The second region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV1. The first region refers to a reference picture in the reference picture list LO, and the second region refers to a reference picture in the reference picture list L1. Here, MV0 and MV1 correspond to opposite directions.

[0128] The first region determines a final motion vector MV0' by adding the motion vector difference information MVdiff_L0 and the initial motion vector MV0. The second region determines a final motion vector MV1' by adding the motion vector difference information MVdiff_L1 and the initial motion vector MV1. MV0' and MV1' correspond to opposite directions. The motion vector difference information MVdiff_L0 of the first region and the motion vector difference information MVdiff_L1 of the second region also correspond to opposite directions. In this case, only the distance information of the motion vector difference for the first region and the direction information of the motion vector difference for the first region are signaled. The distance information of the motion vector difference for the second region and the direction information of the motion vector difference for the second region are not signaled. This is because the distance information of the motion vector difference for the second region is the same as the distance information of the motion vector difference for the first region, and the direction information of the motion vector difference for the second region corresponds to the opposite direction of the motion vector difference for the first region.

[0129] As an example, the first region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV0. The second region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV1. The first region refers to a reference picture in a reference picture list LO and the second region refers to a reference picture in a reference picture list L0, or the first region refers to a reference picture in a reference picture list L1 and the second region refers to a reference picture in a reference picture list L1. The first region and the second region refer to different reference pictures from the same reference picture list. Here, MV0 and MV1 have the same direction, and the distance between the current picture and the reference picture indicated by MV0 is different from the distance between the current picture and the reference picture indicated by MV1.

[0130] The first region determines a final motion vector MV0' by adding the motion vector difference information MVdiff_L0 and the initial motion vector MV0. The second region determines a final motion vector MV1' by adding the motion vector difference information MVdiff_L1 and the initial motion vector MV1. MV0' and MV1' have the same direction, but the distance between the current picture and the reference picture indicated by MV0' is different from the distance between the current picture and the reference picture indicated by MV1'.

[0131] The motion vector difference information MVdiff_L0 of the first region and the motion vector difference information MVdiff_L1 of the second region have the same direction information and different distance information. In this case, only the distance information of the motion vector difference for the first region and the direction information of the motion vector difference for the first region are signaled. The distance information of the motion vector difference for the second region and the direction information of the motion vector difference for the second region are not signaled. This is because the distance information of the motion vector difference for the second region is derived by scaling the distance information of the motion vector difference for the first region, and the direction information of the motion vector difference for the second region is the same as the direction information of the motion vector difference for the first region. Here, the scaling is performed considering the difference between the POC of the current picture and the POC of the reference picture in the reference picture list LO referred to by the first region, and the difference between the POC of the current picture and the POC of the reference picture in the reference picture list L0 referred to by the second region.

[0132] Figure 20 is a diagram illustrating a process of deriving motion vector difference information of a second region divided from motion vector difference information of a first region divided in a geometric division mode in another embodiment of the present disclosure.

[0133] Referring to FIG. 20, in the geometric partition mode, the current block is divided into a first region and a second region. The first region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV0. The second region sets the motion vector of a merge candidate selected from the merge candidate list as an initial motion vector MV1. The first region refers to a reference picture in the reference picture list LO, and the second region refers to a reference picture in the reference picture list L1. Here, MV0 and MV1 correspond to opposite directions, and the distance between the current picture and the reference picture indicated by MV0 is different from the distance between the current picture and the reference picture indicated by MV1.

[0134] The first region determines a final motion vector MV0' by adding the motion vector difference information MVdiff_L0 and the initial motion vector MV0. The second region determines a final motion vector MV1' by adding the motion vector difference information MVdiff_L1 and the initial motion vector MV1. MV0' and MV1' correspond to opposite directions, and the distance between the current picture and the reference picture indicated by MV0' is different from the distance between the current picture and the reference picture indicated by MV1'.

[0135] The motion vector difference information MVdiff_L0 of the first region and the motion vector difference information MVdiff_L1 of the second region have opposite direction information and different distance information. In this case, only the distance information of the motion vector difference for the first region and the direction information of the motion vector difference for the first region are signaled. The distance information of the motion vector difference for the second region and the direction information of the motion vector difference for the second region are not signaled. This is because the distance information of the motion vector difference for the second region is derived by scaling the distance information of the motion vector difference for the first region, and the direction information of the motion vector difference for the second region corresponds to the opposite direction information of the motion vector difference for the first region. Here, the scaling is performed considering the difference between the POC of the current picture and the POC of the reference picture in the reference picture list LO referred to by the first region, and the difference between the POC of the current picture and the POC of the reference picture in the reference picture list L1 referred to by the second region.

[0136] FIG. 21 is a diagram for explaining a syntax structure when a merge mode using a motion vector difference is applied to a geometric partition mode according to another embodiment of the present disclosure. The same motion vector difference is applied to two regions divided in the geometric partition mode. When the same motion vector difference is applied to two regions divided in the geometric partition mode, the same motion vector difference information is applied to the two divided regions to determine a final motion vector. As a result, one motion vector difference information is transmitted. A method for transmitting or analyzing the motion vector difference information is the same as a method for transmitting or analyzing the motion vector difference information in the merge mode.

[0137] 21, information indicating whether to use a merge mode using a motion vector difference in the geometric partition mode (e.g., gpm_mmvd_enabled_flag) is signaled in a sequence parameter set, a picture parameter set, a picture header, or a slice header. Information indicating whether to use a merge mode using a motion vector difference in two regions divided in the geometric partition mode (e.g., gpm_mmvd_merge_flag) is signaled.

[0138] Distance information of the motion vector difference used in the two divided regions (e.g., gpm_mmvd_distance_idx) is signaled. Direction information of the motion vector difference used in the two divided regions (e.g., gpm_mmvd_direction_idx) is signaled. gpm_mmvd_direction_idx corresponds to the four direction information described in FIG. 12 or the eight direction information described in FIG. 15. When a merge mode using a motion vector difference is used in two regions divided in the geometric partition mode, distance information of the motion vector difference and direction information of the motion vector difference are derived from gpm_mmvd_distance_idx and gpm_mmvd_direction_idx, respectively. The distance information of the motion vector difference and the direction information of the motion vector difference are equally applied to the motion vectors of the merge candidates of the two divided regions to correct the motion vectors. The same motion vector difference is applied to the two regions divided in the geometric partition mode to reduce complexity.

[0139] FIG. 22 is a diagram for explaining a flowchart for applying inter prediction by applying a merge mode using a motion vector difference according to an embodiment of the present disclosure.

[0140] Referring to FIG. 22, it is determined whether or not a merge mode is applied (S2210). If it is determined that the merge mode is not applied (S2210-no), the AMVP mode is applied (S2220). If it is determined that the merge mode is applied (S2210-yes), it is determined whether or not a merge mode is applied to the subblock (S2230). If it is determined that the merge mode is applied to the subblock (S2230-yes), the merge mode is applied to the subblock (S2240). Subblock-based temporal motion vector prediction and AFFINE merge mode are applied. If it is determined that the merge mode is not applied to the subblock (S2230-no), it is determined whether or not a general merge mode is applied (S2250).

[0141] If it is determined that the general merge mode is not applied (S2250-No), it is determined whether or not the CIIP mode is applied (S2260). If it is determined that the CIIP mode is not applied (S2260-No), it is determined whether or not the geometric partitioning mode using the motion vector difference is applied (S2261). If it is determined that the geometric partitioning mode using the motion vector difference is not applied (S2261-No), the geometric partitioning mode without considering the motion vector difference is applied (S2262). If it is determined that the geometric partitioning mode using the motion vector difference is applied (S2261-Yes), the geometric partitioning mode using the motion vector difference is applied (S2263). If it is determined that the CIIP mode is applied (S2260-Yes), it is determined whether or not the CIIP mode using the motion vector difference is applied (S2264). If it is determined that the CIIP mode using the motion vector difference is not applied (S2264-No), the CIIP mode without considering the motion vector difference is applied (S2265). If it is determined that the CIIP mode using the motion vector difference is to be applied (S2264-YES), the CIIP mode using the motion vector difference is applied (S2266).

[0142] If it is determined that the general merge mode is to be applied (S2250-YES), it is determined whether or not the general merge mode using motion vector difference is to be applied (S2270). If it is determined that the general merge mode using motion vector difference is to be applied (S2270-YES), the general merge mode using motion vector difference is applied (S2271). If it is determined that the general merge mode using motion vector difference is not to be applied (S2270-NO), the general merge mode not considering the motion vector difference is applied (S2272).

[0143] FIG. 23 is a diagram for explaining a flowchart for applying inter prediction by applying a merge mode using a motion vector difference according to another embodiment of the present disclosure.

[0144] Referring to FIG. 23, it is determined whether or not a merge mode is applied (S2310). If it is determined that the merge mode is not applied (S2310-no), the AMVP mode is applied (S2320). If it is determined that the merge mode is applied (S2310-yes), it is determined whether or not a merge mode is applied to the subblock (S2330). If it is determined that the merge mode is applied to the subblock (S2330-yes), the merge mode is applied to the subblock (S2340). Subblock-based temporal motion vector prediction and AFFINE merge mode are applied. If it is determined that the merge mode is not applied to the subblock (S2330-no), it is determined whether or not a general merge mode is applied (S2350).

[0145] If it is determined that the general merge mode is not applied (S2350-No), it is determined whether or not to use the motion vector difference (S2360). If it is determined that the motion vector difference is not used (S2360-No), it is determined whether or not to apply the CIIP mode (S2361). If it is determined that the CIIP mode is not applied (S2361-No), a geometric partitioning mode that does not consider the motion vector difference is applied (S2362). If it is determined that the CIIP mode is applied (S2361-Yes), a CIIP mode that does not consider the motion vector difference is applied (S2363). If it is determined that the motion vector difference is used (S2360-Yes), it is determined whether or not to apply the CIIP mode (S2364). If it is determined that the CIIP mode is not applied (S2364-No), a geometric partitioning mode that uses the motion vector difference is applied (S2365). If it is determined that the CIIP mode is applied (S2364-Yes), a CIIP mode that uses the motion vector difference is applied (S2366).

[0146] If it is determined that the general merge mode is to be applied (S2350-YES), it is determined whether or not the general merge mode using motion vector difference is to be applied (S2370). If it is determined that the general merge mode using motion vector difference is to be applied (S2370-YES), the general merge mode using motion vector difference is applied (S2371). If it is determined that the general merge mode using motion vector difference is not to be applied (S2370-NO), the general merge mode not considering the motion vector difference is applied (S2372).

[0147] FIG. 24 is a diagram illustrating a video decoding process according to one embodiment of the present disclosure.

[0148] Referring to FIG. 24, the decoding apparatus determines whether the CIIP mode or the geometric partition mode is applied (S2410). The decoding apparatus derives a motion vector from the merge candidate list (S2420). If the CIIP mode is applied, deriving a motion vector from the merge candidate list includes deriving a motion vector from a first merge candidate in the merge candidate list. If the geometric partition mode is applied, deriving a motion vector from the merge candidate list includes deriving a motion vector for each of the two split regions from the merge candidate list.

[0149] The decoding apparatus corrects a motion vector using the motion vector difference information (S2430). When the geometric partition mode is applied and the two divided regions use different motion vector difference information, the step of correcting the motion vector includes a step of correcting a motion vector for each of the two divided regions using different motion vector difference information. When the geometric partition mode is applied and the two divided regions use the same motion vector difference information, the step of correcting the motion vector includes a step of correcting a motion vector for each of the two divided regions using the same motion vector difference information. The motion vector difference information includes direction information and distance information. The direction information includes four pieces of information or eight pieces of information, and the distance information includes eight pieces of information. The decoding apparatus generates a prediction block of the current block based on the corrected motion vector (S2440).

[0150] When the CIIP mode is applied, the step of generating a predicted block of the current block includes a step of generating an inter predicted block for the current block based on the corrected motion vector, a step of generating an intra predicted block for the current block based on at least one reference block adjacent to the current block, and a step of generating a predicted block of the current block by weighted averaging the inter predicted block and the intra predicted block.When the geometric partition mode is applied, the step of generating a predicted block of the current block includes a step of generating an inter predicted block for each of the two partitioned regions using the corrected motion vector, and a step of combining or weighted averaging the inter predicted blocks for each of the two partitioned regions to generate a predicted block of the current block.

[0151] FIG. 25 is a diagram illustrating a video encoding process according to an embodiment of the present disclosure.

[0152] Referring to FIG. 25, the encoding apparatus determines whether to apply the CIIP mode or the geometric partition mode (S2510). The encoding apparatus determines a motion vector from the merge candidate list (S2520). If the CIIP mode is applied, determining a motion vector from the merge candidate list includes determining a motion vector from a first merge candidate in the merge candidate list. If the geometric partition mode is applied, determining a motion vector from the merge candidate list includes determining a motion vector for each of two regions divided from the merge candidate list.

[0153] The encoding apparatus corrects a motion vector using the motion vector difference information (S2530). When the geometric partition mode is applied and the two divided regions use different motion vector difference information, the step of correcting the motion vector includes a step of correcting a motion vector for each of the two divided regions using different motion vector difference information. When the geometric partition mode is applied and the two divided regions use the same motion vector difference information, the step of correcting the motion vector includes a step of correcting a motion vector for each of the two divided regions using the same motion vector difference information. The motion vector difference information includes direction information and distance information. The direction information includes four pieces of information or eight pieces of information, and the distance information includes eight pieces of information. The encoding apparatus generates a prediction block of the current block based on the corrected motion vector (S2540).

[0154] When the CIIP mode is applied, the step of generating a predicted block of the current block includes a step of generating an inter predicted block for the current block based on the corrected motion vector, a step of generating an intra predicted block for the current block based on at least one reference block adjacent to the current block, and a step of generating a predicted block of the current block by weighted averaging the inter predicted block and the intra predicted block.When the geometric partition mode is applied, the step of generating a predicted block of the current block includes a step of generating an inter predicted block for each of the two partitioned regions using the corrected motion vector, and a step of combining or weighted averaging the inter predicted blocks for each of the two partitioned regions to generate a predicted block of the current block.

[0155] In the flow charts / timing diagrams of this specification, each process is described to be executed sequentially, but this is merely an illustrative description of the technical idea of ​​one embodiment of the present disclosure. In other words, a person having ordinary skill in the art to which one embodiment of the present disclosure belongs can change the order described in the flow charts / timing diagrams and execute them, or execute one or more of the processes in parallel, without departing from the essential characteristics of one embodiment of the present disclosure, and therefore the flow charts / timing diagrams are not limited to a chronological order.

[0156] It should be understood that the exemplary embodiments described above can be embodied in many different ways. The functions or methods described in one or more of the examples may be embodied in hardware, software, firmware, or any combination thereof. It should be understood that the functional components described herein are labeled as "units" to specifically emphasize their implementation independence.

[0157] Meanwhile, various functions or methods described in the present embodiment may be embodied in instructions stored in a non-transitory recording medium that can be read and executed by one or more processors. Non-transitory recording media include, for example, any type of recording device in which data is stored in a form readable by a computer system. For example, non-transitory recording media include storage media such as erasable programmable read only memory (EPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSDs).

[0158] The above description is merely an illustrative example of the technical idea of ​​this embodiment, and a person having ordinary knowledge in the technical field to which this embodiment belongs may make various modifications and variations within the scope of the essential characteristics of this embodiment. Therefore, this embodiment is intended to explain, not limit, the technical idea of ​​this embodiment, and such an embodiment does not limit the scope of the technical idea of ​​this embodiment. The scope of protection of this embodiment should be interpreted according to the claims, and all technical ideas within the scope equivalent thereto should be interpreted as being included in the scope of rights of this embodiment. Coding Description

[0159] 122 Intra prediction unit 510 Entropy Decoding Unit 542 Intra Prediction Unit

Claims

1. determining whether a Combined Inter / Intra Prediction (CIIP) mode or a geometric partition mode is applied; deriving a motion vector from the merge candidate list; correcting the motion vector using motion vector difference information; generating a prediction block for a current block based on the corrected motion vector.

2. The video decoding method of claim 1 , wherein the motion vector differential information includes direction information and distance information.

3. The direction information includes four pieces of information or eight pieces of information, The video decoding method of claim 2 , wherein the distance information includes eight pieces of information.

4. When the CIIP mode is applied, the step of generating a prediction block of the current block includes: generating an inter-prediction block for the current block based on the compensated motion vector; generating an intra-predicted block for the current block based on at least one reference block neighboring the current block; and performing a weighted average of the inter-predicted block and the intra-predicted block to generate a predicted block of the current block.

5. When the CIIP mode is applied, the step of deriving a motion vector from the merge candidate list comprises: The video decoding method of claim 1 comprising deriving the motion vector from a first merging candidate in the merging candidate list.

6. When the geometric partitioning mode is applied, deriving a motion vector from the merge candidate list comprises: The video decoding method of claim 1 , comprising deriving a motion vector for each of two split regions from the merge candidate list.

7. When the two divided regions use different motion vector difference information, the step of correcting the motion vector includes: The video decoding method of claim 6 , further comprising: compensating a motion vector for each of the two divided regions using the different motion vector difference information.

8. When the two divided regions use the same motion vector difference information, the step of correcting the motion vector includes:

7. The video decoding method of claim 6, further comprising the step of: correcting the motion vectors for each of the two divided regions using the same motion vector difference information.

9. The step of generating a predicted block of the current block includes: generating an inter-prediction block for each of the two divided regions using the corrected motion vector; and The video decoding method of claim 7 , further comprising: combining or weighted averaging inter-predicted blocks for each of the two divided regions to generate a predicted block for the current block.

10. The step of generating a predicted block of the current block includes: generating an inter-prediction block for each of the two divided regions using the corrected motion vector; and The video decoding method of claim 8 , further comprising: combining or weighted averaging inter-predicted blocks for each of the two divided regions to generate a predicted block for the current block.

11. determining whether to apply a CIIP mode or a geometric partitioning mode; determining a motion vector from the merging candidate list; correcting the motion vector using motion vector difference information; generating a prediction block for a current block based on the corrected motion vector.

12. The video encoding method of claim 11 , wherein the motion vector differential information includes direction and distance information.

13. The direction information includes four pieces of information or eight pieces of information, The video encoding method of claim 12, wherein the distance information comprises eight pieces of information.

14. When the CIIP mode is applied, the step of generating a prediction block of the current block includes: generating an inter-prediction block for the current block based on the compensated motion vector; generating an intra-predicted block for the current block based on at least one reference block neighboring the current block; and performing a weighted average of the inter-predicted block and the intra-predicted block to generate a predicted block of the current block.

15. When the CIIP mode is applied, the step of determining a motion vector from the merge candidate list comprises: The video encoding method of claim 11 , comprising determining the motion vector from a first merging candidate in the list of merging candidates.

16. When the geometric partitioning mode is applied, determining a motion vector from the merge candidate list comprises: The video encoding method of claim 11, comprising determining a motion vector for each of two regions split from the merge candidate list.

17. When the two divided regions use different motion vector difference information, the step of correcting the motion vector includes: The video encoding method of claim 16, further comprising: compensating a motion vector for each of the two divided regions using the different motion vector difference information.

18. When the two divided regions use the same motion vector difference information, the step of correcting the motion vector includes:

17. The video encoding method of claim 16, further comprising the step of: correcting the motion vectors for each of the two divided regions using the same motion vector difference information.

19. The step of generating a predicted block of the current block includes: generating an inter-prediction block for each of the two divided regions using the corrected motion vector; and The video encoding method of claim 17 , further comprising: combining or weighted averaging inter-predicted blocks for each of the two divided regions to generate a predicted block for the current block.

20. 1. A computer-readable recording medium storing a bitstream generated by a video encoding method, the video encoding method comprising: determining whether to apply a CIIP mode or a geometric partitioning mode; determining a motion vector from the merging candidate list; correcting the motion vector using motion vector difference information; generating a prediction block for a current block based on the corrected motion vector.

Citation Information

Patent Citations

  • Motion vector difference sign prediction for video coding

    WO2023056158A1