Deblocking filter selection in video or image coding
AssigneeTelefonaktiebolaget LM Ericsson (publ)
InventorsKenneth ANDERSSON, Jack ENHORN
Life of this patent
Estimating the term…
Abstract
The long filter decision in VVC is modified by adding at least one gradient check that at least includes sample p6 or q6. This makes it possible to avoid using the long filters when there is some natural structure at sample p6 or q6. In one specific embodiment at least two gradient checks including both q6 and p6 are added. In another embodiment, the dpq threshold is modified from beta>>2 to beta>>4. This threshold change embodiment may be used in conjunction with or instead of the embodiment in which a gradient check that includes p6 and/or q6 is added to the long filter decision.
Claims20
A method for deblocking filtering of vertical and/or horizontal block boundaries, the method being performed by an image or video encoder or an image or video decoder, the method comprising:
- obtaining a first set of sample values comprising a first block of sample values and a second block of sample values, wherein the first block of sample values comprises a set of sample values B1_i,k for i=0-7 and k=0-3, and the second block of sample values comprises a set of sample values B2_j,k for j=0-7 and k=0-3;
- and
- deciding whether or not to use a long filter to filter at least a subset of the first set of sample values, wherein deciding whether or not to use a long filter to filter at least a subset of the first set of sample values comprises:
- calculating a first gradient value, maxGradB1_6,0, using sample value B1_6,0;
- calculating a first pq value, pq1_0, using maxGradB1_6,0, wherein calculating pq1_0 comprises calculating a value sp, calculating a value sq, and calculating sp+sq, wherein pq1_0=(sp+sq), and wherein calculating sp comprises calculating sp=(Abs(B1_0,0−B1_3,0)+Abs(B1_3,0−B1_7,0)+maxGradB1_6,0+1)>>1 and wherein maxGradB1_6,0 equals Abs(B1_7,0−B1_6,0−B1_5,0+B14,0);
- comparing pq1_0 to a threshold;
- calculating a second gradient value, maxGradB1_6,3, using sample value B1_6,3;
- calculating a second pq value, pq1_3, using maxGradB1_6,3;
- and
- comparing pq1_3 to the threshold.
A method for deblocking filtering of vertical and/or horizontal block boundaries, the method being performed by an image or video encoder or an image or video decoder, the method comprising:
- obtaining a first set of sample values comprising a first block of sample values and a second block of sample values, wherein the first block of sample values comprises a set of sample values B1_i,k for i=0-7 and k=0-3, and the second block of sample values comprises a set of sample values B2_j,k for j=0-7 and k=0-3;
- and
- selecting a long filter, wherein selecting the long filter comprises:
- calculating a first pq value, pq2_0, using at least a first value equal to Abs(B1_2,0−2*B1_1,0+B1_0,0) and a second value equal to Abs(B2_2,0−2*B2_1,0+B2_0,0);
- and
- comparing pq2_0 to a threshold, wherein
- the threshold is equal to β>>4, and
- β is selected from a set of predetermined beta values based on a quantization parameter value, Q.
A method for deblocking filtering of vertical and/or horizontal block boundaries, the method being performed by an image or video encoder or an image or video decoder, the method comprising:
- 1) obtaining a first set of sample values comprising a first block of sample values and a second block of sample values, wherein the first block of sample values comprises a set of sample values B1_i,k for i=0-7 and k=0-3, and the second block of sample values comprises a set of sample values B2_j,k for j=0-7 and k=0-3;
- and
- 2) selecting a long filter, wherein selecting the long filter comprises:
- i) calculating a first pq value, pq1_0, wherein calculating pq1_0 comprises calculating a value sp, calculating a value sq, and calculating sp+sq, wherein pq1_0=(sp+sq);
- ii) comparing pq1_0 to a first threshold;
- iii) calculating a second pq value, pq2_0, using at least a first value equal to Abs(B1_2,0−2*B1_1,0+B1_0,0) and a second value equal to Abs(B2_2,0−2*B2_1,0+B2_0,0);
- and
- iv) comparing pq2_0 to a second threshold, wherein the second threshold is equal to ββ>>4, and β is selected from a set of predetermined beta values based on a quantization parameter value, Q.
Dependencies are inferred from the claim text.