Video encoding / decoding method and apparatus

The use of combined inter/intra prediction modes for video encoding/decoding addresses inefficiencies in high-resolution and high-frame-rate video data processing, enhancing encoding efficiency through weighted averaging and mode determination.

JP2024531644AInactive Publication Date: 2024-08-29HYUNDAI MOTOR CO LTD +1

Patent Information

Application Number
JP2024515458
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-09-01
Filing Date
2022-09-07
Publication Date
2024-08-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing video compression technologies face challenges in efficiently encoding and decoding high-resolution and high-frame-rate video data, requiring improved methods for generating predicted blocks using combined inter/intra prediction modes to enhance encoding efficiency.

Method used

A method and apparatus for generating predicted blocks using combined inter/intra prediction (CIIP) modes, involving weighted averaging of inter and intra prediction blocks, and determining various intra-prediction modes and weight values to improve video encoding/decoding efficiency.

Benefits of technology

Enhances video encoding/decoding efficiency by effectively utilizing CIIP modes to generate predicted blocks, thereby improving the compression and decoding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024531644000001_ABST
    Figure 2024531644000001_ABST
Patent Text Reader

Abstract

A video encoding / decoding method and apparatus are provided. [Solution] The video decoding method according to the present disclosure includes a step of generating an inter-predicted block for a current block based on a reference block existing in a reference picture corresponding to the current block; a step of generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, an MPM list for the current block, and reconstructed reference pixels neighboring the current block; and a step of generating a Combined Inter Intra Prediction (CIIP) predicted block for the current block by performing a weighted average of the inter-predicted block and the intra-predicted block.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a video encoding / decoding method and apparatus, and more particularly, to a video encoding / decoding method and apparatus for generating a prediction block of a current block using various intra prediction modes in a combined inter / intra prediction (CIIP) mode. [Background technology]

[0002] The following description merely provides background information related to the present embodiment and may not constitute prior art.

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

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

[0005] However, as video size, resolution, and frame rate gradually increase, the amount of data to be encoded also increases accordingly. This has led to a demand for new compression technologies that have better encoding efficiency and greater image quality improvement than existing compression technologies.

[0006] Combined Inter / Intra Prediction (CIIP) mode is a method of generating a predicted block of a current block by weighted averaging of an intra prediction signal and an inter prediction signal. When performing combined intra prediction, it is necessary to use various weights using various intra prediction modes. Summary of the Invention [Problem to be solved by the invention]

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

[0008] Further, the present disclosure aims to provide a method and apparatus for determining various intra prediction modes in a combined intra inter prediction mode.

[0009] Another object of the present disclosure is to provide a method and apparatus for determining various weights in a combined intra-inter prediction mode.

[0010] Further, the present disclosure aims to provide a method and apparatus for improving video encoding / decoding efficiency.

[0011] Another object of the present disclosure is to provide a recording medium storing a bitstream generated by the video encoding / decoding method or apparatus of the present disclosure.

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

[0013] The video decoding method according to the present disclosure includes the steps of: generating an inter-predicted block for a current block based on a reference block existing in a reference picture corresponding to the current block; generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, a Most Probable Mode (MPM) list for the current block, and reconstructed reference pixels neighboring the current block; and generating a Combined Inter Intra Prediction (CIIP) predicted block for the current block by performing a weighted average of the inter-predicted block and the intra-predicted block.

[0014] The video encoding method according to the present disclosure includes a step of generating an inter-predicted block for a current block based on a reference block existing in a reference picture corresponding to the current block; a step of generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, an MPM list of the current block, and reconstructed reference pixels neighboring the current block; and a step of generating a CIIP block for the current block by weighted averaging the inter-predicted block and the intra-predicted block.

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

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

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

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

[0019] Further, according to the present disclosure, a method and apparatus for determining various intra prediction modes in a combined intra inter prediction mode is provided.

[0020] The present disclosure also provides a method and apparatus for determining various weights in a combined intra-inter prediction mode.

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

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

[0023] [Figure 1] 1 is an exemplary block diagram of a video encoding device capable of implementing techniques of this disclosure. [Diagram 2] FIG. 13 is a diagram for explaining a method of dividing blocks using the QTBTTT structure. [Figure 3a] FIG. 2 is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 3b] FIG. 2 is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 4]FIG. 13 is an example diagram of neighboring blocks of a current block; [Diagram 5] 1 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure. [Figure 6] FIG. 1 is a diagram illustrating a template and template reference pixels used to derive a template-based intra-prediction mode according to an embodiment of the present disclosure. [Figure 7] 11 is a diagram illustrating a method of generating a predicted block of a current block in a combined inter / intra prediction (CIIP) mode. [Figure 8] FIG. 13 is a diagram for explaining neighboring blocks to be referenced for determining weights in a combined intra-frame inter-frame prediction mode according to an embodiment of the present disclosure. [Figure 9] FIG. 13 is a diagram illustrating a method for determining weights in a combined intra-inter prediction mode according to an embodiment of the present disclosure. [Figure 10] FIG. 13 is a diagram for explaining neighboring blocks adjacent to a current block according to an embodiment of the present disclosure. [Figure 11] FIG. 13 is a diagram for explaining a method for generating an intra-prediction block in a combined intra-frame inter-frame prediction mode using a mode histogram according to an embodiment of the present disclosure. [Figure 12a] 11 is a diagram illustrating a method for dividing a current block into sub-blocks based on an intra prediction mode in an intra-frame inter prediction mode according to an embodiment of the present disclosure. [Figure 12b] 11 is a diagram illustrating a method for dividing a current block into sub-blocks based on an intra prediction mode in an intra-frame inter prediction mode according to an embodiment of the present disclosure. [Figure 13] FIG. 13 is a diagram for explaining weights assigned to sub-blocks according to an embodiment of the present disclosure. [Figure 14] FIG. 13 is a diagram for explaining a histogram of modes of blocks adjacent to a current block according to an embodiment of the present disclosure. [Figure 15] 11 is a diagram illustrating a process of deriving a template-based intra prediction mode using a histogram of modes of blocks adjacent to a current block according to an embodiment of the present disclosure. [Figure 16a] FIG. 11 is a diagram for explaining an error distribution of inter-screen prediction and an error distribution of intra-screen prediction according to an embodiment of the present disclosure. [Figure 16b] FIG. 11 is a diagram for explaining an error distribution of inter-screen prediction and an error distribution of intra-screen prediction according to an embodiment of the present disclosure. [Figure 17a] 11 is a diagram for explaining weighted values ​​of intra prediction of an 8×8 block and weighted values ​​of inter prediction of an 8×8 block according to an embodiment of the present disclosure. FIG. [Figure 17b] 11 is a diagram for explaining weighted values ​​of intra prediction of an 8×8 block and weighted values ​​of inter prediction of an 8×8 block according to an embodiment of the present disclosure. FIG. [Figure 18a] FIG. 11 is a diagram for explaining weights of intra-screen prediction of an 8×8 size block according to another embodiment of the present disclosure. [Figure 18b] FIG. 11 is a diagram for explaining weights of intra-screen prediction of an 8×8 size block according to another embodiment of the present disclosure. [Figure 19] 1 is a diagram illustrating reference pixels adjacent to a current block to which a Sobel filter is applied according to an embodiment of the present disclosure; FIG. [Figure 20] FIG. 2 is a diagram for explaining a video decoding process according to one embodiment of the present disclosure. [Figure 21] FIG. 2 is a diagram for explaining a video encoding process according to one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

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

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

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

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

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

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

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

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

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

[0034] Alternatively, a CU split flag split_cu_flag indicating whether each node is split or not may be coded before coding a first flag QT_split_flag indicating whether each node is split or not into four nodes in a lower layer. If the CU split flag split_cu_flag value indicates that the node is not split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of coding. If the CU split flag split_cu_flag value indicates that the node is split, the video coding apparatus starts coding from the first flag in the above-mentioned manner.

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

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

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

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

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

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

[0041] The intra prediction unit 122 determines the intra prediction mode to use to encode the current block. In some examples, the intra prediction unit 122 may encode the current block using various intra prediction modes and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 may calculate a bit-rate-distortion value using a bit-rate-distortion analysis for the various tested intra prediction modes and select the intra prediction mode with the best bit-rate-distortion characteristics among the tested modes.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0075] The entropy decoding unit 510 extracts information about the CTU size from a sequence parameter set (SPS) or a picture parameter set (PPS) to determine the size of the CTU, and divides the picture into CTUs of the determined size. The entropy decoding unit 510 then determines the CTU as the top layer of a tree structure, i.e., the root node, and extracts division information about the CTU, thereby dividing the CTU using the tree structure.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0092] FIG. 6 is a diagram for explaining a template and reference pixels of the template used in template-based intra prediction mode induction according to an embodiment of the present disclosure. The intra prediction mode of a current block is induced using a template adjacent to the current block. A prediction template is generated by applying the directionality of all candidate modes in the MPM list to the reference pixels of the template. A sum of absolute transformed differences (SATD) between pixels of the generated prediction template and pixels of the already restored template is calculated. A mode with the smallest sum of absolute transformed differences among the MPM candidate modes is the intra prediction mode of the current block induced by the template-based intra prediction mode induction method. The intra prediction mode of the current block induced by the template-based intra prediction mode induction method is used as one additional mode for a current coding unit (CU) block.

[0093] A flag indicating whether to use the template-based intra prediction guiding method is signaled in a sequence parameter set. When the template-based intra prediction guiding method is used, the application of the template-based intra prediction guiding method is expressed at the coding unit level using a coding unit level flag. When the current coding unit block uses the template-based intra prediction guiding method, the decoding device derives information about the intra prediction mode of the current coding unit block using the template-based intra prediction guiding method. This omits the signaling of syntax related to the intra prediction mode for the remaining luminance components.

[0094] 6, a template 610 used in the template-based intra prediction guidance method is adjacent to the top and left side of a current block. Template reference pixels 620 to which the directions of all candidate modes in the MPM list are applied are adjacent to the template 610. A prediction template is generated by applying the directions of all candidate modes in the MPM list to the template reference pixels 620.

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

[0096] Referring to FIG. 7, a reference block P inter The planar mode is applied to the reference pixels adjacent to the current block to derive an intra-prediction block P Planar The corresponding reference block P inter and intra prediction block P Planar Applying weights to the CIIP-based prediction block P CIIP The prediction block P based on CIIP is generated. CIIP is generated using the following formula:

number

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

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

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

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

[0101] The CIIP mode described in Figures 7 to 9 does not use directional information around the current block because the intra prediction mode is fixed to the planner mode, and there is a limit to the weighting value determination because the weighting value is determined depending on whether the intra prediction mode of a specific position block is used.

[0102] 10 is a diagram illustrating neighboring blocks of a current block according to an embodiment of the present disclosure, in which an intra prediction mode is determined using a mode histogram in the CIIP mode.

[0103] Referring to FIG. 10, there are adjacent blocks around the current block. There are adjacent blocks A to Q. The size of such blocks A to Q corresponds to the size of the minimum unit for storing intra prediction mode information. The mode histogram is generated based on the intra prediction modes of blocks A to Q adjacent to the current block. For example, the mode histogram is generated based on the intra prediction modes of blocks A to D, blocks I to L, and block Q. For example, the mode histogram is generated based on the intra prediction modes of blocks A to Q. Here, the number and positions of adjacent blocks around the current block used to generate the mode histogram are arbitrarily determined. If there is no trend as a result of checking the distribution of the mode histogram, the intra prediction mode is determined as the planner mode.

[0104] When the current picture is coded into a P slice or a B slice, it is highly likely that the blocks adjacent to the current block are coded in the inter prediction mode. For example, when a mode histogram is generated using the intra prediction modes of the blocks adjacent to the current block, the planner mode is assigned to the blocks coded in the inter prediction mode. Here, any intra prediction mode other than the planner mode is assigned. That is, the mode of the block coded in the inter prediction mode is changed to any intra prediction mode, and then the mode histogram is generated. For example, when a mode histogram is generated using the intra prediction modes of the blocks adjacent to the current block, the mode histogram is generated using only the blocks coded in the intra prediction mode, excluding the blocks coded in the inter prediction mode. The mode that occurs most frequently in the generated mode histogram is selected. This mode is used as the intra prediction mode of the CIIP mode.

[0105] FIG. 11 is a diagram illustrating a method for generating an intra-prediction block in a combined intra-frame inter-frame prediction mode using a mode histogram according to an embodiment of the present disclosure.

[0106] Referring to FIG. 11, three intra prediction modes that occur most frequently are selected from the histogram of the modes generated using the intra prediction modes of the blocks adjacent to the current block. The three intra prediction modes that occur most frequently correspond to the M1 mode, M2 mode, and M3 mode, respectively. Prediction blocks Pred_M1, Pred_M2, and Pred_M3 are generated based on the M1 mode, M2 mode, and M3 mode, respectively. The prediction blocks Pred_M1, Pred_M2, and Pred_M3 are weighted averaged to generate an intra prediction block of the CIIP mode. The weight value is determined based on the frequency of occurrence of the histogram of the modes. The weight value is determined using a template-based sum of absolute translation differences, a template-based sum of absolute differences (SAD), a template-based sum of squared errors (SSE), or the like.

[0107] As an example, any three intra prediction modes are selected from a mode histogram generated using intra prediction modes of blocks adjacent to the current block. Three prediction blocks are generated based on the any three intra prediction modes. An intra prediction block of a CIIP mode is generated by weighting and averaging the three prediction blocks. As an example, any number of intra prediction modes are selected from a mode histogram. Any number of prediction blocks are generated based on the any number of intra prediction modes. An intra prediction block of a CIIP mode is generated by weighting and averaging the any number of prediction blocks.

[0108] Method for determining intra-prediction mode for CIIP mode using template-based intra-prediction mode derivation method - Patents.com

[0109] Calculating the sum of template-based absolute transform differences for the intra prediction mode means applying the directionality of the intra prediction mode to the reference pixels of the template to generate a predicted template pixel, and calculating the sum of absolute transform differences between the generated predicted template pixel and the restored template pixel. The intra prediction mode of the CIIP mode is determined by calculating the sum of template-based absolute transform differences for the intra prediction modes of all reference blocks adjacent to the periphery of the current block. The sum of template-based absolute transform differences for the intra prediction modes of the upper blocks A to H, the left blocks I to P, and the upper left block Q adjacent to the periphery of the current block in FIG. 10 is calculated. The mode having the smallest value of the calculated sum of absolute transform differences is determined as the intra prediction mode of the CIIP mode. If there are multiple modes having the smallest value of the calculated sum of absolute transform differences, the mode with the smallest value first is selected. Alternatively, if there are multiple modes having the smallest value of the calculated sum of absolute transform differences, the mode with the smallest value last is selected. Alternatively, if there are multiple modes having the smallest value among the calculated sums of absolute transform differences, the intra-prediction block of the CIIP mode is determined by weighted averaging multiple prediction blocks generated based on such multiple modes.

[0110] The number and positions of the reference blocks adjacent to the current block to be used are determined arbitrarily. The number and positions of such reference blocks are determined taking into consideration complexity and coding efficiency. The sum of template-based absolute transform differences for overlapped intra prediction modes is not calculated. As an example, the sum of template-based absolute transform differences for intra prediction modes of the upper blocks A to D, the left blocks I to L, and the upper left block Q of FIG. 10 is calculated. As an example, the sum of template-based absolute transform differences for intra prediction modes of the upper blocks A, C, E, G, the left blocks I, K, M, O, and the upper left block Q of FIG. 10 is calculated.

[0111] Further, the intra prediction mode of the CIIP mode is determined by calculating the sum of template-based absolute transform differences for the candidate modes in the MPM list. A prediction template is generated by applying the directionality of all candidate modes in the MPM list to the reference pixels of the template. The sum of absolute transform differences between the pixels of the generated prediction template and the pixels of the already restored template is calculated. The candidate mode used to generate a prediction pixel with the smallest sum of absolute transform differences among the MPM candidate modes is determined as the intra prediction mode of the CIIP mode. An intra prediction block is generated using the determined intra prediction mode of the CIIP mode. A final CIIP-based prediction block is generated by applying weights to the intra prediction block and the inter prediction block.

[0112] 12a and 12b are diagrams for explaining a method of dividing a current block into sub-blocks based on an intra prediction mode in an intra-frame inter prediction mode according to an embodiment of the present disclosure. The intra prediction mode of a CIIP mode is determined by calculating a sum of template-based absolute transform differences related to the intra prediction modes of all reference blocks adjacent to the current block. If the intra prediction mode of the determined CIIP mode is a directional mode, the current block is divided into sub-blocks. The CIIP mode is applied to each divided sub-block.

[0113] Referring to FIG. 12a, if the intra prediction mode of the CIIP mode determined by calculating the sum of template-based absolute transform differences for the intra prediction modes of all reference blocks adjacent to the current block is equal to or greater than mode 2 and less than mode 34, the current block is vertically divided. However, the range of the determined intra prediction mode of the CIIP mode is not limited thereto. The current block is divided into a sub-block with index 0, a sub-block with index 1, a sub-block with index 2, and a sub-block with index 3. Since the current block is vertically divided, the sub-block with index 0, the sub-block with index 1, the sub-block with index 2, and the sub-block with index 3 correspond to a rectangle whose height is longer than its width.

[0114] Referring to FIG. 12b, if the intra prediction mode of the CIIP mode determined by calculating the sum of template-based absolute transform differences for the intra prediction modes of all reference blocks adjacent to the current block is equal to or greater than mode 34 and equal to or less than mode 66, the current block is divided horizontally. However, the range of the determined intra prediction mode of the CIIP mode is not limited thereto. The current block is divided into a sub-block with index 0, a sub-block with index 1, a sub-block with index 2, and a sub-block with index 3. Since the current block is divided horizontally, the sub-block with index 0, the sub-block with index 1, the sub-block with index 2, and the sub-block with index 3 correspond to a rectangle whose width is longer than its height.

[0115] 13 is a diagram illustrating weights assigned to sub-blocks according to an embodiment of the present disclosure. The CIIP mode is applied to each of the divided sub-blocks in FIG. 12a and FIG. 12b. The weights assigned to the intra-predicted block and the inter-predicted block in the CIIP mode may be different for each sub-block.

[0116] 13, in the sub-block with index 0 in FIG. 12a and FIG. 12b, a weight value of 6 is assigned to the intra predicted block in CIIP mode, and a weight value of 2 is assigned to the inter predicted block in CIIP mode. In the sub-block with index 1, a weight value of 5 is assigned to the intra predicted block in CIIP mode, and a weight value of 3 is assigned to the inter predicted block in CIIP mode. In the sub-block with index 2, a weight value of 3 is assigned to the intra predicted block in CIIP mode, and a weight value of 5 is assigned to the inter predicted block in CIIP mode. In the sub-block with index 3, a weight value of 2 is assigned to the intra predicted block in CIIP mode, and a weight value of 6 is assigned to the inter predicted block in CIIP mode.

[0117] FIG. 14 is a diagram for explaining a histogram of modes of blocks adjacent to a current block according to an embodiment of the present disclosure.

[0118] Referring to FIG. 14, a mode histogram of blocks adjacent to the current block is constructed. The modes are sorted in descending order of occurrence frequency in the generated mode histogram. Thus, the modes are sorted in descending order of occurrence frequency. Mode 1, mode 2, mode 3, mode 4, mode 5, mode 6, and mode 7 represent any intra prediction modes. Mode 1, mode 2, mode 3, mode 4, mode 5, mode 6, and mode 7 refer to intra prediction modes of blocks adjacent to the current block. When intra prediction modes with the same occurrence frequency exist, the intra prediction modes are sorted from the lowest number to the highest number. Alternatively, the intra prediction modes are sorted from the highest number to the highest number.

[0119] FIG. 15 is a diagram illustrating a process of deriving a template-based intra prediction mode using a histogram of modes of blocks adjacent to a current block according to an embodiment of the present disclosure.

[0120] Referring to FIG. 15, the template-based sum of absolute transformation differences (SATD) for mode 1, which is the first index mode in the mode histogram generated in FIG. モード1 is calculated (S1510). The index 1 is incremented (S1520). The sum of absolute transformation differences for the next index mode, SATD next is calculated (S1530). モードn + 1 <Threshold * SATD モードn It is determined whether SATD is true (S1540). モードn+1 corresponds to the sum of absolute conversion differences for mode 2, and SATD モードn corresponds to the sum of absolute transformation differences for mode 1. モードn + 1 is the sum of absolute transformation differences for the following index modes: next The threshold corresponds to any value > 0. モードn + 1 <Threshold * SATD モードn If not (S1540-NO), mode n is determined as the intra prediction mode of the CIIP mode (S1550). モードn + 1 <Threshold * SATD モードn If so (S1540-YES), it is determined whether mode n+1 corresponds to the last index mode (S1560). If mode n+1 is the last index mode (S1560-YES), the last index mode is determined as the intra prediction mode of the CIIP mode (S1570). The last index mode corresponds to mode 7. If mode n+1 is not the last index mode (S1560-NO), index 1 is incremented. The sum of absolute transform differences for the incremented index mode is calculated.

[0121] In this way, the process of comparing the sum of the template-based absolute transformation differences is terminated when the sum of the template-based absolute transformation differences for the mode with the smaller index number is smaller than the sum of the template-based absolute transformation differences for the mode with the larger index number. At this time, the mode with the smaller index number is determined as the intra prediction mode of the CIIP mode. Alternatively, if the currently compared index number is the last index in the mode histogram, the process of comparing the sum of the template-based absolute transformation differences is terminated. Through this process, the complexity is reduced. In addition to the sum of the template-based absolute transformation differences, various methods such as the sum of the template-based absolute differences or the sum of the squares of the template-based errors can be used.

[0122] 16a and 16b are diagrams for explaining an error distribution of inter prediction and an error distribution of intra prediction according to an embodiment of the present disclosure.

[0123] Referring to Figure 16a, the error distribution of inter prediction is represented by horizontal / vertical coordinate values. In inter prediction, a motion vector is used based on the center of the current block. Therefore, the error of inter prediction increases as the block moves away from the center of the current block.

[0124] Referring to Figure 16b, the intra prediction error distribution is represented by horizontal / vertical coordinate values. In intra prediction, the reference block used for prediction is located in the upper left of the current block. As a result, the intra prediction error increases from the upper left to the lower right.

[0125] 17a and 17b are diagrams for explaining weights of intra prediction of an 8×8 block and weights of inter prediction of an 8×8 block according to an embodiment of the present disclosure. In intra prediction, a reference block used in prediction is located in the upper left of a current block. Thus, a large weight is assigned to an intra prediction signal in the upper left region of the current block, and a large weight is assigned to an inter prediction signal in the lower right region of the current block.

[0126] Referring to FIG. 17a, in an 8×8 size block, a large weight is assigned to the intra prediction signal in the upper left region, and a small weight is assigned to the intra prediction signal in the lower right region.

[0127] Referring to Figure 17b, in an 8x8 size block, the lower right region is assigned a large weight to the inter prediction signal, and the upper left region is assigned a small weight to the inter prediction signal. However, the present disclosure is not limited to such an embodiment. The size and shape of the block may be any size and shape. The assigned weight may be any weight.

[0128] 18a and 18b are diagrams for explaining weights of intra prediction of an 8×8 block and weights of inter prediction of an 8×8 block according to another embodiment of the present disclosure. In inter prediction, a motion vector is used based on the center of the current block. Thus, a large weight is assigned to the inter prediction signal in the central region of the current block, and a large weight is assigned to the intra prediction signal in the edge region of the current block.

[0129] Referring to FIG. 18a, in an 8×8 size block, a small weight is assigned to the intra prediction signal in the central region, and a large weight is assigned to the intra prediction signal in the edge region.

[0130] Referring to Figure 18b, for an 8x8 size block, a central region is assigned a large weight value to the inter-prediction signal, and an edge region is assigned a small weight value to the inter-prediction signal. However, the present disclosure is not limited to such an embodiment. The size and shape of the block may be any size and shape. The assigned weight value may be any weight value.

[0131] 19 is a diagram illustrating reference pixels adjacent to a current block to which a Sobel filter is applied according to an embodiment of the present disclosure. A direction is predicted based on the reference pixels adjacent to the current block. An intra prediction mode of the CIIP mode is determined based on the predicted direction.

[0132] Referring to FIG. 19, a restored reference pixel is present in a reference sample adjacent to the periphery of a current block. A Sobel filter is applied to the restored reference pixel to calculate the gradient of the corresponding pixel. A gradient histogram is generated using the calculated gradient. A gradient having a maximum value is selected from the gradient histogram. The selected gradient is mapped to an intra prediction mode. The mapped intra prediction mode is determined as the intra prediction mode of the CIIP mode. Here, the size M of the reference sample corresponds to an arbitrary integer equal to or greater than 1. That is, the reference pixel to which the Sobel filter is applied is expanded from one line of reference pixels to multi-line reference pixels.

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

[0134] Referring to FIG. 20, the decoding apparatus generates an inter-predicted block for a current block based on a reference block existing in a reference picture corresponding to the current block (S2010). The decoding apparatus generates an intra-predicted block for a current block based on at least one of at least one reference block adjacent to the current block, an intra-prediction mode list, a first region adjacent to the current block, an MPM list of the current block, and reconstructed reference pixels adjacent to the current block (S2020). The step of generating an intra-predicted block for the current block includes the steps of generating an intra-prediction mode list based on intra-prediction modes of at least one reference block adjacent to the current block, selecting an intra-prediction mode from the intra-prediction mode list, and generating an intra-predicted block based on the intra-prediction mode. Here, the intra-prediction mode is selected based on the frequency of occurrence. The step of generating an intra-prediction block for the current block includes the steps of generating an intra-prediction mode list based on intra-prediction modes of at least one reference block adjacent to the current block, selecting at least one intra-prediction mode from the intra-prediction mode list, generating at least one prediction block based on the at least one intra-prediction mode, and generating the intra-prediction block by weighted averaging the at least one prediction block, where the at least one intra-prediction mode is selected based on an occurrence frequency.

[0135] The step of generating an intra-prediction block for the current block includes the steps of: applying an intra-prediction mode of at least one reference block adjacent to the current block to a reference pixel of a first region adjacent to the current block to generate a prediction pixel; calculating a sum of absolute transformation differences between the prediction pixel and a restored pixel of the first region; deriving an intra-prediction mode of the current block based on the sum of absolute transformation differences; and generating an intra-prediction block based on the intra-prediction mode of the current block. Here, the intra-prediction mode of the current block corresponds to the intra-prediction mode of the reference block used to generate a prediction pixel having a minimum sum of absolute transformation differences. The step of generating an intra-prediction block for the current block includes the steps of generating an intra-prediction mode list based on the intra-prediction modes of at least one reference block adjacent to the current block; deriving an intra-prediction mode of the current block from the intra-prediction mode list based on the sum of absolute transformation differences and an occurrence frequency; and generating an intra-prediction block based on the intra-prediction mode of the current block.

[0136] The step of generating an intra-predicted block for the current block includes the steps of: calculating gradients of reference pixels by applying a Sobel filter to reconstructed reference pixels adjacent to the current block; generating a gradient list based on the gradients of the reference pixels; selecting one gradient from the gradient list; deriving an intra-prediction mode of the current block based on the one gradient; and generating an intra-predicted block based on the intra-prediction mode of the current block. Here, one gradient is selected based on the size. The step of generating an intra-predicted block for the current block includes the steps of generating predicted pixels by applying a candidate mode in the MPM list to reference pixels of a first region adjacent to the current block; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; deriving an intra-prediction mode of the current block based on the sum of absolute transformation differences; and generating an intra-predicted block based on the intra-prediction mode of the current block. Here, the intra-prediction mode of the current block corresponds to a candidate mode used to generate a predicted pixel having a minimum sum of absolute transformation differences.

[0137] The decoding apparatus generates a CIIP block of a current block by performing a weighted average of the inter prediction block and the intra prediction block (S2030). The weights used for the weighted average are derived based on at least one of an intra prediction error distribution and an inter prediction error distribution. The step of generating a CIIP block of the current block includes a step of dividing the current block into four sub-blocks based on a direction of an intra prediction mode of the current block, and a step of performing a weighted average of the inter prediction block and the intra prediction block for each of the four sub-blocks to generate a CIIP block of the current block. Here, the current block is divided vertically or horizontally based on a direction of an intra prediction mode of the current block. A weight value used for the weighted average is different for each of the four sub-blocks.

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

[0139] Referring to FIG. 21, the encoding apparatus generates an inter-predicted block for a current block based on a reference block existing in a reference picture corresponding to the current block (S2110). The encoding apparatus generates an intra-predicted block for the current block based on at least one of at least one reference block adjacent to the current block, an intra-prediction mode list, a first region adjacent to the current block, an MPM list of the current block, and reconstructed reference pixels adjacent to the current block (S2120). The step of generating an intra-predicted block for the current block includes the steps of generating an intra-prediction mode list based on intra-prediction modes of at least one reference block adjacent to the current block, selecting an intra-prediction mode from the intra-prediction mode list, and generating an intra-predicted block based on the intra-prediction mode. Here, the intra-prediction mode is selected based on the frequency of occurrence. The step of generating an intra-prediction block for the current block includes the steps of generating an intra-prediction mode list based on intra-prediction modes of at least one reference block adjacent to the current block, selecting at least one intra-prediction mode from the intra-prediction mode list, generating at least one prediction block based on the at least one intra-prediction mode, and generating the intra-prediction block by weighted averaging the at least one prediction block, where the at least one intra-prediction mode is selected based on an occurrence frequency.

[0140] The step of generating an intra-prediction block for the current block includes the steps of: applying an intra-prediction mode of at least one reference block adjacent to the current block to a reference pixel of a first region adjacent to the current block to generate a prediction pixel; calculating a sum of absolute transformation differences between the prediction pixel and a restored pixel of the first region; determining an intra-prediction mode of the current block based on the sum of absolute transformation differences; and generating an intra-prediction block based on the intra-prediction mode of the current block. Here, the intra-prediction mode of the current block corresponds to the intra-prediction mode of the reference block used to generate a prediction pixel having a minimum sum of absolute transformation differences. The step of generating an intra-prediction block for the current block includes the steps of generating an intra-prediction mode list based on the intra-prediction modes of at least one reference block adjacent to the current block; determining an intra-prediction mode of the current block from the intra-prediction mode list based on the sum of absolute transformation differences and an occurrence frequency; and generating an intra-prediction block based on the intra-prediction mode of the current block.

[0141] The step of generating an intra-predicted block for the current block includes the steps of: calculating gradients of reference pixels by applying a Sobel filter to reconstructed reference pixels adjacent to the current block; generating a gradient list based on the gradients of the reference pixels; selecting one gradient from the gradient list; determining an intra-prediction mode of the current block based on the one gradient; and generating an intra-predicted block based on the intra-prediction mode of the current block. Here, one gradient is selected based on the size. The step of generating an intra-predicted block for the current block includes the steps of: applying a candidate mode in the MPM list to reference pixels of a first region adjacent to the current block to generate predicted pixels; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; determining an intra-prediction mode of the current block based on the sum of absolute transformation differences; and generating an intra-predicted block based on the intra-prediction mode of the current block. Here, the intra-prediction mode of the current block corresponds to a candidate mode used to generate a predicted pixel having a minimum sum of absolute transformation differences.

[0142] The encoding apparatus generates a CIIP block of the current block by performing a weighted average of the inter prediction block and the intra prediction block (S2130). A weight used for the weighted average is determined based on at least one of an intra prediction error distribution and an inter prediction error distribution. The step of generating the CIIP block of the current block includes a step of dividing the current block into four sub-blocks based on a direction of an intra prediction mode of the current block, and a step of performing a weighted average of the inter prediction block and the intra prediction block for each of the four sub-blocks to generate the CIIP block of the current block. Here, the current block is divided vertically or horizontally based on a direction of an intra prediction mode of the current block. A weight used for the weighted average is different for each of the four sub-blocks.

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

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

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

[0146] The above description is merely an illustrative example of the technical idea of ​​the present embodiment, and a person having ordinary knowledge in the technical field to which the present embodiment belongs may make various modifications and variations without departing from the essential characteristics of the present embodiment. Therefore, the present embodiment is intended to explain, rather than limit, the technical idea of ​​the present embodiment, and the scope of the technical idea of ​​the present embodiment is not limited by such an embodiment. The scope of protection of the present embodiment should be interpreted according to the claims, and all technical ideas within the scope equivalent thereto should be interpreted as being included in the scope of the present embodiment. [Explanation of symbols]

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

Claims

1. generating an inter-predicted block for the current block based on a reference block existing in a reference picture corresponding to the current block; generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, a Most Probable Mode (MPM) list for the current block, and reconstructed reference pixels neighboring the current block; and and performing a weighted average of the inter prediction block and the intra prediction block to generate a combined inter intra prediction (CIIP) block of the current block.

2. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; selecting an intra-prediction mode from the intra-prediction mode list; and generating the intra-predicted block based on the intra-prediction mode; 2. The method of claim 1, wherein the intra-prediction mode is selected based on frequency of occurrence.

3. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; selecting at least one intra-prediction mode from the intra-prediction mode list; generating at least one predicted block based on the at least one intra prediction mode; and and weighting the at least one predicted block to generate the intra predicted block.

2. The method of claim 1, wherein the at least one intra-prediction mode is selected based on a frequency of occurrence.

4. The step of generating an intra-predicted block for the current block includes: generating predicted pixels by applying intra prediction modes of at least one reference block adjacent to the current block to reference pixels of a first region adjacent to the current block; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; deriving an intra prediction mode of the current block based on the sum of absolute transform differences; and generating the intra-predicted block based on an intra-prediction mode of the current block; The method of claim 1 , wherein the intra prediction mode of the current block is an intra prediction mode of a reference block used to generate a predicted pixel having a minimum sum of absolute transform differences.

5. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; deriving an intra prediction mode of the current block from the intra prediction mode list based on a sum of absolute transform differences and an occurrence frequency; and 2. The method of claim 1, further comprising: generating the intra-predicted block based on an intra-prediction mode of the current block.

6. The step of generating an intra-predicted block for the current block includes: calculating gradients of the reference pixels by applying a Sobel filter to the reconstructed reference pixels adjacent to the current block; generating a gradient list based on the gradients of the reference pixels; selecting a gradient from the gradient list; deriving an intra prediction mode of the current block based on the one gradient; and generating the intra-predicted block based on an intra-prediction mode of the current block; 2. The method of claim 1, wherein the one gradient is selected based on size.

7. The step of generating an intra-predicted block for the current block includes: generating a predicted pixel by applying a candidate mode in the MPM list of the current block to a reference pixel in a first region adjacent to the current block; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; deriving an intra prediction mode of the current block based on the sum of absolute transform differences; and generating the intra-predicted block based on an intra-prediction mode of the current block; The method of claim 1 , wherein the intra prediction mode of the current block is a candidate mode used to generate a predicted pixel having a minimum sum of absolute transform differences.

8. The method of claim 1, wherein the weights used in the weighted average are derived based on at least one of an intra-prediction error distribution and an inter-prediction error distribution.

9. The step of generating a CIIP block of the current block comprises: Dividing the current block into four sub-blocks based on a direction of an intra-prediction mode of the current block; and The method of claim 4, further comprising: generating a CIIP block of the current block by performing a weighted average of the inter prediction block and the intra prediction block for each of the four sub-blocks.

10. The current block is divided vertically or horizontally based on a direction of an intra prediction mode of the current block; The video decoding method of claim 8, wherein the weights used in the weighted average are different for each of the four sub-blocks.

11. generating an inter-predicted block for the current block based on a reference block existing in a reference picture corresponding to the current block; generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, an MPM list for the current block, and reconstructed reference pixels neighboring the current block; and and performing a weighted average of the inter-predicted block and the intra-predicted block to generate a CIIP block of the current block.

12. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; selecting an intra-prediction mode from the intra-prediction mode list; and generating the intra-predicted block based on the intra-prediction mode; The method of claim 11, wherein the intra-prediction mode is selected based on frequency of occurrence.

13. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; selecting at least one intra-prediction mode from the intra-prediction mode list; generating at least one predicted block based on the at least one intra prediction mode; and and weighting the at least one predicted block to generate the intra predicted block. The method of claim 11, wherein the at least one intra prediction mode is selected based on a frequency of occurrence.

14. The step of generating an intra-predicted block for the current block includes: generating predicted pixels by applying intra prediction modes of at least one reference block adjacent to the current block to reference pixels of a first region adjacent to the current block; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; determining an intra prediction mode of the current block based on the sum of absolute transform differences; and generating the intra-predicted block based on an intra-prediction mode of the current block; The method of claim 11, wherein the intra prediction mode of the current block is an intra prediction mode of a reference block used to generate a predicted pixel having a minimum sum of absolute transform differences.

15. The step of generating an intra-predicted block for the current block includes: generating an intra prediction mode list based on intra prediction modes of at least one reference block neighboring the current block; determining an intra prediction mode of the current block from the intra prediction mode list based on a sum of absolute transform differences and an occurrence frequency; and 12. The method of claim 11, further comprising: generating the intra-predicted block based on an intra-prediction mode of the current block.

16. The step of generating an intra-predicted block for the current block includes: applying a Sobel filter to reconstructed reference pixels adjacent to the current block to calculate gradients of the reference pixels; generating a gradient list based on the gradients of the reference pixels; selecting a gradient from the gradient list; determining an intra prediction mode of the current block based on the one gradient; and generating the intra-predicted block based on an intra-prediction mode of the current block; 12. The method of claim 11, wherein the one gradient is selected based on a size.

17. The step of generating an intra-predicted block for the current block includes: generating a predicted pixel by applying a candidate mode in the MPM list of the current block to a reference pixel in a first region adjacent to the current block; calculating a sum of absolute transformation differences between the predicted pixels and reconstructed pixels of the first region; determining an intra prediction mode of the current block based on the sum of absolute transform differences; and generating the intra-predicted block based on an intra-prediction mode of the current block; The method of claim 11, wherein the intra prediction mode of the current block is a candidate mode used to generate a predicted pixel having a minimum sum of absolute transform differences.

18. The step of generating a CIIP block of the current block comprises: Dividing the current block into four sub-blocks based on a direction of an intra-prediction mode of the current block; and The method of claim 14, further comprising: generating a CIIP block of the current block by performing a weighted average of the inter prediction block and the intra prediction block for each of the four sub-blocks.

19. The current block is divided vertically or horizontally based on a direction of an intra prediction mode of the current block; The video encoding method of claim 18, wherein the weights used in the weighted average are different for each of the four sub-blocks.

20. A computer-readable recording medium storing a bitstream generated by a video encoding method, the video encoding method comprising: generating an inter-predicted block for the current block based on a reference block existing in a reference picture corresponding to the current block; generating an intra-predicted block for the current block based on at least one of at least one reference block neighboring the current block, an intra-prediction mode list, a first region neighboring the current block, an MPM list for the current block, and reconstructed reference pixels neighboring the current block; and and generating a CIIP block of the current block by performing a weighted average of the inter-predicted block and the intra-predicted block.

Citation Information

Patent Citations

  • Image encoding device, image encoding method and image encoding program, and image decoding device, image decoding method and image decoding program

    JP2021114781A

  • Method and apparatus for video coding

    US20200288157A1

  • Combined inter and intra prediction

    WO2020142279A1

Cited By

  • Method for generating intra-prediction block for inter-prediction

    WO2026089249A1