Video encoding / decoding method, device, and method for transmitting bitstream based on a hybrid NAL unit type
The hybrid NAL unit type-based image encoding/decoding method enhances video compression efficiency, addressing the high-cost challenge of high-resolution video transmission and storage by dividing pictures into subpictures with different NAL unit types and optimizing slice decoding.
Patent Information
- Application Number
- KR1020227033944
- Authority / Receiving Office
- KR · KR
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-05
- Filing Date
- 2021-03-05
- Publication Date
- 2026-11-11
- Estimated Expiration
- 2041-03-05
AI Technical Summary
The increasing demand for high-resolution, high-quality video has led to higher transmission and storage costs due to the increased amount of information or bits required, necessitating improved video compression technology.
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 utilizes flag information to determine the NAL unit type of each slice, enhancing encoding/decoding efficiency.
This approach improves encoding/decoding efficiency by allowing for the efficient transmission and storage of high-resolution, high-quality video while maintaining image quality.
Smart Images

Figure 112022102684874-PCT00003_ABST
Abstract
Description
Technology Field
[0001] The present disclosure relates to an image encoding / decoding method and apparatus, and more specifically, to an image encoding / decoding method and apparatus based on a hybrid NAL unit type, and a method for transmitting a bitstream generated by the image encoding method / apparatus of the present disclosure. Background Technology
[0002] Recently, the demand for high-resolution, high-quality video, such as HD (High Definition) and UHD (Ultra High Definition), has been increasing across various fields. As video data becomes higher in resolution and quality, the relative amount of information or bits transmitted increases compared to conventional video data. This increase in transmitted information or bits leads to higher transmission and storage costs.
[0003] Accordingly, high-efficiency video compression technology is required to effectively transmit, store, and play back high-resolution, high-quality video information. The problem to be solved
[0004] The present disclosure aims to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.
[0005] In addition, the present disclosure aims to provide an image encoding / decoding method and apparatus based on a hybrid NAL unit type.
[0006] In addition, the present disclosure aims to provide a video encoding / decoding method and apparatus based on two or more subpictures having different NAL unit types.
[0007] Additionally, the present disclosure aims to provide a computer-readable recording medium storing a bitstream generated by an image encoding method or device according to the present disclosure.
[0008] In addition, the present disclosure aims to provide a computer-readable recording medium storing a bitstream that is received and decoded by an image decoding device according to the present disclosure and used for image restoration.
[0009] In addition, the present disclosure aims to provide a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure.
[0010] The technical problems to be solved in this disclosure are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this disclosure belongs from the description below. means of solving the problem
[0011] A video decoding method according to one aspect of the present disclosure comprises: obtaining from a bitstream VCL (video coding layer) NAL (network abstraction layer) unit type information of a current picture and first flag information regarding whether a subpicture included in the current picture is treated as one picture; determining the NAL unit type of each of a plurality of slices within 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 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 one picture based on at least some of the plurality of slices having different NAL unit types.
[0012] A video decoding device according to another aspect of the present disclosure comprises a memory and at least one processor, wherein the at least one processor obtains from a bitstream VCL (video coding layer) NAL (network abstraction layer) unit type information of a current picture and first flag information regarding whether a subpicture included in the current picture is treated as one picture, determines the NAL unit type of each of a plurality of slices within the current picture based on the obtained VCL NAL unit type information, and decodes 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 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 one picture based on at least some of the plurality of slices having different NAL unit types.
[0013] A video encoding method according to another aspect of the present disclosure comprises the steps of dividing a current picture into one or more subpictures, determining a network abstraction layer (NAL) unit type for each of a plurality of slices included in the one or more subpictures, and encoding the plurality of slices based on the determined NAL unit type, wherein the current picture is divided into two or more subpictures based on at least some of the plurality of slices having different NAL unit types, and each of the two or more subpictures can be treated as one picture based on at least some of the plurality of slices having different NAL unit types.
[0014] A computer-readable recording medium according to another aspect of the present disclosure can store a bitstream generated by the image encoding method or image encoding device of the present disclosure.
[0015] A transmission method according to another aspect of the present disclosure can transmit a bitstream generated by the image encoding device or image encoding method of the present disclosure.
[0016] The features briefly summarized above regarding the present disclosure are merely exemplary aspects of the detailed description of the present disclosure that follows and do not limit the scope of the present disclosure. Effects of the invention
[0017] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency may be provided.
[0018] In addition, according to the present disclosure, an image encoding / decoding method and apparatus based on a hybrid NAL unit type may be provided.
[0019] In addition, according to the present disclosure, a video encoding / decoding method and apparatus based on two or more subpictures having different NAL unit types may be provided.
[0020] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure may be provided.
[0021] Additionally, according to the present disclosure, a recording medium storing a bitstream generated by an image encoding method or device according to the present disclosure may be provided.
[0022] Additionally, according to the present disclosure, a recording medium storing a bitstream that is received and decoded by an image decoding device according to the present disclosure and used for image restoration may be provided.
[0023] The effects obtainable from the present disclosure are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure pertains from the description below. Brief explanation of the drawing
[0024] FIG. 1 is a schematic diagram illustrating a video coding system to which an embodiment according to the present disclosure can be applied. FIG. 2 is a schematic diagram showing an image encoding device to which an embodiment according to the present disclosure can be applied. FIG. 3 is a schematic diagram showing an image decoding device to which an embodiment according to the present disclosure can be applied. FIG. 4 is a flowchart schematically illustrating an image decoding procedure to which an embodiment according to the present disclosure can be applied. FIG. 5 is a flowchart schematically illustrating an image encoding procedure to which an embodiment according to the present disclosure can be applied. Figure 6 is a diagram showing an example of a hierarchical structure for coded images / videos. FIG. 7 is a drawing showing a picture parameter set (PPS) according to one embodiment of the present disclosure. FIG. 8 is a drawing showing a slice header according to one embodiment of the present disclosure. Figure 9 is a drawing showing an example of a subpicture. FIG. 10 is a drawing showing an example of a picture having a hybrid NAL unit type. FIG. 11 is a drawing showing an example of a picture parameter set (PPS) according to one embodiment of the present disclosure. FIG. 12 is a diagram showing an example of a sequence parameter set (SPS) according to one embodiment of the present disclosure. Figure 13 is a diagram illustrating the decoding order and output order by picture type. FIG. 14 is a flowchart illustrating a method for determining the NAL unit type of a current picture according to one embodiment of the present disclosure. FIG. 15 is a flowchart illustrating an image encoding method according to one embodiment of the present disclosure. FIG. 16 is a flowchart illustrating an image decoding method according to one embodiment of the present disclosure. FIG. 17 is a drawing illustrating an exemplary content streaming system to which an embodiment according to the present disclosure can be applied. Specific details for implementing the invention
[0025] Hereinafter, embodiments of the present disclosure are described in detail with reference to the attached drawings so that those skilled in the art can easily implement them. However, the present disclosure may be embodied in various different forms and is not limited to the embodiments described herein.
[0026] In describing the embodiments of the present disclosure, detailed descriptions of known configurations or functions are omitted if it is determined that such descriptions could obscure the essence of the present disclosure. Additionally, parts of the drawings unrelated to the description of the present disclosure have been omitted, and similar parts are denoted by similar reference numerals.
[0027] In the present disclosure, when a component is described as being "connected," "combined," or "joined" with another component, this may include not only a direct connection but also an indirect connection in which another component exists in between. Furthermore, when a component is described as "comprising" or "having" another component, this means that, unless specifically stated otherwise, it does not exclude the other component but may include an additional component.
[0028] In the present 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 specifically stated otherwise. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and likewise, a second component in one embodiment may be referred to as a first component in another embodiment.
[0029] In this disclosure, distinct components are intended to clearly describe their respective features and do not imply that the components are separate. That is, multiple components may be integrated to form a single hardware or software unit, or a single component may be distributed to form multiple hardware or software units. Accordingly, such integrated or distributed embodiments are included within the scope of this disclosure, unless otherwise noted.
[0030] In the present disclosure, the components described in various embodiments do not necessarily mean essential components, and some may be optional components. Accordingly, embodiments consisting of a subset of the components described in one embodiment are also included within the scope of the present disclosure. Furthermore, embodiments including additional components in addition to the components described in various embodiments are also included within the scope of the present disclosure.
[0031] The present disclosure relates to the encoding and decoding of images, and the terms used in the present disclosure may have the ordinary meanings commonly used in the technical field to which the present disclosure belongs, unless newly defined in the present disclosure.
[0032] In the present disclosure, "picture" generally refers to a unit representing a single image of a specific time period, and a slice / tile is an encoding unit constituting a part of the picture, and a picture may be composed of one or more slices / tiles. Additionally, a slice / tile may include one or more coding tree units (CTUs).
[0033] In the present disclosure, "pixel" or "pel" may refer to the smallest unit constituting a picture (or image). Additionally, "sample" may be used as a term corresponding to pixel. A sample may generally represent a pixel or a pixel value, may represent only the pixel / pixel value of the luminance component, or may represent only the pixel / pixel value of the chroma component.
[0034] In this disclosure, "unit" may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to that area. Depending on the case, the term "unit" may be used interchangeably with terms such as "sample array," "block," or "area." In general, an MxN block may include samples (or sample arrays) or a set (or array) of transform coefficients consisting of M columns and N rows.
[0035] In the present disclosure, "current block" may mean one of "current coding block," "current coding unit," "block to be encoded," "block to be decoded," or "block to be processed." When prediction is performed, "current block" may mean "current prediction block" or "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, "current block" may mean "current transformation block" or "block to be transformed." When filtering is performed, "current block" may mean "block to be filtered."
[0036] In the present disclosure, "current block" may mean a block comprising both a luminous component block and a chroma component block, or "luma block of the current block," unless explicitly stated as a chroma block. The luminous component block of the current block may be expressed by including an explicit description of a luminous component block, such as "luma block" or "current luminous block." Additionally, the chroma component block of the current block may be expressed by including an explicit description of a chroma component block, such as "chroma block" or "current chroma block."
[0037] In the present disclosure, " / " and "," may be interpreted as "and / or." For example, "A / B" and "A, B" may be interpreted as "A and / or B." Additionally, "A / B / C" and "A, B, C" may mean "at least one of A, B and / or C."
[0038] In the present 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 the present disclosure, "or" may mean "additionally or alternatively".
[0039] Video Coding System Overview
[0040] FIG. 1 is a schematic diagram illustrating a video coding system to which an embodiment according to the present 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) may transmit encoded video and / or image information or data to the decoding device (20) via a digital storage medium or network in the form of a file or streaming.
[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 include a display unit, and the display unit may be composed of a separate device or an external component.
[0043] The video source generation unit (11) can acquire video / image through a process of capturing, synthesizing, or generating video / image. 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, a video / image archive containing previously captured video / image, etc. The video / image generation device may include, for example, a computer, a tablet, and a smartphone, etc., and can generate video / image (electronically). For example, a virtual video / image may be generated through a computer, etc., in which case the video / image capture process may be replaced by a process of generating related data.
[0044] The encoding unit (12) can encode the input video / image. The encoding unit (12) can perform a series of procedures such as prediction, conversion, and quantization for compression and encoding efficiency. The encoding unit (12) can output the encoded data (encoded video / image information) in the form of a bitstream.
[0045] The transmission unit (13) can transmit encoded video / image information or data output in the form of a bitstream to the receiving unit (21) of the decoding device (20) via a digital storage medium or network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit (13) may include elements for creating a media file through a predetermined file format and elements for transmission via a broadcasting / 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 procedures such as inverse quantization, inverse transformation, 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 through the display unit.
[0048] Overview of Video Encoding Devices
[0049] FIG. 2 is a schematic diagram showing an image encoding device to which an embodiment according to the present disclosure can be applied.
[0050] As illustrated in FIG. 2, the image encoding device (100) may include an image segmentation unit (110), a subtraction unit (115), a conversion unit (120), a quantization unit (130), an inverse quantization unit (140), an inverse conversion unit (150), an addition unit (155), a filtering unit (160), a memory (170), an inter prediction unit (180), an intra prediction unit (185), and an entropy encoding unit (190). The inter prediction unit (180) and the intra prediction unit (185) may be collectively referred to as the "prediction unit." The conversion unit (120), the quantization unit (130), the inverse quantization unit (140), and the inverse conversion unit (150) may be included in the residual processing unit. The residual processing unit may further include a subtraction unit (115).
[0051] All or at least some of the plurality of components constituting the image encoding device (100) may be implemented as a single hardware component (e.g., an encoder or a processor) according to the embodiment. Additionally, the memory (170) may include a decoded picture buffer (DPB) and may be implemented by a digital storage medium.
[0052] The image segmentation unit (110) can divide an input image (or picture, frame) input to an image encoding device (100) into one or more processing units. For example, the processing unit may be called a coding unit (CU). A coding unit may be obtained by recursively dividing a coding tree unit (CTU) or a largest coding unit (LCU) according to a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, a single coding unit may be divided into multiple coding units of a deeper depth based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. For the division of the coding unit, a quad-tree structure may be applied first, and a binary-tree structure and / or a ternary-tree structure may be applied later. A coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer divided. The maximum coding unit may be used directly as the final coding unit, or a lower-depth coding unit obtained by dividing the maximum coding unit may be used as the final coding unit. Here, the term "coding procedure" may include procedures such as prediction, transformation, and / or restoration described below. As another example, the processing unit of the coding procedure may be a Prediction Unit (PU) or a Transform Unit (TU). The Prediction Unit and the Transform Unit may each be divided or partitioned from the final coding unit. The Prediction Unit may be a unit for sample prediction, and the Transform Unit may be a unit for deriving transformation coefficients and / or a unit for deriving a residual signal from transformation coefficients.
[0053] The prediction unit (inter prediction unit (180) or intra prediction unit (185)) can perform a prediction for a block to be processed (current block) and generate a predicted block containing prediction samples for said current block. The prediction unit can determine whether intra prediction is applied or inter prediction is applied at the current block or CU level. The prediction unit can generate various information regarding the prediction of the current block and transmit it to the entropy encoding unit (190). The information regarding the prediction can be encoded in the entropy encoding unit (190) and output in the form of a bitstream.
[0054] The intra prediction unit (185) can predict the current block by referring to samples within the current picture. The referenced samples may be located near the current block or away from it, depending on the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a Planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of fineness of the prediction direction. However, this is merely an example, and depending on the settings, more or fewer directional prediction modes may be used. The intra prediction unit (185) may also determine the prediction mode applied to the current block by using the prediction mode applied to the surrounding blocks.
[0055] The inter prediction unit (180) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information can be predicted in blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, neighboring blocks may include spatial neighboring blocks existing within the current picture and temporal neighboring blocks existing in the reference picture. The reference picture containing the reference blocks and the reference picture containing the temporal neighboring blocks may be the same or different from each other. The temporal neighboring blocks may be referred to by names such as collocated reference block, collocated CU (colCU), etc. A reference picture containing the aforementioned temporal surrounding blocks may be called a collocated picture (colPic). For example, the inter prediction unit (180) may construct a list of motion information candidates 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. Inter prediction may be performed based on various prediction modes, for example, in the case of skip mode and merge mode, the inter prediction unit (180) may use the motion information of surrounding blocks as motion information of the current block. In the case of skip mode, unlike merge mode, a residual signal may not be transmitted.In the motion vector prediction (MVP) mode, the motion vectors of surrounding blocks are used as motion vector predictors, and the motion vector of the current block can be signaled by encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference can represent the difference between the current block's motion vector and the motion vector predictor.
[0056] The prediction unit may generate a prediction signal based on various prediction methods and / or prediction techniques described below. For example, the prediction unit may apply intra prediction or inter prediction for the prediction of the current block, as well as apply intra prediction and inter prediction simultaneously. A prediction method that applies intra prediction and inter prediction simultaneously for the prediction of the current block may be called combined inter and intra prediction (CIIP). Additionally, the prediction unit may perform intra block copy (IBC) for the prediction of the current block. Intra block copy can be used for content video / video coding, such as in games, for example, screen content coding (SCC). IBC is a method that predicts the current block using a pre-recovered reference block within the current picture located at a predetermined distance from the current block. When IBC is applied, the location of the reference block within the current picture can be encoded as a vector (block vector) corresponding to the aforementioned predetermined distance. Although IBC basically performs prediction within the current picture, it can be performed similarly to inter prediction in that it derives the reference block within the current picture. That is, the IBC may use at least one of the inter-prediction techniques described in the present disclosure.
[0057] The prediction signal generated through the prediction unit can be used to generate a restoration signal or to generate a residual signal. The subtraction unit (115) can generate a residual signal (residual signal, residual block, residual sample array) by subtracting the prediction signal (predicted block, prediction sample array) output from the prediction unit 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 transform coefficients by applying a transformation technique to a residual signal. For example, the transformation technique may include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT). Here, GBT refers to a transformation obtained from a graph when the relationship information between pixels is represented as a graph. CNT refers to a transformation obtained based on a prediction signal generated using all previously reconstructed pixels. The transformation process may be applied to a block of pixels of the same size in a square, or to a block of variable size that is not square.
[0059] The quantization unit (130) can quantize the transformation coefficients and transmit them to the entropy encoding unit (190). The entropy encoding unit (190) can encode the quantized signal (information regarding the quantized transformation coefficients) and output it as a bitstream. The information regarding the quantized transformation coefficients may be called residual information. The quantization unit (130) can rearrange the block-shaped quantized transformation coefficients into a one-dimensional vector form based on the coefficient scan order, and can also generate information regarding the quantized transformation coefficients based on the one-dimensional vector-shaped quantized transformation coefficients.
[0060] The entropy encoding unit (190) can perform various encoding methods, such as, for example, exponential Golomb, CAVLC (context-adaptive variable length coding), CABAC (context-adaptive binary arithmetic coding), etc. The entropy encoding unit (190) may encode information required for video / image restoration (e.g., values of syntax elements) together or separately, in addition to quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in units of NAL (network abstraction layer) units. The video / image information may further include information regarding various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). Additionally, the video / image information may further include general constraint information. The signaling information, transmitted information, and / or syntax elements mentioned in the present disclosure may be encoded through the encoding procedure described above and included in the bitstream.
[0061] The above bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmission unit (not shown) for transmitting a signal output from the entropy encoding unit (190) and / or a storage unit (not shown) for storing it may be provided as an internal / external element of the video encoding device (100), or the transmission unit may be provided as a component of the entropy encoding unit (190).
[0062] The quantized transformation coefficients output from the quantization unit (130) can be used to generate a residual signal. For example, a residual signal (residual block or residual samples) can be restored by applying inverse quantization and inverse transformation to the quantized transformation coefficients through the inverse quantization unit (140) and the inverse transformation unit (150).
[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). In cases where there is no residual for the block to be processed, such as when a skip mode is applied, the predicted block can be used as the reconstructed block. The adder (155) may be called a reconstructed unit or a reconstructed block generation unit. The generated reconstructed signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after undergoing filtering as described below.
[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 generate a modified restored picture by applying various filtering methods to the restored picture, and can store the modified restored picture in memory (170), specifically in the DPB of memory (170). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (160) can generate various information regarding filtering and transmit it to the entropy encoding unit (190), as described below in the description of each filtering method. The information regarding filtering can be encoded in the entropy encoding unit (190) and output in the form of a bitstream.
[0065] The modified restored picture transmitted to the memory (170) can be used as a reference picture in the inter-prediction unit (180). Through this, when inter-prediction is applied, the image encoding device (100) can avoid prediction mismatches between the image encoding device (100) and the image decoder, and can also improve encoding efficiency.
[0066] The DPB in memory (170) can store a modified restored picture to be used as a reference picture in the inter prediction unit (180). Memory (170) can store motion information of blocks from which motion information is derived (or encoded) in the current picture 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) to be used as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory (170) can store restoration samples of restored blocks in the current picture and transmit them to the intra prediction unit (185).
[0067] Overview of the video decoder
[0068] FIG. 3 is a schematic diagram showing an image decoding device to which an embodiment according to the present disclosure can be applied.
[0069] As illustrated in FIG. 3, the image decoding device (200) may be configured to include an entropy decoding unit (210), 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). The inter prediction unit (260) and the intra prediction unit (265) may be collectively referred to as the "prediction unit." The inverse quantization unit (220) and the inverse transform unit (230) may be included in the residual processing unit.
[0070] All or at least some of the plurality of components constituting the video decoding device (200) may be implemented as a single hardware component (e.g., a decoder or a processor) according to the embodiment. Additionally, the memory (250) may include a DPB and may be implemented by a digital storage medium.
[0071] A video decoding device (200) that receives a bitstream containing video / image information can restore an image by performing a process corresponding to the process performed by the video encoding device (100) of FIG. 2. For example, the video decoding device (200) can perform decoding using a processing unit applied in the video encoding device. Thus, the processing unit for decoding may be, for example, a coding unit. The coding unit may be a coding tree unit or may be obtained by dividing a maximum coding unit. And, the restored image signal decoded and output through the video decoding device (200) can be played back through a playback device (not shown).
[0072] The image decoding device (200) can receive a signal output from the image encoding device of FIG. 2 in the form of a bitstream. The received signal can be decoded through an 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 regarding various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). Additionally, the video / image information may further include general constraint information. The image decoding device may additionally utilize the information regarding the parameter sets and / or the general constraint information to decode the image. The signaling information, received information, and / or syntax elements mentioned in the present disclosure may be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit (210) can decode information within the bitstream based on coding methods such as exponential chord coding, CAVLC, or CABAC, and output the values of syntax elements required for image restoration and the quantized values of transformation coefficients regarding residuals. More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element in the bitstream, determine a context model using information on the syntax element to be decoded and the decoding information of the surrounding block and the block to be decoded or the information of the symbol / bin decoded in the previous step, predict the probability of occurrence of the bin according to the determined context model, and perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.At this time, the CABAC entropy decoding method can update the context model using the decoded symbol / bin information for the context model of the next symbol / bin after determining the context model. Among the information decoded in the entropy decoding unit (210), information regarding prediction is provided to the prediction unit (inter prediction unit (260) and intra prediction unit (265)), and residual values, i.e., quantized transformation coefficients and related parameter information, for which entropy decoding was performed in the entropy decoding unit (210) can be input to the inverse quantization unit (220). Additionally, among the information decoded in the entropy decoding unit (210), information regarding filtering can be provided to the filtering unit (240). Meanwhile, a receiving unit (not shown) that receives a signal output from a video encoding device may be additionally provided as an internal / external element of the video decoding device (200), or the receiving unit may be provided as a component of the entropy decoding unit (210).
[0073] Meanwhile, the image decoding device according to the present disclosure may be referred to as a video / image / picture decoding device. The image decoding device may include an information decoder (video / image / picture information decoder) and / or a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoding unit (210), and the sample decoder may include at least one of an inverse quantization unit (220), an inverse transform unit (230), an adder (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265).
[0074] In the inverse quantization unit (220), the quantized transform coefficients can be inversely quantized to output transform coefficients. The inverse quantization unit (220) can rearrange the quantized transform coefficients into a two-dimensional block form. 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 transform coefficients using quantization parameters (e.g., quantization step size information) and obtain transform coefficients.
[0075] In the inverse conversion unit (230), the conversion coefficients can be inversely converted to obtain a residual signal (residual block, residual sample array).
[0076] The prediction unit performs a prediction for the current block and can generate a predicted block containing prediction samples for the current block. Based on information regarding the prediction output from the entropy decoding unit (210), the prediction unit can determine whether an intra prediction or an inter prediction is applied to the current block and can determine a specific intra / inter prediction mode (prediction technique).
[0077] The fact that the prediction unit can generate a prediction signal based on various prediction methods (techniques) described below is the same as mentioned in the description of the prediction unit of the image encoding device (100).
[0078] The intra prediction unit (265) can predict the current block by referring to samples within the current picture. The description of the intra prediction unit (185) can be applied in the same way to the intra prediction unit (265).
[0079] The inter prediction unit (260) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information can be predicted in blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, neighboring blocks may include spatial neighboring blocks existing within the current picture and temporal neighboring blocks existing in the reference picture. For example, the inter prediction unit (260) may construct a motion information candidate list based on the neighboring blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter-prediction can be performed based on various prediction modes (techniques), and information regarding the prediction may include information indicating the mode (technique) of inter-prediction for the current block.
[0080] The adder (235) can generate a restoration signal (restored picture, restored block, restored sample array) by adding the acquired residual signal to the prediction signal (predicted block, predicted sample array) output from the prediction unit (including the inter prediction unit (260) and / or the intra prediction unit (265)). In cases where there is no residual for the block to be processed, such as when a skip mode is applied, the predicted block can be used as the restoration block. The description of the adder (155) can be applied equally to the adder (235). The adder (235) may be called a restoration unit or a restoration block generation unit. The generated restoration signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after undergoing filtering as described below.
[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 generate a modified restored picture by applying various filtering methods to the restored picture, and can store the modified restored picture in memory (250), specifically in the DPB of memory (250). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0082] The (modified) restored picture stored in the DPB of the memory (250) can be used as a reference picture in the inter-prediction unit (260). The memory (250) can store motion information of blocks from which motion information within the current picture has been derived (or decoded) and / or motion information of blocks within the picture that have already been restored. The stored motion information can be transmitted to the inter-prediction unit (260) to be used as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. The memory (250) can store restoration samples of blocks restored within the current picture and transmit them to the intra-prediction unit (265).
[0083] In this specification, the embodiments described in the filtering unit (160), inter prediction unit (180), and intra prediction unit (185) of the image encoding device (100) may be applied to the filtering unit (240), inter prediction unit (260), and intra prediction unit (265) of the image decoding device (200) in the same or corresponding manner.
[0084] General Video / Video Coding Procedure
[0085] In video coding, the pictures constituting the video can be encoded / decoded according to a series of decoding orders. The picture order corresponding to the output order of the decoded pictures can be set differently from the aforementioned decoding order, and based on this, not only forward prediction but also reverse prediction can be performed during inter-prediction.
[0086] FIG. 4 is a flowchart schematically illustrating an image decoding procedure to which an embodiment according to the present disclosure can be applied.
[0087] Each procedure illustrated in FIG. 4 can be performed by the image decoding device of FIG. 3. For example, in FIG. 4, step S410 can be performed by an entropy decoding unit (210), step S420 can be performed in a prediction unit including an intra prediction unit (265) and an inter prediction unit (260), step S430 can be performed in a residual processing unit including an inverse quantization unit (220) and an inverse transform unit (230), step S440 can be performed in an adder (235), and step S450 can be performed in a filtering unit (240). Step S410 may include an information decoding procedure described in the present disclosure, step S420 may include an inter / intra prediction procedure described in the present disclosure, step S430 may include a residual processing procedure described in the present disclosure, step S440 may include a block / picture restoration procedure described in the present disclosure, and step S450 may include an in-loop filtering procedure described in the present disclosure.
[0088] Referring to FIG. 4, the picture decoding procedure may include, schematically as shown in the description of FIG. 3, a procedure for obtaining image / video information (through decoding) from a bitstream (S410), a picture restoration procedure (S420–S440), and an in-loop filtering procedure for the restored picture (S450). The picture restoration procedure may be performed based on prediction 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 in the present disclosure. A modified restored picture may be generated through an in-loop filtering procedure on the restored picture generated through the above picture restoration procedure, and the modified restored picture may be output as a decoded picture and may also 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 during subsequent picture decoding. In some cases, the above in-loop filtering procedure may be omitted, in which case the restored picture may be output as a decoded picture and may also 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 during subsequent picture decoding. As described above, the above in-loop filtering procedure (S450) may include a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure and / or a bilateral filter procedure, and some or all of these may be omitted. In addition, one or some of the above deblocking filtering procedure, SAO (sample adaptive offset) procedure, ALF (adaptive loop filter) procedure, and bilateral filter procedure may be applied sequentially, or all of them may be applied sequentially.For example, the SAO procedure may be performed after a deblocking filtering procedure is applied to the restored picture. Alternatively, for example, the ALF procedure may be performed after a deblocking filtering procedure is applied to the restored picture. This can be performed in the same way in the encoding device.
[0089] FIG. 5 is a flowchart schematically illustrating an image encoding procedure to which an embodiment according to the present disclosure can be applied.
[0090] Each procedure illustrated in FIG. 5 may be performed by the image encoding device of FIG. 2. For example, step S510 may be performed in a prediction unit including an intra prediction unit (185) or an inter prediction unit (180), step S520 may be performed in a residual processing unit including a conversion unit (120) and / or a quantization unit (130), and step S530 may be performed in an entropy encoding unit (190). Step S510 may include the inter / intra prediction procedure described in the present disclosure, step S520 may include the residual processing procedure described in the present disclosure, and step S530 may include the information encoding procedure described in the present disclosure.
[0091] Referring to FIG. 5, the picture encoding procedure may include not only a procedure for encoding information for picture restoration (e.g., prediction information, residual information, partitioning information, etc.) in a general manner as described in FIG. 2 and outputting it in the form of a bitstream, but also a procedure for generating a restored picture for the current picture and a procedure for applying in-loop filtering to the restored picture (optional). The encoding device may derive (modified) residual samples from quantized transform coefficients through the inverse quantization unit (140) and the inverse transform unit (150), and may generate a restored picture based on the prediction samples, which are the output of step S510, and the (modified) residual samples. The restored picture thus generated may be identical to the restored picture generated by the decoding device described above. A modified restored picture can be generated through an in-loop filtering procedure for the above restored picture, which can be stored in a decoded picture buffer or memory (170), and, as in the case of a decoding device, can be used as a reference picture in an inter-prediction procedure during the encoding of the picture thereafter. As described above, depending on the case, some or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, (in-loop) filtering-related information (parameters) can be encoded in the entropy encoding unit (190) and output in the form of a bitstream, and the decoding device can perform the in-loop filtering procedure in the same way as the encoding device based on the filtering-related information.
[0092] Through this in-loop filtering procedure, noise generated during image / video coding, such as blocking artifacts and ringing artifacts, can be reduced, and subjective and objective visual quality can be enhanced. Furthermore, by performing the in-loop filtering procedure in both the encoding and decoding units, they can derive identical prediction results, increase the reliability of picture coding, and reduce the amount of data that must be transmitted for picture coding.
[0093] As described above, the picture restoration procedure can be performed in the encoding device as well as the decoding device. Restoration blocks can be generated based on intra prediction / inter prediction for each block, and a restored picture containing the restoration 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. Meanwhile, 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 blocks within the current picture / slice / tile group, and intra prediction may be applied to the remaining blocks. The color components of the picture may include luminance components and chroma components, and unless explicitly limited in this disclosure, the methods and embodiments proposed in this disclosure may be applied to luminance components and chroma components.
[0094] Examples of coding hierarchy and structure
[0095] The coded video / image according to the present disclosure can be processed, for example, according to the coding layer and structure described below.
[0096] Figure 6 is a diagram showing an example of a hierarchical structure for coded images / videos.
[0097] The coded image / video can be divided into a video coding layer (VCL) that handles the decoding processing of the image / video and the image / video itself, a subsystem that transmits and stores the encoded information, and a network abstraction layer (NAL) that exists between the VCL and the subsystem and is responsible for network adaptation functions.
[0098] In VCL, VCL data containing compressed image data (slice data) can be generated, or 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 that are additionally required in the decoding process of the image can be generated.
[0099] In NAL, a NAL unit can be created by adding header information (NAL unit header) to the Raw Byte Sequence Payload (RBSP) generated in VCL. In this case, the RBSP refers to slice data, parameter sets, SEI messages, etc. generated in VCL. The NAL unit header may include NAL unit type information specified according to the RBSP data included in the NAL unit.
[0100] As shown in FIG. 6, NAL units can be classified into VCL NAL units and Non-VCL NAL units depending on the type of RBSP generated in VCL. A VCL NAL unit may refer to a NAL unit containing information about an image (slice data), and a Non-VCL NAL unit may refer to a NAL unit containing information necessary to decode an image (parameter set or SEI message).
[0101] The aforementioned VCL NAL unit and Non-VCL NAL unit can be transmitted over a network with header information attached according to the data specifications of the underlying system. For example, the NAL unit can be transformed into a data format of a specified specification, such as H.266 / VVC file format, RTP (Real-time Transport Protocol), TS (Transport Stream), etc., and transmitted over various networks.
[0102] As described above, the NAL unit type can be determined based on the RBSP data structure included in the NAL unit, and information regarding this NAL unit type can be stored in the NAL unit header and signaled. For example, depending on whether the NAL unit includes information about the image (slice data), it can be broadly classified into VCL NAL unit types and Non-VCL NAL unit types. VCL NAL unit types can be classified according to the nature and type of the picture included in the VCL NAL unit, and Non-VCL NAL unit types can be classified according to the type of parameter set.
[0103] The following lists examples of NAL unit types specified according to the parameter sets / types of information included in the Non-VCL NAL unit type.
[0104] - DCI (Decoding capability information) NAL unit type (NUT): Type for the NAL unit containing DCI
[0105] - VPS (Video Parameter Set) NUT: Type for the NAL unit containing the VPS
[0106] - SPS(Sequence Parameter Set) NUT: Type for NAL unit containing SPS
[0107] - PPS(Picture Parameter Set) NUT: Type for NAL unit containing PPS
[0108] - APS (Adaptation Parameter Set) NUT: Type for NAL unit containing APS
[0109] - PH (Picture header) NUT: Type for NAL unit including picture header
[0110] The above-described NAL unit types have syntax information for the NAL unit type, and said syntax information can be stored in the NAL unit header and signaled. For example, said syntax information may be nal_unit_type, and NAL unit types can be specified using the nal_unit_type value.
[0111] Meanwhile, a single picture may include multiple slices, and a single slice may include a slice header and slice data. In this case, an additional picture header may be added for multiple slices (slice header and slice data set) within a single picture. The picture header (picture header syntax) may include information / parameters that can be commonly applied to the picture. The slice header (slice header syntax) may include information / parameters that can be commonly applied to the slice. The APS (APS syntax) or PPS (PPS syntax) may include information / parameters that can be commonly applied to one or more slices or pictures. The SPS (SPS syntax) may include information / parameters that can be commonly applied to one or more sequences. The VPS (VPS syntax) may include information / parameters that can be commonly applied to multiple layers. The above DCI may include information / parameters related to decoding capability.
[0112] In the present 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. Additionally, in the present disclosure, the low-level syntax (LLS) may include, for example, slice data syntax, CTU syntax, encoding unit syntax, translation unit syntax, etc.
[0113] Meanwhile, the image / video information encoded from an encoding device to a decoder in the present disclosure and signaled in the form of a bitstream includes not only information related to picture partitioning, intra / inter prediction information, residual information, in-loop filtering information, etc., but may also include information of the slice header, information of the picture header, information of the APS, information of the PPS, information of the SPS, information of the VPS, and / or information of the DCI. Additionally, the image / video information may further include general constraint information and / or information of the NAL unit header.
[0114] Entry Point Signaling Overview
[0115] As described above, the VCL NAL unit may include slice data as a Raw Byte Sequence Payload (RBSP). The slice data is aligned in byte units within the VCL NAL unit and may include one or more subsets. At least one entry point for Random Access (RA) may be defined for the subsets, and parallel processing may be performed based on the 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 and decoded in parallel based on WPP.
[0117] To enable parallel processing capabilities, entry point information may be signaled. The image decoder can directly access the start point of a data segment included in the NAL unit based on the entry point information. Here, the start point of the data segment may refer to the start point of tiles within a slice or the start point of CTU rows within a slice.
[0118] Entry point information can be signaled within higher-level syntax, for example, the Picture Parameter Set (PPS) and / or the slice header.
[0119] FIG. 7 is a drawing showing a picture parameter set (PPS) according to one embodiment of the present disclosure, and FIG. 8 is a drawing showing a slice header according to one embodiment of the present disclosure.
[0120] First, referring to FIG. 7, the picture parameter set (PPS) may include entry_point_offsets_present_flag as a syntax element indicating whether entry point information is signaling.
[0121] entry_point_offsets_present_flag may indicate whether signaling of entry point information exists within a slice header referencing a picture parameter set (PPS). For example, entry_point_offsets_present_flag having a first value (e.g., 0) may indicate that there is no signaling of entry point information for a tile or specific CTU rows within a tile within the slice header. Alternatively, entry_point_offsets_present_flag having a second value (e.g., 1) may indicate that there is signaling of entry point information for a tile or specific CTU rows within a tile within the slice header.
[0122] Meanwhile, FIG. 7 illustrates a case where entry_point_offsets_present_flag is included in the picture parameter set (PPS), but this is exemplary and the embodiments of the present disclosure are not limited thereto. For example, entry_point_offsets_present_flag may be included in the sequence parameter set (SPS).
[0123] Next, referring to FIG. 8, the slice header may include offset_len_minus1 and entry_point_offset_minus1[ i ] as syntax elements for identifying the entry point.
[0124] offset_len_minus1 may represent a value obtained by subtracting 1 from the bit length of entry_point_offset_minus1[ i ]. The value of offset_len_minus1 may have a range of 0 or greater and 31 or less. In one example, offset_len_minus1 may be signaled based on a variable NumEntryPoints representing the total number of entry points. For example, offset_len_minus1 may be signaled only when NumEntryPoints is greater than 0. Additionally, offset_len_minus1 may be signaled based on the entry_point_offsets_present_flag described above with reference to FIG. 7. For example, offset_len_minus1 may be signaled only when entry_point_offsets_present_flag has a second value (e.g., 1) (i.e., when signaling of entry point information exists within 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. Slice data within a NAL unit may contain a number of subsets equal to the value obtained by adding 1 to NumEntryPoints, and the index value indicating each of said subsets may have a range of 0 or greater and NumEntryPoints or less. The first byte of slice data within a NAL unit may be represented as byte 0.
[0126] When entry_point_offset_minus1[ i ] is signaled, emulation prevention bytes included in the slice data within the NAL unit may be counted as part of the slice data for subset identification. Subset 0, the first subset of the slice data, may have a composition from byte 0 to entry_point_offset_minus1
[0000] . Similarly, subset k, the k-th subset of the slice data, may 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]
[0128]
[0129] In Formulas 1 and 2, k can have a range of values greater than or equal to 1 and less than or equal to NumEntryPoints.
[0130] The last subset of slice data (i.e., the NumEntryPoints-th subset) can consist of the remaining bytes of the slice data.
[0131] Meanwhile, if a specific synchronization process for context variables is not performed (e.g., sps_entropy_coding_sync_enabled_flag == 0) before decoding the CTU containing the first CTB of the CTB row within each tile, and the slice contains one or more complete tiles, each subset of slice data may consist of all encoded bits for all CTUs within the same tile. In this case, the total number of subsets of slice data may be equal to the total number of tiles within the slice.
[0132] In contrast, if the above-mentioned 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 slice data may consist of all encoded bits for all CTUs within the slice.
[0133] In contrast, when the above-mentioned synchronization process is performed (e.g., sps_entropy_coding_sync_enabled_flag == 1), each subset may consist of all encoded bits for all CTUs in a row of CTUs within a single tile. In this case, the total number of subsets of slice data may be equal to the total number of rows of CTUs per tile within the slice.
[0134] Overview of Mixed NAL Unit Type
[0135] Generally, one NAL unit type can be set for one picture. As described above, syntax information indicating the NAL unit type can be stored and signaled in the NAL unit header within the NAL unit. For example, the syntax information may be nal_unit_type, and NAL unit types can be specified using the nal_unit_type value.
[0136] An example of NAL unit types to which the embodiment according to the present disclosure can be applied is shown in Table 1 below.
[0137] nal_unit_type Name ofnal_unit_type Content of NAL unit and RBSP syntax structure NAL unit type class 0 TRAIL_NUT Coded slice of a trailing pictureslice_layer_rbsp( ) VCL 1 STSA_NUT Coded slice of an STSA pictureslice_layer_rbsp( ) VCL 2 RADL_NUT Coded slice of a RADL pictureslice_layer_rbsp( ) VCL 3 RASL_NUT Coded slice of a RASL pictureslice_layer_rbsp( ) VCL 4..6 RSV_VCL_4..RSV_VCL_6 Reserved non-IRAP VCL NAL unit types VCL 78 IDR_W_RADLIDR_N_LP Coded slice of an IDR pictureslice_layer_rbsp( ) VCL 9 CRA_NUT Coded slice of a CRA picturesilce_layer_rbsp( ) VCL 10 GDR_NUT Coded slice of a GDR pictureslice_layer_rbsp( ) VCL 1112 RSV_IRAP_11RSV_IRAP_12 Reserved IRAP VCL NAL unit types VCL 13 DCI_NUT Decoding capability informationdecoding_capability_information_rbsp( ) non-VCL 14 VPS_NUT Video parameter setvideo_parameter_set_rbsp( ) non-VCL 15 SPS_NUT Sequence parameter setseq_parameter_set_rbsp( ) non-VCL 16 PPS_NUT Picture parameter setpic_parameter_set_rbsp( ) non-VCL 1718 PREFIX_APS_NUTSUFFIX_APS_NUT Adaptation parameter setadaptation_parameter_set_rbsp( ) non-VCL 19 PH_NUT Picture headerpicture_header_rbsp( ) non-VCL 20 AUD_NUT AU delimiteraccess_unit_delimiter_rbsp( ) non-VCL 21 EOS_NUT End of sequenceend_of_seq_rbsp( ) non-VCL 22 EOB_NUT End of bitstreamend_of_bitstream_rbsp( ) non-VCL 2324 PREFIX_SEI_NUTSUFFIX_SEI_NUT Supplemental enhancement informationsei_rbsp( ) non-VCL 25 FD_NUT Filler datafiller_data_rbsp( ) non-VCL 2627 RSV_NVCL_26RSV_NVCL_27 Reserved non-VCL NAL unit types non-VCL 28..31 UNSPEC_28..UNSPEC_31 Unspecified non-VCL NAL unit types non-VCL - NUT : NAL unit type- STSA: Step-wise Temporal sub-layer Switching Access- RADL: Random Access Decodable Leading- RASL: Random Access Skipped Leading- IDR: Instantaneous Decoding Refresh- LP: Leading Picture- _W_RADL: With RADL- _N_LP: No LP, without LP- CRA: Clean Random Access- GDR: Gradual Decoding Refresh- IRAP: Intra Random Access Point
[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. Additionally, 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 of the NAL unit for the IRAP picture, set to the range from IDR_W_RADL to CRA_NUT.
[0141] - IDR (Instantaneous Decoding Refresh) NUT: Type for the NAL unit of the IDR picture, set to IDR_W_RADL or IDR_N_LP.
[0142] - CRA(Clean Random Access) NUT: Type for the NAL unit of the CRA picture, set to CRA_NUT.
[0143] - RADL(Random Access Decodable Leading) NUT : Type for the NAL unit of the RADL picture, set to RADL_NUT.
[0144] - RASL(Random Access Skipped Leading) NUT : Type for the NAL unit of the RASL picture, set to RASL_NUT.
[0145] - Trailing NUT: Type for the trailing picture's NAL unit, set to TRAIL_NUT.
[0146] - GDR (Gradual Decoding Refresh) NUT: Type for the NAL unit of the GDR picture, set to GDR_NUT.
[0147] - STSA (Step-wise Temporal Sublayer Access) NUT: Type for the NAL unit of the STSA picture, set to STSA_NUT.
[0148] Meanwhile, the VVC standard allows a single picture to include multiple slices having different NAL unit types. 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 type of the picture may be referred to as a mixed NAL unit type. As such, since the VVC standard supports mixed NAL unit types, multiple pictures can be more easily reconstructed or synthesized during content synthesis, encoding / decoding processes, etc.
[0149] However, according to the existing scheme regarding hybrid NAL unit types, there is a limitation that only hybridization between two NAL unit types is allowed. Additionally, if a picture has a hybrid NAL unit type, there is a limitation that one or more VCL NAL units of the picture must have NAL unit types in the range of IDR_W_RADL to CRA_NUT, and the remaining VCL NAL units of the picture must have NAL unit types in the range of TRAIL_NUT to RSV_VCL_6. As a result, although hybrid NAL unit types are useful in image processing, a problem has arisen in that they are not generally utilized.
[0150] To solve such problems, according to embodiments of the present disclosure, hybridization between two or more NAL unit types is allowed, and a wider variety of hybrid NAL unit types can be provided.
[0151] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings.
[0152] If a picture comprises two or more slices and the NAL unit types of each of the slices are different, the picture may be limited to comprising two or more subpictures. That is, if a picture has a mixed NAL unit type, the picture may comprise two or more subpictures.
[0153] A subpicture may include one or more slices and may constitute a rectangular area within the picture. The size of each subpicture within the picture may be set differently from one another. Alternatively, for all pictures belonging to a sequence, the size and position of specific individual subpictures may be set identically.
[0154] Figure 9 is a drawing showing an example of a subpicture.
[0155] Referring to FIG. 9, a picture can be divided into 18 tiles. Twelve tiles can be placed on the left side of the picture, and each of the tiles may include a slice composed of 4x4 CTUs. Additionally, six tiles can be placed on the right side of the picture, and each of the tiles may include two slices each composed of 2x2 CTUs and stacked vertically. Consequently, the picture comprises 24 subpictures and 24 slices, and each of the subpictures may include a slice.
[0156] In one embodiment, each subpicture within a picture may be treated as a single picture to support a hybrid NAL unit type. When a subpicture is treated as a single picture, the subpicture may be encoded / decoded independently, regardless of the encoding / decoding results of other subpictures. Here, independent encoding / decoding means that the block partitioning structure (e.g., single tree structure, dual tree structure, etc.), prediction mode type (e.g., intra prediction, inter prediction, etc.), decoding order, etc. of the subpicture may be configured differently from other subpictures. For example, if a first subpicture is encoded / decoded based on an intra prediction mode, a second subpicture adjacent to the first subpicture and treated as a single picture may be encoded / decoded based on an inter prediction mode.
[0157] In this way, when a picture includes two or more independent subpictures and each of the subpictures has a different NAL unit type, the picture may have a hybrid NAL unit type.
[0158] FIG. 10 is a drawing showing an example of a picture having a hybrid NAL unit type.
[0159] Referring to FIG. 10, one picture (1000) may include first to third subpictures (1010 to 1030). The first and third subpictures (1010, 1030) may each include two slices. Alternatively, the second subpicture (1020) may include four slices.
[0160] When the first to third subpictures (1010 to 1030) are each treated as a single picture, the first to third subpictures (1010 to 1030) can each be encoded independently to form different bitstreams. For example, the encoded slice data of the first subpicture (1010) can be encapsulated into one or more NAL units having a NAL unit type such as RASL_NUT to form a first bitstream (Bitstream 1). Additionally, the encoded slice data of the second subpicture (1020) can be encapsulated into one or more NAL units having a NAL unit type such as RADL_NUT to form a second bitstream (Bitstream 2). Additionally, the encoded slice data of the third subpicture (1030) can be encapsulated into one or more NAL units having a NAL unit type such as RASL_NUT to form a third bitstream (Bitstream 3). Consequently, one picture (1000) may have a hybrid NAL unit type in which RASL_NUT and RADL_NUT are combined.
[0161] In one embodiment, all slices included in each subpicture within the picture may be restricted to having the same NAL unit type. For example, two slices included in the first subpicture (1010) may both have a NAL unit type such as RASL_NUT. Additionally, four slices included in the second subpicture (1020) may all have a NAL unit type such as RADL_NUT. Additionally, two slices included in the third subpicture (1030) may both have a NAL unit type such as RASL_NUT.
[0162] Information regarding subpictures can be signaled within higher-level syntax, for example, the Picture Parameter Set (PPS) and the Sequence Parameter Set (SPS). Additionally, information regarding the application of a hybrid NAL unit type can be signaled within higher-level syntax, for example, the Picture Parameter Set (PPS).
[0163] FIG. 11 is a drawing showing an example of a picture parameter set (PPS) according to one embodiment of the present disclosure, and FIG. 12 is a drawing showing an example of a sequence parameter set (SPS) according to one embodiment of the present disclosure.
[0164] First, referring to FIG. 11, the picture parameter set (PPS) may include pps_mixed_nalu_types_in_pic_flag (or mixed_nalu_types_in_pic_flag) as a syntax element regarding whether a mixed NAL unit type is applied.
[0165] pps_mixed_nalu_types_in_pic_flag can indicate whether the current picture has mixed NAL unit types. For example, 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 may have the same NAL unit type for all VCL NAL units, e.g., the same NAL unit type as encoded slice NAL units. Conversely, 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 unit of the current picture may be restricted not to 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 one of the VCL NAL units of the current picture has a NAL unit type (NAL unit type A) such as IDR_W_RADL, IDR_N_LP, or CRA_NUT, all other VCL NAL units of the current picture may be restricted to have a NAL unit type such as NAL unit type A or a NAL unit type such as TRAIL_NUT. For example, if any one of the VCL NAL units of the current picture has a NAL unit type such as IDR_W_RADL, all other NAL units of the current picture may have a NAL unit type such as IDR_W_RADL or TRAIL_NUT.
[0168] If the current picture has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag == 1), each subpicture within the current picture may have any one of the VCL NAL unit types described above with reference to Table 1. For example, if a subpicture within the current picture is an IDR subpicture, said subpicture may have a NAL unit type such as IDR_W_RADL or IDR_N_LP. Or, if a subpicture within the current picture is a trailing subpicture, said subpicture may have a NAL unit type such as TRAIL_NUT.
[0169] As such, pps_mixed_nalu_types_in_pic_flag having a second value (e.g., 1) may indicate that pictures referencing a picture parameter set (PPS) may include slices having different NAL unit types. Here, the pictures may originate from a subpicture bitstream merge operation in which the encoder must ensure matching of bitstream structures and alignment between parameters of the original bitstreams. As an example of the above alignment, if reference picture list (RPL) syntax elements for a slice having a NAL unit type such as IDR_W_RADL or IDR_N_LP do not exist in the slice header (e.g., sps_idr_rpl_present_flag == 0) and the current picture containing said slice has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag == 1), the current picture may be restricted not to contain slices of NAL unit type such as IDR_W_RADL or IDR_N_LP.
[0170] Meanwhile, if the mixed NAL unit type is restricted so that it is not applied to all pictures in the Output Layer Set (OLS) (e.g., gci_no_mixed_nalu_types_in_pic_constraint_flag == 1), pps_mixed_nalu_types_in_pic_flag may have a first value (e.g., 0).
[0171] Additionally, the picture parameter set (PPS) may include pps_no_pic_partition_flag (or no_pic_partition_flag) as a syntax element indicating whether the picture is partitioned.
[0172] pps_no_pic_partition_flag indicates whether picture partitioning can be applied to the current picture. For example, pps_no_pic_partition_flag with a first value (e.g., 0) indicates that the current picture cannot be partitioned. Conversely, pps_no_pic_partition_flag with a second value (e.g., 1) indicates that the current picture can be partitioned into two or more tiles or slices. If the current picture has a mixed NAL unit type (e.g., pps_mixed_nalu_types_in_pic_flag == 1), the current picture may 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) may include pps_num_subpics_minus1 (or num_subpics_minus1) as a syntax element representing the number of subpictures.
[0174] pps_num_subpics_minus1 may represent the number of subpictures included in the current picture minus 1. pps_num_subpics_minus1 may be signaled only when picture partitioning can be applied to the current picture (e.g., pps_no_pic_partition_flag == 1). If pps_num_subpics_minus1 is not signaled, the value of pps_num_subpics_minus1 may be inferred as 0. Meanwhile, the syntax element representing the number of subpictures may be signaled within a higher-level syntax different from the picture parameter set (PPS), for example, 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 may be restricted not to 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), the current picture may be restricted to contain two or more subpictures (e.g., pps_num_subpics_minus1 > 0).
[0176] Next, referring to FIG. 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 the handling of subpictures during encoding / decoding.
[0177] sps_subpic_treated_as_pic_flag[ i ] may indicate whether each subpicture within the current picture is treated as a single picture. For example, sps_subpic_treated_as_pic_flag[ i ] of a first value (e.g., 0) may indicate that the i-th subpicture within the current picture is not treated as a single picture. Conversely, sps_subpic_treated_as_pic_flag[ i ] of a second value (e.g., 1) may indicate that the i-th subpicture within the current picture is treated as a single picture during the encoding / decoding process, excluding in-loop filtering operations. If sps_subpic_treated_as_pic_flag[ i ] is not signaled, sps_subpic_treated_as_pic_flag[ i ] may be inferred to have the second value (e.g., 1).
[0178] In one embodiment, if the current picture contains two or more subpictures (e.g., pps_num_subpics_minus1 > 0) and at least one of the subpictures is not treated as a single picture (e.g., sps_subpic_treated_as_pic_flag[ i ] == 0), the current picture may be restricted not to 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), all subpictures within the current picture may be restricted to be treated as a single picture (e.g., sps_subpic_treated_as_pic_flag[ i ] = 1).
[0179] Hereinafter, NAL unit types according to the embodiments of the present disclosure are described in detail by picture type.
[0180] (1) IRAP (Intra Random Access Point) picture
[0181] The IRAP picture is a randomly accessible picture and may have a NAL unit type such as IDR_W_RADL, IDR_N_LP, or CRA_NUT as described above with reference to Table 1. During the decoding process, the IRAP picture may not refer to any other pictures other than the IRAP picture for inter-prediction. The IRAP picture may include an IDR (Instantaneous decoding refresh) picture and a CRA (Clean random access) picture.
[0182] In terms of decoding order, the first picture in the bitstream may be limited to an IRAP picture or a GDR (Gradual Decoding Refresh) picture. For a single-layer bitstream, if a set of essential parameters to be referenced is available, said IRAP picture and all non-RASL pictures following said IRAP picture in decoding order can be correctly decoded even if the pictures preceding the IRAP picture in decoding order are not decoded at all.
[0183] In one embodiment, the IRAP picture may not have a mixed NAL unit type. That is, for the IRAP picture, the pps_mixed_nalu_types_in_pic_flag described above may have a first value (e.g., 0), and all slices within the IRAP picture may have the same NAL unit type in the range from IDR_W_RADL to CRA_NUT. As a result, if the first slice decoded within the picture has a NAL unit type in the range from IDR_W_RADL to CRA_NUT, the picture may be determined to be an IRAP picture.
[0184] (2) CRA (Clean Random Access) picture
[0185] The CRA picture is one of the IRAP pictures and may have a NAL unit type such as CRA_NUT as described above with reference to Table 1. During the decoding process, the CRA picture may not refer to other pictures other than the CRA picture for inter-prediction.
[0186] The CRA picture may be the first picture in the bitstream in the decoding order, or it may be a picture after the first. The CRA picture may be associated with RADL or RASL pictures.
[0187] If NoIncorrectPicOutputFlag has a second value (e.g., 1) for a CRA picture, the RASL pictures associated with the CRA picture cannot be decoded because they refer to pictures that do not exist in the bitstream, and as a result, they may not be output by the image decoding device. Here, NoIncorrectPicOutputFlag may indicate whether pictures preceding the recovery point picture in the decoding order are output before the recovery point picture. For example, NoIncorrectPicOutputFlag having a first value (e.g., 0) may indicate that pictures preceding the recovery point picture in the decoding order may 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, which may mean that random access did not occur. In contrast, NoIncorrectPicOutputFlag having a second value (e.g., 1) may indicate that pictures preceding the recovery point picture in the decoding order cannot be output before said recovery point picture. In this case, the CRA picture may be the first picture in the bitstream or the first picture following the EOS NAL unit in the decoding order, which may imply a case where random access occurred. Meanwhile, NoIncorrectPicOutputFlag may be referred to as NoOutputBeforeRecoveryFlag according to the embodiments.
[0188] For all picture units (PUs) that follow the current picture in the decoding order within a coded layer video sequence (CLVS), a reference picture list 0 (e.g., RefPicList
[0000] ) and a reference picture list 1 (e.g., RefPicList
[0001] ) for a slice included in a CRA subpicture belonging to said picture units (PUs) may be restricted so as not to include any picture that precedes the picture including said CRA subpicture in the decoding order within the active entry. Here, a picture unit (PU) may mean a set of NAL units comprising a plurality of NAL units that are interrelated according to a predetermined classification rule and are consecutive in the decoding order for a single encoded picture.
[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 may not refer to any other pictures other than the IDR picture for inter-prediction during the decoding process.
[0191] An IDR picture may be the first picture in the bitstream in the decoding order, or it may be a picture after the first. Each IDR picture may be the first picture of 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. Meanwhile, the IDR picture may not be associated with RASL pictures.
[0193] For all picture units (PUs) that follow the current picture in the decoding order within the CLVS (coded layer video sequence), the reference picture list 0 (e.g., RefPicList
[0000] ) and reference picture list 1 (e.g., RefPicList
[0001] ) for a slice included in an IDR subpicture belonging to said picture units (PUs) may be restricted so as not to include any picture that precedes the picture containing said IDR subpicture in the decoding order within the active entry.
[0194] (4) RADL (Random Access Decodable Leading) picture
[0195] RADL picture is one of the reading pictures and can have a NAL unit type such as RADL_NUT as described above with reference to Table 1.
[0196] A RADL picture may not be used as a reference picture during the decoding process of a trailing picture associated with an IRAP picture identical to the RADL picture. If field_seq_flag for a RADL picture has a first value (e.g., 0), the RADL picture may precede all non-leading pictures that have the same associated IRAP picture in the decoding order. Here, field_seq_flag may indicate whether the Coded Layer Video Sequence (CLVS) conveys a picture representing fields or a picture representing frames. For example, a field_seq_flag with a first value (e.g., 0) may indicate that the CLVS conveys a picture representing frames. In contrast, a field_seq_flag with a second value (e.g., 1) may indicate that CLVS is delivering a picture representing the field.
[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 described above with reference to Table 1.
[0199] In one example, all RASL pictures may be the leading pictures of the associated CRA pictures. If NoIncorrectPicOutputFlag for the CRA pictures has a second value (e.g., 1), the RASL pictures cannot be decoded because they refer to pictures that do not exist in the bitstream, and as a result, they may not be output by the image decoding device.
[0200] A RASL picture may not be used as a reference picture during 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 may be used as a collocated reference picture for inter-prediction of RADL subpictures included in the RADL picture.
[0201] For a RASL picture, if field_seq_flag has a first value (e.g., 0), 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 follows the associated IRAP picture or GDR picture in output order and may not be an STSA picture. Additionally, a trailing picture may follow the associated IRAP picture in decoding order. That is, a trailing picture that follows the associated IRAP picture in output order but leads it in decoding order is not permitted.
[0204] (7) GDR (Gradual Decoding Refresh) picture
[0205] A GDR picture is a randomly accessible picture and can 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] STSA pictures are randomly accessible pictures and may have NAL unit types such as STSA_NUT as described above with reference to Table 1.
[0208] An STSA picture may not refer to pictures having the same TemporalId as the STSA picture for inter-prediction. Here, the TemporalId may be an identifier indicating a temporal hierarchy in scalable video coding, for example, a temporal sublayer. In one example, STSA pictures may be restricted to having a TemporalId greater than 0.
[0209] Pictures having the same TemporalID as the STSA picture and following the STSA picture in the decoding order may not refer to pictures having the same TemporalID as the STSA picture and preceding the STSA picture in the decoding order for inter-prediction. The STSA picture may enable up-switching from the immediately lower sublayer of the current sublayer to which the STSA picture belongs to the current sublayer.
[0210] Figure 13 is a diagram illustrating the decoding order and output order by picture type.
[0211] Multiple pictures may be classified into I-picture, P-picture, or B-picture according to the prediction method. I-picture refers to a picture to which only intra prediction can be applied and can be decoded without referencing other pictures. I-picture may be referred to as an intra picture and may include the aforementioned IRAP picture. P-picture refers to a picture to which intra prediction and unidirectional inter prediction can be applied and can be decoded by referencing another picture. B-picture refers to a picture to which intra prediction and bidirectional / unidirectional inter prediction can be applied and can be decoded by referencing one or two other pictures. P-picture and B-picture may be referred to as inter pictures and may include the aforementioned RADL picture, RASL picture, and trailing picture.
[0212] Inter-pictures can be further classified into Leading Picture (LP) or Non-Leading Picture (NLP) depending on the decoding order and output order. A Leading Picture refers to 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 Picture and RASL Picture. A Non-Leading Picture refers to a picture that follows the IRAP Picture in the decoding order and output order, and may include the aforementioned Trailing Picture.
[0213] In FIG. 13, each picture name may represent the picture type described above. For example, picture I5 may be picture I, pictures B0, B2, B3, B4, and B6 may be pictures B, and pictures P1 and P7 may be pictures P. Also, in FIG. 13, each arrow may indicate the reference direction between the pictures. For example, picture B0 may be decoded by referencing picture P1.
[0214] Referring to FIG. 13, the I5 picture may be an IRAP picture, for example, a CRA picture. When random access is performed on the I5 picture, the I5 picture may 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 form a video sequence separate from picture I5. Pictures B2, B3, B4, B6, and P7 are pictures that follow picture I5 in the decoding order and can form a single video sequence together with picture I5.
[0216] Pictures B2, B3, and B4 can be classified as leading pictures because they follow Picture I5 in the decoding order and precede Picture I5 in the output order. Picture B2 can be decoded by referencing Picture P1, which precedes Picture I5 in the decoding order. Therefore, if random access occurs to Picture I5, Picture B2 cannot be correctly decoded because it refers to Picture P1, which does not exist in the bitstream. A picture type like Picture B2 can be referred to as a RASL picture. In contrast, Picture B3 can be decoded by referencing Picture I5, which precedes Picture B3 in the decoding order. Therefore, if random access occurs to Picture I5, Picture B3 can be correctly decoded by referencing the previously decoded Picture I5. Additionally, Picture B4 can be decoded by referencing Picture I5 and Picture B3, which precede Picture B4 in the decoding order. Therefore, if random access occurs to picture I5, picture B4 can be correctly decoded by referring to picture I5 and picture B3. Picture types such as pictures B3 and B4 can be referred to as RADL pictures.
[0217] Meanwhile, since B6 and P7 pictures follow I5 in both decoding and output order, they can be classified as non-reading pictures. B6 picture can be decoded by referencing I5 and P7 pictures, which precede it in decoding order. Therefore, if random access to I5 picture occurs, B6 picture can be correctly decoded by referencing the previously decoded I5 and P7 pictures.
[0218] As such, within a single video sequence, the decoding and output processes may proceed in different orders based on the picture type. For example, if a video sequence includes an IRAP picture, a reading picture, and a non-reading picture, the decoding process proceeds in the order of the IRAP picture, the reading picture, and the non-reading picture, while the output process may proceed in the order of the reading picture, the IRAP picture, and the non-reading picture.
[0219] FIG. 14 is a flowchart illustrating a method for determining the NAL unit type of a current picture according to one embodiment of the present disclosure.
[0220] Referring to FIG. 14, the video encoding device can determine whether the current picture contains two or more subpictures (S1410). The partitioning information of the current picture can be signaled using one or more syntax elements within the upper-level syntax. For example, through the picture parameter set (PPS) described above with reference to FIG. 7, no_pic_partition_flag, which indicates whether the current picture is partitioned, and pps_num_subpics_minus1, which indicates the number of subpictures included in the current picture, can be signaled. If the current picture contains two or more subpictures, no_pic_partition_flag may have a first value (e.g., 0), and pps_num_subpics_minus may have a value greater than 0.
[0221] If the current picture does not contain two or more subpictures ('NO' in S1410), the video encoding device may determine that the current picture has a single NAL unit type (S1450). That is, all slices within the current picture may have any one of the aforementioned multiple NAL unit types with reference to Table 1.
[0222] In contrast, if the current picture contains two or more subpictures ('YES' in S1410), the video encoding device can determine whether each subpicture within 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 specific syntax element within the upper-level syntax. For example, sps_subpic_treated_as_pic_flag[ i ] indicating whether a subpicture is treated as a single picture can be signaled through the sequence parameter set (SPS) described above with reference to FIG. 12. If each subpicture within 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 subpicture within the current picture is not treated as a single picture ('NO' in S1420), the video encoding device may determine that the current picture has a single NAL unit type (S1450).
[0224] In contrast, if each subpicture in the current picture is treated as a single picture ('YES' in S1420), the video 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 multiple slices in the current picture have different NAL unit types ('YES' in S1430), the video encoding device may determine that the current picture has a hybrid NAL unit type (S1440).
[0226] In contrast, if all of the multiple slices in the current picture have the same NAL unit type ('NO' in S1430), the video encoding device may determine that the current picture has a single NAL unit type (S1450).
[0227] If the current picture has a hybrid NAL unit type, the video encoding device can generate a sub-bitstream for each subpicture included in the current picture. In this case, the multiple sub-bitstreams generated for the current picture can constitute a single bitstream.
[0228] Information regarding whether the current picture has a mixed NAL unit type can be signaled using a specific syntax element within the upper-level syntax. For example, through the picture parameter set (PPS) described above with reference to FIG. 11, pps_mixed_nalu_types_in_pic_flag, which indicates whether the current picture has a mixed NAL unit type, can be signaled. In this case, the image decoder can determine whether the current picture has a mixed NAL unit type 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 current picture has a single NAL unit type. In contrast, if pps_mixed_nalu_types_in_pic_flag has a second value (e.g., 1), the image decoder can determine that the current picture has a mixed NAL unit type.
[0229] Meanwhile, all slices within each subpicture included in the current picture may have the same NAL unit type. That is, each subpicture may have only a single NAL unit type. Additionally, if the current picture has a hybrid NAL unit type, at least some of the subpictures included in the current picture may have different NAL unit types. For example, a first subpicture included in the current picture may have a first NAL unit type, and a second subpicture included in the current picture may have a second NAL unit type different from the first NAL unit type.
[0230] The type of each subpicture included in the current picture can be determined based on the NAL unit type that each subpicture has. For example, as described above with reference to Table 1, the type of a subpicture having a NAL unit type such as TRAIL_NUT can be determined as a trailing subpicture. Additionally, the type of a subpicture having a NAL unit type such as STSA_NUT can be determined as an STSA subpicture, and the type of a subpicture having a NAL unit type such as GDR_NUT can be determined as a GDR subpicture. Additionally, the type of a subpicture having a NAL unit type such as RADL_NUT can be determined as a RADL subpicture, and the type of a subpicture having a NAL unit type such as RASL_NUT can be determined as a RASL subpicture. Additionally, the type of subpicture having a NAL unit type such as IDR_W_RADL or IDR_N_LP is determined as an IDR subpicture, and the type of subpicture having a NAL unit type such as CRA_NUT can be determined as a CRA subpicture.
[0231] According to the embodiments of the present disclosure, when a current picture includes two or more subpictures and each of the subpictures is treated as a single picture, the current picture may have a hybrid NAL unit type. Accordingly, video encoding / decoding efficiency can be further improved in various applications or use cases.
[0232] Hereinafter, with reference to FIGS. 15 and 16, an image encoding / decoding method according to one embodiment of the present disclosure will be described in detail.
[0233] FIG. 15 is a flowchart illustrating an image encoding method according to one embodiment of the present disclosure.
[0234] The image encoding method of FIG. 15 can be performed by the image encoding device of FIG. 2. For example, step S1510 can be performed by the image segmentation unit (110), and steps S1520 and S1530 can be performed by the entropy encoding unit (190).
[0235] Referring to FIG. 15, the video encoding device can divide the current picture into one or more subpictures (S1510).
[0236] In one embodiment, if the current picture has a hybrid NAL unit type, the current picture may be limited to including two or more subpictures. That is, based on at least some of the plurality of slices included in the current picture having different NAL unit types, the current picture may be divided into two or more subpictures.
[0237] The partition information of the current picture can be encoded / signaled using a predetermined syntax element within the upper-level syntax. For example, through the picture parameter set (PPS) described above with reference to FIG. 11, flag information pps_no_pic_partition_flag indicating whether the current picture is partitioned and flag information pps_num_subpics_minus1 indicating the number of subpictures included in the current picture can be encoded / signaled. 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, when the current picture has a hybrid NAL unit type, each subpicture included in the current picture can be treated as a single picture. For example, the current picture having a hybrid NAL unit type may include a first subpicture and a second subpicture, and the first subpicture and the second subpicture may each be encoded / decoded independently, excluding an in-loop filtering operation.
[0239] Information regarding whether a subpicture included in the current picture is treated as a single picture can be encoded / signaled using a specific syntax element within the upper-level syntax. For example, through the sequence parameter set (SPS) described above with reference to FIG. 12, flag information sps_subpic_treated_as_pic_flag[ i ] indicating whether the i-th subpicture included in the current picture is treated as a single picture can be encoded / signaled. In this case, if the i-th subpicture included in the current picture is not treated as a single picture, sps_subpic_treated_as_pic_flag[ i ] may have a first value (e.g., 0). Conversely, if the i-th subpicture included 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).
[0240] The video encoding device can determine the NAL unit type for each of the multiple slices included in the current picture (S1520).
[0241] In one embodiment, all slices included in each sub-picture within the current picture may have the same NAL unit type. For example, all slices included in the first sub-picture of the current picture may have a first NAL unit type, and all slices included in 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 plurality of slices included in the current 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 within the upper-level syntax. For example, through the picture parameter set (PPS) described above with reference to FIG. 11, 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. In this case, if the current picture has a single NAL unit type, pps_mixed_nalu_types_in_pic_flag may have a first value (e.g., 0). In contrast, if the current picture has a mixed NAL unit type, pps_mixed_nalu_types_in_pic_flag may have a second value (e.g., 1).
[0243] In one embodiment, the value of pps_mixed_nalu_types_in_pic_flag may be determined based on whether a mixed NAL unit type can be applied to all pictures in an Output Layer Set (OLS). For example, if a mixed NAL unit type cannot be applied to all pictures in an Output Layer Set (OLS), pps_mixed_nalu_types_in_pic_flag may be restricted to have a first value (e.g., 0). Alternatively, if a mixed NAL unit type can be applied to all pictures in an Output Layer Set (OLS), pps_mixed_nalu_types_in_pic_flag may have a first value (e.g., 0) or a second value (e.g., 1).
[0244] Meanwhile, whether a mixed NAL unit type can be applied to all pictures within an output layer set (OLS) can be encoded / signaled using a specific syntax element within the upper-level syntax. For example, through general_constraints_info containing general constraint information, flag information gci_no_mixed_nalu_types_in_pic_constraint_flag (or no_mixed_nalu_types_in_pic_constraint_flag) indicating whether the mixed NAL unit type is restricted can be encoded / signaled. In this case, if the mixed NAL unit type can be applied to all pictures within 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 the 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 may have a second value (e.g., 1).
[0245] In one embodiment, the value of pps_mixed_nalu_types_in_pic_flag may 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 may be limited to have a first value (e.g., 0). Alternatively, if the current picture contains two or more subpictures, pps_mixed_nalu_types_in_pic_flag may 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 may be determined based on whether all subpictures included in the current picture are each treated as a single picture. For example, if at least one of the subpictures included in the current picture is not treated as a single picture, pps_mixed_nalu_types_in_pic_flag may be limited to have a first value (e.g., 0). Alternatively, if all subpictures included in the current picture are each treated as a single picture, pps_mixed_nalu_types_in_pic_flag may have a first value (e.g., 0) or a second value (e.g., 1).
[0247] The video encoding device can encode a plurality of slices included in the current picture based on the NAL unit type determined in step S1520 (S1530). At this time, as previously described, the encoding process for each slice can be performed in units of CU (coding unit) based on a predetermined prediction mode. Meanwhile, each subpicture can be encoded independently to form different sub-bitstreams. For example, a first sub-bitstream containing encoding information of a first subpicture can be formed, and a second sub-bitstream containing encoding information of a second subpicture can be formed.
[0248] FIG. 16 is a flowchart illustrating an image decoding method according to one embodiment of the present disclosure.
[0249] The image decoding method of FIG. 16 can be performed by the image decoding device of FIG. 3. For example, steps S1610 and S1620 are 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 FIG. 16, the image decoding device can obtain VCL NAL unit type information of the current picture and first flag information indicating whether a subpicture included in the current picture is treated as a single picture from the bitstream (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 included 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 ] included in the upper-level syntax, for example, the sequence parameter set (SPS). In this case, if the i-th subpicture included in the current picture is not treated as a single picture, sps_subpic_treated_as_pic_flag[ i ] may have a first value (e.g., 0). Conversely, if the i-th subpicture included 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).
[0253] The video 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 plurality of slices in the current picture have different NAL unit types (i.e., if the current picture has a hybrid NAL unit type), the current picture may include two or more subpictures.
[0255] In one embodiment, if at least some of the plurality of slices in the current picture have different NAL unit types, all subpictures included in the current picture can each be treated as one picture. In this case, for all subpictures included in the current picture, the first flag information (e.g., sps_subpic_treated_as_pic_flag[ i ]) may have a second value (e.g., 1).
[0256] In one embodiment, all slices included in each sub-picture within the current picture may have the same NAL unit type. For example, all slices included in the first sub-picture of the current picture may have a first NAL unit type, and all slices included in 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 plurality of slices in the current picture have different NAL unit types can be determined based on second flag information (e.g., pps_mixed_nalu_types_in_pic_flag) obtained from a higher-level syntax, e.g., a picture parameter set (PPS). For example, if the second flag information has a first value (e.g., 0), all slices in the current picture may have the same NAL unit type. In contrast, if the second flag information has a second value (e.g., 1), at least some of the plurality of slices in the current picture may 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 the mixed NAL unit type can be applied to all pictures in the Output Layer Set (OLS). For example, if the 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 decoder may infer the value of the second flag information as the first value (e.g., 0) without needing to parse the second flag information separately. Alternatively, if the 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 decoder may infer the value of the second flag information as the first value (e.g., 0) without needing to parse the second flag information separately. Alternatively, 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) may have a predetermined value based on whether all subpictures included in the current picture are each treated as a single picture. For example, if at least one of the subpictures included in the current picture is not treated as a single picture, 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 needing to parse the second flag information separately. Alternatively, if all subpictures included in the current picture are each treated as a single picture, the second flag information may have a first value (e.g., 0) or a second value (e.g., 1).
[0261] Meanwhile, the type of each subpicture included in the current picture can be determined based on the NAL unit type that each subpicture has. For example, as described above with reference to Table 1, the type of a subpicture having a NAL unit type such as TRAIL_NUT can be determined as a trailing subpicture. Also, the type of a subpicture having a NAL unit type such as STSA_NUT can be determined as an STSA subpicture, and the type of a subpicture having a NAL unit type such as GDR_NUT can be determined as a GDR subpicture. Also, the type of a subpicture having a NAL unit type such as RADL_NUT can be determined as a RADL subpicture, and the type of a subpicture having a NAL unit type such as RASL_NUT can be determined as a RASL subpicture. Additionally, the type of subpicture having a NAL unit type such as IDR_W_RADL or IDR_N_LP is determined as an IDR subpicture, and the type of subpicture having a NAL unit type such as CRA_NUT can be determined as a CRA subpicture.
[0262] The image decoding device can decode multiple slices within the current picture based on the first flag information obtained in step S1610 and the NAL unit type determined in step S1620 (S1630). At this time, as previously described, the decoding process for each slice can be performed in units of CU (coding unit) based on a predetermined prediction mode.
[0263] According to one embodiment of the present disclosure, the current picture may 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 regarding the location where the syntax element is signaled. For example, a syntax element starting with "sps_" may indicate that the syntax element is signaled in a sequence parameter set (SPS). Additionally, syntax elements starting with "pps_", "ph_", "sh_", etc., may indicate that the syntax element is signaled in a picture parameter set (PPS), a picture header, a slice header, etc., respectively.
[0265] The exemplary methods of the present disclosure are described as a series of operations for clarity of description, but this is not intended to limit the order in which the steps are performed, and if necessary, each step may be performed simultaneously or in a different order. To implement the method according to the present disclosure, additional steps may be included in addition to the steps exemplified, steps excluding some steps and including the remaining steps, or steps excluding some steps and including additional steps.
[0266] In the present disclosure, an image encoding device or an image decoding device performing a predetermined operation (step) may perform an operation (step) to check the conditions or circumstances for performing the 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 the image decoding device may perform an operation to check whether the said predetermined condition is satisfied, and then perform the said predetermined operation.
[0267] The various embodiments of the present disclosure are not intended to list all possible combinations but to describe representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.
[0268] In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of implementation by hardware, it may 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] In addition, the video decoding device and video encoding device to which the embodiments of the present disclosure are applied may be included in multimedia broadcasting transmission and reception devices, mobile communication terminals, home cinema video devices, digital cinema video devices, surveillance cameras, video conversation devices, real-time communication devices such as video communication, mobile streaming devices, storage media, camcorders, Video on Demand (VoD) service providers, Over-the-top video (OTT) devices, internet streaming service providers, three-dimensional (3D) video devices, video phone video devices, and medical video devices, and may be used to process video signals or data signals. For example, Over-the-top video (OTT) devices may include game consoles, Blu-ray players, internet-connected TVs, home theater systems, smartphones, tablet PCs, Digital Video Recorders (DVRs), etc.
[0270] FIG. 17 is a drawing illustrating an exemplary content streaming system to which an embodiment according to the present disclosure can be applied.
[0271] As illustrated in FIG. 17, a content streaming system to which an embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0272] The above encoding server compresses content input from multimedia input devices, such as smartphones, cameras, and camcorders, into digital data to generate a bitstream and transmits it to the streaming server. As another example, if multimedia input devices, such as smartphones, cameras, and camcorders, generate the bitstream directly, the encoding server may be omitted.
[0273] The bitstream may be generated by a video encoding method and / or video encoding device to which an embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream during the process of transmitting or receiving the bitstream.
[0274] The streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server can act as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits it 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, and in this case, the control server can perform the role of controlling commands and responses between each device within the content streaming system.
[0275] The streaming server can 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 seamless streaming service, the streaming server can store the bitstream for a certain period of time.
[0276] Examples of the above user devices may include mobile phones, smartphones, laptop computers, digital broadcasting terminals, PDAs (personal digital assistants), PMPs (portable multimedia players), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, HMDs (head-mounted displays)), digital TVs, desktop computers, digital signage, etc.
[0277] Each server within the above-mentioned content streaming system can be operated as a distributed server, and in this case, data received from each server can be processed in a distributed manner.
[0278] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating system, application, firmware, program, etc.) that enable an operation according to a method of various embodiments to be executed on a device or computer, and a non-transitory computer-readable medium on which such software or instructions, etc. are stored and executable on a device or computer. Industrial applicability
[0279] An embodiment according to the present disclosure can be used to encode / decode images.
Claims
Claim 1 A video decoding method performed by a video decoding device, wherein the video decoding method comprises: a step of obtaining from a bitstream VCL (video coding layer) NAL (network abstraction layer) unit type information of a current picture and a first flag information regarding whether a subpicture included in the current picture is treated as a single picture; a step of determining the NAL unit type of each of a plurality of slices within the current picture based on the obtained VCL NAL unit type information; and a step of 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 at least some of the plurality of slices having different NAL unit types, and 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 at least some of the plurality of slices having different NAL unit types, and all slices within each subpicture included in the current picture have the same NAL unit type. Claim 2 delete Claim 3 A video 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 a picture parameter set (PPS). Claim 4 A video decoding method according to claim 3, wherein, based on the fact that a hybrid NAL unit type cannot be applied to all pictures within an output layer set (OLS), the second flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type. Claim 5 A video decoding method according to paragraph 3, wherein, based on the fact that the current picture includes 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. Claim 6 A video decoding method according to paragraph 3, 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. Claim 7 A video decoding method according to claim 1, wherein the subpicture type of each subpicture included in the current picture is determined based on the NAL unit type of each subpicture. Claim 8 delete Claim 9 A video encoding method performed by a video encoding device, wherein the video encoding method comprises: a step of dividing a current picture into one or more subpictures; a step of determining a NAL (network abstraction layer) unit type for each of a plurality of slices included in the one or more subpictures; and a step of encoding the plurality of slices based on the determined NAL unit type, wherein the current picture is divided into two or more subpictures based on at least some of the plurality of slices having different NAL unit types, and each of the two or more subpictures is treated as one picture based on at least some of the plurality of slices having different NAL unit types, and all slices within each subpicture included in the current picture have the same NAL unit type. Claim 10 delete Claim 11 In claim 9, whether at least some of the plurality of slices have different NAL unit types is encoded using a picture encoding method that uses a predetermined flag information included in a picture parameter set (PPS). Claim 12 A video encoding method according to claim 11, wherein, based on the fact that a hybrid NAL unit type cannot be applied to all pictures within an Output Layer Set (OLS), the flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type. Claim 13 A video encoding method according to claim 11, wherein, based on the fact that the current picture includes only one subpicture, the flag information has a predetermined value indicating that all of the plurality of slices have the same NAL unit type. Claim 14 A video encoding method according to claim 11, 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. Claim 15 A computer-readable recording medium for storing a bitstream generated according to a video encoding method, wherein the video encoding method comprises: a step of dividing a current picture into one or more subpictures; a step of determining a NAL (network abstraction layer) unit type for each of a plurality of slices included in the one or more subpictures; and a step of encoding the plurality of slices based on the determined NAL unit type, wherein the current picture is divided into two or more subpictures based on at least some of the plurality of slices having different NAL unit types, and each of the two or more subpictures is treated as one picture based on at least some of the plurality of slices having different NAL unit types, and all slices within each subpicture included in the current picture have the same NAL unit type. Claim 16 A method for transmitting a bitstream generated by a video encoding method, wherein the video encoding method comprises: a step of dividing a current picture into one or more subpictures; a step of determining a NAL (network abstraction layer) unit type for each of a plurality of slices included in the one or more subpictures; and a step of encoding the plurality of slices based on the determined NAL unit type, wherein the current picture is divided into two or more subpictures based on at least some of the plurality of slices having different NAL unit types, and each of the two or more subpictures is treated as one picture based on at least some of the plurality of slices having different NAL unit types, and all slices within each subpicture included in the current picture have the same NAL unit type.
