Method for dividing prediction block, encoding device, and decoding device
AssigneeHuawei Technologies Co., Ltd.
InventorXiaozhen Zheng
Life of this patent
Estimating the term…
Abstract
A method for dividing a prediction block, an encoding device, and a decoding device, where the method includes acquiring a manner of division into the prediction block, where the manner of division into the prediction block is a horizontal division manner, a vertical division manner, or a square division manner, determining a horizontal division size and a vertical division size according to the manner of division into the prediction block, and dividing the prediction block into at least one prediction subblock according to the horizontal division size and the vertical division size.
Claims17
An encoding device for dividing a prediction block of an image, the encoding device comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory and configured to execute the instructions, which cause the encoding device to:
- acquire a size of a horizontal side and a size of a vertical side of the prediction block;
- acquire a base size;
- determine a size of a horizontal side of a prediction subblock according to a magnitude relationship between the size of the horizontal side of the prediction block and the base size or a magnitude relationship between the size of the vertical side of the prediction block and the base size;
- determine a size of a vertical side of the prediction subblock according to the magnitude relationship between the size of the horizontal side of the prediction block and the base size or the magnitude relationship between the size of the vertical side of the prediction block and the base size;
- divide the prediction block into at least one such prediction subblock according to the size of the horizontal side of the prediction subblock and the size of the vertical side of the prediction subblock;
- set the size of the horizontal side of the prediction subblock to the size of the horizontal side of the prediction block and set the size of the vertical side of the prediction subblock to the size of the vertical side of the prediction block when a preset condition is met;
- and
- set the size of the horizontal side of the prediction subblock to the base size and set the size of the vertical side of the prediction subblock to the base size when the preset condition is not met, wherein the preset condition comprises a ratio of the size of the horizontal side of the prediction block to the base size is less than or equal to one or a ratio of the size of the vertical side of the prediction block to the base size is less than or equal to one.
A coding apparatus, comprising:
- a processor;
- and
- a non-transitory computer-readable storage medium coupled to the processor and storing programming instructions for execution by the processor, wherein the programming instructions instruct the processor to:
- acquire a size of a horizontal side and a size of a vertical side of the prediction block;
- acquire a base size;
- determine a size of a horizontal side of a prediction subblock according to a magnitude relationship between the size of the horizontal side of the prediction block and the base size or a magnitude relationship between the size of the vertical side of the prediction block and the base size;
- determine a size of a vertical side of the prediction subblock according to the magnitude relationship between the size of the horizontal side of the prediction block and the base size or the magnitude relationship between the size of the vertical side of the prediction block and the base size;
- divide the prediction block into at least one such prediction subblock according to the size of the horizontal side of the prediction subblock and the size of the vertical side of the prediction subblock;
- set the size of the horizontal side of the prediction subblock to the size of the horizontal side of the prediction block and set the size of the vertical side of the prediction subblock to the size of the vertical side of the prediction block when a preset condition is met;
- and
- set the size of the horizontal side of the prediction subblock to the base size and set the size of the vertical side of the prediction subblock to the base size when the preset condition is not met, wherein the preset condition comprises a ratio of the size of the horizontal side of the prediction block to the base size is less than or equal to one or a ratio of the size of the vertical side of the prediction block to the base size is less than or equal to one.
A computer program product, comprising computer executable instructions stored on a non-transitory computer-readable medium, which when executed by a processor, cause the processor to:
- acquire a size of a horizontal side and a size of a vertical side of the prediction block;
- acquire a base size;
- determine a size of a horizontal side of a prediction subblock according to a magnitude relationship between the size of the horizontal side of the prediction block and the base size or a magnitude relationship between the size of the vertical side of the prediction block and the base size;
- determine a size of a vertical side of the prediction subblock according to the magnitude relationship between the size of the horizontal side of the prediction block and the base size or the magnitude relationship between the size of the vertical side of the prediction block and the base size;
- divide the prediction block into at least one such prediction subblock according to the size of the horizontal side of the prediction subblock and the size of the vertical side of the prediction subblock;
- set the size of the horizontal side of the prediction subblock to the size of the horizontal side of the prediction block and set the size of the vertical side of the prediction subblock to the size of the vertical side of the prediction block when a preset condition is met;
- and
- set the size of the horizontal side of the prediction subblock to the base size and set the size of the vertical side of the prediction subblock to the base size when the preset condition is not met, wherein the preset condition comprises a ratio of the size of the horizontal side of the prediction block to the base size is less than or equal to one, or a ratio of the size of the vertical side of the prediction block to the base size is less than or equal to one.
Dependencies are inferred from the claim text.