A method for encoding / decoding video, a method for transmitting a bitstream, and a recording medium for storing a bitstream.

By employing NNPFC SEI messages to signal size information and adapt to input picture changes, the method improves video encoding/decoding efficiency, addressing high-resolution video transmission and storage challenges.

JP2026511982APending Publication Date: 2026-04-14LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
LG ELECTRONICS INC
Filing Date
2024-04-05
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The increasing demand for high-resolution, high-quality video has led to higher transmission and storage costs due to the increased amount of information, necessitating more efficient video compression technologies.

Method used

A video encoding method that utilizes neural-network post-filter characteristics (NNPFC) SEI messages to signal size information, determining the ratio between input and output picture sizes, and a video decoding method that adapts to changes in input picture size, along with a method for transmitting and storing the generated bitstream.

Benefits of technology

This approach enhances encoding/decoding efficiency, allows adaptive determination of output picture size, and provides a non-temporary computer-readable recording medium for storing and decoding the bitstream, facilitating efficient video transmission and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026511982000001_ABST
    Figure 2026511982000001_ABST
Patent Text Reader

Abstract

A video encoding / decoding method, a bitstream transmission method, and a computer-readable recording medium for storing a bitstream are provided. The video decoding method according to this disclosure is a video decoding method performed by a video decoding device, and includes the steps of: obtaining size information from an NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) message; and determining the size of an output picture based on the size information, wherein the size information includes information for the numerator of the ratio between the size of the output picture and the size of the input picture and information for the denominator of the ratio.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This disclosure relates to a video encoding / decoding method, a bitstream transmission method, and a recording medium storing a bitstream, and to a method for processing information regarding the size of a picture. [Background technology]

[0002] In recent years, demand for high-resolution, high-quality video, such as HD (High Definition) and UHD (Ultra High Definition) video, has been increasing in various fields. The higher the resolution and quality of video data, the greater the amount of information or bits transmitted compared to existing video data. This increase in the amount of information or bits transmitted leads to increased transmission and storage costs.

[0003] Therefore, highly efficient video compression technology is desired to effectively transmit, store, and play back high-resolution, high-quality video information. [Overview of the project] [Problems that the invention aims to solve]

[0004] The purpose of this disclosure is to provide a video encoding / decoding method and apparatus with improved encoding / decoding efficiency.

[0005] Furthermore, this disclosure aims to provide a method for signaling size information.

[0006] Furthermore, this disclosure aims to provide a method for determining the size of a picture based on signaled size information.

[0007] Furthermore, this disclosure aims to provide a non-temporary computer-readable recording medium for storing a bitstream generated by the video encoding method relating to this disclosure.

[0008] Furthermore, this disclosure aims to provide a non-temporary computer-readable recording medium that stores a bitstream that is received and decoded by the video decoding device relating to this disclosure and used for restoring video.

[0009] Furthermore, this disclosure aims to provide a method for transmitting a bitstream generated by the video encoding method relating to this disclosure.

[0010] The technical challenges addressed in this disclosure are not limited to those mentioned above, and other technical challenges not mentioned above will be clearly understood by those with ordinary skill in the art to which this disclosure pertains from the following description. [Means for solving the problem]

[0011] A video decoding method according to one aspect of the present disclosure is a video decoding method performed by a video decoding device, comprising the steps of: obtaining size information from an NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) message; and determining the size of an output picture based on the size information, wherein the size information includes information for the numerator of the ratio between the size of the output picture and the size of the input picture, and information for the denominator of the ratio.

[0012] A video encoding method according to another aspect of the present disclosure is a video encoding method performed by a video encoding apparatus, including a step of determining a ratio between the size of an output picture and the size of an input picture, and a step of encoding size information for the ratio into a NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) message, where the size information may include information for a numerator value of the ratio and information for a denominator value of the ratio.

[0013] A computer-readable recording medium according to still another aspect of the present disclosure can store a bitstream generated by the video encoding method or apparatus of the present disclosure.

[0014] A transmission method according to still another aspect of the present disclosure can transmit a bitstream generated by the video encoding method or apparatus of the present disclosure.

[0015] The features briefly summarized above about the present disclosure are merely exemplary aspects of the detailed description of the present disclosure to be described later, and do not limit the scope of the present disclosure.

Advantages of the Invention

[0016] According to the present disclosure, it is possible to provide a video encoding / decoding method and apparatus with improved encoding / decoding efficiency.

[0017] Also, according to the present disclosure, size information can be signaled efficiently.

[0018] Also, according to the present disclosure, the size of an output picture can be adaptively determined according to a change in the size of an input picture.

[0019] Also, according to the present disclosure, it is possible to provide a non-temporary computer-readable recording medium that stores a bitstream generated by the video encoding method according to the present disclosure.

[0020] Also, according to the present disclosure, a non-temporary computer-readable recording medium for storing a bitstream received by the video decoding device according to the present disclosure, decoded, and used for video restoration can be provided.

[0021] Also, according to the present disclosure, a method for transmitting a bitstream generated by a video encoding method can be provided.

[0022] The effects obtained by the present disclosure are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those having ordinary knowledge in the technical field to which the present disclosure pertains from the following description.

Brief Description of Drawings

[0023] [Figure 1] It is a schematic diagram showing a video coding system to which an embodiment according to the present disclosure can be applied. [Figure 2] It is a schematic diagram showing a video encoding device to which an embodiment according to the present disclosure can be applied. [Figure 3] It is a schematic diagram showing a video decoding device to which an embodiment according to the present disclosure can be applied. [Figure 4] It is a diagram for explaining an interleaved method for inducing a rum channel (chanel: channel). [Figure 5] It is a flowchart for explaining a video encoding method according to an embodiment of the present disclosure. [Figure 6] It is a diagram for explaining a video decoding method according to an embodiment of the present disclosure. [Figure 7] It is a flowchart for explaining a video encoding method according to another embodiment of the present disclosure. [Figure 8] It is a diagram for explaining a video decoding method according to another embodiment of the present disclosure. [Figure 9] It is a flowchart for explaining a video encoding method according to still another embodiment of the present disclosure. [Figure 10] This figure illustrates a video decoding method according to yet another embodiment of the present disclosure. [Figure 11] This figure illustrates a content streaming system to which the embodiments of this disclosure can be applied. [Modes for carrying out the invention]

[0024] Hereafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings, so that they can be easily implemented by a person with ordinary skill in the art to which the present disclosure pertains. However, the present disclosure may be embodied in various other forms and is not limited to the embodiments described herein.

[0025] In describing embodiments of this disclosure, if a specific description of a known configuration or function is deemed to obscure the gist of this disclosure, such detailed description will be omitted. In the figures, parts unrelated to the description of this disclosure will be omitted, and similar parts will be denoted by similar reference numerals.

[0026] In this disclosure, when one component is described as being “linked,” “joined,” or “connected” to another component, this may include not only direct linkages but also indirect linkages where other components exist in between. Furthermore, when one component is described as “containing” or “having” another component, this means, unless otherwise specified, that it may contain further other components rather than excluding them.

[0027] In this disclosure, terms such as "first," "second," etc., are used solely to distinguish one component from another, and do not limit the order or importance of the components unless otherwise specified. Therefore, within the scope of this disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment may be referred to as a first component in another embodiment.

[0028] In this disclosure, components are distinguished from each other solely to clearly describe their respective characteristics, and this does not necessarily mean that these components are separate. That is, multiple components may be integrated to constitute a single hardware or software unit, or a single component may be distributed to constitute multiple hardware or software units. Therefore, such integrated or distributed embodiments are also included in the scope of this disclosure, even without specific mention.

[0029] In this disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, embodiments consisting of a subset of the components described in one embodiment are also included in the scope of this disclosure. Furthermore, embodiments that further include other components in addition to the components described in various embodiments are also included in the scope of this disclosure.

[0030] This disclosure relates to the encoding and decoding of video, and unless otherwise defined herein, the terms used herein may have their ordinary meanings in the art to which this disclosure pertains.

[0031] In this disclosure, "picture" generally refers to a unit representing a single video image for a specific time period, and "slice / tile" is an encoding unit that constitutes a part of a picture. A single picture may consist of one or more slices / tiles. A slice / tile may also contain one or more CTUs (coding tree units).

[0032] In this disclosure, “pixel” or “pel” can mean the smallest unit that constitutes a picture (or video). The term “sample” may also be used as a counterpart to pixel. A sample may generally represent a pixel or a pixel value, or it may represent only the pixel / pixel value of the luma component, or only the pixel / pixel value of the chroma component.

[0033] In this disclosure, “unit” may represent a basic unit of image processing. A unit may include at least one of a specific region of a picture and information associated with that region. A unit may, as it may be, be replaced by terms such as “sample array,” “block,” or “area.” In general, an MxN block may include a set (or array) of samples (or sample arrays) or transform coefficients consisting of M columns and N rows.

[0034] In this disclosure, “current block” can mean one of the following: “current coding block,” “current coding unit,” “block to encode,” “block to decode,” or “block to process.” When prediction is performed, “current block” can mean “current prediction block” or “block to predict.” When transformation (inverse transformation) / quantization (inverse quantization) is performed, “current block” can mean “current transformation block” or “block to transform.” When filtering is performed, “current block” can mean “block to filter.”

[0035] In this disclosure, "current block" may mean a block containing both a luma component block and a chroma component block, or "the luma block of the current block," unless otherwise explicitly stated as a chroma block. The luma component block of the current block may be expressed with an explicit mention of a luma component block, such as "luma block" or "current luma block." Similarly, the chroma component block of the current block may be expressed with an explicit mention of a chroma component block, such as "chroma block" or "current chroma block."

[0036] In this disclosure, " / " and "," may be interpreted as "and / or." For example, "A / B" and "A, B" may be interpreted as "A and / or B." Also, "A / B / C" and "A, B, C" may mean "at least one of A, B and / or C."

[0037] In this disclosure, “or” may be interpreted as “and / or.” For example, “A or B” may mean 1) “A” only, 2) “B” only, or 3) “A and B.” Alternatively, in this disclosure, “or” may mean “additionally or alternatively.”

[0038] Overview of the video coding system

[0039] Figure 1 is a schematic diagram showing a video coding system to which the embodiments of this disclosure can be applied.

[0040] A video coding system according to one embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 can transmit encoded video and / or image information or data to the decoding device 20 in file or streaming form via a digital storage medium or network.

[0041] An encoding device 10 according to one embodiment may include a video source generation unit 11, an encoding unit 12, and a transmission unit 13. A decoding device 20 according to one embodiment may include a receiving unit 21, a decoding unit 22, and a rendering unit 23. The encoding unit 12 may be called a video / image encoding unit, and the decoding unit 22 may be called a video / image decoding unit. The transmission unit 13 may be included in the encoding unit 12. The receiving unit 21 may be included in the decoding unit 22. The rendering unit 23 may include a display unit, and the display unit may be composed of a separate device or external component.

[0042] The video source generation unit 11 can acquire video / images through video / image capture, synthesis, or generation processes. The video source generation unit 11 may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, or a video / image archive containing previously captured video / images. The video / image generation device may include, for example, a computer, a tablet, and a smartphone, and can generate video / images (electronically). For example, virtual video / images may be generated by a computer, in which case the video / image capture process may be replaced by a process in which related data is generated.

[0043] The encoding unit 12 can encode the input video / image data. The encoding unit 12 can perform a series of procedures such as prediction, transformation, and quantization for compression and encoding efficiency. The encoding unit 12 can output the encoded data (encoded video / image information) in the form of a bitstream.

[0044] The transmitting unit 13 can acquire encoded video / image information or data output in bitstream form and transmit it in file or streaming form to the receiving unit 21 of the decoding device 20 or other external object via a digital storage medium or network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray (registered trademark: same hereinafter), HDD, SSD, etc. The transmitting unit 13 may include elements for generating media files in a predetermined file format and may include elements for transmission via a broadcast / communication network. The transmitting unit 13 may be provided as a transmission device separate from the encoding unit 12, in which case the transmission device may include at least one processor that acquires encoded video / image information or data output in bitstream form and a transmitting unit that transmits it in file or streaming form. The receiving unit 21 can extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit 22.

[0045] The decoding unit 22 can decode the video / image by performing a series of procedures such as inverse quantization, inverse transform, and prediction, which correspond to the operation of the encoding unit 12.

[0046] The rendering unit 23 can render the decoded video / image. The rendered video / image may be displayed through the display unit.

[0047] Overview of video encoding equipment

[0048] Figure 2 is a schematic diagram showing a video encoding device to which the embodiments of this disclosure can be applied.

[0049] As shown in Figure 2, the video encoding device 100 may include a video splitting unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, an inverse conversion unit 150, an addition unit 155, a filtering unit 160, a memory 170, an inter-prediction unit 180, an intra-prediction unit 185, and an entropy encoding unit 190. The inter-prediction unit 180 and the intra-prediction unit 185 may be collectively called the "prediction unit". The conversion unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse conversion unit 150 may be included in the residual processing unit. The residual processing unit may further include a subtraction unit 115.

[0050] Depending on the embodiment, all or at least some of the multiple components constituting the video encoding device 100 may be embodied as a single hardware component (e.g., an encoder or a processor). Furthermore, the memory 170 may include a DPB (decoded picture buffer) and may be embodied by a digital storage medium.

[0051] The video splitting unit 110 can split the input video (or picture, frame) input to the video encoding device 100 into one or more processing units. For example, the processing units may be called coding units (CUs). Coding units can be obtained by recursively splitting a coding tree unit (CTU) or the largest coding unit (LCU) using a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit may be split into multiple coding units of deeper depth based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. For the splitting of coding units, a quad-tree structure may be applied first, followed by a binary-tree structure and / or a ternary-tree structure. The coding procedure according to this disclosure may be performed based on the final coding unit that is not further split. The maximum coding unit may be used directly as the final coding unit, or a lower-depth coding unit obtained by dividing the maximum coding unit may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration, which will be described later. As another example, the processing unit of the coding procedure may be a prediction unit (PU) or a transformation unit (TU). The prediction unit and the transformation unit may be divided or partitioned from the final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit that derives transformation coefficients and / or a unit that derives a residual signal from transformation coefficients.

[0052] The prediction unit (inter-prediction unit 180 or intra-prediction unit 185) can make predictions for the block to be processed (current block) and generate a predicted block that includes prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block or on a CU basis. The prediction unit can generate various information regarding the prediction of the current block and transmit it to the entropy encoding unit 190. The prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.

[0053] The intra-prediction unit 185 can predict the current block by referring to a sample in the current picture. The referenced sample may be located in the vicinity of the current block or at a distance from it, depending on the intra-prediction mode and / or intra-prediction method. The intra-prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the accuracy of the prediction direction. However, this is an example, and more or fewer directional prediction modes may be used depending on the settings. The intra-prediction unit 185 can also determine the prediction mode to be applied to the current block using the prediction modes applied to the surrounding blocks.

[0054] The interprediction unit 180 can derive a predicted block relative to the current block based on a reference block (reference sample array) identified by motion vectors on the reference picture. In this case, in order to reduce the amount of motion information transmitted in interprediction mode, motion information can be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between the surrounding blocks and the current block. The motion information may include motion vectors and reference picture indices. The motion information may further include interprediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of interprediction, the surrounding blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. The reference picture containing the reference block and the reference picture containing the temporal neighboring block may be the same or different from each other. The temporal neighboring block may be called a collocated reference block, colCU, etc. The reference picture containing the temporal neighboring block may be called a collocated picture (colPic). For example, the interpretation unit 180 can construct a motion information candidate list based on surrounding blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Interpretation may be performed based on various prediction modes; for example, in skip mode and merge mode, the interpretation unit 180 can use the motion information of surrounding blocks as the motion information of the current block. In skip mode, unlike merge mode, the residual signal does not need to be transmitted.In motion vector prediction (MVP) mode, the motion vectors of surrounding blocks are used as motion vector predictors, and the motion vector of the current block can be signaled by encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference represents the difference between the motion vector of the current block and the motion vector predictor.

[0055] The prediction unit can generate a prediction signal based on various prediction methods and / or prediction techniques described later. For example, the prediction unit may apply intra-prediction or inter-prediction to predict the current block, or it may apply intra-prediction and inter-prediction simultaneously. A prediction method that applies intra-prediction and inter-prediction simultaneously to predict the current block may be called CIIP (combined inter and intra prediction). The prediction unit can also perform intra-block copy (IBC) to predict the current block. Intra-block copy may be used, for example, for coding content images / videos such as games, as in SCC (screen content coding). IBC is a method of predicting the current block using a reference block that has already been restored in the current picture at a predetermined distance from the current block. When IBC is applied, the position of the reference block in the current picture may be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction within the current picture, but it may be performed similarly to inter-prediction in that it derives the reference block within the current picture. In other words, IBC can use at least one of the interpretation methods described in this disclosure.

[0056] The predicted signal generated by the prediction unit may be used to generate a restored signal or a residual signal. The subtraction unit 115 can generate a residual signal (residual block, residual sample array) by subtracting the predicted signal output from the prediction unit (predicted block, predicted sample array) from the input video signal (original block, original sample array). The generated residual signal may be transmitted to the conversion unit 120.

[0057] The transformation unit 120 can generate transformation coefficients by applying a transformation method to the residual signal. For example, the transformation method may include at least one of the following: DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform). Here, GBT refers to the transformation obtained from a graph when the relationship information between pixels is represented by this graph. CNT refers to the transformation obtained by generating a prediction signal using all previously reconstructed pixels and obtaining a transformation based on it. The transformation process may be applied to pixel blocks of the same size and square shape, or to blocks of a variable size instead of square shape.

[0058] The quantization unit 130 can quantize the conversion coefficients and transmit them to the entropy encoding unit 190. The entropy encoding unit 190 can encode the quantized signal (information about the quantized conversion coefficients) and output it as a bitstream. The information about the quantized conversion coefficients may be called residual information. The quantization unit 130 can rearrange the block-shaped quantized conversion coefficients into a one-dimensional vector form based on the coefficient scan order, and can also generate information about the quantized conversion coefficients based on the one-dimensional vector form of the quantized conversion coefficients.

[0059] The entropy encoding unit 190 can perform various encoding methods, such as exponential Golomb, CAVLC (context-adaptive variable length coding), and CABAC (context-adaptive binary arithmetic coding). In addition to the quantized conversion coefficients, the entropy encoding unit 190 can also encode information necessary for video / image restoration (e.g., the values ​​of syntax elements) together or separately. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in units of NAL (network abstraction layer) units. The video / image information may further include information about various parameter sets, such as an adaptation parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS). The video / image information may also further include general constraint information. The signaling information, transmitted information, and / or syntax elements referred to in this disclosure may be encoded by the encoding procedure described above and included in the bitstream.

[0060] The bitstream may be transmitted over a network or stored on a digital storage medium. Here, the network may include broadcasting networks and / or communication networks, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and / or a storage unit (not shown) for storing it may be provided as an internal / external element of the video encoding device 100, or the transmitting unit may be provided as a component of the entropy encoding unit 190.

[0061] The quantized conversion coefficients output from the quantization unit 130 may be used to generate a resistive signal. For example, by applying inverse quantization and inverse transformation to the quantized conversion coefficients in the inverse quantization unit 140 and the inverse transformation unit 150, a resistive signal (residual block or resistive sample) can be reconstructed.

[0062] The adder 155 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the predicted signal output from the inter-prediction unit 180 or the intra-prediction unit 185. When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block may be used as the reconstructed block. The adder 155 may be called the reconstruction unit or the reconstructed block generation unit. The generated reconstructed signal may be used for intra-prediction of the next block to be processed in the current picture, or, as described later, may be used for inter-prediction of the next picture after filtering.

[0063] The filtering unit 160 can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit 160 can apply various filtering methods to the restored picture to generate a modified restored picture, and the modified restored picture can be stored in the memory 170, specifically in the DPB of the memory 170. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter. The filtering unit 160 can generate various filtering information and transmit it to the entropy encoding unit 190, as will be described later in the description of each filtering method. The filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.

[0064] The corrected restored picture transmitted to memory 170 may be used as a reference picture in the interpretation unit 180. This allows the video encoding device 100 to avoid prediction mismatches between the video encoding device 100 and the video decoding device when interpretation is applied, and also improves encoding efficiency.

[0065] The DPB in memory 170 can store the corrected restored picture for use as a reference picture in the inter-prediction unit 180. Memory 170 can store motion information of blocks from which motion information in the current picture has been derived (or encoded) and / or motion information of blocks in the picture that have already been restored. The stored motion information may be transmitted to the inter-prediction unit 180 for use as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory 170 can store restored samples of restored blocks in the current picture and transmit them to the intra-prediction unit 185.

[0066] Overview of the video decoding device

[0067] Figure 3 is a schematic diagram showing an image decoding device to which the embodiments of this disclosure can be applied.

[0068] As shown in Figure 3, the video decoding device 200 may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transformation unit 230, an addition unit 235, a filtering unit 240, a memory 250, an inter-prediction unit 260, and an intra-prediction unit 265. The inter-prediction unit 260 and the intra-prediction unit 265 can be collectively referred to as the "prediction unit". The inverse quantization unit 220 and the inverse transformation unit 230 may be included in the residual processing unit.

[0069] All or at least some of the multiple components constituting the video decoding device 200 may be embodied as a single hardware component (e.g., a decoder or processor) depending on the embodiment. Furthermore, the memory 170 may include a DPB and may be embodied by a digital storage medium.

[0070] A video decoding device 200 that receives a bitstream containing video / image information can restore the image by performing a process corresponding to the process performed by the video encoding device 100 in Figure 2. For example, the video decoding device 200 can perform decoding using the processing unit applied in the video encoding device. Therefore, the decoding processing unit may be, for example, a coding unit. The coding unit may be a coding tree unit, or it may be obtained by dividing the largest coding unit. The restored video signal decoded and output by the video decoding device 200 may then be played back by a playback device (not shown).

[0071] The video decoding device 200 can receive the signal output from the video encoding device shown in Figure 2 in the form of a bitstream. The received signal may be decoded by the entropy decoding unit 210. For example, the entropy decoding unit 210 can parse the bitstream to derive information necessary for video restoration (or picture restoration) (e.g., video / image information). The video / image information may further include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also further include general constraint information. The video decoding device may further utilize the parameter set information and / or the general constraint information to decode the video. The signaling information, received information, and / or syntax elements referred to in this disclosure may be obtained from the bitstream by decoding through the decoding procedure. For example, the entropy decoding unit 210 can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values ​​of syntax elements necessary for image restoration and the quantized values ​​of conversion coefficients related to the residual. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element in the bitstream, determines a context model using the syntax element information to be decoded and the decoding information of the surrounding blocks and the blocks to be decoded, or symbol / bin information decoded in a previous stage, predicts the probability of bin occurrence based on the determined context model, performs arithmetic decoding of the bins, and generates symbols corresponding to the values ​​of each syntax element.In this case, the CABAC entropy decoding method can update the context model using the decoded symbol / bin information for the context model of the next symbol / bin after determining the context model. Information related to prediction from the information decoded by the entropy decoding unit 210 is provided to the prediction unit (inter-prediction unit 260 and intra-prediction unit 265), and residual values ​​that have been entropy decoded by the entropy decoding unit 210, i.e., quantized conversion coefficients and related parameter information, may be input to the inverse quantization unit 220. In addition, information related to filtering from the information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. On the other hand, a receiving unit (not shown) that receives signals output from the video encoding device may be further provided as an internal / external element of the video decoding device 200, or the receiving unit may be provided as a component of the entropy decoding unit 210.

[0072] On the other hand, the video decoding device according to this disclosure may be called a video / image / picture decoding device. The video decoding device may include an information decoder (video / image / picture information decoder) and / or a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder may include at least one of an inverse quantization unit 220, an inverse transformation unit 230, an addition unit 235, a filtering unit 240, a memory 250, an inter-prediction unit 260, and an intra-prediction unit 265.

[0073] The inverse quantization unit 220 can inverse quantize the quantized transformation coefficients and output the transformation coefficients. The inverse quantization unit 220 can rearrange the quantized transformation coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scan order performed by the video encoding device. The inverse quantization unit 220 can perform inverse quantization on the quantized transformation coefficients using quantization parameters (e.g., quantization step size information) and obtain the transformation coefficients.

[0074] The inverse conversion unit 230 can inversely convert the conversion coefficients to obtain residual signals (residual blocks, residual sample arrays).

[0075] The prediction unit can make predictions for the current block and generate a predicted block containing prediction samples for the current block. Based on the prediction information output from the entropy decoding unit 210, the prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block and can determine a specific intra / inter-prediction mode (prediction method).

[0076] As mentioned in the description of the prediction unit of the video coding device 100, the prediction unit can generate prediction signals based on various prediction methods (techniques) described later.

[0077] The intra-prediction unit 265 can predict the current block by referring to the samples in the current picture. The description of the intra-prediction unit 185 may also apply to the intra-prediction unit 265.

[0078] The interprediction unit 260 can derive a predicted block relative to the current block based on a reference block (reference sample array) identified by motion vectors on the reference picture. In this case, in order to reduce the amount of motion information transmitted in interprediction mode, motion information can be predicted in block, subblock, or sample units based on the correlation of motion information between the surrounding block and the current block. The motion information may include motion vectors and reference picture indices. The motion information may further include interprediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of interprediction, the surrounding block may include spatially neighboring blocks present in the current picture and temporally neighboring blocks present in the reference picture. For example, the interprediction unit 260 can construct a motion information candidate list based on the surrounding blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Interprediction may be performed based on various prediction modes (methods), and the prediction information may include information indicating the mode (method) of interprediction for the current block.

[0079] The adder 235 can generate a restored signal (restored picture, restored block, restored sample array) by adding the acquired residual signal to the predicted signal (predicted block, predicted sample array) output from the prediction unit (including the inter-prediction unit 260 and / or intra-prediction unit 265). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block may be used as the restored block. The description of the adder 155 may also apply to the adder 235. The adder 235 may be called the restore unit or the restored block generation unit. The generated restored signal may be used for intra-prediction of the next block to be processed in the current picture, or, as described later, may be used for inter-prediction of the next picture after filtering.

[0080] The filtering unit 240 can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit 240 can apply various filtering methods to the restored picture to generate a modified restored picture, and the modified restored picture can be stored in the memory 250, specifically in the DPB of the memory 250. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.

[0081] The restored picture stored (modified) in the DPB of memory 250 may be used as a reference picture in the inter-prediction unit 260. Memory 250 can store motion information of blocks from which motion information in the current picture has been derived (or decoded) and / or motion information of blocks in the picture that have already been restored. The stored motion information can be transmitted to the inter-prediction unit 260 for use as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory 250 can store restored samples of restored blocks in the current picture and transmit them to the intra-prediction unit 265.

[0082] In this specification, the embodiments described for the filtering unit 160, inter-prediction unit 180, and intra-prediction unit 185 of the video encoding device 100 may be applied identically or in a corresponding manner to the filtering unit 240, inter-prediction unit 260, and intra-prediction unit 265 of the video decoding device 200, respectively.

[0083] Neural network post-filter characteristics (NNPFC)

[0084] The combinations in Tables 1 to 3 represent the NNPFC syntax structure.

[0085] [Table 1]

[0086] [Table 2]

[0087] [Table 3]

[0088] The NNPFC syntax structures shown in Tables 1 to 3 may be signaled in the form of SEI (supplemental enhancement information) messages. SEI messages that signal the NNPFC syntax structures shown in Tables 1 to 3 can be called NNPFC SEI messages.

[0089] NNPFC SEI messages can identify neural networks available as post-processing filters. The use of identified post-processing filters for a particular picture can be indicated using neural-network post-filter activation (NNPFA) SEI messages. Here, "post-processing filter" and "post-filter" may have the same meaning.

[0090] To use such SEI messages, you may need to define variables like the following:

[0091] - The width and height of the input picture may be cropped in lumen samples, and these widths and heights can be represented by CroppedWidth and CroppedHeight, respectively.

[0092] - The lumens sample array of the input picture, CroppedYPic[idx], and the chromens sample arrays, CroppedCbPic[idx] and CroppedCrPic[idx], may be used as input to the NNPF if they exist, and the index idx may be in the range of 0 to numInputPics-1.

[0093] - BitDepth Y This can show the bit depth of the input picture relative to the lumens sample array.

[0094] - BitDepth C This can show the bit depth of the chroma sample array (if any) of the input picture.

[0095] - ChromaFormatIdc can indicate a chroma format identifier.

[0096] - If the value of nnpfc_auxiliary_inp_idc is 1, the filtering strength control value StrengthControlVal must be a real number in the range of 0 to 1.

[0097] An input picture with index 0 may be a picture whose NNPF, defined by an NNPFC SEI message, has been activated by an NNPFA SEI message. An input picture whose index i is within the range of 1 to numInputPics-1 may take precedence over an input picture with index i-1 in the output order.

[0098] If nnpfc_purpose & 0x08 is not identical to 0, and an input picture with index 0 is associated with a frame packing array SEI message having the same fp_arrangement_type as 5, then all input pictures may be associated with a frame packing array SEI message having the same fp_arrangement_type as 5, and may have the same value as fp_current_frame_is_frame0_flag.

[0099] There may be two or more NNPFC SEI messages for the same picture. If two or more NNPFC SEI messages with different nnpfc_id values ​​exist or are activated for the same picture, the two or more NNPFC SEI messages may have the same or different nnpfc_purpose and nnpfc_mode_idc values.

[0100] nnpfc_purpose can indicate the purpose of the NNPF as shown in Table 4. The value of nnpfc_purpose may be restricted to being within the range of 0 to 63 in the bitstream. Values ​​for nnpfc_purpose in the range of 64 to 65535 may be reserved for future use. The decoder must ignore NNPFC SEI messages with nnpfc_purpose in the range of 64 to 65535. If a value of nnpfc_purpose is reserved for future use, the syntax elements of this SEI message may be extended to syntax elements that exist on the condition that nnpfc_purpose is identical to that value. If ChromaFormatIdc is identical to 3, then nnpfc_purpose & 0x02 must be identical to 0. If ChromaFormatIdc or nnpfc_purpose & 0x02 is not identical to 0, then nnpfc_purpose & 0x20 must be identical to 0.

[0101] [Table 4]

[0102] nnpfc_id may contain an identification number that can be used to identify NNPF. The nnpfc_id value is between 0 and 2 32 It must be within the range of -2. The range is 256~511 and 2 31 ~2 32 -2 range nnpfc_id values ​​may be reserved for future use. Decoders are in the range of 256~511 or 2 31 ~2 32 NNPFC SEI messages with an nnpfc_id in the -2 range must be ignored.

[0103] If an NNPFC SEI message is currently the first NNPFC SEI message in the decoding sequence that has a specific nnpfc_id value within CLVS, the following may apply:

[0104] - The aforementioned SEI message can indicate base NNPF.

[0105] - The SEI message may be associated in output order with the currently decoded picture and all subsequent decoded pictures of the current layer until the CLVS finishes.

[0106] An NNPFC SEI message may be a repetition of a previous NNPFC SEI message in the CLVS in the decoding order, and the subsequent semantics may be applied as if this SEI message were the only NNPFC SEI message in the CLVS that has the same content.

[0107] A value of 0 for nnpfc_mode_idc indicates that the SEI message contains a bitstream representing the basic NNPF, or that it represents an update related to the basic NNPF having the same nnpfc_id value.

[0108] If an NNPFC SEI message is the first NNPFC SEI message in a decoding sequence currently having a specific nnpfc_id value within the CLVS, a value of 1 for nnpfc_mode_idc may indicate that the basic NNPF associated with the nnpfc_id value is a neural network, and the neural network may be identified by a URI represented by nnpfc_uri using the format identified by the tag URI nnpfc_tag_uri.

[0109] If an NNPFC SEI message is neither the first NNPFC SEI message in a decoding sequence currently having a specific nnpfc_id value within the CLVS, nor a repetition of the first NNPFC SEI message, then a value of 1 for nnpfc_mode_idc may indicate that an update related to the underlying NNPF having the same nnpfc_id value is defined by a URI represented by nnpfc_uri using the tag URI nnpfc_tag_uri.

[0110] The value of nnpfc_mode_idc may be restricted to being in the range of 0 to 1 in the bitstream. Values ​​in the range of 2 to 255 for nnpfc_mode_idc may be reserved for future use and do not need to be present in the bitstream. The decoder must ignore NNPFC SEI messages with nnpfc_mode_idc in the range of 2 to 255. Values ​​of nnpfc_mode_idc greater than 255 do not need to be present in the bitstream and do not need to be reserved for future use.

[0111] If the aforementioned SEI message is the first NNPFC SEI message in the decoding order that currently has a specific nnpfc_id value within CLVS, then the NNPF PostProcessingFilter() may be assigned the same as the basic NNPF.

[0112] If the aforementioned SEI message is not the first NNPFC SEI message in the decoding sequence currently having a specific nnpfc_id value within CLVS, nor is it an iteration of the first NNPFC SEI message, then the NNPF PostProcessingFilter() may apply the update defined by the SEI message to the base NNPF and retrieve it.

[0113] Updates are not cumulative; rather, each update may be applied to the base NNPF which is the NNPF specified by the first NNPFC SEI message in the decoding order that currently has a specific nnpfc_id value within CLVS.

[0114] nnpfc_reserved_zero_bit_a may be restricted to have the same value as 0 by bitstream restrictions. The decoder may be restricted to ignore NNPFC SEI messages where the value of nnpfc_reserved_zero_bit_a is not 0.

[0115] The nnpfc_tag_uri may contain a tag URI having syntax and semantics specified in IETF RFC 4151 that identifies the neural network used as the base NNPF or an update to the base NNPF using the nnpfc_id value identified by the nnpfc_uri. Using nnpfc_tag_uri, the format of the neural network data specified by nnrpf_uri can be uniquely identified without a central registration authority. The same nnpfc_tag_uri as "tag:iso.org,2023:15938-17" can indicate that the neural network data identified by nnpfc_uri complies with ISO / IEC 15938-17.

[0116] nnpfc_uri may contain a URI having syntax and semantics specified in IETF Internet Standard 66 that identifies a neural network used as a base NNPF or an update associated with a base NNPF that uses the same nnpfc_id value.

[0117] A value of 1 for nnpfc_property_present_flag can indicate the presence of syntax elements related to the filter's purpose, input formatting, output formatting, and complexity. A value of 0 for nnpfc_property_present_flag can indicate the absence of syntax elements related to the filter's purpose, input formatting, output formatting, and complexity. The value of nnpfc_property_present_flag may be restricted to being identical to 1 if the SEI message is the first NNPFC SEI message in the decoding order and currently has a specific nnpfc_id value in CLVS. When the value of nnpfc_property_present_flag is identical to 0, the values ​​of all syntax elements that exist only when the value of nnpfc_property_present_flag is 1 and for which no inferred value has been specified may be inferred to be identical to the corresponding syntax elements in the NNPFC SEI message containing the base NNPF for which the SEI provides updates.

[0118] A value of 1 for nnpfc_base_flag indicates that the SEI message is a basic NNPF. A value of 0 for nnpfc_base_flag indicates that the SEI message is an update related to a basic NNPF. If nnpfc_base_flag is not present, its value can be inferred to be 0.

[0119] The following restrictions may apply to the value of nnpfc_base_flag:

[0120] - If an NNPFC SEI message is the first NNPFC SEI message in the CLVS that currently has a specific nnpfc_id value in the decoding order, the value of nnpfc_base_flag may be the same as 1.

[0121] - If NNPFC SEI message nnpfcB is not the first NNPFC SEI message in the CLVS that currently has a specific nnpfc_id value in the decoding order, and the value of nnpfc_base_flag is the same as 1, then the NNPFC SEI message may be a repetition of the first NNPFC SEI message nnpfcA that has the same nnpfc_id in the decoding order. That is, the payload condensates of nnpfcB may be the same as the payload condensates of nnpfcA.

[0122] The following may apply if an NNPFC SEI message is not the first NNPFC SEI message in the CLVS that currently has a specific nnpfc_id value in the decoding order, and does not correspond to an iteration of the first NNPFC SEI message with a specific nnpfc_id value.

[0123] - SEI messages can define updates related to the preceding basic NNPF that have the same nnpfc_id value and are in the decoding order.

[0124] - SEI messages are related in output order to the current restored picture of the current layer and all subsequent restored pictures, up to the end of the current CLVS or up to the next restored picture after the current restored picture within the current CLVS, and in decoding order to subsequent NNPFC SEI messages that have an earlier value among the specific nnpfc_id values ​​within the current CLVS.

[0125] The following restrictions may apply if an NNPFC SEI message nnpfcCurr is not the first NNPFC SEI message in the CLVS that currently has a specific nnpfc_id value in the decoding order, nor is it an iteration of the first NNPFC SEI message that has a specific nnpfc_id value (i.e., the value of nnpfc_base_flag is 0), and the value of nnpfc_property_present_flag is 1.

[0126] - The value of nnpfc_purpose in an NNPFC SEI message must be identical to the value of nnpfc_purpose in the first NNPFC SEI message that currently has a specific nnpfc_id value in the CLVS in the decoding order.

[0127] - The values ​​of the syntax elements nnpfc_base_flag and preceding nnpfc_complexity_info_present_flag within an NNPFC SEI message must be identical to the values ​​of the corresponding syntax elements in the first NNPFC SEI message that currently has a specific nnpfc_id value in the CLVS in the decoding order.

[0128] - In the decoding order, the nnpfc_complexity_info_present_flag in the first NNPFC SEI message that currently has a specific nnpfc_id value in CLVS must be equal to 0, or both must be equal to 1, and the following may apply:

[0129] (1) The nnpfc_parameter_parameter_type_idc in nnpfcCurr must be identical to the nnpfc_parameter_parameter_type_idc in nnpfcBase.

[0130] (2) If nnpfc_log2_parameter_bit_length_minus3 exists in nnpfcCurr, then nnpfc_log2_parameter_bit_length_minus3 in nnpfcCurr must be less than or equal to nnpfc_log2_parameter_bit_length_minus3 in nnpfcBase.

[0131] (3) If nnpfc_num_parameters_idc in nnpfcBase is the same as 0, then nnpfc_num_parameters_idc in nnpfcCurr must also be the same as 0.

[0132] (4) Otherwise (if nnpfc_num_parameters_idc in nnpfcBase is greater than 0), then nnpfc_num_parameters_idc in nnpfcCurr must be greater than 0 or less than or equal to nnpfc_num_parameters_idc in nnpfcBase.

[0133] (5) If nnpfc_num_kmac_operations_idc in nnpfcBase is the same as 0, then nnpfc_num_kmac_operations_idc in nnpfcCurr must also be the same as 0.

[0134] (6) If not (where nnpfc_num_kmac_operations_idc in nnpfcBase is greater than 0), then nnpfc_num_kmac_operations_idc in nnpfcCurr must be greater than 0 and less than or equal to nnpfc_num_kmac_operations_idc in nnpfcBase.

[0135] (7) If nnpfc_total_kilobyte_size in nnpfcBase is equal to 0, then nnpfc_total_kilobyte_size in nnpfcCurr must also be equal to 0.

[0136] (8) Otherwise (where nnpfc_total_kilobyte_size in nnpfcBase is greater than 0), nnpfc_total_kilobyte_size in nnpfcCurr must be greater than 0 or less than or equal to nnpfc_total_kilobyte_size in nnpfcBase.

[0137] nnpfc_out_sub_c_flag can indicate the values ​​of the variables outSubWidthC and outSubHeightC if nnpfc_purpose & 0x02 is not equal to 0. A value of 1 for nnpfc_out_sub_c_flag indicates that the value of outSubWidthC is 1 and the value of outSubHeightC is 1. A value of 0 for nnpfc_out_sub_c_flag indicates that the value of outSubWidthC is 2 and the value of outSubHeightC is 1. If the value of ChromaFormatIdc is 2 and nnpfc_out_sub_c_flag exists, the value of nnpfc_out_sub_c_flag must be the same as 1.

[0138] nnpfc_out_colour_format_idc can indicate the NNPFC output color format and the resulting values ​​of the variables outSubWidthC and outSubHeightC, provided that nnpfc_purpose & 0x20 is not equal to 0. A value of 1 for nnpfc_out_colour_format_idc indicates that the NNPFC output color format is 4:2:0, and both outSubWidthC and outSubHeightC are equal to 2. A value of 2 for nnpfc_out_colour_format_idc indicates that the NNPFC output color format is 4:2:2, with outSubWidthC being 2 and outSubHeightC being 1. A value of 3 for nnpfc_out_colour_format_idc indicates that the NNPFC output color format is 4:2:4, and both outSubWidthC and outSubHeightC are 1. The value of nnpfc_out_colour_format_idc may be restricted to not be equal to 0.

[0139] If both nnpfc_purpose & 0x02 and nnpfc_purpose & 0x20 are the same as 0, then outSubWidthC and outSubHeightC can be inferred to be the same as SubWidthC and SubHeightC, respectively.

[0140] nnpfc_pic_width_in_luma_samples and nnpfc_pic_height_in_luma_samples can indicate the width and height of the luma sample array of the picture, respectively, resulting from applying the NNPF identified by nnpfc_id to the cropped, decoded output picture. If nnpfc_pic_width_in_luma_samples and nnpfc_pic_height_in_luma_samples are not present, they may be inferred to be the same as CroppedWidth and CroppedHeight, respectively. The value of nnpfc_pic_width_in_luma_samples should be in the range of CroppedWidth to CroppedWidth*16-1. The value of nnpfc_pic_height_in_luma_samples should be in the range of CroppedHeight to CroppedHeight*16-1.

[0141] nnpfc_num_input_pics_minus1+1 can indicate the number of decoded output pictures used as input to NNPF. The value of nnpfc_num_input_pics_minus1 may be restricted to be within the range of 0 to 63.

[0142] nnpfc_interpolated_pics[i] can indicate the number of interpolated pictures generated by NNPF between the i-th picture and the (i+1)-th picture used as input to NNPF. The value of nnpfc_interpolated_pics[i] may be restricted to the range of 0 to 63. The value of nnpfc_interpolated_pics[i] may be restricted to being greater than 0 for at least one i in the range of 0 to nnpfc_num_input_pics_minus1-1.

[0143] A value of 1 for nnpfc_input_pic_output_flag[i] indicates that NNPF will generate a corresponding output picture for the i-th input picture. A value of 0 for nnpfc_input_pic_output_flag[i] indicates that NNPF will not generate a corresponding output picture for the i-th input picture.

[0144] The variables `numInputPics`, which indicates the number of pictures used as input to NNPF, and `numOutputPics`, which indicates the total number of pictures generated as a result of NNPF, may be derived as shown in Table 5.

[0145] [Table 5]

[0146] A value of 1 for nnpfc_component_last_flag indicates that the last dimension of the input tensor for NNPF and the output tensor, outputTensor (the result of NNPF), are currently used for the channel. A value of 0 for nnpfc_component_last_flag indicates that the third dimension of the input tensor for NNPF and the output tensor, outputTensor (the result of NNPF), are currently used for the channel.

[0147] The first dimension of the input and output tensors may be used as a batch index, as used in some neural network frameworks. The formula within the semantics of this SEI message uses a batch size corresponding to a batch index such as 0, but the batch size used as input for neural network inference may be determined by the implementation of post-processing.

[0148] For example, when the value of nnpfc_inp_order_idc is the same as 3 and the value of nnpfc_auxiliary_inp_idc is the same as 1, the input tensor may have 7 channels, including 4 lumer matrices, 2 chroma matrices, and 1 auxiliary input matrix. In this case, the DeriveInputTensors() process can induce each of the 7 channels of the input tensor one by one, and when a particular channel is processed among these channels, that channel may be called the current channel during the process.

[0149] nnpfc_inp_format_idc can indicate how to convert the sample values ​​of the cropped decoded output picture into NNPF input values. If nnpfc_inp_format_idc is 0, the input values ​​for NNPF are real numbers, and the InpY() and InpC() functions may be specified as shown in Equation 1.

[0150]

number

[0151] If the value of nnpfc_inp_format_idc is 1, then the input values ​​for NNPF are unsigned integer numbers, and the InpY() and InpC() functions may be induced as shown in Table 6.

[0152] [Table 6]

[0153] The variable inpTensorBitDepth Y may be derived from the syntax element nnpfc_inp_tensor_luma_bitdepth_minus8 described below. inpTensorBitDepth C may be derived from the syntax element nnpfc_inp_tensor_chroma_bitdepth_minus8 described below.

[0154] Values of nnpfc_inp_format_idc greater than 1 may be reserved for future use and may not be present in the bitstream. The decoder shall ignore NNPFC SEI messages containing reserved values of nnpfc_inp_format_idc.

[0155] nnpfc_inp_tensor_luma_bitlength_minus8 + 8 can indicate the bit depth of luma sample values in the input integer tensor. inpTensorBitDepth Y The value of

[0156]

Number

[0157] The value of nnpfc_inp_tensor_luma_bitlength_minus8 may be restricted to exist in the range of 0 to 24.

[0158] nnpfc_inp_tensor_chroma_bitdepth_minus8 + 8 can indicate the bit depth of chroma sample values in the input integer tensor. inpTensorBitDepth C The value of

[0159]

Number

[0160] The value of nnpfc_inp_tensor_chroma_bitdepth_minus8 may be restricted to a range of 0 to 24.

[0161] nnpfc_inp_order_idc can specify how to align the sample array of the cropped, decoded output picture to one of the input pictures for NNPF.

[0162] The value of nnpfc_inp_order_idc must be in the range of 0 to 3 in the bitstream. Values ​​of nnpfc_inp_order_idc between 4 and 255 do not exist in the bitstream. The decoder must ignore NNPFC SEI messages with nnpfc_inp_order_idc in the range of 4 to 255. Values ​​of nnpfc_inp_order_idc greater than 255 do not exist in the bitstream and are not reserved for future use.

[0163] If the value of ChromaFormatIdc is not 1, then the value of nnpfc_inp_order_idc must not be 3.

[0164] Table 7 contains explanations regarding the nnpfc_inp_order_idc value.

[0165] [Table 7]

[0166] A patch may be a rectangular array of samples from the picture components (e.g., lumens or chroma components).

[0167] A value of nnpfc_auxiliary_inp_idc greater than 0 indicates that auxiliary input data exists in the NNPF input tensor. A value of nnpfc_auxiliary_inp_idc of 0 indicates that auxiliary input data does not exist in the input tensor. A value of nnpfc_auxiliary_inp_idc of 1 indicates that auxiliary input data is induced by the methods disclosed in Tables 8 to 10.

[0168] The value of nnpfc_auxiliary_inp_idc must be in the range of 0 to 1 in the bitstream. Values ​​of nnpfc_inp_order_idc between 2 and 255 do not exist in the bitstream. The decoder must ignore NNPFC SEI messages with nnpfc_inp_order_idc in the range of 2 to 255. Values ​​of nnpfc_inp_order_idc greater than 255 do not exist in the bitstream and are not reserved for future use.

[0169] If the value of nnpfc_auxiliary_inp_idc is the same as 1, the variable strengthControlScaledVal may be derived as shown in equation 4.

[0170]

number

[0171] The process DeriveInputTensors() for deriving the input tensor inputTensor for given vertical sample coordinates cTop and horizontal sample coordinates cLeft which specify the upper-left sample position of the sample patch included in the input tensor can be shown as a combination in Tables 8 to 10.

[0172] [Table 8]

[0173] [Table 9]

[0174] [Table 10]

[0175] A value of 1 for nnpfc_separate_colour_description_present_flag indicates that the unique combination of color primaries, transformation properties, and matrix coefficients for the picture, as determined by NNPF, is specified in the SEI message syntax structure. A value of 0 for nnfpc_separate_colour_description_present_flag indicates that the combination of color primaries, transformation properties, and matrix coefficients for the picture, as determined by NNPF, is identical to that displayed in the CLVS VUI parameters.

[0176] nnpfc_colour_primaries may have the same semantics as defined for the vui_colour_primaries syntax element, except as follows:

[0177] - nnpfc_colour_primaries can indicate the primary colors of a picture that appear as a result of applying the NNPF specified in the SEI message, rather than the primary colors used in CLVS.

[0178] - If nnpfc_colour_primaries is not present in the NNPFC SEI message, the value of nnpfc_colour_primaries may be inferred to be the same as the value of vui_colour_primaries.

[0179] nnpfc_transfer_characteristics may have the same semantics as defined for the vui_transfer_characteristics syntax element, except as follows:

[0180] - nnpfc_transfer_characteristics can indicate the transformation characteristics of the picture that appear as a result of applying the NNPF specified in the SEI message, rather than the transformation characteristics used in CLVS.

[0181] - If nnpfc_transfer_characteristics is not present in the NNPFC SEI message, the value of nnpfc_transfer_characteristics may be inferred to be the same as the value of vui_transfer_characteristics.

[0182] nnpfc_matrix_coeffs may have the same semantics as specified for the vui_matrix_coeffs syntax element, except as follows:

[0183] - nnpfc_matrix_coeffs can indicate the matrix coefficients of the picture that appear as a result of applying the NNPF specified in the SEI message, rather than the matrix coefficients used in CLVS.

[0184] - If nnpfc_matrix_coeffs is not present in the NNPFC SEI message, the value of nnpfc_matrix_coeffs can be inferred to be the same as the value of vui_matrix_coeffs.

[0185] - The acceptable values ​​for nnpfc_matrix_coeffs do not need to be restricted by the chroma format of the decoded video picture, as shown by the ChromaFormatIdc value for the semantics of the VUI parameter.

[0186] - If the value of nnpfc_matrix_coeffs is the same as 0, the value of nnpfc_out_order_idc must not be the same as 1 or 3.

[0187] The value 0 of nnpfc_out_format_idc can indicate that for the bit depth bitDepth required for subsequent post - processing or display, the sample values output by NNPF are real numbers that are linearly mapped from the range of values from 0 to 1 to the range of unsigned integer values from 0 to (1 << bitDepth)-1. The value 1 of nnpfc_out_format_idc can indicate that the luma sample values output by NNPF are unsigned integers in the range of 0 to (1 << (nnpfc_out_tensor_luma_bitlength_minus8 + 8))-1, and the chroma sample values output by NNPF can be indicated as unsigned integers in the range of 0 to (1 << (nnpfc_out_tensor_chroma_bitlength_minus8 + 8))-1.

[0188] Values of nnpfc_out_format_idc greater than 1 may be reserved for future use and do not exist in the bitstream. The decoder must ignore NNPFC SEI messages containing reserved values of nnpfc_out_format_idc.

[0189] nnpfc_out_tensor_luma_bitdepth_minus8 + 8 can indicate the bit depth of luma sample values in the output integer tensor. The value of nnpfc_out_tensor_luma_bitdepth_minus8 must exist in the range of 0 to 24.

[0190] nnpfc_out_tensor_chroma_bitdepth_minus8 + 8 can indicate the bit depth of chroma sample values in the output integer tensor. The value of nnpfc_out_tensor_chroma_bitdepth_minus8 must exist in the range of 0 to 24.

[0191] If nnpfc_purpose & 0x10 is not equal to 0, then the value of nnpfc_out_format_idc must be equal to 1, and at least one of the following restrictions may be true.

[0192] - nnpfc_out_tensor_luma_bitdepth_minus8+8 is BitDepth Y bigger

[0193] - nnpfc_out_tensor_chroma_bitdepth_minus8+8 is BitDepth C bigger

[0194] nnpfc_out_order_idc can indicate the output order of samples output from NNPF. The value of nnpfc_out_order_idc must be in the range of 0 to 3 in the bitstream. Values ​​of nnpfc_out_order_idc from 4 to 255 do not exist in the bitstream. The decoder must ignore NNPFC SEI messages with nnpfc_out_order_idc in the range of 4 to 255. Values ​​of nnpfc_out_order_idc greater than 255 do not exist in the bitstream and are not reserved for future use. If the value of nnpfc_purpose & 0x02 is 0, the value of nnpfc_out_order_idc must not be identical to 3.

[0195] Table 11 provides explanations for the values ​​of nnpfc_out_order_idc.

[0196] [Table 11]

[0197] The StoreOutputTensors() process for deriving sample values ​​in the output sample arrays FilteredYPic, FilteredCbPic, and FilteredCrPic, filtered from the output tensor outputTensor, which is based on the given vertical sample coordinate cTop and the horizontal sample coordinate cLeft indicating the upper-left sample position for the patch of samples contained in the input tensor, may be expressed as the joins in Tables 12 and 13.

[0198] [Table 12]

[0199] [Table 13]

[0200] nnpfc_overlap can indicate the number of horizontal and vertical overlapping samples of adjacent input tensors in NNPF. The value of nnpfc_overlap must be within the range of 0 to 16383.

[0201] A value of 1 for nnpfc_constant_patch_size_flag indicates that NNPF accepts the exact patch size specified by nnpfc_patch_width_minus1 and nnpfc_patch_height_minus1 as input. A value of 0 for nnpfc_constant_patch_size_flag indicates that NNPF accepts any patch size with width inpPatchWidth and height inpPatchHeight as input. Here, the width of the extended patch (i.e., the patch plus the overlapping area) is the same as inpPatchWidth+2*nnpfc_overlap, and the height of the extended patch is the same as inpPatchHeight+2*nnpfc_overlap, and the height of the extended patch is the same as nnpfc_extended_patch_height_cd_delta_minus1+1+2*nnpfc_overlap, and the height of the extended patch is the same as inpPatchHeight+2*nnpfc_overlap, and the height of the extended patch is the same as nnpfc_extended_patch_height_cd_delta_minus1+1+2*nnpfc_overlap.

[0202] npfc_patch_width_minus1+1 can indicate the number of horizontal samples required for the patch size input to NNPF when the value of nnpfc_constant_patch_size_flag is 1. The value of nnpfc_patch_width_minus1 must be in the range of 0 to Min(32766,CroppedWidth-1).

[0203] npfc_patch_height_minus1+1 can indicate the number of vertical samples required for the patch size input to NNPF when the value of nnpfc_constant_patch_size_flag is 1. The value of nnpfc_patch_height_minus1 must be in the range of 0 to Min(32766,CroppedHeight-1).

[0204] nnpfc_extended_patch_width_cd_delta_minus1+1+2*nnpfc_overlap can represent the common divisor of the allowed values ​​for the extended patch width required when inputting into NNPF when the value of nnpfc_constant_patch_size_flag is 0. The value of nnpfc_extended_patch_width_cd_delta_minus1 must be in the range of 0 to Min(32766,CroppedWidth-1).

[0205] nnpfc_extended_patch_height_cd_delta_minus1+1+2*nnpfc_overlap can represent the common divisor of the allowed values ​​for the extended patch height required when inputting into NNPF when the value of nnpfc_constant_patch_size_flag is 0. The value of nnpfc_extended_patch_height_cd_delta_minus1 must be in the range of 0 to Min(32766,CroppedHeight-1).

[0206] The variables inpPatchWidth and inpPatchHeight may be set to the patch size width and patch size height, respectively.

[0207] If the value of nnpfc_constant_patch_size_flag is 0, the following may be applied.

[0208] - The values ​​of inpPatchWidth and inpPatchHeight may be provided by an external means or set by the post-processor itself.

[0209] - The value of inpPatchWidth + 2 * nnpfc_overlap must be a positive integer multiple of nnpfc_extended_patch_width_cd_delta_minus1 + 1 + 2 * nnpfc_overlap, and inpPatchWidth must be less than or equal to CroppedWidth. The value of inpPatchHeight + 2 * nnpfc_overlap must be a positive integer multiple of nnpfc_extended_patch_height_cd_delta_minus1 + 1 + 2 * nnpfc_overlap, and inpPatchHeight must be less than or equal to CroppedHeight.

[0210] Otherwise, (if the value of nnpfc_constant_patch_size_flag is 1), the value of inpPatchWidth may be set to the same as nnpfc_patch_width_minus1+1, and the value of inpPatchHeight may be set to the same as nnpfc_patch_height_minus1+1.

[0211] The variables outPatchWidth, outPatchHeight, horCScaling, verCScaling, outPatchCWidth, and outPatchCHeight may be derived as shown in Table 14.

[0212] [Table 14]

[0213] The requirement for bitstream conformance is that outPatchWidth*CroppedWidth must be the same as nnpfc_pic_width_in_luma_samples*inpPatchWidth, and outPatchHeight*CroppedHeight must be the same as nnpfc_pic_height_in_luma_samples*inpPatchHeight.

[0214] nnpfc_padding_type can indicate the padding process when referencing sample locations outside the boundaries of the cropped decoded output picture, as described in Table 15. The value of nnpfc_padding_type must be in the range of 0 to 15.

[0215] [Table 15]

[0216] nnpfc_luma_padding_val can indicate the luma value to be used for padding when the value of nnpfc_padding_type is 4.

[0217] nnpfc_cb_padding_val can indicate the Cb value to be used for padding when the value of nnpfc_padding_type is 4.

[0218] nnpfc_cr_padding_val can indicate the Cr value to be used for padding when the value of nnpfc_padding_type is 4.

[0219] The InpSampleVal(y,x,picHeight,picWidth,CroppedPic) function, whose inputs are the vertical sample position y, the horizontal sample position x, the picture height picHeight, the picture width picWidth, and the sample array CroppedPic, can return the derived SampleVal value as shown in Table 16.

[0220] For inputs to the InpSampleVal() function, vertical positions may be placed before horizontal positions for compatibility with the input tensor rules of some inference engines.

[0221] [Table 16]

[0222] The processes in Table 17 may be used to perform patch filtering using NNPF PostProcessingFilter() to generate filtered and / or interpolated pictures, which may include a Y sample array FilteredYPic, a Cb sample array FilteredCbPic, and a Cr sample array FilteredCrPic, as shown by nnpfc_out_order_idc.

[0223] [Table 17]

[0224] The order of the pictures in the saved output tensor may be the output order, and the output order generated by applying NNPF to the output order may be analyzed as an output order that does not conflict with the output order of the input pictures.

[0225] A value of 1 for nnpfc_complexity_info_present_flag indicates that there is one or more syntax elements that indicate the complexity of NNPF associated with nnpfc_id. A value of 0 for nnpfc_complexity_info_present_flag indicates that there are no syntax elements that indicate the complexity of NNPF associated with nnpfc_id.

[0226] A value of 0 for nnpfc_parameter_type_idc can indicate that the neural network uses only integer parameters. A value of 1 for nnpfc_parameter_type_flag can indicate that the neural network can use floating-point or integer parameters. A value of 2 for nnpfc_parameter_type_idc can indicate that the neural network uses only binary parameters. A value of 3 for nnpfc_parameter_type_idc may be reserved for future use and is not present in the bitstream. The decoder must ignore NNPFC SEI messages where the value of nnpfc_parameter_type_idc is 3.

[0227] The values ​​0, 1, 2, and 3 for nnpfc_log2_parameter_bit_length_minus3 indicate that the neural network will not use parameters with bit lengths greater than 8, 16, 32, and 64, respectively. If nnpfc_parameter_type_idc exists and nnpfc_log2_parameter_bit_length_minus3 does not exist, the neural network does not need to use parameters with bit lengths greater than 1.

[0228] nnpfc_num_parameters_idc can indicate the maximum number of neural network parameters for NNPF in units of 2048. A value of 0 for nnpfc_num_parameters_idc indicates that the maximum number of neural network parameters is unknown. The value of nnpfc_num_parameters_idc must be in the range of 0 to 52. Values ​​of nnpfc_num_parameters_idc greater than 52 do not exist in the bitstream. The decoder must ignore NNPFC SEI messages with nnpfc_num_parameters_idc greater than 52.

[0229] If the value of nnpfc_num_parameters_idc is greater than 0, the maxNumParameters variable may be derived as shown in equation 5.

[0230]

number

[0231] The number of neural network parameters in NNPF may be limited to a number less than or equal to maxNumParameters.

[0232] A value of nnpfc_num_kmac_operations_idc greater than 0 can indicate that the maximum number of multiply-accumulate operations per sample in NNPF is less than or equal to nnpfc_num_kmac_operations_idc * 1000. A value of nnpfc_num_kmac_operations_idc of 0 can indicate that the maximum number of multiply-accumulate operations in the network is unknown. The value of nnpfc_num_kmac_operations_idc is between 0 and 2. 32 It must exist within the range of -2.

[0233] A value of nnpfc_total_kilobyte_size greater than 0 can indicate the total size (in kilobytes) required to store the uncompressed parameters of the neural network. The total size in bits may be greater than or equal to the sum of the bits used to store each parameter. nnpfc_total_kilobyte_size may be the total size (in bits) divided by 8000 and rounded. A value of nnpfc_total_kilobyte_size of 0 can indicate that the total size required to store the parameters for the neural network is unknown. The value of nnpfc_total_kilobyte_size is between 0 and 2. 32 It must exist within the range of -2.

[0234] nnpfc_reserved_zero_bit_b must be equivalent to 0 in the bitstream. The decoder must ignore NNPFC SEI messages where nnpfc_reserved_zero_bit_b is not 0.

[0235] nnpfc_payload_byte[i] may contain the i-th byte of the bitstream. The byte sequence nnpfc_payload_byte[i] for all existing values ​​of i must be a complete bitstream compliant with ISO / IEC 15938-17.

[0236] Neural network post-filter activation (NNFPA)

[0237] Table 18 shows the syntax structure for NNFPA.

[0238] [Table 18]

[0239] The NNPFA syntax structure shown in Table 18 may be signaled in the form of an SEI message. An SEI message that signals the NNPFA syntax structure shown in Table 18 can be called an NNPFA SEI message.

[0240] An NNPFA SEI message can activate or deactivate the possible use of a target neural network post-processing filter (NNPF) identified by nnpfa_target_id for post-processing filtering of a picture set. For a particular picture in which an NNPF has been activated, the target NNPF may be the NNPF identified by the last NNPFC SEI message having the same nnpfc_id as nnpfa_target_id. Here, the last NNPFC SEI message may precede the first VCL NAL unit of the current picture in the decoding order and may not be an iteration of an NNPFC SEI message containing the base NNPF.

[0241] Multiple NNPFA SEI messages may exist for the same picture if NNPF is used for a different purpose or to filter out a different color component.

[0242] nnpfa_target_id can indicate an NNPF specified by one or more NNPFC SEI messages that currently have the same nnpfc_id as nnfpa_target_id in relation to the picture.

[0243] The value of nnpfa_target_id is 0-2 32 It must be within the range of -2. The range of 256~511 and 2 31 ~2 32 nnpfa_target_id values ​​within the range of -2 may be reserved for future use. Decoders are 256~511 or 2 31 ~2 32 NNPFA SEI messages with an nnpfa_target_id within the range of -2 must be ignored.

[0244] An NNPFA SEI message with a specific value for nnpfa_target_id must not currently exist in the PU unless one or both of the following conditions are true:

[0245] - Currently, within CLVS, there exists an NNPFC SEI message with the same nnpfc_id as a specific value of nnpfa_target_id in the PU that precedes the current PU in the decoding order.

[0246] - Currently, there exists an NNPFC SEI message with an nnpfc_id that matches a specific value of nnpfa_target_id in the PU.

[0247] When the PU contains all NNPFC SEI messages with a specific value of nnpfc_id and all NNPFA SEI messages with the same nnpfa_target_id as the specific value of nnpfc_id, the NNPFC SEI message must precede the NNPFA SEI message in the decoding order.

[0248] A value of 1 for nnpfa_cancel_flag can indicate that the persistence of the target NNPF set by any previous NNPFA SEI message with the same nnpfa_target_id as the current SEI message is canceled. That is, the target NNPF is not used anymore unless it is activated by another NNPFA SEI message with the same nnpfa_target_id as the current SEI message and the same nnpfa_cancel_flag as 0. A value of 0 for nnpfa_cancel_flag can indicate that the nnpfa_persistence_flag continues.

[0249] nnpfa_persistence_flag can indicate the persistence of the target NNPF for the current layer. A value of 0 for nnpfa_persistence_flag can indicate that the target NNPF can only be used for post - processing filtering for the current picture. A value of 1 for nnpfa_persistence_flag can indicate that the target NNPF can be used for post - processing filtering for the current picture and all subsequent pictures in the current layer in the output order until one or more of the following conditions are true.

[0250] - A new CLVS of the current layer is started

[0251] - The bitstream ends

[0252] - The picture in the current layer associated with the NNPFA SEI message that has the same nnpfa_target_id as the current SEI message and the same nnpfa_cancel_flag as 1 will be output after the current picture in the output order.

[0253] The target NNPF does not apply to subsequent pictures in the current layer associated with an NNPFA SEI message that has the same nnpfa_target_id and nnpfa_cancel_flag as the current SEI message.

[0254] nnpfcTargetPictures may be the set of pictures associated with the last NNPFC SEI message that currently precedes the NNPFA SEI message in the decoding order and has the same nnpfc_id as nnpfa_target_id. nnpfaTargetPictures may be the set of pictures whose target NNPF is currently activated by the NNPFA SEI message. All arbitrary pictures included in nnpfaTargetPictures should also be included in nnpfcTargetPictures.

[0255] Post-filter hint

[0256] Table 19 shows the syntax structure for post-filter hints.

[0257] [Table 19]

[0258] The post-filter hint syntax structures in Table 19 may be signaled in the form of SEI messages. SEI messages that signal the post-filter hint syntax structures in Table 19 can be called post-filter hint SEI messages.

[0259] Post-filter hint SEI messages can provide post-filter coefficients or correlation information for post-filter design, potentially allowing the decoded and output picture set to be used in post-processing to obtain improved display quality.

[0260] A value of 1 for `filter_hint_cancel_flag` indicates that the persistence of a previous post-filter hint SEI message is canceled in the output order in which the SEI message is applied to the current layer. A value of 0 for `filter_hint_cancel_flag` indicates that post-filter hint information follows.

[0261] The `filter_hint_persistence_flag` can indicate the persistence of post-filter hint SEI messages for the current layer. A value of 0 for `filter_hint_persistence_flag` indicates that the post-filter hint applies only to the currently decoded picture. A value of 1 for `filter_hint_persistence_flag` indicates that the post-filter hint SEI message applies to the currently decoded picture and persists for all subsequent pictures in the current layer by output order until one or more of the following conditions are true:

[0262] - A new CLVS for the current layer is started.

[0263] - Bitstream ends

[0264] - Post-filter hints: Pictures in the current layer of the AU associated with SEI messages are output after the current picture in the output order.

[0265] `filter_hint_size_y` can represent the filter coefficient or the vertical size of the correlation array. The value of `filter_hint_size_y` must be in the range of 1 to 15.

[0266] filter_hint_size_x can indicate the horizontal size of the filter coefficient or the correlation array. The value of filter_hint_size_x must be in the range of 1 to 15.

[0267] As shown in Table 20, filter_hint_type can indicate the type of the transmitted filter hint. The value of filter_hint_type must be in the range of 0 to 2. The same filter_hint_type value as 3 does not exist in the bitstream. The decoder must ignore the post-filter hint SEI message where filter_hint_type is 3.

[0268]

Table 20

[0269] A value of 1 for filter_hint_chroma_coeff_present_flag can indicate that there is a filter coefficient for chroma. A value of 0 for filter_hint_chroma_coeff_present_flag can indicate that there is no filter coefficient for chroma.

[0270] filter_hint_value[cIdx][cy][cx] can indicate the filter coefficient or the cross-correlation matrix element between the original signal and the decoded signal with 16-bit precision. The value of filter_hint_value[cIdx][cy][cx] must be in the range of -2 31 +1 to 2 31 -1. cIdx indicates the relevant color element, cy indicates the vertical counter, and cx can indicate the horizontal counter. The following may be applied depending on the value of filter_hint_type.

[0271] - If the value of filter_hint_type is 0, the coefficients of a 2D FIR (Finite Impulse Response) filter of size filter_hint_size_y * filter_hint_size_x may be transmitted.

[0272] - On the other hand, if the value of filter_hint_type is 1, the filter coefficients of two one-dimensional FIR filters may be transmitted. In this case, the value of filter_hint_size_y must be 2. An index cy of 0 can indicate the filter coefficient of a horizontal filter, and a cy of 1 can indicate the filter coefficient of a vertical filter. In the filtering process, the horizontal filter may be applied first, and the result may be filtered by the vertical filter.

[0273] - Otherwise (if the value of filter_hint_type is 2), the transmitted hint can represent the cross-correlation matrix between the original signal s and the decoded signal s'.

[0274] A normalized cross-correlation matrix for related color components identified by cIdx of size filter_hint_size_y*filter_hint_size_x may be defined as shown in Equation 6.

[0275]

number

[0276] In Equation 6, s represents the sample array of the color component cIdx of the original picture, s’ represents the corresponding array of the decoded picture, h represents the vertical height of the relevant color component, w represents the horizontal width of the relevant color component, and bitDepth represents the bit depth of the color component. Also, OffsetY is the same as (filter_hint_size_y>>1), OffsetX is the same as (filter_hint_size_x>>1), the range of cy is 0 <= cy < filter_hint_size_y, and the range of cx is 0 <= cx < filter_hint_size_x.

[0277] The decoder can derive a Wiener post-filter from the cross-correlation matrix of the original signal and the decoded signal and the auto-cross-correlation matrix of the decoded signal.

[0278] Problems with conventional technology

[0279] Currently, the following design is applied to adjust the size of the output picture.

[0280] - If the purpose of the NNPF does not include spatial upsampling, it is inferred that the size of the output picture is the same as the size of the input picture.

[0281] - Otherwise, the size of the output picture is signaled.

[0282] Considering that the NNPF carrying the NNPFC SEI message can be activated by one or more NNPFA SEI messages in different pictures, the size of the input picture can vary depending on the activation time. Currently, however, when the NNPF includes the purpose of spatial upsampling, the size of the output picture is fixed to be the same.

[0283] Examples

[0284] This application proposes various embodiments to solve the above-mentioned problems. The embodiments proposed in this application may be carried out individually or in combination of two or more.

[0285] This disclosure proposes the following possible but appropriate embodiments.

[0286] 1. The bitstream may contain various picture sizes, and NNPF may be used to upsample the resolution of all pictures to the same size.

[0287] 2. The bitstream may contain various picture sizes, and NNPF may be used to upsample the resolution of all pictures while maintaining the picture resolution ratio of the input bitstream.

[0288] The embodiments proposed in this disclosure can be summarized as follows:

[0289] 1. When signaling the output picture size, a flag (i.e., nnpfc_output_pic_size_flag) may be added to indicate whether the output picture size is a fixed size (i.e., given width and height) or a ratio relative to the input picture size. A value of 0 for nnpfc_output_pic_size_flag can indicate that there are widths and heights of lumens relative to the output picture size. A value of 1 for nnpfc_output_pic_size_flag can indicate that there is a ratio of the output picture to the input picture size.

[0290] 2. When the value of nnpfc_output_pic_size_flag is 1, nnpfc_pic_width_ratio_num, which indicates the numerator of the ratio of the output picture width to the input picture width, and nnpfc_pic_width_ratio_denum, which indicates the denominator, may be signaled, and nnpfc_pic_height_ratio_num, which indicates the numerator of the ratio of the height of the output picture to the height of the input picture, and nnpfc_pic_height_ratio_denum, which indicates the denominator, may be signaled.

[0291] 3. When signaling the output picture size, the scale ratio value relative to the width and height may be signaled. The ratio may be signaled as a numerator and a denominator. The ratio (or ratio value) may be signaled using the term "minus1" to conserve bits and prevent signaling of zero values. Alternatively, the ratio (or ratio value) may be encoded and signaled using 0th-order Exponential Golomb (ue(v)) coding.

[0292] 4. nnpfc_pic_width_num_minus1 can represent the numerator of the ratio between the input picture width and the output picture width, and nnpfc_pic_width_denum_minus1 can represent the denominator of the ratio between the input picture width and the output picture width. nnpfc_pic_height_num_minus1 can represent the numerator of the ratio between the input picture height and the output picture height, and nnpfc_pic_height_denum_minus1 can represent the denominator of the ratio between the input picture height and the output picture height.

[0293] 5. The output picture width may be derived by multiplying the input picture width by a non-integer ratio and rounding the result. Similarly, the output picture height may be derived by multiplying the input picture height by a non-integer ratio and rounding the result.

[0294] 6. If nnpfc_pic_width_num_minus1, nnpfc_pic_width_denum_minus1, nnpfc_pic_height_num_minus1, and nnpfc_pic_height_denum_minus1 exist, the value of (nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1) may be restricted to a value other than 1, or the value of (nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1) may be restricted to a value other than 1.

[0295] 7. Alternatively, if nnpfc_pic_width_num_minus1, nnpfc_pic_width_denum_minus1, nnpfc_pic_height_num_minus1, and nnpfc_pic_height_denum_minus1 exist, the value of (nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1) may be restricted to be greater than 1, or the value of (nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1) may be restricted to be greater than 1.

[0296] The embodiments of this disclosure will be described in detail below.

[0297] Example 1

[0298] Example 1 relates to points 1 and 2 of the summary described above.

[0299] According to Example 1, the NNPFC SEI message may be configured as shown in Table 21.

[0300] [Table 21]

[0301] A value of 0 for nnpfc_output_pic_size_flag can indicate that nnpfc_pic_width_in_luma_samples and nnpfc_pic_width_in_luma_samples exist. A value of 1 for nnpfc_output_pic_size_flag can indicate that nnpfc_pic_width_ratio_num, nnpfc_pic_width_ratio_denum, nnpfc_pic_height_ratio_num, and nnpfc_pic_height_ratio_denum exist.

[0302] nnpfc_pic_width_in_luma_samples and nnpfc_pic_height_in_luma_samples can represent the width and height, respectively, of the luma sample array of a picture resulting from applying the NNPF identified by nnpfc_id to a cropped, decoded output picture. The value of nnpfc_pic_width_in_luma_samples may be in the range of CroppedWidth ~ CroppedWidth * 16 * 1, and the value of nnpfc_pic_height_in_luma_samples may be in the range of CroppedHeight ~ CroppedHeight * 16 * 1. CroppedWidth can represent the width of the input picture, and CroppedHeight can represent the height of the input picture.

[0303] nnpfc_pic_width_ratio_num and nnpfc_pic_width_ratio_denum can represent the numerator and denominator, respectively, of the ratio of the output picture width to the CroppedWidth. The values ​​of nnpfc_pic_width_ratio_num and nnpfc_pic_width_ratio_denum may be in the range of 1 to 16-1.

[0304] The variable PicWidthInLumaSamples, which represents the width of the output picture, can be derived as follows:

[0305] - If nnpfc_output_pic_size_flag does not exist, the value of PicWidthInLumaSamples may be set to be the same as CroppedWidth.

[0306] - Otherwise, if nnpfc_output_pic_size_flag is 0, the value of PicWidthInLumaSamples may be set to be the same as nnpfc_pic_width_in_luma_samples.

[0307] - If not (i.e., nnpfc_output_pic_size_flag is 1), the value of PicWidthInLumaSamples may be set to the same value as (CroppedWidth*nnpfc_pic_width_ratio_num) / nnpfc_pic_width_ratio_denum.

[0308] nnpfc_pic_height_ratio_num and nnpfc_pic_height_ratio_denum can represent the numerator and denominator, respectively, of the ratio of the output picture height to CroppedHeight. The values ​​of nnpfc_pic_height_ratio_num and nnpfc_pic_height_ratio_denum may be in the range of 1 to 16-1.

[0309] The variable PicHeightInLumaSamples, which represents the height of the output picture, can be derived as follows:

[0310] - If nnpfc_output_pic_size_flag does not exist, the value of PicHeightInLumaSamples may be set to be the same as CroppedHeight.

[0311] - If not, and nnpfc_output_pic_size_flag is 0, the value of PicHeightInLumaSamples may be set to be the same as nnpfc_pic_height_in_luma_samples.

[0312] - If not (i.e., nnpfc_output_pic_size_flag is 1), the value of PicHeightInLumaSamples may be set to the same value as (CroppedHeight*nnpfc_pic_height_ratio_num) / nnpfc_pic_height_ratio_denum.

[0313] The StoreOutputTensors() process, which derives sample values ​​in the output sample arrays FilteredYPic, FilteredCbPic, and FilteredCrPic filtered from the output tensor outputTensor, which has been filtered for the given vertical sample coordinate cTop and the horizontal sample coordinate cLeft indicating the top-left sample position for the patch of samples contained in the input tensor, may be modified as shown in the joins in Tables 22 and 23.

[0314] [Table 22]

[0315] [Table 23]

[0316] The induction processes for the variables outPatchWidth, outPatchHeight, horCScaling, verCScaling, outPatchCWidth, and outPatchCHeight may also be modified as shown in Table 24.

[0317] [Table 24]

[0318] The requirement that outPatchWidth*CroppedWidth must be identical to PicWidthInLumaSamples*inpPatchWidth, and that outPatchHeight*CroppedHeight must be identical to PicHeightInLumaSamples*inpPatchHeight, may be a bitstream conformance requirement.

[0319] The following describes the video encoding method and video decoding method according to Example 1. The video encoding method may be performed by the video encoding device 100, and the video decoding method may be performed by the video decoding device 200.

[0320] Figure 5 shows an example of a video encoding method, and Figure 6 shows an example of a video decoding method.

[0321] Referring to Figure 5, the size of the output picture may be determined (S510). Also, the type of size information indicating the size of the output picture may be determined (S520). For example, the size information may consist of nnpfc_pic_width_in_luma_samples, which indicates the width of the luma sample array of the output picture, and nnpfc_pic_height_in_luma_samples, which indicates the height of the luma sample array of the output picture. As another example, the size information may consist of nnpfc_pic_width_ratio_num and nnpfc_pic_width_ratio_denum, which indicate the ratio of the width of the output picture to the input picture, and nnpfc_pic_height_ratio_num and nnpfc_pic_height_ratio_denum, which indicate the ratio of the height of the output picture to the input picture. The size information consisting of nnpfc_pic_width_in_luma_samples and nnpfc_pic_height_in_luma_samples may be called "non-ratio information". The size information consisting of nnpfc_pic_width_ratio_num, nnpfc_pic_width_ratio_denum, nnpfc_pic_height_ratio_num, and nnpfc_pic_height_ratio_denum may be called "ratio information" or "size information". Here, non-ratio information and ratio information may correspond to types of size information.

[0322] It may be determined whether the type of size information is a ratio or not (S530). If it is determined that the type of size information is a ratio (i.e., ratio information), nnpfc_output_pic_size_flag may be encoded to a first value (e.g., 1) and the ratio information may be encoded (S540). Conversely, if it is determined that the type of size information is not a ratio (i.e., non-ratio information), nnpfc_output_pic_size_flag may be encoded to a second value (e.g., 0) and the ratio information may be encoded in a bitstream (NNPFC SEI message) (S540). The size information may be encoded based on zero-order exponential Golomb coding. nnpfc_output_pic_size_flag may be called "first information".

[0323] Referring to Figure 6, nnpfc_output_pic_size_flag is obtained from the bitstream (NNPFC SEI message) (S610), and the value of nnpfc_output_pic_size_flag may be determined (S620). If the value of nnpfc_output_pic_size_flag is a first value (e.g., 1) indicating the presence of ratio information (or size information), then the ratio information may be obtained from the bitstream (S630). Conversely, if the value of nnpfc_output_pic_size_flag is a second value (e.g., 0) indicating the presence of non-ratio information, then the non-ratio information may be obtained from the bitstream (S650).

[0324] The size of the output picture may be determined based on the acquired aspect ratio information or non-aspect ratio information (S640). For example, if aspect ratio information is acquired, the width of the output picture (PicWidthInLumaSamples) may be determined by applying the width ratio (nnpfc_pic_width_ratio_num / nnpfc_pic_width_ratio_denum) indicated by the aspect ratio information to the width of the input picture, and the height of the output picture (PicHeightInLumaSamples) may be determined by applying the height ratio (nnpfc_pic_height_ratio_num / nnpfc_pic_height_ratio_denum) indicated by the aspect ratio information to the height of the input picture. As another example, if non-aspect ratio information is obtained, the width of the output picture (PicWidthInLumaSamples) may be determined to be the same value as the width indicated by the non-aspect ratio information (nnpfc_pic_width_in_luma_samples), and the height of the output picture (PicHeightInLumaSamples) may be determined to be the same value as the height indicated by the non-aspect ratio information (nnpfc_pic_height_in_luma_samples).

[0325] Example 2

[0326] Example 2 relates to points 3 to 7 of the summary described above.

[0327] According to Example 2, the NNPFC SEI message may be configured as shown in Table 25.

[0328] [Table 25]

[0329] nnpfc_pic_width_num_minus1+1 and nnpfc_pic_width_denum_minus1+1 can represent the numerator and denominator of the ratio of the output picture width to the CroppedWidth. The value of (nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1) may be in the range of 1 to 16-1.

[0330] The value of the variable nnpfcOutputPicWidth can represent the width of the lumens sample array of the picture, which is the result of applying the cropped and decoded output picture of the NNPF identified by nnpfc_id, and may be derived as shown in Equation 7.

[0331]

number

[0332] nnpfc_pic_height_num_minus1+1 and nnpfc_pic_height_denum_minus1+1 can represent the numerator and denominator of the ratio of the output picture height to CroppedHeight. The value of (nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1) may be in the range of 1 to 16-1.

[0333] The value of the variable nnpfcOutputPicHeight can represent the height of the lumens sample array of the picture, which is the result of applying the NNPF identified by nnpfc_id to the cropped and decoded output picture, and may be derived as shown in Equation 8.

[0334]

number

[0335] If nnpfc_pic_width_num_minus1, nnpfc_pic_width_denum_minus1, nnpfc_pic_height_num_minus1, and nnpfc_pic_height_denum_minus1 exist, then the value of (nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1) may be greater than 1, or the value of (nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1) may be greater than 1. Alternatively, if nnpfc_pic_width_num_minus1, nnpfc_pic_width_denum_minus1, nnpfc_pic_height_num_minus1, and nnpfc_pic_height_denum_minus1 exist, the value of (nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1) may be a value other than 1, or the value of (nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1) may be a value other than 1.

[0336] The StoreOutputTensors() process, which derives sample values ​​in the output sample arrays FilteredYPic, FilteredCbPic, and FilteredCrPic filtered from the output tensor outputTensor, which has been filtered for the given vertical sample coordinate cTop and the horizontal sample coordinate cLeft indicating the top-left sample position for the patch of samples contained in the input tensor, may be modified as shown in the joins in Tables 26 and 27.

[0337] [Table 26]

[0338] [Table 27]

[0339] The induction processes for the variables outPatchWidth, outPatchHeight, horCScaling, verCScaling, outPatchCWidth, and outPatchCHeight may also be modified as shown in Table 28.

[0340] [Table 28]

[0341] The requirement that outPatchWidth*CroppedWidth must be the same as nnpfcOutputPicWidth*inpPatchWidth, and that outPatchHeight*CroppedHeight must be the same as nnpfcOutputPicHeight*inpPatchHeight, may be a bitstream conformance requirement.

[0342] The following describes the video encoding method and video decoding method according to Example 2. The video encoding method may be performed by the video encoding device 100, and the video decoding method may be performed by the video decoding device 200.

[0343] Figure 7 shows an example of a video encoding method, and Figure 8 shows an example of a video decoding method.

[0344] Referring to Figure 7, the ratio of the output picture size to the input picture size may be determined (S710). Furthermore, size information for the determined ratio may be encoded into a bitstream (NNPFC SEI message) (S720). The size information may be encoded based on zero-order exponential Golomb coding.

[0345] Size information may include information for the numerator and denominator of the determined ratio. Information for the numerator may include information for the numerator of the ratio between the width of the output picture and the width of the input picture (width ratio) (nnpfc_pic_width_num_minus1), and information for the numerator of the ratio between the height of the output picture and the height of the input picture (height ratio) (nnpfc_pic_height_num_minus1). Information for the denominator may include information for the denominator of the width ratio (nnpfc_pic_width_denum_minus1) and information for the denominator of the height ratio (nnpfc_pic_height_denum_minus1).

[0346] The information for the numerator values ​​(nnpfc_pic_width_num_minus1, nnpfc_pic_height_num_minus1) can indicate the value obtained by subtracting 1 from the numerator value of the width ratio, and the value obtained by subtracting 1 from the numerator value of the height ratio. Therefore, the numerator value of the width ratio may be determined by adding 1 to the information for the numerator value, and the numerator value of the height ratio may be determined by adding 1 to the information for the numerator value. Similarly, the information for the denominator values ​​(nnpfc_pic_width_denum_minus1, nnpfc_pic_height_denum_minus1) can indicate the value obtained by subtracting 1 from the denominator value of the width ratio, and the value obtained by subtracting 1 from the denominator value of the height ratio. Therefore, the denominator value of the width ratio may be determined by adding 1 to the information for the denominator value, and the denominator value of the height ratio may be determined by adding 1 to the information for the denominator value.

[0347] Referring to Figure 8, once size information is obtained from the bitstream (NNPFC SEI message) (S810), the size of the output picture may be determined based on the obtained size information (S820). Here, the size of the output picture may be determined by resolution upsampling.

[0348] For example, the width of the output picture (nnpfcOutputPicWidth) may be determined by applying a width ratio ((nnpfc_pic_width_num_minus1+1)÷(nnpfc_pic_width_denum_minus1+1)) to the width value of the input picture (CroppedWidth), and then rounding the width of the input picture to which the width ratio has been applied. As another example, the height of the output picture (nnpfcOutputPicHeight) may be determined by applying a height ratio ((nnpfc_pic_height_num_minus1+1)÷(nnpfc_pic_height_denum_minus1+1)) to the height value of the input picture (CroppedHeight), and then rounding the height of the input picture to which the height ratio has been applied.

[0349] Figure 9 shows an example of a video encoding method that limits the width ratio and height ratio, and Figure 10 shows an example of a video decoding method that limits the width ratio and height ratio.

[0350] Referring to Figure 9, it may be determined whether the size of the output picture and the size of the input picture are the same (S910). For example, it may be determined whether the width ratio is the same as 1 and whether the height ratio is the same as 1. As another example, it may be determined whether the width ratio is greater than 1 and whether the height ratio is greater than 1.

[0351] If the output picture size and the input picture size are not the same, size information may be encoded in the bitstream (NNPFC SEI message) (S920). Conversely, if the output picture size and the input picture size are the same, size information does not need to be encoded. For example, if the width ratio is not the same as 1 and the height ratio is not the same as 1, size information is encoded; if the width ratio is the same as 1 and the height ratio is the same as 1, size information does not need to be encoded. As another example, if the width ratio is greater than 1 and the height ratio is greater than 1, size information is encoded; if the width ratio is 1 or less and the height ratio is 1 or less, size information does not need to be encoded.

[0352] Referring to Figure 10, it may be determined whether or not size information exists (S1010). That is, it may be determined whether or not size information is obtained from the bitstream (NNPFC SEI message). Referring to Tables 4 and 25, whether or not size information exists may have the same meaning as whether or not resolution upsampling is performed. That is, the existence of size information may mean the same as resolution upsampling being performed ((nnpfc_purpose&0x04)!=0), and the absence of size information may mean the same as resolution upsampling not being performed ((nnpfc_purpose&0x04)==0).

[0353] If size information exists, the size of the output picture may be restricted to a value different from that of the input picture. For example, the width ratio may be restricted to a value not equal to 1, and the height ratio may be restricted to a value not equal to 1. As another example, the width ratio may be restricted to a value greater than 1, and the height ratio may be restricted to a value greater than 1.

[0354] Figure 11 illustrates a content streaming system to which the embodiments of this disclosure can be applied.

[0355] As shown in Figure 11, a content streaming system to which an embodiment of the present disclosure is applied may broadly include an encoding server, a streaming server, a web server, media storage, user equipment, and multimedia input devices.

[0356] The encoding server is responsible for compressing content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data to generate a bitstream, and transmitting this bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, or camcorder directly generates the bitstream, the encoding server may be omitted.

[0357] The bitstream may be generated by a video encoding method and / or video encoding apparatus to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0358] The streaming server transmits multimedia data to user devices based on user requests via a web server, and the web server can act as an intermediary to inform users of available services. When a user requests a desired service from the web server, the web server transmits it to the streaming server, and the streaming server can transmit multimedia data to the user. In this case, the content streaming system may include a separate control server, in which case the control server can play a role in controlling commands and responses between the devices within the content streaming system.

[0359] The streaming server can receive content from media storage and / or encoding servers. For example, when receiving content from the encoding server, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a certain period of time.

[0360] Examples of user devices include mobile phones, smartphones, laptop computers, digital broadcasting terminals, PDAs (personal digital assistants), PMPs (portable multimedia players), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (such as smartwatches, smart glasses, and HMDs), digital TVs, desktop computers, and digital signage.

[0361] Each server within the aforementioned content streaming system may be operated as a distributed server, in which case the data received by each server may be processed in a distributed manner.

[0362] The scope of this disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that enable the operation of various embodiments to be performed on a device or computer, and non-transitory computer-readable medium on which such software or instructions are stored and executable on a device or computer.

[0363] [Industrial applicability] The embodiments described herein can be used for encoding / decoding video.

[0364] [Claims when filing an international application] [Claim 1] A video decoding method performed by a video decoding device, The stage of obtaining size information from NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) messages, The process includes the step of determining the size of the output picture based on size information, A video decoding method wherein the size information includes information for the numerator of the ratio between the size of the output picture and the size of the input picture, and information for the denominator of the ratio. [Claim 2] The information regarding the aforementioned molecular value is: Information relating to the numerator value of the ratio of the width of the output picture to the width of the input picture, and The video decoding method according to claim 1, comprising information relating to the numerator value of the ratio of the height of the output picture to the height of the input picture. [Claim 3] The information regarding the aforementioned denominator is, Information regarding the denominator value of the ratio between the width of the output picture and the width of the input picture, and The video decoding method according to claim 1, comprising information relating to the denominator of the ratio of the height of the output picture to the height of the input picture. [Claim 4] The video decoding method according to claim 1, wherein the value obtained by adding 1 to the information for the numeral value represents the numeral value. [Claim 5] The video decoding method according to claim 1, wherein the value obtained by adding 1 to the information for the denominator value represents the denominator value. [Claim 6] The video decoding method according to claim 1, wherein the size information is encoded based on 0th-order Exponential Golomb coding. [Claim 7] The video decoding method according to claim 1, wherein the width of the output picture is determined by rounding the width value of the input picture to which a width ratio, which is the ratio of the width of the output picture to the width of the input picture, is applied. [Claim 8] The video decoding method according to claim 1, wherein the height of the output picture is determined by rounding the height value of the input picture to which a height ratio, which is the ratio of the height of the output picture to the height of the input picture, is applied. [Claim 9] Based on the existence of the aforementioned size information, The ratio of the width of the output picture to the width of the input picture is limited to having a value greater than 1. The video decoding method according to claim 1, wherein the ratio of the height of the output picture to the height of the input picture is limited to having a value greater than 1. [Claim 10] Based on the existence of the aforementioned size information, The ratio of the width of the output picture to the width of the input picture is restricted to a value other than 1. The video decoding method according to claim 1, wherein the ratio of the height of the output picture to the height of the input picture is restricted to a value other than 1. [Claim 11] The process further includes the step of obtaining the first information from the NNPFC SEI message, The first value of the first information indicates that the size information exists. The second value of the first information indicates that the size information of the output picture exists. The video decoding method according to claim 10, wherein the size information is obtained based on the first information indicating the first value. [Claim 12] A video encoding method performed by a video encoding device, The step of determining the ratio between the size of the output picture and the size of the input picture, The process includes the step of encoding size information for the ratio into an NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) message, The aforementioned size information is, Information relating to the numerator value of the aforementioned ratio, and A video encoding method that includes information relating to the denominator of the aforementioned ratio. [Claim 13] A computer-readable recording medium for storing a bitstream generated by the video encoding method of claim 12. [Claim 14] A method for transmitting a bitstream generated by a video encoding method, The aforementioned video encoding method is The step of determining the ratio between the size of the output picture and the size of the input picture, The process includes the step of encoding size information for the ratio into an NNPFC (neural-network post-filter characteristics) SEI (supplemental enhancement information) message, The aforementioned size information is, Information relating to the numerator value of the aforementioned ratio, and A method including information relating to the denominator of the aforementioned ratio.

Claims

1. A video decoding method performed by a video decoding device, The stage of obtaining size information from NNPFC (Neural-Network Post-Filter Characteristics) SEI (Supplemental Enhancement Information) messages, The process includes the step of determining the size of the output picture based on size information, A video decoding method wherein the size information includes information for the numerator of the ratio between the size of the output picture and the size of the input picture, and information for the denominator of the ratio.

2. The information regarding the aforementioned molecular value is: Information relating to the numerator value of the ratio of the width of the output picture to the width of the input picture, and The video decoding method according to claim 1, comprising information relating to the numerator value of the ratio of the height of the output picture to the height of the input picture.

3. The information regarding the aforementioned denominator is, Information regarding the denominator value of the ratio between the width of the output picture and the width of the input picture, and The video decoding method according to claim 1, comprising information relating to the denominator of the ratio of the height of the output picture to the height of the input picture.

4. The video decoding method according to claim 1, wherein the value obtained by adding 1 to the information for the numeral value represents the numeral value.

5. The video decoding method according to claim 1, wherein the value obtained by adding 1 to the information for the denominator value represents the denominator value.

6. The video decoding method according to claim 1, wherein the size information is encoded based on 0th order exponential Golomb coding.

7. The video decoding method according to claim 1, wherein the width of the output picture is determined by rounding the width value of the input picture to which a width ratio, which is the ratio of the width of the output picture to the width of the input picture, is applied.

8. The video decoding method according to claim 1, wherein the height of the output picture is determined by rounding the height value of the input picture to which a height ratio, which is the ratio of the height of the output picture to the height of the input picture, is applied.

9. Based on the existence of the aforementioned size information, The ratio of the width of the output picture to the width of the input picture is limited to having a value greater than 1. The video decoding method according to claim 1, wherein the ratio of the height of the output picture to the height of the input picture is limited to having a value greater than 1.

10. Based on the existence of the aforementioned size information, The ratio of the width of the output picture to the width of the input picture is restricted to a value other than 1. The video decoding method according to claim 1, wherein the ratio of the height of the output picture to the height of the input picture is restricted to a value other than 1.

11. The process further includes the step of obtaining the first information from the NNPFC SEI message, The first value of the first information indicates that the size information exists. The second value of the first information indicates that the size information of the output picture exists. The video decoding method according to claim 10, wherein the size information is obtained based on the first information indicating a first value.

12. A video encoding method performed by a video encoding device, The step of determining the ratio between the size of the output picture and the size of the input picture, The process includes the step of encoding size information for the aforementioned ratio into an NNPFC (Neural-Network Post-Filter Characteristics) SEI (Supplemental Enhancement Information) message, The aforementioned size information is, Information relating to the numerator value of the aforementioned ratio, and A video encoding method that includes information relating to the denominator of the aforementioned ratio.

13. A computer-readable recording medium for storing a bitstream generated by the video encoding method of claim 12.

14. A method for transmitting a bitstream generated by a video encoding method, The aforementioned video encoding method is The step of determining the ratio between the size of the output picture and the size of the input picture, The process includes the step of encoding size information for the aforementioned ratio into an NNPFC (Neural-Network Post-Filter Characteristics) SEI (Supplemental Enhancement Information) message, The aforementioned size information is, Information relating to the numerator value of the aforementioned ratio, and A method including information relating to the denominator of the aforementioned ratio.