FIELD: data processing.
SUBSTANCE: invention relates to encoding and decoding of images. Method of encoding at least a portion of an image is disclosed containing a plurality of samples, with each sample containing at least two components, the method comprising the steps of: encoding a first chrominance component and a second chrominance component of at least one image sample to provide at least one coded sample; decoding the mentioned at least one coded sample; and determining at least one filtering parameter for the encoded image as a function of the difference between at least one component of said at least one sample of the image and said at least one corresponding component of said at least one corresponding decoded sample, the first filtering parameter is determined to be used as a general filtering parameter for performing loop filtering based on the sample-adaptive offset on both the first and second color components of the decoded sample, the first filtering parameter is determined to be used as a general filtering parameter conventionally according to the type of loop filtering based on the sample-adaptive offset; and the second filter parameter is determined to be used as another common filter parameter for performing loop filtering based on the sample-adaptive offset on both the first and second color components of the decoded sample, the second filter parameter is a type parameter adaptive to the sample offset, indicating whether loop filtering is used based on the sample adaptive offset edge type or band type as the mentioned type of loop filtering based on a sample adaptive offset for said at least one decoded sample, or no loop filtering based on a sample adaptive offset is not used for said at least one decoded sample.
EFFECT: technical result is to optimize the encoding and/or decoding of the compensation offsets for the set of reconstructed image samples in order to provide an improvement in the coding efficiency of the video codec and/or decoding complexity.
27 cl, 23 dwg, 2 tbl
Authors
Dates
2018-12-28—Published
2017-12-27—Filed