Method for illumination compensation in geometric partitioning mode-based prediction

The method enhances video coding efficiency and quality by applying Local Illumination Compensation to prediction signals during geometric segmentation mode-based prediction, addressing illumination changes and improving compression performance.

WO2024237539A1PCT designated stage expired Publication Date: 2024-11-21HYUNDAI MOTOR CO LTD +2

Patent Information

Application Number
PCT/KR2024/006091
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-03
Filing Date
2024-05-07
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

Current video coding technologies, such as H.264/AVC, HEVC, and VVC, face challenges in efficiently compressing video data due to increasing size, resolution, and frame rate, leading to a need for improved coding efficiency and picture quality, particularly in handling local or global illumination changes during inter prediction using geometric segmentation modes.

Method used

A method is introduced that applies Local Illumination Compensation (LIC) to prediction signals of the current block by deriving LIC parameters to compensate for lighting changes between the current and reference frames, enhancing prediction efficiency during geometric segmentation mode-based prediction.

Benefits of technology

This approach improves video coding efficiency and quality by effectively addressing illumination changes, leading to better compression performance and picture quality in video coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024006091_21112024_PF_FP_ABST
    Figure KR2024006091_21112024_PF_FP_ABST
Patent Text Reader

Abstract

The present embodiment discloses a video coding method and apparatus using illumination compensation in geometric partitioning mode-based prediction. In the present embodiment, an image decoding apparatus decodes a GPM index and a candidate index, configures a GPM candidate list, and partitions the current block into two partitioned blocks according to the GPM index. The image decoding apparatus derives, from the GPM candidate list by using the candidate index, motion information regarding an inter-partitioned block that uses motion compensation and generates a reference block of the inter-partitioned block by using the motion information. After acquiring LIC parameters defining the linear relationship between the reference block, and the inter-partitioned block to which LIC has been applied, the image decoding apparatus generates a final prediction block of the inter-partitioned block by applying LIC to the reference block of the inter-partitioned block on the basis of the LIC parameters. The image decoding apparatus generates final prediction signals of the current block on the basis of the final prediction block of the inter-partitioned block.
Need to check novelty before this filing date? Find Prior Art

Description

A method for lighting compensation in geometric segmentation mode-based prediction

[0001] The present disclosure relates to a video coding method and device using illumination compensation in geometric segmentation mode-based prediction.

[0002] The content described below merely provides background information related to the present invention and does not constitute prior art.

[0003] Since video data has a large amount of data compared to voice data or still image data, it requires a lot of hardware resources, including memory, to store or transmit it without processing for compression.

[0004] Therefore, when storing or transmitting video data, an encoder is used to compress the video data and store or transmit it, and a decoder receives the compressed video data, decompresses it, and plays it back. Examples of such video compression technologies include H.264 / AVC, HEVC (High Efficiency Video Coding), and VVC (Versatile Video Coding), which improves encoding efficiency by about 30% compared to HEVC.

[0005] However, as the size, resolution, and frame rate of images are gradually increasing, and the amount of data that needs to be encoded is also increasing, a new compression technology that has better encoding efficiency and better image quality improvement than existing compression technologies is required.

[0006] In VVC, Geometric Partitioning Mode (GPM) is adopted as an inter-prediction technique to perform prediction based on more flexible partitioning than square and rectangular partitioning. In GPM, the encoder provides the decoder with a mode index indicating one of the predefined geometric partitioning modes and motion information for the two partitions. The decoder compensates for the motion of the two partitions using the transmitted information and weights the two partitions using a blending matrix according to the geometric partitioning mode, thereby generating the final prediction signals of the current block.

[0007] When generating prediction signals for the current block using motion compensation based on inter prediction, local or global illumination changes between the current frame and the reference frame may occur. LIC (Local Illumination Compensation) is a technique that can improve the prediction efficiency of the current block by compensating for changed illumination values. Therefore, to enhance video encoding efficiency and improve video quality, a method for efficiently utilizing illumination compensation during inter prediction based on GPM is needed.

[0008] The present disclosure aims to provide a video coding method and device for applying illumination compensation to prediction signals of a current block to compensate for local or global illumination changes between a current frame and a reference frame when predicting a current block according to a geometric partitioning mode.

[0009] According to an embodiment of the present disclosure, a method for restoring a current block, performed by a video decoding device, is provided, comprising: decoding a Geometric Partition Mode (GPM) index and a candidate index from a bitstream; constructing a GPM candidate list; dividing the current block into two partition blocks according to the geometric partition mode index; deriving motion information from the GPM candidate list using the candidate index for an inter partition block using motion compensation among the partition blocks, wherein there is at least one inter partition block among the partition blocks; generating a reference block of the inter partition block using the motion information; obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter partition block to which LIC is applied; and generating a final prediction block of the inter partition block by applying LIC to the reference block of the inter partition block based on the LIC parameters.

[0010] According to another embodiment of the present disclosure, a method for encoding a current block, performed by a video encoding apparatus, is provided, comprising: determining a Geometric Partition Mode (GPM) index and a candidate index; constructing a GPM candidate list; dividing the current block into two partition blocks according to the geometric partition mode index; deriving motion information from the GPM candidate list using the candidate index for an inter partition block using motion compensation among the partition blocks, wherein there is at least one inter partition block among the partition blocks; generating a reference block of the inter partition block using the motion information; obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter partition block to which the LIC is applied; and generating a final prediction block of the inter partition block by applying the LIC to the reference block of the inter partition block based on the LIC parameters.

[0011] According to another embodiment of the present disclosure, a method for providing video data to a video decoding device comprises: encoding the video data into a bitstream; and transmitting the bitstream to the video decoding device, wherein the encoding the video data comprises: determining a Geometric Partition Mode (GPM) index and a candidate index; constructing a GPM candidate list; dividing the current block into two partition blocks according to the geometric partition mode index; deriving motion information from the GPM candidate list using the candidate index for an inter partition block using motion compensation among the partition blocks, wherein there is at least one inter partition block among the partition blocks; generating a reference block of the inter partition block using the motion information; obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter partition block to which LIC is applied; And, the method comprises a step of generating a final prediction block of the inter-division block by applying the LIC to a reference block of the inter-division block based on the LIC parameters.

[0012] As described above, according to the present embodiment, when predicting a current block according to a geometric partitioning mode, a video coding method and device are provided that apply illumination compensation to prediction signals of a current block to compensate for local or global illumination changes between a current frame and a reference frame, thereby improving video encoding efficiency and enhancing video quality.

[0013] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure.

[0014] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT (QuadTree plus BinaryTree TernaryTree) structure.

[0015] FIGS. 3A and 3B are diagrams illustrating multiple intra prediction modes, including wide-angle intra prediction modes.

[0016] Figure 4 is an example diagram of the surrounding blocks of the current block.

[0017] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure.

[0018] Figure 6 is an example diagram showing block division according to geometric division.

[0019] Figures 7a and 7b are examples showing straight lines that divide a block into two.

[0020] Figure 8 is an example diagram showing a GPM (Geometric Partition Mode) merge list used for geometric motion prediction.

[0021] FIG. 9 is a block diagram illustrating in detail a portion of an image decoding device according to one embodiment of the present disclosure.

[0022] FIG. 10 is a flowchart showing the operation of a prediction execution unit according to one embodiment of the present disclosure.

[0023] FIG. 11 is a flowchart illustrating a method for performing local lighting compensation according to one embodiment of the present disclosure.

[0024] FIG. 12 is an exemplary diagram showing the definition of a template according to an angle index according to one embodiment of the present disclosure.

[0025] FIG. 13 is an exemplary diagram showing the definition of a template according to another embodiment of the present disclosure.

[0026] FIG. 14 is a flowchart illustrating a method for an image encoding device to encode a current block according to one embodiment of the present disclosure.

[0027] FIG. 15 is a flowchart illustrating a method for an image decoding device to restore a current block according to an embodiment of the present disclosure.

[0028] Hereinafter, embodiments of the present invention will be described in detail with reference to exemplary drawings. When designating components in each drawing, it should be noted that, where possible, identical components are given the same reference numerals, even if they appear in different drawings. Furthermore, in describing the present embodiments, detailed descriptions of related known structures or functions will be omitted if they are deemed to obscure the gist of the present embodiments.

[0029] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image encoding device and its subcomponents will be described with reference to the illustration in FIG. 1.

[0030] The video encoding device may be configured to include a picture segmentation unit (110), a prediction unit (120), a subtractor (130), a transformation unit (140), a quantization unit (145), a reordering 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).

[0031] Each component of the video encoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.

[0032] A single image (video) is composed of one or more sequences containing multiple pictures. Each picture is divided into multiple regions, and encoding is performed for each region. For example, a single picture is divided into one or more tiles and / or slices. Here, one or more tiles can be defined as a tile group. Each tile or slice is divided into one or more Coding Tree Units (CTUs). Each CTU is then divided into one or more Coding Units (CUs) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in a CTU is encoded as the syntax of the CTU. In addition, information commonly applied to all blocks within a single slice is encoded as the syntax of the slice header, and information applied to all blocks constituting one or more pictures is encoded in the Picture Parameter Set (PPS) or the picture header. Furthermore, information commonly referenced by multiple pictures is encoded in a Sequence Parameter Set (SPS). And, information commonly referenced by one or more SPS is encoded in a Video Parameter Set (VPS). In addition, information commonly applied to one tile or tile group may be encoded as syntax of a tile or tile group header. Syntaxes included in an SPS, PPS, slice header, tile or tile group header may be referred to as high level syntax.

[0033] The picture segmentation unit (110) determines the size of the CTU. Information about the size of the CTU (CTU size) is encoded as the syntax of SPS or PPS and transmitted to the image decoding device.

[0034] The picture segmentation unit (110) divides each picture constituting an image into a plurality of CTUs having a predetermined size, and then recursively divides the CTUs using a tree structure. A leaf node in the tree structure becomes a CU, which is a basic unit of encoding.

[0035] The tree structure may be a QuadTree (QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, a BinaryTree (BT) in which an upper node is divided into two lower nodes, or a TernaryTree (TT) in which an upper node is divided into three lower nodes in a 1:2:1 ratio, or a structure that mixes two or more of the QT structures, BT structures, and TT structures. For example, a QTBT (QuadTree plus BinaryTree) structure may be used, or a QTBTTT (QuadTree plus BinaryTree TernaryTree) structure may be used. Here, BTTT may be combined and referred to as a MTT (Multiple-Type Tree).

[0036] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT structure.

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

[0038] Alternatively, before encoding the first flag (QT_split_flag) indicating whether each node is split into four nodes of a 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 CU (coding unit), which is a basic unit of encoding. If the CU split flag (split_cu_flag) value indicates that the node is split, the video encoding device starts encoding from the first flag in the above-described manner.

[0039] As another example of a tree structure, when QTBT is used, there may be two types: a type that horizontally splits the block of the corresponding node into two blocks of the same size (i.e., symmetric horizontal splitting) and a type that vertically splits it (i.e., symmetric vertical splitting). A split flag (split_flag) indicating whether each node of the BT structure is split into blocks of a lower layer and split type information indicating the type of split are encoded by the entropy encoding unit (155) and transmitted to the image decoding device. Meanwhile, there may additionally be a type that splits the block of the corresponding node into two blocks of an asymmetrical shape. The asymmetric shape may include a shape that splits the block of the corresponding node into two rectangular blocks with a size ratio of 1:3, or a shape that splits the block of the corresponding node in a diagonal direction.

[0040] A CU can have various sizes depending on the QTBT or QTBTTT partitioning from the CTU. Hereinafter, the block corresponding to the CU to be encoded or decoded (i.e., the leaf node of the QTBTTT) is referred to as the "current block." Depending on the QTBTTT partitioning employed, the current block may be rectangular as well as square.

[0041] The prediction unit (120) predicts the current block and generates a prediction block. The prediction unit (120) includes an intra prediction unit (122) and an inter prediction unit (124).

[0042] In general, each current block within a picture can be predictively coded. Prediction of the current block can typically be performed using either intra-prediction (using data from the picture containing the current block) or inter-prediction (using data from a picture coded before the picture containing the current block). Inter-prediction encompasses both unidirectional and bidirectional prediction.

[0043] The intra prediction unit (122) predicts pixels within the current block using pixels (reference pixels) located around the current block within the current picture including the current block. There are multiple intra prediction modes depending on the prediction direction. For example, as shown in Fig. 3a, the multiple intra prediction modes may include two non-directional modes including the Planar mode and the DC mode, and 65 directional modes. The surrounding pixels to be used and the calculation formula are defined differently depending on each prediction mode.

[0044] For efficient directional prediction for a rectangular current block, directional modes (intra prediction modes 67 to 80 and -1 to -14) indicated by dotted arrows in Fig. 3b may be additionally used. These may be referred to as "wide-angle intra-prediction modes." In Fig. 3b, the arrows point to corresponding reference samples used for prediction, and do not indicate the prediction direction. The prediction direction is opposite to the direction indicated by the arrows. Wide-angle intra-prediction modes are modes that perform prediction in the opposite direction of a specific directional mode without additional bit transmission when the current block is rectangular. At this time, among the wide-angle intra-prediction modes, some wide-angle intra-prediction modes available for the current block may be determined based on the ratio of the width and height of the rectangular current block. For example, wide-angle intra prediction modes (intra prediction modes 67 to 80) having an angle less than 45 degrees are available when the current block is a rectangular shape whose height is smaller than its width, and wide-angle intra prediction modes (intra prediction modes -1 to -14) having an angle greater than -135 degrees are available when the current block is a rectangular shape whose width is larger than its height.

[0045] The intra prediction unit (122) can determine an intra prediction mode to be used to encode the current block. In some examples, the intra prediction unit (122) can encode the current block using multiple intra prediction modes and select an appropriate intra prediction mode to be used from the tested modes. For example, the intra prediction unit (122) can calculate bit-rate distortion values ​​using rate-distortion analysis for multiple tested intra prediction modes and select an intra prediction mode with the best bit-rate distortion characteristics among the tested modes.

[0046] The intra prediction unit (122) selects one intra prediction mode from among multiple intra prediction modes and predicts the current block using surrounding pixels (reference pixels) and an operation formula determined according to the selected intra prediction mode. Information about the selected intra prediction mode is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.

[0047] The inter prediction unit (124) generates a prediction block for the current block using a motion compensation process. The inter prediction unit (124) searches for a block most similar to the current block within reference pictures that were encoded and decoded before the current picture, and generates a prediction block for the current block using the searched block. Then, a motion vector (MV) corresponding to the displacement between the current block within the current picture and the prediction block within the reference picture is generated. Generally, motion estimation is performed on the luma component, and the motion vector calculated based on the luma component is used for both the luma component and the chroma component. The motion information including information on the reference picture used to predict the current block and information on the motion vector is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.

[0048] The inter prediction unit (124) may perform interpolation on a reference picture or a reference block to improve prediction accuracy. That is, subsamples between two consecutive integer samples are interpolated by applying filter coefficients to a plurality of consecutive integer samples including the two integer samples. When a process of searching for a block most similar to the current block is performed on the interpolated reference picture, the motion vector can be expressed up to a precision in decimal units rather than a precision in integer sample units. The precision or resolution of the motion vector can be set differently for each target region to be encoded, such as a slice, tile, CTU, CU, etc. When such adaptive motion vector resolution (AMVR) is applied, information on the motion vector resolution to be 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 to each CU is signaled. Information on the motion vector resolution may be information indicating the precision of a differential motion vector, which will be described later.

[0049] Meanwhile, the inter prediction unit (124) can perform inter prediction using bi-prediction. In the case of bi-prediction, two reference pictures and two motion vectors indicating the block position most similar to the current block within each reference picture are used. The inter prediction unit (124) selects a first reference picture and a second reference picture from reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1), respectively, and searches for a block similar to the current block within each reference picture to generate a first reference block and a second reference block. Then, the first reference block and the second reference block are averaged or weighted averaged to generate a prediction block for the current block. Then, motion information including information on two reference pictures used to predict the current block and information on two motion vectors is transmitted to the entropy encoding unit (155). Here, reference picture list 0 may be composed of pictures that are before the current picture in display order among the restored pictures, and reference picture list 1 may be composed of pictures that are after the current picture in display order among the restored pictures. However, this is not necessarily limited to this, and restored pictures that are after the current picture in display order may be additionally included in reference picture list 0, and conversely, restored pictures that are before the current picture may be additionally included in reference picture list 1.

[0050] Various methods can be used to minimize the number of bits required to encode motion information.

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

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

[0053] As the surrounding blocks for deriving merge candidates, all or part of the left block (A0), the lower left block (A1), the upper block (B0), the upper right block (B1), and the upper left block (B2) adjacent to the current block within the current picture may be used, as illustrated in FIG. 4. In addition, a block located within a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as a merge candidate. For example, a block co-located with the current block within the reference picture or blocks adjacent to the block at the co-located block may be additionally used as a merge candidate. If the number of merge candidates selected by the method described above is less than a preset number, a 0 vector is added to the merge candidates.

[0054] The inter prediction unit (124) uses these surrounding blocks to construct a merge list containing a predetermined number of merge candidates. Among the merge candidates included in the merge list, the merge candidate to be used as motion information of the current block is selected and merge index information for identifying the selected candidate is generated. The generated merge index information is encoded by the entropy encoding unit (155) and transmitted to the video decoding device.

[0055] Merge Skip mode is a special case of merge mode. After quantization, when all transform coefficients for entropy encoding are close to zero, only neighboring block selection information is transmitted without transmitting residual signals. By utilizing merge skip mode, relatively high encoding efficiency can be achieved for low-motion images, still images, and screen content images.

[0056] Hereinafter, merge mode and merge skip mode are collectively referred to as merge / skip mode.

[0057] Another method for encoding motion information is Advanced Motion Vector Prediction (AMVP) mode.

[0058] In AMVP mode, the inter prediction unit (124) derives predicted motion vector candidates for the motion vector of the current block using neighboring blocks of the current block. As neighboring blocks used to derive predicted motion vector candidates, 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 (B2) adjacent to the current block in the current picture as shown in FIG. 4 may be used. In addition, a block located in a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as the neighboring block used to derive predicted motion vector candidates. For example, a block co-located with the current block in the reference picture or blocks adjacent to the block in the co-located block may be used. If the number of motion vector candidates is less than a preset number by the method described above, a 0 vector is added to the motion vector candidates.

[0059] The inter prediction unit (124) derives predicted motion vector candidates using the motion vectors of these surrounding blocks, and determines a predicted motion vector for the motion vector of the current block using the predicted motion vector candidates. Then, the predicted motion vector is subtracted from the motion vector of the current block to produce a differential motion vector.

[0060] The predicted motion vector can be obtained by applying a predefined function (e.g., median, mean, etc.) to the predicted motion vector candidates. In this case, the image decoding device also knows the predefined function. In addition, since the surrounding blocks used to derive the predicted motion vector candidates are blocks that have already been encoded and decoded, the image decoding device also already knows the motion vectors of the surrounding blocks. Therefore, the image encoding device does not need to encode information to identify the predicted motion vector candidates. Therefore, in this case, information about the differential motion vector and information about the reference picture used to predict the current block are encoded.

[0061] Alternatively, the predicted motion vector can be determined by selecting one of the predicted motion vector candidates. In this case, information for identifying the selected predicted motion vector candidate is additionally encoded, along with information about the differential motion vector and the reference picture used to predict the current block.

[0062] The subtractor (130) subtracts the prediction block generated by the intra prediction unit (122) or inter prediction unit (124) from the current block to generate a residual block.

[0063] The transformation unit (140) transforms residual signals within a residual block having pixel values ​​in a spatial domain into transform coefficients in a frequency domain. The transformation unit (140) may transform the residual signals within the residual block using the entire size of the residual block as a transformation unit, or may divide the residual block into a plurality of sub-blocks and use the sub-blocks as transformation units to perform the transformation. Alternatively, the residual signals may be transformed using only the transformation domain sub-block as a transformation unit by dividing the sub-blocks into two sub-blocks, that is, a transformation domain and a non-transform domain. Here, the transformation domain sub-block may be one of two rectangular blocks having a size ratio of 1:1 with respect to the horizontal axis (or vertical axis). In this case, a flag (cu_sbt_flag) indicating that only a sub-block has been converted, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag), and / or position information (cu_sbt_pos_flag) are encoded by the entropy encoding unit (155) and signaled to the image decoding device. In addition, the size of the conversion area sub-block may have a size ratio of 1:3 with respect to the horizontal axis (or vertical axis), and in this case, a flag (cu_sbt_quad_flag) distinguishing the corresponding division is additionally encoded by the entropy encoding unit (155) and signaled to the image decoding device.

[0064] Meanwhile, the transformation unit (140) can individually perform transformations on the residual block in the horizontal and vertical directions. For the transformation, various types of transformation functions or transformation matrices can be used. For example, a pair of transformation functions for horizontal transformation and vertical transformation can be defined as a Multiple Transform Set (MTS). The transformation unit (140) can select one transformation function pair with the best transformation efficiency among the MTS and transform the residual block in the horizontal and vertical directions, respectively. Information (mts_idx) on the transformation function pair selected among the MTS is encoded by the entropy encoding unit (155) and signaled to the image decoding device.

[0065] The quantization unit (145) quantizes the transform coefficients output from the transform unit (140) using quantization parameters and outputs the quantized transform coefficients to the entropy encoding unit (155). The quantization unit (145) may directly quantize a related residual block without transformation for a certain block or frame. The quantization unit (145) may also apply different quantization coefficients (scaling values) according to the positions of the transform coefficients within the transform block. The quantization matrix applied to the quantized transform coefficients arranged in two dimensions may be encoded and signaled to an image decoding device.

[0066] The rearrangement unit (150) can perform rearrangement of coefficient values ​​for quantized residual values.

[0067] The reordering unit (150) can change a two-dimensional coefficient array into a one-dimensional coefficient sequence by using coefficient scanning. For example, the reordering unit (150) can output a one-dimensional coefficient sequence by scanning from the DC coefficient to the coefficients of the high-frequency region by using a zig-zag scan or a diagonal scan. Depending on the size of the transformation unit and the intra prediction mode, a vertical scan that scans the two-dimensional coefficient array in the column direction or a horizontal scan that scans the two-dimensional block-shaped coefficients in the row direction may be used instead of the zig-zag scan. That is, depending on the size of the transformation unit and the intra prediction mode, the scanning method to be used may be determined among the zig-zag scan, the diagonal scan, the vertical scan, and the horizontal scan.

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

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

[0070] The inverse quantization unit (160) inversely quantizes the quantized transform coefficients output from the quantization unit (145) to generate transform coefficients. 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 restore the residual block.

[0071] An adder (170) adds the restored residual block and the predicted block generated by the prediction unit (120) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting the next block.

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

[0073] The deblocking filter (182) filters the boundaries between restored blocks to remove blocking artifacts caused by block-based encoding / decoding, and the SAO filter (184) and the ALF (186) perform additional filtering on the deblocking-filtered image. The SAO filter (184) and the ALF (186) are filters used to compensate for the differences between restored pixels and original pixels caused by lossy coding. The SAO filter (184) improves not only subjective image quality but also encoding efficiency by applying an offset in units of CTUs. In contrast, the ALF (186) performs block-based filtering, and compensates for distortion by applying different filters by distinguishing the edges and degrees of variation of the corresponding block. Information on filter coefficients to be used in the ALF can be encoded and signaled to an image decoding device.

[0074] The restored blocks filtered through the deblocking filter (182), SAO filter (184), and ALF (186) are stored in the memory (190). When all blocks within a picture are restored, the restored picture can be used as a reference picture for inter-predicting blocks within a picture to be encoded later.

[0075] The video encoding device can store the bitstream of encoded video data on a non-transitory storage medium or transmit it to the video decoding device using a communication network.

[0076] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image decoding device and its subcomponents will be described with reference to FIG. 5.

[0077] The video decoding device may be configured to include an entropy decoding unit (510), a rearrangement unit (515), an inverse quantization unit (520), an inverse transformation unit (530), a prediction unit (540), an adder (550), a loop filter unit (560), and a memory (570).

[0078] Similar to the video encoding device of FIG. 1, each component of the video decoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.

[0079] The entropy decoding unit (510) decodes the bitstream generated by the image encoding device to extract information related to block division, thereby determining the current block to be decoded, and extracts prediction information, information on residual signals, etc. required to restore the current block.

[0080] The entropy decoding unit (510) extracts information about the CTU size from the Sequence Parameter Set (SPS) or the Picture Parameter Set (PPS), determines the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, i.e., the root node, and the CTU is divided using the tree structure by extracting division information about the CTU.

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

[0082] As another example, when splitting a CTU using the QTBTTT structure, the CU split flag (split_cu_flag) indicating whether the CU is split is first extracted, and if the block is split, the 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 MTT split right away, or conversely, may undergo only multiple QT splits.

[0083] As another example, when splitting a CTU using the QTBT structure, the first flag (QT_split_flag) related to the splitting of QT is extracted, and each node is split into four nodes of the lower layer. Furthermore, for nodes corresponding to leaf nodes of QT, a split flag (split_flag) indicating whether to further split into BTs and splitting direction information are extracted.

[0084] Meanwhile, when the entropy decoding unit (510) determines the current block to be decoded by using the division of the tree structure, it extracts information on the 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 for 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 for inter-prediction information, i.e., information indicating a motion vector and a reference picture referenced by the motion vector.

[0085] Additionally, the entropy decoding unit (510) extracts information about the quantized transform coefficients of the current block as information related to quantization and information about residual signals.

[0086] The rearrangement unit (515) can change the sequence of one-dimensional quantized transform coefficients entropy-decoded in the entropy decoding unit (510) back into a two-dimensional coefficient array (i.e., block) in the reverse order of the coefficient scanning performed by the image encoding device.

[0087] The inverse quantization unit (520) inversely quantizes the quantized transform coefficients and inversely quantizes the quantized transform coefficients using the quantization parameters. The inverse quantization unit (520) may also apply different quantization coefficients (scaling values) to the quantized transform coefficients arranged in two dimensions. The inverse quantization unit (520) may perform inverse quantization by applying a matrix of quantized coefficients (scaling values) from an image encoding device to a two-dimensional array of quantized transform coefficients.

[0088] The inverse transform unit (530) inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals, thereby generating a residual block for the current block.

[0089] In addition, when the inverse transform unit (530) inversely transforms only a portion of a transform block (sub-block), it extracts a flag (cu_sbt_flag) indicating that only a sub-block of the transform block has been transformed, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag) of the sub-block, and / or position information (cu_sbt_pos_flag) of the sub-block, and inversely transforms the transform coefficients of the corresponding sub-block from the frequency domain to the spatial domain to restore residual signals, and fills “0” values ​​with residual signals for areas that have not been inversely transformed, thereby generating a final residual block for the current block.

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

[0091] The prediction unit (540) may include 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.

[0092] The intra prediction unit (542) determines the intra prediction mode of the current block among a plurality of intra prediction modes from the syntax elements for the intra prediction mode extracted from the entropy decoding unit (510), and predicts the current block using reference pixels around the current block according to the intra prediction mode.

[0093] The inter prediction unit (544) uses the syntax elements for the inter prediction mode extracted from the entropy decoding unit (510) to determine the motion vector of the current block and the reference picture referenced by the motion vector, and predicts the current block using the motion vector and the reference picture.

[0094] An adder (550) adds the residual block output from the inverse transform unit (530) and the predicted block output from the inter prediction unit (544) or the intra prediction unit (542) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting a block to be decoded later.

[0095] The loop filter unit (560) may include a deblocking filter (562), an SAO filter (564), and an ALF (566) as in-loop filters. The deblocking filter (562) deblocks the boundaries between restored blocks to remove blocking artifacts caused by block-by-block decoding. The SAO filter (564) and the ALF (566) perform additional filtering on restored blocks after deblocking filtering to compensate for differences between restored pixels and original pixels caused by lossy coding. The filter coefficients of the ALF are determined using information about filter coefficients decoded from the non-stream.

[0096] The restored blocks filtered through the deblocking filter (562), SAO filter (564), and ALF (566) are stored in the memory (570). When all blocks within a picture are restored, the restored picture is used as a reference picture for inter-predicting blocks within a picture to be encoded later.

[0097]

[0098] The present embodiment relates to encoding and decoding of images (videos) as described above. More specifically, the present invention provides a video coding method and device for applying illumination compensation to prediction signals of a current block to compensate for local or global illumination changes between the current frame and a reference frame when predicting the current block according to a geometric segmentation mode.

[0099] The following embodiments may be performed by an inter prediction unit (124) within a video encoding apparatus. Additionally, they may be performed by an inter prediction unit (544) within a video decoding apparatus.

[0100] The video encoding device can generate signaling information related to the present embodiment in terms of rate distortion optimization in encoding the current block. The video encoding device can encode the signaling information using the entropy encoding unit (155) and then transmit it to the video decoding device. The video decoding device can decode the signaling information related to the decoding of the current block from the bitstream using the entropy decoding unit (510).

[0101] In the following description, the term "target block" may be used interchangeably with the current block or coding unit (CU). Alternatively, the term "target block" may also refer to a portion of a coding unit.

[0102] Also, a value of a flag being true indicates that the flag is set to 1. Also, a value of a flag being false indicates that the flag is set to 0.

[0103] I-1. Merge / Skip Mode and MMVD in Inter Prediction

[0104] Hereinafter, a method for constructing a merge candidate list of motion information in the merge / skip mode of inter prediction is described. To support the merge / skip mode, a video encoding device can construct a merge candidate list by selecting a preset number of merge candidates (e.g., 6).

[0105] The video encoding device searches for spatial merge candidates. The video encoding device searches for spatial merge candidates from surrounding blocks, as illustrated in FIG. 4. Up to four spatial merge candidates can be selected.

[0106] A video encoding device searches for temporal merge candidates. The video encoding device may add a co-located block as a temporal merge candidate, which is a block located in the same location as the current block within a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the target block is located. Only one temporal merge candidate may be selected.

[0107] A video encoding device searches for HMVP (History-based Motion Vector Predictor) candidates. The video encoding device can store the motion vectors of the previous h CUs (where h is a natural number) in a table and use them as merge candidates. The table size is 6, and the motion vectors of the previous CUs are stored in a First-in First Out (FIFO) manner. This indicates that up to 6 HMVP candidates are stored in the table. The video encoding device can set the most recent motion vectors among the HMVP candidates stored in the table as merge candidates.

[0108] The video encoding device searches for PAMVP (Pairwise Average MVP) candidates. The video encoding device can set the motion vector average of the first and second candidates in the merge candidate list as the merge candidate.

[0109] If the merge candidate list cannot be filled even after performing all of the above-described search processes (i.e., if the preset number cannot be filled), the video encoding device adds a zero motion vector as a merge candidate.

[0110] In terms of optimizing encoding efficiency, a video encoding device can determine a merge index that indicates one candidate within a merge candidate list. The video encoding device can then derive a motion vector predictor (MVP) from the merge candidate list using the merge index, and then determine the MVP as the motion vector of the current block. Furthermore, the video encoding device can signal the merge index to a video decoding device.

[0111] The video encoding device uses the same motion vector transmission method as the merge mode in the skip mode, but does not transmit the residual block corresponding to the difference between the current block and the predicted block.

[0112] The method for constructing the aforementioned merge candidate list can be performed in the same manner by a video decoding device. The video decoding device can decode the merge index. The video decoding device can then derive an MVP from the merge candidate list using the merge index, and then determine the MVP as the motion vector of the current block.

[0113] Meanwhile, when using MMVD (Merge mode with Motion Vector Difference) technology, the video encoding device can derive the MVP from the merge candidate list using the merge index. For example, the first or second candidate in the merge candidate list can be used as the MVP. In addition, in terms of optimizing encoding efficiency, the video encoding device determines a distance index and a direction index. The video encoding device can derive a motion vector difference (MVD) using the distance index and the direction index, and then reconstruct the motion vector of the current block by adding the MVD and the MVP. In addition, the video encoding device can signal the merge index, the distance index, and the direction index to the video decoding device.

[0114] The aforementioned MMVD technique can be performed in the same manner by the inter prediction unit (544) within the video decoding device. The video decoding device can decode a merge index, a size index, and a direction index. The video decoding device can construct a merge candidate list and then derive an MVP from the merge candidate list using the merge index. The video decoding device can derive an MVD using the size index and the direction index and then add the MVD and the MVP to restore the motion vector of the current block.

[0115] I-2. AMVP mode of inter prediction

[0116] The following embodiments are described with a focus on the inter prediction unit (124) within the image encoding device, but can also be performed by the inter prediction unit (544) within the image decoding device as described above.

[0117] Hereinafter, a method for constructing a candidate list of motion information in the Advanced Motion Vector Prediction (AMVP) mode of inter prediction is described. To support the AMVP mode, the inter prediction unit (124) within the video encoding device can construct a candidate list by selecting a preset number of candidates (e.g., 2).

[0118] The video encoding device searches for spatial candidates. The video encoding device searches for spatial candidates from surrounding blocks, as illustrated in FIG. 4. Up to two spatial candidates can be selected.

[0119] A video encoding device searches for temporal candidates. The video encoding device may add a block in the same position as the current block within a reference picture (which may or may not be the same as the reference picture used to predict the current block) as a temporal candidate, rather than the current picture where the target block is located. Only one temporal candidate may be selected.

[0120] If the candidate list cannot be filled even after performing all of the above-described search processes (i.e., if the preset number cannot be filled), the video encoding device adds a zero motion vector as a candidate.

[0121] In terms of optimizing encoding efficiency, a video encoding device can determine a candidate index that indicates one candidate within a candidate list. The video encoding device can then derive an MVP from the candidate list using the candidate index. Furthermore, in terms of optimizing encoding efficiency, the video encoding device determines a motion vector and then calculates an MVD by subtracting the MVP from the motion vector. Furthermore, the video encoding device can signal the candidate index and the MVD to a video decoding device.

[0122] The method for constructing the aforementioned AMVP candidate list can be performed in the same manner by the inter prediction unit (544) within the video decoding device. The video decoding device can decode the candidate index and the MVD. The video decoding device can derive the MVP from the candidate list using the candidate index. The video decoding device can reconstruct the motion vector of the current block by adding the MVD and the MVP.

[0123] I-3. Geometric Partitioning Mode (GPM) for Inter-Prediction

[0124] The following embodiments are described with a focus on an image decoding device, but can be implemented identically or similarly in an image encoding device.

[0125] In VVC (Versatile Video Coding), GPM (Geometric Partitioning Mode) uses prediction units of various shapes other than square shapes.

[0126] Figure 6 is an example diagram showing block division according to geometric division.

[0127] The video decoding device divides the current block into two parts based on a straight line perpendicular to a line segment having a constant angle (θ) and a constant distance (ρ) from the center of the block. Hereinafter, the two divided blocks are referred to as the first block partition and the second block partition. The term "block partition" is used interchangeably with the term "partitioned block." The straight line that divides the current block into two parts is referred to as the partitioning boundary.

[0128] Here, the center of the block represents a virtual position where the position at half the height of the block and the position at half the width of the block intersect with respect to the current block before division. The angle (θ) represents the angle rotated counterclockwise from the virtual horizontal axis passing through the center of the block to the line segment perpendicular to the division boundary. The distance (ρ) represents the distance between the center of the block and the division boundary.

[0129] As described above, the straight line dividing the block, i.e., the partition boundary, divides the current block into two different block partitions. The image decoding device uses the geometric partitioning described above to partition the current block into two blocks, a first block partition and a second block partition, based on the partition boundary, for performing separate predictions.

[0130] As an example, in a conventional GPM, information on segmentation boundaries, such as the example in FIG. 6, is signaled from an image encoding device to an image decoding device. The image decoding device can decode geometric block segments of the current block using the information on the parsed segmentation boundaries. Here, the information on the segmentation boundaries can include an angle (θ) and a distance (ρ) based on the center of the block. In addition, the image encoding device can additionally signal information indicating whether or not to apply the GPM to the image decoding device.

[0131] Hereinafter, information on the segmentation boundary according to the geometric segmentation mode is used interchangeably with geometric segmentation mode information, geometric segmentation information, or segmentation information.

[0132] Figures 7a and 7b are examples showing straight lines that divide a block into two.

[0133] As another example, a lookup table including combinations of angles and distances for dividing a current block into a first block division and a second block division, as shown in FIGS. 7A and 7B and Table 1, may be constructed. Thereafter, an index indicating a combination of angles and distances within the lookup table may be signaled from a video encoding device to a video decoding device. The combination of angles and distances corresponding to each index may be defined based on a fixed lookup table according to an agreement between the video encoding device and the video decoding device. As another example, the lookup table may be adaptively reconfigured according to a pre-agreed rule.

[0134] As described above, the geometric segmentation shape is based on the segmentation boundary, which is a straight line representing the division of the block. Information about this straight line may include an index distanceIdx representing the distance (ρ) from the center of the block to the segmentation boundary, and an index angleIdx representing the angle (θ) of the line segment perpendicular to the segmentation boundary. The index representing the angle of the line segment perpendicular to the segmentation boundary may be set as illustrated in Fig. 7a. In addition, 64 geometric segmentation shapes according to these angles and distances may be set as illustrated in Fig. 7b.

[0135] 64 geometric partition shapes can be signaled using the merge_gpm_partition_idx syntax, which is an index indicating a geometric partition shape, as shown in Table 1. That is, the shapes that divide the current block into the first block partition and the second block partition according to various angles and various distances can be efficiently signaled using a single index.

[0136]

[0137] The index distanceIdx derived from the example in Fig. 7b is a value that excludes the size of the current block. Therefore, the actual distance between a pixel in the current block and a straight line can be calculated using the size information of the current block, the index angleIdx indicating the angle, and the index distanceIdx indicating the distance. Here, the actual distance is a value expressed in pixel units.

[0138] Meanwhile, weights for each pixel within the current block can be calculated using the actual distance. For example, for a pixel within the first block partition, as the actual distance between the pixel and the straight line increases, the weight of the predictor of the first block partition, as described above, may increase, and the weight of the predictor of the second block partition may decrease. For pixels located on the partition boundary, the two predictors may use weights with the same value. In this case, the sum of the weights of the two predictors for a single pixel remains 1.

[0139] For two different block divisions of the current block within the current picture, the video decoding device performs prediction using each motion vector (mv0 or mv1). The video decoding device applies a weighted-sum-based blending process to the prediction block for the first block division and the prediction block for the second block division to generate a final prediction block of the current block.

[0140] In order to perform inter prediction of the current block, the video decoding device obtains a first prediction block using a motion vector for the first block division, and obtains a second prediction block using a motion vector for the second block division. At this time, the video decoding device, in the process of obtaining the prediction block for each block division, may obtain the prediction block in a form in which different weights are multiplied according to pixel positions as described above. In addition, the video decoding device may use a shift operation and a clipping operation in the process of generating a final prediction block from the prediction blocks in a form in which weights are multiplied.

[0141] Figure 8 is an example diagram showing a GPM (Geometric Partition Mode) merge list used for geometric motion prediction.

[0142] As in the example of Fig. 8, the video decoding device can select motion information for motion prediction from a merge list and then use the selected motion information.

[0143] However, unlike the existing block-based motion prediction technology, for geometric motion prediction, the image decoding device performs unidirectional prediction for one block division by limiting the prediction directionality, as illustrated in FIG. 8. This is because, compared to block-based motion prediction, when motion prediction is performed according to bidirectional prediction for each block division in geometric motion prediction, the memory bandwidth used for prediction doubles. Therefore, to efficiently solve the aforementioned memory bandwidth increase problem, a technology for limiting the prediction directionality for each block division can be applied.

[0144] In the case where the direction of prediction is limited for each block partition in geometric motion prediction, a GPM merge list for geometric motion prediction can be generated using an existing merge list rule. To generate a GPM merge list, the image decoding device first configures the merge list as described above. Thereafter, the image decoding device can generate a GPM merge list for geometric motion prediction from the merge list according to the prediction direction and the order in the list. At this time, the image decoding device adds motion information in the L0 direction to the GPM merge list to generate a merge candidate for geometric motion prediction of the first block partition. In addition, the image decoding device can add motion information in the L1 direction to the GPM merge list to generate a merge candidate for geometric motion prediction of the second block partition. That is, the image decoding device can derive unidirectional motion information in one direction from the existing bidirectional motion information, and then add the derived motion information to the GPM merge list.

[0145] As in the example of Fig. 8, in the existing geometric motion prediction method, the image decoding device can directly use the merge candidates in the GPM merge list as motion information for motion prediction of the first block division and the second block division.

[0146] Meanwhile, the video decoding device can derive motion information related to GPM in the AMVP mode of inter prediction similarly to what was described above.

[0147] In the GPM of the ECM (Enhanced Compression Model) corresponding to Beyond VVC, the video decoding device generates prediction signals of one region among two split blocks using motion compensation, generates prediction signals of the other region using intra prediction, and then weights and adds the prediction signals of the two split blocks to generate final prediction signals. This GPM is called intra GPM. As described above, the two split blocks are defined as a first split block and a second split block, respectively. The video decoding device parses whether intra prediction is applied to the first split block, and if intra prediction is not applied to the first split block, parses whether intra prediction is applied to the second split block. On the other hand, if intra prediction is applied to the first split block, the video decoding device generates prediction signals of the second split block using motion compensation.

[0148] In ECM, GPM can apply MMVD to each segmented block (gpm_mmvd) and apply motion information compensation based on TM (Template Matching) (gpm_tm). At this time, the video decoding device can apply either gpm_mmvd or gpm_tm to a single CU (Coding Unit).

[0149] II. Local Illumination Compensation (LIC)

[0150] When generating prediction signals for the current block using motion compensation based on inter-prediction, local or global illumination changes between the current frame and the reference frame may occur. LIC (Local Illumination Compensation) is a technology that can improve prediction efficiency for the current block by performing illumination compensation according to changes in the image acquisition environment.

[0151] To effectively perform local illumination compensation, an image decoding device derives parameters representing a linear relationship between the surrounding L-shaped template of a current block and the surrounding L-shaped template of a reference block. For example, the parameters of the linear relationship can be derived based on the linear least square method. In this case, the surrounding L-shaped template of the current block exists in the original restoration area of ​​the current block. The image decoding device uses the parameters of the derived linear relationship to perform local illumination compensation of the current block based on the reference block, as shown in Equation 1.

[0152]

[0153] In Equation 1, α and β are parameters of the linear relationship, representing the slope and offset, respectively. P(x,y) represents a pixel within the reference block (i.e., a predicted pixel), and P'(x,y) represents a predicted pixel within the current block to which local illumination compensation has been applied.

[0154] As described above, local lighting compensation is applied to the current block, and a linear relationship is derived based on the surrounding reference pixels adjacent to the reference block and the surrounding reference pixels adjacent to the current block. If there are no available pixels among the surrounding reference pixels of the reference block, local lighting compensation may not be performed on the current block. If available pixels are not present on both the left and top of the reference block, but are present in a portion of the top or left, local lighting compensation may be performed using some of the available pixels.

[0155] The parameters α and β of the linear relationship used in local illumination compensation are calculated identically in both the image encoding device and the image decoding device. Therefore, the image encoding device may not separately transmit the parameters of the linear relationship to the image decoding device.

[0156] If the mode is merged and LIC is applied to a neighboring block selected according to a merge index, the video decoding device applies the LIC parameters of the corresponding block to the current block to perform LIC. If the mode is AMVP, a flag indicating whether LIC is performed is signaled, and the video decoding device derives the LIC parameters using the template of the current block and the template of the reference block. In addition, LIC is applied in case of unidirectional prediction, and if the current block is predicted according to CIIP (Combined Inter Intra Prediction), LIC is not applied. CIIP is a technology that generates a block according to intra prediction (i.e., an intra-prediction block) and a block according to inter prediction (i.e., an inter-prediction block) for the current block, and then weights and adds the intra-prediction block and the inter-prediction block to generate a final predicted block of the current block.

[0157] Additionally, LIC can be applied to bidirectional prediction blocks. If the mode is merged and LIC is applied to a neighboring block selected based on the merge index, the video decoding device performs LIC by applying the LIC parameters of the corresponding block to the current block. If the mode is AMVP, a flag indicating whether LIC is performed is signaled, and the video decoding device derives the LIC parameters using the template of the current block and the template of the reference block. In addition, LIC is not applied when BDOF (Bi-directional Optical Flow) and DMVR (Decoder-side Motion Vector Refinement) are performed. BDOF is a method for improving bidirectional motion information using OF, and DMVR is a method for improving motion information based on BM (Bi-lateral Matching). If OBMC (Overlapped Block Motion Compensation) is performed and LIC is applied to a neighboring block of the current block, the video decoding device performs OBMC on the current block using the LIC parameters of the corresponding block. OBMC is a technology that creates a final prediction block by blending a prediction block based on original motion information and a prediction block based on motion information of surrounding blocks.

[0158] When bidirectional LIC is applied, the image decoding device generates final prediction signals P' according to mathematical expression 2.

[0159]

[0160] In Equation 2, w can be calculated using BCW_idx signaled at the CU level. Here, BCW (Bi-prediction with CU-level weight) represents a weight for adding bidirectional prediction blocks. P0' represents an L0 prediction block to which local lighting compensation has been applied, and P1' represents an L1 prediction block to which local lighting compensation has been applied. At this time, P0'(x, y) and P1'(x, y) can be generated iteratively as follows.

[0161] The template of the current block is defined as T, the template of the L0 prediction block as T0, and the template of the L1 prediction block as T1. The image decoding device derives parameters α0 and β0 that express T and T0 as a linear model, as in Equation 3.

[0162]

[0163] The template of the current block reinforced according to mathematical expression 3 is defined as T', and the image decoding device derives parameters α1 and β1 that express T' and T1 as a linear model as in mathematical expression 4.

[0164]

[0165] The template of the current block reinforced according to mathematical expression 4 is defined as T", and the image decoding device expresses T" and T0 as a linear model as in mathematical expression 5, thereby improving α0 and β0.

[0166]

[0167] Using α0', β0', α1, and β1 according to mathematical expressions 4 and 5, the image decoding device calculates P0'(x,y) and P1'(x,y), and generates final prediction signals of the current block according to mathematical expression 2.

[0168] The following embodiments are described with a focus on an image decoding device, but can be implemented identically or similarly in an image encoding device.

[0169] III. Embodiments according to the present disclosure

[0170] The video decoding device according to the present embodiment determines prediction and transformation units, and performs prediction and inverse transformation on the current block corresponding to the determined unit using the determined prediction technique and prediction mode, thereby finally generating a restoration block of the current block. The example illustrated in FIG. 9 may be performed by the inverse transformation unit (530), the prediction unit (540), and the adder (550) of the video decoding device. Meanwhile, the same operations as the example illustrated in FIG. 9 may be performed by the inverse transformation unit (165), the picture division unit (110), the prediction unit (120), and the adder (170) of the video encoding device. At this time, the video decoding device uses encoding information parsed from the bitstream, but the video encoding device may use encoding information set from a higher level in terms of minimizing rate distortion. Hereinafter, for convenience, the present embodiment will be described with reference to the video decoding device.

[0171] As shown in the example of FIG. 5, the prediction unit (540) includes an intra prediction unit (542) and an inter prediction unit (544) depending on the prediction technology, but as shown in FIG. 9, the prediction unit (540) may include all or part of the prediction unit determination unit (902), the prediction technology determination unit (904), the prediction mode determination unit (906), and the prediction execution unit (908).

[0172] If the color format of the input video is a YUV format (such as YUV420, YUV411, YUV422, YUV444), the video decoding device can perform prediction and restoration of the chroma component after performing prediction and restoration of the luma component. That is, the luma component and the chroma component can be sequentially restored by the components illustrated in Fig. 9. Meanwhile, if the color format of the input video is RGB, the video encoding device can perform color format conversion from RGB to YUV and then encode the converted video. Here, in the case of the YUV format, the color format represents the correspondence between the pixels of the luma component and the pixels of the chroma component.

[0173] The prediction unit determination unit (902) determines a prediction unit (PU). The prediction technique determination unit (904) determines a prediction technique (e.g., intra prediction, inter prediction, IBC (Intra Block Copy) mode, palette mode, etc.) for the prediction unit. The prediction mode determination unit (906) determines a detailed prediction mode for the prediction technique. The prediction execution unit (908) generates a prediction block of the current block according to the determined prediction mode.

[0174] The inverse transform unit (530) includes a transform unit determination unit (910) and an inverse transform execution unit (912). The transform unit determination unit (910) determines a transform unit (TU) for the inverse quantization signals of the current block, and the inverse transform execution unit (912) inversely transforms the transform unit expressed as the inverse quantization signals to generate residual signals.

[0175] An adder (550) adds the prediction block and residual signals to generate a restoration block. The restoration block is stored in memory and can be used to predict other blocks.

[0176] The prediction unit determined by the prediction unit determination unit (902) may be the current block or one of the sub-blocks into which the current block is divided. At this time, the prediction unit of the chroma component may have a size corresponding to the prediction unit of the luma component according to the color format. Alternatively, after the prediction units of the luma component and the chroma component are determined separately, prediction may be performed on the prediction unit of the chroma component.

[0177] The prediction technology determination unit (904) determines the prediction technology for each prediction unit. As described above, the prediction technology may be one of inter-prediction, intra-prediction, IBC mode, and palette mode. In this case, the prediction technology for the chroma component can be determined in the same manner as the prediction technology for the corresponding luma component, without separate signaling or parsing of information.

[0178] For example, if the prediction technique of the current block is not intra prediction, the video decoding device parses 1-bit flag information. For example, if the parsed flag indicates Skip mode, the video decoding device determines the prediction mode of the current block as the merge mode of inter prediction or the IBC merge mode. In the case of Skip mode, the video decoding device can use the prediction signals as restored signals without performing the inverse transformation process (i.e., without parsing the residual signals).

[0179] On the other hand, if the parsed flag does not indicate a Skip mode for the current block, the prediction technique determination unit (904) can parse a series of 1-bit flags to determine the prediction technique of the current block as one of techniques such as inter prediction, intra prediction, IBC mode, palette mode, etc.

[0180] For example, if Skip is not applied to the current block and the prediction technique is determined to be Inter-Prediction or IBC mode, the video decoding device parses a 1-bit flag. Depending on the parsed flag, the prediction mode of the current block can be determined as either General Merge mode or Advanced Motion Vector Prediction (AMVP) mode.

[0181] The prediction mode determination unit (906) determines a detailed prediction mode for the prediction technology.

[0182] For example, if the prediction technology of the current block is inter prediction, the prediction mode determining unit (906) can determine the general merge mode or AMVP mode as the prediction mode of the current block. In the general merge mode or AMVP mode, the image decoding device generates prediction blocks according to one or more motion compensations based on parsed motion information, and weights and combines the generated multiple prediction blocks to generate final prediction signals of the current block.

[0183] As another example, if the prediction technique of the current block is inter prediction, the prediction mode determining unit (906) may determine Geometric Partitioning Mode (GPM) as the prediction mode of the current block. In GPM, the image decoding device divides the current block into two or more partition blocks according to geometric partitioning, generates prediction blocks according to one or more motion compensations based on motion information of the parsed current block, and weights and combines the generated multiple prediction blocks to generate final prediction signals of the current block. For example, as described above, the current block may be divided into two partition blocks.

[0184] The prediction execution unit (908) generates a prediction block of the current block according to the determined prediction technology and prediction mode.

[0185] As an example, the prediction performing unit (908) generates a prediction block of the current block according to the prediction mode, and the adder (550) adds the prediction block of the current block and residual signals to generate a restoration block.

[0186] Meanwhile, the entropy decoding unit (510) can restore the quantized second-order transform coefficients when the second-order transform is applied. On the other hand, when the second-order transform is not applied, the entropy decoding unit (510) can restore the quantized first-order transform coefficients. The inverse quantization unit (520) can apply inverse quantization to the restored transform coefficients based on the quantization parameter to generate inverse quantized transform coefficients.

[0187] The transformation unit determination unit (910) of the inverse transformation unit (530) determines a transformation unit (TU) for the inverse quantized transformation coefficients. At this time, if one TU is divided into multiple sub-blocks, one sub-block can be used as a TU.

[0188] The inverse transform unit (530) can determine a non-separable second-order inverse transform kernel and a separable first-order inverse transform kernel when a second-order transform is applied. On the other hand, when the second-order transform is not applied, the inverse transform unit (530) can determine a separable first-order inverse transform kernel or a non-separable first-order inverse transform kernel.

[0189] Hereinafter, geometric segmentation mode, GPM segmentation mode, and GPM-based segmentation mode are used interchangeably.

[0190] FIG. 10 is a flowchart showing the operation of a prediction execution unit according to one embodiment of the present disclosure.

[0191] Hereinafter, the operation of the prediction performing unit (908) within the image decoding device according to the present disclosure will be described in detail. As an example, if the prediction technique of the current block is inter prediction and the current block is predicted according to GPM, the current block can be predicted according to the order illustrated in FIG. 10.

[0192] When the current block is predicted according to GPM, the video decoding device generates a general motion vector candidate list, and then generates a GPM (motion vector) candidate list using the general motion vector candidate list. The GPM candidate list may be the GPM merge list illustrated in Fig. 8. Alternatively, the GPM candidate list may be a list including candidates with bidirectional motion information.

[0193] The video decoding device checks whether gpm_mmvd is applied. If gpm_mmvd is not applied, the video decoding device checks whether intra-GPM, i.e., gpm_intra, is applied. If gpm_intra is not applied, the video decoding device checks whether gpm_tm is applied.

[0194] When gpm_mmvd is applied, the video decoding device decodes gpm_mmvd_idx, gpm_mode_idx, and merge_idx. After reordering the GPM partition modes based on TM, the video decoding device determines a geometric partition mode according to gpm_mode_idx, and determines a motion information predictor of the partition blocks using merge_idx and the GPM candidate list. Here, the TM-based reordering of the GPM partition modes calculates a TM cost for 64 partition modes according to Table 1, and rearranges the GPM partition modes according to the calculated cost. Accordingly, gpm_mode_idx indicates one of the rearranged partition modes. The video decoding device generates a motion information difference according to gpm_mmvd_idx, and adds the motion information difference and the motion information predictor to generate motion information. As described above, gpm_mmvd_idx may include a size index and a direction index. A video decoding device generates prediction blocks of partitioned blocks using motion information. The video decoding device decodes a weighted sum matrix index for blending, and then blends the prediction blocks of the partitioned blocks using a weighted sum matrix according to the weighted sum matrix index, thereby generating final prediction signals of the current block. Here, the GPM index gpm_mode_idx may be merge_gpm_partition_idx according to Table 1 and indicates one of the GPM partition modes. The merge index merge_index may indicate a motion information predictor within the GPM candidate list.

[0195] When gpm_intra is applied, the video decoding device decodes gpm_mode_idx and merge_idx. After reordering the partition modes according to GPM based on TM, the video decoding device determines a geometric partition mode according to gpm_mode_idx, and determines motion information of a partition block to which inter prediction is applied using merge_idx and a GPM candidate list. The video decoding device generates a prediction block of a partition block to which inter prediction is applied using the motion information. In addition, the video decoding device generates a prediction block of a partition block to which intra prediction is applied. The video decoding device decodes a weighted sum matrix index for blending, and then blends the prediction block of the inter-predicted partition block and the prediction block of the intra-predicted partition block using a weighted sum matrix according to the weighted sum matrix index, thereby generating final prediction signals of the current block.

[0196] When gpm_tm is applied, the video decoding device decodes gpm_mode_idx and merge_idx. After reordering the partition modes according to GPM based on TM, the video decoding device determines a geometric partition mode according to gpm_mode_idx and determines motion information of partition blocks using merge_idx and the GPM candidate list. The video decoding device improves motion information (e.g., motion vector (MV)) based on TM. The video decoding device generates prediction blocks of partition blocks using the improved motion information. The video decoding device decodes a weighted sum matrix index for blending, and then blends the prediction blocks of partition blocks using a weighted sum matrix according to the weighted sum matrix index, thereby generating final prediction signals of the current block.

[0197] If none of gpm_mmvd, gpm_intra, and gpm_tm apply, the video decoding device decodes gpm_mode_idx and merge_idx. After reordering the partition modes according to GPM based on TM, the video decoding device determines a geometric partition mode according to gpm_mode_idx and determines motion information of partition blocks using merge_idx and the GPM candidate list. The video decoding device generates prediction blocks of the partition blocks using the motion information. The video decoding device decodes a weighted sum matrix index for blending, and then blends the prediction blocks of the partition blocks using a weighted sum matrix according to the weighted sum matrix index, thereby generating final prediction signals of the current block.

[0198] The above describes the case where the prediction mode is merge mode, but it can be similarly applied when GPM is applied in AMVP mode.

[0199] FIG. 11 is a flowchart illustrating a method for performing local lighting compensation according to one embodiment of the present disclosure.

[0200] As an example, an image decoding device can apply LIC to the current block according to the sequence illustrated in FIG. 11. When LIC is applied, depending on whether LIC parameters are derived, the image decoding device can derive LIC parameters or inherit LIC parameters (of surrounding blocks). The image decoding device performs LIC on the current block using the LIC parameters.

[0201] As another example, if the current block is predicted according to GPM, the video decoding device can apply LIC to the split blocks on which motion compensation is performed after parsing gpm_mode_idx and merge_idx. Whether LIC is applied can be determined by signaling a 1-bit flag for each split block. Alternatively, if LIC is implicitly applied to previously restored blocks around the current block, LIC can be applied to the split blocks of the current block. As described above, gpm_mode_idx is an index indicating the GPM split mode of the current block, and merge_idx is a motion information index of the split blocks on which motion compensation is performed. For example, merge_idx_0 and merge_idx_1 can be used for the first split block and the second split block of the current block.

[0202] Hereinafter, the partition block on which motion compensation is performed is referred to as an inter-partition block.

[0203] Below, the inheritance and derivation of LIC parameters are described.

[0204] As an example, we describe a case where the current block is predicted according to the geometric partitioning mode, and only one of the two partitioned blocks produces a predicted block according to motion compensation (i.e., there is only one inter partitioned block).

[0205] As an example, if a surrounding block providing motion information according to merge_idx uses LIC in the prediction process, the image decoding device can inherit and use the LIC parameters α and β of the corresponding block.

[0206] For inheritance / derivation of LIC parameters, a template for each split block is defined according to the angle index angleIdx, as shown in the example of Fig. 12 and Table 2.

[0207]

[0208] In the example of Figure 12, a and b represent positive integers. A represents the top template of the current block, L represents the left template of the current block, and LT represents the top left of the current block. In Table 2, L+A represents the top left template of the current block, i.e., an L-shaped template.

[0209] As an example, if a neighboring block providing motion information according to merge_idx uses LIC in the prediction process and the neighboring block is located within the template of an inter-segmented block on which motion compensation is performed, the image decoding device can inherit the LIC parameters α and β of the block.

[0210] As another example, if a neighboring block providing motion information according to merge_idx uses LIC in the prediction process and the neighboring block is located within the template of a split block on which motion compensation is performed, the video decoding device can derive the LIC parameters α and β using the template of the current split block (i.e., the inter split block) and the template of the reference block according to the motion information. At this time, if the motion information is acquired from the LT position in the example of FIG. 12, the video decoding device can derive the LIC parameters α and β using the L+A template.

[0211] For example, the image decoding device can derive LIC parameters according to the least squares method, such as Equations 6 and 7.

[0212]

[0213]

[0214] In Equations 6 and 7, C(n) are pixel values ​​within the template of the current segmented block used for deriving LIC parameters, and R(n) are pixel values ​​within the template of the reference block used for deriving LIC parameters. N represents the number of pixels used for deriving LIC parameters.

[0215] As another example, the image decoding device can derive LIC parameters according to Equations 8 and 9.

[0216]

[0217]

[0218] In Equations 8 and 9, C max , C min represents the maximum and minimum values ​​in the template of the current split block, respectively, and R max , R min Indicate the maximum and minimum values ​​within the template of the reference block, respectively.

[0219] As an example, the image decoding device can derive LIC parameters using all pixels within the template of the current segmented block or reference block. Alternatively, the image decoding device can sample s (where s is a positive integer) of samples within the template and then derive LIC parameters using some of the sampled pixels. As an example, when performing sampling, the image decoding device can apply different sampling rates to the upper template and the left template of the current segmented block.

[0220] As an example, when bidirectional prediction is applied to the current split block, LIC parameters can be derived according to the following iterative method. Here, the current split block corresponding to the inter split block can be the first split block or the second split block. The template of the current split block is defined as T, the template of the L0 reference block of the same shape is defined as T0, and the template of the L1 reference block of the same shape is defined as T1. The image decoding device derives parameters α0 and β0 that express T and T0 as a linear model as in Equation 10.

[0221]

[0222] The template of the current segmented block reinforced according to mathematical expression 10 is defined as T', and the image decoding device derives parameters α1 and β1 that express T' and T1 as a linear model as in mathematical expression 11.

[0223]

[0224] The template of the current segmented block reinforced according to mathematical expression 11 is defined as T", and the image decoding device expresses T" and T0 as a linear model as in mathematical expression 12, thereby improving α0 and β0.

[0225]

[0226] Using α0', β0', α1 and β1 according to mathematical expressions 11 and 12, the image decoding device calculates P0'(x,y) and P1'(x,y) to which local illumination compensation is applied, and generates final prediction signals P' of the current split block according to mathematical expression 13.

[0227]

[0228] In mathematical expression 13, w can be calculated based on the BCW_idx of the surrounding blocks of the current block. At this time, the aspect ratio of the current block or a fixed value can be used as w.

[0229] As another example, when bidirectional prediction is applied to the current split block, LIC parameters can be derived according to the following iterative method. The template of the current split block is defined as T, the template of the L0 prediction block of the same shape as T0, and the template of the L1 prediction block of the same shape as T1. The image decoding device derives parameters α1 and β1 that express T and T1 as a linear model, as in Equation 14.

[0230]

[0231] According to mathematical expression 14, the template of the reinforced current segmented block is defined as T', and the image decoding device derives parameters α0 and β0 that express T' and T0 as a linear model as in mathematical expression 11.

[0232]

[0233] The template of the current segmented block reinforced according to mathematical expression 15 is defined as T", and the image decoding device expresses T" and T1 as a linear model as in mathematical expression 16, thereby improving α1 and β1.

[0234]

[0235] Using α0, β0, α1', and β1' according to Equations 15 and 16, the image decoding device calculates P0'(x,y) and P1'(x,y) with local illumination compensation applied, and generates final prediction signals of the current segmented block according to Equation 13. As described above, w in Equation 13 can be calculated based on BCW_idx of the neighboring blocks of the current block. At this time, the aspect ratio of the current block or a fixed value can be used as w.

[0236] As another example, when bidirectional prediction is applied to the current split block, the LIC parameters can be derived as follows. After defining the template of the current split block as T, the template of the L0 prediction block of the same shape as T0, and the template of the L1 prediction block of the same shape as T1, the image decoding device weights T0 and T1 according to Equation 17 to obtain a new template T 01 Creates.

[0237]

[0238] In Equation 17, k may be a predefined value. Alternatively, k may be derived based on the difference in Picture Order Count (POC) between the current frame and the reference frame. Alternatively, the image decoding device may apply the weighted sum to a portion of the template, rather than applying the weighted sum to the entire template.

[0239] The video decoding device is T according to mathematical expressions 6 and 7. 01 The LIC parameters between T and T can be calculated. Alternatively, the image decoding device can calculate T according to Equations 8 and 9. 01 LIC parameters between T and T can be calculated. The image decoding device can generate a prediction block by applying a weighted sum to the prediction blocks, and can generate the final prediction signals of the current split block by applying the LIC parameters to the weighted sum prediction block. At this time, the weighted sum of the prediction blocks can be performed in the same manner as in Equation 17.

[0240] As an example, if the current block is predicted according to GPM and bidirectional prediction can be applied to each split block, the image decoding device can omit the step of constructing a GPM (motion vector) candidate list as illustrated in FIG. 10.

[0241] As an example, with respect to the template of the current segmented block defined in FIG. 12, if the surrounding block is not located within the template of the segmented block on which motion compensation is performed, the image decoding device may not apply LIC to the segmented block.

[0242] As an example, the image decoding device can extend the geometric segmentation boundary of the current block to the template of the current block, as in the example of Fig. 13, and then define a template for each segmented block according to the extended segmentation boundary. In the example of Fig. 13, a and b are positive integers.

[0243] Additionally, if a surrounding block providing motion information according to merge_idx uses LIC in the prediction process, the image decoding device can apply LIC to the current split block as follows.

[0244] If the surrounding block is located within the template of the segmented block on which motion compensation is performed, the image decoding device can inherit the LIC parameters α and β of the block.

[0245] If the surrounding block is located within the template of the partition block on which motion compensation is performed, the video decoding device can use the template of the partition block on which motion compensation is performed and the template of the same shape of the reference block obtained from the motion information. That is, the video decoding device can derive LIC parameters between templates according to Equations 6 and 7. Alternatively, the video decoding device can derive LIC parameters between templates according to Equations 8 and 9.

[0246] If the surrounding block is not located within the template of the segmented block on which motion compensation is performed, the image decoding device may not apply LIC to the segmented block.

[0247] As an example, in order to perform LIC as described above, when constructing a motion vector candidate list of the current block according to the example of FIG. 8, the image decoding device can perform a redundancy check between surrounding restoration blocks of the current block to prevent duplicate candidates from being included in the candidate list.

[0248] The above describes a case where the current block is predicted using geometric partitioning mode, and only one of the two partition blocks generates a predicted block based on motion compensation. As another example, the current block is predicted using geometric partitioning mode, and both partition blocks generate predicted blocks based on motion compensation.

[0249] As an example, when LIC is applied only to the first split block, the image decoding device can inherit or derive the LIC parameters α0 and β0 of the first split block according to the process described above (i.e., the process of inheriting / deriving LIC parameters when only one of the two split blocks generates a prediction block according to motion compensation).

[0250] As another example, when LIC is applied only to the second split block, the image decoding device can inherit or derive the LIC parameters α1 and β1 of the second split block according to the process described above (i.e., the process of inheriting / deriving LIC parameters when only one of the two split blocks generates a prediction block according to motion compensation).

[0251] As another example, when LIC is applied to both the first split block and the second split block, the image decoding device can inherit or derive the LIC parameters α0, β0 of the first split block and the LIC parameters α1, β1 of the second split block according to the process described above (i.e., the process of inheriting / deriving LIC parameters when only one of the two split blocks generates a prediction block according to motion compensation).

[0252] As an example, when applying LIC to the first split block or the second split block, the image decoding device can generate final prediction signals of the current block as follows.

[0253] For a split block to which LIC is applied, the image decoding device performs LIC according to mathematical expression 18.

[0254]

[0255] In Equation 18, P(x,y) represents initial prediction signals, α and β represent LIC parameters, and P'(x,y) represents prediction signals to which LIC is applied. The image decoding device can generate final prediction signals of the current block by weighting and adding two prediction blocks (i.e., the prediction block of the split block to which LIC is applied and the prediction block of the remaining split blocks).

[0256] As another example, when LIC is applied to both the first partition area and the second partition area, the image decoding device can generate the final prediction signals of the current block as follows.

[0257] For two split blocks, the image decoding device performs LIC on each of the two split blocks according to Equation 18. Here, P(x, y) represents initial prediction signals, α and β represent LIC parameters, and P'(x, y) represents prediction signals to which LIC is applied. The image decoding device can generate final prediction signals of the current block by weighting the two prediction blocks (i.e., the prediction blocks of the two split blocks to which LIC is applied).

[0258] For example, if both the LIC parameters of the first split block and the LIC parameters of the second split block are inherited, the image decoding device performs LIC on each of the two split blocks using the inherited parameters. The image decoding device can generate the final prediction signals of the current block by weighting the two prediction blocks (i.e., the prediction blocks of the two split blocks to which LIC is applied based on the inherited LIC parameters).

[0259] As another example, the image decoding device can first weight and add the initial prediction blocks of the two split blocks to generate a prediction block of the current block, and then perform LIC on the prediction block generated according to the weighted sum to generate final prediction signals of the current block.

[0260] As an example, based on the reference template of each split block and the surrounding template of the current block as illustrated in FIG. 13, the image decoding device can derive LIC parameters according to Equations 6 and 7. Alternatively, the image decoding device can derive LIC parameters according to Equations 8 and 9. Using the derived LIC parameters, the image decoding device can perform LIC on the prediction block generated according to the weighted sum to generate final prediction signals of the current block.

[0261] As another example, in the process of configuring the template of the current block and the reference template for deriving the LIC parameter, the image decoding device does not perform weighted sum for blending between the templates of the split blocks. For example, the image decoding device can generate the template of the first split block and the template of the second split block based on the split boundary as illustrated in FIG. 13. As described above, the image decoding device first weights sums the initial prediction blocks of the two split blocks to generate the prediction block of the current block. However, in order to generate the reference template, the image decoding device does not perform blending of the template of the initial prediction block of the first split block and the template of the initial prediction block of the second split block.

[0262] Below, the performance of LIC according to the reordering of TM-based GPM partition modes is described.

[0263] When the current block is predicted according to GPM and reordering of TM-based GPM segmentation modes is performed, the image decoding device can configure a template for each GPM segmentation mode using the template defined in the example of FIG. 13 for the GPM segmentation modes according to Table 1. At this time, a weighted sum for blending between templates of segmented blocks is not performed during the process of configuring the template of the current block and the reference template.

[0264] For example, if there is a split block among the split blocks of the current block on which LIC is performed, the image decoding device inherits the LIC parameters of the split block from the surrounding blocks. The image decoding device can configure the template of the current block by performing LIC on the template of the split block using the inherited LIC parameters.

[0265] As an example, if there is a split block on which LIC is performed among the split blocks of the current block, the image decoding device may not perform LIC in the reordering process of TM-based GPM split modes.

[0266] Below, the performance of LIC according to TM-based MV correction is described.

[0267] For example, if the current block is predicted according to GPM and TM-based MV correction is performed, the image decoding device can perform TM-based MV correction after calculating LIC parameters. The image decoding device can inherit LIC parameters from surrounding blocks or derive LIC parameters using MV before correction.

[0268] As an example, when TM-based MV correction is performed after LIC parameters are calculated, the image decoding device can perform TM-based MV correction using a template on which LIC is performed.

[0269] Below, a method of applying LIC when the current block is predicted according to GPM using the cities of FIGS. 14 and 15 is described.

[0270] FIG. 14 is a flowchart illustrating a method for an image encoding device to encode a current block according to one embodiment of the present disclosure.

[0271] The video encoding device determines the GPM index and candidate index (S1400).

[0272] As illustrated in Table 1, the GPM index can determine the segmentation boundary according to the geometric segmentation mode using the angle index angleIdx and the distance index distanceIdx.

[0273] The video encoding device configures a GPM candidate list (S1402).

[0274] After generating a general motion vector candidate list, the video encoding device can generate a GPM (motion vector) candidate list using the general motion vector candidate list.

[0275] The video encoding device divides the current block into two split blocks according to the GPM index (S1404).

[0276] The video encoding device derives motion information from the GPM candidate list using a candidate index for an inter-segmented block that uses motion compensation among the segmented blocks (S1406).

[0277] Here, among the split blocks, there is at least one inter-split block. If there are two inter-split blocks, the video encoding device can derive motion information for each inter-split block using separate candidate indices.

[0278] The video encoding device generates a reference block of an inter-segmented block using motion information (S1408).

[0279] The video encoding device obtains LIC parameters (S1410). Here, the LIC parameters define a linear relationship between a reference block and an inter-segmented block to which LIC is applied.

[0280] As an example, if a surrounding block providing motion information uses LIC and the surrounding block is located within a template of an inter-segmented block, the video encoding device can inherit the LIC parameters from the surrounding block.

[0281] As another example, if a surrounding block providing motion information uses LIC and the surrounding block is located within a template of an inter-partitioned block, the video encoding device can derive LIC parameters using a least-squares method based on pixel values ​​within the template of the inter-partitioned block and pixel values ​​within the template of the reference block.

[0282] As another example, if a surrounding block providing motion information uses LIC and the surrounding block is located within the template of the inter-division block, the video encoding device can derive LIC parameters using the maximum pixel value and minimum pixel value within the template of the inter-division block and the maximum pixel value and minimum pixel value within the template of the reference block.

[0283] As an example, when bidirectional prediction is applied to an inter-split block, the video encoding device can calculate first LIC parameters indicating a linear relationship between the template of the inter-split block and the template of the first reference block, and second LIC parameters indicating a linear relationship between the template of the inter-split block and the template of the second reference block, using an iterative method based on the template of the inter-split block, the template of the first reference block, and the template of the second reference block.

[0284] As another example, when bidirectional prediction is applied to an inter-partitioned block, the video encoding device can generate a reference template by weighting the template of the first reference block and the template of the second reference block, and derive LIC parameters using the template of the inter-partitioned block and the reference template.

[0285] The video encoding device generates a final prediction block of the inter-division block by applying LIC to a reference block of the inter-division block based on LIC parameters (S1412).

[0286] As an example, when bidirectional prediction is applied to an inter-partitioned block, the video encoding device generates a first prediction block of the inter-partitioned block by applying LIC to a first reference block based on first LIC parameters, and generates a second prediction block of the inter-partitioned block by applying LIC to a second reference block based on second LIC parameters. The video encoding device can generate a final prediction block by weighting the first prediction block and the second prediction block.

[0287] As another example, when bidirectional prediction is applied to an inter-split block, the video encoding device generates a prediction block of the inter-split block by weighting the first reference block and the second reference block. The video encoding device can generate a final prediction block by applying LIC to the prediction block of the inter-split block based on LIC parameters.

[0288] The video encoding device generates final prediction signals of the current block based on the final prediction block of the inter-divided block (S1414).

[0289] For example, if there is one inter-split block among the split blocks, the video encoding device generates a prediction block of the remaining split blocks without using motion compensation. The video encoding device can generate the final prediction signals of the current block by blending the final prediction block of the inter-split block with the prediction blocks of the remaining split blocks.

[0290] As another example, when there are two inter-partitioned blocks, the video encoding device can generate final prediction signals of the current block by blending the final prediction blocks of the inter-partitioned blocks.

[0291] The video encoding device encodes the GPM index and candidate index (S1416).

[0292] Thereafter, the image encoding device generates residual signals by subtracting the final prediction signals of the current block from the current block. The image encoding device transforms / quantizes the residual signals to generate quantized transform coefficients and encodes the quantized transform coefficients.

[0293] FIG. 15 is a flowchart illustrating a method for an image decoding device to restore a current block according to an embodiment of the present disclosure.

[0294] The video decoding device decodes the GPM index and candidate index from the bitstream (S1500).

[0295] As illustrated in Table 1, the GPM index can determine the segmentation boundary according to the geometric segmentation mode using the angle index angleIdx and the distance index distanceIdx.

[0296] The video decoding device configures a GPM candidate list (S1502).

[0297] After generating a general motion vector candidate list, the video decoding device can generate a GPM (motion vector) candidate list using the general motion vector candidate list.

[0298] The video decoding device divides the current block into two split blocks according to the GPM index (S1504).

[0299] The video decoding device derives motion information from the GPM candidate list using a candidate index for an inter-segmented block that uses motion compensation among the segmented blocks (S1506).

[0300] Here, among the split blocks, there is at least one inter-split block. If there are two inter-split blocks, the video decoding device can derive motion information for each inter-split block using separate candidate indices.

[0301] The video decoding device generates a reference block of an inter-segmented block using motion information (S1508).

[0302] The video decoding device obtains LIC parameters (S1510). Here, the LIC parameters define a linear relationship between the reference block and the inter-segmented block to which LIC is applied.

[0303] The video decoding device generates a final prediction block of the inter-division block by applying LIC to a reference block of the inter-division block based on LIC parameters (S1512).

[0304] The video decoding device generates final prediction signals of the current block based on the final prediction block of the inter-divided block (S1514).

[0305] For example, if there is one inter-split block among the split blocks, the video decoding device generates a prediction block of the remaining split blocks without using motion compensation. The video decoding device can generate the final prediction signals of the current block by blending the final prediction block of the inter-split block with the prediction blocks of the remaining split blocks.

[0306] As another example, when there are two inter-partitioned blocks, the image decoding device can generate final prediction signals of the current block by blending the final prediction blocks of the inter-partitioned blocks.

[0307] The video decoding device decodes quantized transform coefficients from the bitstream and dequantizes / inversely transforms the quantized transform coefficients to restore the residual block. The video decoding device adds the final prediction signals of the current block and the residual block to generate a restored block of the current block.

[0308] Although the flowchart / timing diagram of this specification describes each process as being executed sequentially, this is merely an illustrative description of the technical idea of ​​one embodiment of the present disclosure. In other words, a person of ordinary skill in the art to which one embodiment of the present disclosure belongs may modify and apply various modifications and variations by changing the order described in the flowchart / timing diagram without departing from the essential characteristics of one embodiment of the present disclosure, or by executing one or more of the processes in parallel. Therefore, the flowchart / timing diagram is not limited to a chronological order.

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

[0310] Meanwhile, the various functions or methods described in this embodiment may also be implemented as instructions stored on a non-transitory storage medium that can be read and executed by one or more processors. Non-transitory storage media include, for example, all types of storage devices that store data in a form readable by a computer system. For example, non-transitory storage media include storage media such as erasable programmable read-only memory (EPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSDs).

[0311] The above description is merely an example of the technical idea of ​​the present embodiment, and those skilled in the art will appreciate that various modifications and variations can be made without departing from the essential characteristics of the present embodiment. Therefore, the present embodiments are not intended to limit the technical idea of ​​the present embodiment, but rather to explain it, and the scope of the technical idea of ​​the present embodiment is not limited by these embodiments. The scope of protection of the present embodiment should be interpreted by the claims below, and all technical ideas within a scope equivalent thereto should be interpreted as being included in the scope of rights of the present embodiment.

[0312] (Explanation of symbols)

[0313] 124: Inter Prediction Department

[0314] 544: Inter Prediction Department

[0315] 902: Prediction Unit Decision Unit

[0316] 904: Prediction Technology Decision Division

[0317] 906: Prediction mode decision unit

[0318] 908: Prediction Performance Department

[0319]

[0320] CROSS-REFERENCE TO RELATED APPLICATION

[0321] This patent application claims priority to Korean patent application No. 10-2023-0062654, filed in Korea on May 15, 2023, and Korean patent application No. 10-2024-0059176, filed in Korea on May 3, 2024, the entire contents of which are incorporated herein by reference.

Claims

1. A method for restoring a current block performed by a video decoding device, A step of decoding a Geometric Partition Mode (GPM) index and candidate index from a bitstream; Steps to construct a list of GPM candidates; A step of dividing the current block into two split blocks according to the geometric partitioning mode index; A step of deriving motion information from the GPM candidate list using the candidate index for an inter-partitioned block using motion compensation among the above-mentioned partitioned blocks, wherein at least one of the inter-partitioned blocks exists among the above-mentioned partitioned blocks; A step of generating a reference block of the inter-division block using the above motion information; A step of obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter-segmented block to which LIC is applied; and A step of generating a final prediction block of the inter-divided block by applying LIC to a reference block of the inter-divided block based on the above LIC parameters. A method, characterized by including:

2. In paragraph 1, The step of obtaining the above LIC parameters is: A method characterized in that when a peripheral block providing the above motion information uses LIC and the peripheral block is located within a template of the inter-divided block, the LIC parameters are inherited from the peripheral block.

3. In paragraph 1, The step of obtaining the above LIC parameters is: A method characterized in that, when a surrounding block providing the above motion information uses LIC and the surrounding block is located within the template of the inter-divided block, the LIC parameters are derived using the least-squares method based on pixel values ​​within the template of the inter-divided block and pixel values ​​within the template of the reference block.

4. In paragraph 1, The step of obtaining the above LIC parameters is: A method characterized in that, when a surrounding block providing the above motion information uses LIC and the surrounding block is located within the template of the inter-divided block, the LIC parameters are derived using the maximum pixel value and the minimum pixel value within the template of the inter-divided block and the maximum pixel value and the minimum pixel value within the template of the reference block.

5. In paragraph 1, The step of obtaining the above LIC parameters is: A method characterized in that, when bidirectional prediction is applied to the inter-split block, first LIC parameters indicating a linear relationship between the template of the inter-split block and the template of the first reference block, and second LIC parameters indicating a linear relationship between the template of the inter-split block and the template of the second reference block are calculated using an iterative method based on the template of the inter-split block, the template of the first reference block, and the template of the second reference block.

6. In paragraph 5, The step of generating the final prediction block is as follows: A step of generating a first prediction block of the inter-split block by applying LIC to the first reference block based on the first LIC parameters; A step of generating a second prediction block of the inter-split block by applying LIC to the second reference block based on the second LIC parameters; and A step of generating the final prediction block by weighting the first prediction block and the second prediction block. A method, characterized by including:

7. In paragraph 1, The step of obtaining the above LIC parameters is: A method characterized in that, when bidirectional prediction is applied to the inter-split block, a reference template is generated by weighting the template of the first reference block and the template of the second reference block, and the LIC parameters are derived using the template of the inter-split block and the reference template.

8. In paragraph 7, The step of generating the final prediction block is as follows: A step of generating a prediction block of the inter-segmented block by weighting the first reference block and the second reference block; and A step of generating the final prediction block by applying LIC to the prediction block of the inter-divided block based on the LIC parameters. A method, characterized by including:

9. In paragraph 3, A method, characterized in that the template of the inter-divided block is determined based on a division angle indicated by the geometric division mode index, and the template of the reference block has the same shape as the template of the inter-divided block.

10. In paragraph 3, The template of the above inter-split block is, A method characterized in that the partition boundary indicated by the geometric partition mode index is extended to the template of the current block, and then the partition boundary is determined based on the extended partition boundary, and the template of the reference block has the same shape as the template of the inter-partitioned block.

11. In paragraph 1, If there is one inter-split block among the above split blocks, A step of generating a prediction block of the remaining partition blocks without using motion compensation; and A step of generating final prediction signals of the current block by blending the final prediction block of the above inter-divided block and the prediction block of the remaining divided blocks. A method, characterized in that it further comprises:

12. In paragraph 1, When there are two inter-partitioned blocks, a step of blending the final prediction blocks of the inter-partitioned blocks to generate the final prediction signals of the current block. A method, characterized in that it further comprises:

13. A method for encoding a current block performed by a video encoding device, A step of determining a Geometric Partition Mode (GPM) index and candidate index; Steps to construct a list of GPM candidates; A step of dividing the current block into two split blocks according to the geometric partitioning mode index; A step of deriving motion information from the GPM candidate list using the candidate index for an inter-partitioned block using motion compensation among the above-mentioned partitioned blocks, wherein at least one of the inter-partitioned blocks exists among the above-mentioned partitioned blocks; A step of generating a reference block of the inter-division block using the above motion information; A step of obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter-segmented block to which LIC is applied; and A step of generating a final prediction block of the inter-divided block by applying the LIC to a reference block of the inter-divided block based on the LIC parameters. A method, characterized by including:

14. In paragraph 13, A step of encoding the geometric partitioning mode index and the candidate index. A method, characterized in that it further comprises:

15. In paragraph 13, If there is one inter-split block among the above split blocks, A step of generating a prediction block of the remaining partition blocks without using motion compensation; and A step of generating final prediction signals of the current block by blending the final prediction block of the above inter-divided block and the prediction block of the remaining divided blocks. A method, characterized in that it further comprises:

16. In paragraph 13, When there are two inter-partitioned blocks, a step of blending the final prediction blocks of the inter-partitioned blocks to generate the final prediction signals of the current block. A method, characterized in that it further comprises:

17. A method for providing video data to a video decoding device, A step of encoding the above video data into a bitstream; and A step of transmitting the above bitstream to the image decoding device Including, The step of encoding the above video data is: A step of determining a Geometric Partition Mode (GPM) index and candidate index; Steps to construct a list of GPM candidates; A step of dividing the current block into two split blocks according to the geometric partitioning mode index; A step of deriving motion information from the GPM candidate list using the candidate index for an inter-partitioned block using motion compensation among the above-mentioned partitioned blocks, wherein at least one of the inter-partitioned blocks exists among the above-mentioned partitioned blocks; A step of generating a reference block of the inter-division block using the above motion information; A step of obtaining Local Illumination Compensation (LIC) parameters, wherein the LIC parameters define a linear relationship between the reference block and the inter-segmented block to which LIC is applied; and A step of generating a final prediction block of the inter-divided block by applying the LIC to a reference block of the inter-divided block based on the LIC parameters. A method, characterized by including:

Citation Information

Patent Citations

  • Traffic monitoring method, apparatus, device and storage medium

    KR1020210091074A

  • Display device

    KR1020230151584A

  • Apparatus for supplying lubricant and looper equipment having the same

    KR1020240044215A

  • Method for processing video signal by using local illumination compensation (LIC) mode, and apparatus therefor

    WO2023033617A1

Cited By

  • Improved motion vector refinement for geometric partitioning for motion prediction

    WO2026130264A1

  • Apparatus and method for encoding and decoding image by using inter prediction

    WO2026192394A1