Patent ID: 9497470
Filing Date: 2016-11-15
CPC Classification: H04N

Claim Text:
1. A computer-implemented image decoding method for decoding a bitstream to generate a decoded block, the method comprising: performing variable-length decoding on the bitstream to obtain (i) quantized coefficients, (ii) first flag information indicating whether or not a first offset process is required, and (iii) second flag information indicating whether or not a second offset process is required; performing inverse quantization and inverse transform on the quantized coefficients to obtain a decoded residual block; predicting the decoded block to generate a predicted block; adding the decoded residual block to the predicted block to generate a temporary decoded block, the temporary decoded block including a luma component and a chroma component of a pixel that is included in the temporary decoded block; executing, on the luma component of the pixel that is included in the temporary decoded block, the first offset process, when the first flag information indicates that the first offset process is required, the first offset process being for modifying a value of the luma component of the pixel that is included in the temporary decoded block; and executing, on the chroma component of the pixel that is included in the temporary decoded block, the second offset process, when the second flag information indicates that the second offset process is required, the second offset process being for modifying a value of the chroma component of the pixel that is included in the temporary decoded block, wherein the first offset process is executed to add a first offset value to the value of the luma component of the pixel that is included in the temporary decoded block, the first offset value being retrieved from the bitstream, wherein the second offset process is executed to add a second offset value to the value of chroma component of the pixel that is included in the temporary decoded block, the second offset value being retrieved from the bitstream, wherein third flag information is further obtained, the third flag information indicating whether the first offset value and the second offset value are derived from (i) third offset values calculated for a previously-decoded block adjacent to the decoded block or (ii) fourth offset values calculated for the temporary decoded block, and wherein when the decoded block is generated, the first offset process and second offset process are executed on the temporary decoded block using one of the third offset values or the fourth offset values indicated by the third flag information.