| CPC H04N 19/14 (2014.11) [H04N 19/182 (2014.11); H04N 19/186 (2014.11); H04N 19/82 (2014.11)] | 19 Claims |

|
1. A method for video coding, comprising:
determining at least one classification mode of a first component of a first pixel for a block in an image frame based on at least one pixel value of at least one second component of at least one second pixel, wherein the at least one second component of the at least one second pixel has a distance with the first component of the first pixel and the distance does not exceed a range, the first component includes a chrominance component, and each of the at least one second component includes a luminance component, and the determining the at least one classification mode includes:
designating a pixel value of one of the at least one second component or one of at least one statistical value of the at least one first component as a value of one of the at least one classification mode;
generating a target classification result by classifying the first component based on at least a portion of the at least one classification mode; and
compensating the first component based on an optimal compensation value of the target classification result.
|