# US 2021/0344966 A1 · Simplification for cross-component linear model prediction mode

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344966 A1
- Document ID: US20210344966A1
- Status: Published application
- Kind: A1
- Application number: 17/373,019
- Filed: 2021-07-12
- Published: 2021-11-04
- Earliest claimed: 2018-12-18
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Liang ZHAO; Xin ZHAO; Xiang LI; Shan LIU
- Web page: https://patentgrep.com/patent/US20210344966A1

## CPC

- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/105: Selection 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
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/124: Quantisation
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method and apparatus for encoding or decoding a video sequence includes applying a Cross-Component Linear Model (CCLM) to a video sequence, and applying an interpolation filter in the Cross-Component Linear Model (CCLM), wherein the interpolation filter is dependent upon a YUV format of the video sequence.

## Claims

### Claim 1

A device for encoding or decoding a video sequence, the device comprising:
at least one memory configured to store program code;
at least one processor configured to read the program code and operate as instructed by the program code, the program code including:
first encoding or decoding code configured to cause the at least one processor to apply a Cross-Component Linear Model (CCLM) to a video sequence and apply an interpolation filter in the Cross-Component Linear Model (CCLM),
first obtaining code configured to cause the at least one processor to obtain an absolute difference between maximum and minimum values of a plurality of neighboring samples of a first one among a luma block and related to the video sequence;
dividing code configured to cause the at least one processor to divide the absolute difference into intervals;
first performing code configured to cause the at least one processor to perform a non-uniform quantization of the absolute difference;
second obtaining code configured to cause the at least one processor to obtain a floor value based on by using, in a look up table, the absolute difference of which the non-uniform quantization is performed;
third obtaining code configured to cause the at least one processor to obtain a derived value by using at least the absolute difference and the intervals based on a look-up table; and
predicting code configured to cause the at least one processor to predict a sample of a different one among a chroma block related to the video sequence, based on the derived value,
wherein the interpolation filter is dependent upon a YUV format of the video sequence.

### Claim 2 (depends on 1)

The device of claim 1, wherein the first encoding or decoding code further comprises code configured to cause the at least one processor to use taps of the interpolation filter applied, in the Cross-Component Linear Model (CCLM), that are dependent upon the YUV format of the video sequence.

### Claim 3 (depends on 1)

The device of claim 1, wherein the first encoding or decoding code further comprises code configured to cause the at least one processor to set the format of the interpolation filter, applied in the Cross-Component Linear Model (CCLM), to be the same for the format of the video sequence when the video sequence includes a YUV format of 4:4:4: or 4:2:2, and set the format of the interpolation filter to be different than the format of the video sequence when the video sequence includes a YUV format of 4:2:0.

### Claim 4 (depends on 2)

The device of claim 2, wherein the first encoding or decoding code is configured such that the taps of the interpolation filter used in the Cross-Component Linear Model (CCLM) are in the same form as the YUV format of the video sequence.

### Claim 5 (depends on 1)

The device of claim 1, wherein the first encoding or decoding code further comprises code configured to cause the at least one processor to use taps of the interpolation filter applied, in the Cross-Component Linear Model (CCLM), that are different for different YUV formats of the video sequence.

### Claim 6 (depends on 1)

The device of claim 1, wherein the first encoding or decoding code is configured to apply the Cross-Component Linear Model (CCLM) and apply the interpolation filter in the Cross-Component Linear Model (CCLM) by setting the interpolation filter to be different for top and left neighboring luma reconstructed samples.

### Claim 7 (depends on 6)

The device of claim 6, wherein the first encoding or decoding code is configured to apply the Cross-Component Linear Model (CCLM) and apply the interpolation filter in the Cross-Component Linear Model (CCLM) to the top and left neighboring luma reconstructed samples, such that the interpolation filter is dependent on the YUV format of the video sequence.

### Claim 8 (depends on 1)

The device of claim 1, wherein the first encoding or decoding code is further configured to cause the at least one processor to set a number of lines in top neighboring luma samples and a number of columns in left neighboring luma samples used in the Cross-Component Linear Model (CCLM) to be dependent on the YUV format of the video sequence.

### Claim 9 (depends on 8)

The device of claim 8, wherein the first encoding or decoding code is further configured to cause the at least one processor to use at least one of one row in a top neighboring region and one column in a left neighboring region in the Cross-Component Linear Model (CCLM) for video sequences having one of a YUV format of 4:4:4 or 4:2:2.

### Claim 10 (depends on 8)

The device of claim 8, wherein the first encoding or decoding code is further configured to cause the at least one processor to use at least one of one row in a top neighboring region and at least two columns in a left neighboring region in the Cross-Component Linear Model (CCLM) for video sequences having a YUV format of 4:2:2.

### Claim 11 (depends on 1)

The device of claim 1, wherein the first obtaining code is further configured to cause the at least one processor to obtain the maximum and minimum values, using N neighboring sample pairs of the luma block and the chroma block, N being a positive integer of one among 4, 8 and 16,
wherein each of the N neighboring sample pairs comprises a first neighboring sample at a first location neighboring the first one among the luma block and the chroma block, and a second neighboring sample at a second location neighboring the second one among the luma block and the chroma block and corresponding to the first location neighboring the first one among the luma block and the chroma block.

### Claim 12 (depends on 11)

The device of claim 11, wherein the first obtaining code is further configured to cause the at least one processor to select the first neighboring sample by scanning the plurality of neighboring samples from bottom to top and/or from right to left.

### Claim 13 (depends on 1)

The device of claim 1, wherein the program code further comprises:
fourth obtaining code configured to cause the at least one processor to obtain a scaling factor and an offset of a linear model for local illumination compensation (LIC) of a current block, using N neighboring sample pairs of the current block and a reference block, N being a positive integer of one among 4, 8 and 16,
wherein each of the N neighboring sample pairs comprises a first neighboring sample at a first location neighboring the current block, and a second neighboring sample at a second location neighboring the reference block and corresponding to the first location neighboring the current block; and
second performing code configured to cause the at least one processor to perform the local illumination compensation (LIC) of the current block, using the obtained scaling factor and the obtained offset.

### Claim 14 (depends on 13)

The device of claim 13, wherein N is dependent on a block size of the current block.

### Claim 15

A non-transitory computer-readable medium storing program code, the program code comprising one or more instructions that, when executed by one or more processors of a device, cause the one or more processors to:
apply a Cross-Component Linear Model (CCLM) to a video sequence and apply an interpolation filter in the Cross-Component Linear Model (CCLM),
obtain an absolute difference between maximum and minimum values of a plurality of neighboring samples of a first one among a luma block and related to the video sequence;
divide the obtained absolute difference into intervals;
perform a non-uniform quantization of the obtained absolute difference;
obtain a floor value based on the absolute difference of which the non-uniform quantization is performed;
obtain a derived value by using at least the absolute difference and the intervals based on a look-up table; and
predict a sample of a different one among a chroma block related to the video sequence, based on the derived value,
wherein the interpolation filter is dependent upon a YUV format of the video sequence.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium storing program code of claim 15, wherein in the applying of the interpolation filter in the Cross-Component Linear Model (CCLM), the program code further comprises one or more instructions that, when executed by the one or more processors, causes the one or more processors to use taps of the interpolation filter that are dependent upon the YUV format of the video sequence.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium storing program code of claim 15, wherein in the application of the Cross-Component Linear Model (CCLM) taps of the interpolation filter are used in the Cross-Component Linear Model (CCLM) that are in the same form as the YUV format of the video sequence.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium storing program code of claim 15, wherein in the application of the Cross-Component Linear Model (CCLM) the format of the interpolation filter is set to be the same for the format of the video sequence when the video sequence includes a YUV format of 4:4:4: or 4:2:2, and the format of the interpolation filter is set to be different than the format of the video sequence when the video sequence includes a YUV format of 4:2:0.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium storing program code of claim 15, wherein in the application of the Cross-Component Linear Model (CCLM) taps of the interpolation filter are used, which are different for different YUV formats of the video sequence.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium storing program code of claim 15, wherein in the application of the Cross-Component Linear Model (CCLM) the interpolation filter is set to be different for top and left neighboring luma reconstructed samples.
