Chroma block prediction method and device
AssigneeHuawei Technologies Co., Ltd.
InventorsXiang Ma, Haitao Yang, Jianle Chen
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a chroma block prediction method and a device. The method includes: parsing a bitstream to obtain first indication information; downsampling a first luma block by a first filter when a value of the first indication information is a first value or by using a second filter when a value of the first indication information is a second value, to obtain a second luma block; obtaining a plurality of chroma samples and a plurality of luma samples; obtaining linear model coefficients based on the plurality of chroma samples and the plurality of luma samples; and obtaining a prediction value of the current chroma block based on the second luma block and the linear model coefficients.
Claims16
An encoding device, comprising:
- a non-transitory computer-readable storage medium storing instructions;
- and
- one or more processors in communication with the medium, wherein the instructions, when executed by the one or more processors, cause the encoding device to:
- determine whether a sample position of a current chroma block has an inconsistency with a sample position of a first luma block corresponding to the current chroma block;
- set first indication information to a first value or a second value, wherein the first value indicates the sample position of the current chroma block has the inconsistency with the sample position of the first luma block and a filter type is a first type, and the second value indicates the filter type is a second type, wherein when the sample position of the current chroma block is (xb, yb) and the sample position (xb, yb) in a chroma image that corresponds to a position in a luma image is (2*xb, 2*yb+0.5), the sample position of the current chroma block has the inconsistency with the sample position of the first luma block;
- and
- encode the first indication information into a bitstream.
A non-transitory computer readable storage medium storing an encoded bitstream of video signals, the encoded bitstream comprising a plurality of syntax elements, wherein the plurality of syntax elements comprises:
- first indication information, wherein the first indication information having a first value indicates that a filter type is a first type and a sample position of a current chroma block has an inconsistency with a sample position of a first luma block, and the first indication information having a second value indicates that the filter type is a second type;
- and
- second indication information indicating a linear model (LM) mode from a plurality of intra prediction modes;
- wherein when the sample position of the current chroma block is (xb, yb) and the sample position (xb, yb) in a chroma image that corresponds to a position in a luma image is (2*xb, 2*yb+0.5), the sample position of the current chroma block has the inconsistency with the sample position of the first luma block.
An encoding method, comprising:
- determining whether a sample position of a current chroma block has an inconsistency with a sample position of a first luma block corresponding to the current chroma block;
- setting first indication information to a first value or a second value, wherein the first value indicates the sample position of the current chroma block has the inconsistency with the sample position of the first luma block and a filter type is a first type, the second value indicates the filter type is a second type, wherein when the sample position of the current chroma block is (xb, yb) and the sample position (xb, yb) in a chroma image that corresponds to a position in a luma image is (2*xb, 2*yb+0.5), the sample position of the current chroma block has the inconsistency with the sample position of the first luma block;
- and
- encoding the first indication information into a bitstream.
Dependencies are inferred from the claim text.