Use of the neural-network post-filter characteristics and neural-network post-filter activation SEI message in a bitstream
By integrating neural-network post-filter characteristics and activation SEI messages, the patent addresses inefficiencies in video coding standards, enhancing processing efficiency and reducing bandwidth demand.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-04-09
AI Technical Summary
Existing video coding standards lack efficient mechanisms for utilizing neural-network post-filters, leading to suboptimal video processing and increased bandwidth demand.
Incorporating neural-network post-filter characteristics and activation SEI messages in video bitstreams to enhance processing stages, allowing for improved video data conversion and encoding/decoding processes.
Enhances video processing efficiency and reduces bandwidth requirements by optimizing the use of neural-network post-filters, improving video quality and reducing network load.
Smart Images

Figure US2025048732_09042026_PF_FP_ABST
Abstract
Description
P24102478901WO1; G25N22727W (4824-71201)Use Of The Neural-Network Post-Filter Characteristics And Neural-Network Post-Filter Activation SEI Message In A BitstreamCROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This patent application claims the benefit of U.S. Provisional Patent Application No. 63 / 701.757 filed on October 1, 2024, which is hereby incorporated by reference in its entirety.TECHNICAL FIELD
[0002] The present disclosure relates to generation, storage, and consumption of digital audio video media information in a file format.BACKGROUND
[0003] Digital video accounts for the largest bandwidth used on the Internet and other digital communication networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demand for digital video usage is likely to continue to grow.SUMMARY
[0004] A first aspect relates to a method for processing video data comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain; and performing a conversion between a visual media data and a bitstream based on the chosen processing chain.
[0005] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when a neural-network post-filter characteristics (NNPFC) SEI message or a neural-network post-filter activation (NNPF A) SEI message is used during an invocation of a process for handling of the chosen processing chain, a value of SeiProcStgldx is provided by the process; and otherwise, the value of SeiProcStgldx is inferred to be equal to 0.
[0006] Optionally, in any of the preceding aspects, another implementation of the aspect provides that a candidate input picture list contains a list of pictures in output order from which input pictures for the NNPF are selected or padded.
[0007] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when SeiProcStgldx is equal to 0, pictures in the candidate input picture list arc cropped decoded output pictures.
[0008] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when the NNPFC SEI message or the NNPFA SEI message is used during the invocation of a process for handling of the processing chain, the candidate input picture list is provided by that process; otherwise, the candidate input picture list is inferred to be identical to a list of cropped decoded output pictures in output order resulted from decoding the bitstream.P24102478901WO1; G25N22727W (4824-71201)
[0009] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the candidate input picture list is designated CandInputPicList[ SeiProcStgldx ].
[0010] Optionally, in any of the preceding aspects, another implementation of the aspect provides that for a picture (picB), a corresponding coded picture of the picB is also referred to as a corresponding coded picture of a picture in a picture list that is the corresponding picture of the picB or is an associated inserted picture of the picB.
[0011] Optionally , in any of the preceding aspects, another implementation of the aspect provides that for a picture (picB), a network abstraction layer unit header layer identifier (nuh layer id) of a picture in a picture list that is a corresponding picture of the picB or is an associated inserted picture of the picB is set to be equal to a nuh layer id of the picB.
[0012] Optionally, in any of the preceding aspects, another implementation of the aspect provides that for a picture (picB), an SEI message associated with the picB is considered as associated with a picture in a picture list that is a corresponding picture of the picB or is an associated inserted picture of the picB.
[0013] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the picB is a cropped decoded output picture.
[0014] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a cropped width (CroppedWidth) is set equal to a picture width in units of luma samples of the currPic.
[0015] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a cropped height (CroppedHeight) is set equal to a picture height in units of luma samples of the currPic.
[0016] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a luma bit depth (BitDepthY) is set equal to a bit depth of a luma sample array of currPic.
[0017] Optionally, in any of the preceding aspects, another implementation of the aspect provides that when a current picture (currPic) is a picture in CandlnputPicListf SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a chroma bit depth (BitDepthC) is set equal to a bit depth of chroma sample arrays, if any, of the currPic.
[0018] Optionally , in any of the preceding aspects, another implementation of the aspect provides that when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic. a chroma format indicator (ChromaFormatldc) is set equal to the chroma format indicator (ChromaFormatldc) of a current picture (currPic).P24102478901WO1; G25N22727W (4824-71201)
[0019] Optionally, in any of the preceding aspects, another implementation of the aspect provides that for an NNPF associated with SeiProcStgldx equal to 0, because only cropped decoded output pictures are used as input pictures of the NNPF. a value of a picture header picture output flag (ph_pic_output flag) in a picture header of a coded picture corresponding to each input picture of the NNPF associated with SeiProcStgldx equal to 0 is equal to 1.
[0020] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the conversion includes encoding the visual media data into the bitstream.
[0021] Optionally, in any of the preceding aspects, another implementation of the aspect provides that the conversion includes decoding the visual media data from the bitstream.
[0022] A second aspect relates to an apparatus for processing video data comprising: a processor; and a non- transitory memory’ with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of the disclosed aspects.
[0023] A third aspect relates to a non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of the disclosed aspects.
[0024] A fourth aspect relates to a non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain; and generating a bitstream based on the determining.
[0025] A fifth aspect relates to a method for storing bitstream of a video, comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain; generating a bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.
[0026] A sixth aspect relates to a method, apparatus, or system described in the present disclosure.
[0027] For the purpose of clarity, any one of the foregoing embodiments may be combined with any one or more of the other foregoing embodiments to create a new embodiment within the scope of the present disclosure.
[0028] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0029] For a more complete understanding of this disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.P24102478901WO1; G25N22727W (4824-71201)
[0030] FIG. 1 is an example mechanism for deriving the four luma channels (right) from the luma component (left) when mipfc inp order idc is equal to 3.
[0031] FIG. 2 is a block diagram showing an example video processing system.
[0032] FIG. 3 is a block diagram of an example video processing apparatus.
[0033] FIG. 4 is a flowchart for an example method of video processing.
[0034] FIG. 5 is a block diagram that illustrates an example video coding system.
[0035] FIG. 6 is a block diagram that illustrates an example encoder.
[0036] FIG. 7 is a block diagram that illustrates an example decoder.
[0037] FIG. 8 is a schematic diagram of an example encoder.DETAILED DESCRIPTION
[0038] It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently know n or yet to be developed. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.
[0039] Section headings are used in the present disclosure for ease of understanding and do not limit the applicability of techniques and embodiments disclosed in each section only to that section. Furthermore, H.266 terminology is used in some description only for ease of understanding and not for limiting scope of the disclosed techniques. As such, the techniques described herein are applicable to other video codec protocols and designs also. In the present disclosure, editing changes are shown to text by bold italics indicating cancelled text and bold indicating added text, with respect to the Versatile Video Coding (VVC) specification and / or the supplemental enhancement information (SEI) messages for coded video bitstreams (VSEI) standard.1. Initial discussion
[0040] This disclosure is related to image / video coding technologies. Specifically, this disclosure is related to specifying the use of the neural-network post-filter characteristics (NNPFC) supplemental enhancement information (SEI) message and the neural-network post-filter activation (NNPFA) SEI message in a coded video bitstream, e.g., a bitstream of the versatile video coding (WC) standard, the high efficiency video coding (HEVC) standard, or the advance video coding (AVC) standard. The ideas may be applied individually or in various combinations, for video bitstreams coded by any codec, e.g., the WC standard, the HEVC standard, the AVC standard, and / or the versatile SEI messages for coded video bitstreams (VSEI) standard.2. Further discussion2.1 Video coding standards
[0041] Video coding standards have evolved primarily through the development of International Telecommunication Union (ITU) telecommunication standardization sector (ITU-T) and InternationalP24102478901WO1; G25N22727W (4824-71201)Organization for Standardization (ISO) / International Electrotechnical Commission (IEC) standards. The ITU-T produced H.261 and H.263, ISO / IEC produced motion picture experts group (MPEG)-l 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 / high efficiency video coding (HEVC) [1] standards. Since H.262, the video coding standards are based on the hybrid video coding structure wherein temporal prediction plus transform coding are utilized. The Versatile Video Coding (WC) standard (ITU-T H.266 | ISO / IEC 23090-3) [2] and the associated Versatile Supplemental Enhancement Information for coded video bitstreams (VSEI) standard (ITU-T H.274 | ISO / IEC 23002-7) [3] arc designed for use in a maximally broad range of applications, including both the simple uses such as television broadcast, video conferencing, or playback from storage media, and also 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.2.2 SEI messages in general and in VVC and VSEI
[0042] 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.
[0043] Annex D of WC specifies syntax and semantics for SEI message payloads for some SEI messages, and specifies the use of the SEI messages and video usability information (VUI) parameters for which the syntax and semantics are specified in ITU-T H.SEI | ISO / IEC 23002-7.2.3 The neural-network post-filter characteristics (NNPFC) SEI message and the neural-network postfilter activation (NNPFA) SEI message
[0044] IVET-AI2006 [4] and version 3 of the VSEI standard [3] include the specifications of the neural- network post-filter characteristics (NNPFC) SEI message and the neural-network post-filter activation (NNPFA) SEI message, as well as the general post-processing filtering process using neural-network post-processing filters (NNPFs).
[0045] An improved version of the specification of the NNPFC and NNPFA SEI messages, with the general post-processing filtering process using NNPFs removed but relying on the process chain handling for the filtering process, is as follows.8.28.1 Neural-network post-filter characteristics SEI message8.28.1.1 Neural-network post-filter characteristics SEI message syntaxP24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)8.28.1.2 Neural-network post-filter characteristics SEI message semantics
[0046] The neural-network post-filter characteristics (NNPFC) SEI message specifies a neural network that may be used as a post-processing filter. The use of specified neural -network post-processing filters (NNPFs) for specific pictures is indicated with neural-network post-filter activation (NNPFA) SEI messages.
[0047] Use of this SEI message requires the definition of the following variables:The processing stage index SeiProcStgldx that indicates the processing stage index associated with the NNPF within a chosen processing chain.P24102478901WO1; G25N22727W (4824-71201)The list CandInputPicList[ SeiProcStgldx ] that contains a list of pictures in output order from which the input pictures for the NNPF are selected or padded. When SeiProcStgldx is equal to 0, pictures in CandInputPicList[ SeiProcStgldx ] are cropped decoded output pictures.
[0048] NOTE 1 - When SeiProcStgldx is greater than 0, the list CandInputPicList[ SeiProcStgldx ] contains pictures after the application of the process(es) implied by the SEI message(s) associated with processing stage index values less than SeiProcStgldx.Input picture width and height in units of luma samples, denoted herein by CroppedWidth and CroppedHeight, respectively, of the input pictures.- Luma sample array CroppedYPic[ idx ] and chroma sample arrays CroppedCbPicf idx ] and CroppedCrPic[ idx ], when present, of the input pictures with index idx in the range of 0 to numlnputPics - 1 , inclusive, that are used as input for the NNPF.Bit depth BitDepthY for the luma sample array of the input pictures.Bit depth BitDepthC for the chroma sample arrays, if any, of the input pictures.Chroma format indicator ChromaFonnatldc, as described in clause 7.3, of the input pictures.- When nnpfc auxiliary inp idc is equal to 1, a filtering strength control value array StrengthControlValf idx ] that shall contain real numbers in the range of 0 to 1, inclusive, of the input pictures with index idx in the range of 0 to numlnputPics - 1, inclusive.
[0049] Let currCdoPic be a cropped decoded output picture for which the NNPF defined by this NNPFC SEI message is activated by an NNPFA SEI message. Let currPic be a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of currCdoPic or is an associated inserted picture of currCdoPic.
[0050] Input picture with index 0 is the picture currPic. Input picture with index i in the range of 1 to numlnputPics - 1, inclusive, is the picture in CandInputPicList[ SeiProcStgldx ] that immediately precedes the input picture with index i - 1 in output order.
[0051] The variables SubWidthC and SubHeightC are derived from ChromaFonnatldc.
[0052] NOTE 1 - More than one NNPFC SEI message can be present for the same picture. When more than one NNPFC SEI message with different values of nnpfc id is present or activated for the same picture, they can have the same value or different values of nnpfc_purpose and the same value or different values of mipfc mode idc.
[0053] nnpfc purpose indicates the purpose of the NNPF as specified in Table 1. where ( nnpfc purpose & bitMask ) not equal to 0 indicates that the NNPF has the purpose associated with the bitMask value in Table 1. When nnpfc_purpose is greater than 0 and ( nnpfc_purpose & bitMask ) is equal to 0, the purpose associated with the bitMask value is not applicable to the NNPF. When nnpfc_pupose is equal to 0, the NNPF may be used as determined by the application and as specified by the nnpfc_application_purpose_tag_uri.P24102478901WO1; G25N22727W (4824-71201)
[0054] All NNPFC SEI messages with a particular value of nnpfc_id within a CLVS shall have the same value of mrpfc_purpose.
[0055] The value of nnpfc purpose shall be in the range of 0 to 255. inclusive, in bitstreams conforming to this version of this Specification. Values of 256 to 65 535, inclusive, for nnpfc_purpose are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_purpose in the range of 256 to 65 535, inclusive.Table 1 - Definition of nnpfc purpose
[0056] The variables ChromaUpsamplingFlag, ResolutionResamplingFlag, PictureRateUpsamplingFlag, BitDepthUpsamplingFlag, ColourizationFlag, and TemporalExtrapolationFlag, specifying whether nnpfc purposc indicates the purpose of the NNPF to include chroma upsampling, resolution resampling, picture rate upsampling, bit depth upsampling, colourization, and temporal extrapolation, respectively, are derived as follows:ChromaUpsamplingFlag = ( ( mrpfc _purpose & 0x02 ) > 0 ) ? 1 : 0ResolutionResamplingFlag = ( ( nnpfc_purpose & 0x04 ) > 0 ) ? 1 : 0PictureRateUpsamplingFlag = ( ( nnpfc_purpose & 0x08 ) > 0 ) ? 1 : 0 (75)BitDepthUpsamplingFlag = ( ( nnpfc_purpose & 0x10 ) > 0 ) ? 1 : 0ColourizationFlag = ( ( nnpfc_purpose & 0x20 ) > 0 ) ? 1 : 0TemporalExtrapolationFlag = ( ( nnpfc_purpose & 0x40 ) > 0 ) ? 1 : 0SpatialExtrapolationFlag = ( ( nnpfc_purpose & 0x80 ) > 0 ) ? 1 : 0
[0057] NOTE 2 -When a reserved value of nnpfc_purpose is taken into use in the future by ITU-T | ISO / IEC, the syntax of this SEI message could be extended with syntax elements whose presence is conditioned by nnpfc_purpose being equal to that value or any one of a set of values including that value.P24102478901WO1; G25N22727W (4824-71201)
[0058] When ChromaFormatldc is equal to 3, ChromaUpsamplingFlag shall be equal to 0.
[0059] When ChromaUpsamplingFlag is equal to 1, ColourizationFlag shall be equal to 0.
[0060] When PictureRateUpsamplingFlag or TemporalExtrapolationFlag is equal to 1 and the input picture with index 0 is associated with a frame packing arrangement SET message with fp arrangement type equal to 5, all input pictures are associated with a frame packing arrangement SEI message with fp_arrangement_type equal to 5 and the same value of fp currcnt framc is framcO flag.
[0061] When TemporalExtrapolationFlag is equal to 1, the extrapolated pictures generated by the NNPF follow all input pictures of the NNPF in output order. When TemporalExtrapolationFlag is equal to 1 and there is a decoded output picture that follows, in output order, the current picture for which the NNPF is activated, the extrapolated pictures generated by the NNPF precede that decoded output picture in output order.
[0062] nnpfe id contains an identifying number that may be used to identify an NNPF. The value of nnpfe id shall be in the range of 0 to 232- 2, inclusive. Values of nnpfe id from 256 to 511, inclusive, and from 231to 232- 2, inclusive, are reserved for future use by ITU-T | ISO / IEC. Decoders conforming to this version of this Specification encountering an NNPFC SEI message with nnpfe id in the range of 256 to 511, inclusive, or in the range of 231to 232- 2, inclusive, shall ignore the SEI message.
[0063] When an NNPFC SEI message is the first NNPFC SEI message, in decoding order, that has a particular nnpfe id value within the current CLVS, the following applies:- This SEI message specifies a base NNPF.- This SEI message pertains to the current decoded picture and all subsequent decoded pictures of the current layer, in output order, until the end of the current CLVS.
[0064] nnpfe base flag equal to 1 specifies that the SEI message specifies the base NNPF. nnpfe base flag equal to 0 specifies that the SEI message specifies an update relative to the base NNPF.
[0065] The following constraints apply to the value of nnpfe base flag:- When an NNPFC SEI message is the first NNPFC SEI message, in decoding order, that has a particular nnpfe id value within the current CLVS, the value of nnpfc_base_flag shall be equal to 1.- All NNPFC SEI messages in a CLVS that have a particular nnpfe id value and nnpfc_base_flag equal to 1 shall have identical SEI payload content.
[0066] When nnpfc base flag is equal to 0, the following applies:- This SEI message defines an update relative to the preceding base NNPF in decoding order with the same nnpfe id value. Updates are not cumulative but rather each update is applied on the base NNPF, which is the NNPF specified by the first NNPFC SEI message, in decoding order, that has a particular nnpfe id value within the current CLVS. The NNPF defined by this SEI message is obtained by applying the update defined by this SEI message relative to the base NNPF with the same nnpfe id value.- This SEI message pertains to the current decoded picture and all subsequent decoded pictures of the current layer, in output order, until the end of the current CLVS or up to but excluding the decoded picture thatP24102478901WO1; G25N22727W (4824-71201) follows the current decoded picture in output order within the current CLVS and is associated with a subsequent NNPFC SEI message, in decoding order, having nnpfc base flag equal to 0 and that particular nnpfc id value within the current CLVS, whichever is earlier.
[0067] nnpfc mode idc, when equal to 0. indicates that the neural network information is contained in the NNPFC SEI message, and the neural network information is in the format of an ISO / IEC 15938-17 bitstream, nnpfc mode idc equal to 1 indicates that the neural network information is identified by the URI indicated by nnpfc uri with the format identified by the tag URI nnpfc_tag_uri.
[0068] The value of nnpfc mode idc shall be in the range of 0 to 255. inclusive. Values of 2 to 255, inclusive, for nnpfc mode ide are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_mode_idc in the range of 2 to 255, inclusive.
[0069] mipfc alignmcnt zcro bit a shall be equal to 0.
[0070] impfe tag uri contains a tag URI with syntax and semantics as specified in IETF RFC 4151 identifying the format and associated information about the neural network used as a base NNPF or an update relative to the base NNPF with the same nnpfc id value specified by nnpfc uri.
[0071] NOTE 3 - nnpfc_tag_uri enables uniquely identifying the format of neural network data specified by nnpfc uri without needing a central registration authority.
[0072] impfe tag uri equal to "tag:iso.org, 2023:15938-17" indicates that the neural network data identified by nnpfc uri conforms to ISO / IEC 15938-17.
[0073] nnpfc uri contains a URI with syntax and semantics as specified in IETF Internet Standard 66 identifying the neural network used as a base NNPF or an update relative to the base NNPF with the same nnpfc id value.
[0074] nnpfc_property_present_flag equal to 1 specifies that syntax elements related to the filter properties including purpose, input formatting, output formatting, and complexity are present. nnpfc_property_present_flag equal to 0 specifies that no syntax elements related to the filter properties are present.
[0075] When nnpfc base flag is equal to 1, nnpfc_property_present_flag shall be equal to 1.
[0076] When nnpfc_property_present_flag is equal to 0. the values of all syntax elements that may be present only when impfc_property_present_flag is equal to 1 are inferred to be equal to their corresponding syntax elements, respectively, in the NNPFC SEI message that contains the base NNPF for which this SEI message provides an update.
[0077] When an NNPFC SEI message nnpfcCurr is not the first NNPFC SEI message, in decoding order, that has a particular nnpfc id value w ithin the current CLVS, is not a repetition of the first NNPFC SEI message with that particular nnpfc id value (in this case the value of nnpfc base flag is equal to 0), and the value of nnpfe property present flag is equal to 1, the following constraints apply:P24102478901WO1; G25N22727W (4824-71201)The values of syntax elements following nnpfc jrropcrty present flag and preceding nnpfc complexity info prcsent flag. in decoding order, in the NNPFC SEI message shall be the same as the values of corresponding syntax elements in the first NNPFC SEI message, in decoding order, that has that particular nnpfc id value within the current CL VS.- Either nnpfc_complexity_info_present_flag shall be equal to 0 or both nnpfc_complexity_info_present_flag shall be equal to 1 in the first NNPFC SEI message, in decoding order, that has that particular nnpfc id value within the current CLVS (denoted as nnpfcBase below) and all the following constraints apply:- nnpfc_paramctcr_typc_idc in nnpfcCurr shall be equal to mipfc_paramctcr_typc_idc in nnpfcBase.- nnpfc_log2_parameter_bit_length_minus3 in nnpfcCurr, when present, shall be less than or equal to nnpfc log2_parameter bit length minus3 in nnpfcBase.- If nnpfc_num_parameters_idc in nnpfcBase is equal to 0, nnpfc_num_parameters_idc in nnpfcCurr shall be equal to 0.Otherwise (nnpfc_num_parameters_idc in nnpfcBase is greater than 0), nnpfc_num_parameters_idc in nnpfcCurr shall be greater than 0 and less than or equal to nnpfc_num_parameters_idc in nnpfcBase.If nnpfc num kmac operations idc in nnpfcBase is equal to 0, nnpfc num kmac operations idc in nnpfcCurr shall be equal to 0.- Otherwise (nnpfc num kmac operations idc in nnpfcBase is greater than 0), nnpfc num kmac operations idc in nnpfcCurr shall be greater than 0 and less than or equal to nnpfc num kmac operations idc in nnpfcBase.If nnpfc total kilobyte size in nnpfcBase is equal to 0, nnpfc total kilobyte size in nnpfcCurr shall be equal to 0.- Otherwise (nnpfc total kilobyte size in nnpfcBase is greater than 0), nnpfc total kilobyte size in nnpfcCurr shall be greater than 0 and less than or equal to nnpfc total kilobyte size in nnpfcBase.
[0078] nnpfc_num_input_pics_minus 1 plus 1 specifies the number of pictures used as input for the NNPF. The value of nnpfe num input _pics_minus I shall be in the range of 0 to 63, inclusive. When PictureRateUpsamplingFlag is equal to 1, the value of nnpfe num input _pics_minus 1 shall be greater than 0.
[0079] The variable numlnputPics, specifying the number of pictures used as input for the NNPF. is derived as follows: numlnputPics = nnpfc_num_input_pics_minus 1 + 1 (76)
[0080] nnpfc_inpiit_pic_filtering_flag| i ] equal to 1 indicates that for the i-th input picture the NNPF generates a corresponding output picture. mipfc_input_pic_filtering_flag[ i ] equal to 0 indicates that for the i-th input picture the NNPF does not generate a corresponding output picture. Each NNPF-generated picture is stored in the output tensor of the NNPF. When nnpfc_num_input_pics_minus 1 is equal to 0, rmpfc_input_pic_filtering_flag
[0000] is inferred to be equal to 1. When PictureRateUpsamplingFlag is equal to 0P24102478901WO1; G25N22727W (4824-71201) and impfc_num_input_pics_minus 1 is greater than 0, mipfc_input_pic_filtering_flag[ i ] shall be equal to 1 for at least one value of i in the range of 0 to nnpfc_num_input_pics_minusl, inclusive.
[0081] impfc absent inputjic zero flag equal to 1 indicates that the NNPF expects an input picture that is not present in CandInputPicList[ SeiProcStgldx ] to be represented by sample arrays with sample values equal to 0. nnpfc_absent_input_pic_zero_flag equal to 0 indicates that the NNPF expects an input picture inputPicA that is not present in CandlnputPicListf SeiProcStgldx ] to be represented by the input picture inputPicB that is the closest to inputPicA in output order and is present in CandlnputPicListf SeiProcStgldx ].
[0082] impfc out sub c flag specifies the values of the variables outSubWidthC and outSubHeightC when ChromaUpsamplingFlag is equal to 1. nnpfc out sub c flag equal to 1 specifies that outSubWidthC is equal to1 and outSubHeightC is equal to 1. impfc out sub c flag equal to 0 specifies that outSubWidthC is equal to 2 and outSubHeightC is equal to 1. When ChromaFormatldc is equal to 2 and impfc out sub c flag is present, the value of nnpfc_out_sub_c_flag shall be equal to 1.
[0083] impfc out colour fomiat idc, when ColourizationFlag is equal to 1, specifies the colour format of the NNPF -generated pictures and consequently the values of the variables outSubWidthC and outSubHeightC. nnpfc out colour format idc equal to 1 specifies that the colour format of the NNPF -generated pictures is the 4:2:0 format and outSubWidthC and outSubHeightC are both equal to 2. nnpfc out colour format idc equal to2 specifies that the colour format of the NNPF -generated pictures is the 4:2:2 format and outSubWidthC is equal to 2 and outSubHeightC is equal to 1. nnpfc out colour format idc equal to 3 specifies that the colour format of the NNPF -generated pictures is the 4:4:4 format and outSubWidthC and outSubHeightC are both equal to 1. The value of nnpfc out colour format ide shall not be equal to 0.
[0084] When ChromaUpsamplingFlag and ColourizationFlag are both equal to 0, outSubWidthC and outSubHeightC are inferred to be equal to SubWidthC and SubHeightC, respectively.
[0085] nnpfc_pic width num minus 1 plus 1 and impfc_pic_width_denom_minus 1 plus 1 specify the numerator and denominator, respectively, for the resampling ratio of the width of the NNPF -generated pictures relative to CroppedWidth. Both nnpfc _pic_width_num_minus 1 and rmpfc_pic_width_denom_minus 1 shall be in the range of 0 to 65 535, inclusive.
[0086] The value of ( rpfc_pic_width_num_minusl + 1 ) -^ ( nnpfc_pic_width_denom_minus 1 + 1 ) shall be in the range of 1 16 to 16, inclusive. When mipfc_pic_width_num_minusl and nnpfc jic width denom minus 1 are not present, the values of nnpfc _pic_width_num_minus 1 and nnpfc jic width denom minus 1 are both inferred to be equal to 0.
[0087] The variable nnpfcOutputPicWidth, representing the width of the luma sample arrays of the NNPF- generated pictures, is derived as follows: nnpfcOutputPicWidth = Ccil( CroppedWidth * (77)( nnpfc_pic_width_num_minusl + 1 ) -^ ( nnpfc_pic_width_denom_minus 1 + 1 ) )When SpatialExtrapolation is equal to 1, nnpfcOutputPicWidth is updated as follows:P24102478901WO1; G25N22727W (4824-71201) nnpfcOutputPicWidth += outSubWidthC * ( nnpfc_spatial_extrapolation_left_offset + (77) nnpfc_spatial_extrapolation_right_offset )
[0088] It is a requirement of bitstream conformance that nnpfcOutputPicWidth shall be greater than 0 and nnpfcOutputPicWidth % outSubWidthC shall be equal to 0.
[0089] nnpfc_pic_height_num_minus I plus 1 and nnpfc_pic_height_denom_minus I plus 1 specify the numerator and denominator, respectively, for the resampling ratio of the height of the NNPF-generated pictures relative to CroppedHeight. Both nnpfc_pic_height_num_minusl and mrpfc_pic_height_denom_minus 1 shall be in the range of 0 to 65 535, inclusive.
[0090] The value of ( nnpfc_pic_height_num_minus 1 + 1 ) ( nnpfc_pic_height_denom_minus 1 + 1 ) shall be in the range of 1 ^- 16 to 16, inclusive. When nnpfc_pic_height_num_minus I and impfc_pic_height_denom_minusl are not present, the values of nnpfc_pic_height_num_minus I and nnpfc pic hcight dcnom minus I arc both inferred to be equal to 0.
[0091] The variable nnpfcOutputPicHeight, representing the height of the luma sample arrays of the NNPF- generated pictures, is derived as follows: nnpfcOutputPicHeight = Ceil( CroppedHeight *(78)( nnpfc jjic height num minus 1 + 1 ) ( nnpfc_pic_height_denom_minus 1 + 1 ) )
[0092] When SpatialExtrapolation is equal to 1, nnpfcOutputPicHeight is updated as follows: nnpfcOutputPicHeight += outSubHeightC * ( nnpfc spatial extrapolation top offset + (78) nnpfc spatial extrapolation bottom offset )
[0093] It is a requirement of bitstream conformance that nnpfcOutputPicHeight shall be greater than 0 and nnpfcOutputPicHeight % outSubHeightC shall be equal to 0.
[0094] When ResolutionResamplingFlag is equal to 1. at least one the following conditions shall be true:- The value of nnpfcOutputPicWidth is not equal to CroppedWidth.The value of nnpfcOutputPicHeight is not equal to CroppedHeight.SpatialExtrapolationFlag is equal to 1.
[0095] nnpfc_interpolated_pics[ i ] specifies the number of interpolated pictures generated by the NNPF between the i-th and the ( i + 1 )-th input picture for the NNPF. The value of nnpfc_interpolated_pics[ i ] shall be in the range of 0 to 63, inclusive. When the nnpfc_interpolated_pics[ i ] syntax elements are present, the value of nnpfc_interpolated_pics[ i ] shall be greater than 0 for at least one value of i in the range of 0 to nnpfc_num_input_pics_minus 1 - 1, inclusive.
[0096] NOTE 4 -When PictureRateUpsamplingFlag is equal to 1 for an NNPF and the NNPFA SEI message that activated this NNPF has nnpfa_persistence_flag equal to 1, only for a single value of i in the range of 0 to numlnputPics - 1, inclusive, the value of nnpfc interpolated_pics[ i ] is greater than 0.P24102478901WO1; G25N22727W (4824-71201)
[0097] rmpfc_extrapolated_pics_minus 1 plus 1 specifies the number of extrapolated pictures generated by the NNPF subsequent to all input pictures for the NNPF in output order. The value of nnpfc_extrapolated_pics_minus 1 shall be in the range of 0 to 62, inclusive.
[0098] The variables NumlnpPicsInOutputTensor, specifying the number of pictures that have a corresponding input picture and are present in the output tensor of the NNPF, Inpldx[ idx ], specifying the input picture index, to the list of input pictures in reverse output order, of the idx-th picture that is present in the output tensor of the NNPF and has a corresponding input picture, and numPicsInOutputTensor, specifying the total number of pictures present in the output tensor of the NNPF, are derived as follows: for( i = 0. numPicsInOutputTensor = 0; i < numlnputPics; i++ ) if( nnpfc_input_pic_filtering _flag[ i ] ) { Inpldx[ numPicsInOutputTensor ] = i numPicsInOutputTensor++} (79)NumlnpPicsInOutputTensor = numPicsInOutputTensor if( PictureRateUpsamplingFlag ) for( i = 0; i <= numlnputPics - 2; i++ ) numPicsInOutputTensor += nnpfc_interpolated_pics[ i ] if( TemporalExtrapolationFlag ) numPicsInOutputTensor += nnpfc_extrapolated_pics + 1
[0099] nnpfc spatial extrapolation left offset, nnpfc spatial extrapolation right offset, nnpfc spatial extrapolation top offset, and nnpfc spatial extrapolation bottom offset specify the spatial extrapolation area. The luma samples with horizontal picture coordinates from outSubWidthC * impfc spatial extrapolation left offset to nnpfcOutputPicWidth - ( outSubWidthC * impfc spatial extrapolation right offset ) and vertical picture coordinates from outSubHeightC * nnpfc spatial extrapolation top offset to nnpfcOutputPicHeight - ( outSubHeightC * nnpfc spatial extrapolation bottom offset ) correspond to the spatial area of the input picture. The value of nnpfc spatial extrapolation left offset, nnpfc spatial extrapolation right offset, nnpfc_spatial_ extrapolation_top_offset and nnpfc spatial extrapolation bottom offset shall be in the range of -65 536 to 65 536, inclusive. At least one of nnpfc_spatial_extrapolation_left_offset, impfc spatial extrapolation right offset, nnpfc spatial extrapolation top offset and nnpfc spatial extrapolation bottom offset shall be greater than 0.
[0100] nnpfc_spatial_extrapolation_prompt_present_flag equal to 1 specifies that nnpfc_prompt syntax element is present and nnpfc_alignment_zero_bit_c syntax element may be present. impfc_spatial_extrapolation_prompt_present_flag equal to 0 specifies that nnpfcjirompt syntax element and nnpfc alignment zero bit c syntax element are not present.P24102478901WO1; G25N22727W (4824-71201)
[0101] nnpfc alignment zero bit c shall be equal to 0.
[0102] impfc_prompt specifies the text string prompt used for generating the contents of the spatial extrapolation image area. When nnpfc spatial extrapolation prompt present flag is equal to 1, nnpfc_prompt shall not be a null string.
[0103] nnpfc component last flag equal to 1 indicates that the last dimension in the input tensor inputTcnsor to the NNPF and the output tensor outputTcnsor of the NNPF is used for a current channel, nnpfc component last flag equal to 0 indicates that the third dimension in the input tensor inputTensor to the NNPF and the output tensor outputTensor of the NNPF is used for a current channel.
[0104] NOTE 5 - The first dimension in the input tensor and in tire output tensor is used for the batch index, which is a common practice in some neural network frameworks. While the equations in the semantics of this SEI message use the batch size corresponding to the batch index equal to 0, it is up to the post-processing implementation to determine the batch size used as the input to the neural network inference process.
[0105] NOTE 6 - For example, when nnpfc inp order ide is equal to 3 and nnpfc auxiliary inp ide is equal to 1, there are 7 channels in the input tensor, including four luma matrices, two chroma matrices, and one auxiliary input matrix. In this case, the process DeriveInputTensors( ) would derive each of these 7 channels of the input tensor one by one, and when a particular channel of these channels is processed, that channel is referred to as the current channel during the process.
[0106] nnpfe inp format ide indicates the method of converting a sample value of the input picture to an input value to the NNPF. The value of nnpfe inp format ide shall be in the range of 0 to 255, inclusive. Values of nnpfe inp format ide in the range of 2 to 255, inclusive, are reserved for future specification by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfe inp format ide in the range of 2 to 255, inclusive.
[0107] When nnpfe inp format ide is equal to 0. the input values to the NNPF are real numbers and the functions InpY( ) and InpC( ) are specified as follows:InpY( x ) = x - ( ( 1 « BitDepthy ) - 1 )(80)InpC( x )= x ( ( 1 « BitDepthc ) - 1 )(81)
[0108] When nnpfe inp format ide is equal to 1, the input values to the NNPF are unsigned integer numbers and the functions InpY( ) and InpC( ) are specified as follows: shiftY = BitDepthY — inpTensorBitDepthY if( inpTensorBitDepthY >= BitDepthY)InpY( x ) = x « ( inpTensorBitDepthY - BitDepthY ) (82)P24102478901WO1; G25N22727W (4824-71201) elseInpY( x ) = Clip3(0, ( 1 « inpTensorBitDepthY ) - 1, ( x + ( 1 « ( shiftY - 1 ) ) ) » shiftY ) shiftC = BitDepthC - inpTensorBitDepthC if( inpTensorBitDepthC >= BitDepthC )InpC( x ) = x « ( inpTensorBitDepthC - BitDepthC ) (83) elseInpC( x ) = Clip3(0, ( 1 « inpTensorBitDepthC ) - l, ( x + ( l « ( shiftC - 1 ) ) ) » shiftC )
[0109] The variable inpTensorBitDepthY is derived from the syntax element nnpfc_inp_tensor_luma_bitdepth_minus8 as specified below. The variable inpTensorBitDepthC is derived from the syntax element mrpfc_inp_tensor_chroma_bitdepth_minus8 as specified below.
[0110] nnpfc auxiliary inp idc greater than 0 indicates that auxiliary input data is present in the input tensor of the NNPF. nnpfc auxiliary inp idc equal to 0 indicates that auxiliary input data is not present in the input tensor, nnpfc auxiliary inp idc equal to 1, 2 or 3 specifies that auxiliary input data is derived as specified in Equation 95.
[0111] When nnpfc auxiliary inp idc is equal to 2 or 3, nnpfc_spatial_extrapolation_prompt_present_flag shall be equal to 1.
[0112] The value of nnpfc auxiliary inp idc shall be in the range of 0 to 255, inclusive. Values of 2 to 255, inclusive, for nnpfc auxiliary inp idc are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_auxiliary_inp_idc in the range of 4 to 255. inclusive.
[0113] When nnpfc auxiliary inp idc is equal to 1 tire auxiliary input data consists of strengthControlScaledVal[ i ].
[0114] When nnpfc auxiliary inp idc is equal to 2 the auxiliary input data consists of nnpfc_prompt character values.
[0115] When nnpfc auxiliary inp idc is equal to 3, the auxiliary input data consists of strengthControlScaledVal[ i ] and nnpfc_prompt character values.
[0116] nnpfc inp order idc indicates the method of ordering the sample arrays of an input picture to form an input tensor to the NNPF.
[0117] The value of nnpfc inp order idc shall be in the range of 0 to 255, inclusive. Values of 4 to 255, inclusive, for nnpfc inp order idc are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc inp order idc in the range of 4 to 255, inclusive.
[0118] When ChromaFonnatldc is not equal to 1, nnpfc inp order idc shall not be equal to 3.
[0119] When ChromaFonnatldc is equal to 0, nnpfc inp order idc shall be equal to 0.
[0120] When ChromaUpsamplingFlag is equal to 1, nnpfc inp order idc shall not be equal to 0.P24102478901WO1; G25N22727W (4824-71201)
[0121] Table 2 contains an informative description of nnpfc inp order idc values.Table 2 - Description of nnpfc inp order idc valuesP24102478901WO1; G25N22727W (4824-71201)
[0122] FIG. 1 is an example mechanism for deriving the four luma charnels (right) from the luma component (left) when nnpfc inp order idc is equal to 3.
[0123] nnpfc_inp_tensor_luma_bitdepth_minus8 plus 8 specifies the bit depth of luma sample values in the input integer tensor. The value of inpTensorBitDepthY is derived as follows: inpTensorBitDepthy = nnpfc_inp_tensor_luma_bitdepth_minus8 + 8 (84)
[0124] ft is a requirement of bitstream conformance that the value of nnpfc_inp_tensor_luma_bitdepth_minus8 shall be in the range of 0 to 24, inclusive.
[0125] nnpfc_inp_tensor_chroma_bitdepth_minus8 plus 8 specifies the bit depth of chroma sample values in the input integer tensor. The value of inpTensorBitDepthC is derived as follows: inpTensorBitDepthc = nnpfc_inp_tensor_chroma_bitdepth_minus8 + 8 (85)
[0126] ft is a requirement of bitstream conformance that the value of nnpfc inp tensor chroma bitdepth minus 8 shall be in the range of 0 to 24. inclusive.
[0127] nnpfc out format idc equal to 0 indicates that the sample values output by the NNPF are real numbers where the value range of 0 to 1, inclusive, maps linearly to the unsigned integer value range of 0 to ( 1 « bitDcpth ) - 1, inclusive, for any desired bit depth bitDcpth for subsequent post-processing or displaying.
[0128] nnpfc out format idc equal to 1 indicates that the luma sample values output by the NNPF are unsigned integer numbers in the range of 0 to ( 1 « outTensorBitDepthY ) - 1, inclusive, and the chroma sample values output by the NNPF are unsigned integer numbers in the range of 0 to ( 1 « outTensorBitDepthC ) - 1, inclusive.
[0129] The value of nnpfc out format idc shall be in the range of 0 to 255, inclusive. Values of 2 to 255, inclusive, for nnpfc out format idc are reserved for future specification by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc out format idc in the range of 2 to 255, inclusive.
[0130] nnpfc_out_order_idc indicates the output order of samples resulting from the NNPF.
[0131] The value of nnpfe out order ide shall be in the range of 0 to 255, inclusive. Values of 4 to 255, inclusive, for nnpfe out order ide are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfe out order ide in the range of 4 to 255, inclusive.
[0132] When ChromaUpsamplingFlag is equal to 1, nnpfe out order ide shall not be equal to 0 or 3.
[0133] When ColourizationFlag is equal to 1, nnpfe out order ide shall not be equal to 0.
[0134] Table 3 contains an informative description of nnpfe out order ide values.P24102478901WO1; G25N22727W (4824-71201)Table 3 - Description of nnpfc out order idc values
[0135] nnpfc out tensor luma bitdepth minus 8 plus 8 specifies the bit depth of luma sample values in the output integer tensor. The value of nnpfc_out_tensor_luma_bitdepth_minus8 shall be in the range of 0 to 24, inclusive. The value of outTensorBitDepthY is derived as follows: outTensorBitDepthy = nnpfc_out_tensor_luma_bitdepth_minus8 + 8 (86)
[0136] nnpfc_out_tensor_chroma_bitdepth_minus8 plus 8 specifies the bit depth of chroma sample values in the output integer tensor. The value of nnpfc_out_tensor_chroma_bitdepth_minus8 shall be in the range of 0 to 24, inclusive. The value of outTensorBitDepthC is derived as follows: outTensorBitDepthc = nnpfc_out_tensor_chroma_bitdepth_minus8 + 8 (87)
[0137] When BitDepthUpsamplingFlag is equal to 1, the value of nnpfc out format idc shall be equal to 1 and at least one of the following conditions shall be true:- nnpfc_out_tensor_luma_bitdepth_minus8 is present and outTensorBitDepthy is greater than BitDepthy.- nnpfc_out_tensor_chroma_bitdepth_minus8 is present and outTensorBitDepthc is greater than BitDepthc.
[0138] When nnpfc_inp_tensor_luma_bitdepth_minus8, nnpfc_inp_tensor_chroma_bitdepth_minus8, nnpfc_out_tensor_luma_bitdepth_minus8, and mipfc_out_tensor_chroma_bitdepth_minus8 are present and outTensorBitDepthy is greater than inpTensorBitDepthY, outTensorBitDepthc shall not be less than inpTensorBitDepthC. When nnpfc_inp_tensor_luma_bitdepth_minus8, nnpfc inp tensor chroma bitdepth _minus8, nnpfc_out_tensor_luma_bitdepth_minus8, andnnpfc_out_tensor_chroma_bitdepth_minus8 are present and outTensorBitDepthc is greater than inpTensorBitDepthC, outTensorBitDepthY shall not be less than inpTensorBitDepthY.
[0139] nnpfc_separate_colour_description_present_flag equal to 1 indicates that a distinct combination of colour primaries, transfer characteristics, matrix coefficients, and scaling and offset values applied in association with the matrix coefficients for the picture resulting from the NNPF is specified in the SEI message syntax structure. nnpfc_separate_colour_description_present flag equal to 0 indicates that the combination of colourP24102478901WO1; G25N22727W (4824-71201) primaries, transfer characteristics, matrix coefficients, and scaling and offset values applied in association with the matrix coefficients for the picture resulting from the NNPF is the same as implied by the VUI parameters vui_colour_primaries, vui tranfer characteristics, vui matrix coeffs, and vui full range flag that are indicated or inferred for the CLVS.
[0140] nnpfc_colour_primaries has the same semantics as specified in clause 7.3 for the vui_colour_primaries syntax element, except as follows:- nnpfc colour rimaries specifies the colour primaries of the picture resulting from applying the NNPF specified in the SEI message, rather than the colour primaries used for the CLVS.- When nnpfc_colour_primaries is not present in the NNPFC SEI message, the value of nnpfc_colour_primaries is inferred to be equal to vui_colour_primaries.
[0141] nnpfc transfer characteristics has the same semantics as specified in clause 7.3 for the vui_transfer_characteristics syntax element, except as follows:- nnpfc transfer characteristics specifies the transfer characteristics of the picture resulting from applying the NNPF specified in the SEI message, rather than the transfer characteristics used for the CLVS.- When nnpfc transfer characteristics is not present in the NNPFC SEI message, the value of nnpfc transfer characteristics is inferred to be equal to vui transfer characteristics.
[0142] nnpfc matrix coeffs describes the equations used in deriving luma and chroma signals from the green, blue, and red, or Y, Z, and X primaries. Its semantics apply to the pictures resulting from applying the NNPF specified in this SEI message and are as specified for MatrixCoefficients in Rec. ITU-T H.273 | ISO / IEC 23091-2 with BitDepthY and BitDepthC being equal to outTensorBitDepthY and outTensorBitDepthC. respectively.
[0143] When nnpfc matrix coeffs is not present in the NNPFC SEI message, the value of nnpfc matrix coeffs is inferred to be equal to vui_matrix_cocffs.
[0144] nnpfc matrix coeffs shall not be equal to 0 unless both of the following conditions are true:- nnpfc_out_tensor_chroma_bitdepth_minus8 is equal to nnpfc_out_tensor_luma_bitdepth_minus8.- nnpfe out order ide is equal to 2, outSubHeightC is equal to 1, and outSubWidthC is equal to 1.
[0145] nnpfc matrix coeffs shall not be equal to 8 unless one of the following conditions is true:- impfc_out_tensor_chroma_bitdepth_minus8 is equal to nnpfc_out_tensor_luma_bitdepth_minus8.- nnpfc_out_tensor_chroma_bitdepth_minus8 is equal to mipfc_out_tensor_luma_bitdepth_minus8 + 1. nnpfc out order ide is equal to 2, outSubHeightC is equal to 1, and outSubWidthC is equal to 1.
[0146] nnpfc full range flag indicates the scaling and offset values applied in association with the matrix coefficients as specified by nnpfc matrix coeffs. Its semantics are as specified for the VideoFullRangeFlag parameter in Rcc. ITU-T H.273 | ISO / IEC 23091-2. When not present, the value of nnpfc_full_rangc_flag is inferred to be equal to 0.P24102478901WO1; G25N22727W (4824-71201)
[0147] nnpfc_chroma_loc_info_present_flag equal to 1 indicates the presence of the impfc chroma sample loc type frame syntax element in the NNPFC SEI message. nnpfc chromaJoc infO prcscnt flag equal to 0 indicates the absence of the nnpfc chroma sample loc type frame syntax element in the NNPFC SEI message. When nnpfc_chroma_loc_info_present_flag is not present, its value is inferred to be equal to 0. When ColourizationFlag is equal to 0 or rmpfc out colour format idc is not equal to 1, the value of nnpfc_chroma_loc_info_present_flag shall be equal to 0.
[0148] impfc chroma sample loc type frame, when not equal to 6 and impfc out colour fonnat idc is equal to 1. specifies the location of chroma samples of the output pictures, nnpfc chroma sample loc type frame equal to 6 and nnpfc out colour format idc equal to 1 indicates that the location of the chroma samples is unknown or unspecified or specified by other means not specified in this Specification. The value of nnpfc chroma sample loc type frame shall be in the range of 0 to 6, inclusive.
[0149] impfc overlap indicates the overlapping horizontal and vertical sample counts of adjacent input tensors of the NNPF. The value of impfc overlap shall be in the range of 0 to 16 3X3. inclusive. When SpatialExtrapolationFlag is equal to 1, impfc overlap is inferred to be equal to 0.
[0150] nnpfc_constant_patch_size_flag equal to 1 indicates that the NNPF accepts exactly the patch size indicated by rmpfc_patch_width_minusl and impfc _patch_height_minus 1 as input. nnpfc_constant_patch_size_flag equal to 0 indicates that the NNPF accepts as input any patch size with width inpPatchWidth and height inpPatchHeight such that the width of an extended patch (i.e.. a patch plus the overlapping area), which is equal to inpPatchWidth + 2 * impfc overlap, is a positive integer multiple of nnpfc_extended_patch_width_cd_delta_minus 1 + 1 + 2 * nnpfc overlap, and the height of the extended patch, which is equal to inpPatchHeight + 2 * nnpfc_overlap, is a positive integer multiple of impfc_cxtcndcd_patch_hcight_cd_dclta_minusl + 1 + 2 * impfc overlap. When SpatialExtrapolationFlag is equal to 1, impfc_constant_patch_size_flag is inferred to be equal to 1.
[0151] impfc_patch_width_minus 1 plus 1, when nnpfc_constant_patch_size_flag equal to 1, indicates the horizontal sample counts of the patch size required for the input to the NNPF. The value of impfc_patch_width_minusl shall be in the range of 0 to Min( 32 766, CroppedWidth - 1 ), inclusive. When SpatialExtrapolationFlag is equal to 1, nnpfc_patch_width_minusl is inferred to be equal to CroppedWidth - 1.
[0152] impfc patch hcight minus 1 plus 1, when nnpfc_constant_patch_size_flag equal to 1, indicates the vertical sample counts of the patch size required for the input to the NNPF. The value of nnpfc_patch_height_minus 1 shall be in the range of 0 to Min( 32 766, CroppedHeight - 1 ), inclusive. When SpatialExtrapolationFlag is equal to 1, impfc _patch_height_minus 1 is inferred to be equal to CroppedHeight - 1.
[0153] mipfc_cxtcndcd_patch_width_cd_dclta_minusl plus 1 plus 2 * nnpfc overlap, when nnpfc_constant_patch_size_flag equal to 0. indicates a common divisor of all allowed values of the width of anP24102478901WO1; G25N22727W (4824-71201) extended patch required for the input to the NNPF. The value of nnpfc_extended_patch_width_cd_delta_minus 1 shall be in the range of 0 to Min( 32 766, CroppedWidth - 1 ), inclusive.
[0154] nnpfc cxtcnded patch hcight cd dclta minus I plus 1 plus 2 * nnpfc overlap, when nnpfc constant _patch_size_flag equal to 0. indicates a common divisor of all allowed values of the height of an extended patch required for the input to the NNPF. The value of nnpfc_extended_patch_height_cd_delta_minus 1 shall be in the range of 0 to Min( 32 766, CroppedHeight - 1 ), inclusive.
[0155] Let the variables inpPatchWidth and inpPatchHeight be the patch size width and the patch size height, respectively.
[0156] If nnpfc_constant_patch_size_flag is equal to 0, the following applies:The values of inpPatchWidth and inpPatchHeight are either provided by external means not specified in this Specification or set by the post-processor itself.The value of inpPatchWidth + 2 * nnpfc overlap shall be a positive integer multiple of nnpfc_extended_patch_width_cd_delta_minusl + 1 + 2 * nnpfc overlap and inpPatchWidth shall be less than or equal to CroppedWidth. The value of inpPatchHeight + 2 * nnpfc overlap shall be a positive integer multiple of nnpfc_extended_patch_height_cd_delta_minus 1 + 1 + 2 * nnpfc overlap and inpPatchHeight shall be less than or equal to CroppedHeight.
[0157] Otherwise (nnpfc_constant_patch_size_flag is equal to 1), the value of inpPatchWidth is set equal to imp fc _patch_width_minus 1 + 1 and the value of inpPatchHeight is set equal to nnpfc_patch_height_minus 1 + 1.
[0158] The variables outPatchWidth. outPatchHeight, horCScaling, verCScaling, outPatchCWidth, and outPatchCHeight are derived as follows: outPatchWidth = ( nnpfcOutputPicWidth * inpPatchWidth ) / CroppedWidth (88) outPatchHeight = ( nnpfcOutputPicHeight * inpPatchHeight ) / CroppedHeight (89) horCScaling = SubWidthC / outSubWidthC (90) verCScaling = SubHeightC / outSubHeightC (91) outPatchCWidth = outPatchWidth * horCScaling (92) outPatchCHeight = outPatchHeight * verCScaling (93)
[0159] It is a requirement of bitstream conformance that outPatchWidth * CroppedWidth shall be equal to nnpfcOutputPicWidth * inpPatchWidth and outPatchHeight * CroppedHeight shall be equal to nnpfcOutputPicHeight * inpPatchHeight.
[0160] nnpfc_padding_type indicates the process of padding when referencing sample locations outside the boundaries of the input picture as described in Table 4. Hie value of nnpfc_padding_type shall be in the range of 0 to 15, inclusive. Values of 5 to 15, inclusive, for nnpfe padding type arc reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. DecodersP24102478901WO1; G25N22727W (4824-71201) conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_padding_type in the range of 5 to 15, inclusive.Table 4 - Informative description of nnpfc padding typc values
[0161] impfc_luma_padding_val indicates the luma value to be used for padding when nnpfc padding typc is equal to 4. The value of nnpfc_luma_padding_val shall be in the range of 0 to ( 1 « BitDepthY ) - 1. inclusive.
[0162] nnpfc cb padding val indicates the Cb value to be used for padding when nnpfc padding typc is equal to 4. The value of nnpfc_cb_padding_val shall be in the range of 0 to ( 1 « BitDepthC ) - 1, inclusive.
[0163] nnpfc_cr_padding_val indicates the Cr value to be used for padding when nnpfc_padding_type is equal to 4. The value of nnpfc_cr_padding_val shall be in the range of 0 to ( 1 « BitDepthC ) - 1. inclusive.
[0164] The function InpSampleVal( y, x, picHeight, picWidth, croppedPic, cldx ) with inputs being a vertical sample location y, a horizontal sample location x, a picture height picHeight, a picture width picWidth, sample array croppedPic. and component index cldx (equal to 0 for luma, 1 for Cb, and 2 for Cr) returns the value of sampleVal derived as follows:
[0165] NOTE 7 - For the inputs to the function InpSampleVal( ), the vertical location is listed before the horizontal location for compatibility with input tensor conventions of some inference engines. if( nnpfc _padding_typc = = 0 ) if( y < 0 | | x < 0 | | y >= picHeight | | x >= picWidth ) sampleVal = 0 else sampleVal = croppedPic [ x ] [ y ] (94) else if( nnpfc padding typc = = 1 ) sampleVal = croppedPic) Clip3( 0, picWidth - 1, x ) ][ Clip3( 0, picHeight - 1, y ) ] else if( nnpfc_padding_type = = 2 ) sampleVal = croppedPic) Reflect) picWidth - 1, x ) ][ Reflect) picHeight - 1, y ) ] else if( impfc_padding_type = = 3 ) if( y >= 0 && y < picHeight )P24102478901WO1; G25N22727W (4824-71201) sampleVal = croppedPic[ Wrap( picWidth - 1, x ) ][ y ] else if( nnpfc_padding_type = = 4 ) if( y < 0 | | x < 0 | | y >= picHeight | | x >= picWidth ) sampleVal = ( cldx = = 0 ? nnpfc_luma_padding_val :( cldx = = 1 ? nnpfc_cb_padding_val : nnpfc_cr_padding_val ) ) else sampleVal = croppedPic[ x ][ y ]
[0166] When nnpfc auxiliary inp idc is equal to 1, the variable strengthControlScaledVal is derived as follows: for( i = (); i < numlnputPics; i++ ) if( nnpfc inp format idc = = 1 ) (95) if( nnpfc inp order idc = = 0 | | nnpfc inp order idc = = 2 | | nnpfc inp order idc = = 3 ) strengthControlScaledVal[ i ] =Floor ( StrengthControlValf i ] * ( ( 1 « inpTensorBitDepthy ) - 1 ) ) else if( nnpfc inp order idc = = 1 ) strengthControlScaledVal [ i ] =Floor ( StrengthControlValf i ] * ( ( 1 « inpTensorBitDepthc ) - 1 ) ) else strengthControlScaledVal) i ] = StrengthControlValf i ]
[0167] A patch is a rectangular array of samples from a component (e.g., a luma or chroma component) of a picture.
[0168] The process DeriveInputTensors( ), for deriving the input tensor inputTensor for a given vertical sample coordinate cTop and a horizontal sample coordinate cLeft specifying the top-left sample location for the patch of samples included in the input tensor, is specified as follows: for( i = 0; i < numlnputPics; i++ ) { if( nnpfc inp order idc = = 0 ) for( yP = -nnpfc overlap; yP < inpPatchHeight + nnpfc overlap; yP++) for( xP = -nnpfc_overlap; xP < inpPatchWidth + nnpfc_overlap; xP++ ) { inpVal = InpY( InpSampleVal( cTop + yP, cLeft + xP, CroppedHeight,CroppedWidth. CroppedYPicf i ], 0 ) ) promptCharVal = utf8ToUInt( nnpfc prompt ) yPovlp = yP + nnpfc overlap xPovlp = xP + nnpfc overlap if( !nnpfc_component_last_flag )P24102478901WO1; G25N22727W (4824-71201) inputTensor
[0000] [ i ]
[0000] [ yPovlp ][ xPovlp ] = inpVal else inputTensorf 0 ][ i ][ yPovlp ][ xPovlp ]
[0000] = inpVal if( nnpfc auxiliary inp idc = = 1 1 1 nnpfc auxiliary inp idc = = 3) if( !nnpfc_component_last_flag ) inputTensor
[0000] [ i ]
[0001] [ yPovlp ][ xPovlp ] = strengthControlScaledVal[ i ] else inputTcnsor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0001] = strcngthControlScalcdVal[ i ] if( nnpfc auxiliary inp idc = = 2 1 1 nnpfc auxiliary inp idc = = 3) if( !nnpfc component last flag ) inputTensor
[0000] [ i || nnpfc auxiliary inp idc - 1 ][ yPovlp ][ xPovlp ] = promptCharVal else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ][ nnpfc auxiliary inp idc - 1 ] = promptCharVal } else if( nnpfc inp order idc = = 1 ) (96) for( yP = -nnpfc overlap; yP < inpPatcliHeight + nnpfc overlap; yP++) for( xP = -nnpfc overlap; xP < inpPatchWidth + nnpfc overlap; xP++ ) { inpCbVal = InpC( InpSampleVal( cTop + yP, cLeft + xP, CroppedHeight / SubHeightC,CroppedWidth / SubWidthC, CroppedCbPicf i ], 1 ) ) inpCrVal = InpC( InpSampleVal( cTop + yP, cLeft + xP. CroppedHeight / SubHeightC,CroppedWidth / SubWidthC, CroppedCrPicf i ], 2 ) ) promptCharVal = utf8ToUInt( nnpfc prompt ) yPovlp = yP + nnpfc overlap xPovlp = xP + nnpfc overlap if( !nnpfc_component_last_flag ) { inputTensorf 0 ][ i ]
[0000] [ yPovlp ][ xPovlp ] = inpCbVal inputTensor
[0000] [ i ]
[0001] [ yPovlp ][ xPovlp ] = inpCrVal} else { inputTcnsor, 0 ][ i ][ yPovlp ][ xPovlp ]
[0000] = inpCbVal inputTensorf 0 ][ i ][ yPovlp ][ xPovlp ]
[0001] = inpCrVal} if( nnpfc auxiliary inp idc = = 1 1 1 nnpfc auxiliary inp idc = = 3) if( !nnpfc_component_last_flag ) inputTensor
[0000] [ i ]
[0002] [ yPovlp ][ xPovlp ] = strengthControlScaledVal[ i ] else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0002] = strengthControlScaledVal[ i ]P24102478901WO1; G25N22727W (4824-71201) if( nnpfc auxiliary inp idc = = 2 1 1 nnpfc auxiliary inp idc = = 3) if( !impfc_component_last_flag ) inputTensor
[0000] [ i ] [ nnpfc auxiliary inp idc ][ yPovlp ][ xPovlp ] = promptCharVal else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ][ nnpfc auxiliary inp idc ] = promptCharVal } else if( nnpfc inp order idc = = 2 ) for( yP = -nnpfc ovcrlap; yP < inpPatchHcight + nnpfc ovcrlap; yP++) for( xP = -nnpfc overlap; xP < inpPatchWidth + mrpfc o verlap; xP++ ) { yY = cTop + yP xY = cLeft + xP yC = yY / SubHeightC xC = xY / SubWidthC inpYVal = InpY( InpSampleVal( yY, xY, CroppedHeight,CroppedWidth. CroppedYPic[ i ], 0 ) ) inpCbVal = InpC( InpSampleVal( yC, xC, CroppedHeight / SubHeightC,CroppedWidth / SubWidthC, CroppedCbPic[ i ], 1 ) ) inpCrVal = InpC( InpSampleVal( yC, xC, CroppedHeight / SubHeightC,CroppedWidth / SubWidthC, CroppedCrPic[ i ], 2 ) ) promptCharVal = utf8ToUInt( nnpfc_prompt ) yPovlp = yP + nnpfc overlap xPovlp = xP + impfc overlap if( Innpfc component last flag ) { inputTensor
[0000] [ i ]
[0000] [ yPovlp ][ xPovlp ] = inpYVal inputTensor
[0000] [ i ]
[0001] [ yPovlp ][ xPovlp ] = inpCbVal inpuflensorf 0 ][ i ]
[0002] [ yPovlp ][ xPovlp ] = inpCrVal} else { inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0000] = inpYVal inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0001] = inpCbVal inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0002] = inpCrVal} if( nnpfc auxiliary inp idc = = 1 1 1 nnpfc auxiliary inp idc = = 3) if( Innpfc component last flag ) inputTensor
[0000] [ i ]
[0003] [ yPovlp ][ xPovlp ] = strengthControlScaledVal[ i ] else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0003] = strengthControlScaledVal[ i ]P24102478901WO1; G25N22727W (4824-71201) if( nnpfc auxiliary inp idc = = 2 1 1 nnpfc auxiliary inp idc = = 3) if( !impfc_component_last_flag ) inputTensor
[0000] [ i ] [ nnpfc auxiliary inp idc + 1 ][ yPovlp ][ xPovlp ] = promptCharVal else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ][ nnpfc auxiliary inp idc + 1 ] = promptCharVal } else if( nnpfc inp order idc = = 3 ) for( yP = -nnpfc ovcrlap; yP < inpPatchHcight + nnpfc ovcrlap; yP++) for( xP = -nnpfc overlap; xP < inpPatchWidth + nnpfc o verlap; xP++ ) { yTL = cTop + yP * 2 xTL = cLeft + xP * 2 yBR = yTL + 1 xBR = xTL + 1 yC = cTop / 2 + yP xC = cLeft / 2 + xP inpTLVal = InpY( InpSampleVal( yTL. xTL, CroppedHeight.CroppedWidth, CroppedYPicf i ], 0 ) ) inpTRVal = InpY( InpSampleVal( yTL, xBR, CroppedHeight,CroppedWidth, CroppedYPicf i ], 0 ) ) inpBLVal = InpY( InpSampleVal( yBR, xTL, CroppedHeight,CroppedWidth. CroppedYPicf i ], 0 ) ) inpBRVal = InpY( InpSampleVal( yBR, xBR, CroppedHeight,CroppedWidth, CroppedYPicf i ], 0 ) ) inpCbVal = InpC( InpSampleVal( yC, xC, CroppedHeight / 2,CroppedWidth / 2, CroppedCbPicf i ], 1 ) ) inpCrVal = InpC( InpSampleVal( yC, xC. CroppedHeight / 2,CroppedWidth / 2, CroppedCrPicf i ]. 2 ) ) promptCharVal = utf8ToUInt( nnpfc_prompt ) yPovlp = yP + nnpfc overlap xPovlp = xP + nnpfc overlap if( !nnpfc_component_last_flag ) { inputTensorf 0 ][ i ]
[0000] [ yPovlp ][ xPovlp ] = inpTLVal inputTensorf 0 ][ i ]
[0001] [ yPovlp ][ xPovlp ] = inpTRVal inputTensorf 0 ][ i ]
[0002] [ yPovlp ][ xPovlp ] = inpBLVal inputTensorf 0 ][ i ]
[0003] [ yPovlp ][ xPovlp ] = inpBRVal inputTensorf 0 ][ i ]
[0004] [ yPovlp ][ xPovlp ] = inpCbValP24102478901WO1; G25N22727W (4824-71201) inputTensor
[0000] [ i ]
[0005] [ yPovlp ][ xPovlp ] = inpCrVal } else { inputTensorf 0 ][ i ][ yPovlp ][ xPovlp ]
[0000] = inpTLVal inputTensorf 0 ][ i ][ yPovlp ][ xPovlp ]
[0001] = inpTRVal inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0002] = inpBLVal inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0003] = inpBRVal inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0004] = inpCbVal inputTcnsor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0005] = inpCrVal } if( nnpfc auxiliary inp ide = = 1 1 1 nnpfc auxiliary inp ide = = 3) if( !nnpfc_component_last flag ) inputTensor
[0000] [ i ]
[0006] [ yPovlp ][ xPovlp ] = strengthControlScaledVal[ i ] else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ]
[0006] = strengthControlScaledVal[ i ] if( nnpfe auxiliary inp ide = = 2 1 1 nnpfe auxiliary inp ide = = 3) iff ! nnpfc component last flag ) inputTensor
[0000] [ i ] [ nnpfc_auxiliary_inp_idc + 4 ][ yPovlp ][ xPovlp ] = promptCharVal else inputTensor
[0000] [ i ][ yPovlp ][ xPovlp ][ nnpfe auxiliary inp ide + 4 ] = promptCharVal }} utf8ToUlnt( x ) { result = 0 len = 0 / * Check end of text prompt string * / iff x = = null ) return 0 / * Determine the number of bytes in the UTF-8 character * / iff (x
[0000] & 0x80 ) = = 0 ) len = 1 / * 1-byte character * / else iff (x
[0000] & OxEO ) = = OxCO ) len = 2 / * 2-bytc character * / else iff (x
[0000] & OxFO ) = = OxEO ) len = 3 / * 3 -byte character * / else iff (x
[0000] & 0xF8 ) = = OxFO ) len = 4 / * 4-byte character * / P24102478901WO1; G25N22727W (4824-71201) else len = 0 / * Invalid UTF-8 character; this case shall not occur in bitstreams. * / for( i = 0; i < len; i++ ) / * Construct an integer from the bytes * / result = ( result « 8 ) | x[ i ] x = x + len / * Modifies the input variable, which is a syntax element * / return result}
[0169] The process StoreOutputTensors( ), for deriving sample values in the sample array s FilteredYPic, FilteredCbPic, and FilteredCrPic, for the NNPF -generated pictures, from the output tensor outputTensor for a given vertical sample coordinate cTop and a horizontal sample coordinate cLeft specifying the top-left sample location for the patch of samples included in the input tensor, is specified as follows: for( i = 0; i < numPicsInOutputTensor; i++ ) { if( nnpfc_out_order_idc = = 0 ) for( yP = 0; yP < outPatchHeight; yP++ ) for( xP = 0; xP < outPatchWidth; xP++ ) { yY = cTop * outPatchHeight / inpPatchHeight + yP xY = cLeft * outPatchWidth / inpPatchWidth + xP if( yY < nnpfcOutputPicHeight && xY < nnpfcOutputPicWidth ) if( !nnpfc_componcnt_last_flag )FilteredYPic[ i ][ xY ][yY ] = outputTensorf 0 ][ i ]
[0000] [ yP ][ xP ] elseFilteredYPic[ i ][ xY ][ yY ] = outputTensorf 0 ][ i ][ yP ][ xP ]
[0000] } else if( nnpfc out order idc = = 1 ) (97) for( yP = 0; yP < outPatchCHcight; yP++ ) for( xP = 0; xP < outPatchCWidth; xP-+ ) { xSrc = cLeft * horCScaling + xP ySrc = cTop * verCScaling + yP if( ySrc < nnpfcOutputPicHeight / outSubHeightC && xSrc < nnpfcOutputPicWidth / outSubWidthC ) if( !nnpfc_component_last_flag ) {FilteredCbPic [ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ]
[0000] [ yP ][ xP ]FilteredCrPic[ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ]
[0001] [ yP ][ xP ]} else {FilteredCbPic[ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0000] FilteredCrPic [ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0001] P24102478901WO1; G25N22727W (4824-71201)}} else if( nnpfc out order idc = = 2 ) for( yP = 0: yP < outPatchHeight; yP++ ) for( xP = 0; xP < outPatchWidth; xP++ ) { yY = cTop * outPatchHeight / inpPatchHeight + yP xY = cLeft * outPatchWidth / inpPatchWidth + xP yC = yY / outSubHcightC xC = xY / outSubWidthC yPc = ( yP / outSubHeightC ) * outSubHeightC xPc = ( xP / outSubWidthC ) * outSubWidthC if( yY < nnpfcOutputPicHeight && xY < nnpfcOutputPicWidth ) if( !nnpfc_component_last flag ) {FilteredYPic[ i ][ xY ][ yY ] = outputTensor
[0000] [ i ]
[0000] [ yP ][ xP ]FilteredCbPic[ i ][ xC ][ yC ] = outputTensor
[0000] [ i ]
[0001] [ yPc ][ xPc ] FilteredCrPicf i ][ xC ][ yC ] = outputTensor
[0000] [ i ]
[0002] [ yPc ][ xPc ] } else {FilteredYPic[ i ] [ xY ] [ yY ] = outputTensor
[0000] [ i ] [ yP ] [ xP ]
[0000] FilteredCbPic[ i ][ xC ][ yC ] = outputTensor
[0000] [ i ][ yPc ][ xPc ]
[0001] FilteredCrPicf i ][ xC ][ yC ] = outputTensorf 0 ][ i ][ yPc ][ xPc ]
[0002] }} else if( nnpfc out order idc = = 3 ) for( yP = 0; yP < outPatchHeight; yP++ ) for( xP = 0; xP < outPatchWidth; xP++ ) { ySrc = cTop / 2 * outPatchHeight / inpPatchHeight + yP xSrc = cLeft / 2 * outPatchWidth / inpPatchWidth + xP if( ySrc < nnpfcOutputPicHeight / 2 && xSrc < nnpfcOutputPicWidth / 2 ) if( !nnpfc_component_last_flag ) {FilteredYPicf i ][ xSrc * 2 ] [ ySrc * 2 ] = outputTensorf 0 ][ i ]
[0000] [ yP ][ xP ]FilteredYPicf i ][ xSrc * 2 + 1 ][ ySrc * 2 ] = outputTensorf 0 ][ i ]
[0001] [ yP ][ xP ] FilteredYPicf i ][ xSrc * 2 ] [ ySrc * 2 + 1 ] = outputTensorf 0 ][ i ]
[0002] [ yP ][ xP ] FilteredYPicf i ][ xSrc * 2 + 1] [ ySrc * 2 + 1 ] = outputTensorf 0 ][ i ]
[0003] [ yP ][ xP ] FilteredCbPicf i ][ xSrc ][ ySrc ] = outputTensorf 0 ][ i ]
[0004] [ yP ][ xP ]FilteredCrPicf i ][ xSrc ][ ySrc ] = outputTensorf 0 ][ i ]
[0005] [ yP ][ xP ]P24102478901WO1; G25N22727W (4824-71201)} else {FilteredYPic[ i ][ xSrc * 2 ] [ ySrc * 2 ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0000] FilteredYPic[ i ][ xSrc * 2 + 1 ][ ySrc * 2 ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0001] FilteredYPic[ i ][ xSrc * 2 ] [ ySrc * 2 + 1 ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0002] FilteredYPic[ i ][ xSrc * 2 + 1][ ySrc * 2 + 1 ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0003] FilteredCbPic[ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0004] FilteredCrPic[ i ][ xSrc ][ ySrc ] = outputTensor
[0000] [ i ][ yP ][ xP ]
[0005] }}}
[0170] An NNPF PostProcessingFilter( ) is the target NNPF as derived in the semantics of the NNPFA SEI message. The following example process may be used, with the NNPF PostProcessingFilter( ), to generate, in a patch-wise manner, the filtered and / or interpolated picture(s), which contain Y, Cb, and Cr sample arrays FilteredYPic, FilteredCbPic, and FilteredCrPic, respectively, as indicated by nnpfc out order idc: if( nnpfc inp order idc = = 0 | | nnpfc inp order idc = = 2 ) for( cTop = 0: cTop < CroppedHeight; cTop += inpPatchHeight ) for( cLeft = 0: cLeft < CroppedWidth; cLeft += inpPatchWidth ) { inputTensor = DeriveInputTensors( ) outputTcnsor = PostProccssingFiltcr( inputTensor ) StoreOutputTensors( outputTcnsor )} else if( nnpfc inp order idc = = 1 ) for( cTop = 0; cTop < CroppedHeight / SubHeightC; cTop += inpPatchHeight ) for( cLeft = 0; cLeft < CroppedWidth / SubWidthC; cLeft += inpPatchWidth ) { (98) inputTensor = DcrivcInputTcnsors( ) outputTensor = PostProcessingFilter( inputTensor )StoreOutputTensors( outputTensor )} else if( nnpfc inp order idc = = 3 ) for( cTop = 0; cTop < CroppedHeight; cTop += inpPatchHeight * 2 ) for( cLeft = 0; cLeft < CroppedWidth; cLeft += inpPatchWidth * 2 ) { inputTensor = DeriveInputTensors( ) outputTensor = PostProcessingFilter( inputTensor )StoreOutputTensors( outputTensor )}P24102478901WO1; G25N22727W (4824-71201)
[0171] An NNPF-generated picture with index i contains sample arrays FilteredYPic[ i ], FilteredCbPic[ i ], and FilteredCrPic[ i ], when present, that are derived by Equation 98. An NNPF-generated picture does not include the overlap regions.
[0172] The NNPF process consists of the process defined by Equation 98 followed by outputting NNPF- generated pictures in their increasing index order, where all NNPF-generated pictures that were interpolated by the NNPF are output and those NNPF-generated pictures that correspond to any input pictures to the NNPF are output as specified in the semantics of the NNPFA SEI message.
[0173] nnpfc_complexity_info_present_flag equal to 1 specifies that one or more syntax elements that indicate the complexity of the NNPF associated with the nnpfc id are present. nnpfc_complexity_info_present_flag equal to 0 specifies that no syntax elements that indicates the complexity of the NNPF associated with the nnpfc id are present.
[0174] impfc_parameter_type_idc equal to 0 indicates that the neural network uses only integer parameters. nnpfc_parameter_type_idc equal to 1 indicates that the neural network may use floating point or integer parameters, nnpfc paramctcr typc idc equal to 2 indicates that the neural network uses only binary parameters, nnpfc paramctcr typc idc equal to 3 is reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_parameter_type_idc equal to 3.
[0175] nnpfc_log2_parameter_bit_length_minus3 equal to 0, 1, 2, and 3 indicates that the neural network does not use parameters ofbit length greater than 8, 16, 32. and 64. respectively. When nnpfc_parameter_type_idc is present and nnpfc_log2_parameter_bit_length_minus3 is not present, the neural network does not use parameters ofbit length greater than 1.
[0176] nnpfc_num_parameters_idc indicates the maximum number of neural network parameters for the NNPF in units of a power of 2 048. nnpfc_num_parameters_idc equal to 0 indicates that the maximum number of neural network parameters is unknown. The value nnpfc num parameters ide shall be in the range of 0 to 52. inclusive. Values of nnpfc_num_parameters_idc greater than 52 are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall ignore NNPFC SEI messages with nnpfc_num_parameters_idc greater than 52.
[0177] If the value of nnpfc_num_parameters_idc is greater than zero, the variable maxNumParameters is derived as follows: maxNumParameters = ( 2 048 « nnpfc_num_parameters_idc ) - 1 (99)
[0178] It is a requirement of bitstream conformance that the number of neural network parameters of the NNPF shall be less than or equal to maxNumParameters.
[0179] nnpfc num kmac operations ide greater than 0 indicates that the maximum number of multiply- accumulate operations per sample of the NNPF is less than or equal to nnpfc num kmac operations idc * 1 000.P24102478901WO1; G25N22727W (4824-71201) impfc num kmac operations idc equal to 0 indicates that the maximum number of multiply-accumulate operations of the network is unknown. The value of nnpfc_num_kmac_operations_idc shall be in the range of 0 to 232- 2, inclusive.
[0180] nnpfc total kilobyte size greater than 0 indicates a total size in kilobytes required to store the uncompressed parameters for the neural network. The total size in bits is a number equal to or greater than the sum of bits used to store each parameter, nnpfc total kilobyte size is the total size in bits divided by 8 000, rounded up. nnpfc total kilobyte size equal to 0 indicates that the total size required to store the parameters for the neural network is unknown. The value of nnpfc total kilobyte size shall be in the range of 0 to 232- 2, inclusive.
[0181] nnpfc num metadata extension bits equal to 0 specifies that nnpfc reserved metadata extension is not present. When nnpfc num metadata extension bits is greater than 0, let the variable niimSpccifiedMctadataExtensionBits be the number of bits representing all syntax elements between nnpfc num metadata extension bits and nnpfc_reserved_metadata_extension. nnpfc num metadata extension bits greater than 0 specifies the sum of numSpecifiedMetadataExtensionBits and the length, in bits, of nnpfc reserved metadata extension.
[0182] The value of nnpfc_num_metadata_extension_bits shall be in the range of niimSpccificdMctadataExtensionBits to 2 048, inclusive. Values in the range of numSpccificdMctadataExtcnsionBits + 1 to 2 048, inclusive, for nnpfc_num_metadata_extension_bits are reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall allow any value of nnpfc num metadata extension bits in the range of 0 to numSpecifiedMetadataExtensionBits + 1 to 2 048, inclusive.
[0183] nnpfc_application_purposc_tag_uri_prcscnt_flag equal to 1 indicates that the nnpfc_application_purpose_tag_uri syntax element is present in this NNPFC SEI message. nnpfc_application_purpose_tag_uri_present_flag equal to 0 indicates that the nnpfc_application_purpose_tag_uri syntax element is not present in this NNPFC SEI message. When not present nnpfc_application_purpose_tag_uri_present_flag is inferred to be equal to 0.
[0184] nnpfc_metadata_alignment_zero_bit shall be equal to 0.
[0185] nnpfc_application_purpose_tag_uri specifies a tag URI with syntax and semantics as specified in IETF RFC 4151 identifying the application determined purpose of the NNPF. when nnpfc purpose is equal to 0.
[0186] NOTE 4 - nnpfc_application_purpose_tag_uri enables uniquely identifying the application determined purpose of NNPF without needing a central registration authority.
[0187] nnpfc scan type idc equal to 0 indicates that the preferred display method for the pictures output by the NNPF is unknown or unspecified or specified by external means, nnpfc scan type idc equal to 1 indicates that the pictures output by the NNPF are suitable for display using overscan, nnpfc scan type idc equal to 2P24102478901WO1; G25N22727W (4824-71201) indicates that the pictures output by the NNPF contain visually important information in the entire region out to the edges of the picture, such that the pictures output by the NNPF should not be displayed using overscan. Instead, they should be displayed using either an exact match between the display area and the edges, or using underscan. As used in this paragraph, the term "overscan" refers to display processes in which some parts near the borders of the pictures are not visible in the display area. The term "underscan" describes display processes in which the entire pictures are visible in the display area, but they do not cover the entire display area. For display processes that neither use overscan nor underscan, the display area exactly matches the area of the pictures. The value of nnpfc scan typc idc shall not be equal to 2. When not present, the value of nnpfc scan typc idc is inferred to be equal to 0.
[0188] nnpfe for human viewing ide equal to 3 specifies that the intended optimal usage of the video resulting from the NNPF process includes human viewing, nnpfe for human viewing ide equal to 2 specifies that the video resulting from the NNPF process is suitable but not specifically optimized for human viewing, nnpfe for human viewing ide equal to 1 specifies that tire video resulting by the NNPF process is unsuitable for human viewing, nnpfe for human viewing ide equal to 0 specifies that it is unknown if the video resulting by the NNPF process is suitable for human viewing. When not present, nnpfe for human viewing ide is inferred to be equal to 0.
[0189] nnpfc for machine analysis idc equal to 3 specifies that the intended optimal usage of the video resulting from the NNPF process includes machine analysis, nnpfc for machine analysis idc equal to 2 specifies that the video resulting from the NNPF process is suitable but not specifically optimized for machine analysis, nnpfc for machine analysis idc equal to 1 specifies that the video resulting from the NNPF process is unsuitable for machine analysis, mrpfc for machine analysis idc equal to 0 specifies that it is unknown if the video resulting from the NNPF process is suitable for machine analysis. When not present, nnpfc for machine analysis idc is inferred to be equal to 0.
[0190] It is a requirement of bitstream conformance that the value of nnpfe for human viewing ide and nnpfc for machine analysis idc shall not be both equal to 1.
[0191] NOTE 5 - When a decoding system displays the video for human viewing, any NNPF that has nnpfe for human viewing ide equal to 1 is suggested to be omitted. When a decoding system performs machine analysis, any NNPF that has nnpfc for machine analysis idc equal to 1 is suggested to be omitted.
[0192] nnpfc reserved metadata extension shall not be present in bitstreams conforming to this version of this Specification. However, decoders conforming to this version of this Specification shall ignore the presence and value of nnpfc reserved metadata extension. When present, the length, in bits, of nnpfc reserved metadata extension is equal to nnpfc_num_metadata_extension_bits - numSpecifiedMetadataExtensionBits .
[0193] nnpfc_alignment_zero_bit_b shall be equal to 0.P24102478901WO1; G25N22727W (4824-71201)
[0194] nnpfc_payload_byte| i ] contains the i-th byte of a bitstream conforming to ISO / IEC 15938-17. The byte sequence nnpfc_payload_byte[ i ] for all present values of i shall be a complete bitstream that conforms to ISO / IEC 15938-17.8.28.2 Neural-network post-filter activation SEI message8.28.2.1 Neural-network post-filter activation SEI message syntax8.28.2.2 Neural-network post-filter activation SEI message semantics
[0195] The neural-network post-filter activation (NNPFA) SEI message activates or de-activates the possible use of the target neural-network post-processing filter (NNPF), identified by nnpfa target id and impfa target base flag, for post-processing filtering of a set of pictures. The target NNPF is derived as follows:If nnpfa target base flag is equal to 1, the target NNPF is the base NNPF with nnpfc id equal to nnpfa target id.Otherwise (nnpfa target base flag is equal to 0), the target NNPF is the NNPF specified by the last NNPFC SEI message with nnpfc id equal to nnpfa target id that precedes the first VCL NAL unit of the current picture in decoding order and is not a repetition of the NNPFC SEI message that contains the base NNPF.
[0196] NOTE 1 - There can be several NNPFA SEI messages present for the same picture, for example, when the NNPFs are meant for different purposes or for filtering of different colour components.
[0197] Use of this SEI message requires the definition of the following variables:The processing stage index SeiProcStgldx that indicates the processing stage index associated with the target NNPF within a chosen processing chain.P24102478901WO1; G25N22727W (4824-71201)The list CandInputPicList[ SeiProcStgldx ] that contains a list of pictures in output order from which the input pictures for the target NNPF are selected or padded. When SeiProcStgldx is equal to 0, pictures in CandInputPicList[ SeiProcStgldx ] are cropped decoded output pictures.
[0198] NOTE 2 - When SeiProcStgldx is greater than 0, the list CandInputPicList[ SeiProcStgldx ] contains pictures after the application of the process(es) implied by the SEI message(s) associated with processing stage index values less than SeiProcStgldx.
[0199] The target NNPF may be used for post-processing filtering for each picture in CandInputPicList[ SeiProcStgldx ] that is the corresponding picture or an associated inserted picture of a picture for which the NNPFA SEI message persists.
[0200] nnpfa target id indicates the nnpfc id of the target NNPF, which is specified by one or more NNPFCSEI messages that pertain to the current picture and have nnpfc id equal to nnpfa target id. The value of nnpfa target id shall be in the range of 0 to 232- 2, inclusive.
[0201] An NNPFA SEI message with a particular value of nnpfa target id shall not be present in a current PU unless one or both of the following conditions are true:Within the current CLVS there is an NNPFC SEI message with nnpfc id equal to the particular value of nnpfa_target_id present in a PU preceding the current PU in decoding order.There is an NNPFC SEI message with nnpfc id equal to the particular value of nnpfa_target_id in the current PU.
[0202] When a PU contains both an NNPFC SEI message with a particular value of nnpfc id and an NNPFA SEI message with nnpfa target id equal to the particular value of nnpfc id, the NNPFC SEI message shall precede the NNPFA SEI message in decoding order.
[0203] nnpfa cancel flag equal to 1 indicates that the persistence of the target NNPF established by any previous NNPFA SEI message with the same nnpfa target id as the current SEI message is cancelled, i.e., the target NNPF is no longer used unless it is activated by another NNPFA SEI message with the same nnpfa target id as the current SEI message and nnpfa cancel flag equal to 0. nnpfa cancel flag equal to 0 indicates that the nnpfa pcrsistcncc flag. nnpfa_target_base_flag, nnpfa_no_prev_clvs_flag, impfa_no_foll_clvs_flag (when nnpfa_persistence_flag is equal to 1), and nnpfa num output entries follow.
[0204] impfa_persistence_flag specifies the persistence of the target NNPF for the current layer.
[0205] nnpfa_persistence_flag equal to 0 specifies that the NNPFA SEI message persists for the current picture only.
[0206] nnpfa_persistence_flag equal to 1 specifies that the NNPFA SEI messages persists for the current picture and all subsequent pictures of the current layer in output order until one or more of the following conditions are true:A new CLVS of the current layer begins.The bitstream ends.P24102478901WO1; G25N22727W (4824-71201)A picture in the current layer associated with an NNPFA SEI message with the same nnpfa_target_id as the current SEI message is output that follows the current picture in output order.
[0207] NOTE 2 - The target NNPF is not applied for this subsequent picture in the current layer associated with an NNPFA SEI message with the same nnpfa target id as the current SEI message.
[0208] Let nnpfcTargetPictures be the set of pictures to which the NNPFC SEI message corresponding to the target NNPF pertains. Let nnpfaTargetPictures be the set of pictures for which the NNPFA SEI message persists. It is a requirement of bitstream conformance that any picture included in nnpfaTargetPictures shall also be included in nnpfcTargetPictures.
[0209] nnpfa target base flag equal to 1 specifies that the target NNPF is the base NNPF with nnpfc id equal to nnpfa target id. nnpfa target base flag equal to 0 specifies that the target NNPF is the NNPF specified by the last NNPFC SEI message with nnpfc_id equal to nnpfa_target_id that precedes the first VCL NAL unit of the current picture in decoding order and is not a repetition of the NNPFC SEI message that contains the base NNPF.
[0210] NOTE 3 - An NNPFA message can activate a base NNPF with a particular nnpfc id value when an update of the base NNPF is active, which switches the target NNPF from the updated NNPF to the base NNPF.
[0211] When nnpfa_target_base_flag in an NNPFA SEI message is equal to 0, there shall be at least one NNPFC SEI message with nnpfc_id equal to nnpfa target id and nnpfe base flag equal to 0 that precedes the NNPFA SEI message in decoding order.
[0212] nnpfa_no_prev_clvs_flag equal to 1 specifies that the input pictures for the NNPF do not originate from a previous CLVS. nnpfa_no_prev_clvs_flag equal to 0 specifies that the input pictures for the NNPF may or may not originate from a previous CLVS.
[0213] NOTE 4 - The value of nnpfa_no_prev_clvs_flag can be changed from 0 to 1, when the current CLVS is spliced from another bitstream next to the previous CLVS and this NNPFA SEI message would cause one or more input pictures originating from one or more previous CLVSs and therefore is likely to impact the output of the target NNPF negatively.
[0214] nnpfa no foll clvs flag equal to 1 specifies that when this NNPFA SEI message persists for the last PU of a CLVS in output order, the NNPFA SEI message is treated like it persisted for the last PU, in output order, of the current layer within the bitstream. When this NNPFA SEI message does not persist for the last PU, in output order, of a CLVS in output order or nnpfa no foll clvs flag is equal to 0. the value of nnpfa no foll clvs flag causes no specific impact.
[0215] NOTE 5 - The value of nnpfa_no_foll_clvs_flag can be changed from 0 to 1 for a picture-rate- upsampling NNPF, when the following CLVS is spliced from a different bitstream next to the current CLVS. Consequently, the NNPF process interpolates pictures up to the end of the current CLVS using input pictures originating from the current CLVS only.P24102478901WO1; G25N22727W (4824-71201)
[0216] nnpfa_num_output_entries specifies the number of nnpfa_output_flag[ i ] syntax elements present in the NNPFA SEI message. The value of nnpfa_num_output_entries shall be in the range of 0 to NumlnpPicsInOutputTensor. inclusive. When PictureRateUpsamplingFlag is equal to 0 and nnpfa num output entries is equal to NumlnpPicsInOutputTensor. nnpfa_output_flag[ i ] shall be equal to 1 for at least one value of i in the range of 0 to nnpfa num output entries - 1, inclusive.
[0217] nnpfa_output_flag[ i ] equal to 1 specifies that the NNPF -generated picture that corresponds to the input picture having index Inpldx[ i ] is output by the NNPF process activated by this NNPFA SEI message, where the NNPF process is specified in the semantics of the NNPFC SEI message. nnpfa_output_flag[ i ] equal to 0 specifies that the NNPF -generated picture that corresponds to the input picture having index Inpldx[ i ] is not output by the NNPF process activated by this NNPFA SEI message. When nnpfa num output entries is less than NumlnpPicsInOutputTensor, nnpfa output _flag[ i ] is inferred to be equal to 1 for each value of i in the range of nnpfa num output entries to NumlnpPicsInOutputTensor - 1, inclusive.2.4 The SEI processing order (SPO) SEI message
[0218] JVET-AI2006 [4] includes the specification of an SEI message named the SEI processing order (SPO) SEI message, for carrying information indicating the preferred processing order, as determined by the encoder (i.e., the content producer), for a group of types of SEI messages that may be present in a CVS.
[0219] An improved version of the specification of the SPO SEI message in JVET-AI2006 is as follows.8.30.1 SEI processing order SEI message8.30.1.1 SEI processing order SEI message syntaxP24102478901WO1; G25N22727W (4824-71201)8.30.1.2 SEI processing order SEI message semantics
[0220] The SEI processing order (SPO) SEI message carries information indicating the preferred processing order, as determined by the encoder (i.e., the content producer), for a group of types of SEI messages that may be present in a CVS.
[0221] Use of this SEI message requires the definition of the following:Two lists of payloadType values, SeiProcessingOrderSeiList and SpoProcessSeiList.
[0222] The semantics of the SPO SEI message uses the concept of types of SEI messages. SEI messages that have different payloadType values are considered different types of SEI messages. Additionally, different SEI messages that have the same payloadType value but are differentiated by values of syntax elements in the SEI payload are considered different types of SEI messages. Such differentiation by values of syntax elements in the SEI payload is to be performed by comparing values sent using po_sei_prefix_data_bit[ i ] [ j ] syntax elements (when present) or values sent as SEI messages within a processing order nesting SEI message (when present). For example, neural-network post-filter characteristics (NNPFC) SEI messages can be differentiated by having different nnpfc id values.
[0223] When the i-th SEI message seiA in any SPO SEI message has po_sei_wrapping_flag[ i ] and po_sei_prefix_flag[ i ] both equal to 0, there shall be no other SEI message seiB included in the same SPO SEI message or in a different SPO SEI message in the current CVS for which all of the following are true:The value of po_sei_payload_type[ i ] of seiB is the same as that for seiA.The value of po sei wrapping flag [ i ] of seiB is equal to 0.The value of po_sei_prefix_flag[ i ] of seiB is equal to 1.
[0224] When an SPO SEI message with a particular value of po id is present in any access unit of a CVS, an SPO SEI message with that particular value of po id shall be present in the first access unit of the CVS in decoding order. The number of SEI messages and the payloadType codes of the SEI messages indicated within each SPO SEI message with the same value of po id persist in decoding order from the current access unit until the end of the CVS in output order.P24102478901WO1; G25N22727W (4824-71201)
[0225] The SPO SEI message can carry one or more SEI prefix indications of a particular payloadType. When present, each SEI prefix indication is a bit string that follows the SEI payload syntax of that value of payloadType and contains a number of complete syntax elements starting from the first syntax element in the SEI payload. These SEI prefix indications should provide sufficient information to determine the specific processing order for types of SEI messages having the same value of payloadType but a different preferred processing order.
[0226] po_id contains an identifying number to identify the SPO SEI message.
[0227] A processing chain consists of a list of types of SEI messages identified by an SPO SEI message in the preferred processing order indicated in the SPO SEI message.
[0228] Each type of SEI message in the processing chain indicated by an SPO SEI message is identified by the syntax elements po_sei_payload_typc| i ], po sei wrapping flag[ i ], po_sei_processing_order[ i ] and, when present, po_num_bits_in_prefix_indication_minus 1 [ i ] and po_prefix_data_bit[ i ][ j ].
[0229] An SEI message type is not required to belong to any processing chain and may belong to any number of processing chains identified by SPO SEI messages with different po id values.
[0230] Each SEI message of an SEI message type identified within the SPO SEI message has the same persistence scope as if the SEI message was carried outside of the SPO SEI message and not identified within an SPO SEI message.
[0231] NOTE 1 - When an SEI message specifies a process and is not associated with a processing chain specified by any SPO SEI message, it is implicitly a processing chain by itself. Some standards, such as Rec. ITU-T H.266 | ISO / IEC 23090-3, have specified an implicit processing chain of a super-resolution NNPF followed by another NNPF. Implicitly specified processing chains are treated like processing chains specified by SPO SEI messages when selecting SEI messages to be applied.
[0232] NOTE 2 - Processing chains can be alternatives to each other, i.e., such that at most processing chain is chosen to be applied, or they can be complementary, i.e., such that more than one processing chain is chosen and applied separately, with each processing chain generating one output.
[0233] po_for_human_viewing_idc equal to 3 specifies that the intended optimal usage of the video resulting from the processing chain specified by this SPO SEI message includes for human viewing, po for human viewing idc equal to 2 specifies that the video resulting from the processing chain specified by this SPO SEI message is suitable but not specifically optimized for human viewing, po for human viewing ide equal to 1 specifies that the video resulting from the processing chain specified by this SPO SEI message is unsuitable for human viewing. po_for_human_viewing_idc equal to 0 specifies that it is unknown if the video resulting from the processing chain specified by this SPO SEI message is suitable for human viewing.
[0234] po for machine analysis idc equal to 3 specifies that the intended optimal usage of the video resulting from the processing chain specified by this SPO SEI message includes machine analysis, po for machine analysis idc equal to 2 specifies that the video resulting from the processing chain specified by this SPO SEI message is suitable but not specifically optimized for machine analysis.P24102478901WO1; G25N22727W (4824-71201) po for machine analysis idc equal to 1 specifies that the video resulting from the processing chain specified by this SPO SEI message is unsuitable for machine analysis, po for machine analysis idc equal to 0 specifies that it is unknown if the video resulting from the processing chain specified by this SPO SEI message is suitable for machine analysis.
[0235] It is a requirement of bitstream conformance that the value of po for human viewing idc and po for machine analysis idc shall not be both equal to 1.
[0236] NOTE 3 - The values of po for human viewing idc and po for machine analysis idc are in force for the output of a processing chain instead of the respective syntax elements in an encoder optimization information (EOI) SEI message (eoi for human viewing ide and eoi for machine analysis ide) or a neural- network post-filter characteristics (NNPFC) SEI message (nnpfe for human viewing ide and nnpfc for machine analysis idc), when the EOI or NNPFC SEI message is associated with the processing chain.
[0237] po_rcscrvcd_zcro_4bits shall be equal to 0. Values greater than 0 for po_rcscrvcd_zcro_4bits arc reserved for future use by ITU-T | ISO / IEC and shall not be present in bitstreams conforming to this version of this Specification. Decoders conforming to this version of this Specification shall allow any value of po_reserved_zero_4bits in the range of 0 to 15, inclusive.
[0238] po_num_sei_messages_minus2 plus 2 indicates the number of types of SEI messages for which the preferred order of processing is indicated in the SPO SEI message. The variable PoNumProcStgs is set equal to po_num_sei_messages_minus2 + 2.
[0239] po breadth first flag equal to 1 specifies that the breadth-first handling of a processing chain specified in clause 8.30.3.2 shall be applied to determine the pictures that are used for interpreting the semantics of the SEI messages applied as a part of the processing chain specified by this SPO SEI message. po_breadth_first flag equal to 0 specifies that the breadth-first handling of a processing chain specified in clause 8.30.3.2 or the depth-first handling of a processing chain specified in clause 8.30.3.3 shall be applied to determine the pictures that are used for interpreting the semantics of the SEI messages applied as a part of the processing chain specified by this SPO SEI message.
[0240] NOTE 4 - When po_breadth_first flag is equal to 0, the processing chain can be performed for a picture without processing any SEI messages applying to subsequent picture units in output order.
[0241] po_sei_wrapping_flag[ i ] equal to 1 specifies that an SEI message that applies as the i-th SEI message type in the processing chain specified in this SPO SEI message, if present, is an SEI message that is included in a PON SEI message for which both of the following conditions are true: pon_target_po_id[ j ] with any value of j is equal to po id.There is a k-th loop entry in the processing order nesting SEI message such that the payloadType of the k-th nested SEI message is equal to po_sci_payload_typc[ i ] and pon_proccssing_ordcr[ k ] is equal to po_sei_processing_order[ i ].P24102478901WO1; G25N22727W (4824-71201)
[0242] po_sei_wrapping_flag[ i ] equal to 0 specifies that an SEI message that applies as the i-th SEI message type in the processing chain specified in this SPO SEI message, if present, is an SEI message that is not included in a PON SEI message and for which both of the following conditions are true:The payloadType of the SEI message is equal po_sei_payload_type[ i ]. po_sei_prefix _flag[ i ] is equal to 0, or when po_sei_prefix _flag[ i ] is equal to 1, the payload of the SEI message starts with the values of po_sei_prefix_data_bit[ i ][ j ].
[0243] NOTE 5 - po sei wrapping _flag[ i ] equal to 1 enables SEI messages to be carried within the processing order nesting SEI message to prevent such SEI messages from being incorrectly interpreted by decoders that do not process the SPO SEI message. Thus, po sei wrapping flag [ i ] equal to 1 is intended to be used when po_sei_wrapping_flag[ i ] equal to 0 can lead to unintended results being produced by such decoders.
[0244] po_sei_importance_flag[ i ] equal to 1 affects the derivation of PoSeiList, which is the list of SEI messages that a decoding system should process for a particular picture picA, as specified below.
[0245] po_sei_importance_flag[ i ] equal to 0 specifies that when the decoding system cannot interpret or does not support the functionality indicated by the i-th SEI message type, it shall ignore all data associated with the loop variable value of i and exclude the i-th SEI message type from the processing chain performed by the decoding system.
[0246] po_sei_processing_degree_flag[ i ] affects the derivation of PoSeiList as specified below.
[0247] po sei _payload_typc| i ] specifies the payloadType value of the i-th type of SEI message.
[0248] po_sei_prefix_flag[ i ] equal to 1 specifies that po_num_bits_in_prefix_indication_minus 1 [ i ] and some po_sei_prefix_data_bit[ i ][ j ] syntax elements are present. po_sei_prefix_flag[ i ] equal to 0 specifies that these syntax elements are not present.
[0249] The value of po_sei_payload_type[ i ] for each i in the range of 0 to po num sei messages minus2 + 1, inclusive, shall be equal to a value in SeiProcessingOrderSeiList.
[0250] When po_sei_payload_type[ i ] is equal to any value in SpoProcessSeiList, the i-th ty pe of SEI message indicates a process.
[0251] spoProperty SeiList is set to consist of the payloadType values included in SeiProcessingOrderSeiList excluding the paylaodType values included in SpoProcessSeiList. When po sei _payload_typc| i ] is equal to any value in spoPropertySeiList, the i-th type of SEI message indicates a property.
[0252] po_sei_processing_order[ i ] indicates the preferred order of processing of the i-th type of SEI message for which preferred processing order information is provided in the SPO SEI message. For any two different integer values of m and n, po_sei_processing_order[ m ] less than po_sei_processing_order[ n ] indicates that the type of SEI message associated with index m should be processed before the type of SEI message associated with index n, and po sei _proccssing_ordcr| m ] equal to po_sei_processing_order[ n ] indicates that there is no preferred order of processing between the types of SEI messages associated with indexes m and n (e g.,P24102478901WO1; G25N22727W (4824-71201) they can indicate different properties that are both applicable at that stage, or one can indicate a property and the other can indicate a process).
[0253] For i greater than 0, po_sei_processing_order[ i ] shall be greater than or equal to po_sei_processing_order[ i - 1 ].
[0254] Let seiMsgA be an SEI message that applies as the i-th SEI message type in the processing chain specified in this SPO SEI message, persists for a particular picture picA, and is associated with po_sei_processing_order[ i ] equal to poValA.
[0255] Let seiMsgSet be a set of of SEI messages that consists of each SEI message for which all of the following conditions are true:The SEI message applies as the k-th SEI message type in the processing chain specified in this SPO SEI message with any value of k less than i.The SEI message persists for picA. po_sei_processing_order[ k ] is less than poValA.The payloadType value of the SEI message is among the values included in SpoProcessSeiList.
[0256] The pictures to which the semantics of seiMsgA apply are specified as follows:If seiMsgSet is non-empty, the semantics of seiMsgA apply to all the pictures generated by the process implied by the SEI message that has the greatest value of po_sei_processing_order[ k ] among the SEI messages in seiMsgSet.Otherwise, the semantics of seiMsgA apply to picA.
[0257] NOTE 6 - When an NNPF process outputs more than one NNPF -generated picture, the semantics of an SEI message that follows the NNPF in the processing order apply to all these NNPF -generated pictures.
[0258] po_num_bits_in_prefix_indication_minus 1 [ i ] and po_sei_prefix_data_bit[ i ][ j ], when present, have the same semantics as the num_bits_in_prefix_indication_minus 1 [ i ] and sei_prefix_data_bit[ i ] [ j ] syntax elements of the SEI prefix indication SEI message, with prefix sei payload type replaced by po_sei_payload_type[ i ].
[0259] When more than one SPO SEI message with a particular value of po id is present in a CVS, the values of po_num_sci_mcssagcs_minus2 and, for each value of i, the values of po_sci_wrapping_flag[ i ], po_sei_prefix_flag[ i ]. po_sei_importance_flag[ i ], po_sei_payload_type[ i ]. po_sei_processing_order[ i ] shall be the same as in the other SPO SEI messages in the CVS with the same value of po id.
[0260] po_byte_alignment_bit_equal_to_one shall be equal to 1.
[0261] The lists PoProcStgldx, indicating the processing stage indices of the SEI message types in the processing chain, and PoSeiTypeldx, indicating the SEI message type indices of the processing stages in the processing chain, are derived as follows:For each of the SEI message types of in the processing chain, the following applies in a non-decreasing order of the corresponding po_sei_processing_order[ i ] values, with j being set equal to 0 initially:P24102478901WO1; G25N22727W (4824-71201)PoProcStgIdx[ i ] = jPoSeiTypeIdx[ j ] = i(xx)J++
[0262] Where PoProcStgIdx[ i ] indicates the processing stage index of the i-th SEI message type in the processing chain, and PoSeiTypeIdx[ j ] indicates the SEI message type index of the j-th processing stage in the processing chain.
[0263] For a picture, the list PoSeiList, indicting the list of SEI messages, associated with SEI message types in the processing chain indicated by the SPO SEI message, that may be applied to the picture, the list PoSeiTypeList, indicating the SEI message type indices of the SEI messages that may be applied to the picture, and the variable PoNumSeiMsgs, indicating the number of SEI messages that may be applied to the picture, are derived as follows:PoSeiList is initially empty, and j and PoNumSeiMsgs are both initially set equal to 0.The following applies in the same non-decreasing order of po_sei_processing_order[ i ] values as above for deriving the lists PoProcStgldx and PoSeiTypeldx for all values of i in the range of 0 to po_num_sei_messages_minus2 + 1, inclusive, unless terminated earlier as specified below:When an SEI message seiA associated with the i-th SEI message type persists for picA, the following applies:- If the decoding system can interpret and supports the functionality indicated by seiA. seiA is added at the end of PoSeiList, PoSeiTypeList[ j ] is set equal to i, PoNumSeiMsgs is set equal to PoNumSeiMsgs + 1, and j is set equal to j + 1.- Otherwise, if po_sei_importance_flag[ i ] is equal to 1 and po_sei_processing_degree_flag[ i ] is equal to 0, the derivation of PoSeiList, PoSeiTypeList, and PoNumSeiMsgs are terminated.- Otherwise, if po_sei_importance_flag[ i ] is equal to 1 and po_sei_processing_degree_flag[ i ] is equal to 1, the processing chain specified by this SPO SEI message should not be performed for picA, PoSeiList is set to be empty, PoNumSeiMsgs is set equal to 0, and the derivation of PoSeiList. PoSeiTypeList, and PoNumSeiMsgs are terminated.2.5 Handling of a processing chain
[0264] As can be seen from the semantics of the SPO SEI message, a processing chain consists of a list of types of SEI messages identified by an SPO SEI message in the preferred processing order indicated in the SPO SEI message.
[0265] An improved version of the specification for handling of a processing chain specified in JVET- AI2006 is as follows.
[0266] In clause 3, add the following definitions (adjust the subclause numbering when adding):P24102478901WO1; G25N22727W (4824-71201)3.1 corresponding picture: For a particular picture picA, the corresponding picture in a picture list is the picture in the picture list that is either picA itself or a processed version of picA generated when the process implied by an SEI message is applied.NOTE - The particular picture picA could be a picture that is not in the picture list, in which case the corresponding picture in the picture list is a processed version of picA. When picA is in the picture list, it's corresponding picture in the picture list is itself.3.2 inserted picture: A picture that was interpolated or extrapolated when the process implied by an SEI message (c.g., an NNPFA SEI message activating an NNPF with PicturcRatcUpsamplingFlag or TemporalExtrapolationFlag equal to 1) is applied.3.3 associated inserted picture: For a particular picture picA. an associated inserted picture in a picture list is a picture picB in the picture list that is the corresponding picture of an inserted picture generated when applying the process implied by an SEI message to a corresponding picture of picA.
[0267] NOTE - The particular picture picA could be a picture that is not in the picture list.8.30.2 Handling of a processing chain8.30.2.1 General
[0268] Processing chains are alternatives to each other, i.e., at most one processing chain can be chosen to be applied by a decoding system at one time.
[0269] A special NNPF cascading case is defined as the case when such two NNPFs are both activated for a picture: one of the two NNPFs has nnpfc_purpose equal to 4 and the other has multiple input pictures, and neither of the two NNPFs is associated with an SPO SEI message. In this case, the two NNPFs are implicitly considered as belonging to one processing chain and the processing chain only contains these two NNPFs.
[0270] Except for the special NNPF cascading case, each processing chain containing multiple SEI message types is indicated by an SPO SEI message with a particular value of po id. Except for the special NNPF cascading case, any SEI message for which the payloadType is present in SpoProcessSeiList but is not indicated by an SPO SEI message is in its own processing chain.
[0271] In the special NNPF cascading case, PoNumProcStgs is set equal to 2, PoNumSeiMsgs is set equal to 2, and the following applies:1) If both of the NNPFs have nnpfc_purpose equal to 4 and multiple input pictures, either of the two is chosen to be applied first, and for the one chosen to be applied first. PoProcStgIdx[ i ] is set equal to 0, and PoSeiList
[0000] is set to be the NNPFA SEI message activating the NNPF, and for the other. PoProcStgIdx[ i ] is set equal to 1, and PoSeiList
[0001] is set to be the NNPFA SEI message activating the NNPF.2) Otherwise, PoProcStgldxf i ] corresponding to the NNPF with nnpfc_purpose equal to 4 is set equal to 0, PoProcStgIdx[ i ] corresponding to the NNPF with multiple input pictures is set equal to 1, PoSeiList
[0000] is set to be the NNPFA SEI message activating the NNPF with nnpfc_purpose equal to 4, and PoSeiListf 1 ] is set to be the NNPFA SEI message activing the NNPF with multiple input pictures.P24102478901WO1; G25N22727W (4824-71201)3) The values of po_sei_importance_flag
[0000] and po_sei_importance_flag
[0001] are both inferred to be equal to 0.
[0272] In case of a single SEI message in its own processing chain, PoNumProcStgs is set equal to 1. PoNumSeiMsgs is set equal to 1, PoProcStgIdx
[0000] is set equal to 0. po sei importance flag
[0000] is inferred to be equal to 0, and PoSeiList
[0000] is set to be the single SEI message.
[0273] The PoSeiList for a corresponding picture of picA or for an associated inserted picture of picA is derived to be the same as the PoSeiList derived for picA.
[0274] A decoding system may choose and apply a processing chain according to the following ordered steps:1) The bitstream is decoded and a processing chain is chosen, and the following applies:The list PoCdoPicList is set to be the list of the cropped decoded output pictures in output order resulted from decoding the bitstream.When the SEI message type indicated by PoSeiTypeIdx
[0000] of the chosen processing chain corresponds to a film grain characteristics SEI message, the list PoDecPicList is set to be the list of the decoded pictures in output order resulted from decoding the bitstream.2) If the SEI message type indicated by PoSeiTypeIdx
[0000] of the chosen processing chain does not correspond to a film grain characteristics SEI message, the list CandInputPicList
[0000] is set to be identical to PoCdoPicList. Otherwise, the list CandInputPicList
[0000] is set to be identical to PoDecPicList.3) For each i in the range of 1 to PoNumProcStgs, inclusive, the list CandlnputPicListf i ] is set to be identical to PoCdoPicList.
[0275] NOTE 1 - The lists CandInputPicList[ i ] for i in the range of 1 to PoNumProcStgs, inclusive, may be updated during the next step. The list CandInputPicList[ PoNumProcStgs ] is for temporally storing the final output of the chosen processing chain.4) If the chosen processing chain is indicated by an SPO SEI message and po breadth first flag in the SPO SEI message is equal to 1, the breadth-first handling of a processing chain is invoked. Otherwise, either the depth- first handling of a processing chain or the breadth-first handling of a processing chain is invoked.When applying an NNPF to a picture during the invocation of a process for handling of a processing chain, the following applies:- The filtered and / or interpolated pictures arc generated by the NNPF by applying the NNPF process specified in the semantics of the NNPFC SEI message, in a patch-wise manner, to the current picture.The order of the pictures generated by the NNPF by applying the NNPF process being stored into the output tensor of the NNPF is in output order.5) The list PoOutputPicList is set to be identical to CandlnputPicListf PoNumProcStgs ].
[0276] Regardless of which processing chain was chosen to be processed, the following constraints apply:P24102478901WO1; G25N22727W (4824-71201)Within PoOutputPicList there shall not be two pictures having the same output order.The pictures in PoOutputPicList shall be in increasing output order.
[0277] For each processing stage with processing stage index i in the range of 0 to PoNumProcStgs - 1. inclusive, the following applies:For any particular pair of pictures inputPicA and inputPicB consecutive in output order in CandInputPicList[ i ], which is the list of candidate input pictures for the processing stage, when there are one or more pictures intermediatePicSetA between inputPicA and inputPicB in output order added to CandInputPicList[ i + 1 ] when applying the process implied by a particular SEI message of the processing stage, one and only one of the following shall apply:The pictures in intermediatePicSetA shall be among the pictures that were output by applying a particular NNPF nnpfA with PictureRateUpsamplingFlag equal to 1 of the processing stage when a particular picture currPicA in CandInputPicList[ i ] was the current picture.The pictures in intermediatePicSetA shall be among the pictures that were output by applying a particular NNPF nnpfA with TemporalExtrapolationFlag equal to 1 of the processing stage when a particular picture currPicA in CandInputPicList[ i ] was the current picture.The application of the process implied by the particular SEI message when another picture other than currPicA was the current picture or the application of the process implied by of another SEI message of the same processing stage when any picture (including currPicA) was the current picture shall not output any picture between the inputPicA and inputPicB in output order.
[0278] NOTE 2 - The intent of the constraints expressed above is to disallow generating output pictures between any particular pair of consecutive input pictures more than once within a processing stage.8.30.2.2 Breadth-first handling of a processing chain
[0279] For each SEI message types, with SEI message type index i, of the chosen processing chain, the following applies in increasing order of the corresponding processing stage index PoProcStgldxf i ] values:The following applies for each picture picA in CandlnputPicListf PoProcStgIdx[ i ] ] in output order, when an SEI message associated with the i-th SEI message type is present in PoSeiList of picA:When PoProcStgIdx[ i ] is greater than 0, the following applies for the interpretation of the SEI message:The interface variables for purposes of interpretation of the SEI message are derived from picA. The semantics of the SEI message, or the semantics of the SEI message and, when the SEI message is an NNPFA SEI message, the associated NNPFC SEI message, apply to pictures in CandlnputPicListf PoProcStgldxf i ] ].When the SEI payloadType value of the i-th SEI message type is present in SpoProcessSeiList, the process implied by the SEI message is performed and each list CandlnputPicListf PoProcStgldxf i ] + j ] with j in the range of 1 toP24102478901WO1; G25N22727W (4824-71201)PoNumProcStgs - PoProcStgIdx[ i ], inclusive, is updated by replacing pictures with the corresponding processed pictures, if any, resulting from the process and inserting the other pictures, if any, resulting from the process into CandInputPicList[ PoProcStgIdx[ i ] + j ] so that the output order is obeyed. When the SEI message is a film grain characteristics SEI message, PoProcStgldxf i ] is equal to 0, and j is equal to 1, during the replacement of a picture in CandInputPicList
[0001] with the corresponding processed picture or inserting a picture into CandInputPicList
[0001] , the corresponding processed picture or the picture to be inserted is first cropped, in the same manner as generating a cropped decoded output picture from the corresponding decoded picture, and the cropped picture is used for the replacement or insertion.8.30.2.3 Depth-first handling of a processing chain
[0280] The following is repeatedly applied, in output order, for each picture picA in CandInputPicList
[0000] : The following applies for each SEI message with SEI message index seildx in PoSeiList of picA in increasing order of list indexes for PoSeiList:- When PoProcStgldxf PoSeiTypeListf seildx ] ] is greater than 0, the following applies for the interpretation of the SEI message:The interface variables for purposes of interpretation of the SEI message are derived from the pictures in CandInputPicList[ PoProcStgIdx[ PoSeiTypeList[ seildx ] ] ].The semantics of the SEI message, or of the SEI message and, when the SEI message is an NNPFA SEI message, the associated NNPFC SEI message, apply to pictures in CandInputPicList[ PoProcStgIdx[ PoSeiTypeList[ seildx ] ] ].When the SEI payloadType value of the SEI message is present in SpoProcessSeiList. the process implied by the SEI message is invoked repeatedly, in output order, for picA and each of the pictures in CandInputPicList[ PoProcStgIdx[ PoSeiTypeList[ seildx ] ] ] that is picA or an associated inserted picture of picA. After each invocation of the process, each list CandInputPicList[ PoProcStgIdx[ PoSciTypcList[ seildx ] ] + j ] with j in the range of 1 to PoNumProcStgs - PoProcStgIdx[ PoSeiTypeList[ seildx ] ], inclusive, is updated by replacing pictures with the corresponding processed pictures, if any. resulting from the process and inserting the other pictures, if any, resulting from the process into CandInputPicList[ PoProcStgIdx[ PoSeiTypeList[ seildx ] ] + j ] so that the output order is obeyed. When the SEI message is a film grain characteristics SEI message, PoProcStgIdx[ PoSeiTypcListl seildx ] ] is equal to 0, and j is equal to 1, during the replacement of a picture in CandInputPicList
[0001] with the corresponding processed picture or inserting a picture into CandInputPicList
[0001] , the corresponding processed picture or the picture to be inserted is first cropped, in the same manner as generating a cropped decoded output picture from the corresponding decoded picture, and the cropped picture is used for the replacement or insertion.P24102478901WO1; G25N22727W (4824-71201)2.6 VVC SEI payloadType values and use of the NNPFC and NNPFA SEI messages in a VVC bitstream2.6.1 VVC SEI payloadType values
[0281] In the semantics of the SPO SEI message, two lists are used, SeiProcessingOrderSeiList and SpoProcessSeiList, which are defined in JVET-AI2005 [5] as follows: SeiProcessingOrderSeiList is set to consist of the SEI payloadType values 3, 4, 5, 19, 137, 142, 144, 147, 148, 149, 150, 153, 155, 165, 177, 210, and 211, and SpoProcessSeiList is set to consist of the payloadType values 19, 142, 155, 210, and 211.
[0282] An improved definition of SeiProcessingOrderSeiList and SpoProcessSeiList is as follows (excluding 210, the SEI payloadType value for the NNPFC SEI message, and adding 45. the SEI payloadType value for the frame packing arrangement SEI message): SeiProcessingOrderSeiList is set to consist of the SEI payloadType values 3, 4, 5, 19, 45, 137, 142, 144, 147, 148, 149, 150, 153, 155, 165, 177, and 211, and SpoProcessSeiList is set to consist of the payloadType values 19, 45, 142, 155, and 211.
[0283] These SEI payloadType values arc all included in the following syntax tabic in JVET-AI2005, which defines SEI payloadType values for all SEI messages that may be used in a WC bitstream:P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)P24102478901WO1; G25N22727W (4824-71201)2.6.2 Use of the NNPFC and NNPFA SEI messages in WC bitstreams
[0284] Version 3 of the WC standard [2] includes the specifications of use of the neural-network post-filter characteristics (NNPFC) SEI message and the neural-network post-filter activation (NNPFA) SEI message in WC bitstreams, as in below. Similar specifications of use of the NNPFC and NNPFA SEI messages in HEVC and AVC bitstreams can be found in the latest versions of the H.265 / HEVC and H.264 / AVC standards.D.12 Use of SEI messages specified in other specificationsD.12.1 General
[0285] The SEI messages having syntax structures identified in clause D.2.1 that are specified in other specifications, including Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13, may be used together with bitstreams specified by this Specification.
[0286] When any particular SEI message specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13 is included in a bitstream specified by this Specification, the SEI payload syntax shall be as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13, respectively, that syntax shall be included into the sei_payload( ) syntax structure as specified in clause D.2. 1 and shall use the payloadType value specified in clause D.2.1, the corresponding semantics specified in Rec. ITU-T H.274 | ISO / IEC 23002-7. ISO / IEC 23001-11, or ISO / IEC 23090-13 shall apply, and, additionally, any SEI- message-specific constraints, variables, and semantics specified in this annex forthat particular SEI message shall apply.
[0287] The value of PayloadBits, as specified in clause D.2.2, is passed to the parser of the SEI message syntax structures specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, and ISO / IEC 23090-13.
[0288] NOTE - The definition of IRAP picture in the VSEI specification is as follows: A coded picture starting from which all pictures in the same layer in both decoding order and output order can be decoded without first decoding any picture in the same layer earlier in decoding order in the coded video bitstream. Consequently,P24102478901WO1; G25N22727W (4824-71201) a GDR picture with ph_recovery_poc_cnt equal to 0 in a WC bitsream is an IRAP picture according to the IRAP picture definition in the VSEI specification.
[0289] D.12.11 Use of the neural network post-filter characteristics SEI message and the neural network postfilter activation SEI message
[0290] Let currPic be the cropped decoded output picture for which the neural-network post-processing filter (NNPF) defined by the neural-network post-filter characteristics (NNPFC) SEI message is activated by a neural- network post-filter activation (NNPF A) SEI message and currLayerld be the nuh layer id value of currPic.
[0291] It is a requirement of bitstream conformance that when a picture unit contains an NNPFA SEI message, the value of ph_pic_output_flag in the picture header contained in that picture unit shall be equal to 1.
[0292] NOTE - Since only cropped decoded output pictures are used as input pictures of the NNPF, the value of ph_pic_output_flag in the picture header of the coded picture corresponding to each input picture of the NNPF is equal to 1.
[0293] The variable pictureRateUpsamplingFlag is set equal to ( ( nnpfc_purpose & 0x08 ) > 0 ) ? 1 : 0.
[0294] The variable numlnputPics is set equal to nnpfc_num_input_pics_minus 1 + 1.
[0295] The variable numlnferences is derived as follows:If all of the follow ing conditions are true, the variable numPostRoll is set equal to the value of i such that nnpfc_interpolated_pics[ i ] is greater than 0 and the variable numinferences is set equal to I + numPostRoll: nnpfc_purpose is equal to 8 (i.e., the only purpose for the NNPF is picture rate upsampling). nnpfa_persistence_flag is equal to 1. nnpfc_interpolated_pics[ i ] is greater than 0 only for a single value of i that is greater than 0.Either of the following conditions is true: currPic is the last picture of the bitstream in output order that has nuh layer id equal to currLayerld. currPic is the last picture in the CLVS in output order and nnpfa no foll clvs flag is equal to 1.Otherwise, if all of the following conditions are true, the variable numPostRoll is set equal to Inpldx[ i ] for the value of i such that nnpfa_output_flag[ i ] is equal to 1, and the variable numinferences is set equal to 1 + numPostRoll: pictureRateUpsamplingFlag is equal to 0. numlnputPics is greater than 1. nnpfa_persistence_flag is equal to 1. nnpfa output _flag[ idx ] is equal to 1 for a single value of idx in the range of 0 to NumlnpPicsInOutputTensor - 1, inclusive, and for that single value of idx, Inpldx[ idx ] is greater than 0.Either of the following conditions is true: currPic is the last picture of the bitstream in output order that has nuh layer id equal to currLayerld.P24102478901WO1; G25N22727W (4824-71201)- currPic is the last picture in the CLVS in output order and nnpfa_no_foll_clvs flag is equal to 1. Otherwise, the variable numinferences is set equal to 1.
[0296] For each value of j in the range of 0 to numinferences - 1, inclusive, the following applies:The arrays inputPic[ i ] and inputPresentFlag[ i ] for i in the range of 0 to numlnputPics - 1, inclusive, representing all the input pictures and the presence of input pictures, respectively, are specified as follows: When j is greater than 0, for each value of k in the range of 0 to j - 1, inclusive, inputPic[ k ] is set to be currPic and inputPresentFlag[ k ] is set equal to 0.The j -th input picture, inputPic[ j ], is set to be currPic and inputPresentFlag[ j ] is set equal to 1.When numlnputPics is greater than 1. the following applies for each value of i in the range of j + 1 to numlnputPics - 1, inclusive, in increasing order of i:- If both of the following conditions are true, inputPic[ i ] is set to be prevPic and inputPresentFlag[ i ] is set equal to 1 :Either of the following conditions is true: pictureRateUpsamplingFlag is equal to 1 and currPic is associated with a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5 and a particular value of fp current frame is frameO flag. and there is a cropped decoded output picture prevPic that is the last picture in output order among all cropped decoded output pictures that have nuh layer id equal to currLayerld, precede inputPic[ i - 1 ] in output order, and arc associated with a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5 and the same value of fp current frame is frameO flag . pictureRateUpsamplingFlag is equal to 0 or currPic is not associated with a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5, and there is a cropped decoded output picture prevPic that is the last picture in output order among all cropped decoded output pictures that have nuh layer id equal to currLayerld and precede inputPic[ i - 1 ] in output order. nnpfa_no_prev_clvs_flag is equal to 0 or the coded picture corresponding to prevPic and the current picture are present in the same CLVS.- Otherwise, the following applies: input Pic[ i ] is set to be the same picture as inputPic[ i - 1 ] and inputPresentFlag[ i ] is set equal to 0.It is a requirement of bitstream conformance that, when pictureRateUpsamplingFlag is equal to 1. nnpfc interpolated_pics[ i - 1 ] shall be equal to 0.It is a requirement of bitstream conformance that when inputPresentFlag[ i ] is equal to 0 and rmpfc_input_pic_output_flag[ i ] is equal to 1, the value of nnpfa_output_flag[ idx ] shall be equal to 0 for the value of idx such that Inpldx[ idx ] is equal to i.P24102478901WO1; G25N22727W (4824-71201)For purposes of interpretation of the NNPFC SEI message, the following variables are specified:If numlnputPics is greater than 1 and there is a second NNPF that is defined by at least one NNPFC SEI message, is activated by an NNPFA SEI message for currPic, and has nnpfc_purpose equal to 4. the following applies:CroppedWidth is set equal to nnpfcOutputPicWidth defined for the second NNPF.- CroppedHeight is set equal to nnpfcOutputPicHeight defined for the second NNPF. Otherwise, the following applies:- CroppedWidth is set equal to the value of pps_pic_width_in_luma_samplcs - SubWidthC * ( pps conf win left offset + pps conf win right offset ) for currPic.CroppedHeight is set equal to the value of ppsjic height in luma samples - SubHeightC * ( pps_conf_win_top_offset + pps conf win bottom offset ) for currPic.The luma sample arrays CroppedYPic[ i ] and the chroma sample arrays CroppedCbPic[ i ] and CroppedCrPic[ i ], when present, are derived as follows for each value of i in the range of 0 to numlnputPics - 1, inclusive:- The variable sourcePic is derived as follows:If inputPresentFlag[ i ] is equal to 1 or nnpfc absent input_pic zero flag is equal to 0. sourcePic is set to be inputPic[ i ].Otherwise(inputPresentFlag[ i ] is equal to 0 and nnpfe absent input _pic_zcro_f1ag is equal to 1), sourcePic is set to be a picture with a luma sample array of CroppedWidth x CroppedHeight samples equal to 0 and Cb and Cr sample arrays of ( CroppedWidth / SubWidthC ) x ( CroppedHeight / SubHeightC ) samples equal to 0.If numlnputPics is equal to 1. the following applies:The luma sample array CroppedYPicf i ] and the chroma sample arrays CroppedCbPic[ i ] and CroppedCrPic[ i ], when present, are set to be the 2-dimensional arrays of decoded sample values of the Y, Cb and Cr components, respectively, of sourcePic.- Otherwise (numlnputPics is greater than 1), the following applies:The variable sourceWidth is set equal to the value of pps_pic_width_in_luma_samples - SubWidthC * ( pps conf win left offset + pps conf win right offset ) for sourcePic.The variable sourceHeight is set equal to the value of pps_pic_height_in_luma_samples - SubHeightC * ( pps conf win top offset + pps_conf_win_bottom_offset ) for sourcePic.If sourceWidth is equal to CroppedWidth and sourceHeight is equal to CroppedHeight, resampledPic is set to be the same as sourcePic.Otherwise (sourceWidth is not equal to CroppedWidth or sourceHeight is not equal to CroppedHeight), the following applies:There shall be an NNPF, hereafter referred to as the super resolution NNPF, that is defined by at least one NNPFC SEI message, is activated by an NNPFA SEI message forP24102478901WO1; G25N22727W (4824-71201) sourcePic, and has nnpfc_purpose equal to 4, nnpfcOutputPicWidth equal to CroppedWidth and nnpfcOutputPicHeight equal to CroppedHeight. resampledPic is set to be the output of the neural-network inference of the super resolution NNPF with sourcePic being an input.The luma sample array CroppedYPicf i ] and the chroma sample arrays CroppedCbPicf i ] and CroppedCrPic[ i ], when present, are set to be the 2-dimensional arrays of decoded sample values of the Y, Cb and Cr components, respectively, of resampledPic.BitDcpthy and BitDcpthc arc both set equal to BitDcpth.ChromaFormatldc is set equal to sps chroma fomiat idc.The array StrengthControlValf i ] for all values of i in the range of 0 to numlnputPics - 1, inclusive, specifying the filtering strength control value for the input pictures for the NNPF, is derived as follows: - StrengthControlValf i ] is set equal to the value of ( firsts 1 iccQp , + QpBdOffset ) ( 63 +QpBdOffset ), where firstSliceQpy is equal to SliccQp , of the first slice of inputPicf i ].
[0297] There shall not be more than two NNPFC SEI messages present in a picture unit with the same value of nnpfe id. When there are two NNPFC SEI messages present in a picture unit with the same value of nnpfe id. these SEI messages shall have different content. When two NNPFC SEI messages with the same nnpfe id and different content are present in the same picture unit, both of these NNPFC SEI messages shall be in the same SEI NAL unit.3. Technical problems solved by disclosed technical solutions
[0298] An example design for the neural-network post-filter characteristics (NNPFC) SEI message and the neural-network post-filter activation (NNPF A) SEI message in a coded video bitstream has the following problems when they are used in the context of a processing chain:
[0299] First, the implied process (i.e., the NNPF process herein) may also be applied to a processed version of a cropped decoded output picture, or an inserted (interpolated or extrapolated) picture, not just a cropped decoded output picture. However, that aspect is missing.
[0300] Second, for NNPFs, an input picture may be unavailable in CandInputPicList[ SeiProcStgldx ] and needs to be padded based a picture in CandlnputPicListf SeiProcStgldx ] or padded to be zero-valued. However, that aspect is missing.
[0301] Third, the specifications of the conditions involved in tire derivation of the input pictures for the NNPF based on pictures in CandInputPicList[ SeiProcStgldx ], related to a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5, work with SeiProcStgldx equal to 0. but not when SeiProcStgldx is greater than 0.
[0302] Fourth, the derivation of the array StrengthControlValf i ] is based on the first SliceQpY of the first slice of an input picture. However, an input picture can also be a processed version of a cropped decoded outputP24102478901WO1; G25N22727W (4824-71201) picture, or an inserted (interpolated or extrapolated) picture, while the concept of slices only apply to a coded picture, decoded picture or a cropped decoded output picture.4. A listing of solutions and embodiments
[0303] To solve the above-described problems, methods as summarized below are disclosed. The aspects should be considered as examples to explain the general concepts and should not be interpreted in a narrow way. Furthermore, these examples can be applied individually or combined in any manner.1) In one example, it is specified that the variable SeiProcStgldx indicates the processing stage index associated with the NNPF within a chosen processing chain. a. In one example, it is specified that, if the NNPFC or NNPFA SEI message is used during the invocation of a process for handling of the processing chain as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, the value of SeiProcStgldx is provided by that process; otherwise, the value of SeiProcStgldx is inferred to be equal to 0.2) In one example, it is specified that the list CandInputPicList[ SeiProcStgldx ] contains a list of pictures in output order from which the input pictures for the NNPF are selected or padded. a. In one example, it is specified that, when SeiProcStgldx is equal to 0, pictures in CandInputPicList
[0000] are cropped decoded output pictures. b. In one example, it is specified that, if the NNPFC or NNPFA SEI message is used during the invocation of a process for handling of the processing chain as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, the list CandlnputPicListf SeiProcStgldx ] is provided by that process; otherwise, the list CandlnputPicListf SeiProcStgldx ] is inferred to be identical to the list of cropped decoded output pictures in output order resulted from decoding the bitstream.3) In one example, it is specified that, for a cropped decoded output picture picB, one or more of the following aspects apply: a. The corresponding coded picture of picB is also referred to as the corresponding coded picture of a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB. b. The nuh layer id of a picture in a picture list that is the corresponding picture of a picB or is an associated inserted picture of picB is set to be equal to the nuh layer id of picB. c. An SEI message associated with picB is also considered as associated with a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB.4) In one example, it is specified that, let currPic be a picture in CandlnputPicListf SeiProcStgldx ] that is a corresponding picture of currCdoPic or is an associated inserted picture of currCdoPic, one or more of the following aspects apply: a. CroppedWidth is set equal to the picture width in units of luma samples of currPic. b. CroppedHeight is set equal to the picture height in units of luma samples of currPic. c. BitDepthY is set equal to the bit depth of the luma sample array of currPic.P24102478901WO1; G25N22727W (4824-71201) d. BitDepthC is set equal to the bit depth of the chroma sample arrays, if any, of currPic. e. ChromaFormatldc is set equal to the chroma format indicator ChromaFormatldc of currPic.5) In one example, it is specified that, since for an NNPF associated with SeiProcStgldx equal to 0 only cropped decoded output pictures are used as input pictures of the NNPF, the value of ph_pic_output_flag in the picture header of the coded picture corresponding to each input picture of the NNPF associated with SeiProcStgldx equal to 0 is equal to 1.6) In one example, it is specified that the derivation of the value of the variable numinferences involves the following two conditions: a. The corresponding coded picture of currPic is the last picture of the bitstream in output order that has nuh layer id equal to currLayerld. b. The corresponding coded picture of currPic is the last picture in the coded layer video sequence (CLVS) in output order and nnpfa no foll clvs flag is equal to 1.7) In one example, it is specified that the derivation of the input pictures for the NNPF based on pictures in CandInputPicList[ SeiProcStgldx ] involves the following two conditions: a. pictureRateUpsamplingFlag is equal to 1 and currPic is associated with a frame packing arrangement SEI message with frame packing arrangement type equal to 5 and a particular value of fp current frame is frameO flag, and there is a picture prevPic that is the last picture in output order among all pictures in CandlnputPicListf SeiProcStgldx ] that have nuh layer id equal to currLayerld, precede inputPic[ i - 1 ] in output order, and are associated with a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5 and the same value of fp current frame is frameO flag. b. pictureRateUpsamplingFlag is equal to 0 or currPic is not associated with a frame packing arrangement SEI message with framc packmg arrangcmcnt typc equal to 5, and there is a picture prevPic that is the last picture in output order among all pictures in CandlnputPicListf SeiProcStgldx ] that have nuh layer id equal to currLayerld and precede inputPicf i - 1 ] in output order.8) In one example, it is specified that the derivation of the input pictures for the NNPF based on pictures in CandlnputPicListf SeiProcStgldx ] involves the following condition: nnpfa_no_prev_clvs_flag is equal to 0 or the coded pictures corresponding to prevPic and currPic are present in the same CLVS, where currPic a picture in CandlnputPicListf SeiProcStgldx ] that is a corresponding picture of currCdoPic or is an associated inserted picture of currCdoPic.9) In one example, it is specified that the array StrengthControlValf i ] for all values of i in the range of 0 to numlnputPics - 1, inclusive, specifying the filtering strength control value for the input pictures for the NNPF, is derived as follows:P24102478901WO1; G25N22727W (4824-71201) a. StrengthControlVal[ i ] is set equal to the value of ( firstSliceQpY + QpBdOffset ) - ( 63 + QpBdOffset ), where firstSliceQpY is equal to SliceQpY of the first slice of the coded picture corresponding to inputPic[ i ].5. Embodiments
[0304] Below are some example embodiments for some of the aspects summarized above in Section 4. Added or modified texts are indicated with double braces { { } }, and some of the deleted parts are indicated with triple brackets [[[ ]]].5.1 First embodimentD.12 Use of SEI messages specified in other specificationsD.12.1 General
[0305] The SEI messages having syntax structures identified in clause D.2.1 that are specified in other specifications, including Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13, may be used together with bitstreams specified by this Specification.
[0306] When any particular SEI message specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13 is included in a bitstream specified by this Specification, the SEI payload syntax shall be as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, or ISO / IEC 23090-13, respectively, that syntax shall be included into the sei_payload( ) syntax structure as specified in clause D.2. 1 and shall use the payloadType value specified in clause D.2.1, the corresponding semantics specified in Rec. ITU-T H.274 | ISO / IEC 23002-7. ISO / IEC 23001-11, or ISO / IEC 23090-13 shall apply, and, additionally, any SEI- message-specific constraints, variables, and semantics specified in this annex forthat particular SEI message shall apply.
[0307] The value of PayloadBits, as specified in clause D.2.2, is passed to the parser of the SEI message syntax structures specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, ISO / IEC 23001-11, and ISO / IEC 23090-13.
[0308] NOTE - The definition of IRAP picture in the VSEI specification is as follows: A coded picture starting from which all pictures in the same layer in both decoding order and output order can be decoded without first decoding any picture in the same layer earlier in decoding order in the coded video bitstream. Consequently, a GDR picture with ph_recovery_poc_cnt equal to 0 in a WC bitsream is an IRAP picture according to the IRAP picture definition in the VSEI specification.
[0309] {{Besides definitions in clause 3. the following definitions apply for specifying the use of SEI messages in remaining subclauses of subclause D. 12: } }
[0310] {{corresponding picture: For a particular picture picA, the corresponding picture in a picture list is the picture in the picture list that is either picA itself or a processed version of picA generated when the process implied by an SEI message is applied. } }P24102478901WO1; G25N22727W (4824-71201)
[0311] {{NOTE - The particular picture picA could be a picture that is not in the picture list, in which case the corresponding picture in the picture list is a processed version of picA. When picA is in the picture list, it's corresponding picture in the picture list is itself. } }
[0312] {{inserted picture: A picture that was interpolated or extrapolated when the process implied by an SEI message (e g., an NNPFA SEI message activating an NNPF with PictureRateUpsamplingFlag or TemporalExtrapolationFlag equal to 1) is applied.} }
[0313] { {associated inserted picture: For a particular picture picA, an associated inserted picture in a picture list is a picture picB in the picture list that is the corresponding picture of an inserted picture generated when applying the process implied by an SEI message to a corresponding picture of picA. } }
[0314] {{NOTE - The particular picture picA could be a picture that is not in the picture list.} }D.12.11 Use of the neural network post-filter characteristics SEI message and the neural network post-filter activation SEI message
[0315] Let [[[currPic be the cropped decoded output picture]]] {{currCdoPic be a cropped decoded output picture}} for which the neural -network post-processing filter (NNPF) defined by the neural-network post-filter characteristics (NNPFC) SEI message is activated by a neural-network post-filter activation (NNPFA) SEI message and currLayerld be the nuh layer id value of [[[currPic]]] { {currCdoPic} } .
[0316] { {The variable SeiProcStgldx indicates the processing stage index associated with the NNPF within a chosen processing chain. If the NNPFC or NNPFA SEI message is used during the invocation of a process for handling of the processing chain as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, the value of SeiProcStgldx is provided by that process. Otherwise, the value of SeiProcStgldx is inferred to be equal to 0. } }
[0317] {{The list CandlnputPicListf SeiProcStgldx ] contains a list of pictures in output order from which the input pictures for the NNPF are selected or padded. When SeiProcStgldx is equal to 0, pictures in CandInputPicList
[0000] are cropped decoded output pictures. If the NNPFC or NNPFA SEI message is used during the invocation of a process for handling of the processing chain as specified in Rec. ITU-T H.274 | ISO / IEC 23002-7, the list CandInputPicList[ SeiProcStgldx ] is provided by that process. Otherwise, the list CandInputPicList[ SeiProcStgldx ] is inferred to be identical to the list of cropped decoded output pictures in output order resulted from decoding the bitstream.} }
[0318] {{NOTE 1 - When SeiProcStgldx is greater than 0. tire list CandInputPicList[ SeiProcStgldx ] contains pictures after the application of the process(es) implied by the SEI message(s) associated with processing stage index values less than SeiProcStgldx.}}
[0319] { {For a cropped decoded output picture picB, the following applies: } }{ {The corresponding coded picture of picB is also referred to as the corresponding coded picture of a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB. } }P24102478901WO1; G25N22727W (4824-71201){ {The nuh_layer_id of a picture in a picture list that is the corresponding picture of a picB or is an associated inserted picture of picB is set to be equal to the nuh_layer_id of picB. } }{ {An SEI message associated with picB is also considered as associated with a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB.}}
[0320] {{Let currPic be a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of currCdoPic or is an associated inserted picture of currCdoPic. The following applies:}}{ {CroppedWidth is set equal to the picture width in units of luma samples of currPic. } } { {CroppedHeight is set equal to the picture height in units of luma samples of currPic.} } { { BitDepth y is set equal to the bit depth of the luma sample array of currPic. } }{ { BitDepthc is set equal to the bit depth of the chroma sample arrays, if any, of currPic. } }{ {ChromaFormatldc is set equal to the chroma format indicator ChromaFormatldc of currPic. } }
[0321] It is a requirement of bitstream conformance that when a picture unit contains an NNPFA SEI message, the value of ph_pic_output_flag in the picture header contained in that picture unit shall be equal to 1.
[0322] NOTE 2 - Since {{for an NNPF associated with SeiProcStgldx equal to 0}} only cropped decoded output pictures are used as input pictures of the NNPF, the value of ph_pic_output_flag in the picture header of the coded picture corresponding to each input picture of the NNPF { {associated with SeiProcStgldx equal to 0} } is equal to 1.
[0323] The variable pictureRateUpsamplingFlag is set equal to ( ( nnpfc_purpose & 0x08 ) > 0 ) ? 1 : 0.
[0324] The variable numlnputPics is set equal to nnpfc_num_input_pics_minus 1 + 1.
[0325] The variable numinferences is derived as follows:If all of the following conditions are true, the variable numPostRoll is set equal to the value of i such that nnpfc_interpolated_pics[ i ] is greater than 0 and the variable numinferences is set equal to 1 + numPostRoll: nnpfc_purpose is equal to 8 (i.e., the only purpose for the NNPF is picture rate upsampling), nnpfa persistence flag is equal to 1. nnpfc_interpolated_pics[ i ] is greater than 0 only for a single value of i that is greater than 0.Either of the following conditions is true:- { {The corresponding coded picture of} } currPic is the last picture of the bitstream in output order that has nuh layer id equal to currLayerld.{ {The corresponding coded picture of} } currPic is the last picture in the CLVS in output order and nnpfa no foil civs flag is equal to 1.Otherwise, if all of the following conditions are true, the variable numPostRoll is set equal to Inpldx[ i ] for the value of i such that nnpfa_output_flag[ i ] is equal to 1, and the variable numinferences is set equal to 1 + numPostRoll: pictureRateUpsamplingFlag is equal to 0. numlnputPics is greater than 1.P24102478901WO1; G25N22727W (4824-71201) nnpfa ersistence flag is equal to 1. nnpfa output flag[ idx ] is equal to 1 for a single value of idx in the range of 0 to NumlnpPicsInOutputTensor - 1, inclusive, and for that single value of idx, Inpldx[ idx ] is greater than 0.Either of the following conditions is true:- { {The corresponding coded picture of} } currPic is the last picture of the bitstream in output order that has nuh layer id equal to currLayerld.- { {The corresponding coded picture of} } currPic is the last picture in the CLVS in output order and nnpfa no foll clvs flag is equal to 1.Otherwise, the variable numinferences is set equal to 1.
[0326] For each value of j in the range of 0 to numinferences - 1, inclusive, the following applies { {for deriving the input pictures for the NNPF based on pictures in CandInputPicList[ SeiProcStgldx ] } } :The arrays inputPic[ i ] and inputPresentFlagf i ] for i in the range of 0 to numlnputPics - 1, inclusive, representing all the input pictures and the presence of input pictures, respectively, are specified as follows: When j is greater than 0, for each value of k in the range of 0 to j - 1. inclusive. inputPic[ k ] is set to be currPic and inputPresentFlag[ k ] is set equal to 0.The j-th input picture, inputPic[ j ], is set to be currPic and inputPresentFlag[ j ] is set equal to 1 .When numlnputPics is greater than 1, the following applies for each value of i in the range of j + 1 to numlnputPics - 1, inclusive, in increasing order of i:- If both of the following conditions are true, inputPic[ i ] is set to be prevPic and inputPresentFlag[ i ] is set equal to 1 :Either of the following conditions is true: pictureRateUpsamplingFlag is equal to 1 and currPic is associated with a frame packing arrangement SEI message with framc packing arrangcment typc equal to 5 and a particular value of fp_currcnt_framc_is_framcO flag, and there is a [[[cropped decoded output]]] picture prevPic that is the last picture in output order among all [[[cropped decoded output]]] pictures {{in CandInputPicList[ SeiProcStgldx ]} } that have nuh layer id equal to currLayerld, precede inputPic[ i - 1 ] in output order, and are associated with a frame packing arrangement SEI message with frame packing arrangement type equal to 5 and the same value of fp_current_frame_is_frameO_flag . pictureRateUpsamplingFlag is equal to 0 or currPic is not associated with a frame packing arrangement SEI message with frame jacking arrangement type equal to 5. and there is a [[[cropped decoded output]]] picture prevPic that is the last picture in output order among all [[[cropped decoded output]]] pictures {{inP24102478901WO1; G25N22727W (4824-71201)CandInputPicList[ SeiProcStgldx ]} } that have nuh layer id equal to currLayerld and precede inputPic[ i - 1 ] in output order. nnpfa_no_prev_clvs flag is equal to 0 or the {{coded pictures}} [[[coded picture]]] corresponding to prevPic and { {currPic}} [[[the current picture]]] are present in the same CL VS.- Otherwise, the following applies: input Pic] i ] is set to be the same picture as inputPicf i - 1 ] and input Present Flag [ i ] is set equal to 0.It is a requirement of bitstream conformance that, when pictureRateUpsamplingFlag is equal to 1. nnpfc interpolated _pics[ i - 1 ] shall be equal to 0.It is a requirement of bitstream conformance that when inputPresentFlag[ i ] is equal to 0 and nnpfc_input_pic_output_flag[ i ] is equal to 1, the value of nnpfa_output_flag[ idx ] shall be equal to 0 for the value of idx such that Inpldx[ idx ] is equal to i.For purposes of interpretation of the NNPFC SEI message, the follow ing variables are specified:[[[If numlnputPics is greater than 1 and there is a second NNPF that is defined by at least one NNPFC SEI message, is activated by an NNPFA SEI message for currPic, and has nnpfc_purpose equal to 4, the following applies:]]]- [[[CroppedWidth is set equal to nnpfcOutputPicWidth defined for the second NNPF.]]]- [[[CroppedHeight is set equal to nnpfcOutputPicHeight defined for the second NNPF.]]] [[[Otherwise, the following applies:]]][[[CroppedWidth is set equal to the value of pps_pic_width_in_luma_samples - SubWidthC * [[[( pps conf win left offset + pps conf win right offset ) for currPic.]]][[[CroppedHeight is set equal to the value of pps_pic_height_in_luma_samples - SubHeightC * ( pps conf win top offset + pps conf win bottom offset ) for currPic.]]]The luma sample arrays CroppcdYPic] i ] and the chroma sample arrays CroppedCbPic[ i ] and CroppcdCrPic] i ], when present, are derived as follows for each value of i in the range of 0 to numlnputPics - 1, inclusive:The variable sourcePic is derived as follows:If inputPresentFlag[ i ] is equal to 1 or nnpfc_absent_input_pic_zero_flag is equal to 0, sourcePic is set to be inputPic[ i ].Otherwise(inputPresentFlag[ i ] is equal to 0 and nnpfc_absent_input _pic_zero_flag is equal to 1 ), sourcePic is set to be a picture with a luma sample array of CroppedWidth x CroppedHeight samples equal to 0 and Cb and Cr sample arrays of ( CroppedWidth / SubWidthC ) x ( CroppedHeight / SubHeightC ) samples equal to 0.P24102478901WO1; G25N22727W (4824-71201)- {{The luma sample array CroppedYPicf i ] and the chroma sample arrays CroppedCbPicf i ] and CroppedCrPic[ i ], when present, are set to be the 2 -dimensional arrays of sample values of the Y, Cb and Cr components, respectively, of sourcePic. } }[[[If numlnputPics is equal to 1, the following applies:]]][[[The luma sample array CroppedYPic[ i ] and the chroma sample arrays CroppcdCbPic] i ] and CroppcdCrPic] i ], when present, are set to be the 2-dimensional arrays of decoded sample values of the Y, Cb and Cr components, respectively, of sourcePic.]]]- [[[Otherwise (numlnputPics is greater than 1), the following applies:]]][[[The variable sourceWidth is set equal to the value of pps_pic_width_in_luma_samples - SubWidthC * ( pps conf win left offset + pps conf win right offset ) for sourcePic.]]] [[[The variable sourceHeight is set equal to the value of pps_pic_height_in_luma_samples - SubHeightC * ( pps conf win top offset + pps conf win bottom offset ) for sourcePic.]]] [[[If sourceWidth is equal to CroppedWidth and sourceHeight is equal to CroppedHeight, resampledPic is set to be the same as sourcePic.]]][[[Otherwise (sourceWidth is not equal to CroppedWidth or sourceHeight is not equal to CroppedHeight), the following applies:]]][[[There shall be an NNPF, hereafter referred to as the super resolution NNPF, that is defined by at least one NNPFC SEI message, is activated by an NNPFA SEI message for sourcePic, and has nnpfc_purpose equal to 4, nnpfcOutputPicWidth equal to CroppedWidth and nnpfcOutputPicHeight equal to CroppedHeight.]]][[[resampledPic is set to be the output of the neural-network inference of the super resolution NNPF with sourcePic being an input.]]][[[The luma sample array CroppedYPic[ i ] and the chroma sample arrays CroppcdCbPic] i ] and CroppedCrPic] i ], when present, are set to be the 2-dimensional arrays of decoded sample values of the Y, Cb and Cr components, respectively, of resampledPic.]]][[[BitDepthy and BitDepthc are both set equal to BitDepth.]]][ [ [ChromaF ormatldc is set equal to sps chroma format idc . ] ] ]The array StrengthControlVal[ i ] for all values of i in the range of 0 to numlnputPics - 1. inclusive, specifying the filtering strength control value for the input pictures for the NNPF, is derived as follows:- StrengthControlValf i ] is set equal to the value of ( firstSliccQp , + QpBdOffset ) ^ ( 63 + QpBdOffset ), where firstSliceQpy is equal to SliceQpy of the first slice of { {the coded picture corresponding to}} inputPic[ i ].
[0327] There shall not be more than two NNPFC SEI messages present in a picture unit with the same value of nnpfe id. When there are two NNPFC SEI messages present in a picture unit with the same value of nnpfe id, these SEI messages shall have different content. When two NNPFC SEI messages with the same nnpfe id andP24102478901WO1; G25N22727W (4824-71201) different content are present in the same picture unit, both of these NNPFC SEI messages shall be in the same SEI NAL unit.6. References[1] ITU-T and ISO / IEC, “High efficiency video coding'’, Rec. ITU-T H.265 | ISO / IEC 23008-2 (in force edition).[2] ITU-T and ISO / IEC. “Versatile Video Coding”, Rec. ITU-T H.266 | ISO / IEC 23090-3.[3] ITU-T and ISO / IEC, “Versatile Supplemental Enhancement Information Messages for Coded Video Bitstreams”, Rec. ITU-T Rec. H.274 | ISO / IEC 23002-7.[4] J. Boyce, J. Chen, S. Deshpande, M. M. Hannukscla, S. McCarthy, G. J. Sullivan, H. Tan, and Y.-K. Wang (editors), JVET-AI2006, “Additional SEI messages for VSEI version 4 (Draft 3)”.[5] G. J. Sullivan, B. Bross, M. M. Hannuksela. and Y.-K. Wang (editors). JVET-AI2005, “Additions and corrections for WC version 4 (Draft 9)”.
[0328] FIG. 2 is a block diagram showing an example video processing system 4000 in which various techniques disclosed herein may be implemented. Various implementations may include some or all of the components of the system 4000. The system 4000 may include input 4002 for receiving video content. The video content may be received in a raw or uncompressed format, e.g., 8 or 10 bit multi-component pixel values, or may be in a compressed or encoded format. The input 4002 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of network interface include wired interfaces such as Ethernet, passive optical network (PON), etc. and wireless interfaces such as wireless fidelity (Wi-Fi) or cellular interfaces.
[0329] The system 4000 may include a coding component 4004 that may implement the various coding or encoding methods described in the present disclosure. The coding component 4004 may reduce the average bitrate of video from the input 4002 to the output of the coding component 4004 to produce a coded representation of the video. The coding techniques are therefore sometimes called video compression or video transcoding techniques. The output of the coding component 4004 may be either stored, or transmitted via a communication connected, as represented by the component 4006. The stored or communicated bitstream (or coded) representation of the video received at the input 4002 may be used by a component 4008 for generating pixel values or displayable video that is sent to a display interface 4010. Tire process of generating user-viewable video from the bitstream representation is sometimes called video decompression. Furthermore, while certain video processing operations are referred to as “coding” operations or tools, it will be appreciated that the coding tools or operations are used at an encoder and corresponding decoding tools or operations that reverse the results of the coding will be performed by a decoder.
[0330] Examples of a peripheral bus interface or a display interface may include universal serial bus (USB) or high definition multimedia interface (HDMI) or Displayport, and so on. Examples of storage interfaces include serial advanced technology attachment (SATA), peripheral component interconnect (PCI), integrated drive electronics (IDE) interface, and the like. The techniques described in the present disclosure may be embodied inP24102478901WO1; G25N22727W (4824-71201) various electronic devices such as mobile phones, laptops, smartphones or other devices that are capable of performing digital data processing and / or video display.
[0331] FIG. 3 is a block diagram of an example video processing apparatus 4100. The apparatus 4100 may be used to implement one or more of the methods described herein. The apparatus 4100 may be embodied in a smartphone, tablet, computer, Internet of Things (loT) receiver, and so on. The apparatus 4100 may include one or more processors 4102, one or more memories 4104 and video processing circuitry 4106. The processor(s) 4102 may be configured to implement one or more methods described in the present disclosure. The memory (memories) 4104 may be used for storing data and code used for implementing the methods and techniques described herein. The video processing circuitry 4106 may be used to implement, in hardware circuitry, some techniques described in the present disclosure. In some embodiments, the video processing circuitry 4106 may be at least partly included in the processor 4102, e g., a graphics co-processor.
[0332] FIG. 4 is a flowchart for an example method 4200 of video processing. The method 4200 determines that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain at step 4202. A conversion between a visual media data and a bitstream is perfomed based on the chosen processing chain at step 4204. The conversion may include encoding at an encoder, decoding at a decoder, or combinations thereof.
[0333] It should be noted that the method 4200 can be implemented in an apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, such as video encoder 4400, video decoder 4500, and / or encoder 4600. In such a case, the instructions upon execution by the processor, cause the processor to perform the method 4200. Further, the method 4200 can be performed by a non-transitory computer readable medium comprising a computer program product for use by a video coding device. The computer program product comprises computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method 4200.
[0334] FIG. 5 is a block diagram that illustrates an example video coding system 4300 that may utilize the techniques of this disclosure. The video coding system 4300 may include a source device 4310 and a destination device 4320. Source device 4310 generates encoded video data which may be referred to as a video encoding device. Destination device 4320 may decode the encoded video data generated by source device 4310 which maybe referred to as a video decoding device.
[0335] Source device 4310 may include a video source 4312, a video encoder 4314. and an input / output (I / O) interface 4316. Video source 4312 may include a source such as a video capture device, an interface to receive video data from a video content provider, and / or a computer graphics system for generating video data, or a combination of such sources. The video data may comprise one or more pictures. Video encoder 4314 encodes the video data from video source 4312 to generate a bitstream. The bitstream may include a sequence ofP24102478901WO1; G25N22727W (4824-71201) 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. I / O interface 4316 may include a modulator / demodulator (modem) and / or a transmitter. The encoded video data may be transmitted directly to destination device 4320 via I / O interface 4316 through network 4330. The encoded video data may also be stored onto a storage medium / server 4340 for access by destination device 4320.
[0336] Destination device 4320 may include an I / O interface 4326, a video decoder 4324, and a displaydevice 4322. I / O interface 4326 may include a receiver and / or a modem. I / O interface 4326 may acquire encoded video data from the source device 4310 or the storage medium / server 4340. Video decoder 4324 may decode the encoded video data. Display device 4322 may display the decoded video data to a user. Display device 4322 may be integrated with the destination device 4320, or may be external to destination device 4320, which can be configured to interface with an external display device.
[0337] Video encoder 4314 and video decoder 4324 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.
[0338] FIG. 6 is a block diagram illustrating an example of video encoder 4400, which may be video encoder 4314 in the system 4300 illustrated in FIG. 5. Video encoder 4400 may be configured to perform any or all of the techniques of this disclosure. Tire video encoder 4400 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of video encoder 4400. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
[0339] The functional components of video encoder 4400 may include a partition unit 4401, a prediction unit 4402 which may include a mode select unit 4403, a motion estimation unit 4404, a motion compensation unit 4405, an intra prediction unit 4406, a residual generation unit 4407, a transform processing unit 4408, a quantization unit 4409, an inverse quantization unit 4410, an inverse transform unit 4411, a reconstruction unit 4412, a buffer 4413, and an entropy encoding unit 4414.
[0340] In other examples, video encoder 4400 may include more, fewer, or different functional components. In an example, prediction unit 4402 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.
[0341] Furthermore, some components, such as motion estimation unit 4404 and motion compensation unit 4405 may be highly integrated, but are represented in the example of video encoder 4400 separately for purposes of explanation.
[0342] Partition unit 4401 may partition a picture into one or more video blocks. Video encoder 4400 and video decoder 4500 may support various video block sizes.P24102478901WO1; G25N22727W (4824-71201)
[0343] Mode select unit 4403 may select one of the coding modes, intra or inter, e.g., based on error results, and provide the resulting intra or inter coded block to a residual generation unit 4407 to generate residual block data and to a reconstruction unit 4412 to reconstruct the encoded block for use as a reference picture. In some examples, mode select unit 4403 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. Mode select unit 4403 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.
[0344] To perform inter prediction on a current video block, motion estimation unit 4404 may generate motion information for the current video block by comparing one or more reference frames from buffer 4413 to the current video block. Motion compensation unit 4405 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from buffer 4413 other than the picture associated with the current video block.
[0345] Motion estimation unit 4404 and motion compensation unit 4405 may perfonn 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.
[0346] In some examples, motion estimation unit 4404 may perform uni -directional prediction for the current video block, and motion estimation unit 4404 may search reference pictures of list 0 or list 1 for a reference video block for the current video block. Motion estimation unit 4404 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. Motion estimation unit 4404 may output the reference index, a prediction direction indicator, and the motion vector as the motion information of the current video block. Motion compensation unit 4405 may generate the predicted video block of the current block based on the reference video block indicated by the motion information of the current video block.
[0347] In other examples, motion estimation unit 4404 may perform bi-directional prediction for the current video block, motion estimation unit 4404 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. Motion estimation unit 4404 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. Motion estimation unit 4404 may output the reference indexes and the motion vectors of the current video block as the motion information of the current video block. Motion compensation unit 4405 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.
[0348] In some examples, motion estimation unit 4404 may output a full set of motion information for decoding processing of a decoder. In some examples, motion estimation unit 4404 may not output a frill set ofP24102478901WO1; G25N22727W (4824-71201) motion information for the current video. Rather, motion estimation unit 4404 may signal the motion information of the current video block with reference to the motion information of another video block. For example, motion estimation unit 4404 may determine that the motion information of the current video block is sufficiently similar to the motion information of a neighboring video block.
[0349] In one example, motion estimation unit 4404 may indicate, in a syntax structure associated with the current video block, a value that indicates to the video decoder 4500 that the current video block has the same motion information as another video block.
[0350] In another example, motion estimation unit 4404 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 4500 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.
[0351] As discussed above, video encoder 4400 may predictively signal the motion vector. Two examples of predictive signaling techniques that may be implemented by video encoder 4400 include advanced motion vector prediction (AMVP) and merge mode signaling.
[0352] Intra prediction unit 4406 may perform intra prediction on the current video block. When intra prediction unit 4406 performs intra prediction on the current video block, intra prediction unit 4406 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.
[0353] Residual generation unit 4407 may generate residual data for the current video block by subtracting 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.
[0354] 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 residual generation unit 4407 may not perform the subtracting operation.
[0355] Transform processing unit 4408 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.
[0356] After transform processing unit 4408 generates a transform coefficient video block associated with the current video block, quantization unit 4409 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.
[0357] Inverse quantization unit 4410 and inverse transform unit 4411 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. Reconstruction unit 4412 may add the reconstructed residual videoP24102478901WO1; G25N22727W (4824-71201) block to corresponding samples from one or more predicted video blocks generated by the prediction unit 4402 to produce a reconstructed video block associated with the current block for storage in the buffer 4413.
[0358] After reconstruction unit 4412 reconstructs the video block, the loop filtering operation may be performed to reduce video blocking artifacts in the video block.
[0359] Entropy encoding unit 4414 may receive data from other functional components of the video encoder 4400. When entropy encoding unit 4414 receives the data, entropy encoding unit 4414 may perform one or more entropy encoding operations to generate entropy encoded data and output a bitstream that includes the entropy encoded data.
[0360] FIG. 7 is a block diagram illustrating an example of video decoder 4500 which may be video decoder4324 in the system 4300 illustrated in FIG. 5. The video decoder 4500 may be configured to perform any or all of the techniques of this disclosure. In the example shown, the video decoder 4500 includes a plurality of functional components. The techniques described in this disclosure may be shared among the various components of the video decoder 4500. In some examples, a processor may be configured to perform any or all of the techniques described in this disclosure.
[0361] In the example shown, video decoder 4500 includes an entropy decoding unit 4501, a motion compensation unit 4502, an intra prediction unit 4503, an inverse quantization unit 4504, an inverse transfonnation unit 4505, a reconstruction unit 4506, and a buffer 4507. Video decoder 4500 may, in some examples, perform a decoding pass generally reciprocal to the encoding pass described with respect to video encoder 4400.
[0362] Entropy decoding unit 4501 may retrieve an encoded bitstream. The encoded bitstream may include entropy coded video data (e.g., encoded blocks of video data). Entropy decoding unit 4501 may decode the entropy coded video data, and from the entropy decoded video data, motion compensation unit 4502 may determine motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. Motion compensation unit 4502 may, for example, determine such information by performing the AM VP and merge mode.
[0363] Motion compensation unit 4502 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.
[0364] Motion compensation unit 4502 may use interpolation filters as used by video encoder 4400 during encoding of the video block to calculate interpolated values for sub-integer pixels of a reference block. Motion compensation unit 4502 may determine the interpolation filters used by video encoder 4400 according to received syntax information and use the interpolation filters to produce predictive blocks.
[0365] Motion compensation unit 4502 may use some 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 partitionP24102478901WO1; G25N22727W (4824-71201) is encoded, one or more reference frames (and reference frame lists) for each inter coded block, and other information to decode the encoded video sequence.
[0366] Intra prediction unit 4503 may use intra prediction modes for example received in the bitstream to form a prediction block from spatially adjacent blocks. Inverse quantization unit 4504 inverse quantizes, i.e.. dequantizes, the quantized video block coefficients provided in the bitstream and decoded by entropy decoding unit 4501. Inverse transform unit 4505 applies an inverse transform.
[0367] Reconstruction unit 4506 may sum the residual blocks with the corresponding prediction blocks generated by motion compensation unit 4502 or intra prediction unit 4503 to form decoded blocks. 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 buffer 4507, which provides reference blocks for subsequent motion compensation / intra prediction and also produces decoded video for presentation on a display device.
[0368] FIG. 8 is a schematic diagram of an example encoder 4600. The encoder 4600 is suitable for implementing the techniques of WC. The encoder 4600 includes three in-loop filters, namely a deblocking filter (DF) 4602, a sample adaptive offset (SAO) 4604, and an adaptive loop filter (ALF) 4606. Unlike the DF 4602. which uses predefined filters, the SAO 4604 and the ALF 4606 utilize the original samples of the current picture to reduce the mean square errors between the original samples and the reconstructed samples by adding an offset and by applying a finite impulse response (FIR) filter, respectively, with coded side information signaling the offsets and filter coefficients. The ALF 4606 is located at the last processing stage of each picture and can be regarded as a tool trying to catch and fix artifacts created by the previous stages.
[0369] The encoder 4600 further includes an intra prediction component 4608 and a motion estimation / compensation (ME / MC) component 4610 configured to receive input video. The intra prediction component 4608 is configured to perform intra prediction, while the ME / MC component 4610 is configured to utilize reference pictures obtained from a reference picture buffer 4612 to perform inter prediction. Residual blocks from inter prediction or intra prediction are fed into a transform (T) component 4614 and a quantization (Q) component 4616 to generate quantized residual transform coefficients, which are fed into an entropy coding component 4618. The entropy coding component 4618 entropy codes the prediction results and the quantized transform coefficients and transmits the same toward a video decoder (not shown). Quantization components output from the quantization component 4616 may be fed into an inverse quantization (IQ) components 4620, an inverse transform component 4622, and a reconstruction (REC) component 4624. The REC component 4624 is able to output images to the DF 4602, the SAO 4604, and the ALF 4606 for filtering prior to those images being stored in the reference picture buffer 4612.
[0370] A listing of solutions preferred by some examples is provided next.
[0371] The following solutions show examples of techniques discussed herein.
[0372] 1. A method for processing media data comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage indexP24102478901WO1; G25N22727W (4824-71201) associated with a neural-network post-filter (NNPF) within a chosen processing chain; and performing a conversion between a visual media data and a bitstream based on the chosen processing chain.
[0373] 2. The method of solution 1, wherein when a neural-network post-filter characteristics (NNPFC)SEI message or a neural-network post-filter activation (NNPFA) SEI message is used during an invocation of a process for handling of the chosen processing chain, a value of SeiProcStgldx is provided by the process; and otherwise, the value of SeiProcStgldx is inferred to be equal to 0.
[0374] 3. The method of any of solutions 1-2, wherein a list CandInputPicList[ SeiProcStgldx ], whereCandlnputPicList is a candidate input picture list, contains a list of pictures in output order from which the input pictures for the NNPF are selected or padded.
[0375] 4. The method of any of solutions 1-3, wherein when SeiProcStgldx is equal to 0, pictures inCandInputPicList
[0000] are cropped decoded output pictures, or wherein when the NNPFC SEI message or the NNPFA SEI message is used during the invocation of a process for handling of the processing chain, the list CandInputPicList[ SeiProcStgldx ] is provided by that process; otherwise, the list CandInputPicList[ SeiProcStgldx ] is inferred to be identical to the list of cropped decoded output pictures in output order resulted from decoding the bitstream.
[0376] 5. The method of any of solutions 1 -4, wherein for a cropped decoded output picture (picB), one or more of the following aspects apply: a corresponding coded picture of picB is also referred to as the corresponding coded picture of a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB; the Network Abstraction Layer (NAL) unit header (NUH) layer identifier (nuh layer id) of a picture in a picture list that is the corresponding picture of a picB or is an associated inserted picture of picB is set to be equal to the nuh layer id of picB; or an SEI message associated with picB is also considered as associated with a picture in a picture list that is the corresponding picture of picB or is an associated inserted picture of picB.
[0377] 6. The method of any of solutions 1-5, wherein when currPic is a picture inCandInputPicList[ SeiProcStgldx ] that is a corresponding picture of current cropped decoded output picture (currCdoPic) or is an associated inserted picture of currCdoPic, one or more of the following aspects apply: cropped width (CroppedWidth) is set equal to a picture width in units of luma samples of currPic; cropped height (CroppedHeight) is set equal to a picture height in units of luma samples of currPic; luma bit depth (BitDepthY) is set equal to a bit depth of a luma sample array of currPic; chroma bit depth (BitDepthC) is set equal to a bit depth of chroma sample arrays, if any, of currPic; or chroma format indicator (ChromaFormatldc) is set equal to the chroma format indicator (ChromaFormatldc) of a current picture (currPic).
[0378] 7. The method of any of solutions 1-6, wherein since for an NNPF associated with SeiProcStgldx equal to 0 only cropped decoded output pictures are used as input pictures of the NNPF, the value of picture header picture output flag (ph_pic_output flag) in the picture header of the coded picture corresponding to each input picture of the NNPF associated with SeiProcStgldx equal to 0 is equal to 1.P24102478901WO1; G25N22727W (4824-71201)
[0379] 8. The method of any of solutions 1-7, wherein a derivation of a value of a variable number of inferences (numinferences) involves the following two conditions: a corresponding coded picture of currPic is a last picture of the bitstream in output order that has nuh layer id equal to current layer identifier (currLayerld); and a corresponding coded picture of currPic is the last picture in the coded layer video sequence (CLVS) in output order and NNPFA no following CLVS flag (nnpfa no foll clvs flag) is equal to 1.
[0380] 9. The method of any of solutions 1-8, wherein a derivation of input pictures for the NNPF based on pictures in CandInputPicList[ SeiProcStgldx ] involves the following two conditions: picture rare upsampling flag (pictureRateUpsamplingFlag) is equal to 1 and currPic is associated with a frame packing arrangement SEI message with frame packing arrangement type (frame_packing arrangement type) equal to 5 and a particular value of frame packing current frame is frame zero flag (fp currcnt frame is framcO flag). and there is a previous picture (prevPic) that is the last picture in output order among all pictures in CandInputPicList[ SeiProcStgldx ] that have nuh layer id equal to currLayerld, precede input picture (inputPic)[ i - 1 ] in output order, and are associated with a frame packing arrangement SEI message with frame packing arrangement type (framejacking arrangement type) equal to 5 and the same value of fp currcnt frame is framcO flag: and pictureRateUpsamplingFlag is equal to 0 or currPic is not associated with a frame packing arrangement SEI message with frame_packing_arrangement_type equal to 5, and there is a picture prevPic that is the last picture in output order among all pictures in CandInputPicList[ SeiProcStgldx ] that have nuh layer id equal to currLayerld and precede inputPic[ i - 1 ] in output order.
[0381] 10. The method of any of solutions 1-9, wherein the derivation of the input pictures for the NNPF based on pictures in CandInputPicList[ SeiProcStgldx ] involves the following condition: NNPFA no previous CLVS flag (nnpfa_no_prev_clvs_flag) is equal to 0 or the coded pictures corresponding to prevPic and currPic are present in the same CLVS, where currPic a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of currCdoPic or is an associated inserted picture of currCdoPic.
[0382] 11. The method of any of solutions 1-10, wherein the array strength control value I(StrengthControlVal[ i ]) for all values of i in the range of 0 to number of input pictures (numlnputPics) - 1. inclusive, specifying the filtering strength control value for the input pictures for the NNPF, is derived as follows: StrengthControlVal[ i ] is set equal to the value of ( firstSliceQpY + QpBdOffset ) ( 63 + QpBdOffset ), where firstSliceQpY are luma quantization paramters for the first slice, QpBdOffset is the quantization parameter bitdepth offset, firstSliceQpY is equal to slice luma quantization paramters (SliccQpY) of the first slice of the coded picture corresponding to inputPic[ i ].
[0383] 12. The method of any of solutions 1-11. wherein the conversion includes encoding the visual media data into the bitstream.
[0384] 13. The method of any of solutions 1-11, wherein the conversion includes decoding the visual media data from the bitstream.P24102478901WO1; G25N22727W (4824-71201)
[0385] 14. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of solutions 1-11.
[0386] 15. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of solutions 1-14.
[0387] 16. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain; and generating a bitstream based on the determining.
[0388] 17. A method for storing bitstream of a video comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-filter (NNPF) within a chosen processing chain; generating a bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.
[0389] 18. A method, apparatus, or system described in the present disclosure.
[0390] In the solutions described herein, an encoder may conform to the format rule by producing a coded representation according to the format rule. In the solutions described herein, a decoder may use the format rule to parse syntax elements in the coded representation with the knowledge of presence and absence of syntax elements according to the format rule to produce decoded video.
[0391] In the present disclosure, the term ‘‘video processing" may refer to video encoding, video decoding, video compression or video decompression. For example, video compression algorithms may be applied during conversion from pixel representation of a video to a corresponding bitstream representation or vice versa. The bitstream representation of a current video block may, for example, correspond to bits that are either co-located or spread in different places within the bitstream, as is defined by the syntax. For example, a macroblock may be encoded in terms of transformed and coded error residual values and also using bits in headers and other fields in the bitstream. Furthermore, during conversion, a decoder may parse a bitstream with the knowledge that some fields may be present, or absent, based on the determination, as is described in the above solutions. Similarly, an encoder may determine that certain syntax fields are or are not to be included and generate the coded representation accordingly by including or excluding the syntax fields from the coded representation.
[0392] The disclosed and other solutions, examples, embodiments, modules and the functional operations described in this disclosure can be implemented in digital electronic circuitry’, or in computer software, firmware, or hardyvare, including the structures disclosed in this disclosure and their structural equivalents, or in combinations of one or more of them. The disclosed and other embodiments can be implemented as one or moreP24102478901WO1; G25N22727W (4824-71201) computer program products, i.e., one or more modules of computer program instructions encoded on a computer readable medium for execution by, or to control the operation of, data processing apparatus. The computer readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, a composition of matter effecting a machine-readable propagated signal, or a combination of one or more them. The term “data processing apparatus” encompasses all apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, or multiple processors or computers. The apparatus can include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them. A propagated signal is an artificially generated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus.
[0393] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that arc located at one site or distributed across multiple sites and interconnected by a communication network.
[0394] The processes and logic flows described in this disclosure can be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an field programmable gate array (FPGA) or an application specific integrated circuit (ASIC).
[0395] Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read only memory or a random-access memory or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto optical disks, or optical disks. However, a computer need not have such devices. Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory? devices, including by way of example semiconductor memory7devices, e.g., erasable programmable read-only memory7(EPROM), electrically erasable programmable read-only memory7(EEPROM),P24102478901WO1; G25N22727W (4824-71201) and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto optical disks; and compact disc read-only memory (CD ROM) and Digital versatile disc-read only memory (DVD-ROM) disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0396] While the present disclosure contains many specifics, these should not be construed as limitations on the scope of any subject matter or of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular techniques. Certain features that are described in the present disclosure in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
[0397] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Moreover, the separation of various system components in the embodiments described in the present disclosure should not be understood as requiring such separation in all embodiments.
[0398] Only a few implementations and examples are described and other implementations, enhancements and variations can be made based on what is described and illustrated in the present disclosure.
[0399] A first component is directly coupled to a second component when there are no intervening components, except for a line, a trace, or another medium between the first component and the second component. The first component is indirectly coupled to the second component when there are intervening components other than a line, a trace, or another medium between the first component and the second component. The term “coupled” and its variants include both directly coupled and indirectly coupled. The use of the term “about” means a range including ±10% of the subsequent number unless otherwise stated.
[0400] While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods might be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.
[0401] In addition, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items show n or discussed as coupled may be directly connected or may be indirectly coupled or communicating through some interface, device, orP24102478901WO1; G25N22727W (4824-71201) intermediate component whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from tire spirit and scope disclosed herein.
Claims
P24102478901WO1; G25N22727W (4824-71201)CLAIMSWhat is claimed is:
1. A method for processing media data, comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-fdter (NNPF) within a chosen processing chain; and performing a conversion between a visual media data and a bitstream based on the chosen processing chain.
2. The method of claim 1 , wherein when a neural-network post-filter characteristics (NNPFC) SEI message or a neural-network post-filter activation (NNPF A) SEI message is used during an invocation of a process for handling of the chosen processing chain, a value of SeiProcStgldx is provided by the process; and otherwise, the value of SeiProcStgldx is inferred to be equal to 0.
3. The method of any of claims 1 -2. wherein a candidate input picture list contains a list of pictures in output order from which input pictures for the NNPF are selected or padded.
4. The method of any of claims 1-3, wherein when SeiProcStgldx is equal to 0, pictures in the candidate input picture list are cropped decoded output pictures.
5. The method any of claims 1-4, wherein when the NNPFC SEI message or the NNPFA SEI message is used during the invocation of a process for handling of the processing chain, the candidate input picture list is provided by that process; otherwise, the candidate input picture list is inferred to be identical to a list of cropped decoded output pictures in output order resulted from decoding the bitstream.
6. The method any of claims 3-5, wherein the candidate input picture list is designated CandInputPicList[ SeiProcStgldx ].
7. The method of any of claims 1-6, wherein for a picture (picB), a corresponding coded picture of the picB is also referred to as a corresponding coded picture of a picture in a picture list that is the corresponding picture of the picB or is an associated inserted picture of the picB.
8. The method of any of claims 1-6, wherein for a picture (picB), a network abstraction layer unit header layer identifier (nuh layer id) of a picture in a picture list that is a corresponding picture of the picB or is an associated inserted picture of the picB is set to be equal to a nuh_layer_id of the picB.P2410247890IWO1; G25N22727W (4824-71201)9. The method of any of claims 1-6, wherein for a picture (picB), an SEI message associated with the picB is considered as associated with a picture in a picture list that is a corresponding picture of the picB or is an associated inserted picture of the picB.
10. The method of any of claims 7-9, wherein the picB is a cropped decoded output picture.
11. The method of any of claims 1-10, wherein when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a cropped width (CroppedWidth) is set equal to a picture width in units of luma samples of the currPic.
12. The method of any of claims 1-10, wherein when a current picture (currPic) is a picture in CandlnputPicListf SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a cropped height (CroppedHeight) is set equal to a picture height in units of luma samples of the currPic.
13. The method of any of claims 1-10, wherein when a current picture (currPic) is a picture in CandlnputPicListf SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a luma bit depth (BitDepthY) is set equal to a bit depth of a luma sample array of currPic.
14. The method of any of claims 1-10, wherein when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a chroma bit depth (BitDepthC) is set equal to a bit depth of chroma sample arrays, if any, of the currPic.
15. The method of any of claims 1-10, wherein when a current picture (currPic) is a picture in CandInputPicList[ SeiProcStgldx ] that is a corresponding picture of a current cropped decoded output picture (currCdoPic) or is an associated inserted picture of the currCdoPic, a chroma format indicator (ChromaFonnatldc) is set equal to the chroma format indicator (ChromaFonnatldc) of a current picture (currPic).
16. The method of any of claims 1-15, wherein for an NNPF associated with SeiProcStgldx equal to 0, because only cropped decoded output pictures are used as input pictures of the NNPF, a value of a picture header picture output flag (ph_pic_output_flag) in a picture header of a coded picture corresponding to each input picture of the NNPF associated with SeiProcStgldx equal to 0 is equal to 1.P24102478901WO1; G25N22727W (4824-71201)17. The method of any of claims 1-16, wherein the conversion includes encoding the visual media data into the bitstream.
18. The method of any of claims 1-16. wherein the conversion includes decoding the visual media data from the bitstream.
19. An apparatus for processing video data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to perform the method of any of claims 1-18.
20. A non-transitory computer readable medium comprising a computer program product for use by a video coding device, the computer program product comprising computer executable instructions stored on the non-transitory computer readable medium such that when executed by a processor cause the video coding device to perform the method of any of claims 1-18.
21. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-fdter (NNPF) within a chosen processing chain; and generating a bitstream based on the determining.
22. A method for storing bitstream of a video, comprising: determining that a variable supplemental enhancement information (SEI) processing stage index (SeiProcStgldx) indicates a processing stage index associated with a neural-network post-fdter (NNPF) within a chosen processing chain; generating a bitstream based on the determining; and storing the bitstream in a non-transitory computer-readable recording medium.
23. A method, apparatus, or system described in the present disclosure.