Intra prediction method and device, decoder, and encoder
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorFan Wang
Life of this patent
Estimating the term…
Abstract
An intra-frame prediction method and device, a decoder, and an encoder. The method comprises: performing intra prediction on a block to be processed by using two or more different intra prediction modes, to obtain two or more prediction blocks corresponding to the different intra prediction modes; and obtaining a target prediction block of the block to be processed based on weight matrices and the obtained two or more prediction blocks.
Claims13
An intra prediction method, applicable to a decoder, and comprising:
- performing intra prediction on a block to be processed by using two or more different intra prediction modes, to obtain two or more prediction blocks corresponding to the different intra prediction modes;
- and
- obtaining a target prediction block of the block to be processed based on weight matrices and the obtained two or more prediction blocks;
- wherein the intra prediction modes comprise a first intra prediction mode and a second intra prediction mode different from the first intra prediction mode, the prediction blocks comprise a first prediction block corresponding to the first intra prediction mode and a second prediction block corresponding to the second intra prediction mode, and the weight matrices comprise a first weight matrix and a second weight matrix;
- wherein the first intra prediction mode comprise one or more of:
- a direct current (DC) mode, a planar mode, a plane mode, a bilinear mode, and an angular prediction mode, the second intra prediction mode comprises one of:
- improving a sub-pixel interpolation of a reference pixel, or filtering a prediction pixel;
- and
- obtaining the target prediction block of the block to be processed based on the weight matrices and the obtained two or more prediction blocks comprises:
- calculating a first product of the first prediction block and the first weight matrix and calculating a second product of the second prediction block and the second weight matrix;
- calculating a sum of the first product, the second product and a preset value of 4;
- and
- right shifting the calculated sum by a preset number of bits to obtain the target prediction block;
- wherein the second weight matrix is a difference between a maximum weight and the first weight matrix.
A decoder, comprising a processor, configured to:
- decode a received bitstream, to obtain two or more different intra prediction modes, a block to be processed, and weight matrices;
- perform intra prediction on the block to be processed by using the two or more different intra prediction modes, to obtain two or more prediction blocks corresponding to the different intra prediction modes;
- and
- obtain a target prediction block of the block to be processed based on the weight matrices and the obtained two or more prediction blocks;
- wherein the intra prediction modes comprise a first intra prediction mode and a second intra prediction mode different from the first intra prediction mode, the prediction blocks comprise a first prediction block corresponding to the first intra prediction mode and a second prediction block corresponding to the second intra prediction mode, and the weight matrices comprise a first weight matrix and a second weight matrix;
- wherein the first intra prediction mode comprise one or more of:
- a direct current (DC) mode, a planar mode, a plane mode, a bilinear mode, and an angular prediction mode, the second intra prediction mode comprises one of:
- improving a sub-pixel interpolation of a reference pixel, or filtering a prediction pixel;
- and the processor is further configured to:
- calculate a first product of the first prediction block and the first weight matrix and calculate a second product of the second prediction block and the second weight matrix;
- calculate a sum of the first product, the second product and a preset value of 4;
- and
- right shift the calculated sum by a preset number of bits to obtain the target prediction block;
- wherein the second weight matrix is a difference between a maximum weight and the first weight matrix.
An intra prediction method, applicable to an encoder and comprising:
- performing intra prediction on a block to be processed by using two or more different intra prediction modes, to obtain two or more prediction blocks corresponding to the different intra prediction mode;
- and
- obtaining a target prediction block of the block to be processed based on weight matrices and the obtained two or more prediction blocks;
- wherein the intra prediction modes comprise a first intra prediction mode and a second intra prediction mode different from the first intra prediction mode, the prediction blocks comprise a first prediction block corresponding to the first intra prediction mode and a second prediction block corresponding to the second intra prediction mode, and the weight matrices comprise a first weight matrix and a second weight matrix;
- wherein the first intra prediction mode comprise one or more of:
- a direct current (DC) mode, a planar mode, a plane mode, a bilinear mode, and an angular prediction mode, the second intra prediction mode comprises one of:
- improving a sub-pixel interpolation of a reference pixel, or filtering a prediction pixel;
- and
- obtaining the target prediction block of the block to be processed based on the weight matrices and the obtained two or more prediction blocks comprises:
- calculating a first product of the first prediction block and the first weight matrix and calculating a second product of the second prediction block and the second weight matrix;
- calculating a sum of the first product, the second product and a preset value of 4;
- and
- right shifting the calculated sum by a preset number of bits to obtain the target prediction block;
- wherein the second weight matrix is a difference between a maximum weight and the first weight matrix.
Dependencies are inferred from the claim text.