Patent ID: 9516348
Filing Date: 2016-12-06
CPC Classification: H04N

Claim Text:
1. An apparatus of post-processing a reconstructed image, the apparatus comprising: a deblocking filter for determining a boundary strength for a 4-sample edge which is a prediction edge or a transform edge and lies on an 8×8 sample grid, determining whether deblocking filtering is applied on the 4-sample edge or not using the boundary strength and a boundary quantization parameter, and filtering the 4-sample edge if the deblocking filtering is applied on the 4-sample edge; and a sample adaptive offset adder for, if a sample adaptive offset type indicates an edge offset, generating an edge index of a current sample, generating an edge offset corresponding to the edge index to the current sample, and adding the edge offset to the current sample, wherein the edge index is generated using the following equation: wherein the function sign3(y) is equal to 1 if the y is larger than 0, the function sign3(y) is equal to −1 if the y is smaller than 0, and the function sign3(y) is equal to 0 if the y is equal to 0, wherein the variable recPicture(x) represents the current sample value, the variables recPicture(x−1) and recPicture(x+1) represent two neighboring sample values, wherein the boundary quantization parameter is an average of a quantization parameter of a P block containing sample p wherein if only one quantization parameter is available among the left quantization parameter, the above quantization parameter and the previous quantization parameter of the P block, the available quantization parameter is set as the quantization parameter predictor of the P block.