Intra sub-partitions in video coding
Intra sub-partitions (ISP) may be enabled for a current block, for example, based on an ISP indication. The block may be partitioned into multiple sub-partitions, and a sub-partition may belong to a prediction unit (PU). A sub-partition width for the current block and a minimum prediction block width may be obtained. A PU corresponding to a current sub-partition may be determined based on the sub-partition width and the minimum prediction block width. For example, when the sub-partition width is less than the minimum prediction block width, the PU may include multiple sub-partitions. In examples, the minimum prediction block width may be four samples. Reference samples may be determined, and the PU may be predicted using the reference samples.
1. An apparatus for video decoding, comprising:
a processor configured to:
determine that intra sub-partitions (ISP) is enabled for a current block;
determine a sub-partition width for a sub-partition obtained via ISP;
determine a prediction block width based on the sub-partition width and a minimum prediction block width, wherein, on a condition that the sub-partition width is less than the minimum prediction block width, the prediction block width is equal to the minimum prediction block width, and on a condition that the sub-partition width is greater than or equal to the minimum prediction block width, the prediction block width is equal to the sub-partition width;
predict the sub-partition based on the prediction block width; and
decode the current block based on the predicted sub-partition.
2. The apparatus of claim 1 , wherein the minimum prediction block width is 4 samples.
3. The apparatus of claim 1 , wherein a prediction block for the sub-partition comprises a plurality of transform block sub-partitions when a current block width is 4 samples and a current block height is 8 samples or greater.
4. The apparatus of claim 1 , wherein a prediction block for the sub-partition comprises a plurality of transform block sub-partitions when a current block width is 8 samples and a current block height is 8 samples or greater.
5. The apparatus of claim 1 , wherein the sub-partition is predicted using neighboring samples of the current block when the current block is vertically split, a current block width is 4 samples, and a current block height is 8 samples or greater.
6. The apparatus of claim 1 , wherein the sub-partition is predicted using a neighboring sample of the current block and a sample from a reconstructed sub-partition in the current block.
7. The apparatus of claim 1 , wherein the sub-partition is predicted using a neighboring sample of the current block and a sample from a reconstructed sub-partition in the current block when a current block width is 8 samples and a current block height is 8 samples or greater.
8. The apparatus of claim 1 , wherein the processor is further configured to:
determine a plurality of reference samples of a prediction block that has the prediction block width, wherein the plurality of reference samples of the prediction block comprises a neighboring sample of the prediction block, and wherein the sub-partition is predicted using the plurality of reference samples of the prediction block.
9. The apparatus of claim 1 , wherein the apparatus further comprises a memory.
10. A method for video decoding comprising:
determining that intra sub-partitions (ISP) is enabled for a current block;
determining a sub-partition width for a sub-partition obtained via ISP;
determining a prediction block width based on the sub-partition width and a minimum prediction block width, wherein, on a condition that the sub-partition width is less than the minimum prediction block width, the prediction block width is equal to the minimum prediction block width, and on a condition that the sub-partition width is greater than or equal to the minimum prediction block width, the prediction block width is equal to the sub-partition width;
predicting the sub-partition based on the prediction block width; and
decoding the current block based on the predicted sub-partition.
11. The method of claim 10 , wherein the minimum prediction block width is 4 samples.
12. The method of claim 10 , wherein a prediction block for the sub-partition comprises a plurality of transform block sub-partitions when a current block width is 4 samples and a current block height is 8 samples or greater.
13. The method of claim 10 , wherein a prediction block for the sub-partition is predicted using a neighboring sample of the current block when the current block is vertically split, a current block width is 4 samples, and a current block height is 8 samples or greater.
14. An apparatus for video encoding, comprising:
a processor configured to:
determine that intra sub-partitions (ISP) is enabled for a current block;
determine a sub-partition width for a sub-partition obtained via ISP;
determine a prediction block width based on the sub-partition width and a minimum prediction block width, wherein, on a condition that the sub-partition width is less than the minimum prediction block width, the prediction block width is equal to the minimum prediction block width, and on a condition that the sub-partition width is greater than or equal to the minimum prediction block width, the prediction block width is equal to the sub-partition width;
predict the sub-partition based on the prediction block width; and
encode the current block based on the predicted sub-partition.
15. The apparatus of claim 14 , wherein the minimum prediction block width is 4 samples.
16. The apparatus of claim 14 , wherein a prediction block for the sub-partition comprises a plurality of transform block sub-partitions when a current block width is 4 samples and a current block height is 8 samples or greater, or when the current block width is 8 samples and the current block height is 8 samples or greater.
17. A method for video encoding, comprising:
determining that intra sub-partitions (ISP) is enabled for a current block;
determining a sub-partition width for a sub-partition obtained via ISP;
determining a prediction block width based on the sub-partition width and a minimum prediction block width, wherein, on a condition that the sub-partition width is less than the minimum prediction block width, the prediction block width is equal to the minimum prediction block width, and on a condition that the sub-partition width is greater than or equal to the minimum prediction block width, the prediction block width is equal to the sub-partition width;
predicting the sub-partition based on the prediction block width; and
encoding the current block based on the predicted sub-partition.
18. The method of claim 17 , wherein the sub-partition is predicted using neighboring samples of the current block when the current block is vertically split, a current block width is 4 samples, and a current block height is 8 samples or greater.
19. The method of claim 17 , wherein the sub-partition width is a width of a transport block.