Video coding method and apparatus using geometric intra prediction modes
The geometric intra prediction mode in video coding uses two intra predictors combined with pixel-wise weights to address inefficiencies in existing methods, enhancing coding efficiency and quality.
Patent Information
- Application Number
- JP2024521289
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-09-02
- Filing Date
- 2022-09-05
- Publication Date
- 2024-10-04
AI Technical Summary
Existing video coding methods face inefficiencies in intra prediction due to the limited use of spatially adjacent pixels, leading to suboptimal performance in generating prediction signals, especially as video data sizes increase.
Implement a geometric intra prediction mode that uses two different intra prediction modes to generate two intra predictors, which are then combined using pixel-wise weights to create a final predictor.
This approach enhances video coding efficiency and quality by leveraging arbitrary block partitioning through a blending process, improving prediction performance.
Smart Images

Figure 2024536454000001_ABST
Abstract
Description
[Technical field]
[0001] SUMMARY This disclosure relates to video coding methods and apparatus that utilize geometric intra-prediction modes. [Background technology]
[0002] The following disclosure is merely intended to provide background information related to the present invention and may not constitute prior art.
[0003] Video data has a larger amount of data than audio data or still image data, and therefore requires a large amount of hardware resources including memory to store or transmit the data without compression processing.
[0004] Therefore, in general, 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, HEVC (High Efficiency Video Coding), and VVC (Versatile Video Coding), 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. This has resulted in a demand for new compression technologies that offer better encoding efficiency and greater image quality improvement than conventional compression technologies.
[0006] Intra prediction is a technique for generating a prediction signal using spatially adjacent pixels in the same picture when performing prediction on a current block. In existing video encoding / decoding methods and devices, an increased number of intra prediction modes are used to improve the encoding performance of the intra prediction technique, or filtering is applied to spatially adjacent pixels used in the intra prediction. This intra prediction technique has a relatively low performance in generating a prediction signal compared to the inter prediction technique due to the constraint that limited pixels in the same picture as the current block are used when generating a prediction signal.
[0007] In order to improve the prediction performance of intra prediction, multiple line buffers are used in addition to spatially adjacent pixels. For example, a multiple reference line (MRL) intra prediction technique selects one of pixel lines located at one or more specific distances to perform intra prediction. There is also a matrix weighted intra prediction (MIP) technique that generates an intra prediction signal using a multiplication operation between surrounding pixels and a predefined matrix. Therefore, in order to improve the video encoding efficiency and improve the video quality, the intra prediction method needs to be further improved. Summary of the Invention [Problem to be solved by the invention]
[0008] The present disclosure aims to provide a video coding method and apparatus for generating two intra predictors using two different intra prediction modes when applying a geometric intra prediction mode, and then generating a final intra predictor by weighting the two intra predictors using pixel-wise weighting values based on a geometric block partition. [Means for solving the problem]
[0009] According to an embodiment of the present disclosure, a method for intra predicting a current block performed by a video decoding apparatus includes: decoding a geometric intra prediction flag from a bitstream, the geometric intra prediction flag indicating whether a geometric intra prediction mode is used for the current block; and checking the geometric intra prediction flag. If the geometric intra prediction flag is true, decoding a geometric partition information index, a first intra prediction mode index, and a second intra prediction mode index from the bitstream; generating a list including prediction modes for intra prediction of the current block; selecting a first intra prediction mode from the list using the first intra prediction mode index; and selecting the first intra prediction mode from the list using the first intra prediction mode index. generating a first intra predictor of the current block using pixels spatially neighboring the current block based on an intra prediction mode of the current block; selecting a second intra prediction mode from the list using a second intra prediction mode index; generating a second intra predictor of the current block using pixels spatially neighboring the current block based on the second intra prediction mode; obtaining weighting values using the geometric partitioning information index, the weighting values including a first weighting value for the first intra predictor and a second weighting value for the second intra predictor; and generating a final intra predictor of the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weighting values.
[0010] According to another embodiment of the present disclosure, a method for intra predicting a current block performed by a video encoding apparatus includes: determining a geometric intra prediction flag, the geometric intra prediction flag indicating whether a geometric intra prediction mode is used for the current block; and checking the geometric intra prediction flag. If the geometric intra prediction flag is true, determining a geometric partition information index; generating a list including an intra prediction mode for intra prediction of the current block; determining a first intra prediction mode; determining a first intra prediction mode index from the list for the first intra prediction mode; and determining a spatially adjacent block to the current block based on the first intra prediction mode. determining a second intra prediction mode index from the list for the second intra prediction mode; generating a second intra predictor of the current block using pixels spatially neighboring the current block based on the second intra prediction mode; obtaining weighting values using the geometric partitioning information index, the weighting values including a first weighting value for the first intra predictor and a second weighting value for the second intra predictor; and generating a final intra predictor of the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weighting values.
[0011] According to another embodiment of the present disclosure, there is provided a computer-readable recording medium storing a bitstream generated by a video encoding method, the video encoding method including: determining a geometric intra prediction flag, the geometric intra prediction flag indicating whether a geometric intra prediction mode is used for a current block; and checking the geometric intra prediction flag, and if the geometric intra prediction flag is true, determining a geometric partition information index; generating a list including an intra prediction mode for intra prediction of the current block; determining a first intra prediction mode; determining a first intra prediction mode index from the list for the first intra prediction mode; and determining a first intra prediction mode index based on the first intra prediction mode. generating a first intra predictor of a current block using pixels spatially adjacent to the current block; determining a second intra prediction mode; determining a second intra prediction mode index from the list for the second intra prediction mode; generating a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode; obtaining weighting values using the geometric partitioning information index, the weighting values including a first weighting value for the first intra predictor and a second weighting value for the second intra predictor; and generating a final intra predictor of the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weighting values. Effect of the Invention
[0012] As described above, according to the present embodiment, when applying a geometric intra prediction mode, a video coding method and apparatus are provided in which two intra predictors are generated using two different intra prediction modes, and then a final intra predictor is generated from the two intra predictors using pixel-wise weighting values based on geometric block division, thereby making it possible to improve video encoding efficiency and video image quality.
[0013] In addition, according to the present embodiment, a video coding method and apparatus are provided for generating a final intra predictor from two different intra predictors using pixel-wise weighted values, thereby making it possible to utilize the effect of arbitrary block partitioning through a blending process that replicates a geometric block partition when applying a geometric intra prediction mode. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is an exemplary block diagram of a video encoding device capable of implementing the techniques of this disclosure. [Diagram 2] FIG. 2 is a diagram for explaining a method of dividing a block using the QTBTTT structure. [Figure 3a] FIG. 3a is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 3b] FIG. 3b is a diagram illustrating multiple intra-prediction modes, including a wide-angle intra-prediction mode. [Figure 4] FIG. 4 is a diagram illustrating an example of neighboring blocks of a current block. [Diagram 5] FIG. 5 is an exemplary block diagram of a video decoding device capable of implementing the techniques of this disclosure. [Figure 6] FIG. 6 is a block diagram illustrating an intra predictor generating device according to an embodiment of the present disclosure. [Figure 7]FIG. 7 is an example diagram illustrating application of a geometric intra prediction mode according to one embodiment of the present disclosure. [Figure 8] FIG. 8 is an example diagram illustrating a blending process of two predictors according to one embodiment of the present disclosure. [Figure 9a] FIG. 9a is an example diagram showing a line dividing a block in two according to one embodiment of the present disclosure. [Figure 9b] FIG. 9b is an example diagram showing a line dividing a block in two according to an embodiment of the present disclosure. [Figure 10] FIG. 10 is a flowchart illustrating an intra prediction method performed by a video encoding device according to an embodiment of the present disclosure. [Figure 11] FIG. 11 is a flowchart illustrating an intra prediction method performed by a video decoding apparatus according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] 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.
[0016] 1 is an exemplary block diagram of a video encoding device capable of implementing the technology of the present disclosure. Hereinafter, the video encoding device and its lower components will be described with reference to the diagram of FIG.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] 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).
[0023] FIG. 2 is a diagram for explaining a method of dividing a block using the QTBTTT structure.
[0024] 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.
[0025] Alternatively, before encoding the first flag QT_split_flag indicating whether each node is split into four nodes in the lower layer, a CU split flag split_cu_flag indicating whether the node is split may be encoded. If the CU split flag split_cu_flag value indicates that the node is not split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of coding. If the CU split flag split_cu_flag value indicates that the node is split, the video coding apparatus starts coding from the first flag in the above-mentioned manner.
[0026] 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.
[0027] 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.
[0028] 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 .
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] Various methods are used to minimize the amount of bits required to code the motion information.
[0038] 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."
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] Hereinafter, the merge mode and the merge skip mode will be collectively referred to as the merge / skip mode.
[0044] Yet another method for encoding motion information is the Advanced Motion Vector Prediction (AMVP) mode.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] The reordering unit 150 performs reordering of the coefficient values on the quantized residual values.
[0054] 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.
[0055] 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.
[0056] 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, i.e., information related to a quantization parameter and information related to a quantization matrix.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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 .
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] Meanwhile, when the entropy decoding unit 510 determines the current block to be decoded using the division of the tree structure, it extracts information on a prediction type indicating whether the current block is intra-predicted or inter-predicted. If the prediction type information indicates intra-prediction, the entropy decoding unit 510 extracts syntax elements related to intra-prediction information (intra-prediction mode) of the current block. If the prediction type information indicates inter-prediction, the entropy decoding unit 510 extracts syntax elements related to inter-prediction information, i.e., a motion vector and information indicating a reference picture to which the motion vector refers.
[0071] 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.
[0072] 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.
[0073] 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.
[0074] 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.
[0075] In addition, when the inverse transform unit 530 inverse transforms only a portion (sub-block) of the transform block, it extracts a flag cu_sbt_flag indicating that only a sub-block of the transform block has been transformed, sub-block directionality (vertical / horizontal) information cu_sbt_horizontal_flag, and / or sub-block position information cu_sbt_pos_flag, restores the residual signal by inverse transforming the transform coefficients of the corresponding sub-block from the frequency domain to the spatial domain, and generates a final residual block for the current block by filling the residual signal with ``0'' values for areas that are not inverse transformed.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] The present embodiment relates to the above-described video encoding and decoding. More specifically, a video coding method and apparatus is provided for generating two intra predictors using two different intra prediction modes, and then generating a final intra predictor by weighting the two intra predictors using a pixel-by-pixel weight based on a geometric block partition.
[0084] The following embodiment is performed by the intra prediction unit 122 in the video encoder and the intra prediction unit 542 in the video decoder.
[0085] The video encoding apparatus may generate signaling information related to this embodiment in terms of optimizing bit rate distortion in intra prediction of the current block. The video encoding apparatus may encode the signaling information using the entropy encoding unit 155 and then transmit the encoded signaling information to the video decoding apparatus. The video decoding apparatus may decode the signaling information related to intra prediction of the current block from the bitstream using the entropy decoding unit 510.
[0086] In the following description, the term “target block” may be used synonymously with the current block or coding unit (CU) as described above, or may refer to a portion of a coding unit.
[0087] A flag's value being true indicates that the flag is set to 1. A flag's value being false indicates that the flag is set to 0.
[0088] I. Intra-Prediction Mode and Most Probable Mode (MPM) As described above, intra prediction is a method of predicting a current block by referring to samples existing around a block to be currently encoded. Intra prediction modes in the VVC technology have sub-divided directional modes (i.e., 2 to 66) in addition to non-directional modes (i.e., planar and DC) as illustrated in Fig. 3a. Furthermore, as added to the example of Fig. 3b, intra prediction modes of luma blocks have directional modes (-14 to -1 and 67 to 80) according to wide-angle intra prediction (WAIP).
[0089] The Most Probable Mode (MPM) technique in intra prediction uses intra prediction modes of neighboring blocks when intra predicting a current block. The video encoding apparatus generates an MPM list to include intra prediction modes derived from predefined positions spatially adjacent to the current block. The video encoding apparatus transmits an index of the MPM list instead of an index of a prediction mode, thereby improving the encoding efficiency of the intra prediction mode.
[0090] II. Examples of the present disclosure FIG. 6 is a block diagram illustrating an intra predictor generating device according to an embodiment of the present disclosure.
[0091] In the present embodiment, an intra predictor generating device (hereinafter, "predictor generating device") generates two intra predictors using two different intra prediction modes for a current block when applying a geometric intra prediction mode, and then performs a blending process based on a pixel-by-pixel weight to generate a final intra predictor. The predictor generating device includes all or a part of a first intra prediction mode selecting unit 610, a first intra predictor generating unit 620, a second intra prediction mode selecting unit 630, a second intra predictor generating unit 640, and a final intra predictor generating unit 650.
[0092] FIG. 7 is an example diagram illustrating application of a geometric intra prediction mode according to one embodiment of the present disclosure.
[0093] When applying the geometric intra prediction mode, as illustrated in FIG 7, the intra prediction device first generates a first intra predictor and a second intra predictor using different intra prediction modes for the current block. The intra prediction device generates a final intra predictor by weighting the first intra predictor and the second intra predictor using weights based on a geometric block partition. In the example of FIG 7, nCbw and nCbh represent the width and height of the current block.
[0094] 7, the weights represent the weights for the first intra predictor. The meanings and settings of the weights will be described later.
[0095] As an example, the first intra predictor is a signal generated using one intra prediction mode of the MPM list as described above.Furthermore, the second intra predictor is also a signal generated using one intra prediction mode of the remaining modes excluding the intra prediction mode used to generate the first intra predictor of the MPM list.
[0096] The operation of the components within the intra prediction device will now be described from the perspective of a video decoding device. As mentioned above, the intra prediction device is also included in a video encoding device.
[0097] The first intra-prediction mode selection unit 610 generates an MPM list for intra-prediction of a current block. The first intra-prediction mode selection unit 610 selects an intra-prediction mode indicated by a corresponding index in the MPM list using index information signaled from a video encoding device.
[0098] The first intra predictor generating unit 620 generates a first intra predictor of the current block using pre-reconstructed pixels spatially adjacent to the current block based on a first intra prediction mode.
[0099] The second intra prediction mode selection unit 630 reorders the MPM list, excluding the first intra prediction mode from the MPM list. The second intra prediction mode selection unit 630 selects an intra prediction mode indicated by a corresponding index from the reordered MPM list using index information signaled from the video encoding device.
[0100] The second intra predictor generating unit 640 generates a second intra predictor of the current block using pre-reconstructed pixels spatially adjacent to the current block based on a second intra prediction mode.
[0101] The final intra predictor generator 650 acquires geometric block partition information, for example, from a lookup table, using an index signaled from the video encoding device. The final intra predictor generator 650 generates weights based on the geometric block partition information. Here, the weights include a weight w1 for a first intra predictor and a weight w2 for a second intra predictor. The final intra predictor generator 650 generates a final intra predictor by performing a weighted sum of the first intra predictor and the second intra predictor using the weights. At this time, the above-mentioned weights are different values for each pixel according to the geometric block partition information.
[0102] Meanwhile, syntax signaled from the video encoder to the video decoder in relation to the geometric intra prediction mode applied to the current block, i.e., the coding unit, is shown in Table 1.
[0103] [Table 1]
[0104] When the mode is not MIP mode, information about the geometric intra prediction mode of the current block is signaled as shown in Table 1. The information about the geometric intra prediction mode is signaled using the following syntax element.
[0105] First, sps_gim_enable_flag, which is a flag indicating whether or not to activate the geometric intra prediction mode, is signaled using a high level syntax. In the example of Table 1, the SPS is used among the high level syntaxes for signaling, but is not necessarily limited thereto. That is, whether or not to use the geometric intra prediction mode is signaled by one or more of various high level syntaxes such as SPS, PPS, slice header, picture header, etc.
[0106] When the flag sps_gim_enable_flag is set to true to use the geometric intra prediction mode, a geometric intra prediction flag intra_gim_flag is signaled to indicate whether or not to use the geometric intra prediction mode for the coding unit.
[0107] Then, if the value of intra_gim_flag is true and the coding unit uses a geometric intra-prediction mode, additional information about the geometric intra-prediction mode is signaled or analyzed.
[0108] On the other hand, if the coding unit does not use a geometric intra-prediction mode, as indicated by the value of intra_gim_flag being false, additional information regarding the intra-prediction mode is signaled or parsed according to existing methods.
[0109] When the value of the geometric intra prediction flag intra_gim_flag is true, the additional information signaled includes a geometric partition information index intra_gim_partition_idx indicating the geometric partition form applied to the coding unit, a first intra prediction mode index intra_gim_idx0 indicating the first intra prediction mode, and a second intra prediction mode index intra_gim_idx1 indicating the second intra prediction mode.
[0110] Meanwhile, as in the procedure illustrated in Table 1, the additional information is signaled or analyzed in the order of intra_gim_partition_idx, which is an index indicating a geometric partition type, intra_gim_idx0, which is an index indicating a first intra prediction mode, and intra_gim_idx1, which is an index indicating a second intra prediction mode, but the signaling or analysis order is not necessarily limited thereto. That is, modifications of the signaling or analysis order are also included in the scope of the present invention. For example, the additional information is signaled or analyzed in the order of an index indicating a first intra prediction mode, an index indicating a second intra prediction mode, and an index indicating a geometric partition type.
[0111] According to Table 1, information on a geometric partition type applied to a coding unit among information on a geometric intra prediction mode is signaled or analyzed using an index indicating the information, intra_gim_partition_idx. Such information on a geometric partition type includes information on a bisection of a block. In this case, the bisection of a block includes dividing the block using a predefined straight line. Such information on a geometric partition type will be described in detail later.
[0112] According to Table 1, an index indicating a first intra prediction mode and an index indicating a second intra prediction mode are additionally signaled. For example, the first intra prediction mode and the second intra prediction mode are two different intra prediction modes among all intra prediction modes supported in the encoding and decoding process.
[0113] As another example, the first intra prediction mode and the second intra prediction mode are two different intra prediction modes included in a candidate list derived from a predefined position spatially adjacent to the current block. In this case, such a candidate list is an MPM list. That is, the first intra prediction mode and the second intra prediction mode according to the present disclosure are limited to prediction modes selected from a predefined candidate list of intra prediction modes.
[0114] As another example, syntax signaled from a video encoder to a video decoder in relation to a geometric intra-prediction mode is shown in Table 2.
[0115] [Table 2]
[0116] As shown in Table 2, in the case of a non-MIP mode, information on the intra prediction mode is signaled according to an existing method, and then information on the geometric intra prediction mode is signaled. Information on the geometric intra prediction mode is signaled using the following syntax element.
[0117] First, a flag sps_gim_enable_flag indicating whether or not to activate a geometric intra prediction mode is signaled using higher level syntax.
[0118] When the flag sps_gim_enable_flag is set to true to use the geometric intra prediction mode, a geometric intra prediction flag intra_gim_flag is signaled to indicate whether or not to use the geometric intra prediction mode for the coding unit.
[0119] If the value of the geometric intra prediction flag intra_gim_flag is true, the additional information signaled includes a geometric partition information index intra_gim_partition_idx indicating a geometric partition form applied to the coding unit, and a second intra prediction mode index intra_gim_idx1 indicating a second intra prediction mode. In this case, the first intra prediction mode index intra_gim_idx0 indicating the first intra prediction mode indicates the intra prediction mode (e.g., intra_luma_mpm_idx or intra_luma_mpm_remainder) that was initially analyzed according to the basic method.
[0120] FIG. 8 is an example diagram illustrating a blending process of two predictors according to one embodiment of the present disclosure.
[0121] As illustrated in Fig. 8, after selecting two different intra prediction modes for a current block, the predictor generator generates an intra predictor corresponding to each intra prediction mode. The predictor generator generates a final intra predictor by performing a weighted sum of two intra predictors. In this case, when performing the weighted sum, the two intra predictors are blended based on a bisection line that performs a geometric block division for any type of block division. That is, the predictor generator can generate a final intra predictor from two intra predictors by performing a blending process that performs a weighted sum differently for each pixel in the block.
[0122] Meanwhile, when performing a different weighted sum for each pixel in a block based on a straight line, the sum of weights applied to pixels at the same position in two intra predictors is 1. In this case, the set including the weights is {0, 1, 2, 3, 4, 5, 6, 7, 8}, and when the scaling value is taken into account, the set is {0, 1 / 8, 2 / 8, 3 / 8, 4 / 8, 5 / 8, 6 / 8, 7 / 8, 1}. For example, if the weight of the first intra predictor at the (x, y) pixel position of the current block is 1 (1 / 8 when the scaling value is taken into account), the weight of the second intra predictor is 7 (7 / 8 when the scaling value is taken into account).
[0123] In the example of FIG. 8, the weighting value represented by an integer for the last intra predictor represents the weighting value for the first intra predictor.
[0124] Also, the bisection line represents a boundary where the magnitude between the weighted value of the first intra predictor and the weighted value of the second intra predictor is changed. For example, in the example of FIG. 8, for pixels included in area A centered on the line, the weighted value of the first intra predictor is equal to or greater than the weighted value of the second intra predictor. Also, for pixels included in area B centered on the reference line, the weighted value of the second intra predictor is equal to or greater than the weighted value of the first intra predictor.
[0125] Hereinafter, the predictor with a larger weight in each region is called the main predictor. Such a main predictor is determined by considering the reference sample used for intra prediction. In the case of the A region illustrated in Figure 8, the first intra predictor is set as the main predictor because it is closer to the left reference sample than the upper reference sample.
[0126] 9a and 9b are exemplary diagrams showing a line dividing a block in two according to one embodiment of the present disclosure.
[0127] For a block to be coded / decoded according to a geometric intra prediction mode, the geometric division form is based on a line representing a bisection of the block. Information on such a line includes an index distanceIdx representing a distance from the center of the block to the line, and an index angleIdx representing an angle of a line segment perpendicular to the line. The index indicating the angle of the line segment perpendicular to the line is set as illustrated in FIG. 9a. Furthermore, 64 geometric block division forms according to such angles and distances are set as illustrated in FIG. 9b.
[0128] The 64 geometric partition types are signaled using the intra_gim_partition_idx syntax, which is an index indicating the geometric partition type, as shown in Table 3.
[0129] [Table 3]
[0130] The index distanceIdx derived from the example of Fig. 9b is a value excluding the size of the current block. Therefore, the actual distance between a pixel in the current block and a line is calculated using the size information of the current block, the index angleIdx indicating an angle, and the index distanceIdx indicating a distance. Here, the actual distance is a value expressed in pixel units.
[0131] Meanwhile, weights for each pixel in the current block are calculated using the actual distance. For example, for a pixel in the current block, the greater the actual distance between the pixel and the line, the greater the weight of the main predictor is, and the greater the weight of the remaining predictors is. For pixels located on the line, the two predictors use weights having the same value. In this case, the sum of the weights of the two predictors for one pixel is maintained at 1.
[0132] Hereinafter, an intra prediction method using the geometric intra prediction mode will be described with reference to the diagrams of FIGS.
[0133] FIG. 10 is a flowchart illustrating an intra prediction method performed by a video encoding device according to an embodiment of the present disclosure.
[0134] The video encoding apparatus determines a geometric intra prediction flag (S1000). Here, the geometric intra prediction flag intra_gim_flag indicates whether to use a geometric intra prediction mode for a current block. As described above, the video encoding apparatus determines whether to use the geometric intra prediction flag in terms of optimizing bit rate and distortion.
[0135] The video encoding apparatus encodes the geometric intra prediction flag (S1002).
[0136] The video encoding apparatus checks the geometric intra prediction flag (S1004).
[0137] If the geometric intra prediction flag is true, the video encoder performs the following steps.
[0138] The video encoding apparatus determines a geometric partition information index (S1006). Here, the geometric partition information index intra_gim_partition_idx indicates a geometric partition type applied to the current block. That is, the geometric partition information index indexes information on a line that divides the current block into two.
[0139] The video encoding apparatus generates a list including intra-prediction modes for intra-prediction of the current block (S1008), where the list is an MPM list, or the list is a list including all intra-prediction modes.
[0140] The video encoding apparatus determines a first intra prediction mode from the viewpoint of optimizing the encoding rate (S1010).
[0141] The video encoding apparatus determines a first intra-prediction mode index from the list for the first intra-prediction mode (S1012). The first intra-prediction mode index intra_gim_idx0 indexes the first intra-prediction mode. For example, if the MPM list does not include the first intra-prediction mode, the first intra-prediction mode index is determined from a list including all intra-prediction modes.
[0142] The video encoding apparatus generates a first intra predictor of the current block using pixels spatially adjacent to the current block based on a first intra prediction mode (S1014).
[0143] The video encoding apparatus removes the first intra-prediction mode from the list and rearranges the list (S1016).
[0144] The video encoding apparatus determines the second intra prediction mode in terms of optimizing the encoding rate (S1018).
[0145] The video encoding apparatus determines a second intra-prediction mode index from the reordered list for the second intra-prediction mode (S1020). The second intra-prediction mode index intra_gim_idx1 indexes the second intra-prediction mode. For example, if the reordered MPM list does not include the second intra-prediction mode, the second intra-prediction mode index is determined from a list including all intra-prediction modes.
[0146] The video encoding apparatus generates a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode (S1022).
[0147] The video encoding apparatus obtains weights using the geometric partition information index (S1024), where the weights include a first weight for the first intra predictor and a second weight for the second intra predictor.
[0148] The line information according to the geometric division information index includes an index distanceIdx indicating the distance from the center of the block to the line, and an index angleIdx indicating the angle of a line segment perpendicular to the line. The actual distance between a pixel in the current block and the line is calculated using the size information of the current block, the index angleIdx indicating the angle, and the index distanceIdx indicating the distance. Then, a weight is calculated for the pixel in the current block based on the actual distance.
[0149] The video encoding apparatus generates a final intra predictor for the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weighting value (S1026).
[0150] The video encoding apparatus encodes the geometric partitioning information index, the first intra-prediction mode index, and the second intra-prediction mode index (S1028).
[0151] If the geometric intra prediction flag is false, geometric intra prediction is omitted for the current block, and the video encoding apparatus performs intra prediction for the current block using another intra prediction mode.
[0152] FIG. 11 is a flowchart illustrating an intra prediction method performed by a video decoding apparatus according to an embodiment of the present disclosure.
[0153] The video decoding apparatus decodes a geometric intra prediction flag from a bitstream (S1100). Here, the geometric intra prediction flag intra_gim_flag indicates whether to use a geometric intra prediction mode for a current block. As described above, the video encoding apparatus determines whether to use the geometric intra prediction flag from the perspective of optimizing bitrate distortion.
[0154] The video decoding apparatus checks the geometric intra prediction flag (S1102).
[0155] If the geometric intra prediction flag is true, the video decoder performs the following steps.
[0156] The video decoding apparatus decodes a geometric partition information index, a first intra prediction mode index, and a second intra prediction mode index from the bitstream (S1104). Here, the geometric partition information index intra_gim_partition_idx indicates a geometric partition type applied to the current block. That is, the geometric partition information index indexes information on a line that divides the current block into two. The first intra prediction mode index intra_gim_idx0 indexes the first intra prediction mode. Furthermore, the second intra prediction mode index intra_gim_idx1 indexes the second intra prediction mode.
[0157] The video decoding apparatus generates a list including prediction modes for intra prediction of the current block (S1106), where the list is an MPM list, or the list is a list including all intra prediction modes.
[0158] The video decoding apparatus selects a first intra-prediction mode from the list using the first intra-prediction mode index (S1108). For example, if the first intra-prediction mode index does not indicate an intra-prediction mode in the MPM list, the first intra-prediction mode is selected from a list including all intra-prediction modes.
[0159] The video decoding apparatus generates a first intra predictor of a current block using pixels spatially adjacent to the current block based on a first intra prediction mode (S1110).
[0160] The video decoding apparatus rearranges the list by excluding the first intra-prediction mode from the list (S1112).
[0161] The video decoding apparatus selects a second intra-prediction mode from the reordered list using the second intra-prediction mode index (S1114). For example, if the second intra-prediction mode index does not indicate an intra-prediction mode in the reordered MPM list, the second intra-prediction mode is selected from a list including all intra-prediction modes.
[0162] The video decoding apparatus generates a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode (S1116).
[0163] The video decoding apparatus obtains weights using the geometric partition information index (S1118), where the weights include a first weight for the first intra predictor and a second weight for the second intra predictor.
[0164] The line information according to the geometric division information index includes an index distanceIdx indicating the distance from the center of the block to the line, and an index angleIdx indicating the angle of a line segment perpendicular to the line. The actual distance between a pixel in the current block and the line is calculated using the size information of the current block, the index angleIdx indicating the angle, and the index distanceIdx indicating the distance. Then, a weight is calculated for the pixel in the current block based on the actual distance.
[0165] The video decoding apparatus generates a final intra predictor of the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weight value (S1120).
[0166] If the geometric intra prediction flag is false, the geometric intra prediction for the current block is omitted, and the video decoding apparatus performs intra prediction for the current block using another intra prediction mode.
[0167] In the flow charts / timing diagrams of the present specification, each process is described as being executed sequentially, but this is merely an exemplary 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 the embodiment of the present disclosure belongs can apply various modifications and alterations by changing the order described in the flow charts / timing diagrams or executing one or more of the processes in parallel, without departing from the essential characteristics of one embodiment of the present disclosure, and therefore the flow charts / timing diagrams are not limited to a chronological order.
[0168] It should be understood that the exemplary embodiments in the above description may be embodied in many different ways. The functions or methods described in one or more of the examples may be embodied in hardware, software, firmware, or any combination thereof. It should be understood that the functional components described herein are labeled as "units" to specifically emphasize their implementation independence.
[0169] Meanwhile, various functions or methods described in the present embodiment may be embodied in instructions stored in a non-transitory recording medium that can be read and executed by one or more processors. Non-transitory recording media include, for example, any type of recording device in which data is stored in a form readable by a computer system. For example, non-transitory recording media include storage media such as erasable programmable read only memory (EPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSDs).
[0170] The above description is merely an illustrative example of the technical idea of the present embodiment, and various modifications and variations are possible within the scope of the essential characteristics of the present embodiment, if one has ordinary knowledge in the technical field to which the present embodiment belongs. Therefore, the present embodiment is intended to explain, not to 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 rights of the present embodiment.
[0171] CROSS-REFERENCE TO RELATED APPLICATION This patent application claims priority to patent application No. 10-2021-0143104 filed in Korea on October 25, 2021, and patent application No. 10-2022-0111277 filed in Korea on September 2, 2022, the entire contents of which are incorporated by reference into this patent application. [Explanation of symbols]
[0172] 122 Intra prediction unit 542 Intra Prediction Unit 610 First intra-prediction mode selection unit 620 First intra predictor generator 630 Second intra-prediction mode selection unit 640 Second intra-predictor generator 650 Final Intra Predictor Generation Unit
Claims
1. A method for intra predicting a current block performed by a video decoding apparatus, comprising: decoding a geometric intra prediction flag from a bitstream, the geometric intra prediction flag indicating whether to use a geometric intra prediction mode for the current block; and checking the geometric intra prediction flag. Including, If the geometric intra prediction flag is true, decoding a geometric partition information index, a first intra-prediction mode index, and a second intra-prediction mode index from the bitstream; generating a list including a prediction mode for intra prediction of the current block; selecting a first intra-prediction mode from the list using the first intra-prediction mode index; generating a first intra predictor of the current block using pixels spatially adjacent to the current block based on the first intra prediction mode; selecting a second intra-prediction mode from the list using the second intra-prediction mode index; generating a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode; obtaining weight values using the geometric partitioning information index, the weight values including a first weight value for the first intra predictor and a second weight value for a second intra predictor; and generating a final intra predictor for the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weight value; A method comprising:
2. 2. The method of claim 1, further comprising the step of reordering the list to remove the first intra-prediction mode from the list.
3. The step of obtaining the weighted values includes:
2. The method of claim 1, further comprising: obtaining an angle index and a distance index for a line that divides the current block into two using the geometric partition information index; the angle index is an index indicating an angle of a line segment perpendicular to the line, and the distance index is an index indicating a distance from the line.
4. The step of obtaining the weighted values includes:
4. The method of claim 3, further comprising: using the size of the current block, the angle index, and the distance index to calculate, for a pixel within the current block, an actual distance between the pixel and the line.
5. The step of obtaining the weighted values includes:
5. The method of claim 4, further comprising: determining the first weighting value and the second weighting value for pixels in the current block based on the actual distance; and wherein a sum of the weighting value of the first intra predictor and the weighting value of the second intra predictor for each pixel in the current block is 1.
6. The step of obtaining the weighted values includes: The method of claim 3, wherein for each of the regions of the current block bisected by the line, a predictor using a larger weighting value in each region is determined based on a reference sample used for the intra prediction.
7. A method for intra-predicting a current block performed by a video encoding apparatus, comprising: determining a geometric intra prediction flag, the geometric intra prediction flag indicating whether to use a geometric intra prediction mode for the current block; and checking the geometric intra prediction flag. Including, If the geometric intra prediction flag is true, determining a geometric partitioning information index; generating a list including an intra prediction mode for intra prediction of the current block; determining a first intra-prediction mode; determining a first intra-prediction mode index from the list for the first intra-prediction mode; generating a first intra predictor of the current block using pixels spatially adjacent to the current block based on the first intra prediction mode; determining a second intra-prediction mode; determining a second intra-prediction mode index from the list for the second intra-prediction mode; generating a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode; obtaining weight values using the geometric partitioning information index, the weight values including a first weight value for the first intra predictor and a second weight value for the second intra predictor; and generating a final intra predictor for the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weight value; A method comprising:
8. 8. The method of claim 7, further comprising the step of reordering the list to remove the first intra-prediction mode from the list.
9. 8. The method of claim 7, further comprising the step of encoding the geometric intra prediction flag.
10. If the geometric intra prediction flag is true, 10. The method of claim 9, further comprising: encoding the geometric partitioning information index, the first intra-prediction mode index, and the second intra-prediction mode index.
11. A computer-readable recording medium storing a bitstream generated by a video encoding method, the video encoding method comprising: determining a geometric intra prediction flag, the geometric intra prediction flag indicating whether to use a geometric intra prediction mode for the current block; and checking the geometric intra prediction flag. Including, If the geometric intra prediction flag is true, determining a geometric partitioning information index; generating a list including an intra prediction mode for intra prediction of the current block; determining a first intra-prediction mode; determining a first intra-prediction mode index from the list for the first intra-prediction mode; generating a first intra predictor of the current block using pixels spatially adjacent to the current block based on the first intra prediction mode; determining a second intra-prediction mode; determining a second intra-prediction mode index from the list for the second intra-prediction mode; generating a second intra predictor of the current block using pixels spatially adjacent to the current block based on the second intra prediction mode; obtaining weight values using the geometric partitioning information index, the weight values including a first weight value for the first intra predictor and a second weight value for the second intra predictor; and generating a final intra predictor for the current block by performing a weighted sum of the first intra predictor and the second intra predictor using the weight value; A recording medium comprising:
Citation Information
Patent Citations
Video decoding device and video encoding device
JP2022150312A
