Patent ID: 9386304
Filing Date: 2016-07-05
CPC Classification: H04N

Claim Text:
1. A video decoding method comprising: receiving, at a decoding apparatus, an encoded block of data representing video frames transmitted from an encoding apparatus; receiving, at the decoding apparatus from the encoding apparatus, a flag indicating that the encoded block of data has been encoded with a sample adaptive offset; receiving, at the decoding apparatus from the encoding apparatus, one or more classification and offset parameters for the encoded block of data; decoding, at the decoding apparatus, the encoded block of data to generate decoded data; and performing, at the decoding apparatus, the sample adaptive offset on a whole or part of the decoded data according to the one or more classification and offset parameters, wherein a pixel B to be modified as part of the sample adaptive offset is adjacent to pixels A and C, the pixel B is classified into one of five categories 1) B<A and B<C; 2) B<one neighbor and equal to the other; 3) B>one neighbor and equal to the other; 4) B>A and B>C; and 5) none of the above, and the categories 1) and 2) are combined in a first combined category for (B≦A and B≦C) and the categories 3) and 4) are combined in a second combined category for (B≧A and B≧C), and the pixel B is modified as part of the sample adaptive offset if (B≦A and B≦C) or (B≧A and B≧C).