Video encoding / decoding method and device using geometric partitioning mode based on intra-prediction

The geometric partition mode in video encoding and decoding improves efficiency by dividing coding units into regions for independent predictions, addressing the limitations of existing compression technologies in handling increasing video data sizes and resolutions.

WO2024219792A1PCT designated stage expired Publication Date: 2024-10-24HYUNDAI MOTOR CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/005096
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-12
Filing Date
2024-04-16
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Current video compression technologies, such as H.264/AVC, HEVC, and VVC, face challenges in achieving higher coding efficiency and picture quality due to increasing video data sizes, resolutions, and frame rates, necessitating a more efficient compression method.

Method used

The proposed method employs a geometric partition mode for video encoding and decoding, which divides a coding unit into regions for independent inter prediction and generates an intra prediction mode combination candidate list based on the direction and offset of the geometric division boundary, improving coding and decoding efficiency.

Benefits of technology

This approach enhances video encoding and decoding efficiency by generating accurate prediction blocks for each region, leading to improved coding efficiency and higher picture quality compared to existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024005096_24102024_PF_FP_ABST
    Figure KR2024005096_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a video encoding / decoding method and device. A video decoding method according to the present invention may comprise the steps of: partitioning the current block into a first area and a second area; generating an intra-prediction mode combination candidate list for the first area and the second area on the basis of at least one of reference blocks adjacent to the current block, geometric partitioning boundaries, or third areas adjacent to the current block; determining the intra-prediction mode of the first area and the intra-prediction mode of the second area by using the intra-prediction mode combination candidate list; generating a prediction block for the first area and a prediction block for the second area by using the intra-prediction mode of the first area and the intra-prediction mode of the second area; and generating a prediction block of the current block by using the prediction block for the first area and the prediction block for the second area.
Need to check novelty before this filing date? Find Prior Art

Description

Video encoding / decoding method and device using geometric segmentation mode based on intra prediction

[0001] The present disclosure relates to a video encoding / decoding method and device using a geometric partitioning mode based on intra prediction, and more specifically, to a video encoding / decoding method and device that, when a geometric partitioning mode is applied to a current block, determines an intra prediction mode of each region using an intra prediction mode combination candidate list for each region divided to generate a prediction block of the current block.

[0002] The content described below merely provides background information related to the present embodiment 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] Geometric partitioning mode is a method that divides a single coding unit (CU) into two regions, independently performs inter-prediction on the two divided regions, and generates a prediction block for the current block by taking a weighted average of the two inter-prediction signals. When intra-prediction is applied to each region in geometric partitioning mode, it is necessary to construct a candidate list of intra-prediction mode combinations to improve encoding and decoding efficiency.

[0007] The present disclosure aims to provide a method and device for generating a candidate list of intra prediction mode combinations for each region by using the directionality and offset of geometric segmentation boundaries in a geometric segmentation mode.

[0008] In addition, the present disclosure aims to provide a method and device for determining an intra prediction mode of each region from a candidate list of intra prediction mode combinations for each region using an index parsed in a geometric segmentation mode.

[0009] In addition, the present disclosure aims to provide a method and device for improving video encoding / decoding efficiency.

[0010] In addition, the present disclosure aims to provide a recording medium storing a bitstream generated by the video encoding / decoding method or device of the present disclosure.

[0011] In addition, the present disclosure aims to provide a method and device for transmitting a bitstream generated by the video encoding / decoding method or device of the present disclosure.

[0012] According to the present disclosure, a video decoding method may include the steps of: dividing a current block into a first region and a second region; generating an intra prediction mode combination candidate list for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric division boundary, and a third region adjacent to the current block; determining an intra prediction mode of the first region and an intra prediction mode of the second region using the intra prediction mode combination candidate list; generating a prediction block for the first region and a prediction block for the second region using the intra prediction mode of the first region and the intra prediction mode of the second region; and generating a prediction block of the current block using the prediction block for the first region and the prediction block for the second region.

[0013] According to the present disclosure, a video encoding method may include the steps of: dividing a current block into a first region and a second region; generating an intra prediction mode combination candidate list for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric division boundary, and a third region adjacent to the current block; determining an intra prediction mode of the first region and an intra prediction mode of the second region using the intra prediction mode combination candidate list; generating a prediction block for the first region and a prediction block for the second region using the intra prediction mode of the first region and the intra prediction mode of the second region; and generating a prediction block of the current block using the prediction block for the first region and the prediction block for the second region.

[0014] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by a video encoding method or device according to the present disclosure can be provided.

[0015] In addition, according to the present disclosure, a recording medium storing a bitstream generated by a video encoding method or device according to the present disclosure can be provided.

[0016] In addition, according to the present disclosure, a recording medium storing a bitstream received and decoded by a video decoding device according to the present disclosure and used for restoring an image can be provided.

[0017] According to the present disclosure, a method and device for generating a candidate list of intra prediction mode combinations for each region using the directionality and offset of a geometric segmentation boundary in a geometric segmentation mode can be provided.

[0018] In addition, according to the present disclosure, a method and device for determining an intra prediction mode of each region from a candidate list of intra prediction mode combinations for each region using an index parsed in a geometric segmentation mode can be provided.

[0019] Additionally, according to the present disclosure, a method and device for improving video encoding / decoding efficiency can be provided.

[0020] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.

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

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

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

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

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

[0026] FIG. 6 is a diagram illustrating a method of applying a geometric partitioning mode to a 32x32 block according to one embodiment of the present disclosure.

[0027] FIG. 7A and FIG. 7B are diagrams for explaining angle parameters and distance parameters in geometric segmentation mode according to one embodiment of the present disclosure.

[0028] FIG. 8 is a diagram for explaining a lookup table of segmentation direction information in a geometric segmentation mode according to one embodiment of the present disclosure.

[0029] FIG. 9 is a flowchart for explaining restored peripheral blocks adjacent to a current block according to one embodiment of the present disclosure.

[0030] FIGS. 10A, 10B, 10C, and 10D are flowcharts illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to one embodiment of the present disclosure.

[0031] FIG. 11 is a drawing for explaining a current block and a template according to one embodiment of the present disclosure.

[0032] FIGS. 12a, 12b, 12c and 12d are diagrams illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to another embodiment of the present disclosure.

[0033] FIGS. 13a, 13b, 13c and 13d are diagrams illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to another embodiment of the present disclosure.

[0034] FIG. 14 is a flowchart illustrating a process of generating a prediction block of a current block using a geometric segmentation mode based on intra prediction according to one embodiment of the present disclosure.

[0035] FIG. 15 is a flowchart illustrating a process of generating a prediction block of a current block using a geometric segmentation mode based on intra prediction according to another embodiment of the present disclosure.

[0036] FIG. 16 is a flowchart illustrating a video decoding process according to one embodiment of the present disclosure.

[0037] FIG. 17 is a flowchart illustrating a video encoding process according to one embodiment of the present disclosure.

[0038] Hereinafter, some embodiments of the present disclosure 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 configurations or functions will be omitted if they are deemed to obscure the gist of the present embodiments. In this disclosure, the terms "image" and "video" may be used interchangeably.

[0039] 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.

[0040] 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).

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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).

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

[0047] 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.

[0048] 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.

[0049] 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.

[0050] 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.

[0051] 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).

[0052] 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.

[0053] 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.

[0054] 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.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

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

[0061] 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'.

[0062] 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.

[0063] 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.

[0064] 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.

[0065] 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.

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

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

[0068] 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.

[0069] 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.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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.

[0074] 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.

[0075] 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.

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

[0077] 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.

[0078] 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.

[0079] 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 a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and encodes intra prediction information (i.e., information about an intra prediction mode) or inter prediction information (information about an encoding mode of motion information (merge mode or AMVP mode), a merge index in the case of a merge mode, and a reference picture index and a differential motion vector in the case of an AMVP mode) according to the prediction type. In addition, the entropy encoding unit (155) encodes information related to quantization, that is, information about a quantization parameter and information about a quantization matrix.

[0080] 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.

[0081] 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.

[0082] 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.

[0083] 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.

[0084] 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.

[0085] 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.

[0086] 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.

[0087] 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).

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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.

[0105] 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.

[0106] 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.

[0107] The following embodiments may be performed by various components within an image encoding device. They may also be performed by various components within an image decoding device.

[0108] FIG. 6 is a diagram for explaining a method of applying a geometric partitioning mode to a 32x32 block according to an embodiment of the present disclosure. This diagram is for explaining a method of applying a geometric partitioning mode to a 32x32 block. Regarding the geometric partitioning mode, one coding unit can be partitioned into two regions by a straight-line partitioning boundary. Each of the two partitioned regions can perform inter-prediction using different motion information. Inter-prediction blocks for each of the two partitioned regions can be generated. A final prediction block of the geometric partitioning mode can be generated by weighting the two generated inter-prediction blocks. The geometric partitioning mode sets a partitioning boundary region defined by a straight line using an angle parameter and a distance parameter.

[0109] Referring to Fig. 6, a 32x32 block can be divided into two regions. Interpretation can be performed for each of the two divided regions. φ can correspond to an angular parameter. ρ can correspond to a distance parameter. A straight line can be established to divide the 32x32 block using the angular parameter and the distance parameter.

[0110] FIG. 7A and FIG. 7B are diagrams for explaining angle parameters and distance parameters in geometric segmentation mode according to one embodiment of the present disclosure.

[0111] Referring to Fig. 7a, the angle parameter can be defined as a total of 20 quantized angles by symmetrically dividing the 360-degree range within the encoding unit.

[0112] Referring to Fig. 7b, the distance parameter can be defined as four quantized distances. Among the total of 80 possible split directions resulting from the combination of the angle parameter and the distance parameter, 10 overlapping split directions and 6 overlapping split directions between binary tree splitting and ternary tree splitting can be excluded. Accordingly, the geometric splitting mode can utilize a total of 64 split directions.

[0113] FIG. 8 is a diagram illustrating a lookup table of segmentation direction information in geometric segmentation mode according to an embodiment of the present disclosure. A combination of angle parameters and distance parameters can be defined as a lookup table. Splitting direction information can be transmitted for each encoding unit. The geometric segmentation mode can construct a merge candidate list for the geometric segmentation mode that includes only unidirectional motion information from a general merge candidate list. Accordingly, the encoding of motion information can be simplified and the number of possible combinations can be reduced. The merge index used for each segmentation area can be transmitted using the merge candidate list for the geometric segmentation mode.

[0114] Referring to Fig. 8, the partition direction information (e.g., merge_gpm_partition_idx) can be determined based on information about the angle parameter (e.g., angleIdx) and information about the distance parameter (e.g., distanceIdx). The merge_gpm_partition_idx based on the combination of angleIdx and distanceIdx can be defined as a lookup table. The value of merge_gpm_partition_idx can range from 0 to 63. The merge_gpm_partition_idx can be transmitted for each coding unit.

[0115] GPM (Geometric Partition Mode) mode using inter-prediction and intra-prediction

[0116] When the GPM mode using inter-prediction and intra-prediction is applied, the final prediction sample is generated by weighting and adding the samples generated by performing inter-prediction and intra-prediction in each region. Here, the intra-prediction sample is generated using the intra-prediction mode combination candidate list and index. The size of the intra-prediction mode combination candidate list can be preset to 3. Available candidates of the intra-prediction mode combination candidate list can be a parallel mode for the geometric segmentation boundary, a perpendicular mode for the geometric segmentation boundary, and a planar mode for the geometric segmentation boundary. The width of the region on which the weighted sum is performed can be determined by the signaled index.

[0117] Spatial Geometric Partition Mode (SGPM) mode

[0118] SGPM mode is a mode that applies different intra prediction modes to each of the two divided regions. The video encoding device signals the partition direction information and an index to a candidate list of combinations of the two intra prediction modes for the two divided regions. A template is used to generate the candidate list of combinations of the two intra prediction modes, but in order to reduce the complexity of constructing the candidate list of combinations of the two intra prediction modes, 26 out of 64 partition modes are used, and among the 67 intra prediction modes, the intra prediction modes derived by the Most Probable Mode (MPM), Template-based Intra Mode Derivation (TIMD), and Decoder-side Intra Mode Derivation (DIMD), the parallel mode for the block boundary of the geometric partition mode, and the vertical mode for the block boundary of the geometric partition mode are used.

[0119] The candidates in the candidate list for the combination of two intra prediction modes are sorted in ascending order of the template-based Sum of Absolute Transformed Differences (SATD). The length of the candidate list can be set to 16. The video decoding device determines segmentation direction information using the signaled index, and determines intra prediction modes for two regions from the candidate list for the combination of two intra prediction modes using the signaled index. Here, the width of the region in which weighted sum is performed within the current block can be implicitly determined based on the height and width of the current block.

[0120] FIG. 9 is a flowchart for explaining restored peripheral blocks adjacent to a current block according to one embodiment of the present disclosure.

[0121] Referring to FIG. 9, the reconstructed neighboring blocks adjacent to the current block may be an A block, a B block, a C block, a D block, an E block, an F block, a G block, an H block, and an I block. When a geometric partitioning mode is applied to the current block, the video encoding device may search the A block, the B block, the C block, the D block, the E block, the F block, the G block, the H block, and the I block to generate an intra prediction mode combination candidate list for each divided region. Here, the search order may be an order predefined by the video encoding device and the video decoding device. When the current block is divided into region 0 and region 1, the intra prediction mode combination candidate list for each divided region may be a list including an intra prediction mode candidate list for region 0 and an intra prediction mode candidate list for region 1. The search order may be changed based on an aspect ratio of the current block. The video encoding device may search only blocks adjacent to the current region for each divided region.

[0122] If intra prediction is performed on the searched block, the video encoding device can add the intra prediction mode of the block to the intra prediction mode combination candidate list for each segmented region. If a geometric segmentation mode is applied to the searched block, the video encoding device can add the intra prediction mode corresponding to the directionality of the geometric segmentation boundary of the block to the intra prediction mode combination candidate list for each segmented region.

[0123] FIGS. 10A, 10B, 10C, and 10D are flowcharts illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to one embodiment of the present disclosure.

[0124] Referring to FIGS. 10A and 10B, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add an intra prediction mode corresponding to the direction of the geometric segmentation boundary and an intra prediction mode corresponding to a direction perpendicular to the direction of the geometric segmentation boundary to an intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0125] Referring to FIGS. 10c and 10d, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add an intra prediction mode corresponding to the direction of the geometric segmentation boundary and an intra prediction mode corresponding to a direction horizontal to the direction of the geometric segmentation boundary to an intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0126] FIG. 11 is a drawing for explaining a current block and a template according to one embodiment of the present disclosure.

[0127] Referring to Fig. 11, the template of the current block may exist at the left, lower left, upper left, upper, and upper right of the current block. Here, p, q, r, and s may be integers greater than or equal to 1. When the template of the current block is available, the video encoding device determines an MPM (Most Probable Mode) list using intra prediction modes of neighboring blocks adjacent to the current block. The video encoding device generates a prediction template by applying the directionality of all candidate modes in the MPM list to the reference pixels of the template. The sum of absolute transformed differences (SATD) between the pixels of the generated prediction template and the pixels of the restored template may be calculated. Among the candidate modes in the MPM list, the mode with the smallest sum of absolute transformed differences may be the intra prediction mode determined using the template of the current block. The video encoding device may add the intra prediction mode determined using the template of the current block to a candidate list of intra prediction mode combinations for each divided region.

[0128] FIGS. 12a, 12b, 12c and 12d are diagrams illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to another embodiment of the present disclosure.

[0129] Referring to Fig. 12a, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is added to an angle perpendicular to the direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0130] Referring to Fig. 12b, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is subtracted from the direction perpendicular to the direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0131] Referring to Fig. 12c, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is added to the horizontal direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0132] Referring to Fig. 12d, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is subtracted from the horizontal direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. The angle θ of the geometric segmentation boundary can be any angle.

[0133] Here, the offset d may be a predefined value or a value determined based on the size of the current block and / or the aspect ratio of the current block. The offset d may be determined based on the angle θ of the geometric segmentation boundary.

[0134] If a modified intra prediction mode corresponding to a direction in which an offset d is added to the angle perpendicular to the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the angle perpendicular to the direction of the segmentation boundary are unavailable intra prediction modes, the video encoding device may add an intra prediction mode having an angle closest to the directionality of the unavailable intra prediction mode to a candidate list of intra prediction mode combinations for each region. If both the modified intra prediction mode corresponding to a direction in which the offset d is added to the angle perpendicular to the direction of the segmentation boundary and the modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the angle perpendicular to the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode referring to an available reference sample to a candidate list of intra prediction mode combinations for each region.

[0135] If both a modified intra prediction mode corresponding to a direction in which an offset d is added to the angle perpendicular to the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the angle perpendicular to the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode that uses a reference sample that is closer to a specific region among the two intra prediction modes to a candidate list of intra prediction mode combinations for each region. If both a modified intra prediction mode corresponding to a direction in which an offset d is added to the angle perpendicular to the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the angle perpendicular to the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode determined based on an aspect ratio of a current block among the two intra prediction modes to a candidate list of intra prediction mode combinations for each region.

[0136] If a modified intra prediction mode corresponding to a direction in which an offset d is added to the horizontal angle of the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which an offset d is subtracted from the horizontal angle of the direction of the segmentation boundary are unavailable intra prediction modes, the video encoding device may add an intra prediction mode having an angle closest to the directionality of the unavailable intra prediction mode to a candidate list of intra prediction mode combinations for each region. If both the modified intra prediction mode corresponding to a direction in which an offset d is added to the horizontal angle of the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which an offset d is subtracted from the horizontal angle of the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode referring to an available reference sample to a candidate list of intra prediction mode combinations for each region.

[0137] If both a modified intra prediction mode corresponding to a direction in which an offset d is added to the horizontal angle from the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the horizontal angle from the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode that uses a reference sample that is closer to a specific region among the two intra prediction modes to a candidate list of intra prediction mode combinations for each region. If both a modified intra prediction mode corresponding to a direction in which an offset d is added to the horizontal angle from the direction of the segmentation boundary and a modified intra prediction mode corresponding to a direction in which the offset d is subtracted from the horizontal angle from the direction of the segmentation boundary are available, the video encoding device may add an intra prediction mode determined based on an aspect ratio of a current block among the two intra prediction modes to a candidate list of intra prediction mode combinations for each region.

[0138] FIGS. 13a, 13b, 13c and 13d are diagrams illustrating a method for generating an intra prediction mode combination candidate list for each region in a geometric segmentation mode according to another embodiment of the present disclosure.

[0139] Referring to Fig. 13a, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is subtracted from an angle perpendicular to the direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. Here, the angle θ of the geometric segmentation boundary can be an arbitrary angle, and the offset d can be 180°.

[0140] Referring to Fig. 13b, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is added to an angle perpendicular to the direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. Here, the angle θ of the geometric segmentation boundary can be an arbitrary angle, and the offset d can be 180°.

[0141] Referring to Fig. 13c, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is added to the horizontal direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. Here, the angle θ of the geometric segmentation boundary can be an arbitrary angle, and the offset d can be 180°.

[0142] Referring to FIG. 13d, when a geometric segmentation mode is applied to a current block, the current block can be segmented into region 0 and region 1. The video encoding device can add a changed intra prediction mode corresponding to a direction in which an offset d is subtracted from the horizontal direction of the geometric segmentation boundary to the intra prediction mode candidate list for each region. Here, the angle θ of the geometric segmentation boundary can be an arbitrary angle, and the offset d can be 180°.

[0143] If the changed intra prediction mode corresponding to the direction in which an offset of 180° is added or subtracted from the direction perpendicular to the direction of the segmentation boundary is an unusable intra prediction mode, the video encoding device can add an intra prediction mode having an angle closest to the directionality of the unusable intra prediction mode to the intra prediction mode combination candidate list for each region.

[0144] If the changed intra prediction mode corresponding to the direction in which an offset of 180° is added or subtracted from the horizontal direction of the segmentation boundary is an unusable intra prediction mode, the video encoding device can add an intra prediction mode with an angle closest to the directionality of the unusable intra prediction mode to the intra prediction mode combination candidate list for each region.

[0145] FIG. 14 is a flowchart illustrating a process of generating a prediction block of a current block using a geometric segmentation mode based on intra prediction according to one embodiment of the present disclosure.

[0146] Referring to FIG. 14, the video encoding device determines whether an intra-prediction-based geometric segmentation mode is applied to the current block (S1410). The intra-prediction-based geometric segmentation mode may be a mode in which intra-prediction is applied to all of the divided regions of the current block. If it is determined that the intra-prediction-based geometric segmentation mode is not applied to the current block (S1410-NO), the video encoding device performs inter-prediction on the current block (S1420). If it is determined that the intra-prediction-based geometric segmentation mode is applied to the current block (S1410-YES), the video encoding device generates an intra-prediction mode candidate list for each region (S1430). The video encoding device generates an intra-prediction-based geometric segmentation mode list (S1440). If the current block is divided into region 0 and region 1, the intra-prediction-based geometric segmentation mode list may be a list including intra-prediction mode candidates for region 0, intra-prediction mode candidates for region 1, and segmentation direction information. The video encoding device rearranges the intra prediction-based geometric segmentation mode list (S1450). The video encoding device can rearrange the intra prediction-based geometric segmentation mode list using a loss function based on the template of the current block. Here, the template of the current block is a restored region adjacent to the current block. The loss function may be SAD (Sum of Absolute Differences), SATD (Sum of Absolute Transformed Differences), etc.

[0147] The video encoding device parses an index for an intra prediction-based geometric segmentation mode (S1460). The video decoding device can determine an intra prediction mode for region 0, an intra prediction mode for region 1, and segmentation direction information from a list of intra prediction-based geometric segmentation modes using the index for the intra prediction-based geometric segmentation mode. The video encoding device determines a region on which weighted summation is performed (S1470). The video encoding device can determine a region on which weighted summation is performed using prediction samples of region 0 and region 1. The video encoding device can parse an index for a region on which weighted summation is performed. A weighted sum matrix can be determined based on the region on which weighted summation is performed. The video encoding device generates a prediction block of a current block (S1480).

[0148] FIG. 15 is a flowchart illustrating a process of generating a prediction block of a current block using a geometric segmentation mode based on intra prediction according to another embodiment of the present disclosure.

[0149] Referring to FIG. 15, the video encoding device determines whether an intra prediction-based geometric segmentation mode is applied to the current block (S1510). If it is determined that the intra prediction-based geometric segmentation mode is not applied to the current block (S1510-NO), the video encoding device performs inter prediction on the current block (S1520). If it is determined that the intra prediction-based geometric segmentation mode is applied to the current block (S1510-YES), the video encoding device parses an index for segmentation direction information (S1530). The segmentation direction information may be predefined as a table. The video encoding device generates an intra prediction mode candidate list for each region (S1540). The video encoding device parses an index for an intra prediction mode of region 0 (S1550). The video encoding device parses an index for an intra prediction mode of region 1 (S1560). The video decoding device can determine the intra prediction mode for each region using the index for the intra prediction mode of region 0 and the index for the intra prediction mode of region 1. In another embodiment, after step S1540 is performed, the video encoding device can parse the index for the segmentation direction information.

[0150] The video encoding device determines the region where the weighted sum is performed (S1570). The video encoding device can determine the region where the weighted sum is performed using prediction samples of region 0 and region 1. The video encoding device can parse an index for the region where the weighted sum is performed. The weighted sum matrix can be determined based on the region where the weighted sum is performed. The video encoding device generates a prediction block of the current block (S1580).

[0151] W, the weighted sum matrix B f And the prediction signal of the current block can be calculated using the prediction signal of each region. Here, the prediction signal of the current block, P G (i, j) can be expressed as in mathematical expression 1.

[0152]

[0153] Here, W B f (i, j) is a weighted sum matrix, P0 is a prediction signal for region 0, P1 is a prediction signal for region 1, and w can be an integer greater than or equal to 1. w can be a predefined value or can be determined based on the size of the current block.

[0154] Geometric segmentation mode based on intra prediction for chroma blocks

[0155] When an intra prediction-based geometric segmentation mode is applied to a chroma block, an image decoding device can generate a prediction signal of the chroma block by sampling an area where a weighted sum of luma blocks at a position corresponding to the chroma block is performed, segmentation direction information, an intra prediction mode of area 0, and an intra prediction mode of area 1 based on a color format.

[0156] FIG. 16 is a flowchart illustrating a video decoding process according to one embodiment of the present disclosure.

[0157] Referring to FIG. 16, the image decoding device divides the current block into a first region and a second region (S1610). The image decoding device generates an intra prediction mode combination candidate list for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric partitioning boundary, and a third region adjacent to the current block (S1620). The process of generating the intra prediction mode combination candidate list may include, if there are blocks among the reference blocks adjacent to the current block on which intra prediction has been performed, a process of adding intra prediction modes of blocks on which intra prediction has been performed to the intra prediction mode combination candidate list, and if there are blocks among the reference blocks adjacent to the current block on which geometric partitioning has been performed, a process of adding intra prediction modes based on geometric partitioning boundaries of blocks on which the geometric partitioning mode has been performed to the intra prediction mode combination candidate list.

[0158] The process of generating a candidate list of intra prediction mode combinations may include a process of adding a first intra prediction mode based on a geometric partitioning boundary of a current block and a second intra prediction mode corresponding to a direction perpendicular to a direction of the first intra prediction mode to the candidate list of intra prediction mode combinations. The process of generating a candidate list of intra prediction mode combinations may include a process of adding a first intra prediction mode based on a geometric partitioning boundary of a current block and a third intra prediction mode corresponding to a direction horizontal to a direction of the first intra prediction mode to the candidate list of intra prediction mode combinations.

[0159] The process of generating an intra prediction mode combination candidate list may include a process of generating one or more prediction pixels by applying one or more candidate modes in the MPM list of the current block to one or more reference pixels of a third region, a process of calculating variable values ​​based on differences between one or more prediction pixels and one or more reconstructed pixels of the third region, and a process of adding an intra prediction mode determined based on the variable values ​​to the intra prediction mode combination candidate list.

[0160] The process of generating a candidate list of intra prediction mode combinations may include determining a fourth intra prediction mode by subtracting or adding an offset in a direction perpendicular to the direction of the geometric segmentation boundary of the current block, and adding the fourth intra prediction mode to the candidate list of intra prediction mode combinations. The offset may be determined based on the angle of the geometric segmentation boundary, the size of the current block, and the aspect ratio of the current block.

[0161] The process of generating a candidate list of intra prediction mode combinations may include determining a fifth intra prediction mode by subtracting or adding an offset in a direction parallel to the direction of the geometric segmentation boundary of the current block, and adding the fifth intra prediction mode to the candidate list of intra prediction mode combinations. The offset may be determined based on the angle of the geometric segmentation boundary, the size of the current block, and the aspect ratio of the current block.

[0162] The process of generating a candidate list of intra prediction mode combinations may include a process of generating a candidate list of intra prediction mode combinations using split direction information and a process of rearranging the candidate list of intra prediction mode combinations using variable values ​​based on a third region of the current block.

[0163] The video decoding device determines the intra prediction mode of the first region and the intra prediction mode of the second region using the intra prediction mode combination candidate list (S1630). The video decoding device generates a prediction block for the first region and a prediction block for the second region using the intra prediction mode of the first region and the intra prediction mode of the second region (S1640). The video decoding device generates a prediction block of the current block using the prediction block for the first region and the prediction block for the second region (S1650).

[0164] FIG. 17 is a flowchart illustrating a video encoding process according to one embodiment of the present disclosure.

[0165] Referring to FIG. 17, an image encoding device divides a current block into a first region and a second region (S1710). The image encoding device generates an intra prediction mode combination candidate list for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric division boundary, and a third region adjacent to the current block (S1720). The process of generating the intra prediction mode combination candidate list may include, if there are blocks among reference blocks adjacent to the current block on which intra prediction has been performed, a process of adding intra prediction modes of blocks on which intra prediction has been performed to the intra prediction mode combination candidate list, and if there are blocks among reference blocks adjacent to the current block on which geometric division mode has been performed, a process of adding intra prediction modes based on geometric division boundaries of blocks on which geometric division mode has been performed to the intra prediction mode combination candidate list.

[0166] The process of generating a candidate list of intra prediction mode combinations may include a process of adding a first intra prediction mode based on a geometric partitioning boundary of a current block and a second intra prediction mode corresponding to a direction perpendicular to a direction of the first intra prediction mode to the candidate list of intra prediction mode combinations. The process of generating a candidate list of intra prediction mode combinations may include a process of adding a first intra prediction mode based on a geometric partitioning boundary of a current block and a third intra prediction mode corresponding to a direction horizontal to a direction of the first intra prediction mode to the candidate list of intra prediction mode combinations.

[0167] The process of generating an intra prediction mode combination candidate list may include a process of generating one or more prediction pixels by applying one or more candidate modes in the MPM list of the current block to one or more reference pixels of a third region, a process of calculating variable values ​​based on differences between one or more prediction pixels and one or more reconstructed pixels of the third region, and a process of adding an intra prediction mode determined based on the variable values ​​to the intra prediction mode combination candidate list.

[0168] The process of generating a candidate list of intra prediction mode combinations may include determining a fourth intra prediction mode by subtracting or adding an offset in a direction perpendicular to the direction of the geometric segmentation boundary of the current block, and adding the fourth intra prediction mode to the candidate list of intra prediction mode combinations. The offset may be determined based on the angle of the geometric segmentation boundary, the size of the current block, and the aspect ratio of the current block.

[0169] The process of generating a candidate list of intra prediction mode combinations may include determining a fifth intra prediction mode by subtracting or adding an offset in a direction parallel to the direction of the geometric segmentation boundary of the current block, and adding the fifth intra prediction mode to the candidate list of intra prediction mode combinations. The offset may be determined based on the angle of the geometric segmentation boundary, the size of the current block, and the aspect ratio of the current block.

[0170] The process of generating a candidate list of intra prediction mode combinations may include a process of generating a candidate list of intra prediction mode combinations using split direction information and a process of rearranging the candidate list of intra prediction mode combinations using variable values ​​based on a third region of the current block.

[0171] The video encoding device determines the intra prediction mode of the first region and the intra prediction mode of the second region using the intra prediction mode combination candidate list (S1730). The video encoding device generates a prediction block for the first region and a prediction block for the second region using the intra prediction mode of the first region and the intra prediction mode of the second region (S1740). The video encoding device generates a prediction block of the current block using the prediction block for the first region and the prediction block for the second region (S1750).

[0172] 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.

[0173] 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.

[0174] 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).

[0175] 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.

[0176]

[0177] CROSS-REFERENCE TO RELATED APPLICATION

[0178] This patent application claims priority to Korean Patent Application No. 10-2023-0051735, filed in Korea on April 20, 2023, and Korean Patent Application No. 10-2024-0049589, filed in Korea on April 12, 2024, the entire contents of which are incorporated herein by reference.

Claims

1. The process of dividing the current block into the first area and the second area; A process of generating a candidate list of intra prediction mode combinations for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric partitioning boundary, and a third region adjacent to the current block; A process of determining an intra prediction mode of the first region and an intra prediction mode of the second region using the intra prediction mode combination candidate list; A process of generating a prediction block for the first region and a prediction block for the second region by using the intra prediction mode of the first region and the intra prediction mode of the second region; and A video decoding method, comprising a process of generating a prediction block of the current block using a prediction block for the first region and a prediction block for the second region.

2. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: If there are blocks among the reference blocks adjacent to the current block on which intra prediction has been performed, a process of adding the intra prediction modes of the blocks on which intra prediction has been performed to the intra prediction mode combination candidate list; and A video decoding method, comprising the step of adding intra prediction modes based on geometric division boundaries of blocks on which geometric division mode is performed to the intra prediction mode combination candidate list, if there are blocks on which geometric division mode is performed among reference blocks adjacent to the current block.

3. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A video decoding method, comprising the step of adding a first intra prediction mode based on a geometric division boundary of the current block and a second intra prediction mode corresponding to a direction perpendicular to the direction of the first intra prediction mode to the intra prediction mode combination candidate list.

4. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A video decoding method, comprising the step of adding a first intra prediction mode based on a geometric division boundary of the current block and a third intra prediction mode corresponding to a direction horizontal to the direction of the first intra prediction mode to the intra prediction mode combination candidate list.

5. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A process of generating one or more prediction pixels by applying one or more candidate modes in the MPM list of the current block to one or more reference pixels of the third region; A process of calculating variable values ​​based on differences between one or more of the above prediction pixels and one or more of the above restoration pixels of the third region; and A video decoding method, comprising a process of adding an intra prediction mode determined based on the above variable values ​​to the intra prediction mode combination candidate list.

6. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A process of determining a fourth intra prediction mode by subtracting or adding an offset in a direction perpendicular to the direction of the geometric division boundary of the current block; and A video decoding method, comprising the step of adding the fourth intra prediction mode to the intra prediction mode combination candidate list.

7. In paragraph 6, A video decoding method, wherein the offset is determined based on the angle of the geometric division boundary, the size of the current block, and the aspect ratio of the current block.

8. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A process of determining a fifth intra prediction mode by subtracting or adding an offset to a direction horizontal to the direction of the geometric division boundary of the current block; and A video decoding method, comprising the step of adding the fifth intra prediction mode to the intra prediction mode combination candidate list.

9. In paragraph 8, A video decoding method, wherein the offset is determined based on the angle of the geometric division boundary, the size of the current block, and the aspect ratio of the current block.

10. In paragraph 1, The process of generating the above intra prediction mode combination candidate list is as follows: A process of generating a candidate list of intra prediction mode combinations using segmentation direction information; and A video decoding method, comprising a process of rearranging the intra prediction mode combination candidate list using variable values ​​based on a third area of ​​the current block.

11. Process of dividing the current block into the first area and the second area; A process of generating a candidate list of intra prediction mode combinations for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric partitioning boundary, and a third region adjacent to the current block; A process of determining an intra prediction mode of the first region and an intra prediction mode of the second region using the intra prediction mode combination candidate list; A process of generating a prediction block for the first region and a prediction block for the second region by using the intra prediction mode of the first region and the intra prediction mode of the second region; and A video encoding method, comprising a process of generating a prediction block of the current block using a prediction block for the first region and a prediction block for the second region.

12. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: If there are blocks among the reference blocks adjacent to the current block on which intra prediction has been performed, a process of adding the intra prediction modes of the blocks on which intra prediction has been performed to the intra prediction mode combination candidate list; and A video encoding method, comprising the step of adding intra prediction modes based on geometric division boundaries of blocks on which geometric division mode is performed to the intra prediction mode combination candidate list, if there are blocks on which geometric division mode is performed among reference blocks adjacent to the current block.

13. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A video encoding method, comprising the step of adding a first intra prediction mode based on a geometric division boundary of the current block and a second intra prediction mode corresponding to a direction perpendicular to the direction of the first intra prediction mode to the intra prediction mode combination candidate list.

14. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A video encoding method, comprising the step of adding a first intra prediction mode based on a geometric division boundary of the current block and a third intra prediction mode corresponding to a direction horizontal to a direction of the first intra prediction mode to the intra prediction mode combination candidate list.

15. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A process of generating one or more prediction pixels by applying one or more candidate modes in the MPM list of the current block to one or more reference pixels of the third region; A process of calculating variable values ​​based on differences between one or more of the above prediction pixels and one or more of the above restoration pixels of the third region; and A video encoding method, comprising a process of adding an intra prediction mode determined based on the above variable values ​​to the intra prediction mode combination candidate list.

16. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A process of determining a fourth intra prediction mode by subtracting or adding an offset in a direction perpendicular to the direction of the geometric division boundary of the current block; and A video encoding method, comprising the step of adding the fourth intra prediction mode to the intra prediction mode combination candidate list.

17. In paragraph 16, A video encoding method, wherein the offset is determined based on an angle of the geometric division boundary, a size of the current block, and an aspect ratio of the current block.

18. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A process of determining a fifth intra prediction mode by subtracting or adding an offset to a direction horizontal to the direction of the geometric division boundary of the current block; and A video encoding method, comprising the step of adding the fifth intra prediction mode to the intra prediction mode combination candidate list.

19. In paragraph 11, The process of generating the above intra prediction mode combination candidate list is as follows: A process of generating a candidate list of intra prediction mode combinations using segmentation direction information; and A video encoding method, comprising a process of rearranging the intra prediction mode combination candidate list using variable values ​​based on a third area of ​​the current block.

20. A method for transmitting a bitstream related to video data, said method comprising: A process of generating a bitstream by encoding the above video data; and Including a process of transmitting the above bitstream to a video decoding device, The process of generating the above bitstream is: The process of dividing the current block into the first area and the second area; A process of generating a candidate list of intra prediction mode combinations for the first region and the second region based on at least one of reference blocks adjacent to the current block, a geometric partitioning boundary, and a third region adjacent to the current block; A process of determining an intra prediction mode of the first region and an intra prediction mode of the second region using the intra prediction mode combination candidate list; A process of generating a prediction block for the first region and a prediction block for the second region by using the intra prediction mode of the first region and the intra prediction mode of the second region; and A method comprising the step of generating a prediction block of the current block using a prediction block for the first region and a prediction block for the second region.

Citation Information

Patent Citations

  • Forming method of sheet and protection member

    KR1020220011074A

  • A method of measuring bone mineral density of based on machine learning using radiographic image of the hip joint taken by X-ray

    KR102578943B1

  • Candidate list configuration for intra prediction in image coding system

    WO2020197225A1

  • KR20210034534A

  • KR20230034191A