Temporal prediction of parameters in non-linear adaptive loop filter
Devices, systems and methods for temporal prediction of parameters in non-linear adaptive loop filtering are described. In an exemplary aspect, a method for visual media processing includes configuring, for a current video block, one or more parameters of a clipping operation that is part of a non-linear filtering operation; and performing, based on the one or more parameters, a conversion between the current video block and a bitstream representation of the current video block, wherein the one or more parameters is coded in accordance with a rule.
1 . A method of processing video data, comprising:
determining, that a non-linear filtering operation is applied for a current video region of a video;
determining, for the current video region, one or more parameters of a clipping operation that is part of the non-linear filtering operation; and
performing, based on the one or more parameters, a conversion between the current video region and a bitstream of the video,
wherein at least one first filtering index is derived, and a first clipping parameter set is derived based on the at least one first filtering index and the one or more parameters,
wherein the one or more parameters are coded with a fixed length of N bits,
wherein the at least one first filtering index is derived based on multiple sample differences in different directions,
wherein the current video region is split into multiple M×M video sub-regions, and the multiple sample differences in different directions are derived for every M×M video sub-region,
wherein M is equal to 2 or 4, and
wherein the multiple sample differences in different directions are derived based on a 1:P subsampling rate, and wherein P is greater than 1.
2 . The method of claim 1 , wherein N is 2.
3 . The method of claim 1 , wherein the one or more parameters include a clipping index syntax element.
4 . The method of claim 3 , wherein a first filtering coefficient set is derived based on the at least one first filtering index and a coefficient parameter syntax element.
5 . The method of claim 4 , wherein a value of the clipping index syntax element is determined independently from the first filtering coefficient set, and
wherein in a case that values of the first filtering coefficient set are zero, the clipping index syntax element is included in the bitstream.
6 . The method of claim 1 , wherein the one or more parameters are included as fields in an adaptive parameter set.
7 . The method of claim 5 , wherein the clipping index syntax element and the coefficient parameter syntax element are present in a same adaptive parameter set.
8 . The method of claim 4 , wherein the coefficient parameter syntax element includes a coefficient absolute value.
9 . The method of claim 4 , wherein the coefficient parameter syntax element is coded using Exponential-Golomb model with fixed order.
10 . The method of claim 1 , wherein the current video region includes a coding tree block or a slice.
11 . The method of claim 1 , wherein the conversion includes encoding the current video region into the bitstream.
12 . The method of claim 1 , wherein the conversion includes decoding the current video region from the bitstream.
13 . An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
determine, that a non-linear filtering operation is applied for a current video region of a video;
determine, for the current video region, one or more parameters of a clipping operation that is part of the non-linear filtering operation; and
perform, based on the one or more parameters, a conversion between the current video region and a bitstream of the video,
wherein at least one first filtering index is derived, and a first clipping parameter set is derived based on the at least one first filtering index and the one or more parameters, and
wherein the one or more parameters are coded with a fixed length of N bits,
wherein the at least one first filtering index is derived based on multiple sample differences in different directions,
wherein the current video region is split into multiple M×M video sub-regions, and the multiple sample differences in different directions are derived for every M×M video sub-region,
wherein M is equal to 2 or 4, and
wherein the multiple sample differences in different directions are derived based on a 1:P subsampling rate, and wherein P is greater than 1.
14 . The apparatus of claim 13 , wherein N is 2,
wherein the one or more parameters include a clipping index syntax element,
wherein a first filtering coefficient set is derived based on the at least one first filtering index and a coefficient parameter syntax element,
wherein a value of the clipping index syntax element is determined independently from the first filtering coefficient set,
wherein in a case that values of the first filtering coefficient set are zero, the clipping index syntax element is included in the bitstream,
wherein the one or more parameters are included as fields in an adaptive parameter set,
wherein the clipping index syntax element and the coefficient parameter syntax element are present in a same adaptive parameter set,
wherein the coefficient parameter syntax element includes a coefficient absolute value,
wherein the coefficient parameter syntax element is coded using Exponential-Golomb model with fixed order, and
wherein the current video region includes a coding tree block or a slice.
15 . A non-transitory computer-readable storage medium storing instructions that cause a processor to:
determine, that a non-linear filtering operation is applied for a current video region of a video;
determine, for the current video region, one or more parameters of a clipping operation that is part of the non-linear filtering operation; and
perform, based on the one or more parameters, a conversion between the current video region and a bitstream of the video,
wherein at least one first filtering index is derived, and a first clipping parameter set is derived based on the at least one first filtering index and the one or more parameters, and
wherein the one or more parameters are coded with a fixed length of N bits,
wherein the at least one first filtering index is derived based on multiple sample differences in different directions,
wherein the current video region is split into multiple M×M video sub-regions, and the multiple sample differences in different directions are derived for every M×M video sub-region,
wherein M is equal to 2 or 4, and
wherein the multiple sample differences in different directions are derived based on a 1:P subsampling rate, and wherein P is greater than 1.
16 . The non-transitory computer-readable storage medium of claim 15 , wherein N is 2,
wherein the one or more parameters include a clipping index syntax element,
wherein a first filtering coefficient set is derived based on the at least one first filtering index and a coefficient parameter syntax element,
wherein a value of the clipping index syntax element is determined independently from the first filtering coefficient set,
wherein in a case that values of the first filtering coefficient set are zero, the clipping index syntax element is included in the bitstream,
wherein the one or more parameters are included as fields in an adaptive parameter set,
wherein the clipping index syntax element and the coefficient parameter syntax element are present in a same adaptive parameter set,
wherein the coefficient parameter syntax element includes a coefficient absolute value,
wherein the coefficient parameter syntax element is coded using Exponential-Golomb model with fixed order, and
wherein the current video region includes a coding tree block or a slice.
17 . A method for storing a bitstream of a video, comprising:
determining, that a non-linear filtering operation is applied for a current video region of the video;
determining, for the current video region, one or more parameters of a clipping operation that is part of the non-linear filtering operation;
generating, based on the one or more parameters, for the current video region, the bitstream of the video, and
storing the bitstream in a non-transitory computer-readable recording medium,
wherein at least one first filtering index is derived, and a first clipping parameter set is derived based on the at least one first filtering index and the one or more parameters, and
wherein the one or more parameters are coded with a fixed length of N bits,
wherein the at least one first filtering index is derived based on multiple sample differences in different directions,
wherein the current video region is split into multiple M×M video sub-regions, and the multiple sample differences in different directions are derived for every M×M video sub-region,
wherein M is equal to 2 or 4, and
wherein the multiple sample differences in different directions are derived based on a 1:P subsampling rate, and wherein P is greater than 1.
18 . The method of claim 17 , wherein N is 2,
wherein the one or more parameters include a clipping index syntax element,
wherein a first filtering coefficient set is derived based on the at least one first filtering index and a coefficient parameter syntax element,
wherein a value of the clipping index syntax element is determined independently from the first filtering coefficient set,
wherein in a case that values of the first filtering coefficient set are zero, the clipping index syntax element is included in the bitstream,
wherein the one or more parameters are included as fields in an adaptive parameter set,
wherein the clipping index syntax element and the coefficient parameter syntax element are present in a same adaptive parameter set,
wherein the coefficient parameter syntax element includes a coefficient absolute value,
wherein the coefficient parameter syntax element is coded using Exponential-Golomb model with fixed order, and
wherein the current video region includes a coding tree block or a slice.