Image coding / decoding method and apparatus based on hybrid NAL unit type, and method for transmitting a bitstream.
The hybrid NAL unit type-based image encoding/decoding method improves efficiency in handling high-resolution images by dividing them into subpictures with different NAL unit types, addressing the cost challenges of high-quality image transmission and storage.
Patent Information
- Application Number
- JP2026208192
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-03-05
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
AI Technical Summary
The increasing demand for high-resolution, high-quality images leads to a significant increase in transmission and storage costs due to the large amount of information required, necessitating high-efficiency image compression technologies.
An image encoding/decoding method and apparatus based on a hybrid NAL unit type, which divides a picture into subpictures with different NAL unit types and uses flag information to treat them as a single picture, enabling efficient encoding and decoding.
This approach enhances encoding/decoding efficiency and allows for improved transmission and storage of high-resolution, high-quality images by optimizing the use of NAL unit types in image compression.
Smart Images

Figure 2026186093000001_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an image encoding / decoding method and apparatus, and more particularly, to an image encoding / decoding method and apparatus based on a hybrid NAL unit type, and a method of transmitting a bitstream generated by the image encoding method / apparatus of the present disclosure.
Background Art
[0002] Recently, demand for high-resolution, high-quality images, for example, HD (High Definition) images and UHD (Ultra High Definition) images, is increasing in various fields. As image data has high resolution and high quality, the amount of transmitted information or bits relatively increases as compared to conventional image data. An increase in the amount of transmitted information or bits causes an increase in transmission cost and storage cost.
[0003] Accordingly, high-efficiency image compression technology for effectively transmitting, storing and reproducing information on high-resolution, high-quality images is required.
Summary of the Invention
Problems to be Solved by the Invention
[0004] An object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.
[0005] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus based on a hybrid NAL unit type.
[0006] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus based on two or more subpictures having different NAL unit types.
[0007] Another object of the present disclosure is to provide a computer-readable recording medium storing a bitstream generated by an image encoding method or apparatus according to the present disclosure.
[0008] Furthermore, this disclosure aims to provide a computer-readable recording medium that stores a bitstream received by the image decoding device provided herein, decoded, and used for image restoration.
[0009] Furthermore, this disclosure aims to provide a method for transmitting a bitstream generated by an image encoding method or apparatus according to this disclosure.
[0010] The technical problems that this disclosure seeks to solve are not limited to those described above, and other technical problems not mentioned above will be clearly understood by a person with ordinary skill in the art to which this disclosure pertains from the following description. [Means for solving the problem]
[0011] A method for decoding an image according to one aspect of the present disclosure includes the steps of: obtaining VCL (video coding layer) NAL (network abstraction layer) unit type information of a current picture and first flag information relating to whether or not the subpictures included in the current picture are treated as a single picture from a bitstream; determining the NAL unit type of each of a plurality of slices in the current picture based on the obtained VCL NAL unit type information; and decoding the plurality of slices based on the determined NAL unit type and the first flag information, wherein the current picture includes two or more subpictures based on the fact that at least a portion of the plurality of slices have different NAL unit types, and the first flag information may have a predetermined value indicating that each of the two or more subpictures is treated as a single picture based on the fact that at least a portion of the plurality of slices have different NAL unit types.
[0012] An image decoding apparatus according to another aspect of the present disclosure includes a memory and at least one processor, the at least one processor obtaining VCL (video coding layer) NAL (network abstraction layer) unit type information of the current picture and first flag information regarding whether the subpictures included in the current picture are treated as a single picture from a bitstream, determining the NAL unit type of each of a plurality of slices in the current picture based on the obtained VCL NAL unit type information, decoding the plurality of slices based on the determined NAL unit type and the first flag information, the current picture includes two or more subpictures based on at least some of the plurality of slices having different NAL unit types, and the first flag information may have a predetermined value indicating that each of the two or more subpictures is treated as a single picture based on at least some of the plurality of slices having different NAL unit types.
[0013] A picture encoding method according to another aspect of the present disclosure includes the steps of: dividing a current picture into one or more subpictures; determining the network abstraction layer (NAL) unit type of each of a plurality of slices contained in the one or more subpictures; and encoding the plurality of slices based on the determined NAL unit types, wherein the current picture is divided into two or more subpictures based on the fact that at least a portion of the plurality of slices have different NAL unit types, and each of the two or more subpictures can be treated as a single picture based on the fact that at least a portion of the plurality of slices have different NAL unit types.
[0014] A computer-readable recording medium according to another aspect of the present disclosure can store a bitstream generated by an image encoding method or image encoding apparatus of the present disclosure.
[0015] Another aspect of the transmission method of the present disclosure can transmit a bitstream generated by an image encoding device or image encoding method of the present disclosure.
[0016] The features described above, which are a brief summary of this disclosure, are merely illustrative examples of the detailed description of this disclosure described below and do not limit the scope of this disclosure. [Effects of the Invention]
[0017] According to this disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.
[0018] Furthermore, according to this disclosure, an image coding / decoding method and apparatus based on a hybrid NAL unit type can be provided.
[0019] Furthermore, according to this disclosure, an image encoding / decoding method and apparatus based on two or more subpictures having different NAL unit types can be provided.
[0020] Furthermore, this disclosure provides a method for transmitting a bitstream generated by an image encoding method or apparatus according to this disclosure.
[0021] Furthermore, according to this disclosure, a recording medium storing a bitstream generated by the image encoding method or apparatus according to this disclosure can be provided.
[0022] Furthermore, this disclosure may provide a recording medium that stores a bitstream received by the image decoding device provided for this disclosure, decoded, and used for image reconstruction.
[0023] The effects obtained from this disclosure are not limited to those described above, and other effects not mentioned above will be clearly understood by a person with ordinary skill in the art to which this disclosure pertains from the following description. [Brief explanation of the drawing]
[0024] [Figure 1] It is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied. [Figure 2] It is a diagram schematically illustrating an image encoding device to which an embodiment according to the present disclosure can be applied. [Figure 3] It is a diagram schematically illustrating an image decoding device to which an embodiment according to the present disclosure can be applied. [Figure 4] It is a flowchart schematically illustrating an image decoding procedure to which an embodiment according to the present disclosure can be applied. [Figure 5] It is a flowchart schematically illustrating an image encoding procedure to which an embodiment according to the present disclosure can be applied. [Figure 6] It is a diagram illustrating an example of a hierarchical structure for coded images / videos. [Figure 7] It is a diagram illustrating a Picture Parameter Set (PPS) according to an embodiment of the present disclosure. [Figure 8] It is a diagram illustrating a slice header according to an embodiment of the present disclosure. [Figure 9] It is a diagram illustrating an example of a sub-picture. [Figure 10] It is a diagram illustrating an example of a picture having a mixed NAL unit type. [Figure 11] It is a diagram illustrating an example of a Picture Parameter Set (PPS) according to an embodiment of the present disclosure. [Figure 12] It is a diagram illustrating an example of a Sequence Parameter Set (SPS) according to an embodiment of the present disclosure. [Figure 13] It is a diagram for explaining the decoding order and output order for each picture type. [Figure 14] It is a flowchart illustrating a method for determining the NAL unit type of a current picture according to an embodiment of the present disclosure. [Figure 15] It is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure. [Figure 16]This is a flowchart showing an image decoding method according to one embodiment of the present disclosure. [Figure 17] This figure illustrates a content streaming system to which the embodiments described herein can be applied. [Modes for carrying out the invention]
[0025] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings, so that they can be easily implemented by a person with ordinary skill in the art to which the present disclosure pertains. However, the present disclosure can be implemented in a variety of different forms and is not limited to the embodiments described herein.
[0026] In describing embodiments of this disclosure, if it is determined that a specific description of a known configuration or function would obscure the gist of this disclosure, such detailed description will be omitted. In the drawings, parts unrelated to the description of this disclosure will be omitted, and similar parts will be denoted by the same reference numerals.
[0027] In this disclosure, when one component is described as being “connected,” “joined,” or “linked” to another component, this can include not only direct connections but also indirect connections where another component exists between them. Furthermore, when one component is described as “containing” or “having” another component, this means, unless otherwise stated to the contrary, that it may include another component rather than excluding it.
[0028] In this disclosure, terms such as "first," "second," etc., are used solely for the purpose of distinguishing one component from another, and do not limit the order or importance of the components unless otherwise specified. Therefore, within the scope of this disclosure, a first component in one embodiment may be called a second component in another embodiment, and similarly, a second component in one embodiment may be called a first component in another embodiment.
[0029] In this disclosure, components that are distinguished from each other are used to clearly describe their respective characteristics and do not necessarily mean that the components are separate. In other words, multiple components may be integrated to constitute a single hardware or software unit, or a single component may be distributed to constitute multiple hardware or software units. Therefore, such integrated or distributed embodiments are also included in the scope of this disclosure, without needing to be specifically mentioned.
[0030] In this disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, embodiments consisting of a subset of the components described in one embodiment are also included in the scope of this disclosure. Furthermore, embodiments that include additional components in addition to the components described in various embodiments are also included in the scope of this disclosure.
[0031] This disclosure relates to the encoding and decoding of images, and the terms used in this disclosure may have their ordinary meanings in the art to which this disclosure pertains, unless otherwise defined herein.
[0032] In this disclosure, "picture" generally means a unit representing any one image within a specific time period, and "slice / tile" is an encoding unit that constitutes part of a picture, and a single picture can consist of one or more slices / tiles. Furthermore, a slice / tile may contain one or more CTUs (coding tree units).
[0033] In this disclosure, “pixel” or “pel” may mean the smallest unit that constitutes a picture (or image). The term “sample” may also be used as a counterpart to pixel. A sample may generally represent a pixel or a pixel value, or it may represent only the pixel / pixel value of the luma component, or only the pixel / pixel value of the chroma component.
[0034] In this disclosure, “unit” can refer to a basic unit of image processing. A unit may include at least one of a specific region of a picture and information associated with that region. A unit may be used interchangeably with terms such as “sample array,” “block,” or “area,” as it may be used. Generally, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients consisting of M columns and N rows.
[0035] In this disclosure, “current block” can mean any one of the following: “current coding block,” “current coding unit,” “block to encode,” “block to decode,” or “block to process.” If prediction is performed, “current block” can mean “current prediction block” or “block to predict.” If transformation (inverse transformation) / quantization (inverse quantization) is performed, “current block” can mean “current transformation block” or “block to transform.” If filtering is performed, “current block” can mean “block to filter.”
[0036] Furthermore, in this disclosure, "current block" may mean the block containing all luma component blocks and chroma component blocks, or the "luma block of the current block," unless there is an explicit mention of a chroma block. The luma component block of the current block may be expressed with an explicit mention of a luma component block, such as "luma block" or "current luma block." Similarly, the chroma component block of the current block may be expressed with an explicit mention of a chroma component block, such as "chroma block" or "current chroma block."
[0037] In this disclosure, " / " and "," may be interpreted as "and / or." For example, "A / B" and "A, B" may be interpreted as "A and / or B." Also, "A / B / C" and "A, B, C" may mean "at least one of A, B and / or C."
[0038] In this disclosure, “or” may be interpreted as “and / or.” For example, “A or B” may mean 1) “A” only, 2) “B” only, or 3) “A and B.” Alternatively, in this disclosure, “or” may mean “additionally or alternatively.”
[0039] Overview of the video coding system
[0040] Figure 1 is a schematic diagram showing a video coding system to which the embodiments of this disclosure can be applied.
[0041] A video coding system according to one embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 can transmit encoded video and / or image information or data to the decoding device 20 via a digital storage medium or network in file or streaming format.
[0042] An encoding device 10 according to one embodiment may include a video source generation unit 11, an encoding unit 12, and a transmission unit 13. A decoding device 20 according to one embodiment may include a receiving unit 21, a decoding unit 22, and a rendering unit 23. The encoding unit 12 may be called a video / image encoding unit, and the decoding unit 22 may be called a video / image decoding unit. The transmission unit 13 may be included in the encoding unit 12. The receiving unit 21 may be included in the decoding unit 22. The rendering unit 23 may also include a display unit, which may be configured as a separate device or external component.
[0043] The video source generation unit 11 can acquire video / images through processes such as video / image capture, synthesis, or generation. The video source generation unit 11 may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, or a video / image archive containing previously captured video / images. The video / image generation device may include, for example, a computer, tablet, and smartphone, and may generate video / images (electronically). For example, virtual video / images may be generated via a computer, in which case the video / image capture process may be replaced by a process in which the relevant data is generated.
[0044] The encoding unit 12 can encode the input video / image. The encoding unit 12 can perform a series of steps such as prediction, transformation, and quantization for compression and encoding efficiency. The encoding unit 12 can output the encoded data (encoded video / image information) in bitstream format.
[0045] The transmission unit 13 can transmit encoded video / image information or data, output in bitstream format, to the receiving unit 21 of the decoding device 20 via a digital storage medium or network in file or streaming format. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray®, HDD, and SSD. The transmission unit 13 may include elements for generating media files via a predetermined file format and elements for transmission via a broadcast / communication network. The receiving unit 21 can extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit 22.
[0046] The decoding unit 22 can decode the video / image by performing a series of steps such as inverse quantization, inverse transform, and prediction, corresponding to the operation of the encoding unit 12.
[0047] The rendering unit 23 can render the decoded video / image. The rendered video / image can be displayed via the display unit.
[0048] Overview of Image Encoding Devices
[0049] Figure 2 is a schematic diagram showing an image encoding device to which the embodiments of this disclosure can be applied.
[0050] As shown in Figure 2, the image coding device 100 may include an image splitting unit 110, a subtraction unit 115, a transformation unit 120, a quantization unit 130, an inverse quantization unit 140, an inverse transformation unit 150, an addition unit 155, a filtering unit 160, a memory 170, an inter-prediction unit 180, an intra-prediction unit 185, and an entropy coding unit 190. The inter-prediction unit 180 and the intra-prediction unit 185 can together be called the "prediction unit". The transformation unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transformation unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115.
[0051] All or at least some of the multiple components constituting the image encoding device 100 can be implemented by a single hardware component (e.g., an encoder or processor) depending on the embodiment. Furthermore, the memory 170 may include a DPB (decoded picture buffer) and can be implemented by a digital storage medium.
[0052] The image splitting unit 110 can split an input image (or picture, frame) input to the image encoding device 100 into one or more processing units. For example, the processing units may be called coding units (CUs). Coding units can be obtained by recursively splitting a coding tree unit (CTU) or the largest coding unit (LCU) using a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, a single coding unit can be split into multiple coding units of deeper depth based on a quad-tree structure, a binary-tree structure and / or a ternary-tree structure. For the splitting of coding units, a quad-tree structure may be applied first, followed by a binary-tree structure and / or a ternary-tree structure. Based on the final coding unit that cannot be further split, the coding procedure according to this disclosure can be performed. The largest coding unit can be used as the final coding unit, or a lower-depth coding unit obtained by dividing the largest coding unit can be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration, as described later. As another example, the processing units of the coding procedure may be prediction units (PU) or transformation units (TU). The prediction unit and the transformation unit may be divided or partitioned from the final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit that derives transformation coefficients and / or a unit that derives a residual signal from transformation coefficients.
[0053] The prediction unit (inter-prediction unit 180 or intra-prediction unit 185) can make predictions for the block to be processed (current block) and generate a predicted block that includes prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block or on a CU basis. The prediction unit can generate various information regarding the prediction of the current block and transmit it to the entropy coding unit 190. The prediction information can be encoded by the entropy coding unit 190 and output in bitstream format.
[0054] The intra-prediction unit 185 can predict the current block by referring to a sample in the current picture. The referenced sample may be located in the vicinity (neighbor) or at a distance from the current block, according to the intra-prediction mode and / or intra-prediction technique. The intra-prediction mode may include multiple non-directional modes and multiple directional modes. The non-directional modes may include, for example, a DC mode and a Planar mode. The directional modes may include, for example, 33 or 65 directional prediction modes, depending on the degree of fineness of the prediction direction. However, this is merely an example, and more or fewer directional prediction modes may be used depending on the settings. The intra-prediction unit 185 may also determine the prediction mode to be applied to the current block using the prediction modes applied to the surrounding blocks.
[0055] The interprediction unit 180 can derive a predicted block relative to the current block based on a reference block (reference sample array) identified by motion vectors on the reference picture. In this case, in order to reduce the amount of motion information transmitted in interprediction mode, motion information can be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between the surrounding blocks and the current block. The motion information may include motion vectors and reference picture indices. The motion information may further include interprediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of interprediction, the surrounding blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture containing the reference block and the reference picture containing the temporal neighboring block may be the same or different from each other. The temporal neighboring block may be called a collocated reference block, collocated CU (colCU), etc. The reference picture containing the temporal neighboring block may be called a collocated picture (colPic). For example, the interpretation unit 180 can construct a motion information candidate list based on surrounding blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Interpretation can be performed based on various prediction modes; for example, in skip mode and merge mode, the interpretation unit 180 can use the motion information of surrounding blocks as the motion information of the current block. In skip mode, unlike merge mode, the residual signal may not be transmitted.In motion vector prediction (MVP) mode, the motion vector of the surrounding block is used as the motion vector predictor, and the motion vector of the current block can be signaled by encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference can represent the difference between the motion vector of the current block and the motion vector predictor.
[0056] The prediction unit can generate a prediction signal based on various prediction methods and / or techniques described later. For example, the prediction unit can apply intra-prediction or inter-prediction to predict the current block, and can also apply intra-prediction and inter-prediction simultaneously. A prediction method that applies intra-prediction and inter-prediction simultaneously to predict the current block can be called CIIP (combined inter and intra prediction). The prediction unit can also perform intra-block copy (IBC) to predict the current block. Intra-block copy can be used for content image / video coding such as in games, for example, in SCC (screen content coding). IBC is a method of predicting the current block using a reference block that has already been restored in the current picture at a predetermined distance from the current block. When IBC is applied, the position of the reference block in the current picture can be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction within the current picture, but it can be performed similarly to inter-prediction in that it derives the reference block within the current picture. In other words, IBC can use at least one of the interpretation techniques described in this disclosure.
[0057] The predicted signal generated by the prediction unit can be used to generate a reconstructed signal or a residual signal. The subtraction unit 115 can generate a residual signal (residual block, residual sample array) by subtracting the predicted signal output from the prediction unit (predicted block, predicted sample array) from the input image signal (original block, original sample array). The generated residual signal can be transmitted to the conversion unit 120.
[0058] The transformation unit 120 can generate transformation coefficients by applying transformation techniques to the residual signal. For example, the transformation techniques may include at least one of the following: DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karhunen-Loeve Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform). Here, GBT refers to a transformation obtained from a graph when the relationship information between pixels is represented by this graph. CNT refers to a transformation obtained by generating a prediction signal using all previously reconstructed pixels. The transformation process can be applied to pixel blocks of the same size and square shape, or to non-square, variable-sized blocks.
[0059] The quantization unit 130 can quantize the conversion coefficients and transmit them to the entropy coding unit 190. The entropy coding unit 190 can encode the quantized signal (information about the quantized conversion coefficients) and output it in bitstream format. The information about the quantized conversion coefficients can be called residual information. The quantization unit 130 can rearrange the block-form quantized conversion coefficients into a one-dimensional vector format based on the coefficient scan order, and can also generate information about the quantized conversion coefficients based on the one-dimensional vector format of the quantized conversion coefficients.
[0060] The entropy coding unit 190 can perform various coding methods, such as exponential Golomb, CAVLC (context-adaptive variable length coding), and CABAC (context-adaptive binary arithmetic coding). In addition to the quantized conversion coefficients, the entropy coding unit 190 can also encode information necessary for video / image restoration (e.g., the values of syntax elements) together or separately. The encoded information (e.g., encoded video / image information) can be transmitted or stored in bitstream format in units of NAL (network abstraction layer) units. The video / image information may further include information about various parameter sets, such as adaptive parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). The video / image information may also further include general constraint information. The signaling information, transmitted information and / or syntax elements referred to in this disclosure may be encoded via the encoding procedure described above and included in the bitstream.
[0061] The bitstream can be transmitted over a network or stored on a digital storage medium. Here, the network may include broadcast networks and / or communication networks, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. A transmission unit (not shown) for transmitting the signal output from the entropy encoding unit 190 and / or a storage unit (not shown) for storing it may be provided as an internal / external element of the image encoding device 100, or the transmission unit may be provided as a component of the entropy encoding unit 190.
[0062] The quantized conversion coefficients output from the quantization unit 130 can be used to generate a residual signal. For example, by applying inverse quantization and inverse transformation to the quantized conversion coefficients via the inverse quantization unit 140 and the inverse transformation unit 150, a residual signal (residual block or residual sample) can be reconstructed.
[0063] The adder 155 can 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 180 or the intra-prediction unit 185. If there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the reconstructed block. The adder 155 may be called the reconstruction unit or the reconstructed block generation unit. The generated reconstructed signal can be used for intra-prediction of the next block to be processed in the current picture, or, as described later, for inter-prediction of the next picture after filtering.
[0064] The filtering unit 160 can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit 160 can apply various filtering methods to the restored picture to generate a modified restored picture, and the modified restored picture can be stored in the memory 170, specifically in the DPB of the memory 170. The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter. The filtering unit 160 can generate various filtering-related information, as will be described later in the explanation of each filtering method, and transmit it to the entropy coding unit 190. The filtering-related information can be encoded by the entropy coding unit 190 and output in bitstream format.
[0065] The corrected restored picture transmitted to memory 170 can be used as a reference picture in the interpretation unit 180. When interpretation is applied via this, the image encoding device 100 can avoid prediction mismatches between the image encoding device 100 and the image decoding device, and can also improve encoding efficiency.
[0066] The DPB in memory 170 can store the modified restored picture for use as a reference picture in the inter-prediction unit 180. Memory 170 can store motion information of blocks from which motion information in the current picture has been derived (or encoded) and / or motion information of blocks in the picture that have already been restored. The stored motion information can be transmitted to the inter-prediction unit 180 for use as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory 170 can store restored samples of restored blocks in the current picture and transmit them to the intra-prediction unit 185.
[0067] Overview of the image decoding device
[0068] Figure 3 is a schematic diagram showing an image decoding apparatus to which the embodiments of this disclosure can be applied.
[0069] As shown in Figure 3, the image decoding device 200 can be configured to include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an additive unit 235, a filtering unit 240, a memory 250, an inter-prediction unit 260, and an intra-prediction unit 265. The inter-prediction unit 260 and the intra-prediction unit 265 can together be called the "prediction unit". The inverse quantization unit 220 and the inverse transform unit 230 can be included in the residual processing unit.
[0070] All or at least some of the multiple components constituting the image decoding device 200 can be implemented by a single hardware component (e.g., a decoder or processor) according to the embodiment. Furthermore, the memory 170 may include a DPB and can be implemented by a digital storage medium.
[0071] An image decoding device 200, having received a bitstream containing video / image information, can restore the image by executing a process corresponding to the process performed in the image encoding device 100 in Figure 2. For example, the image decoding device 200 can perform decoding using the processing unit applied in the image encoding device. Therefore, the decoding processing unit can be, for example, a coding unit. The coding unit can be obtained by dividing a coding tree unit or a maximum coding unit. The restored image signal decoded and output via the image decoding device 200 can then be reproduced via a playback device (not shown).
[0072] The image decoding device 200 can receive the signal output from the image encoding device 2 in bitstream format. The received signal can be decoded via the entropy decoding unit 210. For example, the entropy decoding unit 210 can parse the bitstream to derive information necessary for image restoration (or picture restoration) (e.g., video / image information). The video / image information may further include information about various parameter sets, such as adaptive parameter set (APS), picture parameter set (PPS), sequence parameter set (SPS), or video parameter set (VPS). The video / image information may also further include general constraint information. The image decoding device may further use the parameter set information and / or the general constraint information to decode the image. The signaling information, received information, and / or syntax elements referred to in this disclosure can be obtained from the bitstream by decoding via the decoding procedure. For example, the entropy decoding unit 210 can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values of syntax elements necessary for image reconstruction and the quantized values of conversion coefficients related to the residual. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element from the bitstream, determines a context model using the syntax element information to be decoded, the decoding information of the surrounding blocks and the blocks to be decoded, or the symbol / bin information decoded in a previous step, predicts the probability of bin occurrence based on the determined context model, and performs arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. At this time, after determining the context model, the CABAC entropy decoding method can update the context model using the decoded symbol / bin information for the context model of the next symbol / bin.Of the information decoded by the entropy decoding unit 210, information related to prediction is provided to the prediction unit (inter-prediction unit 260 and intra-prediction unit 265), and the residual values that have undergone entropy decoding in the entropy decoding unit 210, i.e., quantized conversion coefficients and related parameter information, can be input to the inverse quantization unit 220. In addition, of the information decoded by the entropy decoding unit 210, information related to filtering can be provided to the filtering unit 240. On the other hand, a receiving unit (not shown) that receives signals output from the image coding device may be further provided as an internal / external element of the image decoding device 200, or the receiving unit may be provided as a component of the entropy decoding unit 210.
[0073] On the other hand, the image decoding device according to this disclosure may be called a video / image / picture decoding device. The image decoding device may also include an information decoder (video / image / picture information decoder) and / or a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder may include at least one of an inverse quantization unit 220, an inverse transform unit 230, an adder unit 235, a filtering unit 240, a memory 250, an inter-prediction unit 260, and an intra-prediction unit 265.
[0074] The inverse quantization unit 220 can inverse quantize the quantized transformation coefficients and output the transformation coefficients. The inverse quantization unit 220 can rearrange the quantized transformation coefficients in a two-dimensional block format. In this case, the rearrangement can be performed based on the coefficient scan order performed by the image encoding device. The inverse quantization unit 220 can perform inverse quantization on the quantized transformation coefficients using quantization parameters (e.g., quantization step size information) to obtain the transformation coefficients.
[0075] The inverse conversion unit 230 can inversely convert the conversion coefficients to obtain residual signals (residual blocks, residual sample arrays).
[0076] The prediction unit can make predictions for the current block and generate a predicted block containing prediction samples for the current block. Based on the prediction information output from the entropy decoding unit 210, the prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block and can determine a specific intra / inter-prediction mode (prediction technique).
[0077] As described in the explanation of the prediction unit of the image coding device 100, the prediction unit can generate prediction signals based on various prediction methods (techniques) described later.
[0078] The intra-prediction unit 265 can predict the current block by referring to the samples in the current picture. The description of the intra-prediction unit 185 can also be applied to the intra-prediction unit 265.
[0079] The interprediction unit 260 can derive a predicted block relative to the current block based on a reference block (reference sample array) identified by motion vectors on a reference picture. In this case, to reduce the amount of motion information transmitted in interprediction mode, motion information can be predicted in block, sub-block, or sample units based on the correlation of motion information between surrounding blocks and the current block. The motion information may include motion vectors and reference picture indices. The motion information may further include interprediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). In interprediction, surrounding blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the interprediction unit 260 can construct a motion information candidate list based on surrounding blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Interprediction can be performed based on various prediction modes (techniques), and the prediction information may include information indicating the mode (technique) of interprediction for the current block.
[0080] The adder 235 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to the predicted signal (predicted block, predicted sample array) output from the prediction unit (including the inter-prediction unit 260 and / or intra-prediction unit 265). If there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the reconstructed block. The description of the adder 155 also applies to the adder 235. The adder 235 is sometimes called the reconstruction unit or reconstructed block generation unit. The generated reconstructed signal can be used for intra-prediction of the next block to be processed in the current picture, or for inter-prediction of the next picture via filtering, as described later.
[0081] The filtering unit 240 can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit 240 can apply various filtering methods to the restored picture to generate a modified restored picture, and the modified restored picture can be stored in the memory 250, specifically in the DPB of the memory 250. The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.
[0082] The restored picture stored (modified) in the DPB of memory 250 can be used as a reference picture in the inter-prediction unit 260. Memory 250 can store motion information of blocks from which motion information in the current picture has been derived (or decoded) and / or motion information of blocks in the picture that have already been restored. The stored motion information can be transmitted to the inter-prediction unit 260 for use as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory 250 can store restored samples of restored blocks in the current picture and transmit them to the intra-prediction unit 265.
[0083] In this specification, the embodiments described for the filtering unit 160, inter-prediction unit 180, and intra-prediction unit 185 of the image coding device 100 can be applied similarly or in a corresponding manner to the filtering unit 240, inter-prediction unit 260, and intra-prediction unit 265 of the image decoding device 200, respectively.
[0084] General image / video coding procedures
[0085] In image / video coding, the pictures that make up an image / video can be encoded / decoded according to a set decoding order. The picture order, which corresponds to the output order of the decoded pictures, can be set to be different from the decoding order. Based on this, both forward and reverse prediction can be performed during interpretation.
[0086] Figure 4 is a flowchart illustrating a schematic image decoding procedure to which the embodiments of this disclosure can be applied.
[0087] Each step shown in Figure 4 can be performed by the image encoding apparatus in Figure 3. For example, in Figure 4, step S410 can be performed by the entropy decoding unit 210, step S420 can be performed by the prediction unit including the intra-prediction unit 265 and the inter-prediction unit 260, step S430 can be performed by the residual processing unit including the inverse quantization unit 220 and the inverse transform unit 230, step S440 can be performed by the addition unit 235, and step S450 can be performed by the filtering unit 240. Step S410 may include the information decoding procedure described in this disclosure, step S420 may include the inter / intra-prediction procedure described in this disclosure, step S430 may include the residual processing procedure described in this disclosure, step S440 may include the block / picture restoration procedure described in this disclosure, and step S450 may include the in-loop filtering procedure described in this disclosure.
[0088] Referring to Figure 4, the picture decoding procedure, as shown in the description of Figure 3, can schematically include a procedure for acquiring image / video information (by decoding) from a bitstream (S410), a picture restoration procedure (S420-S440), and an in-loop filtering procedure (S450) on the restored picture. The picture restoration procedure can be performed based on predicted samples and residual samples obtained through the inter / intra prediction (S420) and residual processing (S430, inverse quantization and inverse transformation of quantized transformation coefficients) processes described herein. A modified restored picture can be generated through an in-loop filtering procedure on the restored picture generated by the picture restoration procedure, and the modified restored picture can be output as a decoded picture, or it can be stored in the decoded picture buffer or memory 250 of the decoding device and used as a reference picture in the inter-prediction procedure when decoding subsequent pictures. In some cases, the in-loop filtering procedure can be omitted. In this case, the restored picture can be output as a decoded picture and stored in the decoded picture buffer or memory 250 of the decoding device, and can be used as a reference picture in the inter-prediction procedure when decoding subsequent pictures. The in-loop filtering procedure (S450) may include, as described above, a deblocking filtering procedure, an SAO (sample adaptive offset) procedure, an ALF (adaptive loop filter) procedure, and / or a bi-lateral filter procedure, and some or all of these may be omitted. Furthermore, one or some of the deblocking filtering procedure, the SAO (sample adaptive offset) procedure, the ALF (adaptive loop filter) procedure, and the bi-lateral filter procedure may be applied sequentially, or all of them may be applied sequentially. For example, the SAO procedure may be performed after the deblocking filtering procedure has been applied to the restored picture.Alternatively, for example, the ALF procedure can be performed after a deblocking filtering procedure has been applied to the restored picture. This can also be done in the encoding device.
[0089] Figure 5 is a flowchart illustrating a schematic image coding procedure to which the embodiments of this disclosure can be applied.
[0090] Each step shown in Figure 5 can be performed by the image encoding apparatus of Figure 2. For example, step S510 can be performed by a prediction unit including an intra-prediction unit 185 or an inter-prediction unit 180, step S520 can be performed by a residual processing unit including a conversion unit 120 and / or a quantization unit 130, and step S530 can be performed by an entropy encoding unit 190. Step S510 may include the inter / intra-prediction procedure described in this disclosure, step S520 may include the residual processing procedure described in this disclosure, and step S530 may include the information encoding procedure described in this disclosure.
[0091] Referring to Figure 5, the picture encoding procedure, as shown in the description of Figure 2, may include not only a procedure for encoding information for picture reconstruction (e.g., prediction information, residual information, partitioning information, etc.) and outputting it in bitstream format, but also a procedure for generating a reconstructed picture for the current picture, and an optional procedure for applying in-loop filtering to the reconstructed picture. The encoding device can derive (modified) residual samples from the quantized conversion coefficients via the inverse quantization unit 140 and the inverse transform unit 150, and can generate a reconstructed picture based on the prediction samples which are the output of step S510 and the (modified) residual samples. The reconstructed picture thus generated may be identical to the reconstructed picture generated by the decoding device described above. A modified reconstructed picture can be generated via an in-loop filtering procedure on the reconstructed picture, which can be stored in the decoding picture buffer or memory 170, and can be used as a reference picture in the inter-prediction procedure when encoding subsequent pictures, as in the case of the decoding device. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, the (in-loop) filtering-related information (parameters) can be encoded by the entropy coding unit 190 and output in bitstream format, and the decoding device can perform the in-loop filtering procedure in the same manner as the coding device based on the filtering-related information.
[0092] Through such in-loop filtering procedures, noise that occurs during image / video coding, such as blocking artifacts and ringing artifacts, can be reduced, thereby improving subjective and objective visual quality. Furthermore, by performing in-loop filtering procedures on both the encoding and decoding devices, the encoding and decoding devices can derive the same prediction results, increasing the reliability of picture coding and reducing the amount of data that needs to be transmitted for picture coding.
[0093] As described above, picture restoration procedures can be performed not only in the decoding device but also in the encoding device. Restored blocks can be generated based on intra-prediction / inter-prediction for each block, and a restored picture containing the restored blocks can be generated. If the current picture / slice / tile group is an I-picture / slice / tile group, the blocks included in the current picture / slice / tile group can be restored based solely on intra-prediction. On the other hand, if the current picture / slice / tile group is a P or B-picture / slice / tile group, the blocks included in the current picture / slice / tile group can be restored based on intra-prediction or inter-prediction. In this case, inter-prediction may be applied to some of the blocks in the current picture / slice / tile group, and intra-prediction may be applied to the remaining blocks. The color components of a picture may include luminous and chroma components, and unless expressly limited in this disclosure, the methods and embodiments proposed in this disclosure may be applied to luminous and chroma components.
[0094] Examples of coding hierarchy and structure
[0095] The coded video / images provided in this disclosure can be processed, for example, according to the coding hierarchy and structure described below.
[0096] Figure 6 shows an example of a hierarchical structure for coded images / videos.
[0097] Coated images / videos can be divided into three components: the VCL (video coding layer), which handles the decoding process and the images / videos themselves; the underlying systems that transmit and store the encoded information; and the NAL (network abstraction layer), which exists between the VCL and the underlying systems and is responsible for network adaptation functions.
[0098] VCL can generate VCL data containing compressed image data (slice data), or generate parameter sets containing information such as Picture Parameter Set (PPS), Sequence Parameter Set (SPS), and Video Parameter Set (VPS), or SEI (Supplemental Enhancement Information) messages additionally required for image decoding.
[0099] In NAL, NAL units can be generated by adding header information (NAL unit header) to the RBSP (Raw Byte Sequence Payload) generated by VCL. In this case, the RBSP refers to slice data, parameter sets, SEI messages, etc., generated by VCL. The NAL unit header may include NAL unit type information identified by the RBSP data contained in the NAL unit.
[0100] As shown in Figure 6, NAL units can be classified into VCL NAL units and Non-VCL NAL units depending on the type of RBSP generated by VCL. VCL NAL units can refer to NAL units that contain information about the image (slice data), while Non-VCL NAL units can refer to NAL units that contain information necessary for decoding the image (parameter set or SEI message).
[0101] The VCL NAL units and Non-VCL NAL units described above can be transmitted over a network with header information added according to the data specifications of the underlying system. For example, NAL units can be transformed into data formats of predetermined standards such as H.266 / VVC file format, RTP (Real-time Transport Protocol), and TS (Transport Stream) and transmitted over various networks.
[0102] As described above, the NAL unit type can be identified according to the RBSP data structure contained within the NAL unit, and information about such NAL unit types can be stored in the NAL unit header and signaled. For example, NAL units can be broadly classified into VCL NAL unit types and Non-VCL NAL unit types depending on whether or not they contain information about an image (slice data). VCL NAL unit types can be classified according to the nature and type of picture contained within the VCL NAL unit, while Non-VCL NAL unit types can be classified according to the type of parameter set.
[0103] The following is a list of examples of NAL unit types identified by the type of parameter set / information included in the Non-VCL NAL unit type.
[0104] -DCI (Decoding capability information) NAL unit type (NUT): Type for NAL units that include DCI.
[0105] -VPS (Video Parameter Set) NUT: Type for NAL units including VPS
[0106] -SPS (Sequence Parameter Set) NUT: Type for NAL units that include SPS
[0107] -PPS (Picture Parameter Set) NUT: Type for NAL units that include PPS
[0108] -APS (Adaptation Parameter Set) NUT: Type for NAL units that include APS
[0109] -PH (Picture header) NUT: Type for NUL units that include a picture header
[0110] The NAL unit types described above have syntax information for the NAL unit type, and this syntax information can be stored in the NAL unit header and signaled. For example, the syntax information is nal_unit_type, and the NAL unit type can be identified using the value of nal_unit_type.
[0111] On the other hand, a single picture can contain multiple slices, and a single slice can contain a slice header and slice data. In this case, a single picture header can be added to each of the multiple slices (slice headers and slice data sets) within a single picture. The picture header (picture header syntax) can contain information / parameters that are commonly applicable to the picture. The slice header (slice header syntax) can contain information / parameters that are commonly applicable to the slice. The APS (APS syntax) or PPS (PPS syntax) can contain information / parameters that are commonly applicable to one or more slices or pictures. The SPS (SPS syntax) can contain information / parameters that are commonly applicable to one or more sequences. The VPS (VPS syntax) can contain information / parameters that are commonly applicable to multiple layers. The DCI can contain information / parameters related to decoding capability.
[0112] In this disclosure, the high-level syntax (HLS) may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DCI syntax, picture header syntax, and slice header syntax. In this disclosure, the low-level syntax (LLS) may include, for example, slice data syntax, CTU syntax, coding unit syntax, transformation unit syntax, etc.
[0113] On the other hand, in this disclosure, the image / video information encoded from the encoding device to the decoding device and signaled in bitstream format may include not only partitioning-related information within the picture, intra / inter prediction information, residual information, and in-loop filtering information, but also information from the slice header, the picture header, the APS, the PPS, the SPS, the VPS, and / or the DCI. Furthermore, the image / video information may further include general constraint information and / or information from the NAL unit header.
[0114] Overview of Entry Points Signaling
[0115] As described above, a VCL NAL unit can contain slice data as an RBSP (Raw Byte Sequence Payload). The slice data is sorted byte by byte within the VCL NAL unit and can contain one or more subsets. At least one entry point for random access (RA) can be defined for each subset, and parallel processing can be performed based on this entry point.
[0116] The VVC standard supports wavefront parallel processing (WPP), one of various parallel processing techniques. Multiple slices within a picture can be encoded / decoded in parallel based on WPP.
[0117] To activate parallel processing capabilities, entry point information can be signaled. Based on the entry point information, the image decoding device can directly access the starting point of the data segment contained in the NAL unit. Here, the starting point of the data segment can mean the starting point of a tile within a slice or the starting point of a CTU row within a slice.
[0118] Entry point information can be signaled in higher-level syntax, such as the Picture Parameter Set (PPS) and / or slice header.
[0119] Figure 7 shows a picture parameter set (PPS) according to one embodiment of the present disclosure, and Figure 8 shows a slice header according to one embodiment of the present disclosure.
[0120] First, referring to Figure 7, the Picture Parameter Set (PPS) can include `entry_point_offsets_present_flag` as a syntax element indicating the presence or absence of signaling for entry point information.
[0121] The `entry_point_offsets_present_flag` can indicate whether or not signaling for entry point information exists within the slice header that references the Picture Parameter Set (PPS). For example, an entry_point_offsets_present_flag with a first value (e.g., 0) can indicate that there is no signaling for entry point information for a tile or specific CTU rows within a tile within the slice header. Conversely, an entry_point_offsets_present_flag with a second value (e.g., 1) can indicate that there is signaling for entry point information for a tile or specific CTU rows within a tile within the slice header.
[0122] On the other hand, Figure 7 shows the case where entry_point_offsets_present_flag is included in the picture parameter set (PPS), but this is illustrative and the embodiments of this disclosure are not limited to this. For example, entry_point_offsets_present_flag may be included in the sequence parameter set (SPS).
[0123] Next, referring to Figure 8, the slice header can include offset_len_minus1 and entry_point_offset_minus1[i] as syntax elements to identify the entry point.
[0124] `offset_len_minus1` can represent the value obtained by subtracting 1 from the bit length of `entry_point_offset_minus1[i]`. The value of `offset_len_minus1` can be in the range of 0 to 31. For example, `offset_len_minus1` can be signaled based on the variable `NumEntryPoints`, which represents the total number of entry points. For example, `offset_len_minus1` can be signaled only if `NumEntryPoints` is greater than 0. Alternatively, `offset_len_minus1` can be signaled based on the `entry_point_offsets_present_flag` described above, referring to Figure 7. For example, `offset_len_minus1` can be signaled only if `entry_point_offsets_present_flag` has a second value (e.g., 1) (i.e., if there is signaling for entry point information in the slice header).
[0125] `entry_point_offset_minus1[i]` can represent the i-th entry point offset in bytes and can be expressed by adding 1 bit to `offset_len_minus1`. The slice data within a NAL unit can contain the same number of subsets as the value obtained by adding 1 to `NumEntryPoints`, and the index value pointing to each of these subsets can have a range of 0 or more and less than or equal to `NumEntryPoints`. The first byte of the slice data within a NAL unit can be represented by byte 0.
[0126] When entry_point_offset_minus1[i] is signaled, emulation prevention bytes contained in the slice data within the NAL unit can be counted as part of the slice data for subset identification. Subset 0, the first subset of the slice data, can have a composition from byte 0 to entry_point_offset_minus1[0]. Similarly, subset k, the kth subset of the slice data, can have a composition from firstByte[k] to lastByte[k]. Here, firstByte[k] can be derived as shown in Equation 1 below, and lastByte[k] can be derived as shown in Equation 2 below.
[0127]
number
[0128]
number
[0129] In equations 1 and 2, k is greater than or equal to 1 and can be in the range of values obtained by subtracting 1 from NumEntryPoints.
[0130] The last subset of the slice data (i.e., the NumEntryPoints-th subset) can consist of the remaining bytes of the slice data.
[0131] On the other hand, if a predetermined synchronization process for context variables is not performed before decoding the CTU containing the first CTB of each CTB row within each tile (e.g., sps_entropy_coding_sync_enabled_flag==0), and the slice contains one or more complete tiles, then each subset of the slice data can consist of all the encoded bits for all CTUs within the same tile. In this case, the total number of subsets of the slice data may be the same as the total number of tiles in the slice.
[0132] In contrast, if the predetermined synchronization process is not performed and the slice contains one subset of CTU rows within a single tile, NumEntryPoints may be 0. In this case, one subset of the slice data can consist of all the encoded bits for all CTUs in the slice.
[0133] In contrast, if the predetermined synchronization process is performed (for example, sps_entropy_coding_sync_enabled_flag==1), each subset can consist of all encoded bits for all CTUs in one CTU row within one tile. In this case, the total number of subsets of slice data may be the same as the total number of CTU rows per tile within the slice.
[0134] Overview of mixed NAL unit type
[0135] Generally, one NAL unit type can be assigned to a single picture. As mentioned above, syntax information representing the NAL unit type can be stored and signaled in the NAL unit header within the NAL unit. For example, the syntax information is nal_unit_type, and the NAL unit type can be identified using the nal_unit_type value.
[0136] An example of a NAL unit type to which the embodiments described herein can be applied is shown in Table 1 below.
[0137] [Table 1-1] [Table 1-2]
[0138] Referring to Table 1, VCL NAL unit types can be classified into NAL unit types 0 through 12 depending on the nature and type of the picture. Non-VCL NAL unit types can be classified into NAL unit types 13 through 31 depending on the type of parameter set.
[0139] Specific examples of VCL NAL unit types are as follows:
[0140] -IRAP (Intra Random Access Point) NAL unit type (NUT): The type for the NAL unit in the IRAP picture, set to a range from IDR_W_RADL to CRA_NUT.
[0141] -IDR (Instantaneous Decoding Refresh) NUT: The type for the NAL unit of the IDR picture is set to IDR_W_RADL or IDR_N_LP.
[0142] -CRA (Clean Random Access) NUT: The type for the NAL unit of a CRA picture is set to CRA_NUT.
[0143] -RADL (Random Access Decodable Leading) NUT: The type for the NAL unit of a RADL picture is set to RADL_NUT.
[0144] -RASL (Random Access Skipped Leading) NUT: The type for the NAL unit of a RASL picture is set to RASL_NUT.
[0145] - Trailing NUT: The type for the NAL unit of the trailing picture, set to TRAIL_NUT.
[0146] -GDR (Gradual Decoding Refresh) NUT: The type for the NAL unit of a GDR picture, set to GDR_NUT.
[0147] -STSA (Step-wise Temporal Sublayer Access) NUT: The type for the NAL unit of an STSA picture is set to STSA_NUT.
[0148] On the other hand, the VVC standard allows a single picture to contain multiple slices, each having a different NAL unit type. For example, a single picture may include at least one first slice having a first NAL unit type and at least one second slice having a second NAL unit type different from the first NAL unit type. In this case, the NAL unit types of the picture are sometimes called mixed NAL unit types. In this way, the VVC standard's support for mixed NAL unit types makes it easier to reconstruct / combine multiple pictures during content synthesis, encoding / decoding, and other processes.
[0149] However, existing schemes for hybrid NAL unit types have a limitation: only hybridization between two NAL unit types is permitted. Furthermore, if a picture has a hybrid NAL unit type, one or more VCL NAL units in the picture must have a NAL unit type in the range of IDR_W_RADL to CRA_NUT, and the remaining VCL NAL units in the picture must have a NAL unit type in the range of TRAIL_NUT to RSV_VCL_6. As a result, despite hybrid NAL unit types being useful in image processing, they are not generally usable, leading to this problem.
[0150] To solve this problem, according to the embodiments of the present disclosure, hybridization between two or more NAL unit types is permitted, and a wider variety of hybrid NAL unit types can be provided.
[0151] The embodiments of this disclosure will be described in detail below with reference to the attached drawings.
[0152] If a picture contains two or more slices, and the NAL unit types of each slice are different from each other, the picture may be limited to containing two or more subpictures. That is, if a picture has a mixed NAL unit type, the picture may contain two or more subpictures.
[0153] A subpicture can contain one or more slices and can form rectangular regions within a picture. The size of each subpicture within a picture can be set to be different from each other. In contrast, for all pictures belonging to a sequence, the size and position of specific individual subpictures can be set to be the same as each other.
[0154] Figure 9 shows an example of a subpicture.
[0155] Referring to Figure 9, one picture can be divided into 18 tiles. Twelve tiles can be placed on the left side of the picture, and each of these tiles can contain one slice consisting of a 4x4 CTU. Six tiles can be placed on the right side of the picture, and each of these tiles can contain two slices, each consisting of a 2x2 CTU, stacked vertically. As a result, the picture can contain 24 subpictures and 24 slices, and each of the subpictures can contain one slice.
[0156] In one embodiment, each sub-picture within a single picture can be treated as a single picture to support a hybrid NAL unit type. When a sub-picture is treated as a single picture, it can be encoded / decoded independently of the encoding / decoding results of other sub-pictures. Here, independent encoding / decoding can mean that the block partitioning structure of a sub-picture (e.g., single-tree structure, dual-tree structure), prediction mode type (e.g., intra-prediction, inter-prediction), decoding procedure, etc., can be set to be different from those of other sub-pictures. For example, if a first sub-picture is encoded / decoded based on an intra-prediction mode, a second sub-picture adjacent to the first sub-picture and treated as a single picture can be encoded / decoded based on an inter-prediction mode.
[0157] Thus, if a single picture contains two or more independent subpictures, and each of the subpictures has a different NAL unit type from the others, the picture may have a hybrid NAL unit type.
[0158] Figure 10 shows an example of a picture having a hybrid NAL unit type.
[0159] Referring to Figure 10, one picture 1000 can contain first to third subpictures 1010 to 1030. The first and third subpictures 1010 and 1030 can each contain two slices. In contrast, the second subpicture 1020 can contain four slices.
[0160] If the first to third subpictures 1010 to 1030 are each treated as a single picture, they can be independently encoded to form different bitstreams. For example, the encoded slice data of the first subpicture 1010 can be encapsulated in one or more NAL units having a NAL unit type such as RASL_NUT to form the first bitstream (Bitstream1). Similarly, the encoded slice data of the second subpicture 1020 can be encapsulated in one or more NAL units having a NAL unit type such as RADL_NUT to form the second bitstream (Bitstream2). Furthermore, the encoded slice data of the third subpicture 1030 can be encapsulated in one or more NAL units having a NAL unit type such as RASL_NUT to form the third bitstream (Bitstream3). As a result, a single picture 1000 can have a hybrid NAL unit type that is a mixture of RASL_NUT and RADL_NUT.
[0161] In one embodiment, all slices contained within each sub-picture in a picture can be restricted to having the same NAL unit type. For example, both slices contained within the first sub-picture 1010 may have a NAL unit type such as RASL_NUT. Similarly, all four slices contained within the second sub-picture 1020 may have a NAL unit type such as RADL_NUT. Furthermore, both slices contained within the third sub-picture 1030 may have a NAL unit type such as RASL_NUT.
[0162] Information regarding subpictures can be signaled within higher-level syntax, such as the Picture Parameter Set (PPS) and Sequence Parameter Set (SPS). Similarly, information regarding the application of hybrid NAL unit types can be signaled within higher-level syntax, such as the Picture Parameter Set (PPS).
[0163] Figure 11 shows an example of a picture parameter set (PPS) according to one embodiment of the present disclosure, and Figure 12 shows an example of a sequence parameter set (SPS) according to one embodiment of the present disclosure.
[0164] First, referring to Figure 11, the Picture Parameter Set (PPS) can include pps_mixed_nalu_types_in_pic_flag (or mixed_nalu_types_in_pic_flag) as a syntax element indicating whether or not mixed NAL unit types are applied.
[0165] The `pps_mixed_nalu_types_in_pic_flag` can indicate whether the current picture has mixed NAL unit types. For example, a `pps_mixed_nalu_types_in_pic_flag` with a first value (e.g., 0) can indicate that the current picture does not have mixed NAL unit types. In this case, the current picture can have the same NAL unit type for all VCL NAL units, for example, the same NAL unit type as the encoded slice NAL units. Conversely, a `pps_mixed_nalu_types_in_pic_flag` with a second value (e.g., 1) can indicate that the current picture has mixed NAL unit types.
[0166] In one embodiment, if the current picture has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag==1), the VCL NAL units of the current picture can be restricted so that they do not have a NAL unit type such as GDR_NUT.
[0167] In one embodiment, if the current picture has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag==1), if any of the VCL NAL units in the current picture have a NAL unit type such as IDR_W_RADL, IDR_N_LP, or CRA_NUT (NAL unit type A), then all other VCL NAL units in the current picture can be restricted to having a NAL unit type such as NAL unit type A, or a NAL unit type such as TRAIL_NUT. For example, if any of the VCL NAL units in the current picture has a NAL unit type such as IDR_W_RADL, then all other NAL units in the current picture can have a NAL unit type such as IDR_W_RADL or TRAIL_NUT.
[0168] If the current picture has mixed NAL unit types (for example, pps_mixed_nalu_types_in_pic_flag==1), each sub-picture within the current picture may have one of the VCL NAL unit types described above, refer to Table 1. For example, if a sub-picture within the current picture is an IDR sub-picture, the sub-picture may have a NAL unit type such as IDR_W_RADL or IDR_N_LP. Alternatively, if a sub-picture within the current picture is a trailing sub-picture, the sub-picture may have a NAL unit type such as TRAIL_NUT.
[0169] Therefore, a pps_mixed_nalu_types_in_pic_flag with a second value (e.g., 1) can indicate that a picture referencing a Picture Parameter Set (PPS) may contain slices having different NAL unit types. Here, the picture may originate from a subpicture bitstream merge operation in which the encoder must ensure matching of the bitstream structure and alignment between parameters of the original bitstream. As an example of such alignment, if there is no reference picture list (RPL) syntax element in the slice header for a slice having NAL unit types such as IDR_W_RADL or IDR_N_LP (e.g., sps_idr_rpl_present_flag==0), and the present picture containing the slice has mixed NAL unit types (e.g., pps_mixed_nalu_types_in_pic_flag==1), the present picture can be restricted to not contain slices of NAL unit types such as IDR_W_RADL or IDR_N_LP.
[0170] On the other hand, if the mixed NAL unit type is restricted so that it is not applied to all pictures in the Output Layer Set (OLS) (for example, gci_no_mixed_nalu_types_in_pic_constraint_flag==1), then pps_mixed_nalu_types_in_pic_flag can have a first value (for example, 0).
[0171] Additionally, the Picture Parameter Set (PPS) can include pps_no_pic_partition_flag (or no_pic_partition_flag) as a syntax element indicating whether or not the picture should be partitioned.
[0172] The pps_no_pic_partition_flag can indicate whether picture partitioning is applicable to the current picture. For example, a pps_no_pic_partition_flag with a first value (e.g., 0) can indicate that the current picture cannot be partitioned. Conversely, a pps_no_pic_partition_flag with a second value (e.g., 1) can indicate that the current picture can be partitioned into two or more tiles or slices. If the current picture has mixed NAL unit types (e.g., pps_mixed_nalu_types_in_pic_flag==1), the current picture can be restricted to being partitioned into two or more tiles or slices (e.g., pps_no_pic_partition_flag=1).
[0173] Additionally, the Picture Parameter Set (PPS) can include pps_num_subpics_minus1 (or num_subpics_minus1) as a syntax element representing the number of subpictures.
[0174] pps_num_subpics_minus1 can represent the number of subpictures currently contained in a picture minus 1. pps_num_subpics_minus1 can only be signaled if picture partitioning is applicable to the picture (e.g., pps_no_pic_partition_flag==1). If pps_num_subpics_minus1 is not signaled, its value can be inferred as 0. On the other hand, syntax elements representing the number of subpictures can also be signaled in higher-level syntax different from the picture parameter set (PPS), such as the sequence parameter set (SPS).
[0175] In one embodiment, if the current picture contains only one subpicture (e.g., pps_num_subpics_minus1==0), the current picture can be restricted to not have mixed NAL unit types (e.g., pps_mixed_nalu_types_in_pic_flag=0). That is, if the current picture has mixed NAL unit types (e.g., pps_mixed_nalu_types_in_pic_flag==1), the current picture can be restricted to contain two or more subpictures (e.g., pps_num_subpics_minus1>0).
[0176] Next, referring to Figure 12, the Sequence Parameter Set (SPS) may include sps_subpic_treated_as_pic_flag[i] (or subpic_treated_as_pic_flag[i]) as a syntax element related to how subpictures are handled during encoding / decoding.
[0177] The sps_subpic_treated_as_pic_flag[i] can indicate whether each subpicture in the current picture is treated as a single picture. For example, a first value (e.g., 0) for sps_subpic_treated_as_pic_flag[i] indicates that the i-th subpicture in the current picture is not treated as a single picture. Conversely, a second value (e.g., 1) for sps_subpic_treated_as_pic_flag[i] indicates that the i-th subpicture in the current picture is treated as a single picture during the encoding / decoding process, excluding in-loop filtering. If sps_subpic_treated_as_pic_flag[i] is not signaled, it can be inferred that sps_subpic_treated_as_pic_flag[i] has a second value (e.g., 1).
[0178] In one embodiment, if the current picture contains two or more subpics (e.g., pps_num_subpics_minus1>0) and at least one of the subpics is not treated as a single picture (e.g., sps_subpic_treated_as_pic_flag[i]==0), the current picture can be restricted so that it does not have a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag=0). That is, if the current picture has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag==1), then all subpics within the current picture can be restricted so that they are treated as a single picture (e.g., sps_subpic_treated_as_pic_flag[i]=1).
[0179] The NAL unit types according to the embodiments of this disclosure will be described in detail below, categorized by picture type.
[0180] (1) IRAP (Intra Random Access Point) Picture
[0181] An IRAP picture is a randomly accessible picture and may have NAL unit types such as IDR_W_RADL, IDR_N_LP, or CRA_NUT, as described above with reference to Table 1. The IRAP picture does not need to reference any other pictures for interpretation during the decoding process. The IRAP picture may include an IDR (Instantaneous Decoding Refresh) picture and a CRA (Clean Random Access) picture.
[0182] The first picture in the bitstream in the decoding order may be restricted to an IRAP picture or a GDR (Gradual Decoding Refresh) picture. For a single-layer bitstream, if the required set of parameters to be referenced is available, the IRAP picture and all non-RASL pictures following it in the decoding order can be correctly decoded, even if the pictures preceding the IRAP picture in the decoding order are not decoded at all.
[0183] In one embodiment, an IRAP picture may not have mixed NAL unit types. That is, the aforementioned pps_mixed_nalu_types_in_pic_flag for an IRAP picture may have a first value (e.g., 0), and all slices within the IRAP picture may have the same NAL unit type within the range of IDR_W_RADL to CRA_NUT. As a result, if the first slice decoded within a picture has a NAL unit type within the range of IDR_W_RADL to CRA_NUT, the picture can be determined to be an IRAP picture.
[0184] (2) CRA (Clean Random Access) Pictures
[0185] A CRA picture is one of the IRA pictures and can have a NAL unit type such as CRA_NUT, as described above with reference to Table 1. The CRA picture does not need to refer to any other pictures for interpretation during the decoding process.
[0186] The CRA picture may be the first picture in the bitstream in terms of the decoding order, or it may be a picture after the first one. The CRA picture may be associated with a RADL or RASL picture.
[0187] If the NoIncorrectPicOutputFlag for a CRA picture has a secondary value (e.g., 1), the RASL picture associated with the CRA picture cannot be decoded because it refers to a picture that does not exist in the bitstream, and as a result, it may not be output by the image decoder. Here, the NoIncorrectPicOutputFlag can indicate whether a picture preceding a recovery point picture in the decoding order is output before the recovery point picture. For example, a NoIncorrectPicOutputFlag with a primary value (e.g., 0) can indicate that a picture preceding a recovery point picture in the decoding order can be output before the recovery point picture. In this case, the CRA picture may not be the first picture in the bitstream, or the first picture following the EOS (End Of Sequence) NAL unit in the decoding order. This can mean that no random access is occurring. In contrast, a NoIncorrectPicOutputFlag with a secondary value (e.g., 1) can indicate that a picture preceding a recovery point picture in the decoding order cannot be output before the recovery point picture. In this case, the CRA picture could be the first picture in the bitstream, or the first picture following the EOS NAL unit in the decoding order. This can mean that random access occurs. On the other hand, NoIncorrectPicOutputFlag is sometimes called NoOutputBeforeRecoveryFlag depending on the embodiment.
[0188] In a coded layer video sequence (CLVS), for all picture units (PUs) that follow the current picture in the decoding order, reference picture list 0 (e.g., RefPicList[0]) and reference picture list 1 (e.g., RefPicList[1]) for a slice contained in a CRA subpicture belonging to the picture unit (PUs) can be restricted in the active entry to not include any picture that precedes the picture containing the CRA subpicture in the decoding order. Here, a picture unit (PU) can mean a set of NAL units that are interrelated with respect to a single coded picture according to a predetermined classification rule and are consecutive in the decoding order.
[0189] (3) IDR (Instantaneous Decoding Refresh) Picture
[0190] The IDR picture is one of the IRAP pictures and may have a NAL unit type such as IDR_W_RADL or IDR_N_LP, as described above with reference to Table 1. The IDR picture does not need to refer to any other pictures for interpretation during the decoding process.
[0191] An IDR picture may be the first picture in the bitstream in terms of the decoding order, or it may be a picture after the first one. Each IDR picture may be the first picture in the CVS (Coded Video Sequence) in the decoding order.
[0192] If an IDR picture has a NAL unit type such as IDR_W_RADL for each NAL unit, the IDR picture may have associated RADL pictures. Conversely, if an IDR picture has a NAL unit type such as IDR_N_LP for each NAL unit, the IDR picture may not have associated leading pictures. On the other hand, the IDR picture may not be associated with RASL pictures.
[0193] Within a Coded Layer Video Sequence (CLVS), for all picture units (PUs) that currently follow a picture in the decoding order, reference picture list 0 (e.g., RefPicList[0]) and reference picture list 1 (e.g., RefPicList[1]) for a slice contained in an IDR subpicture belonging to the picture unit (PUs) can be restricted in the active entry to not include any picture that precedes the picture containing the IDR subpicture in the decoding order.
[0194] (4) RADL (Random Access Decodable Leading) Picture
[0195] A RADL picture is one of the reading pictures and can have a NAL unit type such as RADL_NUT, as mentioned above with reference to Table 1.
[0196] A RADL picture does not necessarily have to be used as a reference picture in the decoding process of a trailing picture associated with the same IRAP picture as the RADL picture. If field_seq_flag has a first value (e.g., 0) for a RADL picture, the RADL picture can precede all non-leading pictures in the decoding order that have the same associated IRAP picture. Here, field_seq_flag can indicate whether the Coded Layer Video Sequence (CLVS) conveys pictures representing fields or pictures representing frames. For example, a field_seq_flag with a first value (e.g., 0) can indicate that the CLVS conveys pictures representing frames. Conversely, a field_seq_flag with a second value (e.g., 1) can indicate that the CLVS conveys pictures representing fields.
[0197] (5) RASL (Random Access Skipped Leading) Picture
[0198] A RASL picture is one of the reading pictures and can have a NAL unit type such as RASL_NUT, as mentioned above with reference to Table 1.
[0199] In one example, all RASL pictures may be the leading pictures of their associated CRA pictures. If the NoIncorrectPicOutputFlag for the CRA picture has a secondary value (e.g., 1), the RASL picture cannot be decoded because it refers to a picture that does not exist in the bitstream, and as a result, it may not be output by the image decoder.
[0200] RASL pictures do not necessarily have to be used as reference pictures in the decoding process of non-RASL pictures. However, if there is a RADL picture that belongs to the same layer as the RASL picture and is associated with the same CRA picture, the RASL picture can be used as a collocated reference picture for interpretation of RADL subpictures contained in the RADL picture.
[0201] If field_seq_flag has a first value (e.g., 0) for a RASL picture, the RASL picture may precede all non-reading pictures of the CRA picture associated with the RASL picture in the decoding order.
[0202] (6) Trailing picture
[0203] A trailing picture is a non-IRAP picture that appears after the associated IRAP picture or GDR picture in the output order, and does not necessarily have to be an STSA picture. Furthermore, a trailing picture can appear after the associated IRAP picture in the decoding order. That is, a trailing picture that appears after the associated IRAP picture in the output order but before it in the decoding order is not permitted.
[0204] (7) GDR (Gradual Decoding Refresh) Picture
[0205] A GDR picture is a randomly accessible picture that may have a NAL unit type such as GDR_NUT, as described above with reference to Table 1.
[0206] (8) STSA (Step-wise Temporal Sublayer Access) Picture
[0207] A STSA picture is a randomly accessible picture and may have a NAL unit type such as STSA_NUT, as described above with reference to Table 1.
[0208] An STSA picture does not need to reference a picture having the same TemporalId as the STSA picture for interpretation. Here, TemporalId can be an identifier that indicates temporal hierarchy, such as a temporal sublayer, in scalable video coding. For example, an STSA picture can be restricted to having a TemporalId greater than 0.
[0209] A picture having the same TemporalID as an STSA picture and decrypting after the STSA picture does not need to refer to a picture having the same TemporalID as the STSA picture and decrypting before the STSA picture for interpretation purposes. An STSA picture can activate up-switching from an immediately lower sublayer to the current sublayer to which the STSA picture belongs.
[0210] Figure 13 is a diagram illustrating the decoding order and output order for each picture type.
[0211] Multiple pictures can be classified into I-pictures, P-pictures, or B-pictures depending on the prediction method. An I-picture is a picture to which only intra-prediction can be applied and can be decoded without referencing other pictures. I-pictures can also be called intra-pictures and may include the IRAP pictures mentioned above. A P-picture is a picture to which intra-prediction and one-way inter-prediction can be applied and can be decoded by referencing one other picture. A B-picture is a picture to which intra-prediction and bidirectional / one-way inter-prediction can be applied and can be decoded by referencing one or two other pictures. P-pictures and B-pictures can also be called inter-pictures and may include the RADL pictures, RASL pictures, and trailing pictures mentioned above.
[0212] Interpictures can be further divided into leading pictures (LP) or non-leading pictures (NLP) depending on the decoding and output order. A leading picture is a picture that follows the IRAP picture in the decoding order and precedes the IRAP picture in the output order, and may include the aforementioned RADL and RASL pictures. A non-leading picture is a picture that follows the IRAP picture in both the decoding and output order, and may include the aforementioned trailing pictures.
[0213] In Figure 13, each picture name can indicate the picture type described above. For example, picture I5 may be an I picture, pictures B0, B2, B3, B4, and B6 may be B pictures, and pictures P1 and P7 may be P pictures. Furthermore, in Figure 13, each arrow can indicate the direction of reference between pictures. For example, picture B0 can be decoded by referencing picture P1.
[0214] Referring to Figure 13, the I5 picture could be an IRA picture, for example, a CRA picture. If random access is performed to the I5 picture, the I5 picture could be the first picture in the decoding order.
[0215] Pictures B0 and P1 are pictures that precede picture I5 in the decoding order and can constitute a separate video sequence from picture I5. Pictures B2, B3, B4, B6, and P7 are pictures that follow picture I5 in the decoding order and can constitute a single video sequence together with picture I5.
[0216] Pictures B2, B3, and B4 can be classified as leading pictures because they follow the I5 picture in the decoding order and precede the I5 picture in the output order. The B2 picture can be decoded by referencing the P1 picture, which precedes the I5 picture in the decoding order. Therefore, if random access to the I5 picture occurs, the B2 picture will refer to a P1 picture that does not exist in the bitstream and will not be decoded correctly. Picture types like the B2 picture can be called RASL pictures. In contrast, the B3 picture can be decoded by referencing the I5 picture, which precedes the B3 picture in the decoding order. Therefore, if random access to the I5 picture occurs, the B3 picture can correctly decode by referencing the already decoded I5 picture. Also, the B4 picture can be decoded by referencing the I5 picture and the B3 picture, which precede the B4 picture in the decoding order. Therefore, if random access occurs to the I5 picture, the B4 picture can correctly decode by referencing the already decoded I5 and B3 pictures. Picture types like B3 and B4 pictures can be called RADL pictures.
[0217] On the other hand, B6 and P7 pictures can be classified as non-leading pictures because they follow I5 picture in both the decoding and output order. B6 picture can be decoded by referencing I5 and P7 pictures, which precede it in the decoding order. Therefore, if random access to I5 picture occurs, B6 picture can be correctly decoded by referencing I5 and P7 pictures that have already been decoded.
[0218] Thus, within a single video sequence, the decoding and output processes can be performed in different orders based on the picture types. For example, if a video sequence contains an IRAP picture, a reading picture, and a non-reading picture, the decoding process may be performed in the order of IRAP picture, reading picture, and non-reading picture, but the output process may be performed in the order of reading picture, IRAP picture, and non-reading picture.
[0219] Figure 14 is a flowchart showing a method for determining the NAL unit type of a current picture according to one embodiment of the present disclosure.
[0220] Referring to Figure 14, the image encoding device can determine whether the current picture contains two or more subpictures (S1410). Partitioning information of the current picture can be signaled using one or more syntax elements in the higher-level syntax. For example, referring to Figure 7, the no_pic_partition_flag, which indicates whether the current picture is partitioned, and pps_num_subpics_minus1, which indicates the number of subpictures contained in the current picture, can be signaled via the Picture Parameter Set (PPS) described above. If the current picture contains two or more subpictures, no_pic_partition_flag has a first value (e.g., 0), and pps_num_subpics_minus can have a value greater than 0.
[0221] If the current picture does not contain two or more subpictures ("NO" in S1410), the image encoding device can determine that the current picture has a single NAL unit type (S1450). That is, all slices in the current picture can have one of the multiple NAL unit types described above, with reference to Table 1.
[0222] In contrast, if the current picture contains two or more subpictures (YES in S1410), the image encoding device can determine whether each subpicture in the current picture is treated as a single picture (S1420). Information regarding whether a subpicture is treated as a single picture can be signaled using a predetermined syntax element in the higher-level syntax. For example, via the sequence parameter set (SPS) described above with reference to Figure 12, sps_subpic_treated_as_pic_flag[i] can be signaled, indicating whether a subpicture is treated as a single picture. If each subpicture in the current picture is treated as a single picture, sps_subpic_treated_as_pic_flag[i] may have a second value (e.g., 1).
[0223] If each sub-picture within the current picture is not treated as a single picture (NO in S1420), the image encoding device can determine that the current picture has a single NAL unit type (S1450).
[0224] In contrast, if each sub-picture in the current picture is treated as a single picture (YES in S1420), the image encoding device can determine whether at least some of the multiple slices in the current picture have different NAL unit types (S1430).
[0225] If at least some of the slices in the picture currently have different NAL unit types (YES in S1430), the image encoding device can determine that the picture currently has a mixed NAL unit type (S1440).
[0226] In contrast, if all of the multiple slices in the picture currently have the same NAL unit type (NO in S1430), the image encoding device can determine that the picture currently has a single NAL unit type (S1450).
[0227] If the current picture has a hybrid NAL unit type, the image encoding device can generate a sub-bitstream for each sub-picture contained within the current picture. In this case, the multiple sub-bitstreams generated for the current picture can constitute a single bitstream.
[0228] Information regarding whether a picture currently has mixed NAL unit types can be signaled using a predetermined syntax element in the higher-level syntax. For example, a flag, pps_mixed_nalu_types_in_pic_flag, indicating whether the picture currently has mixed NAL unit types, can be signaled via the Picture Parameter Set (PPS) described above, referring to Figure 11. In this case, the image decoder can determine whether the picture currently has mixed NAL unit types based on pps_mixed_nalu_types_in_pic_flag. For example, if pps_mixed_nalu_types_in_pic_flag has a first value (e.g., 0), the image decoder can determine that the picture currently has a single NAL unit type. Conversely, if pps_mixed_nalu_types_in_pic_flag has a second value (e.g., 1), the image decoder can determine that the picture currently has mixed NAL unit types.
[0229] On the other hand, all slices within each sub-picture currently contained in the picture can have the same NAL unit type. That is, each sub-picture can have only a single NAL unit type. Also, if the current picture has a hybrid NAL unit type, at least some of the sub-pictures contained in the current picture can have different NAL unit types from each other. For example, the first sub-picture contained in the current picture may have a first NAL unit type, and the second sub-picture contained in the current picture may have a second NAL unit type that is different from the first NAL unit type.
[0230] The type of each subpicture currently contained within a picture can be determined based on the NAL unit type that each subpicture possesses. For example, as mentioned above with reference to Table 1, a subpicture with a NAL unit type such as TRAIL_NUT can be determined to be a trailing subpicture. Similarly, a subpicture with a NAL unit type such as STSA_NUT can be determined to be an STSA subpicture, and a subpicture with a NAL unit type such as GDR_NUT can be determined to be a GDR subpicture. Furthermore, a subpicture with a NAL unit type such as RADL_NUT can be determined to be a RADL subpicture, and a subpicture with a NAL unit type such as RASL_NUT can be determined to be a RASL subpicture. Furthermore, subpictures with NAL unit types such as IDR_W_RADL or IDR_N_LP can be determined as IDR subpictures, and subpictures with NAL unit types such as CRA_NUT can be determined as CRA subpictures.
[0231] As described above, according to the embodiments of this disclosure, if a current picture includes two or more subpictures, and each of the subpictures is treated as a single picture, the current picture can have a hybrid NAL unit type. This allows for improved image encoding / decoding efficiency in various applications and use cases.
[0232] The image encoding / decoding method according to one embodiment of this disclosure will be described in detail below with reference to Figures 15 and 16.
[0233] Figure 15 is a flowchart showing an image encoding method according to one embodiment of the present disclosure.
[0234] The image encoding method shown in Figure 15 can be performed by the image encoding device shown in Figure 2. For example, step S1510 can be performed by the image splitting unit 110, and steps S1520 and S1530 can be performed by the entropy encoding unit 190.
[0235] Referring to Figure 15, the image encoding device can now divide a picture into one or more subpictures (S1510).
[0236] As one embodiment, if the current picture has a hybrid NAL unit, the current picture can be restricted to include two or more subpictures. That is, the current picture can be divided into two or more subpictures based on the fact that at least some of the multiple slices contained in the current picture have different NAL unit types from each other.
[0237] The current picture partitioning information can be encoded / signaled using predetermined syntax elements within the higher-level syntax. For example, referring to Figure 11, the pps_no_pic_partition_flag, which indicates whether the current picture is partitioned or not, and the flag information pps_num_subpics_minus1, which indicates the number of subpictures contained in the current picture, can be encoded / signaled via the Picture Parameter Set (PPS) described above. In this case, if the current picture is partitioned into two or more subpictures, pps_no_pic_partition_flag may have a first value (e.g., 0), and pps_num_subpics_minus may have a value greater than 0.
[0238] In one embodiment, if the current picture has a hybrid NAL unit type, each sub-picture contained within the current picture can be treated as a single picture. For example, a current picture having a hybrid NAL unit type may include a first sub-picture and a second sub-picture, and the first and second sub-pictures can be encoded / decoded independently, except for in-loop filtering operations.
[0239] Information regarding whether the subpictures currently contained in a picture are treated as a single picture can be encoded / signaled using a predetermined syntax element in the higher-level syntax. For example, a flag information sps_subpic_treated_as_pic_flag[i] indicating whether the i-th subpicture currently contained in the picture is treated as a single picture can be encoded / signaled via the sequence parameter set (SPS) described above, referring to Figure 12. In this case, if the i-th subpicture currently contained in the picture is not treated as a single picture, sps_subpic_treated_as_pic_flag[i] can have a first value (e.g., 0). Conversely, if the i-th subpicture currently contained in the picture is treated as a single picture, sps_subpic_treated_as_pic_flag[i] can have a second value (e.g., 1).
[0240] The image encoding device can determine the NAL unit type for each of the multiple slices currently contained in the picture (S1520).
[0241] In one embodiment, all slices contained within each sub-picture in the current picture may have the same NAL unit type. For example, all slices contained within the first sub-picture of the current picture may have a first NAL unit type, and all slices contained within the second sub-picture of the current picture may have a second NAL unit type. In this case, if the current picture has a hybrid NAL unit type, the second NAL unit type may be different from the first NAL unit type. Conversely, if the current picture has a single NAL unit type, the second NAL unit type may be the same as the first NAL unit type.
[0242] In one embodiment, whether at least some of the slices currently contained in the picture have different NAL unit types (i.e., whether the current picture has a mixed NAL unit type) can be encoded / signaled using a predetermined syntax element in the higher-level syntax. For example, a flag information pps_mixed_nalu_types_in_pic_flag (or mixed_nalu_types_in_pic_flag) indicating whether the current picture has a mixed NAL unit type can be encoded / signaled via the Picture Parameter Set (PPS) described above, referring to Figure 11. In this case, if the current picture has a single NAL unit type, pps_mixed_nalu_types_in_pic_flag can have a first value (e.g., 0). Conversely, if the current picture has a mixed NAL unit type, pps_mixed_nalu_types_in_pic_flag can have a second value (e.g., 1).
[0243] In one embodiment, the value of pps_mixed_nalu_types_in_pic_flag can be determined based on whether or not a mixed NAL unit type can be applied to all pictures in the Output Layer Set (OLS). For example, if a mixed NAL unit type cannot be applied to all pictures in the Output Layer Set (OLS), pps_mixed_nalu_types_in_pic_flag can be restricted to having a first value (e.g., 0). Conversely, if a mixed NAL unit type can be applied to all pictures in the Output Layer Set (OLS), pps_mixed_nalu_types_in_pic_flag can have a first value (e.g., 0) or a second value (e.g., 1).
[0244] On the other hand, whether or not a mixed NAL unit type can be applied to all pictures in the output layer set (OLS) can be encoded / signaled using a predetermined syntax element in the higher-level syntax. For example, a flag information gci_no_mixed_nalu_types_in_pic_constraint_flag (or no_mixed_nalu_types_in_pic_constraint_flag) indicating whether or not a mixed NAL unit type is restricted can be encoded / signaled via general_constraints_info, which contains general constraint information. In this case, if a mixed NAL unit type can be applied to all pictures in the output layer set (OLS), gci_no_mixed_nalu_types_in_pic_constraint_flag may have a first value (e.g., 0). In contrast, if a mixed NAL unit type cannot be applied to all pictures in the output layer set (OLS), gci_no_mixed_nalu_types_in_pic_constraint_flag can have a second value (e.g., 1).
[0245] In one embodiment, the value of pps_mixed_nalu_types_in_pic_flag can be determined based on whether the current picture contains only one subpicture. For example, if the current picture contains only one subpicture, pps_mixed_nalu_types_in_pic_flag can be restricted to having a first value (e.g., 0). Conversely, if the current picture contains two or more subpictures, pps_mixed_nalu_types_in_pic_flag can have a first value (e.g., 0) or a second value (e.g., 1).
[0246] In one embodiment, the value of pps_mixed_nalu_types_in_pic_flag can be determined based on whether all subpictures currently included in a picture are treated as separate pictures. For example, if at least one of the subpictures currently included in a picture is not treated as a separate picture, pps_mixed_nalu_types_in_pic_flag can be restricted to having a first value (e.g., 0). Conversely, if all subpictures currently included in a picture are treated as separate pictures, pps_mixed_nalu_types_in_pic_flag can have a first value (e.g., 0) or a second value (e.g., 1).
[0247] The image encoding device can encode multiple slices currently contained in the picture based on the NAL unit type determined in step S1520 (S1530). As described above, the encoding process for each slice can be performed in units of CU (coding unit) based on a predetermined prediction mode. On the other hand, each sub-picture can be encoded independently to form different sub-bitstreams. For example, a first sub-bitstream containing the encoding information of the first sub-picture can be formed, and a second sub-bitstream containing the encoding information of the second sub-picture can be formed.
[0248] Figure 16 is a flowchart showing an image decoding method according to one embodiment of the present disclosure.
[0249] The image decoding method shown in Figure 16 can be performed using the image decoding apparatus shown in Figure 3. For example, steps S1610 and S1620 can be performed by the entropy decoding unit 210, and step S1630 can be performed by the inverse quantization unit 220 to the intra-prediction unit 265.
[0250] Referring to Figure 16, the image decoding device can obtain from the bitstream the VCL NAL unit type information of the current picture and a first flag information indicating whether or not the subpictures included in the current picture are treated as a single picture (S1610).
[0251] The VCL NAL unit type information of the current picture may include the NAL unit type value of the VCL NAL unit containing the encoded image data (e.g., slice data) of the current picture. The NAL unit type value can be obtained by parsing the syntax element nal_unit_type contained in the NAL unit header of the VCL NAL unit.
[0252] The first flag information can be obtained by parsing sps_subpic_treated_as_pic_flag[i] contained in the higher-level syntax, for example, the Sequence Parameter Set (SPS). In this case, if the i-th subpicture currently contained in the picture is not treated as a single picture, sps_subpic_treated_as_pic_flag[i] can have a first value (e.g., 0). Conversely, if the i-th subpicture currently contained in the picture is treated as a single picture, sps_subpic_treated_as_pic_flag[i] can have a second value (e.g., 1).
[0253] The image decoding device can determine the NAL unit type of each of the multiple slices in the current picture based on the VCL NAL unit type information of the current picture (S1620).
[0254] In one embodiment, if at least some of the slices in the current picture have different NAL unit types (i.e., the current picture has a hybrid NAL unit type), the current picture can contain two or more subpictures.
[0255] In one embodiment, if at least some of the slices in the current picture have different NAL unit types, all subpictures contained in the current picture can be treated as a single picture. In this case, for all subpictures contained in the current picture, the first flag information (e.g., sps_subpic_treated_as_pic_fla[1]) can have a second value (e.g., 1).
[0256] In one embodiment, all slices contained within each sub-picture in the current picture may have the same NAL unit type. For example, all slices contained within the first sub-picture of the current picture may have a first NAL unit type, and all slices contained within the second sub-picture of the current picture may have a second NAL unit type. In this case, if the current picture has a hybrid NAL unit type, the second NAL unit type may be different from the first NAL unit type. Conversely, if the current picture has a single NAL unit type, the second NAL unit type may be the same as the first NAL unit type.
[0257] In one embodiment, whether at least some of the slices in a picture currently have different NAL unit types can be determined based on a second flag information (e.g., pps_mixed_nalu_types_in_pic_flag) obtained from a higher-level syntax, such as the Picture Parameter Set (PPS). For example, if the second flag information has a first value (e.g., 0), all slices in the picture currently can have the same NAL unit type. Conversely, if the second flag information has a second value (e.g., 1), at least some of the slices in the picture currently can have different NAL unit types.
[0258] In one embodiment, the second flag information (e.g., pps_mixed_nalu_types_in_pic_flag) may have a predetermined value based on whether or not a mixed NAL unit type can be applied to all pictures in the Output Layer Set (OLL). For example, if a mixed NAL unit type cannot be applied to all pictures in the Output Layer Set (OLS), the second flag information may have only a first value (e.g., 0). In this case, the image decoding device can infer the value of the second flag information as the first value (e.g., 0) without separately parsing the second flag information. Conversely, if a mixed NAL unit type can be applied to all pictures in the Output Layer Set (OLS), the second flag information may have a first value (e.g., 0) or a second value (e.g., 1).
[0259] In one embodiment, the second flag information (e.g., pps_mixed_nalu_types_in_pic_flag) may have a predetermined value based on whether the current picture contains only one subpicture. For example, if the current picture contains only one subpicture, the second flag information may have only a first value (e.g., 0). In this case, the image decoding device can infer the value of the second flag information as the first value (e.g., 0) without separately parsing the second flag information. Conversely, if the current picture contains two or more subpictures, the second flag information may have a first value (e.g., 0) or a second value (e.g., 1).
[0260] In one embodiment, the second flag information (e.g., pps_mixed_nalu_types_in_pic_flag) can have a predetermined value based on whether all subpictures currently included in the picture are treated as separate pictures. For example, if at least one of the subpictures currently included in the picture is not treated as a separate picture, the second flag information can have only a first value (e.g., 0). In this case, the image decoding device can infer the value of the second flag information as the first value (e.g., 0) without separately parsing the second flag information. Conversely, if all subpictures currently included in the picture are treated as separate pictures, the second flag information can have a first value (e.g., 0) or a second value (e.g., 1).
[0261] On the other hand, the type of each sub-picture currently included in a picture can be determined based on the NAL unit type that each sub-picture possesses. For example, as mentioned above with reference to Table 1, a sub-picture with a NAL unit type such as TRAIL_NUT can be determined to be a trailing sub-picture. Similarly, a sub-picture with a NAL unit type such as STSA_NUT can be determined to be an STSA sub-picture, and a sub-picture with a NAL unit type such as GDR_NUT can be determined to be a GDR sub-picture. Furthermore, a sub-picture with a NAL unit type such as RADL_NUT can be determined to be a RADL sub-picture, and a sub-picture with a NAL unit type such as RASL_NUT can be determined to be a RASL sub-picture. Furthermore, subpicture types having NAL unit types such as IDR_W_RADL or IDR_N_LP can be determined as IDR subpictures, and subpicture types having NAL unit types such as CRA_NUT can be determined as CRA subpictures.
[0262] The image decoding device can encode multiple slices in the current picture based on the first flag information acquired in step S1610 and the NAL unit type determined in step S1620 (S1630). As previously mentioned, the decoding process for each slice can be performed in units of CU (coding yunit) based on a predetermined prediction mode.
[0263] As described above, according to one embodiment of the present disclosure, a picture can currently have two or more NAL unit types based on a subpicture structure.
[0264] The names of the syntax elements described in this disclosure may include information about the location where the syntax element is signaled. For example, a syntax element beginning with "sps_" may mean that the syntax element is signaled in a sequence parameter set (SPS). Furthermore, syntax elements beginning with "pps_", "ph_", "sh_", etc., may mean that the syntax element is signaled in a picture parameter set (PPS), picture header, slice header, etc., respectively.
[0265] The exemplary methods in this disclosure are presented as a series of actions for clarity of explanation, but this is not intended to restrict the order in which the steps are performed, and each step may be performed simultaneously or in a different order, if necessary. To implement the methods according to this disclosure, the exemplary steps may be further expanded to include other steps, or some steps may be expanded to include the remaining steps, or some steps may be expanded to include additional steps.
[0266] In this disclosure, an image encoding device or image decoding device that performs a predetermined operation (step) may perform an operation (step) to confirm the conditions or status of the execution of said operation (step). For example, if it is stated that a predetermined operation is performed when a predetermined condition is satisfied, the image encoding device or image decoding device may perform an operation to confirm whether or not the predetermined condition is satisfied, and then perform the predetermined operation.
[0267] The various embodiments of this disclosure are not intended to list all possible combinations, but rather to illustrate representative aspects of this disclosure. The matters described in the various embodiments may be applied independently or in combination of two or more.
[0268] Furthermore, various embodiments of this disclosure can be implemented by hardware, firmware, software, or a combination thereof. In the case of hardware implementation, it can be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general processors, controllers, microcontrollers, microprocessors, etc.
[0269] Furthermore, the image decoding and image encoding devices to which the embodiments of this disclosure are applied can be included in multimedia broadcasting transceivers, mobile communication terminals, home cinema video equipment, digital cinema video equipment, surveillance cameras, video conferencing equipment, real-time communication equipment such as video communications, mobile streaming equipment, storage media, camcorders, video-on-demand (VoD) service providers, over-the-top (OTT) video equipment, internet streaming service providers, 3D video equipment, image-phone video equipment, and medical video equipment, and can be used to process video signals or data signals. For example, over-the-top (OTT) video equipment can include game consoles, Blu-ray players, internet-connected TVs, home theater systems, smartphones, tablet PCs, and digital video recorders (DVRs).
[0270] Figure 17 illustrates a content streaming system to which embodiments of the present disclosure can be applied.
[0271] As shown in Figure 17, a content streaming system to which an embodiment of the present disclosure is applied may broadly include an encoding server, a streaming server, a web server, media storage, user equipment, and multimedia input devices.
[0272] The encoding server is responsible for compressing content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data to generate a bitstream, and transmitting this bitstream to the streaming server. In other cases, if a multimedia input device such as a smartphone, camera, or video camera directly generates the bitstream, the encoding server can be omitted.
[0273] The bitstream can be generated by the image encoding method and / or image encoding apparatus to which the embodiments of the present disclosure are applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0274] The streaming server transmits multimedia data to a user device based on a user's request via a web server, and the web server may serve as a medium for notifying the user of available services. When the user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server can transmit multimedia data to the user. At this time, the content streaming system may include a separate control server, in which case the control server may play a role of controlling commands / responses between respective devices in the content streaming system.
[0275] The streaming server may receive content from a media storage and / or an encoding server. For example, when receiving content from the encoding server, the content can be received in real time. In this case, to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined period of time.
[0276] Examples of the user device may include a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a PDA (personal digital assistants), a PMP (portable multimedia player), a navigation device, a slate PC, a tablet PC, an ultrabook, a wearable device, for example, a smartwatch, smart glass, an HMD (head mounted display), a digital TV, a desktop computer, a digital signage, and the like.
[0277] Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed-processed.
[0278] The scope of the present disclosure includes software or machine-executable commands (e.g., an operating system, an application, firmware, a program, etc.) that enable operations according to methods of various embodiments to be performed on an apparatus or a computer, and a non-transitory computer-readable medium having stored therein such software or commands, which can be executed on the apparatus or the computer. [Industrial Applicability]
[0279] Embodiments according to the present disclosure may be used to encode / decode an image.
Claims
1. An image decoding method performed by an image decoding device, The steps include obtaining the VCL (video coding layer) NAL (network abstraction layer) unit type information of the current picture, and a first flag information indicating whether the subpictures included in the current picture are treated as a single picture, from the bitstream. The steps include determining the NAL unit type of each of the multiple slices currently included in the picture based on the acquired VCL NAL unit type information, The steps include decoding the plurality of slices based on the determined NAL unit type and the first flag information, The current picture includes two or more subpictures based on the fact that at least some of the plurality of slices have different NAL unit types from each other. The first flag information has a predetermined value indicating that each of the two or more subpictures is treated as a single picture, based on the fact that at least some of the plurality of slices have different NAL unit types. All slices within each sub-picture included in the aforementioned picture have the same NAL unit type. Whether the aforementioned picture contains two or more subpictures is determined based on third information, which indicates a value obtained by subtracting 1 from the number of subpictures. An image decoding method in which, based on the fact that the third information is not obtained from the SPS (sequence parameter set), the value of the third information is inferred to be a value indicating that the current picture contains one subpicture.
2. The image decoding method according to claim 1, wherein whether at least some of the plurality of slices have different NAL unit types is determined based on second flag information obtained from PPS (picture parameter set).
3. The image decoding method according to claim 2, wherein, based on the fact that a hybrid NAL unit type cannot be applied to all pictures in the OLS (output layer set), the second flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
4. The image decoding method according to claim 2, wherein, based on the fact that the current picture contains only one subpicture, the second flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
5. The image decoding method according to claim 2, wherein, based on the fact that at least one of the subpictures included in the current picture is not treated as a single picture, the second flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
6. The image decoding method according to claim 1, wherein the sub-picture type of each sub-picture included in the current picture is determined based on the NAL unit type of each sub-picture.
7. An image encoding method performed by an image encoding device, Currently, the picture is divided into one or more subpictures, The steps include determining the NAL (network abstraction layer) unit type for each of the multiple slices contained in the one or more subpictures, The steps include encoding the plurality of slices based on the determined NAL unit type, The current picture is divided into two or more subpictures based on the fact that at least some of the slices have different NAL unit types from each other. Each of the two or more subpictures is treated as a single picture based on the fact that at least a portion of the plurality of slices have different NAL unit types from each other. All slices within each sub-picture included in the aforementioned picture have the same NAL unit type. A third piece of information used to indicate the number of subpictures is encoded, and the third piece of information indicates a value obtained by subtracting 1 from the number of subpictures. An image encoding method in which, based on the fact that the third information is not encoded into an SPS (sequence parameter set), the value of the third information is inferred to be a value indicating that the current picture contains one subpicture.
8. The image encoding method according to claim 7, wherein whether at least some of the plurality of slices have different NAL unit types is encoded based on predetermined flag information included in the PPS (picture parameter set).
9. The image encoding method according to claim 8, wherein, based on the fact that a hybrid NAL unit type cannot be applied to all pictures in the OLS (output layer set), the flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
10. The image encoding method according to claim 8, wherein, based on the fact that the current picture contains only one subpicture, the flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
11. The image encoding method according to claim 8, wherein, based on the fact that at least one of the subpictures included in the current picture is not treated as a single picture, the flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type.
12. A method for transmitting a bitstream generated by an image encoding method, The aforementioned image encoding method is Currently, the process involves splitting a picture into one or more sub-pictures, The process involves determining the NAL (network abstraction layer) unit type for each of the multiple slices contained within the aforementioned one or more subpictures, This includes encoding the plurality of slices based on the determined NAL unit type, The current picture is divided into two or more subpictures based on the fact that at least some of the slices have different NAL unit types from each other. Each of the two or more subpictures is treated as a single picture based on the fact that at least a portion of the plurality of slices have different NAL unit types from each other. All slices within each sub-picture included in the aforementioned picture have the same NAL unit type. A third piece of information used to indicate the number of subpictures is encoded, and the third piece of information indicates a value obtained by subtracting 1 from the number of subpictures. A method in which, based on the fact that the third information is not encoded in an SPS (sequence parameter set), the value of the third information is inferred to be a value indicating that the current picture contains one subpicture.
