Video decoding method and video decoder
AssigneeHuawei Technologies Co., Ltd.
InventorsHuanbang Chen, Haitao Yang
Life of this patent
Estimating the term…
Abstract
A video decoding method includes obtaining a to-be-entropy-decoded syntax element in a current block by parsing a received bitstream, where the to-be-entropy-decoded syntax element includes a syntax element 1 or a syntax element 2 in the current block, obtaining a context model corresponding to the to-be-entropy-decoded syntax element, where both of a context model corresponding to the syntax element 1 and a context model corresponding to the syntax element 2 are determined from the same preset context model set, entropy decoding the to-be-entropy-decoded syntax element based on the context model corresponding to the to-be-entropy-decoded syntax element, and obtaining a reconstructed image of the current block based on the syntax element obtained by entropy decoding.
Claims14
A video decoding method, comprising:
- parsing a received bitstream to obtain a to-be-entropy-decoded syntax element in a current block, wherein the to-be-entropy-decoded syntax element comprises a first syntax element or a second syntax element;
- obtaining a context model corresponding to the to-be-entropy-decoded syntax element by either determining a first context model corresponding to the first syntax element or determining a second context model corresponding to the second syntax element;
- performing entropy decoding on the to-be-entropy-decoded syntax element based on the context model to obtain a third syntax element;
- performing prediction processing on the current block based on the third syntax element to obtain a prediction block of the current block;
- and
- obtaining a reconstructed image of the current block based on the prediction block;
- wherein the first syntax element is a first flag indicating whether a subblock-based merge mode is used for the current block or the second syntax element is a second flag indicating whether an affine motion model-based advanced motion vector prediction (AMVP) mode is used for the current block when a slice that comprises the current block is a predicted (P)-type slice or a bi-directional predicted (B)-type slice.
A video decoder, comprising:
- an entropy decoder configured to:
- parse a received bitstream to obtain a to-be-entropy-decoded syntax element in a current block, wherein the to-be-entropy-decoded syntax element comprises a first syntax element or a second syntax element;
- obtain a context model corresponding to the to-be-entropy-decoded syntax element by either determining a first context model corresponding to the first syntax element or determining a second context model corresponding to the second syntax element;
- and
- perform entropy decoding on the to-be-entropy-decoded syntax element based on the context model to obtain a third syntax element;
- a prediction processor coupled to the entropy decoder and configured to perform prediction processing on the current block based on the third syntax element to obtain a prediction block of the current block;
- and
- a reconstructor coupled to the prediction processor and configured to obtain a reconstructed image of the current block based on the prediction block;
- wherein the first syntax element is a first flag indicating whether a subblock-based merge mode is used for the current block or the second syntax element is a second flag indicating whether an affine motion model-based advanced motion vector prediction (AMVP) mode is used for the current block when a slice that comprises the current block is a predicted (P)-type slice or a bi-directional predicted (B)-type slice.
A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause a video decoder to:
- parse a received bitstream to obtain a to-be-entropy-decoded syntax element in a current block, wherein the to-be-entropy-decoded syntax element comprises a first syntax element or a second syntax element;
- obtain a context model corresponding to the to-be-entropy-decoded syntax element by either determining a first context model corresponding to the first syntax element or determining a second context model corresponding to the second syntax element;
- perform entropy decoding on the to-be-entropy-decoded syntax element based on the context model to obtain a third syntax element;
- perform prediction processing on the current block based on the third syntax element to obtain a prediction block of the current block;
- and
- obtain a reconstructed image of the current block based on the prediction block;
- wherein the first syntax element is a first flag indicating whether a subblock-based merge mode is used for the current block or the second syntax element is a second flag indicating whether an affine motion model-based advanced motion vector prediction (AMVP) mode is used for the current block when a slice that comprises the current block is a predicted (P)-type slice or a bi-directional predicted (B)-type slice.
Dependencies are inferred from the claim text.