Image decoding and encoding method, bit stream transmission method, and storage medium

By managing the output layer set (OLS) decoded picture buffer (DPB) parameters in the image decoding method, the problem of low image encoding efficiency in the prior art is solved, and OLS adaptive update of DPB is realized, which improves encoding efficiency and reduces costs.

CN119967192APending Publication Date: 2025-05-09LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510372617.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-12-30
Filing Date
2020-12-29
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The prior art is difficult to effectively improve image encoding efficiency, especially when processing high-resolution, high-quality images, resulting in increased transmission and storage costs.

Method used

The management process of decoding the output layer set (OLS) decoded picture buffer (DPB) parameters is introduced into the image decoding method, including obtaining DPB parameter information, deducing DPB parameters, performing picture management processing, obtaining prediction and residual information, deriving prediction and residual samples, and generating reconstructed samples.

Benefits of technology

The OLS adaptive update of DPB is realized, which improves the overall coding efficiency and reduces image transmission and storage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967192A_ABST
    Figure CN119967192A_ABST
Patent Text Reader

Abstract

The invention discloses an image decoding and encoding method, a bit stream transmission method, and a storage medium. An image decoding method performed by a decoding device according to the present document comprises the steps of: acquiring image information including decoded picture buffer (DPB) parameter information of an output layer set (OLS) and an OLS DPB parameter index of a target OLS; and deriving DPB parameter information of the target OLS from among the DPB parameter information of the OLS based on the OLS DPB parameter index.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with the original application number 202080097297.1 (International application number: PCT / KR2020 / 019337, application date: December 29, 2020, invention name: Image decoding method and device including DPB management processing). Technical Field

[0002] The present document relates to an image coding technology, and more particularly, to an image decoding method and a device thereof for encoding image information including DPB parameters mapped to an OLS in an image coding system. Background Art

[0003] Recently, in various fields, the demand for high-resolution, high-quality images such as HD (high definition) images and UHD (ultra high definition) images is growing. Because image data has high resolution and high quality, the amount of information or bits to be transmitted increases relative to conventional image data. Therefore, when image data is transmitted using a medium such as a conventional wired / wireless broadband line or stored using an existing storage medium, its transmission cost and storage cost increase.

[0004] Therefore, there is a need for efficient image compression technology for effectively transmitting, storing and reproducing information of high-resolution and high-quality images. Summary of the invention

[0005] Technical issues

[0006] The present disclosure provides a method and apparatus for improving image encoding efficiency.

[0007] The present disclosure also provides a method and apparatus for deriving DPB parameters of an OLS.

[0008] Technical Solution

[0009] According to an embodiment of the present document, a method for image decoding performed by a decoding device is provided. The method includes: obtaining image information including decoded picture buffer (DPB) parameter information for an output layer set (OLS) and an OLSDPB parameter index for a target OLS; deriving DPB parameter information for a target OLS among the DPB parameter information for the OLS based on the OLSDPB parameter index; performing picture management processing on a picture of the DPB based on the DPB parameter information for the target OLS; obtaining prediction information and residual information for a block of a current picture; deriving prediction samples by performing prediction on the block based on the prediction information and the picture of the DPB; deriving residual samples of the block based on the residual information; and generating reconstructed samples of the block based on the prediction samples and the residual samples.

[0010] According to another embodiment of the present document, a decoding device for performing image decoding is provided. The decoding device includes: an entropy decoder, which is configured to obtain image information including decoded picture buffer (DPB) parameter information for an output layer set (OLS) and an OLSDPB parameter index for a target OLS, and obtain prediction information and residual information for a block of a current picture; a predictor, which is configured to derive DPB parameter information for a target OLS among the DPB parameter information for the OLS based on the OLSDPB parameter index, perform picture management processing on the picture of the DPB based on the DPB parameter information for the target OLS, and derive prediction samples by performing prediction on the block based on the prediction information and the picture of the DPB; a residual processor, which is configured to derive residual samples of the block based on the residual information; and an adder, which is configured to generate reconstructed samples of the block based on the prediction samples and the residual samples.

[0011] According to another embodiment of the present document, a video encoding method performed by an encoding device is provided. The method includes: generating decoded picture buffer (DPB) parameter information for an output layer set (OLS), including DPB parameter information of a target OLS; generating an OLSDPB parameter index for the DPB parameter information of the target OLS; performing picture management processing on the picture of the DPB based on the DPB parameter information of the target OLS; performing decoding on a block in the current picture based on the picture of the DPB; and encoding image information including the DPB parameter information for the OLS, the OLSDPB parameter index, prediction information of the block, and residual information.

[0012] According to another embodiment of the present document, a video encoding device is provided. The encoding device includes: an entropy encoder configured to generate decoded picture buffer (DPB) parameter information for an output layer set (OLS), including DPB parameter information of a target OLS, generate an OLSDPB parameter index for the DPB parameter information of the target OLS, and encode image information including the DPB parameter information for the OLS, the OLSDPB parameter index, prediction information for a block in a current picture, and residual information; a DPB configured to perform picture management processing on a picture of the DPB based on the DPB parameter information of the target OLS; and a predictor configured to perform decoding on a block in the current picture based on the picture of the DPB.

[0013] According to another embodiment of the present document, a computer-readable digital storage medium storing a bit stream including image information is provided, which enables a decoding device to perform an image decoding method. In the computer-readable storage medium, the image decoding method includes: obtaining image information including decoded picture buffer (DPB) parameter information for an output layer set (OLS) and an OLSDPB parameter index for a target OLS; deriving DPB parameter information for a target OLS among the DPB parameter information for the OLS based on the OLSDPB parameter index; performing picture management processing on a picture of the DPB based on the DPB parameter information for the target OLS; obtaining prediction information and residual information for a block of a current picture; deriving prediction samples by performing prediction on the block based on the prediction information and the picture of the DPB; deriving residual samples of the block based on the residual information; and generating reconstructed samples of the block based on the prediction samples and the residual samples.

[0014] Technical Effects

[0015] According to this document, DPB parameters for OLS can be signaled, and thus, DPB can be adaptively updated for OLS and the overall coding efficiency can be improved.

[0016] According to this document, index information indicating DPB parameters for OLS may be signaled, and thus, DPB parameters may be adaptively derived for OLS, and overall coding efficiency may be improved by updating DPB for OLS based on the derived DPB parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 An example of a video / image encoding device to which an embodiment of the present disclosure can be applied is briefly illustrated.

[0018] Figure 2 is a schematic diagram illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied.

[0019] Figure 3 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.

[0020] Figure 4 An example of a video / image encoding method based on intra-frame prediction is illustrated.

[0021] Figure 5 An example of a video / image decoding method based on intra-frame prediction is illustrated.

[0022] Figure 6 The intra prediction process is schematically shown.

[0023] Figure 7An example of a video / image encoding method based on inter-frame prediction is illustrated.

[0024] Figure 8 An example of a video / image decoding method based on inter-frame prediction is illustrated.

[0025] Fig. 9 The inter-frame prediction process is schematically illustrated.

[0026] Fig.10 The encoding process according to the embodiment of this document is exemplified.

[0027] Fig.11 The decoding process according to the embodiment of this document is exemplified.

[0028] Fig.12 The image encoding method performed by the encoding device according to the present disclosure is briefly illustrated.

[0029] Fig.13 An encoding device for performing an image encoding method according to the present disclosure is briefly illustrated.

[0030] Fig.14 The image decoding method performed by the decoding device according to the present disclosure is briefly illustrated.

[0031] Fig.15 A decoding device for performing an image decoding method according to the present disclosure is briefly illustrated.

[0032] Fig.16 A structural diagram of a content streaming system to which the present disclosure is applied is illustrated. DETAILED DESCRIPTION

[0033] The present disclosure can be modified in various forms, and its specific embodiments will be described and illustrated in the accompanying drawings. However, the embodiments are not intended to limit the present disclosure. The terms used in the following description are only used to describe specific embodiments and are not intended to limit the present disclosure. As long as it is clearly understood in different ways, the expression of the singular includes the expression of the plural. Terms such as "including" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the following description, so it should be understood that the possibility of the presence or addition of one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.

[0034] In addition, the elements in the drawings described in the present disclosure are drawn independently for the convenience of explaining different specific functions, and do not mean that these elements are specifically implemented by independent hardware or independent software. For example, two or more elements in the elements can be combined to form a single element, or an element can be divided into multiple elements. The implementation of combining and / or dividing elements belongs to the present disclosure without departing from the concept of the present disclosure.

[0035] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, throughout the accompanying drawings, like reference numerals are used to indicate like elements, and the same description of the like elements will be omitted.

[0036] Figure 1 An example of a video / image encoding device to which an embodiment of the present disclosure can be applied is briefly illustrated.

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

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

[0039] The video source can obtain the video / image by capturing, synthesizing or generating the video / image process. The video source may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive including previously captured videos / images, etc. The video / image generation device may include, for example, a computer, a tablet computer, and a smart phone, and may (electronically) generate the video / image. For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capture process may be replaced by a process that generates relevant data.

[0040] The encoding device can encode the input video / image. The encoding device can perform a series of processes such as prediction, transformation and quantization to achieve compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.

[0041] The transmitter may transmit the encoded video / image information or data output in the form of a bit stream to the receiver of the receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmitting through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.

[0042] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.

[0043] The renderer may render the decoded video / image. The rendered video / image may be displayed by a display.

[0044] The present disclosure relates to video / image coding. For example, the methods / implementations disclosed in the present disclosure may be applied to methods disclosed in Versatile Video Coding (VVC), EVC (Basic Video Coding) standard, AOMedia Video 1 (AV1) standard, 2nd generation Audio Video Coding standard (AVS2) or next generation video / image coding standard (e.g., H.267, or H.268, etc.).

[0045] The present disclosure presents various embodiments of video / image encoding, and unless otherwise mentioned, the embodiments may be performed in combination with each other.

[0046] In the present disclosure, video may refer to a series of images over time. Generally, a picture refers to a unit representing an image in a specific time region, and a sub-picture / slice / tile is a unit that constitutes a part of a picture in coding. A sub-picture / slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more sub-pictures / slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A tile may represent a rectangular area of ​​a CTU row within a tile in a picture. A tile may be partitioned into a plurality of tiles, each tile consisting of one or more CTU rows within a tile. Tiles that are not partitioned into a plurality of tiles may also be referred to as tiles. Tile scanning is a specific sequential ordering of CTUs that partition a picture, wherein CTUs are continuously ordered in tiles by CTU raster scanning, tiles within tiles are continuously ordered by raster scanning of tiles of tiles, and tiles in a picture are continuously ordered by raster scanning of tiles of tiles of a picture. In addition, a sub-picture may represent a rectangular area of ​​one or more slices within a picture. That is, a sub-picture contains one or more slices that cover a rectangular area of ​​the picture together. A patch is a rectangular area of ​​a CTU within a specific patch column and a specific patch row in a picture. A patch column is a rectangular area of ​​a CTU whose height is equal to the height of the picture and whose width is specified by a syntax element in a picture parameter set. A patch row is a rectangular area of ​​a CTU whose height is specified by a syntax element in a picture parameter set and whose width is equal to the width of the picture. Patch scanning is a specific sequential ordering of CTUs that partition a picture, wherein CTUs may be continuously ordered in a patch by a CTU raster scan, and patches in a picture may be continuously ordered by a raster scan of patches of a picture. A slice includes an integer number of tiles of a picture that may be exclusively contained in a single NAL unit. A slice may consist of a plurality of complete tiles or only of a continuous sequence of complete tiles of a patch. In the present disclosure, patch groups and slices may be used interchangeably. For example, in this disclosure, a tile group / tile group header may be referred to as a slice / slice header.

[0047] A pixel or a picture element (pel) may represent the smallest unit constituting a picture (or image). In addition, a "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component.

[0048] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of ​​a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or an area. In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients of M columns and N rows.

[0049] In this specification, "A or B" may mean "only A", "only B", or "A and B". In other words, in this specification, "A or B" may be interpreted as "A and / or B". For example, "A, B or C" herein means "only A", "only B", "only C", or "any one and any combination of A, B, and C".

[0050] A slash ( / ) or a comma used in this specification may mean "and / or". For example, "A / B" may mean "A and / or B". Thus, "A / B" may mean "only A", "only B", or "A and B". For example, "A,B,C" may mean "A, B, or C".

[0051] In the present specification, "at least one of A and B" may mean "only A", "only B", or "both A and B". In addition, in the present specification, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted as being the same as "at least one of A and B".

[0052] In addition, in the present specification, "at least one of A, B, and C" means "only A", "only B", "only C", 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" may mean "at least one of A, B, and C".

[0053] In addition, brackets used in this specification may refer to "for example". Specifically, when "prediction (intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed as an example of "prediction". In other words, "prediction" in this specification is not limited to "intra-frame prediction", and "intra-frame prediction" may be proposed as an example of "prediction". In addition, even when "prediction (i.e., intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed as an example of "prediction".

[0054] In this specification, technical features described separately in one figure may be implemented separately or may be implemented simultaneously.

[0055] The following figures are created to explain specific examples of this specification. Since the names of specific devices or the names of specific signals / messages / fields described in the figures are presented by way of example, the technical features of this specification are not limited to the specific names used in the following figures.

[0056] Figure 2 is a schematic diagram illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied. Hereinafter, a video encoding device may include an image encoding device.

[0057] Reference Figure 2 , the encoding device 200 includes an image segmenter 210, a predictor 220, a residual processor 230 and an entropy encoder 240, an adder 250, a filter 260 and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame 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 also include a subtractor 231. The adder 250 may be called a reconstructor or a reconstructed block generator. According to an embodiment, the image segmenter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250 and the filter 260 may be composed of at least one hardware component (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) or may be composed of a digital storage medium. The hardware component may also include a memory 270 as an internal / external component.

[0058] The image divider 210 may divide the input image (or picture or frame) input to the encoding device 200 into one or more processors. For example, a processor may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, a coding unit may be divided into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure may be applied first, and then a binary tree structure and / or a ternary structure may be applied. Alternatively, a binary tree structure may be applied first. The encoding process according to the present disclosure may be performed based on a final coding unit that is no longer divided. In this case, the maximum coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or if necessary, the coding unit may be recursively divided into coding units with a deeper depth and a coding unit with an optimal size may be used as the final coding unit. Here, the encoding process may include a process of prediction, transformation, and reconstruction, which will be described later. As another example, the processor may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be separated or partitioned from the above-mentioned final coding unit. The prediction unit may be a unit for sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.

[0059] In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an M×N block may represent a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, may represent a pixel / pixel value of a luminance component only, or may represent a pixel / pixel value of a chrominance component only. A sample may be used as a term corresponding to a picture (or image) of a pixel or a picture element.

[0060] In the encoding device 200, the prediction signal (prediction block, prediction sample array) output from the inter-frame predictor 221 or the intra-frame predictor 222 is subtracted from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array) and the generated residual signal is sent to the transformer 232. In this case, as shown in the figure, the unit for subtracting the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoding device 200 can be called a subtractor 231. The predictor can perform prediction on the block to be processed (hereinafter referred to as the current block) and generate a prediction block including the prediction sample of the current block. The predictor can determine whether to apply intra-frame prediction or inter-frame prediction in units of the current block or CU. As described later in the description of each prediction mode, the predictor can generate various information related to the prediction (such as prediction mode information) and send the generated information to the entropy encoder 240. The information about the prediction can be encoded in the entropy encoder 240 and output in the form of a bit stream.

[0061] The intra-frame predictor 222 can predict the current block by referring to the samples in the current picture. Depending on the prediction mode, the referenced samples can be located near the current block, or can be far away from the current block. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. The non-directional mode may include, for example, a DC mode and a plane mode. Depending on the level of detail of the prediction direction, the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes. However, this is only an example, and more or fewer directional prediction modes may be used depending on the setting. The intra-frame predictor 222 may determine the prediction mode applied to the current block by using the prediction mode applied to the adjacent blocks.

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

[0063] The predictor 220 can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply both intra prediction and inter prediction at the same time. This can be called inter-frame intra-frame combined prediction (CIIP). In addition, the predictor can predict the block based on an intra-frame block copy (IBC) prediction mode or a palette mode. The IBC prediction mode or the palette mode can be used for content image / video encoding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but IBC can be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter prediction techniques described in the present disclosure. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample value within the picture can be signaled based on information about the palette table and the palette index.

[0064] The prediction signal generated by the predictor (including the inter-frame predictor 221 and / or the intra-frame predictor 222) can be used to generate a reconstruction signal or to generate a residual signal. The transformer 232 can generate a transform coefficient by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a karhunen-loève transform (KLT), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, GBT represents a transform obtained from a graph when the relationship information between pixels is represented by a graph. CNT refers to a transform generated based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process can be applied to square pixel blocks of the same size, or can be applied to blocks of variable size rather than square.

[0065] The quantizer 233 may quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. Information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the block type quantized transform coefficients into a one-dimensional vector form based on the coefficient scanning order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about the transform coefficients may be generated. The entropy encoder 240 may perform various encoding methods, such as, for example, exponential Golomb, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), etc. The entropy encoder 240 may encode information required for video / image reconstruction (e.g., values ​​of syntax elements, etc.) other than the quantized transform coefficients together or separately. Encoded information (e.g., encoded video / image information) may be transmitted or stored in units of NAL (network abstraction layer) in the form of a bitstream. The video / image information may also include information about various parameter sets such as an adaptive 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 also include general constraint information. In the present disclosure, information and / or syntax elements sent / signaled from an encoding device to a decoding device may be included in the video / picture information. The video / image information may be encoded and included in a bitstream through the above-mentioned encoding process. The bitstream may be sent through a network, or may be stored in a digital storage medium. 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. A transmitter (not shown) for sending a signal output from the entropy encoder 240 and / or a storage unit (not shown) for storing the signal may be included as an internal / external element of the encoding device 200, alternatively, the transmitter may be included in the entropy encoder 240.

[0066] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, the residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transformation to the quantized transform coefficients using the dequantizer 234 and the inverse transformer 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the inter-frame predictor 221 or the intra-frame predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If the block to be processed has no residual (such as the case where the skip mode is applied), the prediction block can be used as a reconstructed block. The adder 250 can be called a reconstructor or a reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can be used for inter-frame prediction of the next picture by filtering as described below.

[0067] Furthermore, during picture encoding and / or reconstruction, luma mapping and chroma scaling (LMCS) may be applied.

[0068] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various information related to filtering, and send the generated information to the entropy encoder 240, as described later in the description of various filtering methods. The information related to filtering can be encoded by the entropy encoder 240 and output in the form of a bit stream.

[0069] The modified reconstructed picture sent to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied by the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided, and encoding efficiency may be improved.

[0070] The DPB of the memory 270 may store a modified reconstructed picture used as a reference picture in the inter-frame predictor 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 reconstructed block in the picture. The stored motion information may be sent to the inter-frame predictor 221 and 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 a reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame predictor 222.

[0071] Figure 3 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.

[0072] Reference Figure 3 , the decoding device 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be composed of hardware components (e.g., a decoder chipset or a processor). In addition, the memory 360 may include a decoded picture buffer (DPB), or may be composed of a digital storage medium. The hardware component may also include a memory 360 as an internal / external component.

[0073] When a bit stream including video / image information is input, the decoding device 300 can be used with Figure 2 The image is reconstructed correspondingly to the processing of the video / image information in the encoding device. For example, the decoding device 300 can derive the unit / block based on the block segmentation related information obtained from the bit stream. The decoding device 300 can perform decoding using a processor applied in the encoding device. Therefore, the decoding processor can be, for example, a coding unit, and the coding unit can be segmented from the coding tree unit or the maximum coding unit according to a quadtree structure, a binary tree structure and / or a ternary tree structure. One or more transform units can be derived from the coding unit. The reconstructed image signal decoded and output by the decoding device 300 can be reproduced by a reproduction device.

[0074] The decoding device 300 may receive the bit stream from Figure 2The signal output by the encoding device of the present invention can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive the information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets such as an adaptive 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 also include general constraint information. The decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or syntax elements described later in this disclosure may be decoded by a decoding process and obtained from the bitstream. For example, the entropy decoder 310 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and outputs the syntax elements required for image reconstruction and the quantized values ​​of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element in the bitstream, use the decoding target syntax element information, the decoding information of the decoding target block, or the information of the symbol / bin decoded in the previous stage to determine the context model, and arithmetically decode the bin by predicting the probability of occurrence of the bin according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using the decoded symbol / bin information for the context model of the next symbol / bin. Information related to prediction among the information decoded by the entropy decoder 310 can be provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value (that is, quantized transform coefficients and related parameter information) for which entropy decoding is performed in the entropy decoder 310 can be input to the residual processor 320. The residual processor 320 can derive a residual signal (residual block, residual sample, residual sample array). In addition, information about filtering among the information decoded by the entropy decoder 310 can be provided to the filter 350. In addition, a receiver (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiver may be a component of the entropy decoder 310. In addition, the decoding device according to the present disclosure may be referred to as a video / image / picture decoding device, and the decoding device may be classified 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 decoder 310, and the sample decoder may include at least one of the dequantizer 321, the inverse transformer 322, the adder 340, the filter 350, the memory 360, the inter-frame predictor 332, and the intra-frame predictor 331.

[0075] The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding device. The dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.

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

[0077] The predictor may perform prediction on the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block based on information on prediction output from the entropy decoder 310, and may determine a specific intra / inter prediction mode.

[0078] The predictor can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. This can be called inter-frame intra combined prediction (CIIP). In addition, the predictor can predict the block based on the intra block copy (IBC) prediction mode or the palette mode. The IBC prediction mode or the palette mode can be used for content image / video encoding of games, etc., for example, screen content coding (SCC). IBC basically performs prediction in the current picture, but IBC can be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter prediction techniques described in the present disclosure. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample value within the picture can be signaled based on information about the palette table and the palette index.

[0079] The intra-frame predictor 331 can predict the current block by referring to samples in the current picture. Depending on the prediction mode, the referenced sample can be located near the current block, or can be far away from the current block. In intra-frame prediction, the prediction mode can include multiple non-directional modes and multiple directional modes. The intra-frame predictor 331 can determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.

[0080] The inter-frame predictor 332 may derive a prediction block of the 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 sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on the adjacent blocks, and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating a mode of inter-frame prediction for the current block.

[0081] The adder 340 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331). If the block to be processed has no residual (for example, when the skip mode is applied), the prediction block can be used as the reconstructed block.

[0082] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra-frame prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter-frame prediction of the next picture.

[0083] In addition, luma mapping and chroma scaling (LMCS) can be applied during picture decoding.

[0084] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 360 (specifically, the DPB of the memory 360). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0085] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the reconstructed block in the picture. The stored motion information can be sent to the inter-frame predictor 332 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 can store the reconstructed samples of the reconstructed block in the current picture, and can transmit the reconstructed samples to the intra-frame predictor 331.

[0086] In the present disclosure, the embodiments described in the filter 260, the inter-frame predictor 221, and the intra-frame predictor 222 of the encoding device 200 may be the same as the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300 or may be respectively applied to correspond to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300. The same contents may also be applied to the inter-frame predictor 332 and the intra-frame predictor 331.

[0087] In the present disclosure, at least one of quantization / inverse quantization and / or transform / inverse transform may be omitted. When quantization / inverse quantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. When transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient, or may still be referred to as a transform coefficient for the sake of uniformity of expression.

[0088] In the present disclosure, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by a residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by inversely transforming (scaling) the transform coefficient. The residual sample may be derived based on inversely transforming (transforming) the scaled transform coefficient. This may also be applied / expressed in other parts of the present disclosure.

[0089] In addition, as described above, when performing video encoding, prediction is performed to improve compression efficiency. In this way, a prediction block including a prediction sample of a current block can be generated as a block to be encoded (i.e., an encoding target block). Here, the prediction block includes prediction samples in a spatial domain (or a pixel domain). The prediction block is derived in the same manner in the encoding device and the decoding device, and the encoding device can signal information about the residual between the original block and the prediction block (residual information) to the decoding device instead of the original sample value of the original block, thereby improving image coding efficiency. The decoding device can derive a residual block including residual samples based on the residual information, add the residual block and the prediction block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.

[0090] The residual information may be generated by a transformation and quantization process. For example, the encoding device may derive a residual block between the original block and the prediction block, may perform a transformation process on the residual samples (residual sample array) included in the residual block to derive the transformation coefficients, may perform a quantization process on the transformation coefficients to derive the quantized transformation coefficients, and may signal the relevant residual information (through a bitstream) to the decoding device. Here, the residual information may include value information, position information, transformation technology, transformation core, and value information of quantization parameters, etc. of the quantized transformation coefficients. The decoding device may perform a dequantization / inverse transformation process based on the residual information and derive residual samples (or residual blocks). The decoding device may generate a reconstructed picture based on the prediction block and the residual block. In addition, for reference to inter-frame prediction of a reference picture later, the encoding device may dequantize / inverse transform the quantized transformation coefficients to derive the residual block, and generate a reconstructed picture based on this.

[0091] Intra-frame prediction may refer to generating a prediction of a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter referred to as the current picture). When intra-frame prediction is applied to the current block, the neighboring reference samples to be used for intra-frame prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nW×nH and a total of 2×nH samples adjacent to the lower left of the current block, samples adjacent to the upper boundary of the current block and a total of 2×nW samples adjacent to the upper right, and samples adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the lower boundary of the current block, and samples adjacent to the lower right of the current block.

[0092] However, some neighboring reference samples of the current block have not been decoded or may not be available. In this case, the decoder can construct neighboring reference samples to be used for prediction by replacing unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction can be configured by interpolation of available samples.

[0093] When deriving the neighboring reference samples, (i) the prediction samples may be derived based on an average or interpolation of the neighboring reference samples of the current block, or (ii) the prediction samples may be derived based on reference samples present in a specific (prediction) direction relative to the prediction samples in the neighboring reference samples of the current block. Case (i) may be referred to as a non-directional mode or a non-angular mode, and case (ii) may be referred to as a directional mode or an angular mode.

[0094] In addition, the prediction sample can be generated by interpolating the first neighboring sample located in the prediction direction of the intra prediction mode of the current block based on the prediction sample of the current block among the adjacent reference samples and the second neighboring sample located in the direction opposite to the prediction direction. The above situation can be called linear interpolation intra prediction (LIP). In addition, a linear model (LM) can be used to generate chroma prediction samples based on luma samples. This situation can be called LM mode or chroma component LM (CCLM) mode.

[0095] In addition, the temporary prediction sample of the current block is derived based on the filtered adjacent reference sample, and the prediction sample of the current block can also be derived by weighted summing the temporary prediction sample with at least one reference sample derived according to the intra prediction mode in the existing adjacent reference sample (i.e., the unfiltered adjacent reference sample). The above situation can be called position-dependent intra prediction (PDPC).

[0096] In addition, a reference sample line with the highest prediction accuracy among multiple adjacent reference sample lines of the current block is selected, and a prediction sample is derived using a reference sample located in the prediction direction in the selected line. In this case, intra-frame prediction coding can be performed by indicating (signaling) the reference sample line used to the decoding device. The above situation can be referred to as multi-reference line intra-frame prediction or MRL-based intra-frame prediction.

[0097] In addition, the current block is divided into vertical sub-partitions or horizontal sub-partitions and performs intra prediction based on the same intra prediction mode, but adjacent reference samples can be derived and used in units of sub-partitions. That is, in this case, the intra prediction mode of the current block is also applicable to the sub-partitions, but in some cases, the intra prediction performance can be improved by deriving and using adjacent reference samples in units of sub-partitions. This prediction method can be called intra prediction based on intra sub-partition (ISP).

[0098] The above-mentioned intra-frame prediction method may be referred to as an intra-frame prediction type to distinguish it from an intra-frame prediction mode. The intra-frame prediction type may be referred to by various terms, such as an intra-frame prediction technique or an additional intra-frame prediction mode. For example, the intra-frame prediction type (or additional intra-frame prediction mode, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL, and ISP. A general intra-frame prediction method excluding specific intra-frame prediction types such as LIP, PDPC, MRL, and ISP may be referred to as a normal intra-frame prediction type. When the above-mentioned specific intra-frame prediction type is not applied, a normal intra-frame prediction type may generally be applied, and prediction may be performed based on the above-mentioned intra-frame prediction mode. In addition, if necessary, post-processing filtering may be performed on the derived prediction samples.

[0099] Specifically, the intra prediction process may include an intra prediction mode / type determination step, an adjacent reference sample derivation step, and a prediction sample derivation step based on the intra prediction mode / type. In addition, if necessary, a post-filtering step may be performed on the derived prediction samples.

[0100] Figure 4 An example of a video / image encoding method based on intra-frame prediction is illustrated.

[0101] Reference Figure 4 , the encoding device performs intra prediction on the current block (S400). The encoding device derives the intra prediction mode / type of the current block, derives the adjacent reference samples of the current block, and generates prediction samples in the current block based on the intra prediction mode / type and the adjacent reference samples. Here, the intra prediction mode / type determination process, the adjacent reference sample derivation process, and the prediction sample generation process can be performed simultaneously, or one process can be performed before the other. The encoding device can determine the mode / type applied to the current block from multiple intra prediction modes / types. The encoding device can compare the RD costs of the intra prediction modes / types and determine the optimal intra prediction mode / type for the current block.

[0102] In addition, the encoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post-filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.

[0103] The encoding apparatus generates residual samples of the current block based on the (filtered) prediction samples (S410). The encoding apparatus may compare the prediction samples among the original samples of the current block based on the phase and derive the residual samples.

[0104] The encoding device may encode image information including information about intra prediction (prediction information) and residual information about residual samples (S420). The prediction information may include intra prediction mode information and intra prediction type information. The encoding device may output the encoded image information in the form of a bit stream. The output bit stream may be sent to a decoding device via a storage medium or a network.

[0105] The residual information may include a residual encoding syntax described later. The encoding device may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.

[0106] In addition, as described above, the encoding device can generate a reconstructed picture (including reconstructed samples and reconstructed blocks). To this end, the encoding device can derive (modified) residual samples by performing inverse quantization / inverse transformation on the quantized transform coefficients again. The reason for performing inverse quantization / inverse transformation again after transforming / quantizing the residual samples in this way is to derive the same residual samples as the residual samples derived in the above-mentioned decoding device. The encoding device can generate a reconstructed block including reconstructed samples for the current block based on the predicted samples and the (modified) residual samples. A reconstructed picture for the current picture can be generated based on the reconstructed block. As described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0107] Figure 5 An example of a video / image decoding method based on intra-frame prediction is illustrated.

[0108] The decoding device may perform operations corresponding to those performed by the encoding device.

[0109] Prediction information and residual information may be obtained from a bitstream. Residual samples of a current block may be derived based on the residual information. Specifically, transform coefficients may be derived by performing inverse quantization based on quantized transform coefficients derived from the residual information, and residual samples of the current block may be derived by performing inverse transformation on the transform coefficients.

[0110] Specifically, the decoding device may derive the intra prediction mode / type of the current block based on the received prediction information (intra prediction mode / type information) (S500). The decoding device may derive the adjacent reference samples of the current block (S510). The decoding device generates the prediction samples in the current block based on the intra prediction mode / type and the adjacent reference samples (S520). In this case, the decoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.

[0111] The decoding device generates residual samples for the current block based on the received residual information (S530). The decoding device can generate reconstructed samples of the current block based on the predicted samples and the residual samples, and can derive a reconstructed block including the reconstructed samples (S540). A reconstructed picture of the current picture can be generated based on the reconstructed block. As described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0112] The intra-frame prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether MPM (most probable mode) is applied to the current block or whether the residual mode is applied, and when MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra-frame prediction mode candidates (MPM candidates). The intra-frame prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when MPM is not applied to the current block, the intra-frame prediction mode information includes residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra-frame prediction modes other than the intra-frame prediction mode candidates (MPM candidates). The decoding device may determine the intra-frame prediction mode of the current block based on the intra-frame prediction mode information.

[0113] In addition, the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include reference sample line information (e.g., intra_luma_ref_idx) indicating whether MRL is applied to the current block and, if applied, which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating the split type of the sub-partition when ISP is applied, flag information indicating whether PDPC is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include a MIP flag indicating whether matrix-based intra prediction (MIP) is applied to the current block.

[0114] The intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by the encoding method described in the present disclosure. For example, the intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by entropy coding (e.g., CABAC, CAVLC).

[0115] Figure 6 The intra prediction process is schematically shown.

[0116] Reference Figure 6As described above, the intra prediction process may include a step of determining an intra prediction mode / type, a step of deriving adjacent reference samples, and a step of performing intra prediction (generating prediction samples). The intra prediction process may be performed by the encoding device and the decoding device as described above. In the present disclosure, the encoding device may include an encoding device and / or a decoding device.

[0117] Reference Figure 6 , the encoding device determines the intra-frame prediction mode / type S600.

[0118] The encoding device may determine the intra-frame prediction mode / type applied to the current block from the above-mentioned various intra-frame prediction modes / types, and may generate prediction related information. The prediction related information may include intra-frame prediction mode information indicating the intra-frame prediction mode applied to the current block and / or intra-frame prediction type information indicating the intra-frame prediction type applied to the current block. The decoding device may determine the intra-frame prediction mode / type applied to the current block based on the prediction related information.

[0119] The intra-frame prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether the most probable mode (MPM) is applied to the current block or the residual mode is applied, and when the MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra-frame prediction mode candidates (MPM candidates). The intra-frame prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the intra-frame prediction mode information may further include residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra-frame prediction modes other than the intra-frame prediction mode candidates (MPM candidates). The decoding device may determine the intra-frame prediction mode of the current block based on the intra-frame prediction mode information.

[0120] In addition, the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include reference sample line information indicating whether MRL is applied to the current block and, if applied, which reference sample line is used (e.g., intra_luma_ref_idx), ISP flag information indicating whether ISP is applied to the current block (e.g., intra_subpartitions_mode_flag), ISP type information indicating the split type of the sub-partition when ISP is applied (e.g., intra_subpartitions_split_flag), flag information indicating whether PDPC is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include a MIP flag indicating whether matrix-based intra prediction (MIP) is applied to the current block.

[0121] For example, when intra prediction is applied, the intra prediction mode of the neighboring blocks may be used to determine the intra prediction mode applied to the current block. For example, the encoding device may select one of the most likely mode (MPM) candidates in the MPM list derived based on the intra prediction mode of the additional candidate mode and / or the neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block or select one of the remaining intra prediction modes not included in the MPM candidates (and the plane mode) based on the MPM residual information (remaining intra prediction mode information). The MPM list may be configured to include or exclude the plane mode as a candidate. For example, when the MPM list includes the plane mode as a candidate, the MPM list may have 6 candidates, and when the MPM list does not include the plane mode as a candidate, the MPM list may have 5 candidates. When the MPM list does not include the plane mode as a candidate, a non-planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a plane mode may be signaled. For example, the MPM flag may be signaled first, and when the value of the MPM flag is 1, the MPM index and the non-planar flag may be signaled. In addition, when the value of the non-planar flag is 1, the MPM index may be signaled. Here, the fact that the MPM list is configured not to include the planar mode as a candidate is that the planar mode is always considered to be the MPM rather than considering that the planar mode is not the MPM, and therefore, the flag (non-planar flag) is signaled first to check whether it is the planar mode.

[0122] For example, it can be indicated based on an MPM flag (e.g., intra_luma_mpm_flag) whether the intra prediction mode applied to the current block is among the MPM candidates (and planar mode) or among the remaining modes. An MPM flag with a value of 1 can indicate that the intra prediction mode of the current block is within the MPM candidates (and planar mode), while an MPM flag with a value of 0 can indicate that the intra prediction mode of the current block is not within the MPM candidates (and planar mode). A non-planar flag with a value of 0 (e.g., intra_luma_not_planar_flag) can indicate that the intra prediction mode of the current block is a planar mode, and a non-planar flag with a value of 1 can indicate that the intra prediction mode of the current block is not a planar mode. The MPM index can be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information can be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may indicate one of the remaining intra prediction modes that is not included in the MPM candidates (and planar mode) among all intra prediction modes by indexing in order of the prediction mode number. The intra prediction mode may be an intra prediction mode of a luminance component (sample). Hereinafter, the intra prediction mode information may include at least one of an MPM flag (e.g., intra_luma_mpm_flag), a non-planar flag (e.g., intra_luma_not_planar_flag), an MPM index (e.g., mpm_idx or intra_luma_mpm_idx), or the remaining intra prediction mode information (rem_intra_luma_luma_mpm_mode or intra_luma_mpminder). In the present disclosure, the MPM list may be referred to by a variety of terms, such as an MPM candidate list and candModeList.

[0123] When a MIP is applied to a current block, a separate mpm flag (eg, intra_mip_mpm_flag), an mpm index (eg, intra_mip_mpm_idx), and remaining intra prediction mode information (eg, intra_mip_mpm_remainder) for the MIP may be signaled, and a non-planar flag may not be signaled.

[0124] In other words, in general, when performing block segmentation of an image, the current block to be encoded and the adjacent blocks have similar image characteristics. Therefore, there is a high probability that the current block and the adjacent blocks have the same or similar intra-frame prediction mode. Therefore, the encoder can use the intra-frame prediction mode of the adjacent block to encode the intra-frame prediction mode of the current block.

[0125] The encoding device may construct a most probable mode (MPM) list for the current block. The MPM list may be referred to as an MPM candidate list. Here, MPM may refer to a mode for improving coding efficiency by considering the similarity between the current block and the adjacent blocks during intra-frame prediction mode encoding. As described above, the MPM list may be constructed to include a plane mode, or may be constructed to exclude a plane mode. For example, when the MPM list includes a plane mode, the number of candidates in the MPM list may be 6. And when the MPM list does not include a plane mode, the number of candidates in the MPM list may be 5.

[0126] The encoding device may perform prediction based on various intra prediction modes, and may determine the optimal intra prediction mode based on rate distortion optimization (RDO) therefrom. In this case, the encoding device may determine the optimal intra prediction mode by using only the MPM candidates and the plane mode configured in the MPM list, or by further using the remaining intra prediction modes and the MPM candidates and the plane mode configured in the MPM list. Specifically, for example, if the intra prediction type of the current block is a specific type other than the normal intra prediction type (e.g., LIP, MRL, or ISP), the encoding device may determine the optimal intra prediction mode by considering only the MPM candidates and the plane mode as intra prediction mode candidates for the current block. That is, in this case, the intra prediction mode of the current block may be determined only from the MPM candidates and the plane mode, and in this case, encoding / signaling of the mpm flag may not be performed. In this case, the decoding device may infer that the mpm flag is 1 without separately signaling the mpm flag.

[0127] In addition, generally, when the intra prediction mode of the current block is not a plane mode but one of the MPM candidates in the MPM list, the encoding device generates an mpm index (mpmidx) indicating one of the MPM candidates. When the intra prediction mode of the current block is not included in the MPM list, the encoding device generates MPM residual information (remaining intra prediction mode information) indicating the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and the plane mode). The MPM residual information may include, for example, an intra_luma_mpm_remainder syntax element.

[0128] The decoding device obtains intra-frame prediction mode information from the bitstream. As described above, the intra-frame prediction mode information may include at least one of an MPM flag, a non-plane flag, an MPM index, and MPM residual information (residual intra-frame prediction mode information). The decoding device may construct an MPM list. The construction of the MPM list is the same as the MPM list constructed in the encoding device. That is, the MPM list may include intra-frame prediction modes of adjacent blocks, or may further include a specific intra-frame prediction mode according to a predetermined method.

[0129] The decoding device can determine the intra prediction mode of the current block based on the MPM list and the intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding device can derive the plane mode as the intra prediction mode of the current block (based on the non-plane flag), or derive the candidate indicated by the MPM index among the MPM candidates in the MPM list as the intra prediction mode of the current block. Here, the MPM candidate may only represent the candidates included in the MPM list, or may include not only the candidates included in the MPM list, but also the plane mode applicable when the value of the MPM flag is 1.

[0130] For another example, when the value of the MPM flag is 0, the decoding device may derive the intra prediction mode indicated by the remaining intra prediction mode information (which may be referred to as mpm remaining information) among the remaining intra prediction modes not included in the MPM list and the plane mode as the intra prediction mode of the current block. In addition, as another example, when the intra prediction type of the current block is a specific type (such as LIP, MRL, or ISP, etc.), the decoding device may derive the candidate indicated by the MPM flag in the plane mode or the MPM list as the intra prediction mode of the current block without parsing / decoding / checking the MPM flag.

[0131] The encoding device derives neighboring reference samples of the current block (S610). When intra prediction is applied to the current block, neighboring reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nW×nH and a total of 2×nH samples adjacent to the lower left of the current block, samples adjacent to the upper boundary of the current block and a total of 2×nW samples adjacent to the upper right, and samples adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the lower boundary of the current block, and samples adjacent to the lower right of the current block.

[0132] On the other hand, when MRL is applied (ie, when the value of the MRL index is greater than 0), the neighboring reference sample may be located on line 1 to 2 instead of line 0 adjacent to the current block on the left / upper side, and in this case, the number of neighboring reference samples can be further increased. In addition, when ISP is applied, the neighboring reference sample can be derived in units of sub-partitions.

[0133] The encoding device derives a prediction sample by performing intra prediction on the current block (S620). The encoding device may derive the prediction sample based on the intra prediction mode / type and the adjacent samples. The encoding device may derive the reference sample according to the intra prediction mode of the current block among the adjacent reference samples of the current block, and may derive the prediction sample of the current block based on the reference sample.

[0134] In addition, when inter-frame prediction is applied, the predictor of the encoding device / decoding device can derive prediction samples by performing inter-frame prediction in units of blocks. When prediction is performed on the current block, inter-frame prediction can be applied. That is, the predictor of the encoding / decoding device (more specifically, the inter-frame predictor) can derive prediction samples by performing inter-frame prediction in units of blocks. Inter-frame prediction can represent a prediction derived by a method that depends on data elements (e.g., sample values ​​or motion information) of (one or more) pictures other than the current picture. When inter-frame prediction is applied to the current block, a prediction block (prediction sample array) for the current block can be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information of the current block can be predicted in units of blocks, sub-blocks or samples based on the correlation of motion information between adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of applying inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks 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 as or different from each other. The temporal neighboring block may be referred to as a name such as a collocated reference block, a collocated CU (ColCU), etc., and the reference picture including the temporal neighboring block may be referred to as a collocated picture (ColPic). For example, a motion information candidate list may be configured based on the neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) may be signaled to derive the motion vector and / or reference picture index of the current block. Inter-frame prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of the skip mode, unlike the merge mode, a residual signal may not be sent. In the case of a motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and the motion vector difference may be signaled. In this case, the motion vector of the current block may be derived by using the sum of the motion vector predictor and the motion vector difference.

[0135] According to the inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.), the motion information may further include L0 motion information and / or L1 motion information. The L0 direction motion vector may be referred to as the L0 motion vector or MVL0, and the L1 direction motion vector may be referred to as the L1 motion vector or MVL1. Prediction based on the L0 motion vector may be referred to as the L0 prediction, prediction based on the L1 motion vector may be referred to as the L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as bi-prediction. Here, the L0 motion vector may indicate a motion vector associated with the reference picture list L0, and the L1 motion vector may indicate a motion vector associated with the reference picture list L1. The reference picture list L0 may include a picture before the current picture in output order, and the reference picture list L1 may include a picture after the current picture in output order as a reference picture. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference) picture. The reference picture list L0 may further include a picture after the current picture in output order as a reference picture. In this case, the previous picture may be indexed first in the reference picture list L0, and then the subsequent picture may be indexed. The reference picture list L1 may further include a picture preceding the current picture in the output order as a reference picture. In this case, the subsequent picture may be indexed first in the reference picture list L1, and then the previous picture may be indexed. Here, the output order may correspond to a picture sequence count (POC) order.

[0136] The video / image encoding process based on inter-frame prediction may schematically include, for example, the following contents.

[0137] Figure 7 An example of a video / image encoding method based on inter-frame prediction is illustrated.

[0138] The encoding device performs inter prediction on the current block (S700). The encoding device may derive the inter prediction mode and motion information of the current block, and generate a prediction sample of the current block. Here, the inter prediction mode determination process, the motion information derivation process, and the prediction sample generation process may be performed simultaneously, and any one process may be performed earlier than the other processes. For example, the inter prediction unit of the encoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and the prediction mode determination unit may determine the prediction mode of the current block, the motion information derivation unit may derive the motion information of the current block, and the prediction sample derivation unit may derive the prediction sample of the current block. For example, the inter prediction unit of the encoding device may search for a block similar to the current block in a predetermined area (search area) of the reference picture through motion estimation, and derive a reference block with the smallest difference from the current block or equal to or less than a predetermined standard. A reference picture index indicating the reference picture where the reference block is located may be derived based on this, and a motion vector may be derived based on the position difference between the reference block and the current block. The encoding device may determine the mode applied to the current block among various prediction modes. The encoding apparatus may compare RD costs of various prediction modes and determine an optimal prediction mode for the current block.

[0139] For example, when the skip mode or merge mode is applied to the current block, the encoding device may configure a merge candidate list to be described below, and derive a reference block whose difference with the current block is the smallest or equal to or less than a predetermined standard among the reference blocks indicated by the merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. The motion information of the current block may be derived by using the motion information of the selected merge candidate.

[0140] As another example, when the (A)MVP mode is applied to the current block, the encoding device may configure the (A)MVP candidate list to be described below, and use the motion vector of the selected MVP candidate among the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, the motion vector indicating the reference block derived by motion estimation may be used as the motion vector of the current block, and the MVP candidate having the motion vector with the minimum difference from the motion vector of the current block among the MVP candidates may become the selected MVP candidate. A motion vector difference (MVD) may be derived, which is the difference obtained by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD may be signaled to the decoding device. In addition, when the (A)MVP mode is applied, the value of the reference picture index may be configured as reference picture index information and signaled to the decoding device separately.

[0141] The encoding apparatus may induce residual samples based on the prediction samples (S710). The encoding apparatus may induce residual samples by comparing original samples and prediction samples of the current block.

[0142] The encoding device encodes the image information including prediction information and residual information (S720). The encoding device can output the encoded image information in the form of a bitstream. The prediction information may include information about prediction mode information (e.g., a skip flag, a merge flag, or a mode index, etc.) and information about motion information as information related to the prediction process. The information about the motion information may include candidate selection information (e.g., a merge index, an mvp flag, or an mvp index), which is information for deriving a motion vector. In addition, the information about the motion information may include information about the MVD and / or reference picture index information. In addition, the information about the motion information may include information indicating whether L0 prediction, L1 prediction, or dual prediction is applied. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficients used for the residual sample.

[0143] The output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or transmitted to a decoding device via a network.

[0144] In addition, as described above, the encoding device can generate a reconstructed picture (including a reconstructed sample and a reconstructed block) based on the reference sample and the residual sample. This is to derive a prediction result that is the same as the prediction result performed by the decoding device, and as a result, the coding efficiency can be increased. Therefore, the encoding device can store the reconstructed picture (or reconstructed sample or reconstructed block) in a memory and use the reconstructed picture as a reference picture. As described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0145] The video / image decoding process based on inter-frame prediction may schematically include, for example, the following contents.

[0146] Figure 8 An example of a video / image decoding method based on inter-frame prediction is illustrated.

[0147] Reference Figure 8 The decoding device may perform an operation corresponding to the operation performed by the encoding device. The decoding device may perform prediction on the current block based on the received prediction information and derive a prediction sample.

[0148] Specifically, the decoding device may determine a prediction mode of the current block based on the received prediction information (S800). The decoding device may determine which inter prediction mode to apply to the current block based on prediction mode information in the prediction information.

[0149] For example, it may be determined whether to apply the merge mode or (A)MVP mode to the current block based on the merge flag. Alternatively, one of various inter-prediction mode candidates may be selected based on the mode index. The inter-prediction mode candidate may include a skip mode, a merge mode, and / or an (A)MVP mode, or may include various inter-prediction modes described below.

[0150] The decoding device derives motion information of the current block based on the determined inter-frame prediction mode (S810). For example, when the skip mode or merge mode is applied to the current block, the decoding device may configure a merge candidate list to be described below, and select a merge candidate from among the merge candidates included in the merge candidate list. Here, the selection may be performed based on the selection information (merge index). The motion information of the current block may be derived by using the motion information of the selected merge candidate. The motion information of the selected merge candidate may be used as the motion information of the current block.

[0151] As another example, when the (A)MVP mode is applied to the current block, the decoding device may configure the (A)MVP candidate list to be described below, and use the motion vector of the selected MVP candidate among the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. Here, the selection may be performed based on the selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on the information about the MVD, and the motion vector of the current block may be derived based on the MVP and MVD of the current block. In addition, the reference picture index of the current block may be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list of the current block may be derived as the reference picture referenced by the inter-frame prediction of the current block.

[0152] In addition, as described below, the motion information of the current block can be derived without the candidate list configuration, and in this case, the motion information of the current block can be derived according to the process disclosed in the prediction mode. In this case, the candidate list configuration can be omitted.

[0153] The decoding device may generate a prediction sample for the current block based on the motion information of the current block (S820). In this case, a reference picture may be derived based on a reference picture index of the current block, and a prediction sample of the current block may be derived by using a sample of the reference block indicated by a motion vector of the current block on the reference picture. In this case, in some cases, a prediction sample filtering process for all or some prediction samples of the current block may be further performed.

[0154] For example, the inter-frame prediction unit of the decoding device may include a prediction mode determination unit, a motion information derivation unit and a prediction sample derivation unit, and the prediction mode determination unit may determine the prediction mode of the current block based on the received prediction mode information, the motion information derivation unit may derive the motion information (motion vector and / or reference picture index) of the current block based on the information about the received motion information, and the prediction sample derivation unit may derive the prediction sample of the current block.

[0155] The decoding device generates a residual sample of the current block based on the received residual information (S830). The decoding device can generate a reconstructed sample of the current block based on the predicted sample and the residual sample, and generate a reconstructed picture based on the generated reconstructed sample (S840). Thereafter, as described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0156] Fig. 9 The inter-frame prediction process is schematically illustrated.

[0157] Reference Fig. 9 As described above, the inter-frame prediction process may include an inter-frame prediction mode determination step, a motion information derivation step according to the determined prediction mode, and a prediction processing (prediction sample generation) step based on the derived motion information. The inter-frame prediction process may be performed by the encoding device and the decoding device as described above. In this article, the encoding device may include an encoding device and / or a decoding device.

[0158] Reference Fig. 9 , the encoding device determines the inter prediction mode of the current block (S900). Various inter prediction modes can be used for the prediction of the current block in the picture. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, merge with MVD (MMVD) mode and historical motion vector prediction (HMVP) mode can be used. Decoder-side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, dual prediction with CU-level weights (BCW) and bidirectional optical flow (BDOF) can be further used as additional modes. Affine mode can also be referred to as affine motion prediction mode. MVP mode can also be referred to as advanced motion vector prediction (AMVP) mode. In this article, some modes and / or motion information candidates derived from some modes can also be included in one of the motion information related candidates in other modes. For example, HMVP candidates can be added to the merge candidates of merge / skip mode, or to the MVP candidates of MVP mode. If the HMVP candidate is used as a motion information candidate for a merge mode or a skip mode, the HMVP candidate may be referred to as an HMVP merge candidate.

[0159] Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device. In this case, the prediction mode information may be included in the bitstream and received by the decoding device. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated by hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, whether the skip mode is applied may be indicated by signaling a skip flag, and when the skip mode is not applied, whether the merge mode is applied may be indicated by signaling a merge flag, and when the merge mode is not applied, the MVP mode may be indicated to be applied or a flag for additional distinction may be further signaled. The affine mode may be signaled as an independent mode, or signaled as a subordinate mode with respect to the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.

[0160] The encoding apparatus derives motion information of a current block (S910). The motion information may be derived based on an inter prediction mode.

[0161] The encoding device may use the motion information of the current block to perform inter-frame prediction. The encoding device may derive the optimal motion information of the current block through a motion estimation process. For example, the encoding device may search for a similar reference block with high correlation in units of fractional pixels within a predetermined search range in a reference picture by using the original block in the original picture of the current block, and derive motion information through the searched reference block. The similarity of the blocks may be derived based on the difference in sample values ​​based on the phase. For example, the similarity of the blocks may be calculated based on the sum of absolute differences (SAD) between the current block (or the template of the current block) and the reference block (or the template of the reference block). In this case, the motion information may be derived based on the reference block with the minimum SAD in the search area. The derived motion information may be signaled to the decoding device according to various methods based on the inter-frame prediction mode.

[0162] The encoding device performs inter prediction based on the motion information of the current block (S920). The encoding device may derive (one or more) prediction samples of the current block based on the motion information. The current block including the prediction samples may be referred to as a prediction block.

[0163] In addition, the above-mentioned decoded picture buffer (DPB) can be conceptually constructed from sub-DPBs, and the sub-DPB can include a picture storage buffer for storing a decoded picture of a layer. The picture storage buffer can include decoded pictures marked as "for reference" or reserved for future output.

[0164] In addition, for multi-layer bitstreams, instead of allocating to each output layer set (OLS), DPB parameters can be allocated to each layer. For example, up to two PB parameters can be allocated to each layer. One can be allocated when the layer is an output layer (i.e., for example, when the layer can be used for reference and future output), and another can be allocated when the layer is not an output layer but is used as a reference layer (e.g., when there is no layer switching, and when the layer can only be used as a reference for a picture / slice / block of an output layer). This is considered to be simpler than the DPB parameters of the multi-layer bitstream of the HEVC layered extension (where each layer of the OLS has its own DPB parameters).

[0165] For example, the signaling of DPB parameters may be similar to the following syntax and semantics.

[0166] [Table 1]

[0167]

[0168] For example, Table 1 above may represent a video parameter set (VPS) including syntax elements of signaled DPB parameters. The semantics of the syntax elements shown in Table 1 above may be as follows.

[0169] [Table 2]

[0170]

[0171]

[0172] 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 be in the range of 0 to 16. In addition, when the syntax element vps_num_dpb_params is not present, the value of the syntax element vps_num_dpb_params may be inferred to be equal to 0.

[0173] In addition, for example, the syntax element same_dpb_size_output_or_nonoutput_flag may indicate whether the syntax element layer_nonoutput_dpb_params_idx[i] may be present 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 may indicate that the syntax element layer_nonoutput_dpb_params_idx[i] is not present 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 may indicate that the syntax element layer_nonoutput_dpb_params_idx[i] may be present in the VPS.

[0174] Additionally, 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. Additionally, 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 inferred to be equal to 0.

[0175] In addition, 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[] may be present in the ith 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] indicates that the syntax elements max_num_reorder_pics[] and max_latency_increase_plus1[] are not present in the ith 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] may indicate that the syntax elements max_num_reorder_pics[] and max_latency_increase_plus1[] may be present in the ith dpb_parameters() syntax structure of the VPS.

[0176] Additionally, for example, the syntax element dpb_max_temporal_id[i] may indicate the TemporalId of the highest sublayer representation of the DPB parameter in the ith dpb_parameters() syntax structure in the VPS. Additionally, the value of dpb_max_temporal_id[i] may be in the range of 0 to vps_max_sublayers_minus1. Additionally, for example, when the value of vps_max_sublayers_minus1 is 0, the value of dpb_max_temporal_id[i] may be inferred to be 0. Additionally, 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 inferred to be equal to vps_max_sublayers_minus1.

[0177] In addition, for example, the syntax element layer_output_dpb_params_idx[i] may specify an index into the dpb_parameters() syntax structure list of the VPS for the dpb_parameters() syntax structure applied to the i-th layer as the output layer of the OLS. When the syntax element layer_output_dpb_params_idx[i] is present, the value of the syntax element layer_output_dpb_params_idx[i] may be in the range of 0 to vps_num_dpb_params-1.

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

[0179] Alternatively, for example, when vps_independent_layer_flag[i] is 0, the following may apply.

[0180] -When vps_num_dpb_params is 1, the value of layer_output_dpb_params_idx[i] can be inferred to be equal to 0.

[0181] - A bitstream conformance requirement may be that the value of layer_output_dpb_params_idx[i] is such that the value of dpb_size_only_flag[layer_output_dpb_params_idx[i]] is equal to 0.

[0182] In addition, for example, the syntax element layer_nonoutput_dpb_params_idx[i] may specify an index into the dpb_parameters() syntax structure list of the VPS for the dpb_parameters() syntax structure applied to the i-th layer as a non-output layer of the OLS. When the syntax element layer_nonoutput_dpb_params_idx[i] is present, the value of the syntax element layer_nonoutput_dpb_params_idx[i] may be in the range of 0 to vps_num_dpb_params-1.

[0183] For example, when same_dpb_size_output_or_nonoutput_flag is 1, the following may apply.

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

[0185] - When vps_independent_layer_flag[i] is 0, the value of layer_nonoutput_dpb_params_idx[i] may be inferred to be equal to layer_output_dpb_params_idx[i].

[0186] Alternatively, for example, when same_dpb_size_output_or_nonoutput_flag is 0, and when vps_num_dpb_params is 1, the value of layer_output_dpb_params_idx[i] may be inferred to be 0.

[0187] In addition, for example, the dpb_parameters() syntax structure can be similar to the following syntax and semantics.

[0188] [Table 3]

[0189]

[0190] Referring to Table 3, the dpb_parameters() syntax structure may provide information on the DPB size, the maximum picture reordering number, and the maximum delay of each CLVS of the CVS. The dpb_parameters() syntax structure may be represented as information on DPB parameters or DPB parameter information.

[0191] When the dpb_parameters() syntax structure is included in the VPS, the OLS to which the dpb_parameters() syntax structure is applied can be specified by the VPS. In addition, when the dpb_parameters() syntax structure is included in the SPS, the dpb_parameters() syntax structure can be applied to the OLS including only the lowest layer among the layers of the reference SPS, wherein the lowest layer can be an independent layer.

[0192] The semantics of the syntax elements shown in Table 3 above may be as follows.

[0193] [Table 4]

[0194]

[0195]

[0196] For example, the syntax element max_dec_pic_buffering_minus1[i] plus 1 may specify, for each CLVS of the CVS, the maximum required size of the DPB in units of picture storage buffers when Htid is equal to i. For example, max_dec_pic_buffering_minus1[i] may be information about the size of the DPB. For example, the value of the syntax element max_dec_pic_buffering_minus1[i] may be in the range of 0 to MaxDpbSize-1. Additionally, 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]. Additionally, for example, if max_dec_pic_buffering_minus1[i] does not exist for i in the range of 0 to maxSubLayersMinus1-1, then due to subLayerInfoFlag being equal to 0, the value of the syntax element max_dec_pic_buffering_minus1[i] may be inferred to be equal to max_dec_pic_buffering_minus1[maxSubLayersMinus1].

[0197] In addition, for example, the syntax element max_num_reorder_pics[i] may specify, for each CLVS of the CVS, the maximum allowed number of CLVSs that may precede all pictures of the CLVS in decoding order and follow the corresponding picture in output order when Htid is equal to i. For example, max_num_reorder_pics[i] may be information about the maximum picture reordering 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]. In addition, 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]. In addition, for example, if max_num_reorder_pics[i] does not exist for i in the range of 0 to maxSubLayersMinus1-1, then since subLayerInfoFlag is equal to 0, the syntax element max_num_reorder_pics[i] may be inferred to be equal to max_num_reorder_pics[maxSubLayersMinus1].

[0198] In addition, for example, a syntax element max_latency_increase_plus1[i] having a value other than 0 may be used to calculate the value of MaxLatencyPictures[i]. MaxLatencyPictures[i] may specify, for each CLVS of a CVS, the maximum number of pictures of the CLVS that may precede all pictures of the CLVS in output order and follow the corresponding picture in decoding order when Htid is equal to i. For example, max_latency_increase_plus1[i] may be information about the maximum delay of the DPB.

[0199] For example, when max_latency_increase_plus1[i] is not 0, the value of MaxLatencyPictures[i] can be derived as follows.

[0200] [Formula 1]

[0201] MaxLatencyPictures[i]=max_numreorderpics[i]+maxlatency_increase_plus1[i]-1

[0202] In addition, for example, if max_latency_increase_plus1[i] is 0, the corresponding limit may not be expressed. The value of max_latency_increase_plus1[i] can be between 0 and 2. 32 Additionally, for example, if max_latency_increase_plus1[i] does not exist for i in the range of 0 to maxSubLayersMinus1-1, then due to subLayerInfoFlag being equal to 0, the syntax element max_latency_increase_plus1[i] may be inferred to be equal to max_latency_increase_plus1[maxSubLayersMinus1].

[0203] In addition, DPB parameters can be used for output and removal of picture processing as shown in the following table.

[0204] [Table 5]

[0205]

[0206] In addition, the DPB parameter signaling design in the conventional VVC standard may have at least the following problems.

[0207] First, the VVC draft considers the concept of sub-DPB, but the physical decoding device may only have one DPB for decoding a multi-layer bitstream. Therefore, the decoding device needs to know the DPB size requirement before decoding the OLS in a given multi-layer bitstream, but the traditional VVC draft does not clearly disclose how to know this information.

[0208] For example, the DPB size required for the OLS in the bitstream cannot be simply derived from the sub-DPB size of each layer of the OLS. That is, the DPB size required for the OLS cannot be simply derived as the sum of the max_dec_pic_buffering_minus1[]+1 values ​​of the layers in the OLS. For example, the sum of the max_dec_pic_buffering_minus1[]+1 of the layers in the OLS may be larger than the actual DPB size. For example, in a specific access unit, since the layers in the DPB may have different reference picture list structures, the number of reconstructed pictures of the layers in the DPB may not be the maximum, and therefore, the DPB size required for the OLS cannot be simply derived from the sum of the max_dec_pic_buffering_minus1[]+1 values ​​of the layers in the OLS.

[0209] For example, the following table exemplarily shows the pictures required for each sub-DPB to exist for a bitstream with two spatial scalability layers, a group of pictures (GOP) size of 16, and no temporal sub-layers.

[0210] [Table 6]

[0211]

[0212] Referring to Table 6, the base layer (ie, layer 0) may have a more complex RPL structure than layer 1, and considering the picture size between the two layers, the size of sub-DPB 0 may include more reference pictures than sub-DPB 1. In addition, for example, as shown in Table 6, the maximum number of reference pictures of the two layers (ie, 12) may be greater than the actual number of total pictures of the DPB (ie, 11).

[0213] Secondly, the bump processing may not be called when it is actually needed. When using the above example, the number of pictures of sub-DPB 1 does not reach the maximum sub-DPB size after the first slice header of the picture with the picture sequence count (POC) 37 of the second layer has been decoded, so the bump processing may not be called. That is, if a picture with POC 37 is included, the number of pictures of sub-DPB 1 can be 4, and the maximum number of pictures of sub-DPB 1 can be increased to 5. However, since the maximum number of pictures of DPB has been reached, the bump processing must be called at the corresponding time. This problem may occur because only the DPB parameters of the current layer are checked under the condition of calling the bump processing. Here, for example, the bump processing may refer to the process of deriving the desired pictures from the pictures in the DPB and removing the pictures that are not used as references from the DPB.

[0214] Therefore, this document proposes a solution to the above problems. The proposed embodiments can be applied individually or in combination.

[0215] As an example, a method of signaling DPB parameters mapped to the OLS in addition to signaling DPB parameters mapped to each layer is proposed.

[0216] In addition, as an example, a method may be proposed by which the value of max_dec_pic_buffering_minus1[i] is derived so that when there is no DPB parameter because the signaling of the DPB parameter mapped to the OLS may be optional, it is equal to a value obtained by subtracting 1 from the sum of the values ​​obtained by adding 1 to max_dec_pic_buffering_minus1[i] for all layers in the OLS. The method proposed in the present embodiment may be performed based on a flag indicating whether there is a DPB parameter mapped to the OLS. For example, when the value of the flag is 1, the flag may indicate that there are DPB parameter indexes for all OLSs including at least one or more layers, otherwise, that is, when the value of the flag is 0, the flag may indicate that there is no DPB parameter mapped to the OLS (that is, the DPB parameter index of the OLS). In addition, for example, the flag may exist for each OLS.

[0217] In addition, as an example, a method may be provided by which the value of max_dec_pic_buffering_minus1[highest temporal sublayer] of each OLS is not greater than a value obtained by subtracting 1 from the sum of a value obtained by subtracting 1 from MaxDpbSize and a value obtained by adding 1 to max_dec_pic_buffering_minus1[highest temporal sublayer] of a layer within the OLS, minus 1.

[0218] In addition, as an example, a method may be proposed in which the DPB parameters allocated to the OLS include only the DPB size.

[0219] In addition, as an example, a method of updating the condition for calling the bumping process in consideration of the number of pictures in the DPB and the value of max_dec_pic_buffering_minus1[i] of the OLS being processed by the decoding device may be proposed.

[0220] Furthermore, for example, the embodiment can be applied according to the following procedure.

[0221] Fig.10 The encoding process according to the embodiment of this document is exemplified.

[0222] Reference Fig.10 , the encoding device can decode the (reconstructed) picture (S1000). The encoding device can update the DPB based on the DPB parameters (S1010). For example, the decoded picture can be basically inserted into the DPB, and the decoded picture can be used as a reference picture for inter-frame prediction. In addition, the decoded picture in the DPB can be deleted based on the DPB parameters. In addition, the encoding device can encode the image information including the DPB parameters (S1020). In addition, although not shown, the encoding device can further decode the current picture based on the DPB updated after step S1010. In addition, the decoded current picture can be inserted into the DPB, and the DPB including the decoded current picture can be further updated based on the DPB parameters before the next picture is decoded in the decoding order.

[0223] Fig.11 The decoding process according to the embodiment of this document is exemplified.

[0224] Reference Fig.11 , the decoding device may obtain image information including information about DPB parameters from the bitstream (S1100). The decoding device may output a picture decoded from DPB based on the information about DPB parameters (S1105). In addition, when the layer related to DPB (or DPB parameters) is not an output layer but a reference layer, step S1105 may be omitted.

[0225] In addition, the decoding device may update the DPB based on the information about the DPB parameters (S1110). The decoded picture may be basically inserted into the DPB. Then, the DPB may be updated before decoding the current picture. For example, the decoded picture in the DPB may be deleted based on the information about the DPB parameters. Here, the DPB update may be referred to as the DPB management.

[0226] The information about the DPB parameters may include the information / syntax elements disclosed in the above Tables 1 and 3. In addition, for example, 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) is used for OLS (mapped to OLS) as in the embodiment proposed in this document.

[0227] In addition, the decoding device can decode the current picture based on the DPB (S1120). For example, the decoding device can decode the current picture based on inter-frame prediction of blocks / slices of the current picture using a decoded picture of the DPB (before the current picture) as a reference picture.

[0228] In addition, although not shown, the encoding device can decode the current picture based on the DPB updated after the above step S1010. In addition, the decoded current picture can be inserted into the DPB, and the DPB including the decoded current picture can be further updated based on the DPB parameters before decoding the next picture.

[0229] The syntax and DPB management process to which the embodiments proposed in this document are applied will be described below.

[0230] As an implementation, the signaled video parameter set (VPS) syntax may be as follows.

[0231] [Table 7]

[0232]

[0233] Referring to Table 7, the VPS may include syntax elements vps_num_dpb_params, same_dpb_size_output_or_nonoutput_flag, vps_sublayer_dpb_params_present_flag, dpb_size_only_flag[i], dpb_max_temporal_id[i], layer_output_dpb_params_idx[i], and / or layer_nonoutput_dpb_params_idx[i].

[0234] In addition, referring to Table 7, the VPS may further include syntax elements vps_ols_dpb_params_present_flag and / or ols_dpb_params_idx[i].

[0235] For example, the syntax element vps_ols_dpb_params_present_flag may indicate whether ols_dpb_params_idx[] may be present. For example, when the value of vps_ols_dpb_params_present_flag is 1, vps_ols_dpb_params_present_flag may indicate that ols_dpb_params_idx[] may be present, and when the value of vps_ols_dpb_params_present_flag is 0, vps_ols_dpb_params_present_flag may indicate that ols_dpb_params_idx[] does not exist. In addition, when vps_ols_dpb_params_present_flag does not exist, the value of vps_ols_dpb_params_present_flag may be inferred to be 0.

[0236] Additionally, for example, when i is less than TotalNumOlss, and when vps_ols_dpb_params_present_flag is 1, and when vps_num_dpb_params is greater than 1, and if NumLayersInOls[i] is greater than 1, the syntax element ols_dpb_params_idx[i] may be signaled. ols_dpb_params_idx[i] may be denoted as vps_ols_dpb_params_idx[i].

[0237] For example, when NumLayersInOls[i] is greater than 1, the syntax element ols_dpb_params_idx[i] may specify the index of the dpb_parameters() syntax structure applied to the i-th OLS in the dpb_parameters() syntax structure list of the VPS. That is, for example, the syntax element ols_dpb_params_idx[i] may indicate the dpb_parameters() syntax structure of the VPS for the target OLS (i.e., the i-th OLS). When ols_dpb_params_idx[i] exists, the value of ols_dpb_params_idx[i] may be in the range of 0 to vps_num_dpb_params-1.

[0238] In addition, for example, when NumLayersInOls[i] is equal to 1, a dpb_parameters( ) syntax structure applied to the i th OLS may exist in an SPS referenced by a layer in the i th OLS.

[0239] Furthermore, according to the present embodiment, OlsMaxDecPicBufferingMinus1[Htid] may be defined as follows.

[0240] [Table 8]

[0241]

[0242] For example, referring to Table 8, the value of OlsMaxDecPicBufferingMinus1[Htid] of the target OLS can be derived as follows.

[0243] For example, when the value of vps_ols_dpb_params_present_flag is 1, OlsMaxDecPicBufferingMinus1[Htid] may be derived such that it is equal to the value of max_dec_pic_buffering_minus1[Htid] in ols_dpb_params_idx[opOlsIdx].

[0244] In addition, for example, in other cases, that is, when the value of vps_ols_dpb_params_present_flag is 0, OlsMaxDecPicBufferingMinus1[Htid] may be derived such that it is equal to a value obtained by subtracting 1 from the sum of max_dec_pic_buffering_minus1[Htid]+1 of each layer in the target OLS.

[0245] In addition, according to the present embodiment, the screen output and removal process (ie, the DPB management process) can be defined as follows.

[0246] [Table 9]

[0247]

[0248]

[0249] For example, referring to Table 9, the number of pictures in the sub-DPB may be greater than or equal to max_dec_pic_buffering_minus1[Htid] + 1. In addition, for example, the number of pictures in the DPB may be greater than or equal to OlsMaxDecPicBufferingMinus1[Htid] + 1.

[0250] In addition, according to the present embodiment, the constraint on the maximum picture of the DPB (ie, the maximum number of pictures of the DPB) may be updated as follows: Here, the maximum number of pictures of the DPB may be expressed as a maximum DPB size.

[0251] [Table 10]

[0252]

[0253]

[0254] For example, referring to Table 10, when the level is not level 8.5, the value of OlsMaxDecPicBufferingMinus1[Htid]+1 may be less than or equal to MaxDpbSize.

[0255] Alternatively, as an embodiment, the signaled video parameter set (VPS) syntax may be as follows.

[0256] [Table 11]

[0257]

[0258] Referring to Table 11, the VPS may include syntax elements vps_num_dpb_params, same_dpb_size_output_or_nonoutput_flag, vps_sublayer_dpb_params_present_flag, dpb_size_only_flag[i], dpb_max_temporal_id[i], layer_output_dpb_params_idx[i], and / or layer_nonoutput_dpb_params_idx[i].

[0259] In addition, referring to Table 11, the VPS may further include syntax elements vps_ols_dpb_params_present_flag and / or ols_dpb_params_idx[i].

[0260] For example, the syntax element vps_ols_dpb_params_present_flag may be signaled when i is less than TotalNumOlss, and when vps_num_dpb_params is greater than 1, and if NumLayersInOls[i] is greater than 1. Unlike the implementation shown in Table 7 above where vps_ols_dpb_params_present_flag is signaled without a separate condition, vps_ols_dpb_params_present_flag may be signaled only when i is less than TotalNumOlss and vps_num_dpb_params is greater than 1.

[0261] For example, the syntax element vps_ols_dpb_params_present_flag may indicate whether ols_dpb_params_idx[] may be present. For example, when the value of vps_ols_dpb_params_present_flag is 1, vps_ols_dpb_params_present_flag may indicate that ols_dpb_params_idx[] may be present, and when the value of vps_ols_dpb_params_present_flag is 0, vps_ols_dpb_params_present_flag may indicate that ols_dpb_params_idx[] does not exist. In addition, when vps_ols_dpb_params_present_flag does not exist, the value of vps_ols_dpb_params_present_flag may be inferred to be 0.

[0262] Additionally, for example, when vps_ols_dpb_params_present_flag is 1, the syntax element ols_dpb_params_idx[i] may be signaled.

[0263] For example, when NumLayersInOls[i] is greater than 1, the syntax element ols_dpb_params_idx[i] may specify the index of the dpb_parameters() syntax structure applied to the i-th OLS in the dpb_parameters() syntax structure list of the VPS. That is, for example, the syntax element ols_dpb_params_idx[i] may indicate the dpb_parameters() syntax structure of the VPS for the target OLS (i.e., the i-th OLS). When ols_dpb_params_idx[i] exists, the value of ols_dpb_params_idx[i] may be in the range of 0 to vps_num_dpb_params-1.

[0264] Fig.12 The image encoding method performed by the encoding device according to the present disclosure is briefly illustrated. Fig.12 The method disclosed in can be Figure 2 Specifically, for example, Fig.12 S1200 to S1210 and S1240 may be performed by an entropy encoder of the encoding device; Fig.12 S1220 may be performed by a DPB of the encoding device; Fig.12 S1230 may be performed by a predictor and a residual processor of the encoding device.

[0265] The encoding device generates decoded picture buffer (DPB) parameter information of an output layer set (OLS), which includes DPB parameter information of a target OLS (S1200). The encoding device may generate and encode DPB parameter information of an OLS including DPB parameter information of a target OLS. The image information may include DPB parameter information of the OLS. For example, a video parameter set (VPS) syntax may include DPB parameter information of the OLS.

[0266] For example, the DPB parameter information of the target OLS may include information about the DPB size of the target OLS, information about the maximum picture reordering number of the DBP of the target OLS, and / or information about the maximum delay of the DBP of the target OLS. Here, the DPB size may indicate the maximum number of pictures that the DPB may include.

[0267] The syntax element of the information on the DPB size of the target OLS may be the above-mentioned max_dec_pic_buffering_minus1[i], the syntax element of the information on the maximum picture reordering number of the DBP of the target OLS may be the above-mentioned max_num_reorder_pics[i], and the syntax element of the information on the maximum delay of the DBP of the target OLS may be the above-mentioned max_latency_increase_plus1[i].

[0268] The encoding device generates an OLSDPB parameter index for the DPB parameter information of the target OLS (S1210). The encoding device may generate and encode the OLSDPB parameter index of the DPB parameter information of the target OLS. The image information may include the OLSDPB parameter index of the DPB parameter information of the target OLS. For example, the VPS syntax may include the OLSDPB parameter index.

[0269] For example, the OLSDPB parameter index of the target OLS may indicate the DPB parameter information of the target OLS. For example, the OLSDPB parameter index of the target OLS may indicate the DPB parameter information of the target OLS among the DPB parameter information of the OLS. The syntax element of the OLSDPB parameter index may be the above-mentioned vps_ols_dpb_params_idx[i] or ols_dpb_params_idx[i].

[0270] In addition, for example, the encoding device may generate and encode an OLSDPB parameter flag for whether there is DPB parameter information of OLS. For example, the image information may include the OLSDPB parameter flag. In addition, for example, the VPS syntax may include the OLSDPB parameter flag. For example, the OLSDPB parameter flag may indicate whether there is DPB parameter information of OLS. For example, when the value of the OLSDPB parameter flag is 1, the OLSDPB parameter flag may indicate that there may be DPB parameter information of OLS, and when the value of the OLSDPB parameter flag is 0, the OLSDPB parameter flag may indicate that the DPB parameter information of OLS does not exist. In addition, for example, the OLSDPB parameter index may be generated and encoded based on the OLSDPB parameter flag. For example, when the value of the OLSDPB parameter flag is 1, the OLSDPB parameter index may be generated / encoded / signaled, and when the value of the OLSDPB parameter flag is 0, the OLSDPB parameter index may not be generated / encoded / signaled. The syntax element of the OLSDPB parameter flag may be the above-mentioned vps_ols_dpb_params_present_flag.

[0271] The encoding device performs picture management processing on the picture of the DPB based on the DPB parameter information of the target OLS (S1220). The encoding device may perform picture management processing on the picture of the DPB based on the DPB parameter information of the target OLS. The encoding device may update the DPB based on the DPB parameter information. For example, the encoding device may perform picture management processing on the (decoded) picture of the DPB based on the DPB parameter information. For example, the encoding device may add a decoded picture to the DPB, or may remove a decoded picture in the DPB. For example, a decoded picture in the DPB may be used as a reference picture for inter-frame prediction of the current picture, or a decoded picture in the DPB may be used as an output picture. A decoded picture may refer to a picture decoded before the current picture in the decoding order in the target OLS.

[0272] In addition, for example, the encoding device may determine whether to perform impact processing on the pictures in the DPB based on the number of pictures in the DPB and the information about the DPB size of the target OLS, and may perform impact processing on the pictures in the DPB based on the determination result. For example, when the number of pictures in the DPB is greater than or equal to the value derived based on the information about the DPB size, the impact processing may be performed, and when the number of pictures in the DPB is less than the value derived based on the information about the DPB size, the impact processing may not be performed. Here, for example, the value derived based on the information about the DPB size may be a value obtained by adding 1 to the value of the information about the DPB size.

[0273] The encoding apparatus performs decoding on a block in the current picture based on the picture of the DPB (S1230). The encoding apparatus may decode a block in the current picture of the target OLS based on the picture of the DPB.

[0274] For example, the encoding device may construct a reference picture list of the current picture based on the picture of the DPB. That is, the encoding device may construct a reference picture list of the current picture based on the updated picture of the DPB. For example, the encoding device may construct a reference picture list based on a decoded picture of the DPB used for inter-frame prediction of a block in the current picture. For example, the reference picture list of the current picture may include a picture of the DPB used for inter-frame prediction of a block of the current picture.

[0275] Then, for example, the encoding device may perform inter-frame prediction on the block in the current picture based on the reference picture list. The encoding device may derive the reference picture of the block in the current picture from the reference picture in the reference picture list for the block, and may perform inter-frame prediction on the block based on the reference picture. The encoding device may derive prediction samples by performing inter-frame prediction on the block based on the derived reference picture and motion information about the block. The encoding device may generate reconstructed samples and / or reconstructed pictures for the block in the current picture based on the prediction samples. In addition, for example, the encoding device may derive residual samples for the block in the current picture, and may generate reconstructed samples and / or reconstructed pictures by adding the prediction samples and the residual samples.

[0276] Thereafter, as described above, an in-loop filtering process such as an ALF process, SAO and / or deblocking filtering may be applied to the reconstructed samples as needed in order to improve the subjective / objective video quality.

[0277] The encoding device encodes the image information including the DPB parameter information of the OLS, the OLS DPB parameter index, the prediction information of the block, and the residual information (S1240). For example, the encoding device may encode the DPB parameter information, the OLS DPB parameter index, the prediction information of the block, and the residual information. The image information may include the DPB parameter information, the OLS DPB parameter index, the prediction information of the block, and the residual information. In addition, the image information may include the above-mentioned OLSDPB parameter flag.

[0278] For example, the encoding device can generate and encode prediction information and residual information for a block of the current picture. In this case, various prediction methods disclosed in this document, such as inter-frame prediction or intra-frame prediction, can be applied. For example, the encoding device can determine whether to perform inter-frame prediction or intra-frame prediction on the block, and can determine a specific inter-frame prediction mode or a specific intra-frame prediction mode based on the RD cost. According to the determined mode, the encoding device can derive the prediction sample of the block. The prediction information may include prediction mode information of the block.

[0279] In addition, the encoding device may generate and encode a reference picture index indicating a reference picture of the block. For example, the prediction information may include the reference picture index. In addition, the encoding device may derive motion information of the block, and may generate and encode information about the motion information. For example, the prediction information may include information about the reference picture index and motion information.

[0280] In addition, for example, the encoding device may encode residual information of a block of the picture. For example, the encoding device may derive residual samples by subtracting original samples and predicted samples of the block.

[0281] Thereafter, for example, the encoding device may quantize the residual samples to derive quantized residual samples, and may derive transform coefficients based on the quantized residual samples, and may generate and encode residual information based on the transform coefficients. Alternatively, for example, the encoding device may quantize the residual samples to derive quantized residual samples, and may derive transform coefficients by transforming the quantized residual samples, and may generate and encode residual information based on the transform coefficients. The image information may include residual information. In addition, for example, the encoding device may encode the image information and output it in the form of a bitstream.

[0282] In addition, the bit stream including the image information can be sent to the decoding device via a network or a (digital) storage medium. Here, the network may include a broadcast network, a communication network, etc., and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.

[0283] Fig.13 An encoding device for performing an image encoding method according to the present disclosure is briefly illustrated. Fig.12 The method disclosed in can be Fig.13 Specifically, for example, Fig.13 The entropy encoder of the encoding device may perform S1200 to S1210 and S1240; Fig.13 The DPB of the encoding device may execute S1220; Fig.13 The predictor and the residual processor of the encoding device may perform S1230.

[0284] Fig.14 The image decoding method performed by the decoding device according to the present disclosure is briefly illustrated. Fig.14 The method disclosed in can be Figure 3 Specifically, for example, Fig.14 S1400 and S1430 may be performed by an entropy decoder of a decoding device; Fig.14 S1410 to S1420 may be performed by a DPB of a decoding device; Fig.14S1440 may be performed by a predictor of a decoding device; Fig.14 S1450 may be performed by a residual processor of a decoding device; Fig.14 S1460 may be performed by an adder of the decoding device.

[0285] The decoding device obtains image information including decoded picture buffer (DPB) parameter information of an output layer set (OLS) and an OLS DPB parameter index of a target OLS (S1400). The decoding device may obtain image information including decoded picture buffer (DPB) parameter information of an output layer set (OLS) and an OLS DPB parameter index of a target OLS.

[0286] For example, the decoding device may obtain a video parameter set (VPS) syntax from a bitstream. The image information may include the VPS syntax. The image information may be received as a bitstream. The VPS syntax may include the DPB parameter information of the OLS and the OLS DPB parameter index of the target OLS. That is, for example, the decoding device may obtain the DPB parameter information of the OLS and the OLS DPB parameter index of the target OLS using the VPS syntax.

[0287] For example, the OLSDPB parameter index of the target OLS may indicate the DPB parameter information of the target OLS. For example, the DPB parameter information of the OLS may include the DPB parameter information of the target OLS, and the OLSDPB parameter index of the target OLS may indicate the DPB parameter information of the target OLS in the DPB parameter information of the OLS. The syntax element of the OLSDPB parameter index may be the above-mentioned vps_ols_dpb_params_idx[i] or ols_dpb_params_idx[i].

[0288] In addition, for example, the decoding device may obtain an OLSDPB parameter flag for whether there is DPB parameter information of OLS. For example, the image information may include the OLSDPB parameter flag. In addition, for example, the VPS syntax may include the OLSDPB parameter flag. For example, the OLSDPB parameter flag may indicate whether there is DPB parameter information of OLS. For example, when the value of the OLSDPB parameter flag is 1, the OLSDPB parameter flag may indicate that DPB parameter information of OLS may exist, and when the value of the OLSDPB parameter flag is 0, the OLSDPB parameter flag may indicate that DPB parameter information of OLS does not exist. In addition, for example, the OLSDPB parameter index may be obtained based on the OLSDPB parameter flag. For example, when the value of the OLSDPB parameter flag is 1, the OLSDPB parameter index may be signaled / obtained, and when the value of the OLSDPB parameter flag is 0, the OLSDPB parameter index may not be signaled / obtained. The syntax element of the OLSDPB parameter flag may be the above-mentioned vps_ols_dpb_params_present_flag.

[0289] The decoding device derives the DPB parameter information of the target OLS among the DPB parameter information of the OLS based on the OLS DPB parameter index (S1410). The decoding device may derive the DPB parameter information of the target OLS among the DPB parameter information of the OLS based on the OLS DPB parameter index. For example, the decoding device may derive the DPB parameter information of the target OLS indicated by the OLS DPB parameter index among the DPB parameter information of the OLS.

[0290] For example, the DPB parameter information of the target OLS may include information about the DPB size of the target OLS, information about the maximum picture reordering number of the DBP of the target OLS, and / or information about the maximum delay of the DBP of the target OLS. Here, the DPB size may indicate the maximum number of pictures that the DPB may include.

[0291] The syntax element of the information on the DPB size of the target OLS may be the above-mentioned max_dec_pic_buffering_minus1[i], the syntax element of the information on the maximum picture reordering number of the DBP of the target OLS may be the above-mentioned max_num_reorder_pics[i], and the syntax element of the information on the maximum delay of the DBP of the target OLS may be the above-mentioned max_latency_increase_plus1[i].

[0292] The decoding device performs picture management processing on the picture of the DPB based on the DPB parameter information of the target OLS (S1420). The decoding device may perform picture management processing on the picture of the DPB based on the DPB parameter information of the target OLS. The decoding device may update the DPB based on the DPB parameter information. For example, the decoding device may perform picture management processing on the (decoded) picture of the DPB based on the DPB parameter information. For example, the decoding device may add a decoded picture to the DPB, or may remove a decoded picture in the DPB. For example, a decoded picture in the DPB may be used as a reference picture for inter-frame prediction of the current picture, or a decoded picture in the DPB may be used as an output picture. A decoded picture may refer to a picture decoded before the current picture in the decoding order in the target OLS.

[0293] In addition, for example, the decoding device may determine whether to perform impact processing on the pictures in the DPB based on the number of pictures in the DPB and the information about the DPB size of the target OLS, and may perform impact processing on the pictures in the DPB based on the determination result. For example, when the number of pictures in the DPB is greater than or equal to the value derived based on the information about the DPB size, the impact processing may be performed, and when the number of pictures in the DPB is less than the value derived based on the information about the DPB size, the impact processing may not be performed. Here, for example, the value derived based on the information about the DPB size may be a value obtained by adding 1 to the value of the information about the DPB size.

[0294] The decoding apparatus obtains prediction information and residual information of a block of the current picture (S1430). For example, the decoding apparatus may obtain prediction information and residual information of a block of the current picture. The image information may include prediction information and residual information.

[0295] For example, the prediction information may include a reference picture index indicating a reference picture of the block. In addition, for example, the prediction information may include information on motion information of the block.

[0296] In addition, for example, the residual information may include information such as value information of (quantized) transform coefficients of the block, position information, transform technology, transform kernel and quantization parameter. In addition, for example, the residual information may include a transform skip flag. The transform skip flag may indicate whether a transform is applied to the block.

[0297] The decoding device derives a prediction sample by performing prediction on the block based on the prediction information and the picture of the DPB (S1440). The decoding device can construct a reference picture list of the current picture based on the picture of the DPB, can derive a reference picture in the reference picture list of the block based on the reference picture index of the block, and can derive a prediction sample by performing inter-frame prediction on the block based on the motion information and the reference picture of the block. The prediction information may include a reference picture index indicating the reference picture of the block and information about the motion information of the block. The motion information of the block can be derived based on the information about the motion information of the block. The decoding device can construct a motion information candidate list based on the neighboring blocks of the block, and can derive the motion information of the block based on the information about the motion information and the motion information candidate list.

[0298] The decoding apparatus induces residual samples of the block based on the residual information (S1450).

[0299] For example, the decoding device may derive the transform coefficient of the block of the current picture based on the residual information included in the image information, and may derive the residual sample based on the transform coefficient. For example, when it is derived based on the transform skip flag that the transform is not applied to the block (when the block is a transform skip block), that is, when the value of the transform skip flag is 1, the decoding device may derive the transform coefficient as the residual sample of the block. Alternatively, for example, when it is derived based on the transform skip flag that the transform is not applied to the block (when the block is a transform skip block), that is, when the value of the transform skip flag is 1, the decoding device may dequantize the transform coefficient and derive the residual sample of the block. Alternatively, for example, when it is derived based on the transform skip flag that the transform is applied to the block (when the block is not a transform skip block), that is, when the value of the transform skip flag is 0, the decoding device may inverse transform the transform coefficient and derive the residual sample of the block. Alternatively, for example, when it is derived that a transform is applied to a block based on a transform skip flag (when the block is not a transform skip block), that is, when the value of the transform skip flag is 0, the decoding device may dequantize the transform coefficients, inversely transform the dequantized coefficients, and derive residual samples of the block.

[0300] The decoding device generates a reconstructed sample of the block based on the prediction sample and the residual sample (S1460). For example, the decoding device can generate a reconstructed sample and / or a reconstructed picture for the block of the current picture based on the prediction sample and the residual sample. For example, the decoding device can generate a reconstructed sample and / or a reconstructed picture by adding the prediction sample and the residual sample.

[0301] Thereafter, as described above, an in-loop filtering process such as an ALF process, SAO and / or deblocking filtering may be applied to the reconstructed samples as needed in order to improve the subjective / objective video quality.

[0302] Fig.15A decoding device for performing an image decoding method according to the present disclosure is briefly illustrated. Fig.14 The method disclosed in can be Fig.15 Specifically, for example, Fig.15 The entropy decoder of the decoding device can perform Fig.14 S1400 and S1430; Fig.15 The DPB of the decoding device can perform Fig.14 S1410 to S1420; Fig.15 The predictor of the decoding device can perform Fig.14 S1440; Fig.15 The residual processor of the decoding device can perform Fig.14 S1450; Fig.15 The adder of the decoding device can perform Fig.14 The S1460.

[0303] According to the above-mentioned document, the DPB parameters of the OLS can be signaled, and thus, the DPB can be adaptively updated for the OLS, and the overall coding efficiency can be improved.

[0304] In addition, according to the present document, index information indicating the DPB parameters of the OLS may be signaled, and thus, the DPB parameters may be adaptively derived for the OLS, and the overall encoding efficiency may be improved by updating the DPB of the OLS based on the derived DPB parameters.

[0305] In the above-mentioned embodiment, method is described based on the flow chart with a series of steps or square frames. The present disclosure is not limited to the order of the above steps or square frames. Some steps or square frames can be performed in an order different from other steps or square frames mentioned above or performed simultaneously. In addition, it will be appreciated by those skilled in the art that the steps shown in the flow chart are not exclusive, and other steps may also be included, or one or more steps in the flow chart may be deleted without affecting the scope of the present disclosure.

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

[0307] In addition, the decoding device and encoding device of the present disclosure can be included in the following devices: multimedia broadcast sending / receiving devices, mobile communication terminals, home theater video devices, digital theater video devices, surveillance cameras, video chat devices, real-time communication devices such as video communication, mobile streaming devices, storage media, portable cameras, VoD service providing devices, over-the-top (OTT) video devices, Internet streaming service providing devices, three-dimensional (3D) video devices, teleconferencing video devices, transportation user devices (e.g., vehicle user devices, aircraft user devices, and ship user devices) and medical video devices; and the decoding device and encoding device of the present disclosure can be used to process video signals or data signals. For example, over-the-top (OTT) video devices can include game consoles, Blu-ray players, Internet access televisions, home theater systems, smart phones, tablet computers, digital video recorders (DVRs), etc.

[0308] In addition, the processing method of the present invention can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. The multimedia data with a data structure according to the present invention can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a 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. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (e.g., transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium or transmitted via a wired / wireless communication network.

[0309] In addition, the embodiments of the present disclosure may be implemented using a computer program product according to a program code, and the program code may be executed in a computer through the embodiments of the present disclosure. The program code may be stored on a computer readable carrier.

[0310] Fig.16 A structural diagram of a content streaming system to which the present disclosure is applied is illustrated.

[0311] The content streaming system to which the embodiments of the present disclosure are applied may mainly include an encoding server, a streaming server, a network server, a media storage, a user device, and a multimedia input device.

[0312] The encoding server compresses the content input from a multimedia input device such as a smartphone, a camera, or a camcorder 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, a camera, or a camcorder directly generates a bitstream, the encoding server may be omitted.

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

[0314] The streaming server sends multimedia data to the user device through the network server based on the user request, and the network server is used as a medium to notify the user of the service. When the user requests the required service from the network server, the network server transmits the request to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control the command / response between the devices within the content streaming system.

[0315] The streaming server can receive content from a media storage and / or encoding server. For example, when receiving content from an encoding server, the content can be received in real time. In this case, in order to provide a stable streaming service, the streaming server can store the bitstream for a predetermined time.

[0316] Examples of user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigators, touch screen PCs, tablet PCs, ultrabooks, wearable devices (e.g., smart watches, smart glasses, and head mounted displays), digital TVs, desktop computers, and digital signage, etc. Each server within the content streaming system may operate as a distributed server, in which case data received from each server may be distributed.

[0317] The claims described in this disclosure may be combined in various ways. For example, the technical features of the method claims of this disclosure may be combined to be implemented as a device, and the technical features of the device claims of this disclosure may be combined to be implemented as a method. In addition, the technical features of the method claims of this disclosure and the technical features of the device claims may be combined to be implemented as a device, and the technical features of the method claims of this disclosure and the technical features of the device claims may be combined to be implemented as a method.

Claims

1. An image decoding method performed by a decoding device, the image decoding method comprising the following steps: Obtaining image information including decoded picture buffer DPB parameter information for an output layer set OLS and an OLSDPB parameter index for a target OLS; Derivation of DPB parameter information for the target OLS among the DPB parameter information for the OLS based on the OLS DPB parameter index; as well as A screen management process is performed on a screen of the DPB based on the DPB parameter information for the target OLS.

2. The image decoding method according to claim 1, wherein: The DPB parameter information for the target OLS includes information about a DPB size, information about a maximum picture reordering number of the DPB for the target OLS, and information about a maximum delay of the DPB.

3. The image decoding method according to claim 1, wherein: The DPB parameter information and the OLS DPB parameter index for the OLS are included in a video parameter set (VPS) syntax.

4. The image decoding method according to claim 1, wherein: An OLSDPB parameter flag is obtained to determine whether the DPB parameter information for the OLS exists.

5. The image decoding method according to claim 4, wherein: The OLSDPB parameter index is obtained based on the OLSDPB parameter flag.

6. The image decoding method according to claim 4, wherein: Based on the value of the OLSDPB parameter flag being 1, the OLSDPB parameter index is obtained.

7. The image decoding method according to claim 4, wherein: The OLSDPB parameter flag is included in the video parameter set VPS syntax.

8. The image decoding method according to claim 1, wherein: The OLS DPB parameter index specifies the DPB parameter information for the target OLS among the DPB parameter information for the OLS.

9. An image encoding method performed by an encoding device, the image encoding method comprising the following steps: Generate decoded picture buffer DPB parameter information for the output layer set OLS, wherein the DPB parameter information includes the DPB parameter information of the target OLS; Generating an OLSDPB parameter index for the DPB parameter information of the target OLS; Performing picture management processing on a picture of the DPB based on the DPB parameter information of the target OLS; as well as Image information including the DPB parameter information for the OLS and the OLS DPB parameter index is encoded.

10. The image encoding method according to claim 9, wherein: The OLS DPB parameter index specifies the DPB parameter information for the target OLS among the DPB parameter information for the OLS.

11. The image encoding method according to claim 9, wherein: The DPB parameter information for the target OLS includes information about a DPB size, information about a maximum picture reordering number of the DPB for the target OLS, and information about a maximum delay of the DPB.

12. The image encoding method according to claim 9, wherein: The DPB parameter information and the OLSDPB parameter index are included in the video parameter set VPS syntax.

13. The image encoding method according to claim 9, wherein: An OLSDPB parameter flag indicating whether the DPB parameter information for the OLS exists is encoded.

14. The image encoding method according to claim 12, wherein: The OLSDPB parameter index is encoded based on the OLSDPB parameter flag.

15. A non-transitory computer-readable storage medium storing a bit stream generated by an image encoding method, the image encoding method comprising the steps of: Generate decoded picture buffer DPB parameter information for the output layer set OLS, wherein the DPB parameter information includes the DPB parameter information of the target OLS; Generating an OLSDPB parameter index for the DPB parameter information of the target OLS; Performing picture management processing on a picture of the DPB based on the DPB parameter information of the target OLS; as well as Image information including the DPB parameter information for the OLS and the OLS DPB parameter index is encoded.

16. A method for transmitting a bit stream generated by an image coding method, the image coding method comprising the following steps: Generate decoded picture buffer DPB parameter information for the output layer set OLS, wherein the DPB parameter information includes the DPB parameter information of the target OLS; Generating an OLSDPB parameter index for the DPB parameter information of the target OLS; Performing picture management processing on a picture of the DPB based on the DPB parameter information of the target OLS; as well as Image information including the DPB parameter information for the OLS and the OLS DPB parameter index is encoded.