WO2024072945A1 - Method and apparatus for cross-component prediction for video coding - Google Patents

Method and apparatus for cross-component prediction for video coding Download PDF

Info

Publication number
WO2024072945A1
WO2024072945A1 PCT/US2023/033951 US2023033951W WO2024072945A1 WO 2024072945 A1 WO2024072945 A1 WO 2024072945A1 US 2023033951 W US2023033951 W US 2023033951W WO 2024072945 A1 WO2024072945 A1 WO 2024072945A1
Authority
WO
WIPO (PCT)
Prior art keywords
luma sample
values
luma
external
chroma
Prior art date
Application number
PCT/US2023/033951
Other languages
French (fr)
Inventor
Hong-Jheng Jhu
Che-Wei Kuo
Xiaoyu XIU
Ning Yan
Wei Chen
Changyue MA
Xianglin Wang
Bing Yu
Original Assignee
Beijing Dajia Internet Information Technology Co., Ltd
Xianglin Wang
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co., Ltd, Xianglin Wang filed Critical Beijing Dajia Internet Information Technology Co., Ltd
Publication of WO2024072945A1 publication Critical patent/WO2024072945A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • aspects of the present disclosure relate generally to imagc/vidco coding and compression, and more particularly, to methods and apparatus for cross-component prediction technology.
  • Video coding is perforated according to one or more video coding standards.
  • video coding standards include versatile video coding (VVC), high-efficiency video coding (H.265/HEVC), advanced video coding (H 264/AVC), moving picture expert group (MPEG) coding, or the like.
  • Video coding generally utilizes prediction methods (e.g., inter-prediction, intra-prediction, or the like) that take advantage of redundancy present in video images or sequences.
  • An important goal of video coding techniques is to compress video data into a form that uses a lower bit rate, while avoiding or minimizing degradations to video quality.
  • a method for decoding video data comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on the external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non- downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on the internal luma sample
  • a method for decoding video data comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and obtaining decoded video block using the predicted internal chroma sample values.
  • a method for encoding video data comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on tire external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on tire internal luma sample values; and
  • a method for encoding video data comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and generating a bitstream comprising encoded video block by using the predicted internal chroma sample values.
  • a computer system comprising: one or more processors; and one or more storage devices storing computer-executable instructions that, when executed, cause the one or more processors to perform the operations of the method of the present disclosure.
  • a computer program product storing computer-executable instructions that, when executed, cause one or more processors to perform the operations of the method of the present disclosure.
  • a computer readable storage medium storing instructions that, when executed by a computing device having one or more processors, cause the one or more processors to perform the operations of the decoding method of the present disclosure and storing a bitstream to be decoded by the decoding method of the present disclosure.
  • a computer readable storage medium storing instructions that, when executed by a computing device having one or more processors, cause the one or more processors to perform the operations of the encoding method of the present disclosure and a bitstream generated by tire encoding method of the present disclosure.
  • a computer readable medium storing a bitstream, wherein the bitstream is to be decoded by performing the operations of the method of the present disclosure.
  • a computer readable medium storing a bitstream, wherein the bitstream is obtained by performing the operations of the method of the present disclosure.
  • Figure 1 illustrates a block diagram of a generic block -based hybrid video encoding system.
  • Figures 2A to 2E illustrate five splitting types, comprising quaternary partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning.
  • Figure 3 illustrates a general block diagram of a block-based video decoder.
  • Figure 4 illustrates an example of the locations of the left and above samples and the sample of the current block involved in the CCLM mode.
  • Figures 5 A to 5C illustrate examples of deriving CCLM parameters.
  • Figure 6 illustrates an example of classifying tire neighboring samples into two groups based on the value Threshold.
  • Figure 7 illustrates an example of classifying the neighboring samples into two groups based on a knee point.
  • Figures 8A and 8B illustrate the effect of the scale adjustment parameter “u”.
  • Figure 8C illustrates the collocated reconstructed luma samples.
  • Figure 8D illustrates the neighboring reconstructed samples.
  • Figures 8E to 8H illustrate the steps of decoder-side intra mode derivation.
  • Figure 9 illustrates an example of four reference lines neighboring to a prediction block.
  • Figure 10A illustrates an exemplary pattern for convolutional cross-component model
  • Figure 10B illustrates an exemplary reference area which consists of 6 lines of chroma samples above and left of the PU.
  • Figures 10C and 10D illustrate schematic diagrams for correlation among a chroma sample and one or more luma samples.
  • Figure 11 illustrates an example that 6-tap is used in multiple linear regression (MLR) model according to one or more aspects of the present disclosure.
  • Figure 12 illustrates exemplary different filter shapes and/or numbers of taps according to one or more aspects of the present disclosure.
  • Figure 13 illustrates an example in which FLM can only use top or left luma and/or chroma samples (extended) for parameter derivation.
  • Figure 14 illustrates an example in which FLM can use different lines for parameter derivation.
  • Figures 15A to 15D illustrate some examples for l-tap/2-tap pre-operations.
  • Figure 16 illustrates examples of different shape/number of filter taps.
  • Figure 17 illustrates examples of different shape/number of filter taps.
  • Figures 18A and 18B illustrate examples of different shape/number of filter taps.
  • Figures 19A to 19G illustrate examples of different set of filter taps.
  • Figure 20A and Figure 20B illustrate examples of 2 -fold training for implicitly filter shape derivation.
  • Figure 21 illustrates a workflow of a method for decoding video data according to one or more aspects of the present disclosure.
  • Figure 22 illustrates a workflow of a method for decoding video data according to one or more aspects of the present disclosure.
  • Figure 23 illustrates a workflow of a method for encoding video data according to one or more aspects of the present disclosure.
  • Figure 24 illustrates a workflow of a method for encoding video data according to one or more aspects of the present disclosure.
  • Figure 25 illustrates an exemplary computing system according to one or more aspects of the present disclosure.
  • the first version of the VVC standard was finalized in July, 2020, which offers approximately 50% bit-rate saving or equivalent perceptual quality compared to the prior generation video coding standard HEVC.
  • the VVC standard provides significant coding improvements than its predecessor, there is evidence that superior coding efficiency can be achieved with additional coding tools.
  • Joint Video Exploration Team JVET
  • ISO/IEC MPEG started the exploration of advanced technologies that can enable substantial enhancement of coding efficiency over VVC.
  • ECM Enhanced Compression Model
  • VTM VVC Test Model
  • CTCs JVET common test conditions
  • FIG. 1 illustrates a block diagram of a generic block-based hybrid video encoding system.
  • the input video signal is processed block by block (called coding units (CUs)).
  • CUs coding units
  • aCU can be up to 128x128 pixels.
  • one coding tree unit (CTU) is split into CUs to adapt to varying local characteristics based on quad/binary/temary-tree .
  • CTU coding tree unit
  • the multi- type tree structure one CTU is firstly partitioned by a quad-tree structure.
  • each quad-tree leaf node can be further partitioned by a binary and ternary tree structure.
  • FIGs 2 A, 2B, 2C, 2D, and 2E there are five splitting types, quaternary partitioning, vertical binary partitioning, horizontal binary partitioning, vertical extended quaternary partitioning, and horizontal extended quaternary partitioning.
  • spatial prediction and/or temporal prediction may be performed.
  • Spatial prediction (or “intra prediction”) uses pixels from the samples of already coded neighboring blocks (which are called reference samples) in the same video picture/slice to predict the current video block. Spatial prediction reduces spatial redundancy inherent in the video signal.
  • Temporal prediction (also referred to as “inter prediction” or “motion compensated prediction”) uses reconstructed pixels from the already coded video pictures to predict the current video block. Temporal prediction reduces temporal redundancy inherent in the video signal.
  • Temporal prediction signal for a given CU is usually signaled by one or more motion vectors (MVs) which indicate the amount and the direction of motion between the current CU and its temporal reference.
  • MVs motion vectors
  • one reference picture index is additionally sent, which is used to identify from which reference picture in the reference picture store the temporal prediction signal comes.
  • the mode decision block in the encoder chooses the best prediction mode, for example based on the rate-distortion optimization method.
  • the prediction block is then subtracted from the current video block; and the prediction residual is dc-corrclatcd using transform and quantized.
  • the quantized residual coefficients are inverse quantized and inverse transformed to form the reconstructed residual, which is then added back to the prediction block to form the reconstructed signal of the CU.
  • deblocking filter such as deblocking filter, sample adaptive offset (SAO) and adaptive in-loop filter (ALF) may be applied on the rcconstnictcd CU before it is put in the reference picture store and used to code future video blocks.
  • coding mode inter or intra
  • prediction mode information prediction mode information
  • motion information motion information
  • quantized residual coefficients are all sent to the entropy coding unit to be further compressed and packed to form the bit-stream .
  • block or “video block” as used herein may be a portion, in particular a rectangular (square or non- square) portion, of a frame or a picture.
  • tire block or video block may be or correspond to a Coding Tree Unit (CTU), a CU, a Prediction Unit (PU) or a Transform Unit (TU) and/or may be or correspond to a corresponding block, e.g., a Coding Tree Block (CTB), a Coding Block (CB), a Prediction Block (PB) or a Transform Block (TB) and/or to a sub-block.
  • CTB Coding Tree Block
  • CB Coding Block
  • CB Coding Block
  • PB Prediction Block
  • TB Transform Block
  • Figure 3 illustrates a general block diagram of a block-based video decoder.
  • the video bit- stream is first entropy decoded at entropy decoding unit.
  • the coding mode and prediction information arc sent to either the spatial prediction unit (if intra coded) or the temporal prediction unit (if inter coded) to fonn the prediction block.
  • Tire residual transform coefficients are sent to inverse quantization unit and inverse transform unit to reconstruct the residual block.
  • the prediction block and the residual block are then added together.
  • the reconstructed block may further go through in-loop filtering before it is stored in reference picture store.
  • the reconstructed video in reference picture store is then sent out to drive a display device, as well as used to predict future video blocks.
  • the main focus of this disclosure is to further enhance the coding efficiency of the coding tool of cross -component prediction, cross-component linear model (CCLM), that is applied in the ECM.
  • CCLM cross-component linear model
  • some related coding tools in the ECM are briefly reviewed. After that, some deficiencies in the existing design of CCLM are discussed. Finally, tire solutions are provided to improve the existing CCLM prediction design.
  • pred c (i, j) ⁇ -rec L '(i, j) + ⁇ (1)
  • pred c (i, j) represents the predicted chroma samples in a CU
  • rec L ’ (i, j) represents the down-sampled reconstructed luma samples of tire same CU
  • ⁇ and ⁇ are linear model parameters which are derived from at most four neighboring chroma samples and their corresponding down-sampled luma samples, which may be referred to as neighboring luma-chroma sample pairs.
  • - H’ H + W when LM-L mode is applied; where in the LM mode, above samples and left samples of the CU are used together to calculate the linear model coefficients; in the LM A mode, only the above samples of the CU are used to calculate the linear model coefficients; and in the LM_L mode, only the left samples of the CU arc used to calculate the linear model coefficients.
  • positions of four neighboring chroma samples are selected as follows:
  • the four neighboring luma samples corresponding to the selected locations are obtained by a down-sampling operation and the obtained four neighboring luma samples are compared four times to find two larger values: x 0 A and x 1 A . and two smaller values: x° B and x’ B .
  • Chroma sample values corresponding to the two larger values and the two smaller values are denoted as y x A , y 0 B and y x B respectively.
  • X,. Y a and U are derived as:
  • tire linear model parameters ⁇ and ⁇ are obtained according to tire following equations.
  • Figure 4 illustrates an example of the locations of the left and above samples and the sample of the current block involved in the CCLM mode, including locations of left and above samples of an N X N chroma block in the CU and locations of left and above samples of an 2N X 2N luma block in the CU.
  • the division operation to calculate parameter ⁇ is implemented with a look-up table .
  • the diff value difference between maximum and minimum values
  • the parameter a are expressed by an exponential notation. For example, diff is approximated with a 4-bit significant part and an exponent. Consequently, the table for 1/diff is reduced into 16 elements for 16 values of the significand as follows:
  • LM A 2 LM modes
  • LM_L 2 LM modes
  • LM_T mode only the above template is used to calculate the linear model coefficients. To get more samples, the above template is extended to (W+H) samples.
  • LM_L mode only left template is used to calculate the linear model coefficients. To get more samples, the left template is extended to (H+W) samples.
  • two types of down- sampling filter are applied to luma samples to achieve 2 to 1 down-sampling ratio in both horizontal and vertical directions.
  • the selection of down-sampling filter is specified by a SPS level flag.
  • the two down-sampling filters are as follows, which are corresponding to “type-0” and “type-2” content, respectively.
  • Chroma mode coding For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A, and LM_L). Chroma mode signalling and derivation process are shown in Table 1. Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled in 1 slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
  • the first bin indicates whether it is regular (0) or LM modes (1). If it is LM mode, then the next bin indicates whether it is LM CHROMA (0) or not. If it is not LM CHROMA, next 1 bin indicates whether it is LM_L (0) or LM_A (1). For this case, when sps cclm enabled flag is 0, the first bin of the binarization table for the corresponding intra_chroma_pred_mode can be discarded prior to the entropy coding. Or, in other words, the first bin is inferred to be 0 and hence not coded. This single binarization table is used for both sps cchn enabled flag equal to 0 and 1 cases. Tire first two bins in Table 2 are context coded with its own context model, and the rest bins are bypass coded.
  • the chroma CUs in 32x32 / 32x16 chroma coding tree node are allowed to use CCLM in the following way:
  • all chroma CUs in the 32x32 node can use CCLM
  • all chroma CUs in the 32x16 chroma node can use CCLM.
  • CCLM is not allowed for chroma CU.
  • Tire LM_A, LM_L modes are also called Multi-Directional Linear Model (MDLM).
  • Figure 5 A illustrates an example that MDLM works when the block content cannot be predicted from the L- shape reconstructed region.
  • Figure 5B illustrates MDLM L which only uses left reconstructed samples to derive CCLM parameters.
  • Figure 5C illustrates MDLM T which only uses top reconstructed samples to derive CCLM parameters.
  • the integerization design utilizes the linear relationship to modelize the correlation of luma signal and chroma signal.
  • the chroma values are predicted from reconstructed luma values of collocated block.
  • Luma and chroma components have different sampling ratios in YUV420 sampling.
  • the sampling ratio of chroma components is half of that of luma component and has 0.5 pixel phase difference in vertical direction.
  • Reconstructed luma needs down-sampling in vertical direction and subsample in horizontal direction to match size of chroma signal.
  • the down-sampling may be implemented by:
  • Equation (1) Float point operation is necessary in equation (8) to calculate linear model parameters cc to keep high data accuracy.
  • float point multiplication is involved in equation (1) when a is represented by float point value.
  • is the rounding value of float point ⁇ and ⁇ 'can be calculated as follows.
  • bdepth(A 2 ) means bit depth of value A 2 .
  • n a 13
  • nA 2 6
  • table size can be further reduced to 32 by up- scaling when hdepth( A 2 ) ⁇ 6 (e.g. A 2 , ⁇ 32 ).
  • niable 15
  • n A1 is set as 15, to avoid product overflow and keep 16 bits multiplication.
  • parameter ⁇ is calculated as follows:
  • an intra prediction mode called LM is applied to predict chroma PU based on a linear model using the reconstruction of the collocated luma PU.
  • the parameters of the linear model consist of slope (a»k) and y-intercept (b), which are derived from the neighboring luma and chroma pixels using the least mean square solution.
  • Equation (19-6) al s is a 16-bit signed integer and ImDiv is a 16-bit unsigned integer. Therefore, 16-bit multiplier and 16-bit storage are needed. It is proposed to reduce the bit depth of multipliers to the internal bit depth, as well as the size of the look-up table, as detailed below.
  • Table 4 shows the example of internal bit depth 10.
  • Equation (19-3) and (19-8) Modifications are also made to Equation (19-3) and (19-8) as below: kl Max( 0, Log2( abs( a2 ) ) - 5 ) - Max( 0, Log2( abs( al ) ) - (BitDepthc - 2) ), and (23-1) k BitDepthc- 1 - Max( 0, Log2( abs( a ) ) - 6 ). (23-2)
  • Multi-model EM (MMLM) prediction mode for which the chroma samples are predicted based on the reconstructed luma samples of the same CU by using two linear models as follows: where predc(i, j) represents the predicted chroma samples in a CU and recL’ (i, j) represents the down-sampled reconstructed luma samples of the same CU. Threshold is calculated as the average value of the neighboring reconstructed luma samples.
  • Figure 6 illustrates an example of classifying the neighboring samples into two groups based on the value Threshold.
  • parameter a, and ⁇ i are derived from the straight-line relationship between luma values and chroma values from two samples, which are minimum luma sample A (X A , Y A ) and maximum luma sample B (X B , Y B ) inside the group.
  • X A , Y A are the x-coordinate (i.e., luma value) and y-coordinate (i.e., chroma value) value for sample A
  • X B , Y B are the x-coordinate and y- coordinatc value for sample B.
  • the linear model parameters ⁇ and ⁇ arc obtained according to the following equations.
  • Such a method is also called min-max method.
  • the division in the equation above could be avoided and replaced by a multiplication and a shift.
  • the two templates also can be used alternatively in the other two MMLM modes, called MMLM A, and MMLM L modes.
  • MMLM A mode only pixel samples in the above template are used to calculate the linear model coefficients. To get more samples, the above template is extended to the size of (W+W).
  • Tn MMLM L mode only pixel samples in the left template are used to calculate the linear model coefficients. To get more samples, the left template is extended to the size of (H+H).
  • Chroma mode coding For chroma intra mode coding, a total of 11 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and six cross-component linear model modes (CCLM, LM_A, LM_L, MMLM, MMLM A and MMLM L). Chroma mode signaling and derivation process are shown in Table 6. Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled ini slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
  • MMLM and LM modes may also be used together in an adaptive manner.
  • two linear models are as follows: where predc(i, j) represents the predicted chroma samples in a CU and rec L ’ (i, j) represents the down-sampled reconstructed luma samples of the same CU. Threshold can be simply determined based on the luma and chroma average values together with their minimum and maximum values.
  • Figure 7 shows an example of classifying the neighboring samples into two groups based on the knee point, T, indicated by an arrow.
  • Linear model parameter ⁇ 1 and ⁇ 1 are derived from the straight- line relationship between luma values and chroma values from two samples, which are minimum luma sample A (X A , Y A ) and the Threshold (X T , Y T ).
  • Linear model parameter ⁇ 2 and ⁇ 2 arc derived from tire straight-line relationship between luma values and chroma values from two samples, which are maximum luma sample B (X B , Y B ) and the Threshold (X T , Y T ).
  • X A , Y A are the x-coordinate (i.e., luma value) and y-coordinate (i.e., chroma value) value for sample A
  • X B , Y B are the x- coordinate and y-coordinate value for sample B.
  • the linear model parameters ⁇ 1 and ⁇ 1 for each group, with i equal to 1 and 2 respectively, are obtained according to the following equations.
  • the two templates also can be used alternatively in the other two MMLM modes, called MMLM_A, and MMLM_L modes respectively.
  • MMLM A mode only pixel samples in the above template are used to calculate the linear model coefficients. To get more samples, the above template is extended to the size of (W+W).
  • MMLM L mode only pixel samples in the left template are used to calculate the linear model coefficients. To get more samples, the left template is extended to the size of (H+H).
  • chroma intra mode coding there is a condition check used to select LM modes (CCLM, LM_A, and LM_L) or multi -model LM modes (MMLM, MMLM_A, and MMLM L).
  • the condition check is as follows: where BlkSizeThres LM represents the smallest block size of LM modes and BlkSizeThres ⁇ represents the smallest block size of MMLM modes.
  • the symbol d represents a pre -determined threshold value. In one example, d may take a value of 0. In another example, d may take a value of 8.
  • chroma intra mode coding a total of 8 intra modes are allowed for chroma intra mode coding.
  • Chroma mode signaling and derivation process are shown in Table 1. It is worth noting that for a given CU, if it is coded under linear model mode, whether it is a conventional single model LM mode or a MMLM mode is determined based on the condition check above. Unlike the case shown in Table 1,
  • Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled in I slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
  • CCLM uses a model with 2 parameters to map luma values to chroma values.
  • mapping function is tilted or rotated around the point with luminance value y r . It is proposed to use the average of the reference luma samples used in the model creation as y, in order to provide a meaningful modification to the model.
  • Figures 8 A to 8B illustrate the effect of tire scale adjustment parameter “u”, wherein Figure 8 A illustrates the model created without the scale adjustment parameter “u”, and Figure 8B illustrates the model created with the scale adjustment parameter “u”.
  • the scale adjustment parameter is provided as an integer between -4 and 4, inclusive, and signaled in the bitstream.
  • Tire unit of tire scale adjustment parameter is l/8th of a chroma sample value per one luma sample value (for 10-bit content).
  • the encoder may perform an SATD based search for the best value of the scale update for Cr and a similar SATD based search for Cb. If either one results as a non-zero scale adjustment parameter, the combined scale adjustment pair (SATD based update for Cr, SATD based update for Cb) is included in tire list of RD checks for tire TU.
  • JVET-Y0092/Z0051 proposed fusion of chroma intra modes.
  • the intra prediction modes enabled for the chroma components in ECM-4.0 are six cross- component linear model (EM) modes including CCLM LT, CCLM L, CCLM T, MMLM LT, MMLM L and MMLM T modes, the direct mode (DM), and four default chroma intra prediction modes.
  • EM cross- component linear model
  • DM direct mode
  • the four default modes arc given by the list ⁇ 0, 50, 18, 1 ⁇ and if the DM mode already belongs to that list, the mode in the list will be replaced with mode 66.
  • a decoder-side intra mode derivation (DIMD) method for luma intra prediction is included in ECM-4.0.
  • DIMD decoder-side intra mode derivation
  • a horizontal gradient and a vertical gradient are calculated for each reconstructed luma sample of the L-shaped template of the second neighboring row and column of the current block to build a Histogram of Gradients (HoG).
  • HoG Histogram of Gradients
  • the two intra prediction modes with the largest and the second largest histogram amplitude values are blended with the Planar mode to generate the final predictor of the current luma block.
  • DIMD chroma decoder-side derived chroma intra prediction mode
  • a fusion of a non-LM mode and the MMLM LT mode DIMD chroma
  • a DIMD chroma mode uses the DIMD derivation method to derive the chroma intra prediction mode of the current block based on the collocated reconstructed luma samples. Specifically, a horizontal gradient and a vertical gradient are calculated for each collocated reconstructed luma sample of the current chroma block to build a HoG, as shown in Figure 8C. Then the intra prediction mode with the largest histogram amplitude values is used for performing chroma intra prediction of the current chroma block.
  • the intra prediction mode derived from the DIMD chroma mode is the same as the intra prediction mode derived from the DM mode, the intra prediction mode with the second largest histogram amplitude value is used as the DIMD chroma mode.
  • a CU level flag is signaled to indicate whether the proposed DIMD chroma mode is applied as shown in Table 7.
  • the two weights, w0 and wl are determined by the intra prediction mode of adjacent chroma blocks and shift is set equal to 2.
  • the DIMD chroma mode and the fusion of chroma intra prediction modes are combined. Specifically, the DIMD chroma mode described in the first embodiment is applied, and for I slices, the DM mode, the four default modes and the DIMD chroma mode can be fused with the MMLM LT mode using the weights described in the second embodiment, while for non-I slices, only the DIMD chroma mode can be fused with the MMLM LT mode using equal weights.
  • the DIMD chroma mode with reduced processing and the fusion of chroma intra prediction modes are combined. Specifically, the DIMD chroma mode with reduced processing derives the intra mode based on the neighboring reconstructed Y, Cb and Cr samples in the second neighboring row and column as shown in Figure 8D. Other parts are the same as the third embodiment.
  • the DIMD chroma mode with reduced processing derives the intra mode based on the neighboring reconstructed Y, Cb and Cr samples in the second neighboring row and column as shown in Figure 8D. Other parts are the same as the third embodiment.
  • two intra modes are derived from the reconstructed neighbor samples, and those two predictors are combined with tire planar mode predictor with the weights derived from the gradients as described in J VET-00449.
  • the division operations in weight derivation is performed utilizing the same lookup table (LUT) based integerization scheme used by the CCLM. For example, the division operation in the orientation calculation
  • DivSigTablc[16] ⁇ 0, 7, 6, 5 ,5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 ⁇ .
  • FIGs 8E to 8H illustrate the steps of decoder-side intra mode derivation, wherein intra prediction direction is estimated without intra mode signaling.
  • the first step as shown in Figure 8E includes estimating gradient per sample (for light-grey samples as illustrated in Figure 8E).
  • the second step as shown in Figure 8F includes mapping gradient values to closest prediction direction within [2,66],
  • the third step as shown in Figure 8G includes selecting 2 prediction directions, wherein for each prediction direction, all absolute gradients Gx and Gy of neighboring pixels with that direction arc summed up, and top 2 directions are selected.
  • the fourth step as shown in Figure 8H includes enabling weighted intra prediction with the selected directions.
  • Multiple reference line (MRL) intra prediction usesmore reference lines for intra prediction.
  • Figure 9 an example of 4 reference lines is depicted, where the samples of segments A and F arc not fetched from reconstructed neighboring samples but padded with the closest samples from Segment B and E, respectively.
  • HEVC intra-picture prediction uses the nearest reference line (i.e., reference line 0).
  • reference line 0 the nearest reference line
  • 2 additional lines reference line 1 and reference line 3 are used.
  • the index of selected reference line (mrl idx) is signaled and used to generate intra predictor.
  • reference line idx which is greater than 0, only include additional reference line modes in MPM list and only signal mpm index without remaining mode.
  • the reference line index is signaled before intra prediction modes, and Planar mode is excluded from intra prediction modes in case a nonzero reference line index is signaled.
  • MRL is disabled for the first line of blocks inside a CTU to prevent using extended reference samples outside the current CTU line. Also, PDPC is disabled when additional line is used.
  • MRL mode the derivation of DC value in DC intra prediction mode for non-zero reference line indices is aligned with that of reference line index 0.
  • MRL requires the storage of 3 neighboring luma reference lines with a CTU to generate predictions.
  • the Cross-Component Linear Model (CCLM) tool also requires 3 neighboring luma reference lines for its down-sampling filters. Tire definition of MRL to use the same 3 lines is aligned as CCLM to reduce the storage requirements for decoders.
  • CCCM convolutional cross-component model
  • CCCM convolutional cross-component model
  • Multi-model CCCM mode can be selected for PUs which have at least 128 reference samples available.
  • the proposed convolutional 7-tap filter consists of a 5-tap plus sign shape spatial component, a nonlinear term and a bias term.
  • the input to the spatial 5-tap component of the filter consists of a center (C) luma sample which is collocated with tire chroma sample to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in Figure 10A.
  • the nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
  • Tire bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
  • Output of the filter is calculated as a convolution between the filter coefficients Ci and the input values and clipped to the range of valid chroma samples:
  • predChromaVal c 0 C + C 1 N + c 2 S + c 3 E + c 4 W + c 5 P + c 6 B
  • the filter coefficients c are calculated by minimising MSE between predicted and reconstructed chroma samples in the reference area.
  • Figure 10B illustrates the reference area which consists of 6 lines of chroma samples above and left of the PU. Reference area extends one PU width to the right and one PU height below the PU boundaries. Area is adjusted to include only available samples. The extensions to the area shown in blue are needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
  • the MSE minimization is performed by calculating autocorrelation matrix for the luma input and a cross-correlation vector between the luma input and chroma output.
  • Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
  • the process follows roughly the calculation of the ALF filter coefficients in ECM, however LDL decomposition was chosen instead of Cholesky decomposition to avoid using square root operations.
  • the proposed approach uses only integer arithmetic.
  • CCCM Usage of the mode is signalled with a CABAC coded PU level flag.
  • CABAC context was included to support this.
  • CCCM is considered a sub-mode of CCLM. That is, the CCCM flag is only signalled if intra prediction mode is LM CHROMA IDX (to enable single mode CCCM) or MMLM CHROMA IDX (to enable multi -model CCCM).
  • the encoder performs two new RD checks in the chroma prediction mode loop, one for checking single model CCCM mode and one for checking multi -model CCCM mode.
  • the neighboring reconstructed luma-chroma sample pairs are classified into one or more sample groups based on the value Threshold, which only considers the luma DC values. That is, a luma-chroma sample pair is classified by only considering the intensity of the luma sample.
  • Threshold which only considers the intensity of the luma sample.
  • luma component usually preserves abundant textures, and the current luma sample may be highly correlated with neighboring luma samples, such inter-sample correlation (AC correlation) may benefit the classification of luma-chroma sample pairs and can bring additional coding efficiency.
  • the CCLM assumes a given chroma sample only correlates to a corresponding luma sample (L0.5, which can be taken as the fractional luma sample position), and a simple linear regression (SLR) with ordinary least squares (OLS) estimation is used to predict the given chroma sample.
  • SLR simple linear regression
  • OLS ordinary least squares
  • one chroma sample may simultaneously correlate to multiple luma samples (AC or DC correlation), so a multiple linear regression (MLR) model may further improve the prediction accuracy.
  • the CCCM mode can enhance the intra prediction efficiency, there is room to further improve its performance. Meanwhile, some parts of the existing CCCM mode also need to be simplified for efficient codec hardware implementations or improved for better coding efficiency. Furthermore, the tradeoff between its implementation complexity and its coding efficiency benefit needs to be further improved.
  • classifiers considering luma edge or AC information is introduced, in contrast to the above implementations wherein only luma DC values are considered.
  • the present disclosure provides exemplary classifiers.
  • the process of generating linear prediction models for different sample groups may be similar as CCLM or MMLM (e.g., via a least square method, or a simplified min-max method, etc.), but with different metrices for classification.
  • Different classifiers may be used to classify the neighboring luma samples (e.g., of the neighboring luma-chroma sample pairs) and/or the luma samples corresponding to chroma samples to be predicted.
  • the luma samples corresponding to the chroma samples may be obtained by a down-sampling operation to match the locations of the corresponding chroma samples for 4:2:0 video sequences.
  • a luma sample corresponding to a chroma sample may be obtained by performing a down-sampling operation on more than one (e.g., 4) reconstructed luma samples corresponding to the chroma sample (e.g., located around the chroma sample).
  • the luma samples may obtained directly from the reconstructed luma samples in a case of 4:4:4 video sequences, for example.
  • the luma samples may be obtained from respective ones of the reconstructed luma samples that are at respective collocated positions for the corresponding chroma samples.
  • a luma sample to be classified may be obtained from one of four reconstructed luma samples corresponding to the chroma sample that is at a left-top position of the four reconstructed luma samples, which may be considered as a collocated position for the chroma sample.
  • a first classifier may classify luma samples according to their edge strengths. For example, one direction (e.g., 0-degree, 45-degree, or 90-degree, etc.) may be selected to calculate the edge strength.
  • a direction may be formed by a current sample and a neighboring sample along the direction (e.g., a neighboring sample located at the right-top of the current sample for 45-dcgrcc).
  • An edge strength may be calculated by subtracting tire neighbor sample from tire current sample.
  • Tire edge strength may be quantized into one of M segments by M-l thresholds, and the first classifier may use M classes to classify the current sample.
  • N directions may be formed by a current sample and N neighboring samples along the N directions.
  • N edge strengths may be calculated by subtracting N neighboring samples from the current sample, respectively. Similarly, if each of the N edge strengths may be quantized into one of M segments by M-l thresholds, then the first classifier may use MN classes to classify the current sample.
  • a second classifier may be used to classify according to a local pattern. For example, a current luma sample Y0 may be compared with its neighboring N luma samples Yi. A score may be added by one if the value of Y0 is greater than that of Yi, otherwise, the score may be reduced by one. The sore may be quantized to form K classes. The second classifier may classify a current sample into one of the K classes. For example, the neighboring luma samples may be obtained from four neighbors that are located above, left, right and below the current luma samples, i.e., without diagonal neighbors.
  • first classifier may be combined with tire existing MMLM threshold-based classifier.
  • instance A of the first classifier may be combined with another instance B of the first classifier, where the instance A and B employ different directions (e.g., employing vertical and horizontal directions, respectively).
  • the proposed cross-component method described in the disclosure can also be applied to other prediction coding tools with similar design spirits.
  • the proposed method can also be applied by dividing luma-chroma sample pairs into multiple sample groups.
  • Y/Cb/Cr also can be denoted as Y/U/V in video coding area. If video data is of RGB format, the proposed method can also be applied by simply mapping YUV notation to GBR, for example.
  • a filter-based linear model which utilizes the MLR model is introduced as follows, to take into account the possibilities that one chroma sample may simultaneously correlate to multiple luma samples.
  • the reconstructed collocated and neighboring luma samples can be used to predict the chroma sample, to capture the inter-sample correlation among the collocated luma sample, neighboring luma samples, and the chroma sample.
  • the reconstructed luma samples are linear weighted and combined with one “offset” to generate the predicted chroma sample (C: predicted chroma sample, L i : i-th reconstructed collocated or neighboring luma samples, ⁇ i : filter coefficients, P : offset, N: filter taps), as shown in the following equation (32-1).
  • the linear weighted plus offset value directly forms the predicted chroma sample (can be low pass, high pass adaptively according to video content), and it is then added by the residual to fonn the reconstructed chroma sample.
  • the offset term can also be implemented as middle chroma value B (512 for 10-bit content) multiplied by another coefficient, as shown in the following equation (32-2).
  • the top and left reconstructed luma and chroma samples can be used to derive or train the FLM parameters ( ⁇ i , ⁇ ).
  • the FLM parameters ⁇ i , ⁇
  • ⁇ i and ⁇ can be derived via OLS.
  • N denotes the number of filter taps applied on luma samples
  • M denotes the total top and left reconstructed luma-chroma sample pairs used for training parameters
  • Lj denotes luma sample with the i-th sample pair and the j-th filter tap
  • C i denotes the chroma sample with the i-th sample pair
  • tire following equations show the derivation of the pseudo inverse matrix A + , and also the parameters.
  • Figure 11 shows an example that N is 6 (6-tap), M is 8, top 2 rows and left 3 columns luma samples and top 1 row and left 1 column chroma samples are used to derive or train the parameters.
  • ELM/FLM/GLM (as discussed below) can be extended straightforwardly to the CfL design in the AVI standard, which transmits model parameters ( ⁇ , ⁇ ) explicitly. For example, (1-tap case) deriving ⁇ and/or ⁇ at encoder at SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels, and signaled to decoder for the CfL mode.
  • a 6-tap luma filter is used for the FEM prediction.
  • training data e.g., top and left neighboring reconstructed luma and chroma samples
  • it may result in overfitting and may not predict well on testing data i.e., the to-be-predicted chroma block samples.
  • different filter shapes may adapt well to different video block content, leading to more accurate prediction.
  • the filter shape and number of filter taps can be predefined or signaled or switched in Sequence Parameter Set (SPS), Adaptation Parameter Set (APS), Picture Parameter Set (PPS), Picture Header (PH), Slice Header (SH), Region, CTU, CU, Subblock, or Sample level.
  • SPS Sequence Parameter Set
  • APS Adaptation Parameter Set
  • PPS Picture Parameter Set
  • PH Picture Header
  • SH Slice Header
  • Region CTU
  • CU Subblock
  • Sample level Sample level
  • a set of filter shape candidates can be predefined, and a selection on the set of filter shape candidates may be signaled or switched in SPS, APS, PPS, PH, SH, Region, CTU, CU, Subblock, or Sample level.
  • Different components e.g., U and V
  • a set of filter shape candidates may be predefined, and a filter shape (1, 2) may denote a 2-tap luma filter, a filter shape (1, 2, 4) may denote a 3-tap luma filter and the like, as shown in Figure 11 .
  • the filter shape selection of U and V components can be switched in PH or in CU or CTU level.
  • N-tap can represent N-tap with or without the offset ⁇ as described herein.
  • the FLM or the CCCM filter shape may include a nonlinear term.
  • the chroma sample value may be predicted using the following equation: predC hromaV al c 0 C + C 1 N + c 2 S + C 3 E + c 4 W + c 5 P + c 6 B, P ( C*C + midVal ) bitDepth wherein tire filter corresponds to weighting coefficients c 0 , Ci,...c 6 for a center (C) luma sample value which is collocated with the chroma sample to be predicted, its above/north (N), below/south (S), right/east (E) and left/west (W) neighbors, a nonlinear term P and a bias term B
  • the values used to derive the nonlinear term P can be a combination of current and neighboring luma samples, but not limited to C*C.
  • P can be derived as following:
  • Q and R can be linear combination of current and neighboring luma samples either in a down-sampled domain (for example, the Q and R being pre-operated luma samples obtained by weighted-average operation) or without any down-sampling process.
  • a set of filter shape candidates can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
  • Different chroma types and/or color formats can have different predefined filter shapes and/or taps.
  • a predefined filter shape (1, 2, 4, 5) may be used for 4:2:0 type-0
  • a predefined filter shape (0, 1, 2, 4, 7) may be used for 4:2:0 type-2
  • a predefined filter shape (1, 4) may be used for 4:2:2
  • a predefined filter shape (0, 1, 2, 3, 4, 5) may be used for 4:4:4, as shown in Figure 12.
  • unavailable luma and chroma samples for deriving the MLR model can be padded from available reconstructed samples. For example, if using a 6-tap (0, 1, 2, 3, 4, 5) filter as in Figure 12, for aCU located at the left picture boundary, tire left columns including samples (0, 3) are not available (out of picture boundary), so samples (0, 3) are repetitive padding from samples (1, 4) to apply tire 6-tap filter. Note that the padding process may be applied in both training data (top and left neighboring reconstructed luma and chroma samples) and testing data (the luma and chroma samples in the CU(s)).
  • One or more shape/number of filter taps may be used for FLM prediction, examples being shown in Figure 16, Figure 17, and Figures 18A to 18B.
  • One or more sets of filter taps may be used for FLM prediction, examples being shown in Figures 19A to 19G.
  • the filter shape candidates can be implicitly derived without explicitly signaling bits.
  • the filter shape candidates can be the filter shape candidates for FLM or GLM (as discussed below).
  • the filter shape candidates can be the cross shape filter for CCCM, any of the filters shown in Figure 16, Figure 17, Figure 18A, Figure 18B, and Figures 19A to 19G, or other filters mentioned in this disclosure.
  • the well-known "N-fold cross-validation” technique in machine learning area can be used for training filter coefficients. The technique divides the available training data into N sets, and use partial sets for training, others for validation.
  • Step 1 determining M filter shape candidates for predicting the chroma sample values of the current CU
  • Step 2 dividing the available L-shaped template area external to the CU into N regions, denoted as R 0 , R 1 , •• • R N-1 , i e., dividing the training data into N sets for N-fold training, wherein the luma sample values and the chroma sample values of the available template area are known values;
  • Step 3 applying each of the M filter shape candidates respectively to a part of the available template area, i.c., one or more regions among all the N regions R 0 , R 1 , . . . R N-1
  • Step 4 deriving M filter coefficient sets corresponding to tire M filter shape candidates, denoted as F o , F 1 , ... F M _ 1 ;
  • Step 5 applying the derived F o , F 1, ... F M-1 filter coefficient sets to another part of the available template area to predict the chroma sample values based on corresponding luma sample values, wherein the another part of tire available template area is different from the part of the available template area mentioned in Step 3 ;
  • Step 6 accumulating, for each of the M filter shapes respectively, the errors between the predicted chroma sample values and the known chroma sample values in the another part of the available template area by Sum of Absolute Difference (SAD), Sum of Squared Difference (SSD), or Sum of Absolute Transformed Difference (SATD), denoted as E 0 , E 1, ... E M-1 ;
  • SAD Sum of Absolute Difference
  • SSD Sum of Squared Difference
  • SATD Sum of Absolute Transformed Difference
  • Step 7 sorting and selecting K smallest errors, denoted as E’ o , E’ 1 , ... E’ K-1 , which correspond to K filter shapes and K filter coefficient sets;
  • Step 8 selecting one filter shape candidate from the K filter shape candidates, to apply to the current CU for chroma prediction. If K is more than 1 , then the decoder may still receive signal from the encoder indicating the applied filter. However, if K is 1, then the signaling can be omitted and the filter with the smallest accumulated error is determined to be the applied filter.
  • Figure 20A and Figure 20B illustrate examples of 2 -fold training for implicitly filter shape derivation.
  • Figure 20A shows that in template area, even- row region R 0 , (yellow) is used for training/deriving 4 filter coefficient sets, and odd-row region R, (red) is used for validation/comparing and sorting costs of 4 filter coefficient sets;
  • Figure 20B shows that in template area, R 0 (yellow) and R 1 (red) are interleaved. It should be understood that R 0 and R 1 can be exchanged in these examples.
  • one of 4 filter shape candidates is to be selected as the applied filter, while the L-shaped template area is divided into even-numbered and odd-numbered rows or columns.
  • the steps include: predefining 4 filter shape candidates for the current CU (for example, 4 filter shape candidates from Figure 16); dividing tire available L-shaped template area (for example, 6 chroma rows and columns for CCCM, note that in CCCM design, each chroma sample involves 6 luma samples for down-sampling) into 2 regions denoted as R 0 , R 1 , wherein, for example, R 0 is composed of the even rows or columns, and R 1 is composed of the odd rows or columns (Figure 20A shows the example that in template area, even-row region R,, is used for training/deriving 4 filter coefficient sets, and odd-row region R 1 is used for validation/comparing and sorting costs of 4 filter coefficient sets); applying 4 filter shape candidates independently to a part of the available template area (for example, region R ): deriving 4 filter coefficient sets
  • Tire steps include: determining 4 filter shape candidates for the current CU; dividing the available L-shaped template area (for example, 6 chroma rows or columns for CCCM) into 2 regions denoted as RQ, RI, wherein the luma samples in RQ and R 1 are for example interleaved as shown in the following tables: or and Figure 20B shows the example that in template area, R 0 and R 1 are interleaved; applying 4 filter shape candidates independently to a part of the available template area (for example, region R 0 ); deriving 4 filter coefficient sets for the 4 filter shapes respectively, denoted as F o , F a , ...
  • F 3 applying the derived F o , F b ... F 3 filter coefficient sets to the other part of the available template area (for example, region R, ) respectively, to predict the corresponding chroma sample values; accumulating, for each of the 4 filter shapes respectively, the errors between the predicted chroma sample values and the known chroma sample values in the other part of the available template area (for example, region R 1 ) by SAD, SSD, or SATD, denoted as E o , E 1 ... E 3 ; sorting and selecting 2 smallest accumulated errors in E o , E 1; ...
  • E 3 denoted as E’ o , E’ 1 , which correspond to 2 filter shapes and 2 filter coefficient sets; and based on the received signal from the encoder, selecting one filter shape candidate in the 2 filter shape candidates, to apply to the current CU for chroma prediction.
  • nonlinear term P may also be included in FLM filters (e g., a 3*2 filter as shown in Figure 1 1) and derived in a similar way as discussed above.
  • the steps of dividing the available L-shaped template area may be omitted.
  • the M filter coefficient sets may be derived based on the sample values from the available template area and then applied back to the available template area respectively, to predict the corresponding chroma sample values for accumulating the errors.
  • an MLR model (linear equations) must be derived at both the encoder and the decoder.
  • several methods are proposed to derive the pseudo inverse matrix A + , or to directly solve the linear equations.
  • Other known methods like Newton's method, Cayley-Hamilton method, and Eigende composition as mentioned in https://en.wikipedia.org/wiki/Invertible_matrix can also be applied.
  • a + can be denoted as A 1 for simplification.
  • the linear equations may be solved as follows
  • linear equations can be solved using Gauss-Jordan elimination, by an augmented matrix [A / n
  • 2x2 and 3x3 examples show 2x2 and 3x3 examples.
  • A can be firstly decomposed by Cholesky-Crout algorithm, leading to one upper triangular and one lower triangular matrices, and one forward substitution plus one backward substitution can be applied in serial to obtain the solution.
  • Cholesky-Crout algorithm leading to one upper triangular and one lower triangular matrices, and one forward substitution plus one backward substitution can be applied in serial to obtain the solution.
  • 3x3 example shows a 3x3 example.
  • Tire default values can be predefined or signaled or switched in SPS/ DPS/VPS/SEl/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels, for example, when predefined l «(bitDepth-l), meanC, meanL, or meanC-meanL (mean current chroma or other chroma, luma values from available, or subset of FLM reconstructed neighboring region).
  • Figure 11 shows a typical case that the FLM parameters are derived using top 2 and/or left 3 luma lines and top 1 and/or left 1 chroma lines.
  • using different region for parameter derivation may bring coding benefit because of different block content and the reconstructive quality of different neighboring samples, as mentioned above.
  • Several ways to choose the applied region for parameter derivation are proposed below:
  • tire FLM derivation can only use top or left luma and/or chroma samples to derive the parameters.
  • FLM L, or FLM T can be predefined or signaled or switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels.
  • the number of extended luma/chroma samples can be predefined, or signaled or switched in SPS/ DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels.
  • Figure 13 shows an illustration of FLM L and FLM T (e.g., under 4 tap).
  • FLM L or FLM T When FLM L or FLM T is applied, only H’ or W’ luma/chroma samples are used for parameter derivation, respectively.
  • different line index can be predefined, or signaled or switched in SPS/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels, to indicate the selected luma- chroma sample pair line. This may benefit from different reconstructive quality of different line samples.
  • FIG 14 shows that similar to MRL, FLM can use different lines for parameter derivation (e.g., under 4 tap).
  • FLM can use light blue/yellow luma and/or chroma samples in index 1.
  • the luma sample values of an external region of the video block to be decoded may be referred to as “the external luma sample values”, and the chroma sample values of the external region may be referred to as “the external chroma sample values” throughout the disclosure.
  • Corresponding syntax may be defined as below in Table 9 for the FLM prediction.
  • FLC represents fixed length code
  • TU represents truncated unary code
  • EGk represents exponential- golomb code with order k, where k can be fixed oorr signaled/ switched in SPS/ DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels
  • SVLC represents signed EGO
  • UVLC represents unsigned EGO.
  • a new method for cross-component prediction is proposed on tire basis of the existing linear model designs, in order to further improve coding accuracy and efficiency. Main aspects of the proposed method are detailed as follows.
  • reference sample s/training template/re constructed neighboring region usually refers to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
  • pre-operations e.g., pre linear weighted, sign, scale/abs, thresholding, ReLU
  • the pre- operations may comprise calculating sample differences based on the luma sample values.
  • the sample differences may be characterized as gradients, and thus this new method is also referred to as gradient linear model (GLM) in certain embodiments.
  • FIGS 15A to 15D show some examples for l-tap/2-tap (with offset) pre-operations, where 2-tap coefficients are denoted as (a, b).
  • each circle as illustrated in Figures 15A to 15D represent an illustrative chroma position in the YUV 4:2:0 format.
  • a luma sample corresponding to a chroma sample may be obtained by performing a down-sampling operation on more than one (e.g., 4) reconstructed luma samples corresponding to the chroma sample (e.g., located around the chroma sample).
  • the chroma position may correspond to corresponding to one or more luma samples comprising a collocated luma sample.
  • the different 1-tap patterns are designed for different gradient directions and using different “interpolated” luma samples (weighting to different luma location) for gradient calculation. For example, one typical filter [1, 0, -1 ; 1, 0, -1] is shown in Figures 15A, 15C and 15D, which represents the following operations:
  • Rec L represents the reconstructed luma sample values and Rec L "(i,j) represents the pre- operated luma sample values.
  • the 1 -tap filters as shown in Figures 15 A, 15C and 15D may be understood as alternatives for the down-sampling filters as used in CCLM (please refer to equations (6)-(7)), with changed filter coefficients.
  • Pre-operations can be according to gradients, edge direction (detection), pixel intensity, pixel variation, pixel variance, Roberts/Prewitt/compass/Sobel/Laplacian operator, high-pass filter (by calculating gradients or other relevant operators), low-pass filter (by performing weighted-average operations)... etc.
  • Tire edge direction detectors listed in the examples can be extended to different edge directions. For example, 1-tap (1, -1) or 2-tap (a, b) applied along different directions to detect different edge gradients.
  • the filter shape/coeff can be symmetric with respect to the chroma position, as the Figures 15A to 15D examples (420 type-0 case).
  • the pre-operation parameters can be fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels. Note in the examples, if multiple coefficients apply on one sample (e.g., -1, 4), then they can be merged (e.g., 3) to reduce operations.
  • the pre-operations may relate to calculating sample differences of the luma sample values.
  • the pre-operations may comprise performing down-sampling by weighted-average operations.
  • the pre -operations can be applied repeatedly. For example, one may apply one template filtering to template to remove outliers using the low-pass smoothing FIR filter [1, 2, l]/4, or [1, 2, 1; 1, 2, l]/8 (i.e., down-sampling) and then apply 1-tap GLM filter to calculate the sample differences to derive the linear model. It may be contemplated that one may also calculate the sample differences and then enabling down-sampling.
  • the pre-operation coefficients (finally applied (e.g., 3), or middle applied (e.g., -1, 4) to per luma sample) can be limited to power -of-2 values to save multipliers.
  • the proposed new method may be reused for/combined with the above discussed CCLM, which utilizing a simple linear regression (SLR) model and using one corresponding luma sample value to predict the chroma sample value.
  • SLR simple linear regression
  • deriving the linear model further comprises deriving a scale parameter ⁇ and an offset parameter ⁇ by using the prc-opcratcd neighboring luma sample values and the neighboring chroma sample values.
  • the linear model may be re-writen as:
  • L here represents “pre-operated” luma samples.
  • the parameter derivation of 1-tap GLM can reuse CCLM design, but taking directional gradient into consideration (may be with high-pass filter).
  • the scale parameter a may be derived by utilizing a division look-up table, as detailed below, to enable simplification.
  • the scale parameter a and the offset paremeter ⁇ may be derived by utilizing the above-discussed min-max method.
  • the scale parameter a and the offset paremeter ⁇ may be derived by: comparing the pre -operated neighboring luma sample values to determine a minimum luma samle value Y A and a maximum luma sample value Y B ; determining corresponding choma samples values X A andX B for the minimum luma samle value Y A and the maximum luma sample value Y B , respectively; and deriving the scale parameter ⁇ and the offset paremeter ⁇ based on the minimum luma samle value Y A , the maximum luma sample value Y B , and the corresponding choma samples values X A and X B according to tire following equations :
  • the encoder may determine a scale adjustment value (for example, “u”) to be signaled in the bitstream and add the scale adjustment value to the derived scale parameter u
  • the decoder may dertermine the scale adjustment value (for example, “u”) from the bitstream and add the scale adjustment value to the derived scale parameter a .
  • the added value arc finally used to predict the internal chroma sample values.
  • the proposed new method may be reused for/combined with FLM, which utilizing a multiple linear regression (MLR) model and using multiple luma sample values to predict the chroma sample value.
  • FLM which utilizing a multiple linear regression (MLR) model and using multiple luma sample values to predict the chroma sample value.
  • MLR multiple linear regression
  • tire linear model may be re-writen as:
  • multiple scale parameters ⁇ and an offset parameter ⁇ may be derived by using the pre-operated neighboring luma sample values and the neighboring chroma sample values.
  • the offset parameter [3 is optional.
  • at least one of the multiple scale parameters a may be derived by utilizing the sample differences.
  • another of the multiple scale parameters ⁇ may be derived by utilizing the down-sampled luma sample value .
  • at least one of the multiple scale parameters a may be derived by utilizing horizontal or vertical sample differences calculated on the basis of down-sampled neighboring luma sample values.
  • the linear model may combine multiple scale parameters ⁇ asscosicated with different pre-opertaions.
  • tire used direction oriented filter shape can be derived at decoder to save bit overhead.
  • a number of directional gradient filters may be applied for each reconstructed luma sample of the L-shaped template of the i-th neighboring row and column of the current block.
  • the filtered values may be accumulated for each direction of the number of directional gradient filters respectively.
  • the accumulated value is an accumulated value of absolute values of corresponding filtered values.
  • the direction of the directional gradient filter for which the accumulated value is the largest may be determined as the derived (luma) gradient direction.
  • HoG Histogram of Gradients
  • the derived direction can be further applied as the direction for predicting chroma samples in the current block.
  • DIMD decoder-side intra mode derivation
  • Step 1 applying 2 kinds of directional gradient filters (3x3 hor/ver Sobel) for each reconstructed luma sample of the L-shaped template of the 2 nd neighboring row and column of the current block;
  • Step 2 accumulating filtered values (gradients) by SAD (sum of absolute differences) for each of the directional gradient filters;
  • Step 3 Build a Histogram of Gradients (HoG) based on the accumulating filtered values
  • Step 4 The largest value in HoG is determined to be the derived (luma) gradient direction, based on which the GLM filter may be determined.
  • the shape candidates are [-1, 0, 1; -1, 0, 1] (horizontal) and [1, 2, 1; -1, -2, -1J (vertical), when the largest value is associated with the horizontal shape, then use shape [-1, 0, 1; -1, 0, 1] for GLM based chroma prediction.
  • the gradient filter used for deriving the gradient direction can be the same or different with the GLM filter in shape.
  • both of the filters may be horizontal [-1, 0, 1; -1, 0, 1], or the two filters may have different shapes, while the GLM filter may be determined based on the gradient filter.
  • the proposed GLM can be combined with above discussed MMLM or ELM.
  • each group can share or have its own filter shape, with syntaxes indicating shape for each group.
  • horiontal grandients grad hor may be classified into a first group, which correspond to a first linear model
  • vertical grandients grad_ver may be classified into a second group, which correspond to a second linear model.
  • the horiontal luma patterns may be generated only once.
  • the neighboring and internal luma-chroma sample pairs of the current video block may be classified into muitplc groups based on one or more thresholds.
  • each neighboring/intemal chroma sample and its corresponding luma sample may be referred to as a luma- chroma sample pair.
  • the one or more thresholds are associated with intensities of neighboring/ internal luma samples. Tn this case, each of the multiple groups corresponds to a respective one of the plurality of linear models.
  • tire following operations may be perforated: classifying neighboring reconstructed luma-chroma sample pairs of the current video block into 2 groups based on T hreshold; deriving different linear models for different groups, wherein the deriving process may be GLM simplified, i.e., with the above pre-ope rations to reduce the number of taps; classifying luma-chroma sample pairs inside the CU (internal luma-chroma sample pairs, wherein each of the internal luma-chroma sample pairs comprises an internal chroma sample value to be predicted with the derived linear model) into 2 groups similarly based on Threshold; applying different linear models to the reconstructed luma samples in different groups; and predicting chroma samples in the CU based on different classified linear models.
  • Threshold may be average value of the neighboring reconstructed luma samples.
  • the number of classes (2) can be extended to multiple classes by increasing the number of Threshold (c.g., equally divided based on min/max of neighboring reconstructed (down-sampled) luma samples, fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels).
  • the filtered values of FLM/GLM apply on neighboring luma samples are used for classification. For example, if 1-tap (1, -1) GLM is applied, average AC values are used (physical meaning).
  • Tire processing can be: classifying neighboring reconstructed luma-chroma sample pairs into K groups based on one or more filter shapes, one or more filtered values, and K-l Threshold Ti; deriving different MLR models for different groups, wherein the deriving process may be GLM simplified, i.e., with the above pre -operations to reduce tire number of taps; classifying luma-chroma sample pairs inside tire CU (internal luma-chroma sample pairs, wherein each of the internal luma-chroma sample pairs comprises an internal chroma sample value to be predicted with the derived linear model) into K groups similarly based on one or more filter shapes, one or more filtered values, and K-l Threshold Ti; applying different linear models to the reconstructed luma samples in different groups; predicting chroma samples in the CU based on different classified linear models.
  • Threshold can be predefined (e g., 0, or can be a table) or signalcd/switchcd in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels).
  • Threshold can be tire average AC value (filtered value) (2 groups), or equally divided based on min/max AC (K groups), of neighboring reconstructed (can be down-sampled) luma samples.
  • one filter shape (e.g., 1-tap) may be selected to calculate edge strengths.
  • the direction is determined as a direction along which a sample difference between samples of the current and N neighboring samples (e.g., all 6 luma samples) is calculated.
  • the filter shape [1 , 0, -1 ; 1, 0, -1]
  • the filter at the upper middle in Figure 15A indicates a horizontal direction since a sample difference may be calculated between samples in the horizontal direction
  • the filter below it (shape [1, 2, 1; -1, -2, -1]) indicates a vertical direction since a sample difference may be calculated between samples in the vertical direction.
  • the positive and negative coefficients in each of the filters enable the calculation of the sample differences.
  • the filter shape used for classification can be the same or different with the filter shape used for MLR prediction.
  • Both and the number of thresholds M-l, the thresholds values Ti can be fixed oorr signaled/ switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
  • other classifiers/combined-classifiers as discussed in ELM can also be used for GLM.
  • a number e.g., predefined 4
  • default values mentioned when discussing tire matrix derivation for the MLR model can be applied for the group parameters ( ⁇ i , ⁇ ). If the corresponding neighboring reconstructed samples are not available with respetto the selected LM modes, default values can be applied. For example, when MMLM L mode is selected but left samples are not valid.
  • the matrix/parameter derivation in FLM requires floating-point operation (e.g., division in closed-form), which is expensive for decoder hardware, so a fixed-point design is required.
  • floating-point operation e.g., division in closed-form
  • CCLM modified luma reconstructed sample generation of CCLM
  • the original CCLM process can be reused for GLM, including fixed-point operation, MDLM downsampling, division table, applied size restriction, min-max approximation, and scale adjustment.
  • 1-tap GLM can have its own configurations or share the same design as CCLM.
  • each group can apply the same or different simplification operation. For example, samples for each group are padded respectively to the target sample number before applying right shift, and then apply the same derivation process, same division table.
  • the method of implicit filter shape derivation can also be used to determine whether to disable downsampled process in CCCM filter coefficients (treat with/without downsampled process as different filter shapes).
  • the 1-tap case can reuse the CCLM design, dividing by n may be implemented by right shift, dividing by A 2 may be implemented by by a LUT
  • the integerization parameters, including n ⁇ , n A1 , n A 2 , r A 1 r A 2 n table invloved in the integerization design of TMS CCEM and intermediate parameters for deriving the linear model (equations (19)-(20)) can be the same as CCLM or have different values, to have more precision.
  • padding method like repetitive/mirror padding with respect to last neighouring samples (rightmost/lowennost) can also be applied.
  • the padding method for GLM can be the same or different with that of CCLM.
  • Division LUT proposed for CCLM/LIC Long Illumination Compensation
  • AVC/HEVC/AV1 /VVC/AVS can be used for GLM division.
  • reusing the LUT in JCTVC-I0166 for bitdcpth 10 case (Tabic 4).
  • the division LUT can be different from CCLM.
  • CCLM uses min-max with DivTable as in equation 5, but GLM uses 32- entries LMS division LUT as in Table 5.
  • the meanL values may not always be positive (e g., using filtcrcd/gradicnt values to classify groups), so sgn(mcanL) needs to be extracted, and use abs(meanL) to look-up tire division LUT.
  • Note division LUT used for MMLM classification and parameter derivation can be different. For example, using lower precision LUT (as the LUT in min- max) for mean classification, and using higher precision LUT (as in the LMS) for parameter derivation.
  • same constraint for luma-chroma latency in dual tree may be applied.
  • the size restriction can be according to the CU area/width/height/depth.
  • the threshold can be predefined or signaled in SPS/DPS/VPS/SEI/APS/PPS/PI I/SI I/Rcgion/CTU/CU/Subblcok/Samplc levels.
  • the predefined threshold may be 128 for chroma CU area.
  • the at least one pre-operation is performed in response to determining that the video block meets an enabling threshold, wherein the enabling threshold is associated with area, width, height or partition depth of the video block. Spesifically, the enabling threshold may define a minium or maximum area, width, height or partition depth of the video block.
  • the video block may comprise a current chroma block and its collocated luma block. It is also proposed to apply the above enabling threshold for the current chroma block and its collocated luma block jointly. For example, the at least one pre-operation is performed in response to determining the enabling threshold is met for both the current chroma block and its collocated luma block.
  • the top template samples generation can be limited to 1 row, to reduce CTU row line buffer storage. Note that only one luma line (general line buffer in intra prediction) is used to make the down-sampled luma samples when the upper reference line is at the CTU boundary.
  • top template can be limited to only use 1 row (but not 2) for parameter derivation (other CUs can still use 2 rows).
  • [00240] For example, take the 1-tap filter [1, 0, -1; 1, 0, -1] shown in Figure 15A as an example for illustration. This filter can be reduced to [0, 0, 0; 1, 0, -1], i.e., only use below row coefficients. Alternatively, the limited upper row luma samples can be padded (repetitive, mirror, 0, meanL, meanC... etc.) from the bellow row luma samples.
  • the corresponding chroma sample values may refer to corresponding top 4 rows of neighboring chroma sample values (for example, for the YUV 4:4:4 format).
  • the corresponding chroma sample values may refer to corresponding top 2 rows of neighboring chroma sample values (for example, for the YUV 4:2:0 format).
  • the top 4 rows of neighboring luma sample values and corresponding chroma sample values may be divided into two regions - a first region comprising valid sample values (for example, the one nearest row of luma sample values and corresponding chroma sample values) and a second region comprising invalid sample values (for example, tire other three rows of luma sample values and corresponding chroma sample values). Then coefficients of the filter corresponding to sample positions not belonging to the first region may be set as zeros, such that only sample values from the first region are used for calculating the sample differences.
  • the filter [1, 0, -1; 1, 0, -1] can be reduced to [0, 0, 0; 1, 0, -1],
  • the nearest sample values in the first region may be padded to the second region, such that the padded sample values may be used to calculate the sample differences.
  • the fusion design can be reused or have its own way. Multiple (two or more) weights can be applied to generation the final predictor. For example. pred — (wO * predO + wl * predl + (1 « (shift — 1))) » shift wherein predO is the predictor based on non-LM mode, while predl is the predictor based on GLM, or pred0 is the predictor based on one of CCLM (including all MDLM/MMLM), while predl is the predictor based on GLM, or pred0 is the predictor based on GLM, while predl is the predictor based on GLM.
  • Different I/P/B slices can have different designs for weights, wO and wl, depending on if neighboring blocks is coded with CCLM/GLM/other coding mode or the block size/width/height.
  • GLM has good gain complexity trade-off since it can reuse the existing CCLM module without introducing additional derivation.
  • Such 1-tap design can be extended or generalized further according to one or more aspects of the present disclosure.
  • one single corresponding luma sample L may be generated by combining collocated luma sample and neighboring luma samples.
  • the combination may be a combination of different linear filters, e.g., a combination of a high-pass gradient filter (GLM) and a low-pass smoothing filter (e.g., [1, 2, 1; 1, 2, l]/8 FIR down-sampling filtcrthat may be generally used in CCLM); and/or a combination of a linear filter and a non-linear filter (e.g., with power of n, e.g., L n , n can be positive, negative, or +- fractional number (e.g., +1/2, square root or +3, cube, which can rounding and rescale to bitdepth dynamic range)).
  • LLM high-pass gradient filter
  • a low-pass smoothing filter e.g., [1, 2, 1; 1, 2, l]/8 FIR down-sampling filtcr that may be generally used in
  • the combination may be repeatedly applied.
  • a combination of GLM and [1, 2, 1; 1, 2, l]/8 FIR may be applied on the reconstructed luma samples, and then a non-linear power of 1/2 may be applied.
  • the nonlinear filter may provide options when linear filter cannot handle the luma-chroma relationship efficiently.
  • nonlinear term can be predefined oorr signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels.
  • tire GLM may refer to Generalized Linear Model (may be used to generate one single luma sample linearly or nonlinearly, and the generated one single luma sample may be fed into the CCLM linear model to derive parameters of the CCLM linear model), linear/nonlinear generation may be called general patterns. Different gradient or general patterns can be combined to form another pattern.
  • Generalized Linear Model may be used to generate one single luma sample linearly or nonlinearly, and the generated one single luma sample may be fed into the CCLM linear model to derive parameters of the CCLM linear model
  • linear/nonlinear generation may be called general patterns. Different gradient or general patterns can be combined to form another pattern.
  • a gradient pattern may be combined with a CCLM down-sampled value; a gradient pattern may be combined with a non-linear L 2 value; a gradient pattern may be combined with another gradient pattern, the two gradient patterns to be combined may have different directions or the same direction, e.g., [1, 1, 1; -1, -1, -1] and [1, 2, 1; -1, -2, -1], which both have a vertical direction, may be combined, also [1, 1, 1; -1, -1, -1] and [1, 0, -1; 1, 0, -1], which have a vertical and horizontal directions, may be combined, as shown in Figures 15A to 15D.
  • the combination may comprise plus, minus, or linear weighted.
  • pre-operations can be applied repeatedly and GLM can be applied on pre linear weighted/pre-operated samples.
  • GLM can be applied on pre linear weighted/pre-operated samples.
  • one template filtering can be applied to luma samples, in order to remove outliers using the low-pass smoothing FIR filter [1, 2, 1; 1, 2, 1 ]/8 (i.e., CCLM down-sampling smoothing filter) and to generate down-sampled luma samples (one down- sampled luma sample corresponding to one chroma sample).
  • 1-tap GLM can be applied on smoothed down-sampled luma samples to derive the MLR model.
  • Some gradient filter patterns such as 3x3 Sobel or Prewitt operators, can be applied on down-sampled luma samples.
  • the following table shows some of the gradient filter patterns.
  • the gradient filter patterns can be combined with other gradient/general filter patterns in the down-sampled luma domain.
  • a combined filter pattern may be applied on down- sampled luma samples.
  • the combined filter pattern may be derived hy performing addition or subtraction operations to respective coefficients of the gradient filter patter and a DC/low-pass based filter pattern, such as filter pattern [0, 0, 0; 0, 1, 0; 0, 0, 0], or [1, 2, 1; 2, 4, 1; 1, 2, 1],
  • the combined filter pattern is derived by performing addition or subtraction operations to a coefficient of the gradient filter pattern and a non-linear value such as L 2 .
  • the combined filter pattern is derived by performing addition or subtraction operations to respective coefficients of the gradient filter pattern and another gradient filter pattern having a different or the same direction.
  • the combined filter pattern is derived by performing linear weighted operations to the coefficients of the gradient filter pattern.
  • GEM applied on down-sampled domain can fit in CCCM framework but may sacrifice high frequency accuracy since low -pass smoothing is applied before applying GEM.
  • GLM serves as input of CCCM
  • CCCM applies luma down-sampling before convolution as with
  • CCLM CCLM.
  • the reconstructed luma samples arc down-sampled to match the lower resolution chroma grid when chroma sub-sampling is used.
  • 1-tap GLM can also be taken as changing CCLM down- sample filter coefficients (e.g., from [1, 2, 1; 1, 2, 1]/ 8 to [1, 2, 1, -1, -2, -1], i.e., from low-pass to high- pass)
  • the GLM can serve as the input of CCCM
  • the gradient filter of GLM replaces luma down-sampling filter ([1, 2, 1; 1, 2, 1]/ 8) with gradient-based coefficients (e.g., [1, 2, 1, -1, -2, -1).
  • CCCM operation becomes “linear/non-linear combination of gradients”, as shown by the following equation:
  • predChromaVal c 0 C + C 1 N + c 2 S + c 3 E + c 4 W + c 5 P + c 6 B
  • C, N, S, E, W, P are gradients of current or neighboring samples (compared to original down- sample values for CCCM) .
  • Related GLM methods described in this disclosure can be applied in the same way before entering CCCM convolution, e.g., classification, separate Cb/Cr control, syntax, pattern combining, PU size restriction etc.
  • the gradient-based coefficients replacement can apply to specific CCCM taps. Also, not only high-pass but low-pass/band-pass/all-pass coefficients replacement can be used. The replacement can be combined with FLM/CCCM shape switch discussed above (leading to different number of taps). For example, gradient patterns in Figures 15A to 15D can be used for replacement.
  • the operations for applying GLM as input of CCCM includes: predefining one or more coefficients candidates for CCCM/FLM down-sampling; determining CCCM/FLM filter shape and number of filter taps for this CU; applying different CCLM down-sample coefficients to different filter taps, wherein the coefficients can be high-pass filters (GLM), or low-pass/band-pass/all-pass filters; generating the down-sampled luma samples (using the applied coefficients) for CCCM input samples; and feeding the generated down-sampled luma samples into CCCM process.
  • GLM high-pass filters
  • Which CCCM/FLM taps to apply the coefficients replacement can be predefined (as above examples) or signaled/switched in
  • the coefficients candidate for CCCM/FLM down-sampling can be predefined or signaled/switched in
  • Candidate filters are: [1, 2, 1; 1, 2, 1J/8, [1, 0, -1; 1, 0, -1 J, [1, 2, 1; -1, -2, -1], [0, 1, 1; 0, 1,
  • predChromaVal c 0 C + C 1 W + c 2 E + c 3 P + c 4 B, i.e., horizontal minus sign shape, 5-tap;
  • C uses switching down-sampling filters among 5 candidate filters;
  • W, E use switching down-sampling filters among 3 candidate filters: [1, 2, 1; 1, 2, l]/8, [0, 1, 1; 0, 1, 1], and [1, 1, 0; 1, 1, OJ; and
  • P uses filter [1 , 2, 1 ; 1 , 2, 1 J/8, keeping original CCLM down-sampling filter.
  • one or more syntaxes may be introduced to indicate information on the GLM.
  • GLM syntaxes is illustrated in the following Table 10.
  • EGk exponential-golomb code with order k, where k can be fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
  • the GLM on/off control for Cb/Cr components may be jointly or separately.
  • 1 flag may be used to indicate if GLM is active for this CU. If active, 1 flag may be used to indicate if Cb/Cr are both active. If not both active, 1 flag to indicate cither Cb or Cr is active.
  • Filter index/gradient (general) pattern may be signaled separately when Cb and/or Cr is active. All flags may have its own context model or be bypass coded.
  • whether to signal GLM on/off flags may depend on luma/chroma coding modes, and/or CU size.
  • GLM may be inferred off when MMLM or MMLM L or MMLM T is applied; when CU area ⁇ A, where A ccaann be predefined oorr signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels; If combined with CCCM, GLM may be inferred off when CCCM is on.
  • CCCM requires to process down-sampled luma reference values before the calculation of model parameters and applying the CCCM model, which burden decoder processing cycles.
  • CCCM without down-sampling process is proposed, including utilizing non-down-sampled luma reference values and/or different selection of non-down-sampled luma reference.
  • One or more filter shapes may be used for the purpose as described below.
  • mcthods/cxamplcs in this section can be combined/ reused with the methods mentioned above, including but not limited to methods related to classification, filter shape, matrix derivation (with special handling), applied region, and syntax.
  • methods/examples listed in this section can also be applied with the methods/examples above (more taps), to have a better perfonnance with certain complexity trade-off.
  • reference samples/training templates/reconstructed neighboring regions usually refer to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
  • tire convolutional 7-tap filter may include a 5-tap plus sign shape spatial component, a nonlinear term and a bias term.
  • the input to the spatial 5-tap component of the filter includes a center (C) non-downsamplcd luma sample which is collocated with the chroma sample to be predicted and its non-downsampled above or north (N), below or south (S), left or west (W) and right or east (E) neighbors as illustrated in Figure 10A.
  • the nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
  • the bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
  • Output of the filter is calculated as a convolution between the filter coefficients Ci and the input values and clipped to the range of valid chroma samples:
  • predChromaVal c 0 C + c 1 N + c 2 S + c 3 E + c 4 W + c 5 P + c 6 B
  • the convolutional 7-tap filter may include a 6-tap rectangle shape spatial component and a bias term.
  • the input to the spatial 6-tap component of the filter includes a center (b) non-downsamplcd luma sample which is collocated with the chroma sample to be predicted and its non-downsampled below-left or south-west (d), below-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16.
  • the bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
  • Output of the fdter is calculated as a convolution between the fdter coefficients c i and the input values and clipped to the range of valid chroma samples:
  • predChromaVal c o a + C 1 b + c 2 c + c 3 d + c 4 e + c 5 f + c 6 B
  • the convolutional 8-tap filter may consist of a 6-tap rectangle shape spatial component, a nonlinear term and a bias term.
  • Tire input to the spatial 6-tap component of the filter consists of a center (b) non-downsampled luma sample which is collocated with the chroma sample to be predicted and its non-downsamplcd below-left or south-west (d), below-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16.
  • the nonlinear term P is represented as power of two of the center luma sample (b) and scaled to the sample value range of the content: [00297] P ( b*b + midVai ) » bitDepth
  • the bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
  • Output of the filter is calculated as a convolution between the filter coefficients c t and the input values and clipped to the range of valid chroma samples:
  • prcdChromaVal c o a + Cjb + c 2 c + c 3 d + c 4 c + c 5 f + c 6 P+ c 7 B
  • One or more shape/number of filter taps may be used for CCCM prediction, as shown in
  • Figure 16 Figure 17, and Figures 18A to 18B.
  • One or more sets of filter taps may be used for FLM prediction, examples being shown in Figures 19A to 19G.
  • the selected luma reference values are non- down-sampled.
  • One or more predefined shape/number of filter taps may be used for CCCM prediction based on previous decoded information on TB/CB/slice/picture/sequence level.
  • a multiple tap filter can fit well on training data (i.e., top/left neighboring reconstructed luma/chroma samples), in some cases, that training data do not capture full characteristics of the testing data, and it may result in overfitting and may not predict well on the testing data (i.e., the to-be-predicted chroma block samples).
  • different filter shapes may adapt well to different video block content, leading to more accurate prediction.
  • the filter shape/number of filter taps can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels.
  • a set of filter shape candidates can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels.
  • the filter shape selection of U/V components can be switched in PH or in CU/CTU levels. Note thatN-tap can represent N-tap with or without the offset ⁇ as described above.
  • Different chroma typcs/color formats can have different predefined filter shapcs/taps. For example, using predefined filter shape for 420 type-0: (1, 2, 4, 5), 420 type-2: (0, 1, 2, 4, 7), 422: (1, 4), 444: (0, 1, 2, 3, 4, 5) as shown in Figure 12.
  • the unavailable luma/chroma samples for deriving the MLR model can be padded from available reconstructed samples. For example, if using a 6-tap (0, 1, 2, 3, 4, 5) filter as in Figure 12, for a CU located at the left picture boundary, the left columns including (0, 3) are not available (out of picture boundary), so (0, 3) are repetitive padding from (1, 4) to apply the 6-tap filter. Note the padding process applied in both training data (top/left neighboring reconstructed luma/chroma samples) and testing data (the luma/chroma samples in the CU).
  • the unavailable luma/chroma samples for deriving the MLR model can be skipped and not used. Then the padding process is not needed for the unavailable luma/chroma samples.
  • CCCM requires to process LDL decomposition to calculate the model parameters of CCCM model, avoiding using square root operations and only integer arithmetic is required.
  • LDL decomposition may also be used in ELM/FLM/GLM, as described above.
  • reference samples/training templates/reconstmcted neighboring regions usually refer to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
  • One or more reference samples may be used for CCLM/MMLM prediction, i.c., as shown in Figure 10B, the reference area may be the same as the reference area in CCCM. Different reference areas may be used for CCLM/MMLM prediction based on previous decoded information on TB/CB/slice/picture/sequence level.
  • training data with multiple reference areas can fit well on the calculation of model parameters, in some cases that training data do not capture full characteristics of testing data, it may result in overfitting and may not predict well on testing data (i.e., the to-be-predicted chroma block samples). Also, different reference areas may adapt well to different video block content, leading to more accurate prediction. To address this issue, the reference shapc/numbcr of reference areas can be predefined or signaled/ switched in
  • a set of reference area candidates ccaann be predefined or signaled/switched in
  • SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblock/Samplc levels may have different reference area switch control.
  • the reference area selection of U/V components can be switched in PH or in CU/CTU levels.
  • Different chroma types/color formats can have different predefined reference areas.
  • the unavailable luma/chroma samples for deriving the MLR model can be padded from available reconstructed samples, the padding process being applied in both training data (top/lcft neighboring reconstructed luma/chroma samples) and testing data (the luma/chroma samples in tire CU).
  • the unavailable luma/chroma samples for deriving the MLR model can be skipped and not used. Then the padding process is not needed for the unavailable luma/chroma samples.
  • FLM requires to process down-sampled luma reference values and calculate model parameters, which burden decoder processing cycles, especially for small blocks.
  • FLM with minimal samples restriction is proposed, for example, FLM is only used for samples larger than predefined number, such as 64, 128.
  • predefined number such as 64, 128.
  • One or more different restnetions may be used for the purpose, for example, FLM is only used in single model for samples larger than a predefined number, such as 256, and FLM is only used in multi model for samples larger than a predefined number, such as 128.
  • the number of predefined minimal samples for single model may be larger than or equal to the number of predefined minimal samples for multi model.
  • FLM/GLM/ELM/CCCM is only used in single model for samples larger than or equal to a predefined number, such as 128, and FLM/GLM/ELM/CCCM is only used in multi model for samples larger than or equal to a predefined number, such as 256.
  • the number of predefined minimal samples for FLM/GLM/ELM may be larger than or equal to the number of predefined minimal samples for CCCM.
  • CCCM is only used in single model for samples larger than or equal to a predefined number, such as 0, and CCCM is only used in multi model for samples larger than or equal to a predefined number, such as 128.
  • FLM is only used in single model for samples larger than or equal to a predefined number, such as 128, and FLM is only used in multi model for samples larger than or equal to a predefined number, such as 256.
  • two models of multiple modes of FLM/GLM/ELM/CCCM/CCLM may be further combined to bring additional coding efficiency. For example, first the parameters of CCCM(c 1 ) and GLM(a, b) are derived separately, then the weights (w i ) between CCCM and GLM are derived by linear regression, finally the weighted CCCM and GLM are used to predict chroma samples from reconstructed luma samples.
  • GLMpredChromaVal a*lumaVal + b
  • CCCMpredChromaVal c 0 *C + c 1 *N + c 2 *S + c 3 *E + c 4 *W + c 5 *P + c 6 *B
  • FinalpredChromaVal w 0 * GLMpredChromaVal + Wi*CCCMpredChromaVal
  • the mode flag can be derived at decoder to save bit overhead.
  • Figure 20A shows the example that in template area, even-row area R 0 is used for training/deriving 3 filter coefficient sets, and odd-row area R 1 is used for validation/comparing and sorting costs of 3 filter coefficient sets.
  • the convolutional 8-tap filter may include a 6-tap rectangle shape spatial component, a downsampled luma sample and a bias term.
  • Tire input to the spatial 6-tap component of the filter includes a center (b) non-downsampled luma sample which is collocated with the chroma sample to be predicted and its non-downsampled below-left: or south-west (d), bclow-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16 and a center (C) downsampled luma sample which is collocated with the chroma sample to be predicted.
  • the bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
  • reference samples/training template/reconstructed neighbouring region usually refers to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
  • Figure 21 illustrates a workflow of a method 2100 for decoding video data according to one or more aspects of tire present disclosure
  • tire method 2100 may be perfonned by a decoder.
  • a video block may be obtained from a bitstream.
  • a block-based video decoder may receive and process the bitstream to obtain the video block, as described with reference to Figure 3.
  • internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block may be obtained by the decoder.
  • the external region of the video block may comprise one or more rows and/or columns next to the video block. The rows and/or columns may be included in the reconstructed area.
  • a set of weighting coefficients corresponding to a filter shape may be determined by using values based on the external luma sample values and the external chroma sample values.
  • the filter shape and the set of weighting coefficients may correspond to a CCCM filter and may be configured for predicting a chroma sample value based on a plurality of corresponding luma sample values.
  • Tire values used for calculating tire set of weighting coefficients may comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values.
  • non-downsampled luma sample values and downsampled luma sample values may be combined to adapt varying properties of an image.
  • a luma sample collocated with the chroma sample may be referred to as a center luma sample herein, and both downsampled and non-downsampled values associated with the center luma sample may be used to calculate the set of weighting coefficients of the CCCM filter.
  • the downsampled value associated with the center luma sample may be obtained by applying any suitable filter on neiboring luma sample values of the center luma sample.
  • the information of non-downsampled luma sample values may be more helpful to predict the corresponding chroma sample value, and weighting coefficients of the CCCM filter may be trained at the decoder over the non-downsampled luma sample values, with or without the offset (B) and/or nonlinear term (P).
  • any non-downsampled luma sample values of neiboring luma samples may be used to derive the weighting coefficients of the CCCM filter.
  • Tire neiboring luma samples may be located around a center luma sample for the chroma sample.
  • internal chroma sample values of the video block may be predicted using the filter shape and the calculated set of weighting coefficents based on the internal luma sample values of the video block.
  • the video block may be decoded using the predicted internal chroma sample values to obtain decoded video block.
  • the decode video block may be presented on a screen or used for further process, such as editing.
  • Figure 23 illustrates a workflow of a method 2300 for encoding video data according to one or more aspects of the present disclosure.
  • the method 2300 may be a counterpart to the method 2100 and may be performed by an encoder. Steps 2320, 2330, 2340 of method 2300 may correspond to steps 2120, 2130, 2140 of method 2100.
  • a video block may be obtained by an encoder, as described with reference to Figure 1.
  • a bitstream comprising encoded video block may be generated at the encoder by using the predicted internal chroma sample values.
  • the compressed bitstream may be communicated to the decoder through any suitable medium, such as wireless or wired network, or Blu-ray disc.
  • Figure 22 illustrates a workflow of a method 2200 for decoding video data according to one or more aspects of the present disclosure, the method 2200 may be performed by a decoder.
  • a video block may be obtained from a bitstream.
  • a block-based video decoder may receive and process the bitstream to obtain the video block, as described with reference to Figure 3.
  • step 2220 internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block may be obtained at the decoder.
  • Tire first external region may be included in the reconstructed region and may be part of the reconstructed region.
  • a plurality of sets of weighting coefficients corresponding to a plurality of filters may be obtained based on the external luma sample values and the external chroma sample values of the first external region.
  • each of the plurality of the filters may be trained indepenetly over the first external region, to obain respective sets of weighting coefficients of the plurality of the filters.
  • each of the plurality of the filters may be any of FLM, CCCM, GLM, ELM, CCLM, or any combination thereof.
  • At step 2240, at least one of the plurality of the filters may be applied to predict internal chroma sample values of the video block.
  • the determination of which one or more of plurality of filters to be used for the prediction of the internal chroma sample may be based on an explicit signaling transmitted by an encoder, or inferred by the decoder without additional signaling overhead.
  • the decoder may reveive a signaling in the bitstream indicative of the plurality of filters to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values.
  • the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2230 may be used to predict the internal chroma sample values of the video block.
  • the decoder may evaluate the performance of the the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2230, and select at least one filter of the plurality of the filters with the highest performance to use.
  • a second external region maybe obtained at the decoder to serve as a dataset for testing or evaluation.
  • the second external region used for evaluation may be different from the first external region used for derivation of the sets of weighting coefficients.
  • One of the plurality of the filters having the smallest prediction error may be selected as the applied filter.
  • a number of K filters of the pluaralty of filters having K sandiest prediction errors may be selected as the applied filters.
  • Weights (e g., w,) for the selected K filters may be trained in a similar way as the derivation of the sets of the weighting coefficients of the plurality of filters, such as by using tire first external region or other external regions.
  • the first external region and the second external region may have any shape, e.g., one or more column and/or raw, or partial column and/or raw in reconstructed region and have any number of samples.
  • the first external region and/or the second external region having a small number of samples may reduce the computation burden on the decoder.
  • the video block may be decoded using the predicted internal chroma sample values to obtain decoded video block.
  • the decode video block may be presented on a screen or used for further process, such as editing.
  • Figure 24 illustrates a workflow of a method 2400 for encoding video data according to one or more aspects of the present disclosure.
  • the method 2400 may be a counterpart to the method 2200 and may be performed by an encoder.
  • Steps 2420, 2430, 2440 of method 2400 may correspond to steps 2220, 2230, 2240 of method 2200.
  • a video block may be obtained by an encoder, as described with reference to Figure 1.
  • a bitstream comprising encoded video block may be generated at the encoder by using the predicted internal chroma sample values.
  • the compressed bitstream may be communicated to the decoder through any suitable medium, such as wireless or wired network, or Blu-ray disc.
  • the encoder may evaluate the performance of the the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2430, and select a number K of filters of the plurality of the filters to use based on the evaluated performance, e.g., by determining N filters with smallest prediction errors and selecting K filters to be combined from the N filters.
  • Weights (e.g., w;) for the selected K filters may be trained in a similar way as the derivation of the sets of the weighting coefficients of the plurality of filters, such as by using the first external region or other external regions.
  • the encoder may generate a signaling indicative of the selected K filters and send the signaling to the decoder via the bitstream generated at step 2450.
  • the encoder may generate no signaling indicative of which one or more filters to use in the cross-component prediction, instead, the one or more filters to be used can be derived at the decoder, such as by calculating perspective prediction errors for each of the plurality of filters with pre-defined filter shapes, and sorting the prediction errors to select the best one or more filter with smallest prediction error(s).
  • the one or more filter of the plurality of filters to be used in cross-component prediction may be selected based on other critierions, such as complexity, a trade off between a prediction error and complexity, or compatibility, without causing a departure of the present disclosure.
  • FIG. 25 illustrates an exemplary computing sy stem 2500 according to one or more aspects of the present disclosure.
  • the computing system 2500 may comprise at least one processor 2510.
  • the computing system 2500 may further comprise at least one storage device 2520.
  • Tire storage device 2520 may store computer-executable instructions that, when executed, cause the processor 2510 to perform the steps of methods described above.
  • the processor 2510 may be a general -purpose processor, or may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the storage device 2520 may store the input data, output data, data generated by processor 2510, and/or instructions executed by processor 2510.
  • the storage device 2520 may store computer-executable instructions that, when executed, cause the processor 2510 to perform any operations according to the embodiments of the present disclosure.
  • a non-transitory computer-readable storage medium comprising a plurality of programs, for example, in the storage device 2520, executable by the processor 2510 in the computing environment, for performing the above-described methods and/or storing a bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above.
  • the plurality of programs may be executed by the processor 2510 in the computing environment to receive (for example, from the video encoder in FIG.
  • a bitstream or data stream including encoded video information for example, video blocks representing encoded video frames, and/or associated one or more syntax elements, etc.
  • the plurality of programs may be executed by the processor 2510 in tire computing environment to perfomi the encoding method described above to encode video information (for example, video blocks representing video frames, and/or associated one or more syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 2510 in the computing environment to transmit the bitstream or data stream (for example, to the video decoder in FIG. 3).
  • the non-transitory computer- readable storage medium may have stored therein a bitstream or a data stream comprising encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements etc.) generated by an encoder (for example, the video encoder in FIG. 1) using, for example, the encoding method described above for use by a decoder (for example, the video decoder in FIG 3) in decoding video data.
  • the non-transitory computer-readable storage medium may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device or tire like.
  • bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above.
  • a bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • the computing environment may be implemented with one or more ASICs, DSPs, Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), FPGAs, GPUs, controllers, micro-controllers, microprocessors, or other electronic components, for performing the above methods.
  • ASICs application-specific integrated circuits
  • DSPs Digital Signal Processing Devices
  • PLDs Programmable Logic Devices
  • FPGAs field-programmable Logic Devices
  • GPUs GPUs
  • controllers micro-controllers
  • microprocessors microprocessors, or other electronic components, for performing the above methods.
  • modules in the methods described above may be implemented in various approaches. These modules may be implemented as hardware, software, or a combination thereof. Moreover, any of these modules may be further functionally divided into sub- modules or combined together.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present disclosure provides a method for decoding video data, comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on the external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on the internal luma sample values; and obtaining decoded video block using the predicted internal chroma sample values.

Description

METHOD AND APPARATUS FOR CROSS-COMPONENT PREDICTION FOR VIDEO CODING
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims tire benefits of U.S. Provisional Application No. 63/411,325 filed on Sep. 29, 2022. The entire contents thereof are incorporated herein by reference in its entirety.
FIELD
[0002] Aspects of the present disclosure relate generally to imagc/vidco coding and compression, and more particularly, to methods and apparatus for cross-component prediction technology.
BACKGROUND
[0003] Various video coding techniques may be used to compress video data. Video coding is perforated according to one or more video coding standards. For example, video coding standards include versatile video coding (VVC), high-efficiency video coding (H.265/HEVC), advanced video coding (H 264/AVC), moving picture expert group (MPEG) coding, or the like. Video coding generally utilizes prediction methods (e.g., inter-prediction, intra-prediction, or the like) that take advantage of redundancy present in video images or sequences. An important goal of video coding techniques is to compress video data into a form that uses a lower bit rate, while avoiding or minimizing degradations to video quality.
SUMMARY
[0004] The following presents a simplified summary of one or more aspects according to the present disclosure in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
[0005] According to one aspect of the present disclosure, there is provided a method for decoding video data, comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on the external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non- downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on the internal luma sample values; and obtaining decoded video block using the predicted internal chroma sample values.
[0006] According to another aspect of the present disclosure, there is provided a method for decoding video data, comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and obtaining decoded video block using the predicted internal chroma sample values.
[0007] According to another aspect of the present disclosure, there is provided a method for encoding video data, comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on tire external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on tire internal luma sample values; and generating a bitstream comprising encoded video block by using the predicted internal chroma sample values.
[0008] According to another aspect of the present disclosure, there is provided a method for encoding video data, comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and generating a bitstream comprising encoded video block by using the predicted internal chroma sample values.
[0009] According to another aspect of the present disclosure, there is provided a computer system, comprising: one or more processors; and one or more storage devices storing computer-executable instructions that, when executed, cause the one or more processors to perform the operations of the method of the present disclosure.
[0010] According to another aspect of the present disclosure, there is provided a computer program product, storing computer-executable instructions that, when executed, cause one or more processors to perform the operations of the method of the present disclosure.
[0011] According to another aspect of the present disclosure, there is provided a computer readable storage medium, storing instructions that, when executed by a computing device having one or more processors, cause the one or more processors to perform the operations of the decoding method of the present disclosure and storing a bitstream to be decoded by the decoding method of the present disclosure.
[0012] According to another aspect of the present disclosure, there is provided a computer readable storage medium, storing instructions that, when executed by a computing device having one or more processors, cause the one or more processors to perform the operations of the encoding method of the present disclosure and a bitstream generated by tire encoding method of the present disclosure.
[0013] According to another aspect of the present disclosure, there is provided a computer readable medium storing a bitstream, wherein the bitstream is to be decoded by performing the operations of the method of the present disclosure.
[0014] According to another aspect of the present disclosure, there is provided a computer readable medium storing a bitstream, wherein the bitstream is obtained by performing the operations of the method of the present disclosure.
BRIEF DESCRIPTION OF THE DRAWINGS [0015] The disclosed aspects will hereinafter be described in connection with the appended drawings that arc provided to illustrate and not to limit the disclosed aspects.
[0016] Figure 1 illustrates a block diagram of a generic block -based hybrid video encoding system.
[0017] Figures 2A to 2E illustrate five splitting types, comprising quaternary partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning.
[0018] Figure 3 illustrates a general block diagram of a block-based video decoder.
[0019] Figure 4 illustrates an example of the locations of the left and above samples and the sample of the current block involved in the CCLM mode.
[0020] Figures 5 A to 5C illustrate examples of deriving CCLM parameters.
[0021] Figure 6 illustrates an example of classifying tire neighboring samples into two groups based on the value Threshold.
[0022] Figure 7 illustrates an example of classifying the neighboring samples into two groups based on a knee point.
[0023] Figures 8A and 8B illustrate the effect of the scale adjustment parameter “u”.
[0024] Figure 8C illustrates the collocated reconstructed luma samples.
[0025] Figure 8D illustrates the neighboring reconstructed samples. [0026] Figures 8E to 8H illustrate the steps of decoder-side intra mode derivation.
[0027] Figure 9 illustrates an example of four reference lines neighboring to a prediction block.
[0028] Figure 10A illustrates an exemplary pattern for convolutional cross-component model
(CCCM).
[0029] Figure 10B illustrates an exemplary reference area which consists of 6 lines of chroma samples above and left of the PU.
[0030] Figures 10C and 10D illustrate schematic diagrams for correlation among a chroma sample and one or more luma samples.
[0031] Figure 11 illustrates an example that 6-tap is used in multiple linear regression (MLR) model according to one or more aspects of the present disclosure.
[0032] Figure 12 illustrates exemplary different filter shapes and/or numbers of taps according to one or more aspects of the present disclosure.
[0033] Figure 13 illustrates an example in which FLM can only use top or left luma and/or chroma samples (extended) for parameter derivation.
[0034] Figure 14 illustrates an example in which FLM can use different lines for parameter derivation.
[0035] Figures 15A to 15D illustrate some examples for l-tap/2-tap pre-operations.
[0036] Figure 16 illustrates examples of different shape/number of filter taps.
[0037] Figure 17 illustrates examples of different shape/number of filter taps.
[0038] Figures 18A and 18B illustrate examples of different shape/number of filter taps.
[0039] Figures 19A to 19G illustrate examples of different set of filter taps.
[0040] Figure 20A and Figure 20B illustrate examples of 2 -fold training for implicitly filter shape derivation.
[0041] Figure 21 illustrates a workflow of a method for decoding video data according to one or more aspects of the present disclosure.
[0042] Figure 22 illustrates a workflow of a method for decoding video data according to one or more aspects of the present disclosure.
[0043] Figure 23 illustrates a workflow of a method for encoding video data according to one or more aspects of the present disclosure.
[0044] Figure 24 illustrates a workflow of a method for encoding video data according to one or more aspects of the present disclosure.
[0045] Figure 25 illustrates an exemplary computing system according to one or more aspects of the present disclosure.
DETAILED DESCRIPTION
[0046] Reference will now be made in detail to specific implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details arc set forth in order to assist in understanding the subject matter presented herein. But it will be apparent to one of ordinary skill in the art that various alternatives may be used without departing from tire scope of claims and the subject matter may be practiced without these specific details. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein can be implemented on many types of electronic devices with digital video capabilities. [0047] It should be illustrated that the terms “first,” “second,” and the like used in the description, claims of the present disclosure, and the accompanying drawings are used to distinguish objects, and not used to describe any specific order or sequence. It should be understood that the data used in this way may be interchanged under an appropriate condition, such that the embodiments of the present disclosure described herein may be implemented in orders besides those shown in the accompanying drawings or described in the present disclosure.
[0048] The first version of the VVC standard was finalized in July, 2020, which offers approximately 50% bit-rate saving or equivalent perceptual quality compared to the prior generation video coding standard HEVC. Although the VVC standard provides significant coding improvements than its predecessor, there is evidence that superior coding efficiency can be achieved with additional coding tools. Recently, Joint Video Exploration Team (JVET) under the collaboration of ITU-T VCEG and ISO/IEC MPEG started the exploration of advanced technologies that can enable substantial enhancement of coding efficiency over VVC. In April 2021, one software codebase, called Enhanced Compression Model (ECM) was established for future video coding exploration work. The ECM reference software was based on VVC Test Model (VTM) that was developed by JVET for the VVC, with several existing modules (e.g., intra/inter prediction, transform, in-loop filter and so forth) are further extended and/or improved. In future, any new coding tool beyond the VVC standard need to be integrated into the ECM platform, and tested using JVET common test conditions (CTCs)
[0049] Similar to all the preceding video coding standards, the ECM is built upon the block-based hybrid video coding framework. Figure 1 illustrates a block diagram of a generic block-based hybrid video encoding system. The input video signal is processed block by block (called coding units (CUs)). In ECM-1.0, aCU can be up to 128x128 pixels. However, same to the VVC, one coding tree unit (CTU) is split into CUs to adapt to varying local characteristics based on quad/binary/temary-tree . In the multi- type tree structure, one CTU is firstly partitioned by a quad-tree structure. Then, each quad-tree leaf node can be further partitioned by a binary and ternary tree structure. As shown in Figures 2 A, 2B, 2C, 2D, and 2E, there are five splitting types, quaternary partitioning, vertical binary partitioning, horizontal binary partitioning, vertical extended quaternary partitioning, and horizontal extended quaternary partitioning.
[0050] In Figure 1 , spatial prediction and/or temporal prediction may be performed. Spatial prediction (or “intra prediction”) uses pixels from the samples of already coded neighboring blocks (which are called reference samples) in the same video picture/slice to predict the current video block. Spatial prediction reduces spatial redundancy inherent in the video signal. Temporal prediction (also referred to as “inter prediction” or “motion compensated prediction”) uses reconstructed pixels from the already coded video pictures to predict the current video block. Temporal prediction reduces temporal redundancy inherent in the video signal. Temporal prediction signal for a given CU is usually signaled by one or more motion vectors (MVs) which indicate the amount and the direction of motion between the current CU and its temporal reference. Also, if multiple reference pictures are supported, one reference picture index is additionally sent, which is used to identify from which reference picture in the reference picture store the temporal prediction signal comes. After spatial and/or temporal prediction, the mode decision block in the encoder chooses the best prediction mode, for example based on the rate-distortion optimization method. The prediction block is then subtracted from the current video block; and the prediction residual is dc-corrclatcd using transform and quantized. The quantized residual coefficients are inverse quantized and inverse transformed to form the reconstructed residual, which is then added back to the prediction block to form the reconstructed signal of the CU. Further in- loop filtering, such as deblocking filter, sample adaptive offset (SAO) and adaptive in-loop filter (ALF) may be applied on the rcconstnictcd CU before it is put in the reference picture store and used to code future video blocks. To fonn the output video bit-stream, coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to the entropy coding unit to be further compressed and packed to form the bit-stream . It should be noted that the term “block” or “video block” as used herein may be a portion, in particular a rectangular (square or non- square) portion, of a frame or a picture. With reference, for example, to HEVC and VVC, tire block or video block may be or correspond to a Coding Tree Unit (CTU), a CU, a Prediction Unit (PU) or a Transform Unit (TU) and/or may be or correspond to a corresponding block, e.g., a Coding Tree Block (CTB), a Coding Block (CB), a Prediction Block (PB) or a Transform Block (TB) and/or to a sub-block.
[0051] Figure 3 illustrates a general block diagram of a block-based video decoder. The video bit- stream is first entropy decoded at entropy decoding unit. The coding mode and prediction information arc sent to either the spatial prediction unit (if intra coded) or the temporal prediction unit (if inter coded) to fonn the prediction block. Tire residual transform coefficients are sent to inverse quantization unit and inverse transform unit to reconstruct the residual block. The prediction block and the residual block are then added together. The reconstructed block may further go through in-loop filtering before it is stored in reference picture store. The reconstructed video in reference picture store is then sent out to drive a display device, as well as used to predict future video blocks.
[0052] The main focus of this disclosure is to further enhance the coding efficiency of the coding tool of cross -component prediction, cross-component linear model (CCLM), that is applied in the ECM. In the following, some related coding tools in the ECM are briefly reviewed. After that, some deficiencies in the existing design of CCLM are discussed. Finally, tire solutions are provided to improve the existing CCLM prediction design.
[0053] Cross-component linear model prediction
[0054] 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) where predc(i, j) represents the predicted chroma samples in a CU, and recL’ (i, j) represents the down-sampled reconstructed luma samples of tire same CU which are obtained by performing down - sampling on the reconstructed luma samples recL (i, j) . The above α and β are linear model parameters which are derived from at most four neighboring chroma samples and their corresponding down-sampled luma samples, which may be referred to as neighboring luma-chroma sample pairs. Suppose that a current chroma block has a size of WxH, then W’ and H’ are obtained as follows:
— W’ = W, H’ = H when LM mode is applied;
- W’ =W + H when LM-A mode is applied;
- H’ = H + W when LM-L mode is applied; where in the LM mode, above samples and left samples of the CU are used together to calculate the linear model coefficients; in the LM A mode, only the above samples of the CU are used to calculate the linear model coefficients; and in the LM_L mode, only the left samples of the CU arc used to calculate the linear model coefficients.
[0055] If locations of above neighboring samples of a chroma block are denoted as S[ 0, -1 ] ...S[ W’ - 1, -1 ] and locations of left neighboring samples of the chroma block are denoted as
S[ — 1, 0 ] ...S[ — 1, H’ 1 ], positions of four neighboring chroma samples are selected as follows:
- S[W’ / 4, 1 ], S[ 3 * W’ / 4, 1 ], S[ -1, H’ / 4 ], S[ -1, 3 * H’ / 4 ] are selected as the positions of the four neighboring chroma samples when LM mode is applied and both above and left neighboring samples are available;
- S[ W’ / 8, 1 ], S[ 3 * W’ / 8, -1 ], S[ 5 * W’ / 8, -1 ], S[ 7 * W’ / 8, -1 ] are selected as the positions of the four neighboring chroma samples when LM-A mode is applied or only the above neighboring samples are available;
- S[ -1, H’ / 8 ], S[ -1, 3 * H’ / 8 ], S[ -1, 5 * H’ / 8 ], S[ -1, 7 * H’ / 8 ] arc selected as the positions of the four neighboring chroma samples when LM-L mode is applied or only the left neighboring samples are available.
100561 The four neighboring luma samples corresponding to the selected locations are obtained by a down-sampling operation and the obtained four neighboring luma samples are compared four times to find two larger values: x0 A and x1 A. and two smaller values: x°B and x’B. Chroma sample values corresponding to the two larger values and the two smaller values are denoted as yx A, y0 B and yx B respectively. Then X,. Ya and U are derived as:
Figure imgf000009_0001
(2)
[0057] Finally, tire linear model parameters α and β are obtained according to tire following equations.
Figure imgf000010_0001
[0058] Figure 4 illustrates an example of the locations of the left and above samples and the sample of the current block involved in the CCLM mode, including locations of left and above samples of an N X N chroma block in the CU and locations of left and above samples of an 2N X 2N luma block in the CU.
[0059] The division operation to calculate parameter α is implemented with a look-up table . To reduce the memory required for storing the table, the diff value (difference between maximum and minimum values) and the parameter a are expressed by an exponential notation. For example, diff is approximated with a 4-bit significant part and an exponent. Consequently, the table for 1/diff is reduced into 16 elements for 16 values of the significand as follows:
DivTable [ ] = { 0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 } (5)
[0060] This would have a benefit of both reducing the complexity of the calculation as well as the memory size required for storing the needed tables
[0061] Besides the above template and left template can be used to calculate the linear model coefficients together, they also can be used alternatively in the other 2 LM modes, called LM A, and LM_L modes.
[0062] In LM_T mode, only the above template is used to calculate the linear model coefficients. To get more samples, the above template is extended to (W+H) samples. In LM_L mode, only left template is used to calculate the linear model coefficients. To get more samples, the left template is extended to (H+W) samples.
[0063] In LM LT mode, left and above templates are used to calculate the linear model coefficients.
[0064] To match the chroma sample locations for 4:2:0 video sequences, two types of down- sampling filter are applied to luma samples to achieve 2 to 1 down-sampling ratio in both horizontal and vertical directions. The selection of down-sampling filter is specified by a SPS level flag. The two down-sampling filters are as follows, which are corresponding to “type-0” and “type-2” content, respectively.
Figure imgf000010_0002
[0065] Note that only one luma line (general line buffer in intra prediction) is used to make the down-sampled luma samples when the upper reference line is at tire CTU boundary.
[0066] This parameter computation is performed as part of the decoding process, and is not just as an encoder search operation. As a result, no syntax is used to convey the α and β values to the decoder. [0067] For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and three cross-component linear model modes (CCLM, LM_A, and LM_L). Chroma mode signalling and derivation process are shown in Table 1. Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled in 1 slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
Table 1 - Derivation of chroma prediction mode from luma mode when cclm is enabled
Figure imgf000011_0001
[0068] A single binarization table is used regardless of the value of sps cclm enabled flag as shown in Table 2.
Table 2 - Unified binarization table for chroma prediction mode
Figure imgf000011_0002
[0069] In Table 2, the first bin indicates whether it is regular (0) or LM modes (1). If it is LM mode, then the next bin indicates whether it is LM CHROMA (0) or not. If it is not LM CHROMA, next 1 bin indicates whether it is LM_L (0) or LM_A (1). For this case, when sps cclm enabled flag is 0, the first bin of the binarization table for the corresponding intra_chroma_pred_mode can be discarded prior to the entropy coding. Or, in other words, the first bin is inferred to be 0 and hence not coded. This single binarization table is used for both sps cchn enabled flag equal to 0 and 1 cases. Tire first two bins in Table 2 are context coded with its own context model, and the rest bins are bypass coded.
[0070] In addition, in order to reduce luma-chroma latency in dual tree, when the 64x64 luma coding tree node is partitioned with Not Split (and ISP is not used for the 64x64 CU) or QT, the chroma CUs in 32x32 / 32x16 chroma coding tree node are allowed to use CCLM in the following way:
If the 32x32 chroma node is not split or partitioned QT split, all chroma CUs in the 32x32 node can use CCLM
If the 32x32 chroma node is partitioned with Horizontal BT, and the 32x16 child node docs not split or uses Vertical BT split, all chroma CUs in the 32x16 chroma node can use CCLM.
[0071] In all the other luma and chroma coding tree split conditions, CCLM is not allowed for chroma CU.
[0072] During the ECM development, the simplified derivation of α and β (min-max approximation) is removed. Instead, linear least square solution between causal reconstructed data of down-sampled luma samples and causal chroma samples to derive model parameters α and β.
Figure imgf000012_0001
where Recc(i) and Rec ’L(i) indicate reconstructed chroma samples and down-sampled reconstructed luma samples around the target block, I indicates total samples number of neighboring data.
[0073] Tire LM_A, LM_L modes are also called Multi-Directional Linear Model (MDLM). Figure 5 A illustrates an example that MDLM works when the block content cannot be predicted from the L- shape reconstructed region. Figure 5B illustrates MDLM L which only uses left reconstructed samples to derive CCLM parameters. Figure 5C illustrates MDLM T which only uses top reconstructed samples to derive CCLM parameters.
[0074] Integerization for the above discussed Least Mean Square (LMS) (please refer to equations (8)-(9)) has been proposed as improvements for CCLM. The initial integerization design of LMS CCLM was firstly proposed in JCTVC-C206. The method was then improved by a series of simplification, including JCTVC-F0233/I0178 which reduces α precision nα from 13 to 7, JCTVC- 10151 which reduces the maximum multiplier bitwidth, and JCTVC-H0490/I0166 which reduces division LUT entries from 64 to 32, finally leads to the ECM LMS version.
[0075] As discussed in equation (1), the integerization design utilizes the linear relationship to modelize the correlation of luma signal and chroma signal. The chroma values are predicted from reconstructed luma values of collocated block.
[0076] Luma and chroma components have different sampling ratios in YUV420 sampling. The sampling ratio of chroma components is half of that of luma component and has 0.5 pixel phase difference in vertical direction. Reconstructed luma needs down-sampling in vertical direction and subsample in horizontal direction to match size of chroma signal. For example, the down-sampling may be implemented by:
Figure imgf000013_0001
[0077] Float point operation is necessary in equation (8) to calculate linear model parameters cc to keep high data accuracy. And float point multiplication is involved in equation (1) when a is represented by float point value. In this section, the integer implementation of this algorithm is designed. Specifically, fractional part of parameter a is quantized with nabits data accuracy. Parameter a value is represented by an up-scaled and rounded integer value a ' and a' = aX (1 « nα) . Then the linear model of equation (1) is changed to:
Figure imgf000013_0002
Where β is the rounding value of float point α and α 'can be calculated as follows.
Figure imgf000013_0003
[0078] It is proposed to replace division operation of equation (12) by table lookup and multiplication. A2 is firstly dc-scalcd to reduce the table size. A; is also dc-scalcd to avoid product overflow. Then, in A 2 it is kept only most significant bits defined by nA2 value and others bits arc put to zero. Tire approximate value A2 ' can be calculated as:
Figure imgf000013_0004
Where [...] means rounding operation and rA2 can be calculated as:
Figure imgf000013_0005
Where bdepth(A2) means bit depth of value A2.
[0079] Same operation is done for A1, . as follows:
Figure imgf000013_0006
[0080] Taking into account quantized representation of A1, and equation (12) can be re - written as following .
Figure imgf000013_0007
Figure imgf000014_0001
Where is represented as lookup table with length of 2 to avoid the division.
Figure imgf000014_0002
[0081] In the simulation, the constant parameters are set as: na equals to 13, which value is tradeoff between data accuracy and computational cost. nA 2 equals to 6, results in lookup table size as 64, table size can be further reduced to 32 by up- scaling when hdepth( A2) < 6 (e.g. A2, < 32 ). niable equals to 15, results in 16 bits data representation of tabic elements.
• nA1 is set as 15, to avoid product overflow and keep 16 bits multiplication.
[0082] In final, a' is clipped to 2 15, 215 — 1] , to remain 16 bits multiplication in equation (11). With this clipping, the actual a value is limited to [—4, 4) when na equals to 13, which is usefid to prevent the error amplification.
[0083] With calculated parameters', parameter β is calculated as follows:
Figure imgf000014_0003
Wherein the division of above equation can be simply replaced by shift, since value I is power of 2.
[0084] Similar as discussed above with regard to equation (I), in HM6.0, an intra prediction mode called LM is applied to predict chroma PU based on a linear model using the reconstruction of the collocated luma PU. The parameters of the linear model consist of slope (a»k) and y-intercept (b), which are derived from the neighboring luma and chroma pixels using the least mean square solution. The values of the prediction samples predSamples[x,y], with x,y = 0...nS-l, where nS specifies the block size of the current chroma PU, arc derived as follows: predSamples[ x, y ] = Cliplc( ( ( pY’[ x, y ] * a ) » k ) + b ), with x, y = 0..nS-l (17) where PY’[ x,y ] is the reconstructed pixels from the corresponding luma component. When the coordinates x and y are equal to or larger than 0, PY’ is the reconstructed pixel from the co-located luma PU. When x or y is less than 0, PY’ is the reconstructed neighboring pixel of the co-located luma PU.
[0085] Some intermediate variables in the derivation process, L, C, UU, UC, k2 and k3, are derived as:
Figure imgf000014_0004
Figure imgf000015_0001
[0086] Therefore, variables a, b and k can be derived as:
Figure imgf000015_0002
where ImDiv is specified in a 63-entry look-up table, i.e. Table 3, which is online generated by: lmDiv(a2s)=( (1 « 15) + a2s/2 ) / a2s . (20)
Table 3-Specification of ImDiv
Figure imgf000015_0003
[0087] In Equation (19-6), al s is a 16-bit signed integer and ImDiv is a 16-bit unsigned integer. Therefore, 16-bit multiplier and 16-bit storage are needed. It is proposed to reduce the bit depth of multipliers to the internal bit depth, as well as the size of the look-up table, as detailed below.
[0088] The bit depth of al s is reduced to the internal bit depth by changing equation (19-4) as: als = al Max(0, Log2( abs( al ) ) - (BitDepthc - 2)) • (21)
The values of ImDiv with the internal bit depth are achieved with the following equation (22) and stored in the look-up table: lmDiv(a2s)=( (1 « (BitDepthc-l)) + a2s/2 ) / a2s. (22)
[0089] Table 4 shows the example of internal bit depth 10.
Table 4-Specification of ImDiv with the internal bit depth equal to 10
Figure imgf000016_0002
[0090] Modifications are also made to Equation (19-3) and (19-8) as below: kl Max( 0, Log2( abs( a2 ) ) - 5 ) - Max( 0, Log2( abs( al ) ) - (BitDepthc - 2) ), and (23-1) k BitDepthc- 1 - Max( 0, Log2( abs( a ) ) - 6 ). (23-2)
[0091] It is also proposed to reduce the entries from 63 to 32, and the bits for each entry from 16 to 10, as shown in Tabic 5. By doing this, almost 70% memory saving can be achieved. The corresponding changes for equation (19-6). equation (20) and equation (19-8) are as follows: a3 = a2s 32 ? 0 : Clip3( -215, 215-1, als*lmDiv + ( 1 ( kl 1 ) ) » kl ) (24-1) lmDiv(a2s)=( (1 « (BitDepthc+4)) + a2s/2 ) / a2s (24-2) k= BitDepthc + 4 - Max( 0, Log2( abs( a ) ) - 6 ). (24-3)
Table 5-Specification of ImDiv with the internal bit depth equal to 10
Figure imgf000016_0003
[0092] Multi-model linear model prediction
[0093] In ECM-1.0, Multi-model EM (MMLM) prediction mode is proposed, for which the chroma samples are predicted based on the reconstructed luma samples of the same CU by using two linear models as follows:
Figure imgf000016_0001
where predc(i, j) represents the predicted chroma samples in a CU and recL’ (i, j) represents the down-sampled reconstructed luma samples of the same CU. Threshold is calculated as the average value of the neighboring reconstructed luma samples. Figure 6 illustrates an example of classifying the neighboring samples into two groups based on the value Threshold. For each group, parameter a, and βi, with i equal to 1 and 2 respectively, are derived from the straight-line relationship between luma values and chroma values from two samples, which are minimum luma sample A (XA, YA) and maximum luma sample B (XB, YB) inside the group. Here XA, YA are the x-coordinate (i.e., luma value) and y-coordinate (i.e., chroma value) value for sample A, and XB, YB are the x-coordinate and y- coordinatc value for sample B. The linear model parameters α and β arc obtained according to the following equations.
Figure imgf000017_0001
[0094] Such a method is also called min-max method. The division in the equation above could be avoided and replaced by a multiplication and a shift.
[0095] For a coding block with a square shape, the above two equations are applied directly. For a non-square coding block, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as for the shorter boundary.
[0096] Besides tire scenario wherein tire above template and the left template are used together to calculate the linear model coefficients, the two templates also can be used alternatively in the other two MMLM modes, called MMLM A, and MMLM L modes.
[0097] In MMLM A mode, only pixel samples in the above template are used to calculate the linear model coefficients. To get more samples, the above template is extended to the size of (W+W). Tn MMLM L mode, only pixel samples in the left template are used to calculate the linear model coefficients. To get more samples, the left template is extended to the size of (H+H).
[0098] Note that when the upper reference line is at the CTU boundary, only one luma row (which is stored in line buffer for intra prediction) is used to make the down-sampled luma samples.
[0099] For chroma intra mode coding, a total of 11 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and six cross-component linear model modes (CCLM, LM_A, LM_L, MMLM, MMLM A and MMLM L). Chroma mode signaling and derivation process are shown in Table 6. Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled ini slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
Table 6 - Derivation of chroma prediction mode from luma mode when MMLM is enabled
Figure imgf000017_0002
Figure imgf000018_0003
[00100] MMLM and LM modes may also be used together in an adaptive manner. For MMLM, two linear models are as follows:
Figure imgf000018_0001
where predc(i, j) represents the predicted chroma samples in a CU and recL’ (i, j) represents the down-sampled reconstructed luma samples of the same CU. Threshold can be simply determined based on the luma and chroma average values together with their minimum and maximum values. Figure 7 shows an example of classifying the neighboring samples into two groups based on the knee point, T, indicated by an arrow. Linear model parameter α1 and β 1 are derived from the straight- line relationship between luma values and chroma values from two samples, which are minimum luma sample A (XA, YA) and the Threshold (XT, YT). Linear model parameter α 2 and β 2 arc derived from tire straight-line relationship between luma values and chroma values from two samples, which are maximum luma sample B (XB, YB) and the Threshold (XT, YT). Here XA, YA are the x-coordinate (i.e., luma value) and y-coordinate (i.e., chroma value) value for sample A, and XB, YB are the x- coordinate and y-coordinate value for sample B. The linear model parameters α1 and β 1 for each group, with i equal to 1 and 2 respectively, are obtained according to the following equations.
Figure imgf000018_0002
[00101] For a coding block with a square shape, the above equations are applied directly. For anon- square coding block, the neighboring samples of the longer boundary are first subsampled to have the same number of samples as for tire shorter boundary.
[00102] Besides the scenario wherein the above template and the left template are used together to determine the linear model coefficients, the two templates also can be used alternatively in the other two MMLM modes, called MMLM_A, and MMLM_L modes respectively.
[00103] In MMLM A mode, only pixel samples in the above template are used to calculate the linear model coefficients. To get more samples, the above template is extended to the size of (W+W). In MMLM L mode, only pixel samples in the left template are used to calculate the linear model coefficients. To get more samples, the left template is extended to the size of (H+H).
[00104] Note that when the upper reference line is at the CTU boundary, only one luma row (which is stored in line buffer for intra prediction) is used to make the down-sampled luma samples.
[00105] For chroma intra mode coding, there is a condition check used to select LM modes (CCLM, LM_A, and LM_L) or multi -model LM modes (MMLM, MMLM_A, and MMLM L). The condition check is as follows:
Figure imgf000019_0001
where BlkSizeThresLM represents the smallest block size of LM modes and BlkSizeThres^ represents the smallest block size of MMLM modes. The symbol d represents a pre -determined threshold value. In one example, d may take a value of 0. In another example, d may take a value of 8. [00106] For chroma intra mode coding, a total of 8 intra modes are allowed for chroma intra mode coding. Those modes include five traditional intra modes and three cross-component linear model modes. Chroma mode signaling and derivation process are shown in Table 1. It is worth noting that for a given CU, if it is coded under linear model mode, whether it is a conventional single model LM mode or a MMLM mode is determined based on the condition check above. Unlike the case shown in Table
6, there arc no separate MMLM modes to be signaled. Chroma mode coding directly depends on the intra prediction mode of the corresponding luma block. Since separate block partitioning structure for luma and chroma components is enabled in I slices, one chroma block may correspond to multiple luma blocks. Therefore, for Chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block is directly inherited.
[00107] During ECM development, scale (slope) adjustment for CCLM are proposed as further improvements, for example, as described in JVET-Y0055/Z0049.
[00108] As discussed above, CCLM uses a model with 2 parameters to map luma values to chroma values. The scale parameter “a” and the bias parameter “b” define the mapping as follows: chromaVal = a * lumaVal + b (30)
[00109] It is proposed to signal an adjustment “u” to the scale parameter to update the model to the following form: chromaVal = a’ * lumaVal + b’ (31) where a’ = a + u, and b — b - u * y, .
[00110] With this selection, the mapping function is tilted or rotated around the point with luminance value yr. It is proposed to use the average of the reference luma samples used in the model creation as y, in order to provide a meaningful modification to the model. Figures 8 A to 8B illustrate the effect of tire scale adjustment parameter “u”, wherein Figure 8 A illustrates the model created without the scale adjustment parameter “u”, and Figure 8B illustrates the model created with the scale adjustment parameter “u”.
[00111] In one example, the scale adjustment parameter is provided as an integer between -4 and 4, inclusive, and signaled in the bitstream. Tire unit of tire scale adjustment parameter is l/8th of a chroma sample value per one luma sample value (for 10-bit content).
[00112] In one example, adjustment is available for the CCLM models that arc using reference samples both above and left of the block (“LM CHROMA IDX” and “MMLM CHROMA IDX”), but not for the “single side” modes. This selection is based on coding efficiency vs. complexity trade- off considerations.
[00113] When scale adjustment is applied for a multimode CCLM model, both models can be adjusted and thus up to two scale updates are signaled for a single chroma block.
[00114] To enable the scale adjustment at the encoder, the encoder may perform an SATD based search for the best value of the scale update for Cr and a similar SATD based search for Cb. If either one results as a non-zero scale adjustment parameter, the combined scale adjustment pair (SATD based update for Cr, SATD based update for Cb) is included in tire list of RD checks for tire TU.
[00115] The fusion of chroma intra prediction modes
[00116] During ECM development, JVET-Y0092/Z0051 proposed fusion of chroma intra modes.
[00117] The intra prediction modes enabled for the chroma components in ECM-4.0 are six cross- component linear model (EM) modes including CCLM LT, CCLM L, CCLM T, MMLM LT, MMLM L and MMLM T modes, the direct mode (DM), and four default chroma intra prediction modes. The four default modes arc given by the list {0, 50, 18, 1} and if the DM mode already belongs to that list, the mode in the list will be replaced with mode 66.
[00118] A decoder-side intra mode derivation (DIMD) method for luma intra prediction is included in ECM-4.0. First, a horizontal gradient and a vertical gradient are calculated for each reconstructed luma sample of the L-shaped template of the second neighboring row and column of the current block to build a Histogram of Gradients (HoG). Then, the two intra prediction modes with the largest and the second largest histogram amplitude values are blended with the Planar mode to generate the final predictor of the current luma block.
[00119] In order to improve the coding efficiency of chroma intra prediction, two methods are proposed, including a decoder-side derived chroma intra prediction mode (DIMD chroma) and a fusion ofa non-LM mode and the MMLM LT mode.
[00120] In a first embodiment, a DIMD chroma mode is proposed. The proposed DIMD chroma mode uses the DIMD derivation method to derive the chroma intra prediction mode of the current block based on the collocated reconstructed luma samples. Specifically, a horizontal gradient and a vertical gradient are calculated for each collocated reconstructed luma sample of the current chroma block to build a HoG, as shown in Figure 8C. Then the intra prediction mode with the largest histogram amplitude values is used for performing chroma intra prediction of the current chroma block.
[00121] When the intra prediction mode derived from the DIMD chroma mode is the same as the intra prediction mode derived from the DM mode, the intra prediction mode with the second largest histogram amplitude value is used as the DIMD chroma mode.
[00122] A CU level flag is signaled to indicate whether the proposed DIMD chroma mode is applied as shown in Table 7.
Table 7. The binarization process for intra chroma pred mode in the proposed method
Figure imgf000021_0001
[00123] In a second embodiment, a fusion of chroma intra prediction modes is proposed, wherein the DM mode and the four default modes can be fused with the MMLM LT mode as follows: pred = (wO * predO + wl * predl + (1 « (shift — 1))) » shift where predO is the predictor obtained by applying the non-LM mode, predl is the predictor obtained by applying the MMLM LT mode and pred is the final predictor of the current chroma block. The two weights, w0 and wl are determined by the intra prediction mode of adjacent chroma blocks and shift is set equal to 2. Specifically, when the above and left adjacent blocks are both coded with LM modes, {wO, w1}={l, 3}; when the above and left adjacent blocks are both coded with non-LM modes, {w0, w1}={3, 1}, otherwise, {w0, w1}={2, 2}.
[00124] Forthe syntax design, if anon-LM mode is selected, one flag is signaled to indicate whether the fusion is applied. And the proposed fusion is only applied to I slices.
[00125] In a third embodiment, the DIMD chroma mode and the fusion of chroma intra prediction modes are combined. Specifically, the DIMD chroma mode described in the first embodiment is applied, and for I slices, the DM mode, the four default modes and the DIMD chroma mode can be fused with the MMLM LT mode using the weights described in the second embodiment, while for non-I slices, only the DIMD chroma mode can be fused with the MMLM LT mode using equal weights.
[00126] In a fourth embodiment, the DIMD chroma mode with reduced processing and the fusion of chroma intra prediction modes are combined. Specifically, the DIMD chroma mode with reduced processing derives the intra mode based on the neighboring reconstructed Y, Cb and Cr samples in the second neighboring row and column as shown in Figure 8D. Other parts are the same as the third embodiment. [00127] In one embodiment, when DIMD is applied, two intra modes are derived from the reconstructed neighbor samples, and those two predictors are combined with tire planar mode predictor with the weights derived from the gradients as described in J VET-00449. The division operations in weight derivation is performed utilizing the same lookup table (LUT) based integerization scheme used by the CCLM. For example, the division operation in the orientation calculation
Orient = Gy/ Gx is computed by the following LUT-based scheme: x = Floor( Log2( Gx ) ) normDiff = ( ( Gx« 4 ) » x ) & 15 x +=( 3 + ( normDiff != 0 ) ? 1 : 0 )
Orient = (Gy* ( DivSigTable[ nonnDiff ] | 8 ) + ( 1«( x-1 ) )) x where
DivSigTablc[16] = { 0, 7, 6, 5 ,5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0 }.
|00128| Derived intra modes are included into the primary list of intra most probable modes (MPM), so the DIMD process is performed before the MPM list is constructed. The primary derived intra mode of a DIMD block is stored with a block and is used for MPM list construction of the neighboring blocks. [00129] Figures 8E to 8H illustrate the steps of decoder-side intra mode derivation, wherein intra prediction direction is estimated without intra mode signaling. The first step as shown in Figure 8E includes estimating gradient per sample (for light-grey samples as illustrated in Figure 8E). The second step as shown in Figure 8F includes mapping gradient values to closest prediction direction within [2,66], The third step as shown in Figure 8G includes selecting 2 prediction directions, wherein for each prediction direction, all absolute gradients Gx and Gy of neighboring pixels with that direction arc summed up, and top 2 directions are selected. The fourth step as shown in Figure 8H includes enabling weighted intra prediction with the selected directions.
[00130] Multiple reference line (MRL) intra prediction usesmore reference lines for intra prediction. In Figure 9, an example of 4 reference lines is depicted, where the samples of segments A and F arc not fetched from reconstructed neighboring samples but padded with the closest samples from Segment B and E, respectively. HEVC intra-picture prediction uses the nearest reference line (i.e., reference line 0). In MRL, 2 additional lines (reference line 1 and reference line 3) are used.
[00131] The index of selected reference line (mrl idx) is signaled and used to generate intra predictor. For reference line idx, which is greater than 0, only include additional reference line modes in MPM list and only signal mpm index without remaining mode. The reference line index is signaled before intra prediction modes, and Planar mode is excluded from intra prediction modes in case a nonzero reference line index is signaled.
[00132] MRL is disabled for the first line of blocks inside a CTU to prevent using extended reference samples outside the current CTU line. Also, PDPC is disabled when additional line is used. For MRL mode, the derivation of DC value in DC intra prediction mode for non-zero reference line indices is aligned with that of reference line index 0. MRL requires the storage of 3 neighboring luma reference lines with a CTU to generate predictions. The Cross-Component Linear Model (CCLM) tool also requires 3 neighboring luma reference lines for its down-sampling filters. Tire definition of MRL to use the same 3 lines is aligned as CCLM to reduce the storage requirements for decoders.
[00133] During ECM development, a convolutional cross-component model (CCCM) of chroma intra modes is proposed.
[00134] It is proposed to apply convolutional cross-component model (CCCM) to predict chroma samples from reconstructed luma samples in a similar spirit as done by the current CCLM modes. As with CCLM, the reconstructed luma samples arc down-sampled to match the lower resolution chroma grid when chroma sub-sampling is used.
[00135] Also, similarly to CCLM, there is an option of using a single model or multi-model variant of CCCM The multi-model variant uses two models, one model derived for samples above the average luma reference value and another model for the rest of the samples (following the spirit of the CCLM design). Multi-model CCCM mode can be selected for PUs which have at least 128 reference samples available.
[00136J The proposed convolutional 7-tap filter consists of a 5-tap plus sign shape spatial component, a nonlinear term and a bias term. The input to the spatial 5-tap component of the filter consists of a center (C) luma sample which is collocated with tire chroma sample to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in Figure 10A. [00137] The nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
[00138] P = ( C*C + midVai ) » bitDepth
[00139] That is, for 10-bit content it is calculated as:
[00140] P = ( C*C + 512 ) » 10
[00141] Tire bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00142] Output of the filter is calculated as a convolution between the filter coefficients Ci and the input values and clipped to the range of valid chroma samples:
[00143] predChromaVal = c0C + C1N + c2S + c3E + c4W + c5P + c6B
[00144] The filter coefficients c; are calculated by minimising MSE between predicted and reconstructed chroma samples in the reference area. Figure 10B illustrates the reference area which consists of 6 lines of chroma samples above and left of the PU. Reference area extends one PU width to the right and one PU height below the PU boundaries. Area is adjusted to include only available samples. The extensions to the area shown in blue are needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
[00145] The MSE minimization is performed by calculating autocorrelation matrix for the luma input and a cross-correlation vector between the luma input and chroma output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution. The process follows roughly the calculation of the ALF filter coefficients in ECM, however LDL decomposition was chosen instead of Cholesky decomposition to avoid using square root operations. The proposed approach uses only integer arithmetic.
[00146] Usage of the mode is signalled with a CABAC coded PU level flag. One new CABAC context was included to support this. When it comes to signalling, CCCM is considered a sub-mode of CCLM. That is, the CCCM flag is only signalled if intra prediction mode is LM CHROMA IDX (to enable single mode CCCM) or MMLM CHROMA IDX (to enable multi -model CCCM).
[00147] The encoder performs two new RD checks in the chroma prediction mode loop, one for checking single model CCCM mode and one for checking multi -model CCCM mode.
[00148] In the existing CCLM or MMLM design, the neighboring reconstructed luma-chroma sample pairs are classified into one or more sample groups based on the value Threshold, which only considers the luma DC values. That is, a luma-chroma sample pair is classified by only considering the intensity of the luma sample. However, luma component usually preserves abundant textures, and the current luma sample may be highly correlated with neighboring luma samples, such inter-sample correlation (AC correlation) may benefit the classification of luma-chroma sample pairs and can bring additional coding efficiency.
[00149] As shown in Figure 10C, the CCLM assumes a given chroma sample only correlates to a corresponding luma sample (L0.5, which can be taken as the fractional luma sample position), and a simple linear regression (SLR) with ordinary least squares (OLS) estimation is used to predict the given chroma sample. However, as shown in Figure 10D, in some video content, one chroma sample may simultaneously correlate to multiple luma samples (AC or DC correlation), so a multiple linear regression (MLR) model may further improve the prediction accuracy.
[00150] Although the CCCM mode can enhance the intra prediction efficiency, there is room to further improve its performance. Meanwhile, some parts of the existing CCCM mode also need to be simplified for efficient codec hardware implementations or improved for better coding efficiency. Furthermore, the tradeoff between its implementation complexity and its coding efficiency benefit needs to be further improved.
[00151] Edge-classified linear model (ELM)
[00152] To improve the coding efficiency of luma and chroma components, classifiers considering luma edge or AC information is introduced, in contrast to the above implementations wherein only luma DC values are considered. Besides the existing band-classified MMLM, the present disclosure provides exemplary classifiers. The process of generating linear prediction models for different sample groups may be similar as CCLM or MMLM (e.g., via a least square method, or a simplified min-max method, etc.), but with different metrices for classification. Different classifiers may be used to classify the neighboring luma samples (e.g., of the neighboring luma-chroma sample pairs) and/or the luma samples corresponding to chroma samples to be predicted. The luma samples corresponding to the chroma samples may be obtained by a down-sampling operation to match the locations of the corresponding chroma samples for 4:2:0 video sequences. For example, a luma sample corresponding to a chroma sample may be obtained by performing a down-sampling operation on more than one (e.g., 4) reconstructed luma samples corresponding to the chroma sample (e.g., located around the chroma sample). Altenatively, the luma samples may obtained directly from the reconstructed luma samples in a case of 4:4:4 video sequences, for example. Alternatively, the luma samples may be obtained from respective ones of the reconstructed luma samples that are at respective collocated positions for the corresponding chroma samples. For example, a luma sample to be classified may be obtained from one of four reconstructed luma samples corresponding to the chroma sample that is at a left-top position of the four reconstructed luma samples, which may be considered as a collocated position for the chroma sample.
[00153] A first classifier may classify luma samples according to their edge strengths. For example, one direction (e.g., 0-degree, 45-degree, or 90-degree, etc.) may be selected to calculate the edge strength. A direction may be formed by a current sample and a neighboring sample along the direction (e.g., a neighboring sample located at the right-top of the current sample for 45-dcgrcc). An edge strength may be calculated by subtracting tire neighbor sample from tire current sample. Tire edge strength may be quantized into one of M segments by M-l thresholds, and the first classifier may use M classes to classify the current sample. Alternatively or additionally, N directions may be formed by a current sample and N neighboring samples along the N directions. N edge strengths may be calculated by subtracting N neighboring samples from the current sample, respectively. Similarly, if each of the N edge strengths may be quantized into one of M segments by M-l thresholds, then the first classifier may use MN classes to classify the current sample.
[00154] A second classifier may be used to classify according to a local pattern. For example, a current luma sample Y0 may be compared with its neighboring N luma samples Yi. A score may be added by one if the value of Y0 is greater than that of Yi, otherwise, the score may be reduced by one. The sore may be quantized to form K classes. The second classifier may classify a current sample into one of the K classes. For example, the neighboring luma samples may be obtained from four neighbors that are located above, left, right and below the current luma samples, i.e., without diagonal neighbors. [00155] It may be contemplated that a plurality of the first classifier, the second classifier, or different instances of the first or second classifier or other classifiers described herein may be combined. For example, a first classifier may be combined with tire existing MMLM threshold-based classifier. For another example, instance A of the first classifier may be combined with another instance B of the first classifier, where the instance A and B employ different directions (e.g., employing vertical and horizontal directions, respectively).
[00156] It will be appreciated by those skilled in tire art that though the existing CCLM design in the VVC standard is used as the basic CCLM method in the description, the proposed cross-component method described in the disclosure can also be applied to other prediction coding tools with similar design spirits. For example, for the chroma from luma (CfL) in the AVI standard, the proposed method can also be applied by dividing luma-chroma sample pairs into multiple sample groups.
[00157] It will be appreciated by those skilled that Y/Cb/Cr also can be denoted as Y/U/V in video coding area. If video data is of RGB format, the proposed method can also be applied by simply mapping YUV notation to GBR, for example.
[00158] Filter-based linear model (ELM)
[00159] A filter-based linear model (FLM) which utilizes the MLR model is introduced as follows, to take into account the possibilities that one chroma sample may simultaneously correlate to multiple luma samples.
[00160] For a to-be-predicted chroma sample, the reconstructed collocated and neighboring luma samples can be used to predict the chroma sample, to capture the inter-sample correlation among the collocated luma sample, neighboring luma samples, and the chroma sample. The reconstructed luma samples are linear weighted and combined with one “offset” to generate the predicted chroma sample (C: predicted chroma sample, Li: i-th reconstructed collocated or neighboring luma samples, α i: filter coefficients, P : offset, N: filter taps), as shown in the following equation (32-1). Note the linear weighted plus offset value directly forms the predicted chroma sample (can be low pass, high pass adaptively according to video content), and it is then added by the residual to fonn the reconstructed chroma sample.
Figure imgf000026_0001
[00161] In some implementation like CCCM, the offset term can also be implemented as middle chroma value B (512 for 10-bit content) multiplied by another coefficient, as shown in the following equation (32-2).
Figure imgf000026_0002
[00162] For a given CU, the top and left reconstructed luma and chroma samples can be used to derive or train the FLM parameters ( α i , β ). Like CCLM, α i and β can be derived via OLS.
The top and left training samples arc collected, and one pseudo inverse matrix is calculated at both encoder and decoder sides to derive the parameters, which are then used to predict the chroma samples in the given CU. Let N denotes the number of filter taps applied on luma samples, M denotes the total top and left reconstructed luma-chroma sample pairs used for training parameters, Lj denotes luma sample with the i-th sample pair and the j-th filter tap, Ci denotes the chroma sample with the i-th sample pair, tire following equations show the derivation of the pseudo inverse matrix A+, and also the parameters. Figure 11 shows an example that N is 6 (6-tap), M is 8, top 2 rows and left 3 columns luma samples and top 1 row and left 1 column chroma samples are used to derive or train the parameters.
Figure imgf000026_0003
Figure imgf000027_0001
[00163] Please note that one can predict tire chroma sample by only α i without the offset β , which may be a subset of the proposed method.
[00164] The proposed ELM/FLM/GLM (as discussed below) can be extended straightforwardly to the CfL design in the AVI standard, which transmits model parameters (α, β) explicitly. For example, (1-tap case) deriving α and/or β at encoder at SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels, and signaled to decoder for the CfL mode.
[00165] To further improve tire coding perfonnance, additional designs may be used in the ELM prediction. As shown in Figure 11 and discussed above, a 6-tap luma filter is used for the FEM prediction. However, though a multiple tap filter can fit well on training data (e.g., top and left neighboring reconstructed luma and chroma samples), in some cases that training data do not capture full characteristics of testing data, it may result in overfitting and may not predict well on testing data (i.e., the to-be-predicted chroma block samples). Also, different filter shapes may adapt well to different video block content, leading to more accurate prediction.
[00166] To address this issue, the filter shape and number of filter taps can be predefined or signaled or switched in Sequence Parameter Set (SPS), Adaptation Parameter Set (APS), Picture Parameter Set (PPS), Picture Header (PH), Slice Header (SH), Region, CTU, CU, Subblock, or Sample level. A set of filter shape candidates can be predefined, and a selection on the set of filter shape candidates may be signaled or switched in SPS, APS, PPS, PH, SH, Region, CTU, CU, Subblock, or Sample level. Different components (e.g., U and V) may have different filter switch control. For example, a set of filter shape candidates (e.g., indicated by index 0~5) may be predefined, and a filter shape (1, 2) may denote a 2-tap luma filter, a filter shape (1, 2, 4) may denote a 3-tap luma filter and the like, as shown in Figure 11 . The filter shape selection of U and V components can be switched in PH or in CU or CTU level. Note N-tap can represent N-tap with or without the offset β as described herein. One example is given as below in Table 8.
Table 8 - Exemplary signaling and switching for different filter shapes
Figure imgf000027_0002
Figure imgf000028_0001
[00167] The FLM or the CCCM filter shape may include a nonlinear term. For example, for a CCCM filter, the chroma sample value may be predicted using the following equation: predC hromaV al c0C + C1N + c2S + C3E + c4W + c5P + c6B, P ( C*C + midVal ) bitDepth wherein tire filter corresponds to weighting coefficients c0, Ci,...c6 for a center (C) luma sample value which is collocated with the chroma sample to be predicted, its above/north (N), below/south (S), right/east (E) and left/west (W) neighbors, a nonlinear term P and a bias term B The values used to derive the nonlinear term P can be a combination of current and neighboring luma samples, but not limited to C*C. For example, P can be derived as following:
P = ( Q*R + mid Vai ) » bitDepth wherein Q and R denotes the value used to derive the nonlinear term P.
[00168] Q and R can be linear combination of current and neighboring luma samples either in a down-sampled domain (for example, the Q and R being pre-operated luma samples obtained by weighted-average operation) or without any down-sampling process.
[00169] For example, each one of Q and R can be selected from one of N, S, E, W, and C luma sample values, for example Q*R= CAN, C*S, C* E, CAW, S*N or N*N etc.; or Q and R can both be equal to the average value of N, S, E, and W luma sample values, i.e., Q=R=(N+S+E+W)/4; or Q equals to C luma sample value while R equals to the average value of N, S, E, and W luma sample values, i.e., Q=C while R=(N+S+E+W)/4.
[00170] Different values (Q and R) used to derive the nonlinear term are considered as different filter shapes and ccaann be predefined oorr signal ed/switched in
SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTLI/CU/Subblcok/SampIc levels. A set of filter shape candidates can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
[00171] Different chroma types and/or color formats can have different predefined filter shapes and/or taps. For example, a predefined filter shape (1, 2, 4, 5) may be used for 4:2:0 type-0, a predefined filter shape (0, 1, 2, 4, 7) may be used for 4:2:0 type-2, and a predefined filter shape (1, 4) may be used for 4:2:2, and a predefined filter shape (0, 1, 2, 3, 4, 5) may be used for 4:4:4, as shown in Figure 12.
[00172] In another aspect of the present disclosure, unavailable luma and chroma samples for deriving the MLR model can be padded from available reconstructed samples. For example, if using a 6-tap (0, 1, 2, 3, 4, 5) filter as in Figure 12, for aCU located at the left picture boundary, tire left columns including samples (0, 3) are not available (out of picture boundary), so samples (0, 3) are repetitive padding from samples (1, 4) to apply tire 6-tap filter. Note that the padding process may be applied in both training data (top and left neighboring reconstructed luma and chroma samples) and testing data (the luma and chroma samples in the CU(s)).
[00173] One or more shape/number of filter taps may be used for FLM prediction, examples being shown in Figure 16, Figure 17, and Figures 18A to 18B. One or more sets of filter taps may be used for FLM prediction, examples being shown in Figures 19A to 19G.
[00174] The filter shape candidates can be implicitly derived without explicitly signaling bits. For example, the filter shape candidates can be the filter shape candidates for FLM or GLM (as discussed below). In another example, the filter shape candidates can be the cross shape filter for CCCM, any of the filters shown in Figure 16, Figure 17, Figure 18A, Figure 18B, and Figures 19A to 19G, or other filters mentioned in this disclosure. As longer filter taps theoretically always fit better in training data (template area) but may be overfitting, the well-known "N-fold cross-validation” technique in machine learning area can be used for training filter coefficients. The technique divides the available training data into N sets, and use partial sets for training, others for validation.
[00175] The following example involves implicit filter shape derivation for FLM prediction:
Step 1: determining M filter shape candidates for predicting the chroma sample values of the current CU;
Step 2: dividing the available L-shaped template area external to the CU into N regions, denoted as R0, R1, •• • RN-1 , i e., dividing the training data into N sets for N-fold training, wherein the luma sample values and the chroma sample values of the available template area are known values;
Step 3: applying each of the M filter shape candidates respectively to a part of the available template area, i.c., one or more regions among all the N regions R0, R1, . . . RN-1
Step 4: deriving M filter coefficient sets corresponding to tire M filter shape candidates, denoted as Fo, F1, ... FM_1;
Step 5: applying the derived Fo, F1, ... FM-1 filter coefficient sets to another part of the available template area to predict the chroma sample values based on corresponding luma sample values, wherein the another part of tire available template area is different from the part of the available template area mentioned in Step 3 ;
Step 6: accumulating, for each of the M filter shapes respectively, the errors between the predicted chroma sample values and the known chroma sample values in the another part of the available template area by Sum of Absolute Difference (SAD), Sum of Squared Difference (SSD), or Sum of Absolute Transformed Difference (SATD), denoted as E0, E1, ... EM-1;
Step 7: sorting and selecting K smallest errors, denoted as E’o, E’1, ... E’K-1 , which correspond to K filter shapes and K filter coefficient sets; and
Step 8: selecting one filter shape candidate from the K filter shape candidates, to apply to the current CU for chroma prediction. If K is more than 1 , then the decoder may still receive signal from the encoder indicating the applied filter. However, if K is 1, then the signaling can be omitted and the filter with the smallest accumulated error is determined to be the applied filter.
[00176] Figure 20A and Figure 20B illustrate examples of 2 -fold training for implicitly filter shape derivation. For current chroma CU prediction (blue area), Figure 20A shows that in template area, even- row region R0, (yellow) is used for training/deriving 4 filter coefficient sets, and odd-row region R, (red) is used for validation/comparing and sorting costs of 4 filter coefficient sets; Figure 20B shows that in template area, R0 (yellow) and R1 (red) are interleaved. It should be understood that R0 and R1 can be exchanged in these examples.
[00177] In one example, one of 4 filter shape candidates is to be selected as the applied filter, while the L-shaped template area is divided into even-numbered and odd-numbered rows or columns. The steps include: predefining 4 filter shape candidates for the current CU (for example, 4 filter shape candidates from Figure 16); dividing tire available L-shaped template area (for example, 6 chroma rows and columns for CCCM, note that in CCCM design, each chroma sample involves 6 luma samples for down-sampling) into 2 regions denoted as R0, R1, wherein, for example, R0 is composed of the even rows or columns, and R1 is composed of the odd rows or columns (Figure 20A shows the example that in template area, even-row region R,, is used for training/deriving 4 filter coefficient sets, and odd-row region R1 is used for validation/comparing and sorting costs of 4 filter coefficient sets); applying 4 filter shape candidates independently to a part of the available template area (for example, region R ): deriving 4 filter coefficient sets for the 4 filter shapes respectively, denoted as Fo, F3, ... F3; applying the derived F0, F1 ... F3 filter coefficient sets to the other part of the available template area (for example, region R, ) respectively, to predict the corresponding chroma sample values; accumulating, for each of the 4 filters respectively, the errors between the predicted chroma sample values and the known chroma sample values in the other part of the available template area (for example, region RJ by SAD, SSD, or SATD, denoted as Eo, Eb ... E3; and selecting one of the 4 filter shape candidates with the smallest accumulated error in Eo, Eb ... E3, denoted as E’o, which corresponds to one filter shape and one filter coefficient set. In this example, only the filter shape candidate with the smallest accumulated error will be determined as the applied filter, then the decoder does not need to receive signal indicative of the applied filter.
[00178] In one example, the L-shaped template area can be divided into interleaved parts, while K=2. Tire steps include: determining 4 filter shape candidates for the current CU; dividing the available L-shaped template area (for example, 6 chroma rows or columns for CCCM) into 2 regions denoted as RQ, RI, wherein the luma samples in RQ and R1 are for example interleaved as shown in the following tables:
Figure imgf000030_0001
Figure imgf000031_0002
or
Figure imgf000031_0003
and Figure 20B shows the example that in template area, R0 and R1 are interleaved; applying 4 filter shape candidates independently to a part of the available template area (for example, region R0); deriving 4 filter coefficient sets for the 4 filter shapes respectively, denoted as Fo, Fa, ... F3; applying the derived Fo, Fb ... F3 filter coefficient sets to the other part of the available template area (for example, region R, ) respectively, to predict the corresponding chroma sample values; accumulating, for each of the 4 filter shapes respectively, the errors between the predicted chroma sample values and the known chroma sample values in the other part of the available template area (for example, region R1) by SAD, SSD, or SATD, denoted as Eo, E1 ... E3; sorting and selecting 2 smallest accumulated errors in Eo, E1; ... E3, denoted as E’o, E’1, which correspond to 2 filter shapes and 2 filter coefficient sets; and based on the received signal from the encoder, selecting one filter shape candidate in the 2 filter shape candidates, to apply to the current CU for chroma prediction.
[00179] Note the method of implicit filter shape derivation can also be used to determine whether to introduce nonlinear term in CCCM filter coefficients (treating with/without nonlinear term as different filter shapes).
[00180] Although examples are illustrated above for CCCM filter, it should be understood that the nonlinear term P may also be included in FLM filters (e g., a 3*2 filter as shown in Figure 1 1) and derived in a similar way as discussed above.
[00181] In one example, the steps of dividing the available L-shaped template area may be omitted. In this example, the M filter coefficient sets may be derived based on the sample values from the available template area and then applied back to the available template area respectively, to predict the corresponding chroma sample values for accumulating the errors.
[00182] As mentioned above, an MLR model (linear equations) must be derived at both the encoder and the decoder. According to one or more aspects of the present disclosure, several methods are proposed to derive the pseudo inverse matrix A+, or to directly solve the linear equations. Other known methods like Newton's method, Cayley-Hamilton method, and Eigende composition as mentioned in https://en.wikipedia.org/wiki/Invertible_matrix can also be applied.
[00183] In the present disclosure, A+ can be denoted as A 1 for simplification. The linear equations may be solved as follows
1. Solving A-1 by adjugate matrix (adjA ). closed form, analytic solution:
Below shows one nxn general form, one 2x2 and one 3x3 cases. If FLM uses 3x3, 2 scalers plus one offset need be solved.
Figure imgf000031_0001
Figure imgf000032_0001
(n-1) x (n-1) submatrix by removing j -th row and i-th column
Figure imgf000032_0002
2. Gauss-Jordan elimination
The linear equations can be solved using Gauss-Jordan elimination, by an augmented matrix [A /n| and a series of elementary row operation to obtain the reduced row echelon form [/ I X]. Below shows 2x2 and 3x3 examples.
Figure imgf000032_0003
3. Cholesky decomposition
To solve Ax b, A can be firstly decomposed by Cholesky-Crout algorithm, leading to one upper triangular and one lower triangular matrices, and one forward substitution plus one backward substitution can be applied in serial to obtain the solution. Below shows a 3x3 example.
Figure imgf000032_0004
Figure imgf000033_0001
[00184] Apart from the above examples, some conditions need special handling. For example, if some conditions result in that the linear equations cannot be solved, default values can be used to fill the chroma prediction values. Tire default values can be predefined or signaled or switched in SPS/ DPS/VPS/SEl/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels, for example, when predefined l«(bitDepth-l), meanC, meanL, or meanC-meanL (mean current chroma or other chroma, luma values from available, or subset of FLM reconstructed neighboring region).
[00185] The following examples represent situations when the matrix A cannot be solved, where default prediction values may be assigned to the whole current block:
1. Solving by closed form (analytic, adjugate matrix), but A is singular, (i.c., dctA=0);
2. Solving by Cholesky decomposition, but A cannot be Cholesky decomposed, g • - < REG SQR, where REG SQR is one small value, can be predefined or signaled or switched in SPS/ DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels.
[00186] Figure 11 shows a typical case that the FLM parameters are derived using top 2 and/or left 3 luma lines and top 1 and/or left 1 chroma lines. However, using different region for parameter derivation may bring coding benefit because of different block content and the reconstructive quality of different neighboring samples, as mentioned above. Several ways to choose the applied region for parameter derivation are proposed below:
1. Similar to MDLM, tire FLM derivation can only use top or left luma and/or chroma samples to derive the parameters. Whether to use FLM, FLM L, or FLM T can be predefined or signaled or switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels. Suppose that a current chroma block has a size of WxH, then W’ and H’ are obtained as follows:
- W’ = W, H’ = H when FLM mode is applied;
- W’ =W + We when FLM T mode is applied; where We denotes extended top luma/chroma samples;
- H’ = H + He when FLM L mode is applied; where He denotes extended left luma/chroma samples.
The number of extended luma/chroma samples (We, He) can be predefined, or signaled or switched in SPS/ DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels.
For example, predefine (We, He) = (H, W) as the VVC CCLM, or (W, H) as the ECM CCLM. Tire unavailable (We, He) luma/chroma samples can be repetitive padded from the nearest (horizontal, vertical) luma/chroma samples.
Figure 13 shows an illustration of FLM L and FLM T (e.g., under 4 tap). When FLM L or FLM T is applied, only H’ or W’ luma/chroma samples are used for parameter derivation, respectively. 2. Similar to MRL, different line index can be predefined, or signaled or switched in SPS/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels, to indicate the selected luma- chroma sample pair line. This may benefit from different reconstructive quality of different line samples.
Figure 14 shows that similar to MRL, FLM can use different lines for parameter derivation (e.g., under 4 tap). For example, FLM can use light blue/yellow luma and/or chroma samples in index 1.
3. Extend CCLM region and take full top N and/or left M lines for parameter derivation. Figure 14 shows all dark and light blue and yellow region can be used at one time. Training using larger region (data) may lead to a more robust MLR model.
[00187] It should be understood that the luma sample values of an external region of the video block to be decoded may be referred to as “the external luma sample values”, and the chroma sample values of the external region may be referred to as “the external chroma sample values” throughout the disclosure.
[00188] Corresponding syntax may be defined as below in Table 9 for the FLM prediction. Wherein FLC represents fixed length code, TU represents truncated unary code, EGk represents exponential- golomb code with order k, where k can be fixed oorr signaled/ switched in SPS/ DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels, SVLC represents signed EGO, and UVLC represents unsigned EGO.
Table 9 - An example of FLM syntax
Figure imgf000034_0001
Figure imgf000035_0001
[00189] Note that the binarization of each syntax element can be changed.
[00190] A new method for cross-component prediction is proposed on tire basis of the existing linear model designs, in order to further improve coding accuracy and efficiency. Main aspects of the proposed method are detailed as follows.
[00191] Though the above discussed FLM provides the best flexibility (leading to the best perfonnance), it requires to solve many unknown parameters if die number of filter taps goes up. When the inverse matrix is larger than 3x3, the closed form derivation is not suitable (too many multipliers), and iterative methods like Cholcsky arc needed, which burden decoder processing cycles. In this section, pre-operations before applying the linear model are proposed, including utilizing the sample gradients to exploit the correlation between luma AC information and chroma intensities. With the help of gradients, the number of filter taps can be efficiently reduced.
[00192] Please note that methods/examples in this section can be combined/ reused from any of the designs discussed above, including but not limited to classification, filter shape, matrix derivation (with special handling), applied region, syntax. Moreover, methods/examples listed in this section can also be applied in any of the designs discussed above, to have a better performance with certain complexity trade-off.
[00193] Please note that reference sample s/training template/re constructed neighboring region as used herein usually refers to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
[00194] According to the proposed method, instead of directly using luma sample intensity values as the input of the linear model, pre-operations (e.g., pre linear weighted, sign, scale/abs, thresholding, ReLU) can be applied to downgrade the dimension of unknown parameters. Tn one example, the pre- operations may comprise calculating sample differences based on the luma sample values. As understoond by one skilled in the art, the sample differences may be characterized as gradients, and thus this new method is also referred to as gradient linear model (GLM) in certain embodiments.
[00195] Please note that the following detailed description discuss scenarios wherein the proposed pre-operations may be reused for/combined with the SLR model (also referred to as 1-tap case), and reused for/combined with tire MLR model (also referred to as multi -tap case, for example, 2 -tap).
[00196] For example, instead of applying 2-tap on 2 luma samples, the 2 luma samples can be pre- operated, then a simpler 1-tap can be applied to reduce complexity. Figures 15A to 15D show some examples for l-tap/2-tap (with offset) pre-operations, where 2-tap coefficients are denoted as (a, b). please note that each circle as illustrated in Figures 15A to 15D represent an illustrative chroma position in the YUV 4:2:0 format. As discussed above, in the YUV 4:2:0 format, a luma sample corresponding to a chroma sample may be obtained by performing a down-sampling operation on more than one (e.g., 4) reconstructed luma samples corresponding to the chroma sample (e.g., located around the chroma sample). In other words, the chroma position may correspond to corresponding to one or more luma samples comprising a collocated luma sample. The different 1-tap patterns are designed for different gradient directions and using different “interpolated” luma samples (weighting to different luma location) for gradient calculation. For example, one typical filter [1, 0, -1 ; 1, 0, -1] is shown in Figures 15A, 15C and 15D, which represents the following operations:
Figure imgf000036_0001
Wherein recL represents the reconstructed luma sample values and RecL"(i,j) represents the pre- operated luma sample values. Please also note that the 1 -tap filters as shown in Figures 15 A, 15C and 15D may be understood as alternatives for the down-sampling filters as used in CCLM (please refer to equations (6)-(7)), with changed filter coefficients.
[00197] Pre-operations can be according to gradients, edge direction (detection), pixel intensity, pixel variation, pixel variance, Roberts/Prewitt/compass/Sobel/Laplacian operator, high-pass filter (by calculating gradients or other relevant operators), low-pass filter (by performing weighted-average operations)... etc. Tire edge direction detectors listed in the examples can be extended to different edge directions. For example, 1-tap (1, -1) or 2-tap (a, b) applied along different directions to detect different edge gradients. The filter shape/coeff can be symmetric with respect to the chroma position, as the Figures 15A to 15D examples (420 type-0 case).
[00198] The pre-operation parameters (coefficients, sign, scale/abs, thresholding, ReLU) can be fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels. Note in the examples, if multiple coefficients apply on one sample (e.g., -1, 4), then they can be merged (e.g., 3) to reduce operations.
[00199] In one example, the pre-operations may relate to calculating sample differences of the luma sample values. Alternatively, the pre-operations may comprise performing down-sampling by weighted-average operations. In certain cases, the pre -operations can be applied repeatedly. For example, one may apply one template filtering to template to remove outliers using the low-pass smoothing FIR filter [1, 2, l]/4, or [1, 2, 1; 1, 2, l]/8 (i.e., down-sampling) and then apply 1-tap GLM filter to calculate the sample differences to derive the linear model. It may be contemplated that one may also calculate the sample differences and then enabling down-sampling.
[00200] In one example, the pre-operation coefficients (finally applied (e.g., 3), or middle applied (e.g., -1, 4) to per luma sample) can be limited to power -of-2 values to save multipliers.
[00201] In one aspect of the present disclosure, the proposed new method may be reused for/combined with the above discussed CCLM, which utilizing a simple linear regression (SLR) model and using one corresponding luma sample value to predict the chroma sample value. This is also referred to as a 1 -tap case. In this case, deriving the linear model further comprises deriving a scale parameter α and an offset parameter β by using the prc-opcratcd neighboring luma sample values and the neighboring chroma sample values. Or, the linear model may be re-writen as:
Figure imgf000037_0001
Wherein L here represents “pre-operated” luma samples. The parameter derivation of 1-tap GLM can reuse CCLM design, but taking directional gradient into consideration (may be with high-pass filter). In one example, the scale parameter a may be derived by utilizing a division look-up table, as detailed below, to enable simplification.
[00202] In one example, when combining GLM with the SLR model, the scale parameter a and the offset paremeter β may be derived by utilizing the above-discussed min-max method. Specifically, the scale parameter a and the offset paremeter β may be derived by: comparing the pre -operated neighboring luma sample values to determine a minimum luma samle value YA and a maximum luma sample value YB; determining corresponding choma samples values XA andXB for the minimum luma samle value YAand the maximum luma sample value YB, respectively; and deriving the scale parameter α and the offset paremeter β based on the minimum luma samle value YA, the maximum luma sample value YB, and the corresponding choma samples values XA and XB according to tire following equations :
Figure imgf000037_0002
[00203] In one example, when combining GLM with the SLR model, the above discussed scale adjuestment may be reused. In this case, the encoder may determine a scale adjustment value (for example, “u”) to be signaled in the bitstream and add the scale adjustment value to the derived scale parameter u The decoder may dertermine the scale adjustment value (for example, “u”) from the bitstream and add the scale adjustment value to the derived scale parameter a . The added value arc finally used to predict the internal chroma sample values.
[00204] In one aspect of the present disclosure, the proposed new method may be reused for/combined with FLM, which utilizing a multiple linear regression (MLR) model and using multiple luma sample values to predict the chroma sample value. This is also referred to as a multi-tap case, for example, 2 -tap. In this case, tire linear model may be re-writen as:
Figure imgf000037_0003
Figure imgf000038_0001
[00205] In this case, multiple scale parameters α and an offset parameter β may be derived by using the pre-operated neighboring luma sample values and the neighboring chroma sample values. In one example, the offset parameter [3 is optional. In one example, at least one of the multiple scale parameters a may be derived by utilizing the sample differences. Moreover, another of the multiple scale parameters α may be derived by utilizing the down-sampled luma sample value . In one example, at least one of the multiple scale parameters a may be derived by utilizing horizontal or vertical sample differences calculated on the basis of down-sampled neighboring luma sample values. In other words, the linear model may combine multiple scale parameters α asscosicated with different pre-opertaions.
[00206] Implicit filter shape derivation [00207] In one example, instead of explicitly signaling tire selected filter shape index, tire used direction oriented filter shape can be derived at decoder to save bit overhead. For example, at the decoder, a number of directional gradient filters may be applied for each reconstructed luma sample of the L-shaped template of the i-th neighboring row and column of the current block. Then the filtered values (gradients) may be accumulated for each direction of the number of directional gradient filters respectively. In an example, the accumulated value is an accumulated value of absolute values of corresponding filtered values. After the accumulation, the direction of the directional gradient filter for which the accumulated value is the largest may be determined as the derived (luma) gradient direction. For example, a Histogram of Gradients (HoG) may be built to determine the largest value. The derived direction can be further applied as the direction for predicting chroma samples in the current block.
[00208] The following example involves reusing the decoder-side intra mode derivation (DIMD) method for luma intra prediction included in ECM-4.0:
Step 1 : applying 2 kinds of directional gradient filters (3x3 hor/ver Sobel) for each reconstructed luma sample of the L-shaped template of the 2nd neighboring row and column of the current block;
Step 2: accumulating filtered values (gradients) by SAD (sum of absolute differences) for each of the directional gradient filters;
Step 3: Build a Histogram of Gradients (HoG) based on the accumulating filtered values; and
Step 4: The largest value in HoG is determined to be the derived (luma) gradient direction, based on which the GLM filter may be determined.
[00209] In one example, if the shape candidates are [-1, 0, 1; -1, 0, 1] (horizontal) and [1, 2, 1; -1, -2, -1J (vertical), when the largest value is associated with the horizontal shape, then use shape [-1, 0, 1; -1, 0, 1] for GLM based chroma prediction.
[00210] The gradient filter used for deriving the gradient direction can be the same or different with the GLM filter in shape. For example, both of the filters may be horizontal [-1, 0, 1; -1, 0, 1], or the two filters may have different shapes, while the GLM filter may be determined based on the gradient filter. [00211] The proposed GLM can be combined with above discussed MMLM or ELM. When combined with classification, each group can share or have its own filter shape, with syntaxes indicating shape for each group. For example, as a exemplary classifier, horiontal grandients grad hor may be classified into a first group, which correspond to a first linear model, and vertical grandients grad_ver may be classified into a second group, which correspond to a second linear model. In one example, the horiontal luma patterns may be generated only once.
[00212] Further possible classifiers are also provided as follows. With the classifers, the neighboring and internal luma-chroma sample pairs of the current video block may be classified into muitplc groups based on one or more thresholds. Please note that, as disscusscd above, each neighboring/intemal chroma sample and its corresponding luma sample may be referred to as a luma- chroma sample pair. The one or more thresholds are associated with intensities of neighboring/ internal luma samples. Tn this case, each of the multiple groups corresponds to a respective one of the plurality of linear models.
[00213] When combining with MMLM classifier, tire following operations may be perforated: classifying neighboring reconstructed luma-chroma sample pairs of the current video block into 2 groups based on T hreshold; deriving different linear models for different groups, wherein the deriving process may be GLM simplified, i.e., with the above pre-ope rations to reduce the number of taps; classifying luma-chroma sample pairs inside the CU (internal luma-chroma sample pairs, wherein each of the internal luma-chroma sample pairs comprises an internal chroma sample value to be predicted with the derived linear model) into 2 groups similarly based on Threshold; applying different linear models to the reconstructed luma samples in different groups; and predicting chroma samples in the CU based on different classified linear models. Wherein Threshold may be average value of the neighboring reconstructed luma samples. Note the number of classes (2) can be extended to multiple classes by increasing the number of Threshold (c.g., equally divided based on min/max of neighboring reconstructed (down-sampled) luma samples, fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels).
[00214] In one example, instead of MMLM luma DC intensity, the filtered values of FLM/GLM apply on neighboring luma samples are used for classification. For example, if 1-tap (1, -1) GLM is applied, average AC values are used (physical meaning). Tire processing can be: classifying neighboring reconstructed luma-chroma sample pairs into K groups based on one or more filter shapes, one or more filtered values, and K-l Threshold Ti; deriving different MLR models for different groups, wherein the deriving process may be GLM simplified, i.e., with the above pre -operations to reduce tire number of taps; classifying luma-chroma sample pairs inside tire CU (internal luma-chroma sample pairs, wherein each of the internal luma-chroma sample pairs comprises an internal chroma sample value to be predicted with the derived linear model) into K groups similarly based on one or more filter shapes, one or more filtered values, and K-l Threshold Ti; applying different linear models to the reconstructed luma samples in different groups; predicting chroma samples in the CU based on different classified linear models. Wherein Threshold can be predefined (e g., 0, or can be a table) or signalcd/switchcd in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels). For example. Threshold, can be tire average AC value (filtered value) (2 groups), or equally divided based on min/max AC (K groups), of neighboring reconstructed (can be down-sampled) luma samples.
[00215] It is also proposed to combine GLM with ELM classifier. As shown in Figures 15A to 15D, one filter shape (e.g., 1-tap) may be selected to calculate edge strengths. The direction is determined as a direction along which a sample difference between samples of the current and N neighboring samples (e.g., all 6 luma samples) is calculated. For example, the filter (shape [1 , 0, -1 ; 1, 0, -1]) at the upper middle in Figure 15A indicates a horizontal direction since a sample difference may be calculated between samples in the horizontal direction, while the filter below it (shape [1, 2, 1; -1, -2, -1]) indicates a vertical direction since a sample difference may be calculated between samples in the vertical direction. The positive and negative coefficients in each of the filters enable the calculation of the sample differences. The processing may then comprise: calculating one edge strength by the filtered value (e.g., equivalent); quantizing the edge strength into M segments by M-l thresholds Ti; using K classes to classify the current sample, (e.g., K==M); deriving different MLRmodels for different groups, wherein the deriving process may be GLM simplified, i.e., with the above pre-operations to reduce the number of taps; classifying luma-chroma sample pairs inside the CU into K groups; applying different MLR models to the reconstructed luma samples in different groups; and predicting chroma samples in the CU based on different classified MLR models. Please note that the filter shape used for classification can be the same or different with the filter shape used for MLR prediction. Both and the number of thresholds M-l, the thresholds values Ti, can be fixed oorr signaled/ switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels. Moreover, other classifiers/combined-classifiers as discussed in ELM can also be used for GLM.
[00216] If classified samples in one group arc less than a number (e.g., predefined 4), default values mentioned when discussing tire matrix derivation for the MLR model can be applied for the group parameters (αi, β). If the corresponding neighboring reconstructed samples are not available with respetto the selected LM modes, default values can be applied. For example, when MMLM L mode is selected but left samples are not valid.
[00217] Several methods relate to simplification for GLM are introduced as follows for further improving coding efficiency.
[00218] The matrix/parameter derivation in FLM requires floating-point operation (e.g., division in closed-form), which is expensive for decoder hardware, so a fixed-point design is required. For 1-tap GLM case, it can be taken as modified luma reconstructed sample generation of CCLM (e.g., horizontal gradient direction, from CCLM [1, 2, 1 ;1, 2, 1 J/8 to GLM [-1 , 0, 1 ; -1 , 0, 1 J), the original CCLM process can be reused for GLM, including fixed-point operation, MDLM downsampling, division table, applied size restriction, min-max approximation, and scale adjustment. For all items, 1-tap GLM can have its own configurations or share the same design as CCLM. For example, using simplified min-max method to derive the parameters (instead of LMS), and combined with scale adjustment after GLM model is derived. In this case, the center point (luminance value yr) used to rotate the slope becomes the average of the reference luma samples “gradient”. Another example, when GLM is on for this CU, CCLM slope adjustment is inferred off and don’t need to signal slope adjustment related syntaxes.
[00219] This section takes typical case reference samples (up 1 row and left 1 column) for example. Note as in Figure 14, extended reconstructed region can also use the simplification with the same spirit, and may be with syntax indicating the specific region (like MDLM, MRL).
[00220] Please note that the following aspects can be combined and applied jointly. For example, combining reference sample down-sampling and division table to perform the division process.
[00221] When classification (MMLM/ELM) is applied, each group can apply the same or different simplification operation. For example, samples for each group are padded respectively to the target sample number before applying right shift, and then apply the same derivation process, same division table.
[00222] Please note that the method of implicit filter shape derivation can also be used to determine whether to disable downsampled process in CCCM filter coefficients (treat with/without downsampled process as different filter shapes).
[00223] Fixed-point implementation
[00224] The 1-tap case can reuse the CCLM design, dividing by n may be implemented by right shift, dividing by A2 may be implemented by by a LUT The integerization parameters, including nα, nA1, nA2, rA1 rA2 ntable invloved in the integerization design of TMS CCEM and intermediate parameters for deriving the linear model (equations (19)-(20)) can be the same as CCLM or have different values, to have more precision. The integerization parameters can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTLI/CLI/Subblcok/Sample levels, can be conditioned on sequence bitdepth. For example, ntable=bitdepth+4.
[00225] MDLM down-sample
[00226] When GLM is combined with MDLM, the existed total samples used for parameter derivation may not be power-of-2 values, and need padding to power-of-2 to replace division with right shift operation. For example, for an 8x4 chroma CU, MDLM needs W+H=12 samples, with MDLM T only 8 samples are available (reconstructed), then down-sampled 4 samples (0, 2, 4, 6) may be padded equally. Codes for implementing such opertions are shown as follows: int targetSampNum = 1 << ( floor Log2( existSampNum - 1 ) + 1 ) ; if (targetSampNum ! = existSampNum) //if existSampNum not a value of power of 2 { xPadMdlmTemplateSample;
} int step = ( int ) (existSampNum / sampNumToBeAdd) ; for ( int i = 0; i < sampNumToBeAdd ; i++) { pTempSrc [ i ] = pSrc [ i * step] ; pTempCur[ i ] = pCur [ i * step] ;
[00227] Other padding method like repetitive/mirror padding with respect to last neighouring samples (rightmost/lowennost) can also be applied. [00228] The padding method for GLM can be the same or different with that of CCLM.
[00229] Note in ECM version, an 8x4 chroma CU MDLM_T/MDLM_L needs 2T/2L=16/8 samples respectively, in such case, same padding method can be applied to meet the target power-of-2 sample number.
[00230] Division LUT
[00231] Division LUT proposed for CCLM/LIC (Local Illumination Compensation) in known standard development like AVC/HEVC/AV1 /VVC/AVS can be used for GLM division. For example, reusing the LUT in JCTVC-I0166 for bitdcpth=10 case (Tabic 4). The division LUT can be different from CCLM. For example, CCLM uses min-max with DivTable as in equation 5, but GLM uses 32- entries LMS division LUT as in Table 5.
[00232] When GLM is combined with MMLM, the meanL values may not always be positive (e g., using filtcrcd/gradicnt values to classify groups), so sgn(mcanL) needs to be extracted, and use abs(meanL) to look-up tire division LUT. Note division LUT used for MMLM classification and parameter derivation can be different. For example, using lower precision LUT (as the LUT in min- max) for mean classification, and using higher precision LUT (as in the LMS) for parameter derivation.
[00233] Size restriction and latency constraint
[00234] Similar to the CCLM design, some size restrictions can be applied for ELM/FLM/GLM.
For example, same constraint for luma-chroma latency in dual tree may be applied.
[00235] The size restriction can be according to the CU area/width/height/depth. The threshold can be predefined or signaled in SPS/DPS/VPS/SEI/APS/PPS/PI I/SI I/Rcgion/CTU/CU/Subblcok/Samplc levels. For example, the predefined threshold may be 128 for chroma CU area.
[00236] In one example, the at least one pre-operation is performed in response to determining that the video block meets an enabling threshold, wherein the enabling threshold is associated with area, width, height or partition depth of the video block. Spesifically, the enabling threshold may define a minium or maximum area, width, height or partition depth of the video block. As understood by one skilled in the art, the video block may comprise a current chroma block and its collocated luma block. It is also proposed to apply the above enabling threshold for the current chroma block and its collocated luma block jointly. For example, the at least one pre-operation is performed in response to determining the enabling threshold is met for both the current chroma block and its collocated luma block.
[00237] Line buffer reduction
[00238] Similar to the CCLM design, if the collocated luma area of the current chroma CU contains the 1st row inside one CTU, the top template samples generation can be limited to 1 row, to reduce CTU row line buffer storage. Note that only one luma line (general line buffer in intra prediction) is used to make the down-sampled luma samples when the upper reference line is at the CTU boundary. [00239] For example, in Figure 13, if the collocated luma area of the current chroma CU contains the 1st row inside one CTU, top template can be limited to only use 1 row (but not 2) for parameter derivation (other CUs can still use 2 rows). This saves luma sample line buffer storage when processing CTU row by row at decoder hardware . Several methods can be used to achieve the line buffer reduction. Note the example of limited “ “11” row can be extended to N rows with similar operations. Similarly, 2- tap or multi-tap can also apply such operations. When applying multi-tap, chroma samples may also need to apply operations.
[00240] For example, take the 1-tap filter [1, 0, -1; 1, 0, -1] shown in Figure 15A as an example for illustration. This filter can be reduced to [0, 0, 0; 1, 0, -1], i.e., only use below row coefficients. Alternatively, the limited upper row luma samples can be padded (repetitive, mirror, 0, meanL, meanC... etc.) from the bellow row luma samples.
[00241] Take an example where N=4, that is, the video block is at a top boundary of a current CTU, while top 4 rows of neighboring luma sample values and corresponding chroma sample values are used for deriving the linear model. Please note that, the corresponding chroma sample values may refer to corresponding top 4 rows of neighboring chroma sample values (for example, for the YUV 4:4:4 format). Alternatively, the corresponding chroma sample values may refer to corresponding top 2 rows of neighboring chroma sample values (for example, for the YUV 4:2:0 format). In this case, the top 4 rows of neighboring luma sample values and corresponding chroma sample values may be divided into two regions - a first region comprising valid sample values (for example, the one nearest row of luma sample values and corresponding chroma sample values) and a second region comprising invalid sample values (for example, tire other three rows of luma sample values and corresponding chroma sample values). Then coefficients of the filter corresponding to sample positions not belonging to the first region may be set as zeros, such that only sample values from the first region are used for calculating the sample differences. For example, as discussed above, in this case the filter [1, 0, -1; 1, 0, -1] can be reduced to [0, 0, 0; 1, 0, -1], Alternatively, the nearest sample values in the first region may be padded to the second region, such that the padded sample values may be used to calculate the sample differences.
[00242] Fusion of chroma intra prediction modes
[00243] In one example, since GLM can be taken as one special CCLM mode, the fusion design can be reused or have its own way. Multiple (two or more) weights can be applied to generation the final predictor. For example. pred — (wO * predO + wl * predl + (1 « (shift — 1))) » shift wherein predO is the predictor based on non-LM mode, while predl is the predictor based on GLM, or pred0 is the predictor based on one of CCLM (including all MDLM/MMLM), while predl is the predictor based on GLM, or pred0 is the predictor based on GLM, while predl is the predictor based on GLM.
[00244] Different I/P/B slices can have different designs for weights, wO and wl, depending on if neighboring blocks is coded with CCLM/GLM/other coding mode or the block size/width/height.
[00245] For example, the designs for weights can be determined by the intra prediction mode of adjacent chroma blocks and shift is set equal to 2. Specifically, when the above and left adjacent blocks are both coded with LM modes, then {wO, wl}={ 1, 3}; when the above and left adjacent blocks are both coded with non-LM modes, then [wO, wl}={3, 1}; otherwise, {wO, wl}={2, 2}. For non-I slices, w0 and w1 can both be set equal to 2.
[00246] For the syntax design, if a non-LM mode is selected, one flag is signaled to indicate whether the fusion is applied.
[00247] As described above, GLM has good gain complexity trade-off since it can reuse the existing CCLM module without introducing additional derivation. Such 1-tap design can be extended or generalized further according to one or more aspects of the present disclosure.
[00248] In an aspect of the present disclosure, for a chroma sample to be predicted, one single corresponding luma sample L may be generated by combining collocated luma sample and neighboring luma samples. For example, the combination may be a combination of different linear filters, e.g., a combination of a high-pass gradient filter (GLM) and a low-pass smoothing filter (e.g., [1, 2, 1; 1, 2, l]/8 FIR down-sampling filtcrthat may be generally used in CCLM); and/or a combination of a linear filter and a non-linear filter (e.g., with power of n, e.g., Ln, n can be positive, negative, or +- fractional number (e.g., +1/2, square root or +3, cube, which can rounding and rescale to bitdepth dynamic range)).
[00249] In an aspect of the present disclosure, the combination may be repeatedly applied. For example, a combination of GLM and [1, 2, 1; 1, 2, l]/8 FIR may be applied on the reconstructed luma samples, and then a non-linear power of 1/2 may be applied. For example, the non-linear filter may be implemented as LUT (look up table), e.g, for bitDepth=10, power of n, n=l/2, LUT[i] = (int)(sqrt(i) + 0.5) « 5, i=0~1023, where 5 is to scale to bitdepth=10 dynamic range. The nonlinear filter may provide options when linear filter cannot handle the luma-chroma relationship efficiently. Whether to use nonlinear term can be predefined oorr signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblcok/Samplc levels.
[00250] In the above one or more aspects of the present disclosure, tire GLM may refer to Generalized Linear Model (may be used to generate one single luma sample linearly or nonlinearly, and the generated one single luma sample may be fed into the CCLM linear model to derive parameters of the CCLM linear model), linear/nonlinear generation may be called general patterns. Different gradient or general patterns can be combined to form another pattern. For example, a gradient pattern may be combined with a CCLM down-sampled value; a gradient pattern may be combined with a non-linear L2 value; a gradient pattern may be combined with another gradient pattern, the two gradient patterns to be combined may have different directions or the same direction, e.g., [1, 1, 1; -1, -1, -1] and [1, 2, 1; -1, -2, -1], which both have a vertical direction, may be combined, also [1, 1, 1; -1, -1, -1] and [1, 0, -1; 1, 0, -1], which have a vertical and horizontal directions, may be combined, as shown in Figures 15A to 15D. The combination may comprise plus, minus, or linear weighted.
[00251] GLM applied on down-sampled domain
[00252] As described above, pre-operations can be applied repeatedly and GLM can be applied on pre linear weighted/pre-operated samples. For example, as CCLM, one template filtering can be applied to luma samples, in order to remove outliers using the low-pass smoothing FIR filter [1, 2, 1; 1, 2, 1 ]/8 (i.e., CCLM down-sampling smoothing filter) and to generate down-sampled luma samples (one down- sampled luma sample corresponding to one chroma sample). And after that, 1-tap GLM can be applied on smoothed down-sampled luma samples to derive the MLR model.
[00253] Some gradient filter patterns, such as 3x3 Sobel or Prewitt operators, can be applied on down-sampled luma samples. The following table shows some of the gradient filter patterns.
Figure imgf000045_0001
[00254] The gradient filter patterns can be combined with other gradient/general filter patterns in the down-sampled luma domain. In one example, a combined filter pattern may be applied on down- sampled luma samples. For example, the combined filter pattern may be derived hy performing addition or subtraction operations to respective coefficients of the gradient filter patter and a DC/low-pass based filter pattern, such as filter pattern [0, 0, 0; 0, 1, 0; 0, 0, 0], or [1, 2, 1; 2, 4, 1; 1, 2, 1], In another example, the combined filter pattern is derived by performing addition or subtraction operations to a coefficient of the gradient filter pattern and a non-linear value such as L2. In another example, the combined filter pattern is derived by performing addition or subtraction operations to respective coefficients of the gradient filter pattern and another gradient filter pattern having a different or the same direction. In another example, the combined filter pattern is derived by performing linear weighted operations to the coefficients of the gradient filter pattern.
[00255] GEM applied on down-sampled domain can fit in CCCM framework but may sacrifice high frequency accuracy since low -pass smoothing is applied before applying GEM.
[00256] GLM serves as input of CCCM
[00257] As illustrated above, CCCM applies luma down-sampling before convolution as with
CCLM. The reconstructed luma samples arc down-sampled to match the lower resolution chroma grid when chroma sub-sampling is used. Since 1-tap GLM can also be taken as changing CCLM down- sample filter coefficients (e.g., from [1, 2, 1; 1, 2, 1]/ 8 to [1, 2, 1, -1, -2, -1], i.e., from low-pass to high- pass), the GLM can serve as the input of CCCM Specifically, the gradient filter of GLM replaces luma down-sampling filter ([1, 2, 1; 1, 2, 1]/ 8) with gradient-based coefficients (e.g., [1, 2, 1, -1, -2, -1). In this case, CCCM operation becomes “linear/non-linear combination of gradients”, as shown by the following equation:
[00258] predChromaVal = c0C + C1N + c2S + c3E + c4W + c5P + c6B where C, N, S, E, W, P are gradients of current or neighboring samples (compared to original down- sample values for CCCM) . Related GLM methods described in this disclosure can be applied in the same way before entering CCCM convolution, e.g., classification, separate Cb/Cr control, syntax, pattern combining, PU size restriction etc.
[00259] The gradient-based coefficients replacement can apply to specific CCCM taps. Also, not only high-pass but low-pass/band-pass/all-pass coefficients replacement can be used. The replacement can be combined with FLM/CCCM shape switch discussed above (leading to different number of taps). For example, gradient patterns in Figures 15A to 15D can be used for replacement. In one example, the operations for applying GLM as input of CCCM includes: predefining one or more coefficients candidates for CCCM/FLM down-sampling; determining CCCM/FLM filter shape and number of filter taps for this CU; applying different CCLM down-sample coefficients to different filter taps, wherein the coefficients can be high-pass filters (GLM), or low-pass/band-pass/all-pass filters; generating the down-sampled luma samples (using the applied coefficients) for CCCM input samples; and feeding the generated down-sampled luma samples into CCCM process.
[00260] The following shows some examples for changing the CCLM down-sample filter coefficients:
[00261] Example 1:
[00262] Candidate filters are [1, 2, 1 ; 1 , 2, 1J/8 and [1, 0, -1; 1, 0, -1 J; predChromaVal = c0C + CjN + c2S + C3E + c4W + c5P + C6B, using typical CCCM cross shape, 7 -tap; N, S, W, E use filters [1, 2, 1; 1, 2, 1]/ 8, keeping original CCLM down-sampling filter; and C, P use filters [1, 0, -1; 1, 0, -1], i.e., horizontal gradient filter, and P then physically means gradientA2.
[00263] Example 2:
[00264] Candidate filters arc [1, 2, 1; 1, 2, l]/8, [1, 0, -1; 1, 0, -1], [1, 2, 1; -1, -2, -1], [2, 1, -1; 1, - 1, -2], and [-1, 1, 2; -2, -1, 1]; predChromaVal = c0C0 + CiCi + c2C2 + c3C3 + c4C4 + c5P + c,,B: Couses filter [1, 2, 1; 1, 2, l]/8, keeping original CCLM down-sampling filter; C3 uses filter [1, 0, -1; 1, 0, -1]; C2 uses filter [1, 2, 1; -1, -2, -1J; C3 uses filter [2, 1, -1; 1, -1, -2J; C4 uses filter [-1, 1, 2; -2, -1, 1J; C5 uses filter [1, 2, 1; 1, 2, 1]/ 8, keeping original CCLM down-sampling filter; C0 to C5, and P have the same down-sampled luma position (==C in typical CCCM cross shape); and Ci to C4 are generated by different direction Sobel-based gradient filters (as shown in Figures 15A to 15D).
[00265] Example 3:
[00266] Candidate filters arc [1, 2, 1; 1, 2, l]/8, [1, 0, -1; 1, 0, -1], [1, 2, 1; -1, -2, -1], [0, 1, 1; 0, 1, 1], and [1, 1, 0; 1, 1, 0]; predChromaVal = c0C0 + CiCi + c2C2 + c3C3 + c4C4 + c5P + c6B; Co uses filter [1, 2, 1; 1, 2, l]/8, keeping original CCLM down-sampling filter; Ci uses filter [1, 0, -1; 1, 0, -1]; C2 uses filter [1 , 2, 1 ; -1 , -2, -1]; C3 uses filter [0, 1, 1 ; 0, 1 , 1 ]; C4 uses filter [1 , 1 , 0; 1 , 1 , 0]; C5 uses filter [1, 2, 1; 1, 2, l]/8, keeping original CCLM down-sampling filter; C0to C5, and P have the same down- sampled luma position (==C in typical CCCM cross shape); Ci to C2 are generated by different direction Sobel-based gradient filters (as shown in Figures 15A to 15D); and C3 to C4 are generated by low-pass filters
[00267] Which CCCM/FLM taps to apply the coefficients replacement can be predefined (as above examples) or signaled/switched in
SPS/DPS/VPS/SEl/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
[00268] For each CCCM/FLM tap, the coefficients candidate for CCCM/FLM down-sampling can be predefined or signaled/switched in
SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
[00269] Example 4:
[00270] Candidate filters arc [1, 2, 1; 1, 2, l]/8, [1, 0, -1; 1, 0, -1], [1, 2, 1; -1, -2, -1], [2, 1, -1; 1, - 1, -2], and [-1, 1, 2; -2, -1, 1]; predChromaVal = c0C + c3N + c2S + c3E + c4W + c5P + c6B, using typical CCCM cross shape, 7 -tap; C uses switching down-sampling filters among 5 candidate filters; N, S, W, E use filter [1, 2, 1; 1, 2, l]/8, keeping original CCLM down-sampling filter; and P uses switching down-sampling filters among 5 candidate filters.
[00271] Example 5:
[00272] Candidate filters are: [1, 2, 1; 1, 2, 1J/8, [1, 0, -1; 1, 0, -1 J, [1, 2, 1; -1, -2, -1], [0, 1, 1; 0, 1,
1], and [1, 1, 0; 1, 1, 0]; predChromaVal = c0C + C1W + c2E + c3P + c4B, i.e., horizontal minus sign shape, 5-tap; C uses switching down-sampling filters among 5 candidate filters; W, E use switching down-sampling filters among 3 candidate filters: [1, 2, 1; 1, 2, l]/8, [0, 1, 1; 0, 1, 1], and [1, 1, 0; 1, 1, OJ; and P uses filter [1 , 2, 1 ; 1 , 2, 1 J/8, keeping original CCLM down-sampling filter.
[00273] In one or more aspects of the present disclosure, one or more syntaxes may be introduced to indicate information on the GLM. An example of GLM syntaxes is illustrated in the following Table 10.
Table 10
Figure imgf000047_0001
Figure imgf000048_0001
FLC: fixed length code
TU: truncated unary code
EGk: exponential-golomb code with order k, where k can be fixed or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblcok/Sample levels.
SVLC: signed EGO UVLC: unsigned EGO
[00274] Please be noted that the binarization of each syntax element may be changed.
[00275] In an aspect of the present disclosure. The GLM on/off control for Cb/Cr components may be jointly or separately. For example, at CU level, 1 flag may be used to indicate if GLM is active for this CU. If active, 1 flag may be used to indicate if Cb/Cr are both active. If not both active, 1 flag to indicate cither Cb or Cr is active. Filter index/gradient (general) pattern may be signaled separately when Cb and/or Cr is active. All flags may have its own context model or be bypass coded.
[00276] In another aspect of the present disclosure, whether to signal GLM on/off flags may depend on luma/chroma coding modes, and/or CU size. For example, in ECM5 chroma intra mode syntax, GLM may be inferred off when MMLM or MMLM L or MMLM T is applied; when CU area < A, where A ccaann be predefined oorr signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels; If combined with CCCM, GLM may be inferred off when CCCM is on.
[00277] Please be noted that when GLM is combined with MMLM, different models may share the same or have their own gradient/general patterns.
Figure imgf000049_0001
[00278] When GLM is combined with CCCM/FLM, CU level GLM enabling flag can be inferred off if current CU is enabled as CCCM/FLM. hasGlmFlag &= 1 pu . cccmFlag;
[00279] CCCM without down-sampled process
[00280] CCCM requires to process down-sampled luma reference values before the calculation of model parameters and applying the CCCM model, which burden decoder processing cycles. In this section, CCCM without down-sampling process is proposed, including utilizing non-down-sampled luma reference values and/or different selection of non-down-sampled luma reference. One or more filter shapes may be used for the purpose as described below.
[00281] Please note that mcthods/cxamplcs in this section can be combined/ reused with the methods mentioned above, including but not limited to methods related to classification, filter shape, matrix derivation (with special handling), applied region, and syntax. Moreover, methods/examples listed in this section can also be applied with the methods/examples above (more taps), to have a better perfonnance with certain complexity trade-off.
[00282] In this disclosure, reference samples/training templates/reconstructed neighboring regions usually refer to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
[00283] In one example, tire convolutional 7-tap filter may include a 5-tap plus sign shape spatial component, a nonlinear term and a bias term. The input to the spatial 5-tap component of the filter includes a center (C) non-downsamplcd luma sample which is collocated with the chroma sample to be predicted and its non-downsampled above or north (N), below or south (S), left or west (W) and right or east (E) neighbors as illustrated in Figure 10A.
[00284] The nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
[00285] P = ( C*C + midVai ) » bitDepth
[00286] That is, for 10-bit content it is calculated as:
[00287] P = ( C*C + 512 ) » 10
[00288] The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00289] Output of the filter is calculated as a convolution between the filter coefficients Ci and the input values and clipped to the range of valid chroma samples:
[00290] predChromaVal = c0C + c1N + c2S + c3E + c4W + c5P + c6B
[00291] In another example, the convolutional 7-tap filter may include a 6-tap rectangle shape spatial component and a bias term. The input to the spatial 6-tap component of the filter includes a center (b) non-downsamplcd luma sample which is collocated with the chroma sample to be predicted and its non-downsampled below-left or south-west (d), below-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16.
[00292] The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00293] Output of the fdter is calculated as a convolution between the fdter coefficients ci and the input values and clipped to the range of valid chroma samples:
[00294] predChromaVal = coa + C1b + c2c + c3d + c4e + c5f + c6B
[00295] In yet another example, the convolutional 8-tap filter may consist of a 6-tap rectangle shape spatial component, a nonlinear term and a bias term. Tire input to the spatial 6-tap component of the filter consists of a center (b) non-downsampled luma sample which is collocated with the chroma sample to be predicted and its non-downsamplcd below-left or south-west (d), below-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16.
[00296] The nonlinear term P is represented as power of two of the center luma sample (b) and scaled to the sample value range of the content: [00297] P ( b*b + midVai ) » bitDepth
[00298] That is, for 10-bit content it is calculated as:
[00299] P = ( b*b + 512 ) » 10
[00300] The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00301] Output of the filter is calculated as a convolution between the filter coefficients ct and the input values and clipped to the range of valid chroma samples:
[00302] prcdChromaVal = coa + Cjb + c2c + c3d + c4c + c5f + c6P+ c7B
[00303] It should be appreciated that the examples illustrated above are merely sample examples, and other implementations may be possible without causing a departure of the present dislcosure, such as, with more or less taps and having any shape of the shapes shown in Figure 16 (where the chroma sample is represented as a circle).
[00304] Filter shape
[00305] One or more shape/number of filter taps may be used for CCCM prediction, as shown in
Figure 16, Figure 17, and Figures 18A to 18B. One or more sets of filter taps may be used for FLM prediction, examples being shown in Figures 19A to 19G. The selected luma reference values are non- down-sampled. One or more predefined shape/number of filter taps may be used for CCCM prediction based on previous decoded information on TB/CB/slice/picture/sequence level.
[00306] Though a multiple tap filter can fit well on training data (i.e., top/left neighboring reconstructed luma/chroma samples), in some cases, that training data do not capture full characteristics of the testing data, and it may result in overfitting and may not predict well on the testing data (i.e., the to-be-predicted chroma block samples). Also, different filter shapes may adapt well to different video block content, leading to more accurate prediction. To address this issue, the filter shape/number of filter taps can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels. A set of filter shape candidates can be predefined or signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels. Different components (U/V) may have different filter switch control. For example, as shown in tire following table, predefining a set of filter shape candidates (idx=0~5), and filter shape (1, 2) denotes a 2 -tap luma filter, while filter shape (1, 2, 4) denotes a 3-tap luma filter as shown in Figure 11... etc. The filter shape selection of U/V components can be switched in PH or in CU/CTU levels. Note thatN-tap can represent N-tap with or without the offset β as described above.
Figure imgf000052_0001
[00307] Different chroma typcs/color formats can have different predefined filter shapcs/taps. For example, using predefined filter shape for 420 type-0: (1, 2, 4, 5), 420 type-2: (0, 1, 2, 4, 7), 422: (1, 4), 444: (0, 1, 2, 3, 4, 5) as shown in Figure 12.
[00308] The unavailable luma/chroma samples for deriving the MLR model can be padded from available reconstructed samples. For example, if using a 6-tap (0, 1, 2, 3, 4, 5) filter as in Figure 12, for a CU located at the left picture boundary, the left columns including (0, 3) are not available (out of picture boundary), so (0, 3) are repetitive padding from (1, 4) to apply the 6-tap filter. Note the padding process applied in both training data (top/left neighboring reconstructed luma/chroma samples) and testing data (the luma/chroma samples in the CU).
[00309] According to one or more embodiments of the disclosure, the unavailable luma/chroma samples for deriving the MLR model can be skipped and not used. Then the padding process is not needed for the unavailable luma/chroma samples.
[00310] CCLM/MMLM with LDL decomposition
[00311] CCCM requires to process LDL decomposition to calculate the model parameters of CCCM model, avoiding using square root operations and only integer arithmetic is required. In this section, CCLM/MMLM with LDL decomposition arc proposed. LDL decomposition may also be used in ELM/FLM/GLM, as described above.
[00312] Please note that methods/examples in this section can be combined/reused with the methods mentioned above, including but not limited to methods related to classification, filter shape, matrix derivation (with special handling), applied region, and syntax. Moreover, methods/examples listed in this section can also be applied with the methods/examples above, to have a better performance with certain complexity trade-off.
[00313] In this disclosure, reference samples/training templates/reconstmcted neighboring regions usually refer to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
[00314] CCLM/MMLM with extended range
[00315] One or more reference samples may be used for CCLM/MMLM prediction, i.c., as shown in Figure 10B, the reference area may be the same as the reference area in CCCM. Different reference areas may be used for CCLM/MMLM prediction based on previous decoded information on TB/CB/slice/picture/sequence level.
[00316] Though training data with multiple reference areas can fit well on the calculation of model parameters, in some cases that training data do not capture full characteristics of testing data, it may result in overfitting and may not predict well on testing data (i.e., the to-be-predicted chroma block samples). Also, different reference areas may adapt well to different video block content, leading to more accurate prediction. To address this issue, the reference shapc/numbcr of reference areas can be predefined or signaled/ switched in
SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels. A set of reference area candidates ccaann be predefined or signaled/switched in
SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Rcgion/CTU/CU/Subblock/Samplc levels. Different components (U/V) may have different reference area switch control. For example, predefined a set of reference area candidates (idx=0~4) as shown in the table below. The reference area selection of U/V components can be switched in PH or in CU/CTU levels. Different chroma types/color formats can have different predefined reference areas.
Figure imgf000053_0001
[00317] The unavailable luma/chroma samples for deriving the MLR model can be padded from available reconstructed samples, the padding process being applied in both training data (top/lcft neighboring reconstructed luma/chroma samples) and testing data (the luma/chroma samples in tire CU). [00318] According to one or more embodiments of the disclosure, the unavailable luma/chroma samples for deriving the MLR model can be skipped and not used. Then the padding process is not needed for the unavailable luma/chroma samples.
[00319] FLM/GLM/ELM/CCCM with minimal samples restriction
[00320] FLM requires to process down-sampled luma reference values and calculate model parameters, which burden decoder processing cycles, especially for small blocks. In this section, FLM with minimal samples restriction is proposed, for example, FLM is only used for samples larger than predefined number, such as 64, 128. One or more different restnetions may be used for the purpose, for example, FLM is only used in single model for samples larger than a predefined number, such as 256, and FLM is only used in multi model for samples larger than a predefined number, such as 128.
[00321] According to one or more embodiments of the disclosure, the number of predefined minimal samples for single model may be larger than or equal to the number of predefined minimal samples for multi model. For example, FLM/GLM/ELM/CCCM is only used in single model for samples larger than or equal to a predefined number, such as 128, and FLM/GLM/ELM/CCCM is only used in multi model for samples larger than or equal to a predefined number, such as 256.
[00322] According to one or more embodiments of the disclosure, the number of predefined minimal samples for FLM/GLM/ELM may be larger than or equal to the number of predefined minimal samples for CCCM. For example, CCCM is only used in single model for samples larger than or equal to a predefined number, such as 0, and CCCM is only used in multi model for samples larger than or equal to a predefined number, such as 128. FLM is only used in single model for samples larger than or equal to a predefined number, such as 128, and FLM is only used in multi model for samples larger than or equal to a predefined number, such as 256.
[00323] Please note that methods/examples in this section can be combined/ reused with the methods mentioned above, including but not limited to methods related to classification, filter shape, matrix derivation (with special handling), applied region, and syntax. Moreover, methods/examples listed in this section can also be applied with the methods/examples above (more taps), to have a better performance with certain complexity trade-off.
[00324] Combined multiple modes of FLM/GLM/ELM/CCCM/CCLM
[00325] According to one or more embodiments of tire disclosure, two models of multiple modes of FLM/GLM/ELM/CCCM/CCLM may be further combined to bring additional coding efficiency. For example, first the parameters of CCCM(c1) and GLM(a, b) are derived separately, then the weights (wi) between CCCM and GLM are derived by linear regression, finally the weighted CCCM and GLM are used to predict chroma samples from reconstructed luma samples.
GLMpredChromaVal = a*lumaVal + b
CCCMpredChromaVal = c0*C + c1*N + c2*S + c3*E + c4*W + c5*P + c6*B FinalpredChromaVal = w0* GLMpredChromaVal + Wi*CCCMpredChromaVal
[00326] According to one or more embodiments of the disclosure, there is a flag signaled/switched in SPS/DPS/VPS/SEI/APS/PPS/PH/SH/Region/CTU/CU/Subblock/Sample levels to indicate whether the combined mode is used or not.
[00327] According to one or more embodiments of the disclosure, instead of explicitly signaling the selected mode flag, the mode flag can be derived at decoder to save bit overhead.
(1) Determine M combined candidates for the current CU
(2) Divide the available L-shapcd template area into N regions, denoted as R0, R1 , ... RN -1 (divide the training data into N sets, N-fold training)
(3) Apply M combined candidates independently to part of available template area (can be single or multiple regions in R0, R1, ... RN-1)
(4) Derive M filter coefficient sets (according to M filter shapes), denoted as F0, F1, ... FM-1
(5) Apply the derived F0, F1 , ... FM-1 filter coefficient sets to other part of available template area, different from tire part of available template in (3)
(6) Accumulate errors by SAD, SSD, or SATD, denoted as E0, E1, ... EM-1
(7) Sort and pick K smallest errors, denoted as E’0, E'1 , ... E’K_1 , which correspond to K combined filters/K filter coefficient sets
(8) Signal and select 1 combined filter in K, to apply to the current CU for chroma prediction; Tf K is 1 , then don’t need to signal (the filter shape with the smallest error is the applied combined filter)
[00328] For example,
(1) Predefine 3 filter candidates for the current CU, such as CCCM, GEM and combined CCCM and GLM
(2) Divide the available L-shaped template area (CCCM 6 chroma rows/columns, note that in CCCM design, each chroma sample involves 6 luma samples for downsampling) into 2 regions, denoted as R0, R1
E.g., even rows/columns: RQ, odd rows/columns: R,
Figure 20A shows the example that in template area, even-row area R0 is used for training/deriving 3 filter coefficient sets, and odd-row area R1 is used for validation/comparing and sorting costs of 3 filter coefficient sets.
(3) Apply 3 filter candidates independently to part of available template area (single R0)
(4) Derive 3 filter coefficient sets (according to 4 filter shapes), denoted as F0, F1 02
(5) Apply the derived F0, F1, F2 filter coefficient sets to other part of available template area (R1), different from the part of available template in (3)
(6) Accumulate errors by SAD, SSD, or SATD, denoted as E0, E1, E2
(7) Sort and pick 1 smallest error, denoted as E’o, which correspond to 1 filter shapes/1 filter coefficient sets
(8) K is 1, then don’t need to signal (the filter with the smallest error is the applied filter shape)
[00329] Please note that methods/ examples in this section can be combined/reused from the methods mentioned in all sections, including but not limited to classification, filter shape, matrix derivation (with special handling), applied region, syntax. Moreover, mcthods/cxamplcs listed in this section can also be applied in all sections to have a better performance with certain complexity trade- off.
[00330] CCCM with non-downsampled and downsampled luma reference values
[00331] Only downsampled luma reference values may be used in CCCM to calculate model parameters and apply the CCCM model. In this section, non-downsampled luma reference values are also used in CCCM to calculate model parameters and apply the CCCM model, including utilizing non- downsampled and downsampled luma reference values in different or the same position. One or more filter shapes may be used for the purpose, as description above .
[00332] In one example, the convolutional 8-tap filter may include a 6-tap rectangle shape spatial component, a downsampled luma sample and a bias term. Tire input to the spatial 6-tap component of the filter includes a center (b) non-downsampled luma sample which is collocated with the chroma sample to be predicted and its non-downsampled below-left: or south-west (d), bclow-right or south-east (f), below or south (e), left or west (a) and right or east (c) neighbors as illustrated Shape 1 in Figure 16 and a center (C) downsampled luma sample which is collocated with the chroma sample to be predicted. [00333] The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00334] Output of the filter is calculated as a convolution between the filter coefficients Ci and the input values and clipped to the range of valid chroma samples: predChromaVal = c0a + C1b + c2c + c3d + c4e + c5f + c6C+ c7B
[00335] Please note that methods/ examples in this section can be combined/reused from the methods mentioned above, including but not limited to classification, filter shape, matrix derivation (with special handling), applied region, syntax. Moreover, methods/examples listed in this section can also be applied in the methods mentioned above (more taps), to have a better performance with certain complexity trade-off.
[00336] In this disclosure, reference samples/training template/reconstructed neighbouring region usually refers to the luma samples used for deriving the MLR model parameters, which are then applied to the inner luma samples in one CU, to predict the chroma samples in the CU.
[00337] It should be appreciated by those skilled in the art that the examples above are merely used for illustration, and other implementations may be possible without causing a departure of the present disclosure.
[00338] Figure 21 illustrates a workflow of a method 2100 for decoding video data according to one or more aspects of tire present disclosure, tire method 2100 may be perfonned by a decoder.
[00339] At step 2110, a video block may be obtained from a bitstream. For example, a block-based video decoder may receive and process the bitstream to obtain the video block, as described with reference to Figure 3.
[00340] At step 2120, internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block may be obtained by the decoder. For example, the external region of the video block may comprise one or more rows and/or columns next to the video block. The rows and/or columns may be included in the reconstructed area.
[00341] At step 2130, a set of weighting coefficients corresponding to a filter shape may be determined by using values based on the external luma sample values and the external chroma sample values. For example, the filter shape and the set of weighting coefficients may correspond to a CCCM filter and may be configured for predicting a chroma sample value based on a plurality of corresponding luma sample values. Tire values used for calculating tire set of weighting coefficients may comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values.
[00342] In an example, non-downsampled luma sample values and downsampled luma sample values may be combined to adapt varying properties of an image. For example, a luma sample collocated with the chroma sample may be referred to as a center luma sample herein, and both downsampled and non-downsampled values associated with the center luma sample may be used to calculate the set of weighting coefficients of the CCCM filter. The downsampled value associated with the center luma sample may be obtained by applying any suitable filter on neiboring luma sample values of the center luma sample.
[00343] In another example, the information of non-downsampled luma sample values may be more helpful to predict the corresponding chroma sample value, and weighting coefficients of the CCCM filter may be trained at the decoder over the non-downsampled luma sample values, with or without the offset (B) and/or nonlinear term (P). For example, any non-downsampled luma sample values of neiboring luma samples may be used to derive the weighting coefficients of the CCCM filter. Tire neiboring luma samples may be located around a center luma sample for the chroma sample.
[00344] At step 2140, internal chroma sample values of the video block may be predicted using the filter shape and the calculated set of weighting coefficents based on the internal luma sample values of the video block.
[00345] At step 2150, the video block may be decoded using the predicted internal chroma sample values to obtain decoded video block. For example, the decode video block may be presented on a screen or used for further process, such as editing.
[00346] Figure 23 illustrates a workflow of a method 2300 for encoding video data according to one or more aspects of the present disclosure. The method 2300 may be a counterpart to the method 2100 and may be performed by an encoder. Steps 2320, 2330, 2340 of method 2300 may correspond to steps 2120, 2130, 2140 of method 2100. At step 2310, a video block may be obtained by an encoder, as described with reference to Figure 1. At step 2350, a bitstream comprising encoded video block may be generated at the encoder by using the predicted internal chroma sample values. The compressed bitstream may be communicated to the decoder through any suitable medium, such as wireless or wired network, or Blu-ray disc.
[00347] Figure 22 illustrates a workflow of a method 2200 for decoding video data according to one or more aspects of the present disclosure, the method 2200 may be performed by a decoder.
[00348] At step 2210, a video block may be obtained from a bitstream. For example, a block-based video decoder may receive and process the bitstream to obtain the video block, as described with reference to Figure 3.
[00349] At step 2220, internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block may be obtained at the decoder. Tire first external region may be included in the reconstructed region and may be part of the reconstructed region.
[00350] At step 2230, a plurality of sets of weighting coefficients corresponding to a plurality of filters may be obtained based on the external luma sample values and the external chroma sample values of the first external region. For example, each of the plurality of the filters may be trained indepenetly over the first external region, to obain respective sets of weighting coefficients of the plurality of the filters. For example, each of the plurality of the filters may be any of FLM, CCCM, GLM, ELM, CCLM, or any combination thereof.
[00351] At step 2240, at least one of the plurality of the filters may be applied to predict internal chroma sample values of the video block. The determination of which one or more of plurality of filters to be used for the prediction of the internal chroma sample may be based on an explicit signaling transmitted by an encoder, or inferred by the decoder without additional signaling overhead.
[00352] In an example, the decoder may reveive a signaling in the bitstream indicative of the plurality of filters to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values. In this case, the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2230 may be used to predict the internal chroma sample values of the video block.
[00353] In another example, the decoder may evaluate the performance of the the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2230, and select at least one filter of the plurality of the filters with the highest performance to use. For example, a second external region maybe obtained at the decoder to serve as a dataset for testing or evaluation. The second external region used for evaluation may be different from the first external region used for derivation of the sets of weighting coefficients. One of the plurality of the filters having the smallest prediction error may be selected as the applied filter. Alternatively, a number of K filters of the pluaralty of filters having K sandiest prediction errors may be selected as the applied filters. Weights (e g., w,) for the selected K filters may be trained in a similar way as the derivation of the sets of the weighting coefficients of the plurality of filters, such as by using tire first external region or other external regions.
[00354] In some example, the first external region and the second external region may have any shape, e.g., one or more column and/or raw, or partial column and/or raw in reconstructed region and have any number of samples. For example, the first external region and/or the second external region having a small number of samples may reduce the computation burden on the decoder.
[00355] At step 2250, the video block may be decoded using the predicted internal chroma sample values to obtain decoded video block. For example, the decode video block may be presented on a screen or used for further process, such as editing.
[00356] Figure 24 illustrates a workflow of a method 2400 for encoding video data according to one or more aspects of the present disclosure. The method 2400 may be a counterpart to the method 2200 and may be performed by an encoder. Steps 2420, 2430, 2440 of method 2400 may correspond to steps 2220, 2230, 2240 of method 2200. At step 2410, a video block may be obtained by an encoder, as described with reference to Figure 1. At step 2450, a bitstream comprising encoded video block may be generated at the encoder by using the predicted internal chroma sample values. For example, the compressed bitstream may be communicated to the decoder through any suitable medium, such as wireless or wired network, or Blu-ray disc.
[00357] In an example, the encoder may evaluate the performance of the the plurality of the filters with the respective sets of weighting coefficients calcuated at step 2430, and select a number K of filters of the plurality of the filters to use based on the evaluated performance, e.g., by determining N filters with smallest prediction errors and selecting K filters to be combined from the N filters. Weights (e.g., w;) for the selected K filters may be trained in a similar way as the derivation of the sets of the weighting coefficients of the plurality of filters, such as by using the first external region or other external regions. In this case, the encoder may generate a signaling indicative of the selected K filters and send the signaling to the decoder via the bitstream generated at step 2450. In other cases, the encoder may generate no signaling indicative of which one or more filters to use in the cross-component prediction, instead, the one or more filters to be used can be derived at the decoder, such as by calculating perspective prediction errors for each of the plurality of filters with pre-defined filter shapes, and sorting the prediction errors to select the best one or more filter with smallest prediction error(s).
[00358] It should be appreciated by those skilled in the art that the one or more filter of the plurality of filters to be used in cross-component prediction may be selected based on other critierions, such as complexity, a trade off between a prediction error and complexity, or compatibility, without causing a departure of the present disclosure.
[00359] Figure 25 illustrates an exemplary computing sy stem 2500 according to one or more aspects of the present disclosure. The computing system 2500 may comprise at least one processor 2510. The computing system 2500 may further comprise at least one storage device 2520. Tire storage device 2520 may store computer-executable instructions that, when executed, cause the processor 2510 to perform the steps of methods described above. The processor 2510 may be a general -purpose processor, or may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. The storage device 2520 may store the input data, output data, data generated by processor 2510, and/or instructions executed by processor 2510.
[00360] It should be appreciated that the storage device 2520 may store computer-executable instructions that, when executed, cause the processor 2510 to perform any operations according to the embodiments of the present disclosure.
[00361] In an embodiment, there is also provided a non-transitory computer-readable storage medium comprising a plurality of programs, for example, in the storage device 2520, executable by the processor 2510 in the computing environment, for performing the above-described methods and/or storing a bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above. In one example, the plurality of programs may be executed by the processor 2510 in the computing environment to receive (for example, from the video encoder in FIG. 1) a bitstream or data stream including encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements, etc.), and may also be executed by the processor 2510 in the computing environment to perform the decoding method described above according to the received bitstream or data stream. In another example, the plurality of programs may be executed by the processor 2510 in tire computing environment to perfomi the encoding method described above to encode video information (for example, video blocks representing video frames, and/or associated one or more syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 2510 in the computing environment to transmit the bitstream or data stream (for example, to the video decoder in FIG. 3). Alternatively, the non-transitory computer- readable storage medium may have stored therein a bitstream or a data stream comprising encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements etc.) generated by an encoder (for example, the video encoder in FIG. 1) using, for example, the encoding method described above for use by a decoder (for example, the video decoder in FIG 3) in decoding video data. The non-transitory computer-readable storage medium may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device or tire like.
[00362] In an embodiment, there is provided a bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above. In an embodiment, there is provided a bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
[00363] In an embodiment, the computing environment may be implemented with one or more ASICs, DSPs, Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), FPGAs, GPUs, controllers, micro-controllers, microprocessors, or other electronic components, for performing the above methods.
[00364] It should be appreciated that all the operations in the methods described above are merely exemplary , and tire present disclosure is not limited to any operations in the methods or sequence orders of these operations and should cover all other equivalents under the same or similar concepts.
[00365] It should also be appreciated that all the modules in the methods described above may be implemented in various approaches. These modules may be implemented as hardware, software, or a combination thereof. Moreover, any of these modules may be further functionally divided into sub- modules or combined together.
[00366] It should be illustrated that the terms “first,” “second,” and the like used in the description, claims of the present disclosure, and the accompanying drawings are used to distinguish objects, and not used to describe any specific order or sequence. It should be understood that the data used in this way may be interchanged under an appropriate condition, such that the embodiments of the present disclosure described herein may be implemented in orders besides those shown in the accompanying drawings or described in the present disclosure.
[00367] Tire previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents to the elements of the various aspects described throughout the present disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and arc intended to be encompassed by the claims.

Claims

CLAIMS What is claimed is:
1. A method for decoding video data, comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of the video block; determining, by using values based on the external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the fdter shape and the set of weighting coefficients, internal chroma sample values of the video block based on the internal luma sample values; and obtaining predicted video block using the predicted internal chroma sample values.
2. The method of claim 1, wherein the at least one of the external luma sample values comprises a center luma sample value that is collocated with an external chroma sample value.
3. The method of claim 2, wherein the non-downsampled values of the external luma samples comprise at least one of a non-downsampled luma sample value of the center luma sample value, a non- downsampled luma sample value above the center luma sample value, a non-downsampled luma sample below the center luma sample value, a non-downsampled luma sample value on the left of the center luma sample value, or a non-downsampled luma sample value on the right of the center luma sample value.
4. Tire method of claim 2, wherein tire non-downsampled values of the external luma samples comprise at least one of a non-downsampled luma sample value of the center luma sample value, a non- downsampled luma sample value on the below-left of the center luma sample value, a non- downsampled luma sample value on the below-right of the center luma sample value, a non- downsampled luma sample value below the center luma sample value, a non-downsampled luma sample value on the left of the center luma sample value, or a non-downsampled luma sample value on the right of the center luma sample value.
5. The method of claim 1, further comprising: determining whether the values comprise tire non-downsampled values of the external luma sample values or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values based on the filter shape.
6. Tire method of claim 5, further comprising: determining the values comprise the non-downsampled values of the external luma sample values if the filter shape is square.
7. A method for decoding video data, comprising: obtaining a video block from a bitstream; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and obtaining predicted video block using the predicted internal chroma sample values.
8. The method of claim 7, further comprising: receiving a signaling in the bitstream indicative of whether a combined mode to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values.
9. The method of claim 8, wherein the signaling is at SPS, DPS, VPS, SEI, APS, PPS, PH, SH, Region, CTU, CU, subblock, or sample level.
10. The method of claim 7, further comprising: receiving a signaling in tire bitstream indicative of the plurality of filters to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values.
11. The method of claim 7, further comprising: obtaining external luma sample values and external chroma sample values of a second external region of the video block; evaluating prediction errors for each of the plurality of filters based on the external luma sample values and the external chroma sample values of the second external region; and determining the at least one filter of the plurality of filters based on the prediction errors.
12. Tire method of claim 11 , wherein the one of the plurality of filters having the lowest prediction error is determined as the at least one fdter.
13. A method for encoding video data, comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of an external region of tire video block; determining, by using values based on the external luma sample values and the external chroma sample values, a set of weighting coefficients corresponding to a filter shape, wherein the filter shape and the set of weighting coefficients are configured for predicting a chroma sample value based on a plurality of corresponding luma sample values, and the values comprise non-downsampled values of the external luma sample values, or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values; predicting, with the filter shape and the set of weighting coefficients, internal chroma sample values of the video block based on the internal luma sample values; and generating a bitstream comprising encoded video block by using the predicted internal chroma sample values.
14. Tire method of claim 13, wherein the at least one of tire external luma sample values comprises a center luma sample value that is collocated with an external chroma sample value.
15. The method of claim 14, wherein the non-downsampled values of the external luma samples comprise at least one of a non-downsampled luma sample value of the center luma sample value, a non- downsampled luma sample value above the center luma sample value, a non-downsampled luma sample below the center luma sample value, a non-downsampled luma sample value on tire left of the center luma sample value, or a non-downsampled luma sample value on the right of the center luma sample value.
16. The method of claim 14, wherein the non-downsampled values of the external luma samples comprise at least one of a non-downsampled luma sample value of the center luma sample value, a non- downsampled luma sample value on the below-left of the center luma sample value, a non- downsampled luma sample value on the bclow-right of the center luma sample value, a non- downsampled luma sample value below the center luma sample value, a non-downsampled luma sample value on tire left of the center luma sample value, or a non-downsampled luma sample value on tire right of the center luma sample value.
17. The method of claim 13, further comprising: determining whether the values comprise tire non-downsampled values of the external luma sample values or the non-downsampled values of the external luma sample values along with a downsampled value of at least one of the external luma sample values based on the filter shape.
18. The method of claim 17, further comprising: determining the values comprise the non-downsampled values of the external luma sample values if tire filter shape is square.
19. A method for encoding video data, comprising: obtaining a video block; obtaining internal luma sample values of the video block, external luma sample values and external chroma sample values of a first external region of the video block; determining, based on the external luma sample values and the external chroma sample values of the first external region, a plurality of sets of weighting coefficients corresponding to a plurality of filters, wherein each of the plurality of filters is configured for predicting a chroma sample value based on a plurality of corresponding luma sample values; predicting, with at least one filter of the plurality of filters, internal chroma sample values of the video block based on the internal luma sample values; and generating a bitstream comprising encoded video block by using the predicted internal chroma sample values.
20. The method of claim 19, further comprising: sending a signaling in the bitstream indicative of whether a combined mode to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values.
21. The method of claim 20, wherein the signaling is at SPS, DPS, VPS, SEI, APS, PPS, PH, SH, Region, CTU, CU, subblock, or sample level.
22. The method of claim 19, further comprising: obtaining external luma sample values and external chroma sample values of a second external region of the video block; evaluating prediction errors for each of the plurality of filters based on the external luma sample values and the external chroma sample values of the second external region; and determining the at least one filter of the plurality of filters based on tire prediction errors.
23. The method of claim 19, further comprising: sending a signaling in the bitstream indicative of a number K of filters of the plurality of filters to be used for prediction of a chroma sample value based on a plurality of corresponding luma sample values.
24. Tire method of claim 23, wherein the ones of the plurality of filters having tire K lowest prediction errors are determined as the number K of filters.
25. A computer system, comprising: one or more processors; and one or more storage devices storing computer-executable instructions that, when executed, cause the one or more processors to perform tire operations of the method of any of claims 1-24.
26. A computer program product, storing computer-executable instructions that, when executed, cause one or more processors to perfonn tire operations of the method of any of claims 1-24.
27. A computer readable storage medium storing instructions which when executed by a computing device having one or more processors, cause tire one or more processors to perfonn the decoding method according to any of claims 1-12 and storing a bitstream to be decoded by the decoding method according to any of claims 1-12.
28. A computer readable storage medium storing instructions which when executed by a computing device having one or more processors, cause the one or more processors to perform the encoding method according to any of claims 13-24 and storing a bitstream generated by the encoding method according to any of claims 13-24.
29. A computer readable medium storing a bitstream, wherein the bitstream is to be decoded by performing the operations of the method of any of claims 1-12.
30. A computer readable medium storing a bitstream, wherein the bitstream is obtained by performing the operations of the method of any of claims 13-24.
PCT/US2023/033951 2022-09-29 2023-09-28 Method and apparatus for cross-component prediction for video coding WO2024072945A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US202263411325P 2022-09-29 2022-09-29
US63/411,325 2022-09-29

Publications (1)

Publication Number Publication Date
WO2024072945A1 true WO2024072945A1 (en) 2024-04-04

Family

ID=90479021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2023/033951 WO2024072945A1 (en) 2022-09-29 2023-09-28 Method and apparatus for cross-component prediction for video coding

Country Status (1)

Country Link
WO (1) WO2024072945A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200288135A1 (en) * 2017-10-09 2020-09-10 Canon Kabushiki Kaisha New sample sets and new down-sampling schemes for linear component sample prediction
US20210092396A1 (en) * 2018-09-12 2021-03-25 Beijing Bytedance Network Technology Co., Ltd. Single-line cross component linear model prediction mode
US20220279161A1 (en) * 2019-05-03 2022-09-01 Electronics And Telecommunications Research Institute Image encoding/decoding method and device, and recording medium storing bitstream

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200288135A1 (en) * 2017-10-09 2020-09-10 Canon Kabushiki Kaisha New sample sets and new down-sampling schemes for linear component sample prediction
US20210092396A1 (en) * 2018-09-12 2021-03-25 Beijing Bytedance Network Technology Co., Ltd. Single-line cross component linear model prediction mode
US20220279161A1 (en) * 2019-05-03 2022-09-01 Electronics And Telecommunications Research Institute Image encoding/decoding method and device, and recording medium storing bitstream

Similar Documents

Publication Publication Date Title
JP5606625B2 (en) Reference processing using advanced motion models for video coding
JP5124562B2 (en) Quantization adjustment based on texture level
US10390038B2 (en) Methods and devices for encoding and decoding video pictures using a denoised reference picture
KR102359415B1 (en) Interpolation filter for inter prediction apparatus and method for video coding
EP3360329A1 (en) Method and apparatus for intra prediction mode using intra prediction filter in video and image compression
US10412402B2 (en) Method and apparatus of intra prediction in video coding
CN109565592B (en) Video coding device and method using partition-based video coding block partitioning
WO2024072945A1 (en) Method and apparatus for cross-component prediction for video coding
US11202082B2 (en) Image processing apparatus and method
WO2024035939A1 (en) Method and apparatus for cross-component prediction for video coding
WO2024006409A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023200966A1 (en) Method and apparatus for cross-component prediction for video coding
WO2024026098A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023250115A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023183510A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023230152A1 (en) Method and apparatus for cross-component prediction for video coding
WO2024107967A2 (en) Method and apparatus for cross-component prediction for video coding
WO2024124188A1 (en) Method and apparatus for cross-component prediction for video coding
WO2024081291A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023154410A1 (en) Method and apparatus for cross-component prediction for video coding
WO2023239676A1 (en) Improved cross-component prediction for video coding
CN117596393A (en) Video decoding or encoding method, electronic device, storage medium, and program product
WO2023249901A1 (en) Improved cross-component prediction for video coding
WO2024012243A1 (en) Unified cross-component model derivation
JP7498297B2 (en) METHOD AND APPARATUS FOR VIDEO FILTERING - Patent application

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23873608

Country of ref document: EP

Kind code of ref document: A1