Method and apparatus for cross-component prediction for video coding

By introducing multiple linear regression and filter linear models, and using the classification of brightness samples and filter taps, the problem of reducing cross-component redundancy in the existing technology is solved, and the efficiency and accuracy of video encoding and decoding are improved.

CN118679735APending Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380021375.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-07
Filing Date
2023-02-09
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing video encoding and decoding technology has shortcomings in improving encoding and decoding efficiency, especially in reducing cross-component redundancy. The existing cross-component linear model (CCLM) prediction design has shortcomings, making it difficult to make full use of luminance and chroma samples. correlation to improve encoding and decoding performance.

Method used

The multiple linear regression (MLR) model and the filter-based linear model (FLM) are introduced to improve the prediction accuracy of the chroma samples by classifying and linearly weighting the luminance samples and combining filter taps, and in the encoding and decoding process Adapt different filter shapes and number of taps to suit the video block content.

Benefits of technology

It improves the encoding and decoding efficiency of video encoding and decoding, reduces the bit rate through more accurate chroma sample point prediction, and reduces the computational complexity and storage requirements in the encoding and decoding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118679735A_ABST
    Figure CN118679735A_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for decoding video data. The method includes: obtaining a video block and region information from a bitstream, where the region information includes an index indicating a region selected from a set of regions located outside the video block for deriving a multiple linear regression (MLR) model; obtaining a luminance sample value and a chrominance sample value in the region based on the region information; deriving an MLR model using the luma sample values and chroma sample values in the region; predicting each of the chroma sample values in the video block by applying an MLR model to the corresponding luma sample value of the chroma sample; and obtaining a decoded video block using the predicted chroma sample values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001]

[0006] Aspects of the present disclosure generally relate to video coding and compression, and more particularly, to methods and apparatus for cross-component prediction techniques. Background Art

[0002] Various video codec technologies can be used to compress video data. Video coding is performed according to one or more video codec standards. For example, video codec standards include Versatile Video Codec (VVC), High Efficiency Video Codec (H.265 / HEVC), Advanced Video Codec (H.264 / AVC), Moving Picture Experts Group (MPEG) codec, etc. Video codecs typically use prediction methods (e.g., inter-frame prediction, intra-frame prediction, etc.) that exploit redundancy present in video images or sequences. An important goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing the degradation of video quality. Summary of the invention

[0003] A brief summary of one or more aspects of the present disclosure is provided below in order to provide a basic understanding of such aspects. This summary is not an extensive review of all anticipated aspects and is neither intended to identify key or important elements of all aspects nor to describe the scope of any or all aspects. Its sole purpose is to provide some concepts of one or more aspects in a simplified form as a prelude to a more detailed description provided later.

[0004] According to an embodiment, a method for decoding video data is provided, including: obtaining a video block and region information from a bitstream, wherein the region information includes an index indicating a region selected from a set of regions located outside the video block for deriving a multivariate linear regression (MLR) model; obtaining luma sample values ​​and chroma sample values ​​in the region based on the region information; deriving the MLR model using the luma sample values ​​and chroma sample values ​​in the region; predicting each of the chroma sample values ​​in the video block by applying the MLR model to the corresponding luma sample value of the chroma sample; and obtaining a decoded video block using the predicted chroma sample values.

[0005] According to an embodiment, a method for encoding video data is provided, comprising: obtaining a video block from a video frame; obtaining luma sample values ​​and chroma sample values ​​in a region based on region information, wherein the region information comprises an index indicating a region selected from a set of regions located outside the video block for deriving an MLR model; deriving a multivariate linear regression (MLR) model using the luma sample values ​​and chroma sample values ​​in the region; predicting each of the chroma sample values ​​in the video block by applying the MLR model to the corresponding luma sample value of the chroma sample; and obtaining a bitstream including the encoded video block using the predicted chroma sample values ​​and the region information.

[0006] According to an embodiment, a computer system is provided, including: one or more processors; and one or more storage devices storing computer executable instructions, which, when executed, cause the one or more processors to perform the operations of the method of the present disclosure.

[0007] According to an embodiment, a computer program product is provided that stores computer-executable instructions that, when executed, cause one or more processors to perform the operations of the method of the present disclosure.

[0008] According to an embodiment, a computer-readable medium is provided that stores computer-executable instructions that, when executed, cause one or more processors to receive a bitstream and perform the operations of the method of the present disclosure.

[0009] According to an embodiment, a computer-readable medium is provided that stores computer-executable instructions that, when executed, cause one or more processors to perform the operations of the method of the present disclosure and send a bitstream including encoded video information associated with predicted chroma samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The disclosed aspects will hereinafter be described in conjunction with the accompanying drawings, which are provided to illustrate rather than limit the disclosed aspects.

[0011] Figure 1 A block diagram of a general block-based hybrid video coding system is shown.

[0012] Figures 2A to 2E Five split types are shown, including quaternary split, horizontal binary split, vertical binary split, horizontal ternary split, and vertical ternary split.

[0013] Figure 3 Shown is an overall block diagram of a block-based video decoder.

[0014] Figure 4An example of the positions of left and upper samples involved in the CCLM mode and samples of the current block is shown.

[0015] FIG. 5A to FIG. 5C An example of exporting CCLM parameters is shown.

[0016] Figure 6 An example is shown in which adjacent sample points are classified into two groups based on the value Threshold.

[0017] Figure 7 An example of classifying adjacent sample points into two groups based on inflection points is shown.

[0018] Figure 8 An example of four reference lines adjacent to a prediction block is shown.

[0019] Fig.9A and Fig. 9B Schematic diagram showing the correlation between chrominance samples and one or more luma samples.

[0020] Fig.10 An example of using 6 taps in a multiple linear regression (MLR) model according to one or more aspects of the present disclosure is shown.

[0021] Fig.11 Exemplary different filter shapes and / or numbers of taps according to one or more aspects of the present disclosure are shown.

[0022] Fig.12 An example is shown where the FLM may use only the top or left luma and / or chroma samples (extended) for parameter derivation.

[0023] Fig.13 An example is shown where FLM can use different rows for parameter derivation.

[0024] Fig.14 A workflow of a method for decoding video data according to one or more aspects of the present disclosure is shown.

[0025] Fig.15 A workflow of a method for encoding video data according to one or more aspects of the present disclosure is shown.

[0026] Fig.16 A workflow of a method for encoding video data according to one or more aspects of the present disclosure is shown.

[0027] Fig.17 A workflow of a method for decoding video data according to one or more aspects of the present disclosure is shown.

[0028] Fig.18A workflow of a method for decoding video data according to one or more aspects of the present disclosure is shown.

[0029] Fig.19 A workflow of a method for encoding video data according to one or more aspects of the present disclosure is shown.

[0030] Fig. 20 A workflow of a method for decoding video data according to one or more aspects of the present disclosure is shown.

[0031] Fig.21 A workflow of a method for encoding video data according to one or more aspects of the present disclosure is shown.

[0032] Fig. 22 An exemplary computing system in accordance with one or more aspects of the present disclosure is shown. DETAILED DESCRIPTION

[0033] Reference will now be made in detail to specific implementations, examples of which are shown in the accompanying drawings. In the following detailed description, a number of non-limiting specific details are set forth to aid in understanding the subject matter presented herein. However, it will be apparent to one of ordinary skill in the art that various alternatives may be used without departing from the scope of the claims, and that the subject matter may be practiced without these specific details. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein may be implemented on many types of electronic devices having digital video capabilities.

[0034] It should be noted that the terms "first", "second", etc. used in the specification and claims of the present disclosure and the drawings are used to distinguish objects, but not to describe any specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in orders other than those shown in the drawings or described in the present disclosure.

[0035] The first version of the VVC standard was finalized in July 2020, providing approximately 50% bitrate savings or equivalent perceptual quality compared to the previous generation video codec standard HEVC. Although the VVC standard provides significant codec improvements compared to its predecessor, there is evidence that superior codec efficiency can be achieved by leveraging additional codec tools. Recently, the Joint Video Exploration Team (JVET), in collaboration with ITU-TVCEG and ISO / IEC MPEG, began exploring advanced technologies that could significantly enhance the codec efficiency of VVC. In April 2021, a software code base called the Enhanced Compression Model (ECM) was established for future video codec exploration work. The ECM reference software is based on the VVC Test Model (VTM) developed by JVET for VVC, with several existing modules (e.g., intra / inter prediction, transform, loop filter, etc.) further extended and / or improved. In the future, any new codec tools beyond the VVC standard will need to be integrated into the ECM platform and tested using the JVET Common Test Conditions (CTC).

[0036] Like all previous video codec standards, ECM is built on a block-based hybrid video codec framework. Figure 1 A block diagram of a general block-based hybrid video coding system is shown. The input video signal is processed block by block, which is called a coding unit (CU). In ECM-1.0, a CU can be up to 128x128 pixels. However, like VVC, a coding tree unit (CTU) is split into CUs to accommodate different local characteristics based on quadtree / binary tree / ternary tree. In the multi-type tree structure, a CTU is first partitioned according to the quadtree structure. Then, each quadtree leaf node can be further partitioned according to the binary tree and ternary tree structure. As shown in FIG. Figure 2A , 2B As shown in 2C, 2D and 2E, there are five types of splits, four-way split, vertical binary split, horizontal binary split, vertical extended four-way split and horizontal extended four-way split.

[0037] exist Figure 1In the video code, spatial prediction and / or temporal prediction can be performed. Spatial prediction (or "intra-frame prediction") uses pixels from samples of coded neighboring blocks in the same video picture / strip (which are called reference samples) to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in the video signal. Temporal prediction (also known as "inter-frame prediction" or "motion compensated prediction") uses reconstructed pixels from coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in the video signal. The temporal prediction signal for a given CU is usually signaled by one or more motion vectors (MVs), which indicate the amount and direction of motion between the current CU and its temporal reference. Moreover, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture storage the temporal prediction signal comes from. After spatial and / or temporal prediction, the mode decision block in the encoder selects the best prediction mode, for example, based on a rate-distortion optimization method. Then, the prediction block is subtracted from the current video block; and the prediction residual is decorrelated and quantized using a transform. The quantized residual coefficients are inverse quantized and inverse transformed to form a reconstructed residual, which is then added back to the prediction block to form a reconstructed signal for the CU. In addition, loop filtering (such as a deblocking filter, sample adaptive offset (SAO), and adaptive loop filter (ALF)) may be applied to the reconstructed CU before the reconstructed CU is placed in a reference picture store and used to encode future video blocks. In order to form an output video bitstream, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to an entropy coding unit to be further compressed and packaged to form a bitstream. It should be noted that the term "block" or "video block" as used herein may be a portion of a frame or picture, particularly a rectangular (square or non-square) portion. With reference to, for example, HEVC and VVC, a block or a video block may be or correspond to a coding tree unit (CTU), a CU, a prediction unit (PU), or a transform unit (TU) and / or may be or correspond to a corresponding block (e.g., a coding tree block (CTB), a coding block (CB), a prediction block (PB), or a transform block (TB)) and / or a sub-block.

[0038] Figure 3 The overall block diagram of a block-based video decoder is shown. The video bitstream is first entropy decoded at the entropy decoding unit. The coding mode and prediction information are sent to the spatial prediction unit (if intra-frame coding) or the temporal prediction unit (if inter-frame coding) to form a prediction block. The residual transform coefficients are sent to the inverse quantization unit and the inverse transform unit to reconstruct the residual block. The prediction block and the residual block are then added together. The reconstructed block can be further loop filtered before it is stored in the reference picture storage. The reconstructed video in the reference picture storage is then sent out to drive the display device and is used to predict future video blocks.

[0039] The main focus of this disclosure is to further enhance the codec efficiency of the codec tool, Cross Component Linear Model (CCLM), which is applied to cross-component prediction in ECM. In the following, some relevant codec tools in ECM are briefly reviewed. Then, some deficiencies in the existing design of CCLM are discussed. Finally, solutions to improve the existing CCLM prediction design are proposed.

[0040] In order to reduce cross-component redundancy, the cross-component linear model (CCLM) prediction mode is used in VVC. For CCLM, the chroma samples are predicted based on the reconstructed luma samples of the same CU using a linear model as shown below: pred C (i,j)=α·rec L ′(i,j)+ β (1) Among them, pred C (i, j) represents the predicted chroma sample in the CU, and rec L '(i,j) represents the reconstructed brightness sample point rec L (i, j) is the downsampled reconstructed luminance sample of the same CU obtained by downsampling, and α and β are linear model parameters, which are derived from up to four adjacent chrominance samples and their corresponding downsampled luminance samples, which can be called adjacent luminance-chrominance sample pairs. Assuming that the current chrominance block has a size of W×H, W' and H' are obtained as follows: —When LM mode is applied, W'=W, H'=H; —When LM-A mode is applied, W'=W+H; - When the LM-L mode is applied, H'=H+W. Among them, in LM mode, the upper and left samples of the CU are used together to calculate the linear model coefficients; in LM_A mode, only the upper samples of the CU are used to calculate the linear model coefficients; and in LM_L mode, only the left samples of the CU are used to calculate the linear model coefficients.

[0041] If the positions of the upper neighboring samples of the chroma block are denoted as S[0,-1]…S[W'-1,-1], and the positions of the left neighboring samples of the chroma block are denoted as S[-1,0]…S[-1,H'-1], then the positions of the four neighboring chroma samples are selected as follows: - When LM mode is applied and both upper and left adjacent samples are available, select S[W' / 4,-1], S[3*W' / 4,-1], S[-1,H' / 4], S[-1,3*H' / 4] as the positions of the four adjacent chroma samples; —When LM-A mode is applied or only upper samples are available, select S[W' / 8,-1], S[3*W' / 8,-1], S[5*W' / 8,- 1], S[7*W' / 8,-1] as the positions of four adjacent chrominance samples; —When LM-L mode is applied or only left adjacent samples are available, select S[-1,H' / 8], S[-1,3*H' / 8], S[-1, 5*H' / 8], S[-1,7*H' / 8] as the positions of the four adjacent chrominance samples.

[0042] The four adjacent brightness samples corresponding to the selected position are obtained by downsampling operation, and the obtained four adjacent brightness samples are compared four times to find the two larger values: x 0 A and x 1 A and two smaller values ​​x 0 B and x 1 B The chrominance sample values ​​corresponding to the two larger values ​​and the two smaller values ​​are represented as y and 0 A ,y 1 A ,y 0 B and 1 B Then, we derive X as follows a , X b , Y a and Y b : X a =(x 0 A +x 1 A +1)>>1; X b =(x 0 B +x 1 B +1)>>1; Y a =(y 0 A +y 1 A +1)>>1; Y b =(y 0 B +y 1 B +1)>>1(2)

[0043] Finally, the linear model parameters α and β are obtained according to the following equations: β=Y b -α·X b (4)

[0044] Figure 4 Examples of the positions of the left and top samples involved in the CCLM mode and the samples of the current block are shown, including the positions of the left and top samples of the N×N chroma block in the CU and the left and top samples of the 2N×2N luminance block in the CU.

[0045] The division operation for calculating the parameter α is implemented using a lookup table. In order to reduce the amount of memory required to store the table, the diff value (the difference between the maximum and minimum values) and the parameter α are expressed by exponential notation. For example, a 4-bit significant part and an exponent are used to approximate diff. Therefore, the table of 1 / diff is simplified to 16 elements for 16 values ​​of the significant digit as shown below: DivTable[]={0,7,6,5,5,4,4,3,3,2,2,1,1,1,1,0}(5)

[0046] This will have the effect of reducing both the complexity of the calculations and the memory size required to store the necessary tables.

[0047] In addition to the upper template and the left template being used together to calculate the linear model coefficients, they can also be used alternately in the other two LM modes (called LM_A and LM_L modes).

[0048] In LM_T mode, only the upper template is used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to (W+H) samples. In LM_L mode, only the left template is used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to (H+W) samples.

[0049] In LM_LT mode, the left template and the upper template are used to calculate the linear model coefficients.

[0050] To match the chroma sample positions of a 4:2:0 video sequence, two types of downsampling filters are applied to the luma samples to achieve a 2 to 1 downsampling ratio in both the horizontal and vertical directions. The selection of the downsampling filter is specified by the SPS level flag. The two downsampling filters are shown below, corresponding to "Type 0" and "Type 2" content, respectively.

[0051] Note that when the upper reference line is located at a CTU boundary, only one luma line (normal line buffer in intra prediction) is used to generate the downsampled luma samples.

[0052] This parameter calculation is performed as part of the decoding process, rather than just as an encoder search operation. Therefore, no syntax is used to communicate the alpha and beta values ​​to the decoder.

[0053] For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. These modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A and LM_L). The chroma mode signaling and derivation process are shown in Table 1. Chroma mode coding depends directly on the intra prediction mode of the corresponding luminance block. Since separate block partitioning structures for luminance components and chrominance components are enabled in I slices, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited. Table 1 - Chroma prediction modes derived from luma mode when CCLM is enabled

[0054] As shown in Table 2, a single binarization table is used regardless of the value of sps_cclm_enabled_flag. Table 2 - Unified binarization table for chroma prediction mode Value of intra_chroma_pred_mode Binary String 4 00 0 0100 1 0101 2 0110 3 0111 5 10 6 110 7 111

[0055] In Table 2, the first binary indicates whether it is normal mode (0) or LM mode (1). If it is LM mode, the next binary indicates whether it is LM_CHROMA (0) or not LM_CHROMA. If it is not LM_CHROMA, the next binary indicates whether it is LM_L (0) or LM_A (1). For this case, when sps_cclm_enabled_flag is 0, the first binary of the binarization table of the corresponding intra_chroma_pred_mode can be discarded before entropy coding. Or, in other words, the first binary is inferred to be 0 and therefore not encoded. This single binarization table is used for the cases where sps_cclm_enabled_flag is equal to 0 and 1. The first two bins in Table 2 are context coded using their own context model, and the remaining bins are bypass coded.

[0056] In addition, to reduce the luma-chroma latency in the dual tree, when the 64×64 luma coding tree node is split using Not Split (and ISP is not used for 64×64 CU) or QT, the chroma CU in the 32×32 / 32×16 chroma coding tree node is allowed to use CCLM as follows: — If a 32×32 chroma node is not split or split QT split, all chroma CUs in the 32×32 node can use Using CCLM — If a 32×32 chroma node is split using horizontal BT, and the 32×16 child node is not split or uses vertical BT split, all chroma CUs in the 32×16 chroma node can use CCLM

[0057] Under all other luma and chroma coding tree split conditions, CCLM is not allowed for chroma CUs.

[0058] During the development of the ECM, the simplified derivation (min-max approximation) of α and β was removed. Instead, a linear least squares solution was performed between the causal reconstructed data of the downsampled luma samples and the causal chroma samples to derive the model parameters α and β. Among them, Rec C (i) and Rec' L (i) indicates the reconstructed chroma samples and downsampled luminance samples around the target block, and I indicates the total number of samples of neighboring data.

[0059] The LM_A and LM_L models are also called multi-directional linear models (MDLM). Figure 5A An example of the operation of the MDLM is shown when the block content cannot be predicted from the L-shaped reconstruction region. Figure 5B MDLM_L is shown using only the left reconstructed samples to derive CCLM parameters. Figure 5C MDLM_T is shown using only the top reconstructed samples to derive CCLM parameters.

[0060] In ECM-1.0, a multi-model LM (MMLM) prediction mode is proposed. In many MMLM prediction modes, chroma samples are predicted based on the reconstructed luminance samples of the same CU using two linear models as shown below: Among them, pred C (i, j) represents the predicted chroma sample in the CU, and rec L ′(i,j) represents the downsampled reconstructed luma point of the same CU. Threshold is calculated as the average value of adjacent reconstructed luma samples. Figure 6An example of classifying adjacent samples into two groups based on the value Threshold is shown. For each group, parameters αi and βi (where i is equal to 1 and 2, respectively) are derived from the linear relationship between the luminance and chrominance values ​​of two samples, which are the minimum luminance samples A(X) in the group. A , Y A ) and the maximum brightness sample B(X B , Y B ). Here X A , Y A is the x-coordinate value (i.e., brightness value) and y-coordinate value (i.e., chrominance value) of sample point A, and X B , Y B are the x-coordinate value and y-coordinate value for the sample point B. The linear model parameters α and β are obtained according to the following equations. β=y A -αX A (11)

[0061] Such a method is also called the min-max method. The division in the above equation can be avoided and replaced by multiplication and shift.

[0062] For coding blocks with a square shape, the above two equations are directly applied. For non-square coding blocks, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as the shorter boundary.

[0063] In addition to the scenario in which the upper template and the left template are used together to calculate the linear model coefficients, the two templates can also be used alternately in the other two MMLM modes (referred to as MMLM_A mode and MMLM_L mode).

[0064] In MMLM_A mode, only the pixel samples in the upper template are used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to a size of (W+H). In MMLM_L mode, only the pixel samples in the left template are used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to a size of (H+H).

[0065] Note that when the upper reference line is located at a CTU boundary, only one luma line (which is stored in the line buffer for intra prediction) is used to generate the downsampled luma samples.

[0066] For chroma intra mode coding, a total of 11 intra modes are allowed for chroma intra mode coding. These modes include five traditional intra modes and six cross-component linear model modes (CCLM, LM_A, LM_L, MMLM, MMLM_A and MMLM_L). The chroma mode signaling and derivation process are shown in Table 3. Chroma mode coding depends directly on the intra prediction mode of the corresponding luminance block. Since the separate block partitioning structure for luminance component and chrominance component is enabled in I slice, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited. Table 3 - Chroma prediction modes derived from luma mode when MMLM is enabled

[0067] MMLM and LM modes can also be used together in an adaptive manner. For MMLM, the two linear models are as follows: Among them, pred C (i, j) represents the predicted chroma sample in the CU, and rec L ′(i,j) represents the downsampled reconstructed luma sample of the same CU. The Threshold can be simply determined based on the luma average and chroma average values, as well as the luma minimum and maximum values, and the chroma minimum and maximum values. Figure 7 An example of classifying adjacent samples into two groups based on the inflection point T (indicated by the arrow) is shown. 1 and β 1 Derived from the straight line relationship between the luminance and chrominance values ​​from the two sample points, these two sample points are the minimum luminance sample point A(X A , Y A ) and Threshold(X T , Y T ). Linear model parameter α 2 and β 2 Derived from the straight line relationship between the luminance and chrominance values ​​from two sample points, these two sample points are the maximum luminance sample point B(X B , Y B ) and Threshold(X T , Y T ). Here X A , Y A is the x-coordinate value (i.e., brightness value) and y-coordinate value (i.e., chrominance value) of sample point A, and X B , Y B is the x-coordinate value and y-coordinate value of sample point B. For each group of linear model parameters αi and βi (where i is equal to 1 and 2, respectively) is obtained according to the following equation. β 1 =Y A -α 1 X A β 2 =Y T -α 2 X T (13)

[0068] For coding blocks with a square shape, the above equation is directly applied. For non-square coding blocks, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as the shorter boundary.

[0069] In addition to the scenario in which the upper template and the left template are used together to determine the linear model coefficients, the two templates can also be used alternately in the other two MMLM modes (referred to as MMLM_A mode and MMLM_L mode, respectively).

[0070] In MMLM_A mode, only the pixel samples in the upper template are used to calculate the linear model coefficients. To obtain more samples, the upper template is expanded to a size of (W+W). In MMLM_L mode, only the pixel samples in the left template are used to calculate the linear model coefficients. To obtain more samples, the left template is expanded to a size of (H+H).

[0071] Note that when the upper reference line is located at a CTU boundary, only one luma line (which is stored in the line buffer for intra prediction) is used to generate the downsampled luma samples.

[0072] For chroma intra mode coding, there is a conditional check that is used to select LM mode (CCLM, LM_A and LM_L) or multi-model LM mode (MMLM, MMLM_A and MMAM_L). The conditional check is as follows: Among them, BlkSizeThres LM Indicates the minimum block size in LM mode, and BlkSize Thres MM represents the minimum block size of the MMLM mode. The symbol d represents a predetermined threshold. In one example, d may take a value of 0. In another example, d may take a value of 8.

[0073] For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. These modes include five traditional intra modes and three cross-component linear model modes. The chroma mode signaling and derivation process are shown in Table 1. It is worth noting that for a given CU, if the CU is encoded in the linear model mode, then the linear model mode is determined to be the traditional single model LM mode or the MMLM mode based on the above conditional check. Unlike the case shown in Table 3, there is no separate MMLM mode to be signaled. Chroma mode encoding depends directly on the intra prediction mode of the corresponding luminance block. Since separate block partitioning structures for luminance components and chrominance components are enabled in the I slice, one chroma block can correspond to multiple luminance blocks. Therefore, for the chroma DM mode, the intra prediction mode of the corresponding luminance block covering the center position of the current chroma block is directly inherited.

[0074] Multiple reference line (MRL) intra prediction uses more reference lines for intra prediction. Figure 8 In Figure 1, an example of 4 reference lines is depicted, where the samples of segments A and F are not extracted from the reconstructed neighboring samples, but are filled with the closest samples from segments B and E, respectively. HEVC intra picture prediction uses the nearest reference line (i.e., reference line 0). In MRL, 2 additional lines are used (reference line 1 and reference line 3).

[0075] The index of the selected reference row (mrl_idx) is signaled and used to generate intra prediction values. For reference row indices greater than 0, only additional reference row modes are included in the MPM list, and only the mpm index is signaled without the remaining modes. The reference row index is signaled before the intra prediction mode, and if a non-zero reference row index is signaled, the intra prediction mode does not include planar mode.

[0076] MRL is disabled for the first row of a block within a CTU to prevent the use of extended reference samples outside the current CTU row. In addition, PDPC is disabled when additional rows are used. For MRL mode, the derivation of DC values ​​in DC intra prediction mode for non-zero reference row indexes is aligned with the derivation of reference row index 0. MRL requires storage of 3 adjacent luma reference rows with a CTU to generate predictions. The Cross Component Linear Model (CCLM) tool also requires 3 adjacent luma reference rows for its downsampling filter. The definition of MRL using the same 3 rows is consistent with CCLM to reduce the storage requirements of the decoder.

[0077] In the existing CCLM or MMLM design, adjacent reconstructed luma-chroma sample pairs are classified into one or more sample groups based on the value Threshold, which only considers the luma DC value. That is, the luma-chroma sample pairs are classified by considering only the intensity of the luma sample. However, the luma component usually retains rich textures, and the current luma sample can be highly correlated with the adjacent luma samples. Such inter-sample correlation (AC correlation) can be beneficial to the classification of luma-chroma sample pairs and can bring additional coding efficiency.

[0078] In addition, if Fig.9A As shown in , CCLM assumes that a given chrominance sample is only related to the corresponding luma sample (L0.5, which can be regarded as the fractional luma sample position), and uses simple linear regression (SLR) with ordinary least squares (OLS) estimation to predict the given chrominance sample. Fig. 9B As shown in , in a certain video content, a chrominance sample may be simultaneously correlated with multiple luminance samples (AC or DC correlation), so the multiple linear regression (MLR) model can further improve the prediction accuracy.

[0079] The focus of the present disclosure is to improve the coding efficiency of luma and chroma components by introducing a classifier that considers luma edge or AC information. In addition to the existing MMLM with classification, the present disclosure also provides an exemplary proposed classifier. The process of generating linear prediction models for different groups of like points may be similar to CCLM or MMLM (e.g., via least squares or simplified min-max method, etc.), but with different metrics for classification.

[0080] The present disclosure also focuses on deriving a filter-based linear model (FLM) to further improve the prediction accuracy.

[0081] In one aspect of the present disclosure, a first classifier may be used to classify adjacent luma samples (e.g., adjacent luma samples in adjacent luma-chroma sample pairs) and / or luma samples corresponding to chroma samples to be predicted. Luma samples corresponding to chroma samples may be obtained by a downsampling operation to match the position of corresponding chroma samples of a 4:2:0 video sequence. For example, luma samples corresponding to chroma samples may be obtained by performing a downsampling operation on more than one (e.g., 4) reconstructed luma samples corresponding to the chroma samples (e.g., located around the chroma samples). Alternatively, for example, in the case of a 4:4:4 video sequence, luma samples may be obtained directly from reconstructed luma samples. Alternatively, luma samples may be obtained from corresponding reconstructed luma samples in reconstructed luma samples located at corresponding co-located positions of corresponding chroma samples. For example, the luma sample to be classified can be obtained from one of the four reconstructed luma samples corresponding to the chroma samples, and the reconstructed luma sample is located at the upper left position of the four reconstructed luma samples, which can be regarded as the same position of the chroma samples. The first classifier can classify the luma samples according to their edge strength. For example, a direction (e.g., 0 degrees, 45 degrees, or 90 degrees, etc.) can be selected to calculate the edge strength. The direction can be formed by the current sample and the adjacent samples along the direction (e.g., the adjacent samples located 45 degrees to the upper right of the current sample). The edge strength can be calculated by subtracting the adjacent samples from the current sample. The edge strength can be quantized into one of the M segments by M-1 thresholds, and the first classifier can classify the current sample using M categories. Alternatively or additionally, N directions can be formed by the current sample and N adjacent samples along N directions. N edge strengths can be calculated by subtracting N adjacent samples from the current sample, respectively. Similarly, if each of the N edge intensities can be quantized into one of the M segments by M-1 thresholds, the first classifier can classify the current sample point using MN categories.

[0082] In another aspect of the present disclosure, a second classifier may be used to classify based on a local pattern. For example, a current luma sample Y0 may be compared with its N adjacent luma samples Yi. If the value of Y0 is greater than the value of Yi, the score may be increased by 1, otherwise, the score may be decreased by 1. The score may be quantized to form K categories. The second classifier may classify the current sample into one of the K categories. For example, the adjacent luma samples may be obtained from four neighbors located above, to the left, to the right, and below the current luma sample, i.e., there are no diagonal neighbors.

[0083] In one or more aspects of the present disclosure, multiple first classifiers, second classifiers, or different instances of the first classifiers or second classifiers or other classifiers described herein may be combined. For example, the first classifier may be combined with an existing MMLM threshold-based classifier. For another example, an instance A of a first classifier may be combined with another instance B of the first classifier, wherein instance A and instance B adopt different directions (e.g., vertical and horizontal directions, respectively).

[0084] Those skilled in the art will appreciate that, although the existing CCLM design in the VVC standard is used as the basic CCLM method in the description, the proposed cross-component method described in the present disclosure can also be applied to other predictive codecs that adopt a similar design spirit. For example, for chroma from luma (CfL) in the AV1 standard, the proposed method can also be applied by dividing the luma / chroma sample pairs into multiple sample groups.

[0085] Those skilled in the art will recognize that Y / Cb / Cr can also be represented as Y / U / V in the field of video coding. For example, if the video data is in RGB format, the proposed method can also be applied by simply mapping the YUV symbol to GBR.

[0086] Fig.14 1400 for decoding video data according to one or more aspects of the present disclosure. The method 1400 may use any of the classifiers described herein or any combination thereof, and may be implemented by a video decoder (e.g., Figure 3 At step 1410, a video block (e.g., CU) of video data can be obtained from a bitstream. For example, an encoded block of luma samples of video data can be received. The encoded block of luma samples can be decoded to obtain reconstructed luma samples. At step 1420, the luma samples can be classified into one of a plurality of sample groups based on edge information of the luma samples. The luma samples can correspond to chroma samples to be predicted of the video block and can be obtained from one or more of the reconstructed luma samples. For example, a downsampling operation may be performed or not performed on the reconstructed luma samples to obtain the luma samples. For example, classification may be performed by using one of the classifiers described herein or any combination thereof. At step 1430, chroma samples may be predicted by applying one of a plurality of linear prediction models corresponding to the classified sample groups to the luma samples.

[0087] In an embodiment, the classification of luma samples into one of the plurality of sample groups may be further based on the intensity value of the luma samples (eg, combined with an existing MMLM threshold-based classifier).

[0088] In an embodiment, each sample point group in the plurality of sample point groups may correspond to a different linear prediction model in the plurality of linear prediction models.

[0089] In an embodiment, the edge information may include the direction and intensity of the edge of the luma sample.

[0090] In an embodiment, classifying the luma samples into one of the plurality of sample groups may include classifying the luma samples into one of the plurality of sample groups based on the intensity of an edge along one direction of the luma samples or multiple intensities of edges along different directions of the luma samples.

[0091] In an embodiment, the method 1400 may include classifying the adjacent luma samples into a plurality of sample groups based on edge information of the adjacent luma samples surrounding the video block. Each of the plurality of linear prediction models may be derived from adjacent luma samples classified into a sample group corresponding to the linear prediction model and adjacent chroma samples corresponding to the adjacent luma samples classified into a sample group (e.g., adjacent luma-chroma sample pairs, in which the luma samples are classified into a sample group corresponding to the linear prediction model), for example, by a least square method or a simplified minimum-maximum method.

[0092] Fig.15 1 shows a workflow of a method 1500 for encoding video data according to one or more aspects of the present disclosure. The method 1500 may use any one or any combination of the classifiers described herein and may be implemented by a video encoder (e.g., Figure 1 At step 1510, a video block of video data may be obtained from a video frame. For example, a block of luma samples of the video data may be encoded to obtain an encoded block of luma samples. The encoded block of luma samples may be decoded to obtain reconstructed luma samples. At step 1520, luma samples corresponding to chroma samples may be classified into one of a plurality of sample groups based on edge information of the luma samples, wherein the luma samples are obtained from one or more of the reconstructed luma samples. At step 1530, the chroma samples may be predicted by applying one of a plurality of linear prediction models corresponding to the classified sample groups to the luma samples.

[0093] In one or more aspects of the present disclosure, for chroma samples to be predicted, reconstructed co-located and adjacent luma samples can be used to predict chroma samples to capture the inter-sample correlation between co-located luma samples, adjacent luma samples, and chroma samples. The reconstructed luma samples are linearly weighted and combined with an "offset" to generate predicted chroma samples (C: predicted chroma samples, L i: the i-th reconstructed co-located or adjacent brightness sample, α i : filter coefficients, β: offset, N: filter taps). Note that the linear weighting plus the offset value directly forms the predicted chroma samples (which can be low-pass, high-pass adaptively according to the video content), and then added to the residual to form the reconstructed chroma samples.

[0094] For a given CU, the top and left reconstructed luma and chroma samples can be used to derive or train the FLM parameters ((α i ,,β). As with CCLM,α i and β can be derived via OLS. The top and left training samples are collected and a pseudo-inverse matrix is ​​computed on both the encoder and decoder sides to derive the parameters, which are then used to predict the chroma samples in a given CU. Let N denote the number of filter taps applied to the luma samples, M denote the total top and left reconstructed luma and chroma sample pairs used to train the parameters, represents the luma sample with the i-th sample pair and the j-th filter tap, C i Denotes the chrominance sample with the i-th sample pair, the following formula shows the pseudo-inverse matrix A + Export and parameters. Fig.10 An example is shown where N is 6 (6 taps) and M is 8. The top 2 rows and left 3 columns of luma samples and the top 1 row and left 1 column of chroma samples are used to derive or train parameters. b = Ax x=(A T A) -1 A T b=A + b (16)

[0095] Note that it is possible to i Without the offset β to predict the chrominance samples, this can be a subset of the proposed method.

[0096] Please note that although the existing CCLM design in the VVC standard is used as the basic CCLM method in the following description, for those skilled in the art of video coding, the proposed cross-component method described in the present disclosure can also be applied to other predictive coding tools that adopt similar design spirits. For example, for chroma from luma (CfL) in the AV1 standard, the proposed FLM can also be applied by including multiple luma samples into the MLR model.

[0097] Note that Y / Cb / Cr can also be expressed as Y / U / V in the field of video coding.

[0098] Note that, for example, if the video is in RGB format, the proposed FLM can also be applied by simply mapping the YUV symbols to GBR in the following paragraphs.

[0099] Note that the drawings in this disclosure can be combined with all examples mentioned in this disclosure.

[0100] Fig.16 The workflow of a method 1600 for encoding video data according to one or more aspects of the present disclosure is shown. At step 1610, a video block (e.g., a CU including a luma block and / or a chroma block) may be obtained from a video frame. At step 1620, a region used to derive a multivariate linear regression (MLR) model may be determined. For example, the region may include one or more columns on the left and / or one or more rows on the top of the reconstructed chroma samples and luma samples adjacent to the chroma block and its co-located luma block, such as Fig.10 As shown in , the left 3 columns and top 2 rows adjacent to the co-located luma block reconstruct the luma samples, and the left 1 column and top 1 row adjacent to the chroma block reconstruct the chroma samples.

[0101] At step 1630, the luma sample values ​​and chroma sample values ​​in the region may be obtained. For example, the reconstructed luma sample values ​​and the reconstructed chroma sample values ​​in the region may be directly used without any modification, such as downsampling.

[0102] At step 1640, the luma sample values ​​and chroma sample values ​​in the region may be used to derive an MLR model. The MLR model may include at least two coefficients α i and an offset β. For example, one can derive i and an MLR model with an offset β to predict a chrominance sample using six luma samples and an offset. The derivation of the MLR model may include pseudo-inverse matrix calculation and normal equations, and derive the scalar β, A + The rightmost column in must be set to 1.

[0103] At step 1650, each of the chroma samples in the video block may be predicted by applying the MLR model to the corresponding luma sample of the chroma sample. Fig.10 The corresponding luma sample of the chroma sample 0′) shown in FIG. 1 may include the co-located luma sample of the chroma sample (eg, Fig.10 ). For example, the values ​​of the reconstructed co-located luma samples may be used directly without any modification, such as downsampling.

[0104] The predicted chroma samples may be used to obtain an encoded video block at step 1660. For example, the encoded video block may be included in a bitstream for transmission or for storage.

[0105] Fig.17 A workflow of a method 1700 for decoding video data according to one or more aspects of the present disclosure is shown. At step 1710, a video block (e.g., CU) may be obtained from a bitstream. At step 1720, a region used to derive a multiple linear regression (MLR) model may be determined. At step 1730, luma sample values ​​and chroma sample values ​​in the region may be obtained. At step 1740, the MLR model may be derived using the luma sample values ​​and chroma sample values ​​in the region. At step 1750, each chroma sample in the chroma samples in the video block may be predicted by applying the MLR model to the corresponding luma sample of the chroma sample. At step 1760, a decoded video block may be obtained using the predicted chroma samples.

[0106] To further improve the encoding and decoding performance, additional designs can be used in FLM prediction. Fig.10 As shown in , a 6-tap luma filter is used for FLM prediction. However, although the multi-tap filter can adapt well to the training data (e.g., top and left adjacent reconstructed luma samples and chroma samples), in some cases, the training data cannot capture all the characteristics of the test data, which may lead to overfitting and may not predict the test data well (i.e., the chroma block samples to be predicted). In addition, different filter shapes can adapt well to different video block contents, resulting in more accurate predictions.

[0107] To address this issue, the filter shape and the number of filter taps may be predefined or signaled or switched in a sequence parameter set (SPS), an adaptation parameter set (APS), a picture parameter set (PPS), a picture header (PH), a slice header (SH), a region, a CTU, a CU, a sub-block, or a sample level. A set of filter shape candidates may be predefined, and the selection of a set of filter shape candidates may be signaled or switched in an SPS, APS, PPS, PH, SH, region, CTU, CU, sub-block, or sample level. Different components (e.g., U and V) may have different filter switch controls. For example, a set of filter shape candidates may be predefined (e.g., indicated by indices 0 to 5), and a filter shape (1, 2) may represent a 2-tap luminance filter, a filter shape (1, 2, 4) may represent a 3-tap luminance filter, and so on. Fig.10As shown in . The filter shape selection for the U component and the V component can be switched in the PH or in the CU or CTU level. Note that as described herein, the N-tap can represent an N-tap with or without an offset β. An example is given as follows.

[0108] In one aspect of the present disclosure, different chroma types and / or color formats may have different predefined filter shapes and / or taps. For example, a predefined filter shape (1, 2, 4, 5) may be used for 4:2:0 type-0, a predefined filter shape (0, 1, 2, 4, 7) may be used for 4:2:0 type-2, and a predefined filter shape (1, 4) may be used for 4:2:2, and a predefined filter shape (0, 1, 2, 3, 4, 5) may be used for 4:4:4, as Fig.11 as shown in .

[0109] In another aspect of the present disclosure, unavailable luma and chroma samples used to derive the MLR model may be filled from available reconstructed samples. Fig.11 , then for the CU located at the left picture boundary, the left column including sample (0, 3) is unavailable (beyond the picture boundary), so sample (0, 3) is repeatedly padded from sample (1, 4) to apply the 6-tap filter. Note that the padding process can be applied to both the training data (top and left adjacent reconstructed luma and chroma samples) and the test data (luma and chroma samples in the CU).

[0110] Fig.18A workflow of a method 1800 for decoding video data according to one or more aspects of the present disclosure is shown. At step 1810, a video block (e.g., a CU including a luminance block and / or a chrominance block) and filter shape information may be obtained from a bitstream. The filter shape information may indicate the shape of a filter and / or the number of filter taps used to derive an MLR model and apply MLR. For example, the filter shape information may be signaled at a sequence parameter set (SPS), an adaptation parameter set (APS), a picture parameter set (PPS), a picture header (PH), a slice header (SH), a region, a coding tree unit (CTU), a coding unit (CU), a sub-block, or a sample level. The filter shape information may include an index of a filter shape candidate among a plurality of filter shape candidates to indicate which filter shape candidate among a plurality of filter shape candidates to be used. A plurality of filter shape candidates may be predefined and may have different filter shapes and / or different numbers of filter taps, for example, a filter shape (1, 2) with 2 taps, a filter shape (1, 2, 4) with 3 taps, and a filter shape (0, 1, 2, 3, 4, 5) with 6 taps, etc. Fig.10 and Fig.11 as shown in .

[0111] At step 1820, a region for deriving a multiple linear regression (MLR) model may be determined. For example, the region may include one or more left columns and / or one or more top rows of reconstructed chroma samples and luma samples adjacent to the chroma block and its co-located luma block, such as Fig.10 As shown in , the left 3 columns and top 2 rows adjacent to the co-located luminance block reconstruct the luminance samples and the left 1 column and top 1 row adjacent to the chrominance block reconstruct the chrominance samples; or as Fig.11 As shown in , the left 3 columns and top 3 rows adjacent to the co-located luma block reconstruct the luma samples, and the left 1 column and top 1 row adjacent to the chroma block reconstruct the chroma samples, and so on.

[0112] At step 1830, the luma sample values ​​and chroma sample values ​​in the region may be obtained. If some samples in the region are not available, padding may be used. For example, padding may be performed by repeating available sample values ​​in the region. For other examples, padding may be performed by inserting predefined values ​​(e.g., 0 or 1), etc.

[0113] At step 1840, the MLR model may be derived based on the filter shape information using the luma sample values ​​and chroma sample values ​​in the region. Fig.11 The filter shapes (0, 1, 2, 3, 4, 5) shown in derive the MLR model to have six coefficients, or it can be based on Fig.11The filter shapes (0, 1, 2, 3, 4, 5, 6, 7, 8) shown in derive the MLR model to have nine coefficients, where the luma sample value and chroma sample value pairs used to train or derive the MLR model can be determined from the region based on the filter shape information.

[0114] At step 1850, each of the chroma samples in the video block may be predicted by applying the MLR model to the corresponding luma sample of the chroma sample based on the filter shape information. The corresponding luma sample used to predict the current chroma sample may be determined based on the filter shape information. If some of the corresponding luma samples are unavailable, padding may be used. For example, padding may be performed by repeating the values ​​of available luma samples in the corresponding luma samples for unavailable luma samples.

[0115] At step 1860, the decoded video block may be obtained using the predicted chroma samples. Different chroma components (e.g., U and V) of the video block may be predicted based on the same or different filter shape information. For example, in the above example, the chroma component U may be predicted using the MLR model based on the filter shape information indicating index 3 or 4, and the chroma component V may be predicted using the MLR model based on the filter shape information indicating index 0, 1, 2, 3, 4, or 5. Different color formats may have different filter information indicating different filter shapes and / or numbers of filter taps.

[0116] Fig.19The workflow of a method 1900 for encoding video data according to one or more aspects of the present disclosure is shown. At step 1910, a video block (e.g., a CU including a luma block and / or a chroma block) may be obtained from a video frame. At step 1920, a region for deriving a multivariate linear regression (MLR) model may be determined. At step 1930, luma sample values ​​and chroma sample values ​​in the region may be obtained. At step 1940, the luma sample values ​​and chroma sample values ​​in the region may be used to derive the MLR model based on filter shape information. For example, the encoder may select which filter shape candidate of a plurality of filter shape candidates to use in FLM prediction to derive the MLR model. The plurality of filter shape candidates may have different filter shapes and / or different numbers of filter taps. At step 1950, each chroma sample in the chroma samples in the video block may be predicted based on the filter shape information by applying the MLR model to the corresponding luma sample of the chroma sample. At step 1960, a bitstream including an encoded video block may be obtained using the predicted chroma samples and the filter shape information. For example, in a bitstream, the filter shape information may be signaled at a sequence parameter set (SPS), an adaptation parameter set (APS), a picture parameter set (PPS), a picture header (PH), a slice header (SH), a region, a coding tree unit (CTU), a coding unit (CU), a sub-block, or a sample level. The filter shape information may be carried via a syntax indicating an index of a filter shape candidate selected from a plurality of filter shape candidates. In one example, a separate index may be used to indicate different filter shape candidates selected from a plurality of filter shape candidates for different chroma components or for different color formats. In another example, a single index may be used to indicate the same filter shape candidate selected from a plurality of filter shape candidates for different chroma components. Additionally or alternatively, the filter shape information may be signaled at the same or different levels (e.g., SPS, APS, PPS, PH, SH, region, CTU, CU, sub-block, or sample) for different chroma components.

[0117] As mentioned above, the MLR model (linear equation) must be derived at both the encoder and the decoder. According to one or more aspects of the present disclosure, several methods are proposed to derive the pseudo-inverse matrix A + , or directly solve the linear equation. Other known methods can also be applied, such as Newton's method, Cayley-Hamilton method, and https: / / en.wikipedia.org / wiki / Invertible_matrix The characteristic decomposition mentioned in .

[0118] In this disclosure, for simplicity, A + It can be represented as A -1The proposed method is as follows: 1. Solve A by transposing the adjoint matrix (adjA), closed form, and analytical solution -1 : The following shows a general form of nxn, a 2x2 case, and a 3x3 case. If FLM uses 3x3, then 2 scales plus 1 offset need to be solved. In this section, b = Ax, x = (A T A) -1 A T b=A + b represents A -1 b By removing the jth row and the ith column, we get the (n-1)x(n-1) submatrix 2. Gauss-Jordan Elimination The linear equations can be solved using Gauss-Jordan elimination by augmenting the matrix [A In] and a series of elementary row operations to obtain the row-reduced echelon form [I|X]. 2x2 and 3x3 examples are shown below. 3. Cholesky decomposition To solve Ax=b, A can first be decomposed by the Cholesky-Crout algorithm to obtain an upper triangular matrix and a lower triangular matrix, and one forward substitution plus one backward substitution can be applied serially to obtain the solution. A 3x3 example is shown below.

[0119] In addition to the above examples, some cases require special handling. For example, if some cases cause the linear equations to be unable to be solved, default values ​​can be used to fill in the chrominance prediction values. The default values ​​can be predefined, or signaled or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level, for example, when 1<<(bitDepth-1) or meanC-meanL (average chrominance / luminance values ​​from a subset of available or FLM reconstructed neighboring regions) is predefined.

[0120] The following example shows the situation when the matrix A cannot be solved, and the default prediction value can be assigned to the entire current block: 1. Solved by closed form (analytic, transposed adjoint matrix), but A is singular (i.e., detA = 0); 2. Solve by Cholesky decomposition, but A cannot be Cholesky decomposed, g jj <REG_SQR, where REG_SQR is a small value and can be predefined or signaled or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level.

[0121] Fig.10 Illustrate a typical case of deriving FLM parameters using the top 2 and / or left 3 luminance rows and the top 1 and / or left 1 chrominance row. However, as mentioned above, due to different block contents and the reconstruction quality of different adjacent samples, using different regions for parameter derivation can bring coding and decoding benefits. Several methods for selecting the region for parameter derivation application are proposed below: 1. Similar to MDLM, FLM derivation may use only the top or left luminance and / or chrominance samples to derive parameters. Whether to use FLM, FLM_L or FLM_T can be predefined or signaled or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. Assuming the current chrominance block has a size of W×H, then W’ and H’ are obtained as follows: — When applying the FLM mode, W’ = W, H’ = H; — When applying the FLM_T mode, W’ = W + We; where We represents the extended top luminance / chrominance samples; — When applying the FLM_L mode, H’ = H + He, where He represents the extended left luminance / chrominance samples. The number of extended luminance / chrominance samples (We, He) can be predefined or signaled or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. For example, predefined (We, He) = (H, W) for VVC CCLM, or (W, H) for ECM CCLM. Unavailable (We, He) luminance / chrominance samples can be filled by repeating the nearest (horizontal, vertical) luminance / chrominance samples. Fig.12 Illustrations of FLM_L and FLM_T (e.g., at 4 taps). When applying FLM_L or FLM_T, only H’ or W’ luminance / chrominance samples are used for parameter derivation respectively. 2. Similar to MRL, different row indices can be predefined or signaled or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level to indicate the selected luminance and / or chrominance sample pairs for rows. This may benefit from the different reconstruction qualities of different row samples. Fig.13 It is shown that (similar to MRL) FLM can use different rows for parameter derivation (e.g., at 4 taps). For example, FLM can use light blue / light yellow luma and / or chroma samples of index 1. 3. Expand the CCLM region and extract the top N and / or left M rows for parameter derivation. Fig.13 It is shown that all dark blue, light blue and dark yellow, light yellow areas can be used simultaneously. Using a larger area (data) for training may produce a more robust MLR model.

[0122] Fig. 20 A workflow of a method 2000 for decoding video data according to one or more aspects of the present disclosure is shown.

[0123] At step 2010, a video block and region information may be obtained from a bitstream, wherein the region information includes an index indicating a region selected from a set of regions located outside the video block for deriving a multivariate linear regression (MLR) model. For example, the set of regions may include: a) one or more rows located above the video block; b) one or more rows located to the left of the video block; and c) one or more rows located above the video block and one or more rows located to the left of the video block. When the region is one or more rows located above the video block, the region either has the same width as the video block or is wider than the video block by a first predefined number of samples. When the region is wider than the video block, the first predefined number is the same as the width or height of the video block, and wherein the first predefined number may be signaled or switched in different coding block levels. On the other hand, when the region is one or more rows located to the left of the video block, the region either has the same height as the video block or is longer than the video block by a second predefined number of samples. When the region is longer than the video block, the second predefined number is the same as the width or height of the video block, and wherein the second predefined number may be signaled or switched in different coding block levels. In another embodiment, when the region is one or more rows above the video block and one or more rows to the left of the video block, the region has the same height and width as the video block, or the height and width of the region are twice the height and width of the video block. In yet another embodiment, the region is adjacent to the video block, or is spaced from the video block by one or more rows above and / or to the left of the video block.

[0124] At step 2020, luma sample values ​​and chroma sample values ​​in the region may be obtained based on the region information. In one embodiment, one or more of the luma sample values ​​and chroma sample values ​​in the region are filled, and the filling may be repeated filling from the nearest sample.

[0125] At step 2030, the MLR model may be derived using the luma and chroma sample values ​​in the region. In one embodiment, the MLR model is derived by pseudo-inverse matrix calculation, and wherein the pseudo-inverse matrix is ​​solved by one of the following methods: a) closed form solution; b) Gauss-Jordan elimination; c) Cholesky decomposition; d) Newton's method; e) Cayley-Hamilton method; and f) eigendecomposition, and wherein the method further includes using default values ​​as predicted chroma sample values ​​when the pseudo-inverse matrix cannot be solved.

[0126] At step 2040, each of the chroma sample values ​​in the video block may be predicted by applying the MLR model to the corresponding luma sample value for that chroma sample.

[0127] At step 2050, the predicted chroma sample values ​​may be used to obtain a decoded video block.

[0128] Fig.21 A workflow of a method 2100 for encoding video data according to one or more aspects of the present disclosure is shown.

[0129] At step 2110, a video block may be obtained from a video frame.

[0130] At step 2120, luma sample values ​​and chroma sample values ​​in the region may be obtained based on the region information, wherein the region information includes an index indicating a region selected from a set of regions located outside the video block for deriving the MLR model.

[0131] At step 2130, a multiple linear regression (MLR) model may be derived using the luma sample values ​​and chroma sample values ​​in the region. For example, the set of regions may include: a) one or more rows above the video block; b) one or more rows to the left of the video block; and c) one or more rows above the video block and one or more rows to the left of the video block. When the region is one or more rows above the video block, the region either has the same width as the video block or is wider than the video block by a first predefined number of samples. When the region is wider than the video block, the first predefined number is the same as the width or height of the video block, and wherein the first predefined number may be signaled or switched in different coding block levels. On the other hand, when the region is one or more rows to the left of the video block, the region either has the same height as the video block or is longer than the video block by a second predefined number of samples. When the region is longer than the video block, the second predefined number is the same as the width or height of the video block, and wherein the second predefined number may be signaled or switched in different coding block levels. In another embodiment, when the region is one or more rows above the video block and one or more rows to the left of the video block, the region has the same height and width as the video block, or the height and width of the region are twice the height and width of the video block. In yet another embodiment, the region is adjacent to the video block, or is spaced from the video block by one or more rows above and / or to the left of the video block. In one embodiment, the MLR model is derived by pseudo-inverse matrix calculation, and wherein the pseudo-inverse matrix is ​​solved by one of the following methods: a) closed form solution; b) Gauss-Jordan elimination; c) Cholesky decomposition; d) Newton's method; e) Cayley-Hamilton method; and f) eigendecomposition, and wherein the method further includes using a default value as the predicted chroma sample value when the pseudo-inverse matrix cannot be solved.

[0132] At step 2140, each of the chroma sample values ​​in the video block may be predicted by applying the MLR model to the corresponding luma sample value of the chroma sample. In one embodiment, one or more of the luma and chroma sample values ​​in the region are padded, and wherein the padded may be repeated padded from the nearest sample.

[0133] At step 2150, the predicted chroma sample values ​​and the region information may be used to obtain a bitstream including an encoded video block.

[0134] The corresponding syntax for FLM prediction is defined as follows. FLC: Fixed Length Code TU: Truncated Unary Code EGk: Exponential-Golomb code of order k, where k can be fixed or signaled / switched in SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. SVLC: Signed EG0 UVLC: Unsigned EG0

[0135] Note that the binarization of each syntax element may be changed.

[0136] Fig. 22 An exemplary computing system 2200 according to one or more aspects of the present disclosure is shown. The computing system 2200 may include at least one processor 2210. The computing system 2200 may also include at least one storage device 2220. The storage device 2220 may store computer executable instructions that, when executed, cause the processor 2210 to perform the steps of the above method. The processor 2210 may be a general-purpose processor, or may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, a combination of one or more microprocessors and a DSP core, or any other such configuration. The storage device 2220 may store input data, output data, data generated by the processor 2210, and / or instructions executed by the processor 2210.

[0137] It should be understood that the storage device 2220 may store computer-executable instructions that, when executed, cause the processor 2210 to perform any operations according to the embodiments of the present disclosure.

[0138] Embodiments of the present disclosure may be embodied in a computer-readable medium, such as a non-transitory computer-readable medium. The non-transitory computer-readable medium may include instructions that, when executed, cause one or more processors to perform any operation according to an embodiment of the present disclosure. For example, the instructions, when executed, may cause one or more processors to receive a bitstream and perform a decoding operation as described above. For another example, the instructions, when executed, may cause one or more processors to perform an encoding operation and send a bitstream including the encoded video information associated with the predicted chroma samples as described above.

[0139] It should be understood that all operations in the above methods are merely exemplary, and the present disclosure is not limited to any operations in the methods or the order of these operations, and should encompass all other equivalents under the same or similar concepts.

[0140] It should also be understood that all modules in the above method can be implemented in various ways. These modules can be implemented as hardware, software or a combination thereof. In addition, any module in these modules can be further divided into submodules or combined together in function.

[0141] The previous description is provided to enable any person skilled in the art to implement the various aspects described herein. Various modifications to these aspects will be apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents of the elements of the various aspects described throughout this disclosure that are known or will be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be covered by the claims.

Claims

1. A method for decoding video data, include: Obtaining a video block and region information from a bitstream, wherein the region information includes an index indicating a region selected from a set of regions located outside the video block for deriving a multivariate linear regression (MLR) model; Obtaining luma sample values ​​and chroma sample values ​​in the region based on the region information; deriving the MLR model using the luma sample values ​​and the chroma sample values ​​in the region; predicting each of the chroma sample values ​​in the video block by applying the MLR model to the chroma sample's corresponding luma sample value; and The predicted chroma sample values ​​are used to obtain a decoded video block.

2. The method according to claim 1, in, The set of regions includes: a) one or more rows above the video block; b) one or more rows to the left of the video block; and c) one or more rows above the video block and one or more rows to the left of the video block.

3. The method according to claim 2, in, When the region is one or more rows located above the video block, the region either has the same width as the video block or is wider than the video block by a first predefined number of samples.

4. The method according to claim 3, in, The first predefined number is the same as the width or height of the video block, and wherein the first predefined number can be signaled or switched in different coding block levels.

5. The method according to claim 2, in, When the region is one or more rows located to the left of the video block, the region either has the same height as the video block or is longer than the video block by a second predefined number of samples.

6. The method according to claim 5, in, The second predefined number is the same as the width or height of the video block, and wherein the second predefined number can be signaled or switched in different coding block levels.

7. The method according to claim 2, in, When the region is one or more rows above the video block and one or more rows to the left of the video block, the region has the same height and width as the video block, or the height and width of the region are twice the height and width of the video block.

8. The method according to claim 1, in, The region is adjacent to the video block, or is spaced apart from the video block by one or more rows above and / or to the left of the video block.

9. The method according to claim 1, in, One or more of the luma sample values ​​and chroma sample values ​​in the region are filled, and wherein the filling can be repeated filling from a nearest sample.

10. The method according to claim 1, in, The MLR model is derived by pseudo-inverse matrix calculation, and wherein the pseudo-inverse matrix is ​​solved by one of the following: a) closed-form solution; b) Gauss-Jordan elimination; c) Cholesky decomposition; d) Newton's method; e) Cayley-Hamilton method; and f) eigendecomposition, and wherein the method also includes using a default value as the predicted chroma sample value when the pseudo-inverse matrix cannot be solved.

11. A method for encoding video data, include: Obtain video blocks from video frames; obtaining luma sample values ​​and chroma sample values ​​in a region based on region information, wherein the region information includes an index indicating the region selected from a set of regions located outside the video block for deriving the MLR model; deriving a multiple linear regression (MLR) model using the luma sample values ​​and the chroma sample values ​​in the region; predicting each of the chroma sample values ​​in the video block by applying the MLR model to the chroma sample's corresponding luma sample value; and A bitstream including an encoded video block is obtained using the predicted chroma sample values ​​and the region information.

12. The method according to claim 11, in, The set of regions includes: a) one or more rows above the video block; b) one or more rows to the left of the video block; and c) one or more rows above the video block and one or more rows to the left of the video block.

13. The method according to claim 12, in, When the region is one or more rows located above the video block, the region either has the same width as the video block or is wider than the video block by a first predefined number of samples.

14. The method according to claim 13, in, The first predefined number is the same as the width or height of the video block, and wherein the first predefined number can be signaled or switched in different coding block levels.

15. The method according to claim 12, in, When the region is one or more rows located to the left of the video block, the region either has the same height as the video block or is longer than the video block by a second predefined number of samples.

16. The method according to claim 15, in, The second predefined number is the same as the width or height of the video block, and wherein the second predefined number can be signaled or switched in different coding block levels.

17. The method according to claim 12, in, When the region is one or more rows above the video block and one or more rows to the left of the video block, the region has the same height and width as the video block, or the height and width of the region are twice the height and width of the video block.

18. The method according to claim 11, in, The region is adjacent to the video block, or is spaced apart from the video block by one or more rows above and / or to the left of the video block.

19. The method according to claim 11, in, One or more of the luma sample values ​​and chroma sample values ​​in the region are filled, and wherein the filling can be repeated filling from a nearest sample.

20. The method according to claim 11, in, The MLR model is derived by pseudo-inverse matrix calculation, and wherein the pseudo-inverse matrix is ​​solved by one of the following: a) closed-form solution; b) Gauss-Jordan elimination; c) Cholesky decomposition; d) Newton's method; e) Cayley-Hamilton method; and f) eigendecomposition, and wherein the method also includes using a default value as the predicted chroma sample value when the pseudo-inverse matrix cannot be solved.

21. A computer system, include: one or more processors; as well as One or more storage devices storing computer-executable instructions which, when executed, cause the one or more processors to perform the operations of the method according to one of claims 1-20.

22. A computer program product storing computer executable instructions which, when executed, cause one or more processors to perform the operations of the method according to any one of claims 1-20.

23. A computer-readable medium storing computer-executable instructions which, when executed, cause one or more processors to receive a bitstream and perform the operations of the method of one of claims 1-10 based on the bitstream.

24. A computer-readable medium storing computer-executable instructions that, when executed, cause one or more processors to perform the operations of the method of one of claims 11-20 and to send a bitstream including encoded video information associated with the predicted chroma samples.