Method, apparatus, and medium for video processing

The method improves video coding quality by applying neural-network post-processing filters on video units with region-specific activation and quality information, enhancing the efficiency and effectiveness of video processing.

WO2024146480A9PCT designated stage expired Publication Date: 2025-08-07DOUYIN VISION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/143508
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-01-03
Filing Date
2023-12-29
Publication Date
2025-08-07

AI Technical Summary

Technical Problem

Current video processing technologies, such as MPEG-2, MPEG-4, ITU-T H. 263, ITU-T H. 264/MPEG-4 AVC, and ITU-T H. 265 HEVC, lack efficient methods to improve coding quality through neural-network post-processing filters (NNPFs), as existing designs do not adequately address the need for region-specific activation, multiple filter usage, and performance characteristics.

Method used

Implement a method for video processing that applies neural-network post-processing filters (NNPFs) on video units, with a bitstream indicating quality information, and includes syntax elements to control filter activation and usage based on video units like pictures, slices, and regions of interest, allowing for efficient and region-specific filter application.

Benefits of technology

Enhances coding quality by enabling NNPFs to be applied based on quality information, addressing the limitations of existing designs and improving visual performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023143508_07082025_PF_FP_ABST
    Figure CN2023143508_07082025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a solution for video processing. A method for video processing is proposed. The method comprises: performing a conversion between a video and a bitstream of the video, wherein at least one neural -network post¬ processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

METHOD, APPARATUS, AND MEDIUM FOR VIDEO PROCESSING

[0001] FIELDS

[0002] Embodiments of the present disclosure relates generally to video processing techniques, and more particularly, to a neural-network post-processing filter (NNPF) .BACKGROUND

[0003] In nowadays, digital video capabilities are being applied in various aspects of peoples’ lives. Multiple types of video compression technologies, such as MPEG-2, MPEG-4, ITU-TH. 263, ITU-TH. 264 / MPEG-4 Part 10 Advanced Video Coding (AVC) , ITU-TH. 265 high efficiency video coding (HEVC) standard, versatile video coding (VVC) standard, have been proposed for video encoding / decoding. However, coding quality of video coding techniques is generally expected to be further improved.SUMMARY

[0004] Embodiments of the present disclosure provide a solution for video processing.

[0005] In a first aspect, a method for video processing is proposed. The method comprises: performing a conversion between a video and a bitstream of the video, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.

[0006] According to the method in accordance with the first aspect of the present disclosure, an indication indicating whether quality information of at least one video unit associated with the applying of the at least one NNPF is present in the bitstream. Compared with the conventional solution, the proposed method can advantageously enable the application of NNPF based on the quality information, and thus the coding quality can be improved.

[0007] In a second aspect, an apparatus for video processing is proposed. The apparatus comprises a processor and a non-transitory memory with instructions thereon. The instructions upon execution by the processor, cause the processor to perform a method in accordance with the first aspect of the present disclosure.

[0008] In a third aspect, a non-transitory computer-readable storage medium is proposed. The non-transitory computer-readable storage medium stores instructions that cause a processor to perform a method in accordance with the first aspect of the present disclosure.

[0009] In a fourth aspect, another non-transitory computer-readable recording medium is proposed. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. The method comprises: performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.

[0010] In a fifth aspect, a method for storing a bitstream of a video is proposed. The method comprises: performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream; and storing the bitstream in a non-transitory computer-readable recording medium.

[0011] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Through the following detailed description with reference to the accompanying drawings, the above and other objectives, features, and advantages of example embodiments of the present disclosure will become more apparent. In the example embodiments of the present disclosure, the same reference numerals usually refer to the same components.

[0013] Fig. 1 illustrates a block diagram that illustrates an example video coding system, in accordance with some embodiments of the present disclosure;

[0014] Fig. 2 illustrates a block diagram that illustrates a first example video encoder, in accordance with some embodiments of the present disclosure;

[0015] Fig. 3 illustrates a block diagram that illustrates an example video decoder, in accordance with some embodiments of the present disclosure;

[0016] Fig. 4 illustrates an example of raster-scan slice partitioning of a picture;

[0017] Fig. 5 illustrates an example of rectangular slice partitioning of a picture;

[0018] Fig. 6 illustrates an example of a picture partitioned into tiles and rectangular slices;

[0019] Fig. 7 illustrates an example of subpicture partitioning of a picture;

[0020] Fig. 8A illustrates an example of CTBs crossing picture borders;

[0021] Fig. 8B illustrates a further example of CTBs crossing picture borders;

[0022] Fig. 8C illustrates a still further example of CTBs crossing picture borders;

[0023] Fig. 9 illustrates an illustration of luma data channels;

[0024] Fig. 10 illustrates a flowchart of a method for video processing in accordance with embodiments of the present disclosure; and

[0025] Fig. 11 illustrates a block diagram of a computing device in which various embodiments of the present disclosure can be implemented.

[0026] Throughout the drawings, the same or similar reference numerals usually refer to the same or similar elements.DETAILED DESCRIPTION

[0027] Principle of the present disclosure will now be described with reference to some embodiments. It is to be understood that these embodiments are described only for the purpose of illustration and help those skilled in the art to understand and implement the present disclosure, without suggesting any limitation as to the scope of the disclosure. The disclosure described herein can be implemented in various manners other than the ones described below.

[0028] In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one  of ordinary skills in the art to which this disclosure belongs.

[0029] References in the present disclosure to “one embodiment, ” “an embodiment, ” “an example embodiment, ” and the like indicate that the embodiment described may include a particular feature, structure, or characteristic, but it is not necessary that every embodiment includes the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an example embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

[0030] It shall be understood that although the terms “first” and “second” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and / or” includes any and all combinations of one or more of the listed terms.

[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a” , “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” , “comprising” , “has” , “having” , “includes” and / or “including” , when used herein, specify the presence of stated features, elements, and / or components etc., but do not preclude the presence or addition of one or more other features, elements, components and / or combinations thereof.

[0032] Example Environment

[0033] Fig. 1 is a block diagram that illustrates an example video coding system 100 that may utilize the techniques of this disclosure. As shown, the video coding system 100 may include a source device 110 and a destination device 120. The source device 110 can be also referred to as a video encoding device, and the destination device 120 can be also referred to as a video decoding device. In operation, the source device 110 can be  configured to generate encoded video data and the destination device 120 can be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0034] The video source 112 may include a source such as a video capture device. Examples of the video capture device include, but are not limited to, an interface to receive video data from a video content provider, a computer graphics system for generating video data, and / or a combination thereof.

[0035] The video data may comprise one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bitstream. The bitstream may include a sequence of bits that form a coded representation of the video data. The bitstream may include coded pictures and associated data. The coded picture is a coded representation of a picture. The associated data may include sequence parameter sets, picture parameter sets, and other syntax structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The encoded video data may be transmitted directly to destination device 120 via the I / O interface 116 through the network 130A. The encoded video data may also be stored onto a storage medium / server 130B for access by destination device 120.

[0036] The destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may acquire encoded video data from the source device 110 or the storage medium / server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to a user. The display device 122 may be integrated with the destination device 120, or may be external to the destination device 120 which is configured to interface with an external display device.

[0037] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Coding (HEVC) standard, Versatile Video Coding (VVC) standard and other current and / or further standards.

[0038] Fig. 2 is a block diagram illustrating an example of a video encoder 200, which may be an example of the video encoder 114 in the system 100 illustrated in Fig. 1, in accordance with some embodiments of the present disclosure.

[0039] The video encoder 200 may be configured to implement any or all of the techniques of this disclosure. In the example of Fig. 2, the video encoder 200 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video encoder 200. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0040] In some embodiments, the video encoder 200 may include a partition unit 201, a prediction unit 202 which may include a mode select unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-prediction unit 206, a residual generation unit 207, a transform unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transform unit 211, a reconstruction unit 212, a buffer 213, and an entropy encoding unit 214.

[0041] In other examples, the video encoder 200 may include more, fewer, or different functional components. In an example, the prediction unit 202 may include an intra block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode in which at least one reference picture is a picture where the current video block is located.

[0042] Furthermore, although some components, such as the motion estimation unit 204 and the motion compensation unit 205, may be integrated, but are represented in the example of Fig. 2 separately for purposes of explanation.

[0043] The partition unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.

[0044] The mode select unit 203 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra-coded or inter-coded block to a residual generation unit 207 to generate residual block data and to a reconstruction unit 212 to reconstruct the encoded block for use as a reference picture. In some examples, the mode select unit 203 may select a combination of intra and inter prediction (CIIP) mode in which the prediction is based on an inter prediction signal and an intra prediction signal. The mode select unit 203 may also select a resolution for a motion vector (e.g., a sub-pixel or integer pixel precision) for the block in the case of inter-prediction.

[0045] To perform inter prediction on a current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing one or  more reference frames from buffer 213 to the current video block. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.

[0046] The motion estimation unit 204 and the motion compensation unit 205 may perform different operations for a current video block, for example, depending on whether the current video block is in an I-slice, a P-slice, or a B-slice. As used herein, an “I-slice” may refer to a portion of a picture composed of macroblocks, all of which are based upon macroblocks within the same picture. Further, as used herein, in some aspects, “P-slices” and “B-slices” may refer to portions of a picture composed of macroblocks that are not dependent on macroblocks in the same picture.

[0047] In some examples, the motion estimation unit 204 may perform uni-directional prediction for the current video block, and the motion estimation unit 204 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. The motion estimation unit 204 may then generate a reference index that indicates the reference picture in list 0 or list 1 that contains the reference video block and a motion vector that indicates a spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video block indicated by the motion information of the current video block.

[0048] Alternatively, in other examples, the motion estimation unit 204 may perform bi-directional prediction for the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate reference indexes that indicate the reference pictures in list 0 and list 1 containing the reference video blocks and motion vectors that indicate spatial displacements between the reference video blocks and the current video block. The motion estimation unit 204 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. The motion compensation unit 205 may generate the predicted video block of the current video block based on the reference video blocks  indicated by the motion information of the current video block.

[0049] In some examples, the motion estimation unit 204 may output a full set of motion information for decoding processing of a decoder. Alternatively, in some embodiments, the motion estimation unit 204 may signal the motion information of the current video block with reference to the motion information of another video block. For example, the motion estimation unit 204 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.

[0050] In one example, the motion estimation unit 204 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 300 that the current video block has the same motion information as the another video block.

[0051] In another example, the motion estimation unit 204 may identify, in a syntax structure associated with the current video block, another video block and a motion vector difference (MVD) . The motion vector difference indicates a difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.

[0052] As discussed above, video encoder 200 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 200 include advanced motion vector prediction (AMVP) and merge mode signaling.

[0053] The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a predicted video block and various syntax elements.

[0054] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by the minus sign) the predicted video block (s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks that correspond to different sample  components of the samples in the current video block.

[0055] In other examples, there may be no residual data for the current video block for the current video block, for example in a skip mode, and the residual generation unit 207 may not perform the subtracting operation.

[0056] The transform processing unit 208 may generate one or more transform coefficient video blocks for the current video block by applying one or more transforms to a residual video block associated with the current video block.

[0057] After the transform processing unit 208 generates a transform coefficient video block associated with the current video block, the quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values associated with the current video block.

[0058] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transforms to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more predicted video blocks generated by the prediction unit 202 to produce a reconstructed video block associated with the current video block for storage in the buffer 213.

[0059] After the reconstruction unit 212 reconstructs the video block, loop filtering operation may be performed to reduce video blocking artifacts in the video block.

[0060] The entropy encoding unit 214 may receive data from other functional components of the video encoder 200. When the entropy encoding unit 214 receives the data, the entropy encoding unit 214 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.

[0061] Fig. 3 is a block diagram illustrating an example of a video decoder 300, which may be an example of the video decoder 124 in the system 100 illustrated in Fig. 1, in accordance with some embodiments of the present disclosure.

[0062] The video decoder 300 may be configured to perform any or all of the techniques of this disclosure. In the example of Fig. 3, the video decoder 300 includes a plurality of functional components. The techniques described in this disclosure may be shared among  the various components of the video decoder 300. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.

[0063] In the example of Fig. 3, the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transformation unit 305, and a reconstruction unit 306 and a buffer 307. The video decoder 300 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 200.

[0064] The entropy decoding unit 301 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data) . The entropy decoding unit 301 may decode the entropy coded video data, and from the entropy decoded video data, the motion compensation unit 302 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. The motion compensation unit 302 may, for example, determine such information by performing the AMVP and merge mode. AMVP is used, including derivation of several most probable candidates based on data from adjacent PBs and the reference picture. Motion information typically includes the horizontal and vertical motion vector displacement values, one or two reference picture indices, and, in the case of prediction regions in B slices, an identification of which reference picture list is associated with each index. As used herein, in some aspects, a “merge mode” may refer to deriving the motion information from spatially or temporally neighboring blocks.

[0065] The motion compensation unit 302 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used with sub-pixel precision may be included in the syntax elements.

[0066] The motion compensation unit 302 may use the interpolation filters as used by the video encoder 200 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 according to the received syntax information and use the interpolation filters to produce predictive blocks.

[0067] The motion compensation unit 302 may use at least part of the syntax information to determine sizes of blocks used to encode frame (s) and / or slice (s) of the encoded video sequence, partition information that describes how each macroblock of a  picture of the encoded video sequence is partitioned, modes indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-encoded block, and other information to decode the encoded video sequence. As used herein, in some aspects, a “slice” may refer to a data structure that can be decoded independently from other slices of the same picture, in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice can either be an entire picture or a region of a picture.

[0068] The intra prediction unit 303 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. The inverse quantization unit 304 inverse quantizes, i.e., de-quantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.

[0069] The reconstruction unit 306 may obtain the decoded blocks, e.g., by summing the residual blocks with the corresponding prediction blocks generated by the motion compensation unit 302 or intra-prediction unit 303. If desired, a deblocking filter may also be applied to filter the decoded blocks in order to remove blockiness artifacts. The decoded video blocks are then stored in the buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction and also produces decoded video for presentation on a display device.

[0070] Some exemplary embodiments of the present disclosure will be described in detailed hereinafter. It should be understood that section headings are used in the present document to facilitate ease of understanding and do not limit the embodiments disclosed in a section to only that section. Furthermore, while certain embodiments are described with reference to Versatile Video Coding or other specific video codecs, the disclosed techniques are applicable to other video coding technologies also. Furthermore, while some embodiments describe video coding steps in detail, it will be understood that corresponding steps decoding that undo the coding will be implemented by a decoder. Furthermore, the term video processing encompasses video coding or compression, video decoding or decompression and video transcoding in which video pixels are represented from one compressed format into another compressed format or at a different compressed bitrate.

[0071] 1. Brief Summary

[0072] This disclosure is related to image / video coding technologies. Specifically, it is related to usage and controlling for neural network post processing filters signaled in a video bitstream. Herein usage and controlling can be applied in a video unit (e.g., picture / slice / CTU) . The ideas may be applied individually or in various combinations, for video bitstreams coded by any codec, e.g., the versatile video coding (VVC) standard and / or the versatile SEI messages for coded video bitstreams (VSEI) standard.

[0073] 2. Abbreviations APS   Adaptation Parameter Set AU    Access Unit CLVS  Coded Layer Video Sequence CLVSS Coded Layer Video Sequence Start CRC   Cyclic Redundancy Check CVS   Coded Video Sequence FIR   Finite Impulse Response IRAP  Intra Random Access Point NAL   Network Abstraction Layer PPS   Picture Parameter Set PU    Picture Unit RASL  Random Access Skipped Leading SEI   Supplemental Enhancement Information STSA  Step-wise Temporal Sublayer Access VCL   Video Coding Layer VSEI  versatile supplemental enhancement information (Rec. ITU-T H. 274 | ISO / IEC 23002-7) VUI   Video Usability Information VVC   versatile video coding (Rec. ITU-T H. 266 | ISO / IEC 23090-3)

[0074] 3. Introduction

[0075] 3.1. Video coding standards

[0076] Video coding standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. The ITU-T produced H. 261 and H. 263, ISO / IEC produced MPEG-1 and MPEG-4 Visual, and the two organizations jointly produced the H. 262 / MPEG-2 Video and H. 264 / MPEG-4 Advanced Video Coding (AVC) and H. 265 / HEVC standards. Since H. 262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. To explore the future video coding technologies beyond HEVC, the Joint Video Exploration Team (JVET) was founded by VCEG and MPEG jointly in 2015. Since then, many new methods have been adopted by JVET and put into the reference software named Joint Exploration Model (JEM) . The JVET was later renamed to be the Joint Video Experts Team (JVET) when the Versatile Video Coding (VVC) project officially started. VVC is the new coding standard, targeting at 50%bitrate reduction as compared to HEVC, that has been finalized by the JVET at its 19th meeting ended at July 1, 2020.

[0077] The Versatile Video Coding (VVC) standard (ITU-T H. 266 | ISO / IEC 23090-3) and the associated Versatile Supplemental Enhancement Information for coded video bitstreams (VSEI) standard (ITU-T H. 274 | ISO / IEC 23002-7) have been designed for use in a maximally broad range of applications, including both the traditional uses such as television broadcast, video conferencing, or playback from storage media, and also newer and more advanced use cases such as adaptive bit rate streaming, video region extraction, composition and merging of content from multiple coded video bitstreams, multiview video, scalable layered coding, and viewport-adaptive 360° immersive media.

[0078] The Essential Video Coding (EVC) standard (ISO / IEC 23094-1) is another video coding standard that has recently been developed by MPEG.

[0079] 3.2. Definitions of video units

[0080] A picture is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs that covers a rectangular region of a picture. The CTUs in a tile are scanned in raster scan order within that tile.

[0081] A slice consists of an integer number of complete tiles or an integer number of consecutive complete CTU rows within a tile of a picture. Consequently, each vertical slice boundary is always also a vertical tile boundary. It is possible that a horizontal boundary of a slice is not a  tile boundary but consists of horizontal CTU boundaries within a tile; this occurs when a tile is split into multiple rectangular slices, each of which consists of an integer number of consecutive complete CTU rows within the tile.

[0082] Two modes of slices are supported, namely the raster-scan slice mode and the rectangular slice mode. In the raster-scan slice mode, a slice contains a sequence of complete tiles in a tile raster scan of a picture. In the rectangular slice mode, a slice contains either a number of complete tiles that collectively form a rectangular region of the picture or a number of consecutive complete CTU rows of one tile that collectively form a rectangular region of the picture. Tiles within a rectangular slice are scanned in tile raster scan order within the rectangular region corresponding to that slice.

[0083] A subpicture contains one or more slices that collectively cover a rectangular region of a picture. Consequently, each subpicture boundary is also always a slice boundary, and each vertical subpicture boundary is always also a vertical tile boundary.

[0084] One or both of the following conditions shall be fulfilled for each subpicture and tile:

[0085] – All CTUs in a subpicture belong to the same tile.

[0086] – All CTUs in a tile belong to the same subpicture.

[0087] Fig. 4 shows an example of raster-scan slice partitioning of a picture, where the picture is divided into 12 tiles and 3 raster-scan slices. More specifically, a picture with 18 by 12 luma CTUs is partitioned into 12 tiles and 3 raster-scan slices. Fig. 5 shows an example of rectangular slice partitioning of a picture, where the picture is divided into 24 tiles (6 tile columns and 4 tile rows) and 9 rectangular slices. More specifically, a picture with 18 by 12 luma CTUs is partitioned into 24 tiles and 9 rectangular slices. Fig. 6 shows an example of a picture partitioned into tiles and rectangular slices, where the picture is divided into 4 tiles (2 tile columns and 2 tile rows) and 4 rectangular slices. Fig. 7 shows an example of subpicture partitioning of a picture, where a picture is partitioned into 18 tiles, 12 tiles on the left-hand side each covering one slice of 4 by 4 CTUs and 6 tiles on the right-hand side each covering 2 vertically-stacked slices of 2 by 2 CTUs, altogether resulting in 24 slices and 24 subpictures of varying dimensions (each slice is a subpicture) .

[0088] 3.2.1. CTU / CTB sizes

[0089] In VVC, the CTU size, signaled in SPS by the syntax element log2_ctu_size_minus2, could be as small as 4x4.

[0090] 3.2.2. CTUs in a picture

[0091] Suppose the CTB / LCU size indicated by M x N (typically M is equal to N, as defined in HEVC / VVC) , and for a CTB located at picture (or tile or slice or other kinds of types, picture border is taken as an example) border, K x L samples are within picture border wherein either K<M or L<N. For those CTBs as depicted in Figs. 8A-8C, the CTB size is still equal to MxN, however, the bottom boundary / right boundary of the CTB is outside the picture. Fig. 8A is a diagram 800 illustrating an example of CTBs crossing picture borders, where K=M, L<N, and CTBs cross the bottom picture border. Fig. 8B is a diagram 802 illustrating a further example of CTBs crossing picture borders, where K<M, L=N, and CTBs cross the right picture border. Fig. 8C is a diagram 804 illustrating a still further example of CTBs crossing picture borders, where K<M, L<N and CTBs cross the right bottom picture border.

[0092] 3.3. SEI messages in general and in VVC and VSEI

[0093] SEI messages assist in processes related to decoding, display or other purposes. However, SEI messages are not required for constructing the luma or chroma samples by the decoding process. Conforming decoders are not required to process this information for output order conformance. Some SEI messages are required for checking bitstream conformance and for output timing decoder conformance. Other SEI messages are not required for check bitstream conformance. Annex D of VVC specifies syntax and semantics for SEI message payloads for some SEI  messages, and specifies the use of the SEI messages and VUI parameters for which the syntax and semantics are specified in ITU-T H. 274 | ISO / IEC 23002-7.

[0094] 3.4. Signalling of neural-network post-filters

[0095] An existing design includes the specification of two SEI messages for signalling of neural-network post-filters, as follows.

[0096] 4. Problems

[0097] There are some problems in the current design of neural-network post-filter activation (NNPFA) and neural-network post-filter characteristics (NNPFC) SEI message.

[0098] 1) The NNPFA and / or NNPFC SEI message persists only for the current picture. However, the neural-network post-processing filter (NNPF) may be effective only for part region of the current picture, such as slice, coding tree unit, coding unit, coding block, region of interest. And NNPF may be also effective for whole sequence such that it is efficient to only signal one NNPFA and / or NNPFC message instead of signal NNPFA and / or NNPFC  message for every picture. Therefore, it is necessary to supplement certain region information into NNPFA and / or NNPFC.

[0099] 2) There may be several NNPFA and / or NNPFC SEI messages present for the same picture. And only one post-processing filter specified by nnpfa_id is activated in one SEI message. However, various content in video unit (such as picture, slice, coding unit, etc.. ) may require different post-processing filters. Multiple set of filters may be useful for different content such that multiple groups of syntax elements for multiple sets of filters should be added into one NNPFA and / or NNPFC SEI message and how to use / switch the post-processing filters for video units need to be supplemented in NNPFA and / or NNPFC SEI message.

[0100] 3) The neural-network post-processing filter could improve the performance of visual quality. Generally speaking, NNPF with higher complexity may produce better performance improvement. In current design, SEI message only provides the complexity characteristic. But the performance characteristic is ignored.

[0101] 5. Detailed Solutions

[0102] To solve the above problems, methods as summarized below are disclosed. The solutions should be considered as examples to explain the general concepts and should not be interpreted in a narrow way. Furthermore, these solutions can be applied individually or combined in any manner.

[0103] 1) It is proposed that the activation and / or enabling and / or presence and / or usage of neural-network post-filter (NNPF) for video units may be controlled by one or multiple groups of syntax elements in a video message unit.

[0104] a. In one example, the video message unit may be a SEI message, such as NNPFA SEI message.

[0105] b. In one example, the group of syntax elements may be expressed as SE_activation.

[0106] i. In one example, SE_activation may comprise multiple syntax elements.

[0107] 1. In one example, one or multiple nnpfa_id may be involved in SE_activation.

[0108] a. In one example, multiple filters may be indicated by nnpfa_id [i] .

[0109] i. In one example, i is the index of filters.

[0110] 2. In one example, the number of NNPF may be involved in SE_activation.

[0111] a. In one example, the number of NNPF may be indicated by nnpfa_num_minus1.

[0112] 3. In one example, purpose of range information of color components may be involved in SE_activation.

[0113] 4. In one example, the range of color components may be involved in SE_activation.

[0114] c. A video unit may be whole or part or sub-region of a video / sequence / image in the following bullets.

[0115] i. In one example, video unit may be a sequence.

[0116] ii. In one example, video unit may be a picture.

[0117] iii. In one example, video unit may be a slice.

[0118] iv. In one example, video unit may be a tile / brick.

[0119] v. In one example, video unit may be a subpicture.

[0120] vi. In one example, video unit may be one or multiple CTUs / CTBs.

[0121] vii. In one example, video unit may be a CTU / CTB row.

[0122] viii. In one example, video unit may be one or multiple CUs / CBs.

[0123] ix. In one example, video unit may be one or multiple VPDU (Virtual Pipeline Data Unit) .

[0124] x. In one example, video unit may be a sub-region within a picture / slice / tile / brick.

[0125] d. A video unit may be one or multiple patches of picture in the following bullets.

[0126] i. In one example, patch is a rectangular array of samples from a component of a picture.

[0127] 1. In one example, component may be a luma or chroma component.

[0128] 2. In one example, component may be a Y or U (Cb) or V (Cr) component.

[0129] 3. In one example, component may be a R or G or B component.

[0130] ii. In one example, patch may be defined in the video message.

[0131] 1. In one example, patch size may be acquired from NNPFC SEI message.

[0132] a. In one example, the patch width may be nnpfc_patch_width_minus1 + 1.

[0133] b. In one example, the patch height may be multiple of (nnpfc_patch_width_minus1 + 1) .

[0134] c. In one example, the patch width may be nnpfc_patch_height_minus1 + 1.

[0135] d. In one example, the patch height may be multiple of (nnpfc_patch_height_minus1 + 1) .

[0136] e. A video unit may be one or multiple regions of interest (ROI) in the following bullets.

[0137] i. In one example, one ROI may include one or multiple initial point.

[0138] 1. In one example, initial point may include horizontal coordinate (x0) .

[0139] 2. In one example, initial point may include vertical coordinate (y0) .

[0140] ii. In one example, one ROI may include one or multiple ending point.

[0141] 1. In one example, ending point may include horizontal coordinate (xn) .

[0142] 2. In one example, ending point may include vertical coordinate (yn) .

[0143] iii. In one example, one ROI may include one or multiple size information.

[0144] 1. In one example, one ROI may include horizontal samples (width) of region.

[0145] 2. In one example, one ROI may include vertical samples (height) of region.

[0146] iv. In one example, one ROI may be specified or decided according to the output of applying image / video segmentation algorithms on the decoded output picture.

[0147] 1. In one example, all foreground regions are considered as ROI.

[0148] 2. In one example, all background regions are considered as ROI.

[0149] 3. In one example, regions corresponding to certain types of content (e.g. car, people, cat, sky, etc. ) are considered as ROI.

[0150] v. In one example, one ROI may be specified or decided according to the output of applying image / video object classification / detection algorithms on the decoded output picture.

[0151] 1. In one example, regions corresponding to certain / all classes of detected objects are considered as ROI.

[0152] 2. In one example, regions not containing any detected objects are considered as ROI.

[0153] f. In one example, whether one or multiple groups of syntax elements should be applied to a video unit (such as a picture or a slice) may depend on the relative relationship when signaling the video unit and the video message unit.

[0154] i. In one example, one or multiple groups of syntax elements should be applied to a video unit signaled after the video message unit.

[0155] ii. In one example, one or multiple groups of syntax elements should be applied to a video unit signaled before the video message unit.

[0156] 2) The group of syntax elements (expressed as SE_activation) indicating the activation and / or enabling and / or presence and / or usage may depend on color components and / or color formats.

[0157] a. In one example, syntax elements (expressed as SE_color_purpose) indicating the purpose of range information of color components may be added into NNPFA SEI message.

[0158] i. In one example, one (1st) purpose may be that only one group of SE_activation need to be involved in NNPFA SEI message and the activation and / or enabling and / or presence and / or usage controlled by SE_activation are commonly used for available color components specified in NNPFC SEI message.

[0159] 1. In one example, the NNPFC SEI message may define the available color components for a post-processing filter identified by syntax element nnpfc_id or it is limited that the filter can be only used for specific color components which are determined by the design of the post filer.

[0160] 2. In one example, the value of one syntax element of SE_color_purpose equal to 0 specifies 1st purpose.

[0161] ii. In one example, one (2nd) purpose may be that only one group of SE_activation need to be involved in NNPFA SEI message and the activation and / or enabling and / or presence and / or usage controlled by SE_activation are commonly used for all color components in specified color range (SE_color_range in the following discussion) .

[0162] 1. In one example, the value of one syntax element of SE_color_purpose equal to 1 specifies 2nd purpose.

[0163] iii. In one example, one (3rd) purpose may be that multiple groups of SE_activation need to be involved in NNPFA SEI message and need to be used for different color components in specified color range (SE_color_range in the following discussion) .

[0164] 1. In one example, the value of one syntax element of SE_color_purpose equal to 2 specifies 3rd purpose.

[0165] iv. In one example, the syntax elements SE_color_purpose may be not signaled.

[0166] 1. In one example, one purpose (in above discussion or not) may be set as default purpose.

[0167] b. In one example, syntax elements (expressed as SE_color_range) indicating the range of color components may be added into NNPFA SEI message.  SE_activation may be used for all color components in specified color range indicated by SE_color_range.

[0168] i. In one example, the usage of SE_color_range may be depended on the SE_color_purpose.

[0169] 1. In one example, when the value of one syntax element of SE_color_purpose equals to 1 or 2 (be equivalent to the 2nd purpose or 3rd purpose in the above discussion) the SE_color_range may be signaled.

[0170] 2. In one example, when the value of one syntax element of SE_color_purpose equals to 0 (be equivalent to the 1st purpose in the above discussion) the SE_color_range may be not signaled.

[0171] ii. In one example, SE_activation may be used for color components in specified color range indicated by SE_color_range.

[0172] 1. In one example, one group of SE_activation need to be involved in NNPFA SEI message and is commonly used for all available color components.

[0173] 2. In one example, multiple groups of SE_activation need to be involved in NNPFA SEI message and are used for different available color components.

[0174] a. In one example, the number of groups of SE_activation may equal to the number of available color components.

[0175] iii. In one example, color range may include Y and / or U (Cb) and / or V (Cr) component.

[0176] iv. In one example, color range may include R and / or G and / or B component.

[0177] v. In one example, the max number of color components in color range may be 3, 2, 1.

[0178] c. In one example, the syntax elements (expressed as SE_activation) may be unified for more than one color components.

[0179] i. In one example, the syntax elements may indicate the activation and / or enabling and / or presence and / or usage of all color component.

[0180] 1. In one example, color components include Y and / or Cb and / or Cr components.

[0181] 2. In one example, color components include R and / or G and / or B components.

[0182] ii. In one example, the syntax elements may indicate the activation and / or enabling and / or presence and / or usage of chroma components.

[0183] 1. In one example, color components include Cb and Cr components.

[0184] d. In one example, the syntax elements (expressed as SE_activation) may be separate for color components.

[0185] i. In one example, the syntax elements may be different for all color components.

[0186] 1. In one example, first group of syntax elements may be used for first color component.

[0187] a. In one example, first color component may be Y and / or Cb and / or Cr components.

[0188] b. In one example, first color component may be R and / or G and / or B components.

[0189] 2. In one example, second group of syntax elements may be used for second color component.

[0190] a. In one example, second color component may be Cb and / or Y and / or Cr components.

[0191] b. In one example, second color component may be G and / or R and / or B components.

[0192] 3. In one example, third group of syntax elements may be used for third color component.

[0193] a. In one example, third color component may be Cr and / or Y and / or Cb components.

[0194] b. In one example, third color component may be B and / or G and / or R components.

[0195] ii. In one example, the syntax elements (expressed as SE_activation) may be different for luma and chroma color components.

[0196] 1. In one example, first group of syntax elements may be used for luma component.

[0197] 2. In one example, second group of syntax elements may be used for chroma component.

[0198] a. In one example, second group of syntax elements may be same for Cb and Cr components.

[0199] 3) How to / whether to signal the group of syntax elements (expressed as SE_activation) indicating the activation and / or enabling and / or presence and / or usage may depend on the number of NNPF.

[0200] a. In one example, one or more syntax elements indicating the number of NNPF may be added into NNPFA SEI message.

[0201] i. In one example, the syntax element may be expressed as nnpfa_num_minus1.

[0202] 1. In one example, the number of NNPF may be equal to nnpfa_num_minus1 + 1.

[0203] 2. In one example, the value of nnpfa_num_minus1 shall be in the range of 0 to 2k -1, inclusive.

[0204] a. In one example, k may be integer, such as 0, 1, 2, 3, 4, 5, 6, 7, …, 32.

[0205] 3. In one example, the value of nnpfa_num_minus1 shall be in the range of 0 to 255, inclusive.

[0206] 4. In one example, when nnpfa_num_minus1 is not present, the value of nnpfa_num_minus1 is inferred to be equal to 0.

[0207] 5. In one example, nnpfa_num_minus1 may be dependent on the region type of NNPF.

[0208] a. In one example, region type of NNPF may be indicated by nnpfa_region_type.

[0209] b. In one example, nnpfa_num_minus1 may be NOT signaled when nnpfa_region_type is equal to specific value.

[0210] c. In one example, nnpfa_num_minus1 may be NOT signaled when nnpfa_region_type is equal to 0.

[0211] ii. In one example, the number of NNPF may be ue (v) -coded.

[0212] b. In one example, the number of NNPF may be smaller than the max value of nnpfc_id plus one.

[0213] c. In one example, the number of NNPF may be not signaled into NNPFA SEI message.

[0214] i. In one example, the number of NNPF may be set as default value.

[0215] ii. In one example, the number of NNPF may be 1.

[0216] 4) One or more syntax elements indicating the identification of NNPF may be added into NNPFA SEI message.

[0217] a. In one example, identification of NNPF may be nnpfa_id.

[0218] b. In one example, identification of NNPF may be involved in SE_activation.

[0219] c. In one example, more than one of identification of NNPF may be added into NNPFA SEI message.

[0220] i. In one example, i-th filter may be indicated by nnpfa_id [i] .

[0221] ii. In one example, nnpfa_id [i] specifies that the i-th neural-network post-processing filter specified by one or more neural-network post-processing filter characteristics SEI messages that pertain to the current picture and have nnpfc_id equal to nnfpa_id [i] may be used for post-processing filtering for the current picture.

[0222] d. In one example, the number of identifications of NNPF may depend on the color component.

[0223] e. In one example, the number of identifications of NNPF may depend on the number of NNPF.

[0224] i. In one example, the number of NNPF may be indicated by nnpfa_num_minus1.

[0225] ii. In one example, the number of identifications of NNPF may be equal to the number of NNPF (nnpfa_num_minus1 + 1) .

[0226] 5) One or more syntax elements (expressed as SE_region_type) indicating the region type of NNPF may be added into NNPFA and / or NNPFC SEI message.

[0227] a. In one example, region type of NNPF may be involved in SE_activation.

[0228] i. In one example, region type of NNPF may be indicated by nnpfa_region_type.

[0229] b. In one example, a region may be one type of video unit.

[0230] c. In one example, one or more syntax elements indicating the region scope (SE_region_scope) of NNPF may be added into NNPFA SEI message for corresponding region type.

[0231] i. In one example, region scope of NNPF may be involved in SE_activation.

[0232] 1. In one example, region scope of NNPF may be involved when region type is ROI.

[0233] ii. In one example, region scope may depend on the region type.

[0234] iii. In one example, region scope may be or be NOT signaled when the region type is identical to setting value.

[0235] 1. In one example, region type is a picture.

[0236] d. In one example, a region may be whole or part or sub-region of a video / sequence / image.

[0237] i. In one example, a region may be a sequence.

[0238] ii. In one example, a region may be a picture.

[0239] iii. In one example, a region may be a slice.

[0240] iv. In one example, a region may be a tile / brick.

[0241] v. In one example, a region may be a subpicture.

[0242] vi. In one example, a region may be one or multiple CTUs / CTBs.

[0243] 1. In one example, one or more syntax elements indicating the identification of CTUs / CTBs of NNPF may be added into NNPFA SEI message when the region type is CTUs / CTBs.

[0244] a. In one example, identification of CTUs / CTBs may be indicated by coordinate.

[0245] b. In one example, identification of CTUs / CTBs may be indicated by index one by one (in sequence) .

[0246] vii. In one example, a region may be a CTU / CTB row.

[0247] 1. In one example, one or more syntax elements indicating the identification of CTU / CTB row of NNPF may be added into NNPFA SEI message when the region type is CTU / CTB row.

[0248] a. In one example, identification of CTU / CTB row may be indicated by coordinate of CTU / CTB row.

[0249] b. In one example, identification of CTU / CTB row may be indicated by index of CTU / CTB row one by one (in sequence) .

[0250] viii. In one example, a region may be one or multiple CUs / CBs.

[0251] 1. In one example, one or more syntax elements indicating the identification of CUs / CBs of NNPF may be added into NNPFA SEI message when the region type is CTUs / CTBs.

[0252] a. In one example, identification of CUs / CBs may be indicated by coordinate.

[0253] b. In one example, identification of CUs / CBs may be indicated by index one by one (in sequence) .

[0254] ix. In one example, a region may be one or multiple VPDU (Virtual Pipeline Data Unit) .

[0255] 1. In one example, one or more syntax elements indicating the identification of VPDU of NNPF may be added into NNPFA SEI message when the region type is CTUs / CTBs.

[0256] a. In one example, identification of VPDU may be indicated by coordinate.

[0257] b. In one example, identification of VPDU may be indicated by index one by one (in sequence) .

[0258] x. In one example, a region may be a sub-region within a picture / slice / tile / brick.

[0259] e. In one example, a region may be one or multiple patches of picture.

[0260] i. In one example, one or more syntax elements indicating the size of patch of NNPF may be added into NNPFA SEI message when the region type is patch.

[0261] ii. In one example, one or more syntax elements indicating the horizontal and / or vertical and / or total number of patches of NNPF may be added into NNPFA SEI message when the region type is patch.

[0262] f. In one example, a region may be one or multiple regions of interest (ROI) .

[0263] i. In one example, one or more syntax elements indicating the initial point of ROI of NNPF may be added into NNPFA SEI message when the region type is ROI.

[0264] ii. In one example, one or more syntax elements indicating the ending point of ROI of NNPF may be added into NNPFA SEI message when the region type is ROI.

[0265] iii. In one example, one or more syntax elements indicating the horizontal samples (width) of ROI of NNPF may be added into NNPFA SEI message when the region type is ROI.

[0266] iv. In one example, one or more syntax elements indicating the vertical samples (height) of ROI of NNPF may be added into NNPFA SEI message when the region type is ROI.

[0267] g. In one example, a region may be one or multiple new regions when region type is different with common region type, such as picture, slice and CTU.

[0268] i. In one example, the new regions may be represented by additional information such as dimension and / or position and / or coordinate. And the type of the new region may be different with region type registered in the standards, such as picture, slice, CTU.

[0269] 1. In one example, the dimension information of new region may include horizontal samples (width) and / or vertical samples (height) .

[0270] 2. In one example, the position information of new region may include coordinates of start points such as (x0, y0) .

[0271] 3. In one example, the position information of new region may include coordinates of end points, such as (x1, y1) .

[0272] ii. In one example, one new region may be overlapped with other new regions.

[0273] iii. In one example, one new region may be NOT overlapped with other new regions.

[0274] iv. In one example, the dimension information may be same for all new regions.

[0275] 1. In one example, the unified dimension information may be signaled.

[0276] v. In one example, the dimension information may be NOT same for all new regions.

[0277] 1. In one example, the dimension information may be signaled for each region.

[0278] h. In one example, region type of NNPF may be NOT signaled.

[0279] i. In one example, region type may be set as a default type.

[0280] 1. In one example, region type may be picture level.

[0281] ii. In one example, region type may have a lowest level.

[0282] 1. In one example, lowest level of region type may be patch level.

[0283] iii. In one example, usage and / or switch and / or activation of NNPF may be indicated by a certain order.

[0284] 1. In one example, sequence level may be applied before picture level.

[0285] i. In one example, nnpfa_region_type equal to 0 indicates that the SEI message activates one neural-network post-filter (NNPF) that is applied for the current picture.

[0286] i. In one example, nnpfa_num_minus1 may be NOT signaled when nnpfa_region_type equal to 0.

[0287] j. In one example, nnpfa_region_type greater than 0 indicates that the SEI message activates one or more NNPFs.

[0288] i. In one example, when nnpfa_region_type is equal to 1, for each slice of the current picture, it is either indicated that no neural-network post-filtering is applied or the applied NNPF is indicated.

[0289] ii. In one example, when nnpfa_region_type is equal to 2, for each CTU of the current picture, it is either indicated that no neural-network post-filtering is applied or the applied NNPF is indicated.

[0290] iii. In one example, when nnpfa_region_type is equal to 3, for picture, and / or each slice, and / or each CTU of the current picture, it is either indicated that no neural-network post-filtering is applied or the applied NNPF is indicated.

[0291] iv. In one example, when nnpfa_region_type is equal to 4, for each sub-region of the current picture, it is either indicated that no neural-network post-filtering is applied or the applied NNPF is indicated.

[0292] k. In one example, the value of nnpfa_region_type shall be in the range of 0 to 31, inclusive. Values of nnpfa_region_type greater than 2 or 3 or 4 are reserved for future specification by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification.

[0293] l. In one example, decoders conforming to the Specification shall ignore NNPFA SEI messages with nnpfa_region_type greater than 2 or 3 or 4.

[0294] m. In one example, nnpfa_region_type may be ue (v) -coded.

[0295] 6) One or more syntax elements indicating usage and / or switch and / or activation of NNPF may be added into NNPFA SEI message.

[0296] a. The syntax elements may depend on the region type.

[0297] i. In one example, only syntax elements at the region level of specified region type may be added into NNPFA SEI message.

[0298] 1. In one example, NNPFA SEI message may comprise syntax element indicating NNPF at picture level when region type is picture.

[0299] a. In one example, the usage of NNPF at picture level may be indicated by nnpfa_picture_enabling_flag [i] .

[0300] i. In one example, only one NNPF is indicated by nnpfa_id in NNPFA SEI message.

[0301] b. In one example, the usage of NNPF at picture level may be indicated by nnpfa_picture_index [i] .

[0302] i. In one example, one or multiple NNPF are indicated by nnpfa_id [i] in NNPFA SEI message.

[0303] 2. In one example, NNPFA SEI message may comprise syntax element indicating NNPF at slice level when region type is slice.

[0304] a. In one example, the usage of NNPF at slice level may be indicated by nnpfa_slice_enabling_flag [i] .

[0305] i. In one example, only one NNPF is indicated by nnpfa_id in NNPFA SEI message.

[0306] b. In one example, the usage of NNPF at slice level may be indicated by nnpfa_slice_index [i] .

[0307] i. In one example, one or multiple NNPF are indicated by nnpfa_id [i] in NNPFA SEI message.

[0308] 3. In one example, NNPFA SEI message may comprise syntax element indicating NNPF at CTU level when region type is CTU.

[0309] a. In one example, the usage of NNPF at CTU level may be indicated by nnpfa_ctu_enabling_flag [i] .

[0310] i. In one example, only one NNPF is indicated by nnpfa_id in NNPFA SEI message.

[0311] b. In one example, the usage of NNPF at CTU level may be indicated by nnpfa_ctu_index [i] .

[0312] i. In one example, one or multiple NNPF are indicated by nnpfa_id [i] in NNPFA SEI message.

[0313] 4. In one example, NNPFA SEI message may comprise syntax element indicating NNPF at new region level when region type is new region type which may be represented by additional information such as dimension and / or position and / or coordinate.

[0314] a. In one example, the usage of NNPF at CTU level may be indicated by nnpfa_region_enabling_flag [i] .

[0315] i. In one example, only one NNPF is indicated by nnpfa_id in NNPFA SEI message.

[0316] b. In one example, the usage of NNPF at CTU level may be indicated by nnpfa_region_index [i] .

[0317] i. In one example, one or multiple NNPF are indicated by nnpfa_id [i] in NNPFA SEI message.

[0318] b. One or more syntax elements indicating usage of NNPF at the region (video unit) level may be added into NNPFA SEI message.

[0319] i. In one example, syntax elements for different region level may be signaled following certain order.

[0320] 1. In one example, syntax element of higher region level may be signaled before lower region level.

[0321] 2. In one example, syntax element of region may be signaled when the region type is equal to nnpfa_region_type.

[0322] a. In one example, nnpfa_picture_index [i] is signaled when nnpfa_region_type is equal to 0 or 3.

[0323] b. In one example, nnpfa_picture_enabling_flag [i] is signaled when nnpfa_region_type is equal to 0 or 3.

[0324] c. In one example, nnpfa_slice_index [i] is signaled when nnpfa_region_type is equal to 1 or 3.

[0325] d. In one example, nnpfa_slice_enabling_flag [i] is signaled when nnpfa_region_type is equal to 1 or 3.

[0326] e. In one example, nnpfa_ctu_index [i] is signaled when nnpfa_region_type is equal to 2 or 3.

[0327] f. In one example, nnpfa_ctu_enabling_flag [i] is signaled when nnpfa_region_type is equal to 2 or 3.

[0328] g. In one example, nnpfa_region_index [i] is signaled when nnpfa_region_type is equal to 4.

[0329] ii. In one example, one syntax element may indicate whether the NNPF is used in the current region level.

[0330] 1. In one example, syntax element equal to 0 may indicates that the NNPF is not used in current region.

[0331] a. In one example, syntax element may be nnpfa_slice_enabling_flag [i] , nnpfa_ctu_enabling_flag [i] .

[0332] b. In one example, syntax element may be nnpfa_slice_index [i] , nnpfa_ctu_index [i] .

[0333] 2. In one example, syntax element equal to 1 may indicates that the NNPF is used in current region.

[0334] a. In one example, syntax element may be nnpfa_slice_enabling_flag [i] , nnpfa_ctu_enabling_flag [i] .

[0335] 3. In one example, syntax element greater than 0 may indicates that the NNPF is used in current region.

[0336] a. In one example, syntax element may be nnpfa_slice_index [i] , nnpfa_ctu_index [i] .

[0337] b. In one example, syntax element should be smaller than nnpfa_num_minus1+2.

[0338] 4. In one example, syntax element equal to nnpfa_num_minus1+2 may indicate that the NNPF is used in sub-region of the current region.

[0339] a. In one example, syntax element may be nnpfa_slice_index [i] , nnpfa_ctu_index [i] .

[0340] iii. In one example, one syntax element may indicate how to select the NNPF in the current region level or which NNPF is used in the current region level.

[0341] 1. In one example, syntax element greater than 0 may indicates that the NNPF with index (syntax element -1) is used in current region.

[0342] a. In one example, syntax element may be nnpfa_slice_index [i] , nnpfa_ctu_index [i] .

[0343] 2. In one example, syntax element smaller than maxNnpfNum may indicates that the NNPF with index (syntax element) is used in current region.

[0344] iv. In one example, one syntax element may indicate whether the NNPF is adaptively used in the next (lower) region level.

[0345] 1. In one example, syntax element equal to 0 may indicates that the NNPF is adaptively selected in next region level.

[0346] 2. In one example, syntax element equal to maxNnpfNum may indicates that the NNPF is adaptively selected in next region level.

[0347] 3. In one example, syntax element equal to (maxNnpfNum-1) may indicates that the NNPF is adaptively selected in next region level.

[0348] v. In one example, the signaling of syntax element at current region level may depend on the syntax element at previous (higher) region level.

[0349] vi. In one example, area of region A is larger than the area of region B may indicates that level of region A is greater than level of region B and level of region B is lower than level of region A.

[0350] 1. In one example, picture level is lower than sequence level.

[0351] 2. In one example, slice level is lower than picture level.

[0352] 3. In one example, CTU level is lower than slice level.

[0353] 4. In one example, CU level is lower than CTU level.

[0354] 5. In one example, CU level is lower than CTU level.

[0355] c. One or more syntax elements indicating usage of NNPF at the sequence level may be added into NNPFA SEI message.

[0356] i. In one example, syntax element may indicate that NNPF is applied at sequence level or a lower level.

[0357] ii. In one example, syntax element at sequence level may be NOT signaled.

[0358] d. One or more syntax elements indicating usage of NNPF at the TID level may be added into NNPFA SEI message.

[0359] i. In one example, syntax element at TID level may depend on the syntax element at higher level.

[0360] ii. In one example, syntax element may indicate that NNPF is applied at TID level or a lower level.

[0361] 1. In one example, syntax element indicating TID index may be added into NNPFA SEI message.

[0362] iii. In one example, syntax element at TID level may be NOT signaled.

[0363] e. One or more syntax elements indicating usage of NNPF at the picture level may be added into NNPFA SEI message.

[0364] i. In one example, syntax element at picture level may depend on the syntax element at higher level.

[0365] ii. In one example, syntax element may indicate that NNPF is applied at picture level or a lower level.

[0366] iii. In one example, syntax element may indicate that NNPF is applied or not at picture level.

[0367] iv. In one example, syntax element may indicate that index of NNPF which is applied at picture level.

[0368] v. In one example, syntax element at picture level may be NOT signaled.

[0369] vi. In one example, usage of NNPF at the picture level may be indicated by nnpfa_picture_enabling_flag.

[0370] 1. In one example, nnpfa_picture_enabling_flag equal to 2 indicates that the post-processing filter is used for sub-region of the current picture.

[0371] a. In one example, sub-region of the current picture may be in slice / sub block / CTU / CTB / patch level.

[0372] b. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_slice_enabling_flag [i] .

[0373] c. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_ctu_enabling_flag [i] .

[0374] d. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_region_enabling_flag [i] .

[0375] 2. In one example, nnpfa_picture_enabling_flag equal to 1 indicates that the post-processing filter is used for the current picture.

[0376] 3. In one example, nnpfa_picture_enabling_flag equal to 0 indicates that the post-processing filter is not used for the current picture.

[0377] vii. In one example, usage of NNPF at the picture level may be indicated by nnpfa_picture_index.

[0378] 1. n one example, nnpfa_picture_index equal to 0 indicates that neural-network post-filtering is not used for the current picture.

[0379] 2. In one example, nnpfa_picture_index greater than 0 indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] is used for the current picture.

[0380] a. In one example, nnpfa_picture_index should be smaller than nnpfa_num_minus1 + 2.

[0381] 3. In one example, nnpfa_picture_index equal to nnpfa_num_minus1 + 2 indicates that the post-processing filter may be used for sub-region of the current picture.

[0382] a. In one example, sub-region of the current picture may be in slice / sub block / CTU / CTB / patch level.

[0383] b. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_slice_index [i] .

[0384] c. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_ctu_index [i] .

[0385] d. In one example, the usage of i-th sub-region of the current picture may be indicated by nnpfa_region_index [i] .

[0386] 4. In one example, the value of nnpfa_picture_index shall be in the range of 0 to nnpfa_num_minus1 + 1, inclusive.

[0387] 5. In one example, the value of nnpfa_picture_index shall be in the range of 0 to nnpfa_num_minus1 + 2, inclusive.

[0388] f. One or more syntax elements indicating usage of NNPF at the slice level may be added into NNPFA SEI message.

[0389] i. In one example, syntax element at slice level may depend on the syntax element at higher level.

[0390] ii. In one example, syntax element may indicate that NNPF is applied at slice level or a lower level.

[0391] iii. In one example, syntax element at slice level may be NOT signaled.

[0392] iv. In one example, usage of NNPF at the slice level may be indicated by nnpfa_slice_enabling_flag [i] .

[0393] 1. In one example, nnpfa_slice_enabling_flag [i] equal to 2 indicates that the post-processing filter is used for sub-region of the i-th slice of the current picture.

[0394] a. In one example, sub-region of the i-th slice of the current picture may be in sub block / CTU / CTB / patch level.

[0395] b. In one example, the usage of j-th sub-region of the i-th slice of the current picture may be indicated by nnpfa_ctu_enabling_flag [j] .

[0396] 2. In one example, nnpfa_slice_enabling_flag [i] equal to 1 indicates that the post-processing filter is used for the i-th slice of the current picture.

[0397] 3. In one example, nnpfa_slice_enabling_flag [i] equal to 0 indicates that the post-processing filter is not used for the i-th slice of the current picture.

[0398] v. In one example, usage of NNPF at the slice level may be indicated by nnpfa_slice_index [i] .

[0399] 1. In one example, nnpfa_slice_index [i] equal to 0 indicates that neural-network post-filtering is not used for the i-th slice of the current picture.

[0400] 2. In one example, nnpfa_slice_index [i] greater than 0 indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] is used for the i-th slice of the current picture.

[0401] a. In one example, nnpfa_slice_index [i] should be smaller than nnpfa_num_minus1 + 2.

[0402] 3. In one example, nnpfa_slice_index [i] equal to nnpfa_num_minus1 + 2 indicates that the post-processing filter may be used for sub-region of the i-th slice of the current picture.

[0403] a. In one example, sub-region of the i-th slice of the current picture may be in sub block / CTU / CTB / patch level.

[0404] b. In one example, the usage of j-th sub-region of the i-th slice of the current picture may be indicated by nnpfa_ctu_index [j] .

[0405] 4. In one example, the value of nnpfa_slice_index [i] shall be in the range of 0 to nnpfa_num_minus1 + 1, inclusive.

[0406] 5. In one example, the value of nnpfa_slice_index [i] shall be in the range of 0 to nnpfa_num_minus1 + 2, inclusive.

[0407] g. One or more syntax elements indicating usage of NNPF at the sub block / CTU / CTB / patch level may be added into NNPFA SEI message.

[0408] i. In one example, syntax element at sub block / CTU / CTB / patch level may depend on the syntax element at higher level (e.g., picture / slice / sequence level) .

[0409] ii. In one example, syntax element may indicate that NNPF is applied or not at block / CTU / CTB / patch level.

[0410] iii. In one example, syntax element may indicate that index of NNPF which is applied at block / CTU / CTB / patch level.

[0411] iv. In one example, syntax element may indicate that NNPF is applied at sub block / CTU / CTB / patch level or a lower level.

[0412] v. In one example, syntax element at sub block / CTU / CTB / patch level may be NOT signaled.

[0413] vi. In one example, usage of NNPF at the CTU level may be indicated by nnpfa_ctu_enabling_flag [i] .

[0414] 1. In one example, nnpfa_ctu_enabling_flag [i] equal to 1 indicates that the post-processing filter is used for the i-th CTU of the current picture.

[0415] 2. In one example, nnpfa_ctu_enabling_flag [i] equal to 0 indicates that the post-processing filter is not used for the i-th CTU of the current picture.

[0416] vii. In one example, usage of NNPF at the CTU level may be indicated by nnpfa_ctu_index [i] .

[0417] 1. In one example, nnpfa_ctu_index [i] equal to 0 indicates that neural-network post-filtering is not used for the i-th CTU of the current picture.

[0418] 2. In one example, nnpfa_ctu_index [i] greater than 0 indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_ctu_index [i] -1] is used for the i-th CTU of the current picture.

[0419] 3. In one example, the value of nnpfa_ctu_index [i] shall be in the range of 0 to nnpfa_num_minus1 + 1, inclusive.

[0420] h. One or more syntax elements indicating usage of NNPF at the ROI level may be added into NNPFA SEI message.

[0421] i. In one example, syntax element at ROI level may depend on the syntax element at higher level.

[0422] ii. In one example, syntax element may indicate that NNPF is applied at ROI level or a lower level.

[0423] iii. In one example, syntax element at ROI level may be NOT signaled.

[0424] i. One or more syntax elements indicating usage of NNPF at the new region level may be added into NNPFA SEI message.

[0425] i. In one example, syntax element at new region level may depend on the syntax element at higher level (e.g., picture / slice / sequence level) .

[0426] ii. In one example, syntax element may indicate that NNPF is applied or not at new region level.

[0427] iii. In one example, syntax element may indicate that index of NNPF which is applied at new region level.

[0428] iv. In one example, syntax element may indicate that NNPF is applied at new region level or a lower level.

[0429] v. In one example, syntax element at new region level may be NOT signaled.

[0430] vi. In one example, usage of NNPF at the new region level may be indicated by nnpfa_region_enabling_flag [i] .

[0431] 1. In one example, nnpfa_region_enabling_flag [i] equal to 1 indicates that the post-processing filter is used for the i-th new region of the current picture.

[0432] 2. In one example, nnpfa_region_enabling_flag [i] equal to 0 indicates that the post-processing filter is not used for the i-th new region of the current picture.

[0433] vii. In one example, usage of NNPF at the new region level may be indicated by nnpfa_region_index [i] .

[0434] 1. In one example, nnpfa_region_index [i] equal to 0 indicates that neural-network post-filtering is not used for the i-th new region of the current picture.

[0435] 2. In one example, nnpfa_region_index [i] greater than 0 indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_region_index [i] -1] is used for the i-th new region of the current picture.

[0436] 3. In one example, the value of nnpfa_region_index [i] shall be in the range of 0 to nnpfa_num_minus1 + 1, inclusive.

[0437] viii. In one example, additional information such dimension and / or position as of new region may be indicated by adding syntax element into NNPF SEI message.

[0438] 1. In one example, horizontal samples or width of i-th new region may be indicated by nnpfa_region_width [i] .

[0439] 2. In one example, vertical samples or height of i-th new region may be indicated by nnpfa_region_height [i] .

[0440] 3. In one example, starting point in horizontal or x direction of i-th new region may be indicated by nnpfa_region_x0 [i] .

[0441] 4. In one example, starting point in vertical or y direction of i-th new region may be indicated by nnpfa_region_y0 [i] .

[0442] 5. In one example, ending point in horizontal or x direction of i-th new region may be indicated by nnpfa_region_x1 [i] .

[0443] 6. In one example, ending point in vertical or y direction of i-th new region may be indicated by nnpfa_region_y1 [i] .

[0444] 7. In one example, whether the dimension is same for all new regions may be indicated by nnpfa_region_dim_flag.

[0445] a. In one example, nnpfa_region_dim_flag equal to 0 indicated that width and height may be same for all new regions.

[0446] b. In one example, nnpfa_region_dim_flag equal to 1 indicated that width and height may be different for all new regions.

[0447] 8. In one example, whether new regions are overlapped may be indicated by nnpfa_region_overlap_flag.

[0448] a. In one example, nnpfa_region_overlap_flag equal to 0 indicated that new regions are NOT overlapped.

[0449] b. In one example, nnpfa_region_overlap_flag equal to 1 indicated that there are some common samples or areas for new regions.

[0450] j. In one example, the syntax element in NNPFA SEI message may be used for the same video unit / region until meeting a new sequence / SEI.

[0451] k. In one example, the syntax element in NNPFA SEI message may be used for the nearest video unit / region.

[0452] 7) One or more syntax elements indicating improvement / promotion of NNPF may be added into NNPFA and / or NNPFC SEI message.

[0453] a. One or more syntax elements indicating performance indicator (or purpose) of NNPF may be added into NNPFA and / or NNPFC SEI message.

[0454] i. In one example, purpose may be improving subjective / objective quality.

[0455] b. One or more syntax elements indicating performance level of NNPF may be added into NNPFA and / or NNPFC SEI message.

[0456] i. In one example, performance level may be normalized value.

[0457] ii. In one example, performance level may be different or same for different performance indicator (purpose) .

[0458] c. One or more syntax elements indicating complexity level of NNPF may be added into NNPFA and / or NNPFC SEI message.

[0459] i. In one example, complexity level may be normalized value.

[0460] 8) It is proposed that the multiple NNPF and / or characteristics of NNPF may be indicated by adding one or multiple groups of syntax elements into NNPFC SEI message.

[0461] a. In one example, one or more syntax elements indicating the number of NNPF may be added into NNPFC SEI message.

[0462] i. In one example, the syntax element may be expressed as nnpfc_num_minus1.

[0463] 1. In one example, the number of NNPF may be equal to nnpfc_num_minus1 + 1.

[0464] 2. In one example, the value of nnpfc_num_minus1 shall be in the range of 0 to 2k -1, inclusive.

[0465] a. In one example, k may be integer, such as 0, 1, 2, 3, 4, 5, 6, 7, …, 32.

[0466] ii. In one example, the number of NNPF may be ue (v) -coded.

[0467] iii. In one example, the number of NNPF may be smaller than the max value of nnpfc_id plus one.

[0468] b. In one example, the number of NNPF may be not signaled into NNPFC SEI message.

[0469] i. In one example, the number of NNPF may be set as default value.

[0470] ii. In one example, the number of NNPF may be 1, 2, 3, 4, 5.

[0471] c. In one example, the number of multiple groups of syntax elements indicating characteristics of NNPF may depend on the number of multiple sets of NNPF.

[0472] i. In one example, the number of groups of syntax elements indicating characteristics of NNPF may equal to the number of NNPF.

[0473] d. In one example, multiple groups of syntax elements indicating characteristics of NNPF may be signaled for each / all / different NNPF.

[0474] i. In one example, every NNPF may have one group of syntax elements indicating characteristics of NNPF.

[0475] ii. In one example, multiple groups of syntax elements may be signaled following a certain order.

[0476] 1. In one example, the group of syntax elements may be signaled one by one.

[0477] iii. In one example, ith group of syntax elements indicating characteristics of NNPF may be used for ith NNPF.

[0478] 1. In one example, 1st group of syntax elements indicating characteristics of NNPF may be used for 1st NNPF.

[0479] 2. In one example, 2nd group of syntax elements indicating characteristics of NNPF may be used for 2nd NNPF.

[0480] 3. In one example, 3rd group of syntax elements indicating characteristics of NNPF may be used for 3rd NNPF.

[0481] iv. In one example, the design of each group of syntax elements may be same.

[0482] 1. In one example, the number and / or items of each group of syntax elements may be same.

[0483] 2. In one example, nnpfc_id may be involved in every group of syntax elements.

[0484] 3. In one example, nnpfc_mode_idc may be involved in every group of syntax elements.

[0485] 9) To solve problem 3, one or more of the following syntax elements indicating information of quality improvements brought by NNPF may be signalled in the NNPFA SEI message.

[0486] a. In one example, an indication is signalled to indicate whether the quality improvements information is signalled.

[0487] i. In one example, when it is indicated that the quality improvements information is signalled, one or more of the following syntax elements indicating quality changes and quality metric types are signalled.

[0488] 1. In one example, these elements indicate the quality improvements of the whole video sequence.

[0489] 2. In one example, these elements indicate the quality improvements of one or more pictures.

[0490] 3. In one example, the quality metric type is signalled.

[0491] a. In one example, the quality metric type may be PSNR.

[0492] b. In one example, the quality metric type may be SSIM.

[0493] c. In one example, the quality metric type may be MS-SSIM.

[0494] d. In one example, the quality metric type may be VMAF.

[0495] 4. In one example, the quality change is signalled and indicated by the signalled quality metric type.

[0496] a. In one example, the quality change is the video quality difference between applying and not applying NNPF.

[0497] b. In one example, alternatively, the quality change is the video quality difference between not applying and applying NNPF.

[0498] 5. In one example, multiple quality metric types and quality changes are signalled for one NNPFA SEI message.

[0499] a. In one example, an indication is signalled to indicate the number of quality metric types.

[0500] i. In one example, multiple quality metric types and quality changes are signalled after this indication.

[0501] ii. In one example, when it is indicated that the quality improvements information is not signalled, no further syntax elements are signalled.

[0502] b. In one example the quality improvements information is always signalled in the NNPFA SEI message.

[0503] 6. Embodiments

[0504] Below are some example embodiments for the solution aspects summarized above in Section 5. Most relevant parts that have been added or modified are underlined, and some of the deleted parts are shown in There may be some other changes that are editorial in nature and thus not highlighted.

[0505] 6.1. Embodiment 1

[0506] 6.2. Embodiment 2

[0507] 6.3. Embodiment 3

[0508] 6.4. Embodiment 4

[0509] 6.5. Embodiment 5

[0510] 6.6. Embodiment 6

[0511] 6.7. Embodiment 7

[0512] 6.8. Embodiment 8

[0513] 6.9. Embodiment 9

[0514] 6.10. Embodiment 10

[0515] 6.11. Embodiment 11

[0516] This embodiment is for the solution items 9 and all the subitems summarized above in Section 5.

[0517] 6.12. Embodiment 12

[0518] This embodiment is for the solution items 9 and all their subitems summarized above in Section 5.

[0519] 6.13. Embodiment 13

[0520] This embodiment is for the solution items 9 and all their subitems summarized above in Section 5.

[0521] More details of the embodiments of the present disclosure will be described below which are related to neural-network post-processing filter (NNPF) . The embodiments of the present disclosure should be considered as examples to explain the general concepts and should not be interpreted in a narrow way. Furthermore, these embodiments can be applied individually or combined in any manner.

[0522] As used herein, the term “video unit” may represent a color component, a sub-picture, a picture, a slice, a tile, a coding tree unit (CTU) , a CTU row, groups of CTU, a coding unit (CU) , a prediction unit (PU) , a transform unit (TU) , a coding tree block (CTB) , a coding block (CB) , a prediction block (PB) , a transform block (TB) , a sub-block of a video block, a sub-region within a video block, a video processing unit comprising multiple samples / pixels, and / or the like. A video unit may be rectangular or non-rectangular. Moreover, the term “neural-network post-processing filter” and “neural-network post-filter” may be used interchangeably.

[0523] As used herein, a chroma component may comprise a Cb component and / or a Cr component. For example, the Cb component may represent a blue-difference chroma component and the Cr component may represent a red-difference chroma component. In another example, Cb and Cr components may be substituted by U and V components. It should be understood that the Cb component and / or the Cr component may represent any other suitable color component. The scope of the present disclosure is not limited in this respect.

[0524] Fig. 10 illustrates a flowchart of a method 1000 for video processing in accordance with some embodiments of the present disclosure. As shown in Fig. 10, at 1002, a conversion between a video and a bitstream of the video is performed. In some embodiments, the conversion may include encoding the video into the bitstream. Alternatively or additionally, the conversion may include decoding the video from the bitstream.

[0525] At least one neural-network post-processing filter (NNPF) is applied on at least  one video unit associated with the video. The bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream. By way of example rather than limitation, the first indication may be implemented as a syntax element in the bitstream.

[0526] In some embodiments, the at least one video unit may comprise at least one picture associated with the video. For example, the at least one picture may be used as an input for the NNPF. In some embodiments, the at least one picture may comprise at least one decoded picture of the video. Alternatively, the at least one picture may comprise at least one cropped decoded picture of the video. For example, the decoded picture and / or the cropped decoded picture may be outputted by a decoder that decodes the video from the bitstream. In some further embodiments, the at least one picture may comprise an output of a further NNPF used to filter one or more decoded pictures or cropped decoded pictures of the video. For example, the NNPF is concatenated with the further NNPF. It should be understood that the possible implementations of the at least one video unit associated with the video described here are merely illustrative and therefore should not be construed as limiting the present disclosure in any way.

[0527] In some embodiments, if the first indication indicates that the quality information is not present in the bitstream, at least one indication indicating the quality information may be not present in the bitstream. If the first indication indicates that the quality information is present in the bitstream, at least one indication indicating the quality information may be present in the bitstream. Alternatively, the at least one indication indicating the quality information may be present in the bitstream independently from the first indication. That is, regardless of the first indication, the quality information is always indicated in the bitstream.

[0528] In some embodiments, the quality information may comprise one or more metric types for measuring quality of the at least one video unit. For example, the one or more metric types may comprise peak signal-to-noise ratio (PSNR) , structural similarity (SSIM) , multi scale structural similarity (MS-SSIM) , video multi-method assessment fusion (VMAF) , and / or the like. Alternatively, one or more predetermined metric types may be used and not indicated in the bitstream.

[0529] Additionally or alternatively, the quality information may comprise one or more  quality changes of the at least one video unit that correspond to the one or more metric types. Each of the one or more quality changes is caused by the applying of the at least one NNPF and measured based on the corresponding metric type. In a case where the quality change indicates a quality improvement, this quality change may also be regard as a gain obtained by the applying of the at least one NNPF.

[0530] In one example embodiment, one of the one or more quality changes may be determined based on a difference between quality of the at least one video unit after the at least one NNPF being applied and quality of the at least one video unit without the at least one NNPF being applied. In another example embodiment, one of the one or more quality changes may be determined based on a difference between quality of the at least one video unit without the at least one NNPF being applied and quality of the at least one video unit after the at least one NNPF being applied.

[0531] In some additional or alternative embodiments, the quality information may comprise one or more quality values of the at least one video unit after the at least one NNPF being applied. The one or more quality values correspond to the one or more metric types, and each of the one or more quality values is measured based on the corresponding metric type. It should be understood that the quality information may comprise any other suitable information, and the scope of the present disclosure is not limited in this respect.

[0532] In view of the above, an indication indicating whether quality information of at least one video unit associated with the applying of the at least one NNPF is present in the bitstream. Compared with the conventional solution, the proposed method can advantageously enable the application of NNPF based on the quality information, and thus the coding quality can be improved.

[0533] In some embodiments, the at least one video unit may comprise a whole video sequence of the video. In this case, the at least one indication indicates the quality information of the whole video sequence. In some further embodiments, the at least one video unit may comprise a single picture of the video. In this case, the at least one indication indicates the quality information of the single picture. Alternatively, the at least one video unit may comprise a plurality of pictures of the video. In this case, the at least one indication indicates the quality information of the plurality of pictures. It should be understood that the at least one video may also be a portion of picture, and the scope of the present disclosure is not limited in this respect.

[0534] In some embodiments, the one or more metric types may comprise a plurality of metric types, and the one or more quality changes may also comprise a plurality of quality changes. In addition, the bitstream may comprise a second indication indicating the number of the plurality of metric types. Moreover, the at least one indication indicating the quality information may follow the second indication in the bitstream. In other words, the at least one indication is signaled after the second indication.

[0535] In some embodiments, one of more of the above-mentioned indications (e.g., the first indication, the second indication, and / or the at least one indication) may be comprised in a video message unit in the bitstream. By way of example, the video message unit may be a supplemental enhancement information (SEI) message, such as a neural-network post-filter activation (NNPFA) SEI message, or the like. It should be understood that the above-mentioned indication (s) may be comprised in any other suitable video message unit, and the scope of the present disclosure is not limited in this respect.

[0536] In view of the above, the solutions in accordance with some embodiments of the present disclosure can advantageously improve coding efficiency of the quality information.

[0537] In some embodiments, the bitstream may further comprise at least one first syntax element indicating a type of the at least one video unit. One of candidates for the type may be a first region type, which may be a new region type different from the existing region types in VVC standard, such as a picture, a slice, a coding tree unit, and the like. For example, the at least one first syntax element may be implemented as a syntax element nnpfa_region_type.

[0538] It should be understood that the name for an indication and / or a syntax element is used only for illustration rather than limitation, the indications and the syntax elements mentioned throughout the present disclosure may be represented by any other suitable string different from the example in this disclosure. The scope of the present disclosure is not limited in this respect.

[0539] In some embodiments, if the type of the at least one video unit is the first region type, the at least one video unit may comprise one or more regions. For example, a region in the one or more regions may be represented by information comprising a dimension of the region, a position of the region, and / or a coordinate of the region. By way of example rather than limitation, the dimension of the region may comprise a width of the region  and / or a height of the region. Additionally or alternatively, the dimension of the region may comprise horizontal samples of the region and / or vertical samples of the region. A position of the region may comprise a coordinate of a start point of the region and / or a coordinate of an end point of the region. In some embodiments, all of the one or more regions may have a same dimension. In this case, the same dimension may be indicated in the bitstream. Alternatively, the one or more regions may have different dimensions. In this case, a dimension for each of the one or more regions may be indicated in the bitstream.

[0540] In some embodiments, a region in the one or more regions may be overlapped with a further region. Alternatively, a region in the one or more regions may be not overlapped with a further region.

[0541] In some embodiments, if the at least one first syntax element is equal to a first value (such as 3 or the like) , no NNPF may be applied for a current picture and / or a slice of the current picture and / or a CTU of the current picture, or an NNPF applied for the current picture may be indicated. If the at least one first syntax element is equal to a second value (such as 4 or the like) , no NNPF may be applied for a sub-region of the current picture, or an NNPF applied for the current picture may be indicated.

[0542] In some embodiments, a value of the at least one first syntax element may be in a first predetermined range, and values of the at least one first syntax element greater than a third value may be reserved and absent from the bitstream. Additionally, an NNPFA SEI message with the at least one first syntax element greater than the third value may be ignored. By way of example rather than limitation, the first predetermined range may be from 0 to 31, the third value may be one of 2, 3, or 4. It should be understood that the specific values recited herein are intended to be exemplary rather than limiting the scope of the present disclosure.

[0543] In some embodiments, a syntax element nnpfa_picture_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level. For example, only one NNPF may be indicated by a syntax element nnpfa_id in the NNPFA SEI message. In some further embodiments, a syntax element nnpfa_picture_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level. For example, one or more NNPFs may be indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0544] In some embodiments, a syntax element nnpfa_slice_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and only one NNPF may be indicated by a syntax element nnpfa_id in the NNPFA SEI message. In some further embodiments, a syntax element nnpfa_slice_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and one or more NNPFs may be indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0545] In some embodiments, a syntax element nnpfa_ctu_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a coding tree unit (CTU) level, and only one NNPF may be indicated by a syntax element nnpfa_id in the NNPFA SEI message. In some embodiments, a syntax element nnpfa_ctu_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a CTU level, and one or more NNPFs may be indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0546] In some embodiments, if the type of the at least one video unit is the first region type, an NNPFA SEI message in the bitstream may comprise a syntax element indicating activation of the at least one NNPF at a region level. By way of example rather than limitation, a syntax element nnpfa_region_enabling_flag [i] in the NNPFA SEI message indicates a usage of NNPF at the region level. For example, only one NNPF may be indicated by a syntax element nnpfa_id in the NNPFA SEI message. Alternatively, a syntax element nnpfa_region_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at the region level. For example, one or more NNPFs may be indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0547] In some embodiments, if the at least one first syntax element is equal to a fourth value, a syntax element nnpfa_picture_index [i] and / or a syntax element nnpfa_picture_enabling_flag [i] may be indicated in the bitstream. If the at least one first syntax element is equal to a fifth value, a syntax element nnpfa_slice_index [i] and / or a syntax element nnpfa_slice_enabling_flag [i] may be indicated in the bitstream. If the at least one first syntax element is equal to a sixth value, a syntax element nnpfa_ctu_index [i] and / or a syntax element nnpfa_ctu_enabling_flag [i] may be indicated in the bitstream. If the at least one first syntax element is equal to a seventh value, a syntax element nnpfa_region_index [i] may be indicated in the bitstream. By way of example rather than limitation, the fourth value may be 0 or 3, or the fifth value may be 1 or 3, or the sixth value may be 2 or 3, or the seventh value may be 4.

[0548] In some embodiments, a syntax element indicating whether NNPF is used in current region may be required to be smaller than an eighth value, the eight value may be determined based on the number of NNPFs. For example, the syntax element should be smaller than nnpfa_num_minus1+2, where the syntax element nnpfa_num_minus1 is equal to the number of NNPFs minus one.

[0549] In some embodiments, a syntax element indicating whether NNPF is used in a subregion of the current region equal to the eighth value indicates that the NNPF is used in the subregion. By way of example rather than limitation, the syntax element may be nnpfa_slice_index [i] or nnpfa_ctu_index [i] .

[0550] In some embodiments, the bitstream may comprise a syntax element nnpfa_picture_enabling_flag indicating whether NNPF is used at a picture level. For example, the syntax element nnpfa_picture_enabling_flag equal to a first value indicates that the NNPF may be used for a subregion of a current picture. By way of example, the subregion may be in slice level, sub block level, CTU level, coding tree block (CTB) level, or patch level. In some embodiments, i may be an integer, and a usage of the i-th subregion of the current picture may be indicated by a syntax element nnpfa_slice_enabling_flag [i] , a syntax element nnpfa_ctu_enabling_flag [i] , or a syntax element nnpfa_region_enabling_flag [i] .

[0551] The syntax element nnpfa_picture_enabling_flag equal to a second value indicates that the NNPF may be used for the current picture. The syntax element nnpfa_picture_enabling_flag equal to a third value indicates that the NNPF may be not used for the current picture. By way of example rather than limitation, the first value may be 2, the second value may be 1, or the third value may be 0.

[0552] In some embodiments, the bitstream may comprise a syntax element nnpfa_picture_index indicating whether NNPF is used at a picture level. For example, the syntax element nnpfa_picture_index equal to a first value (such as 0 or the like) indicates that the NNPF may be not used for a current picture. The syntax element nnpfa_picture_index larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] may be used for the current picture. Alternatively, the syntax element nnpfa_picture_index larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] may be used for the current picture. The second  value may be determined based on the number of NNPFs, such as nnpfa_num_minus1 +2 or the like. The syntax element nnpfa_picture_index equal to the second value indicates that the NNPF may be allowed to be used for a sub-region of the current picture.

[0553] In some embodiments, the subregion may be in slice level, sub block level, CTU level, CTB level, patch level, or the like. A usage of the i-th subregion of the current picture may be indicated by a syntax element nnpfa_slice_index [i] , a syntax element nnpfa_ctu_index [i] , or a syntax element nnpfa_region_index [i] .

[0554] In some embodiments, a value of the syntax element nnpfa_picture_index may be in a range determined based on the number of NNPFs. In one example, a value of the syntax element nnpfa_picture_index may be in the range of 0 to nnpfa_num_minus1 + 1, inclusive. In another example, a value of the syntax element nnpfa_picture_index may be in the range of 0 to nnpfa_num_minus1 + 2, inclusive.

[0555] In some embodiments, a syntax element nnpfa_slice_enabling_flag [i] in the bitstream equal to a first value indicates that NNPF may be used for a sub-region of the i-th slice of a current picture, and i may be an integer. For example, the subregion may be in sub block level, CTU level, CTB level, or patch level. The bitstream may comprise a syntax element nnpfa_ctu_enabling_flag [j] indicating a usage of the j-th sub-region of the i-th slice of the current picture, and j may be an integer.

[0556] In some embodiments, the bitstream may comprise a syntax element nnpfa_slice_index [i] indicating whether NNPF is used at a slice level. For example, the syntax element nnpfa_slice_index [i] equal to a first value (such as 0 or the like) indicates that the NNPF may be not used for the i-th slice of a current picture. The syntax element nnpfa_slice_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] may be used for the i-th slice of the current picture. Alternatively, the syntax element nnpfa_slice_index [i] larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] may be used for the i-th slice of the current picture. The second value may be determined based on the number of NNPFs, such as nnpfa_num_minus1 + 2 or the like. The syntax element nnpfa_slice_index [i] equal to the second value indicates that the NNPF may be allowed to be used for a sub-region of the i-th slice of the current picture.

[0557] In some embodiments, the subregion may be in sub block level, CTU level, CTB  level, or patch level. A usage of the j-th sub-region of the i-th slice of the current picture may be indicated by a syntax element nnpfa_ctu_index [j] , and j may be an integer. In some embodiments, a value of the syntax element nnpfa_slice_index [i] may be in a range determined based on the number of NNPFs, such as a range of 0 to nnpfa_num_minus1 +2, inclusive.

[0558] In some embodiments, an NNPFA SEI message in the bitstream may comprise at least one syntax element indicating whether NNPF is used at a first region level corresponding to the first region type. In one example, a syntax element at the first region level may be dependent on a syntax element at a level higher than the first region level, such as a picture level, a slice level or the sequence level. In another example, a syntax element in the bitstream indicates whether NNPF is applied at the first region level.

[0559] In a further example, a syntax element in the bitstream indicates an index of an NNPF applied at the first region level. In a still further example, a syntax element in the bitstream indicates whether NNPF is applied at the first region level or a level lower than the first region level. In a still further example, a syntax element at a first region level corresponding to the first region type may be not indicated in the bitstream.

[0560] In some embodiments, the bitstream may comprise a syntax element nnpfa_region_enabling_flag [i] indicating a usage of NNPF at the first region level. For example, the syntax element nnpfa_region_enabling_flag [i] equal to a first value (such as 1 or the like) indicates that the NNPF may be used for the i-th region of a current picture, where i may be an integer. The syntax element nnpfa_region_enabling_flag [i] equal to a second value (such as 0 or the like) indicates that the NNPF may be not used for the i-th region of the current picture.

[0561] In some embodiments, the bitstream may comprise a syntax element nnpfa_region_index [i] indicating a usage of NNPF at the first region level. For example, the syntax element nnpfa_region_index [i] equal to a first value (such as 0 or the like) indicates that the NNPF may be not used for the i-th region of a current picture, where i may be an integer. The syntax element nnpfa_region_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_region_index [i] -1] may be used for the i-th region of a current picture. In some embodiments, a value of the syntax element nnpfa_region_index [i] may be in a range determined based on the number of NNPFs, such as the range of 0 to nnpfa_num_minus1 + 1, inclusive.

[0562] In some embodiments, the NNPFA SEI message may further comprise one or more syntax elements indicating dimension information and / or position information of at least one region at the first region level. In one example, the one or more syntax elements may comprise a second syntax element indicating horizontal samples or a width of the i-th region of the at least one region, where i may be an integer. By way of example rather than limitation, the second syntax element may be represented as nnpfa_region_width [i] . Additionally or alternatively, the one or more syntax elements may comprise a third syntax element indicating vertical samples or a height of the i-th region of the at least one region, and i may be an integer. By way of example rather than limitation, the third syntax element may be represented as nnpfa_region_height [i] .

[0563] In a further example, the one or more syntax elements may comprise a fourth syntax element indicating a horizontal coordinate of a starting point of the i-th region of the at least one region, and i may be an integer. By way of example rather than limitation, the fourth syntax element may be represented as nnpfa_region_x0 [i] . Additionally or alternatively, the one or more syntax elements may comprise a fifth syntax element indicating a vertical coordinate of a starting point of the i-th region of the at least one region, and i may be an integer. By way of example rather than limitation, the fifth syntax element may be represented as nnpfa_region_y0 [i] .

[0564] In some embodiments, the one or more syntax elements may comprise a sixth syntax element indicating a horizontal coordinate of an ending point of the i-th region of the at least one region, and i may be an integer. By way of example rather than limitation, the sixth syntax element may be represented as nnpfa_region_x1 [i] . Additionally or alternatively, the one or more syntax elements may comprise a seventh syntax element indicating a vertical coordinate of an ending point of the i-th region of the at least one region, and i may be an integer. By way of example rather than limitation, the seventh syntax element may be represented as nnpfa_region_y1 [i] .

[0565] In some embodiments, the one or more syntax elements may comprise an eighth syntax element indicating whether all of the at least one region have a same dimension. By way of example rather than limitation, the eighth syntax element may be represented as nnpfa_region_dim_flag. For example, the eighth syntax element equal to a first value (such as 0 or the like) indicates that all of the at least one region have a same dimension. The eighth syntax element equal to a second value (such as 1 or the like) indicates that the at least one region have different dimensions.

[0566] In some embodiments, the one or more syntax elements may comprise a ninth syntax element indicating whether all of the at least one region may be overlapped. By way of example rather than limitation, the ninth syntax element may be represented as nnpfa_region_overlap_flag. For example, the ninth syntax element equal to a first value (such as 0 or the like) indicates that all of the at least one region may be overlapped. The ninth syntax element equal to a second value (such as 1 or the like) indicates that the at least one region may be overlapped.

[0567] According to further embodiments of the present disclosure, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video which is generated by a method performed by an apparatus for video processing. In the method, a conversion between the video and the bitstream is performed. At least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.

[0568] According to still further embodiments of the present disclosure, a method for storing bitstream of a video is provided. In the method, a conversion between the video and the bitstream is performed. At least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream. Moreover, the bitstream is stored in a non-transitory computer-readable recording medium.

[0569] Implementations of the present disclosure can be described in view of the following clauses, the features of which can be combined in any reasonable manner.

[0570] Clause 1. A method for video processing, comprising: performing a conversion between a video and a bitstream of the video, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.

[0571] Clause 2. The method of clause 1, wherein the quality information comprises at least one of the following: one or more metric types for measuring quality of the at least  one video unit, one or more quality changes of the at least one video unit that correspond to the one or more metric types, each of the one or more quality changes being caused by the applying of the at least one NNPF and measured based on the corresponding metric type, or one or more quality values of the at least one video unit after the at least one NNPF being applied, the one or more quality values corresponding to the one or more metric types, and each of the one or more quality values being measured based on the corresponding metric type.

[0572] Clause 3. The method of any of clauses 1-2, wherein the first indication indicates that the quality information is present in the bitstream, and at least one indication indicating the quality information is present in the bitstream.

[0573] Clause 4. The method of any of clauses 1-3, wherein the at least one video unit comprises one of the following: a whole video sequence of the video, a single picture of the video, or a plurality of pictures of the video.

[0574] Clause 5. The method of any of clauses 2-4, wherein the one or more metric types comprise at least one of the following: peak signal-to-noise ratio (PSNR) , structural similarity (SSIM) , multi scale structural similarity (MS-SSIM) , or video multi-method assessment fusion (VMAF) .

[0575] Clause 6. The method of any of clauses 2-4, wherein one of the one or more quality changes is determined based on one of the following: a difference between quality of the at least one video unit after the at least one NNPF being applied and quality of the at least one video unit without the at least one NNPF being applied, or a difference between quality of the at least one video unit without the at least one NNPF being applied and quality of the at least one video unit after the at least one NNPF being applied.

[0576] Clause 7. The method of any of clauses 2-6, wherein the one or more metric types comprise a plurality of metric types, and the one or more quality changes comprise a plurality of quality changes.

[0577] Clause 8. The method of clause 7, wherein the bitstream comprises a second indication indicating the number of the plurality of metric types.

[0578] Clause 9. The method of clause 8, wherein at least one indication indicating the quality information follows the second indication in the bitstream.

[0579] Clause 10. The method of any of clauses 1-2, wherein the first indication  indicates that the quality information is not present in the bitstream, and at least one indication indicating the quality information is not present in the bitstream.

[0580] Clause 11. The method of any of clauses 1-9, wherein at least one indication indicating the quality information is present in the bitstream independently from the first indication.

[0581] Clause 12. The method of any of clauses 2-11, wherein the at least one indication is comprised in a video message unit in the bitstream.

[0582] Clause 13. The method of clause 12, wherein the video message unit is a supplemental enhancement information (SEI) message.

[0583] Clause 14. The method of clause 13, wherein the SEI message is a neural-network post-filter activation (NNPFA) SEI message.

[0584] Clause 15. The method of any of clauses 1-14, wherein the bitstream further comprises at least one first syntax element indicating a type of the at least one video unit, and one of candidates for the type is a first region type different from a picture, a slice and a coding tree unit.

[0585] Clause 16. The method of clause 15, wherein if the type of the at least one video unit is the first region type, the at least one video unit comprises one or more regions.

[0586] Clause 17. The method of clause 16, wherein a region in the one or more regions is represented by information comprising at least one of the following: a dimension of the region, a position of the region, or a coordinate of the region.

[0587] Clause 18. The method of clause 17, wherein the dimension of the region comprises at least one of a width of the region or a height of the region, or a position of the region comprises at least one of a coordinate of a start point of the region or a coordinate of an end point of the region.

[0588] Clause 19. The method of any of clauses 16-18, wherein a region in the one or more regions is overlapped with a further region, or a region in the one or more regions is not overlapped with a further region.

[0589] Clause 20. The method of any of clauses 16-20, wherein all of the one or more regions have a same dimension.

[0590] Clause 21. The method of clause 20, wherein the same dimension is indicated in  the bitstream.

[0591] Clause 22. The method of any of clauses 16-20, wherein the one or more regions have different dimensions.

[0592] Clause 23. The method of clause 22, wherein a dimension for each of the one or more regions is indicated in the bitstream.

[0593] Clause 24. The method of any of clauses 15-23, wherein if the at least one first syntax element is equal to a first value, no NNPF is applied for a current picture and / or a slice of the current picture and / or a CTU of the current picture, or an NNPF applied for the current picture is indicated, or if the at least one first syntax element is equal to a second value, no NNPF is applied for a sub-region of the current picture, or an NNPF applied for the current picture is indicated.

[0594] Clause 25. The method of clause 24, wherein the first value is 3, or the second value is 4.

[0595] Clause 26. The method of any of clauses 15-25, wherein a value of the at least one first syntax element is in a first predetermined range, and values of the at least one first syntax element greater than a third value are reserved and absent from the bitstream.

[0596] Clause 27. The method of clause 26, wherein an NNPFA SEI message with the at least one first syntax element greater than the third value is ignored.

[0597] Clause 28. The method of any of clauses 26-27, wherein the first predetermined range is from 0 to 31, or the third value is one of 2, 3, or 4.

[0598] Clause 29. The method of any of clauses 1-28, wherein a syntax element nnpfa_picture_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level.

[0599] Clause 30. The method of clause 29, wherein only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.

[0600] Clause 31. The method of any of clauses 1-28, wherein a syntax element nnpfa_picture_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level.

[0601] Clause 32. The method of clause 31, wherein one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0602] Clause 33. The method of any of clauses 1-32, wherein a syntax element nnpfa_slice_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.

[0603] Clause 34. The method of any of clauses 1-23, wherein a syntax element nnpfa_slice_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0604] Clause 35. The method of any of clauses 1-34, wherein a syntax element nnpfa_ctu_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a coding tree unit (CTU) level, and only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.

[0605] Clause 36. The method of any of clauses 1-35, wherein a syntax element nnpfa_ctu_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a CTU level, and one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0606] Clause 37. The method of any of clauses 15-36, wherein if the type of the at least one video unit is the first region type, an NNPFA SEI message in the bitstream comprises a syntax element indicating activation of the at least one NNPF at a region level.

[0607] Clause 38. The method of clause 37, wherein a syntax element nnpfa_region_enabling_flag [i] in the NNPFA SEI message indicates a usage of NNPF at the region level.

[0608] Clause 39. The method of clause 38, wherein only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.

[0609] Clause 40. The method of clause 37, wherein a syntax element nnpfa_region_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at the region level.

[0610] Clause 41. The method of clause 40, wherein one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.

[0611] Clause 42. The method of any of clauses 15-41, wherein if the at least one first  syntax element is equal to a fourth value, at least one of a syntax element nnpfa_picture_index [i] or a syntax element nnpfa_picture_enabling_flag [i] is indicated in the bitstream, or if the at least one first syntax element is equal to a fifth value, at least one of a syntax element nnpfa_slice_index [i] or a syntax element nnpfa_slice_enabling_flag [i] is indicated in the bitstream, or if the at least one first syntax element is equal to a sixth value, at least one of a syntax element nnpfa_ctu_index [i] or a syntax element nnpfa_ctu_enabling_flag [i] is indicated in the bitstream, or if the at least one first syntax element is equal to a seventh value, a syntax element nnpfa_region_index [i] is indicated in the bitstream.

[0612] Clause 43. The method of clause 42, wherein the fourth value is 0 or 3, or the fifth value is 1 or 3, or the sixth value is 2 or 3, or the seventh value is 4.

[0613] Clause 44. The method of any of clauses 1-43, wherein a syntax element indicating whether NNPF is used in current region is required to be smaller than an eighth value, the eight value being determined based on the number of NNPFs.

[0614] Clause 45. The method of clause 44, wherein a syntax element indicating whether NNPF is used in a subregion of the current region equal to the eighth value indicates that the NNPF is used in the subregion.

[0615] Clause 46. The method of clause 45, wherein the syntax element is nnpfa_slice_index [i] or nnpfa_ctu_index [i] .

[0616] Clause 47. The method of any of clauses 1-46, wherein the bitstream comprises a syntax element nnpfa_picture_enabling_flag indicating whether NNPF is used at a picture level.

[0617] Clause 48. The method of clause 47, wherein the syntax element nnpfa_picture_enabling_flag equal to a first value indicates that the NNPF is used for a subregion of a current picture, or the syntax element nnpfa_picture_enabling_flag equal to a second value indicates that the NNPF is used for the current picture, or the syntax element nnpfa_picture_enabling_flag equal to a third value indicates that the NNPF is not used for the current picture.

[0618] Clause 49. The method of clause 48, wherein the subregion is in slice level, sub block level, CTU level, coding tree block (CTB) level, or patch level.

[0619] Clause 50. The method of any of clauses 48-49, wherein i is an integer, and a  usage of the i-th subregion of the current picture is indicated by one of the following: a syntax element nnpfa_slice_enabling_flag [i] , a syntax element nnpfa_ctu_enabling_flag [i] , or a syntax element nnpfa_region_enabling_flag [i] .

[0620] Clause 51. The method of any of clauses 48-50, wherein the first value is 2, the second value is 1, or the third value is 0.

[0621] Clause 52. The method of any of clauses 1-46, wherein the bitstream comprises a syntax element nnpfa_picture_index indicating whether NNPF is used at a picture level.

[0622] Clause 53. The method of clause 52, wherein the syntax element nnpfa_picture_index equal to a first value indicates that the NNPF is not used for a current picture, or the syntax element nnpfa_picture_index larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] is used for the current picture, or the syntax element nnpfa_picture_index larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] is used for the current picture, the second value being determined based on the number of NNPFs, or the syntax element nnpfa_picture_index equal to the second value indicates that the NNPF is allowed to be used for a sub-region of the current picture.

[0623] Clause 54. The method of clause 53, wherein the first value is 0.

[0624] Clause 55. The method of any of clauses 53-54, wherein the subregion is in slice level, sub block level, CTU level, CTB level, or patch level.

[0625] Clause 56. The method of any of clauses 53-55, wherein a usage of the i-th subregion of the current picture is indicated by one of the following: a syntax element nnpfa_slice_index [i] , a syntax element nnpfa_ctu_index [i] , or a syntax element nnpfa_region_index [i] .

[0626] Clause 57. The method of any of clauses 52-56, wherein a value of the syntax element nnpfa_picture_index is in a range determined based on the number of NNPFs.

[0627] Clause 58. The method of any of clauses 1-46, wherein a syntax element nnpfa_slice_enabling_flag [i] in the bitstream equal to a first value indicates that NNPF is used for a sub-region of the i-th slice of a current picture, and i is an integer.

[0628] Clause 59. The method of clause 58, wherein the subregion is in sub block level,  CTU level, CTB level, or patch level.

[0629] Clause 60. The method of any of clauses 58-59, wherein the bitstream comprises a syntax element nnpfa_ctu_enabling_flag [j] indicating a usage of the j-th sub-region of the i-th slice of the current picture, and j is an integer.

[0630] Clause 61. The method of any of clauses 1-46, wherein the bitstream comprises a syntax element nnpfa_slice_index [i] indicating whether NNPF is used at a slice level.

[0631] Clause 62. The method of clause 61, wherein the syntax element nnpfa_slice_index [i] equal to a first value indicates that the NNPF is not used for the i-th slice of a current picture, or the syntax element nnpfa_slice_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] is used for the i-th slice of the current picture, or the syntax element nnpfa_slice_index [i] larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] is used for the i-th slice of the current picture, the second value being determined based on the number of NNPFs, or the syntax element nnpfa_slice_index [i] equal to the second value indicates that the NNPF is allowed to be used for a sub-region of the i-th slice of the current picture.

[0632] Clause 63. The method of clause 62, wherein the first value is 0.

[0633] Clause 64. The method of any of clauses 62-63, wherein the subregion is in sub block level, CTU level, CTB level, or patch level.

[0634] Clause 65. The method of any of clauses 62-64, wherein a usage of the j-th sub-region of the i-th slice of the current picture is indicated by a syntax element nnpfa_ctu_index [j] , and j is an integer.

[0635] Clause 66. The method of any of clauses 61-65, wherein a value of the syntax element nnpfa_slice_index [i] is in a range determined based on the number of NNPFs.

[0636] Clause 67. The method of any of clauses 15-66, wherein an NNPFA SEI message in the bitstream comprises at least one syntax element indicating whether NNPF is used at a first region level corresponding to the first region type.

[0637] Clause 68. The method of clause 67, wherein a syntax element at the first region level is dependent on a syntax element at a level higher than the first region level.

[0638] Clause 69. The method of any of clauses 67-68, wherein a syntax element in the bitstream indicates whether NNPF is applied at the first region level.

[0639] Clause 70. The method of any of clauses 67-69, wherein a syntax element in the bitstream indicates an index of an NNPF applied at the first region level.

[0640] Clause 71. The method of any of clauses 67-70, wherein a syntax element in the bitstream indicates whether NNPF is applied at the first region level or a level lower than the first region level.

[0641] Clause 72. The method of any of clauses 15-66, wherein a syntax element at a first region level corresponding to the first region type is not indicated in the bitstream.

[0642] Clause 73. The method of any of clauses 67-71, wherein the bitstream comprises a syntax element nnpfa_region_enabling_flag [i] indicating a usage of NNPF at the first region level.

[0643] Clause 74. The method of clause 73, wherein the syntax element nnpfa_region_enabling_flag [i] equal to a first value indicates that the NNPF is used for the i-th region of a current picture, i being an integer, or the syntax element nnpfa_region_enabling_flag [i] equal to a second value indicates that the NNPF is not used for the i-th region of the current picture, i being an integer.

[0644] Clause 75. The method of clause 74, wherein the first value is 1, and the second value is 0.

[0645] Clause 76. The method of any of clauses 67-71, wherein the bitstream comprises a syntax element nnpfa_region_index [i] indicating a usage of NNPF at the first region level.

[0646] Clause 77. The method of clause 76, wherein the syntax element nnpfa_region_index [i] equal to a first value indicates that the NNPF is not used for the i-th region of a current picture, i being an integer, or the syntax element nnpfa_region_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_region_index [i] -1] is used for the i-th region of a current picture.

[0647] Clause 78. The method of clause 77, wherein the first value is 0.

[0648] Clause 79. The method of any of clauses 76-78, wherein a value of the syntax  element nnpfa_region_index [i] is in a range determined based on the number of NNPFs.

[0649] Clause 80. The method of any of clauses 67-79, wherein the NNPFA SEI message further comprises one or more syntax elements indicating at least one of dimension information or position information of at least one region at the first region level.

[0650] Clause 81. The method of clause 80, wherein the one or more syntax elements comprises a second syntax element indicating horizontal samples or a width of the i-th region of the at least one region, and i is an integer.

[0651] Clause 82. The method of clause 81, wherein the second syntax element is represented as nnpfa_region_width [i] .

[0652] Clause 83. The method of any of clauses 80-82, wherein the one or more syntax elements comprises a third syntax element indicating vertical samples or a height of the i-th region of the at least one region, and i is an integer.

[0653] Clause 84. The method of clause 83, wherein the third syntax element is represented as nnpfa_region_height [i] .

[0654] Clause 85. The method of any of clauses 80-84, wherein the one or more syntax elements comprises a fourth syntax element indicating a horizontal coordinate of a starting point of the i-th region of the at least one region, and i is an integer.

[0655] Clause 86. The method of clause 85, wherein the fourth syntax element is represented as nnpfa_region_x0 [i] .

[0656] Clause 87. The method of any of clauses 80-86, wherein the one or more syntax elements comprises a fifth syntax element indicating a vertical coordinate of a starting point of the i-th region of the at least one region, and i is an integer.

[0657] Clause 88. The method of clause 87, wherein the fifth syntax element is represented as nnpfa_region_y0 [i] .

[0658] Clause 89. The method of any of clauses 80-88, wherein the one or more syntax elements comprises a sixth syntax element indicating a horizontal coordinate of an ending point of the i-th region of the at least one region, and i is an integer.

[0659] Clause 90. The method of clause 89, wherein the sixth syntax element is represented as nnpfa_region_x1 [i] .

[0660] Clause 91. The method of any of clauses 80-90, wherein the one or more syntax elements comprises a seventh syntax element indicating a vertical coordinate of an ending point of the i-th region of the at least one region, and i is an integer.

[0661] Clause 92. The method of clause 91, wherein the seventh syntax element is represented as nnpfa_region_y1 [i] .

[0662] Clause 93. The method of any of clauses 80-92, wherein the one or more syntax elements comprises an eighth syntax element indicating whether all of the at least one region have a same dimension.

[0663] Clause 94. The method of clause 93, wherein the eighth syntax element is represented as nnpfa_region_dim_flag.

[0664] Clause 95. The method of any of clauses 93-94, wherein the eighth syntax element equal to a first value indicates that all of the at least one region have a same dimension, or the eighth syntax element equal to a second value indicates that the at least one region have different dimensions.

[0665] Clause 96. The method of clause 95, wherein the first value is 0, or the second value is 1.

[0666] Clause 97. The method of any of clauses 80-96, wherein the one or more syntax elements comprises a ninth syntax element indicating whether all of the at least one region are overlapped.

[0667] Clause 98. The method of clause 97, wherein the ninth syntax element is represented as nnpfa_region_overlap_flag.

[0668] Clause 99. The method of any of clauses 97-98, wherein the ninth syntax element equal to a first value indicates that all of the at least one region are overlapped, or the ninth syntax element equal to a second value indicates that the at least one region are overlapped.

[0669] Clause 100. The method of clause 99, wherein the first value is 0, or the second value is 1.

[0670] Clause 101. The method of any of clauses 1-100, wherein the conversion includes encoding the video into the bitstream.

[0671] Clause 102. The method of any of clauses 1-100, wherein the conversion  includes decoding the video from the bitstream.

[0672] Clause 103. An apparatus for video processing comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with any of clauses 1-102.

[0673] Clause 104. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of clauses 1-102.

[0674] Clause 105. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises: performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.

[0675] Clause 106. A method for storing a bitstream of a video, comprising: performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream; and storing the bitstream in a non-transitory computer-readable recording medium.

[0676] Example Device

[0677] Fig. 11 illustrates a block diagram of a computing device 1100 in which various embodiments of the present disclosure can be implemented. The computing device 1100 may be implemented as or included in the source device 110 (or the video encoder 114 or 200) or the destination device 120 (or the video decoder 124 or 300) .

[0678] It would be appreciated that the computing device 1100 shown in Fig. 11 is merely for purpose of illustration, without suggesting any limitation to the functions and scopes of the embodiments of the present disclosure in any manner.

[0679] As shown in Fig. 11, the computing device 1100 includes a general-purpose computing device 1100. The computing device 1100 may at least comprise one or more processors or processing units 1110, a memory 1120, a storage unit 1130, one or more communication units 1140, one or more input devices 1150, and one or more output devices 1160.

[0680] In some embodiments, the computing device 1100 may be implemented as any user terminal or server terminal having the computing capability. The server terminal may be a server, a large-scale computing device or the like that is provided by a service provider. The user terminal may for example be any type of mobile terminal, fixed terminal, or portable terminal, including a mobile phone, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system (PCS) device, personal navigation device, personal digital assistant (PDA) , audio / video player, digital camera / video camera, positioning device, television receiver, radio broadcast receiver, E-book device, gaming device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It would be contemplated that the computing device 1100 can support any type of interface to a user (such as “wearable” circuitry and the like) .

[0681] The processing unit 1110 may be a physical or virtual processor and can implement various processes based on programs stored in the memory 1120. In a multi-processor system, multiple processing units execute computer executable instructions in parallel so as to improve the parallel processing capability of the computing device 1100. The processing unit 1110 may also be referred to as a central processing unit (CPU) , a microprocessor, a controller or a microcontroller.

[0682] The computing device 1100 typically includes various computer storage medium. Such medium can be any medium accessible by the computing device 1100, including, but not limited to, volatile and non-volatile medium, or detachable and non-detachable medium. The memory 1120 can be a volatile memory (for example, a register, cache, Random Access Memory (RAM) ) , a non-volatile memory (such as a Read-Only Memory (ROM) , Electrically Erasable Programmable Read-Only Memory (EEPROM) , or a flash memory) , or any combination thereof. The storage unit 1130 may be any detachable or non-detachable medium and may include a machine-readable medium such as a memory, flash memory drive, magnetic disk or another other media, which can be used for storing  information and / or data and can be accessed in the computing device 1100.

[0683] The computing device 1100 may further include additional detachable / non-detachable, volatile / non-volatile memory medium. Although not shown in Fig. 11, it is possible to provide a magnetic disk drive for reading from and / or writing into a detachable and non-volatile magnetic disk and an optical disk drive for reading from and / or writing into a detachable non-volatile optical disk. In such cases, each drive may be connected to a bus (not shown) via one or more data medium interfaces.

[0684] The communication unit 1140 communicates with a further computing device via the communication medium. In addition, the functions of the components in the computing device 1100 can be implemented by a single computing cluster or multiple computing machines that can communicate via communication connections. Therefore, the computing device 1100 can operate in a networked environment using a logical connection with one or more other servers, networked personal computers (PCs) or further general network nodes.

[0685] The input device 1150 may be one or more of a variety of input devices, such as a mouse, keyboard, tracking ball, voice-input device, and the like. The output device 1160 may be one or more of a variety of output devices, such as a display, loudspeaker, printer, and the like. By means of the communication unit 1140, the computing device 1100 can further communicate with one or more external devices (not shown) such as the storage devices and display device, with one or more devices enabling the user to interact with the computing device 1100, or any devices (such as a network card, a modem and the like) enabling the computing device 1100 to communicate with one or more other computing devices, if required. Such communication can be performed via input / output (I / O) interfaces (not shown) .

[0686] In some embodiments, instead of being integrated in a single device, some or all components of the computing device 1100 may also be arranged in cloud computing architecture. In the cloud computing architecture, the components may be provided remotely and work together to implement the functionalities described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage service, which will not require end users to be aware of the physical locations or configurations of the systems or hardware providing these services. In various embodiments, the cloud computing provides the services via a wide area network (such  as Internet) using suitable protocols. For example, a cloud computing provider provides applications over the wide area network, which can be accessed through a web browser or any other computing components. The software or components of the cloud computing architecture and corresponding data may be stored on a server at a remote position. The computing resources in the cloud computing environment may be merged or distributed at locations in a remote data center. Cloud computing infrastructures may provide the services through a shared data center, though they behave as a single access point for the users. Therefore, the cloud computing architectures may be used to provide the components and functionalities described herein from a service provider at a remote location. Alternatively, they may be provided from a conventional server or installed directly or otherwise on a client device.

[0687] The computing device 1100 may be used to implement video encoding / decoding in embodiments of the present disclosure. The memory 1120 may include one or more video coding modules 1125 having one or more program instructions. These modules are accessible and executable by the processing unit 1110 to perform the functionalities of the various embodiments described herein.

[0688] In the example embodiments of performing video encoding, the input device 1150 may receive video data as an input 1170 to be encoded. The video data may be processed, for example, by the video coding module 1125, to generate an encoded bitstream. The encoded bitstream may be provided via the output device 1160 as an output 1180.

[0689] In the example embodiments of performing video decoding, the input device 1150 may receive an encoded bitstream as the input 1170. The encoded bitstream may be processed, for example, by the video coding module 1125, to generate decoded video data. The decoded video data may be provided via the output device 1160 as the output 1180.

[0690] While this disclosure has been particularly shown and described with references to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application as defined by the appended claims. Such variations are intended to be covered by the scope of this present application. As such, the foregoing description of embodiments of the present application is not intended to be limiting.

Claims

1.A method for video processing, comprising:performing a conversion between a video and a bitstream of the video, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.2.The method of claim 1, wherein the quality information comprises at least one of the following:one or more metric types for measuring quality of the at least one video unit,one or more quality changes of the at least one video unit that correspond to the one or more metric types, each of the one or more quality changes being caused by the applying of the at least one NNPF and measured based on the corresponding metric type, orone or more quality values of the at least one video unit after the at least one NNPF being applied, the one or more quality values corresponding to the one or more metric types, and each of the one or more quality values being measured based on the corresponding metric type.3.The method of any of claims 1-2, wherein the first indication indicates that the quality information is present in the bitstream, and at least one indication indicating the quality information is present in the bitstream.4.The method of any of claims 1-3, wherein the at least one video unit comprises one of the following:a whole video sequence of the video,a single picture of the video, ora plurality of pictures of the video.5.The method of any of claims 2-4, wherein the one or more metric types comprise at least one of the following:peak signal-to-noise ratio (PSNR) ,structural similarity (SSIM) ,multi scale structural similarity (MS-SSIM) , orvideo multi-method assessment fusion (VMAF) .6.The method of any of claims 2-4, wherein one of the one or more quality changes is determined based on one of the following:a difference between quality of the at least one video unit after the at least one NNPF being applied and quality of the at least one video unit without the at least one NNPF being applied, ora difference between quality of the at least one video unit without the at least one NNPF being applied and quality of the at least one video unit after the at least one NNPF being applied.7.The method of any of claims 2-6, wherein the one or more metric types comprise a plurality of metric types, and the one or more quality changes comprise a plurality of quality changes.8.The method of claim 7, wherein the bitstream comprises a second indication indicating the number of the plurality of metric types.9.The method of claim 8, wherein at least one indication indicating the quality information follows the second indication in the bitstream.10.The method of any of claims 1-2, wherein the first indication indicates that the quality information is not present in the bitstream, and at least one indication indicating the quality information is not present in the bitstream.11.The method of any of claims 1-9, wherein at least one indication indicating the quality information is present in the bitstream independently from the first indication.12.The method of any of claims 2-11, wherein the at least one indication is comprised in a video message unit in the bitstream.13.The method of claim 12, wherein the video message unit is a supplemental enhancement information (SEI) message.14.The method of claim 13, wherein the SEI message is a neural-network post-filter activation (NNPFA) SEI message.15.The method of any of claims 1-14, wherein the bitstream further comprises at least one first syntax element indicating a type of the at least one video unit, and one of candidates for the type is a first region type different from a picture, a slice and a coding tree unit.16.The method of claim 15, wherein if the type of the at least one video unit is the first region type, the at least one video unit comprises one or more regions.17.The method of claim 16, wherein a region in the one or more regions is represented by information comprising at least one of the following:a dimension of the region,a position of the region, ora coordinate of the region.18.The method of claim 17, wherein the dimension of the region comprises at least one of a width of the region or a height of the region, ora position of the region comprises at least one of a coordinate of a start point of the region or a coordinate of an end point of the region.19.The method of any of claims 16-18, wherein a region in the one or more regions is overlapped with a further region, ora region in the one or more regions is not overlapped with a further region.20.The method of any of claims 16-20, wherein all of the one or more regions have a same dimension.21.The method of claim 20, wherein the same dimension is indicated in the bitstream.22.The method of any of claims 16-20, wherein the one or more regions have different dimensions.23.The method of claim 22, wherein a dimension for each of the one or more regions is indicated in the bitstream.24.The method of any of claims 15-23, wherein if the at least one first syntax element is equal to a first value, no NNPF is applied for a current picture and / or a slice of the current picture and / or a CTU of the current picture, or an NNPF applied for the current picture is indicated, orif the at least one first syntax element is equal to a second value, no NNPF is applied for a sub-region of the current picture, or an NNPF applied for the current picture is indicated.25.The method of claim 24, wherein the first value is 3, or the second value is 4.26.The method of any of claims 15-25, wherein a value of the at least one first syntax element is in a first predetermined range, and values of the at least one first syntax element greater than a third value are reserved and absent from the bitstream.27.The method of claim 26, wherein an NNPFA SEI message with the at least one first syntax element greater than the third value is ignored.28.The method of any of claims 26-27, wherein the first predetermined range is from 0 to 31, or the third value is one of 2, 3, or 4.29.The method of any of claims 1-28, wherein a syntax element nnpfa_picture_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level.30.The method of claim 29, wherein only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.31.The method of any of claims 1-28, wherein a syntax element nnpfa_picture_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a picture level.32.The method of claim 31, wherein one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.33.The method of any of claims 1-32, wherein a syntax element nnpfa_slice_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.34.The method of any of claims 1-23, wherein a syntax element nnpfa_slice_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a slice level, and one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.35.The method of any of claims 1-34, wherein a syntax element nnpfa_ctu_enabling_flag [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a coding tree unit (CTU) level, and only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.36.The method of any of claims 1-35, wherein a syntax element nnpfa_ctu_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at a CTU level, and one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.37.The method of any of claims 15-36, wherein if the type of the at least one video unit is the first region type, an NNPFA SEI message in the bitstream comprises a syntax element indicating activation of the at least one NNPF at a region level.38.The method of claim 37, wherein a syntax element nnpfa_region_enabling_flag [i] in the NNPFA SEI message indicates a usage of NNPF at the region level.39.The method of claim 38, wherein only one NNPF is indicated by a syntax element nnpfa_id in the NNPFA SEI message.40.The method of claim 37, wherein a syntax element nnpfa_region_index [i] in an NNPFA SEI message in the bitstream indicates a usage of NNPF at the region level.41.The method of claim 40, wherein one or more NNPFs are indicated by a syntax element nnpfa_id [i] in the NNPFA SEI message.42.The method of any of claims 15-41, wherein if the at least one first syntax element is equal to a fourth value, at least one of a syntax element nnpfa_picture_index [i] or a syntax element nnpfa_picture_enabling_flag [i] is indicated in the bitstream, orif the at least one first syntax element is equal to a fifth value, at least one of a syntax element nnpfa_slice_index [i] or a syntax element nnpfa_slice_enabling_flag [i] is indicated in the bitstream, orif the at least one first syntax element is equal to a sixth value, at least one of a syntax element nnpfa_ctu_index [i] or a syntax element nnpfa_ctu_enabling_flag [i] is indicated in the bitstream, orif the at least one first syntax element is equal to a seventh value, a syntax element nnpfa_region_index [i] is indicated in the bitstream.43.The method of claim 42, wherein the fourth value is 0 or 3, or the fifth value is 1 or 3, or the sixth value is 2 or 3, or the seventh value is 4.44.The method of any of claims 1-43, wherein a syntax element indicating whether NNPF is used in current region is required to be smaller than an eighth value, the eight value being determined based on the number of NNPFs.45.The method of claim 44, wherein a syntax element indicating whether NNPF is used in a subregion of the current region equal to the eighth value indicates that the NNPF is used in the subregion.46.The method of claim 45, wherein the syntax element is nnpfa_slice_index [i] or nnpfa_ctu_index [i] .47.The method of any of claims 1-46, wherein the bitstream comprises a syntax element nnpfa_picture_enabling_flag indicating whether NNPF is used at a picture level.48.The method of claim 47, wherein the syntax element nnpfa_picture_enabling_flag equal to a first value indicates that the NNPF is used for a subregion of a current picture, orthe syntax element nnpfa_picture_enabling_flag equal to a second value indicates that the NNPF is used for the current picture, orthe syntax element nnpfa_picture_enabling_flag equal to a third value indicates that the NNPF is not used for the current picture.49.The method of claim 48, wherein the subregion is in slice level, sub block level, CTU level, coding tree block (CTB) level, or patch level.50.The method of any of claims 48-49, wherein i is an integer, and a usage of the i-th subregion of the current picture is indicated by one of the following:a syntax element nnpfa_slice_enabling_flag [i] ,a syntax element nnpfa_ctu_enabling_flag [i] , ora syntax element nnpfa_region_enabling_flag [i] .51.The method of any of claims 48-50, wherein the first value is 2, the second value is 1, or the third value is 0.52.The method of any of claims 1-46, wherein the bitstream comprises a syntax element nnpfa_picture_index indicating whether NNPF is used at a picture level.53.The method of claim 52, wherein the syntax element nnpfa_picture_index equal to a first value indicates that the NNPF is not used for a current picture, orthe syntax element nnpfa_picture_index larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] is used for the current picture, orthe syntax element nnpfa_picture_index larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_picture_index -1] is used for the current picture, the second value being determined based on the number of NNPFs, orthe syntax element nnpfa_picture_index equal to the second value indicates that the NNPF is allowed to be used for a sub-region of the current picture.54.The method of claim 53, wherein the first value is 0.55.The method of any of claims 53-54, wherein the subregion is in slice level, sub block level, CTU level, CTB level, or patch level.56.The method of any of claims 53-55, wherein a usage of the i-th subregion of the current picture is indicated by one of the following:a syntax element nnpfa_slice_index [i] ,a syntax element nnpfa_ctu_index [i] , ora syntax element nnpfa_region_index [i] .57.The method of any of claims 52-56, wherein a value of the syntax element nnpfa_picture_index is in a range determined based on the number of NNPFs.58.The method of any of claims 1-46, wherein a syntax element nnpfa_slice_enabling_flag [i] in the bitstream equal to a first value indicates that NNPF is used for a sub-region of the i-th slice of a current picture, and i is an integer.59.The method of claim 58, wherein the subregion is in sub block level, CTU level, CTB level, or patch level.60.The method of any of claims 58-59, wherein the bitstream comprises a syntax element nnpfa_ctu_enabling_flag [j] indicating a usage of the j-th sub-region of the i-th slice of the current picture, and j is an integer.61.The method of any of claims 1-46, wherein the bitstream comprises a syntax element nnpfa_slice_index [i] indicating whether NNPF is used at a slice level.62.The method of claim 61, wherein the syntax element nnpfa_slice_index [i] equal to a first value indicates that the NNPF is not used for the i-th slice of a current picture, orthe syntax element nnpfa_slice_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] is used for the i-th slice of the current picture, orthe syntax element nnpfa_slice_index [i] larger than the first value and smaller than a second value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_slice_index [i] -1] is used for the i-th slice of the current picture, the second value being determined based on the number of NNPFs, orthe syntax element nnpfa_slice_index [i] equal to the second value indicates that the NNPF is allowed to be used for a sub-region of the i-th slice of the current picture.63.The method of claim 62, wherein the first value is 0.64.The method of any of claims 62-63, wherein the subregion is in sub block level, CTU level, CTB level, or patch level.65.The method of any of claims 62-64, wherein a usage of the j-th sub-region of the i-th slice of the current picture is indicated by a syntax element nnpfa_ctu_index [j] , and j is an integer.66.The method of any of claims 61-65, wherein a value of the syntax element nnpfa_slice_index [i] is in a range determined based on the number of NNPFs.67.The method of any of claims 15-66, wherein an NNPFA SEI message in the bitstream comprises at least one syntax element indicating whether NNPF is used at a first region level corresponding to the first region type.68.The method of claim 67, wherein a syntax element at the first region level is dependent on a syntax element at a level higher than the first region level.69.The method of any of claims 67-68, wherein a syntax element in the bitstream indicates whether NNPF is applied at the first region level.70.The method of any of claims 67-69, wherein a syntax element in the bitstream indicates an index of an NNPF applied at the first region level.71.The method of any of claims 67-70, wherein a syntax element in the bitstream indicates whether NNPF is applied at the first region level or a level lower than the first region level.72.The method of any of claims 15-66, wherein a syntax element at a first region level corresponding to the first region type is not indicated in the bitstream.73.The method of any of claims 67-71, wherein the bitstream comprises a syntax element nnpfa_region_enabling_flag [i] indicating a usage of NNPF at the first region level.74.The method of claim 73, wherein the syntax element nnpfa_region_enabling_flag [i] equal to a first value indicates that the NNPF is used for the i-th region of a current picture, i being an integer, orthe syntax element nnpfa_region_enabling_flag [i] equal to a second value indicates that the NNPF is not used for the i-th region of the current picture, i being an integer.75.The method of claim 74, wherein the first value is 1, and the second value is 0.76.The method of any of claims 67-71, wherein the bitstream comprises a syntax element nnpfa_region_index [i] indicating a usage of NNPF at the first region level.77.The method of claim 76, wherein the syntax element nnpfa_region_index [i] equal to a first value indicates that the NNPF is not used for the i-th region of a current picture, i being an integer, orthe syntax element nnpfa_region_index [i] larger than the first value indicates that the NNPF with nnpfc_id equal to nnpfa_id [nnpfa_region_index [i] -1] is used for the i-th region of a current picture.78.The method of claim 77, wherein the first value is 0.79.The method of any of claims 76-78, wherein a value of the syntax element nnpfa_region_index [i] is in a range determined based on the number of NNPFs.80.The method of any of claims 67-79, wherein the NNPFA SEI message further comprises one or more syntax elements indicating at least one of dimension information or position information of at least one region at the first region level.81.The method of claim 80, wherein the one or more syntax elements comprises a second syntax element indicating horizontal samples or a width of the i-th region of the at least one region, and i is an integer.82.The method of claim 81, wherein the second syntax element is represented as nnpfa_region_width [i] .83.The method of any of claims 80-82, wherein the one or more syntax elements comprises a third syntax element indicating vertical samples or a height of the i-th region of the at least one region, and i is an integer.84.The method of claim 83, wherein the third syntax element is represented as nnpfa_region_height [i] .85.The method of any of claims 80-84, wherein the one or more syntax elements comprises a fourth syntax element indicating a horizontal coordinate of a starting point of the i-th region of the at least one region, and i is an integer.86.The method of claim 85, wherein the fourth syntax element is represented as nnpfa_region_x0 [i] .87.The method of any of claims 80-86, wherein the one or more syntax elements comprises a fifth syntax element indicating a vertical coordinate of a starting point of the i-th region of the at least one region, and i is an integer.88.The method of claim 87, wherein the fifth syntax element is represented as nnpfa_region_y0 [i] .89.The method of any of claims 80-88, wherein the one or more syntax elements comprises a sixth syntax element indicating a horizontal coordinate of an ending point of the i-th region of the at least one region, and i is an integer.90.The method of claim 89, wherein the sixth syntax element is represented as nnpfa_region_x1 [i] .91.The method of any of claims 80-90, wherein the one or more syntax elements comprises a seventh syntax element indicating a vertical coordinate of an ending point of the i-th region of the at least one region, and i is an integer.92.The method of claim 91, wherein the seventh syntax element is represented as nnpfa_region_y1 [i] .93.The method of any of claims 80-92, wherein the one or more syntax elements comprises an eighth syntax element indicating whether all of the at least one region have a same dimension.94.The method of claim 93, wherein the eighth syntax element is represented as nnpfa_region_dim_flag.95.The method of any of claims 93-94, wherein the eighth syntax element equal to a first value indicates that all of the at least one region have a same dimension, orthe eighth syntax element equal to a second value indicates that the at least one region have different dimensions.96.The method of claim 95, wherein the first value is 0, or the second value is 1.97.The method of any of claims 80-96, wherein the one or more syntax elements comprises a ninth syntax element indicating whether all of the at least one region are overlapped.98.The method of claim 97, wherein the ninth syntax element is represented as nnpfa_region_overlap_flag.99.The method of any of claims 97-98, wherein the ninth syntax element equal to a first value indicates that all of the at least one region are overlapped, orthe ninth syntax element equal to a second value indicates that the at least one region are overlapped.100.The method of claim 99, wherein the first value is 0, or the second value is 1.101.The method of any of claims 1-100, wherein the conversion includes encoding the video into the bitstream.102.The method of any of claims 1-100, wherein the conversion includes decoding the video from the bitstream.103.An apparatus for video processing comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform a method in accordance with any of claims 1-102.104.A non-transitory computer-readable storage medium storing instructions that cause a processor to perform a method in accordance with any of claims 1-102.105.A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by an apparatus for video processing, wherein the method comprises:performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream.106.A method for storing a bitstream of a video, comprising:performing a conversion between the video and the bitstream, wherein at least one neural-network post-processing filter (NNPF) is applied on at least one video unit associated with the video, and the bitstream comprises a first indication indicating whether quality information of the at least one video unit associated with the applying of the at least one NNPF is present in the bitstream; andstoring the bitstream in a non-transitory computer-readable recording medium.