Systems and methods for signaling neural network post-filter patch size information in video coding
A device may be configured to perform filtering based on information included in a neural network post-filter characteristics message. In one example, the neural network post-filter characteristics message includes a syntax element indicating whether the post-processing filter accepts as input a patch size having a width equal to horizontal sample counts indicated by a syntax element and a height equal to vertical sample counts indicated by a syntax element, or a patch size having a width equal to a multiple of horizontal sample counts indicated by a syntax element and a height equal to a multiple of vertical sample counts indicated by a syntax element.
1. A method of performing neural network filtering for video data, the method comprising:
receiving a neural network post-filter characteristics message;
parsing a first syntax element from the neural network post-filter characteristics message indicating whether (i) a second syntax element and a third syntax element are present in the neural network post-filter characteristics message and a post-processing filter accepts a first patch size having a width equal to horizontal sample counts indicated by the second syntax element and a height equal to vertical sample counts indicated by the third syntax element, or (ii) a fourth syntax element and a fifth syntax element are present in the neural network post-filter characteristics message and the post-processing filter accepts a second patch size having a width equal to a multiple of horizontal sample counts indicated by the fourth syntax element and a height equal to a multiple of vertical sample counts indicated by the fifth syntax element; and
conditionally parsing the second syntax element and the third syntax element or the fourth syntax element and the fifth syntax element based on a value of the first syntax element.
2. A device comprising:
one or more processors configured to:
receive a neural network post-filter characteristics message;
parse a first syntax element from the neural network post-filter characteristics message indicating whether (i) a second syntax element and a third syntax element are present in the neural network post-filter characteristics message and a post-processing filter accepts a first patch size having a width equal to horizontal sample counts indicated by a the second syntax element and a height equal to vertical sample counts indicated by a the third syntax element, or (ii) a fourth syntax element and a fifth syntax element are present in the neural network post-filter characteristics message and the post-processing filter accepts a second patch size having a width equal to a multiple of horizontal sample counts indicated by the fourth syntax element and a height equal to a multiple of vertical sample counts indicated by the fifth syntax element; and
conditionally parse the second syntax element and the third syntax element or the fourth syntax element and the fifth syntax element based on a value of the first syntax element.
3. The device of claim 2 , wherein the device includes a video decoder.
4. A device comprising;
one or more processors configured to: signal a neural network post-filter characteristics message; signal a first syntax element in the neural network post-filter characteristics message indicating whether (i) a second syntax element and a third syntax element are present in the neural network post-filter characteristics message and a post-processing filter accepts a first patch size having a width equal to horizontal sample counts indicated by the second syntax element and a height equal to vertical sample counts indicated by the third syntax element, or (ii) a fourth syntax element and a fifth syntax element are present in the neural network post-filter characteristics message and the post-processing filter accepts a second patch size having a width equal to a multiple of horizontal sample counts indicated by the fourth syntax element and a height equal to a multiple of vertical sample counts indicated by the fifth syntax element; and conditionally signal the second syntax element and the third syntax element or the fourth syntax element and the fifth syntax element based on a value of the first syntax element.
5. The device of claim 4 , wherein the device includes a video encoder.