CPC H04N 19/132 (2014.11) [H04N 19/186 (2014.11); H04N 19/1883 (2014.11); H04N 19/46 (2014.11)] | 11 Claims |
1. A video data processing method comprising:
determining a first index based on a position of a chroma sample and a height associated with a coding tree unit;
determining a position of a luma sample based on the first index;
determining a second index based on a value associated with the position of the luma sample;
determining an offset based on the second index; and
adding the offset to a value associated with the chroma sample, wherein determining the second index based on the value associated with the position of the luma sample further comprises:
determining a third index indicating a category used for an edge offset (E) method;
determining a first offset for a horizontal position based on the third index for a first neighboring luma sample;
determining a second offset for a vertical position based on the first index and the third index for the first neighboring luma sample;
determining a first value based on the position of the luma sample, the first offset and the second offset;
determining a first difference between the value associated with the position of the luma sample and the first value;
determining a third offset for the horizontal position based on the third index for a second neighboring luma sample;
determining a fourth offset for the vertical position based on the first index and the third index for the second neighboring luma sample;
determining a second value based on the position of the luma sample, the third offset and the fourth offset;
determining a second difference between the value associated with the position of the luma sample and the second value; and
determining the second index based on the first difference and the second difference.
|