Video or image coding based on signaling of scaled list data - Patents.com
By signaling scaling list data through an adaptation parameter set, the method addresses the inefficiencies in compressing high-resolution media, improving coding efficiency and visual quality, and optimizing memory usage.
Patent Information
- Application Number
- JP2023102428
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-07-08
- Filing Date
- 2023-06-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-07-08
AI Technical Summary
The increasing demand for high-resolution and immersive media such as 4K, 8K UHD images/videos and VR/AR content has led to challenges in efficiently compressing, transmitting, and storing these data due to the high bit rates, necessitating improved coding techniques and efficient signaling of scaling list information during the scaling process.
The method involves signaling scaling list data through an adaptation parameter set (APS) with APS ID and type information, allowing for hierarchical signaling and efficient configuration of scaling lists, thereby enhancing coding efficiency and subjective/objective visual quality.
This approach increases overall image/video compression efficiency, improves coding efficiency, and allows for efficient application of scaling lists, while limiting memory requirements and enhancing visual quality.
Smart Images

Figure 0007551849000055 
Figure 0007551849000056 
Figure 0007551849000064
Abstract
Description
[Technical field]
[0001] The present technology relates to video or image coding, for example coding techniques based on signaling of scaling list data. [Background technology]
[0002] In recent years, the demand for high-resolution, high-quality images / videos such as 4K or 8K or higher UHD (Ultra High Definition) images / videos is increasing in various fields. As the image / video data has higher resolution and quality, the amount of information or bits to be transmitted increases relatively compared to existing image / video data, so that when image data is transmitted using a medium such as an existing wired or wireless broadband line or image / video data is stored using an existing storage medium, the transmission cost and storage cost increase.
[0003] In addition, in recent years, interest in and demand for immersive media such as virtual reality (VR), artificial reality (AR) content, and holograms has been increasing, and the broadcast of images / videos having different image characteristics from real images, such as game images, has been increasing.
[0004] Therefore, there is a demand for highly efficient image / video compression technology to effectively compress and transmit, store, and play back high-resolution, high-quality image / video information having the various characteristics described above.
[0005] There is also discussion of adaptive frequency weighting quantization techniques during the scaling process to improve compression efficiency and enhance subjective / objective visual quality. A method for signaling related information to efficiently apply such techniques is needed. Summary of the Invention [Problem to be solved by the invention]
[0006] The technical problem of this document is to provide a method and apparatus for increasing video / image coding efficiency.
[0007] Another technical problem of this document is to provide a method and apparatus for improving coding efficiency during the scaling process.
[0008] Another technical problem of this document is to provide a method and apparatus for efficiently constructing a scaling list used in the scaling process.
[0009] Another technical problem of this document is to provide a method and apparatus for hierarchically signaling scaling list-related information used in the scaling process.
[0010] Another technical problem of this document is to provide a method and apparatus for efficiently applying a scaling list-based scaling process. [Means for solving the problem]
[0011] According to one embodiment of this document, the scaling list data can be signaled via an adaptation parameter set (APS), which includes APS ID information and APS type information, and the scaling list data can be included in the APS based on the APS ID information and the APS type information.
[0012] According to one embodiment of this document, scaling list data may be signaled via an APS based on header information, which may include APS ID information associated with the scaling list data, and an APS including the scaling list data may be identified based on the APS ID information associated with the scaling list data included in the header information.
[0013] According to one embodiment of this document, the value range of the APS ID information for the APS containing the scaling list data may be determined based on the APS type information. Slices in one picture can reference APSs containing scaling list data whose APS IDs have the same value.
[0014] According to an embodiment of the present document, there is provided a video / image decoding method performed by a decoding device, the video / image decoding method may include the methods disclosed in the embodiments of the present document.
[0015] According to an embodiment of the present document, there is provided a decoding device for performing video / image decoding, the decoding device being capable of performing the method disclosed in the embodiment of the present document.
[0016] According to an embodiment of the present document, there is provided a video / image encoding method performed by an encoding device, the video / image encoding method may include the methods disclosed in the embodiments of the present document.
[0017] According to an embodiment of the present document, an encoding device for performing video / image encoding is provided, which is capable of performing the method disclosed in the embodiment of the present document.
[0018] According to one embodiment of the present document, there is provided a computer-readable digital storage medium having encoded video / image information generated by the video / image encoding method disclosed in at least one of the embodiments of the present document.
[0019] According to one embodiment of the present document, there is provided a computer-readable digital storage medium having encoded information or encoded video / image information stored thereon, which causes a decoding device to perform the video / image decoding method disclosed in at least one of the embodiments of the present document. Effect of the Invention
[0020] This document may have various advantages. For example, according to an embodiment of this document, the overall image / video compression efficiency may be increased. According to an embodiment of this document, the coding efficiency may be increased by applying an efficient scaling process, and the subjective / objective visual quality may be improved. According to an embodiment of this document, the scaling list used in the scaling process may be efficiently configured, and the scaling list related information may be hierarchically signaled therethrough. According to an embodiment of this document, the coding efficiency may be increased by efficiently applying a scaling process based on the scaling list. According to an embodiment of this document, the effect of facilitating implementation and limiting the worst case memory requirement may be obtained by placing a restriction on the scaling list matrix used in the scaling process.
[0021] Effects that can be obtained through specific embodiments of this document are not limited to the effects listed above. For example, there may be various technical effects that a person having ordinary skill in the related art can understand or derive from this document. Thus, the specific effects of this document are not limited to those explicitly described in this document, but may include various effects that can be understood or derived from the technical features of this document. [Brief description of the drawings]
[0022] [Figure 1] 1 illustrates generally an example of a video / image coding system in which embodiments of the present document may be applied; [Diagram 2] FIG. 1 is a diagram illustrating the configuration of a video / image encoding device to which the embodiments of this document can be applied. [Diagram 3]FIG. 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of the present document can be applied. [Figure 4] 1 illustrates an example of a general intra-prediction based video / image encoding method to which embodiments of this document can be applied. [Diagram 5] 1 illustrates an example of a general intra-prediction based video / image decoding method to which the embodiments of this document can be applied. [Figure 6] 1 illustrates an exemplary intra prediction procedure. [Figure 7] 1 illustrates an example of a general inter-prediction based video / image encoding method to which embodiments of this document can be applied. [Figure 8] 1 illustrates an example of a general inter-prediction based video / image decoding method to which the embodiments of this document can be applied. [Figure 9] 1 illustrates an exemplary inter prediction procedure. [Figure 10] 1 shows an exemplary hierarchical structure for coded images / videos. [Figure 11] 1 illustrates generally an example of a video / image encoding method and associated components according to an embodiment (or embodiments) of the present document; [Figure 12] 1 illustrates generally an example of a video / image encoding method and associated components according to an embodiment (or embodiments) of the present document; [Figure 13] 1 illustrates generally an example of a video / image decoding method and associated components according to an embodiment (etc.) of the present document; [Figure 14] 1 illustrates generally an example of a video / image decoding method and associated components according to an embodiment (etc.) of the present document; [Figure 15] 1 illustrates an example of a content streaming system in which the embodiments disclosed herein may be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] The present disclosure may have various modifications and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit the present disclosure to a specific embodiment. Commonly used terms in this document are used merely to describe a specific embodiment, and are not intended to limit the technical idea of the present disclosure. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, terms such as "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0024] Meanwhile, each configuration in the drawings described in this disclosure is illustrated independently for the convenience of explaining the different characteristic functions, and does not mean that each configuration is realized by separate hardware or software. For example, two or more of each configuration may be combined to form one configuration, and one configuration may be divided into multiple configurations. An embodiment in which each configuration is integrated and / or separated is also included in the scope of the present disclosure as long as it does not deviate from the essence of this document.
[0025] In this document, technical features described individually in one drawing can be realized individually or simultaneously.
[0026] Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. Hereinafter, the same components in the drawings will be designated by the same reference numerals, and duplicated descriptions of the same components may be omitted.
[0027] FIG. 1 illustrates a schematic diagram of an example of a video / image coding system to which embodiments of the present document can be applied.
[0028] Referring to Figure 1, the video / image coding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image information or data to the receiving device in a file or streaming form via a digital storage medium or a network.
[0029] The source device may include a video source, an encoding device, and a sending unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may also include a display unit, which may be a separate device or an external component.
[0030] A video source may acquire video / images through a video / image capture, synthesis, or generation process, etc. A video source may include a video / image capture device and / or a video / image generation device. A video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / images. For example, a virtual video / image may be generated through a computer, etc., in which case the video / image capture process may be replaced by a process in which related data is generated.
[0031] An encoding device can encode an input video / image. The encoding device can perform a series of steps such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0032] The transmitting unit can transmit the encoded video / image information or data output in the form of a bitstream to a receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit can include elements for generating a media file through a predetermined file format and can include elements for transmission via a broadcasting / communication network. The receiving unit can receive / extract the bitstream and transmit it to a decoding device.
[0033] The decoding device can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, prediction, etc., which correspond to the operations of the encoding device.
[0034] The renderer can render the decoded video / images. The rendered video / images can be displayed via a display unit.
[0035] In this document, "A or B" can mean "only A," "only B," or "both A and B." Also, in this document, "A or B" can be interpreted as "A and / or B." For example, in this document, "A, B or C" can mean "only A," "only B," "only C," or "any combination of A, B and C."
[0036] A slash ( / ) or a comma (comma) used in this document can mean "and / or." For example, "A / B" can mean "A and / or B." Therefore, "A / B" can mean "only A," "only B," or "both A and B." For example, "A, B, C" can mean "A, B, or C."
[0037] In this document, "at least one of A and B" can mean "only A", "only B", or "both A and B". Also, in this document, the expressions "at least one of A or B" and "at least one of A and / or B" can be interpreted as "at least one of A and B".
[0038] Additionally, in this document, "at least one of A, B and C" can mean "only A," "only B," "only C," or "any combination of A, B and C." Additionally, "at least one of A, B or C" and "at least one of A, B and / or C" can mean "at least one of A, B and C."
[0039] Furthermore, parentheses used in this document may mean "for example." Specifically, when "prediction (intra prediction)" is displayed, "intra prediction" is proposed as an example of "prediction." In other words, "prediction" in this document is not limited to "intra prediction," and "intra prediction" is proposed as an example of "prediction." Additionally, when "prediction (i.e., intra prediction)" is displayed, "intra prediction" is proposed as an example of "prediction."
[0040] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be applied to methods disclosed in the Versatile Video Coding (VVC) standard. Also, the methods / embodiments disclosed in this document may be applied to methods disclosed in the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2) or the next generation video / image coding standard (e.g., H.267 or H.267).
[0041] Various embodiments relating to video / image coding are presented in this document, and unless otherwise stated, the embodiments may also be implemented in combination with each other.
[0042] In this document, a video may mean a collection of a series of images over time. A picture generally means a unit showing one image at a particular time, and a slice / tile is a unit constituting a part of a picture in coding. A slice / tile may include one or more coding tree units (CTUs). One picture may be composed of one or more slices / tiles. A tile is a rectangular region of CTUs within a particular tile column and particular tile row in a picture. The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set. The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture.A tile scan may indicate a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of complete tiles or an integer number of consecutive complete CTU rows within a tile of a picture that may be exclusively contained in a single NAL unit.
[0043] On the other hand, a picture can be partitioned into two or more sub-pictures, where a sub-picture is a rectangular region of one or more slices within a picture.
[0044] A pixel or a pel may refer to the smallest unit that constitutes one picture (or image). A term corresponding to a pixel may also be used as a "sample." A sample may generally refer to a pixel or a pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. Alternatively, a sample may refer to a pixel value in the spatial domain, or may refer to a transform coefficient in the frequency domain when such a pixel value is transformed into the frequency domain.
[0045] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. One unit may include one luma block and two chroma (e.g., cb, cr) blocks. A unit may be used in combination with terms such as block or area, depending on the case. In a general case, an M×N block may include a sample (or sample array) consisting of M columns and N rows, or a set (or array) of transform coefficients.
[0046] Also, in this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. If quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. If transform / inverse transform is omitted, the transform coefficients may also be referred to as coefficients or residual coefficients, or may still be referred to as transform coefficients for uniformity of representation.
[0047] In this document, the quantized transform coefficients and the transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information about the transform coefficient(s), and the information about the transform coefficient(s) may be signaled via a residual coding syntax. Based on the residual information (or information about the transform coefficient(s)), the transform coefficients may be derived, and the scaled transform coefficients may be derived via an inverse transform (scaling) on the transform coefficients. Based on the inverse transform (transform) on the scaled transform coefficients, the residual samples may be derived. This may be similarly applied / expressed in other parts of this document.
[0048] 2 is a diagram for explaining the configuration of a video / image encoding device to which the embodiments of this document can be applied. Hereinafter, the encoding device may include an image encoding device and / or a video encoding device.
[0049] Referring to FIG. 2, the encoding device 200 may include an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. The image division unit 210, the prediction unit 220, the residual processing unit 230, the entropy encoding unit 240, the addition unit 250, and the filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chip set or a processor) according to an embodiment. In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include the memory 270 as an internal / external component.
[0050] The image division unit 210 may divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing units may be called coding units (CUs). In this case, the coding units may be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad-tree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quad-tree structure may be applied first, and then the binary tree structure and / or the ternary structure may be applied. Alternatively, the binary tree structure may be applied first. The coding procedure according to this document may be performed based on a final coding unit that is not further divided. In this case, the largest coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units of lower depths as necessary, and a coding unit of an optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may each be divided or partitioned from the final coding unit described above.The prediction unit is a unit of sample prediction, and the transform unit is a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.
[0051] The unit may be used interchangeably with terms such as block or area. In the general case, an M×N block may refer to a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. A sample may be used as a term corresponding to a pixel or pel of one picture (or image).
[0052] The encoding device 200 may generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (predicted block, prediction sample array) output from the inter prediction unit 221 or the intra prediction unit 222 from an input image signal (original block, original sample array), and the generated residual signal is transmitted to the conversion unit 232. In this case, as illustrated, a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input image signal (original block, original sample array) in the encoder 200 may be called a subtraction unit 231. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including a prediction sample for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the information to the entropy encoding unit 240, as will be described later in the description of each prediction mode. The prediction information can be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0053] The intra prediction unit 222 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on the prediction mode. Prediction modes in intra prediction 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 fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 222 may also determine a prediction mode to be applied to the current block using a prediction mode applied to a neighboring block.
[0054] The inter prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the inter prediction unit 221 may use motion information of a neighboring block as motion information of the current block. In the case of the skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0055] The prediction unit 220 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). The prediction unit may also be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / video coding such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in deriving a reference block within the current picture. That is, IBC may utilize at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information regarding a palette table and a palette index.
[0056] The prediction signal generated through the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to non-square variable-sized blocks.
[0057] The quantizer 233 quantizes the transform coefficients and transmits them to the entropy encoder 240, which may encode the quantized signal (information on the quantized transform coefficients) and output the encoded signal to a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoder 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoder 240 may also encode information required for video / image restoration (e.g., values of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in units of network abstraction layer (NAL) units. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may further include general constraint information. In this document, information and / or syntax elements transmitted / signaled from an encoding device to a decoding device may be included in the video / image information. The video / image information may be encoded through the above-mentioned encoding procedure and included in the bitstream.The bitstream may be transmitted via a network or may be stored in a digital storage medium, where the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) for transmitting the signal output from the entropy encoding unit 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding device 200, or the transmitter may be included in the entropy encoding unit 240.
[0058] The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be restored by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantizer 234 and the inverse transformer 235. The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 221 or the intra prediction unit 222. When there is no residual for the current block, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 250 may be referred to as a reconstruction unit or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next current block in the current picture, and may also be used for inter prediction of the next picture after filtering, as described below.
[0059] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or reconstruction.
[0060] The filtering unit 260 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 260 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc. The filtering unit 260 may generate various information related to filtering and transmit it to the entropy encoding unit 240, as will be described later in the description of each filtering method. The filtering information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0061] The modified reconstructed picture transmitted to the memory 270 can be used as a reference picture in the inter prediction unit 221. When inter prediction is applied through this, the encoding apparatus can avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus, and can also improve encoding efficiency.
[0062] The DPB of the memory 270 may store the modified reconstructed picture to be used as a reference picture in the inter prediction unit 221. The memory 270 may store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 222.
[0063] 3 is a diagram for explaining the configuration of a video / image decoding device to which the embodiments of this document can be applied. Hereinafter, the decoding device may include an image decoding device and / or a video decoding device.
[0064] Referring to FIG. 3, the decoding device 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321. The entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured as one hardware component (e.g., a decoder chipset or processor) according to an embodiment. Also, the memory 360 may include a decoded picture buffer (DPB) and may be configured as a digital storage medium. The hardware components may further include a memory 360 as an internal / external component.
[0065] When a bitstream including video / image information is input, the decoding apparatus 300 can restore an image corresponding to a process in which the video / image information is processed by the encoding apparatus of FIG. 2. For example, the decoding apparatus 300 can derive a unit / block based on block division related information obtained from the bitstream. The decoding apparatus 300 can perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit for decoding is, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximal coding unit according to a quad tree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units can be derived from the coding unit. Then, the restored image signal decoded and output by the decoding apparatus 300 can be reproduced by a reproduction device.
[0066] The decoding device 300 may receive a signal output from the encoding device of FIG. 2 in the form of a bitstream, and the received signal may be decoded via the entropy decoding unit 310. For example, the entropy decoding unit 310 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The decoding device may decode a picture based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be decoded via the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 310 may decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output values of syntax elements required for image restoration and quantized values of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method may receive bins corresponding to each syntax element in the bitstream, determine a context model using syntax element information to be decoded and decode information of adjacent and to-be-decoded blocks or information of symbols / bins decoded in a previous step, predict the occurrence probability of bins according to the determined context model, and perform arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. In this case, the CABAC entropy decoding method may update the context model using information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model.Among the information decoded by the entropy decoding unit 310, information related to prediction is provided to a prediction unit (inter prediction unit 332 and intra prediction unit 331), and residual values entropy decoded by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the residual processing unit 320. The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). Also, among the information decoded by the entropy decoding unit 310, information related to filtering may be provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to this document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoding unit 310, and the sample decoder may include at least one of the inverse quantization unit 321, the inverse transform unit 322, the addition unit 340, the filtering unit 350, the memory 360, the inter prediction unit 332, and the intra prediction unit 331.
[0067] The inverse quantization unit 321 may inverse quantize the quantized transform coefficients to output transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on a coefficient scan order performed in the encoding device. The inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.
[0068] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0069] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on the prediction output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.
[0070] The prediction unit 320 may generate a prediction signal based on various prediction methods, which will be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / video coding such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, information regarding a palette table and a palette index may be included in the video / image information and signaled.
[0071] The intra prediction unit 331 may predict a current block by referring to samples in a current picture. The referenced samples may be located in a neighbor of the current block or may be located far away depending on a prediction mode. Prediction modes in intra prediction may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 331 may also determine a prediction mode to be applied to the current block using a prediction mode applied to a neighboring block.
[0072] The inter prediction unit 332 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 332 may configure a motion information candidate list based on the neighboring blocks and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information regarding the prediction may include information indicating a mode of inter prediction for the current block.
[0073] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to a prediction signal (predicted block, predicted sample array) output from a prediction unit (including the inter prediction unit 332 and / or the intra prediction unit 331). When there is no residual for a current block, such as when a skip mode is applied, the predicted block may be used as a reconstructed block.
[0074] The adder 340 may be referred to as a reconstruction unit or a reconstruction block generator. The generated reconstruction signal may be used for intra prediction of a next block to be processed in a current picture, and may be output after filtering as described below, or may be used for inter prediction of a next picture.
[0075] Meanwhile, LMCS (luma mapping with chroma scaling) can be applied during the picture decoding process.
[0076] The filtering unit 350 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.
[0077] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332. The memory 360 may store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 331.
[0078] In this document, the embodiments described for the filtering unit 260, the inter prediction unit 221, and the intra prediction unit 222 of the encoding device 200 can also be applied identically or correspondingly to the filtering unit 350, the inter prediction unit 332, and the intra prediction unit 331 of the decoding device 300, respectively.
[0079] As described above, prediction is performed to improve compression efficiency when performing video coding. Through this, a predicted block including a predicted sample for a current block, which is a block to be coded, can be generated. Here, the predicted block includes a predicted sample in a spatial domain (or a pixel domain). The predicted block is derived in the same manner by an encoding device and a decoding device, and the encoding device can improve image coding efficiency by signaling information (residual information) about the residual between an original block and a predicted block, which is not an original sample value of the original block, to a decoding device. The decoding device can derive a residual block including a residual sample based on the residual information, combine the residual block with the predicted block to generate a reconstructed block including a reconstructed sample, and generate a reconstructed picture including the reconstructed block.
[0080] The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus may derive a residual block between an original block and a predicted block, perform a transform procedure on a residual sample (residual sample array) included in the residual block to derive a transform coefficient, and perform a quantization procedure on the transform coefficient to derive a quantized transform coefficient, thereby signaling the related residual information to the decoding apparatus (through a bitstream). Here, the residual information may include information such as value information, position information, transform technique, transform kernel, and quantization parameter of the quantized transform coefficient. The decoding apparatus may derive a residual sample (or a residual block) by performing an inverse quantization / inverse transform procedure based on the residual information. The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. In addition, the encoding apparatus may derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficient for reference for inter-prediction of a future picture, and generate a reconstructed picture based on the residual block.
[0081] Intra prediction may refer to a prediction that generates a prediction sample for a current block based on a reference sample in a picture (hereinafter, referred to as a current picture) to which the current block belongs. When intra prediction is applied to the current block, neighboring reference samples used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a sample adjacent to the left boundary of the current block having a size of nW×nH and a total of 2×nH samples adjacent to the bottom-left side, a sample adjacent to the top boundary of the current block and a total of 2×nW samples adjacent to the top-right side, and one sample adjacent to the top-left side of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0082] However, some of the neighboring reference samples of the current block may not yet be decoded or available. In this case, the decoder may substitute the unavailable samples as available samples to construct the neighboring reference samples to be used for prediction. Alternatively, the decoder may construct the neighboring reference samples to be used for prediction through interpolation of available samples.
[0083] When a neighboring reference sample is derived, (i) a predicted sample may be derived based on an average or an interpolation of neighboring reference samples of the current block, or (ii) a predicted sample may be derived based on a reference sample that exists in a specific (prediction) direction with respect to the predicted sample among the neighboring reference samples of the current block. The case (i) may be called a non-directional mode or a non-angular mode, and the case (ii) may be called a directional mode or an angular mode.
[0084] Also, a prediction sample may be generated by interpolating a first adjacent sample located in a prediction direction of an intra prediction mode of the current block and a second adjacent sample located in an opposite direction to the prediction direction based on a prediction sample of the current block among the adjacent reference samples. The above case may be called linear interpolation intra prediction (LIP). Also, a chroma prediction sample may be generated based on a luma sample using a linear model (LM). In this case, it may be called an LM mode or a CCLM (chroma component LM) mode.
[0085] Also, a temporary prediction sample of the current block may be derived based on the filtered neighboring reference sample, and a prediction sample of the current block may be derived by weighting the temporary prediction sample and at least one reference sample derived according to the intra prediction mode among existing neighboring reference samples, i.e., non-filtered neighboring reference samples. The above case may be called Position Dependent Intra Prediction (PDPC).
[0086] Also, the reference sample line with the highest prediction accuracy is selected from the adjacent multiple reference sample lines of the current block, a prediction sample is derived using a reference sample located in the prediction direction of the corresponding line, and the reference sample line used at this time is signaled to a decoding device, thereby performing intra prediction encoding. The above-mentioned case can be called multi-reference line intra prediction or MRL-based intra prediction.
[0087] Also, the current block may be divided into vertical or horizontal sub-partitions, intra prediction may be performed based on the same intra prediction mode, and adjacent reference samples may be derived and used in sub-partition units. That is, in this case, the intra prediction mode for the current block is applied to the sub-partitions in the same way, and adjacent reference samples may be derived and used in sub-partition units, thereby improving intra prediction performance in some cases. Such a prediction method may be called ISP (intra sub-partitions) based intra prediction.
[0088] The above-mentioned intra prediction methods may be called intra prediction types, distinguished from intra prediction modes. The intra prediction types may be called various terms, such as intra prediction techniques or additional intra prediction modes. For example, the intra prediction types (or additional intra prediction modes, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL, and ISP. A general intra prediction method other than the specific intra prediction types, such as the LIP, PDPC, MRL, and ISP, may be called a normal intra prediction type. The normal intra prediction type may be generally applied when the above-mentioned specific intra prediction types are not applied, and prediction may be performed based on the above-mentioned intra prediction modes. Meanwhile, post-processing filtering may be performed on the derived prediction samples, if necessary.
[0089] Specifically, the intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and an intra prediction mode / type-based prediction sample derivation step. If necessary, a post-processing filtering step may be performed on the derived prediction sample.
[0090] In addition, among the intra prediction modes, the non-directional mode (or non-angular mode) may include a DC mode based on an average of neighboring reference samples of the current block or a planar mode based on interpolation.
[0091] FIG. 4 illustrates an example of a general intra-prediction based video / image encoding method to which the embodiments of this document can be applied.
[0092] The method disclosed in Fig. 4 may be performed by the encoding device 200 of Fig. 2. Specifically, S400 may be performed by the intra prediction unit 222 of the encoding device 200, S410 may be performed by the subtraction unit 231 of the encoding device 200, and S420 may be performed by the entropy encoding unit 240 of the encoding device 200.
[0093] As shown in FIG. 4, the encoding apparatus may perform intra prediction on a current block (S400). The encoding apparatus may derive an intra prediction mode / type for the current block, derive surrounding reference samples for the current block, and generate a prediction sample in the current block based on the intra prediction mode / type and the surrounding reference samples. Here, the intra prediction mode / type determination, surrounding reference sample derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. The encoding apparatus may determine a mode / type to be applied to the current block from among a plurality of intra prediction modes / types. The encoding apparatus may compare RD costs for the intra prediction modes / types to determine an optimal intra prediction mode / type for the current block.
[0094] Meanwhile, the encoding apparatus may also perform a prediction sample filtering procedure. The prediction sample filtering may be referred to as post-filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
[0095] The encoding apparatus may generate residual samples for the current block based on the (filtered) predicted samples (S410). The encoding apparatus may derive the residual samples by comparing the predicted samples with the original samples of the current block based on phase.
[0096] The encoding device may encode image information including information on intra prediction (prediction information) and residual information on residual samples (S420). The prediction information may include intra prediction mode information and intra prediction type information. The encoding device may output the encoded image information in the form of a bitstream. The output bitstream may be transmitted to a decoding device via a storage medium or a network.
[0097] The residual information may include a residual coding syntax. The encoding device may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.
[0098] Meanwhile, as described above, the encoding apparatus can generate a reconstructed picture (including reconstructed samples and reconstructed blocks). To this end, the encoding apparatus can again inverse quantize / inverse transform the quantized transform coefficients to derive (modified) residual samples. The reason for again performing inverse quantization / inverse transform after transforming / quantizing the residual samples is to derive the same residual samples as those derived by the decoding apparatus, as described above. The encoding apparatus can generate a reconstructed block including reconstructed samples for the current block based on the prediction samples and the (modified) residual samples. A reconstructed picture for the current picture can be generated based on the reconstructed block. As described above, an in-loop filtering procedure, etc. can be further applied to the reconstructed picture.
[0099] FIG. 5 illustrates an example of a schematic intra-prediction based video / image decoding method to which the embodiments of this document can be applied.
[0100] The method disclosed in Fig. 5 may be performed by the decoding apparatus 300 of Fig. 3 described above. Specifically, S500 may be performed by the intra prediction unit 331 of the decoding apparatus 300. The procedure of decoding prediction information included in the bitstream in S500 to derive values of related syntax elements may be performed by the entropy decoding unit 310 of the decoding apparatus 300. S510 and S520 may be performed by the intra prediction unit 331 of the decoding apparatus 300, S530 may be performed by the residual processing unit 320 of the decoding apparatus 300, and S540 may be performed by the adder 340 of the decoding apparatus 300.
[0101] As shown in FIG. 5, the decoding device may perform operations corresponding to those performed by the encoding device. The decoding device may obtain prediction information and residual information from a bitstream. A residual sample for a current block may be derived based on the residual information. Specifically, the decoding device may derive transform coefficients by performing inverse quantization based on quantized transform coefficients derived based on the residual information, and may derive a residual sample for the current block by performing inverse transform on the transform coefficients.
[0102] Specifically, the decoding apparatus may derive an intra prediction mode / type for a current block based on received prediction information (intra prediction mode / type information) (S500). The decoding apparatus may derive surrounding reference samples for the current block (S510). The decoding apparatus may generate prediction samples in the current block based on the intra prediction mode / type and the surrounding reference samples (S520). In this case, the decoding apparatus may perform a prediction sample filtering procedure. The prediction sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
[0103] The decoding apparatus may generate a residual sample for the current block based on the received residual information (S530). The decoding apparatus may generate a reconstructed sample for the current block based on the prediction sample and the residual sample, and derive a reconstructed block including the reconstructed sample (S540). A reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
[0104] Here, the intra prediction mode information may include, for example, flag information (ex.intra_luma_mpm_flag) indicating whether a most probable mode (MPM) is applied to the current block or a remaining mode is applied. If MPM is applied to the current block, the prediction mode information may further include index information (ex.intra_luma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. Also, if MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex.intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). The decoding apparatus may determine the intra prediction mode of the current block based on the intra prediction mode information.
[0105] Also, the intra prediction type information may be realized in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (ex. intra_luma_ref_idx) indicating whether MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (ex. intra_subpartitions_mode_flag) indicating whether ISP is applied to the current block, ISP type information (ex. intra_subpartitions_split_flag) indicating a subpartition split type when ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Also, the intra prediction type information may include an MIP flag indicating whether MIP (matrix-based intra prediction) is applied to the current block.
[0106] The intra-prediction mode information and / or the intra-prediction type information may be encoded / decoded through the coding method described in this document. For example, the intra-prediction mode information and / or the intra-prediction type information may be encoded / decoded through entropy coding (e.g., CABAC, CAVLC).
[0107] 6 exemplarily illustrates an intra prediction procedure. The intra prediction procedure disclosed in FIG 6 may be applied to the intra prediction process (when an intra prediction mode is applied) disclosed in FIG 4 and FIG 5 above.
[0108] 6, as described above, the intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and an intra prediction execution (prediction sample generation) step. As described above, the intra prediction procedure may be performed in an encoding device and a decoding device. In this document, a coding device may include an encoding device and / or a decoding device.
[0109] The coding device may determine an intra-prediction mode / type (S600).
[0110] The encoding apparatus may determine an intra-prediction mode / type to be applied to a current block from among the various intra-prediction modes / types described above, and may generate prediction-related information. The prediction-related information may include intra-prediction mode information indicating an intra-prediction mode to be applied to the current block and / or intra-prediction type information indicating an intra-prediction type to be applied to the current block. The decoding apparatus may determine an intra-prediction mode / type to be applied to the current block based on the prediction-related information.
[0111] Here, the intra prediction mode information may include, for example, flag information (ex.intra_luma_mpm_flag) indicating whether a most probable mode (MPM) or a remaining mode (remaining mode) is applied to the current block. If MPM is applied to the current block, the prediction mode information may further include index information (ex.intra_luma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. Also, if MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex.intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). The decoding apparatus may determine the intra prediction mode of the current block based on the intra prediction mode information.
[0112] Also, the intra prediction type information may be realized in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (ex. intra_luma_ref_idx) indicating whether MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (ex. intra_subpartitions_mode_flag) indicating whether ISP is applied to the current block, ISP type information (ex. intra_subpartitions_split_flag) indicating a subpartition split type when ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Also, the intra prediction type information may include an MIP flag indicating whether MIP (matrix-based intra prediction) is applied to the current block.
[0113] For example, when intra prediction is applied, the intra prediction mode applied to the current block may be determined using the intra prediction mode of the surrounding block. For example, the coding apparatus may select one of the MPM candidates in the MPM (most probable mode) list derived based on the intra prediction mode of the surrounding block (ex. left and / or upper surrounding block) of the current block and / or additional candidate mode based on the received MPM index, or may select one of the remaining intra prediction modes not included in the MPM candidates (and the planar mode) based on MPM remainder information (remaining intra prediction mode information). The MPM list may be configured to include or not include the planar mode as a candidate. For example, if the MPM list includes the planar mode as a candidate, the MPM list may have six candidates, and if the MPM list does not include the planar mode as a candidate, the MPM list may have five candidates. If the MPM list does not include the planar mode as a candidate, a not planar flag (ex. intra_luma_not_planar_flag) indicating that the intra prediction mode of the current block is not a planar mode may be signaled. For example, the MPM flag is signaled first, and the MPM index and the not planar flag may be signaled if the value of the MPM flag is 1. Also, the MPM index may be signaled if the value of the not planar flag is 1. Here, the reason why the MPM list is configured not to include the planar mode as a candidate is that the planar mode is always considered as an MPM, rather than the planar mode being not an MPM, and therefore the flag (not planar flag) is signaled first to check whether or not it is a planar mode.
[0114] For example, whether the intra prediction mode applied to the current block is among the MPM candidates (and planar mode) or among the remaining mode may be indicated based on the MPM flag (ex.intra_luma_mpm_flag). A value of 1 of the MPM flag may indicate that the intra prediction mode for the current block is among the MPM candidates (and planar mode), and a value of 0 of the MPM flag may indicate that the intra prediction mode for the current block is not among the MPM candidates (and planar mode). A value of 0 of the not planar flag (ex.intra_luma_not_planar_flag) may indicate that the intra prediction mode for the current block is the planar mode, and a value of 1 of the not planar flag may indicate that the intra prediction mode for the current block is not the planar mode. The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may index the remaining intra prediction modes not included in the MPM candidates (and planar modes) among all intra prediction modes in order of prediction mode numbers, and may point to one of them. The intra prediction mode may be an intra prediction mode for a luma component (sample). Hereinafter, the intra prediction mode information may include at least one of an MPM flag (ex.intra_luma_mpm_flag), a not planar flag (ex.intra_luma_not_planar_flag), an MPM index (ex.mpm_idx or intra_luma_mpm_idx), and remaining intra prediction mode information (rem_intra_luma_pred_mode or intra_luma_mpm_remainder). In this document, the MPM list may be referred to by various terms such as an MPM candidate list, candModeList, etc.
[0115] If MIP (matrix-based intra prediction) is applied to the current block, a separate mpm flag for MIP (ex.intra_mip_mpm_flag), mpm index (ex.intra_mip_mpm_idx), remaining intra prediction mode information (ex.intra_mip_mpm_remainder) may be signaled, and the not planar flag may not be signaled.
[0116] In other words, in general, when an image is divided into blocks, a current block to be coded and neighboring blocks have similar image characteristics. Therefore, the current block and neighboring blocks are highly likely to have the same or similar intra-prediction modes. Therefore, an encoder can use the intra-prediction modes of neighboring blocks to encode the intra-prediction mode of the current block.
[0117] As described above, when the intra prediction mode applied to the current block is determined using the intra prediction modes of the neighboring blocks, the coding apparatus may configure a most probable modes (MPM) list for the current block. The MPM list may also be referred to as an MPM candidate list. Here, MPM may refer to a mode used to improve coding efficiency in consideration of similarity between the current block and neighboring blocks when performing intra prediction mode coding. As described above, the MPM list may be configured to include the planar mode or may be configured to exclude the planar mode. For example, if the MPM list includes the planar mode, the number of candidates in the MPM list may be six. And, if the MPM list does not include the planar mode, the number of candidates in the MPM list may be five.
[0118] The encoding apparatus may perform prediction based on various intra prediction modes and may determine an optimal intra prediction mode based on rate-distortion optimization (RDO) based on the prediction. In this case, the encoding apparatus may determine an optimal intra prediction mode using only MPM candidates and planar modes configured in the MPM list, or may determine an optimal intra prediction mode using not only the MPM candidates and planar modes configured in the MPM list but also the remaining intra prediction modes. Specifically, for example, if the intra prediction type of the current block is a specific type other than the normal intra prediction type (e.g., LIP, MRL, or ISP), the encoding apparatus may determine an optimal intra prediction mode by considering only MPM candidates and planar modes as intra prediction mode candidates for the current block. That is, in this case, the intra prediction mode for the current block may be determined only from among the MPM candidates and planar modes, and in this case, the mpm flag may not be encoded / signaled. In this case, the decoding apparatus may estimate that the mpm flag is 1 even if the mpm flag is not separately signaled.
[0119] Meanwhile, in general, if the intra prediction mode of the current block is not a planar mode but is one of the MPM candidates in the MPM list, the encoding device generates an mpm index (mpm idx) that indicates one of the MPM candidates. Or, if the intra prediction mode of the current block is not in the MPM list, the encoding device generates MPM remainder information (remaining intra prediction mode information) that indicates the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and planar mode). The MPM remainder information may include, for example, an intra_luma_mpm_remainder syntax element.
[0120] The decoding apparatus obtains intra prediction mode information from a bitstream. As described above, the intra prediction mode information may include at least one of an MPM flag, a not planar flag, an MPM index, and MPM remainder information (remaining intra prediction mode information). The decoding apparatus may configure an MPM list. The MPM list is configured in the same manner as the MPM list configured in the encoding apparatus. That is, the MPM list may include intra prediction modes of neighboring blocks, and may further include a specific intra prediction mode according to a predetermined method.
[0121] The decoding device may determine the intra prediction mode of the current block based on the MPM list and intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding device may derive a planar mode as the intra prediction mode of the current block (based on the not planar flag), or may derive a candidate indicated by the MPM index among the MPM candidates in the MPM list as the intra prediction mode of the current block. Here, the MPM candidate may represent only the candidates included in the MPM list, or may include not only the candidates included in the MPM list but also the planar mode that can be applied when the value of the MPM flag is 1.
[0122] As another example, if the value of the MPM flag is 0, the decoding device may derive the intra prediction mode pointed to by remaining intra prediction mode information (which may be referred to as mpm remainder information) from among the remaining intra prediction modes not included in the MPM list and planar mode as the intra prediction mode of the current block. Meanwhile, as yet another example, if the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP, etc.), the decoding device may derive the candidate pointed to by the MPM flag in the planar mode or MPM list as the intra prediction mode of the current block without parsing / decoding / checking the MPM flag.
[0123] The coding apparatus can derive neighboring reference samples for the current block (S610).
[0124] When intra prediction is applied to the current block, the neighboring reference samples used for the intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples adjacent to the left boundary and the bottom-left of the current block having a size of nW×nH, a total of 2×nW samples adjacent to the top boundary and the top-right of the current block, and one sample adjacent to the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple columns of upper neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block having a size of nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.
[0125] On the other hand, when MRL is applied (i.e., when the value of the MRL index is greater than 0), the neighboring reference samples can be located on the 1st or 2nd line, not the 0th line, adjacent to the current block on the left / top side, in which case the number of neighboring reference samples can be further increased.On the other hand, when ISP is applied, the neighboring reference samples can be derived on a sub-partition basis.
[0126] The coding apparatus may perform intra prediction on the current block to derive a prediction sample (S620).
[0127] The coding apparatus may derive a prediction sample based on an intra prediction mode / type and surrounding samples. The coding apparatus may derive a reference sample according to an intra prediction mode of the current block from among surrounding reference samples of the current block, and may derive a prediction sample of the current block based on the reference sample.
[0128] Meanwhile, when inter prediction is applied, the prediction unit of the encoding device / decoding device can derive a prediction sample by performing inter prediction on a block basis. Inter prediction can indicate a prediction derived in a manner that is dependent on data elements (e.g., sample values or motion information) of picture(s) other than the current picture. When inter prediction is applied to the current block, a predicted block (prediction sample array) for the current block can be derived based on a reference block (reference sample array) identified by a motion vector on a reference picture pointed to by a reference picture index. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information of the current block can be predicted on a block, sub-block, or sample basis based on the correlation of motion information between adjacent blocks and the current block. The motion information can include a motion vector and a reference picture index. In addition, the motion information can further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. When inter prediction is applied, the neighboring blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring blocks may be the same or different. The temporal neighboring blocks may be called collocated reference blocks, collocated CUs (colCUs), etc., and the reference picture including the temporal neighboring blocks may be called collocated pictures (colPic).For example, a motion information candidate list may be constructed based on neighboring blocks of the current block, and flag or index information indicating which candidate is selected (used) to derive a motion vector and / or a reference picture index of the current block may be signaled. Inter prediction may be performed based on various prediction modes, for example, in skip mode and merge mode, the motion information of the current block is the same as the motion information of the selected neighboring block. In skip mode, unlike merge mode, no residual signal is transmitted. In motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and a motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
[0129] The motion information may include L0 motion information and / or L1 motion information depending on the inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). A motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0, and a motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1. A prediction based on an L0 motion vector may be referred to as an L0 prediction, a prediction based on an L1 motion vector may be referred to as an L1 prediction, and a prediction based on both an L0 motion vector and an L1 motion vector may be referred to as a pairwise (Bi) prediction. Here, the L0 motion vector may indicate a motion vector associated with a reference picture list L0 (L0), and the L1 motion vector may indicate a motion vector associated with a reference picture list L1 (L1). The reference picture list L0 may include a picture that is earlier in the output order than the current picture as a reference picture, and the reference picture list L1 may include a picture that is later in the output order than the current picture. The earlier picture may be referred to as a forward (reference) picture, and the later picture may be referred to as a backward (reference) picture. The reference picture list L0 may further include pictures that are later in output order than the current picture as reference pictures. In this case, the previous picture may be indexed first in the reference picture list L0, and the later picture may be indexed next. The reference picture list L1 may further include pictures that are earlier in output order than the current picture as reference pictures. In this case, the later picture may be indexed first in the reference picture list L1, and the previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0130] FIG. 7 illustrates an example of a schematic inter-prediction based video / image encoding method to which the embodiments of this document can be applied.
[0131] The method disclosed in Fig. 7 may be performed by the encoding device 200 of Fig. 2. Specifically, S700 may be performed by the inter prediction unit 221 of the encoding device 200, S710 may be performed by the subtraction unit 231 of the encoding device 200, and S720 may be performed by the entropy encoding unit 240 of the encoding device 200.
[0132] As shown in FIG. 7, the encoding apparatus may perform inter prediction for a current block (S700). The encoding apparatus may derive an inter prediction mode and motion information of the current block and generate a prediction sample of the current block. Here, the inter prediction mode determination, motion information derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. For example, the inter prediction unit of the encoding apparatus may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and the prediction mode determination unit may determine a prediction mode for the current block, the motion information derivation unit may derive motion information of the current block, and the prediction sample derivation unit may derive a prediction sample of the current block. For example, the inter prediction unit of the encoding apparatus may search for a block similar to the current block within a certain region (search region) of a reference picture through motion estimation, and derive a reference block whose difference with the current block is minimum or equal to or less than a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The encoding device may determine which of the various prediction modes is applied to the current block, and may compare the RD cost for the various prediction modes to determine the optimal prediction mode for the current block.
[0133] For example, when a skip mode or a merge mode is applied to a current block, the encoding apparatus may construct a merge candidate list and derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion among reference blocks indicated by merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to a decoding apparatus. Motion information of the current block may be derived using motion information of the selected merge candidate.
[0134] As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus may construct an (A)MVP candidate list, and may use a motion vector of a selected MVP candidate among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block among the MVP candidates may become the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting the MVP from the motion vector of the current block, may be derived. In this case, information regarding the MVD may be signaled to the decoding apparatus. In addition, when the (A)MVP mode is applied, a value of a reference picture index may be configured as reference picture index information and separately signaled to the decoding apparatus.
[0135] The encoding apparatus may derive a residual sample based on the predicted sample (S710). The encoding apparatus may derive the residual sample through a comparison between an original sample of a current block and the predicted sample.
[0136] The encoding apparatus may encode image information including prediction information and residual information (S720). The encoding apparatus may output the encoded image information in the form of a bitstream. Here, the prediction information may include prediction mode information (ex. skip flag, merge flag or mode index, etc.) and information on motion information, which is information related to a prediction procedure. The information on the motion information may include candidate selection information (ex. merge index, mvp flag or mvp index), which is information for deriving a motion vector. In addition, the information on the motion information may include the above-mentioned information on the MVD and / or reference picture index information. In addition, the information on the motion information may include information indicating whether L0 prediction, L1 prediction, or bi-prediction is applied. The residual information is information on a residual sample. The residual information may include information on a quantized transform coefficient for the residual sample.
[0137] The output bitstream can be stored on a (digital) storage medium and transmitted to the decoding device, or can be transmitted to the decoding device via a network.
[0138] Meanwhile, as described above, the encoding apparatus can generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on a reference sample and a residual sample. This is because the encoding apparatus derives the same prediction result as that performed by the decoding apparatus, thereby improving coding efficiency. Therefore, the encoding apparatus can store the reconstructed picture (or reconstructed sample, reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure, etc. can be further applied to the reconstructed picture.
[0139] FIG. 8 illustrates an example of a schematic inter-prediction based video / image decoding method to which the embodiments of this document can be applied.
[0140] The method disclosed in FIG. 8 may be performed by the decoding apparatus 300 of FIG. 3 described above. Specifically, S800 may be performed by the inter prediction unit 332 of the decoding apparatus 300. The procedure of decoding prediction information included in the bitstream in S800 to derive values of related syntax elements may be performed by the entropy decoding unit 310 of the decoding apparatus 300. S810 and S820 may be performed by the inter prediction unit 332 of the decoding apparatus 300, S830 may be performed by the residual processing unit 320 of the decoding apparatus 300, and S840 may be performed by the adder 340 of the decoding apparatus 300.
[0141] As shown in Figure 8, the decoding apparatus may perform operations corresponding to those performed by the encoding apparatus, such as performing prediction on a current block based on received prediction information, and deriving a prediction sample.
[0142] Specifically, the decoding device may determine a prediction mode for a current block based on received prediction information (S800). The decoding device may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0143] For example, it may be determined whether a merge mode or an (A)MVP mode is applied to the current block based on the merge flag, or one of various inter prediction mode candidates may be selected based on the mode index. The inter prediction mode candidates may include skip mode, merge mode, and / or (A)MVP mode, or may include various inter prediction modes.
[0144] The decoding apparatus may derive motion information of the current block based on the determined inter prediction mode (S810). For example, when a skip mode or a merge mode is applied to the current block, the decoding apparatus may form a merge candidate list and select one merge candidate from among the merge candidates included in the merge candidate list. The selection may be made based on the above-mentioned selection information (merge index). Motion information of the selected merge candidate may be derived for the current block. The motion information of the selected merge candidate may be used as motion information of the current block.
[0145] As another example, when the (A)MVP mode is applied to the current block, the decoding apparatus may construct an (A)MVP candidate list, and may use a motion vector of a selected MVP candidate among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. The selection may be performed based on the above-mentioned selection information (mvp flag or mvp index). In this case, the MVD of the current block may be derived based on information on the MVD, and the motion vector of the current block may be derived based on the MVP and MVD of the current block. Also, the reference picture index of the current block may be derived based on reference picture index information. A picture pointed to by a reference picture index in a reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
[0146] On the other hand, the motion information of the current block may be derived without constructing a candidate list, and in this case, the motion information of the current block may be derived according to a procedure disclosed in a prediction mode described below. In this case, the candidate list construction as described above may be omitted.
[0147] The decoding apparatus may generate a prediction sample for the current block based on the motion information of the current block (S820). In this case, a reference picture may be derived based on a reference picture index of the current block, and the prediction sample for the current block may be derived using a sample of the reference block to which the motion vector of the current block points on the reference picture. In this case, as described below, a prediction sample filtering procedure may be further performed on all or some of the prediction samples of the current block, depending on the circumstances.
[0148] For example, the inter prediction unit of the decoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and may determine a prediction mode for a current block based on prediction mode information received by the prediction mode determination unit, derive motion information (such as a motion vector and / or a reference picture index) of the current block based on information regarding the motion information received by the motion information derivation unit, and derive a prediction sample of the current block by the prediction sample derivation unit.
[0149] The decoding apparatus may generate a residual sample for the current block based on the received residual information (S830). The decoding apparatus may generate a reconstructed sample for the current block based on the prediction sample and the residual sample, and may generate a reconstructed picture based on the reconstructed sample (S840). Thereafter, an in-loop filtering procedure or the like may be further applied to the reconstructed picture, as described above.
[0150] 9 exemplarily illustrates an inter prediction procedure. The inter prediction procedure disclosed in FIG 9 may be applied to the inter prediction process (when an inter prediction mode is applied) disclosed in FIG 7 and FIG 8.
[0151] 9, as described above, the inter prediction procedure may include an inter prediction mode determination step, a motion information derivation step according to the determined prediction mode, and a prediction execution step (prediction sample generation) step based on the derived motion information. As described above, the inter prediction procedure may be performed by an encoding device and a decoding device. In this document, a coding device may include an encoding device and / or a decoding device.
[0152] The coding apparatus may determine an inter prediction mode for a current block (S900). Various inter prediction modes may be used for prediction of a current block in a picture. For example, various modes such as merge mode, skip mode, motion vector prediction mode (MVP), affine mode, sub-block merge mode, merge with MVD mode (MMVD), etc. may be used. Decoder side motion vector refinement mode (DMVR), adaptive motion vector resolution mode (AMVR), Bi-prediction with CU-level weight (BCW), Bi-directional optical flow (BDOF), etc. may be used in addition to or instead of the accompanying mode. The affine mode may also be referred to as an affine motion prediction mode. The MVP mode may also be referred to as an advanced motion vector prediction mode (AMVP). In this document, some modes and / or motion information candidates derived by some modes may be included in one of the motion information related candidates of other modes. For example, an HMVP candidate can be added to a merge candidate in a merge / skip mode, or can be added as an MVP candidate in an MVP mode. When an HMVP candidate is used as a motion information candidate in a merge mode or a skip mode, the HMVP candidate can be referred to as an HMVP merge candidate.
[0153] Prediction mode information indicating an inter prediction mode of a current block may be signaled from an encoding apparatus to a decoding apparatus. The prediction mode information may be included in a bitstream and received by the decoding apparatus. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated through hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, a skip flag may be signaled to indicate whether or not a skip mode is applied, and if the skip mode is not applied, a merge flag may be signaled to indicate whether or not a merge mode is applied, and if the merge mode is not applied, an MVP mode may be indicated to be applied, or a flag for additional classification may be further signaled. The affine mode may be signaled in an independent mode, or may be signaled in a mode dependent on the merge mode or MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
[0154] The coding apparatus may derive motion information for the current block (S910). The motion information may be derived based on an inter prediction mode.
[0155] The coding apparatus may perform inter prediction using motion information of the current block. The encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search for a similar reference block with high correlation using an original block in an original picture for the current block in a fractional pixel unit within a determined search range in the reference picture, and may derive motion information through this. The similarity of the block may be derived based on a difference in sample values based on a phase. For example, the similarity of the block may be calculated based on the SAD between the current block (or a template of the current block) and the reference block (or a template of the reference block). In this case, the motion information may be derived based on the reference block with the smallest SAD in the search area. The derived motion information may be signaled to the decoding apparatus by various methods based on the inter prediction mode.
[0156] The coding apparatus may perform inter prediction based on motion information for the current block (S920). The coding apparatus may derive a predictive sample (or the like) for the current block based on the motion information. The current block including the predictive sample may be referred to as a predicted block.
[0157] Meanwhile, as described above, the quantization unit of the encoding device can apply quantization to the transform coefficients to derive the quantized transform coefficients, and the inverse quantization unit of the encoding device or the inverse quantization unit of the decoding device can apply inverse quantization to the quantized transform coefficients to derive the transform coefficients.
[0158] Generally, in video / image coding, the quantization rate can be changed, and the compression can be adjusted using the changed quantization rate. In terms of implementation, a quantization parameter (QP) can be used instead of directly using the quantization rate in consideration of complexity. For example, an integer value of the quantization parameter from 0 to 63 can be used, and each quantization parameter value can correspond to an actual quantization rate. The quantization parameter (QP) for a luma component (luma sample) can be set to 1000 s.o.f. Y ) and the quantization parameter (QP C ) can be set differently.
[0159] The quantization process takes the transform coefficients (C) as input and the quantization rate (Q step ), and based on this, a quantized transform coefficient (C`) can be obtained. At this time, taking into consideration the calculation complexity, the quantization rate is multiplied by a scale to convert it into an integer form, and a shift operation can be performed by a value corresponding to the scale value. A quantization scale can be derived based on the multiplication of the quantization rate and the scale value. That is, the quantization scale can be derived according to the QP. A quantization scale can also be applied to the transform coefficient (C), and based on this, a quantized transform coefficient (C`) can be derived.
[0160] The inverse quantization process applies a quantization rate (Q step ) and based on this, the reconstructed transform coefficients (C``) can be obtained. In this case, a level scale can be derived according to the quantization parameter, and the level scale can be applied to the quantized transform coefficients (C`) to derive the reconstructed transform coefficients (C``). The reconstructed transform coefficients (C``) are slightly different from the original transform coefficients (C) due to losses in the transform and / or quantization process. Therefore, the encoding device also performs inverse quantization like the decoding device.
[0161] Also, an adaptive frequency weighting quantization technique that adjusts the quantization strength according to the frequency may be applied. The adaptive frequency weighting quantization technique is a method of applying the quantization strength differently according to the frequency. The adaptive frequency weighting can apply the quantization strength differently according to each frequency using a predefined quantization scaling matrix. That is, the above-mentioned quantization / dequantization process can be further performed based on the quantization scaling matrix. For example, a different quantization scaling matrix can be used depending on the size of the current block and / or whether the prediction mode applied to the current block is inter prediction or intra prediction to generate a residual signal of the current block. The quantization scaling matrix may be referred to as a quantization matrix or a scaling matrix. The quantization scaling matrix may be predefined. Also, for frequency adaptive scaling, frequency-specific quantization scale information for the quantization scaling matrix may be configured / encoded in the encoding device and signaled to the decoding device. The frequency-specific quantization scale information may be referred to as quantization scaling information. The frequency-specific quantization scale information may include scaling list data (scaling_list_data). A (modified) quantization scaling matrix may be derived based on the scaling list data. The frequency-specific quantization scale information may also include present flag information indicating whether scaling list data is present. Alternatively, when scaling list data is signaled at a higher level (e.g., SPS), information indicating whether the scaling list data is modified at a lower level (e.g., PPS or tile group header, etc.) may further be included.
[0162] As mentioned above, the scaling list data can be signaled to indicate the scaling matrix used for quantization / dequantization (frequency-based quantization).
[0163] Support for signaling of default and user-defined scaling matrices exists in the HEVC standard and has now been adopted into the VVC standard. However, in the case of the VVC standard, additional support for signaling of the following features has been integrated:
[0164] -Three modes for scaling matrix: OFF, DEFAULT, USER_DEFINED
[0165] -Larger size range for blocks (4x4 to 64x64 for luma, 2x2 to 32x32 for chroma)
[0166] -Triangle Transformation Blocks (TBs)
[0167] -Dependent quantization
[0168] -Multiple Transform Selection (MTS)
[0169] -Large transforms with zeroing-out high frequency coefficients
[0170] -Intra sub-block partitioning (ISP)
[0171] - Intra Block Copy (IBC) (also called current picture referencing (CPR))
[0172] -DEFAULT scaling matrix for all TB sizes, default value is 16
[0173] It should be noted that the scaling matrix should not be applied to the Transform Skip (TS) and Secondary Transform (ST) for all sizes.
[0174] In the following, a High Level Syntax (HSL) structure for supporting a scaling list in the VVC standard will be described in detail. First, a flag can be signaled via a Sequence Parameter Set (SPS) to indicate that a scaling list is available for the current coded video sequence (CVS) being decoded. Then, if the flag is available, an additional flag can be parsed in the SPS to indicate whether specific data exists in the scaling list. This can be shown in Table 1.
[0175] Table 1 is excerpted from the SPS to illustrate the scaling list for CVS.
[0176] [Table 1]
[0177] The semantics of the syntax elements included in the SPS syntax of Table 1 can be shown as in Table 2 below.
[0178] [Table 2]
[0179] Referring to Tables 1 and 2, scaling_list_enabled_flag can be signaled from the SPS. For example, if the value of scaling_list_enabled_flag is 1, it can indicate that the scaling list is used in the scaling process for the transform coefficients, and if the value of scaling_list_enabled_flag is 0, it can indicate that the scaling list is not used in the scaling process for the transform coefficients. In this case, if the value of scaling_list_enabled_flag is 1, sps_scaling_list_data_present_flag can be further signaled from the SPS. For example, if the value of sps_scaling_list_data_present_flag is 1, it can indicate that the scaling_list_data() syntax structure is present in the SPS, and if the value of sps_scaling_list_data_present_flag is 0, it can indicate that the scaling_list_data() syntax structure is not present in the SPS. If sps_scaling_list_data_present_flag is not present, the value of sps_scaling_list_data_present_flag can be inferred to 0.
[0180] Also, a flag (e.g., pps_scaling_list_data_present_flag) can be parsed first in the Picture Parameter Set (PPS). If this flag is available, scaling_list_data() can be parsed in the PPS. If scaling_list_data() exists first in the SPS and is parsed later in the PPS, the data in the PPS can take precedence over the data in the SPS. Table 3 below is excerpted from the PPS to explain the scaling list data.
[0181] [Table 3]
[0182] The semantics of the syntax elements included in the PPS syntax of Table 3 can be shown as in Table 4 below.
[0183] [Table 4]
[0184] Referring to Tables 3 and 4, pps_scaling_list_data_present_flag can be signaled from the PPS. For example, if the value of pps_scaling_list_data_present_flag is 1, it can indicate that the scaling list data used for the picture that references the PPS is derived based on the scaling list specified by the active SPS and the scaling list specified by the PPS. If the value of pps_scaling_list_data_present_flag is 0, it can indicate that the scaling list data used for the picture that references the PPS is inferred to be the same as the scaling list specified by the active SPS. In this case, if the value of scaling_list_enabled_flag is 0, the value of pps_scaling_list_data_present_flag must be 0. If the value of scaling_list_enabled_flag is 1, the value of sps_scaling_list_data_present_flag is 0, and the value of pps_scaling_list_data_present_flag is 0, the default scaling list data can be used to derive the scaling factor array as described in the scaling list data semantics.
[0185] Scaling lists can be defined in the VVC standard for the following quantization matrix sizes, which can be seen in Table 5 below. The range of support for quantization matrices has been extended to include 2×2 and 64×64 in the HEVC standard, with 4×4, 8×8, 16×16, and 32×32.
[0186] [Table 5]
[0187] Table 5 defines sizeId for all quantization matrix sizes used. Using the above combinations, matrixIds can be assigned for different combinations of sizeId, coding unit prediction mode (CuPredMode), and color components. Here, CuPredModes that can be considered are inter, intra, and IBC (Intra Block Copy). Intra mode and IBC mode can be treated the same. Therefore, the same matrixId(s) can be shared for a given color component. Here, color components that can be considered are luma (Luma(Y)) and two color components (Cb and Cr). The assigned matrixIds can be shown as shown in Table 6 below.
[0188] Table 6 shows the matrixId by sizeId, prediction mode, and color component.
[0189] [Table 6]
[0190] Table 7 below shows an example syntax structure for scaling list data (eg, scaling_list_data()).
[0191] [Table 7]
[0192] The semantics of the syntax elements included in the syntax of Table 7 can be shown as in Table 8 below.
[0193] [Table 8-1]
[0194] [Table 8-2]
[0195] Referring to Tables 7 and 8, to extract the scaling list data (e.g., scaling_list_data()), for all sizeIds from 1 to 6 and matrixIds from 0 to 5, the scaling list data can be applied to the 2x2 chroma components and the 64x64 luma components. Then, a flag (e.g., scaling_list_pred_mode_flag) can be parsed to indicate whether the values of the scaling list are the same as the values of the reference scaling list. The reference scaling list is indicated by scaling_list_pred_matrix_id_delta[sizeId][matrixId]. However, if scaling_list_pred_mode_flag[sizeId][matrixId] is 1, the scaling list data can be explicitly signaled. If scaling_list_pred_matrix_id_delta is 0, the DEFAULT mode with default values can be used as shown in Tables 9 to 12. For other values of scaling_list_pred_matrix_id_delta, refMatrixId can be determined first as shown in the semantics of Table 8.
[0196] In explicit signaling, i.e., in USER_DEFINED mode, the maximum number of coefficients to be signaled can be determined in advance. For quantization block sizes 2x2, 4x4, and 8x8, all coefficients can be signaled. For sizes larger than 8x8, i.e., 16x16, 32x32, and 64x64, only 64 coefficients can be signaled. That is, an 8x8 base matrix is signaled, and the remaining coefficients can be upsampled from the base matrix.
[0197] Table 9 below is an example showing the default values for ScalingList[1][matrixId][i] (i=0..3).
[0198] [Table 9]
[0199] Table 10 below is an example showing the default values for ScalingList[2][matrixId][i] (i=0..15).
[0200] [Table 10]
[0201] Table 11 below is an example showing the default values for ScalingList[3..5][matrixId][i] (i=0..63).
[0202] [Table 11]
[0203] Table 12 below is an example showing the default values for ScalingList[6][matrixId][i] (i=0..63).
[0204] [Table 12]
[0205] As described above, the default scaling list data can be used to derive a scaling factor.
[0206] The scaling factor ScalingFactor[sizeId][sizeId][matrixId][x][y] of the 5D array (where x, y = 0..(1<<sizeId)-1) can indicate an array of scaling factors according to the variable sizeId shown in Table 5 above and the variable matrixId shown in Table 6 above.
[0207] The following Table 13 shows an example of deriving a scaling factor according to a quantization matrix size based on the default scaling list described above.
[0208]
Table 13-1
[0209]
Table 13-2
[0210] For a quantization matrix of rectangular size, the scaling factor ScalingFactor[sizeIdW][sizeIdH][matrixId][x][y] of the 5D array (where x = 0..(1<<sizeIdW)-1, y = 0..(1<<sizeIdH)-1, sizeIdW!=sizeIdH) can indicate an array of scaling factors according to the variables sizeIdW and sizeIdH shown in Table 15 below, and can be derived as shown in Table 14 below.
[0211]
Table 14
[0212] The quantization matrix of the quadrilateral size must be set to zero for samples that satisfy the following conditions.
[0213] -x > 32
[0214] -y > 32
[0215] - The decoded TU is not coded in the default transform mode, (1 << sizeIdW) == 32 and x > 16
[0216] - The decoded TU is not coded in the default transform mode, (1 << sizeIdH) == 32 and y > 16
[0217] The following Table 15 is an example showing sizeIdW and sizeIdH according to the quantization matrix size.
[0218]
Table 15
[0219] Also, as an example, the above-mentioned scaling list data (e.g., scaling_list_data()) can be described based on the syntax structure as shown in the following Table 16 and the semantics as shown in the following Table 17. As described above based on the syntax elements included in the scaling list data (e.g., scaling_list_data()) disclosed in Table 16 and Table 17, the scaling list, the scaling matrix, the scaling factor, etc. can be derived, and this process is the same as or similar procedures to those applied in the above-mentioned Tables 5 to 15 can be applied.
[0220]
Table 16
[0221]
Table 17-1
[0222] [Table 17-2]
[0223] In the following, this document proposes a method for efficiently signaling scaling list data when applying an adaptive frequency-specific weighting technique in the quantization / dequantization process.
[0224] FIG. 10 shows an exemplary hierarchical structure for coded images / video.
[0225] Referring to FIG. 10, the coded image / video is divided into a VCL (video coding layer) that handles the image / video decoding process and the video itself, a lower system that transmits and stores the coded information, and a NAL (network abstraction layer) that exists between the VCL and the lower system and is responsible for network adaptation functions.
[0226] In VCL, it is possible to generate VCL data including compressed image data (slice data), or to generate parameter sets including information such as a Picture Parameter Set (PPS), a Sequence Parameter Set (SPS), and a Video Parameter Set (VPS), or a Supplemental Enhancement Information (SEI) message that is additionally required for the image decoding process.
[0227] In NAL, NAL units can be generated by adding header information (NAL unit header) to RBSP (Raw Byte Sequence Payload) generated in VCL. In this case, RBSP means slice data, parameter set, SEI message, etc. generated in VCL. The NAL unit header can include NAL unit type information identified by the RBSP data included in the NAL unit.
[0228] In addition, NAL units can be classified into VCL NAL units and non-VCL NAL units according to the RBSP generated in the VCL. The VCL NAL unit can refer to a NAL unit that includes information on an image (slice data), and the non-VCL NAL unit can refer to a NAL unit that includes information required for decoding an image (parameter set or SEI message).
[0229] The VCL NAL unit and the non-VCL NAL unit can be transmitted over a network with header information according to the data standard of the lower system. For example, the NAL unit can be transformed into a data format of a predetermined standard such as H.266 / VVC file format, RTP (Real-time Transport Protocol), TS (Transport Stream), etc., and transmitted over various networks.
[0230] As mentioned above, the NAL unit type of a NAL unit can be identified by the RBSP data structure included in the NAL unit, and information about such NAL unit type can be stored and signaled in the NAL unit header.
[0231] For example, NAL units can be broadly classified into VCL NAL unit types and non-VCL NAL unit types depending on whether the NAL unit includes information on an image (slice data). The VCL NAL unit types can be classified according to the nature and type of pictures included in the VCL NAL unit, and the non-VCL NAL unit types can be classified according to the type of parameter set.
[0232] The following is an example of a NAL unit type specified by the type of parameter set that the Non-VCL NAL unit type includes.
[0233] -APS (Adaptation Parameter Set) NAL unit: Type for NAL units containing APS
[0234] -DPS (Decoding Parameter Set) NAL unit: Type for NAL units containing DPS
[0235] -VPS (Video Parameter Set) NAL unit: Type for NAL units containing VPS
[0236] -SPS (Sequence Parameter Set) NAL unit: Type for NAL units containing SPS
[0237] -PPS (Picture Parameter Set) NAL unit: Type for NAL units containing PPS
[0238] -PH (Picture header) NAL unit: Type for NAL unit containing PH
[0239] The above-mentioned NAL unit type has syntax information for the NAL unit type, and the syntax information can be stored in a NAL unit header and signaled. For example, the syntax information can be nal_unit_type, and the NAL unit type can be specified by the nal_unit_type value.
[0240] Meanwhile, as described above, one picture may include multiple slices, and one slice may include a slice header and slice data. In this case, one picture header may be added to multiple slices (slice header and slice data set) in one picture. The picture header (picture header syntax) may include information / parameters commonly applicable to pictures. In this document, a tile group may be mixed with or substituted for a slice or a picture. In this document, a tile group header may be mixed with or substituted for a slice header or a picture header.
[0241] A slice header (slice header syntax) may include information / parameters commonly applicable to slices. An APS (APS syntax) or a PPS (PPS syntax) may include information / parameters commonly applicable to one or more slices or pictures. An SPS (SPS syntax) may include information / parameters commonly applicable to one or more sequences. A VPS (VPS syntax) may include information / parameters commonly applicable to multiple layers. A DPS (DPS syntax) may include information / parameters commonly applicable to video in general. A DPS may include information / parameters related to concatenation of coded video sequence (CVS). In this document, a high level syntax (HLS) may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.
[0242] In this document, image / video information encoded from an encoding device to a decoding device and signaled in the form of a bitstream may include information related to partitioning in a picture, intra / inter prediction information, residual information, in-loop filtering information, etc., as well as information included in a slice header, information included in a picture header, information included in an APS, information included in a PPS, information included in an SPS, information included in a VPS, and / or information included in a DPS. In addition, the image / video information may further include information of a NAL unit header.
[0243] Meanwhile, the Adaptation Parameter Set (APS) is used in the VVC standard to transmit information for the Adaptive Loop Filter (ALF) and Luma Mapping with Chroma Scaling (LMCS) procedures. The APS also has an extensible structure so that it can be used to transmit other data structures (i.e., other syntax structures). Therefore, this document proposes a method for parsing / signaling the scaling list data used for frequency-specific weighting via the APS.
[0244] As described above, the scaling list data is quantization scale information for frequency-specific weighting that can be applied in the process of quantization / dequantization, and is a list that associates scale factors with each frequency index.
[0245] As one embodiment, Table 18 below shows an example of an adaptation parameter set (APS) structure used to transmit scaling list data.
[0246] [Table 18]
[0247] The semantics of the syntax elements included in the APS syntax of Table 18 can be shown as shown in Table 19 below.
[0248] [Table 19]
[0249] Referring to Tables 18 and 19, the adaptation_parameter_set_id syntax element may be parsed / signaled in the APS. The adaptation_parameter_set_id provides an identifier for the APS for reference of other syntax elements. That is, the APS may be identified based on the adaptation_parameter_set_id syntax element. The adaptation_parameter_set_id syntax element may be referred to as APS ID information. The APS may be shared between pictures and may be different for different tile groups in a picture.
[0250] In addition, the aps_params_type syntax element may be parsed / signaled in the APS. The aps_params_type may indicate the type of APS parameters transmitted in the APS as shown in Table 18 below. The aps_params_type syntax element may be referred to as APS parameter type information or APS type information.
[0251] For example, Table 20 below is an example showing types of APS parameters that can be transmitted via an APS, and each APS parameter type can be indicated corresponding to a value of aps_params_type.
[0252] [Table 20]
[0253] Referring to Table 20, aps_params_type is a syntax element for classifying the type of the APS. When the value of aps_params_type is 0, the APS type is ALF_APS, and the APS can carry ALF data, which can include ALF parameters for deriving a filter / filter coefficient. When the value of aps_params_type is 1, the APS type is LMCS_APS, and the APS can carry LMCS data, which can include LMCS parameters for deriving an LMCS model / bin / mapping index. When the value of aps_params_type is 2, the APS type is SCALING_APS, and the APS can carry SCALING list data, which can include scaling list data parameters for deriving a frequency-based quantization scaling matrix / scaling factor / scaling list value.
[0254] For example, as shown in Table 18, the aps_params_type syntax element may be parsed / signaled in APS, and in this case, if the value of aps_params_type indicates 0 (i.e., if aps_params_type indicates ALF_APS), ALF data (i.e., alf_data()) may be parsed / signaled. Alternatively, if the value of aps_params_type indicates 1 (i.e., if aps_params_type indicates LMCS_APS), LMCS data (i.e., lmcs_data()) may be parsed / signaled. Alternatively, if the value of aps_params_type indicates 2 (i.e., if aps_params_type indicates SCALING_APS), scaling list data (i.e., scaling_list_data()) may be parsed / signaled.
[0255] Also, referring to Tables 18 and 19, the aps_extension_flag syntax element can be parsed / signaled in the APS. The aps_extension_flag can indicate whether the APS extension data flag (aps_extension_data_flag) syntax element is present. The aps_extension_flag can be used, for example, to provide an extension point for a later version of the VVC standard. The aps_extension_flag syntax element can be referred to as an APS extension flag. For example, if the value of the aps_extension_flag is 0, it can indicate that the APS extension data flag (aps_extension_data_flag) is not present in the APS RBSP syntax structure. Alternatively, if the value of the aps_extension_flag is 1, it can indicate that the APS extension data flag (aps_extension_data_flag) is present in the APS RBSP syntax structure.
[0256] The aps_extension_data_flag syntax element may be parsed / signaled based on the aps_extension_flag syntax element. The aps_extension_data_flag syntax element may be referred to as an APS extension data flag. For example, if the value of aps_extension_flag is 1, aps_extension_data_flag may be parsed / signaled, and in this case, aps_extension_data_flag may have any value.
[0257] As described above, according to an embodiment of this document, the scaling list data can be efficiently carried by allocating a data type (e.g., SCALING_APS) to indicate the scaling list data and parsing / signaling a syntax element (e.g., aps_params_type) indicating the data type. That is, according to an embodiment of this document, the APS structure that integrates the scaling list data can be used.
[0258] Meanwhile, in the current VVC standard, the use of scaling list data (i.e., scaling_list_data()) can first be indicated based on the presence of a flag (i.e., sps_scaling_list_enabled_flag) indicating the availability of scaling list data in the SPS (Sequence Parameter Set). If the flag (i.e., sps_scaling_list_enabled_flag) is enabled (i.e., 1 or true indicating that scaling list data is available), another flag (i.e., sps_scaling_list_data_present_flag) can be parsed. Also, if sps_scaling_list_data_present_flag is enabled (i.e., 1 or true indicating that scaling list data exists in the SPS), the scaling list data (i.e., scaling_list_data()) can be parsed. That is, in the current VVC standard, scaling list data is signaled in the SPS. In this case, since the SPS enables session negotiation and is typically transmitted out-of-band, it can be used during the decoding process and there is no need to transmit scaling list data with information related to determining the scaling factors of the transform blocks. If the decoder transmits scaling list data in the SPS, the decoder must reserve a significant amount of memory to store the information obtained from the scaling list data and must maintain the information until it is used in transform block decoding. Thus, such a process is unnecessary at the SPS level and it is more effective to parse / signal the scaling list data at a lower level. For this reason, this document proposes a hierarchical structure to effectively parse / signal the scaling list data.
[0259] In one embodiment, scaling list data is not parsed / signaled from a higher level syntax, SPS, but rather parsed / signaled in a lower level syntax, PPS, tile group header, slice header, and / or other suitable header.
[0260] For example, the SPS syntax can be modified as shown in Table 21 below: Table 21 below shows an example of SPS syntax for describing a scaling list for a CVS.
[0261] [Table 21]
[0262] The semantics of the syntax elements included in the SPS syntax in Table 21 above can be shown as in Table 22 below.
[0263] [Table 22]
[0264] Referring to Tables 21 and 22, the scaling_list_enabled_flag syntax element can be parsed / signaled in the SPS. The scaling_list_enabled_flag syntax element can indicate whether a scaling list is available based on whether its value is 0 or 1. For example, if the value of scaling_list_enabled_flag is 1, it can indicate that the scaling list is used in the scaling process for the transform coefficients, and if the value of scaling_list_enabled_flag is 0, it can indicate that the scaling list is not used in the scaling process for the transform coefficients.
[0265] That is, the scaling_list_enabled_flag syntax element can be referred to as a scaling list availability flag and can be signaled at the SPS (or SPS level). That is, based on the value of scaling_list_enabled_flag signaled at the SPS level, it can be determined that a scaling list is essentially available for a picture in a CVS that references the SPS. Then, an additional availability flag can be signaled at a level lower than the SPS (e.g., a PPS, a tile group header, a slice header, and / or other appropriate header) to obtain a scaling list.
[0266] Also, the sps_scaling_list_data_present_flag syntax element may not be parsed / signaled in the SPS. That is, by removing the sps_scaling_list_data_present_flag syntax element in the SPS, this flag information may not be parsed / signaled. The sps_scaling_list_data_present_flag syntax element is flag information indicating whether or not the syntax structure of the scaling list data exists in the SPS, and the scaling list data specified by the SPS may be parsed / signaled according to this flag information. However, by removing the sps_scaling_list_data_present_flag syntax element, the scaling list data may not be parsed / signaled at the SPS level.
[0267] As described above, according to an embodiment of this document, the SPS level may be configured to explicitly signal only the scaling list availability flag (scaling_list_enabled_flag) without directly signaling the scaling list (scaling_list_data()). Thereafter, the scaling list (scaling_list_data()) may be parsed individually in the lower level syntax based on the availability flag (scaling_list_enabled_flag) in the SPS. Therefore, according to an embodiment of this document, the scaling list data may be parsed / signaled according to a hierarchical structure, thereby improving coding efficiency.
[0268] Meanwhile, the existence and use of scaling list data is conditioned on the existence of a tool enabling flag. Here, the tool enabling flag is information indicating whether a corresponding tool is enabled, and may include, for example, a scaling_list_enabled_flag syntax element. That is, the scaling_list_enabled_flag syntax element can be used to indicate whether the scaling list is enabled by indicating whether the scaling list data is available. However, this tool should have a syntactic constraint for the decoder. That is, there should be a constraint flag that informs the decoder that this tool is not currently being used to decode a coded video sequence (CVS). Therefore, this document proposes a method for applying a constraint flag to the scaling list data.
[0269] As one embodiment, Table 23 below shows an example of syntax (eg, general restriction information syntax) for signaling scaling list data using restriction flags.
[0270] [Table 23]
[0271] The semantics of the syntax elements included in the syntax of Table 23 can be shown as in Table 22 below.
[0272] [Table 24]
[0273] Referring to Tables 23 and 24, the constraint flag can be parsed / signaled via general_constraint_info(), which is referred to as the general constraint information field or information on the constraint flag. For example, the no_scaling_list_constraint_flag syntax element can be used as the constraint flag. Here, the constraint flag can be used to specify conformance bitstream properties. For example, if the value of the no_scaling_list_constraint_flag syntax element is 1, it indicates a bitstream conformance requirement where scaling_list_enabled_flag is set to 0, and if the value of the no_scaling_list_constraint_flag syntax element is 0, it can indicate that there is no constraint.
[0274] Meanwhile, as described above, according to an embodiment of this document, the scaling list data may be transmitted through a hierarchical structure. Accordingly, this document proposes a structure of scaling list data that may be parsed / signaled through a slice header. Here, the slice header may be referred to as a tile group header, or may be mixed with or substituted for a picture header.
[0275] As one embodiment, Table 25 below shows an example of slice header syntax for signaling scaling list data.
[0276] [Table 25]
[0277] The semantics of the syntax elements included in the slice header syntax of Table 25 can be shown as in Table 26 below.
[0278] [Table 26]
[0279] Referring to Tables 25 and 26, the slice_pic_parameter_set_id syntax element may be parsed / signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in the slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be within the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced in the slice.
[0280] Also, a slice_scaling_list_enabled_flag syntax element may be parsed / signaled in the slice header. The slice_scaling_list_enabled_flag syntax element may indicate whether a scaling list is currently available in the slice. For example, if the value of slice_scaling_list_enabled_flag is 1, it may indicate that a scaling list is currently available in the slice, and if the value of slice_scaling_list_enabled_flag is 0, it may indicate that a scaling list is not currently available in the slice. Alternatively, if slice_scaling_list_enabled_flag is not present in the slice header, its value may be inferred to 0.
[0281] In this case, the slice_scaling_list_enabled_flag syntax element can be parsed or not based on the scaling_list_enabled_flag syntax element signaled in the upper level syntax (i.e., SPS). For example, if the value of the scaling_list_enabled_flag signaled in the SPS is 1 (i.e., if it is determined that the scaling list data is available at the upper level), the slice_scaling_list_enabled_flag can be parsed in the slice header to determine whether to perform a scaling process using the scaling list in the slice.
[0282] Also, a slice_scaling_list_aps_id syntax element may be parsed / signaled in the slice header. The slice_scaling_list_aps_id syntax element may indicate an identifier for an APS referenced in the slice. That is, the slice_scaling_list_aps_id syntax element may indicate ID information (adaptation_parameter_set_id) of an APS containing scaling list data referenced in the slice. Meanwhile, the TemporalId (i.e., TemporalID) of an APS NAL unit (i.e., an APS NAL unit containing scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id must be smaller than or equal to the TemporalId (i.e., TemporalID) of the slice NAL unit being coded.
[0283] In addition, whether or not the slice_scaling_list_aps_id syntax element can be parsed can be determined based on the slice_scaling_list_enabled_flag syntax element. For example, if the value of slice_scaling_list_aps_id is 1 (i.e., if it is determined that the scaling list is available in the slice header), slice_scaling_list_aps_id can be parsed. Thereafter, scaling list data can be obtained from the APS indicated by the parsed slice_scaling_list_aps_id.
[0284] In addition, when multiple SCALING DATA APS (multiple APS including scaling list data) having the same APS ID information (adaptation_parameter_set_id) value are referenced by two or more slices in the same picture, the multiple SCALING DATA APS having the same APS ID information (adaptation_parameter_set_id) value must contain the same content.
[0285] Furthermore, if the aforementioned syntax elements are present, the values of each of the slice header syntax elements slice_pic_parameter_set_id, slice_pic_order_cnt_lsb, and slice_temporal_mvp_enabled_flag must be the same in all slice headers in the picture being coded.
[0286] As described above, according to an embodiment of this document, a hierarchical structure can be used to efficiently signal scaling list data. That is, an availability flag (e.g., scaling_list_enabled_flag) indicating whether scaling list data is available at a higher level (SPS syntax) is first signaled, and then an additional availability flag (e.g., slice_scaling_list_enabled_flag) can be signaled at a lower level (e.g., slice header, picture header, etc.) to determine whether scaling list data is used at each lower level. Also, APS ID information (e.g., slice_scaling_list_aps_id) referenced by the slice or tile group can be signaled via a lower level (e.g., slice header, picture header, etc.), and the scaling list data can be derived from the APS identified by the APS ID information.
[0287] In addition, this document can be applied to signal scaling list data according to a hierarchical structure as proposed in Tables 23 and 24 above, or the scaling list data can be transmitted via a slice header structure as shown in Table 25 below.
[0288] As an embodiment, Table 27 below shows an example of slice header syntax for signaling scaling list data, where the slice header may also be referred to as a tile group header, or may be mixed with or substituted for the picture header.
[0289] [Table 27]
[0290] The semantics of the syntax elements included in the slice header syntax of Table 27 can be shown as in Table 28 below.
[0291] [Table 28]
[0292] Referring to Tables 27 and 28, the slice_pic_parameter_set_id syntax element may be parsed / signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in the slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be within the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced in the slice.
[0293] Also, a slice_scaling_list_aps_id syntax element may be parsed / signaled in the slice header. The slice_scaling_list_aps_id syntax element may indicate an identifier for an APS referenced in the slice. That is, the slice_scaling_list_aps_id syntax element may indicate ID information (adaptation_parameter_set_id) of an APS including scaling list data referenced in the slice. As an example, the TemporalId (i.e., TemporalID) of an APS NAL unit (i.e., an APS NAL unit including scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id must be smaller than or equal to the TemporalId (i.e., TemporalID) of the slice NAL unit to be coded.
[0294] In this case, whether or not the slice_scaling_list_aps_id syntax element is parsed can be determined based on the scaling_list_enabled_flag syntax element signaled in the upper level syntax (i.e., SPS). For example, if the value of the scaling_list_enabled_flag signaled in the SPS is 1 (i.e., if it is determined that the scaling list data is available at the upper level), slice_scaling_list_aps_id can be parsed in the slice header. Thereafter, the scaling list data can be obtained from the APS indicated by the parsed slice_scaling_list_aps_id.
[0295] That is, according to this embodiment, an APS ID including scaling list data can be parsed when a corresponding flag (e.g., scaling_list_enabled_flag) in the SPS is enabled, and therefore, as shown in Table 25 above, APS ID (e.g., slice_scaling_list_aps_id) information including scaling list data referenced at a corresponding lower level (e.g., slice header or picture header) can be parsed based on the scaling_list_enabled_flag syntax element signaled in the higher level syntax (i.e., SPS).
[0296] This document also proposes a method for using multiple APSs to signal scaling list data. In the following, a method for efficiently signaling multiple APS IDs including scaling list data according to one embodiment of this document is described. This method is useful during bitstream merge.
[0297] As an embodiment, Table 29 below shows an example of slice header syntax for signaling scaling list data using multiple APS, where the slice header may also be referred to as a tile group header or may be mixed with or substituted for the picture header.
[0298] [Table 29]
[0299] The semantics of the syntax elements included in the slice header syntax of Table 29 can be shown as shown in Table 30 below.
[0300] [Table 30]
[0301] Referring to Tables 29 and 30, the slice_pic_parameter_set_id syntax element may be parsed / signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in the slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be within the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced in the slice.
[0302] Also, a slice_scaling_list_enabled_flag syntax element may be parsed / signaled in the slice header. The slice_scaling_list_enabled_flag syntax element may indicate whether a scaling list is currently available in the slice. For example, if the value of slice_scaling_list_enabled_flag is 1, it may indicate that a scaling list is currently available in the slice, and if the value of slice_scaling_list_enabled_flag is 0, it may indicate that a scaling list is not currently available in the slice. Alternatively, if slice_scaling_list_enabled_flag is not present in the slice header, its value may be inferred to 0.
[0303] In this case, the slice_scaling_list_enabled_flag syntax element can be parsed or not based on the scaling_list_enabled_flag syntax element signaled in the upper level syntax (i.e., SPS). For example, if the value of the scaling_list_enabled_flag signaled in the SPS is 1 (i.e., if it is determined that the scaling list data is available at the upper level), the slice_scaling_list_enabled_flag can be parsed in the slice header to determine whether to perform a scaling process using the scaling list in the slice.
[0304] Also, a num_scaling_list_aps_ids_minus1 syntax element can be parsed / signaled in the slice header. The num_scaling_list_aps_ids_minus1 syntax element is information for indicating the number of APSs including scaling list data referenced by the slice. For example, the value of the num_scaling_list_aps_ids_minus1 syntax element plus 1 is the number of APSs. The value of num_scaling_list_aps_ids_minus1 must be within the range of 0 to 7.
[0305] Here, whether or not the num_scaling_list_aps_ids_minus1 syntax element can be parsed can be determined based on the slice_scaling_list_enabled_flag syntax element. For example, if the value of slice_scaling_list_enabled_flag is 1 (i.e., it is determined that scaling list data is available in the corresponding slice), num_scaling_list_aps_ids_minus1 can be parsed. In this case, the slice_scaling_list_aps_id[i] syntax element can be parsed / signaled based on the value of num_scaling_list_aps_ids_minus1.
[0306] That is, slice_scaling_list_aps_id[i] may indicate an identifier (adaptation_parameter_set_id) of an APS including the ith scaling list data (i.e., the ith SCALING LIST APS). That is, APS ID information may be signaled for as many APSs as indicated by the num_scaling_list_aps_ids_minus1 syntax element. Meanwhile, the TemporalId (i.e., TemporalID) of an APS NAL unit (i.e., an APS NAL unit including scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id[i] must be smaller than or equal to the TemporalId (i.e., TemporalID) of the slice NAL unit being coded.
[0307] In addition, when multiple SCALING DATA APS (multiple APS including scaling list data) having the same APS ID information (adaptation_parameter_set_id) value are referenced by two or more slices in the same picture, the multiple SCALING DATA APS having the same APS ID information (adaptation_parameter_set_id) value must contain the same content.
[0308] This document also proposes a method for signaling scaling list data in a hierarchical structure to avoid redundant signaling. In one embodiment, the signaling of scaling list data in the Picture Parameter Set (PPS) can be eliminated. The scaling list data can be fully signaled in the SPS, or APS, and / or other appropriate header sets.
[0309] As an embodiment, Table 31 below shows an example of a PPS syntax that does not signal scaling list data in the PPS.
[0310] [Table 31]
[0311] Table 32 below shows an example of semantics for syntax elements (e.g., pps_scaling_list_data_present_flag) that may be removed to avoid redundant signaling of scaling list data in the PPS syntax of Table 31.
[0312] [Table 32]
[0313] With reference to Tables 31 and 32, information for signaling scaling list data in a PPS, for example, the pps_scaling_list_data_present_flag syntax element, can be removed. The pps_scaling_list_data_present_flag syntax element can indicate whether scaling list data is signaled in a PPS based on whether its value is 0 or 1. For example, if the value of the pps_scaling_list_data_present_flag syntax element is 1, it can indicate that the scaling list data used for a picture referring to a PPS is derived based on the scaling list specified by the active SPS and the scaling list data specified by the PPS. If the value of the pps_scaling_list_data_present_flag syntax element is 0, it can indicate that the scaling list data used for a picture referring to a PPS is inferred to be the same as that specified by the active SPS. That is, the pps_scaling_list_data_present_flag syntax element can be information indicating whether or not scaling list data signaled from the PPS is present.
[0314] That is, in this embodiment, in order to prevent redundant signaling of scaling list data, the pps_scaling_list_data_present_flag syntax element is removed (i.e., by not signaling the pps_scaling_list_data_present_flag syntax element) as shown in Table 31, thereby preventing the scaling list data from being parsed / signaled by the PPS.
[0315] This document also proposes a method for signaling a scaling list matrix in the APS. Existing methods use three modes (i.e., OFF, DEFAULT, and USER_DEFINED modes). The OFF mode indicates that the scaling list data is not applied to the transform block. The DEFAULT mode indicates that a fixed value is used to generate the scaling matrix. The USER_DEFINED mode indicates that a scaling matrix is used based on the block size, prediction mode, and color component. Currently, the total number of scaling matrices supported in VVC is 44, which is a significant increase from 28 in HEVC. Currently, the scaling list data is signaled in the SPS and can conditionally exist in the PPS. By signaling the scaling list data in the APS, redundant signaling of the same data in the SPS and PPS is unnecessary and can be eliminated.
[0316] For example, a scaling matrix currently defined in VVC is used to indicate whether it is available (enabled) in the SPS. If this flag indicates that it is available, the scaling list is used in the scaling process for the transform coefficients, and if this flag indicates that it is not available, the scaling list is not used in the scaling process for the transform coefficients (e.g., OFF mode). In addition, sps_scaling_list_data_present_flag, which indicates whether the scaling list data exists in the SPS, can be parsed. In addition to signaling in the SPS, the scaling list data can also exist in the PPS. If pps_scaling_list_data_present_flag indicates that it is available in the PPS, the scaling list data can exist in the PPS. If the scaling list data exists in both the SPS and the PPS, the scaling list data from the PPS can be used for a frame that references the active PPS. If the scaling_list_enable_flag indicates that it is available but the scaling list data exists only in the SPS and not in the PPS, the scaling list data from the SPS can be referenced by the frame. If scaling_list_enable_flag indicates availability and no scaling list data is present in the SPS or PPS, the DEFAULT mode may be used. The use of the DEFAULT mode may also be signaled within the scaling list data itself. If the scaling list data is explicitly signaled, the USER DEFINED mode may be used. The scaling factor for a given transform block can be determined using the information signaled in the scaling list. It is proposed to signal the scaling list data in the APS.
[0317] Currently, VVC adopts and uses scaling list data, and the scaling matrix supported by VVC is wider than that of HEVC. The scaling matrix supported by VVC allows block sizes to be selected from 4x4 to 64x64 for luma and 2x2 to 32x32 for chroma. In addition, rectangular transform block (TB) size, dependent quantization, multiple transform selection, large transform with zeroing out high frequency coefficients for large transform blocks, intra subblock partitioning (ISP), and intra block copy (IBC) can be integrated. Intra block copy (IBC) and intra coding modes can share the same scaling matrix.
[0318] Thus, for USER_DEFINED mode, the number of matrices signaled can be as follows:
[0319] ·MatrixType:30=2(2 for intra & IBC / inter)×3(Y / Cb / Cr components)×5(square TB size:from 4×4 to 64×64 for luma, from 2×2 to 32×32 for chroma)
[0320] ·MatrixType_DC:14=2(2 for intra & IBC / inter×1 for Y component)×3(TB size:16×16, 32×32, 64×64)+4(2 for intra & IBC / inter×2 for Cb / Cr components)×2(TB size:16×16, 32×32)
[0321] DC values can be coded separately for scaling matrices of sizes 16x16, 32x32, and 64x64. If the transform block (TB) size is smaller than 8x8, all elements can be signaled in one scaling matrix. If the transform block (TB) size is greater than or equal to 8x8, only 64 elements can be signaled as a base scaling matrix in one 8x8 scaling matrix. To obtain a square matrix larger than 8x8, the base 8x8 matrix can be upsampled to the required size. If the DEFAULT mode is used, the scaling matrix can be set to 16. Thus, VVC supports 44 different matrices, whereas HEVC supports only 28 matrices. Since the number of scaling matrices supported in VVC is more extensive than HEVC, APS can be used as a more practical choice for signaling the scaling list data to avoid redundant signaling in SPS and / or PPS. This can avoid unnecessary and redundant signaling of the scaling list data.
[0322] In order to solve the above problems, this document proposes a method for signaling a scaling matrix in an APS. For this purpose, the scaling list data can be signaled only in the APS without the need for it to be signaled in the SPS or conditionally present in the PPS. In addition, the APS ID can be signaled in the slice header.
[0323] In one embodiment, a flag (e.g., scaling_list_enable_flag) indicating whether scaling list data is available in the SPS is signaled, and a flag (e.g., pps_scaling_list_data_present_flag) indicating whether scaling list data is present in the PPS is removed, so that scaling list data can be signaled in the APS without signaling. Also, the APS ID can be signaled in the slice header. In this case, if the value of scaling_list_enable_flag signaled in the SPS is 1 (i.e., indicating that scaling list data is available) and the APS ID is not signaled in the slice header, the DEFAULT scaling matrix can be used. Such an embodiment of this document can be realized with syntax and semantics such as those shown in Tables 33 to 41 below.
[0324] Table 33 below shows an example of an APS structure used to signal scaling list data.
[0325] [Table 33]
[0326] The semantics of the syntax elements included in the APS syntax of Table 33 can be expressed as shown in Table 34 below.
[0327] [Table 34]
[0328] With reference to Tables 33 and 34, the adaptation_parameter_set_id syntax element may be parsed / signaled in the APS. The adaptation_parameter_set_id provides an identifier for the APS for reference in other syntax elements. That is, the APS may be identified based on the adaptation_parameter_set_id syntax element. The adaptation_parameter_set_id syntax element may be referred to as APS ID information. The APS may be shared between pictures and may be different in different slices within a picture.
[0329] In addition, the aps_params_type syntax element may be parsed / signaled in the APS. The aps_params_type may represent the type of APS parameters transmitted from the APS as shown in Table 35 below. The aps_params_type syntax element may be referred to as APS parameter type information or APS type information.
[0330] For example, Table 35 below is an example showing the types of APS parameters that can be transmitted via an APS, and each APS parameter type can be represented corresponding to a value of aps_params_type.
[0331] [Table 35]
[0332] Referring to Table 35, aps_params_type may be a syntax element for classifying the type of the APS. When the value of aps_params_type is 0, the APS type may be ALF_APS, and the APS may carry ALF data, which may include ALF parameters for deriving a filter / filter coefficient. When the value of aps_params_type is 1, the APS type may be LMCS_APS, and the APS may carry LMCS data, which may include LMCS parameters for deriving an LMCS model / bin / mapping index. When the value of aps_params_type is 2, the APS type may be SCALING_APS, and the APS may carry SCALING list data, which may include scaling list data parameters for deriving a frequency-based quantization scaling matrix / scaling, factor / scaling list value.
[0333] For example, as shown in Table 33, the aps_params_type syntax element may be parsed / signaled in APS, and in this case, if the value of aps_params_type represents 0 (i.e., if aps_params_type represents ALF_APS), ALF data (i.e., alf_data()) may be parsed / signaled. Alternatively, if the value of aps_params_type represents 1 (i.e., if aps_params_type represents LMCS_APS), LMCS data (i.e., lmcs_data()) may be parsed / signaled. Alternatively, if the value of aps_params_type represents 2 (i.e., if aps_params_type represents SCALING_APS), scaling list data (i.e., scaling_list_data()) may be parsed / signaled.
[0334] Also, referring to Tables 33 and 34, the aps_extension_flag syntax element can be parsed / signaled in the APS. The aps_extension_flag can indicate whether the APS extension data flag (aps_extension_data_flag) syntax element is present or not. The aps_extension_flag can be used, for example, to provide an extension point for a later version of the VVC standard. The aps_extension_flag syntax element can be referred to as an APS extension flag. For example, if the value of the aps_extension_flag is 0, it can indicate that the APS extension data flag (aps_extension_data_flag) is not present in the APS RBSP syntax structure. Alternatively, if the value of the aps_extension_flag is 1, it can indicate that the APS extension data flag (aps_extension_data_flag) is present in the APS RBSP syntax structure.
[0335] The aps_extension_data_flag syntax element may be parsed / signaled based on the aps_extension_flag syntax element. The aps_extension_data_flag syntax element may be referred to as an APS extension data flag. For example, if the value of aps_extension_flag is 1, aps_extension_data_flag may be parsed / signaled, and in this case, aps_extension_data_flag may have any value.
[0336] As described above, according to one embodiment of this document, the scaling list data can be efficiently carried by allocating a data type (e.g., SCALING_APS) for representing the scaling list data and parsing / signaling a syntax element (e.g., aps_params_type) representing the data type. That is, according to one embodiment of this document, the APS structure that integrates the scaling list data can be used.
[0337] In addition, when signaling scaling list data in the APS, whether or not the scaling list data is available is signaled in the SPS, and based on this, the scaling list data can be parsed / signaled in the APS according to the APS parameter type (e.g., aps_params_type). In addition, in one embodiment of this document, in order to avoid signaling of redundant scaling list data in higher level syntax, the scaling list data can be not signaled in the SPS or PPS by not parsing / signaling flag information indicating whether or not the scaling list data syntax structure (e.g., scaling_list_data()) exists in the SPS or PPS from the SPS or PPS. This can be realized by the syntax and semantics shown in Tables 36 to 39 below.
[0338] For example, the SPS syntax can be modified as shown in Table 36 below. Table 36 below shows an example of an SPS syntax structure that does not signal scaling list data in the SPS.
[0339] [Table 36]
[0340] The semantics of the syntax elements included in the SPS syntax of Table 36 may be modified as shown in Table 37. As an example, in Tables 36 and 37, some syntax elements (e.g., sps_scaling_list_data_present_flag) may be removed from the syntax elements included in the SPS to avoid redundant signaling of scaling list data.
[0341] [Table 37]
[0342] Referring to Tables 36 and 37, the scaling_list_enabled_flag syntax element can be parsed / signaled in the SPS. The scaling_list_enabled_flag syntax element can indicate whether the scaling list is available based on whether its value is 0 or 1. For example, if the value of scaling_list_enabled_flag is 1, it indicates that the scaling list is used in the scaling process for the transform coefficients, and if the value of scaling_list_enabled_flag is 0, it indicates that the scaling list is not used in the scaling process for the transform coefficients.
[0343] That is, the scaling_list_enabled_flag syntax element can be referred to as a scaling list enabled flag and can be signaled at the SPS (or SPS level). In other words, based on the value of scaling_list_enabled_flag signaled at the SPS level, it can be determined that a scaling list is essentially enabled for a picture in a CVS that references the SPS. Then, an additional enable flag can be signaled at a level lower than the SPS (e.g., a PPS, a tile group header, a slice header, and / or other appropriate header) to obtain a scaling list.
[0344] Also, the sps_scaling_list_data_present_flag syntax element may not be parsed / signaled in the SPS. That is, by removing the sps_scaling_list_data_present_flag syntax element in the SPS, this flag information may not be parsed / signaled. The sps_scaling_list_data_present_flag syntax element is flag information indicating whether or not the syntax structure of the scaling list data exists in the SPS, and the scaling list data specified by the SPS may be parsed / signaled according to this flag information. However, by removing the sps_scaling_list_data_present_flag syntax element, the SPS level may be configured to explicitly signal only the scaling list enabled flag (scaling_list_enabled_flag) without directly signaling the scaling list data.
[0345] Also, the signaling of the scaling list data in the PPS can be removed as shown in Table 38 below. For example, Table 38 below shows an example of a PPS syntax structure without signaling the scaling list data in the PPS.
[0346] [Table 38]
[0347] The semantics of the syntax elements included in the PPS syntax of Table 38 may be modified as shown in Table 39. As an example, Table 39 shows the semantics for syntax elements (e.g., pps_scaling_list_data_present_flag) that may be removed to avoid redundant signaling of scaling list data in the PPS syntax.
[0348] [Table 39]
[0349] Referring to Tables 38 and 39, the pps_scaling_list_data_present_flag syntax element may not be parsed / signaled in the PPS. That is, by removing the pps_scaling_list_data_present_flag syntax element in the PPS, this flag information may not be parsed / signaled. The pps_scaling_list_data_present_flag syntax element is flag information indicating whether or not the syntax structure of the scaling list data exists in the PPS, and the scaling list data designated by the PPS may be parsed / signaled according to this flag information. However, by removing the pps_scaling_list_data_present_flag syntax element, the scaling list data may not be directly signaled at the PPS level.
[0350] As described above, the SPS syntax and the PPS syntax can be configured so that the scaling list data syntax is not directly signaled at the SPS or PPS level by removing the flag information indicating whether the scaling list data exists at the SPS or PPS level. Only the scaling list enable flag (scaling_list_enabled_flag) is explicitly signaled in the SPS, and the scaling list (scaling_list_data()) can be parsed individually in the lower level syntax (e.g., APS) based on the enable flag (scaling_list_enabled_flag) in the SPS. Therefore, according to one embodiment of this document, the scaling list data can be parsed / signaled according to a hierarchical structure, thereby improving coding efficiency.
[0351] In addition, when signaling the scaling list data in the APS, an APS ID may be signaled in the slice header, an APS may be identified based on the APS ID obtained from the slice header, and the scaling list data may be parsed / signaled from the identified APS. Here, the slice header is described only as an example, and the slice header may be mixed with or substituted for various headers such as a tile group header or a picture header.
[0352] For example, Table 40 below illustrates an example of slice header syntax including an APS ID syntax element for signaling scaling list data in an APS.
[0353] [Table 40]
[0354] The semantics of the syntax elements included in the slice header syntax of Table 40 can be expressed as shown in Table 41 below.
[0355] [Table 41]
[0356] Referring to Tables 40 and 41, the slice_pic_parameter_set_id syntax element may be parsed / signaled in the slice header. The slice_pic_parameter_set_id syntax element may represent an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in the corresponding slice, and may represent a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id should be within the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be PPS identification information or PPSID information referenced in the slice.
[0357] Also, a slice_scaling_list_present_flag syntax element may be parsed / signaled in the slice header. The slice_scaling_list_present_flag syntax element may be information indicating whether a scaling list matrix exists for the current slice. For example, if the value of slice_scaling_list_present_flag is 1, it may indicate that a scaling list matrix exists for the current slice, and if the value of slice_scaling_list_present_flag is 0, it may indicate that default scaling list data is used to derive a scaling factor array. Alternatively, if slice_scaling_list_present_flag does not exist in the slice header, its value may be inferred to 0.
[0358] In this case, the slice_scaling_list_present_flag syntax element may be parsed or not based on the scaling_list_enabled_flag syntax element signaled in the upper level syntax (i.e., SPS). For example, if the value of the scaling_list_enabled_flag signaled in the SPS is 1 (i.e., if the scaling list data is determined to be available at the upper level), the slice_scaling_list_present_flag may be parsed in the slice header to determine whether to perform a scaling process using the scaling list in the slice.
[0359] Also, a slice_scaling_list_aps_id syntax element may be parsed / signaled in the slice header. The slice_scaling_list_aps_id syntax element may represent an identifier for an APS referenced in the slice. That is, the slice_scaling_list_aps_id syntax element may represent ID information (adaptation_parameter_set_id) of an APS containing scaling list data referenced in the slice. Meanwhile, the TemporalId (i.e., Temporal ID) of an APS NAL unit (i.e., an APS NAL unit containing scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id must be less than or equal to the TemporalId (i.e., Temporal ID) of the slice NAL unit being coded.
[0360] In addition, whether or not the slice_scaling_list_aps_id syntax element can be parsed can be determined based on the slice_scaling_list_present_flag syntax element. For example, if the value of slice_scaling_list_present_flag is 1 (i.e., if a scaling list is present in the slice header), slice_scaling_list_aps_id can be parsed. Then, scaling list data can be obtained from the APS indicated by the parsed slice_scaling_list_aps_id.
[0361] In addition, when multiple SCALING DATA APS (multiple APS including scaling list data) having the same APS ID information (adaptation_parameter_set_id) value are referenced by two or more slices in the same picture, the multiple SCALING DATA APS having the same APS ID information (adaptation_parameter_set_id) value must contain the same content.
[0362] According to Tables 40 and 41 above, it has been described that the APS ID is signaled in the slice header, but this is just one example, and in this document, the APS ID can be signaled in the picture header or tile group header, etc.
[0363] This document also proposes a general method for repositioning scaling list data in other header sets. As an embodiment, a general structure is proposed for including scaling list data in a header set. Currently, in the case of VVC, APS is used as the appropriate header set, but it may also be possible to encapsulate scaling list data identified by Nal Unit Type (NUT) in its own header set. This can be realized as shown in Tables 42 and 43 below.
[0364] For example, Table 42 below shows an example of NAL unit types and corresponding RBSP syntax structures. As described above, the NAL unit type of an NAL unit can be identified by the RBSP data structure included in the NAL unit, and information on such NAL unit type can be stored and signaled in the NAL unit header.
[0365] [Table 42-1]
[0366] [Table 42-2]
[0367] As shown in Table 42, the scaling list data can be defined as one NAL unit type (e.g., SCALING_NUT), and a specific value (e.g., 21, or one of the reserved values not specified in the NAL unit type) can be specified as the value of the NAL unit type for SCALING_NUT. SCALING_NUT can be a type for a NAL unit that includes a scaling list data parameter set (e.g., Scaling_list_data_parameter set).
[0368] Additionally, the availability of SCALING_NUT may be determined at a higher level than the APS, PPS, and / or other appropriate headers, or may be determined at a lower level than other NAL unit types.
[0369] For example, Table 43 below illustrates the syntax of a scaling list data parameter set used to signal the scaling list data.
[0370] [Table 43]
[0371] The semantics of the syntax elements included in the scaling list data parameter set syntax of Table 43 can be expressed as shown in Table 44 below.
[0372] [Table 44]
[0373] Referring to Tables 43 and 44, a scaling list data parameter set (e.g., scaling_list_data_parameter_set) may be a header set specified by a value of the NAL unit type for SCALING_NUT (e.g., 21). In the scaling list data parameter set, a scaling_list_data_parameter_set_id syntax element may be parsed / signaled. The scaling_list_data_parameter_set_id syntax element provides an identifier for scaling list data for reference by other syntax elements. That is, the scaling list parameter set may be identified based on the scaling_list_data_parameter_set_id syntax element. The scaling_list_data_parameter_set_id syntax element may be referred to as scaling list data parameter set ID information. The scaling list data parameter set may be shared between pictures and may be different for different slices in a picture.
[0374] Scaling list data (e.g., scaling_list_data syntax) can be parsed / signaled from the scaling list data parameter set identified by the scaling_list_data_parameter_set_id.
[0375] Also, a scaling_list_data_extension_flag syntax element may be parsed / signaled in the scaling list data parameter set. The scaling_list_data_extension_flag syntax element may indicate whether or not a scaling list data extension flag (scaling_list_data_extension_flag) syntax element is present in the scaling list data RBSP syntax structure. For example, if the value of scaling_list_data_extension_flag is 1, it may indicate that the scaling list data extension flag (scaling_list_data_extension_flag) syntax element is present in the scaling list data RBSP syntax structure. Alternatively, if the value of scaling_list_data_extension_flag is 0, it may indicate that the scaling list data extension flag (scaling_list_data_extension_flag) syntax element is not present in the scaling list data RBSP syntax structure.
[0376] The scaling_list_data_extension_data_flag syntax element may be parsed / signaled based on the scaling_list_data_extension_flag syntax element. The scaling_list_data_extension_data_flag syntax element may be referred to as an extension data flag for the scaling list data. For example, if the value of scaling_list_data_extension_flag is 1, scaling_list_data_extension_data_flag may be parsed / signaled, and in this case, scaling_list_data_extension_data_flag may have any value.
[0377] As described above, according to one embodiment of this document, one header set structure for scaling list data can be defined and used, and the header set for scaling list data can be specified for a NAL unit type (e.g., SCALING_NUT). In this case, the header set for scaling list data can be defined as a scaling list data parameter set (e.g., scaling_list_data_parameter_set), from which the scaling list data can be obtained.
[0378] Meanwhile, this document proposes a method for effectively coding the syntax element scaling_lsit_pred_matrix_id_delta included in the scaling list data.
[0379] Currently, in the case of VVC, the scaling_lsit_pred_matrix_id_delta syntax element is coded using an unsigned integer 0-th order Exp-Golomb-coded syntax element with the left bit first. However, in order to improve coding efficiency, in one embodiment of this document, a coding scheme is proposed in which the scaling_lsit_pred_matrix_id_delta syntax element having a range of 0 to 5 is coded using a fixed length code (e.g., u(3)) as shown in Table 45 below. In this case, in order to improve efficiency for the entire range, it may be sufficient to code using only 3 bits.
[0380] For example, Table 45 below illustrates an example of a scaling list data syntax structure.
[0381] [Table 45]
[0382] The semantics of the syntax elements included in the scaling list data syntax of Table 45 can be expressed as shown in Table 46 below.
[0383] [Table 46-1]
[0384] [Table 46-2]
[0385] As shown in Tables 45 and 46, the scaling_list_pred_matrix_id_delta syntax element can be parsed / signaled from the scaling list data syntax. The scaling_list_pred_matrix_id_delta syntax element can represent a reference scaling list used to derive a scaling list. In this case, the scaling_list_pred_matrix_id_delta can be parsed using a fixed length code (e.g., u(3)).
[0386] On the other hand, when signaling scaling list data in APS, it is possible to impose restrictions on the number of scaling list matrices. This document proposes a method to limit the number of scaling list matrices. The method proposed in this document has the effect of simplifying implementation and limiting the worst case memory requirement.
[0387] In one embodiment, the number of APSs that contain scaling list data (i.e., APSs that signal the scaling list data syntax) can be limited. To this end, the following constraints can be added: It should be noted that these constraints are meant to place holders i.e., different values can be used.
[0388] For convenience of explanation, an APS including scaling list data (i.e., an APS signaling scaling list data syntax) may be referred to as a SCALING LIST APS. In other words, as described above, when the APS parameter type (e.g., aps_params_type) transmitted from an APS is a type representing scaling list data parameters (e.g., SCALING_APS), the scaling list data transmitted from an APS may be referred to as a SCALING LIST APS.
[0389] For example, the total number of APSs including scaling list data (i.e., SCALING LIST APS) may be less than 3. Of course, other suitable values may be used. For example, a suitable value within the range of 0 to 7 may be used. That is, the total number of APSs including scaling list data (i.e., SCALING LIST APS) may be set to the range of 0 to 7.
[0390] Also, for example, with respect to an APS containing scaling list data (ie, a SCALING LIST APS), only one SCALING LIST APS is allowed per picture.
[0391] Table 47 below shows an example of syntax elements and their semantics that represent constraints for restricting an APS that includes the above-mentioned scaling list data.
[0392] [Table 47]
[0393] Referring to Table 47, the number of APSs (ie, SCALING LIST APSs) including scaling list data can be limited based on a syntax element (e.g., slice_scaling_list_aps_id) representing APS identification information (ie, APS ID information) of the SCALING LIST APS.
[0394] For example, the syntax element slice_scaling_list_aps_id may represent APS identification information (i.e., APS ID information) of a SCALING LIST APS to which a slice refers. In this case, the value of the syntax element slice_scaling_list_aps_id may be limited to a specific value. As an example, the value of the syntax element slice_scaling_list_aps_id may be limited to a range of 0 to 3. This is one example, and the value may be limited to have other values, and as another example, the value of the syntax element slice_scaling_list_aps_id may be limited to a range of 0 to 7.
[0395] Also, the TemporalId (i.e., Temporal ID) of a SCALING LIST APS NAL unit having an APS ID (adaptation_parameter_set_id) such as slice_lmcs_aps_id must be less than or equal to the TemporalId (i.e., Temporal ID) of a coded slice NAL unit.
[0396] Also, for example, when multiple SCALING LIST APSs having the same APS ID (adaptation_parameter_set_id) value are referenced by two or more slices on the same picture, the multiple SCALING LIST APSs having the same APS ID (adaptation_parameter_set_id) value must have the same content.
[0397] Also, for example, only one SCALING LIST APS having the same value of APS ID (adaptation_parameter_set_id) and the same content must be referenced by one or more slices on the same picture. In other words, one or more slices in the same picture must reference the same APS that contains scaling list data.
[0398] The following drawings are created to explain a specific example of the present document. The names of specific devices and specific terms and names (e.g., names of syntax / syntax elements, etc.) described in the drawings are presented for illustrative purposes only, and the technical features of the present document are not limited to the specific names used in the following drawings.
[0399] 11 and 12 show a schematic diagram of an example video / image encoding method and associated components according to an embodiment (etc.) of this document.
[0400] The method disclosed in FIG. 11 may be performed by the encoding device 200 disclosed in FIG. 2. Specifically, step S1100 in FIG. 11 may be performed by the subtraction unit 231 disclosed in FIG. 2, step S1110 in FIG. 11 may be performed by the conversion unit 232 disclosed in FIG. 2, steps S1120 to S1130 in FIG. 11 may be performed by the quantization unit 233 disclosed in FIG. 2, and step S1140 in FIG. 11 may be performed by the entropy encoding unit 240 disclosed in FIG. 2. In addition, the method disclosed in FIG. 11 may be performed including the embodiments described above in this document. Therefore, in FIG. 11, detailed descriptions of contents overlapping with the above-described embodiments are omitted or simplified.
[0401] As shown in FIG. 11, the encoding apparatus may derive a residual sample for a current block (S1100).
[0402] In one embodiment, the encoding apparatus may first determine a prediction mode for a current block and derive a prediction sample. For example, the encoding apparatus may determine whether to perform inter prediction or intra prediction on the current block, and may determine a specific inter prediction mode or a specific intra prediction mode based on an RD cost. The encoding apparatus may perform prediction according to the determined prediction mode and derive a prediction sample for the current block. In this case, various prediction methods disclosed in this document, such as inter prediction or intra prediction, may be applied. In addition, the encoding apparatus may generate and encode information (e.g., prediction mode information) related to the prediction applied to the current block. Then, the encoding apparatus may derive a residual sample by comparing an original sample and a predicted sample for the current block.
[0403] The encoding device can derive transform coefficients based on the residual samples (S1110).
[0404] In one embodiment, the encoding apparatus may derive transform coefficients through a transform process on the residual sample. In this case, the encoding apparatus may determine whether transform is applied to the current block in consideration of coding efficiency. That is, the encoding apparatus may determine whether transform is applied to the residual sample. For example, if transform is not applied to the residual sample, the encoding apparatus may derive the residual sample as a transform coefficient. Alternatively, if transform is applied to the residual sample, the encoding apparatus may perform transform on the residual sample to derive the transform coefficient. In this case, the encoding apparatus may generate and encode transform skip flag information based on whether transform is applied to the current block. The transform skip flag information may be information indicating whether transform is applied to the current block or whether transform is skipped.
[0405] The encoding device may derive quantized transform coefficients based on the transform coefficients (S1120).
[0406] In one embodiment, the encoding apparatus may derive quantized transform coefficients by performing a quantization process on transform coefficients. In this case, the encoding apparatus may apply frequency-specific weighting that adjusts quantization strength according to frequency. In this case, the quantization process may be further performed based on frequency-specific quantization scale values. The quantization scale values for the frequency-specific weighting may be derived using a scaling matrix. For example, the encoding apparatus / decoding apparatus may use a predefined scaling matrix, and the encoding apparatus may configure and encode frequency-specific quantization scale information for the scaling matrix, and signal the information to the decoding apparatus. The frequency-specific quantization scale information may include scaling list data. A (modified) scaling matrix may be derived based on the scaling list data.
[0407] In addition, the encoding device can perform an inverse quantization process in the same manner as the decoding device. In this case, the encoding device derives a (modified) scaling matrix based on the scaling list data, and applies inverse quantization to the quantized transform coefficients based on the scaling matrix to derive reconstructed transform coefficients. At this time, the reconstructed transform coefficients may differ from the original transform coefficients due to losses in the transform / quantization process.
[0408] Here, the scaling matrix may refer to the above-mentioned frequency-based quantization scaling matrix, and may be used interchangeably with or instead of the quantization scaling matrix, quantization matrix, scaling matrix, scaling list, etc. for convenience of explanation, and is not limited to the specific names used in this embodiment.
[0409] That is, the encoding device may further apply frequency-specific weighting in the quantization process, and may generate scaling list data as information on the scaling matrix. This process has been described in detail using Tables 5 to 17, so that the present embodiment will not repeat the detailed description.
[0410] The encoding device may generate residual information based on the quantized transform coefficients (S1130).
[0411] Here, the residual information is information generated through a transformation and / or quantization procedure and may be information regarding quantized transformation coefficients, and may include, for example, value information, position information, transformation technique, transformation kernel, quantization parameters, etc. of the quantized transformation coefficients.
[0412] Also, when frequency-specific weighting is further applied to derive the quantized transform coefficients in the quantization process, scaling list data for the quantized transform coefficients may be generated. The scaling list data may include scaling list parameters used to derive the quantized transform coefficients. In this case, the encoding apparatus may generate information related to the scaling list data, for example, may generate an APS including the scaling list data. The APS may include APS ID information and APS type information. That is, the scaling list data for the quantized transform coefficients may be included in the APS based on the APS ID information and the APS type information.
[0413] In addition, the encoding apparatus may generate header information, which may include scaling list data-related APS ID information, and an APS including the scaling list data may be identified based on the scaling list data-related APS ID information included in the header information.
[0414] The encoding device may encode image information (or video information) (S1140). Here, the image information may include the residual information. The image information may also include information related to the prediction used to derive the prediction sample (e.g., prediction mode information). The image information may also include information related to the scaling list data. That is, the image information may include various information derived during the encoding process, and may be encoded including such various information.
[0415] In one embodiment, the image information may include various information related to the embodiments (etc.) described above in this document, and may include information disclosed in at least one of Tables 1 to 47 above.
[0416] For example, the image information may include a sequence parameter set (SPS). The SPS may include first availability flag information indicating whether scaling list data is available. As an example, the SPS may be configured as shown in Table 36 (or Table 21) above, and the first availability flag information may be scaling_list_enabled_flag described in Tables 36 and 37 (or Tables 21 and 22). In addition, the SPS may remove the sps_scaling_list_data_present_flag syntax element to prevent this flag information from being parsed / signaled. The sps_scaling_list_data_present_flag syntax element is flag information indicating whether a syntax structure of scaling list data is present in the SPS, and the scaling list data designated by the SPS may be parsed / signaled according to this flag information. However, by removing the sps_scaling_list_data_present_flag syntax element, the SPS level can be configured to explicitly signal only the scaling list available flag (scaling_list_enabled_flag) without directly signaling the scaling list data.
[0417] Also, for example, the image information may include a PPS (Picture Parameter Set). As an example, the PPS may be configured as shown in Table 38 above, and in this case, the PPS may be configured not to include availability flag information indicating whether the scaling list data is available. That is, the PPS may be configured not to parse / signal this flag information by removing the pps_scaling_list_data_present_flag syntax element. The pps_scaling_list_data_present_flag syntax element is flag information indicating whether the syntax structure of the scaling list data is present in the PPS, and the scaling list data designated by the PPS may be parsed / signaled according to this flag information. However, by removing the pps_scaling_list_data_present_flag syntax element, the scaling list data may not be directly signaled at the PPS level.
[0418] In this case, the first availability flag information (e.g., scaling_list_enabled_flag) indicating whether the scaling list data is available may be signaled in the SPS and not in the PPS. Therefore, based on the first availability flag information signaled in the SPS (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the scaling list data may be included in the APS.
[0419] Also, for example, the image information may include header information. The header information may be header information related to a slice or picture including the current block, and may include, for example, a picture header or a slice header. The header information may include scaling list data related APS identification information. The scaling list data related APS identification information included in the header information may represent APS ID information for an APS including scaling list data. As an example, the scaling list data related APS ID information included in the header information may be slice_scaling_list_aps_id described in Tables 40 to 41 (or Tables 25 to 28), and may be identification information for an APS (including scaling list data; i.e., SCALING LIST APS) referenced by a slice / picture including the current block. That is, an APS including scaling list data may be identified based on the scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) of the header information.
[0420] In this case, whether the header information parses / signals the scaling list data related APS ID information can be determined based on the first availability flag information (scaling_list_enabled_flag) parsed / signaled in the SPS. For example, based on the first availability flag information indicating that the scaling list in the SPS is available (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the header information may include the scaling list data related APS ID information.
[0421] Also, for example, the header information may include second availability flag information indicating whether scaling list data is available in a picture or a slice. As an example, the second availability flag information may be slice_scaling_list_present_flag (or slice_scaling_list_enabled_flag) described in Tables 40 and 41 (or Tables 25 to 28).
[0422] In this case, whether the header information parses / signals the second availability flag information may be determined based on the first availability flag information (scaling_list_enabled_flag) parsed / signaled in the SPS. For example, based on the first availability flag information indicating that the scaling list in the SPS is available (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the header information may include the second availability flag information. And based on the second availability flag information (e.g., when the value of the second availability flag information (e.g., slice_scaling_list_present_flag) is 1 or true), the header information may include scaling list data related APS ID information.
[0423] As an example, the encoding device may signal second availability flag information (e.g., slice_scaling_list_present_flag) via header information based on first availability flag information (e.g., scaling_list_enabled_flag) signaled in the SPS as shown in Table 40 above, and then may signal scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) via header information based on the second availability flag information (e.g., slice_scaling_list_present_flag).The encoding device may then signal scaling list data from an APS indicated by the signaled scaling list data related APS ID information (e.g., slice_scaling_list_aps_id).
[0424] Also, for example, the image information may include scaling list data for the quantized transform coefficients. The scaling list data may include scaling list parameters for deriving a scaling list / scaling matrix / scale factor used in the quantization / dequantization process as described above. In other words, the scaling list data may include syntax elements used to configure a scaling list. As an example, the scaling list data may be scaling_list_data() shown in Table 7, Table 16, or Table 45 described above.
[0425] Also, for example, the image information may include an adaptation parameter set (APS). The APS may include APS ID information (APS identification information) and APS type information (type information of APS parameters). That is, the APS may be identified based on APS ID information representing an identifier for the APS, and APS parameters corresponding to the type may be included in the APS based on the APS type information. For example, the APS type information may include an ALF type related to an adaptive loop filter (ALF) parameter, an LMCS type related to a luma mapping with chroma scaling (LMCS) parameter, and a scaling list type related to a scaling list data parameter. It may be represented as in Table 35 above, and for example, when the value of the APS type information is 2, the APS type information may represent an APS including a scaling list data parameter.
[0426] As an example, the APS may be configured as shown in Table 33 (or Table 18) above. The APS ID information (APS identification information) may be adaptation_parameter_set_id described in Tables 33 and 34 (or Tables 18 and 19). The APS type information may be aps_params_type described in Tables 33 to 35 (or Tables 18 to 20). For example, if the type information of the APS parameters (e.g., aps_params_type) is a SCALING_APS type indicating that the APS includes scaling list data (or if the value of the type information of the APS parameters (e.g., aps_params_type) is 2), the APS may include scaling list data (e.g., scaling_list_data()). That is, the encoding device may signal scaling list data (e.g., scaling_list_data()) via the APS based on the SCALING_APS type information indicating that the APS includes scaling list data. That is, scaling list data may be included in the APS based on the APS type information (SCALING_APS type information). The scaling list data may include scaling list parameters for deriving a scaling list / scaling matrix / scale factor used in the quantization / dequantization process as described above. In other words, the scaling list data may include syntax elements used to configure a scaling list.
[0427] Also, as an example, the APS ID information may have a value within a specific range. For example, the value of the APS ID information may have a value within a specific range from 0 to 3 or from 0 to 7. However, this is an example, and the value range of the APS ID information may have other values. Also, the value range of the APS ID information may be determined based on the APS type information (e.g., aps_params_type). In other words, the value range of the APS ID information may have a range from 0 to 3 or from 0 to 7 based on the APS type information indicating one of the APS type related to the ALF, the APS type related to the LMCS, or the APS type related to the scaling list. For APS type information (e.g., SCALING_APS type) indicating that it is an APS related to the scaling list data, the value of the APS ID information may be expressed based on a syntax element (e.g., slice_scaling_list_aps_id) as shown in Table 47 above. For example, when the APS type information (e.g., aps_params_type) indicates that the APS is an APS including scaling list data (e.g., SCALING_APS type), the value of the APS ID information may have a value within a range from 0 to 3, or from 0 to 7. Here, a slice in one picture may refer to an APS including scaling list data whose APS ID has the same value (i.e., SCALING LIST APS). Alternatively, when the APS type information (e.g., aps_params_type) indicates that the APS is an ALF-related APS (e.g., ALF_APS type), the value of the APS ID information may have a value within a range from 0 to 7. Alternatively, when the APS type information (e.g., aps_params_type) indicates that the APS is an LMCS-related APS (e.g., LMCS_APS type), the value of the APS ID information may have a value within a range from 0 to 3.
[0428] As described above, the SPS syntax and the PPS syntax can be configured so that the scaling list data syntax is not directly signaled at the SPS or PPS level. For example, only the scaling list enable flag (scaling_list_enabled_flag) is explicitly signaled in the SPS, and the scaling list (scaling_list_data()) can be parsed individually in the lower level syntax (e.g., APS) based on the enable flag (scaling_list_enabled_flag) in the SPS. Therefore, according to one embodiment of this document, the scaling list data can be parsed / signaled according to a hierarchical structure, thereby improving coding efficiency.
[0429] Image information including the above-mentioned various information can be encoded and output in the form of a bitstream. The bitstream can be transmitted to a decoding device via a network or a (digital) storage medium. Here, the network can include a broadcasting network and / or a communication network, and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.
[0430] 13 and 14 show a schematic diagram of an example of a video / image decoding method and associated components according to an embodiment (etc.) of this document.
[0431] The method disclosed in FIG. 13 may be performed by the decoding device 300 disclosed in FIG. 3. Specifically, steps S1300 to S1310 in FIG. 13 may be performed by the entropy decoding unit 310 disclosed in FIG. 3, step S1320 in FIG. 13 may be performed by the inverse quantization unit 321 disclosed in FIG. 3, step S1330 in FIG. 13 may be performed by the inverse transform unit 321 disclosed in FIG. 3, and step S1340 in FIG. 13 may be performed by the addition unit 340 disclosed in FIG. 3. In addition, the method disclosed in FIG. 13 may be performed including the embodiments described above in this document. Therefore, in FIG. 13, detailed descriptions of contents overlapping with the above-described embodiments are omitted or simplified.
[0432] As shown in FIG. 13, a decoding device can obtain image information (or video information) from a bitstream (S1300).
[0433] In one embodiment, the decoding apparatus may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing a bitstream. In this case, the image information may include residual information, and the residual information may include information such as value information of quantized transform coefficients, position information, a transform technique, a transform kernel, and a quantization parameter. In addition, the image information may include information related to prediction (e.g., prediction mode information). In addition, the image information may include information related to scaling list data. That is, the image information may include various information required in a decoding process, and may be decoded based on a coding method such as exponential-Golomb coding, CAVLC, or CABAC.
[0434] In one embodiment, the image information may include various information according to the above-described embodiments (etc.) in this document, and may include information disclosed in at least one of the above-described Tables 1 to 47. That is, in this case, the decoding device may obtain image information including information disclosed in at least one of the above-described Tables 1 to 47 from the bitstream, and decode the image information to obtain information required for the decoding process.
[0435] For example, the image information may include a sequence parameter set (SPS). The SPS may include first availability flag information indicating whether scaling list data is available. As an example, the SPS may be configured as shown in Table 36 (or Table 21) above, and the first availability flag information may be scaling_list_enabled_flag described in Tables 36 and 37 (or Tables 21 and 22). In addition, the SPS may remove the sps_scaling_list_data_present_flag syntax element to prevent this flag information from being parsed / signaled. The sps_scaling_list_data_present_flag syntax element is flag information indicating whether a syntax structure of scaling list data is present in the SPS, and the scaling list data designated by the SPS may be parsed / signaled according to this flag information. However, by removing the sps_scaling_list_data_present_flag syntax element, the SPS level can be configured to explicitly signal only the scaling list available flag (scaling_list_enabled_flag) without directly signaling the scaling list data.
[0436] Also, for example, the image information may include a PPS (Picture Parameter Set). As an example, the PPS may be configured as shown in Table 38 above, and in this case, the PPS may be configured not to include availability flag information indicating whether the scaling list data is available. That is, the PPS may be configured not to parse / signal this flag information by removing the pps_scaling_list_data_present_flag syntax element. The pps_scaling_list_data_present_flag syntax element is flag information indicating whether the syntax structure of the scaling list data is present in the PPS, and the scaling list data designated by the PPS may be parsed / signaled according to this flag information. However, by removing the pps_scaling_list_data_present_flag syntax element, the scaling list data may not be directly signaled at the PPS level.
[0437] In this case, the first availability flag information (e.g., scaling_list_enabled_flag) indicating whether the scaling list data is available may be signaled in the SPS and not in the PPS. Therefore, based on the first availability flag information signaled in the SPS (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the scaling list data may be included in the APS.
[0438] Also, for example, the image information may include header information. The header information may be header information related to a slice or picture including the current block, and may include, for example, a picture header or a slice header. The header information may include scaling list data related APS identification information. The scaling list data related APS identification information included in the header information may represent APS ID information for an APS including scaling list data. As an example, the scaling list data related APS ID information included in the header information may be slice_scaling_list_aps_id described in Tables 40 to 41 (or Tables 25 to 28), and may be identification information for an APS (including scaling list data; i.e., SCALING LIST APS) referenced by a slice / picture including the current block. That is, an APS including scaling list data may be identified based on the scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) of the header information. That is, the decoding device can identify the APS based on the scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) in the header information, and obtain the scaling list data from the APS.
[0439] In this case, whether the header information parses / signals the scaling list data related APS ID information can be determined based on the first availability flag information (scaling_list_enabled_flag) parsed / signaled in the SPS. For example, based on the first availability flag information indicating that the scaling list in the SPS is available (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the header information may include the scaling list data related APS ID information.
[0440] Also, for example, the header information may include second availability flag information indicating whether scaling list data is available in a picture or a slice. As an example, the second availability flag information may be slice_scaling_list_present_flag (or slice_scaling_list_enabled_flag) described in Tables 40 and 41 (or Tables 25 to 28).
[0441] In this case, whether the header information parses / signals the second availability flag information may be determined based on the first availability flag information (scaling_list_enabled_flag) parsed / signaled in the SPS. For example, based on the first availability flag information indicating that the scaling list in the SPS is available (e.g., when the value of the first availability flag information (e.g., scaling_list_enabled_flag) is 1 or true), the header information may include the second availability flag information. And based on the second availability flag information (e.g., when the value of the second availability flag information (e.g., slice_scaling_list_present_flag) is 1 or true), the header information may include scaling list data related APS ID information.
[0442] As an example, the decoding device can acquire second availability flag information (e.g., slice_scaling_list_present_flag) via header information based on first availability flag information (e.g., scaling_list_enabled_flag) signaled in the SPS as in the above-mentioned Table 40 (or Table 25), and then acquire scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) via header information based on the second availability flag information (e.g., slice_scaling_list_present_flag).The decoding device can then acquire scaling list data from the APS indicated by the scaling list data related APS ID information (e.g., slice_scaling_list_aps_id) acquired via the header information.
[0443] Also, for example, the image information may include scaling list data for the quantized transform coefficients. The scaling list data may include scaling list parameters for deriving a scaling list / scaling matrix / scale factor used in the quantization / dequantization process as described above. In other words, the scaling list data may include syntax elements used to configure a scaling list. As an example, the scaling list data may be scaling_list_data() shown in Table 7, Table 16, or Table 45 described above.
[0444] Also, for example, the image information may include an adaptation parameter set (APS). The APS may include APS ID information (APS identification information) and APS type information (type information of APS parameters). That is, the APS may be identified based on APS ID information representing an identifier for the APS, and APS parameters corresponding to the type may be included in the APS based on the APS type information. For example, the APS type information may include an ALF type related to an adaptive loop filter (ALF) parameter, an LMCS type related to a luma mapping with chroma scaling (LMCS) parameter, and a scaling list type related to a scaling list data parameter. It may be represented as in Table 35 above, and for example, when the value of the APS type information is 2, the APS type information may represent an APS including a scaling list data parameter.
[0445] As an example, the APS may be configured as shown in Table 33 (or Table 18) above. The APS ID information (APS identification information) may be adaptation_parameter_set_id described in Tables 33 and 34 (or Tables 18 and 19). The APS type information may be aps_params_type described in Tables 33 to 35 (or Tables 18 to 20). For example, if the type information of the APS parameters (e.g., aps_params_type) is a SCALING_APS type indicating that the APS includes scaling list data (or if the value of the type information of the APS parameters (e.g., aps_params_type) is 2), the APS may include scaling list data (e.g., scaling_list_data()). That is, the decoding device may obtain and parse the scaling list data (e.g., scaling_list_data()) via the APS based on the SCALING_APS type information indicating that the APS includes scaling list data. That is, scaling list data may be included in the APS based on the APS type information (SCALING_APS type information). The scaling list data may include scaling list parameters for deriving a scaling list / scaling matrix / scale factor used in the quantization / dequantization process as described above. In other words, the scaling list data may include syntax elements used to configure a scaling list.
[0446] Also, as an example, the APS ID information may have a value within a specific range. For example, the value of the APS ID information may have a value within a specific range from 0 to 3 or from 0 to 7. However, this is only an example, and the value range of the APS ID information may have other values. Also, the value range of the APS ID information may be determined based on the APS type information (e.g., aps_params_type). In other words, based on the APS type information representing one of the APS type related to the ALF, the APS type related to the LMCS, or the APS type related to the scaling list, the value range of the APS ID information may have a range from 0 to 3 or from 0 to 7. For the APS type information (e.g., SCALING_APS type) representing an APS related to the scaling list data, the value of the APS ID information may be represented based on a syntax element (e.g., slice_scaling_list_aps_id) as shown in Table 47 above. For example, when the APS type information (e.g., aps_params_type) indicates that the APS is an APS including scaling list data (e.g., SCALING_APS type), the value of the APS ID information may have a value within a range from 0 to 3, or from 0 to 7. Here, a slice in one picture may refer to an APS including scaling list data whose APS ID has the same value (i.e., SCALING LIST APS). Alternatively, when the APS type information (e.g., aps_params_type) indicates that the APS is an ALF-related APS (e.g., ALF_APS type), the value of the APS ID information may have a value within a range from 0 to 7. Alternatively, when the APS type information (e.g., aps_params_type) indicates that the APS is an LMCS-related APS (e.g., LMCS_APS type), the value of the APS ID information may have a value within a range from 0 to 3.
[0447] As described above, the SPS syntax and the PPS syntax can be configured so that the scaling list data syntax is not directly signaled at the SPS or PPS level. For example, only the scaling list enable flag (scaling_list_enabled_flag) is explicitly signaled in the SPS, and the scaling list (scaling_list_data()) can be parsed individually in the lower level syntax (e.g., APS) based on the enable flag (scaling_list_enabled_flag) in the SPS. Therefore, according to one embodiment of this document, the scaling list data can be parsed / signaled according to a hierarchical structure, thereby improving coding efficiency.
[0448] The decoding device can derive quantized transform coefficients for the current block based on the residual information (S1310).
[0449] In one embodiment, the decoding device may obtain residual information included in the image information. As described above, the residual information may include information such as value information of the quantized transform coefficients, position information, a transform technique, a transform kernel, and a quantization parameter. The decoding device may derive quantized transform coefficients for the current block based on the quantized transform coefficient information included in the residual information.
[0450] The decoding apparatus can derive the transform coefficients by performing an inverse quantization process on the quantized transform coefficients (S1320).
[0451] In one embodiment, the decoding apparatus may derive transform coefficients by applying an inverse quantization process to the quantized transform coefficients based on the scaling list data. Specifically, the decoding apparatus may apply frequency-specific weighting that adjusts quantization strength according to frequency. In this case, the inverse quantization process may be further performed based on frequency-specific quantization scale values. The quantization scale values for the frequency-specific weighting may be derived using a scaling matrix. For example, the decoding apparatus may use a predefined scaling matrix, or may use frequency-specific quantization scale information for a scaling matrix signaled from the encoding apparatus. The frequency-specific quantization scale information may include scaling list data. A (modified) scaling matrix may be derived based on the scaling list data.
[0452] That is, the decoding apparatus may further apply frequency-specific weighting when performing the inverse quantization process, and may derive transform coefficients by applying the inverse quantization process to the quantized transform coefficients based on the scaling list data.
[0453] In one embodiment, the decoding device may obtain an APS included in image information, and may obtain scaling list data based on APS ID information and APS type information included in the APS. For example, the decoding device may obtain scaling list data included in the APS based on SCALING_APS type information indicating that the APS includes scaling list data. In this case, the decoding device may derive a scaling matrix based on the scaling list data, derive a scaling factor based on the scaling matrix, and derive a transform coefficient by applying inverse quantization based on the scaling factor. The process of performing scaling based on such scaling list data has been described in detail using Tables 5 to 17 as examples, and therefore, in this embodiment, redundant content and detailed description will be omitted.
[0454] In addition, the decoding device may determine whether to apply frequency-specific weighting in the inverse quantization process (i.e., whether to derive transform coefficients using a (frequency-based quantization) scaling list in the inverse quantization process). For example, the decoding device may determine whether to use scaling list data based on a first availability flag obtained from an SPS included in the image information and / or second availability flag information obtained from header information included in the image information. If it is determined to use the scaling list data based on the first availability flag and / or the second availability flag information, the decoding device may obtain APS ID information for an APS including the scaling list data via the header information, identify the APS based on the APS ID information, and obtain the scaling list data from the identified APS. That is, since the header information may include APS ID information related to the scaling list data, the APS including the scaling list data may be identified based on the APS ID information related to the scaling list data included in the header information.
[0455] The decoding device can derive residual samples based on the transform coefficients (S1330).
[0456] In one embodiment, the decoding apparatus may derive a residual sample of the current block by performing an inverse transform on transform coefficients of the current block. In this case, the decoding apparatus may obtain information indicating whether to apply an inverse transform to the current block (i.e., transform skip flag information) and derive the residual sample based on the information (i.e., transform skip flag information).
[0457] For example, if an inverse transform is not applied to the transform coefficients (the value of the transform skip flag information for the current block is 1), the decoding device may derive the transform coefficients from the residual samples of the current block. Alternatively, if an inverse transform is applied to the transform coefficients (the value of the transform skip flag information for the current block is 0), the decoding device may perform an inverse transform on the transform coefficients to derive the residual samples of the current block.
[0458] The decoding device can generate reconstructed samples based on the residual samples (S1340).
[0459] In one embodiment, the decoding apparatus may determine whether to perform inter prediction or intra prediction on the current block based on prediction information (e.g., prediction mode information) included in the image information, and may perform prediction based on the determination to derive a prediction sample for the current block. The decoding apparatus may then generate a reconstructed sample based on the prediction sample and the residual sample. In this case, the decoding apparatus may directly use the prediction sample as a reconstructed sample according to the prediction mode, or may generate a reconstructed sample by adding the residual sample to the prediction sample. In addition, the decoding apparatus may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. As described above, the decoding apparatus may then apply an in-loop filtering procedure, such as a deblocking filtering and / or an SAO procedure, to the reconstructed picture to improve subjective / objective image quality as necessary.
[0460] In the above-described embodiments, the method is described based on a flow chart with a series of steps or blocks, but the embodiments of this document are not limited to the order of steps, and certain steps can occur in a different order or simultaneously with different steps than those described above. In addition, those skilled in the art will understand that the steps shown in the flow chart are not exclusive, and other steps can be included, or one or more steps of the flow chart can be deleted without affecting the scope of this document.
[0461] The above-described method according to the present document may be implemented in software form, and the encoding device and / or decoding device according to the present document may be included in a device that performs image processing, such as a TV, a computer, a smartphone, a set-top box, or a display device.
[0462] When the embodiments in this document are implemented in software, the methods described above may be implemented with modules (processes, functions, etc.) that perform the functions described above. The modules may be stored in a memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor in various ways that are well known. The processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits, and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and / or other storage devices. That is, the embodiments described in this document may be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units shown in each drawing may be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored on a digital storage medium.
[0463] In addition, the decoding device and encoding device to which this document is applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video interactive device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, a virtual reality (VR) device, an argumente reality (AR) device, an image telephone video device, a transportation means terminal (e.g., a vehicle (including an autonomous vehicle), an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, an over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.
[0464] In addition, the processing method to which this document is applied may be produced in the form of a program executed by a computer and may be stored in a computer-readable recording medium. In addition, multimedia data having a data structure according to this document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium may include a medium realized in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bit stream generated by the encoding method may be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.
[0465] Also, the embodiments of the present document may be implemented in a computer program product by program code, the program code being executable by a computer according to the embodiments of the present document. The program code may be stored on a computer readable carrier.
[0466] FIG. 15 illustrates an example of a content streaming system in which the embodiments disclosed herein may be applied.
[0467] Referring to FIG. 15, the content streaming system applied to the embodiments of this document can broadly include an encoding server, a streaming server, a web server, a media repository, a user device, and a multimedia input device.
[0468] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.
[0469] The bitstream may be generated by an encoding method or a bitstream generation method applied to an embodiment of this document, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0470] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server controls commands / responses between devices in the content streaming system.
[0471] The streaming server may receive content from a media repository and / or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a certain period of time in order to provide a smooth streaming service.
[0472] Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glass, head mounted displays (HMDs), digital TVs, desktop computers, and digital signage).
[0473] Each server in the content streaming system can be operated as a distributed server, in which case data received at each server can be processed in a distributed manner.
[0474] The claims herein may be combined in various ways. For example, the technical features of the method claims herein may be combined and realized in an apparatus, the technical features of the device claims herein may be combined and realized in a method, the technical features of the method claims herein and the technical features of the device claims herein may be combined and realized in an apparatus, and the technical features of the method claims herein and the technical features of the device claims herein may be combined and realized in a method.
Claims
1. An image decoding method performed by a decoding device, obtaining image information including prediction information and residual information from a bitstream; deriving a predicted sample for a current block by performing a prediction based on the prediction information; deriving quantized transform coefficients for the current block based on the residual information; performing an inverse quantization process on the quantized transform coefficients based on scaling list data to derive transform coefficients; deriving residual samples based on the transform coefficients; generating a reconstructed sample based on the predicted sample and the residual sample; The image information includes an adaptation parameter set (APS) and a sequence parameter set (SPS); The APS includes APS ID information and APS type information, the scaling list data is included in the APS based on the APS type information; Based on the APS type information indicating that the scaling list data is included in the APS, a value of the APS ID information is equal to or greater than 0 and equal to or less than a specific value; The specific value is predetermined.
2. An image encoding method performed by an encoding device, comprising: - performing a prediction to derive a predicted sample for the current block; deriving a residual sample for the current block based on the predicted sample; performing a transformation process based on the residual samples to derive transformation coefficients; performing a quantization process on the transform coefficients to derive quantized transform coefficients; generating forecast information based on the forecast; generating residual information based on the quantized transform coefficients; encoding image information including the prediction information and the residual information; The image information includes an adaptation parameter set (APS) and a sequence parameter set (SPS); The APS includes APS ID information and APS type information, scaling list data for the quantized transform coefficients is included in the APS based on the APS type information; Based on the APS type information indicating that the scaling list data is included in the APS, a value of the APS ID information is equal to or greater than 0 and equal to or less than a specific value; The particular value is predetermined.
3. A method for transmitting data for an image, comprising: obtaining a bitstream for the image; transmitting the data including the bitstream; the bitstream is generated by deriving a prediction sample for a current block by performing a prediction, deriving a residual sample for the current block based on the prediction sample, performing a transformation process based on the residual sample to derive a transformation coefficient, performing a quantization process on the transformation coefficient to derive a quantized transformation coefficient, generating prediction information based on the prediction, generating residual information based on the quantized transformation coefficient, and encoding image information including the prediction information and the residual information; The image information includes an adaptation parameter set (APS) and a sequence parameter set (SPS); The APS includes APS ID information and APS type information, scaling list data for the quantized transform coefficients is included in the APS based on the APS type information; Based on the APS type information indicating that the scaling list data is included in the APS, a value of the APS ID information is equal to or greater than 0 and equal to or less than a specific value; A data transmission method, wherein the specific value is predetermined.
