Methods and apparatus of propagated cross-component prediction models for video coding improvement of inter chroma

EP4771859A1Pending Publication Date: 2026-07-08MEDIATEK INC

Patent Information

Authority / Receiving Office
EP · EP
Patent Type
Applications
Current Assignee / Owner
MEDIATEK INC
Filing Date
2024-08-29
Publication Date
2026-07-08

AI Technical Summary

Technical Problem

Existing video coding systems face challenges in efficiently predicting chroma components, particularly in inter prediction modes, due to cross-component redundancy and limitations in current cross-component models.

Method used

The proposed method involves using propagated cross-component prediction models, where target Cross Component Model (CCM) information is copied and stored from reference blocks, allowing subsequent blocks to access and utilize this information for improved chroma prediction.

Benefits of technology

This approach enhances the prediction accuracy of chroma components by leveraging propagated CCM information, leading to improved coding performance and efficiency in video coding systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024115441_06032025_PF_FP_ABST
    Figure CN2024115441_06032025_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for coding colour pictures or video using propagated cross-component prediction models are disclosed. According to this method, the current block is encoded or decoded using a non-CCP (Cross Component Prediction) mode. One or more reference blocks pointed by one or more motion vectors, or one or more block vectors of the current block are determined. If said one or more reference blocks have target CCM (Cross Component Model) information, the target CCM information is copied and stored at the current block, wherein the target CCM information stored at the current block is accessed by one or more subsequent blocks for CCP process.
Need to check novelty before this filing date? Find Prior Art

Description

METHODS AND APPARATUS OF PROPAGATED CROSS-COMPONENT PREDICTION MODELS FOR VIDEO CODING IMPROVEMENT OF INTER CHROMA

[0001] CROSS REFERENCE TO RELATED APPLICATIONS

[0002] The present invention is a non-Provisional Application of and claims priority to U.S. Provisional Patent Application No. 63 / 579,532, filed on August 30, 2023 and U.S. Provisional Patent Application No. 63 / 589,354, filed on October 11, 2023. The U.S. Provisional Patent Applications are hereby incorporated by reference in their entireties.FIELD OF THE INVENTION

[0003] The present invention relates to video coding system using coding tools including one or more cross component models related modes. In particular, the present invention relates to coding for a chroma component using cross-component model propagation.

[0004] BACKGROUND AND RELATED ART

[0005] Versatile video coding (VVC) is the latest international video coding standard developed by the Joint Video Experts Team (JVET) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) . The standard has been published as an ISO standard: ISO / IEC 23090-3: 2021, Information technology -Coded representation of immersive media -Part 3: Versatile video coding, published Feb. 2021. VVC is developed based on its predecessor HEVC (High Efficiency Video Coding) by adding more coding tools to improve coding efficiency and also to handle various types of video sources including 3-dimensional (3D) video signals.

[0006] Fig. 1A illustrates an exemplary adaptive Inter / Intra video encoding system incorporating loop processing. For Intra Prediction 110, the prediction data is derived based on previously coded video data in the current picture. For Inter Prediction 112, Motion Estimation (ME) is performed at the encoder side and Motion Compensation (MC) is performed based on the result of ME to provide prediction data derived from other picture (s) and motion data. Switch 114 selects Intra Prediction 110 or Inter Prediction 112 and the selected prediction data is supplied to Adder 116 to form prediction errors, also called residues. The prediction error is then processed by Transform (T) 118 followed by Quantization (Q) 120. The transformed and quantized residues are then coded by Entropy Encoder 122 to be included in a video bitstream corresponding to the compressed video data. The bitstream associated with the transform coefficients is then packed with side information such as motion and coding modes associated with Intra prediction and Inter prediction, and other information such as parameters associated with loop filters applied to underlying image area. The side information associated with Intra Prediction 110, Inter prediction 112 and in-loop filter 130, is provided to Entropy Encoder 122 as shown in Fig. 1A. When an Inter-prediction mode is used, a reference picture or  pictures have to be reconstructed at the encoder end as well. Consequently, the transformed and quantized residues are processed by Inverse Quantization (IQ) 124 and Inverse Transformation (IT) 126 to recover the residues. The residues are then added back to prediction data 136 at Reconstruction (REC) 128 to reconstruct video data. The reconstructed video data may be stored in Reference Picture Buffer 134 and used for prediction of other frames.

[0007] As shown in Fig. 1A, incoming video data undergoes a series of processing in the encoding system. The reconstructed video data from REC 128 may be subject to various impairments due to a series of processing. Accordingly, in-loop filter 130 is often applied to the reconstructed video data before the reconstructed video data are stored in the Reference Picture Buffer 134 in order to improve video quality. For example, deblocking filter (DF) , Sample Adaptive Offset (SAO) and Adaptive Loop Filter (ALF) may be used. The loop filter information may need to be incorporated in the bitstream so that a decoder can properly recover the required information. Therefore, loop filter information is also provided to Entropy Encoder 122 for incorporation into the bitstream. In Fig. 1A, Loop filter 130 is applied to the reconstructed video before the reconstructed samples are stored in the reference picture buffer 134. The system in Fig. 1A is intended to illustrate an exemplary structure of a typical video encoder. It may correspond to the High Efficiency Video Coding (HEVC) system, VP8, VP9, H. 264 or VVC.

[0008] The decoder, as shown in Fig. 1B, can use similar or portion of the same functional blocks as the encoder except for Transform 118 and Quantization 120 since the decoder only needs Inverse Quantization 124 and Inverse Transform 126. Instead of Entropy Encoder 122, the decoder uses an Entropy Decoder 140 to decode the video bitstream into quantized transform coefficients and needed coding information (e.g. ILPF information, Intra prediction information and Inter prediction information) . The Intra prediction 150 at the decoder side does not need to perform the mode search. Instead, the decoder only needs to generate Intra prediction according to Intra prediction information received from the Entropy Decoder 140. Furthermore, for Inter prediction, the decoder only needs to perform motion compensation (MC 152) according to Inter prediction information received from the Entropy Decoder 140 without the need for motion estimation.

[0009] Cross-Component Linear Model (CCLM) Prediction

[0010] To reduce the cross-component redundancy, a cross-component linear model (CCLM) prediction mode is used in the VVC, for which the chroma samples are predicted based on the reconstructed luma samples of the same CU by using a linear model as follows: predC (i, j) =α·recL′ (i, j) + β     (1)

[0011] where predC (i, j) represents the predicted chroma samples in a CU and recL′ (i, j) represents the downsampled reconstructed luma samples of the same CU.

[0012] The CCLM parameters (α and β) are derived with at most four neighbouring chroma  samples and their corresponding down-sampled luma samples. Suppose the current chroma block dimensions are W×H, then W’ and H’ are set as

[0013] – W’ = W, H’ = H when LM_LA mode is applied;

[0014] – W’ =W + H when LM_Amode is applied;

[0015] – H’ = H + W when LM_L mode is applied.

[0016] In this disclosure, the term {LM_LA, LM_A, LM_L} and {CCLM_LT, CCLM_T, CCLM_L} are used interchangeably.

[0017] Multiple Model CCLM (MMLM)

[0018] In the JEM (J. Chen, E. Alshina, G. J. Sullivan, J. -R. Ohm, and J. Boyce, Algorithm Description of Joint Exploration Test Model 7, document JVET-G1001, ITU-T / ISO / IEC Joint Video Exploration Team (JVET) , Jul. 2017) , multiple model CCLM mode (MMLM) is proposed for using two models for predicting the chroma samples from the luma samples for the whole CU. In MMLM, neighbouring luma samples and neighbouring chroma samples of the current block are classified into two groups, each group is used as a training set to derive a linear model (i.e., a particular α and β are derived for a particular group) . Furthermore, the samples of the current luma block are also classified based on the same rule for the classification of neighbouring luma samples.

[0019] Threshold is calculated as the average value of the neighbouring reconstructed luma samples. A neighbouring sample with Rec′L [x, y] <= Threshold is classified into group 1; while a neighbouring sample with Rec′L [x, y] > Threshold is classified into group 2.

[0020] Convolutional Cross-Component Model (CCCM)

[0021] In CCCM, a convolutional model is applied to improve the chroma prediction performance. The convolutional model has 7-tap filter consisting of a 5-tap plus sign shape spatial component, a nonlinear term and a bias term.

[0022] Output of the filter is calculated as a convolution between the filter coefficients and the input values and clipped to the range of valid chroma samples.

[0023] The filter coefficients are calculated by minimising MSE between predicted and reconstructed chroma samples in the reference area.

[0024] Gradient Linear Model (GLM)

[0025] Compared with the CCLM, instead of down-sampled luma values, the GLM utilizes luma sample gradients to derive the linear model. Specifically, when the GLM is applied, the input to the CCLM process, i.e., the down-sampled luma samples L, are replaced by luma sample gradients G. The other parts of the CCLM (e.g., parameter derivation, prediction sample linear transform) are kept unchanged: C=α·G+β.

[0026] Fig. 2 shows the 16 gradient filters (210-240) for the gradient calculation.

[0027] Intra Block Copy

[0028] Intra block copy (IBC) is a tool adopted in HEVC extensions on screen content coding (SCC) . It is well known that it significantly improves the coding efficiency of screen content materials. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed at the encoder to find the optimal block vector (or motion vector) for each CU. Here, a block vector is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture. The luma block vector of an IBC-coded CU is in integer precision. The chroma block vector is rounded to integer precision as well. When combined with AMVR, the IBC mode can switch between 1-pel and 4-pel motion vector precisions. An IBC-coded CU is treated as the third prediction mode other than intra or inter prediction modes. The IBC mode is applicable to the CUs with both width and height smaller than or equal to 64 luma samples.

[0029] CCCM Using Non-Down-sampled Luma Samples

[0030] CCCM mode with 3x2 filter using non-down-sampled luma samples is used, which consists of 6-tap spatial terms, four nonlinear terms and a bias term. The 6-tap spatial terms correspond to 6 neighbouring luma samples (i.e., L0, L1, …, L5) around the chroma sample (i.e., C) to be predicted, the four non-linear terms are derived from the samples L0, L1, L2, and L3 as shown as follows, where the locations of the non-down-sampled luma samples are shown in Fig. 3.

[0031] Cross-Component Residual Model (CCRM)

[0032] As in JVET-AD0108 (Pekka Astola, et. al., “AHG12: Cross-component residual model (CCRM) for inter prediction” , Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29, 30th Meeting, Antalya, TR, 21–28 April 2023, Document: JVET-AD0108) , it is to apply cross-component residual model (CCRM) to predict chroma samples from reconstructed luma samples when the block uses inter prediction or intra block copy (IBC) . Fig. 4 illustrates the decoder side of the method. The cross-component filters are derived using the prediction signals of luma and chroma. The derived filters are applied to the reconstructed luma signal producing the final chroma predictions. Filter coefficients are derived in step 420 for each chroma component separately using the prediction signals (i.e., predY 410, and predCb 412 or predCr 414) and the filters are applied to the reconstructed luma signal in step 430 as shown in Fig. 4. The reconstructed luma signal is formed by combining the luma prediction (PredY) 410 and residual luma signal (resY) using an adder 422. After applying the filters, the step 430 generates filtered-predicted Cb 440 and filtered-predicted  Cr 450. The reconstructed Cb signal is formed by combining the filtered-predicted Cb 440 and residual Cb signal (i.e., resCb) using an adder 442. Similarly, the reconstructed Cr signal is formed by combining the filtered-predicted Cr 450 and residual Cr signal (i.e., resCr) using an adder 452.

[0033] Chroma DM mode

[0034] For Chroma DM mode, the intra prediction mode of the corresponding (collocated) luma block covering the centre position of the current chroma block is directly inherited.

[0035] Decoder Side Intra Mode derivation (DIMD)

[0036] To implicitly derive the intra prediction modes of a block, a texture gradient analysis is performed at both encoder and decoder sides. This process starts with an empty Histogram of Gradient (HoG) with 65 entries, corresponding to the 65 angular modes. Amplitudes of these entries are determined during the texture gradient analysis.

[0037] Intra Template Matching

[0038] Intra template matching prediction (IntraTMP) is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L-shaped template matches the current template. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current frame and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side.

[0039] Extended Merge Prediction

[0040] In VVC, the merge candidate list is constructed by including the following five types of candidates in order:

[0041] 1) Spatial MVP from spatial neighbour CUs

[0042] 2) Temporal MVP from collocated CUs

[0043] 3) History-based MVP from an FIFO table

[0044] 4) Pairwise average MVP

[0045] 5) Zero MVs.

[0046] Spatial Candidate Derivation

[0047] The derivation of spatial merge candidates in VVC is the same as that in HEVC except that the positions of first two merge candidates are swapped. A maximum of four merge candidates (B0, A0, B1 and A1) for current CU 510 are selected among candidates located in the positions depicted in Fig. 5. The order of derivation is B0, A0, B1, A1 and B2. Position B2 is considered only when one or more neighbouring CU of positions B0, A0, B1, A1 are not available (e.g. belonging to another slice or tile) or is intra coded. After candidate at position A0 is added, the addition of the remaining candidates is subject to a redundancy check which ensures that candidates with the same motion information are excluded from the list so that coding efficiency is improved.

[0048] In addition to the above-mentioned spatial candidates, the non-adjacent spatial merge  candidates as in JVET-L0399 (Yu Han, et al., “CE4.4.6: Improvement on Merge / Skip mode” , Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 12th Meeting: Macao, CN, 3–12 Oct. 2018, Document: JVET-L0399) are inserted after the TMVP in the regular merge candidate list. An example of the pattern of spatial merge candidates is shown in Fig. 6. The distances between non-adjacent spatial candidates and current coding block are based on the width and height of current coding block. The line buffer restriction is not applied.

[0049] Temporal Candidates Derivation

[0050] In this step, only one candidate is added to the list. Particularly, in the derivation of this temporal merge candidate for a current CU 710, a scaled motion vector is derived based on the co-located CU 720 belonging to the collocated reference picture as shown in Fig. 7. The reference picture list and the reference index to be used for the derivation of the co-located CU is explicitly signalled in the slice header. The scaled motion vector 730 for the temporal merge candidate is obtained as illustrated by the dotted line in Fig. 7, which is scaled from the motion vector 740 of the co-located CU using the POC (Picture Order Count) distances, tb and td, where tb is defined to be the POC difference between the reference picture of the current picture and the current picture and td is defined to be the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of temporal merge candidate is set equal to zero.

[0051] The position for the temporal candidate is selected between candidates C0 and C1, as depicted in Fig. 8. If CU at position C0 is not available, is intra coded, or is outside of the current row of CTUs, position C1 is used. Otherwise, position C0 is used in the derivation of the temporal merge candidate.

[0052] History-based Merge Candidates Derivation

[0053] The history-based MVP (HMVP) merge candidates are added to merge list after the spatial MVP and TMVP. In this method, the motion information of a previously coded block is stored in a table and used as MVP for the current CU. The table with multiple HMVP candidates is maintained during the encoding / decoding process. The table is reset (emptied) when a new CTU row is encountered. Whenever there is a non-subblock inter-coded CU, the associated motion information is added to the last entry of the table as a new HMVP candidate.

[0054] Pair-wise Average Merge Candidates Derivation

[0055] Pairwise average candidates are generated by averaging predefined pairs of candidates in the existing merge candidate list, using the first two merge candidates. The first merge candidate is defined as p0Cand and the second merge candidate can be defined as p1Cand, respectively. The averaged motion vectors are calculated according to the availability of the motion vector of p0Cand and p1Cand separately for each reference list. If both motion vectors are available in one list, these two motion vectors are averaged even when they point to different reference pictures, and its reference picture is set to the one of p0Cand; if only one motion vector is available, use the one  directly; if no motion vector is available, keep this list invalid. Also, if the half-pel interpolation filter indices of p0Cand and p1Cand are different, it is set to 0.

[0056] When the merge list is not full after pair-wise average merge candidates are added, the zero MVPs are inserted in the end until the maximum merge candidate number is encountered.

[0057] Local-Boosting Cross-Component Prediction (LB-CCP)

[0058] Prediction samples of MM-CCLM / MM-CCCM can be filtered with neighbouring samples. As shown in Fig. 9, a 3×3 low-pass filter is applied to filter prediction samples generated by MM-CCLM / MM-CCCM. For a sample at a top / left boundary, the filtering window may involve neighbouring reconstructed samples. For inner samples, the filtering window only involves prediction samples, which may be padded. A flag is signalled to indicate whether filtering is applied or not for a block coded with MM-CCLM / MM-CCCM.

[0059] In order to improve the coding performance for a system using cross-component models, methods and apparatus of using propagated cross-component models are disclosed.

[0060] BRIEF SUMMARY OF THE INVENTION

[0061] A method and apparatus for coding colour pictures or video using coding tools including one or more cross component models related modes are disclosed. According to this method, input data associated with a current block comprising a first-colour block and a second-colour block is received, wherein the input data comprise pixel data to be encoded at an encoder side or data associated with the current block to be decoded at a decoder side, and wherein the current block is coded in a non-intra mode. The current block is encoded or decoded using a non-CCP (Cross Component Prediction) mode. One or more reference blocks pointed by one or more motion vectors, or one or more block vectors of the current block are determined. If said one or more reference blocks have target CCM (Cross Component Model) information, the target CCM information at the current block is copied and stored, wherein the target CCM information stored at the current block is accessed by one or more subsequent blocks for CCP process.

[0062] In one embodiment, said one or more block vectors are associated with the current first-colour block or a collocated first-colour block if the current first-colour block or the collocated first-colour block is coded in IBC (Intra Block Copy) or IntraTMP (Intra Template Matching Prediction) mode. In one embodiment, if said one or more reference blocks located according to said one or more block vectors or said one or more motion vectors are not CCP coded, but have first CCM information stored for said one or more reference blocks, the first CCM information stored is used as the target CCM information.

[0063] In one embodiment, if said one or more reference blocks correspond to multiple reference blocks and only one of the multiple reference blocks has first CCM information, the first CCM information is used as the target CCM information. In one embodiment, if multiple reference blocks have first CCM information, the target CCM information is derived by combining  corresponding CCP models associated with all or part of the multiple reference blocks.

[0064] In one embodiment, if multiple reference blocks have first CCM information, the target CCM information is copied from the first CCM information of a target reference block of the multiple reference blocks according to one or more pre-defined rules. In one embodiment, a CCP-coded reference block is selected as the target reference block of the multiple reference blocks. In one embodiment, an intra-coded or inter-coded reference block is selected as the target reference block of the multiple reference blocks. In one embodiment, a shortest-distance reference block to the current block according to a distance measure is selected as the target reference block of the multiple reference blocks. In one embodiment, the distance measure corresponds to Euclidean distance, Manhattan distance, Minkowski distance, horizontal distance, or vertical distance.

[0065] In one embodiment, if multiple reference blocks have first CCM information, the first CCM information of the multiple reference blocks is applied to reconstructed current first-colour block to generate multiple predictions for the current second-colour block. In one embodiment, distortions between reconstructed current second-colour block and the multiple predictions are determined respectively, and a target first CCM information associated with a target prediction having a minimum distortion among the multiple predictions is selected to be copied to the current block.

[0066] In one embodiment, if the current block is not CCP coded and a current slice or picture containing the current block is a non-intra slice or picture, the target CCM information is copied from a collocated block of the current block in a collocated picture. In one embodiment, if POC (Picture Order Count) distance between the collocated picture and a current picture containing the current block is greater than a pre-defined threshold, the target CCM information is not copied from the collocated block of the current block in the collocated picture.BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Fig. 1A illustrates an exemplary adaptive Inter / Intra video coding system incorporating loop processing.

[0068] Fig. 1B illustrates a corresponding decoder for the encoder in Fig. 1A.

[0069] Fig. 2 shows 16 gradient patterns for GLM.

[0070] Fig. 3 illustrates the 6-tap spatial terms corresponding to 6 neighbouring luma samples (i.e., L0, L1, …, L5) around the chroma sample (i.e., C) to be predicted for CCCM mode.

[0071] Fig. 4 shows an exemplary system block diagram for Cross-component residual model (CCRM) .

[0072] Fig. 5 illustrates the 5 neighbouring blocks used for deriving spatial merge candidates for VVC.

[0073] Fig. 6 illustrates an exemplary pattern of the adjacent and non-adjacent spatial merge candidates.

[0074] Fig. 7 illustrates an example of temporal candidate derivation, where a scaled motion  vector is derived according to POC (Picture Order Count) distances.

[0075] Fig. 8 illustrates the positions for the temporal candidate selected between candidates C0 and C1.

[0076] Fig. 9 illustrates the filter on samples of MM-CCLM / MM-CCCM.

[0077] Fig. 10A (Pattern 1) and Fig. 10B (Pattern 2) illustrate two different patterns of non-adjacent spatial neighbouring candidates according to pre-defined positions and a pre-defined order.

[0078] Fig. 11 illustrates an example of CCM information propagation, where the dash-lined blocks (i.e., A, E, G) are coded in cross-component model (e.g., CCLM, MMLM, GLM, CCCM, Chroma Fusion) .

[0079] Fig. 12 illustrates another example of CCM information propagation.

[0080] Fig. 13 illustrates another example of CCM information propagation, where the current block C has block vector available, and its referenced block B has motion vector available. The CCM information of block B is copied from block A.

[0081] Fig. 14A-Fig. 14B illustrate the patterns of the n taps in a window region M x N around / including the position (iL, jL) to derive the sourceTermSet0 (i, j) , where only the centre is used (Fig. 14A) and a 5x5 cross is used (Fig. 14B) .

[0082] Fig. 15 illustrates an example of using Sobel filters to derive the gradient information from the predicted samples and / or reconstructed samples of the source.

[0083] Fig. 16A-Fig. 16B illustrate the patterns of the m taps in a window region M2 x N2 around / including the position (iC, jC) to derive the sourceTermSet1 (i, j) , where only the centre is used (Fig. 16A) and a 5x5 cross is used (Fig. 16B) .

[0084] Fig. 17 illustrates an example of neighbouring spatial regions used as reference regions for weighting setting for self-derived cross-component model.

[0085] Fig. 18 illustrates a flowchart of an exemplary video coding system that incorporates propagated cross-component prediction models according to an embodiment of the present invention.DETAILED DESCRIPTION OF THE INVENTION

[0086] It will be readily understood that the components of the present invention, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following more detailed description of the embodiments of the systems and methods of the present invention, as represented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. References throughout this specification to “one embodiment, ” “an embodiment, ” or similar language mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment.

[0087] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. One skilled in the relevant art will recognize, however, that the invention can be practiced without one or more of the specific details, or with other methods, components, etc. In other instances, well-known structures, or operations are not shown or described in detail to avoid obscuring aspects of the invention. The illustrated embodiments of the invention will be best understood by reference to the drawings, wherein like parts are designated by like numerals throughout. The following description is intended only by way of example, and simply illustrates certain selected embodiments of apparatus and methods that are consistent with the invention as claimed herein.

[0088] In order to improve the coding performance of cross-component prediction, various schemes are disclosed.

[0089] The cross-component information is used to improve prediction accuracy of an inter block. To improve the prediction accuracy of the chroma component of the inter block, the luma information from the corresponding luma component of the current chroma block, and / or the chroma information from the current chroma block, and / or the chroma information from the previous coded chroma component are used.

[0090] - The first scheme is that for a coding unit (under single tree splitting) including luma (Y) and chroma (Cb and / or Cr) components, the prediction for Cb and / or Cr is improved by applying the cross-component models to information (current reconstructed or predicted) from Y.

[0091] - The second scheme is that for a coding unit (under single tree splitting) including luma (Y) and chroma (Cb and / or Cr) components or for a coding unit (under chroma dual tree splitting) including chroma (Cb and / or Cr) components, the prediction for Cr is improved by applying the cross-component models to information (current reconstructed or predicted) from Cb.

[0092] In the following, several embodiments related to the first scheme are proposed to use an inherited cross-component mode for the current chroma block with the following steps: Step (1) building a candidate list (modelList) for the current block where the candidate list includes cross-component models; Step (2) selecting one or more sets of model information in the list; and Step (3) using the model information (similar to intra chroma cross-component mode) to generate one or more hypotheses of predictions for the current chroma component (Cb or Cr) by applying and / or modifying the selected model information to the reconstructed or predicted samples for the corresponding luma component.

[0093] When the selected model information refers to traditional cross-component linear model (s) , the proposed method is called as inter cross-component linear model (inter CCLM) mode. When the selected model information refers to convolutional cross-component model (s) (CCCM)  derived by a regression-based method (e.g. CCCM) , the proposed method is called as inter cross-component convolution model (inter CCCM) mode.

[0094] Moreover, in some embodiments, a self-derived (or re-derived) cross-component mode is proposed and can be added into the candidate list in Step (1) . In some embodiments, the self-derived cross-component mode is not added into the list and a selection of using the proposed inherited mode and / or using the proposed self-derived mode is designed. In some embodiments, the selection of using the proposed inherited mode and / or using the proposed self-derived mode is determined following an explicit rule, an implicit rule, or both. More details are described in the section entitled “IV. Selection of Using the Proposed Inherited Mode and / or Using the Proposed Self-Derived Mode” .

[0095] In one embodiment, the proposed embodiments can also be used for the second scheme by using the previous coded chroma component (Cb) as the luma component in the first scheme.

[0096] Storage and Inheritance of the Model

[0097] In another embodiment, when the current inter block uses the model parameters from the self-derived cross-component mode, the used model parameters can be saved and / or referenced by the following coding blocks. For an example of the self-derived cross-component being CCRM, all or any subset of the model parameters can be saved. In one embodiment, if the following coding block is intra, it is allowed to use the saved model parameters. If the following coding block is inter or any mode-type (e.g., IBC) , it is allowed to use the saved model parameters. In another embodiment, if the following coding block and the current block have different mode-types (e.g., one being an inter block and one being not an inter block) , it is not allowed to use the saved model parameters.

[0098] In another embodiment, when the current inter block uses the inherited cross-component mode, the used model parameters can be saved and / or referenced by the following coding blocks. For an example of the inherited CCCM, all or any subset of the model parameters can be saved. In one embodiment, if the following coding block is intra, it is allowed to use the saved model parameters. If the following coding block is inter or any mode-type (e.g. IBC) , it is allowed to use the saved model parameters. In another embodiment, if the following coding block has different mode-type (e.g., not an inter block) , it is not allowed to use the saved model parameters.

[0099] In another embodiment, when the current inter block uses any cross-component models (e.g. the inherited cross-component model, the self-derived cross-component model, cross-component model used in chroma fusion which means the chroma prediction is based on adding one or more hypotheses of cross-component prediction to one or more existing hypotheses of prediction of non-cross-component prediction, or any combination of the above) , the used model parameters can be saved and / or referenced by the following coding blocks. For an example of the inherited CCCM, all or any subset of the model parameters can be saved. In one embodiment, if the following coding  block is intra, it is allowed to use the saved model parameters. If the following coding block is inter or any mode-type (e.g. IBC) , it is allowed to use the saved model parameters. In another embodiment, if the following coding block has a different mode-type (e.g., not an inter block) , it is not allowed to use the saved model parameters.

[0100] I. Building a Candidate List Including Cross-Component Models

[0101] In one embodiment, when building the merge-like candidate model list (modelList) , one or more sets of the following candidate model information are included. For each candidate in the list, it refers to a candidate model information. The definition of the model information can be found in the section entitled: “V. 1. Inheriting CCM Information” .

[0102] - Spatial model information from spatial neighbour blocks (corresponding to “Spatial MVP from spatial neighbour CUs” for inter)

[0103] - Temporal model information from collocated blocks (corresponding to “Temporal MVP from collocated CUs” for inter)

[0104] - History-based model information from a FIFO table (corresponding to “History-based MVP from a FIFO table” for inter)

[0105] - Pairwise average model information (corresponding to “Pairwise average MVP” for inter)

[0106] - Default model information (corresponding to “Zero MVs” for inter)

[0107] In one sub-embodiment of the candidate type being “spatial model information from spatial neighbour blocks” in the above candidate type list, a valid spatial neighbouring block (s) can be from one of spatial adjacent and non-adjacent neighbours (or any subset of the blocks in a neighbouring search region for the current block) which satisfies a pre-defined condition. For an example of non-adjacent neighbours, the pre-defined condition (e.g., valid / available checking) refers that the non-adjacent neighbour is in the available region of non-adjacent spatial candidates. For example, the pre-defined condition is that the neighbour is coded by a cross-component mode or combining with cross-component mode. The cross-component mode refers to modes such as CCLM, MMLM, CCCM, GLM, the mode with mode information inherited from a merge-like candidate list, MH CCLM, and / or any cross-component mode with syntax belonging cross-component branch (containing many cross-component modes) and not belonging to tradition intra prediction modes) . Combining with cross-component mode refers to modes such as chroma fusion (or named LM assisted Angular / Planar Mode) , inter CCLM, inter CCCM and / or any traditional mode with syntax not belonging to cross-component branch, but using the cross-component information to generate the prediction. In another sub-embodiment, when checking the validation of a neighbouring coding block, a second-round valid checking is further used when the mentioned valid checking (e.g., neighbouring block not being cross-component mode or neighbouring block not using / combining cross-component mode) , the motion vectors and / or block vectors of the neighbouring block can be  used to find the cross-component models. Variations of how to use motion vector and / or block vectors to find the model can reference the description of “Temporal model information from collocated blocks” in the above candidate type list. If the model is found, the second-round valid checking for the neighbouring block is satisfied and the found models can be inserted in the list; otherwise, the neighbouring block is not valid for inserting. When scanning the spatial neighbouring blocks, a candidate is added into the list if the candidate is valid.

[0108] In another sub-embodiment of the candidate type being “Temporal model information from collocated blocks” , in the first case, the collocated block is from the block in the reference picture or the pre-defined collocated picture as inter mode by using the current block position and / or the current block motion, and / or in the second case, the collocated block is from the block in the reference picture or the pre-defined collocated picture as inter mode by using the current block position and / or the neighbouring block motion. In the first case, for example, when the current block is coded by inter prediction mode, the collocated block is referred by the motion information (including the motion vectors and the reference picture indicated by the reference index) of the current block. If the current block is a subblock motion mode (e.g., affine mode) , each subblock in the current block has its own collocated temporal model information. Collocated temporal model information from all or any subset of collocated temporal information that are referred by the different subblock motions (of each subblock) are added into the list. For another example, when the reference picture indicated by the reference index is different from the pre-defined collocated picture, which can be the collocated picture used for temporal motion vector prediction in inter mode or any collocated picture specified in the standard to keep the motion or cross-component model information stored and available for the current block, the temporal information from the reference picture is forbidden to be used. For another example, when the reference picture indicated by the reference index is different from the pre-defined collocated picture, which can be the collocated picture used for temporal motion vector prediction in inter mode or any collocated picture specified in the standard to keep the motion or cross-component model information stored and available for the current block, the motion vector is scaled to refer the pre-defined collocated picture and the scaled motion vector is used to find the collocated block in the collocated picture to get the cross-component model in the collocated block. The scaling process is shown in the section of “Inheriting Temporal Neighbouring Model Parameters” and the section of “Temporal Candidates Derivation” . Some examples are described for the second case. For one example, the temporal model information can be from the collocated block referred by the motion information of the neighbouring blocks for the current block. Similar to the first case, the forbidden method or the scaling method can be used in the second case. If the proposed methods are applied to an IBC block or any mode using block vectors (in the first case, the current block being IBC; in the second case, the neighbouring block being IBC) , block vector information is used as motion vector where the block vector information is determined by signalling and / or template  matching in a pre-defined searching range like intraTMP and / or any implicit or explicit pre-defined rules. More details can be found in the section of “Inheriting Temporal Neighbouring Model Parameters” .

[0109] In another sub-embodiment of the candidate type being “History-based model information” , a history-based table (the FIFO table) is built and stores the model information from the previous coded blocks. The table can be reset as the beginning and / or the end of a CTU, slice, picture, tile, and / or sequence. One or more history-based candidates can be added into the candidate list by the order from the head to tail of the table or from the tail to head of the table.

[0110] In another sub-embodiment of the candidate type being “Pairwise average model information” , the model information of this candidate is derived based on the model information from more than one of the previous candidates in the list. For example, it can average and / or modify the model parameters of more than one candidate as the to-be-applied model parameters. For another example, it can combine more than one prediction as the final prediction, where each of more than one prediction is generated by applying one of models in the candidate list.

[0111] In another sub-embodiment, the default model information is added if the list is not full after inserting all pre-defined candidates. For example, the default model can be CCLM models. The default alpha (or named as α, a, or scaling parameters) are selected from {0, 1 / 8, -1 / 8, 2 / 8, -2 / 8, 3 / 8, -3 / 8, …} , and the beta (or named as β, b, or offset parameter) is based on the selected default alpha, average neighbouring reconstructed luma sample value, and average neighbouring reconstructed chroma (Cb / Cr) sample value.

[0112] In another sub-embodiment, the candidate list for the inter chroma block is unified with the candidate list for intra chroma block and / or can be generated based on the candidate list for intra chroma block by further including inter-specific candidates (e.g., temporal model information referred by the current motion) and / or can be any subset of the candidate list for intra chroma block.

[0113] In another embodiment, when building modelList, one or more self-derived cross-component candidates are included. The self-derived cross-component candidates are described in the section entitled “Self-derived Cross-Component Model” . In another sub-embodiment, the self-derived cross-component candidates are added only when the list does not contain enough inherited candidates. For example, the self-derived candidates are added before the default candidates or treated as the default candidates. In another sub-embodiment, the self-derived cross-component candidates are added in any pre-defined position in the modelList. For example, the position is after the spatial adjacent candidates. For another example, the position is after the spatial non-adjacent candidates. For another example, the position is after all or any subset of temporal candidates.

[0114] After building the list, in one embodiment, the list is reordered as the methods defined in the section “Reordering the Candidates in the List. ”

[0115] II. Signalling of Enabling or Disabling and Selecting One or More Model  Information in the List if Enabled

[0116] In this section, the term “inter CCLM” refers to “inter CCLM or inter CCCM” .

[0117] When not applying the proposed inter CCLM (or inter CCCM) , the prediction of the current block is from the original inter prediction.

[0118] In another embodiment, the choice between applying inter CCLM or not applying inter CCLM depends on signalling.

[0119] In one sub-embodiment, the signalling refers to a coded TU / TB / CU / CB level flag. The flag may or may not depend on context to code. Take the TU / TB flag as an example, the flag is signalled only if the TU / TB’s luma Cbf is non-zero and the enabling flag for the inter mode is true. Take the CU / CB flag as an example, the flag is signalled only if the CU / CB’s luma Cbf is non-zero and the enabling flag for the inter mode is true. The enabling flag for the inter mode means the CU’s predMode is MODE_INTER when the proposed inter CCLM (or inter CCCM) is supported for all inter modes. When the proposed inter CCLM (or inter CCCM) is supported for IBC. The enabling flag for IBC is checked first and the signalling for inter CCLM (or inter CCCM) is coded / decoded in response to the CU’s predMode being MODE_IBC. When the proposed inter CCLM (or inter CCCM) is supported only for CIIP, the enabling flag for CIIP is checked first and the signalling for inter CCLM (or inter CCCM) is coded / decoded in response to the CIIP flag being true. When the proposed inter CCLM (or inter CCCM) is supported only for merge, the merge flag is checked first and the signalling for inter CCLM (or inter CCCM) is coded / decoded in response to the merge flag being true. When the proposed inter CCLM (or inter CCCM) is supported only for AMVP, the merge flag is checked first and the signalling for inter CCLM (or inter CCCM) is coded / decoded in response to the merge flag being false. The proposed inter CCLM (or inter CCCM) can be supported only for any pre-defined subset of merge modes, any pre-defined subset of inter modes, or any pre-defined subset of non-intra modes.

[0120] In another sub-embodiment, when the signalling indicates to apply inter CCLM (or inter CCCM) , additional signalling is used to select one or more models from total candidates. The candidate index is referred as modelIdx in this disclosure. If the modelList containing total candidates (e.g., candidates as described in the section entitled “Building a Candidate List Including Cross-Component Models” , CCLM_LT, CCLM_L, CCLM_T, MMLM_LT, MMLM_L, MMLM_T) , or any subset of candidates are reordered by the methods in the section “Reordering the candidates in the list” , the additional signalling specifies the candidate index in the reordered list. For example, if one LM mode is selected, the LM prediction is generated by the selected one LM. For another example, if more than one LM modes are selected the LM prediction is generated by blending hypotheses of predictions from multiple LM modes.

[0121] In another sub-embodiment, the additional signal is not required and the one or more models are selected according to an implicit rule. For example, the one or more selected models are  implicitly determined or the one or more models used for the current block are determined without signalling modelIdx. For example, the first candidate in the list is used. If the list is reordered by the template cost, then, the first candidate is the candidate with the smallest template cost.

[0122] In another embodiment, original inter prediction (generated by motion compensation) is used for luma and the predictions of chroma components are generated by CCLM and / or any other LM modes.

[0123] In one sub-embodiment, the current CU is viewed as an inter CU, intra CU, or a new type of prediction mode (i.e., neither intra nor inter) .

[0124] In another embodiment, the one or more LM modes (i.e., cross-component modes) which will be used to generate the one or more hypotheses of predictions for LM assisted Angular / Planar Mode / inter CCLM / inter CCCM / MH CCLM are selected from a pre-defined merging candidate list (i.e., modelList) . One modelIdx is signalled to select a candidate from the candidate list (modelList) and the selected candidate is used for the current block. The modelList contains one or more candidates where each candidate refers to a model (or cross-component mode) information. If only one candidate is in the list (i.e., the size of the list being 1) , the modelIdx is not signalled and / or can be inferred as 0 or a default value. In one embodiment, the modelIdx is implicitly determined or the one or more models used for the current block are determined without signalling modelIdx. For example, the first candidate in the list is used. If the list is reordered by the template cost, the first candidate is the candidate with the smallest template cost. For another example, the used candidate / model is implicitly selected from the list by using a pre-defined rule depending on the coding information of the block for the to-be-used candidate. This embodiment is denoted as “noteA” .

[0125] In one embodiment, when building modelList, one or more predefined candidates are added. The pre-defined candidates can include any subset / extension of the following candidates and / or more candidates in embodiment described in “noteA” .

[0126] - CCLM family: CCLM_LT, CCLM_L, CCLM_T

[0127] - MMLM family: MMLM_LT, MMLM_L, MMLM_T

[0128] - CCCM family: CCCM_LT, CCCM_L, CCCM_T

[0129] The above proposed methods can be also applied to IBC blocks or the blocks with any IBC sub-modes (e.g., IBC merge or IBC AMVP or any IBC mode under IBC syntax) . The term “inter” in this invention can be changed to IBC. That is, for chroma components, the block vector prediction can be combined or replaced with cross-component prediction.

[0130] III. Using the Model Information to Generate One or More Hypotheses of Predictions for the Current Chroma Component

[0131] III. 1. Concept

[0132] In one embodiment, prediction or reconstruction-based model is used to generate one hypothesis of prediction for the current chroma component.

[0133] In one sub-embodiment of a prediction based linear model, the derived model parameters are applied to the predicted samples for the first component (Y) to get the predicted samples for the second or third component. P (i, j ) = a ·pred′L (i, j ) + b

[0134] The predicted samples for the first component are down-sampled with the downsampling filters, which may be fixed at one-predefined filter or selected among some candidate filters.

[0135] In another sub-embodiment of a reconstruction based linear model, the derived model parameters are applied to the reconstructed samples for the first component (Y) to get the predicted samples for the second or third component. P (i, j ) = a ·reco′L (i, j ) + b

[0136] The reconstructed samples for the first component are down-sampled with the downsampling filters, which may be fixed at one-predefined filter or selected among some candidate filters.

[0137] Prediction or reconstruction based convolution model is similar to the proposed methods for the prediction or reconstruction based linear model. The main difference is that the model coefficient pattern follows CCCM (not CCLM) and the luma samples may or may not be down-sampled first.

[0138] In another embodiment, multiple hypotheses (MH) of cross-component predictions are blended or multiple models are used to generate a hypothesis of prediction for the current block. Multiple-hypothesis CCLM is proposed to blend the predictions from multiple CCLM methods. The term “CCLM methods” can refer all the cross-component modes. The to-be-blended CCLM methods can be from (but are not limited to) the above mentioned CCLM methods (e.g., CCLM, MMLM, CCCM, GLM, CCRM, …) and / or models defined in the embodiment described in noteA. A weighting scheme is used for blending. More variations of using multiple hypotheses of prediction from cross-component models are defined in the section of “Inheriting Multiple Cross-Component Models” .

[0139] III. 2. CCLM for Inter Block

[0140] The term “CCLM for inter block” can also be named as “inter CCLM” and “CCLM” can be extended to any LM mode (or any cross-component mode) or replaced with any LM mode (or any cross-component mode) . When convolutional cross-component models derived by a regression based method is used, CCLM for inter block can also be named as inter CCCM.

[0141] In one embodiment, for chroma components, in addition to original inter prediction (generated by motion compensation which can be uni-prediction and / or bi-prediction, multiple  hypotheses of prediction from multiple motion candidates which may refer to one or more merge candidates, one or more AMVP candidates, any combination of above, or which can be only uni-prediction) , one or more hypotheses of predictions (generated by CCLM and / or any other LM modes) are used to generate the current prediction.

[0142] In one sub-embodiment, the current prediction is the weighted sum of inter prediction and CCLM prediction.

[0143] In another embodiment, the inter prediction can be generated by any inter mode mentioned above. For example, the inter mode can be regular merge mode. For another example, the inter mode can be CIIP mode. For another example, the inter mode can be GPM or any GPM variations (e.g., GPM intra referring one prediction unit using intra prediction) .

[0144] In another embodiment, inter CCLM is supported only when one or more of the pre-defined inter modes are used for the current block, or inter CCLM is supported when any one (or more than one) of the enabling flag (s) of the pre-defined inter mode is (are) indicated as enabled. The meaning of supporting inter CCLM is that the prediction of the current block can be chosen between applying inter CCLM or not applying inter CCLM.

[0145] When applying inter CCLM, the prediction of the current block is generated by:

[0146] - In one sub-embodiment: blending one or more hypotheses of predictions: (generated by CCLM and / or any other LM modes) with original inter prediction

[0147] ○ Blending the chroma prediction for existing inter mode and the prediction from LM

[0148] ○ Blending: Predfinal = (wInter *PredInter + wLM *PredLM + 2 ) >> 2

[0149] ○ Weighting rule: wInter and wLM, for example,

[0150] ■ If both top and left are intra (or any cross-component mode) , (wInter, wLM) = (1, 3)

[0151] ■ Otherwise, if one of top and left is intra, (wInter, wLM) = (2, 2)

[0152] ■ Otherwise, (wInter, wLM) = (3, 1)

[0153] · For another example, the weighting follows CIIP weighting rules.

[0154] ○ For example, predInter = inter prediction after OBMC (if OBMC is used)

[0155] ○ For another example, predInter = inter prediction before OBMC (OBMC can be applied after blending)

[0156] - In another sub-embodiment: replacing original inter prediction with one or more hypotheses of predictions (generated by CCLM and / or any other cross-component modes)

[0157] For another example, if CCLM mode is used for generating the chroma prediction samples and luma prediction is from an inter coding tool, a flag is used to indicate if the CCLM model used for the chroma prediction is inherited from the CCLM models used in the previous coded blocks  or the CCLM model is from a predetermined CCLM mode. If the CCLM model is inherited from the CCLM models used in the previous coded blocks, an index is used to indicate which model in the list is inherited or modified. Otherwise, a predetermined CCLM mode is used to implicitly derive the CCLM model for the current chroma prediction.

[0158] IV. Selection of Using the Proposed Inherited Mode and / or Using the Proposed Self-Derived Mode

[0159] In one embodiment, a flag can be signalled to indicate / select if the re-derived model is used. If the flag is 0, the cross-component model used to encode the neighbour merge candidate is inherited. If the flag is 1, the re-derived method is used.

[0160] In another embodiment, an implicit rule (not using the additional flag) is used to determine whether to use the re-derived model.

[0161] In another embodiment, if no model can be inherited during building the modelList, or the spatial adjacent / non-adjacent candidates, history candidates, temporal candidates, or all or any subset (e.g., before default candidates) of mentioned candidates in this invention are not available, use the re-derived model.

[0162] In another embodiment, when the proposed inherited method is used. The candidate with the smallest cost (e.g., the first candidate in the modelList) is implicitly selected to generate the cross-component prediction. For another example, an index is signalled to select one or more candidates from the modelList. More details can be found in Section II.

[0163] V. Details of the Cross-Component Mode (Including Model Information) in the Candidate List

[0164] V. 1. Inheriting CCM Information

[0165] In one embodiment, the cross-component model (CCM) information of inherited cross-component model can be stored together with the inherited model parameters. The CCM information can be inherited together with the inherited model parameters. The prediction of the current block can be generated based on the inherited CCM information and inherited model parameters. The CCM information can include, but not limited to, prediction mode (e.g., CCLM, MMLM, CCCM, 2-parameter GLM, 3-parameter GLM (GLM model with luma term) , model index for indicating which model shape is used in the convolutional model, classification threshold for multi-model, information to indicate that non-downsampled samples are used in the convolutional model, down-sampling filter flag (whether to do down-sampling) , down-sampling filtering index when multiple down-sampling filters are used, number of neighbouring lines used to derive the model, types of templates used to derive model, post-filtering flag, and model parameters.

[0166] In one embodiment, a mixed CCCM model consisting of various terms (e.g., spatial term, gradient term, location term, non-linear term and bias term) can be inherited. In addition to storing model parameters, a prediction mode can be stored in the CCM information to indicate that  the inherited model is a mixed CCCM model consisting of various terms. If there are multiple types of mixed CCCM models, a model index can also be stored in the CCM information to indicate which type of mixed CCCM model is inherited. For example, gradient and location based CCCM (GL-CCCM) proposed in JVET-AB0119 (Ramin G. Youvalari, et al., “Non-EE2: Gradient and location based convolutional cross-component model (GL-CCCM) for intra prediction” , Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 28th Meeting, Mainz, DE, 20–28 October 2022, Document: JVET-AB0119) is a mixed CCCM model which consists of one spatial term in the centre position, two gradient terms for the horizontal direction and vertical direction, two location terms X and Y for the relative horizontal location and relative vertical location, one non-linear term and one bias term. A prediction mode can be stored in the CCM information to indicate that the inherited model is a GL-CCCM model.

[0167] In another embodiment, a propagation flag can be stored in the CCM information. This information describes whether the CCM information is copied from a reference block as described in the section, “V. 6. Propagated CCM Information” . As described in Section V. 6, if a block is a CCP coded block, the CCM information of the current block is derived and stored (That is, the CCM information containing the coding information of the current block is stored) . The propagation flag of CCM information for the current block is set to false. If a block is not CCP coded, the CCM information of the current block is derived by copying the CCM information from a reference block. The propagation flag of CCM information for the current block is then set to true.

[0168] In another embodiment, the CCM information can include information to indicate the source of the propagated CCM information. For example, as described in Section V. 6, the reference block from which the CCM information is copied can be a block located by the block vector of the current block, a block located by the motion vector of the current block, or a collocated block of the current block.

[0169] In another embodiment, the CCM information can include information to indicate whether to apply local-boosting (LB-CCP) .

[0170] V. 2. Inheriting Spatial Neighbouring Model Parameters

[0171] In one embodiment, the inherited model parameters can be from a block that is an immediate neighbouring block. The models from blocks at pre-defined positions are added into the candidate list in a pre-defined order. The pre-defined order can be any possible order of the spatial neighbouring block.

[0172] In one embodiment, the pre-defined positions and the pre-defined order can be the same as those of spatial candidates for inter merge mode.

[0173] In one embodiment, the pre-defined positions can be the positions depicted in Fig. 5 (also as in the section “Spatial Candidate Derivation” ) . The pre-defined order can be B0, A0, B1, A1 and B2.

[0174] In one embodiment, assume the position, width and height of the current block are (x, y) , W and H respectively, the pre-defined positions can include positions immediate above the current block, such as (x + W >> 1, y-1) or (x + (W+1) >> 1, y-1) , if W is greater than or equal to a threshold TH. The pre-defined positions can also include positions immediate left to the current blocks, such as (x-1, y+H>>1) or (x-1, y+ (H+1) >>1) , if H is greater than or equal to a threshold TH. TH can be 2, 4, 8, 16, 32, or 64. The pre-defined positions include the positions at the immediate above (W >> 1) or ( (W >> 1) –1) position if W is greater than or equal to TH, and the positions at the immediate left (H >> 1) or ( (H >> 1) –1) position if H is greater than or equal to TH.

[0175] In one embodiment, there is a maximum number of inherited models from spatial neighbours that can be added into the candidate list, and the maximum number is smaller than the number of pre-defined positions.

[0176] V. 3. Inheriting Temporal Neighbouring Model Parameters

[0177] In one embodiment, if the current slice / picture is a non-intra slice / picture, the inherited model parameters can be from the block in the previous coded slices / pictures.

[0178] In one embodiment, the current block position is at (x, y) and the block size is w×h. The inherited model parameters can be from the block at some pre-defined positions of the previous coded slices / picture.

[0179] In one sub-embodiment, the pre-defined positions can be the same as the pre-defined positions of temporal candidates of inter merge mode.

[0180] In one sub-embodiment, the pre-defined positions can be (x+Δx, y+Δy) or (xmid+Δx, ymid+Δy) , where (xmid, ymid) = (x+w / 2, y+h / 2) . The two value sets αx and αy are defined as: αx= {αx1, αx2, αx3, …, αxn} , αxi<αxj if i<j, αy= {αy1, αy2, αy3, …, αyn} , αyi<αyj if i<j.

[0181] All values in αx and αy are positive numbers.

[0182] For example, (Δx, Δy) can be (±αxi×w, ±αyi×h) , (±αxi×w, 0) , (0, ±αyi×h) .

[0183] For example, αx= αy. For example, αx=αy= {1, 2, 3, 4, 5} .

[0184] For example, αx≠ αy. For example, α_x= {1 / 2, 1, 3 / 2, 2, 5 / 2} and αy= {1, 2, 3, 4, 5} .

[0185] In one sub-embodiment, the pre-defined positions (x′, y′) are inside the corresponding area of the current encoding block, i.e., x≤x′<x+w and y≤y′<y+h. The pre-defined positions can be (x, y) , (x+w-1, y) , (x, y+h-1) , (x+w-1, y+h-1) , (x+w / 2, y+h / 2) , (x, y+h / 2) , (x+w / 2, y) .

[0186] In one sub-embodiment, the pre-defined positions (x′, y′) are outside of the  corresponding area of the current encoding block, i.e., x′<x+or x′≥x+w, and y′<y or y′≥y+h. The pre-defined positions can be (x-1, y) , (x, y-1) , (x-1, y-1) , (x+w, y) , (x+w-1, y-1) , (x+w, y-1) , (x, y+h) , (x-1, y+h-1) , (x-1, y+h) , (x+w, y+h-1) , (x+w-1, y+h) , (x+w, y+h) .

[0187] In one embodiment, the models from the positions closer to (x, y) are added into the final merge candidate list first.

[0188] The previous coded picture, from which the inherited parameter model is obtained, is referred to as the collocated picture hereafter.

[0189] In one embodiment, the previous coded picture where the inherited parameter model is from (i.e., the collocated picture) , is one of the pictures in the reference lists.

[0190] In one embodiment, the collocated picture can be the same as the collocated picture of inter merge mode.

[0191] In one embodiment, the collocated picture is the same as the collocated reference picture of TMVP of inter merge mode, as described in section “Temporal Candidates Derivation” . In another embodiment, the collocated picture can be different from the collocated reference picture of TMVP of inter merge mode.

[0192] In one embodiment, the collocated picture is signalled in the picture / slice header. The reference list and the reference index are signalled in the picture / slice header. For example, the collocated picture is selected as L0 [0] . For another example, the collocated picture is selected as L1 [0] .

[0193] In one embodiment, the number of signalled collocated picture can be more than one. For example, the number of signalled collocated picture is 2. The temporal candidates from both collocated pictures can be inherited.

[0194] In one embodiment, the collocated picture is selected as the picture in the reference lists whose POC difference between the respective picture and the current picture is the smallest.

[0195] In another sub-embodiment, the collocated picture is selected as the picture in the reference lists whose QP is larger. In one embodiment, the positions in the previous coded slices / pictures, where the inherited parameter model is from, is determined by the motion vector of a neighbouring block. Let Δx and Δy be the horizontal and vertical displacement determined based on the selected motion vector of the neighbouring block, the current block position is at (x, y) and the block size is w×h. The inherited model parameters can be from the block at position (x’, y’) , where x’ = x + Δx and y’ = y + Δy, or where x’ = x + w / 2 +Δx and y’ = y + h / 2 +Δy.

[0196] V. 4. Inheriting Non-Adjacent Spatial Neighbouring Models

[0197] In one embodiment, the inherited model parameters can be from blocks that are non-adjacent spatial neighbouring blocks. The models from blocks at pre-defined positions are added into the candidate list in a pre-defined order.

[0198] In one sub-embodiment, the pre-defined positions and the pre-defined order are the same as those of non-adjacent spatial neighbouring candidates for inter merge mode.

[0199] In one sub-embodiment, the pre-defined positions and the pre-defined order are as depicted in Fig. 10A and Fig. 10B. The positions of the numbered squares are the pre-defined positions. The number inside each square indicate the pre-defined order. Positions in Pattern 1 (Fig. 10A) is added into the list before positions in Pattern 2 (Fig. 10B) . The distance between each pre-defined positions are proportional to the width and height of the current block.

[0200] In one embodiment, there is a maximum number of inherited models from non-adjacent spatial neighbours that can be added into the candidate list, and the maximum number is smaller than the number of pre-defined positions.

[0201] V. 5. Inheriting Model Parameters from History Table

[0202] In one embodiment, the inherited model parameters can be from a cross-component model history table. The history table stores CCM information of valid previous coded blocks. The valid previous coded block refers to any blocks containing valid CCM information. The cross-component models in the history table can be added into the candidate list according to a pre-defined order. In one embodiment, the adding order of historical candidate can be from the beginning of the table to the end of the table. In another embodiment, the adding order of historical candidate can be from the end of the table to the beginning of the table.

[0203] In one embodiment, one cross-component model history table can be maintained for storing the previous cross-component model (i.e., CCM information) , and the cross-component model history table can be reset at the start of the current picture, current slice, current tile, every M CTU rows or every N CTUs, N and M can be any value greater than 0. In another embodiment, the cross-component model history table can be reset at the end of the current picture, current slice, current tile, current CTU row or current CTU.

[0204] In another embodiment, multiple history table are used for storing different type of cross-component model. For example, the first history table is used for storing single model, and the second history table is used for storing multi-model. For another example, the first history table is used for storing gradient model, and the second history table is used for storing non-gradient model. For another example, the first history table is used for storing simple linear model (e.g., y = ax + b) , and the second history table is used for storing complicated model (e.g., CCCM) .

[0205] In one embodiment, when adding historical candidates from multiple history tables to the candidate list, the adding order can be from the beginning of to the end of a certain table, and then the next history table is added in the same order or in a reversed order.

[0206] V. 6. Propagated CCM Information

[0207] In one embodiment, after encoding / decoding a block, the cross-component model (CCM) information of the current block is derived and stored in the current block. The stored CCM  information can be referenced by the following coding blocks. The following coding blocks can inherit CCM information from the current block. The definition of CCM information is in the section “Inheriting CCM Information” . The stored CCM information can be inherited as, but not limited to, the following types of candidates: spatial candidates (as in the section “Inheriting Spatial Neighbouring Model Parameters” ) , non-adjacent candidates (as in the section “Inheriting Non-Adjacent Spatial Neighbouring Models” ) , temporal candidates (as in the section “Inheriting Temporal Neighbouring Model Parameters” ) , historical candidates (as in the section “Inheriting Model Parameters from History Table” ) .

[0208] In one embodiment, if the current block is not cross-component prediction (CCP) coded (i.e., the block does not use cross-component model, such as the inherited cross-component model, the self-derived cross-component model, cross-component model used in chroma fusion which means the chroma prediction is based on adding one or more hypotheses of cross-component prediction to one or more existing hypotheses of prediction of non-cross-component prediction, or any combination of the above) , and there are block vectors available in the current block, (e.g., the current luma block is coded in IBC or IntraTMP mode, the collocated luma block is coded in IBC or IntraTMP mode) , the CCM information of the current block can be derived by copying the CCM information of the reference block located by the block vector. For example, as shown in Fig. 11, block B is not CCP coded and there are block vectors available at block B. The reference block A is located by the block vector. The CCM information of the reference block A, which uses cross-component model, is copied and stored in block B. In one embodiment, if the reference block located by the block vector is not CCP coded either, but there is CCM information stored in the reference block, the CCM information of the current block can be derived by copying the CCM information stored in the reference block. That is, even when the reference block is not CCP coded, as long as it has valid stored CCM information, the stored CCM information can be referenced by the current block. For example, as shown in Fig. 11, the current block C has block vector available, and its reference block B, which is not CCP coded, has CCM information stored. The CCM information of block B is copied and stored in block C. Since the CCM information stored in block B was copied from block A, the CCM information stored in block C is originally from block A (i.e., the CCM information of block A is propagated to block C) . By only accessing block B, block C can retrieve CCM information from originally from block A. In one embodiment, if the reference block located by the block vector is not CCP coded and does not have CCM information stored, no CCM information is stored for the current block. As described above, the CCM information copied and stored in block B (not coded in a CCP mode) can be used for CCP process by one or more subsequent blocks (e.g. block C) . The CCP process in this disclosure refers to processing related to deriving or refining cross-component prediction using CCM information.

[0209] In one embodiment, the block vectors used to derive the reference block are the block  vectors at the centre of the collocated luma block. In another embodiment, the block vectors used to derive the reference block are the block vectors at the top-left corner of the collocated luma block.

[0210] In one embodiment, when the current block has multiple block vectors available (e.g., the block vector can be bi-directional, the block can have multiple IntraTMP block vectors, or the current chroma block is collocated with multiple luma blocks and more than one of the luma blocks have block vectors) , to derive the CCM information of the current block, if only one of the reference blocks located by the block vectors has CCM information, the CCM information from the reference block which has CCM information is copied to and stored in the current block. For example, as shown in Fig. 11, suppose block F has two block vectors and has two reference blocks G and H. Block G has CCM information and block H does not. The CCM information of block G is copied to and stored in block F.

[0211] For another embodiment, when the current block has multiple block vectors, and more than one of the reference blocks located by the block vectors has CCM information, the CCM information of the current block is derived by combining all or a subset of the CCM models of its reference blocks (as the method mentioned in the section “Inheriting Multiple Cross-Component Models” ) .

[0212] For another embodiment, when the current block has multiple block vectors, and more than one of the reference blocks located by the block vectors has CCM information, one of the reference blocks is selected based on a set of pre-defined rules. The CCM information of the selected reference block is then copied and stored in the current block.

[0213] For one sub-embodiment, the reference block which is CCP coded is selected.

[0214] For one sub-embodiment, the reference block which is intra coded is selected.

[0215] For one sub-embodiment, the reference block which is inter coded is selected.

[0216] For one sub-embodiment, the reference block whose distance to the current block is the smallest is selected. The CCM information of the selected reference block is copied to and stored in the current block. The distance between the reference block and the current block, located at (xr, yr) and (xc, yc) respectively, can be computed by Euclidean distance   (xr, yr) and (xc, yc) can be the top-left, top-right, bottom-left, bottom-right, or center positions of the reference block and the current block. The distance measure can also be Manhattan distance or Minkowski distance.

[0217] For one sub-embodiment, the reference block which has the smallest horizontal distance, |xr -xc|, is selected. The CCM information of the selected reference block is copied to and stored in the current block.

[0218] For another sub-embodiment, the reference block which has the smallest vertical distance, |yr -yc|, is selected. The CCM information of the selected reference block is copied to and stored in in the current block.

[0219] For one sub-embodiment, the CCM information of all reference blocks are applied on the reconstructed luma samples of the current block to generate the prediction of the chroma samples of the current block. The distortion between the prediction and the reconstructed chroma samples is computed. The reference block associated with the smaller distortion is selected.

[0220] For one sub-embodiment, the rules described previously can be combined, and not all the rules described previously need to be applied. For example, the reference block which is CCP coded is selected. If there are more than one CCP coded reference blocks, then the block which has the shortest distance to the current block among the CCP coded reference blocks is selected. If there are more than one CCP coded reference block whose distances to the current block are the smallest, the reference block which has the smallest horizontal distance, |xr -xc|, is selected. For another example, the reference block which is CCP coded is selected. If there are more than one CCP coded reference block, then the block which has the shortest distance to the current block among the CCP coded reference blocks is selected. If there are more than one CCP coded reference block whose distances to the current block are the smallest, the reference block which has smallest vertical distance, |yr -yc|, is selected. The CCM information of the selected reference block is copied to and stored in the current block.

[0221] In one embodiment, if the current block is not CCP coded and there are motion vectors available in the current block (e.g., the current luma block is inter-coded) , the CCM information of the current block can be derived by copying the CCM information of its reference block in a reference picture, located by the motion vectors of the current block. For example, as shown in Fig. 12, block B is not CCP coded and there are motion vectors available at block B. The reference block A is located by the motion vector. The CCM information of the reference block A, which uses cross-component model, is copied and stored in block B. For one embodiment, if the reference block located by the motion vector is also not CCP coded, but there is CCM information stored in the reference block, the CCM information of the current block can be derived by copying the CCM information stored in the reference block. That is, even when the reference block is not CCP coded, as long as it has valid stored CCM information, the stored CCM information can be referenced by the current block. For example, as shown in Fig. 12, the current block C has motion vector available, and its reference block B, which is not CCP coded, has CCM information stored. The CCM information of block B is copied and stored in block C. Since the CCM information stored in block B was copied from block A, the CCM information stored in block C is originally from block A (i.e., the CCM information of block A is propagated to block C) . By only accessing block B, block C can retrieve CCM information from originally from block A. For one embodiment, if the reference block located by the motion vector is not CCP coded and does not have CCM information stored, no CCM information is stored for the current block.

[0222] In one embodiment, the motion vectors used to derive the reference block are the  motion vectors at the centre of the current block. In another embodiment, the motion vectors used to derive the reference block are the motion vectors at the top-left corner of the current block.

[0223] In one embodiment, the motion vectors used to derive the reference block are the MVP of the current block. In another embodiment, the motion vectors used to derive the reference block are the combination of MVP and MVD of the current block.

[0224] For one embodiment, when the current block is inter-coded with bi-directional prediction, to derive the CCM information of the current block, if only one of the reference blocks located by the motion vectors has CCM information, the CCM information from the reference block that has CCM information is copied to and stored in the current block. For example, as shown in Fig. 12, suppose block F is inter-coded with bi-directional prediction. The two reference blocks located by the motion vectors are block G and block H. Block G has stored CCM information and block H does not. The CCM information of block G is copied to and stored in block F.

[0225] For another embodiment, when the current block is inter-coded with bi-directional prediction, and both reference blocks located by the motion vectors has stored CCM information, the CCM information of the current block is derived by combining of all or a subset of the CCM models of its reference blocks (as the method mentioned in the section: “Inheriting Multiple Cross-Component Models” ) .

[0226] For another embodiment, when the current block is inter-coded with bi-directional prediction, and both reference blocks located by the motion vectors have stored CCM information, one of the reference blocks is selected based on a set of pre-defined rules. The CCM information of the selected reference block is then copied and stored in the current block.

[0227] For one sub-embodiment, the reference block which is CCP coded is selected.

[0228] For one sub-embodiment, the reference block which is intra coded is selected.

[0229] For one sub-embodiment, the reference block which is inter coded is selected.

[0230] For one sub-embodiment, the reference block whose reference picture (i.e., the picture the reference block is in) has the smaller POC distance to the current picture is selected. The CCM information of the selected reference block is copied to and stored in the current block. As shown in Fig. 12, block F is inter-coded with bi-directional prediction. The two reference blocks located by the motion vectors are block G and block H. Assume block G and block H both have stored CCM information, and |N1-N2| is smaller than |N3-N2|. Then block G is selected, and the CCM information of block G is copied to and stored in block F.

[0231] For one sub-embodiment, the reference block whose reference picture has the smaller QP difference from the current picture is selected. The CCM information of the selected reference block is copied to and stored in the current block. As shown in Fig. 12, block F is inter-coded with bi-directional prediction. The two reference blocks located by the motion vectors are block G and block H. Assume block G and block H both have stored CCM information. Assume the QPs of the  pictures of POC N1, POC N2 and POC N3 are 27, 32, 33 respectively. Since |33-32| is smaller than |27-32|, block H is selected, and the CCM information of block H is copied to and stored in block F.

[0232] For one sub-embodiment, the reference block whose reference picture has the smaller QP value is selected. For another sub-embodiment, the reference block whose reference picture has the larger QP values is selected.

[0233] For one sub-embodiment, the CCM information of both reference blocks are applied on the reconstructed luma samples of the current block to generate the prediction of the chroma samples of the current block. The distortion between the prediction and the reconstructed chroma samples is computed. The reference block associated with the smaller distortion is selected.

[0234] For one sub-embodiment, the rules described previously can be combined and not all the rules described previously need to be applied. For example, the reference block that is CCP coded is selected. If both blocks are CCP coded, then the block whose reference picture has the smaller POC distance to the current picture is selected. If both blocks are CCP coded and have the same POC distance to the current picture, the reference block whose reference picture has the smaller QP difference from the current picture is selected. If both blocks are CCP coded and have the same POC distance to the current picture, and have the same QP difference from the current picture, then the reference block whose reference picture has the smaller QP value is selected. For another example, the block whose reference picture has the smaller POC distance to the current picture is selected. If both blocks have the same POC distance to the current picture, the reference block whose reference picture has the smaller QP difference from the current picture is selected. If both blocks have the same POC distance to the current picture and have the same QP difference from the current picture, then the reference block whose reference picture has the smaller QP value is selected.

[0235] In one embodiment, if the POC distance between the reference picture located by the motion vector and the current picture is greater than a pre-defined threshold, the motion vector and the reference block are considered unavailable.

[0236] In one embodiment, if the current block is inter-coded or there is a block vector available in the current block, the CCM information of the current block can be derived by copying the CCM information of the reference block located by the motion vector or the block vector. For example, as shown in the Fig. 13, the current block C has block vector available, and its referenced block B has motion vector available. The CCM information of block B is copied from block A. The CCM information of block B is then copied to block C. Hence the CCM information of block A is propagated to the current block C.

[0237] In one embodiment, if the current block is not CCP coded and the current slice / picture is a non-intra slice / picture, the CCM information of the current block can be derived by copying the CCM information of its collocated block in a collocated picture. The definition of collocated picture can be found in the section “Inheriting Temporal Neighbouring Model Parameters” .

[0238] In one sub-embodiment, if the POC distance between the collocated picture and the current picture is greater than a pre-defined threshold, copying and storing the CCM information from the collocated picture will not be performed.

[0239] In one embodiment, when the current block is not CCP coded, the CCM information derivation process is performed after the encoding / decoding of the current picture.

[0240] In one embodiment, when multiple types of propagated CCM information are available for the current block, the propagated CCM information to be stored in the current block is determined based on a set of pre-defined rules. For example, if both the reference block located by the motion vectors and the reference block that is the current block’s collocated block in the collocated picture have valid CCM information, the CCM information of the reference block located by the motion vectors is copied and stored in the current block. For another example, the CCM information of the collocated block is copied and stored in the current block. For another example, the CCM information of the reference block located by the motion vectors is copied and stored in the current block after encoding / decoding a block. After encoding / decoding a picture, the CCM information of the collocated block is copied and stored in the current block (i.e., the CCM information of the reference block located by the motion vectors is replaced) .

[0241] For example, if both the reference block located by the block vectors and the reference block which is the current block’s collocated block in the collocated picture have valid CCM information, the CCM information of the reference block located by the block vectors is copied and stored in the current block. For another example, the CCM information of the collocated block is copied and stored in the current block. For another example, the CCM information of the reference block located by the block vectors is copied and stored in the current block after encoding / decoding a block. After encoding / decoding a picture, the CCM information of the collocated block is copied and stored in the current block (i.e., the CCM information of the reference block located by the block vectors is replaced) .

[0242] V. 7. Inheriting from Fusion Mode

[0243] Fusion mode refers to mode that fuses two predictions to generate the final prediction. In the chroma intra fusion mode, a chroma intra prediction that is not generated using a cross-component prediction (CCP) coding tool (e.g., CCLM, MMLM, CCCM) is fused with another chroma intra prediction generated using a cross-component prediction coding tool. For example, a non-CCLM coded intra prediction and a CCLM coded intra prediction are fused together to obtain the final intra prediction.

[0244] In one embodiment, when inheriting the cross-component model parameters from the block / position coded by a chroma intra fusion mode, the model parameters for obtaining the CCP coded intra prediction are inherited and further refined.

[0245] In one embodiment, in addition to inheriting and refining the CCP model parameters,  the fusion weight and the coding mode of non-CCP coded intra prediction are also inherited. That is, the chroma intra fusion mode is inherited.

[0246] V. 8. Inheriting Multiple Cross-Component Models

[0247] The final prediction of the current block can be the combination of predictions of multiple cross-component models, or fusion of the predictions of the selected cross-component models with the prediction by non-cross-component coding tools (e.g., intra angular prediction modes, intra planar / DC modes, or inter prediction modes) . In one embodiment, if the current candidate list size is N, it can select k candidates from the total N candidates (where k ≤ N) . Then, k predictions are respectively generated by applying the cross-component model of the selected k candidates using the corresponding luma reconstructed samples. The final prediction of the current block is the combination results of these k predictions. For example, if two candidate predictions (denoted as pcand1 and pcand2) are combined, the final prediction at (x, y) position of the current block is pfinal (x, y) = (1-α) ×pcand1 (x, y) +α×pcand2 (x, y) , where α is a weighting factor. Besides, the weighting factor α can be predefined or implicitly derived according to neighbouring template cost (i.e., model error) . For example, by using the template cost defined in the section entitled “Reordering the Candidates in the List” , the corresponding template cost of two candidates are ecand1 and ecand2, then α is ecand1 /  (ecand1+ecand2) . In another embodiment, if two candidate models are combined, the selected models are from the first two candidates in the list. In still another embodiment, if i candidate models are combined, the selected models are from the first i candidates in the list.

[0248] In another embodiment, if the current candidate list size is N, it can select k candidates from the total N candidates (where k ≤ N) . The k cross-component models can be combined into one final cross-component model by weighted-averaging the corresponding model parameters. For example, if a cross-component model has M parameters, the j-th parameter of the final cross-component model is the weighted-averaging of the j-th parameter of the k selected candidates where j is 1 …M. Then, the final prediction is generated by applying the final cross-component model to the corresponding luma reconstruction samples. For example, if two candidate models are  and The final cross-component model is where α is a weighting factor which can be predefined or implicitly derived by neighbouring template cost, and  is the x-th model parameter of the y-th candidate. For example, by using the template cost defined in the section entitled: “Reordering the Candidates in the List” , the corresponding template cost of two candidates are ecand1 and ecand2, then α is ecand1 /  (ecand1+ecand2) . For still an example, for the two candidate models, one is from the spatial adjacent neighbouring candidate, and another one from non-adjacent spatial candidate or history candidate. If the spatial adjacent neighbouring candidate is not available, then the two candidate models are all from the non-adjacent spatial candidates or history candidates. In  another embodiment, if two candidate models are combined, the selected models are from the first two candidates in the list. In still another embodiment, if i candidate models are combined, the selected models are from the first i candidates in the list.

[0249] In another embodiment, two cross-component models are combined into one final model by weighted-averaging the corresponding model parameters, where the two cross-component models are one from above the spatial neighbouring candidate and another one from the left spatial neighbouring candidate. The above spatial neighbouring candidate is the neighbouring candidate that has the vertical position less than or equal to the top block boundary position of the current block. The left spatial neighbouring candidate is the neighbouring candidate that has the horizontal position less than or equal to the left block boundary position of the current block. The weighting factor α is determined according to the horizontal and vertical spatial positions inside the current block. For example, if two candidate predictions (denoted as pabove and pleft) are combined, the final prediction at (x, y) position of the current block is pfinal (x, y) = (1-α) ×pabove (x, y) +α×pleft (x, y) , where α=y /  (x+y) . In another embodiment, the above spatial neighbouring candidate is the first candidate in the list that has the vertical position less than or equal to the top block boundary position of the current block. The left spatial neighbouring candidate is the first candidate in the list that has the horizontal position less than or equal to the left block boundary position of the current block.

[0250] In another embodiment, it can combine multiple cross-component models into one final cross-component model. For example, it can choose one model from a candidate, and choose a second model from another candidate to form a multi-model mode. The selected candidate can be CCLM / MMLM / GLM / CCCM coded candidate. The multi-model classification threshold can be the average of the offset parameters (e.g., offset / β in CCLM, or c6×B or c6 in CCCM) of the two selected modes. In one embodiment, if two candidate models are combined, the selected models are the first two candidates in the list. In another embodiment, the classification threshold is set to the average value of the neighbouring luma and chroma samples of the current block.

[0251] VI. Constructing a Candidate List

[0252] VI. 1. Order of Inserting a Candidate into the List

[0253] In one embodiment, the candidates associated with propagated CCM information (as described in the section “Propagated CCM Information” , the CCM information is copied from a reference block) are inserted after the candidates associated with non-propagated CCM information.

[0254] In another embodiment, the candidates associated with propagated CCM information are inserted into the candidate list only when the current block is an inter block. In another embodiment, the candidates associated with propagated CCM information are inserted into the candidate list only when the current block is an intra block.

[0255] VI. 2. Reordering the Candidates in the List

[0256] The candidates in the list can be reordered to reduce the syntax overhead when  signalling the selected candidate index or to bypass the syntax for signalling the selected candidate index by using implicit rule to select the one or more candidates.

[0257] In one embodiment, the reordering rules can depend on the coding information of neighbouring blocks or the model error. For example, if neighbouring above or left blocks are coded by MMLM, the MMLM candidates in the list can be moved to the head of the current list.

[0258] In one embodiment, the reordering rule is based on the model error by applying the candidate model to the neighbouring templates of the current block, and then compare the error with the reconstructed samples of the neighbouring template.

[0259] VII. Self-derived Cross-Component Model

[0260] In one embodiment, an example of the self-derived cross-component model is CCRM. When doing the self-derivation, the model (filtering shape / pattern, parameter terms) is unified with the cross-component models in regular intra mode. For example, CCRM model can be unified with any pre-defined existing intra cross-component model (e.g. CCCM using non-downsampled luma samples, GLM, MMLM) and / or the self-derivation only means the input of deriving model parameters is from the current chroma and collocated luma samples (for example, motion compensation results if the current block is inter) .

[0261] In another embodiment, the self-derived cross-component candidate refers to one or more models and the models are used to generate the cross-component prediction of the current block as follows. The cross-component prediction (used for generating target predicted samples) of the current bock is formed by combining one or more proposed source terms and the models (referring to a proposed weighting setting) . As shown in equation (3) , pred (i, j) is a target (predicted) sample in the current block which can be obtained after our proposed mechanism, sourceTermSet0 includes one or more source terms from luma component, sourceTermSet1 includes one or more source terms from chroma components, and biasTermSet includes one or more bias terms.

[0262] Equation (3) is just an example and our proposed mechanism can use any subset or extension of sourceTermSet0, sourceTermSet1, and biasTermSet. Each sample or any subset of samples in the current block gets its target (predicted) sample according to the equation (3) . In the following, the content of sourceTermSet0 is described in Section VII. 1, “Content of sourceTermSet0 (i, j) ” , the content of sourceTermSet1 is described in Section VII. 2, “Content of sourceTermSet1 (i, j) ” , the content of biasTermSet is described in Section VII. 3, “Content of biasTermSet” , and the predictor derivation using the proposed source terms and the proposed weighting setting is described in Section VII. 4, “Predictor derivation for sample (i, j) ” . Several examples with our proposed mechanism are shown in Section VII. 4, “Predictor derivation for sample (i, j) ” . Several examples with our proposed mechanism are shown in Section VII. 4.

[0263] pred (i, j) = (sourceTermSet0 (i, j) + sourceTermSet1 (i, j) + …+ biasTermSet) with the proposed weighting setting where (i, j) is a sample position in the current block.    (3)

[0264] VII. 1. Content of sourceTermSet0 (i, j)

[0265] SourceTermSet0 (i, j) includes one or more luma source terms denoted as sourceTerm00, sourceTerm01, …, and / or sourceTerm0n-1. The value of n means the number of taps for the source term set.

[0266] In one embodiment, the source terms can be linear terms and / or non-linear terms, only linear terms, and / or only non-linear terms.

[0267] In another embodiment, n is a pre-defined value, such as 1, 2, …or any positive integer. For example, the pre-defined value is fixed in the standard.

[0268] In another embodiment, n is determined by coding information of the current block and / or sample position (i, j) . For example, when the current block is coded by a specific coding tool, n can be fixed at a pre-defined value for that specific coding tool.

[0269] In another embodiment, the pattern of the n taps refers to a pattern defined as any subset of a window region M x N around / including the position (iL, jL) as shown in Fig. 14A. If the target sample is luma, (iL, jL) is (i, j) . If the target sample is chroma (e.g., Cb or Cr) , (iL, jL) is the collocated luma position from (i, j) .

[0270] For one example, only the centre (iL, jL) of the window is used as shown in Fig. 14A.

[0271] For another example of the pattern being 5x5 cross including or not excluding (iL, jL) as shown in Fig. 14B.

[0272] For a source term in the source term set, the following embodiments are used to determine generation of the source content.

[0273] In one embodiment, the source content is based on a predicted sample generated by a prediction mode and / or a reconstructed sample generated based on the predicted sample by a prediction mode and a reconstructed residual.

[0274] In another sub-embodiment, the source content is the filtered source or the source with any pre-processing. For example, the source content is the predicted / reconstructed sample after filtering with a pre-defined model or filter.

[0275] In another sub-embodiment, the source content is gradient information from the predicted samples and / or reconstructed samples. If the target sample (i, j) belongs to chroma and gradient information of the collocated luma sample (as the centre circle) is calculated with any one of the following Sobel filters (1510-1540) in Fig. 15 or any pre-defined filter. Each value around the centre circle is multiplied with the corresponding predicted / reconstructed samples in the collocated luma block and then added with each other to form the gradient information for the source term of the target sample (i, j) .

[0276] In another sub-embodiment, since the target sample belongs to a chroma sample (e.g., Cb or Cr) ) , the predicted sample and / or the reconstructed sample is located within the collocated (luma) block from the current (chroma) block. The predicted sample and / or the reconstructed sample  is treated as an initial sample and used as source content to generate the target sample.

[0277] In another embodiment, the source term may further include location information. For example, if the target sample refers to luma, the horizontal location (i) of (i, j) is used in a source term and the vertical location (j) of (i, j) is used in a source term; otherwise, the horizontal location of the collocated luma block from the sample (i, j) is used in a source term and the vertical location of the collocated luma block from the sample (i, j) is used in a source term.

[0278] In another embodiment, the source term may further include location information. For example, if the target sample refers to chroma, the horizontal location of the collocated luma from the sample (i, j) is used in a source term, and the vertical location of the collocated luma from the sample (i, j) is used in a source term.

[0279] VII. 2. Content of sourceTermSet1 (i, j)

[0280] SourceTermSet1 (i, j) includes one or more chroma (Cb or Cr) source terms denoted as sourceTerm00, sourceTerm01, …, and / or sourceTerm0m-1. The value of m means the number of taps for the source term set. In one embodiment, the source terms can be linear terms and / or non-linear terms, only linear terms, and / or only non-linear terms. In another embodiment, m is a pre-defined value such as 1, 2, …or any positive integer. For example, the pre-defined value is fixed in the standard.

[0281] In another embodiment, m is determined according to coding information of the current block and / or sample position (i, j) . For example, when the current block is coded by a specific coding tool, m is fixed at a pre-defined value for that specific tool.

[0282] In another embodiment, the pattern of the m taps refers to a pattern defined as any subset of an M2 x N2 window region around / including the position (iC, jC) as shown in Fig. 16A. If the target sample is chroma (Cb or Cr) , (iC, jC) is (i, j) . If the target sample is luma, (iC, jC) is the collocated chroma position from (i, j) .

[0283] For one example, only the centre (iC, jC) of the window is used as shown in Fig. 16A.

[0284] For another example of the pattern being 5x5 cross: (including or not excluding (iC, jC) ) as shown in Fig. 16B.

[0285] For a source term in the source term set, the following embodiments are used to determine generation of the source content.

[0286] In one embodiment, the source content is based on a predicted sample generated by a prediction mode and / or a reconstructed sample generated based on the predicted sample based on a prediction mode and a reconstructed residual.

[0287] In another sub-embodiment, the source content is the filtered source or the source with any pre-processing. For example, the source content is the predicted / reconstructed sample after filtering with a pre-defined model or filter.

[0288] In another sub-embodiment, the source content is gradient information from the  predicted samples and / or reconstructed samples. If the target sample (i, j) belongs to luma, gradient information of the collocated chroma sample is calculated with any one of the Sobel filters or any pre-defined filter.

[0289] In another sub-embodiment, if the target sample belongs to a chroma sample, the predicted sample and / or the reconstructed sample is located within the current block. The predicted sample and / or the reconstructed sample is treated as an initial sample and used as the source content to generate the target sample.

[0290] In another embodiment, the source term may further include location information. For example, if the target sample refers to chroma, the horizontal location (i) of (i, j) is used in a source term and the vertical location (j) of (i, j) is used in a source term.

[0291] VII. 3. Content of biasTermSet

[0292] Bias term is a pre-defined value. In one embodiment, the bias term is a midValue according to bitDepth specified in the standard. For example, the bias term is set as (1<< (bitDepth-1) ) . In another embodiment, the bias term is the same for each sample in the current block. That is, the bias term is independent of the position (i, j) .

[0293] VII. 4. Predictor Derivation for Sample (i, j)

[0294] VII. 4.1. Proposed Weighting Setting

[0295] The proposed weighting setting is to estimate the relationship (e.g. minimizing the distortion) between “the predicted and / or reconstructed samples on the reference region of the current (chroma) block” and “the predicted and / or reconstructed samples on the reference region of the corresponding luma block” by a pre-defined regression method, and to generate a weighting (referring to model parameters) according to the regression method. The weighting derived is then applied on the source terms to get the target (predicted) samples in the current block. In one embodiment, the pre-defined regression method can be linear minimum mean square error (LMMSE) method for CCLM or can be any unified method with the regression method used for CCLM. In another embodiment, the pre-defined regression method can be the LDL decomposition method for CCCM or can be any unified method with the regression method used for CCCM. In another embodiment, the pre-defined regression method can be Gaussian elimination.

[0296] In one embodiment, the reference region of the current block is the spatial neighbouring region of the current block 1710 as shown in Fig. 17. The spatial neighbouring region of the current block includes above reference region 1720, left reference region 1730, above-left reference region 1740, and / or any subset of the above. The size of the above reference region is Aw x AH, the size of the left reference region is Lw x LH, and the size of the above-left reference is ALW x ALH, where

[0297] - Aw = block width of the current block (W) , k*W, W + block height of the current block (H), any pre-defined value, or any adaptive value depending on the block position, block  width, block height, and / or block area of the current block.

[0298] - AH or ALH = H, any pre-defined value (1, 2, 4, …) , or any adaptive value depending on the block position, block width, block height, and / or block area of the current block.

[0299] - LW or ALW = W, any pre-defined value (1, 2, 4, …) , or any adaptive value depending on the block position, block width, block height, and / or block area of the current block.

[0300] - LH = H, k*H, H + W, any pre-defined value, or any adaptive value depending on the block position, block width, block height, and / or block area of the current block.

[0301] The reference region of the corresponding luma block is the spatial neighbouring region of the corresponding luma block.

[0302] In another embodiment, the reference region of the current block is the vector-collocated region of the current block and the reference region of the corresponding luma block is the vector-collocated region of the corresponding luma block. For inter coding unit containing luma and chroma blocks, the vector-collocated region of the current block refers to the motion compensated results obtained by using the motion information (motion vectors and reference pictures) of the current block, and the vector-collocated region of the corresponding luma block refers to the motion compensated results obtained by using the motion information (motion vectors and reference pictures) of the corresponding luma block. For IBC or intraTMP, the vector-collocated region of the current block refers to the motion compensated results obtained by using the motion information (e.g. block vectors and current picture) of the current block, and the vector-collocated region of the corresponding luma block refers to the motion compensated results obtained by using the motion information (e.g. block vectors and current picture) of the corresponding luma block.

[0303] In another embodiment, the above-proposed two kinds of the reference region of the current block can be used together. For example, generally, samples in the vector-collocated region of the current block are used as input samples during deriving model parameters; however, for a smaller block, samples in the spatial neighbouring reference region are used as additional input samples when deriving model parameters.

[0304] The term “block” in this invention can refer to TU / TB, CU / CB, PU / PB, or CTU / CTB.

[0305] The term “LM” in this invention can be viewed as one kind of CCLM / MMLM modes or any other extension / variation of CCLM (e.g. the proposed CCLM extension / variation in this invention) . One variation is MMLM which uses thresholds to decide different models for different samples in the current chroma component. Another variation is that for Cb (or Cr) , deriving model parameters from multiple collocated luma blocks. The following show more possible variations. The variations of CCLM here mean that some optional modes can be selected when the block indication refers to using one of cross-component modes (e.g. CCLM_LT, MMLM_LT, CCLM_L, CCLM_T, MMLM_L, MMLM_T, and / or an intra prediction mode, which is not one of traditional DC, planar, and angular modes) for the current block. The following shows an example of using the convolutional  cross-component mode (CCCM) as an optional mode. When this optional mode is applied to the current block, cross-component information with a model, including non-linear term, is used to generate the chroma prediction. The optional mode may follow the template selection of CCLM, so CCCM family includes CCCM_LT CCCM_L, and / or CCCM_T.

[0306] The proposed methods (for CCLM) in this invention can be used for any other cross-component modes.

[0307] Any combination of the proposed methods in this invention can be applied.

[0308] Any of the foregoing proposed methods of cross-component prediction by blending multiple hypothesis of cross-component prediction models can be implemented in encoders and / or decoders. For example, any of the proposed methods can be implemented in an inter, intra, prediction, IBC, transform, quantization module or a combination of them at an encoder side, and / or an inter, intra / prediction, IBC, transform, quantization module or a combination of them at a decoder side. Alternatively, any of the proposed methods can be implemented as a circuit coupled to the inter, intra, prediction, transform, quantization module or a combination of them at the encoder and / or the inter, intra, prediction, IBC, transform, quantization module of the decoder, so as to provide the information needed by the inter / intra / prediction / IBC / transform / quantization module.

[0309] The propagated cross-component prediction models as described above can be implemented in an encoder side or a decoder side. For example, any of the proposed method can be implemented in an Intra / Inter coding module (e.g. Intra Pred. 150 / MC 152 in Fig. 1B) in a decoder or an Intra / Inter coding module is an encoder (e.g. Intra Pred. 110 / Inter Pred. 112 in Fig. 1A) . Any of the proposed propagated cross-component prediction can also be implemented as a circuit coupled to the intra / inter coding module at the decoder or the encoder. However, the decoder or encoder may also use additional processing unit to implement the propagated cross-component prediction processing. While the Intra Pred.  / MC units (e.g. unit 110 / 112 in Fig. 1A and unit 150 / 152 in Fig. 1B) are shown as individual processing units, they may correspond to executable software or firmware codes stored on a media, such as hard disk or flash memory, for a CPU (Central Processing Unit) or programmable devices (e.g. DSP (Digital Signal Processor) or FPGA (Field Programmable Gate Array) ) .

[0310] Fig. 18 illustrates a flowchart of an exemplary video coding system that incorporates propagated cross-component prediction models according to an embodiment of the present invention. The steps shown in the flowchart may be implemented as program codes executable on one or more processors (e.g., one or more CPUs) at the encoder or decoder side. The steps shown in the flowchart may also be implemented based hardware such as one or more electronic devices or processors arranged to perform the steps in the flowchart. According to this method, input data associated with a current block comprising a first-colour block and a second-colour block is received in step 1810, wherein the input data comprise pixel data to be encoded at an encoder side or data associated with  the current block to be decoded at a decoder side, and wherein the current block is coded in a non-intra mode. The current block is encoded or decoded using a non-CCP (Cross Component Prediction) mode in step 1820. One or more reference blocks pointed by one or more motion vectors, or one or more block vectors of the current block are determined in step 1830. If said one or more reference blocks have target CCM (Cross Component Model) information, the target CCM information at the current block is copied and stored in step 1840, wherein the target CCM information stored at the current block is accessed by one or more subsequent blocks for CCP process.

[0311] The flowchart shown is intended to illustrate an example of video coding according to the present invention. A person skilled in the art may modify each step, re-arranges the steps, split a step, or combine steps to practice the present invention without departing from the spirit of the present invention. In the disclosure, specific syntax and semantics have been used to illustrate examples to implement embodiments of the present invention. A skilled person may practice the present invention by substituting the syntax and semantics with equivalent syntax and semantics without departing from the spirit of the present invention.

[0312] The above description is presented to enable a person of ordinary skill in the art to practice the present invention as provided in the context of a particular application and its requirement. Various modifications to the described embodiments will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed. In the above detailed description, various specific details are illustrated in order to provide a thorough understanding of the present invention. Nevertheless, it will be understood by those skilled in the art that the present invention may be practiced.

[0313] Embodiment of the present invention as described above may be implemented in various hardware, software codes, or a combination of both. For example, an embodiment of the present invention can be one or more circuit circuits integrated into a video compression chip or program code integrated into video compression software to perform the processing described herein. An embodiment of the present invention may also be program code to be executed on a Digital Signal Processor (DSP) to perform the processing described herein. The invention may also involve a number of functions to be performed by a computer processor, a digital signal processor, a microprocessor, or field programmable gate array (FPGA) . These processors can be configured to perform particular tasks according to the invention, by executing machine-readable software code or firmware code that defines the particular methods embodied by the invention. The software code or firmware code may be developed in different programming languages and different formats or styles. The software code may also be compiled for different target platforms. However, different code formats, styles and languages of software codes and other means of configuring code to perform the  tasks in accordance with the invention will not depart from the spirit and scope of the invention.

[0314] The invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described examples are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims

1.A method of coding colour pictures using coding tools including one or more cross component models related modes, the method comprising:receiving input data associated with a current block comprising a current first-colour block and a current second-colour block, wherein the input data comprise pixel data to be encoded at an encoder side or data associated with the current block to be decoded at a decoder side, and wherein the current block is coded in a non-intra mode;encoding or decoding the current block using a non-CCP (Cross Component Prediction) mode;determining one or more reference blocks pointed by one or more motion vectors, or one or more block vectors of the current block; andif said one or more reference blocks have target CCM (Cross Component Model) information, copying and storing the target CCM information at the current block, wherein the target CCM information stored at the current block is accessed by one or more subsequent blocks for CCP process.2.The method of Claim 1, wherein said one or more block vectors are associated with the current first-colour block or a collocated first-colour block if the current first-colour block or the collocated first-colour block is coded in IBC (Intra Block Copy) or IntraTMP (Intra Template Matching Prediction) mode.3.The method of Claim 1, wherein if said one or more reference blocks located according to said one or more block vectors or said one or more motion vectors are not CCP coded, but have first CCM information stored for said one or more reference blocks, the first CCM information stored is used as the target CCM information.4.The method of Claim 1, wherein if said one or more reference blocks correspond to multiple reference blocks and only one of the multiple reference blocks has first CCM information, the first CCM information is used as the target CCM information.5.The method of Claim 1, wherein if multiple reference blocks have first CCM information, the target CCM information is derived by combining corresponding CCP models associated with all or part of the multiple reference blocks.6.The method of Claim 1, wherein if multiple reference blocks have first CCM information, the target CCM information is copied from the first CCM information of a target reference block of the multiple reference blocks according to one or more pre-defined rules.7.The method of Claim 6, wherein a CCP-coded reference block is selected as the target reference block of the multiple reference blocks.8.The method of Claim 6, wherein an intra-coded or inter-coded reference block is selected as the target reference block of the multiple reference blocks.9.The method of Claim 6, wherein a shortest-distance reference block to the current block according to a distance measure is selected as the target reference block of the multiple reference  blocks.10.The method of Claim 9, wherein the distance measure corresponds to Euclidean distance, Manhattan distance, Minkowski distance, horizontal distance, or vertical distance.11.The method of Claim 1, wherein if multiple reference blocks have first CCM information, the first CCM information of the multiple reference blocks is applied to reconstructed current first-colour block to generate multiple predictions for the current second-colour block.12.The method of Claim 11, wherein distortions between reconstructed current second-colour block and the multiple predictions are determined respectively, and a target first CCM information associated with a target prediction having a minimum distortion among the multiple predictions is selected to be copied to the current block.13.The method of Claim 1, wherein if the current block is not CCP coded and a current slice or picture containing the current block is a non-intra slice or picture, the target CCM information is copied from a collocated block of the current block in a collocated picture.14.The method of Claim 13, wherein if POC (Picture Order Count) distance between the collocated picture and a current picture containing the current block is greater than a pre-defined threshold, the target CCM information is not copied from the collocated block of the current block in the collocated picture.15.An apparatus for coding colour pictures or video using coding tools including one or more cross component models related modes, the apparatus comprising one or more electronic circuits or processors arranged to:receive input data associated with a current block comprising a current first-colour block and a current second-colour block, wherein the input data comprise pixel data to be encoded at an encoder side or data associated with the current block to be decoded at a decoder side, and wherein the current block is coded in a non-intra mode;encode or decode the current block using a non-CCP (Cross Component Prediction) mode;determine one or more reference blocks pointed by one or more motion vectors, or one or more block vectors or the current block; andif said one or more reference blocks have target CCM (Cross Component Model) information, copy and store the target CCM information at the current block, wherein the target CCM information stored at the current block is accessed by one or more subsequent blocks for CCP process.