Image decoding method and apparatus for same

By determining DPB management based on the first picture of a CVSS AU in video decoding, the method enhances coding efficiency by minimizing state changes across all layers, addressing the inefficiencies in existing video coding systems.

JP2024133184AActive Publication Date: 2024-10-01LG ELECTRONICS INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024111475
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-05-22
Filing Date
2024-07-11
Publication Date
2024-10-01
Estimated Expiration
2041-05-04

AI Technical Summary

Technical Problem

The increasing demand for high-resolution, high-quality video has led to a need for more efficient video coding methods to reduce transmission and storage costs, particularly in managing the Decoded Picture Buffer (DPB) in video coding systems.

Method used

A method and apparatus for video decoding that determines the DPB management by deriving a variable based on whether the current picture is the first picture of a Coded Video Sequence Start Access Unit (CVSS AU) other than AU 0, updating the DPB accordingly, and decoding the current picture based on this variable.

Benefits of technology

This approach improves coding efficiency by eliminating the need to change the DPB state for all layers after each picture, reducing the complexity and resource overhead in DPB management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024133184000001_ABST
    Figure 2024133184000001_ABST
Patent Text Reader

Abstract

To provide an image decoding method performed by a decoding apparatus.SOLUTION: An image decoding method performed by the decoding apparatus according to a disclosure includes: deriving a value of a variable on the basis of whether a current picture is a first picture of a current AU (Access Unit) which is a CVSS AU (Coded Video Sequence Start Access Unit) other than an AU 0, the variable indicating whether all picture storage buffers (picture storage buffers) in the DPB (Decoded Picture Buffer) will be empty without outputting; updating the DPB on the basis of the variable; and decoding the current picture on the basis of the updated DPB.SELECTED DRAWING: Figure 8
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This document relates to video coding technology, and more particularly to a video decoding method and apparatus for performing a DPB management process in a video coding system. [Background technology]

[0002] In recent years, the demand for high-resolution, high-quality images such as HD (High Definition) images and UHD (Ultra High Definition) images has been increasing in various fields. As the resolution and quality of image data increases, the amount of information or bits to be transmitted increases compared to existing image data, and therefore, when the image data is transmitted using a medium such as an existing wired or wireless broadband line or when the image data is stored using an existing storage medium, the costs of transmission and storage increase.

[0003] Therefore, a highly efficient video compression technology is required to effectively transmit, store and play back high-resolution, high-quality video information. Summary of the Invention [Problem to be solved by the invention]

[0004] The technical problem of this document is to provide a method and apparatus for increasing video coding efficiency.

[0005] Another technical problem of this document is to provide a method and apparatus for performing the DPB management process. [Means for solving the problem]

[0006] According to one embodiment of the present document, there is provided a video decoding method performed by a decoding device, the method including the steps of: deriving a value of a variable based on whether a current picture is the first picture of a current Access Unit (AU) that is a CVSS AU (Coded Video Sequence Start Access Unit) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are emptied without output; updating the DPB based on the variable; and decoding the current picture based on the updated DPB.

[0007] According to another embodiment of the present document, there is provided a decoding device for performing video decoding, comprising: a Decoded Picture Buffer (DPB) for deriving a value of a variable based on whether a current picture is a first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0, the variable indicating whether all picture storage buffers in the DPB are emptied without output, a DPB for updating the DPB based on the variable, and a prediction unit for decoding the current picture based on the updated DPB.

[0008] According to yet another embodiment of the present document, there is provided a video encoding method performed by an encoding apparatus, the method including the steps of deriving a value of a variable based on whether a current picture is the first picture of a current Access Unit (AU) that is a CVSS AU (Coded Video Sequence Start Access Unit) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are emptied without output, updating the DPB based on the variable, and encoding video information for the current picture.

[0009] According to yet another embodiment of the present document, there is provided a video encoding apparatus, comprising: a decoded picture buffer (DPB) for deriving a value of a variable based on whether a current picture is a first picture of a current Access Unit (AU) that is a CVSS AU (Coded Video Sequence Start Access Unit) other than AU 0, the variable indicating whether all picture storage buffers in the DPB are emptied without output, the DPB being updated based on the variable, and an entropy encoding unit for encoding video information for the current picture.

[0010] According to yet another embodiment of the present document, there is provided a computer-readable digital storage medium having stored thereon a bitstream including video information for performing a video decoding method, the video decoding method including the steps of deriving a value of a variable based on whether a current picture is the first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are emptied without output, updating the DPB based on the variable, and decoding the current picture based on the updated DPB. Effect of the Invention

[0011] According to this document, instead of determining whether to perform the process of removing pictures in the DPB without outputting them before decoding all pictures in CVSS AUs other than AU 0, the determination can be made only before decoding the first picture in a CVSS AU other than AU 0, which eliminates the need to change the DPB state for each picture, which affects all layers in the CVSS AU, and improves coding efficiency.

[0012] According to this document, the variable indicating whether to remove a picture in the DPB without outputting it can be derived only before the decoding of the first picture in a CVSS AU other than AU 0, rather than before the decoding of all pictures in CVSS AUs other than AU 0. This eliminates the need to change the DPB state for each picture, which affects all layers in the CVSS AU, and improves coding efficiency. [Brief description of the drawings]

[0013] [Figure 1]FIG. 1 illustrates a schematic diagram of an example video / image coding system to which embodiments of the present document may be applied. [Diagram 2] FIG. 1 is a diagram illustrating the configuration of a video / image encoding device to which an embodiment of this document can be applied. [Diagram 3] FIG. 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of this document can be applied. [Figure 4] FIG. 2 illustrates an encoding procedure according to an embodiment of the present document. [Diagram 5] FIG. 1 illustrates a decoding procedure according to an embodiment of the present document. [Figure 6] 1 is a diagram illustrating a video encoding method according to an encoding device according to the present document; [Figure 7] 1 is a schematic diagram of an encoding device for performing a video encoding method according to the present document; [Figure 8] 1 is a diagram illustrating a video decoding method according to a decoding device according to the present document; [Figure 9] 1 is a schematic diagram of a decoding device for performing a video decoding method according to the present document; [Figure 10] FIG. 1 is a structural diagram of a content streaming system to which the embodiments of this document are applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] This document may be modified in various ways and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit the embodiments of this document to the specific embodiment. Terms commonly used in this specification are used only to describe specific embodiments, and are not intended to limit the technical ideas of this document. Singular expressions also include plural expressions unless otherwise specified in the context. In this specification, terms such as "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood as not precluding the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0015] Meanwhile, each component in the drawings described in this document is shown independently for the convenience of describing different characteristic functions, and does not mean that each component is embodied as separate hardware or software. For example, two or more components among the components may be combined to form one component, or one component may be divided into multiple components. An embodiment in which each component is integrated and / or separated is also included in the scope of the rights of this document as long as it does not deviate from the essence of this document.

[0016] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following, the same components in the drawings are designated by the same reference numerals, and duplicated descriptions of the same components will be omitted.

[0017] FIG. 1 illustrates a schematic diagram of an example video / image coding system in which embodiments of the present document may be applied.

[0018] 1, a video / image coding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image information or data to the receiving device in the form of a file or streaming via a digital storage medium or a network.

[0019] The source device may include a video source, an encoding device, and a sending unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / video encoding device, and the decoding device may be referred to as a video / video decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may also include a display unit, which may be configured as a separate device or an external component.

[0020] A video source may obtain video / video by a video / video capture, synthesis, or generation process, etc. A video source may include a video / video capture device and / or a video / video generation device. A video / video capture device may include, for example, one or more cameras, a video / video archive containing previously captured video / video, etc. A video / video generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / video. For example, a virtual video / video may be generated by a computer, etc., in which case the process of generating the associated data may replace the video / video capture process.

[0021] An encoding device may encode input video / image. The encoding device may perform a series of steps such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) may be output in the form of a bitstream.

[0022] The transmitting unit may transmit the encoded video / image information or data output in the form of a bitstream to a receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit may include elements for generating a media file according to a predetermined file format and may include elements for transmission via a broadcasting / communication network. The receiving unit may receive / extract the bitstream and transmit it to a decoding device.

[0023] The decoding device can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, and prediction, which correspond to the operations of the encoding device.

[0024] The renderer can render the decoded video / image. The rendered video / image can be displayed on a display unit.

[0025] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be applied to methods disclosed in the versatile video coding (VVC) standard, the essential video coding (EVC) standard, the AOMedia Video1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2) or next generation video / image coding standards (such as H.267 or H.268).

[0026] This document presents various embodiments relating to video / image coding, which may be performed in combination with one another, unless otherwise specified.

[0027] In this document, a video may refer to a collection of a series of images over time. A picture generally refers to a unit that represents one image at a specific time, and a subpicture / slice / tile is a unit that constitutes a part of a picture in coding. A subpicture / slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more subpictures / slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A brick may indicate a rectangular area of ​​a CTU row within a tile of a picture. A tile may be partitioned into multiple bricks, and each brick may be composed of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be called a brick. A brick scan may indicate a particular sequential ordering of CTUs partitioning a picture, where the CTUs may be aligned in a CTU raster scan within a brick, where the bricks within a tile may be aligned consecutively in a raster scan of the bricks of the tile, and where the tiles within a picture may be aligned consecutively in a raster scan of the tiles of the picture. A sub-picture may also indicate a rectangular region of one or more slices within a picture. That is, a sub-picture may include one or more slices that collectively cover a rectangular region of a picture. A tile is a rectangular region of a CTU within a particular tile row and a particular tile column in a picture. The tile column is a rectangular region of a CTU, where the rectangular region has a height equal to the height of the picture, and a width may be specified by a syntax element in a picture parameter set. The tile row is a rectangular region of a CTU, where the rectangular region has a width specified by a syntax element in a picture parameter set, and a height equal to the height of the picture.A tile scan may indicate a particular sequential ordering of CTUs partitioning a picture, where the CTUs may be consecutively aligned in a tile raster scan, and tiles within a picture may be consecutively aligned in a raster scan of the tiles of the picture. A slice may contain an integer number of bricks of a picture, where the integer number of bricks may be contained in a single NAL unit. A slice may consist of multiple complete tiles or may be a contiguous sequence of complete bricks of one tile. Tile group and slice may be used interchangeably in this document. For example, tile group / tile group header may be referred to as slice / slice header in this document.

[0028] A pixel or PEL (pel) can mean the smallest unit that constitutes one picture (or image). A term corresponding to a pixel can also be used as a "sample." A sample can generally indicate a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component, or may represent only a pixel / pixel value of a chroma component.

[0029] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. One unit may include one luma block and two chroma (ex. cb, cr) blocks. A unit may be used interchangeably with terms such as block or area in some cases. In general, an MxN block may include a set (or array) of samples or transform coefficients consisting of M columns and N rows.

[0030] As used herein, "A or B" can mean "A only," "B only," or "both A and B." In other words, as used herein, "A or B" can be interpreted as "A and / or B." For example, as used herein, "A, B or C" can mean "A only," "B only," "C only," or "any combination of A, B and C."

[0031] As used herein, a slash ( / ) or a comma can mean "and / or." For example, "A / B" can mean "A and / or B." Thus, "A / B" can mean "A only," "B only," or "both A and B." For example, "A, B, C" can mean "A, B, or C."

[0032] In this specification, "at least one of A and B" can mean "A only," "B only," or "both A and B." In addition, in this specification, the expressions "at least one of A or B" and "at least one of A and / or B" may be interpreted as the same as "at least one of A and B."

[0033] In addition, in this specification, "at least one of A, B and C" can mean "A only," "B only," "C only," or "any combination of A, B and C." In addition, "at least one of A, B or C" or "at least one of A, B and / or C" can mean "at least one of A, B and C."

[0034] In addition, parentheses used in this specification may mean "for example." Specifically, when "prediction (intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction." In other words, "prediction" in this specification is not limited to "intra prediction," and "intra prediction" may be proposed as an example of "prediction." In addition, when "prediction (i.e., intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction."

[0035] In this specification, technical features described separately in one drawing may be embodied separately or simultaneously.

[0036] The following drawings are created to explain a specific example of the present specification. The names of specific devices or names of specific signals / messages / fields described in the drawings are presented for illustrative purposes only, and the technical features of the present specification are not limited to the specific names in the following drawings.

[0037] 2 is a diagram for explaining the configuration of a video / image encoding device to which the embodiments of the present document can be applied. Hereinafter, the video encoding device may include a image encoding device.

[0038] Referring to FIG. 2, the encoding apparatus 200 may include an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be referred to as a reconstruction unit or a reconstructed block generator. The above-mentioned image division unit 210, prediction unit 220, residual processing unit 230, entropy encoding unit 240, addition unit 250, and filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chipset or a processor) depending on the embodiment. In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include the memory 270 as an internal / external component.

[0039] The image division unit 210 may divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing units may be called coding units (CUs). In this case, the coding units may be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad-tree structure, a binary tree structure, and / or a tannery structure. In this case, for example, the quad-tree structure may be applied first, and the binary tree structure and / or the tannery structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to this document may be performed based on the final coding unit that is not further divided. In this case, the largest coding unit may be used as the final coding unit immediately based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units of lower depths as necessary, and a coding unit of an optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be divided or partitioned from the final coding unit described above. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.

[0040] The unit may be used interchangeably with terms such as block or area in some cases. In the general case, an MxN block may refer to a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or a pixel value, or may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. A sample may be used as a term corresponding to one picture (or image) for a pixel or pel.

[0041] The encoding apparatus 200 may generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (prediction block, prediction sample array) output from the inter prediction unit 221 or the intra prediction unit 222 from an input video signal (original block, original sample array), and the generated residual signal is transmitted to the conversion unit 232. In this case, in the encoding apparatus 200, as shown in the figure, a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input video signal (original block, original sample array) may be called a subtraction unit 231. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including a prediction sample for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the information to the entropy encoding unit 240, as described later in the description of each prediction mode. The prediction information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.

[0042] The intra prediction unit 222 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on the prediction mode. In the intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the settings. The intra prediction unit 222 may also determine the prediction mode to be applied to the current block using the prediction modes applied to the neighboring blocks.

[0043] The inter prediction unit 221 may derive a prediction block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of a block, a sub-block, or a sample based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In the inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, for example, in skip mode and merge mode, the inter prediction unit 221 may use motion information of neighboring blocks as motion information of the current block. In skip mode, unlike merge mode, a residual signal may not be transmitted.In motion vector prediction (MVP) mode, the motion vector of a neighboring block is used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.

[0044] The prediction unit 220 may generate a prediction signal based on various prediction methods, which will be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may also simultaneously apply intra prediction and inter prediction. This may be referred to as combined inter and intra prediction (CIIP). The prediction unit may also be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for coding of content images / moving images such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction methods described in this document. The palette mode may be regarded as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within the picture may be signaled based on information regarding a palette table and a palette index.

[0045] The prediction signal generated by the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients by applying a transform method to the residual signal. For example, the transform method may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to blocks of variable sizes other than a square.

[0046] The quantization unit 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 240, which may encode the quantized signal (information on the quantized transform coefficients) and output the quantized signal as a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantization unit 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoding unit 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). In addition to the quantized transform coefficients, the entropy encoding unit 240 may also encode information required for video / image restoration (e.g., values ​​of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / video information) may be transmitted or stored in the form of a bitstream in network abstraction layer (NAL) unit units. The video / video information may further include information on 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 / video information may further include general constraint information. In this document, information and / or syntax elements transmitted / signaled from an encoding device to a decoding device may be included in the video / video information. The video / video information may be encoded by the above-mentioned encoding procedure and included in the bitstream.The bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) for transmitting and / or a storage unit (not shown) for storing the signal output from the entropy encoding unit 240 may be configured as an internal / external element of the encoding apparatus 200, or the transmitter may be included in the entropy encoding unit 240.

[0047] The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be restored by applying inverse quantization and inverse transform to the quantized transform coefficients in the inverse quantizer 234 and the inverse transformer 235. The adder 250 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to a prediction signal output from the inter prediction unit 221 or the intra prediction unit 222. When there is no residual for the current block to be processed, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 250 may be referred to as a reconstruction unit or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next current block to be processed in a current picture, or may be used for inter prediction of a next picture after filtering, as described below.

[0048] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during the picture encoding and / or reconstruction process.

[0049] The filtering unit 260 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 260 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc. The filtering unit 260 may generate various information related to filtering and transmit the information to the entropy encoding unit 240, as described later in relation to each filtering method. The information related to filtering may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.

[0050] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 221. In this way, when inter prediction is applied, the encoding apparatus can avoid prediction mismatch between the encoding apparatus 200 and the decoding apparatus 300, and can also improve encoding efficiency.

[0051] The DPB of the memory 270 may store the modified reconstructed picture to be used as a reference picture in the inter prediction unit 221. The memory 270 may store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 270 may store reconstructed samples of blocks reconstructed in the current picture and transmit them to the intra prediction unit 222.

[0052] FIG. 3 is a diagram illustrating a schematic configuration of a video / image decoding device to which the embodiments of this document can be applied.

[0053] Referring to FIG. 3, the decoding device 300 may include an entropy decoding unit (entropy decoder, 310), a residual processor (residual processor, 320), a predictor (predictor, 330), an adder (adder, 340), a filter (filter, 350), and a memory (memory, 360). The predictor 330 may include an inter predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer (dequantizer, 321) and an inverse transformer (inverse transformer, 322). The entropy decoding unit 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured by one hardware component (e.g., a decoder chipset or processor) according to an embodiment. Also, the memory 360 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include a memory 360 as an internal / external component.

[0054] When a bitstream including video / picture information is input, the decoding apparatus 300 can restore an image corresponding to a process in which the video / picture information is processed by the encoding apparatus of FIG. 2. For example, the decoding apparatus 300 can derive units / blocks based on block division related information obtained from the bitstream. The decoding apparatus 300 can perform decoding using a processing unit applied by the encoding apparatus. Thus, the processing unit for decoding may be, for example, a coding unit, and the coding unit may be divided from a coding tree unit or a maximal coding unit according to a quad tree structure, a binary tree structure, and / or a tannery tree structure. One or more transform units may be derived from the coding unit. Then, the restored video signal decoded and output by the decoding apparatus 300 may be reproduced by a reproduction device.

[0055] The decoding apparatus 300 may receive a signal output from the encoding apparatus of FIG. 2 in the form of a bitstream, and the received signal may be decoded by the entropy decoding unit 310. For example, the entropy decoding unit 310 may parse the bitstream and derive information (e.g., video / image information) required for image restoration (or picture restoration). The video / image information may further include information on 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). In addition, the video / image information may further include general constraint information. The decoding apparatus may decode a picture further based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be decoded by the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 310 may decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output values ​​of syntax elements required for image restoration and quantized values ​​of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element from the bitstream, determines a context model using information on a syntax element to be decoded, decoding information on neighboring and blocks to be decoded, or information on symbols / bins decoded in a previous step, predicts the occurrence probability of a bin according to the determined context model, and performs arithmetic decoding of the bins to generate a symbol corresponding to the value of each syntax element. In this case, the CABAC entropy decoding method may update the context model using information on the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.Among the information decoded by the entropy decoding unit 310, information related to prediction is provided to the prediction unit 330 (inter prediction unit 332 and intra prediction unit 331), and residual values ​​entropy decoded by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the residual processing unit 320. The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). Also, among the information decoded by the entropy decoding unit 310, information related to filtering may be provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) for receiving a signal output from an encoding apparatus may be further configured as an internal / external element of the decoding apparatus 300, or the receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to this document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoding unit 310, and the sample decoder may include at least one of the inverse quantization unit 321, the inverse transform unit 322, the addition unit 340, the filtering unit 350, the memory 360, the inter prediction unit 332, and the intra prediction unit 331.

[0056] The inverse quantization unit 321 may inverse quantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in the form of a two-dimensional block. In this case, the rearrangement may be performed based on a coefficient scan order performed in an encoding device. The inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.

[0057] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0058] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the prediction information output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.

[0059] The prediction unit 320 may generate a prediction signal based on various prediction methods, which will be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may also simultaneously apply intra prediction and inter prediction. This may be referred to as a combined inter and intra prediction (CIIP) mode. In addition, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for coding of content images / moving images such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction methods described in this document. The palette mode may be regarded as an example of intra coding or intra prediction. When the palette mode is applied, information regarding a palette table and a palette index may be included in the video / image information and signaled.

[0060] The intra prediction unit 331 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located far away from the current block depending on the prediction mode. In intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 331 may also determine the prediction mode to be applied to the current block using the prediction modes applied to the neighboring blocks.

[0061] The inter prediction unit 332 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In the inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. For example, the inter prediction unit 332 may configure a motion information candidate list based on the neighboring block, and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information regarding the prediction may include information indicating an inter prediction mode for the current block.

[0062] The adder 340 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to a prediction signal (prediction block, prediction sample array) output from a prediction unit (including the inter prediction unit 332 and / or the intra prediction unit 331). When there is no residual for the current block, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.

[0063] The adder 340 may be referred to as a reconstruction unit or a reconstruction block generator. The generated reconstruction signal may be used for intra prediction of a next block to be processed in a current picture, may be output after filtering as described below, or may be used for inter prediction of a next picture.

[0064] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture decoding.

[0065] The filtering unit 350 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.

[0066] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332. The memory 360 may store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 331.

[0067] In this specification, the embodiments described for the filtering unit 260, inter prediction unit 221 and intra prediction unit 222 of the encoding apparatus 200 may also be applied identically or correspondingly to the filtering unit 350, inter prediction unit 332 and intra prediction unit 331 of the decoding apparatus 300, respectively.

[0068] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When the quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. When the transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or may still be referred to as transform coefficients for uniformity of expression.

[0069] In addition, in this document, the quantized transform coefficients and the transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information about the transform coefficients, and the information about the transform coefficients may be signaled by a residual coding syntax. Transform coefficients may be derived based on the residual information (or the information about the transform coefficients), and scaled transform coefficients may be derived by inverse transform (scaling) on ​​the transform coefficients. Residual samples may be derived based on inverse transform (transform) on the scaled transform coefficients. This may be applied / expressed in the same manner in other parts of this document.

[0070] Meanwhile, a picture output and removal process may be performed in a Decoded Picture Buffer (DPB). In the existing VVC standard for a video / image coding system, the picture output and removal process in the Decoded Picture Buffer (DPB) may be as shown in the table below.

[0071] [Table 1-1]

[0072] [Table 1-2]

[0073] [Table 1-3]

[0074] For example, according to the VVC standard for video / picture coding systems, before decoding the current picture (and after parsing the slice header of the first slice of the current picture), a picture output process may be invoked once per picture, as disclosed in the table above.

[0075] Also, for example, referring to Table 1, if the current AU (Access Unit) is a CVSS AU (Coded Video Sequence Start AU) other than AU 0, the following order of steps may be applied:

[0076] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0077] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0078] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0079] Secondly, a derived variable NoOutputOfPriorPicsFlag may be applied to the HRD (Hypothetical Reference Decoder) for the decoder under test, so that if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without outputting any pictures they contain, and the DPB fullness may be set to 0.

[0080] Also, for example, referring to Table 1, all pictures k in the DPB may be removed from the DPB if both of the following conditions are true for picture k in the DPB:

[0081] - Picture k is marked as "unused for reference".

[0082] - Picture k has PictureOutputFlag equal to 0 or the DPB output time of said picture k is less than or equal to the CPB removal time of the first Decoding Unit (DU) (denoted as DU m) of the current picture n; i.e., DpbOutputTime[k] is less than or equal to DuCpbRemovalTime[m].

[0083] Also, for example, referring to Table 1, if the current AU (Access Unit) is a CVSS AU (Coded Video Sequence Start AU) other than AU 0, the following order of steps may be applied:

[0084] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0085] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0086] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0087] Second, the variable NoOutputOfPriorPicsFlag derived for the decoder under test may be applied to the Hypothetical Reference Decoder (HRD) as follows:

[0088] - For example, if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without any output of the pictures they contain, and the DPB fullness may be set to 0.

[0089] - Otherwise (i.e., if the value of NoOutputOfPriorPicsFlag is 0), all picture storage buffers in the DPB, including pictures marked as "not needed for output" and "unused for reference", may be emptied (without output), all non-empty picture storage buffers in the DPB may be emptied by repeatedly invoking the "bumping" process specified in clause C.5.2.4 (of the VVC Standard), and the DPB fullness may be set to 0.

[0090] Meanwhile, the bumping process may be comprised of the following steps in sequence:

[0091] 1. First, the picture with the smallest PicOrderCntVal value may be selected as the picture to be output from among all pictures in the DPB marked as "needed for output."

[0092] 2. Each of the pictures may be cropped in ascending order of nuh_layer_id using the conformance cropping window for the picture, the cropped pictures may be output, and the pictures may be marked as "not needed for output."

[0093] 3. Each picture storage buffer that is marked "unused for reference" and contains one of the cropped output pictures may be emptied and the DPB fullness may be decreased by one.

[0094] Also, for example, referring to Table 1, if the current AU is not a CVSS AU, all picture storage buffers, including pictures marked "not needed for output" and "unused for reference", may be emptied (without output). For each picture storage buffer that is emptied, the DPB fullness may be decreased by 1. Also, if one or more of the conditions described below are true, the "bumping" process specified in section C.5.2.4 (of the VVC Standard) may be repeatedly invoked for each additional picture storage buffer that is emptied, further decreasing the DPB fullness by 1, until all of the conditions described below are no longer true.

[0095] - The number of pictures in the DPB marked "needed for output" is greater than max_num_reorder_pics[Htid].

[0096] - max_latency_increase_plus1[Htid] is not 0 and there is at least one picture in the DPB whose associated variable PicLatencyCount is marked "needed for output" and is greater than or equal to MaxLatencyPictures[Htid].

[0097] - The number of pictures in the DPB is greater than or equal to max_dec_pic_buffering_minus1[Htid]+1.

[0098] Meanwhile, the existing VVC standard for the above-mentioned picture output and removal process may have the following problems.

[0099] For example, first, a picture may be marked as "used for short-term reference" after all slices of the picture are decoded, which may result in the picture not having a clear status in the DPB when the picture is decoded, which may affect the number of picture storages in the DPB.

[0100] Second, the assignment of the output status of a picture (i.e., needed for output) may occur during the bumping process. According to existing VVC standards, this process may not be invoked for a picture in an AU that is a coded video sequence start AU. Therefore, the value of the PicLatencyCount associated with that picture may not be initialized.

[0101] As described above, the invocation of the picture output and removal process in the DPB may be performed once per picture, but the process may affect the state of the DPB shared by all layers of the CVS (i.e., the state of the picture stored in the DPB). In view of the above facts, the derivation of NoOutputOfPriorPicsFlag and the process of removing pictures from the DPB based on the value of NoOutputOfPriorPicsFlag may be problematic. According to existing video / image standards, a process of inducing and removing pictures in the DPB based on the value of the flag (i.e., NoOutputOfPriorPicsFlag) may be invoked for all pictures of CVSS AUs other than AU 0. The above process may be performed successfully only for the first picture. The process starting from the second picture may remove the previous picture (i.e., a picture previously ordered in the decoding order) from the DPB before the previous picture is output. Such an operation is not considered to be a correct decoder behavior.

[0102] Therefore, this document proposes solutions to the above-mentioned problems. The proposed embodiments may be applied individually or in combination.

[0103] As an example, a process for deriving a value of a flag or variable indicating whether a reference picture of a DPB is to be removed from the DPB without being output may be called only once per AU (access unit). That is, for example, a method may be proposed in which a process for deriving a value of a flag or variable indicating whether a reference picture of a DPB is to be removed from the DPB without being output may be called only once per AU (access unit). Here, the variable may be NoOutputOfPriorPicsFlag.

[0104] Also, as an example, the process of deriving the value of NoOutputOfPriorPicsFlag may be invoked before the decoding process of the first picture in a Coded Video Sequence Start AU (CVSS AU) but after parsing the slice header of the first slice of the current picture. That is, for example, a scheme may be proposed in which the process of deriving the value of NoOutputOfPriorPicsFlag is invoked before the decoding process of the first picture in the CVSS AU but after the slice header of the first slice of the current picture is parsed.

[0105] Also, as an example, a process for removing a picture stored in the DPB without outputting it may be called only once per AU when NoOutputOfPriorPicsFlag is 1. That is, for example, a solution may be proposed in which a process for removing a picture stored in the DPB without outputting it is called only once per AU when NoOutputOfPriorPicsFlag is 1.

[0106] Also, as an example, a process for removing a picture stored in the DPB without outputting it when NoOutputOfPriorPicsFlag is 1 may be invoked before the decoding process of the first picture in the CVSS AU but after parsing the slice header of the first slice of the current picture. That is, for example, a solution may be proposed in which a process for removing a picture stored in the DPB without outputting it when NoOutputOfPriorPicsFlag is 1 is invoked before the decoding process of the first picture in the CVSS AU but after parsing the slice header of the first slice of the current picture.

[0107] Also, for example, the removal of a picture in the above-described embodiment may not include removing the current picture from the DPB, i.e., for example, a solution may be proposed in which the removal of a picture in the above-described embodiment does not include removing the current picture from the DPB.

[0108] The above-described embodiments may be implemented as follows: For example, the above-described embodiments may be implemented based on the VVC standard specification, as described below.

[0109] [Table 2-1]

[0110] [Table 2-2]

[0111] [Table 2-3]

[0112] For example, referring to Table 2, when the current picture is the first picture and the current AU (i.e., the AU that contains the current picture) is a CVSS AU (Coded Video Sequence Start AU) other than AU 0, the following sequence of steps may be applied:

[0113] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0114] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0115] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0116] Secondly, a derived variable NoOutputOfPriorPicsFlag may be applied to the HRD (Hypothetical Reference Decoder) for the decoder under test, so that if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without outputting any pictures they contain, and the DPB fullness may be set to 0.

[0117] Also, for example, referring to Table 2, if the current AU is not a CVSS AU or the current AU is a CVSS AU other than AU 0 but the current picture is not the first picture in the current AU, and all of the following conditions are true for picture k in the DPB, then all pictures k in the DPB may be removed from the DPB:

[0118] - Picture k is marked as "unused for reference".

[0119] - Picture k has a PictureOutputFlag of 0 or the DPB output time of said picture k is less than or equal to the CPB removal time of the first DU (denoted as DU m) of the current picture n; i.e., DpbOutputTime[k] is less than or equal to DuCpbRemovalTime[m].

[0120] Also, for example, referring to Table 2, when the current picture is the first picture and the current AU (i.e., the AU that contains the current picture) is a CVSS AU (Coded Video Sequence Start AU) other than AU 0, the following sequence of steps may be applied:

[0121] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0122] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0123] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0124] Second, the variable NoOutputOfPriorPicsFlag derived for the decoder under test may be applied to the Hypothetical Reference Decoder (HRD) as follows:

[0125] - For example, if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without any output of the pictures they contain, and the DPB fullness may be set to 0.

[0126] - Otherwise (i.e., if the value of NoOutputOfPriorPicsFlag is 0), all picture storage buffers in the DPB, including pictures marked as "not needed for output" and "unused for reference", may be emptied (without output), all non-empty picture storage buffers in the DPB may be emptied by repeatedly invoking the "bumping" process specified in clause C.5.2.4 (of the VVC Standard), and the DPB fullness may be set to 0.

[0127] Also, for example, referring to Table 2, if the current AU is not a CVSS AU or if the current AU is a CVSS AU other than AU 0 but the current picture is not the first picture of the current AU, then all picture storage buffers, including pictures marked "not needed for output" and "unused for reference", may be emptied (without output). For each picture storage buffer that is emptied, the DPB fullness may be decremented by 1. Also, if one or more of the conditions described below are true, then the "bumping" process specified in Section C.5.2.4 (of the VVC Standard) may be repeatedly invoked for each additional picture storage buffer that is emptied, further decrementing the DPB fullness by 1, until all of the conditions described below are no longer true.

[0128] - The number of pictures in the DPB marked "needed for output" is greater than max_num_reorder_pics[Htid].

[0129] - max_latency_increase_plus1[Htid] is not 0 and there is at least one picture in the DPB whose associated variable PicLatencyCount is marked "needed for output" and is greater than or equal to MaxLatencyPictures[Htid].

[0130] - The number of pictures in the DPB is greater than or equal to max_dec_pic_buffering_minus1[Htid]+1.

[0131] Alternatively, the above-described embodiment may be embodied as follows: For example, the above-described embodiment may be described with reference to the VVC standard specification, as described below.

[0132] [Table 3-1]

[0133] [Table 3-2]

[0134] [Table 3-3]

[0135] For example, referring to Table 3, if the current picture is the first picture of the current AU and the current AU is a CVSS Coded Video Sequence Start AU (AU) other than AU 0, the following sequence of steps may be applied:

[0136] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0137] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0138] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0139] Secondly, a derived variable NoOutputOfPriorPicsFlag may be applied to the HRD (Hypothetical Reference Decoder) for the decoder under test, so that if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without outputting any pictures they contain, and the DPB fullness may be set to 0.

[0140] Also, for example, referring to Table 3, if the current AU is not a CVSS AU or the current AU is a CVSS AU other than AU 0 but the current picture is not the first picture of the current AU, and all of the following conditions are true for picture k in the DPB, then all pictures k in the DPB may be removed from the DPB:

[0141] - Picture k is marked as "unused for reference".

[0142] - Picture k has a PictureOutputFlag of 0 or the DPB output time of said picture k is less than or equal to the CPB removal time of the first DU (denoted as DU m) of the current picture n; i.e., DpbOutputTime[k] is less than or equal to DuCpbRemovalTime[m].

[0143] Also, for example, referring to Table 3, if the current picture is the first picture of the current AU and the current AU is a CVSS AU (Coded Video Sequence Start AU) other than AU 0, the following sequence of steps may be applied:

[0144] First, the variable NoOutputOfPriorPicsFlag may be derived for the decoder under test as follows:

[0145] - If the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the current AU are different from the values ​​of PicWidthMaxInSamplesY, PicHeightMaxInSamplesY, MaxChromaFormat, MaxBitDepthMinus8, or max_dec_pic_buffering_minus1[Htid] derived for the previous AU, then NoOutputOfPriorPicsFlag may be set equal to 1 by the decoder under test regardless of the value of ph_no_output_of_prior_pics_flag for the current AU.

[0146] - Otherwise, NoOutputOfPriorPicsFlag may be set equal to the value of ph_no_output_of_prior_pics_flag of the current AU.

[0147] Second, the variable NoOutputOfPriorPicsFlag derived for the decoder under test may be applied to the Hypothetical Reference Decoder (HRD) as follows:

[0148] - For example, if the value of NoOutputOfPriorPicsFlag is 1, all picture storage buffers of the DPB may be emptied without any output of the pictures they contain, and the DPB fullness may be set to 0.

[0149] - Otherwise (i.e., if the value of NoOutputOfPriorPicsFlag is 0), all picture storage buffers in the DPB, including pictures marked as "not needed for output" and "unused for reference", may be emptied (without output), all non-empty picture storage buffers in the DPB may be emptied by repeatedly invoking the "bumping" process specified in clause C.5.2.4 (of the VVC Standard), and the DPB fullness may be set to 0.

[0150] Also, for example, referring to Table 3, if the current AU is not a CVSS AU or if the current AU is a CVSS AU other than AU 0 but the current picture is not the first picture of the current AU, then all picture storage buffers, including pictures marked "not needed for output" and "unused for reference", may be emptied (without output). For each picture storage buffer that is emptied, the DPB fullness may be decreased by 1. Also, if one or more of the conditions described below are true, then the "bumping" process specified in Section C.5.2.4 (of the VVC Standard) may be repeatedly invoked for each additional picture storage buffer that is emptied, further decreasing the DPB fullness by 1, until all of the conditions described below are no longer true.

[0151] - The number of pictures in the DPB marked "needed for output" is greater than max_num_reorder_pics[Htid].

[0152] - max_latency_increase_plus1[Htid] is not 0 and there is at least one picture in the DPB whose associated variable PicLatencyCount is marked "needed for output" and is greater than or equal to MaxLatencyPictures[Htid].

[0153] - The number of pictures in the DPB is greater than or equal to max_dec_pic_buffering_minus1[Htid]+1.

[0154] Meanwhile, for example, the embodiment may be applied according to the following procedure: One or more steps of the procedure described below may be omitted.

[0155] FIG. 4 exemplarily illustrates an encoding procedure according to an embodiment of the present document.

[0156] 4, the encoding device decodes (restores) a picture (S400). The encoding device can decode a picture of a current AU.

[0157] The encoding apparatus manages the DPB based on the DPB parameters (S410). Here, the DPB management may also be referred to as a DPB update. The DPB management process may include a process of marking and / or removing a decoded picture from the DPB. The decoded picture may be used as a reference for inter-prediction of a subsequent picture. That is, the decoded picture may be used as a reference picture for inter-prediction of a subsequent picture in the decoding order. Each decoded picture may basically be inserted into the DPB. Also, the DPB may generally be updated before decoding the current picture. If the layer associated with the DPB is not an output layer (or the DPB parameters are not associated with the output layer) and is a reference layer, the decoded picture in the DPB may not be output. If the layer associated with the DPB (or the DPB parameters) is an output layer, the decoded picture in the DPB may be output based on the DPB and / or the DPB parameters. DPB management may include outputting decoded pictures from the DPB.

[0158] The encoding device encodes the video information including information related to the DPB parameters (S420). The information related to the DPB parameters may include information / syntax elements disclosed in the above-mentioned embodiments and / or syntax elements disclosed in the table below.

[0159] [Table 4]

[0160] For example, Table 4 above may show a Video Parameter Set (VPS) that includes syntax elements for the DPB parameters to be signaled.

[0161] The semantics for the syntax elements shown in Table 4 above may be as follows:

[0162] [Table 5-1]

[0163] [Table 5-2]

[0164] For example, the syntax element vps_num_dpb_params may indicate the number of dpb_parameters() syntax structures in the VPS. For example, the value of vps_num_dpb_params may range from 0 to 16. Also, if the syntax element vps_num_dpb_params is not present, the value of the syntax element vps_num_dpb_params may be considered to be equal to 0.

[0165] Also, for example, the syntax element same_dpb_size_output_or_nonoutput_flag can indicate whether or not the syntax element layer_nonoutput_dpb_params_idx[i] exists in the VPS. For example, when the value of the syntax element same_dpb_size_output_or_nonoutput_flag is 1, the syntax element same_dpb_size_output_or_nonoutput_flag can indicate that the syntax element layer_nonoutput_dpb_params_idx[i] does not exist in the VPS, and when the value of the syntax element same_dpb_size_output_or_nonoutput_flag is 0, the syntax element same_dpb_size_output_or_nonoutput_flag can indicate that the syntax element layer_nonoutput_dpb_params_idx[i] may exist in the VPS.

[0166] Also, for example, the syntax element vps_sublayer_dpb_params_present_flag may be used to control the presence of the syntax elements max_dec_pic_buffering_minus1[], max_num_reorder_pics[], and max_latency_increase_plus1[] in the dpb_parameters() syntax structure of the VPS. Also, when the syntax element vps_sublayer_dpb_params_present_flag is not present, the value of the syntax element vps_sublayer_dpb_params_present_flag may be considered to be equal to 0.

[0167] Also, for example, the syntax element dpb_size_only_flag[i] may indicate whether the syntax elements max_num_reorder_pics[] and max_latency_increase_plus1[] are present in the i-th dpb_parameters() syntax structure of the VPS. For example, when the value of the syntax element dpb_size_only_flag[i] is 1, the syntax element dpb_size_only_flag[i] can indicate that the syntax elements max_num_reorder_pics[] and max_latency_increase_plus1[] are not present in the i-th dpb_parameters() syntax structure of the VPS, and when the value of the syntax element dpb_size_only_flag[i] is 0, the syntax element dpb_size_only_flag[i] can indicate that the syntax elements max_num_reorder_pics[] and max_latency_increase_plus1[] may be present in the i-th dpb_parameters() syntax structure of the VPS.

[0168] Also, for example, the syntax element dpb_max_temporal_id[i] may indicate the TemporalId of the highest sublayer representation in which a DPB parameter may exist in the i-th dpb_parameters() syntax structure in the VPS. Also, the value of dpb_max_temporal_id[i] may be in the range of 0 to vps_max_sublayers_minus1. Also, for example, when the value of vps_max_sublayers_minus1 is 0, the value of dpb_max_temporal_id[i] may be regarded as 0. Also, for example, when the value of vps_max_sublayers_minus1 is greater than 0 and vps_all_layers_same_num_sublayers_flag is 1, the value of dpb_max_temporal_id[i] may be regarded as being the same as vps_max_sublayers_minus1.

[0169] Also, for example, the syntax element layer_output_dpb_params_idx[i] can specify the index of the dpb_parameters() syntax structure applied to the i-th layer, which is the output layer of the OLS, in the list of dpb_parameters() syntax structures of the VPS. When the syntax element layer_output_dpb_params_idx[i] exists, the value of the syntax element layer_output_dpb_params_idx[i] can be in the range of 0 to vps_num_dpb_params-1.

[0170] For example, when vps_independent_layer_flag[i] is 1, the dpb_parameters() syntax structure applied to the i-th layer, which is the output layer, may be a dpb_parameters() syntax structure present in the SPS referenced in the layer.

[0171] Or, for example, if vps_independent_layer_flag[i] is 0, the following may apply:

[0172] - If vps_num_dpb_params is 1, the value of layer_output_dpb_params_idx[i] may be considered to be 0.

[0173] - It may be a bitstream conformance requirement that the value of layer_output_dpb_params_idx[i] be such that the value of dpb_size_only_flag[layer_output_dpb_params_idx[i]] is 0.

[0174] Also, for example, the syntax element layer_nonoutput_dpb_params_idx[i] can specify the index of the dpb_parameters() syntax structure applied to the i-th layer, which is a non-output layer of the OLS, in the list of dpb_parameters() syntax structures of the VPS. When the syntax element layer_nonoutput_dpb_params_idx[i] exists, the value of the syntax element layer_nonoutput_dpb_params_idx[i] can be in the range of 0 to vps_num_dpb_params-1.

[0175] For example, if same_dpb_size_output_or_nonoutput_flag is 1, the following may apply:

[0176] - When vps_independent_layer_flag[i] is 1, the dpb_parameters() syntax structure applied to the i-th layer, which is a non-output layer, may be a dpb_parameters() syntax structure in the SPS referenced by the layer of the dpb_parameters() syntax structure.

[0177] - When vps_independent_layer_flag[i] is 0, the value of layer_nonoutput_dpb_params_idx[i] may be considered to be identical to layer_output_dpb_params_idx[i].

[0178] Or, for example, if same_dpb_size_output_or_nonoutput_flag is 0, then if vps_num_dpb_params is 1, the value of layer_output_dpb_params_idx[i] may be considered to be 0.

[0179] Meanwhile, for example, the dpb_parameters() syntax structure, which is the DPB parameter syntax structure disclosed in Table 4 above, may be as follows:

[0180] [Table 6]

[0181] Referring to Table 6, the dpb_parameters() syntax structure can provide information on the DPB size, maximum picture reorder number, and maximum latency for each CLVS of the CVS. The dpb_parameters() syntax structure can also be referred to as information on DPB parameters or DPB parameter information.

[0182] When the VPS includes a dpb_parameters() syntax structure, the OLS to which the dpb_parameters() syntax structure is applied may be specified by the VPS. When the SPS includes a dpb_parameters() syntax structure, the dpb_parameters() syntax structure may be applied to an OLS that includes only the lowest layer among layers that reference the SPS, where the lowest layer may be an independent layer.

[0183] The semantics for the syntax elements shown in Table 6 above may be as follows:

[0184] [Table 7]

[0185] For example, the value of the syntax element max_dec_pic_buffering_minus1[i] plus 1 may indicate the maximum required size of the DPB in picture storage buffer units when Htid is the same as i for each CLVS of the CVS. For example, max_dec_pic_buffering_minus1[i] may be information about the DPB size. For example, the value of the syntax element max_dec_pic_buffering_minus1[i] may be in the range of 0 to MaxDpbSize-1. Also, for example, when i is greater than 0, max_dec_pic_buffering_minus1[i] may be greater than or equal to max_dec_pic_buffering_minus1[i-1]. Also, for example, if there is no max_dec_pic_buffering_minus1[i] for i in the range of 0 to maxSubLayersMinus1-1, then since subLayerInfoFlag is 0, the value of the syntax element max_dec_pic_buffering_minus1[i] may be considered to be the same as max_dec_pic_buffering_minus1[maxSubLayersMinus1].

[0186] Also, for example, the syntax element max_num_reorder_pics[i] may precede all pictures of the CLVS in the decoding order for each CLVS of the CVS, and may indicate the maximum allowed number of pictures of the CLVS that may follow the picture in the output order when Htid is the same as i. For example, max_num_reorder_pics[i] may be information on the maximum picture reorder number of the DPB. The value of max_num_reorder_pics[i] may be in the range of 0 to max_dec_pic_buffering_minus1[i]. Also, for example, when i is greater than 0, max_num_reorder_pics[i] may be greater than or equal to max_num_reorder_pics[i-1]. Also, for example, if there is no max_num_reorder_pics[i] for i in the range of 0 to maxSubLayersMinus1-1, then since subLayerInfoFlag is 0, the syntax element max_num_reorder_pics[i] may be considered to be the same as max_num_reorder_pics[maxSubLayersMinus1].

[0187] Also, for example, a syntax element max_latency_increase_plus1[i] whose value is not 0 may be used to calculate the value of MaxLatencyPictures[i]. The MaxLatencyPictures[i] may indicate the maximum number of pictures of a CLVS that may precede all pictures of the CLVS in output order for each CLVS of a CVS and may follow the picture in decoding order when Htid is equal to i. For example, max_latency_increase_plus1[i] may be information on the maximum latency of a DPB.

[0188] For example, if max_latency_increase_plus1[i] is not 0, the value of MaxLatencyPictures[i] may be derived as follows:

[0189]

number

[0190] On the other hand, for example, if max_latency_increase_plus1[i] is 0, the corresponding limit may not be displayed. 32 For example, if there is no max_latency_increase_plus1[i] for i in the range of 0 to maxSubLayersMinus1-1, then the syntax element max_latency_increase_plus1[i] may be considered to be the same as max_latency_increase_plus1[maxSubLayersMinus1], since subLayerInfoFlag is 0.

[0191] The above-mentioned DPB management may be performed based on the information / syntax elements related to the above-mentioned DPB parameters. Different DPB parameters may be signaled depending on whether the current layer is an output layer or a reference layer, or different DPB parameters may be signaled depending on whether the DPB (or DPB parameters) are for OLS (OLS-mapped) or not.

[0192] Meanwhile, although not shown in Fig. 4, the encoding device may decode the current picture based on the updated / managed DPB, and the decoded current picture may be inserted into the DPB, and the DPB containing the decoded current picture may be updated based on DPB parameters before decoding the picture next to the current picture in decoding order.

[0193] FIG. 5 illustrates a decoding procedure according to an embodiment of this document.

[0194] The decoding device obtains video information including information related to DPB parameters from a bitstream (S500). The decoding device can obtain video information including information related to DPB parameters. The information / syntax elements related to the DPB parameters may be as described above.

[0195] The decoding device manages the DPB based on the DPB parameters (S510). Here, the DPB management may be referred to as a DPB update. The DPB management process may include a marking and / or removal process of pictures decoded in the DPB. The decoding device may derive the DPB parameters based on information related to the DPB parameters, and may perform the DPB management process based on the derived DPB parameters.

[0196] The decoding device decodes / outputs the current picture based on the DPB (S520). The decoding device can decode the current picture based on the updated / managed DPB. For example, a block / slice in the current picture may be decoded based on inter prediction using a (previously) decoded picture in the DPB as a reference picture.

[0197] FIG 6 illustrates a video encoding method by the encoding device according to the present document. The method illustrated in FIG 6 may be performed by the encoding device illustrated in FIG 2. Specifically, for example, steps S600 to S610 in FIG 6 may be performed by a DPB of the encoding device, and step S620 may be performed by an entropy encoding unit of the encoding device. Although not illustrated, a process of decoding a current picture may be performed by a prediction unit and a residual processing unit of the encoding device.

[0198] The encoding apparatus derives a value of a variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0 (S600). The encoding apparatus may derive the value of the variable before decoding the current picture and after generating / encoding a slice header for the current picture in order to update a DPB. The DPB may include pictures decoded before the current picture.

[0199] For example, the encoding apparatus may derive a value of the variable based on whether the current picture is the first picture of a current Access Unit (AU) having a CVSS AU other than AU 0. Here, the variable may indicate whether all picture storage buffers in a Decoded Picture Buffer (DPB) are emptied without output. The current AU may be an AU including the current picture. Also, for example, the AU 0 may be the first AU of a bitstream in decoding order. That is, for example, the AU 0 may be the first AU of a bitstream to be decoded. Meanwhile, the encoding apparatus may generate / encode a slice header for the current picture, and then derive a value of the variable based on whether the current picture is the first picture of a current Access Unit (AU) having a CVSS AU other than AU 0.

[0200] For example, the encoding device may determine whether the current picture is the first picture of a current Access Unit (AU), which is a CVSS AU other than AU 0. If the current AU is the CVSS AU other than AU 0 and the current picture is the first picture of the current AU, the encoding device may derive a value for the variable.

[0201] For example, when the current AU is a CVSS AU other than AU 0 and the current picture is the first picture of the current AU, the encoding apparatus may determine whether at least one of the parameters for the current AU is different from a parameter for a preceding AU of the current AU in the decoding order. If at least one of the parameters for the current AU is different from the parameter for the preceding AU, the value of the variable may be set to be equal to 1, and if the parameter for the current AU is the same as the parameter for the preceding AU, the value of the variable may be set to be equal to a value of a syntax element for the variable. The encoding apparatus may generate / encode video information for the current picture, and the video information may include the syntax element. The syntax element may be the above-mentioned ph_no_output_of_prior_pics_flag. Also, the parameters for the current AU may include a parameter for a maximum picture width for the current AU, a parameter for a maximum picture height, a parameter for an available chroma format, a parameter for a maximum bit depth, and a parameter for a DPB maximum size. The parameter for the maximum picture width may be the above-mentioned PicWidthMaxInSamplesY, the parameter for the maximum picture height may be the above-mentioned PicHeightMaxInSamplesY, the parameter for the available chroma format may be the above-mentioned MaxChromaFormat, the parameter for the maximum bit depth may be the above-mentioned MaxBitDepthMinus8, and the parameter for the DPB maximum size may be the above-mentioned max_dec_pic_buffering_minus1[Htid].

[0202] On the other hand, for example, if the current AU is not a CVSS AU or the current picture is not the first picture of a current Access Unit (AU) that is a CVSS AU other than AU 0, the encoding device does not need to derive the value of the variable.

[0203] As a result, the variables may be derived only before decoding of the current picture, which is the first picture of the current AU, rather than before decoding of all pictures of the current AU, which is a CVSS AU other than AU 0, and the process of all picture storage buffers in a DPB (Decoded Picture Buffer) being emptied without output may be performed only before decoding of the current picture, which is the first picture of the current AU.

[0204] The encoding device updates the DPB based on the variables (S610). For example, the encoding device may update the DPB based on the variables.

[0205] For example, when the value of the variable is 1, all the picture storage buffers in the DPB may be emptied without output, and the DPB fullness may be set equal to 0. Also, for example, when the value of the variable is 0, the picture storage buffers including a particular picture in the DPB may be emptied without output, and a bumping process may be performed for the non-empty picture storage buffers in the DPB. Also, the DPB fullness may be set to 0. Here, for example, the particular picture may be a picture that is indicated as "not needed for output" and "unused for reference". The bumping process may be as described above.

[0206] Also, for example, if the current picture is not the first picture of the current AU that is a CVSS AU other than AU 0, the encoding apparatus may remove a specific picture in the DPB that satisfies a first condition and a second condition. Here, the first condition may be that the specific picture is a picture marked as "not used as reference", and the second condition may be that the specific picture has a picture output flag equal to 0 or the DPB output time of the specific picture is less than or equal to the CPB removal time of the first Decoding Unit (DU) of the current picture. Here, the picture output flag may be the PictureOutputFlag described above.

[0207] Also, for example, if the current picture is not the first picture of the current AU with a CVSS AU other than AU 0, a picture storage buffer including a specific picture in the DPB may be emptied without output. Here, the specific picture may be a picture indicated as "not needed for output" and "unused for reference". Also, the DPB fullness may be decreased by 1 for the emptied picture storage buffer. That is, for example, the DPB fullness may be decreased by 1 every time a picture storage buffer becomes empty. Also, if at least one of the conditions described below is true, the bumping process described above may be repeated while further decreasing the DPB fullness by 1 for each emptied additional picture storage buffer until none of the conditions are true.

[0208] For example, a first condition may be that the number of pictures in the DPB marked "needed for output" is greater than a syntax element max_num_reorder_pics[Htid] for the current AU, a second condition may be that the syntax element max_latency_increase_plus1[Htid] for the current AU is not 0 and there is at least one picture whose associated variable PicLatencyCount marked "needed for output" in the DPB is greater than or equal to MaxLatencyPictures[Htid], and a third condition may be that the number of pictures in the DPB is greater than or equal to a syntax element max_dec_pic_buffering_minus1[Htid] for the current AU plus 1. The video information may include a syntax element for the current AU.

[0209] The encoding apparatus encodes video information for the current picture (S620). The encoding apparatus may encode the video information including a syntax element for updating the DPB. The video information may also include a slice header for the current picture.

[0210] Meanwhile, although not illustrated, an encoding apparatus may decode the current picture based on the updated DPB. For example, the encoding apparatus may derive a prediction sample by performing inter prediction on a block in the current picture based on a reference picture of the DPB, and may generate a reconstructed sample and / or a reconstructed picture for the current picture based on the prediction sample. Meanwhile, for example, the encoding apparatus may derive a residual sample for a block in the current picture, and may generate a reconstructed sample and / or a reconstructed picture by adding the prediction sample and the residual sample. As described above, thereafter, an in-loop filtering procedure such as a deblocking filtering, SAO and / or ALF procedure may be applied to the reconstructed sample as necessary to improve subjective / objective image quality. The encoding apparatus may generate / encode prediction related information and / or residual information for the block, and the video information may include the prediction related information and / or the residual information. The encoding apparatus may also insert the decoded current picture into the DPB. Also, for example, an encoding apparatus may derive DPB parameters for the current AU and generate DBP-related information for the DPB parameters. The video information may include the DBP-related information.

[0211] Meanwhile, the bitstream including the video information may be transmitted to the decoding device via a network or a (digital) storage medium, where the network may include a broadcast network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.

[0212] FIG 7 is a schematic diagram of an encoding device for performing a video encoding method according to the present document. The method disclosed in FIG 7 may be performed by the encoding device disclosed in FIG 6. Specifically, for example, the DPB of the encoding device of FIG 7 may perform S600 to S610, and the entropy encoding unit of the encoding device of FIG 7 may perform S620. Also, although not shown, a process of decoding a current picture may be performed by a prediction unit and a residual processing unit of the encoding device.

[0213] Figure 8 illustrates a video decoding method by a decoding device according to the present document. The method illustrated in Figure 8 may be performed by the decoding device illustrated in Figure 3. Specifically, for example, steps S800 to S810 in Figure 8 may be performed by a DPB of the decoding device, and step S820 in Figure 8 may be performed by a prediction unit and a residual processing unit of the decoding device.

[0214] The decoding apparatus derives a value of a variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS AU (Coded Video Sequence Start Access Unit) other than AU 0 (S800). The decoding apparatus may derive the value of the variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS AU other than AU 0. Here, the variable may indicate whether all picture storage buffers in a Decoded Picture Buffer (DPB) are emptied without output. The current AU may be an AU that includes the current picture. Also, for example, the AU 0 may be the first AU of a bitstream in decoding order. That is, for example, the AU 0 may be the first AU of a bitstream that the decoding apparatus decodes. Meanwhile, the decoding apparatus may parse a slice header for the current picture, and then derive the value of the variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS AU other than AU 0.

[0215] For example, the decoding device may determine whether the current picture is the first picture of a current AU (Access Unit), which is a CVSS AU other than AU 0. If the current AU is a CVSS AU other than AU 0 and the current picture is the first picture of the current AU, the decoding device may derive the value of the variable.

[0216] For example, when the current AU is a CVSS AU other than AU 0 and the current picture is the first picture of the current AU, the decoding apparatus may determine whether at least one of the parameters for the current AU is different from a parameter for a preceding AU of the current AU in the decoding order. If at least one of the parameters for the current AU is different from the parameter for the preceding AU, the value of the variable may be set to 1, and if the parameter for the current AU is the same as the parameter for the preceding AU, the value of the variable may be set to the value of a syntax element signaled for the variable. The decoding apparatus may obtain video information for the current picture, and the video information may include the syntax element. The syntax element may be the above-mentioned ph_no_output_of_prior_pics_flag. Also, the parameters for the current AU may include a parameter for a maximum picture width for the current AU, a parameter for a maximum picture height, a parameter for an available chroma format, a parameter for a maximum bit depth, and a parameter for a DPB maximum size. The parameter for the maximum picture width may be the above-mentioned PicWidthMaxInSamplesY, the parameter for the maximum picture height may be the above-mentioned PicHeightMaxInSamplesY, the parameter for the available chroma format may be the above-mentioned MaxChromaFormat, the parameter for the maximum bit depth may be the above-mentioned MaxBitDepthMinus8, and the parameter for the DPB maximum size may be the above-mentioned max_dec_pic_buffering_minus1[Htid].

[0217] On the other hand, for example, if the current AU is not a CVSS AU or the current picture is not the first picture of a current Access Unit (AU) that is a CVSS AU other than AU 0, the decoding device does not need to derive the value of the variable.

[0218] As a result, the variables may be derived only before decoding of the current picture, which is the first picture of the current AU, rather than before decoding of all pictures of the current AU, which is a CVSS AU other than AU 0, and the process of all picture storage buffers in a DPB (Decoded Picture Buffer) being emptied without output may be performed only before decoding of the current picture, which is the first picture of the current AU.

[0219] The decoding device updates the DPB based on the variables (S810). For example, the decoding device may update the DPB based on the variables. Before being updated, the DPB may include pictures decoded before the current picture.

[0220] For example, when the value of the variable is 1, all the picture storage buffers in the DPB may be emptied without output, and the DPB fullness may be set equal to 0. Also, for example, when the value of the variable is 0, the picture storage buffers including a particular picture in the DPB may be emptied without output, and a bumping process may be performed for the non-empty picture storage buffers in the DPB. Also, the DPB fullness may be set to 0. Here, for example, the particular picture may be a picture that is indicated as "not needed for output" and "unused for reference". The bumping process may be as described above.

[0221] Also, for example, if the current picture is not the first picture of the current AU that is a CVSS AU other than AU 0, the decoding apparatus may remove a specific picture in the DPB that satisfies a first condition and a second condition. Here, the first condition may be that the specific picture is a picture marked as "not used as reference", and the second condition may be that the specific picture has a picture output flag equal to 0 or the DPB output time of the specific picture is less than or equal to the CPB removal time of the first Decoding Unit (DU) of the current picture. Here, the picture output flag may be the PictureOutputFlag described above.

[0222] Also, for example, if the current picture is not the first picture of the current AU with a CVSS AU other than AU 0, a picture storage buffer including a specific picture in the DPB may be emptied without output. Here, the specific picture may be a picture indicated as "not needed for output" and "unused for reference". Also, the DPB fullness may be decreased by 1 for the emptied picture storage buffer. That is, for example, the DPB fullness may be decreased by 1 every time a picture storage buffer becomes empty. Also, if at least one of the conditions described below is true, the bumping process described above may be repeated while further decreasing the DPB fullness by 1 for each emptied additional picture storage buffer until none of the conditions are true.

[0223] For example, a first condition may be that the number of pictures in the DPB marked as "needed for output" is greater than the syntax element max_num_reorder_pics[Htid] for the current AU, a second condition may be that the syntax element max_latency_increase_plus1[Htid] for the current AU is not 0 and there is at least one picture whose associated variable PicLatencyCount marked as "needed for output" in the DPB is greater than or equal to MaxLatencyPictures[Htid], and a third condition may be that the number of pictures in the DPB is greater than or equal to the syntax element max_dec_pic_buffering_minus1[Htid] for the current AU plus 1. The video information may include a syntax element for the current AU.

[0224] The decoding apparatus decodes the current picture based on the updated DPB (S820). For example, the decoding apparatus may decode the current picture based on the updated DPB. For example, the decoding apparatus may derive a prediction sample by performing inter prediction on a block in the current picture based on a reference picture of the DPB, and may generate a reconstructed sample and / or a reconstructed picture for the current picture based on the prediction sample. Meanwhile, for example, the decoding apparatus may derive a residual sample for a block in the current picture based on residual information for the current picture received using a bitstream, and may generate a reconstructed sample and / or a reconstructed picture by adding the prediction sample and the residual sample. The video information may include the residual information. Also, the decoding apparatus may insert the decoded current picture into the DPB.

[0225] As mentioned above, in-loop filtering procedures such as deblocking filtering, SAO and / or ALF procedures may then be applied to the reconstructed samples, if necessary, in order to improve the subjective / objective image quality.

[0226] Fig. 9 is a schematic diagram of a decoding device for performing the video decoding method according to the present document. The method disclosed in Fig. 8 may be performed by the decoding device disclosed in Fig. 9. Specifically, for example, the DPB of the decoding device of Fig. 9 may perform S800 to S810 of Fig. 8, and the prediction unit and residual processing unit of the decoding device of Fig. 9 may perform S820 of Fig. 8.

[0227] According to the above-mentioned document, instead of determining whether to perform the process of removing pictures in the DPB without outputting them before decoding all pictures in the CVSS AUs other than AU 0, the determination can be made only before decoding the first picture in a CVSS AU other than AU 0, thereby eliminating the need to change the DPB state that affects all layers in the CVSS AU for each picture, thereby improving coding efficiency.

[0228] In addition, according to this document, the variable indicating whether to remove a picture in the DPB without outputting it can be derived only before decoding the first picture of a CVSS AU other than AU 0, rather than before decoding all pictures of CVSS AUs other than AU 0. This eliminates the need to change the DPB state that affects all layers in the CVSS AU for each picture, improving coding efficiency.

[0229] In the above-described embodiments, the method is a series of steps or blocks and is described based on a flow chart, but this document is not limited to the order of steps, and some steps may occur in a different order or simultaneously with other steps than those described above. In addition, those skilled in the art will understand that the steps shown in the flow chart are not exclusive, and other steps may be included, or one or more steps of the flow chart may be omitted without affecting the scope of this document.

[0230] The embodiments described in this document may be implemented and performed on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure may be implemented and performed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for the implementation may be stored in a digital storage medium.

[0231] In addition, the decoding device and encoding device to which the embodiment of this document is applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, an image telephone video device, a vehicle terminal (e.g., a vehicle terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, etc., and may be used to process a video signal or a data signal. For example, an over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.

[0232] In addition, the processing method to which the embodiments of this document are applied may be produced in the form of a program executed by a computer and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to this document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes any kind of storage device and distributed storage device in which computer-readable data is stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The computer-readable recording medium may also include a medium embodied in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.

[0233] Furthermore, the embodiments of the present document may be embodied as a computer program product by program code, the program code being executable by a computer in accordance with the embodiments of the present document. The program code may be stored on a computer readable carrier.

[0234] FIG. 10 is a structural diagram illustrating a content streaming system to which the embodiments of this document are applied.

[0235] A content streaming system to which the embodiments of this document are applied can broadly include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.

[0236] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, when a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.

[0237] The bitstream may be generated by an encoding method or a bitstream generation method to which an embodiment of this document is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0238] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server transmits the multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server plays a role of controlling commands / responses between the devices in the content streaming system.

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

[0240] Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glass, head mounted displays (HMDs), digital TVs, desktop computers, digital signage, etc. Each server in the content streaming system may be operated as a distributed server, in which case data received by each server may be processed in a distributed manner.

[0241] The claims described herein may be combined in various ways. For example, the technical features of the method claims herein may be combined and embodied as an apparatus, the technical features of the apparatus claims herein may be combined and embodied as a method, the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied as an apparatus, and the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied as a method.

Claims

1. A video decoding method performed by a decoding device, comprising: deriving a value of a variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are empty with no output; updating the DPB based on the variables; decoding the current picture based on the updated DPB; The AU 0 is the first AU of a bitstream.

2. 2. The video decoding method of claim 1, wherein if the value of the variable is 1, all the picture storage buffers in the DPB are empty with no output and DPB fullness is set equal to 0.

3. If the value of the variable is 0, the picture storage buffer containing the particular picture in the DPB is empty with no output, and a bumping process is performed on the full picture storage buffer in the DPB; The image decoding method of claim 2, wherein the specific picture is a picture marked as "not needed for output" and "unused for reference."

4. The step of deriving values ​​of the variables comprises: If the current picture is a first picture of the current AU, which is a CVSS AU other than the AU 0, determining whether at least one of parameters for the current AU is different from a parameter for an AU preceding the current AU in decoding order; If at least one of the parameters for the current AU is different from the parameter for the previous AU, the value of the variable is set equal to 1; The method of claim 1 , further comprising: if the parameter for the current AU is the same as the parameter for the previous AU, then the value of the variable is set equal to the value of a syntax element signaled for the variable.

5. 5. The method of claim 4, wherein the parameters for the current AU include a parameter for a maximum picture width, a parameter for a maximum picture height, a parameter for an available chroma format, a parameter for a maximum bit depth, and a parameter for a maximum DPB size for the current AU.

6. The step of updating the DPB comprises: removing a specific picture that satisfies a first condition and a second condition from the DPB if the current picture is not a first picture of the current AU, which is a CVSS AU other than the AU 0; The first condition is that the specific picture is a picture marked as "not used as reference", 2. The image decoding method of claim 1, wherein the second condition is that the particular picture has a picture output flag equal to 0 or that a DPB output time of the particular picture is less than or equal to a CPB removal time of a first Decoding Unit (DU) of the current picture.

7. If the current picture is not the first picture of the current AU, which is a CVSS AU other than AU 0, the picture storage buffer containing the particular picture in the DPB is empty with no output; The image decoding method of claim 1, wherein the specific picture is a picture marked as "not needed for output" and "unused for reference."

8. A video encoding method performed by an encoding device, comprising: deriving a value of a variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are empty with no output; updating the DPB based on the variables; encoding image information for the current picture; The AU 0 is the first AU of a bitstream.

9. 9. The video encoding method of claim 8, wherein if the value of the variable is 1, all the picture storage buffers in the DPB are empty with no output and DPB fullness is set equal to 0.

10. If the value of the variable is 0, the picture storage buffer containing the particular picture in the DPB is empty with no output, and a bumping process is performed for the full picture storage buffer in the DPB; The video encoding method of claim 9, wherein the specific picture is a picture marked as "not needed for output" and "unused for reference."

11. The step of deriving values ​​of the variables comprises: If the current picture is a first picture of the current AU, which is a CVSS AU other than the AU 0, determining whether at least one of parameters for the current AU is different from a parameter for a preceding AU of the current AU in decoding order; If at least one of the parameters for the current AU is different from the parameter for the previous AU, the value of the variable is set equal to 1; If the parameter for the current AU is the same as the parameter for the previous AU, the value of the variable is set equal to the value of a syntax element for the variable; The video encoding method of claim 8 , wherein the video information includes the syntax elements.

12. 12. The video encoding method of claim 11, wherein the parameters for the current AU include a parameter for a maximum picture width, a parameter for a maximum picture height, a parameter for an available chroma format, a parameter for a maximum bit depth, and a parameter for a maximum DPB size for the current AU.

13. The step of updating the DPB comprises: removing a specific picture that satisfies a first condition and a second condition from the DPB if the current picture is not a first picture of the current AU, which is a CVSS AU other than the AU 0; The first condition is that the specific picture is a picture marked as "not used as reference"; 9. The video encoding method of claim 8, wherein the second condition is that the specific picture has a picture output flag equal to 0 or that a DPB output time of the specific picture is less than or equal to a CPB removal time of a first Decoding Unit (DU) of the current picture.

14. If the current picture is not the first picture of the current AU, which is a CVSS AU other than AU 0, the picture storage buffer containing the particular picture in the DPB is empty with no output; The video encoding method of claim 8, wherein the specific picture is a picture marked as "not needed for output" and "unused for reference."

15. 1. A method for transmitting data for video information, comprising: deriving a value of a variable based on whether the current picture is the first picture of a current Access Unit (AU) that is a CVSS Coded Video Sequence Start Access Unit (AU) other than AU 0, the variable indicating whether all picture storage buffers in a Decoded Picture Buffer (DPB) are empty with no output, the AU 0 being the first AU of the bitstream; updating the DPB based on the variables; encoding video information for the current picture to generate the bitstream; A method of transmitting data comprising transmitting data including said bitstream.

Citation Information

Patent Citations

  • Picture Flushing and Decoded Picture Buffer Parameter Estimation for Multilayer Bitstreams

    JP2017509252A