Deblocking in a video encoder and/or video decoder
A deblocking method for deblocking a boundary between a first block of samples, block P, and a second block of samples, block Q. The method includes determining whether at least one of the P block or the Q block is a combined intra-inter prediction block; and, as a result of determining that at least one of the P block or the Q block is a combined intra-inter prediction block, deblocking the boundary between the P block and the Q block.
1 . A method for deblocking a boundary between a first block of samples and a second block of samples, the method comprising:
determining that the first block corresponds to a coding mode that is based on a weighted combination of an intra prediction block and an inter prediction block;
after determining that the first block corresponds to a coding mode that is based on a weighted combination of an intra prediction block and an inter prediction block, setting a boundary strength value to a non-zero value; and
deblocking the boundary between the first block and the second block using the boundary strength value.
2 . The method of claim 1 , wherein deblocking the boundary between the first block and the second block comprises reducing a discontinuity between the first block and the second block.
3 . The method of claim 2 , wherein reducing the discontinuity between the first block and the second block comprises filtering the first block using a deblocking filter and filtering the second block using the deblocking filter.
4 . The method of claim 1 , wherein the boundary is a vertical boundary.
5 . The method of claim 1 , wherein the boundary is a horizontal boundary.
6 . The method of claim 1 , further comprising generating a block of samples based on a weighted combination of an intra-prediction block and an inter-prediction block, wherein the first block is the generated block of samples.
7 . The method of claim 6 , further comprising generating the intra-prediction block from a line of samples.
8 . The method of claim 6 , further comprising generating the intra-prediction block from referencing a block in a current picture.
9 . The method of claim 6 , further comprising generating the inter-prediction block from referencing at least one block in a previous decoded picture.
10 . The method of claim 6 , further comprising generating the inter-prediction block from referencing a block in a current picture.
11 . The method of claim 1 , further comprising:
deblocking a boundary between a first sub-block and a second sub-block if a first condition is true, wherein the first condition is true if:
the first sub-block is a weighted combination of a first intra prediction sub-block and a first inter prediction sub-block,
the second sub-block is a weighted combination of a second intra prediction sub-block and a second inter prediction sub-block, and
the weight for the first intra prediction sub-block is different from the weight for the second intra prediction sub-block.
12 . A computer program product comprising a non-transitory computer readable medium storing a computer program comprising instructions which when executed by processing circuitry causes the processing circuitry to perform the method of claim 1 .
13 . An apparatus, the apparatus comprising:
processing circuitry; and
a memory, the memory containing instructions executable by the processing circuitry, wherein the apparatus is configured to perform a method for deblocking a boundary between a first block of samples and a second block of samples, the method comprising:
determining that the first block corresponds to a coding mode that is based on a weighted combination of an intra prediction block and an inter prediction block;
after determining that the first block corresponds to a coding mode that is based on a weighted combination of an intra prediction block and an inter prediction block, setting a boundary strength value to a non-zero value; and
deblocking the boundary between the first block and the second block using the boundary strength value.
14 . The apparatus of claim 13 , wherein the apparatus is further adapted to generate a block of samples based on a weighted combination of an intra-prediction block and an inter-prediction block, wherein the first block is the generated block of samples.
15 . The apparatus of claim 14 , further configured to generate the intra-prediction block from a line of samples.
16 . The apparatus of claim 14 , further configured to generate the intra-prediction block from referencing a block in a current picture.
17 . The apparatus of claim 14 , further configured to generate the inter-prediction block from referencing at least one block in a previous decoded picture.
18 . The apparatus of claim 14 , further configured to generate the inter-prediction block from referencing a block in a current picture.