Method and apparatus for video coding using intra prediction mode encoding according to prediction mode of reference block

The adaptive selection of intra prediction mode encoding methods and dynamic mode changes in video coding technologies address inefficiencies in existing methods, enhancing coding efficiency and quality by optimizing mode usage and bit allocation.

WO2024185992A1PCT designated stage expired Publication Date: 2024-09-12HYUNDAI MOTOR CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/000923
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-16
Filing Date
2024-01-18
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Conventional video coding technologies, such as HEVC and VVC, face inefficiencies in encoding intra prediction modes due to fixed mode replacements in MPM and DM technologies, leading to suboptimal coding efficiency and picture quality, especially as image sizes and resolutions increase.

Method used

A method and apparatus for adaptively selecting intra prediction mode encoding methods based on reference block mode information, dynamically generating MPM lists and changing luma block modes to regular intra prediction modes, improving coding efficiency and quality.

Benefits of technology

Enhances video coding efficiency and picture quality by optimizing intra prediction mode encoding through adaptive selection and mode changes, reducing bit consumption and improving the use of probable modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024000923_12092024_PF_FP_ABST
    Figure KR2024000923_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present embodiment discloses a video coding method and apparatus using intra prediction mode encoding according to a prediction mode of a reference block. In the present embodiment, an image decoding apparatus acquires a prediction mode of a corresponding luma block of the current chroma block in a derived mode (DM) and identifies the prediction mode of the corresponding luma block. If the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, the image decoding apparatus acquires a mode change method for changing the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode. The image decoding apparatus changes the prediction mode of the corresponding luma block according to the mode change method and generates a prediction block of the current chroma block by using the changed intra prediction mode of the corresponding luma block.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for video coding using intra prediction mode encoding according to the prediction mode of a reference block

[0001] The present disclosure relates to a video coding method and device using intra prediction mode encoding according to a prediction mode of a reference block.

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

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

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

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

[0006] Intra prediction uses pixel information within the same picture to predict pixel values ​​of the current block, which is the encoding target. Intra prediction can select the most appropriate mode among multiple intra prediction modes based on the characteristics of the image, and then use the selected mode to predict the current block. The encoder selects one of the multiple intra prediction modes and encodes the current block using the selected mode. The encoder can then transmit information about the selected mode to the decoder.

[0007] HEVC technology uses a total of 35 intra prediction modes, including 33 angular modes and 2 non-angular modes for intra prediction. However, as the spatial resolution of images increases from 720×480 to 2048×1024 or 8192×4096, the size of prediction block units also increases, and accordingly, the need to add more diverse intra prediction modes has increased. As illustrated in Fig. 3a, VVC technology can utilize more diverse prediction directions compared to previous technologies by using 65 more detailed prediction modes for intra prediction.

[0008] Meanwhile, in order to efficiently encode 67 intra prediction modes (IPMs), including Planar and DC modes, which are non-directional intra prediction modes in the luma channel, for each CU, the encoder encodes the prediction mode based on the Most Probable Mode (MPM). When encoding blocks with an intra prediction mode, the MPM technique utilizes the characteristic that the prediction modes of neighboring blocks are similar. The MPM technique selects six MPM candidates based on the modes used by the neighboring blocks of the current block, the adjacent modes of the used modes, and the statistically frequently used modes. The group of six MPM candidates is called an MPM list. If the intra prediction mode of the current block is included in the MPM list, the encoder encodes an MPM index indicating the intra prediction mode of the current block among the candidates included in the MPM list. On the other hand, if the intra prediction mode of the current block is not included in the MPM list, the encoder encodes the intra prediction mode of the current block using the MPM remainder. The MPM remainder represents a set of prediction modes formed by excluding six MPM candidates from the 67 IPMs.

[0009] Additionally, using Derived Mode (DM) in the chroma channel, the encoder encodes the prediction mode of the chroma channel based on the prediction mode of the corresponding luma block for each CU. When encoding blocks in intra prediction mode, the DM technique utilizes the characteristic that the chroma channel and luma channel are similar to each other. The encoder encodes the prediction mode based on the prediction mode of the luma block corresponding to the current chroma block and statistically frequently used modes.

[0010] Conventional MPM techniques can lead to inefficiencies in encoding intra prediction modes by replacing the base block prediction mode with a fixed mode depending on the type of the base block prediction mode. Furthermore, conventional DM techniques can lead to inefficiencies in encoding intra prediction modes by replacing the corresponding luma block prediction mode with a fixed mode depending on the type of the base block prediction mode. Therefore, improvements to MPM and DM techniques need to be considered to enhance video encoding efficiency and improve video quality.

[0011] The present disclosure aims to provide a video coding method and device that adaptively selects an encoding method of an intra prediction mode according to mode information of a base block in encoding an intra prediction mode.

[0012] The present disclosure provides a video coding method and device for adaptively selecting one of a plurality of MPM (Most Probable Mode) list generation methods according to prediction mode information of a reference block, and generating an MPM list according to the selected method.

[0013] In addition, the present disclosure provides a video coding method and device for adaptively selecting one of a plurality of mode changing methods when the mode of a corresponding luma block according to DM is an irregular intra mode or a default mode, and changing the mode of the corresponding luma block to a regular intra mode excluding the default mode according to the selected method.

[0014] According to an embodiment of the present disclosure, a method for restoring a current chroma block, performed by a video decoding device, is provided, comprising: obtaining a prediction mode of a corresponding luma block of the current chroma block in a derived mode (DM), wherein the corresponding luma block is a block including a center sample in a luma region spatially co-located with the current chroma block; and checking the prediction mode of the corresponding luma block, and when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, obtaining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; changing the prediction mode of the corresponding luma block according to the mode changing method; and generating a prediction block of the current chroma block using the changed intra prediction mode of the corresponding luma block.

[0015] According to another embodiment of the present disclosure, a method for encoding a current chroma block, performed by a video encoding device, is provided, characterized in that the method further comprises the steps of: obtaining a prediction mode of a corresponding luma block of the current chroma block in a derived mode (DM), wherein the corresponding luma block is a block including a center sample in a luma region spatially co-located with the current chroma block; and checking the prediction mode of the corresponding luma block, and when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, determining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; changing the prediction mode of the corresponding luma block according to the mode changing method; and generating a prediction block of the current chroma block using the changed intra prediction mode of the corresponding luma block.

[0016] According to another embodiment of the present disclosure, a computer-readable recording medium storing a bitstream generated by a video encoding method is provided, characterized in that the video encoding method comprises the steps of: obtaining a prediction mode of a corresponding luma block of a current chroma block in a derived mode (DM), wherein the corresponding luma block is a block including a center sample within a luma region spatially co-located with the current chroma block; and checking the prediction mode of the corresponding luma block, and when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, determining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; changing the prediction mode of the corresponding luma block according to the mode changing method; and generating a prediction block of the current chroma block using the changed intra prediction mode of the corresponding luma block.

[0017] As described above, according to the present embodiment, in encoding the intra prediction mode, a video coding method and device are provided that adaptively select an encoding method of the intra prediction mode according to mode information of a reference block, thereby making it possible to improve video encoding efficiency and enhance video quality.

[0018] In addition, according to another embodiment of the present disclosure, there is provided a video coding method and device that adaptively selects one of a plurality of MPM (Most Probable Mode) list generation methods according to prediction mode information of a reference block and generates an MPM list according to the selected method, thereby making it possible to improve video encoding efficiency.

[0019] In addition, according to another embodiment of the present disclosure, when the mode of a corresponding luma block according to DM is an irregular intra prediction mode or a default mode, a video coding method and device are provided that adaptively select one of a plurality of mode changing methods and change the mode of the corresponding luma block to a regular intra prediction mode excluding the default mode according to the selected method, thereby making it possible to improve the encoding efficiency of a chroma channel.

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

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

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

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

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

[0025] Figure 6 is an example diagram showing pixels used to construct an MPM (Most Probable Mode) list.

[0026] Figure 7 is an example diagram showing the creation of an MPM list.

[0027] FIG. 8 is an exemplary diagram showing a change of a reference block according to one embodiment of the present disclosure.

[0028] FIG. 9 is an exemplary diagram showing a mode change of a corresponding luma block according to one embodiment of the present disclosure.

[0029] FIG. 10 is an exemplary diagram illustrating the generation of an MPM list according to one embodiment of the present disclosure.

[0030] FIG. 11 is an exemplary diagram showing a change in the prediction mode of a corresponding luma block according to one embodiment of the present disclosure.

[0031] FIGS. 12A to 12D are exemplary diagrams showing a predetermined surrounding pixel search order according to one embodiment of the present disclosure.

[0032] FIG. 13 is an exemplary diagram showing a change of a reference block using a surrounding pixel search order according to one embodiment of the present disclosure.

[0033] FIG. 14 is an exemplary diagram showing a change of a reference block using a surrounding pixel search order according to another embodiment of the present disclosure.

[0034] FIG. 15 is an exemplary diagram showing a change of a reference block using an adjacent length according to one embodiment of the present disclosure.

[0035] FIG. 16 is an exemplary diagram showing a change of a reference block using an adjacent length according to another embodiment of the present disclosure.

[0036] FIG. 17 is an exemplary diagram showing a change of a reference block using width according to one embodiment of the present disclosure.

[0037] FIG. 18 is an exemplary diagram showing a change of a reference block using width according to another embodiment of the present disclosure.

[0038] FIG. 19 is an exemplary diagram showing a change of a reference block using an aspect ratio according to one embodiment of the present disclosure.

[0039] FIG. 20 is an exemplary diagram showing a change of a reference block using an aspect ratio according to another embodiment of the present disclosure.

[0040] FIG. 21 is an exemplary diagram showing a peripheral pixel area according to one embodiment of the present disclosure.

[0041] FIG. 22 and FIG. 23 are exemplary diagrams showing intensity histograms for each directional mode according to one embodiment of the present disclosure.

[0042] FIG. 24 is an exemplary diagram showing a peripheral pixel area according to another embodiment of the present disclosure.

[0043] FIG. 25a and FIG. 25b are exemplary diagrams showing intensity histograms for each directional mode according to another embodiment of the present disclosure.

[0044] FIG. 26 is an exemplary diagram showing a peripheral pixel area according to another embodiment of the present disclosure.

[0045] FIG. 27 is an example diagram showing a distortion histogram for each directional mode according to one embodiment of the present disclosure.

[0046] FIGS. 28a to 28d are exemplary diagrams showing a predetermined surrounding pixel search order according to one embodiment of the present disclosure.

[0047] FIG. 29 is an exemplary diagram showing a change of mode using a surrounding pixel search order according to one embodiment of the present disclosure.

[0048] FIG. 30 is an exemplary diagram showing a change of mode using a surrounding pixel search order according to another embodiment of the present disclosure.

[0049] FIG. 31 is an exemplary diagram showing a change of mode using adjacent length according to one embodiment of the present disclosure.

[0050] FIG. 32 is an exemplary diagram showing a change of mode using adjacent length according to another embodiment of the present disclosure.

[0051] FIG. 33 is an exemplary diagram showing a change of mode using width according to one embodiment of the present disclosure.

[0052] FIG. 34 is an exemplary diagram showing a change of mode using width according to another embodiment of the present disclosure.

[0053] FIG. 35 is an exemplary diagram showing a change in mode using aspect ratio according to one embodiment of the present disclosure.

[0054] FIG. 36 is an exemplary diagram showing a change in mode using aspect ratio according to another embodiment of the present disclosure.

[0055] FIG. 37 is an exemplary diagram showing a luma pixel area according to one embodiment of the present disclosure.

[0056] FIG. 38 is an example diagram showing an intensity histogram according to one embodiment of the present disclosure.

[0057] FIG. 39 is an exemplary diagram showing a luma pixel area according to another embodiment of the present disclosure.

[0058] FIG. 40 is an example diagram showing a distortion histogram according to one embodiment of the present disclosure.

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

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

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

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

[0063] FIG. 45 is a flowchart illustrating a method by which a video encoding device encodes a current chroma block according to one embodiment of the present disclosure.

[0064] FIG. 46 is a flowchart illustrating a method by which a video decoding device restores a current chroma block according to one embodiment of the present disclosure.

[0065] FIG. 47 is a flowchart illustrating a method by which a video encoding device encodes a current chroma block according to another embodiment of the present disclosure.

[0066] FIG. 48 is a flowchart illustrating a method by which a video decoding device restores a current chroma block according to another embodiment of the present disclosure.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0136]

[0137] The present embodiment relates to encoding and decoding of images (videos) as described above. More specifically, the present embodiment provides a video coding method and device that adaptively selects an encoding method of an intra prediction mode according to mode information of a base block in encoding an intra prediction mode.

[0138] The present embodiment provides a video coding method and device for adaptively selecting one of a plurality of MPM (Most Probable Mode) list generation methods according to prediction mode information of a reference block, and generating an MPM list according to the selected generation method. In addition, the present embodiment provides a video coding method and device for adaptively selecting one of a plurality of mode changing methods, and changing the mode of the corresponding luma block to a regular intra prediction mode excluding the default mode according to the selected method, when the mode of the corresponding luma block according to the DM (Derived Mode) is an irregular intra mode or a default mode.

[0139] The following embodiments may be performed by an intra prediction unit (122) within a video encoding apparatus. In addition, the following embodiments may be performed by an intra prediction unit (542) within a video decoding apparatus.

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

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

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

[0143] I. MPM (Most Probable Mode) Technology and DM (Derived Mode) Technology

[0144] As mentioned above, in intra prediction, the luma channel predictor can be generated based on 67 intra prediction modes (IPMs). The 67 IPMs refer to 67 intra prediction modes that can be signaled, including non-directional prediction modes such as Planar and DC modes. Meanwhile, the prediction modes -14 to -1 and 67 to 80, which are directional modes with larger angles signaled depending on the block aspect ratio, are called Wide Angular Intra Prediction (WAIP) modes.

[0145] Hereinafter, a regular intra mode refers to 67 intra prediction modes that can be signaled among prediction modes -14 to 80 depending on the aspect ratio of a block, including non-directional intra prediction modes such as Planar and DC modes, and a regular intra prediction mode set refers to a set of the aforementioned 67 modes. In addition, an irregular intra prediction mode refers to a prediction mode that is not included in the regular intra prediction mode set, and an irregular intra prediction mode set refers to a set of irregular intra prediction modes. The irregular intra prediction mode set may include IBC (Intra Block Copy), palette mode, MIP (Matrix-weighted Intra Prediction), BDPCM (Block-based Delta Pulse Code Modulation), and inter prediction. The default mode may be a Planar mode, a DC mode, a 50th mode (Vertical), or a 18th mode (Horizontal).

[0146] When generating a predictor using one of the 67 prediction modes included in the regular intra prediction mode set, the video encoding device signals the prediction mode using the Most Probable Mode (MPM) to efficiently transmit prediction mode information.

[0147] MPM utilizes the property that when encoding blocks in an intra prediction mode, the prediction modes of neighboring blocks are likely to be similar. As in the example of Fig. 6, blocks containing pixel L located to the left of the lower left pixel of the current block and pixel A located above the upper right pixel are defined as base blocks. In addition, the prediction modes of each base block containing pixel L and pixel A are defined as modeL and modeA. An MPM list can be generated by selecting six MPM candidates based on modeL and modeA. If modeL or modeA is not a regular intra prediction mode (i.e., an irregular intra prediction mode), or if the current block is located at the boundary of a CTU, tile, slice, sub-picture, picture, etc., and pixel L or pixel A is not available, the prediction mode of the base block containing the corresponding pixel is replaced with a mode included in the regular intra prediction mode set. For example, if modeL or modeA is one of IBC, Palette, MIP, and inter prediction, or if the current block is located at the boundary of a CTU, tile, slice, sub-picture, or picture, and pixel L or pixel A is not available, the prediction mode of the reference block containing the pixel is regarded as Planar. If modeL or modeA is BDPCM, the mode is replaced with the horizontal mode (mode 18) or vertical mode (mode 50) corresponding to the mode direction of BDPCM within the regular intra prediction mode set. Thereafter, the MPM list can be generated according to the following MPM list generation algorithm (hereinafter, 'generation algorithm').

[0148] First, if modeL and modeA are the same and modeL is greater than INTRA_DC, {Planar, modeL, 2 + ((modeL + 61) % 64), 2 + ((modeL - 1 ) % 64), 2 + ((modeL + 60) % 64), 2 + (modeL % 64)} are selected as MPM candidates.

[0149] Next, if modeL and modeA are not equal and either modeL or modeA is greater than INTRA_DC, MPM candidates are constructed as follows. At this time, minAB = Min(modeL, modeA) and maxAB = Max(modeL, modeA) are defined.

[0150] If both modeL and modeA are greater than INTRA_DC and maxAB - minAB = 1, {Planar, modeL, modeA, 2 + ((minAB + 61) % 64), 2 + ((maxAB - 1) % 64), 2 + ((minAB + 60) % 64)} are selected as MPM candidates.

[0151] If both modeL and modeA are greater than INTRA_DC and maxAB - minAB ≥ 62, {Planar, modeL, modeA, 2 + ((minAB - 1) % 64), 2 + ((maxAB + 61 ) % 64), 2 + (minAB % 64)} are selected as MPM candidates.

[0152] If both modeL and modeA are greater than INTRA_DC and maxAB - minAB = 2, {Planar, modeL, modeA, 2 + ((minAB - 1) % 64), 2 + ((minAB + 61) % 64), 2 + ((maxAB - 1) % 64)} are selected as MPM candidates.

[0153] If both modeL and modeA are greater than INTRA_DC and 2 < maxAB - minAB < 62, {Planar, modeL, modeA, 2 + ((minAB + 61) % 64), 2 + ((minAB - 1) % 64), 2 + ((maxAB + 61) % 64)} are selected as MPM candidates.

[0154] If modeL and modeA are not equal, and either modeL or modeA is greater than INTRA_DC, {Planar, maxAB, 2 + ((maxAB + 61) % 64), 2 + ((maxAB - 1) % 64), 2 + ((maxAB + 60) % 64), 2 + (maxAB % 64)} are selected as MPM candidates.

[0155] Additionally, if both modeL and modeA are equal to or less than INTRA_DC, {Planar, INTRA_DC, INTRA_ANGULAR50, INTRA_ANGULAR18, INTRA_ANGULAR46, INTRA_ANGULAR54} are selected as MPM candidates.

[0156] Meanwhile, when using MPM, the video decoding device parses the intra prediction mode of the current block as shown in Table 1.

[0157]

[0158] The video decoder decodes the intra_luma_mpm_flag to determine whether to use the MPM list. If intra_luma_mpm_flag is true and intra_luma_ref_idx is 0, the intra_luma_not_planar_flag, a flag indicating whether to use the Planar mode, can be signaled from the video encoder to the video decoder. The first element in the MPM list, MPM index 0, is Planar mode and is therefore signaled using intra_luma_not_planar_flag. If intra_luma_not_planar_flag is false, the intra prediction mode is set to Planar mode. On the other hand, if intra_luma_not_planar_flag is true, intra_luma_mpm_idx can be additionally signaled to indicate MPM indices 1 to 5. If intra_luma_not_planar_flag does not exist, it can be inferred to be true.

[0159] Meanwhile, if intra_luma_ref_idx is not 0, Planar mode is not used. Therefore, intra_luma_not_planar_flag is not transmitted and is considered true. In addition, since intra_luma_not_planar_flag is true, intra_luma_mpm_idx can be additionally signaled.

[0160] According to the conventional technology, the intra prediction modes that are frequently used or are basically used to maintain image quality when encoding chroma blocks are Planar, DC, Vertical, Horizontal, and DM (Derived Mode). Here, the DM technology uses the intra prediction mode of the luma block (hereinafter, 'corresponding luma block') that is spatially co-located with the chroma block as the intra prediction mode of the current chroma block. In order to signal the intra prediction mode of the current chroma block to the video decoding device, the video encoding device signals whether the current chroma block uses DM. There may be several ways to instruct the video decoding device to the DM mode. In the conventional technology, the video encoding device can instruct the video decoding device to the DM mode by setting and transmitting intra_chroma_pred_mode to a specific value (for example, 4). The corresponding luma block represents a block that includes the center sample within the corresponding luma area. Based on the 4:2:0 color format, the corresponding luma area represents the luma area (2W×2H) that is spatially co-located with the current chroma block (Width[W]×Height[H]).

[0161] When it is signaled that the current chroma block is encoded according to intra prediction, the video decoding device determines IntraPredModeC, which is information indicating the intra prediction mode to be used for decoding the current chroma block, according to Table 2.

[0162]

[0163] In Table 2, lumaIntraPredMode is the intra prediction mode of the corresponding luma block of the current chroma block, and IntraPredModeC is the intra prediction mode of the current chroma block. In addition, lumaIntraPredMode represents one of the prediction modes illustrated in Fig. 3b and may indicate a prediction direction. For example, in Table 2, lumaIntraPredMode = 0 represents the Planar mode, and lumaIntraPredMode = 1 represents the DC mode. The video decoding device can parse the intra prediction mode of the chroma block as shown in Table 3.

[0164]

[0165] The video decoding device parses cclm_mode_flag, which indicates whether the CCLM (Cross-component Linear Model) mode is used. If cclm_mode_flag is 0, the CCLM mode is not used. On the other hand, if cclm_mode_flag is 1, the CCLM mode is used. If cclm_mode_flag is 1 and the CCLM mode is used, the video decoding device parses cclm_mode_idx to obtain CCLM mode information. On the other hand, if cclm_mode_flag is 0 and the CCLM mode is not used, the video decoding device parses intra_chroma_pred_mode, which indicates the intra prediction mode.

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

[0167] II. Implementation examples according to the present disclosure

[0168] Conventional MPM techniques may cause inefficiencies in encoding intra prediction modes by replacing the base block prediction mode with a fixed mode depending on the type of the base block prediction mode. Furthermore, conventional DM techniques may cause inefficiencies in encoding intra prediction modes by replacing the corresponding luma block prediction mode with a fixed mode depending on the type of the base block prediction mode. In other words, there are cases where the properties that modes in the MPM list are likely to be used by the current block and the properties that modes according to DM are likely to be used by the current chroma block cannot be satisfied.

[0169] The problem related to MPM can be solved by adaptively selecting one of multiple MPM list generation methods according to mode information of a reference block, and generating an MPM list according to the selected method. The problem related to DM can be solved by adaptively selecting one of multiple mode changing methods when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, and changing the mode of the corresponding luma block to a regular intra prediction mode excluding the default mode according to the selected method. Hereinafter, the mode changing method represents a method of adaptively changing the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode. As described above, when the prediction mode of the corresponding luma block in DM is an irregular intra prediction mode or a default mode, the image decoding device can apply the mode changing method.

[0170] Figure 7 is an example diagram showing the creation of an MPM list.

[0171] As in the example of Fig. 7, a case is described where blocks N2 and N4 containing pixels L and A are determined as reference blocks for generating an MPM list. Since the mode of blocks N2 and N4 is IBC included in the irregular intra prediction mode set, the image decoding device replaces the mode of the reference block with the Planar mode, which is the default mode included in the regular intra prediction mode set. Since both modes of the reference block are not directional modes, the MPM list is generated as {0 (Planar), 1 (DC), 50 (Vertical), 18 (Horizontal), 46, 54} according to the generation algorithm. However, if the current block selects mode 37, which is not included in the MPM list, many bits must be consumed to transmit the mode.

[0172] FIG. 8 is an exemplary diagram showing a change of a reference block according to one embodiment of the present disclosure.

[0173] As in the example of Fig. 8, by changing the pixels for determining the reference block from pixels L to Up-L and A to Lf-A, the image decoding device can adaptively generate an MPM list by changing the reference block to N1 and N3. Since the modes of both reference blocks are both directional modes, the MPM list is generated as {0 (Planar), 1 (DC), 50 (Vertical), 18 (Horizontal), 37, 40} according to the generation algorithm. Therefore, when the current block selects mode 37, the selected mode 37 will exist in the MPM list, and the number of bits for transmitting the mode can be reduced. In conclusion, by changing the reference block to satisfy the property that the mode in the MPM list is likely to be used by the current block, encoding efficiency can be increased and image quality can be improved.

[0174] FIG. 9 is an exemplary diagram showing a mode change of a corresponding luma block according to one embodiment of the present disclosure.

[0175] As in the example of Fig. 9, a case in which a corresponding luma block is fixed according to DM is described. Since the prediction mode of the corresponding luma block is IBC, the video decoding device replaces the prediction mode with the default mode DC. Since the prediction mode according to DM is one of the default modes, the DC mode is replaced with mode 66 according to Table 2. The intra prediction mode candidates of the chroma channel on the video encoding device side include {0 (Planar), 1 (DC), 50 (Vertical), 18 (Horizontal), 66, CCLM_LT, CCLM_L, CCLM_T}. Therefore, there may be cases in which the property that the mode according to DM is likely to be used by the current chroma block cannot be satisfied.

[0176] However, by changing the corresponding luma block to obtain the regular intra prediction mode of the block, the mode to be selected by the current chroma block can be obtained in the DM. Since the prediction mode obtained by changing the corresponding luma block in the DM is mode 40 of the N1 block, the chroma intra mode candidates on the video encoding device side include {0 (Planar), 1 (DC), 50 (Vertical), 18 (Horizontal), 40, CCLM_LT, CCLM_L, CCLM_T}. Therefore, mode 40, which is the most optimized mode for the current chroma block, can be used, so image quality improvement and bit reduction can be expected.

[0177] The present disclosure solves the problems of the existing technology by adaptively selecting an intra-mode encoding method according to mode information of a reference block in an intra-mode encoding process, as in the examples described above.

[0178] FIG. 10 is an exemplary diagram illustrating the generation of an MPM list according to one embodiment of the present disclosure.

[0179] In the case of MPM technology, the present disclosure comprises multiple MPM list construction methods, and adaptively selects one MPM list construction method according to the mode information of the reference block when generating the MPM list, and can generate the MPM list according to the selected method. As shown in the example of Fig. 10, the present disclosure comprises n MPM list construction methods, and can adaptively select one MPM list construction method according to the prediction mode of the reference block, and can generate the MPM list according to the selected method.

[0180] FIG. 11 is an exemplary diagram showing a change in the prediction mode of a corresponding luma block according to one embodiment of the present disclosure.

[0181] In addition, in the case of DM, the present disclosure can adaptively change the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode according to a mode changing method when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode. As in the example of Fig. 11, when the mode of the corresponding luma block is an irregular intra prediction mode or a default mode, the present disclosure can search for a neighboring block of the corresponding luma block using the restored information and signaling information of the luma region corresponding to the current chroma block and its surroundings, and change the mode of the corresponding luma block to the mode of the searched block. Alternatively, the present disclosure can infer a regular intra prediction mode excluding the default mode from the luma region corresponding to the current chroma block and its surrounding pixel information, and change the mode of the corresponding luma block to the inferred mode.

[0182] Whether the present disclosure applies can be preset, signaled, or inferred in a predetermined manner. When generating an MPM list, the method for generating the MPM list for each mode of the reference block can be preset or signaled in a predetermined manner. Furthermore, the method for changing the mode of the corresponding luma block in the DM can be preset or signaled in a predetermined manner.

[0183] The methods for determining whether the present disclosure is applicable, the methods for generating MPM lists, and the methods for changing modes in DMs can be combined in various ways. That is, whether the present disclosure is applicable is signaled in the bitstream, and the method for generating the MPM list and the method for changing modes in DMs can be set in a predetermined manner. Alternatively, the method for generating the MPM list and the method for changing modes in DMs can be inferred, and the method for generating the MPM list and the method for changing modes in DMs can be signaled in the bitstream. Specific implementation examples according to the present disclosure are as follows. Hereinafter, the term "adjacent" indicates a case where two objects are in spatial contact, and the term "surrounding" includes the meaning of "adjacent" and indicates that another object exists within a certain distance from one object.

[0184] <Example 1> Generating an MPM list according to an adaptively selected MPM list generation method.

[0185] In the present implementation, the video decoding device has a plurality of MPM list generation methods, adaptively selects one MPM list generation method according to mode information of a reference block, and generates an MPM list according to the selected MPM list generation method. The video decoding device determines whether the mode of the reference block is included in a set of irregular intra prediction modes, or is one of the planar mode and the DC mode. The video decoding device selects one of the plurality of MPM list generation methods according to the determination result. If the mode of the reference block is included in a set of irregular intra prediction modes, or is one of the planar mode and the DC mode, the video decoding device uses a new MPM list generation method. On the other hand, if the mode of the reference block is a regular intra prediction mode excluding the planar mode and the DC mode, the video decoding device uses a conventional MPM list generation method.

[0186] There are two ways to generate a new MPM list. First, the video decoding device modifies the reference block to change its mode to a regular intra prediction mode. The video decoding device can generate an MPM list using the modified mode of the reference block. Second, the video decoding device can infer a regular intra prediction mode from surrounding pixel information of the current block and generate an MPM list using the inferred mode. At this time, the reference block can be modified or the prediction mode can be derived by considering previously restored information about the current block and its surroundings.

[0187] Conventional MPM technology is based on the characteristic that the prediction modes of the current block and its surrounding blocks are similar. Therefore, the method of changing the reference block and the method of deriving the prediction mode also consider the restored information of the current block and its surroundings. The restored information of the current block and its surroundings may include the width / height / area / aspect ratio / location of the current block, the width / height / area / prediction mode / aspect ratio / location of the blocks surrounding the current block, the distance to the current block, the location / number / value of pixels surrounding the current block, and the distance to the current block.

[0188] When the mode of the reference block is an irregular intra prediction mode and when it is one of the planar mode and the DC mode, the method of generating an appropriate MPM list may be different. Below, the two cases are described separately. Below, Implementation Examples 1-1 and 1-2 are described mainly for the case where the modes of two reference blocks are both included in the irregular intra prediction mode set, or one of the planar mode and the DC mode. In addition, Implementation Examples 1-1 and 1-2 can be equally applied even when the mode of one reference block is included in the irregular intra prediction mode set, or one of the planar mode and the DC mode.

[0189] <Example 1-1> When the mode of the reference block is included in the irregular intra prediction mode set

[0190] In this embodiment, a method for generating an MPM list is described when the mode of a reference block is included in a set of irregular intra prediction modes. In this embodiment, an image decoding device changes a reference block using previously restored information of a current block and its surroundings so that the mode of the corresponding block becomes a regular intra prediction mode, and generates an MPM list using the mode of the changed reference block (Embodiment 1-1-1). Alternatively, the image decoding device can infer a regular intra prediction mode from surrounding pixel information of a current block, and generate an MPM list using the inferred mode (Embodiment 1-1-2).

[0191] <Example 1-1-1> Change the reference block so that the mode of the block becomes the regular intra prediction mode, and create an MPM list using the mode of the changed reference block.

[0192] In this implementation example, the image decoding device (1) changes a reference block so that the mode of the block becomes a regular intra prediction mode, and (2) generates an MPM list using the mode of the changed reference block.

[0193] At this time, there are two representative methods for changing the reference block.

[0194] FIGS. 12A to 12D are exemplary diagrams showing a predetermined surrounding pixel search order according to one embodiment of the present disclosure.

[0195] The first method is to search according to a predetermined surrounding pixel search order as shown in the examples of FIGS. 12a to 12d, and if the prediction mode of the block containing the pixel is a regular intra prediction mode, the block containing the pixel is changed to a reference block.

[0196] If the reference block is on the left side of the current block, the reference block can be searched in the following order: ① (bottom → top), ② (top → bottom), ⑤ (bottom → top → right), ⑦ (zigzag order starting from the upper left pixel in the direction where pixel L is), ⑧ (zigzag order starting from the upper left pixel in the direction where pixel A is). If the reference block is on the upper side of the current block, the reference block can be searched in the following order: ③ (right → left), ④ (left → right), ⑥ (right → left → bottom), ⑦ (zigzag order starting from the upper left pixel in the direction where pixel L is), ⑧ (zigzag order starting from the upper left pixel in the direction where pixel A is). In addition to the examples of FIGS. 12a to 12d, various preset surrounding pixel search orders can be used.

[0197] The second method changes a block to a reference block if a predetermined reference block selection criterion satisfies a predefined condition (e.g., a maximum value) and the block's prediction mode is a regular intra prediction mode. The predetermined reference block selection criterion may be one of the restored information about the current block and its surroundings, such as adjacent length, width, aspect ratio, etc.

[0198] Based on the above-described methods, when the mode of the reference block is an irregular intra prediction mode, a method of changing the mode of the block by changing the reference block to a regular intra prediction mode may be one of a method of searching pixels adjacent to the current block according to a predetermined search order (Embodiment 1-1-1-1), a method of changing the reference block to a block among surrounding blocks whose prediction mode is the regular intra prediction mode and has the longest adjacent length to the current block (Embodiment 1-1-1-2), a method of changing the reference block to a block among surrounding blocks whose prediction mode is the regular intra prediction mode and has the largest area (Embodiment 1-1-1-3), and a method of changing the reference block to a block among surrounding blocks whose prediction mode is the regular intra prediction mode and has an aspect ratio that is the same as (or most similar to) the aspect ratio of the current block (Embodiment 1-1-1-4).

[0199] In the examples of the methods below, the surrounding blocks or pixels considered are all blocks adjacent to the current block. However, the range of surrounding blocks and pixels that can be considered may vary depending on the embodiment, including blocks and pixels slightly distant from this.

[0200] Below, each implementation example is described in detail.

[0201] <Example 1-1-1-1> A method for searching pixels adjacent to the current block according to a predetermined search order.

[0202] In this implementation example, the image decoding device searches for pixels adjacent to the current block according to a predetermined search order, excluding the initial pixel, and changes the reference block to a block including the first pixel predicted in the regular intra prediction mode. At this time, pixels included in the reference block including pixel L or pixel A may be excluded from the search.

[0203] FIG. 13 is an exemplary diagram showing a change of a reference block using a surrounding pixel search order according to one embodiment of the present disclosure.

[0204] As an example, a case is described where the prediction mode of a reference block (a block including pixel L) adjacent to the left side of the current block is an irregular intra prediction mode, as in the example of FIG. 13. An image decoding device can search for pixels adjacent to the left side of the current block in the order of ① (bottom → top) and change the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 13, since the mode of block N3 including pixel L is IBC, the image decoding device searches for pixels adjacent to the current block in the order of ① (bottom → top). At this time, since the prediction mode of block N2 including pixel Up-L is mode 50, and block N2 is the first block predicted according to the regular intra prediction mode in the search order, the image decoding device changes the reference block to block N2. After the reference block is changed to block N2, an MPM list can be generated using mode 50, which is the prediction mode of the corresponding block.

[0205] As another example, as in the example of FIG. 14, a case is described where the prediction mode of a reference block (a block including pixel A) adjacent to the top of the current block is an irregular intra prediction mode. The image decoding device can search for pixels adjacent to the top of the current block in the order of ③ (right → left) and change the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 14, since the mode of block N2 including pixel A is IBC, the image decoding device searches for pixels adjacent to the current block in the order of ③ (right → left). At this time, since the prediction mode of block N1 including pixel Lf-A is mode 66, and block N1 is the first block predicted according to the regular intra prediction mode in the search order, the image decoding device changes the reference block to block N1. After the reference block is changed to block N1, an MPM list can be generated using mode 66, which is the prediction mode of the corresponding block.

[0206] <Example 1-1-1-2> A method of changing the reference block to the block among the surrounding blocks whose prediction mode is regular intra prediction mode and whose adjacent length to the current block is the longest.

[0207] In this implementation example, the video decoding device can change the reference block to a block among the blocks surrounding the current block, which has a prediction mode of regular intra prediction mode and has the longest adjacency length with respect to the current block. When changing the reference block (the block including the pixel L) adjacent to the left of the current block, the left-side neighboring blocks are searched. The video decoding device can measure the adjacency length between the right side of the left-side neighboring block and the left side of the current block, and change the reference block to the block with the longest adjacency length. When changing the reference block (the block including the pixel A) adjacent to the top of the current block, the upper-side neighboring blocks are searched. The video decoding device can measure the adjacency length between the bottom side of the top-side neighboring block and the top side of the current block, and change the reference block to the block with the longest adjacency length.

[0208] FIG. 15 is an exemplary diagram showing a change of a reference block using an adjacent length according to one embodiment of the present disclosure.

[0209] As an example, as in the example of FIG. 15, a case is described where the prediction mode of a reference block (a block including pixel L) adjacent to the left of the current block is an irregular intra prediction mode. An image decoding device searches for a block among the adjacent neighboring blocks to the left of the current block that has the longest adjacency to the current block and changes the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 15, since the mode of block N3 including pixel L is IBC, the image decoding device searches for a block among the adjacent neighboring blocks to the left of the current block that has the longest adjacency to the current block. At this time, among the adjacent neighboring blocks to the left of the current block, the adjacency length of block N2 is the longest, which is 8, and the prediction mode of block N2 is mode 50 included in the regular intra prediction mode set, so the image decoding device changes the reference block to block N2. After the reference block is changed to block N2, an MPM list can be generated using mode 50, which is the prediction mode of the corresponding block.

[0210] As another example, as in the example of FIG. 16, a case is described where the prediction mode of a reference block (a block including pixel A) adjacent to the top of the current block is an irregular intra prediction mode. An image decoding device searches for a block having the longest adjacency distance with respect to the current block among the neighboring blocks adjacent to the top of the current block, and changes the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 16, since the mode of block N2 including pixel A is IBC, the image decoding device searches for a block having the longest adjacency distance with respect to the current block among the neighboring blocks adjacent to the top of the current block. At this time, among the neighboring blocks adjacent to the top of the current block, the adjacency distance of block N1 is the longest, which is 8, and the prediction mode of block N1 is mode 66 included in the regular intra prediction mode set, so the image decoding device changes the reference block to block N1. After the reference block is changed to block N1, an MPM list can be generated using mode 66, which is the prediction mode of the corresponding block.

[0211] Meanwhile, if two or more blocks have the same longest adjacent length, one of the two or more blocks may be selected as the reference block according to a predetermined priority. At this time, the priority may be predetermined in the following order: {Planar, DC, Horizontal mode, Vertical mode, ...} for the prediction mode of each block, in ascending order of mode number, in descending order of mode number, etc. Alternatively, a higher priority may be assigned to a block closer to the upper left. In addition to the examples described above, one of the blocks with the longest adjacent length may be selected according to a predetermined rule defined in advance.

[0212] <Example 1-1-1-3> A method of changing the reference block to the block with the largest area and a regular intra prediction mode among the surrounding blocks.

[0213] In this implementation example, the video decoding device can change the reference block to a block with the largest area and a prediction mode of regular intra prediction among the blocks surrounding the current block. When changing the reference block adjacent to the left of the current block (the block containing pixel L), the blocks surrounding the left are searched, and when changing the reference block adjacent to the top of the current block (the block containing pixel A), the blocks surrounding the top are searched. The video decoding device can change the reference block.

[0214] FIG. 17 is an exemplary diagram showing a change of a reference block using width according to one embodiment of the present disclosure.

[0215] As an example, as in the example of FIG. 17, a case is described where the prediction mode of a reference block (a block including pixel L) adjacent to the left of the current block is an irregular intra prediction mode. An image decoding device can search for a block with the largest area among the neighboring blocks adjacent to the left of the current block and change the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 17, since the mode of block N3 including pixel L is IBC, the image decoding device searches for a block with the largest area among the neighboring blocks adjacent to the left of the current block. At this time, among the neighboring blocks adjacent to the left of the current block, the area of ​​block N2 is the largest, which is 64, and the prediction mode of block N2 is mode 50 included in the regular intra prediction mode set, so the image decoding device changes the reference block to block N2. After the reference block is changed to block N2, an MPM list can be generated using mode 50, which is the prediction mode of the corresponding block.

[0216] As another example, as in the example of FIG. 18, a case is described where the prediction mode of a reference block (a block including pixel A) adjacent to the top of the current block is an irregular intra prediction mode. An image decoding device can search for a block with the largest area among the neighboring blocks adjacent to the top of the current block and change the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 18, since the mode of block N2 including pixel A is IBC, the image decoding device searches for a block with the largest area among the neighboring blocks adjacent to the top of the current block. At this time, among the neighboring blocks adjacent to the top of the current block, the area of ​​block N1 is the largest, which is 64, and the prediction mode of block N1 is mode 66 included in the regular intra prediction mode set, so the image decoding device changes the reference block to block N1. After the reference block is changed to block N1, an MPM list can be generated using mode 66, which is the prediction mode of the corresponding block.

[0217] Meanwhile, if two or more blocks have the same largest area, a reference block may be selected from among the two or more blocks according to a predetermined priority, as in Example 1-1-1-2.

[0218] <Example 1-1-1-4> A method of changing the reference block to a block among surrounding blocks whose prediction mode is regular intra prediction mode and whose aspect ratio is the same as (or most similar to) that of the current block.

[0219] In this implementation example, the video decoding device can change the reference block to a block among the blocks surrounding the current block whose prediction mode is a regular intra prediction mode and whose aspect ratio is the same as (or most similar to) that of the current block. When changing the reference block adjacent to the left of the current block (the block containing pixel L), the blocks surrounding the left are searched, and when changing the reference block adjacent to the top of the current block (the block containing pixel A), the blocks surrounding the top are searched. The video decoding device can change the reference block.

[0220] FIG. 19 is an exemplary diagram showing a change of a reference block using an aspect ratio according to one embodiment of the present disclosure.

[0221] As an example, as in the example of FIG. 19, a case is described where the prediction mode of a reference block (a block including pixel L) adjacent to the left of the current block is an irregular intra prediction mode. An image decoding device searches for a block among the neighboring blocks adjacent to the left of the current block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block, and changes the reference block to the searched block, thereby making the mode of the corresponding block a regular intra prediction mode. In the example of FIG. 19, since the mode of block N3 including pixel L is IBC, the image decoding device searches for a block among the neighboring blocks adjacent to the left of the current block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block. At this time, since the aspect ratio of block N2 among the neighboring blocks adjacent to the left of the current block is the same as the aspect ratio of the current block, and the prediction mode of block N2 is mode 50 included in the regular intra prediction mode set, the image decoding device changes the reference block to block N2. After the reference block is changed to the N2 block, the MPM list can be generated using mode 50, which is the prediction mode of the block.

[0222] As another example, as in the example of FIG. 20, a case is described where the prediction mode of a reference block (a block including pixel A) adjacent to the top of the current block is an irregular intra prediction mode. The image decoding device searches for a block among the neighboring blocks adjacent to the top of the current block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block, and changes the reference block to the searched block, thereby making the mode of the block a regular intra prediction mode. In the example of FIG. 20, since the mode of block N2 including pixel A is IBC, the image decoding device searches for a block among the neighboring blocks adjacent to the top of the current block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block. At this time, since the aspect ratio of block N1 among the neighboring blocks adjacent to the top of the current block is the same as the aspect ratio of the current block, and the prediction mode of block N1 is mode 66 included in the regular intra prediction mode set, the image decoding device changes the reference block to block N1. After the reference block is changed to the N1 block, the MPM list can be generated using mode 66, which is the prediction mode of the block.

[0223] Meanwhile, if two or more blocks have the same (or most similar) aspect ratio as the aspect ratio of the current block, the reference block may be selected from among the two or more blocks according to a predetermined priority, as in Implementation Example 1-1-1-2.

[0224] In addition to the four implementation examples of modifying the reference block using the restored information of the current block and its surroundings as described above, the reference block can be modified using various methods. Meanwhile, even after modifying the reference block using the methods described above, if the prediction mode of the reference block is an irregular intra prediction mode, the mode of the reference block can be replaced with one of the existing regular intra prediction modes. In addition, the examples described above describe the case where the prediction mode of one of the two blocks containing pixels L and A is an irregular intra prediction mode. However, even if the prediction modes of both blocks containing pixels L and A are irregular intra prediction modes, the reference block can be modified by extending and applying the operations of the examples described above.

[0225] Thereafter, the image decoding device can generate an MPM list according to one of the following methods (Implementation Example 1-1-1-A to Implementation Example 1-1-1-C) by utilizing the modes modeL' and modeA' of the reference block changed according to (1).

[0226] <Example 1-1-1-A> Generate an MPM list with preset regular intra prediction modes, modeL' and modeA'.

[0227] In this implementation example, the video decoding device can generate an MPM list with predetermined regular intra prediction modes, modeL' and modeA'. At this time, the order of the modes in the MPM list can be determined in various ways according to a predetermined sorting method (e.g., the mode of the reference block is in a lower priority, ascending order, descending order, etc.). For example, the MPM list can be generated in a manner such as {0(Planar), 1(DC), 50(Vertical), 18(Horizontal), modeL', modeA'}, {0(Planar), modeL', modeA', 1(DC), 50(Vertical), 18(Horizontal)}, etc.

[0228] <Example 1-1-1-B> Create an MPM list with modeL', modeA', and their adjacent modes.

[0229] In this implementation example, the image decoding device can generate an MPM list using modeL', modeA', and their adjacent modes. For example, by adding a preset offset value (e.g., 0, ±2, ±4, ...) to modeL', modeA', an MPM list such as {modeL', modeA', modeL'+2, modeA'-2, modeL'+4, modeA'-4} can be generated. The offset value can be set in various ways depending on the embodiment. As another example, by deriving modes between mode indices of modeL' and modeA' at equal intervals, an MPM list can be set up as {modeL', 0.8×modeL'+0.2×modeA', 0.6×modeL'+0.6×modeA', 0.4×modeL'+0.6×modeA', 0.2×modeL'+0.8×modeA', modeA'} (when modeL' < modeA').

[0230] <Example 1-1-1-C> Generate an MPM list with preset regular intra prediction modes, modeL', modeA', and their adjacent modes.

[0231] In this implementation example, the video decoding device can generate an MPM list using predetermined regular intra prediction modes, modeL', modeA', and their adjacent modes. For example, the video decoding device can generate an MPM list by mixing Implementation Example 1-1-1-A and Implementation Example 1-1-1-B.

[0232] In addition to generating an MPM list using the aforementioned implementation examples based on the modified reference block mode, an MPM list can be generated in various other ways. Furthermore, the aforementioned methods are based on a case where the MPM list length is 6. However, even if the MPM list length is changed to a value other than 6, the MPM list can be generated by applying the same operations described above.

[0233] The final MPM list generation method can be implemented by combining one or more methods among the examples of the above-described process (1) (Implementation Examples 1-1-1-1 to 1-1-1-4) and one or more methods among the examples of the process (2) (Implementation Examples 1-1-1-A to 1-1-1-C). Methods for combining one example of the process (1) and one example of the process (2) may include methods such as Implementation Example 1-1-1-1 + Implementation Example 1-1-1-A, Implementation Example 1-1-1-1 + Implementation Example 1-1-1-B, Implementation Example 1-1-1-1 + Implementation Example 1-1-1-C, Implementation Example 1-1-1-2 + Implementation Example 1-1-1-A, ... Alternatively, there may be a method such as Realization Example 1-1-1-1 + Realization Example 1-1-1-2 + Realization Example 1-1-1-A by combining multiple examples.

[0234] The aforementioned implementation examples collectively apply a new MPM list generation method when the mode of the reference block is included in the irregular intra prediction mode set. However, as shown in Table 4, different MPM list generation methods can be applied for each mode of the reference block.

[0235]

[0236] <Example 1-1-2> Infer regular intra prediction mode from surrounding pixel information of the current block and create MPM list using inferred mode.

[0237] In this implementation example, the image decoding device (1) infers a regular intra prediction mode using the positions, number, values, distances to the current block, etc. of pixels surrounding the current block, and (2) generates an MPM list using the inferred mode. The method for inferring the regular intra prediction mode may be one of a method of inferring prediction modes from values ​​of pixels surrounding the current block using an edge detector and using the most dominant mode among the inferred modes (Implementation Example 1-1-2-1), and a method of comparing distortion D of each prediction mode using information of pixels surrounding the current block and then using the mode with the lowest distortion D (Implementation Example 1-1-2-2).

[0238] <Example 1-1-2-1> Using an edge detector, predictive modes are inferred from the values ​​of pixels surrounding the current block, and the most dominant mode among the inferred modes is used.

[0239] In this implementation example, the image decoding device can infer prediction modes from the values ​​of pixels surrounding the current block using an edge detector, and use the most dominant mode among the inferred modes. The image decoding device can borrow the DIMD (Decoder-side Intra Mode Derivation) technique to derive the prediction mode as follows. The surrounding pixel area is set as in the example of Fig. 21. In this case, the surrounding pixel area can be set in various ways depending on the embodiment, in addition to the example of Fig. 21.

[0240] The image decoding device applies an edge detection filter (Sobel filter used in DIMD technology, Prewitt filter, Robert cross filter, etc.) to the determined pixel area as shown in the example of Fig. 21. The image decoding device calculates the gradient of the pixels existing in the area and replaces the calculated gradient with the angular mode of intra prediction. Based on the magnitude of the gradient value, the image decoding device derives the intensity (I) for the corresponding directional mode, thereby obtaining an intensity histogram for each directional mode as shown in the example of Fig. 22. In the example of Fig. 22, I Angular represents the intensity of each directional mode. At this time, the image decoding device can generate an MPM list using mode 18 and mode 35, which are the directional modes with the highest intensity in the histogram illustrated in Fig. 22.

[0241] When the intensities of the directional modes are the same, the modes can be derived by specifying priorities. At this time, a fixed order such as {horizontal mode, vertical mode, mode 66, ...}, ascending order, or descending order can be used as the priorities. For example, when assigning priorities in descending order, in the example of Fig. 23, mode 19 has a higher priority because its index is greater than mode 18. Accordingly, the image decoding device can derive mode 19 as a mode for generating an MPM list. In addition to the examples described above, when the intensities are the same, a specific mode can be derived based on a predefined rule.

[0242] As another example, to derive the mode to be used for generating the MPM list, the image decoding device divides the surrounding pixels into the surrounding pixel areas to the left and top of the current block, as shown in the example of Fig. 24, and then calculates the histogram of each surrounding pixel area. Thereafter, the image decoding device can generate the MPM list by utilizing the directional mode with the highest intensity in each surrounding pixel area.

[0243] For example, if the intensity histograms derived from the upper and left peripheral pixel areas are as shown in the examples of FIGS. 25a and 25b, the image decoding device can use mode 19 derived from the histogram illustrated in FIG. 25a and mode 22 derived from the histogram illustrated in FIG. 25b as modes for generating the MPM list.

[0244] <Example 1-1-2-2> After comparing the distortion D of each prediction mode using the information of pixels around the current block, the mode with the lowest distortion D is used.

[0245] In this implementation example, the image decoding device can compare the distortion D of each prediction mode using information of pixels surrounding the current block, and then use the mode with the lowest distortion D. The image decoding device can borrow the Template-based Intra Mode Derivation (TIMD) technique to derive the prediction mode as follows. As in the example of Fig. 26, a surrounding pixel area is set using the surrounding pixels of the current block. The image decoding device performs prediction for each prediction mode candidate using the surrounding pixels on the left and upper sides of the area to generate a predictor for the surrounding pixel area. In the example of Fig. 26, the surrounding pixels referenced when generating the predictor are limited to the surrounding pixels adjacent to the set surrounding pixel area, but in addition, surrounding pixels slightly distant from the set area can be used. In addition, the surrounding pixel area can also be set in various ways depending on the embodiment.

[0246] Afterwards, the image decoding device calculates the distortion (D) between the predictor of the surrounding pixel area according to each prediction mode candidate and the restored pixel values ​​of the area. At this time, various image similarity measurement methods such as MSE (Mean Square Error), SAD (Sum of Absolute Differences), and SATD (Sum of Absolute Transformed Differences) can be used. The image decoding device uses the prediction mode with the smallest distortion among the prediction mode candidates as the mode for generating the MPM list. For example, as in the example of FIG. 27, the distortion (D) for the prediction mode candidates RIM ) When a histogram is generated, modes 18 and 35 have the second smallest distortion and the smallest distortion, respectively. Therefore, the image decoding device can generate an MPM list by utilizing modes 18 and 35. Alternatively, if the modes to be used for generating the MPM list are derived, or if the distortions of some prediction modes are the same, the image decoding device can modify the selection criteria of the modes to be in the order of the minimum distortion, and then apply the same operation method of Implementation Example 1-1-2-1.

[0247] In addition to the two examples of deriving a specific mode from information about surrounding pixels as described above, the modes required for generating the MPM list can be derived using various methods.

[0248] Thereafter, the image decoding device can generate an MPM list according to one of the following methods (Implementation Example 1-1-2-A to Implementation Example 1-1-2-C) by utilizing the modes modeL' and modeA' of the reference block changed according to (1).

[0249] <Example 1-1-2-A> Generate an MPM list with preset regular intra prediction modes, modeL' and modeA'.

[0250] <Example 1-1-2-B> Create an MPM list with modeL', modeA', and their adjacent modes.

[0251] <Example 1-1-2-C> Generate an MPM list with preset regular intra prediction modes, modeL', modeA', and their adjacent modes.

[0252] The final MPM list generation method can be implemented by combining one or more methods among the examples of the above-described process (1) (Implementation Examples 1-1-2-1 to 1-1-2-4) and one or more methods among the examples of the process (2) (Implementation Examples 1-1-2-A to 1-1-2-C). Methods for combining one example of the process (1) and one example of the process (2) may include methods such as Implementation Example 1-1-2-1 + Implementation Example 1-1-2-A, Implementation Example 1-1-2-1 + Implementation Example 1-1-2-B, Implementation Example 1-1-2-1 + Implementation Example 1-1-2-C, Implementation Example 1-1-2-2 + Implementation Example 1-1-2-A, ...

[0253] The aforementioned implementation examples collectively apply a new MPM list generation method when the mode of the reference block is included in the irregular intra prediction mode set. However, as shown in Table 5, different MPM list generation methods can be applied for each mode of the reference block.

[0254]

[0255] <Example 1-2> When the mode of the reference block is either Planar or DC

[0256] In this embodiment, a method for generating an MPM list is described when the mode of a reference block is one of Planar and DC. In this embodiment, an image decoding device changes a reference block using previously restored information of a current block and its surroundings so that the mode of the corresponding block becomes a regular intra prediction mode (i.e., a directional mode) other than Planar and DC, and generates an MPM list using the mode of the changed reference block (Embodiment 1-2-1). Alternatively, the image decoding device can infer a regular intra prediction mode from surrounding pixel information of the current block and generate an MPM list using the inferred mode (Embodiment 1-2-2).

[0257] <Example 1-2-1> Change the reference block so that the mode of the block becomes directional mode, and create an MPM list using the mode of the changed reference block.

[0258] In this implementation example, the image decoding device (1) changes the reference block so that the mode of the corresponding block becomes the directional mode, and (2) generates an MPM list using the mode of the changed reference block. At this time, a specific method for changing the reference block so that the mode of the corresponding block becomes the directional mode may be to change the 'regular intra prediction mode' condition to 'directional mode' and then use the same process of Implementation Example 1-1-1. Accordingly, as in the examples of FIGS. 12a to 12d, a method may be used in which a search is performed according to a preset surrounding pixel search order, and if the prediction mode of a block including a pixel is the directional mode, the block including the pixel is changed to the reference block. Alternatively, a method may be used in which a preset reference block selection criterion satisfies a preset condition (e.g., maximum value) and the prediction mode of the block is the directional mode, the block is changed to the reference block. The standard block selection criterion may be one of the restored information of the current block and its surroundings, such as adjacent length, width, aspect ratio, etc.

[0259] Based on the above-described methods, when the mode of the reference block is Planar or DC, a method of changing the mode of the block by changing the reference block may be one of a method of searching pixels adjacent to the current block according to a predetermined search order (Example 1-2-1-1), a method of changing the reference block to a block among surrounding blocks whose prediction mode is a directional mode and whose adjacent length to the current block is the longest (Example 1-2-1-2), a method of changing the reference block to a block among surrounding blocks whose prediction mode is a directional mode and whose area is the largest (Example 1-2-1-3), and a method of changing the reference block to a block among surrounding blocks whose prediction mode is a directional mode and whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block (Example 1-2-1-4).

[0260] <Example 1-2-1-1> A method for searching pixels adjacent to the current block according to a predetermined search order.

[0261] In this implementation example, the image decoding device searches for pixels adjacent to the current block in a predetermined search order, excluding the initial pixel, and changes the reference block to a block including the first pixel predicted in the directional mode.

[0262] <Example 1-2-1-2> A method of changing the reference block to a block among the surrounding blocks whose prediction mode is directional mode and whose adjacent length to the current block is the longest.

[0263] In this implementation example, the image decoding device can change the reference block to a block among blocks surrounding the current block whose prediction mode is a directional mode and whose adjacent length to the current block is the longest.

[0264] <Example 1-2-1-3> A method of changing the reference block to the block with the largest area and prediction mode in the directional mode among the surrounding blocks.

[0265] In this implementation example, the image decoding device can change the reference block to a block having the largest area and a directional prediction mode among blocks surrounding the current block.

[0266] <Example 1-2-1-4> A method of changing the reference block to a block among the surrounding blocks whose prediction mode is directional mode and whose aspect ratio is the same as (or most similar to) that of the current block.

[0267] In this implementation example, the image decoding device can change the reference block to a block among blocks surrounding the current block whose prediction mode is a directional mode and whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block.

[0268] In addition to the four implementation examples of modifying the reference block using the current block and its surrounding reconstructed information as described above, the reference block may be modified using various methods. Meanwhile, even after modifying the reference block using the methods described above, if the prediction mode of the reference block is Planar or DC, one of the four implementation examples described above may be additionally applied. For example, if implementation example 1-2-1-2 is applied but the prediction mode of the reference block is either Planar or DC, 1-2-1-3 may be additionally applied. Alternatively, if the prediction mode of the reference block is either Planar or DC even after modifying the reference block using the methods described above, either Planar or DC may be used as is. In addition, the examples described above describe the case where the prediction mode of one of the two blocks containing pixels L and A is either Planar or DC. However, even if the prediction modes of both blocks containing pixels L and A are either Planar or DC, the reference block may be modified by extending and applying the operations of the examples described above.

[0269] Thereafter, the image decoding device can generate an MPM list according to one of the following methods (Embodiment Examples 1-1-2-A to 1-1-2-C) by utilizing the modes modeL' and modeA' of the reference block changed according to (1). At this time, non-directional modes 0 (Planar) and 1 (DC) may be included by default.

[0270] <Example 1-2-1-A> Create an MPM list with preset directional modes, modeL' and modeA'.

[0271] In this implementation example, the image decoding device can generate an MPM list with predetermined directional modes, modeL' and modeA'. At this time, the order of the modes in the MPM list can be determined in various ways according to a predetermined sorting method (e.g., the mode of the reference block is in lower priority, ascending order, descending order, etc.). For example, the MPM list can be generated in a manner such as {0(Planar), 1(DC), 34, 66, modeL', modeA'}, {0(Planar), 1(DC), modeL', modeA', 34, 66}, etc.

[0272] <Example 1-2-1-B> Create an MPM list with modeL', modeA', and their adjacent modes.

[0273] The video decoding device can generate an MPM list with modeL', modeA' and their adjacent modes. For example, by adding a preset offset value (e.g., 0, ±1, ±2, ...) to modeL', modeA', an MPM list can be generated as {0(Planar), 1(DC), modeL', modeA', modeL'+1, modeA'-1}. The offset value can be set in various ways depending on the embodiment. As another example, by deriving modes between the mode indexes of modeL', modeA' at equal intervals, an MPM list can be set as {0(Planar), 1(DC), modeL', 2 / 3×modeL'+1 / 3×modeA', 2 / 3×modeL'+1 / 3×modeA', modeA'} (when modeL' < modeA').

[0274] <Example 1-2-1-C> Create an MPM list with preset directional modes, modeL', modeA', and their adjacent modes.

[0275] In this implementation example, the image decoding device can generate an MPM list with predetermined directional modes, modeL', modeA', and their adjacent modes. The image decoding device can generate an MPM list by mixing Implementation Example 1-2-1-A and Implementation Example 1-2-1-B.

[0276] In addition to generating an MPM list using the aforementioned implementation examples based on the modified reference block mode, an MPM list can be generated in various other ways. Furthermore, the aforementioned methods are based on a case where the MPM list length is 6. However, even if the MPM list length is changed to a value other than 6, the MPM list can be generated by applying the same operations described above.

[0277] The final MPM list generation method can be implemented by combining one or more methods among the examples of the above-described process (1) (Implementation Examples 1-2-1-1 to 1-2-1-4) and one or more methods among the examples of the process (2) (Implementation Examples 1-2-1-A to 1-2-1-C). Methods for combining one example of the process (1) and one example of the process (2) may include methods such as Implementation Example 1-2-1-1 + Implementation Example 1-2-1-A, Implementation Example 1-2-1-1 + Implementation Example 1-2-1-B, Implementation Example 1-2-1-1 + Implementation Example 1-2-1-C, Implementation Example 1-2-1-2 + Implementation Example 1-2-1-A, ... The above-described implementation examples collectively apply a new MPM list generation method when the mode of the reference block is included in Planar and DC. However, as shown in Table 6, different MPM list generation methods can be applied depending on the mode of the reference block.

[0278]

[0279] <Example 1-2-2> Infer the directional mode from the surrounding pixel information of the current block and create an MPM list using the inferred mode.

[0280] In this implementation example, the image decoding device (1) infers a directional mode using the position, number, value, distance to the current block, etc. of the surrounding pixels of the current block, and (2) generates an MPM list using the inferred mode. At this time, a specific method of inferring the directional mode can be the same as that of Implementation Example 1-1-2 after changing the 'regular intra prediction mode' condition to 'directional mode'. The image decoding device can infer prediction modes from the values ​​of the surrounding pixels of the current block using an edge detector, and use the most dominant mode among the inferred modes (Implementation Example 1-2-2-1), or can compare the distortion D of each prediction mode using information of the surrounding pixels of the current block, and then use the mode with the lowest distortion D (Implementation Example 1-2-2-2).

[0281] <Example 1-2-2-1> Infer prediction modes from the values ​​of pixels surrounding the current block using an edge detector, and use the most dominant mode among the inferred modes.

[0282] In this implementation example, the image decoding device may infer prediction modes from the values ​​of pixels surrounding the current block using an edge detector, and use the most dominant mode among the inferred modes. The image decoding device may employ the DIMD technique described above to derive the prediction mode.

[0283] <Example 1-2-2-2> After comparing the distortion D of each prediction mode using the information of pixels around the current block, the mode with the lowest distortion D is used.

[0284] In this implementation example, the image decoding device can compare the distortion D of each prediction mode using information about pixels surrounding the current block, and then use the mode with the lowest distortion D. The image decoding device can borrow the TIMD technique to derive the prediction mode.

[0285] In addition to the two examples of deriving specific modes from information about surrounding pixels as described above, the directional modes required for generating the MPM list can be derived using various methods.

[0286] Thereafter, the image decoding device can generate an MPM list according to one of the following methods (Embodiment Examples 1-2-2-A to 1-2-2-C) by utilizing the modes modeL' and modeA' of the reference block changed according to process (1).

[0287] <Example 1-2-2-A> Create an MPM list with preset directional modes, modeL' and modeA'.

[0288] <Example 1-2-2-B> Create an MPM list with modeL', modeA', and their adjacent modes.

[0289] <Example 1-2-2-C> Create an MPM list with preset directional modes, modeL', modeA', and their adjacent modes.

[0290] A final MPM list generation method can be implemented by combining one or more methods among the examples of the above-described process (1) (Implementation Examples 1-2-2-1 to 1-2-2-4) and one or more methods among the examples of the process (2) (Implementation Examples 1-2-2-A to 1-2-2-C). The image decoding device can utilize the same method as the final MPM list generation method of Implementation Example 1-2-1.

[0291] <Example 2> Change the prediction mode of the corresponding luma block according to the adaptively selected mode change method in DM.

[0292] In the present implementation example, the video decoding device can change the prediction mode of the corresponding luma block according to a mode changing method adaptively selected according to the mode of the corresponding luma block in the DM. If the prediction mode of the corresponding luma block in the DM is an irregular intra prediction mode or a default mode, the video decoding device searches for blocks surrounding the corresponding luma block according to the mode changing method. The video decoding device selects a block having a regular intra prediction mode excluding the default mode and changes the mode of the corresponding luma block to the mode of the block (Implementation Example 2-1). Alternatively, the video decoding device can infer a regular intra prediction mode excluding the default mode from pixel information within and surrounding the corresponding luma region, and change the mode of the corresponding luma block to the inferred mode (Implementation Example 2-2).

[0293] The corresponding luma block in Example 2 matches the reference block in Example 1. That is, just as the image decoding device in Example 1 determines the MPM list generation method according to the prediction mode of the reference block, the image decoding device in Example 2 determines the mode change method according to the prediction mode of the corresponding luma block.

[0294] The existing DM is based on the characteristic that the prediction mode of the luma block corresponding to the current chroma block is highly correlated. Therefore, the method of changing the prediction mode of the corresponding luma block also considers the restored information in and around the luma region corresponding to the current chroma block (hereinafter, 'corresponding luma region'). The restored information in and around the corresponding luma region may include the width / height / area / aspect ratio / prediction mode / position / number / distance to the corresponding luma block of the block included in the corresponding luma region and the blocks surrounding the region (including the corresponding luma block), the position / number / value of the luma pixels in and around the corresponding luma region, and the distance to the corresponding luma block.

[0295] <Example 2-1> Search blocks around the corresponding luma block in DM and change the mode of the corresponding luma block to the mode of the selected block.

[0296] In this implementation example, when the prediction mode of a corresponding luma block in DM is an irregular intra prediction mode or a default mode, a method is described for changing the mode of the corresponding luma block to the mode of a selected block by searching blocks surrounding the corresponding luma block as a mode changing method. In this implementation example, there are two representative methods for the mode changing method based on searching reference blocks.

[0297] FIGS. 28a to 28d are exemplary diagrams showing a predetermined surrounding pixel search order according to one embodiment of the present disclosure.

[0298] The first method is to search according to a predetermined surrounding pixel search order set in the examples of FIGS. 28a to 28d, and if the prediction mode of the block including the pixel is a regular intra prediction mode excluding the default mode, the mode of the block including the pixel is used. As in the examples of FIGS. 28a to 28d, surrounding pixels can be searched in the order of ① (counterclockwise), ② (clockwise), ③ (raster scan), ④ (bottom-up priority zigzag scan), ⑤ (left-up priority zigzag scan), etc., based on the upper left surrounding pixel of the corresponding luma block. In addition to the examples of FIGS. 28a to 28d, various predetermined surrounding pixel search orders can be used.

[0299] The second method uses the mode of a block if a given block selection criterion satisfies a predefined condition (e.g., a maximum value) and the block's prediction mode is a regular intra prediction mode other than the default mode. The given block selection criterion may be one of the restored information of the corresponding luma region and its surroundings, such as adjacent length, width, or aspect ratio.

[0300] Based on the above-described methods, when the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode, a method for changing the mode based on searching blocks surrounding the corresponding luma block may be one of a method for searching pixels adjacent to the corresponding luma block according to a predetermined search order (Embodiment 2-1-1), a method for changing the mode of the corresponding luma block to the mode of a block among the surrounding blocks of the corresponding luma block, the prediction mode of which is a regular intra prediction mode excluding the default mode and has the longest adjacent length with the corresponding luma block (Embodiment 2-1-2), a method for changing the mode of the corresponding luma block to the mode of a block among the surrounding blocks of the corresponding luma block, the prediction mode of which is a regular intra prediction mode excluding the default mode and has the largest area (Embodiment 2-1-3), and a method for changing the mode of the corresponding luma block to the mode of a block among the surrounding blocks of the corresponding luma block, the prediction mode of which is a regular intra prediction mode excluding the default mode and has an aspect ratio identical to (or most similar to) the aspect ratio of the current block (Embodiment 2-1-4).

[0301] The following implementation examples can be applied to both cases where the block partitioning structures of the luma channel and the chroma channel are the same (the sizes of the corresponding luma block and the corresponding luma region are the same), such as a single-tree partitioning structure, and cases where the partitioning structures of the luma and chroma channels are different (the sizes of the corresponding luma region and the corresponding luma block are different), such as a dual-tree structure. In addition, the surrounding reference blocks and pixels considered in the following implementation examples are only all blocks adjacent to the corresponding luma block, all adjacent pixels, or all blocks included in the corresponding luma region. However, in addition to this, the range of the surrounding blocks can be set in various ways depending on the embodiment, including slightly distant blocks and pixels.

[0302] <Example 2-1-1> Search for pixels adjacent to the corresponding luma block according to a predetermined search order.

[0303] In this implementation example, the image decoding device can search pixels adjacent to the corresponding luma block according to a predetermined search order and change the mode of the corresponding luma block to the mode of the block including the first pixel whose prediction mode is a regular intra prediction mode excluding the default mode.

[0304] FIG. 29 is an exemplary diagram showing a change of mode using a surrounding pixel search order according to one embodiment of the present disclosure.

[0305] As an example, as in the example of Fig. 29, the case where the sizes of the corresponding luma block and the corresponding luma region are the same and the mode of the corresponding luma block is an irregular intra prediction mode or a default mode is described. The image decoding device searches for pixels adjacent to the corresponding luma block in the order of ① (counterclockwise) and selects one of the surrounding reference blocks, thereby making the mode of the corresponding block a regular intra prediction mode excluding the default mode. In the example of Fig. 29, since the prediction mode of the corresponding luma block is IBC, the image decoding device searches for adjacent pixels in the order of ① (counterclockwise). Since the prediction mode of the N1 block including the MidL pixel is 64, and the MidL pixel is the first pixel in the regular intra prediction mode excluding the default mode, the image decoding device can use the mode of the N1 block. In the example of Fig. 29, PLT represents the palette mode.

[0306] As another example, a case in which the sizes of the corresponding luma block and the corresponding luma region are different, as in the example of Fig. 30, is described. In the example of Fig. 30, the image decoding device can search for pixels around the corresponding luma block in the same manner as in the example of Fig. 29 and use the mode of the selected block.

[0307] <Example 2-1-2> Change the mode of the corresponding luma block to the mode of the block with the longest adjacent length to the corresponding luma block and a regular intra prediction mode excluding the default mode among the surrounding blocks of the corresponding luma block.

[0308] In the present implementation example, the image decoding device can change the mode of the corresponding luma block to the mode of a block among the surrounding blocks of the corresponding luma block, the prediction mode of which is a regular intra prediction mode excluding the default mode and the block having the longest adjacent length with the corresponding luma block.

[0309] FIG. 31 is an exemplary diagram showing a change of mode using adjacent length according to one embodiment of the present disclosure.

[0310] As an example, as in the example of FIG. 31, a case is described where the sizes of the corresponding luma block and the corresponding luma region are the same, and the mode of the corresponding luma block is an irregular intra prediction mode or a default mode. An image decoding device may use the prediction mode of a block having the longest adjacent length with respect to the corresponding luma block among reference blocks surrounding the corresponding luma block whose prediction mode is a regular intra prediction mode excluding the default mode. In the example of FIG. 31, since the prediction mode of the corresponding luma block is IBC, the image decoding device searches for a block having the longest adjacent length among the surrounding reference blocks. Since the N1 block has the longest adjacent length of 16 and the prediction mode is 60, which is a regular intra prediction mode excluding the default mode, the image decoding device may use mode 60 of the N1 block.

[0311] As another example, a case where the sizes of the corresponding luma block and the corresponding luma region are different, as in the example of Fig. 32, is described. In the example of Fig. 32, the image decoding device can use the prediction mode of the block with the longest adjacent length to the corresponding luma block among the reference blocks surrounding the corresponding luma block, which is a regular intra prediction mode excluding the default mode, in the same manner as the example of Fig. 31.

[0312] <Example 2-1-3> Change the mode of the corresponding luma block to the mode of the block with the largest area and a regular intra prediction mode excluding the default mode among the surrounding blocks of the corresponding luma block.

[0313] In the present implementation example, the image decoding device can change the mode of the corresponding luma block to the mode of a block having the largest area and a regular intra prediction mode excluding the default mode among the surrounding blocks of the corresponding luma block.

[0314] FIG. 33 is an exemplary diagram showing a change of mode using width according to one embodiment of the present disclosure.

[0315] As an example, as in the example of FIG. 33, a case is described where the sizes of the corresponding luma block and the corresponding luma region are the same, and the mode of the corresponding luma block is an irregular intra prediction mode or a default mode. The video decoding device can use the prediction mode of the block with the largest area among the reference blocks around the corresponding luma block whose prediction mode is a regular intra prediction mode excluding the default mode. In the example of FIG. 33, since the prediction mode of the corresponding luma block is IBC, the video decoding device searches for the block with the largest area among the reference blocks around it. Since the N1 block has the largest area of ​​256 and the prediction mode is 64, which is a regular intra prediction mode excluding the default mode, the video decoding device can use the 64th mode of the N1 block.

[0316] As another example, a case in which the sizes of the corresponding luma block and the corresponding luma region are different, as in the example of Fig. 34, is described. In the example of Fig. 34, the image decoding device can use the prediction mode of the block with the largest area among the reference blocks surrounding the corresponding luma block, which is a regular intra prediction mode excluding the default mode, in the same manner as the example of Fig. 33.

[0317] <Example 2-1-4> Change the mode of the corresponding luma block to the mode of a block among the surrounding blocks of the corresponding luma block whose prediction mode is a regular intra prediction mode excluding the default mode and whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block.

[0318] In the present implementation example, the video decoding device can change the mode of the corresponding luma block to a mode of a block among the surrounding blocks of the corresponding luma block, the prediction mode of which is a regular intra prediction mode excluding the default mode and the aspect ratio of which is the same as (or most similar to) the aspect ratio of the current block (or the current chroma block).

[0319] FIG. 35 is an exemplary diagram showing a change in mode using aspect ratio according to one embodiment of the present disclosure.

[0320] As an example, as in the example of FIG. 35, the case where the sizes of the corresponding luma block and the corresponding luma region are the same, and the mode of the corresponding luma block is an irregular intra prediction mode or a default mode is described. The video decoding device can use the prediction mode of a block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block among the reference blocks around the corresponding luma block whose prediction mode is a regular intra prediction mode excluding the default mode. In the example of FIG. 35, since the prediction mode of the corresponding luma block is IBC, the video decoding device searches for a block whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block among the reference blocks around it. Since the aspect ratio of the N1 block is the same as that of the current block and the prediction mode is 37, which is a regular intra prediction mode excluding the default mode, the video decoding device can use the 37th mode of the N1 block.

[0321] As another example, a case where the sizes of the corresponding luma block and the corresponding luma region are different, as in the example of Fig. 36, is described. In the example of Fig. 36, the image decoding device may use the prediction mode of a block among the reference blocks surrounding the corresponding luma block whose prediction mode is a regular intra prediction mode excluding the default mode, and whose aspect ratio is the same as (or most similar to) the aspect ratio of the current block, in the same manner as the example of Fig. 35.

[0322] In addition to the four implementation examples that utilize regular intra prediction modes other than the default mode by utilizing the corresponding luma block and its surrounding restored information as described above, the prediction mode of the corresponding luma block according to the DM can be changed using various methods. Meanwhile, even after changing the prediction mode according to the DM using the above-described methods, if the changed mode is an irregular intra prediction mode or the default mode, the prediction mode according to the DM can be replaced with one of the existing regular intra prediction modes.

[0323] <Example 2-2> In the DM, a regular intra prediction mode excluding the default mode is inferred from the pixel information inside and around the corresponding luma area, and the mode of the corresponding luma block is changed to the inferred mode.

[0324] In this embodiment, a method for changing a mode is described, in which a regular intra prediction mode excluding a default mode is inferred using restored information (e.g., values / positions / numbers of pixels within and around the corresponding luma region / distances to corresponding luma blocks, etc.) within and around the corresponding luma region in a DM, and the mode of the corresponding luma block is changed to the inferred mode. The method for inferring a regular intra prediction mode excluding the default mode may be one of a method of inferring prediction modes from values ​​of pixels within and around the corresponding luma region using an edge detector and using the most dominant mode among the inferred modes (Embodiment 2-2-1), and a method of comparing distortion D of each prediction mode using information of pixels within and around the corresponding luma region and using the mode with the lowest distortion D (Embodiment 2-2-2).

[0325] <Example 2-2-1> Using an edge detector, predictive modes are inferred from the values ​​of pixels within and around the corresponding luma region, and the mode of the corresponding luma block is changed to the most dominant mode among the inferred modes.

[0326] In this implementation example, the image decoding device can infer prediction modes from the values ​​of pixels within and around the corresponding luma region using an edge detector, and change the mode of the corresponding luma block to the most dominant mode among the inferred modes. The image decoding device can borrow the DIMD technique as follows to derive the prediction mode. As in the example of Fig. 37, a specific area among the pixels within the corresponding luma region is set as a luma pixel area. At this time, the luma pixel area can be set in various ways depending on the embodiment in addition to the example of Fig. 37. Since the subsequent process is the same as the method of deriving the mode in Implementation Example 1-1-2-1, the mode derived according to Implementation Example 1-1-2-1 can be used.

[0327] The video decoding device can apply an edge detection filter to the luma pixel area to calculate the intensities of the regular intra prediction modes excluding the default mode, and then use the mode with the highest intensity. As shown in the example of Fig. 38, since the intensity of mode 35 is the highest among the regular intra prediction modes excluding the default mode, the video decoding device can use mode 35. In the example of Fig. 38, RIM represents a regular intra prediction mode excluding the default mode.

[0328] <Example 2-2-2> After comparing the distortion D of each prediction mode using the information of pixels inside and around the corresponding luma area, change the mode of the corresponding luma block to the mode with the lowest distortion D.

[0329] In this implementation example, the image decoding device can compare the distortion D of each prediction mode using information of pixels inside and around the corresponding luma region, and then change the mode of the corresponding luma block to the mode mode with the lowest distortion D. The image decoding device can borrow the TIMD technique as follows to derive the prediction mode. As in the example of Fig. 39, a luma pixel region is set using pixels inside and around the corresponding luma region. The image decoding device performs prediction for each prediction mode candidate using pixels around the left and upper sides of the region to generate a predictor of the luma pixel region.

[0330] In the example of Fig. 39, the surrounding pixels referenced when generating the predictor are limited to the surrounding pixels adjacent to the set luma pixel area, but other surrounding pixels slightly away from the set area may also be used. Furthermore, although the luma pixel area is limited to the pixels within the corresponding luma area, the luma pixel area may be set in various ways depending on the embodiment by utilizing both the pixels within the corresponding luma area and the pixels surrounding it.

[0331] The subsequent process is identical to the method for deriving the mode in Example 1-1-2-2, so the mode derived according to Example 1-1-2-2 can be used. As shown in the example of Fig. 40, among the regular intra prediction modes excluding the default mode, mode 35 has the smallest distortion, so the image decoding device can use mode 35. In the example of Fig. 40, RIM represents a regular intra prediction mode excluding the default mode.

[0332] In addition to the two implementation examples of inferring regular intra prediction modes excluding the default mode by using information of pixels within and around the corresponding luma region as described above, prediction modes according to DM can be inferred using various methods.

[0333] <Example 3> Determination of whether to apply the present disclosure and the method of application

[0334] This implementation example describes a method for determining whether the present disclosure is applicable and one of a plurality of application methods when applying the present disclosure. Whether the present disclosure is applicable can be determined by signaling between a video encoding device and a video decoding device. Alternatively, whether the present disclosure is applicable can be inferred from the video decoding device side without a separate signal. When the present disclosure is applicable, one of a plurality of application methods (such as the methods for generating an MPM list for each prediction mode of a reference block as exemplified in Implementation Example 1, and the methods for changing the mode of a corresponding luma block as exemplified in Implementation Example 2) can be determined by signaling between the video encoding device and the video decoding device. Alternatively, one of the plurality of application methods can be determined by a predetermined method set in advance without a separate signal. Hereinafter, Implementation Examples 3-1 and 3-2 describe decision methods related to MPM technology and DM technology, respectively, but a decision method according to a combination of the two technologies can also be implemented.

[0335] <Example 3-1> Whether to apply a method of selecting one of multiple MPM list generation methods according to the mode of the reference block, and when applying, determine the MPM list generation method according to the prediction mode of the reference block.

[0336] This embodiment describes a method for determining whether to apply a method of selecting one of a plurality of MPM list generation methods according to a mode of a reference block, and a method for determining an MPM list generation method for each prediction mode of a reference block when applying the present disclosure. Whether to apply the present disclosure can be determined by signaling between a video encoding device and a video decoding device. Alternatively, whether to apply the present disclosure can be inferred from the video decoding device side without a separate signal. When the present disclosure is applied, one of a plurality of MPM list generation methods as exemplified in Embodiment 1 can be determined by signaling between the video encoding device and the video decoding device. Alternatively, the MPM list generation method can be determined by a predetermined method set in advance without a separate signal. For example, the video decoding device can determine whether to apply the present disclosure according to a flag. Furthermore, when the present disclosure is applied, the video decoding device can determine one of a plurality of MPM list generation methods using an index.

[0337] This implementation example introduces two new syntax elements, multiple_mpm_list_construction_enabled_flag and multiple_mpm_list_construction_idx. The multiple_mpm_list_construction_enabled_flag (hereinafter referred to as the 'multiple MPM list construction flag') is a flag that determines whether the present disclosure is applied. If the multiple MPM list construction flag is 1, the present disclosure is applied, and if the multiple MPM list construction flag is 0, the present disclosure is not applied. If the present disclosure is not applied, a conventional MPM list construction algorithm can be used. The multiple_mpm_list_construction_idx (hereinafter referred to as the 'multiple MPM list construction index') is an index that determines one of multiple MPM list construction methods, and can distinguish the MPM list construction methods as shown in the example of Table 7.

[0338]

[0339] As shown in Table 7, the final MPM list generation method includes a method for changing the reference block and / or a method for generating a lower MPM list. The method for changing the reference block is one of the examples (1) in Implementation Example 1, and the method for generating a lower MPM list is one of the examples (2) in Implementation Example 1. If the MPM list generation method does not include a method for generating a lower MPM list, a conventional MPM list generation algorithm is used as the method for generating a lower MPM list.

[0340] The applicability of the present disclosure can be determined based on a flag signal or inference. Furthermore, the MPM list generation method can be determined using a predetermined method or based on a signaled index. The examples in Table 8 illustrate combinations of the determination methods for the two syntax elements described above. The operational structure for each combination shown in Table 8 is described in detail in the following sub-implementation examples.

[0341]

[0342] <Example 3-1-1> Signaling whether the present disclosure is applicable and how to generate a list of MPMs for each mode of the reference block

[0343] In this implementation example, the video decoding device receives both multiple_mpm_list_construction_enabled_flag, which determines whether the present disclosure is applied, and multiple_mpm_list_construction_idx, which determines the MPM list construction method. The two syntax elements can be signaled at various levels, such as Sequence Parameter Set (SPS) / Video Parameter Set (VPS) / Picture Parameter Set (PPS) / Picture Header (PH) / Slice Header (SH) / Coding Tree Unit (CTU) / Coding Unit (CU). As shown in the example of Table 9, whether the present disclosure is applied and the MPM list construction method can be signaled at the SPS level.

[0344]

[0345] In Table 9, the video decoding device parses sps_multiple_mpm_list_construction_enabled_flag to determine whether the present disclosure is applicable. If the parsed flag is 1, the video decoding device parses sps_multiple_mpm_list_construction_idx to determine the MPM list generation method. According to Table 9, since the application of the present disclosure and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs by transmitting a small amount of information at a higher level, encoding efficiency can be improved.

[0346] As another example, whether the present disclosure applies and how the MPM list is generated can be signaled at the CU level, as shown in Table 10.

[0347]

[0348] In Table 10, the video decoding device parses intra_luma_mpm_flag, which indicates whether a mode included in the MPM list is used for each CU. If the parsed flag is 1 and a mode included in the MPM list is used, the video decoding device parses intra_luma_not_planar_flag to determine whether the current CU uses the Planar mode. If intra_luma_not_planar_flag is 1 and a mode in the MPM list other than the Planar mode is used, the video decoding device parses all syntax elements that determine whether the present disclosure is applied and how the MPM list is generated. At this time, whether the present disclosure is applied and how the MPM list is generated that is suitable for each CU can be adaptively signaled. If both intra_luma_mpm_flag and intra_luma_not_planar_flag are 1 in the syntax, additional information according to the present implementation is signaled, so that additional signaling of information for all CUs can be prevented.

[0349] As another example, as shown in Table 11, whether the present disclosure is applicable can be signaled at the SPS level, and the MPM list generation method can be signaled at the CU level.

[0350]

[0351] In Table 11, the video decoding device parses sps_multiple_mpm_list_construction_enabled_flag at the SPS level to determine whether the present disclosure is applied. Thereafter, the video decoding device parses intra_luma_mpm_flag at the CU level, which signals whether a mode included in the MPM list is used for each CU. If the parsed flag is 1 and a mode included in the MPM list is used, the video decoding device parses intra_luma_not_planar_flag to determine whether the current CU uses the Planar mode. If intra_luma_not_planar_flag is 1 and a mode in the MPM list other than the Planar mode is used, the video decoding device checks whether the present disclosure determined at a higher level is applied. If the present disclosure is applied, the video decoding device parses an index indicating an MPM list construction method.

[0352] According to Table 11, since the applicability of the present disclosure and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs without additional information transmission at a higher level, encoding efficiency can be improved. In addition, an appropriate MPM list generation method can be adaptively signaled for each CU. Table 11 describes an example in which the applicability of the present disclosure is signaled at the SPS level and the MPM list generation method is signaled at the CU level. However, in addition to this, the applicability of the present disclosure can be signaled at a higher level and the MPM list generation method can be signaled at a lower level than the higher level, depending on various combinations.

[0353] <Example 3-1-2> Signal whether the present disclosure is applicable and set the method of generating the MPM list for each mode of the reference block in a predetermined manner.

[0354] In the present embodiment, the video decoding device receives a multiple_mpm_list_construction_enabled_flag signal that determines whether the present disclosure is applicable, and determines a mode-specific MPM list construction method using a preset method. The syntax element that determines whether the present disclosure is applicable can be signaled at various levels, such as SPS / VPS / PPS / PH / SH / CTU / CU, etc. According to the present embodiment, since there is no additional information transmission for determining the MPM list construction method, encoding efficiency can be improved. As in the example of Table 12, whether the present disclosure is applicable can be signaled at the SPS level.

[0355]

[0356] In Table 12, the video decoding device parses sps_multiple_mpm_list_construction_enabled_flag to determine whether the present disclosure is applicable. If the parsed flag is 1, the video decoding device uses a preset MPM list generation method. According to Table 12, since the application of the present disclosure and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs by transmitting a small amount of information at a higher level, encoding efficiency can be improved.

[0357] As another example, whether the present disclosure applies can be signaled at the CU level, as shown in Table 13.

[0358]

[0359] In Table 13, the video decoding device parses intra_luma_mpm_flag, which determines whether a mode included in the MPM list is used for each CU. If the parsed flag is 1 and a mode included in the MPM list is used, the video decoding device parses intra_luma_not_planar_flag to determine whether the current CU uses the Planar mode. If intra_luma_not_planar_flag is 1 and a mode in the MPM list other than the Planar mode is used, the video decoding device parses a syntax element that determines whether the present disclosure is applied. At this time, whether the present disclosure is applied appropriately for each CU can be adaptively signaled. If both intra_luma_mpm_flag and intra_luma_not_planar_flag are 1 in the syntax, additional information according to the present implementation is signaled, so that additional signaling of information for all CUs can be prevented.

[0360] <Example 3-1-3> Infer whether the present disclosure is applicable and signal the method of generating the MPM list for each mode of the reference block.

[0361] In this implementation example, the video decoding device uses high-level information to infer whether the present disclosure applies and receives multiple_mpm_list_construction_idx, which determines the MPM list construction method. The syntax element determining the MPM list construction method can be signaled at various levels, such as SPS / VPS / PPS / PH / SH / CTU / CU.

[0362] To determine whether the present disclosure applies, the image decoding device may consider the following high-level information. The image decoding device may consider information about the type of the image, such as Natural Content (NC), Screen Content (SC), Light field Content, XR Content, Point Cloud Content, etc. In addition, the image decoding device may consider information about whether compression techniques are allowed, such as sps_ibc_enabled_flag, sps_palette_enabled_flag, sps_bdpcm_enabled_flag, sps_mip_enabled_flag, etc.

[0363] Depending on the video type, prediction techniques included in a set of irregular intra prediction modes, such as IBC, Palette, BDPCM, and MIP, are additionally allowed. Since these modes are frequently used, simply replacing an irregular intra prediction mode with one of the regular intra prediction modes, as in the conventional MPM technique, may be inefficient. Accordingly, a video decoding device can infer whether the present disclosure is applicable based on high-level information, such as the video type and additionally allowed prediction techniques. In other words, whether the present disclosure is advantageous can be determined in advance based on the high-level information. Accordingly, since no additional information is transmitted, encoding efficiency can be improved.

[0364] Below, methods for considering the aforementioned higher-level information are specifically described.

[0365] First, we describe the case where there is a high-level syntax (sps_video_type) that determines the type of video. If the video type is NC (sps_video_type=0), the video decoding device infers multiple_mpm_list_construction_enabled_flag as 0. Additionally, if the video type is SC (sps_video_type=1), the video decoding device can infer multiple_mpm_list_construction_enabled_flag as 1.

[0366] As an example, whether the present disclosure is applicable can be inferred depending on the type of image at the SPS level as shown in Table 14, and accordingly, the MPM list generation method can be signaled.

[0367]

[0368] In Table 14, the video decoding device parses sps_video_type to determine the video type, and then infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device additionally parses sps_multiple_mpm_list_construction_idx to determine the MPM list generation method. According to Table 14, whether the present disclosure is applicable can be determined collectively for lower levels such as CTUs and CUs without transmitting additional information at a higher level, and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs with only a small amount of bits, so that encoding efficiency can be improved.

[0369] As another example, whether the present disclosure is applicable can be inferred depending on the image type at the SPS level, as shown in Table 15, and the MPM list generation method can be signaled at the CU level.

[0370]

[0371] In Table 15, the video decoding device determines the video type by parsing sps_video_type at the SPS level, and infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device parses intra_luma_mpm_flag, which indicates whether a mode included in the MPM list is used for each CU at the CU level. If the parsed flag is 1 and a mode included in the MPM list is used, the video decoding device parses intra_luma_not_planar_flag to determine whether the current CU uses the Planar mode. If intra_luma_not_planar_flag is true and a mode in the MPM list other than the Planar mode is used, the video decoding device checks whether the present disclosure determined at a higher level is applicable. When the present disclosure is applied, the video decoding device parses an index multiple_mpm_list_construction_idx, which indicates an MPM list construction method.

[0372] According to Table 15, since the applicability of the present disclosure is inferred without transmitting additional information at a higher level, encoding efficiency can be improved. In addition, when the present disclosure is applied, an MPM list generation method suitable for each CU can be adaptively signaled. When both intra_luma_mpm_flag and intra_luma_not_planar_flag in the syntax are 1, additional information according to the present implementation is signaled, thereby preventing additional signaling of information collectively for all CUs. Table 15 describes an example in which the applicability of the present disclosure is inferred at the SPS level and the MPM list generation method is signaled at the CU level. However, in addition to this, the applicability of the present disclosure can be inferred using higher-level information and the MPM list generation method can be signaled at a lower level than the higher level depending on various combinations.

[0373] Second, if one or more prediction techniques corresponding to the irregular intra prediction mode are allowed based on the information on whether compression techniques are allowed, the video decoding device infers multiple_mpm_list_construction_enabled_flag as true. Conversely, if none of the prediction techniques corresponding to the irregular intra prediction mode are allowed, the video decoding device may infer multiple_mpm_list_construction_enabled_flag as false.

[0374] For example, as shown in Table 16, the applicability of the present disclosure can be inferred based on the allowability information of compression techniques at the SPS level, and the MPM list generation method can be signaled accordingly. Furthermore, the allowability information can be utilized in various ways to infer the applicability of the present disclosure and signal the MPM list generation method accordingly. For example, the allowability information of some prediction techniques corresponding to the irregular intra prediction mode can be considered.

[0375]

[0376] In Table 16, the video decoding device parses whether the compression technology corresponding to the irregular intra prediction mode is allowed to determine whether it is allowed, and then infers whether the present disclosure is applicable based on whether the compression technology is allowed. When applying the present disclosure, the video decoding device additionally parses sps_multiple_mpm_list_construction_idx to determine the MPM list generation method. According to Table 16, whether the present disclosure is applicable can be determined collectively for lower levels such as CTUs and CUs without transmitting additional information at a higher level, and since the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs with only a small amount of bits, encoding efficiency can be improved.

[0377] As another example, whether the present disclosure is applicable can be inferred based on whether compression technology is allowed at the SPS level, as shown in Table 17, and the MPM list generation method can be signaled at the CU level.

[0378]

[0379] In Table 17, the video decoding device parses whether a compression technology corresponding to an irregular intra prediction mode is allowed at the SPS level to determine whether it is allowed, and then infers whether the present disclosure is applicable based on whether the compression technology is allowed. When the present disclosure is applied, the video decoding device parses intra_luma_mpm_flag, which indicates whether a mode included in the MPM list is used for each CU at the CU level. If the parsed flag is 1 and a mode included in the MPM list is used, the video decoding device parses intra_luma_not_planar_flag to determine whether the current CU uses the Planar mode. If intra_luma_not_planar_flag is true and a mode in the MPM list other than the Planar mode is used, the video decoding device checks whether the present disclosure determined at a higher level is applicable. When the present disclosure is applied, the video decoding device parses an index multiple_mpm_list_construction_idx, which indicates an MPM list construction method.

[0380] According to Table 17, since the applicability of the present disclosure is inferred without transmitting additional information at a higher level, encoding efficiency can be improved. In addition, when the present disclosure is applied, an MPM list generation method suitable for each CU can be adaptively signaled. When both intra_luma_mpm_flag and intra_luma_not_planar_flag in the syntax are 1, additional information according to the present implementation is signaled, so that additional signaling of information for all CUs can be prevented. Table 17 shows an example in which the applicability of the present disclosure is inferred at the SPS level and the MPM list generation method is signaled at the CU level. However, in addition, the applicability of the present disclosure can be inferred using higher-level information and the MPM list generation method can be signaled at a lower level than the higher level depending on various combinations.

[0381] <Example 3-1-4> Infer whether the present disclosure is applicable and set the method of generating the MPM list for each mode of the reference block in a predetermined manner.

[0382] In this embodiment, the image decoding device uses high-level information to infer whether the present invention is applicable, and determines the method for generating the MPM list for each mode of the reference block using a predetermined method. When determining whether the present disclosure is applicable, the high-level information exemplified in Embodiment 3-1-3 may be equally considered. Accordingly, whether the present disclosure is advantageous to be applied can be determined in advance based on the high-level information, similarly to Embodiment 3-1-3. Accordingly, since no additional information is transmitted to determine whether the present disclosure is applicable, encoding efficiency can be improved.

[0383] Methods for considering higher level information as exemplified in Realization Example 3-1-3 are specifically described.

[0384] First, we describe the case where there is a high-level syntax (sps_video_type) that determines the type of video. If the video type is NC (sps_video_type=0), the video decoding device infers multiple_mpm_list_construction_enabled_flag as false. Additionally, if the video type is SC (sps_video_type=1), the video decoding device can infer multiple_mpm_list_construction_enabled_flag as true.

[0385] As an example, whether the present disclosure is applicable can be inferred depending on the type of image at the SPS level as shown in Table 18, and accordingly, the MPM list generation method can be determined in a preset manner.

[0386]

[0387] In Table 18, the video decoding device determines the video type by parsing sps_video_type at the SPS level, and infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device determines the MPM list generation method using a preset method. According to Table 18, whether the present disclosure is applicable and the MPM list generation method can be determined collectively for lower levels such as CTU and CU without additional information transmission at the upper level, thereby improving encoding efficiency.

[0388] Second, if one or more of the prediction techniques corresponding to the irregular intra prediction mode are allowed based on the information on whether the compression technique is allowed, the video decoding device infers multiple_mpm_list_construction_enabled_flag as true; on the other hand, if none of the prediction techniques corresponding to the irregular intra prediction mode are allowed, the video decoding device may infer multiple_mpm_list_construction_enabled_flag as false.

[0389] For example, as shown in Table 19, the applicability of the present disclosure can be inferred based on the allowability information of compression techniques at the SPS level, and accordingly, the MPM list generation method can be determined in a preset manner. Furthermore, the applicability of the present disclosure can be inferred using the allowability information in various ways, and accordingly, the MPM list generation method can be set in a preset manner. For example, the allowability information of some prediction techniques corresponding to the irregular intra prediction mode can be considered.

[0390]

[0391] In Table 19, the video decoding device parses whether the compression technology corresponding to the irregular intra prediction mode is allowed to be allowed, determines whether it is allowed, and then infers whether the present disclosure is applicable based on whether the compression technology is allowed. When applying the present disclosure, the video decoding device determines the MPM list generation method using a preset method. According to Table 19, whether the present disclosure is applicable and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs without additional information transmission at a higher level, thereby improving encoding efficiency.

[0392] <Example 3-2> When the corresponding luma block in DM is in irregular intra prediction mode or default mode, determine whether to apply the mode change method and the mode change method when applying it.

[0393] This implementation example describes a determination of whether to apply a mode changing method (a method of adaptively changing the prediction mode of a corresponding luma block to a regular intra prediction mode excluding the default mode) when a corresponding luma block in a DM is an irregular intra prediction mode or a default mode, and a determination of the mode changing method when applying the present disclosure. Whether to apply the present disclosure can be determined by signaling between a video encoding device and a video decoding device. Alternatively, whether to apply the present disclosure can be inferred from the video decoding device side without a separate signal. When the present disclosure is applied, one of the mode changing methods as exemplified in Implementation Example 2 can be determined by signaling between the video encoding device and the video decoding device. Alternatively, the mode changing method can be determined by a predetermined method set in advance without a separate signal. For example, the video decoding device can determine whether to apply the present disclosure based on a flag. Furthermore, when the present disclosure is applied, the video decoding device can determine one of a plurality of mode changing methods using an index.

[0394] This implementation example introduces two new syntax elements: adaptive_dm_enabled_flag and adaptive_dm_idx. The adaptive_dm_enabled_flag (hereinafter referred to as the "adaptive DM flag") is a flag that determines whether the present disclosure is applicable. If the adaptive DM flag is 1, the present disclosure is applicable, and if the adaptive DM flag is 0, the present disclosure is not applicable. If the present disclosure is not applicable, conventional DM technology can be used.

[0395] adaptive_dm_idx (hereinafter referred to as 'adaptive DM index') is an index that determines one of multiple mode change methods, and can distinguish mode change methods as in the example in Table 20.

[0396]

[0397] Whether the present disclosure applies can be determined based on a flag signal or inference. Furthermore, the mode change method when applying the present disclosure can be determined using a predetermined method or based on a signaled index. The examples in Table 21 illustrate combinations of the determination methods for the two syntax elements described above. The operational structure for each combination shown in Table 21 is described in detail in the following sub-implementation examples.

[0398]

[0399] <Example 3-2-1> Signaling whether the present disclosure is applicable and how to change the mode

[0400] In this implementation example, the video decoding device receives both adaptive_dm_enabled_flag, which determines whether the present disclosure is applicable, and adaptive_dm_idx, which determines the mode switching method. The two syntax elements can be signaled at various levels, such as SPS / VPS / PPS / PH / SH / CTU / CU. As shown in the example in Table 22, whether the present disclosure is applicable and the mode switching method can be signaled at the SPS level.

[0401]

[0402] In Table 22, the video decoding device first parses sps_adaptive_dm_enabled_flag to determine whether the present disclosure is applicable. If the parsed flag is 1, the video decoding device parses sps_adaptive_dm_idx to determine the mode switching method. According to Table 22, since the application of the present disclosure and the mode switching method can be determined collectively for lower levels such as CTUs and CUs by transmitting a small amount of information at the upper level, encoding efficiency can be improved.

[0403] As another example, whether the present disclosure applies and how to change the mode can be signaled at the CU level, as shown in Table 23.

[0404]

[0405] In Table 23, the video decoding device parses cclm_mode_flag, which indicates whether CCLM mode is used for each CU. If the parsed flag is 0, the video decoding device parses intra_chroma_pred_mode. Thereafter, if intra_chroma_pred_mode is 4 and uses DM, and the prediction mode of the corresponding luma block is the default mode or the irregular intra prediction mode, the video decoding device parses adaptive_dm_enabled_flag to determine whether the present disclosure is applied. If the present disclosure is applied, the video decoding device additionally parses adaptive_dm_idx to determine a mode determination method. At this time, whether the present disclosure is applied and a mode change method suitable for each CU can be adaptively signaled. Since adaptive_dm_enabled_flag is conditionally signaled when intra_chroma_pred_mode is signaled as 4 in the syntax, and the mode change method is additionally signaled when adaptive_dm_enabled_flag is 1, additional signaling of information can be prevented for all CUs at once.

[0406] As another example, as in Table 24, whether the present disclosure is applicable can be signaled at the SPS level, and the method of changing the mode can be signaled at the CU level.

[0407]

[0408] In Table 24, the video decoding device parses sps_adaptive_dm_enabled_flag at the SPS level to determine whether the present disclosure is applicable. The video decoding device parses cclm_mode_flag at the CU level, which indicates whether CCLM mode is used for each CU. If the parsed flag is 0, the video decoding device parses intra_chroma_pred_mode. Then, if intra_chroma_pred_mode is 4 and uses DM, the prediction mode of the corresponding luma block is the default mode or the irregular intra prediction mode, and sps_adaptive_dm_enabled_flag is 1, the video decoding device additionally parses adaptive_dm_idx to determine a mode switching method.

[0409] According to Table 24, since the applicability of the present disclosure and the MPM list generation method can be determined collectively for lower levels such as CTUs and CUs without additional information transmission at a higher level, encoding efficiency can be improved. At this time, the applicability of the present disclosure and the mode switching method suitable for each CU can be adaptively signaled. Table 24 describes an example in which the applicability of the present disclosure is signaled at the SPS level and the mode switching method is signaled at the CU level. However, in addition to this, the applicability of the present disclosure can be signaled at a higher level and the mode switching method can be signaled at a lower level than the higher level, depending on various combinations.

[0410] <Example 3-2-2> Signaling whether the present disclosure is applicable and setting the mode change method in a preset manner

[0411] In this embodiment, the video decoding device receives the adaptive_dm_enabled_flag signal, which determines whether the present disclosure is applicable, and determines the mode switching method using a preset method. The syntax element determining whether the present disclosure is applicable can be signaled at various levels, such as SPS / VPS / PPS / PH / SH / CTU / CU, etc. According to this embodiment, since there is no additional information transmission for determining the mode switching method, encoding efficiency can be improved. As shown in the example of Table 25, whether the present disclosure is applicable can be signaled at the SPS level.

[0412]

[0413] In Table 25, the video decoding device parses sps_adaptive_dm_enabled_flag to determine whether the present disclosure is applicable. If the parsed flag is 1, the video decoding device uses a preset mode switching method. According to Table 25, since the application of the present disclosure and the mode switching method can be determined collectively for lower levels such as CTUs and CUs by transmitting a small amount of information at the upper level, encoding efficiency can be improved.

[0414] As another example, whether the present disclosure applies can be signaled at the CU level, as shown in Table 26.

[0415]

[0416] In Table 26, the video decoding device parses cclm_mode_flag, which indicates whether CCLM mode is used for each CU. If the parsed flag is 0, the video decoding device parses intra_chroma_pred_mode. Then, if intra_chroma_pred_mode is 4 and uses DM, and the prediction mode of the corresponding luma block is the default mode or the irregular intra prediction mode, the video decoding device parses adaptive_dm_enabled_flag to determine whether the present disclosure is applied. At this time, whether the present disclosure is applied appropriately for each CU can be adaptively signaled. Since additional information according to the present implementation is conditionally signaled when intra_chroma_pred_mode is signaled as 4 in the syntax, additional information can be prevented from being signaled additionally for all CUs at once.

[0417] <Example 3-2-3> Inferring whether the present disclosure is applicable and signaling the method for changing the mode

[0418] In this implementation example, the video decoding device uses high-level information to infer whether the present disclosure applies and receives an adaptive_dm_idx signal that determines a mode switching method. The syntax element that determines the mode switching method can be signaled at various levels, such as SPS / VPS / PPS / PH / SH / CTU / CU.

[0419] To determine whether the present disclosure applies, the image decoding device may consider the following high-level information. The image decoding device may consider information about the type of the image, such as Natural Content (NC), Screen Content (SC), Light field Content, XR Content, Point Cloud Content, etc. In addition, the image decoding device may consider information about whether compression techniques are allowed, such as sps_ibc_enabled_flag, sps_palette_enabled_flag, sps_bdpcm_enabled_flag, sps_mip_enabled_flag, etc.

[0420] Depending on the video type, prediction techniques included in a set of irregular intra prediction modes, such as IBC, Palette, BDPCM, and MIP, are additionally allowed. Since these modes are frequently used, simply replacing an irregular intra prediction mode with one of the regular intra prediction modes, as in conventional DM techniques, may be inefficient. Accordingly, a video decoding device can infer whether the present disclosure is applicable based on high-level information, such as the video type and additionally allowed prediction techniques. In other words, whether the present disclosure is advantageous can be determined in advance based on the high-level information. Accordingly, since no additional information is transmitted, encoding efficiency can be improved.

[0421] Below, methods for considering the aforementioned higher-level information are specifically described.

[0422] First, we describe the case where there is a high-level syntax (sps_video_type) that determines the video type. If the video type is NC (sps_video_type=0), the video decoding device infers adaptive_dm_enabled_flag as 0. Furthermore, if the video type is SC (sps_video_type=1), the video decoding device can infer adaptive_dm_enabled_flag as 1.

[0423] As an example, whether the present disclosure is applicable can be inferred depending on the image type at the SPS level as shown in Table 27, and a mode change method can be signaled accordingly.

[0424]

[0425] In Table 27, the video decoding device parses sps_video_type to determine the video type, and then infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device additionally parses sps_adaptive_dm_idx to determine the mode change method. According to Table 27, whether the present disclosure is applicable can be determined collectively for lower levels such as CTUs and CUs without transmitting additional information at the upper level, and the mode change method can be determined collectively for lower levels such as CTUs and CUs with only a small amount of bits, so that encoding efficiency can be improved.

[0426] As another example, whether the present disclosure is applicable can be inferred depending on the image type at the SPS level, as shown in Table 28, and the mode change method can be signaled at the CU level.

[0427]

[0428] In Table 28, the video decoding device determines the video type by parsing sps_video_type at the SPS level, and infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device parses cclm_mode_flag, which indicates whether CCLM mode is used for each CU at the CU level. If the parsed flag is 0, the video decoding device parses intra_chroma_pred_mode. Thereafter, if intra_chroma_pred_mode is 4 and uses DM, the prediction mode of the corresponding luma block is the default mode or the irregular intra prediction mode, and sps_adaptive_dm_enabled_flag is 1, the video decoding device additionally parses adaptive_dm_idx to determine a mode change method.

[0429] According to Table 28, since the applicability of the present disclosure is inferred without transmitting additional information at a higher level, encoding efficiency can be improved. In addition, when the present disclosure is applied, a suitable mode switching method can be adaptively signaled for each CU. Since additional information according to the present implementation is signaled when intra_chroma_pred_mode is signaled as 4 and sps_adaptive_dm_enabled_flag is 1 in the syntax, additional signaling of information for all CUs can be prevented. Table 28 describes an example in which the applicability of the present disclosure is inferred at the SPS level and the mode switching method is signaled at the CU level. However, in addition to this, the applicability of the present disclosure can be inferred using higher-level information and the mode switching method can be signaled at a lower level than the higher level depending on various combinations.

[0430] Second, if one or more prediction techniques corresponding to the irregular intra prediction mode are allowed based on the information regarding whether compression techniques are allowed, the video decoding device infers adaptive_dm_enabled_flag as true. Conversely, if none of the prediction techniques corresponding to the irregular intra prediction mode are allowed, the video decoding device may infer adaptive_dm_enabled_flag as false.

[0431] For example, as shown in Table 29, the applicability of the present disclosure can be inferred based on the allowability information of compression techniques at the SPS level, and the mode switching method can be signaled accordingly. Furthermore, the allowability information can be utilized in various ways to infer the applicability of the present disclosure and signal the mode switching method accordingly. For example, the allowability information of some prediction techniques corresponding to the irregular intra prediction mode can be considered.

[0432]

[0433] In Table 29, the video decoding device parses whether the compression technology corresponding to the irregular intra prediction mode is allowed to determine whether it is allowed, and then infers whether the present disclosure is applicable based on whether the compression technology is allowed. When applying the present disclosure, the video decoding device additionally parses sps_adaptive_dm_idx to determine the mode switching method. According to Table 29, whether the present disclosure is applicable can be determined collectively for lower levels such as CTUs and CUs without transmitting additional information at the upper level, and since the mode switching method can be determined collectively for lower levels such as CTUs and CUs with only a small amount of bits, encoding efficiency can be improved.

[0434] As another example, whether the present disclosure is applicable can be inferred based on whether compression technology is allowed at the SPS level, as shown in Table 30, and a mode change method can be signaled at the CU level.

[0435]

[0436] In Table 30, the video decoding device parses whether the compression technology corresponding to the irregular intra prediction mode is allowed at the SPS level to determine whether it is allowed, and then infers whether the present disclosure is applied based on whether the compression technology is allowed. When applying the present disclosure, the video decoding device parses cclm_mode_flag, which indicates whether the CCLM mode is used for each CU at the CU level. If the parsed flag is 0, the video decoding device parses intra_chroma_pred_mode. Thereafter, if intra_chroma_pred_mode is 4 and uses DM, the prediction mode of the corresponding luma block is the default mode or the irregular intra prediction mode, and sps_adaptive_dm_enabled_flag is 1, the video decoding device additionally parses adaptive_dm_idx to determine a mode change method.

[0437] According to Table 30, since the applicability of the present disclosure is inferred without transmitting additional information at a higher level, encoding efficiency can be improved. In addition, when the present disclosure is applied, a suitable mode switching method can be adaptively signaled for each CU. Since additional information according to the present implementation is signaled when intra_chroma_pred_mode is signaled as 4 and sps_adaptive_dm_enabled_flag is 1 in the syntax, additional signaling of information for all CUs can be prevented. Table 30 shows an example in which the applicability of the present disclosure is inferred at the SPS level and the mode switching method is signaled at the CU level. However, in addition, the applicability of the present disclosure can be inferred using higher-level information and the mode switching method can be signaled at a lower level than the higher level depending on various combinations.

[0438] <Example 3-2-4> Infer whether the present disclosure is applicable and set the mode change method as a predetermined method.

[0439] In this embodiment, the image decoding device uses higher-level information to infer whether the present invention is applicable and determines a mode change method using a predetermined method. When determining whether the present disclosure is applicable, the higher-level information exemplified in Embodiment 3-2-3 may be equally considered. Accordingly, whether the present disclosure is advantageous to be applied can be determined in advance based on the higher-level information, similar to Embodiment 3-2-3. Therefore, since no additional information is transmitted to determine whether the present disclosure is applicable, encoding efficiency can be improved.

[0440] Methods for considering higher level information as exemplified in Example 3-2-3 are specifically described.

[0441] First, we describe the case where there is a high-level syntax (sps_video_type) that determines the video type. If the video type is NC (sps_video_type=0), the video decoding device infers adaptive_dm_enabled_flag as false. Furthermore, if the video type is SC (sps_video_type=1), the video decoding device can infer adaptive_dm_enabled_flag as true.

[0442] As an example, whether the present disclosure is applicable can be inferred depending on the type of image at the SPS level as shown in Table 31, and accordingly, the mode change method can be determined in a preset manner.

[0443]

[0444] In Table 31, the video decoding device determines the video type by parsing sps_video_type at the SPS level, and infers whether the present disclosure is applicable based on the video type. When applying the present disclosure, the video decoding device determines the mode change method using a preset method. According to Table 31, whether the present disclosure is applicable and the mode change method can be determined collectively for lower levels such as CTU and CU without additional information transmission at the upper level, thereby improving encoding efficiency.

[0445] Second, if one or more of the prediction techniques corresponding to the irregular intra prediction mode are allowed based on the information on whether the compression technique is allowed, the video decoding device infers adaptive_dm_enabled_flag as true. On the other hand, if none of the prediction techniques corresponding to the irregular intra prediction mode are allowed, the video decoding device may infer adaptive_dm_enabled_flag as false.

[0446] For example, as shown in Table 32, the applicability of the present disclosure can be inferred based on the allowability information of compression techniques at the SPS level, and accordingly, the mode change method can be determined in a preset manner. Furthermore, the applicability of the present disclosure can be inferred using the allowability information in various ways, and accordingly, the MPM list generation method can be set in a preset manner. For example, the allowability information of some prediction techniques corresponding to the irregular intra prediction mode can be considered.

[0447]

[0448] In Table 32, the video decoding device parses whether a compression technique corresponding to an irregular intra prediction mode is allowed, determines whether it is allowed, and then infers whether the present disclosure is applicable based on whether the compression technique is allowed. When applying the present disclosure, the video decoding device determines the mode switching method using a preset method. According to Table 32, whether the present disclosure is applicable and the mode switching method can be determined collectively for lower levels such as CTUs and CUs without additional information transmission at a higher level, thereby improving encoding efficiency.

[0449] Hereinafter, using the cities of FIGS. 41 and 42, a method for determining an MPM list generation method based on a reference block changed according to settings at a higher level is described. The cities of FIGS. 41 and 42 may correspond to Table 9 / Table 11 of Implementation Example 3-1-1, Table 12 of Implementation Example 3-1-2, Implementation Example 3-1-3, and Implementation Example 3-1-4.

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

[0451] The video encoding device obtains a multi-MPM list generation flag from a higher level (S4100), wherein the multi-MPM list generation flag indicates whether a method for determining an MPM list generation method according to a change in a reference block is applied. In terms of rate distortion optimization, the video encoding device can determine the multi-MPM list generation flag at a higher level. Alternatively, the video encoding device can derive the multi-MPM list generation flag at a higher level using higher-level information. Here, the higher-level information may be a type of image or whether a prediction technique using an irregular intra prediction mode is allowed.

[0452] The reference block may be a block containing a pixel located to the left of the lower left pixel of the current block or a block containing a pixel located above the upper right pixel of the current block.

[0453] The video encoding device encodes a multi-MPM list generation flag (S4102).

[0454] The video encoding device checks the multi-MPM list generation flag (S4104).

[0455] If the multi-MPM list creation flag is true (Yes in S4104), the video encoding device performs the following steps.

[0456] The video encoding device obtains the prediction mode of the reference block of the current block (S4106).

[0457] The video encoding device checks the prediction mode of the reference block (S4108).

[0458] If the prediction mode of the reference block is an irregular intra prediction mode (Yes in S4108), the image encoding device performs the following steps.

[0459] The video encoding device determines the MPM list generation method (S4110). Here, the MPM list generation method includes a method for changing a reference block and / or a method for generating a lower MPM list. The method for changing a reference block is one of the examples (1) in Implementation Example 1, and the method for generating a lower MPM list is one of the examples (2) in Implementation Example 1.

[0460] In terms of rate distortion optimization, the video encoding device can determine the MPM list generation method. Alternatively, the video encoding device can set the MPM list generation method using a preset method. If the MPM list generation method does not include a lower-level MPM list generation method, a conventional MPM list generation algorithm is used as the lower-level MPM list generation method.

[0461] The video encoding device generates an MPM list of the current block according to the MPM list generation method (S4112).

[0462] An image encoding device changes a reference block into a block having a regular intra prediction mode according to a method of changing the reference block. The image encoding device generates an MPM list of the current block using the intra prediction mode of the changed reference block and the method of generating a lower MPM list.

[0463] Meanwhile, when the MPM list generation method is determined in terms of rate distortion optimization, the video encoding device encodes an index indicating the MPM list generation method (S4114).

[0464] Meanwhile, if the multi-MPM list generation flag is false (No in S4104), the video encoding device generates an MPM list using the prediction mode of the reference block (S4120). The video encoding device can generate the MPM list using a conventional MPM list generation algorithm.

[0465] Additionally, if the prediction mode of the reference block is not an irregular intra prediction mode (No in S4108), the image encoding device generates an MPM list using the prediction mode of the reference block (S4120).

[0466] Thereafter, the video encoding device can generate a prediction block of the current block using the intra prediction mode determined from the MPM list, and then encode an MPM index indicating the determined intra prediction mode. The video encoding device subtracts the prediction block from the current block to generate a residual block. The video encoding device transforms / quantizes the residual block to generate transform coefficients, and then encodes the transform coefficients.

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

[0468] The video decoding device obtains a multi-MPM list generation flag from a higher level (S4200). Here, the multi-MPM list generation flag indicates whether a method for determining an MPM list generation method according to a change in a reference block is applied. The video decoding device can decode the multi-MPM list generation flag from a bitstream at a higher level. Alternatively, the video decoding device can derive the multi-MPM list generation flag at a higher level using higher-level information. Here, the higher-level information can be the type of the video or whether a prediction technique using an irregular intra prediction mode is allowed.

[0469] The reference block may be a block containing a pixel located to the left of the lower left pixel of the current block or a block containing a pixel located above the upper right pixel of the current block.

[0470] The video decoding device checks the multi-MPM list generation flag (S4202).

[0471] If the multi-MPM list creation flag is true (Yes in S4202), the video decoding device performs the following steps.

[0472] The video decoding device obtains the prediction mode of the reference block of the current block (S4204).

[0473] The video decoding device checks the prediction mode of the reference block (S4206).

[0474] If the prediction mode of the reference block is an irregular intra prediction mode (Yes in S4206), the image decoding device performs the following steps.

[0475] The video decoding device acquires an MPM list generation method (S4208). Here, the MPM list generation method includes a reference block modification method and / or a subordinate MPM list generation method. The reference block modification method is one of the examples (1) in Implementation Example 1, and the subordinate MPM list generation method is one of the examples (2) in Implementation Example 1.

[0476] The video decoding device can decode the MPM list generation method from the bitstream. Alternatively, the video decoding device can configure the MPM list generation method using a preset method. If the MPM list generation method does not include a lower-level MPM list generation method, a conventional MPM list generation algorithm is used as the lower-level MPM list generation method.

[0477] The video decoding device generates an MPM list of the current block according to the MPM list generation method (S4210).

[0478] The video decoding device changes the reference block into a block having a regular intra prediction mode according to the method of changing the reference block. The video decoding device generates an MPM list for the current block using the intra prediction mode of the changed reference block and the method of generating a lower MPM list.

[0479] Meanwhile, if the multi-MPM list generation flag is false (No in S4202), the video decoding device generates an MPM list using the prediction mode of the reference block (S4220). The video encoding device can generate an MPM list using a conventional MPM list generation algorithm.

[0480] Additionally, if the prediction mode of the reference block is not an irregular intra prediction mode (No in S4206), the image decoding device generates an MPM list using the prediction mode of the reference block (S4220).

[0481] Thereafter, the video decoding device can decode the MPM index from the bitstream and then generate a prediction block of the current block using the intra prediction mode determined from the MPM list according to the MPM index. The video decoding device decodes the inverse quantized transform coefficients of the current block from the bitstream. The video decoding device dequantizes / inversely transforms the inverse quantized transform coefficients to restore the residual block of the current block. The video decoding device adds the prediction block and the residual block to generate a restored block of the current block.

[0482] Hereinafter, using the cities of FIGS. 43 and 44, a method for determining an MPM list generation method based on a reference block changed according to CU-specific settings is described. The cities of FIGS. 43 and 44 may correspond to Table 10 of Implementation Example 3-1-1 and Table 13 of Implementation Example 3-1-2.

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

[0484] The video encoding device obtains a reference block of the current block (S4300). Here, the reference block may be a block including a pixel located to the left of the lower left pixel of the current block or a block including a pixel located above the upper right pixel of the current block.

[0485] The video encoding device generates a first MPM list of the current block using the prediction mode of the reference block (S4302). The video encoding device can generate the first MPM list using a conventional MPM list generation algorithm.

[0486] The video encoding device checks the prediction mode of the reference block (S4304).

[0487] If the prediction mode of the reference block is an irregular intra prediction mode (Yes in S4304), the image encoding device performs the following steps.

[0488] The video encoding device determines the MPM list generation method (S4306). Here, the MPM list generation method includes a method for changing a reference block and / or a method for generating a lower MPM list. The method for changing a reference block is one of the examples of (1) in Implementation Example 1, and the method for generating a lower MPM list is one of the examples of (2) in Implementation Example 1.

[0489] In terms of rate distortion optimization, the video encoding device can determine the MPM list generation method. Alternatively, the video encoding device can set the MPM list generation method using a preset method. If the MPM list generation method does not include a lower-level MPM list generation method, a conventional MPM list generation algorithm is used as the lower-level MPM list generation method.

[0490] The video encoding device generates a second MPM list of the current block according to the MPM list generation method (S4308).

[0491] An image encoding device changes a reference block into a block having a regular intra prediction mode according to a method of changing the reference block. The image encoding device generates a second MPM list of the current block using the intra prediction mode of the changed reference block and the method of generating a lower MPM list.

[0492] On the other hand, if the prediction mode of the reference block is not an irregular intra prediction mode (No in S4304), the steps of generating the second MPM list as described above may be omitted.

[0493] The video encoding device determines a multi-MPM list generation flag based on the first MPM list and the second MPM list (S4310). Here, the multi-MPM list generation flag indicates whether to generate the second MPM list according to a change in the reference block. In terms of rate distortion optimization, the video encoding device can determine the multi-MPM list generation flag for each CU. For example, if the first MPM list is optimal, the multi-MPM list generation flag can be determined as false. On the other hand, if the second MPM list is optimal, the multi-MPM list generation flag can be determined as true. In addition, if the second MPM list is not generated, the multi-MPM list generation flag can be determined as false.

[0494] The video encoding device encodes a multi-MPM list generation flag (S4312).

[0495] The video encoding device checks the multi-MPM list generation flag (S4314).

[0496] If the multi-MPM list generation flag is true (Yes in S4316) and the MPM list generation method is determined in terms of rate distortion optimization, the video encoding device encodes an index indicating the MPM list generation method (S4316).

[0497] Thereafter, the video encoding device can generate a prediction block of the current block using the intra prediction mode determined from the MPM list, and then encode an MPM index indicating the determined intra prediction mode. The video encoding device subtracts the prediction block from the current block to generate a residual block. The video encoding device transforms / quantizes the residual block to generate transform coefficients, and then encodes the transform coefficients.

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

[0499] The video decoding device acquires a multi-MPM list generation flag for the current block (S4400). Here, the multi-MPM list generation flag indicates whether a method for determining an MPM list generation method is applied according to a change in a reference block. The reference block may be a block including a pixel located to the left of the lower left pixel of the current block or a block including a pixel located above the upper right pixel of the current block.

[0500] The video decoding device checks the multi-MPM list generation flag (S4402).

[0501] If the multi-MPM list creation flag is true (Yes in S4402), the video decoding device performs the following steps.

[0502] The video decoding device acquires a reference block having an irregular intra prediction mode (S4404). Since the per-CU multi-MPM list generation flag is true, a reference block having an irregular intra prediction mode can be acquired for the current block.

[0503] The video decoding device acquires an MPM list generation method (S4406). Here, the MPM list generation method includes a method for changing a reference block and / or a method for generating a lower MPM list. The method for changing a reference block is one of the examples (1) in Implementation Example 1, and the method for generating a lower MPM list is one of the examples (2) in Implementation Example 1.

[0504] The video decoding device can decode the method of changing the reference block from the bitstream. Alternatively, the video decoding device can set the method of changing the reference block using a preset method. The method of changing the reference block may be one of the methods exemplified in Example 1. If the MPM list generation method does not include a lower-level MPM list generation method, a conventional MPM list generation algorithm is used as the lower-level MPM list generation method.

[0505] The video decoding device generates an MPM list of the current block according to the MPM list generation method (S4408).

[0506] The video decoding device changes the reference block into a block having a regular intra prediction mode according to the method of changing the reference block. The video decoding device generates an MPM list for the current block using the intra prediction mode of the changed reference block and the method of generating a lower MPM list.

[0507] Meanwhile, if the multi-MPM list generation flag is false (No in S4402), the image decoding device generates an MPM list using the prediction mode of the reference block (S4420). The image decoding device can generate the MPM list using a conventional MPM list generation algorithm.

[0508] Thereafter, the video decoding device can decode the MPM index from the bitstream and then generate a prediction block of the current block using the intra prediction mode determined from the MPM list according to the MPM index. The video decoding device decodes the inverse quantized transform coefficients of the current block from the bitstream. The video decoding device dequantizes / inversely transforms the inverse quantized transform coefficients to restore the residual block of the current block. The video decoding device adds the prediction block and the residual block to generate a restored block of the current block.

[0509] As described above, the reference block in Realization Example 3-1 matches the corresponding luma block in Realization Example 3-2. Hereinafter, using the illustrations of FIGS. 45 and 46, a method for changing the prediction mode of the corresponding luma block based on a mode changing method adaptively selected in the DM according to settings at a higher level is described. The illustrations of FIGS. 45 and 46 may correspond to Tables 22 / 24 of Realization Example 3-2-1, Table 25 of Realization Example 3-2-2, Realization Example 3-2-3, and Realization Example 3-2-4.

[0510] FIG. 45 is a flowchart illustrating a method by which a video encoding device encodes a current chroma block according to one embodiment of the present disclosure.

[0511] A video encoding device obtains an adaptive DM flag from a higher level (S4500), wherein the adaptive DM flag indicates whether to change the prediction mode of a corresponding luma block according to a mode change method in DM. In terms of rate distortion optimization, the video encoding device can determine the adaptive DM flag at a higher level. Alternatively, the video encoding device can derive the adaptive DM flag at a higher level using higher level information. Here, the higher level information may be the type of the video or whether to allow a prediction technique using an irregular intra prediction mode.

[0512] The corresponding luma block may be a co-located luma block spatially corresponding to the current chroma block. Alternatively, the co-located luma block may be a block containing a center sample within a luma region spatially corresponding to the current chroma block.

[0513] The video encoding device encodes an adaptive DM flag (S4502).

[0514] The video encoding device checks the adaptive DM flag (S4504).

[0515] If the adaptive adaptive DM flag is true (Yes in S4504), the video encoding device performs the following steps.

[0516] The video encoding device obtains the prediction mode of the corresponding luma block of the current block (S4506).

[0517] The video encoding device checks the prediction mode of the corresponding luma block (S4508).

[0518] If the prediction mode of the reference block is an irregular intra prediction mode or a default mode (Yes in S4508), the video encoding device performs the following steps.

[0519] The video encoding device determines a mode switching method (S4510). Here, the mode switching method changes the prediction mode of the corresponding luma block to a regular intra prediction mode other than the default mode. The mode switching method may be one of the methods exemplified in Example 2.

[0520] In terms of rate distortion optimization, the video encoding device can determine the mode switching method. Alternatively, the video encoding device can set the mode switching method using a preset method.

[0521] The video encoding device changes the prediction mode of the corresponding luma block according to the mode change method (S4512).

[0522] The video encoding device generates a prediction block of the current chroma block using the prediction mode of the changed corresponding luma block (S4514).

[0523] Meanwhile, when a mode change method is determined in terms of rate distortion optimization, the image encoding device encodes an index indicating the mode change method (S4516).

[0524] Meanwhile, if the adaptive DM flag is false (No in S4504), the video encoding device generates a prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4520).

[0525] Additionally, if the prediction mode of the corresponding luma block is neither an irregular intra prediction mode nor a default mode (No in S4508), the video encoding device generates a prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4520).

[0526] Thereafter, the video encoding device generates a residual block by subtracting the prediction block from the current chroma block. The video encoding device transforms / quantizes the residual block to generate transform coefficients, and then encodes the transform coefficients.

[0527] FIG. 46 is a flowchart illustrating a method by which a video decoding device restores a current chroma block according to one embodiment of the present disclosure.

[0528] The video decoding device obtains an adaptive DM flag from a higher level (S4600). Here, the adaptive DM flag indicates whether the prediction mode of the corresponding luma block is changed according to the mode change method in the DM. The video decoding device can decode the adaptive DM flag from the bitstream at the higher level. Alternatively, the video decoding device can derive the adaptive DM flag at the higher level using higher level information. Here, the higher level information can be the type of the video or whether a prediction technique using an irregular intra prediction mode is allowed.

[0529] The corresponding luma block may be a luma block at a location that spatially corresponds to the current chroma block. Alternatively, the corresponding luma block may be a block that contains a center sample within a luma region at a location that spatially corresponds to the current chroma block.

[0530] The video decoding device checks the adaptive DM flag (S4602).

[0531] If the adaptive DM flag is true (Yes in S4602), the video decoding device performs the following steps.

[0532] The video decoding device obtains the prediction mode of the corresponding luma block (S4604).

[0533] The video decoding device checks the prediction mode of the corresponding luma block (S4606).

[0534] If the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode (Yes in S4606), the video decoding device performs the following steps.

[0535] The video decoding device acquires a mode change method (S4608). Here, the mode change method changes the prediction mode of the corresponding luma block to a regular intra prediction mode other than the default mode. The mode change method may be one of the methods exemplified in Example 2.

[0536] The video decoding device can decode the mode change method from the bitstream. Alternatively, the video decoding device can set the mode change method using a preset method.

[0537] The video decoding device changes the prediction mode of the corresponding luma block according to the mode change method (S4610).

[0538] The video decoding device generates a prediction block of the current chroma block using the intra prediction mode of the changed corresponding luma block (S4612).

[0539] Meanwhile, if the adaptive DM flag is false (No in S4602), the video decoding device generates a prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4620).

[0540] Additionally, if the prediction mode of the reference block is neither an irregular intra prediction mode nor a default mode (No in S4606), the video decoding device generates a prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4620).

[0541] Thereafter, the video decoding device decodes the dequantized transform coefficients of the current chroma block from the bitstream. The video decoding device dequantizes / inversely transforms the dequantized transform coefficients to restore the residual block of the current chroma block. The video decoding device adds the prediction block and the residual block to generate a restored block of the current chroma block.

[0542] As described above, the reference block in Realization Example 3-1 matches the corresponding luma block in Realization Example 3-2. Hereinafter, using the illustrations of FIGS. 47 and 48, a method for changing the prediction mode of the corresponding luma block based on a mode changing method adaptively selected in the DM according to the settings for each CU is described. The illustrations of FIGS. 47 and 48 may correspond to Table 23 of Realization Example 3-2-1 and Table 26 of Realization Example 3-2-2.

[0543] FIG. 47 is a flowchart illustrating a method by which a video encoding device encodes a current chroma block according to another embodiment of the present disclosure.

[0544] The video encoding device obtains a corresponding luma block of the current chroma block (S4700). Here, the corresponding luma block may be a luma block at a location spatially corresponding to the current chroma block. Alternatively, the corresponding luma block may be a block that includes a center sample within a luma region at a location spatially corresponding to the current chroma block.

[0545] The video encoding device generates a first prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4702).

[0546] The video encoding device checks the prediction mode of the corresponding luma block (S4704).

[0547] If the prediction mode of the corresponding luma block is an irregular intra prediction mode or a default mode (Yes in S4704), the video encoding device performs the following steps.

[0548] The video encoding device determines a mode switching method (S4706). Here, the mode switching method changes the prediction mode of the corresponding luma block to a regular intra prediction mode other than the default mode. The mode switching method may be one of the methods exemplified in Example 2.

[0549] In terms of rate distortion optimization, the video encoding device can determine the mode switching method. Alternatively, the video encoding device can set the mode switching method using a preset method.

[0550] The video encoding device changes the prediction mode of the corresponding luma block according to the mode change method (S4708).

[0551] The video encoding device generates a second prediction block of the current chroma block using the prediction mode of the changed corresponding luma block (S4710).

[0552] On the other hand, if the prediction mode of the corresponding luma block is neither an irregular intra prediction mode nor a default mode (No in S4704), the steps of generating the second prediction block as described above may be omitted.

[0553] The video encoding device determines an adaptive DM flag based on the first prediction block and the second prediction block (S4712). Here, the adaptive DM flag indicates whether to change the prediction mode of the corresponding luma block according to the mode change method in DM. In terms of rate distortion optimization, the video encoding device can determine the adaptive DM flag for each CU. For example, if the first prediction block is optimal, the adaptive DM flag can be determined as false. On the other hand, if the second prediction block is optimal, the adaptive DM flag can be determined as true. In addition, if the second prediction block is not generated, the adaptive DM flag can be determined as false.

[0554] The video encoding device encodes an adaptive DM flag (S4714).

[0555] The video encoding device checks the adaptive MDM flag (S4716).

[0556] If the adaptive DM flag is true (Yes in S4716) and the mode change method is determined in terms of rate distortion optimization, the video encoding device encodes an index indicating the mode change method (S4718).

[0557] Thereafter, the video encoding device generates a residual block by subtracting the prediction block from the current chroma block according to the adaptive DM flag. The video encoding device transforms / quantizes the residual block to generate transform coefficients, and then encodes the transform coefficients.

[0558] FIG. 48 is a flowchart illustrating a method by which a video decoding device restores a current chroma block according to another embodiment of the present disclosure.

[0559] The video decoding device acquires an adaptive DM flag for the current chroma block (S4800). Here, the adaptive DM flag indicates whether the prediction mode of the corresponding luma block is changed according to the mode change method in the DM. The corresponding luma block may be a luma block at a location spatially corresponding to the current chroma block. Alternatively, the corresponding luma block may be a block that includes a center sample within a luma region at a location spatially corresponding to the current chroma block.

[0560] The video decoding device checks the adaptive DM flag (S4802).

[0561] If the adaptive DM flag is true (Yes in S4802), the video decoding device performs the following steps.

[0562] The video decoding device obtains a corresponding luma block having an irregular intra prediction mode or a default mode (S4804). Since the adaptive DM flag per CU is true, a corresponding luma block having an irregular intra prediction mode or a default mode can be obtained for the current chroma block.

[0563] The video decoding device acquires a mode change method (S4806). Here, the mode change method changes the prediction mode of the corresponding luma block to a regular intra prediction mode other than the default mode. The mode change method may be one of the methods exemplified in Example 2.

[0564] The video decoding device can decode the mode change method from the bitstream. Alternatively, the video decoding device can set the mode change method using a preset method.

[0565] The video decoding device changes the prediction mode of the corresponding luma block according to the mode change method (S4808).

[0566] The video decoding device generates a prediction block of the current chroma block using the intra prediction mode of the changed corresponding luma block (S4810).

[0567] Meanwhile, if the adaptive DM flag is false (No in S4802), the video decoding device generates a prediction block of the current chroma block using the prediction mode of the corresponding luma block (S4820).

[0568] Thereafter, the video decoding device decodes the dequantized transform coefficients of the current chroma block from the bitstream. The video decoding device dequantizes / inversely transforms the dequantized transform coefficients to restore the residual block of the current chroma block. The video decoding device adds the prediction block and the residual block to generate a restored block of the current chroma block.

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

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

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

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

[0573] (Explanation of symbols)

[0574] 122: Intra prediction unit

[0575] 155: Entropy encoding unit

[0576] 510: Entropy decryption unit

[0577] 542: Intra prediction unit

[0578]

[0579] CROSS-REFERENCE TO RELATED APPLICATION

[0580] This patent application claims priority to Korean patent application No. 10-2023-0029250, filed in Korea on March 6, 2023, and Korean patent application No. 10-2024-0006969, filed in Korea on January 16, 2024, the entire contents of which are incorporated herein by reference.

Claims

1. A method for restoring a current chroma block performed by a video decoding device, A step of obtaining a prediction mode of a corresponding luma block of the current chroma block in a DM (Derived Mode), wherein the corresponding luma block is a block including a center sample within a luma region spatially corresponding to the current chroma block (co-located); and Step for checking the prediction mode of the corresponding luma block above Including, If the prediction mode of the corresponding luma block above is irregular intra prediction mode or default mode, A step of obtaining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; A step of changing the prediction mode of the corresponding luma block according to the above mode changing method; and A step of generating a prediction block of the current chroma block using the intra prediction mode of the corresponding luma block that has been changed. A method, characterized by including:

2. In paragraph 1, The method for changing the above mode is: A step of searching pixels adjacent to the corresponding luma block according to a predetermined search order; and A step of changing the prediction mode of the corresponding luma block to the prediction mode of the block including the first pixel predicted according to the regular intra prediction mode excluding the default mode. A method, characterized by including:

3. In paragraph 1, The method for changing the above mode is: A step of searching for blocks having the regular intra prediction mode excluding the default mode around the corresponding luma block; and A step of changing the prediction mode of the corresponding luma block to the prediction mode of the block having the longest adjacent length to the corresponding luma block among the blocks searched above. A method, characterized by including:

4. In paragraph 1, The method for changing the above mode is: A step of searching for blocks having the regular intra prediction mode excluding the default mode around the corresponding luma block; and A step of changing the prediction mode of the corresponding luma block to the prediction mode of the block with the largest area among the blocks searched above. A method, characterized by including:

5. In paragraph 1, The method for changing the above mode is: A step of searching for blocks having the regular intra prediction mode excluding the default mode around the corresponding luma block; and A step of changing the prediction mode of the corresponding luma block to the prediction mode of a block among the searched blocks whose aspect ratio is the same as or most similar to the current chroma block. A method, characterized by including:

6. In paragraph 1, The steps for obtaining the above mode change method are: A step of decoding an index indicating a method of changing the mode from a bitstream; and A method characterized in that the above mode changing method is set in a manner indicated by the above index.

7. In paragraph 1, The steps for obtaining the above change method are: A method characterized in that the above mode changing method is set to a preset method.

8. In paragraph 1, A step of obtaining an adaptive DM flag, wherein the adaptive DM flag indicates whether to change the prediction mode of the corresponding luma block according to the mode changing method; and Step of checking the above adaptive DM flag Including more, A method characterized in that, if the adaptive DM flag is true, the step of obtaining a prediction mode of the corresponding luma block and the step of checking the prediction mode of the corresponding luma block are performed.

9. In paragraph 8, If the above adaptive DM flag is false, A method, characterized in that it further comprises a step of generating a prediction block of the current chroma block using the prediction mode of the corresponding luma block.

10. In paragraph 8, The step of acquiring the above adaptive DM flag is: A method characterized by decoding the adaptive DM flag from a bitstream.

11. In paragraph 8, The step of acquiring the above adaptive DM flag is: A method for deriving the adaptive DM flag using high-level information, characterized in that the high-level information is a type of image or whether a prediction technique using the irregular intra prediction mode is allowed.

12. In paragraph 1, If the prediction mode of the corresponding luma block is not the irregular intra prediction mode and is not the default mode, A method, characterized in that it further comprises a step of generating a prediction block of the current chroma block using the prediction mode of the corresponding luma block.

13. In paragraph 1, A method, characterized in that the irregular intra prediction mode is a prediction mode other than the regular intra prediction mode, the regular intra prediction mode includes a non-directional prediction mode including a Planar mode and a DC mode, and a directional prediction mode, and the default mode is a Planar mode, a DC mode, a Vertical mode, or a Horizontal mode.

14. A method for encoding a current chroma block performed by a video encoding device, A step of obtaining a prediction mode of a corresponding luma block of the current chroma block in a DM (Derived Mode), wherein the corresponding luma block is a block including a center sample within a luma region spatially corresponding to the current chroma block (co-located); and Step for checking the prediction mode of the corresponding luma block above Including, If the prediction mode of the corresponding luma block above is irregular intra prediction mode or default mode, A step of determining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; A step of changing the prediction mode of the corresponding luma block according to the above mode changing method; and A step of generating a prediction block of the current chroma block using the intra prediction mode of the corresponding luma block that has been changed. A method, characterized in that it further comprises:

15. In paragraph 14, A step of obtaining an adaptive DM flag from a higher level, wherein the adaptive DM flag indicates whether to change the prediction mode of the corresponding luma block according to the mode changing method; and Step of encoding the above adaptive DM flag A method, characterized in that it further comprises:

16. In paragraph 15, Step of checking the above adaptive DM flag Including more, A method characterized in that, if the adaptive DM flag is true, the step of obtaining a prediction mode of the corresponding luma block and the step of checking the prediction mode of the corresponding luma block are performed.

17. In paragraph 14, A method characterized in that the method further comprises a step of encoding an index indicating the mode changing method when the prediction mode of the corresponding luma block is the irregular intra prediction mode or the default mode and the mode changing method is determined in terms of rate distortion optimization.

18. A computer-readable recording medium storing a bitstream generated by an image encoding method, wherein the image encoding method comprises: A step of obtaining a prediction mode of a corresponding luma block of a current chroma block in a DM (Derived Mode), wherein the corresponding luma block is a block including a center sample within a luma region spatially corresponding to the current chroma block (co-located); and Step for checking the prediction mode of the corresponding luma block above Including, If the prediction mode of the corresponding luma block above is irregular intra prediction mode or default mode, A step of determining a mode changing method, wherein the mode changing method changes the prediction mode of the corresponding luma block to a regular intra prediction mode excluding the default mode; A step of changing the prediction mode of the corresponding luma block according to the above mode changing method; and A step of generating a prediction block of the current chroma block using the intra prediction mode of the corresponding luma block that has been changed. A recording medium, characterized by including:

Citation Information

Patent Citations

  • Thermoelectric module

    KR1020220156382A

  • Method for predicting traffic light information by using lidar and server using the same

    KR1020230043637A

  • Image decoding method and apparatus in image coding system

    WO2018062699A1