| CPC H04N 19/117 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/46 (2014.11); H04N 19/82 (2014.11)] | 19 Claims |

|
11. A device for encoding image data, the device comprising:
an encoder which encodes image data into a bitstream; and
an Adaptive Loop Filter which filters image data, the Adaptive Loop Filter comprising:
a data obtainer which, for a slice containing one or more coding tree blocks, obtains data indicating a number of alternative chroma filters for Adaptive Loop Filtering, wherein the number can be more than one;
an index obtainer which, for a coding tree block in the slice containing one or more coding tree blocks, obtains an alternative filter index identifying one of the one or more available alternative chroma filters, the number of which is indicated by the data,
wherein the data indicating the number of alternative chroma filters is used to obtain the alternative filter index identifying the one of the one or more available alternative chroma filters;
a selector which selects the one of the one or more alternative chroma filters identified by the alternative filter index to filter chroma image data in the coding tree block;
a flag obtainer which obtains a flag for the one or more alternative chroma filters, the flag indicating whether a chroma filter is a linear filter or a non-linear filter; and
an indices obtainer which obtains one or more clipping value indices for the one or more alternative chroma filters when the obtained flag indicates that a chroma filter is a non-linear filter.
|