Method and computer-readable storage medium
The encoding/decoding method optimizes CR identifier management in high-resolution video data, addressing the cost and efficiency challenges of high-quality video transmission and storage by improving coding and data transmission efficiency.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- LG ELECTRONICS INC
- Filing Date
- 2026-01-02
- Publication Date
- 2026-07-09
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 high-efficiency video compression technology.
An encoding/decoding method that utilizes CR-related messages with CR identifier availability and existence flags, along with length information, to manage identifier values for Constituent Rectangles (CRs) in video data, ensuring efficient encoding and decoding processes.
This method enhances coding and data transmission efficiency by optimizing the management of CR identifiers, reducing the overall data volume and costs associated with high-resolution video transmission and storage.
Smart Images

Figure KR2026000044_09072026_PF_FP_ABST
Abstract
Description
Method and computer-readable storage medium
[0001] The present disclosure relates to a method for decoding / encoding image information, a computer-readable storage medium for storing image information, and a method for transmitting image information.
[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 the amount of 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.
[0004] The present disclosure aims to provide an encoding / decoding method and / or apparatus with improved coding efficiency.
[0005] The present disclosure aims to provide an encoding / decoding method and / or apparatus with improved data transmission efficiency.
[0006] 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.
[0007] A method according to one aspect comprises: a step of obtaining image information including a message related to a CR (Constituent Rectangle) from a bitstream; and a step of obtaining identifier information for at least one CR from the message related to the CR, wherein the message related to the CR includes a CR identifier availability flag, and the step of obtaining identifier information for the CR can obtain identifier information for at least one CR from the message related to the CR based on the value of the CR identifier availability flag being 1.
[0008] The above CR-related message further includes a CR identifier existence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the SEI message, and the step of obtaining the identifier information can be to obtain identifier information for a CR belonging to a specific layer from the above CR-related message based on the fact that the value of the CR identifier availability flag is 1 and the value of the CR identifier existence flag is 1 for a specific layer.
[0009] If the above CR-related message includes length information indicating the bit length of CR identifier information, the CR identifier information may have a bit length of 1 added to the value indicated by the length information.
[0010] Based on the fact that the above CR-related message does not include identifier information for a specific CR, and based on the fact that the order index of the specific CR is 0, the identifier value of the specific CR is inferred to be 0, and based on the fact that the order index of the specific CR is greater than 0, the identifier value of the specific CR can be inferred to be the value obtained by adding 1 to the identifier value of the CR with an order index that is 1 smaller.
[0011] Identifier values for different CRs may not be the same.
[0012] If the value of the CR identifier availability flag is 1, the CR identifier existence flag may be included in the CR-related message.
[0013] A method according to one aspect comprises: generating a CR-related message including identifier information for at least one CR; and encoding image information including said CR-related message; wherein the CR-related message includes a CR identifier availability flag, and the identifier information for said at least one CR can be included in said CR-related message based on the value of the CR identifier availability flag being 1.
[0014] The above CR-related message further includes a CR identifier existence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the SEI message, and the step of generating the above CR-related message may include identifier information for a CR belonging to a specific layer in the above CR-related message based on the fact that the value of the above CR identifier availability flag is 1 and the value of the above CR identifier existence flag is 1 for a specific layer.
[0015] If the above CR-related message includes length information indicating the bit length of CR identifier information, the CR identifier information may have a bit length of 1 added to the value indicated by the length information.
[0016] Based on the fact that the CR-related message does not include identifier information for a specific CR, the CR-related message may be generated such that the identifier value of the specific CR is inferred to be 0 based on the fact that the order index of the specific CR is 0, and based on the fact that the order index of the specific CR is greater than 0, the CR-related message may be generated such that the identifier value of the specific CR is inferred to be the value obtained by adding 1 to the identifier value of the CR with an order index that is 1 smaller.
[0017] The above CR-related messages can be generated so that the identifier values for different CRs are not identical to each other.
[0018] If the value of the CR identifier availability flag is 1, the CR identifier existence flag may be included in the CR-related message.
[0019] A method according to one aspect comprises: a step of generating a bitstream; and a step of transmitting data including said bitstream; wherein the step of generating the bitstream comprises: a step of generating a CR-related message including identifier information for at least one CR; and a step of encoding image information including said CR-related message; wherein the CR-related message includes a CR identifier availability flag, and the identifier information for said at least one CR can be included in said CR-related message based on the value of said CR identifier availability flag being 1.
[0020] A computer-readable storage medium according to one aspect can non-transiently store a bitstream generated by the above method.
[0021] 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.
[0022] According to the present disclosure, an encoding / decoding method and / or apparatus with improved coding efficiency can be provided.
[0023] According to the present disclosure, an encoding / decoding method and / or apparatus having improved data transmission efficiency can be provided.
[0024] 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 belongs from the description below.
[0025] FIG. 1 is a schematic diagram illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0026] FIG. 2 is a schematic diagram showing an encoding device to which an embodiment according to the present disclosure can be applied.
[0027] FIG. 3 is a schematic diagram showing a decoding device to which an embodiment according to the present disclosure can be applied.
[0028] FIG. 4 shows an example of a video / image decoding method to which one embodiment can be applied.
[0029] FIG. 5 shows an example of a video / image encoding method to which an embodiment of the present disclosure can be applied.
[0030] Figure 6 illustrates an exemplary hierarchical structure for a coded video / image.
[0031] FIG. 7 is a diagram illustrating a method for encoding image information according to one embodiment.
[0032] FIG. 8 is a diagram illustrating a method for decoding image information according to one embodiment.
[0033] FIG. 9 is a diagram showing another example of a method for encoding image information according to one embodiment.
[0034] FIG. 10 is a diagram showing another example of a method for decoding image information according to one embodiment.
[0035] FIG. 11 is a drawing illustrating an exemplary content streaming system to which an embodiment according to the present disclosure can be applied.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] The present disclosure relates to the encoding and decoding of images. For example, the methods and embodiments disclosed in this document may be applied to methods disclosed in the VVC (versatile video coding) standard, EVC (essential video coding) standard, AV1 (AOMedia Video 1) standard, AVS2 (2nd generation of audio video coding standard) or next-generation video / image coding standards (e.g., H.267 or H.268).
[0043] The present disclosure presents various embodiments relating to video / image coding, and unless otherwise stated, said embodiments may be performed in combination with one another.
[0044] Unless newly defined in this disclosure, the terms used herein may have the ordinary meanings commonly used in the technical field to which this disclosure belongs.
[0045] In this disclosure, "video" may refer to a set of images over time. In this disclosure, "picture" generally refers to a unit representing a single image at a specific time, and a slice / tile is a unit that constitutes a part of a picture in coding. A slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A brick may represent a rectangular area of rows of CTUs within a tile in a picture. In this document, tile groups and slices may be used interchangeably. For example, in this document, a tile group / tile group header may be referred to as a slice / slice header.
[0046] 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.
[0047] 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. A unit may include one luminance block and two chroma (e.g., cb, cr) blocks. Depending on the case, the term "unit" may be used interchangeably with terms such as "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.
[0048] 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."
[0049] 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."
[0050] 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."
[0051] 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".
[0052] FIG. 1 is a schematic diagram illustrating a video / image coding system to which an embodiment according to the present disclosure can be applied.
[0053] Referring to FIG. 1, a video / image coding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image or data in the form of a file or streaming to the receiving device via a digital storage medium or a network.
[0054] The source device may include a video source, an encoding device, and a transmission unit. The receiving device may include a receiver, a decoding device, and a renderer. The encoding device may be called a video / image encoding device, and the decoding device may be called a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display unit, and the display unit may be composed of a separate device or an external component.
[0055] A video source may acquire video / images through processes such as video / image capture, synthesis, or generation. The video source may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. The video / image generation device may include, for example, a computer, a tablet, and a smartphone, etc., and may generate video / images (electronically). For example, virtual video / images may be generated through a computer, etc., in which case the video / image capture process may be replaced by a process in which related data is generated.
[0056] The encoding device can encode input video / images. The encoding device can perform a series of procedures, such as prediction, transformation, and quantization, for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0057] The transmission unit can transmit encoded video / image information or data output in the form of a bitstream to the receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. The transmission unit 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 can receive / extract the bitstream and transmit it to a decoding device.
[0058] The decoding device can decode video / images by performing a series of procedures such as inverse quantization, inverse transform, and prediction corresponding to the operation of the encoding device.
[0059] The renderer can render the decoded video / image. The rendered video / image can be displayed through the display unit.
[0060] FIG. 2 is a schematic diagram illustrating an encoding device to which an embodiment according to the present disclosure can be applied.
[0061] Referring to FIG. 2, the encoding device (200) may be configured to include an image partitioner (210), a predictor (220), a residual processor (230), an entropy encoder (240), an adder (250), a filter (260), and a memory (270). The predictor (220) may include an inter-predictor (221) and an intra-predictor (222). The residual processor (230) may include a transformer (232), a quantizer (233), a dequantizer (234), and an inverse transformer (235). The residual processor (230) may further include a subtractor (231). The addition unit (250) may be referred to as a reconstructor or a reconstructed block generator. The aforementioned image segmentation unit (210), prediction unit (220), residual processing unit (230), entropy encoding unit (240), addition unit (250), and filtering unit (260) may be configured by one or more hardware components (e.g., an encoder chipset or processor) according to the embodiment. Additionally, the memory (270) may include a Decoded Picture Buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include the memory (270) as an internal / external component.
[0062] The image segmentation unit (210) can divide an input image (or picture, frame) input to an encoding device (200) into one or more processing units. For example, the processing unit may be called a coding unit (CU). A coding unit may be recursively divided into a coding tree unit (CTU) or a largest coding unit (LCU) according to a QTBTTT (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 example, a quad-tree structure may be applied first, and a binary-tree structure and / or a ternary-tree structure may be applied later. Alternatively, a binary-tree structure may be applied first. A coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer divided. In this case, based on coding efficiency according to image characteristics, the maximum coding unit may be used directly as the final coding unit, or, if necessary, the maximum coding unit may be recursively divided into lower-depth coding units so that a coding unit of the optimal size is used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration described later. As another example, the processing unit may further include a prediction unit (PU) or a transformation unit (TU). The prediction unit and the transformation unit may each be divided or partitioned from the final coding unit.The above prediction unit may be a unit of sample prediction, and the above transformation unit may be a unit that derives transformation coefficients and / or a unit that derives a residual signal from transformation coefficients.
[0063] The term "unit" may be used interchangeably with terms such as "block" or "area" depending on the context. In general, an MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows. A sample can generally represent a pixel or a pixel value, and may represent only the pixel / pixel value of the luminance component or only the pixel / pixel value of the chroma component. A sample may be used to refer to a single picture (or image) as a term corresponding to a pixel or pel.
[0064] The encoding device (200) can generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (predicted block, prediction sample array) output from an inter prediction unit (221) or an intra prediction unit (222) from an input image signal (original block, original sample array), and the generated residual signal is transmitted to a conversion unit (232). In this case, as illustrated, the unit that subtracts the prediction signal (predicted block, prediction sample array) from the input image signal (original block, original sample array) within the encoding device (200) may be called a subtraction unit (231). The prediction unit (220) can perform a prediction for a block to be processed (hereinafter, current block) and generate a predicted block (predicted block) containing prediction samples for said current block. The prediction unit (220) can determine whether intra prediction is applied or inter prediction is applied in units of the current block or CU. The prediction unit (220) can generate various information regarding prediction, such as prediction mode information, as described below in the description of each prediction mode, and transmit it to the entropy encoding unit (240). The information regarding prediction can be encoded in the entropy encoding unit (240) and output in the form of a bitstream.
[0065] The intra prediction unit (222) 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 prediction mode. In intra prediction, the 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 (222) may also determine the prediction mode applied to the current block by using the prediction mode applied to the surrounding blocks.
[0066] The inter prediction unit (221) 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 (221) 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 (221) 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 vector of surrounding blocks is used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0067] The prediction unit (220) may generate a prediction signal based on various prediction methods and / or prediction techniques described below. For example, the prediction unit (220) 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 (220) may be based on an intra block copy (IBC) prediction mode or a palette mode for the prediction of the block. The IBC prediction mode or palette mode may be used for content video / video coding, such as in games, for example, screen content coding (SCC). IBC basically performs prediction within the current picture, but it may be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document. Palette mode can be viewed as an example of intra-coding or intra-prediction. When palette mode is applied, sample values within a picture can be signaled based on information regarding palette tables and palette indices.
[0068] The prediction signal generated through the prediction unit (220) can be used to generate a restoration signal or to generate a residual signal. The subtraction unit (231) 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 (220) from the input image signal (original block, original sample array). The generated residual signal can be transmitted to the conversion unit (232).
[0069] The transformation unit (232) 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.
[0070] The quantization unit (233) can quantize the transformation coefficients and transmit them to the entropy encoding unit (240). The entropy encoding unit (240) 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 (233) 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.
[0071] The entropy encoding unit (240) 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 (240) may encode information required for video / image restoration (e.g., values of syntax elements) together or separately with the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in units of 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 included in the video / image information. The video / image information may be encoded through the encoding procedure described above and included in the bitstream.
[0072] 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 (240) and / or a storage unit (not shown) for storing it may be provided as an internal / external element of the encoding device (200), or the transmission unit may be provided as a component of the entropy encoding unit (240).
[0073] The quantized transformation coefficients output from the quantization unit (233) 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 (234) and the inverse transformation unit (235).
[0074] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture encoding and / or restoration process.
[0075] The adder (250) 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 (221) or the intra prediction unit (222). 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 (250) 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.
[0076] The filtering unit (260) can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit (260) can generate a modified restored picture by applying various filtering methods to the restored picture, and can store the modified restored picture in memory (270), specifically in the DPB of memory (270). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (260) can generate various information regarding filtering and transmit it to the entropy encoding unit (240), as described below in the description of each filtering method. The information regarding filtering can be encoded in the entropy encoding unit (240) and output in the form of a bitstream.
[0077] The modified restored picture transmitted to the memory (270) can be used as a reference picture in the inter-prediction unit (221). Through this, the encoding device (200) can avoid prediction mismatches between the encoding device (200) and the decoding device when inter-prediction is applied, and can also improve encoding efficiency.
[0078] The DPB in memory (270) can store a modified restored picture to be used as a reference picture in the inter prediction unit (221). Memory (270) 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 (221) to be used as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. Memory (270) can store restoration samples of restored blocks in the current picture and transmit them to the intra prediction unit (222).
[0079] FIG. 3 is a schematic diagram illustrating a decoding device to which an embodiment according to the present disclosure can be applied.
[0080] As illustrated in FIG. 3, the decoding device (300) may be configured to include an entropy decoder (310), a residual processor (320), a predictor (330), an adder (340), a filter (350), and a memory (360). The predictor (330) may include an inter-predictor (332) and an intra-predictor (331). The residual processor (320) may include a dequantizer (321) and an inverse transformer (321). The aforementioned entropy decoding unit (310), residual processing unit (320), prediction unit (330), addition unit (340), and filtering unit (350) may be configured by a single hardware component (e.g., a decoder chipset or a processor) according to an embodiment. Additionally, the memory (360) may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include the memory (360) as an internal / external component.
[0081] When a bitstream containing video / image information is input, the decoding device (300) can restore the image by performing a process corresponding to the process performed by the encoding device (200) of FIG. 2. For example, the decoding device (300) can perform decoding using a processing unit applied in the encoding device (200). Thus, the processing unit for decoding may be, for example, a coding unit. The coding unit may be a coding tree unit, or a maximum coding unit may be obtained by dividing it according to a quad tree structure, a binary tree structure, and / or a binary tree structure. And, the restored image signal decoded and output through the decoding device (300) can be played back through a playback device (not shown).
[0082] The decoding device (300) can receive a signal output from the encoding device (200) of FIG. 2 in the form of a bitstream. The received signal can be decoded through an entropy decoding unit (310). For example, the entropy decoding unit (310) 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 decoding device (300) can decode the picture based on the information regarding the parameter sets and / or the general constraint information. The signaling / received information and / or syntax elements described below can be obtained from the bitstream by decoding through the decoding procedure. For example, the entropy decoding unit (310) can decode information within the bitstream based on coding methods such as exponential chord coding, CAVLC, or CABAC, and output values of syntax elements required for image restoration and quantized values of transformation coefficients regarding residuals. More specifically, the CABAC entropy decoding method can receive bins corresponding to each syntax element in the bitstream, determine a context model using information on the syntax element to be decoded and decoding information of surrounding and decoding target blocks or information on symbols / bins 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 (310), information regarding prediction is provided to the prediction unit (330), and residual values for which entropy decoding was performed in the entropy decoding unit (310), i.e., quantized transformation coefficients and related parameter information, can be input to the residual processing unit (320). The residual processing unit (320) can derive residual signals (residual blocks, residual samples, residual sample array). Additionally, among the information decoded in the entropy decoding unit (310), information regarding filtering can be provided to the filtering unit (350). Meanwhile, a receiving unit (not shown) that receives a signal output from an encoding device may be further configured as an internal / external element of the decoding device (300), or the receiving unit may be a component of the entropy decoding unit (310). Meanwhile, the decoding device according to the present document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoding unit (310), and the sample decoder may include at least one of the inverse quantization unit (321), inverse transform unit (322), adder (340), filtering unit (350), memory (360), inter prediction unit (332), and intra prediction unit (331).
[0083] In the inverse quantization unit (321), the quantized transformation coefficients can be inversely quantized to output transformation coefficients. The inverse quantization unit (321) can rearrange the quantized transformation coefficients into a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scan order performed in the encoding device (200). The inverse quantization unit (321) can perform inverse quantization on the quantized transformation coefficients using quantization parameters (e.g., quantization step size information) and obtain transformation coefficients.
[0084] In the inverse conversion unit (322), the conversion coefficients can be inversely converted to obtain a residual signal (residual block, residual sample array).
[0085] The prediction unit (330) can generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction for a single block, and may also apply intra prediction and inter prediction simultaneously. This may be called combined inter and intra prediction (CIIP). Additionally, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for predicting a block. The IBC prediction mode or palette mode may be used for content video / video coding, such as in games, for example, screen content coding (SCC). IBC basically performs prediction within the current picture, but it can be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document. The palette mode can be viewed as an example of intra coding or intra prediction. When the palette mode is applied, information regarding the palette table and palette index can be included in the above video / image information and signaled.
[0086] The intra prediction unit (331) can predict the current block by referring to samples within the current picture. The description of the intra prediction unit (222) may be applied equally to the intra prediction unit (331). The referenced samples may be located in the neighborhood of the current block or located away from it, depending on the prediction mode. In intra prediction, the prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit (331) may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0087] The inter prediction unit (332) 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 (332) 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.
[0088] The adder (340) 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 (330) (including the inter prediction unit (332) and / or intra prediction unit (331)). 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 (250) can be applied equally to the adder (340). The adder (340) 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.
[0089] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture decoding process.
[0090] The filtering unit (350) can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit (350) can generate a modified restored picture by applying various filtering methods to the restored picture, and can store the modified restored picture in memory (360), specifically in the DPB of memory (360). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0091] The (modified) restored picture stored in the DPB of the memory (360) can be used as a reference picture in the inter-prediction unit (332). The memory (360) 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 (332) to be used as motion information of spatially surrounding blocks or motion information of temporally surrounding blocks. The memory (360) can store restoration samples of blocks restored within the current picture and transmit them to the intra-prediction unit (331).
[0092] In this specification, the embodiments described in the filtering unit (260), inter prediction unit (221), and intra prediction unit (222) of the encoding device (200) may be applied to the filtering unit (350), inter prediction unit (332), and intra prediction unit (331) of the decoding device (300) in the same or corresponding manner.
[0093] FIG. 4 shows an example of a video / image decoding method to which one embodiment can be applied.
[0094] In video coding, the pictures constituting the video can be 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 decoding order, and based on this, not only forward prediction but also reverse prediction can be performed during inter-prediction.
[0095] In FIG. 4, S400 may be performed in the entropy decoding unit (310) of the aforementioned decoding device (300), S410 may be performed in the prediction unit (330), S420 may be performed in the residual processing unit (320), S430 may be performed in the addition unit (340), and S440 may be performed in the filtering unit (350). S400 may include a decoding procedure according to the present disclosure, S410 may include an inter / intra prediction procedure according to the present disclosure, S420 may include a residual processing procedure according to the present disclosure, S430 may include a block / picture restoration procedure according to the present disclosure, and S440 may include an in-loop filtering procedure according to the present disclosure.
[0096] Referring to FIG. 4, the decoding device acquires image / video information from a bitstream (S400), performs a prediction based on the acquired image / video information (S410), and can restore a picture through residual processing (S420, inverse quantization and inverse transformation of quantized transformation coefficients) (S430).
[0097] A modified restored picture can be generated by applying an in-loop filtering procedure (S440) to the restored picture generated through the above restoration procedure, and the modified restored picture can be output as a decoded picture and also stored in the buffer or memory of the decoding device to be used as a reference picture in the inter-prediction procedure when decoding the next picture. In some cases, the above in-loop filtering procedure may be omitted, in which case the restored picture can be output as a decoded picture and also stored in the buffer or memory of the decoding device to be used as a reference picture in the inter-prediction procedure when decoding a subsequent picture.
[0098] The in-loop filtering procedure (S440) 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. Additionally, one or some of the deblocking filtering procedure, the sample adaptive offset (SAO) procedure, the adaptive loop filter (ALF) procedure, and the bilateral filter procedure may be applied sequentially, or all of them may be applied sequentially. For example, the SAO procedure may be performed after the deblocking filtering procedure is applied to the restored picture. Alternatively, for example, the ALF procedure may be performed after the deblocking filtering procedure is applied to the restored picture. This may be performed in the same manner in the encoding device.
[0099] FIG. 5 shows an example of a video / image encoding method to which an embodiment of the present disclosure can be applied.
[0100] In FIG. 5, the prediction step (S500) may be performed in the prediction unit (220) of the aforementioned encoding device (200), residual processing (S510) based on the prediction result may be performed in the residual processing unit (230), and the step (S520) of encoding image information including prediction information and residual information may be performed in the entropy encoding unit (240). S500 may include an inter / intra prediction procedure according to the present disclosure, S510 may include a residual processing procedure according to the present disclosure, and S520 may include an encoding procedure according to the present disclosure.
[0101] The encoding procedure may optionally include not only a procedure for encoding information for picture restoration (e.g., prediction information, residual information, partitioning information, etc.) 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.
[0102] The encoding device (200) can derive (modified) residual samples from quantized transform coefficients through the inverse quantization unit (234) and the inverse transform unit (235), and can generate a restored picture based on the (modified) residual samples and the predicted samples which are the outputs of S500. The restored picture thus generated may be identical to the restored picture generated by the decoding device (300) described above. A modified restored picture may be generated through an in-loop filtering procedure on the restored picture, which may be stored in a buffer or memory, and, as in the case of the decoding device, may be used as a reference picture in the inter-prediction procedure during the subsequent encoding of the picture.
[0103] As described above, depending on the case, part 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) may be encoded in the entropy encoding unit (240) and output in the form of a bitstream, and the decoding device (300) may perform the in-loop filtering procedure in the same way as the encoding device based on the filtering-related information.
[0104] Through this in-loop filtering procedure, noise generated during video / image coding, such as blocking artifacts and ringing artifacts, can be reduced, and subjective / objective image quality can be improved. In addition, by performing the in-loop filtering procedure in both the encoding device (200) and the decoding device (300), the same prediction results can be derived in both the encoding device (200) and the decoding device (300), the reliability of picture coding can be increased, and the amount of data that must be transmitted for picture coding can be reduced.
[0105] As described above, the picture restoration procedure can be performed in the encoding device (200) as well as the decoding device (300). Restoration blocks can be generated based on intra prediction / inter prediction for each block unit, 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.
[0106] The color components of the picture may include a luminance component and a chroma component, and unless explicitly limited in the present disclosure, embodiments according to the present disclosure may be applied to the luminance component and the chroma component.
[0107] Figure 6 illustrates an exemplary hierarchical structure for a coded video / image.
[0108] Referring to Fig. 6, the coded image is divided into a Video Coding Layer (VCL) that handles the decoding processing of the image and the image 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.
[0109] 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.
[0110] 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.
[0111] As shown in FIG. 6, NAL units can be classified into VCL NAL units and Non-VCL NAL units depending on the 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).
[0112] The aforementioned VCL NAL unit and Non-VCL NAL unit can be transmitted over a network by attaching header information 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.
[0113] As described above, the NAL unit type can be determined according to the RBSP data structure included in the NAL unit, and information about this NAL unit type can be stored in the NAL unit header and signaled.
[0114] For example, NAL units can be broadly classified into VCL NAL unit types and Non-VCL NAL unit types depending on whether they contain information about the image (slice data). VCL NAL unit types can be classified according to the properties and types of the picture included in the VCL NAL unit, while Non-VCL NAL unit types can be classified according to the types of parameter sets.
[0115] The following is an example of a NAL unit type specified according to the type of parameter set included in the Non-VCL NAL unit type.
[0116] - APS (Adaptation Parameter Set) NAL unit: Type for the NAL unit containing the APS
[0117] - DPS(Decoding Parameter Set) NAL unit: Type for the NAL unit containing the DPS
[0118] - VPS (Video Parameter Set) NAL unit: Type for the NAL unit containing the VPS
[0119] - SPS (Sequence Parameter Set) NAL unit: Type for the NAL unit containing the SPS
[0120] - PPS(Picture Parameter Set) NAL unit: Type for the NAL unit containing the PPS
[0121] 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 may be specified by the nal_unit_type value.
[0122] A slice header (slice header syntax, slice header information) 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 DPS (DPS syntax) may include information / parameters that can be commonly applied to the entire video. The DPS may include information / parameters related to the concatenation of a CVS (coded video sequence). In the present disclosure, High Level Syntax (HLS) may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, or slice header syntax.
[0123] In the present disclosure, image / video information encoded by an encoding device 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 included in the slice header, information included in the APS, information included in the PPS, information included in the SPS, information included in the VPS, and / or information included in the DPS.
[0124] A coded picture may consist of one or more slices. Parameters describing the coded picture are signaled within the picture header (PH), and parameters describing the slices are signaled within the slice header (SH). The PH is transmitted as its own NAL unit type. The SH is located at the beginning of the NAL unit containing the slice payload (i.e., slice data).
[0125] Hereinafter, SEI messages related to the present invention will be described.
[0126] A Constituent Rectangle SEI message (hereinafter referred to as a CR SEI message) enables the formation of multiple Constituent Rectangles within a picture coded in one or more layers and provides information regarding the Constituent Rectangles, namely, their ID, type, text description, location, and size. An example of a syntax table for a CR SEI message is shown in Table 1 below.
[0127] [Table 1]
[0128]
[0129]
[0130] The use of this CR SEI message requires the definition of the following variables:
[0131] - Picture width and picture height in luma samples, denoted as PicWidthInLumaSamples[ lId ] and PicHeightInLumaSamples[ lId ], respectively
[0132] - Maximum picture width and maximum picture height in luma samples, denoted as MaxPicWidth[ lId ] and MaxPicHeight[ lId ], respectively
[0133] - Chroma format specifier denoted as ChromaFormatIdc
[0134] - Bit depth for the sample of the chroma component, denoted as BitDepthY. If ChromaFormatIdc is not 0, it is denoted as BitDepthC as the bit depth for the sample of two associated chroma components.
[0135] - The number of subpictures indicated by NumSubpics[ lId ]
[0136] - Arrays for the top-left X and Y positions of the subpicture, denoted as SubPicTopLeftX[ lId ][ i ] and SubPicTopLeftY[ lId ][ i ], respectively
[0137] - Arrays for the width and height of the subpicture, denoted as SubPicTopLeftX[ lId ][ i ] and SubPicTopLeftY[ lId ][ i ], respectively
[0138] If this SEI message exists in any picture unit other than the first picture unit of the CLVS in the decoding order, a Constituent Rectangle SEI message with the same payload content must exist in the first picture unit of the CLVS in the decoding order.
[0139] If cr_444_enabled_flag is equal to 1, it indicates that the cr_group_444_flag[ i ] syntax element exists. If cr_444_enabled_flag is equal to 0, it indicates that the cr_group_444_flag[ i ] syntax element does not exist.
[0140] cr_num_layers_minus1 + 1 represents the number of layers in which a constituent rectangle is described in the SEI message.
[0141] cr_layer_id[ lIdx ] represents the layer identifier of the lIdx-th layer.
[0142] The variable lId is set to be the same as cr_layer_id[ lIdx ].
[0143] cr_num_rects_in_layer_minus1[ lIdx ] + 1 represents the number of constituent rectangles in the lIdx-th layer that are signaled in the SEI message.
[0144] The variable CrNumRects is derived as follows:
[0145] CrNumRects = 0
[0146] for( lIdx= 0; lIdx <= cr_num_layers_minus1; lIdx ++ )
[0147] CrNumRects += cr_num_rects_in_layer[ lIdx ] + 1
[0148] If cr_rect_id_enabled_flag is equal to 1, it indicates that the syntax element cr_rect_id_present_flag[ i ] is present in the SEI message. If cr_rect_id_enabled_flag is equal to 0, it indicates that the syntax element cr_rect_id_present_flag[ i ] is not present in the SEI message.
[0149] If cr_associated_rect_id_enabled_flag is equal to 1, it indicates that the syntax elements cr_associated_rect_id_present_flag[ i ] may be present in the SEI message. If cr_associated_rect_id_enabled_flag is equal to 0, it indicates that the syntax elements cr_associated_rect_id_present_flag[ i ] are not present in the SEI message.
[0150] cr_num_groups represents the maximum number of square groups described in the SEI message.
[0151] cr_rect_id_len_minus1 + 1 represents the length of the syntax elements cr_rect_id[ i ] and cr_associated_rect_id[ i ].
[0152] If cr_rect_type_enabled_flag is equal to 1, it indicates that the syntax element cr_rect_type_present_flag[ i ] is present in the SEI message. If cr_rect_type_enabled_flag is equal to 0, it indicates that the syntax element cr_rect_type_present_flag[ i ] is not present in the SEI message.
[0153] If cr_group_444_flag[ i ] is equal to 1, it indicates that the i-th 4:4:4 target picture is formed from three squares of the i-th square group. If cr_group_444_flag[ i ] is equal to 0, it indicates that the 4:4:4 picture is not formed from the squares of the i-th square group.
[0154] If cr_colour_description_present_flag[ i ] is equal to 1, it indicates that the syntax elements cr_colour_primaries[ i ], cr_transfer_characteristics[ i ], cr_matrix_coeffs[ i ] and cr_full_range_flag[ i ] exist. If cr_colour_description_present_flag[ i ] is equal to 0, it indicates that the above syntax elements do not exist.
[0155] cr_colour_primaries[ i ] has the same semantics as defined for the vui_colour_primaries syntax element, but applies to the i-th target picture. If it does not exist, the value of cr_colour_primaries[ i ] is inferred to be the same as the value of vui_colour_primaries.
[0156] cr_transfer_characteristics[ i ] has the same semantics as defined for the vui_transfer_characteristics syntax element, but applies to the i-th target picture. If it does not exist, the value of cr_transfer_characteristics[ i ] is inferred to be the same as the value of vui_transfer_characteristics.
[0157] cr_matrix_coeffs[ i ] has the same semantics as defined for the vui_matrix_coeffs syntax elements, but applies to the i-th target picture. If it does not exist, the value of cr_matrix_coeffs[ i ] is inferred to be the same as the value of vui_matrix_coeffs.
[0158] cr_full_range_flag[ i ] has the same semantics as defined for the vui_full_range_flag syntax element, but applies to the i-th target picture. If it does not exist, the value of cr_full_range_flag[ i ] is inferred to be the same as the value of vui_full_range_flag.
[0159] If cr_rect_type_descriptions_enabled_flag is equal to 1, it indicates that the syntax element cr_rect_type_description_present_flag[ i ] is present in the SEI message. If cr_rect_type_descriptions_enabled_flag is equal to 0, it indicates that the syntax element cr_rect_type_description_present_flag[ i ] is not present in the SEI message.
[0160] cr_subpics_partitioning_flag[ lIdx ] indicates whether subpicture partitioning parameters within the SPS associated with the lIdx-th layer are used to determine the size and position of the constituent rectangle. That is, cr_subpics_partitioning_flag[ lIdx ] may be information indicating whether the constituent rectangle is partitioned or derived based on the subpicture.
[0161] If cr_subpics_partitioning_flag[ lIdx ] is equal to 1, it indicates that the subpicture partitioning parameters within the SPS associated with the lIdx-th layer are used to determine the size and position of the constituent rectangle. If cr_subpics_partitioning_flag[ lIdx ] is equal to 0, it indicates that the determination of the size and position of the constituent rectangle is not based on the subpicture partitioning parameters within the SPS.
[0162] If cr_subpics_partitioning_flag is equal to 1, the bitstream conformance requirement is that NumSubpics must be greater than or equal to cr_num_rects_minus1 + 1.
[0163] If cr_rect_same_size_flag[ lIdx ] is equal to 1, it indicates that all constituent rectangles within the coded picture of the lIdx-th layer have the same size and are arranged in a grid pattern. If cr_rect_same_size_flag[ lIdx ] is equal to 0, it indicates that the sizes of the constituent rectangles may differ.
[0164] cr_num_cols_minus1[ lIdx ] + 1 and cr_num_rows_minus1[ lIdx ] + 1 represent the number of columns and rows, respectively, of the constituent rectangle grid within the coded picture of the lIdx-th layer, where cr_rect_same_size_flag is equal to 1. The values of cr_num_cols_minus1[ lIdx ] and cr_num_rows_minus1[ lIdx ] must be within the range (inclusive) of 0 to 4095.
[0165] The variable crNumCols[ lIdx ] is set to be equal to cr_num_cols_minus1[ lIdx ] + 1.
[0166] The variable crNumRows[ lIdx ] is set to be equal to cr_num_rows_minus1[ lIdx ] + 1.
[0167] The bitstream conformance requirement is that if cr_rect_same_size_flag[ lIdx ] exists and is equal to 1, then crNumCols[ lIdx ] Х crNumRows[ lIdx ] must be equal to cr_num_rects_in_layer_minus1[ lIdx ] + 1.
[0168] cr_guardband_hor_size_minus1[ lIdx ] + 1 specifies the size of the horizontal guardband between the constituent rectangles within the coded picture of the lIdx-th layer in luminance samples, where cr_rect_same_size_flag is equal to 1.
[0169] The variable GuardbandHor[ lIdx ] is set to cr_guardband_hor_size_minus1[ lIdx ] + 1 if cr_guardbands_present_flag[ lIdx ] is true, and to 0 otherwise.
[0170] The requirement for bitstream conformity is that GuardbandHor[ lIdx ] % SubWidthC must be equal to 0.
[0171] cr_guardband_ver_size_minus1[ lIdx ] + 1 specifies the size of the vertical guardband between constituent rectangles in luminance samples when cr_rect_same_size_flag is equal to 1.
[0172] The variable GuardbandVer[ lIdx ] is set to cr_guardband_ver_size_minus1[ lIdx ] + 1 if cr_guardbands_present_flag[ lIdx ] is true, and to 0 otherwise.
[0173] The requirement for bitstream conformity is that GuardbandVer[ lIdx ] % SubHeightC must be equal to 0.
[0174] cr_log2_unit_size[ lIdx ] specifies the unit size used for variable calculations for the constituent rectangle parameters of the lIdx-th layer.
[0175] The variable crUnitSize[ lIdx ] is set to be equal to 1 << cr_log2_unit_size[ lIdx ].
[0176] cr_rect_size_len_minus1[ lIdx ] + 1 represents the lengths of the syntax elements cr_rect_top_left_in_units_x[ lIdx ][ i ], cr_rect_top_left_in_units_y[ lIdx ][ i ], cr_rect_width_in_units_minus1[ lIdx ][ i ] and cr_rect_height_in_units_minus1[ lIdx ][ i ].
[0177] If cr_rect_type_present_flag[ i ] is equal to 1, it indicates that the cr_rect_type_idc[ i ] syntax element exists in the SEI message. If cr_rect_type_present_flag[ i ] is equal to 0, it indicates that the cr_rect_type_idc[ i ] syntax element does not exist in the SEI message.
[0178] cr_rect_type_idc[ i ] represents the constituent picture type of the i-th constituent rectangle according to Table 2. If it does not exist and i is equal to 0, the value of cr_rect_type_idc[ i ] is inferred to be equal to 0. If cr_rect_type_idc[ i ] does not exist and i is greater than 0, cr_rect_type_idc[ i ] is inferred to be equal to cr_rect_type_idc[ i - 1 ].
[0179] The mapping relationship of cr_rect_type_idc[ i ] to the types of constituent rectangles is as shown in Table 2 below.
[0180] [Table 2]
[0181]
[0182] For convenience of notation and terminology in this specification, variables and terms associated with color components are referred to as luma (or L or Y) and chroma, regardless of the color representation method actually used, and the two chroma arrays are referred to as Cb and Cr. The color representation method actually used may be indicated in this SEI message or the VUI SEI message.
[0183] If cr_rect_id_present_flag[ i ] is equal to 1, it indicates that the cr_rect_id[ i ] syntax element exists in the SEI message. If cr_rect_id_present_flag[ i ] is equal to 0, it indicates that the cr_rect_id[ i ] syntax element does not exist in the SEI message.
[0184] cr_rect_id[i] represents the ID of the i-th rectangle. The length of the corresponding syntax element is cr_rect_id_len_minus1 + 1 bit. If the corresponding syntax element does not exist and i is equal to 0, the value of cr_rect_id[i] is inferred to be equal to 0. If the corresponding syntax element does not exist and i is greater than 0, the value of cr_rect_id[i] is inferred to be equal to cr_rect_id[i - 1] + 1. The requirement of bitstream conformance is that if j is not equal to k, cr_rect_id[j] must not be equal to cr_rect_id[k].
[0185] If cr_associated_rect_id_present_flag[ i ] is equal to 1, it indicates that the cr_associated_rect_id[ i ] syntax element exists in the SEI message. If cr_associated_rect_id_present_flag[ i ] is equal to 0, it indicates that the cr_associated_rect_id[ i ] syntax element does not exist in the SEI message.
[0186] cr_associated_rect_id[ i ] represents the ID of the primary rectangle associated with the i-th rectangle. The length of the corresponding syntax element is cr_rect_id_len_minus1 + 1 bit.
[0187] The primary rectangle is a constituent rectangle with cr_rect_type_idc equal to 0.
[0188] The bitstream conformance requirement is that if cr_associated_rect_id[ i ] exists, the value of cr_associated_rect_id[ i ] must be equal to cr_rect_id[ j ] for any value j in the range from 0 to CrNumRects - 1 (inclusive), and cr_rect_type_idc[ j ] must not be equal to 255.
[0189] If cr_associated_rect_id[ i ] does not exist, the value of cr_associated_rect_id[ i ] is undefined.
[0190] cr_rect_group_id[ i ] represents the group ID of the i-th rectangle. The length of the corresponding syntax element is Ceil(Log2(cr_num_groups)) bits. If the corresponding syntax element does not exist and cr_rect_type_idc[ i ] is not equal to 255, the value of cr_rect_group_id[ i ] is inferred to be equal to 0.
[0191] The requirement for bitstream conformance is that if cr_rect_type_idc[ i ] is in the range of 4 to 6, cr_group_444_flag[ cr_rect_group_id[ i ] ] must be equal to 1.
[0192] If j is in the range from 0 to cr_num_groups - 1 and cr_group_444_flag[ j ] is equal to 1, the following applies:
[0193] - The requirement for bitstream conformance is that there exists some value y within the range of 0 to cr_num_rects_minus1 such that cr_rect_group_id[ y ] is equal to j and cr_rect_type_idc[ y ] is equal to 0 or 4.
[0194] - The requirement for bitstream conformity is that there exists some value u within the range of 0 to cr_num_rects_minus1 such that cr_rect_group_id[ u ] is equal to j and cr_rect_type_idc[ u ] is equal to 5.
[0195] - The requirement for bitstream conformity is that there exists some value v in the range from 0 to cr_num_rects_minus1 such that cr_rect_group_id[ v ] is equal to j and cr_rect_type_idc[ v ] is equal to 6.
[0196] - The values of cr_rect_width_in_units_minus1[ y ], cr_rect_width_in_units_minus1[ u ] and cr_rect_width_in_units_minus1[ v ] must be identical.
[0197] The values of -cr_rect_height_in_units_minus1[ y ], cr_rect_height_in_units_minus1[ u ] and cr_rect_height_in_units_minus1[ v ] must be identical.
[0198] - The j-th target picture is created with a width of cr_rect_width_in_units_minus1[ y ], a height of cr_rect_height_in_units_minus1[ y ], SubWidthC of 1, SubHeightC of 1, and ChromaFormatIdc of 3, with the luminance sample set to the luminance sample of the y-th rectangle, the Cb sample set to the luminance sample of the u-th rectangle, and the Cr sample set to the luminance sample of the v-th rectangle.
[0199] If cr_rect_type_description_present_flag[ i ] is equal to 1, it indicates that the cr_rect_type_description[ i ] syntax element exists in the SEI message. If cr_rect_type_description_present_flag[ i ] is equal to 0, it indicates that the cr_rect_type_description[ i ] syntax element does not exist in the SEI message. If cr_rect_type_description_present_flag[ i ] does not exist, the value of cr_rect_type_description_present_flag[ i ] is inferred to be equal to 0.
[0200] cr_rect_top_left_in_units_x[ lIdx ][ i ] and cr_rect_top_left_in_units_y[ lIdx ][ i ], if present, represent the horizontal and vertical positions, respectively, of the top-left position of the i-th constituent rectangle within the lIdx-th layer picture in units. The length of these syntax elements is cr_rect_size_len_minus1[ lIdx ] + 1.
[0201] The variables SubWidthC and SubHeightC are derived from ChromaFormatIdc.
[0202] cr_rect_width_in_units_minus1[ lIdx ][ i ] + 1 and cr_rect_height_in_units_minus1[ lIdx ][ i ] + 1 represent the width and height, respectively, of the i-th constituent rectangle within the lIdx-th layer picture, in units, where these syntax elements exist. The length of these syntax elements is cr_rect_size_len_minus1 + 1.
[0203] The variables crRectTopLeftX[ lIdx ][ i ] and crRectTopLeftY[ lIdx ][ i ], representing the x and y positions of the i-th constituent rectangle, respectively, and the variables crRectWidth[ lIdx ][ i ] and crRectHeight[ lIdx ][ i ], representing the width and height, respectively, are derived as follows.
[0204] If cr_subpics_partitioning_flag is equal to 0 and cr_rect_same_size_flag is equal to 0, the following applies:
[0205] - crRectTopLeftX[ lIdx ][ i ] is set to be the same as cr_rect_top_left_in_units_x[ lIdx ][ i ] * crUnitSize[ lIdx ].
[0206] - crRectTopLeftY[ lIdx ][ i ] is set to be the same as cr_rect_top_left_in_units_y[ lIdx ][ i ] * crUnitSize[ lIdx ].
[0207] - crRectWidth[ lIdx ][ i ] is set to be equal to (cr_rect_width_in_units_minus1[ lIdx ][ i ] + 1) * crUnitSize[ lIdx ].
[0208] - crRectHeight[ lIdx ][ i ] is set to be equal to (cr_rect_height_in_units_minus1[ lIdx ][ i ] + 1) * crUnitSize[ lIdx ].
[0209] Otherwise, if cr_subpics_partitioning_flag is equal to 1, the following applies:
[0210] - crRectTopLeftX[ lIdx ][ i ] is set to be the same as SubPicTopLeftX[ lIdx ][ i ].
[0211] - crRectTopLeftY[ lIdx ][ i ] is set to be the same as SubPicTopLeftY[ lIdx ][ i ].
[0212] - crRectWidth[ lIdx ][ i ] is set to be the same as SubPicWidth[ lIdx ][ i ].
[0213] - crRectHeight[ lIdx ][ i ] is set to be the same as SubPicHeight[ lIdx ][ i ].
[0214] Otherwise (i.e., if cr_rect_same_size_flag is equal to 1), the following applies:
[0215] - The variable currRow[ lIdx ] is set to be the same as i % crNumCols[ lIdx ].
[0216] - The variable currCol[ lIdx ] is set to be the same as i / crNumCols[ lIdx ].
[0217] - crRectWidth[ lIdx ][ i ] is set to be the same as (MaxPicWidth[ lId ] - GuardbandHor[ lIdx ] * (crNumCols[ lIdx ] - 1)) / crNumCols[ lIdx ].
[0218] - crRectHeight[ lIdx ][ i ] is set to be the same as (MaxPicHeight[ lId ] - GuardbandVer[ lIdx ] * (crNumRows[ lIdx ] - 1)) / crNumRows[ lIdx ].
[0219] - crRectTopLeftX[ lIdx ][ i ] is set to be the same as currCol[ lIdx ] * (crRectWidth[ lIdx ][ i ] + GuardbandHor[ lIdx ]).
[0220] - crRectTopLeftY[ lIdx ][ i ] is set to be the same as currRow[ lIdx ] * (crRectHeight[ lIdx ][ i ] + GuardbandVer[ lIdx ]).
[0221] If PicWidthInLumaSamples[ lId ] is not equal to MaxPicWidth[ lId ], the following applies:
[0222] - crRectTopLeftX[ lIdx ][ i ] is set to be the same as (crRectTopLeftX[ lIdx ][ i ] * PicWidthInLumaSamples[ lId ] + MaxPicWidth[ lId ] / 2) / MaxPicWidth[ lId ].
[0223] - crRectWidth[ lIdx ][ i ] is set to be the same as (crRectWidth[ lIdx ][ i ] * PicWidthInLumaSamples[ lId ] + MaxPicWidth[ lId ] / 2) / MaxPicWidth[ lId ].
[0224] If PicHeightInLumaSamples[ lId ] is not equal to MaxPicHeight[ lId ], the following applies:
[0225] - crRectTopLeftY[ lIdx ][ i ] is set to be the same as (crRectTopLeftY[ lIdx ][ i ] * PicHeightInLumaSamples[ lId ] + MaxPicHeight[ lId ] / 2) / MaxPicHeight[ lId ].
[0226] - crRectHeight[ lIdx ][ i ] is set to be equal to (crRectHeight[ lIdx ][ i ] * PicHeightInLumaSamples[ lId ] + MaxPicHeight[ lId ] / 2) / MaxPicHeight[ lId ].
[0227] The requirement of bitstream suitability is that for each sample position (x, y) within the coded picture, there must be at most exactly one rectangle j satisfying all of the following conditions:
[0228] - x is within the range of (crRectTopLeftX[ lIdx ][ j ] .. crRectTopLeftX[ lIdx ][ j ] + crRectWidth[ lIdx ][ j ] - 1).
[0229] - y is within the range of (crRectTopLeftY[ lIdx ][ j ] .. crRectTopLeftY[ lIdx ][ j ] + crRectHeight[ lIdx ][ j ] - 1).
[0230] The requirement for bitstream conformity is that crRectWidth[ lIdx ][ i ] and crRectHeight[ lIdx ][ i ] must be greater than 0.
[0231] The bitstream conformity requirement is that crRectTopLeftX[ lIdx ][ i ] + crRectWidth[ lIdx ][ i ] must be less than or equal to MaxPicWidth[ lId ], and crRectTopLeftY[ lIdx ][ i ] + crRectHeight[ lIdx ][ i ] must be less than or equal to MaxPicHeight[ lId ].
[0232] The bitstream conformance requirement is that crRectTopLeftX[ lIdx ][ i ] % SubWidthC must be equal to 0, crRectTopLeftY[ lIdx ][ i ] % SubHeightC must be equal to 0, crRectWidth[ lIdx ][ i ] % SubWidthC must be equal to 0, and crRectHeight[ lIdx ][ i ] % SubHeightC must be equal to 0.
[0233] cr_bit_equal_to_zero must be equal to 0.
[0234] cr_rect_type_description[ i ] represents a text description for a constituent rectangle. The length of the syntax element must be 4097 bytes or less, excluding the null termination byte.
[0235] In the current design of the CR SEI message, the identifier of a constituent rectangle can be signaled as optional information. In this case, the presence of said identifier is gated by two different flags, e.g., cr_rect_id_enabled_flag and cr_rect_id_present_flag. Specifically, cr_rect_id_enabled_flag is signaled only once per SEI message, whereas when the value of cr_rect_id_enabled_flag is 1, cr_rect_id_present_flag is signaled for each constituent rectangle.
[0236] However, even when the value of cr_rect_id_enabled_flag is 1, signaling cr_rect_id_present_flag separately for each construct rectangle (CR) may be unnecessary, leading to the following problems:
[0237] In addition to the cr_rect_id_enabled_flag, which is signaled only once per SEI message, the cr_rect_id_present_flag is additionally signaled for each configuration rectangle, which results in redundant determination of the existence of identifier-related syntax, potentially making the syntax structure and parsing operations unnecessarily complex.
[0238] - The use of identifiers for configuration rectangles may be more useful, for example, when all configuration rectangles have identifiers, when no configuration rectangles have identifiers, or when only configuration rectangles belonging to a specific layer have identifiers; nevertheless, a structure that signals cr_rect_id_present_flag for each configuration rectangle can cause unnecessary flag signaling compared to these usage scenarios.
[0239] To address these problems, the present disclosure proposes the following embodiments or examples. Each embodiment or example may be applied individually or two or more may be applied in combination.
[0240] - Simplify identifier signaling for the configuration rectangle so that the existence of the identifier is determined solely by cr_rect_id_enabled_flag.
[0241] - Simplify the identifier signaling of the configuration rectangle, but ensure that the existence of the identifier is signaled at the layer level.
[0242] Each embodiment or example is described in detail below.
[0243] First, cr_rect_id_enabled_flag indicates whether the identifier syntax element of the configuration rectangle exists in the SEI message. That is, cr_rect_id_enabled_flag equals 1, which indicates that the identifier syntax element of the configuration rectangle exists in the SEI message, and cr_rect_id_enabled_flag equals 0, which indicates that the identifier syntax element of the configuration rectangle does not exist in the SEI message.
[0244] Meanwhile, cr_rect_id_present_flag[ i ] indicates whether the identifier syntax element of each constituent rectangle exists in the SEI message. That is, cr_rect_id_present_flag[ i ] being equal to 1 indicates that the identifier syntax element of a specific constituent rectangle exists in the SEI message, and cr_rect_id_present_flag[ i ] being equal to 0 indicates that the identifier syntax element of a specific constituent rectangle does not exist in the SEI message.
[0245] In addition, cr_rect_id[ i ] represents the identifier syntax element of each constituent rectangle.
[0246] Conventionally, both cr_rect_id_enabled_flag and cr_rect_id_present_flag[ i ] were parsed to parse the identifier syntax elements of each constituent rectangle.
[0247] In other words, cr_rect_id_present_flag[ i ] was parsed based on the fact that the value of cr_rect_id_enabled_flag is 1, and cr_rect_id[ i ] was parsed based on the fact that the value of cr_rect_id_present_flag[ i ] is 1.
[0248] In other words, in addition to the cr_rect_id_enabled_flag signaled at the SEI message level, the cr_rect_id_present_flag was additionally signaled for each configuration rectangle.
[0249] Therefore, redundant determination of the existence of syntax related to identifiers of the constituent rectangle may lead to a problem where the syntax structure and parsing operations become unnecessarily complex.
[0250] In conventional CR SEI messages, whether an identifier syntax element for a configuration rectangle exists in the SEI message can be determined by the message-unit cr_rect_id_enabled_flag and the cr_rect_id_present_flag[ i ] for each configuration rectangle unit.
[0251] Here, cr_rect_id_present_flag[ i ] indicates whether the identifier syntax element of the i-th configuration rectangle exists in the SEI message, and if cr_rect_id_present_flag[ i ] is equal to 1, it indicates that the identifier syntax element exists in the SEI message, and if cr_rect_id_present_flag[ i ] is equal to 0, it indicates that the identifier syntax element does not exist in the SEI message.
[0252] According to one embodiment, the cr_rect_id_present_flag[ i ] syntax element is removed from the SEI message to simplify identifier signaling of the configuration rectangle.
[0253] In other words, when the value of cr_rect_id_enabled_flag is 1, the identifier syntax element for the configuration rectangle exists in the SEI message, and when the value of cr_rect_id_enabled_flag is 0, the identifier syntax element for the configuration rectangle does not exist in the SEI message.
[0254] That is, when the value of cr_rect_id_enabled_flag is 1, the identifier syntax elements of all configuration rectangles exist in the SEI message, and when the value of cr_rect_id_enabled_flag is 0, the identifier syntax elements of all configuration rectangles do not exist in the SEI message.
[0255] By doing so, the overhead can be reduced by eliminating the unnecessary process of signaling cr_rect_id_present_flag[ i ] for each configuration rectangle.
[0256] To signal the identifier syntax elements of a constituent rectangle, the syntax can be modified as shown in Table 3 below.
[0257] [Table 3]
[0258]
[0259] In Table 3 above, cr_rect_id_enabled_flag indicates whether the identifier syntax element of the configuration rectangle exists in the SEI message. That is, cr_rect_id_enabled_flag equals 1, which indicates that the identifier syntax element of the configuration rectangle exists in the SEI message, and cr_rect_id_enabled_flag equals 0, which indicates that the identifier syntax element of the configuration rectangle does not exist in the SEI message.
[0260] Additionally, cr_rect_id[ i ] represents the identifier syntax element of a specific configuration rectangle.
[0261] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0262] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0263] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0264] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of the corresponding cr_rect_id[ i ], is inferred to be 0.
[0265] That is, if cr_rect_id_enabled_flag is 0 and i is 0, the value of cr_rect_id[ i ] is inferred to be 0.
[0266] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] is inferred as cr_rect_id[ i - 1 ] + 1. In other words, if cr_rect_id_enabled_flag is 0 and i is greater than 0, the identifier syntax value of a specific configuration rectangle is inferred as the identifier syntax value of the configuration rectangle with an order index 1 smaller plus 1.
[0267] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] must not be the same. That is, identifier values for different CRs are not identical.
[0268] Referring to Table 3 above, when cr_rect_id_enabled_flag is true, for example, when its value is 1, cr_rect_id[ i ] can be signaled / parsed.
[0269] In other words, if the value of cr_rect_id_enabled_flag is 1, cr_rect_id[ i ] is signaled / parsed, and if the value of cr_rect_id_enabled_flag is 0, cr_rect_id[ i ] is not signaled / parsed.
[0270] In other words, by removing cr_rect_id_present_flag, bits can be saved by not signaling / parsing cr_rect_id_present_flag for each configuration rectangle.
[0271] As another example, the existence of an identifier for a constituent rectangle is signaled / parsed at the layer level. That is, it is determined by cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a constituent rectangle of a specific layer exists.
[0272] In other words, when the value of cr_rect_id_enabled_flag is 1, parse cr_rect_id_present_flag[ lIdx ], and when the value of cr_rect_id_present_flag[ lIdx ] is 1, indicate that there is an identifier syntax element of a configuration rectangle belonging to that layer.
[0273] If the value of cr_rect_id_enabled_flag is 1, parse cr_rect_id_present_flag[ lIdx ], and if the value of cr_rect_id_present_flag[ lIdx ] is 0, indicate that there are no identifier syntax elements for the composition rectangles belonging to the layer.
[0274] Thus, overhead can be reduced by signaling / parsing cr_rect_id_present_flag[ lIdx ] on a layer-by-layer basis.
[0275] To signal the identifier syntax elements of a constituent rectangle, the syntax can be modified as shown in Table 4 below.
[0276] [Table 4]
[0277]
[0278] In Table 4 above, cr_rect_id_enabled_flag is cr_rect_id_present_flag[ lIdx ]
[0279] Indicates whether a syntax element exists in the SEI message. That is, if cr_rect_id_enabled_flag is equal to 1, it indicates that the syntax element cr_rect_id_present_flag[ lIdx ] exists in the SEI message, and if cr_rect_id_enabled_flag is equal to 0, it indicates that the syntax element cr_rect_id_present_flag[ lIdx ] does not exist in the SEI message.
[0280] Additionally, cr_rect_id_present_flag[ lIdx ] indicates whether an identifier syntax element for the configuration rectangle of the lIdx-th layer exists in the SEI message. That is, if cr_rect_id_present_flag[ lIdx ] is equal to 1, it indicates that an identifier syntax element for the configuration rectangle of the corresponding layer exists in the SEI message, and if cr_rect_id_present_flag[ lIdx ] is equal to 0, it indicates that an identifier syntax element for the configuration rectangle of the corresponding layer does not exist in the SEI message.
[0281] Additionally, cr_rect_id[ i ] represents the identifier syntax element of a specific configuration rectangle.
[0282] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0283] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0284] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0285] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of the corresponding cr_rect_id[ i ], is inferred to be 0.
[0286] That is, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is 0, the value of cr_rect_id[ i ] is inferred to be 0.
[0287] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] is inferred as cr_rect_id[ i - 1 ] + 1. In other words, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is greater than 0, the identifier syntax value of the specific configuration rectangle is inferred as the identifier syntax value of the configuration rectangle with an index one smaller than 1 plus 1.
[0288] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] must not be the same.
[0289] Referring to Table 4 above, when cr_rect_id_enabled_flag is true, for example, when its value is 1, cr_rect_id_present_flag[ lIdx ] can be signaled / parsed.
[0290] That is, if the value of cr_rect_id_enabled_flag is 1, cr_rect_id_present_flag[ lIdx ] is signaled / parsed, and if the value of cr_rect_id_enabled_flag is 0, cr_rect_id_present_flag[ lIdx ] is not signaled / parsed.
[0291] In conclusion, when the value of the CR identifier availability flag is 1, the CR identifier existence flag is signaled / parsed.
[0292] If the above cr_rect_id_enabled_flag value is 1 and the cr_rect_id_present_flag[ lIdx ] value is 1, signal / parse cr_rect_id[ i ].
[0293] In other words, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a configuration rectangle of a specific layer exists in the SEI message, is 1, then the identifier syntax element of the configuration rectangle included in that layer, i.e., cr_rect_id[ i ], is signaled / parsed.
[0294] If cr_rect_id_enabled_flag is 1 and cr_rect_id_present_flag[ lIdx ] is 0, do not signal / parse cr_rect_id[ i ].
[0295] In other words, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a specific layer's configuration rectangle exists in the SEI message, is 0, then the identifier syntax element of the configuration rectangle included in that layer, i.e., cr_rect_id[ i ], is not signaled / parsed.
[0296] In other words, bits can be saved by signaling a flag indicating whether an identifier syntax element for a configuration rectangle exists for each layer.
[0297] FIG. 7 is a diagram illustrating a method for encoding image information according to one embodiment.
[0298] The method according to one embodiment may be performed by an encoding device (200) according to one embodiment. Accordingly, all or part of the description of the encoding device (200) described above and the description of the encoding method described with reference to FIG. 5 may also be applied to the method according to one embodiment. That is, the descriptions described above may also be applied to the method according to one embodiment to the extent that they do not conflict with the descriptions described below.
[0299] The encoding device (200) may include a memory and a processor electrically connected to the memory, and the operation of the aforementioned encoding device (200), the encoding method, or the method described below may be executed by the processor of the encoding device (200).
[0300] Terms or names used in this disclosure (e.g., names of syntax elements or names of variables, etc.) are merely examples, and the scope of the embodiments is not limited to these terms. Even if a term is not used in this disclosure, if substantial features such as the function performed, the definition thereof, or the method by which it is derived are identical or similar to those of this disclosure, it may be considered to be included within the scope of the embodiments described in this disclosure.
[0301] In addition, the method according to one embodiment may include other operations in addition to the operations described below, and some of the operations described below may be omitted depending on the example.
[0302] Referring to FIG. 7, a method for encoding image information according to one embodiment may include the step of generating a CR-related message including identifier information for at least one CR (S1010) and the step of encoding image information including the CR-related message (S1020).
[0303] For example, a CR-related message generated according to the method of FIG. 7 may include some or all of the syntax of the aforementioned Table 3. Accordingly, the CR-related message described in step S1010 may be the CR SEI message described in Table 3, and the contents described above with reference to Table 3 may also be applied to this embodiment.
[0304] The above CR-related message may include a CR identifier availability flag.
[0305] For example, the CR identifier availability flag may correspond to the syntax element cr_rect_id_enabled_flag of Table 3 mentioned above.
[0306] cr_rect_id_enabled_flag can indicate whether the identifier syntax element of the configuration rectangle exists in the SEI message.
[0307] In other words, a cr_rect_id_enabled_flag equal to 1 indicates that the identifier syntax element of the configuration rectangle exists in the SEI message, and a cr_rect_id_enabled_flag equal to 0 indicates that the identifier syntax element of the configuration rectangle does not exist in the SEI message.
[0308] That is, based on the value of the CR identifier availability flag being 1, identifier information for at least one CR may be included in the CR-related message.
[0309] The above CR-related message may include identifier information for the CR.
[0310] For example, identifier information for CR may correspond to the syntax element cr_rect_id[ i ] of Table 3 mentioned above.
[0311] The cr_rect_id[ i ] syntax element can represent the identifier syntax element of a specific configuration rectangle. Here, the i-th configuration rectangle can represent the i-th configuration rectangle among all configuration rectangles.
[0312] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0313] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0314] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0315] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of the corresponding cr_rect_id[ i ], can be inferred as 0. That is, if cr_rect_id_enabled_flag is 0 and i is 0, the value of cr_rect_id[ i ] is inferred as 0.
[0316] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] can be inferred as cr_rect_id[ i - 1 ] + 1. In other words, if cr_rect_id_enabled_flag is 0 and i is greater than 0, the identifier syntax value of a specific configuration rectangle can be inferred as the identifier syntax value of the configuration rectangle with an order index one smaller plus 1.
[0317] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] are not the same. That is, identifier values for different CRs are not identical.
[0318] Referring to Table 3 above, when cr_rect_id_enabled_flag is 1, the encoding device (200) signals cr_rect_id[ i ], and when cr_rect_id_enabled_flag is 0, the encoding device (200) may not signal cr_rect_id[ i ].
[0319] In other words, the encoding device (200) can signal cr_rect_id[ i ] when cr_rect_id_enabled_flag is true (e.g., when it is 1). That is, when the CR identifier availability flag is 1, identifier information for the CR can be obtained from a CR-related message.
[0320] A bitstream is generated based on video information encoded according to the encoding method described above, and the bitstream can be stored non-transiently on a computer-readable storage medium.
[0321] Additionally, a method for transmitting a bitstream according to one embodiment may include the step of generating a bitstream and the step of transmitting data including said bitstream. Here, the bitstream may be generated based on the aforementioned encoding method.
[0322] In addition, this transmission method may be performed by a transmission device comprising at least one processor and a transmission unit. The processor of the transmission device may generate a bitstream based on the aforementioned encoding method, and the generated bitstream may be transmitted through the transmission unit.
[0323] FIG. 8 is a diagram illustrating a method for decoding image information according to one embodiment.
[0324] A method according to one embodiment may be performed by a decoding device (300) according to one embodiment. Accordingly, all or part of the description of the decoding device (300) described above and the description of the decoding method described with reference to FIG. 4 may also be applied to a method according to one embodiment. That is, the descriptions described above may also be applied to a method according to one embodiment to the extent that they do not conflict with the descriptions described below.
[0325] The decoding device (300) may include a memory and a processor electrically connected to the memory, and the operation of the decoding device (300) described above, the decoding method, or the method described below may be executed by the processor of the decoding device (300).
[0326] Terms or names used in this disclosure (e.g., names of syntax elements or names of variables, etc.) are merely examples, and the scope of the embodiments is not limited to these terms. Even if a term is not used in this disclosure, if substantial features such as the function performed, the definition thereof, or the method by which it is derived are identical or similar to those of this disclosure, it may be considered to be included within the scope of the embodiments described in this disclosure.
[0327] In addition, the method according to one embodiment may include other operations in addition to the operations described below, and some of the operations described below may be omitted depending on the example.
[0328] Referring to FIG. 8, a method for decoding image information according to one embodiment may include the step of obtaining image information including a CR-related message from a bitstream (S1110) and the step of obtaining identifier information for at least one CR from the CR-related message (S1120).
[0329] For example, the CR-related message obtained according to the method of FIG. 8 may include some or all of the syntax of Table 3 described above. The CR-related message described in step S1110 may be the CR SEI message described in Table 3, and the contents described above with reference to Table 3 may also be applied to this embodiment.
[0330] The above CR-related message may include a CR identifier availability flag.
[0331] For example, the CR identifier availability flag may correspond to the syntax element cr_rect_id_enabled_flag of Table 3 mentioned above.
[0332] cr_rect_id_enabled_flag can indicate whether the identifier syntax element of the configuration rectangle exists in the SEI message.
[0333] In other words, a cr_rect_id_enabled_flag equal to 1 indicates that the identifier syntax element of the configuration rectangle exists in the SEI message, and a cr_rect_id_enabled_flag equal to 0 indicates that the identifier syntax element of the configuration rectangle does not exist in the SEI message.
[0334] That is, based on the value of the CR identifier availability flag being 1, identifier information for at least one CR can be obtained from a CR-related message.
[0335] The above CR-related message may include identifier information for the CR.
[0336] For example, identifier information for CR may correspond to the syntax element cr_rect_id[ i ] of Table 3 mentioned above.
[0337] The cr_rect_id[ i ] syntax element can represent the identifier syntax element of a specific configuration rectangle. Here, the i-th configuration rectangle can represent the i-th configuration rectangle among all configuration rectangles.
[0338] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0339] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0340] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0341] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of the corresponding cr_rect_id[ i ], can be inferred as 0. That is, if cr_rect_id_enabled_flag is 0 and i is 0, the value of cr_rect_id[ i ] is inferred as 0.
[0342] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] can be inferred as cr_rect_id[ i - 1 ] + 1. In other words, if cr_rect_id_enabled_flag is 0 and i is greater than 0, the identifier syntax value of a specific configuration rectangle can be inferred as the identifier syntax value of the configuration rectangle with an order index one smaller plus 1.
[0343] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] are not the same. That is, identifier values for different CRs are not identical.
[0344] Referring to the aforementioned Table 3, when cr_rect_id_enabled_flag is 1, the decoding device (300) parses cr_rect_id[ i ], and when cr_rect_id_enabled_flag is 0, it may not parse cr_rect_id[ i ].
[0345] In other words, the decoding device (300) can parse cr_rect_id[ i ] when cr_rect_id_enabled_flag is true (e.g., when it is 1). That is, when the CR identifier enable flag is 1, identifier information for the CR can be included in the CR-related message.
[0346] In other words, bits can be saved by not parsing cr_rect_id_present_flag for each constituent rectangle.
[0347] FIG. 9 is a diagram showing another example of a method for encoding image information according to one embodiment.
[0348] The method according to the example can be performed by an encoding device (200) according to one embodiment. Accordingly, all or part of the description of the encoding device (200) described above and the description of the encoding method described with reference to FIG. 5 may also be applied to the method according to one embodiment. That is, the descriptions described above may also be applied to the method according to one embodiment to the extent that they do not conflict with the descriptions described below.
[0349] The encoding device (200) may include a memory and a processor electrically connected to the memory, and the operation of the aforementioned encoding device (200), the encoding method, or the method described below may be executed by the processor of the encoding device (200).
[0350] Terms or names used in this disclosure (e.g., names of syntax elements or names of variables, etc.) are merely examples, and the scope of the embodiments is not limited to these terms. Even if a term is not used in this disclosure, if substantial features such as the function performed, the definition thereof, or the method by which it is derived are identical or similar to those of this disclosure, it may be considered to be included within the scope of the embodiments described in this disclosure.
[0351] In addition, the method according to one embodiment may include other operations in addition to the operations described below, and some of the operations described below may be omitted depending on the example.
[0352] Referring to FIG. 9, a method for encoding image information according to one embodiment may include the step of generating a CR identifier availability flag (S1210), the step of generating a CR identifier existence flag (S1220), and the step of encoding image information including a CR-related message (S1230).
[0353] For example, a CR-related message generated according to the method of FIG. 9 may include some or all of the syntax of the aforementioned tables. Therefore, at least some of the contents described with reference to the tables above may also be applied to this example.
[0354] The above CR-related message may include a CR identifier availability flag.
[0355] For example, the CR identifier availability flag may correspond to the syntax element cr_rect_id_enabled_flag of Table 4 mentioned above.
[0356] cr_rect_id_enabled_flag can indicate whether the cr_rect_id_present_flag[ lIdx ] syntax element exists in the SEI message.
[0357] In other words, cr_rect_id_enabled_flag being equal to 1 indicates that the cr_rect_id_present_flag[ lIdx ] syntax element exists in the SEI message, and cr_rect_id_enabled_flag being equal to 0 indicates that the cr_rect_id_present_flag[ lIdx ] syntax element does not exist in the SEI message.
[0358] Additionally, the above CR-related message may include a CR identifier existence flag.
[0359] For example, the CR identifier presence flag may correspond to the syntax element cr_rect_id_present_flag[ lIdx ] in Table 4 above. cr_rect_id_present_flag[ lIdx ] may indicate whether the identifier syntax element of a configuration rectangle belonging to the lIdx-th layer exists in the SEI message. In other words, cr_rect_id_present_flag[ lIdx ] may indicate whether the identifier information associated with each configuration rectangle among the configuration rectangles belonging to a specific layer is included in the SEI message.
[0360] That is, a CR identifier presence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the SEI message may be included in the CR-related message.
[0361] A cr_rect_id_present_flag[ lIdx ] equal to 1 indicates that an identifier syntax element for the corresponding layer's constituent rectangle exists in the SEI message, and a cr_rect_id_present_flag[ lIdx ] equal to 0 indicates that an identifier syntax element for the corresponding layer's constituent rectangle does not exist in the SEI message.
[0362] In addition, the above CR-related message may include identifier information for the CR.
[0363] For example, identifier information for CR may correspond to the syntax element cr_rect_id[ i ] of the aforementioned Table 4.
[0364] The cr_rect_id[ i ] syntax element can represent the identifier syntax element of a specific configuration rectangle. Here, the i-th configuration rectangle can represent the i-th configuration rectangle among the configuration rectangles belonging to the lIdx-th layer.
[0365] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0366] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0367] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0368] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of cr_rect_id[ i ], can be inferred as 0. That is, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is 0, the value of cr_rect_id[ i ] is inferred as 0.
[0369] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] can be inferred as cr_rect_id[ i - 1 ] + 1. In other words, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is greater than 0, the identifier syntax value of a specific configuration rectangle can be inferred as the identifier syntax value of the configuration rectangle with an order index one smaller plus 1.
[0370] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] are not the same. That is, identifier values for different CRs are not identical.
[0371] Referring to Table 4 above, when cr_rect_id_enabled_flag is true, for example, when its value is 1, cr_rect_id_present_flag[ lIdx ] can be signaled.
[0372] In other words, if the value of cr_rect_id_enabled_flag is 1, cr_rect_id_present_flag[ lIdx ] is signaled, and if the value of cr_rect_id_enabled_flag is 0, cr_rect_id_present_flag[ lIdx ] is not signaled.
[0373] In other words, if the value of the CR identifier availability flag is 1, the CR identifier existence flag is included in the CR-related message.
[0374] When the above cr_rect_id_enabled_flag value is 1, it signals cr_rect_id_present_flag[ lIdx ], and when the cr_rect_id_present_flag[ lIdx ] value is 1, it indicates that the identifier syntax element of the configuration rectangle belonging to the layer exists in the SEI message.
[0375] In other words, if the value of cr_rect_id_enabled_flag, which indicates whether an identifier syntax element for a configuration rectangle of the layer exists, is 1, and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a configuration rectangle of a specific layer exists in the SEI message, is 1, then the identifier syntax element of the configuration rectangle included in the layer, i.e., cr_rect_id[ i ], is signaled.
[0376] That is, if the above cr_rect_id_enabled_flag value is 1 and the cr_rect_id_present_flag[ lIdx ] value is 1, cr_rect_id[ i ] is signaled.
[0377] Consequently, based on the fact that the value of the CR identifier availability flag is 1 and the value of the CR identifier existence flag for a specific layer is 1, identifier information for a CR belonging to a specific layer is included in a CR-related message.
[0378] Meanwhile, if the value of cr_rect_id_enabled_flag is 1, it signals cr_rect_id_present_flag[ lIdx ], and if the value of cr_rect_id_present_flag[ lIdx ] is 0, it indicates that the identifier syntax element of the configuration rectangle belonging to the layer does not exist in the SEI message.
[0379] In other words, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a specific layer's configuration rectangle exists in the SEI message, is 0, then the identifier syntax element of the configuration rectangle included in that layer, i.e., cr_rect_id[ i ], is not signaled.
[0380] That is, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ] is 0, cr_rect_id[ i ] is not signaled.
[0381] Thus, bits can be saved by signaling a flag indicating whether an identifier syntax element exists for each layer.
[0382] A bitstream is generated based on video information encoded according to the encoding method described above, and the bitstream can be stored non-transiently on a computer-readable storage medium.
[0383] Additionally, a method for transmitting a bitstream according to one embodiment may include the step of generating a bitstream and the step of transmitting data including said bitstream. Here, the bitstream may be generated based on the aforementioned encoding method.
[0384] FIG. 10 is a diagram showing another example of a method for decoding image information according to one embodiment.
[0385] A method according to one embodiment may be performed by a decoding device (300) according to one embodiment. Accordingly, all or part of the description of the decoding device (300) described above and the description of the decoding method described with reference to FIG. 4 may also be applied to a method according to one embodiment. That is, the descriptions described above may also be applied to a method according to one embodiment to the extent that they do not conflict with the descriptions described below.
[0386] The decoding device (300) may include a memory and a processor electrically connected to the memory, and the operation of the decoding device (300) described above, the decoding method, or the method described below may be executed by the processor of the decoding device (300).
[0387] Terms or names used in this disclosure (e.g., names of syntax elements or names of variables, etc.) are merely examples, and the scope of the embodiments is not limited to these terms. Even if a term is not used in this disclosure, if substantial features such as the function performed, the definition thereof, or the method by which it is derived are identical or similar to those of this disclosure, it may be considered to be included within the scope of the embodiments described in this disclosure.
[0388] In addition, the method according to one embodiment may include other operations in addition to the operations described below, and some of the operations described below may be omitted depending on the example.
[0389] Referring to FIG. 10, a method for decoding image information according to one embodiment may include the step of obtaining a CR identifier availability flag (S1310), the step of obtaining a CR identifier existence flag (S1320), and the step of obtaining identifier information for CR (S1330).
[0390] For example, a CR-related message parsed according to the method of FIG. 10 may include some or all of the syntax of the aforementioned tables. Therefore, at least some of the contents described with reference to the tables above may also be applied to this example.
[0391] The above CR-related message may include a CR identifier availability flag.
[0392] For example, the CR identifier availability flag may correspond to the syntax element cr_rect_id_enabled_flag of Table 4 mentioned above.
[0393] cr_rect_id_enabled_flag can indicate whether the cr_rect_id_present_flag[ lIdx ] syntax element exists in the SEI message.
[0394] In other words, cr_rect_id_enabled_flag being equal to 1 indicates that the cr_rect_id_present_flag[ lIdx ] syntax element exists in the SEI message, and cr_rect_id_enabled_flag being equal to 0 indicates that the cr_rect_id_present_flag[ lIdx ] syntax element does not exist in the SEI message.
[0395] Additionally, the above CR-related message may include a CR identifier existence flag.
[0396] For example, the CR identifier present flag may correspond to the syntax element cr_rect_id_present_flag[ lIdx ] of Table 4 mentioned above.
[0397] cr_rect_id_present_flag[ lIdx ] can indicate whether the identifier syntax element of a configuration rectangle belonging to the lIdx-th layer exists in the SEI message. Specifically, cr_rect_id_present_flag[ lIdx ] can indicate whether the identifier information associated with each configuration rectangle among the configuration rectangles belonging to a specific layer is included in the SEI message.
[0398] That is, a CR identifier presence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the SEI message may be included in the CR-related message.
[0399] A cr_rect_id_present_flag[ lIdx ] equal to 1 indicates that an identifier syntax element for the corresponding layer's constituent rectangle exists in the SEI message, and a cr_rect_id_present_flag[ lIdx ] equal to 0 indicates that an identifier syntax element for the corresponding layer's constituent rectangle does not exist in the SEI message.
[0400] In addition, the above CR-related message may include identifier information for the CR.
[0401] For example, identifier information for CR may correspond to the syntax element cr_rect_id[ i ] of the aforementioned Table 4.
[0402] The cr_rect_id[ i ] syntax element can represent the identifier syntax element of a specific configuration rectangle. Here, the i-th configuration rectangle can represent the i-th configuration rectangle among the configuration rectangles belonging to the lIdx-th layer.
[0403] The SEI message may include length information of the identifier syntax element of the above-mentioned configuration rectangle.
[0404] The length of the identifier syntax element of the above-mentioned configuration rectangle is cr_rect_id_len_minus1 + 1 bit. In this case, cr_rect_id_len_minus1 may represent the length information of the identifier syntax element of the configuration rectangle.
[0405] If the SEI message includes length information for the identifier syntax element of the above-mentioned configuration rectangle, the length of the identifier syntax element of the configuration rectangle may have a bit length of 1 plus the value indicated by the length information. That is, the value of cr_rect_id_len_minus1 plus 1 specifies the length of the identifier syntax element of the configuration rectangle.
[0406] Meanwhile, if the identifier syntax element of a specific configuration rectangle does not exist and i is 0, the identifier syntax value of the specific configuration rectangle, i.e., the value of cr_rect_id[ i ], can be inferred as 0. That is, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is 0, the value of cr_rect_id[ i ] is inferred as 0.
[0407] If the identifier syntax element of a specific configuration rectangle does not exist and i is greater than 0, the value of the corresponding cr_rect_id[ i ] can be inferred as cr_rect_id[ i - 1 ] + 1. In other words, if the value of cr_rect_id_present_flag[ lIdx ] is 0 and i is greater than 0, the identifier syntax value of a specific configuration rectangle can be inferred as the identifier syntax value of the configuration rectangle with an order index one smaller plus 1.
[0408] In this case, as a requirement for bitstream conformance, when j and k are different values, the values of cr_rect_id[ j ] and cr_rect_id[ k ] are not the same. That is, identifier values for different CRs are not identical.
[0409] Referring to Table 4 above, when cr_rect_id_enabled_flag is true, for example, when its value is 1, cr_rect_id_present_flag[ lIdx ] can be parsed.
[0410] In other words, if the value of cr_rect_id_enabled_flag is 1, cr_rect_id_present_flag[ lIdx ] is parsed, and if the value of cr_rect_id_enabled_flag is 0, cr_rect_id_present_flag[ lIdx ] is not parsed.
[0411] In other words, if the value of the CR identifier availability flag is 1, the CR identifier existence flag is included in the CR-related message.
[0412] If the above cr_rect_id_enabled_flag value is 1, parse cr_rect_id_present_flag[ lIdx ], and if the cr_rect_id_present_flag[ lIdx ] value is 1, indicate that there is an identifier syntax element of a configuration rectangle belonging to the layer.
[0413] In other words, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a specific layer's configuration rectangle exists in the SEI message, is 1, then the identifier syntax element of the configuration rectangle included in that layer, i.e., cr_rect_id[ i ], is parsed.
[0414] That is, if the above cr_rect_id_enabled_flag value is 1 and the cr_rect_id_present_flag[ lIdx ] value is 1, parse cr_rect_id[ i ].
[0415] Consequently, based on the fact that the value of the CR identifier availability flag is 1 and the value of the CR identifier existence flag for a specific layer is 1, identifier information for a CR belonging to a specific layer is obtained from a CR-related message.
[0416] Meanwhile, if the value of cr_rect_id_enabled_flag is 1, cr_rect_id_present_flag[ lIdx ] is parsed, and if the value of cr_rect_id_present_flag[ lIdx ] is 0, it indicates that the identifier syntax element of the configuration rectangle belonging to the layer does not exist in the SEI message.
[0417] In other words, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ], which indicates whether an identifier syntax element for a specific layer's configuration rectangle exists in the SEI message, is 0, the identifier syntax element of the configuration rectangle included in that layer, i.e., cr_rect_id[ i ], is not parsed.
[0418] That is, if the value of cr_rect_id_enabled_flag is 1 and the value of cr_rect_id_present_flag[ lIdx ] is 0, cr_rect_id[ i ] is not parsed.
[0419] Thus, bits can be saved by parsing a flag indicating whether an identifier syntax element exists for each layer.
[0420] FIG. 11 is a drawing illustrating an exemplary content streaming system to which an embodiment according to the present disclosure can be applied.
[0421] As illustrated in FIG. 11, 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.
[0422] 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.
[0423] The bitstream may be generated by a video encoding method and / or 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.
[0424] 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.
[0425] 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.
[0426] 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.
[0427] 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.
[0428] 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.
[0429] An embodiment according to the present disclosure can be used to encode / decode images.
Claims
1. A step of obtaining image information including a CR (Constituent Rectangle) related message from a bitstream; and The method includes the step of obtaining identifier information for at least one CR from the above CR-related message, The above CR-related message includes a CR identifier availability flag, and The step of obtaining identifier information for the above CR is a method of obtaining identifier information for the at least one CR from the above CR-related message based on the value of the above CR identifier availability flag being 1.
2. In Paragraph 1, The above CR-related message further includes a CR identifier presence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the above SEI message, and The step of obtaining the identifier information is a method of obtaining identifier information for a CR belonging to a specific layer from the CR-related message based on the fact that the value of the CR identifier availability flag is 1 and the value of the CR identifier existence flag for a specific layer is 1.
3. In Paragraph 1, A method in which, when the above CR-related message includes length information indicating the bit length of CR identifier information, the CR identifier information has a bit length obtained by adding 1 to the value indicated by the length information.
4. In Paragraph 1, A method in which, based on the fact that the CR-related message does not include identifier information for a specific CR, the identifier value of the specific CR is inferred to be 0 based on the fact that the order index of the specific CR is 0, and the identifier value of the specific CR is inferred to be the value obtained by adding 1 to the identifier value of the CR with an order index that is 1 smaller based on the fact that the order index of the specific CR is greater than 0.
5. In Paragraph 1, A method in which identifier values for different CRs are not identical to each other.
6. In Paragraph 2, A method in which, when the value of the CR identifier availability flag is 1, the CR identifier existence flag is included in the CR-related message.
7. A step of generating a CR-related message including identifier information for at least one CR; and The method includes the step of encoding image information containing the above CR-related message; and The above CR-related message includes a CR identifier availability flag, and A method of including identifier information for at least one CR in the CR-related message based on the value of the CR identifier availability flag being 1.
8. In Paragraph 7, The above CR-related message further includes a CR identifier presence flag indicating whether identifier information associated with at least one CR belonging to a specific layer is included in the above SEI message, and The step of generating the above CR-related message is a method of including identifier information for a CR belonging to a specific layer in the above CR-related message based on the fact that the value of the above CR identifier availability flag is 1 and the value of the above CR identifier existence flag is 1 for a specific layer.
9. In Paragraph 7, If the above CR-related message includes length information indicating the bit length of the CR identifier information, A method in which the above CR identifier information has a bit length of 1 plus the value represented by the above length information.
10. In Paragraph 7, A method in which the CR-related message is generated such that, based on the fact that the CR-related message does not include identifier information for a specific CR, the identifier value of the specific CR is inferred to be 0 based on the fact that the order index of the specific CR is 0, and the CR-related message is generated such that, based on the fact that the order index of the specific CR is greater than 0, the identifier value of the specific CR is inferred to be the value obtained by adding 1 to the identifier value of the CR with an order index that is 1 smaller.
11. In Paragraph 7, A method for generating the above CR-related message such that the identifier values for different CRs are not identical to each other.
12. In Paragraph 8, A method in which, when the value of the CR identifier availability flag is 1, the CR identifier existence flag is included in the CR-related message.
13. A computer-readable storage medium that non-transiently stores a bitstream generated by the method of claim 7 above.
14. Step of generating a bitstream; and The method includes the step of transmitting data including the bitstream above; and The step of generating the above bitstream is, A step of generating a CR-related message including identifier information for at least one CR; and The method includes the step of encoding image information containing the above CR-related message; and The above CR-related message includes a CR identifier availability flag, and A method of including identifier information for at least one CR in the CR-related message based on the value of the CR identifier availability flag being 1.