Patent ID: 9219918
Filing Date: 2015-12-22
Classification: H04N

Abstract:
1. An apparatus for video decoding, the apparatus comprising at least one processor which implements: a parser configured to obtain slice offset information indicating whether to apply an offset according to an offset type for a current slice, and a sample compensator configured to compensate for samples of a current block among blocks included in the current slice, by using an offset parameter of the current block, wherein: when the slice offset information indicates that the offset value is applied, the parser is configured to perform entropy decoding on a bitstream using a context mode and obtain left offset merging information of the current block, when the left offset merging information indicates that an offset parameter of the current block is not determined according to an offset parameter of a left block, the parser is configured to perform entropy decoding on the bitstream using the context mode, and obtain upper offset merging information of the current block, when the upper offset merging information indicates that the offset parameter of the current block is not determined according to the offset parameter of an upper block, the parser is configured to obtain the offset parameter of the current block from the bitstream, when the offset parameter comprises at least one of offset type information and offset values, the offset type information indicates an offset type or whether to apply an offset to the current block, and the offset type is one of a band offset type and an edge offset type, the parser is configured to obtain offset type information for luma components of the current block by performing entropy decoding on the bitstream using a second context mode, and obtain offset type information for chroma components of the current block by performing entropy decoding on the bitstream using the second context mode.