Patent ID: 9462288
Filing Date: 2016-10-04
CPC Classification: G06T,H04N

Claim Text:
1. An apparatus for video decoding, the apparatus comprising at least one processor which implements: a parser configured to parse, from a bitstream, offset merge information indicating whether a sample offset parameter of a current block is derived from a sample offset parameter of a neighboring block; and a sample compensator configured to compensate for a sample value of a current sample among samples of the current block by using an offset value for the current sample among a plurality of offset values of the current block, wherein: wherein, when the information about an offset type indicates an edge offset type, the sample compensator further obtains, from the bitstream, information about a particular edge direction of the current block among a plurality of edge directions, the plurality of offset values of the current block correspond to a plurality of edge classes, two neighboring samples, among samples adjacent to the current sample, are determined corresponding to the particular edge direction of the current block, an edge class for the current sample, among the plurality of edge classes, is determined according to whether the current sample is larger than the two neighboring samples, and the offset value for the current sample is determined, among the plurality of offset values of the current block, according to the edge class for the current sample, and wherein, when the information about an offset type indicates a band offset type, the sample compensator obtains, from the bitstream, a plurality of absolute values of the offset values, and obtains, from the bitstream, a plurality of signs of the offset values when the absolute values of the offset values are not zero.