Image decoding method and apparatus for coding image information including a picture header

The video decoding method adaptively codes PH NAL units with a presence flag to address the increased costs of high-resolution image transmission and storage, improving coding efficiency by adjusting NAL units and slice constraints.

JP7536876B2Active Publication Date: 2024-08-20LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2022540948
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-01-02
Filing Date
2020-12-29
Publication Date
2024-08-20
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

The increasing demand for high-resolution, high-quality images has led to a surge in transmission and storage costs due to the increased amount of information, necessitating highly efficient image compression techniques.

Method used

A video decoding method and apparatus that adaptively codes PH NAL units by signaling a flag for the presence or absence of a PH NAL unit, allowing for bitrate adjustment and controlling the number of slices in a picture, thereby improving coding efficiency.

Benefits of technology

This approach enhances overall coding efficiency by adaptively adjusting NAL units to the bitrate of the bitstream, reducing the number of slices, and optimizing bitstream constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007536876000025
    Figure 0007536876000025
  • Figure 0007536876000021
    Figure 0007536876000021
  • Figure 0007536876000032
    Figure 0007536876000032
Patent Text Reader

Abstract

The video decoding method performed by the decoding device according to this document is characterized by including the steps of: acquiring a flag indicating whether or not a PH (Picture Header, PH) NAL (Network Abstraction Layer) unit exists; acquiring a PH based on the flag; and decoding a current picture associated with the PH based on the PH.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This document relates to video coding technology, and more particularly to a video decoding method and apparatus for adaptively coding a PH NAL unit in a video coding system. [Background technology]

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

[0003] Thereby, in order to effectively transmit, store and reproduce high resolution, high quality image information, highly efficient image compression techniques are required. Summary of the Invention [Problem to be solved by the invention]

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

[0005] Another technical problem of this document is to provide a method and apparatus for coding a flag for the presence or absence of a PH NAL unit. [Means for solving the problem]

[0006] According to one embodiment of the present document, there is provided a video decoding method performed by a decoding device, the method including the steps of: obtaining a flag indicating whether a Picture Header (PH) Network Abstraction Layer (NAL) unit exists; obtaining a PH based on the flag; and decoding a current picture associated with the PH based on the PH.

[0007] According to another embodiment of the present document, there is provided a decoding device for performing video decoding, comprising: an entropy decoding unit for acquiring a flag for the presence or absence of a Picture Header (PH) Network Abstraction Layer (NAL) unit, acquiring a PH based on the flag, and a prediction unit for decoding a current picture associated with the PH based on the PH.

[0008] According to another embodiment of the present document, there is provided a video encoding method performed by an encoding apparatus, the method including the steps of: determining whether a PH Network Abstraction Layer (NAL) unit including a Picture Header (PH) associated with a current picture exists; generating a flag indicating whether the PH NAL unit exists based on a result of the determination; and encoding video information including the flag.

[0009] According to another embodiment of the present document, there is provided a video encoding apparatus, comprising: an entropy encoding unit configured to determine whether a PH NAL (Network Abstraction Layer) unit including a Picture Header (PH) associated with a current picture exists, generate a flag indicating whether the PH NAL unit exists based on a result of the determination, and encode video information including the flag.

[0010] According to another embodiment of the present document, there is provided a computer-readable digital storage medium storing a bitstream including video information for performing a video decoding method, the video decoding method including the steps of: acquiring a flag indicating whether a Picture Header (PH) NAL (Network Abstraction Layer) unit exists; acquiring a PH based on the flag; and decoding a current picture associated with the PH based on the PH. Effect of the Invention

[0011] According to this document, a flag can be signaled regarding whether a PH NAL unit exists, and the NAL unit can be adaptively adjusted to the bit rate of the bitstream based on the flag, thereby improving overall coding efficiency.

[0012] According to this document, based on a flag indicating whether a PH NAL unit exists, constraints on the number of slices in a current picture and constraints on the existence of a PH NAL unit for related pictures can be set, thereby adaptively adjusting the NAL units to the bitrate of the bitstream to improve overall coding efficiency. [Brief description of the drawings]

[0013] [Figure 1] 1 illustrates generally an example of a video / image coding system in which embodiments of the present document may be applied; [Diagram 2] FIG. 1 is a diagram illustrating the configuration of a video / image encoding device to which the embodiments of this document can be applied. [Diagram 3] FIG. 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of the present document can be applied. [Figure 4] 1 illustrates an exemplary hierarchical structure of coded video information. [Diagram 5] 1 illustrates an exemplary encoding procedure according to an embodiment of the present document. [Figure 6] 1 illustrates an exemplary decoding procedure according to an embodiment of the present document. [Figure 7] 13 shows an example of a picture header structure in a NAL unit depending on whether or not a PH NAL unit is present. [Figure 8] 1 illustrates a schematic diagram of an image encoding method using an encoding device according to the present document. [Figure 9] 1 shows a schematic diagram of an encoding device for performing an image encoding method according to the present document; [Figure 10] 1 illustrates an image decoding method using a decoding device according to the present document. [Figure 11] 1 shows a schematic diagram of a decoding device for performing an image decoding method according to the present document; [Figure 12] 1 exemplarily illustrates a structural diagram of a content streaming system to which an embodiment of the present document is applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] This document may have various modifications and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to a specific embodiment. Commonly used terms in this specification are used merely to describe a specific embodiment, and are not intended to limit the technical ideas of this document. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, the terms "include" or "have" are intended to specify the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

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

[0016] Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same components in the drawings, and duplicated descriptions of the same components may be omitted.

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

[0018] As shown in 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 encoded video / image information or data to the receiving device in a file or streaming form via a digital recording medium or a network.

[0019] The source device may comprise a video source, an encoding device, and a sending unit. The receiving device may comprise a receiving unit, 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 comprise a display unit, which may be a separate device or an external component.

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

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

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

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

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

[0025] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document can be applied to methods disclosed in the versatile video coding (VVC) standard, the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267 or H.268, etc.).

[0026] In this document, various embodiments relating to video / image coding are presented, which, unless otherwise stated, may also be implemented in combination with each other.

[0027] In this document, a video may mean a collection of a series of images over time. A picture generally means a unit showing one image at a particular time, and a subpicture / slice / tile is a unit constituting a part of a picture in coding. A subpicture / slice / tile may include one or more coding tree units (CTUs). A picture may consist of one or more subpictures / slices / tiles. A picture may consist of one or more groups of tiles. A tile group may include one or more tiles. A brick may represent a rectangular region of CTU rows within a tile in a picture. A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick.A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. Additionally, a subpicture may represent a rectangular region of one or more slices within a picture. That is, a subpicture contains one or more slices that collectively cover a rectangular region of a picture. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture.The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set. The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture.A slice includes an integer number of bricks of a picture that maybe exclusively contained in a single NAL unit. A slice may consist of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile. In this document, the terms tile group and slice may be used interchangeably. For example, tile group / tile group header may be referred to as slice / slice header in this document.

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

[0029] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. A unit may include one luma block and two chroma (e.g., cb, cr) blocks. A unit may be used in combination with terms such as block or area, depending on the case. In a general case, an M×N block may include a sample (or sample array) consisting of M columns and N rows, or a set (or array) of transform coefficients.

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

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

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

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

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

[0035] Technical features described separately in one drawing in this specification may be realized separately or simultaneously.

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

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

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

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

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

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

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

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

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

[0045] The prediction signal generated through the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients by applying a transform 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-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to non-square, variable-sized blocks.

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

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

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

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

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

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

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

[0053] As shown in FIG. 3, the decoding device 300 may be configured to 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 predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. The entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured as one hardware component (e.g., a decoder chipset or processor) according to an embodiment. In addition, the memory 360 may include a decoded picture buffer (DPB) and may be configured as a digital recording medium. The hardware components may further include a memory 360 as an internal / external component.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0069] In this document, the quantized transform coefficients and the transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information on the transform coefficient(s), and the information on the transform coefficient(s) may be signaled via a residual coding syntax. A transform coefficient may be derived based on the residual information (or information on the transform coefficient(s)), and a scaled transform coefficient may be derived through an inverse transform (scaling) on ​​the transform coefficient. A residual sample may be derived based on an inverse transform (transform) on the scaled transform coefficient. This may be similarly applied / expressed in other parts of this document.

[0070] FIG. 4 illustrates an exemplary hierarchical structure of coded video information.

[0071] 4 may exemplarily show a video / image coded according to the coding layers and structure of this document. Referring to FIG. 4, the coded video / image may be divided into a video coding layer (VCL) that processes the video / image and the video / image decoding process, a subsystem that transmits and stores the coded information, and a network abstraction layer (NAL) that exists between the VCL and the subsystem and performs functions.

[0072] For example, in the VCL, VCL data including compressed image data (slice data) can be generated, or a parameter set including a Picture Parameter Set (PPS), a Sequence Parameter Set (SPS), a Video Parameter Set (VPS), or a Supplemental Enhancement Information (SEI) message additionally required for the video decoding process can be generated.

[0073] For example, in NAL, a NAL unit can be generated by adding header information (NAL unit header) to a raw byte sequence payload (RBSP) generated in a VCL. In this case, the RBSP can refer to slice data, a parameter set, an SEI message, etc. generated in the VCL. The NAL unit header can include NAL unit type information specified by the RBSP data included in the corresponding NAL unit.

[0074] Also, for example, as shown in Figure 4, NAL units can be classified into VCL NAL units and non-VCL NAL units according to the RBSP generated in the VCL. The VCL NAL unit can refer to a NAL unit that includes information (slice data) on an image, and the non-VCL NAL unit can refer to a NAL unit that includes information (parameter set or SEI message) required for image decoding.

[0075] The above-mentioned VCL NAL unit and Non-VCL NAL unit can be transmitted over a network by attaching header information according to a data standard of a subsystem. For example, the NAL unit can be converted into a predetermined standard data format such as H.266 / VVC file format, real-time transport protocol (RTP), Transport Stream (TS), etc., and can be transmitted over various networks.

[0076] Also, as described above, the NAL unit type of a NAL unit can be specified by the RBSP data structure included in the corresponding NAL unit, and information on the NAL unit type can be stored and signaled in the NAL unit header.

[0077] For example, NAL units can be classified into VCL NAL unit types and Non-VCL NAL unit types depending on whether they contain information about a video (slice data), and VCL NAL unit types can be classified according to the characteristics and type of a picture included in the VCL NAL unit, and Non-VCL NAL unit types can be classified according to the type of a parameter set.

[0078] The following are examples of NAL unit types specified by the types of parameter sets contained in the Non-VCL NAL unit types:

[0079] -APS (Adaptation Parameter Set) NAL unit: Type for NAL units containing APS

[0080] -DPS (Decoding Parameter Set) NAL unit: Type for NAL units containing DPS

[0081] -VPS (Video Parameter Set) NAL unit: Type for NAL units that contain VPS

[0082] -SPS (Sequence Parameter Set) NAL unit: Type for NAL units containing SPS

[0083] -PPS (Picture Parameter Set) NAL unit: Type for NAL units containing PPS

[0084] -PH (Picture header) NAL unit: Type for NAL units containing PH

[0085] The above-mentioned NAL unit types may have syntax information for the NAL unit types, and the syntax information may be stored and signaled in a NAL unit header. For example, the syntax information may be nal_unit_type, and the NAL unit type may be specified in the nal_unit_type value.

[0086] Meanwhile, as described above, one picture may include a plurality of slices, and a slice may include a slice header and slice data. In this case, one picture header may be added (embedded) to a plurality of slices (a set of slice headers and slice data). A picture header (picture header syntax) may include information / parameters that may be commonly applied to pictures. A slice header (slice header syntax) may include information / parameters that may be commonly applied to slices. An APS (APS syntax) or a PPS (PPS syntax) may include information / parameters that may be commonly applied to one or more slices or pictures. An SPS (SPS syntax) may include information / parameters that may be commonly applied to one or more sequences. A VPS (VPS syntax) may include information / parameters that may be commonly applied to a plurality of layers. A DPS (DPS syntax) may include information / parameters that may be commonly applied to an entire image. The DPS may include information / parameters related to the concatenation of a coded video sequence (CVS). In this document, High Level Syntax (HLS) may include at least one of an APS syntax, a PPS syntax, an SPS syntax, a VPS syntax, a DPS syntax, a picture header syntax, and a slice header syntax.

[0087] Meanwhile, as described above, generally, one NAL unit type can be set for one picture, and the NAL unit type can be signaled via nal_unit_type in the NAL unit header of the NAL unit including the slice, as described above. The following table shows an example of NAL unit type codes and NAL unit type classes.

[0088] [Table 1-1]

[0089] [Table 1-2]

[0090] Meanwhile, as described above, a picture may be composed of one or more slices. Also, parameters describing the picture may be signaled in a Picture Header (PH), and parameters describing a slice may be signaled in a Slice Header (SH). The PH may be transmitted in its own NAL unit type. Also, the SH may be present at the beginning of a NAL unit that contains the payload of a slice (i.e., slice data).

[0091] For example, the syntax elements of the signaled PH are as follows:

[0092] [Table 2-1]

[0093] [Table 2-2]

[0094] [Table 2-3]

[0095] [Table 2-4]

[0096] [Table 2-5]

[0097] [Table 2-6]

[0098] On the other hand, the adoption of PH may mean that there should be at least two NAL units for every coded picture. For example, one of the two units is a NAL unit for the PH, and the other is a NAL unit for the coded slice including the slice header (SH) and slice data. This may be problematic for low bitrate bitstreams, since additional NAL units per picture may have a large impact on the bitrate. Therefore, it is preferable that PH has a mode that does not consume new NAL units.

[0099] Therefore, this document proposes the following embodiments to solve the above-mentioned problems. The proposed embodiments can be applied individually or in combination.

[0100] As an example, a scheme is proposed to signal a flag in a high-level parameter set indicating whether a PH NAL unit is present in a coded layer video sequence (CLVS). That is, the flag may indicate whether a picture header is present in a NAL unit (i.e., a PH NAL unit) or a slice header. Here, for example, the CLVS may mean a sequence of picture units (PUs) having the same value of nuh_layer_id. The picture unit is a set of NAL units (etc.) for a coded picture. Also, for example, the high-level parameter set may be a sequence parameter set (SPS), a picture parameter set (PPS), or a slice header. The flag may be referred to as ph_nal_present_flag. Alternatively, the flag may be referred to as a PH NAL present flag.

[0101] In addition, this document proposes an embodiment in which, in relation to the PH NAL present flag, the value of ph_nal_present_flag is constrained to be the same for all SPSs referenced by pictures of the same CVS. The constraint may mean that the value of ph_nal_present_flag must be the same for one coded video sequence in a multi-layer bitstream.

[0102] Also, as an example, it is proposed that if the value of ph_nal_present_flag is equal to 1, then one PH NAL unit exists and the PH NAL unit is associated with a Video Coding Layer (VCL) NAL unit of the picture.

[0103] As another example, when the value of ph_nal_present_flag is equal to 0 (i.e., when a PH NAL unit does not exist for each picture), a solution is proposed in which the following constraints are applied:

[0104] For example, the constraints are as follows:

[0105] First, every picture in CLVS can only contain one slice.

[0106] Second, the PH NAL unit may not exist. The PH syntax table may exist in a slice layer RBSP together with a slice header (SH) and slice data. That is, the PH syntax table may exist in a slice header.

[0107] Third, the PH syntax table and the SH syntax table can start in a byte aligned position. To achieve this, a byte alignment bit can be added between the PH and SH.

[0108] Fourth, the value of picture_header_extension_present_flag in all PPSs that reference the SPS is 0.

[0109] Fifth, all syntax elements that can be present in a PH or SH can be present in a PH that is not an SH.

[0110] Also, as an example, a method of updating access unit detection may be proposed. That is, instead of checking the PH, every new VCL NAL unit may mean a new AU (Access Unit, AU). That is, if the value of ph_nal_present_flag indicates that the PH NAL unit does not exist, the VCL NAL unit including ph_nal_present_flag may mean that the VCL NAL unit for the new AU (i.e., the picture for the new AU) is parsed, not the VCL NAL unit for the previous-order AU (i.e., the picture for the previous-order AU). Thus, if the value of ph_nal_present_flag indicates that the PH NAL unit does not exist, the VCL NAL unit including ph_nal_present_flag is the first VCL NAL unit for the picture of the new AU (e.g., the current picture for which decoding is being performed). Here, an AU may refer to a set of Picture Units (PUs) including coded pictures that belong to different layers and are associated with the same time for output of a Decoded Picture Buffer (DPB). Also, the PU may refer to a set of NAL units including one coded picture that is associated with each other and has a continuous decoding order. That is, the PU may refer to a set of NAL units for one coded picture that is associated with each other and has a continuous decoding order. Meanwhile, when a bitstream is a single layer bitstream that is not a multi-layer bitstream, an AU is the same as a PU.

[0111] The embodiments proposed in this document can be implemented as described below.

[0112] For example, the SPS syntax in which ph_nal_present_flag is signaled proposed in the embodiment of this document is as follows:

[0113] [Table 3]

[0114] Referring to Table 3, the SPS may include ph_nal_present_flag.

[0115] For example, the semantic of the syntax element ph_nal_present_flag is as shown in the table below.

[0116] [Table 4]

[0117] For example, referring to Table 4, the syntax element ph_nal_present_flag may indicate whether there is a NAL unit with a nal_unit_type equal to PH_NUT for each coded picture of the CLVSs that references the SPS. For example, ph_nal_present_flag equal to 1 may indicate that there is a NAL unit with a nal_unit_type equal to PH_NUT for each coded picture of the CLVSs that references the SPS. Also, for example, ph_nal_present_flag equal to 0 may indicate that there is no NAL unit with a nal_unit_type equal to PH_NUH for each coded picture of the CLVSs that references the SPS.

[0118] Also, for example, if the ph_nal_present_flag is 1, the following may be applied.

[0119] -NAL units whose nal_unit_type is PH_NUT (i.e., PH NAL units) do not exist in the CLVS that references the SPS.

[0120] -Each picture in the CLVS that references the SPS can contain one slice.

[0121] -PH can be present in slice layer RBSP.

[0122] On the other hand, Tables 3 and 4 propose a method in which ph_nal_present_flag is signaled to the SPS, but the method shown in Tables 3 and 4 is only one embodiment proposed in this document, and an embodiment in which ph_nal_present_flag is signaled to a PPS or slice header other than the SPS can also be proposed.

[0123] Meanwhile, for example, according to one embodiment proposed in this document, the picture header syntax table and the picture header RBSP can be signaled separately as shown in the following table.

[0124] [Table 5]

[0125] The signaled picture header syntax table is as follows:

[0126] [Table 6-1]

[0127] [Table 6-2]

[0128] [Table 6-3]

[0129] [Table 6-4]

[0130] [Table 6-5]

[0131] [Table 6-6]

[0132] Also, for example, according to one embodiment proposed in this document, the slice layer RBSP can be signaled as follows:

[0133] [Table 7]

[0134] Also, for example, according to one embodiment proposed in this document, one or more of the constraints shown in the following table may be applied.

[0135] [Table 8]

[0136] For example, referring to Table 8, if ph_nal_present_flag is 0, the value of picture_header_extension_present_flag can be 0.

[0137] Also, for example, it is a bitstream conformance requirement that if the following two conditions are all true, the value of pic_rpl_present_flag must be equal to 1:

[0138] - ph_nal_present_flag is 0 and the picture associated with PH is not an IDR picture.

[0139] - ph_nal_present_flag is 0, the picture associated with the PH is an IDR picture, and sps_id_rpl_present_flag is equal to 1.

[0140] Here, the rpl may mean a reference picture list.

[0141] Also, for example, if the value of ph_nal_present_flag is 0, the value of pic_sao_enabled_present_flag must be the same as 1, which is a bitstream conformance requirement.

[0142] Also, for example, if the value of ph_nal_present_flag is 0, the value of pic_alf_enabled_present_flag must be the same as 1, which is a bitstream conformance requirement.

[0143] Also, for example, if the value of ph_nal_present_flag is 0, the value of pic_deblocking_filter_override_present_flag must be the same as 1, which is a bitstream conformance requirement.

[0144] Meanwhile, for example, the embodiment (etc.) can be applied by the following procedure.

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

[0146] 5, an encoding device may generate a NAL unit (etc.) including information for a picture (S500). The encoding device may determine whether a NAL unit for a picture header exists (S510), and may determine whether a NAL unit for the picture header exists (S520).

[0147] For example, if a NAL unit for the picture header exists, the encoding apparatus may generate a bitstream including a VCL NAL unit including a slice header and a PH NAL unit including a picture header (S530).

[0148] On the other hand, for example, if there is no NAL unit for the picture header, the encoding apparatus may generate a bitstream including a VCL NAL unit including a slice header and a picture header (S540), i.e., the picture header syntax structure may be present in the slice header.

[0149] FIG. 6 exemplarily illustrates a decoding procedure according to an embodiment of the present document.

[0150] 6, a decoding device may receive a bitstream including a NAL unit (etc.) (S600). Thereafter, the decoding device may determine whether a NAL unit for a picture header exists (S610).

[0151] For example, if a NAL unit for the picture header exists, the decoding device may decode / reconstruct the picture / slice / block / sample based on the slice header in the VCL NAL unit and the picture header in the PH NAL unit (S620).

[0152] Meanwhile, for example, if there is no NAL unit for the picture header, the decoding device may decode / reconstruct the picture / slice / block / sample based on the slice header and picture header in the VCL NAL unit (S630).

[0153] Here, the (coded) bitstream may include one or more NAL units for decoding a picture. The NAL units may be VCL NAL units or non-VCL NAL units. For example, a VCL NAL unit may include information for a coded slice, and a VCL NAL unit may have a NAL unit type having a NAL unit type class "VCL" as described in Table 1 above.

[0154] Meanwhile, according to the embodiment proposed in this document, the bitstream may include a PH NAL unit (NAL unit for a picture header) or the bitstream may not include a PH NAL unit for the current picture. Information indicating the presence or absence of a PH NAL unit (e.g., ph_nal_present_flag) may be signaled in the HLS (e.g., VPS, DPS, SPS, or slice header, etc.).

[0155] 7 exemplarily illustrates a picture header configuration in a NAL unit depending on the presence or absence of a PH NAL unit. For example, (a) of FIG. 7 may illustrate a case where a PH NAL unit for a current picture is present, and (b) of FIG. 7 may illustrate a case where a PH NAL unit for a current picture is not present but a picture header is included in a VCL NAL unit.

[0156] For example, if the PH NAL unit exists, the picture header may be included in the PH NAL unit. Conversely, if the PH NAL unit does not exist, the picture header may still be constructed but may be included in another NAL unit. For example, the picture header may be included in the VCL NAL unit. The VCL NAL unit may include information for a coded slice. The VCL unit may include a slice header for a coded slice. For example, if a specific slice header includes information that the coded / associated slice is the first slice in a picture or subpicture, the picture header may be included in a specific VCL NAL unit that includes the specific slice header. Or, for example, if the PH NAL unit does not exist, the picture header may be included in a Non-VCL NAL unit such as a PPS NAL unit, an APS NAL unit, etc.

[0157] Figure 8 illustrates a video encoding method by an encoding device according to the present document. The method disclosed in Figure 8 may be performed by the encoding device disclosed in Figure 2. Specifically, for example, S800 to S820 in Figure 8 may be performed by an entropy encoding unit of the encoding device. Also, although not shown, a process of decoding a current picture may be performed by a prediction unit and a residual processing unit of the encoding device.

[0158] The encoding apparatus determines whether a PH NAL (Network Abstraction Layer) unit including a Picture Header (PH) associated with a current picture exists (S800). The encoding apparatus may generate a NAL unit for the current picture. For example, the NAL unit for the current picture may include a PH NAL unit including a PH associated with the current picture and / or a Video Coded Layer (VCL) NAL unit including information on a slice of the current picture (e.g., slice header and slice data). The encoding apparatus may determine whether the PH NAL unit exists. For example, if the PH NAL unit exists, the encoding apparatus may generate a PH NAL unit including a PH associated with the current picture and / or a Video Coded Layer (VCL) NAL unit including information on a slice of the current picture (e.g., slice header and slice data). Also, for example, if the PH NAL unit does not exist, the encoding apparatus may generate a Video Coded Layer (VCL) NAL unit including a PH associated with the current picture and information on one slice of the current picture (e.g., slice header and slice data). Also, for example, if the flag indicates that the PH NAL unit is not present, the current picture may include one slice, where, for example, the PH may include syntax elements indicating parameters for the current picture.

[0159] The encoding apparatus generates a flag indicating whether the PH NAL unit exists based on the result of the determination (S810). The encoding apparatus may generate a flag indicating whether the PH NAL unit exists based on the result of the determination. For example, the flag may indicate whether the PH NAL unit exists. For example, if the value of the flag is 1, the flag may indicate that the PH NAL unit exists, and if the value of the flag is 0, the flag may indicate that the PH NAL unit does not exist. Alternatively, for example, if the value of the flag is 0, the flag may indicate that the PH NAL unit exists, and if the value of the flag is 1, the flag may indicate that the PH NAL unit does not exist. The syntax element of the flag is the above-mentioned ph_nal_present_flag.

[0160] An encoding apparatus encodes the video information including the flag (S820). The encoding apparatus may encode the video information including the flag. The video information may include the flag. Also, for example, the video information may include a high-level syntax, and the flag may be included in the high-level syntax. For example, the high-level syntax may be a Sequence Parameter Set (SPS). Or, for example, the high-level syntax may be a slice header (SH). That is, for example, the flag may be included in the slice header.

[0161] Meanwhile, for example, if the flag indicates that the PH NAL unit exists, the PH may be included in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be included in a slice header associated with the current picture. For example, if the flag indicates that the PH NAL unit exists, the PH may be included in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be included in a VCL NAL unit including a slice header. That is, for example, if the flag indicates that the PH NAL unit exists, the PH may be included in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be included in a slice header. For example, if the flag indicates that the PH NAL unit exists, the video information may include at least one VCL NAL unit including the PH NAL unit including the PH and a slice header associated with the current picture, and if the flag indicates that the PH NAL unit does not exist, the video information may include a VCL NAL unit including the PH and a slice header. Also, for example, if the flag indicates that the PH NAL unit is not present, the video information may not include a PH NAL unit.

[0162] Also, for example, if the flag indicates that the PH NAL unit does not exist, the PH NAL unit may not exist for all pictures in a Coded Layer Video Sequence (CLVS) including the current picture. That is, for example, the value of the flag for the presence or absence of the PH NAL unit for all pictures in a Coded Layer Video Sequence (CLVS) is the same. Also, for example, if the flag indicates that the PH NAL unit does not exist, picture headers for all the pictures in the CLVS may be included in slice headers of all the pictures.

[0163] Meanwhile, for example, AU detection may be modified differently from the existing scheme. For example, a new VCL NAL unit may mean a new AU. That is, for example, if the flag indicates that the PH NAL unit does not exist, the VCL NAL unit including a slice header is the first VCL NAL unit of the current picture (for a new AU (i.e., an AU for the current picture)). For example, the flag may be included in the slice header of the VCL NAL unit. Or, for example, if the flag indicates that the PH NAL unit exists, the first VCL NAL unit of the current picture follows the PH NAL unit, i.e., is signaled next to the PH NAL unit.

[0164] Meanwhile, the encoding apparatus may decode the current picture. For example, the encoding apparatus may decode the current picture based on syntax elements of the PH. For example, the syntax elements of the PH are the syntax elements shown in Table 6 above. The PH may include syntax elements indicating parameters for the current picture, and the encoding apparatus may decode the current picture based on the syntax elements. Also, for example, a VCL NAL unit including the slice header may include slice data for a slice in the current picture, and the encoding apparatus may decode a slice of the current picture based on the slice data. For example, the decoding apparatus may derive a predicted sample and a residual sample of the current picture, and may generate a reconstructed sample / reconstructed picture for the current picture based on the predicted sample and the residual sample.

[0165] Meanwhile, for example, the encoding apparatus may generate and encode prediction information for a block of the current picture. In this case, various prediction methods disclosed herein, such as inter prediction or intra prediction, may be applied. For example, the encoding apparatus may determine whether to perform inter prediction or intra prediction on the block, and may determine a specific inter prediction mode or a specific intra prediction mode based on an RD cost. Depending on the determined mode, the encoding apparatus may derive prediction samples for the block. The prediction information may include prediction mode information for the block. The video information may include the prediction information.

[0166] Also, for example, the encoding apparatus may encode residual information for a block of the current picture.

[0167] For example, the encoding apparatus may derive the residual samples through subtraction of original samples and predicted samples for the block.

[0168] Thereafter, for example, the encoding apparatus may quantize the residual sample to derive a quantized residual sample, derive a transform coefficient based on the quantized residual sample, and generate and encode the residual information based on the transform coefficient. Alternatively, for example, the encoding apparatus may quantize the residual sample to derive a quantized residual sample, transform the quantized residual sample to derive a transform coefficient, and generate and encode the residual information based on the transform coefficient. The video information may include the residual information. Also, for example, the encoding apparatus may encode the video information and output it in the form of a bitstream.

[0169] The encoding apparatus may generate a reconstructed sample and / or a reconstructed picture by adding the predicted sample and the residual sample. As described above, in-loop filtering procedures such as deblocking filtering, SAO and / or ALF procedures may be applied to the reconstructed sample as necessary to improve subjective / objective image quality.

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

[0171] 9 is a schematic diagram of an encoding device for performing a video encoding method according to the present document. The method disclosed in FIG. 8 may be performed by the encoding device disclosed in FIG. 9. Specifically, for example, an entropy encoding unit of the encoding device of FIG. 9 may perform S800 to S820. Although not shown, a process of decoding a current picture may be performed by a prediction unit and a residual processing unit of the encoding device.

[0172] Figure 10 illustrates an outline of a video decoding method by a decoding device according to the present document. The method disclosed in Figure 10 may be performed by the decoding device disclosed in Figure 3. Specifically, for example, steps S1000 to S1010 in Figure 10 may be performed by an entropy decoding unit of the decoding device, and step S1020 in Figure 10 may be performed by a prediction unit and a residual processing unit of the decoding device.

[0173] A decoding apparatus obtains a flag indicating whether or not a Picture Header (PH) Network Abstraction Layer (NAL) unit exists (S1000). The decoding apparatus may obtain the flag indicating whether or not the PH NAL unit exists via a bitstream. For example, the decoding apparatus may obtain video information via a bitstream, and the video information may include the flag. Also, for example, the video information may include a high-level syntax, and the flag may be included in the high-level syntax. For example, the high-level syntax may be a Sequence Parameter Set (SPS). Or, for example, the high-level syntax may be a slice header (SH). That is, for example, the flag may be included in the slice header.

[0174] For example, the flag may indicate whether the PH NAL unit is present. For example, if the value of the flag is 1, the flag may indicate that the PH NAL unit is present, and if the value of the flag is 0, the flag may indicate that the PH NAL unit is not present. Or, for example, if the value of the flag is 0, the flag may indicate that the PH NAL unit is present, and if the value of the flag is 1, the flag may indicate that the PH NAL unit is not present. The syntax element of the flag is the above-mentioned ph_nal_present_flag.

[0175] The decoding device acquires the PH based on the flag (S1010). The decoding device may acquire the PH in the PH NAL unit or a VCL NAL unit including a slice header based on the flag. That is, for example, the decoding device may acquire the PH in the PH NAL unit or a slice header based on the flag.

[0176] For example, if the flag indicates that the PH NAL unit exists, the PH may be obtained in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be obtained in a slice header. For example, if the flag indicates that the PH NAL unit exists, the PH may be included in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be included in a VCL NAL unit including a slice header. That is, for example, if the flag indicates that the PH NAL unit exists, the PH may be included in the PH NAL unit, and if the flag indicates that the PH NAL unit does not exist, the PH may be included in a slice header. For example, if the flag indicates that the PH NAL unit exists, the video information may include the PH NAL unit including the PH and a VCL NAL unit including a slice header, and if the flag indicates that the PH NAL unit does not exist, the video information may include a VCL NAL unit including the PH and a slice header. Also, for example, if the flag indicates that the PH NAL unit is not present, the video information may not include a PH NAL unit.

[0177] Also, for example, if the flag indicates that the PH NAL unit does not exist, the current picture associated with the PH may include one slice, that is, for example, if the flag indicates that the PH NAL unit does not exist, the video information may include a VCL NAL unit including a slice header for one slice in the current picture.

[0178] Also, for example, if the flag indicates that the PH NAL unit exists, at least one VCL NAL unit including the PH NAL unit and a slice header for the current picture may be obtained via a bitstream. That is, for example, if the flag indicates that the PH NAL unit exists, the video information may include a VCL NAL unit including the PH NAL unit for the current picture and a slice header for at least one slice in the current picture.

[0179] Also, for example, if the flag indicates that the PH NAL unit does not exist, the PH NAL unit may not exist for all pictures in a Coded Layer Video Sequence (CLVS) including the current picture. That is, for example, the value of the flag for the presence or absence of the PH NAL unit for all pictures in a Coded Layer Video Sequence (CLVS) is the same. Also, for example, if the flag indicates that the PH NAL unit does not exist, picture headers for all the pictures in the CLVS may be included in slice headers of all the pictures.

[0180] Meanwhile, for example, AU detection may be modified differently from the existing scheme. For example, a new VCL NAL unit may mean a new AU. That is, for example, if the flag indicates that the PH NAL unit does not exist, the VCL NAL unit including a slice header is the first VCL NAL unit of the current picture (for a new AU (i.e., an AU for the current picture)). For example, the flag may be included in the slice header of the VCL NAL unit. Or, for example, if the flag indicates that the PH NAL unit exists, the first VCL NAL unit of the current picture follows the PH NAL unit, i.e., is signaled next to the PH NAL unit.

[0181] The decoding apparatus decodes a current picture associated with the PH based on the PH (S1020). The decoding apparatus may decode the current picture based on syntax elements of the PH. For example, the syntax elements of the PH are the syntax elements shown in Table 6 above. The PH may include syntax elements indicating parameters for the current picture, and the decoding apparatus may decode the current picture based on the syntax elements. Also, for example, a VCL NAL unit including the slice header may include slice data for a slice in the current picture, and the decoding apparatus may decode a slice of the current picture based on the slice data. For example, the decoding apparatus may derive a predicted sample and a residual sample of the current picture, and may generate a reconstructed sample / reconstructed picture for the current picture based on the predicted sample and the residual sample.

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

[0183] Figure 11 is a schematic diagram of a decoding device for performing the video decoding method according to the present document. The method disclosed in Figure 10 can be performed by the decoding device disclosed in Figure 11. Specifically, for example, the entropy decoding unit of the decoding device of Figure 11 can perform S1000 to S1010 of Figure 10, and the prediction unit and residual processing unit of the decoding device of Figure 11 can perform S1020 of Figure 10.

[0184] According to the detailed description in this document, a flag can be signaled for whether a PH NAL unit is present, and the NAL unit can be adaptively adjusted to the bit rate of the bitstream based on the flag, thereby improving overall coding efficiency.

[0185] In addition, according to this document, it is possible to set constraints on the number of slices in a current picture and constraints on the presence of PH NAL units for related pictures based on a flag indicating whether a PH NAL unit exists, thereby adaptively adjusting NAL units to the bitrate of the bitstream to improve overall coding efficiency.

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

[0187] The embodiments described in this document may be implemented and executed on a processor, a microprocessor, a controller, or a chip. For example, the functional units illustrated in the drawings may be implemented and executed on a computer, a processor, a microprocessor, a controller, or a chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored in a digital recording medium.

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

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

[0190] Also, the embodiments of the present document may be implemented in a computer program product by program code, which may be executed by a computer according to the embodiments of the present document. The program code may be stored on a computer readable carrier.

[0191] FIG. 12 exemplarily illustrates a structural diagram of a content streaming system to which the embodiments of this document are applied.

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

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

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

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

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

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

[0198] The claims described in this specification may be combined in various ways. For example, the technical features of the method claims in this specification may be combined and realized as an apparatus, the technical features of the apparatus claims in this specification may be combined and realized as a method, the technical features of the method claims and the technical features of the apparatus claims in this specification may be combined and realized as an apparatus, and the technical features of the method claims and the technical features of the apparatus claims in this specification may be combined and realized as a method.

Claims

1. 1. A method of video decoding performed by a decoding device, comprising: obtaining a flag for whether a Picture Header (PH) Network Abstraction Layer (NAL) unit is present; obtaining a PH for a current picture from the PH NAL unit based on the flag indicating that the PH NAL unit is present; obtaining the PH for the current picture from a slice header for the current picture based on the flag indicating that the PH NAL unit is not present; and decoding the current picture based on the PH. The method of claim 1, wherein the current picture includes only one slice based on the flag indicating that the PH NAL unit is not present.

2. 2. The method of claim 1, wherein the PH NAL unit and at least one Video Coding Layer (VCL) NAL unit including the slice header for the current picture are obtained via a bitstream based on the flag indicating that the PH NAL unit is present.

3. The method of claim 1 , wherein based on the flag indicating that the PH NAL unit is not present, a PH NAL unit is not present for all pictures in a Coded Layer Video Sequence (CLVS) that includes the current picture.

4. The method of claim 3 , wherein based on the flag indicating that the PH NAL unit is not present, picture headers for all of the pictures in the CLVS are included in slice headers of all of the pictures.

5. 1. A method of video encoding performed by an encoding device, comprising: determining whether a PH Network Abstraction Layer (NAL) unit including a Picture Header (PH) associated with the current picture exists; generating the PH NAL unit including the PH based on the determination that the PH NAL unit exists; generating a slice header for the current picture that includes the PH based on the determination that the PH NAL unit is not present; generating a flag for whether the PH NAL unit exists based on a result of the determination; encoding video information including the flag; The method of claim 1, wherein the current picture includes only one slice based on the flag indicating that the PH NAL unit is not present.

6. 6. The method of claim 5, wherein, based on the flag indicating that the PH NAL unit is present, the video information includes the PH NAL unit and at least one Video Coding Layer (VCL) NAL unit including the slice header associated with the current picture.

7. The method of claim 5 , wherein based on the flag indicating that the PH NAL unit is not present, a PH NAL unit is not present for all pictures in a Coded Layer Video Sequence (CLVS) that includes the current picture.

8. The method of claim 7 , wherein based on the flag indicating that the PH NAL unit is not present, picture headers for all of the pictures in the CLVS are included in slice headers of all of the pictures.

9. A method for transmitting data for video, comprising: The bit stream of video information is determining whether a PH Network Abstraction Layer (NAL) unit including a Picture Header (PH) associated with the current picture exists; generating the PH NAL unit including the PH based on the determination that the PH NAL unit exists; generating a slice header for the current picture that includes the PH based on the determination that the PH NAL unit is not present; generating a flag for whether the PH NAL unit exists based on a result of the determination; encoding the video information including the flag; and generating the signal based on the transmitting the data including the bitstream; The method of claim 1, wherein the current picture includes only one slice based on the flag indicating that the PH NAL unit is not present.