Block artifact suppression in video coding
A method for encoding a video sequence in a video encoder is provided that includes adapting a quantization parameter of a block of pixels in a picture of the video sequence based on a transform block size of the block of pixels to determine a final quantization parameter, and quantizing transform coefficients of the block of pixels using the final quantization parameter.
1. A method comprising:
computing, by a video encoder, an activity measure for a block of pixels in a picture of a video, wherein the activity measure is representative of an amount of texture for the block of pixels;
adapting a first quantization parameter based on the activity measure to produce a second quantization parameter;
determining, by the video encoder, a delta value for the block of pixels based on a transform block size for the block of pixels and a largest transform block size in the picture, wherein the delta value for the block of pixels is larger than a second delta value for a smaller transform block size in the picture;
adjusting, by the video encoder, the second quantization parameter using the delta value for the block of pixels to produce a third quantization parameter; and
quantizing, by the video encoder, transform coefficients of the block of pixels using the third quantization parameter.
2. The method of claim 1 , wherein the largest transform block size is 32×32.
3. A video encoder comprising:
one or more processors, the one or more processors configured to:
compute an activity measure for a block of pixels in a picture of a video, wherein the activity measure is representative of an amount of texture for the block of pixels;
adapt a first quantization parameter based on the activity measure to produce a second quantization parameter;
determine a delta value for the block of pixels based on a transform block size for the block of pixels and a largest transform block size in the picture, wherein the delta value for the block of pixels is larger than a second delta value for a smaller transform block size in the picture;
adjust the second quantization parameter using the delta value for the block of pixels to produce a third quantization parameter; and
quantize transform coefficients of the block of pixels using the third quantization parameter.
4. The video encoder of claim 3 , wherein the largest transform block size is 32×32.
5. A non-transitory computer readable medium storing instructions that, when executed by a processor in a video encoder, cause the processor to:
compute an activity measure for a block of pixels in a picture of a video, wherein the activity measure is representative of an amount of texture for the block of pixels;
adapt a first quantization parameter based on the activity measure to produce a second quantization parameter;
determine a delta value for the block of pixels based on a transform block size for the block of pixels and a largest transform block size in the picture, wherein the delta value for the block of pixels is larger than a second delta value for a smaller transform block size in the picture;
adjust the second quantization parameter using the delta value for the block of pixels to produce a third quantization parameter; and
quantize transform coefficients of the block of pixels using the third quantization parameter.
6. The non-transitory computer readable medium of claim 5 , wherein the largest transform block size is 32×32.