Decoding and encoding apparatus and apparatus for transmitting data for image
By applying adaptive loop filtering (ALF) technology in decoding and encoding devices, the problem of low high-resolution, high-quality image/video compression efficiency is solved, improving visual quality and reducing transmission and storage costs.
Patent Information
- Application Number
- CN202510596096.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-08
- Filing Date
- 2020-07-08
- Publication Date
- 2025-07-25
AI Technical Summary
The prior art is inefficient and costly in the compression, transmission and storage of high resolution, high quality images/videos, and it is difficult to effectively apply adaptive loop filtering (ALF) to improve subjective/objective visual quality.
The decoding device derives the adaptive loop filter (ALF) information, generates and reconstructs samples based on the prediction-related information, and uses the alternative filter index to perform the ALF process. The encoding device determines the prediction mode and executes the ALF process to efficiently signal the ALF related information.
Improve image/video compression efficiency, enhance subjective/objective visual quality, and realize efficient image/video data transmission and storage.
Smart Images

Figure CN120378608A_ABST
Abstract
Description
[0001] This application is a divisional application of the patent application with the original application number 202080063207.7 (International Application No.: PCT / KR2020 / 008958, filing date: July 8, 2020, invention title: Video or Image Coding Based on In-Loop Filtering). Technical Field
[0002] The present disclosure relates to video or image coding based on in-loop filtering. Background Art
[0003] Recently, the demand for high-resolution and high-quality images / videos such as 4K or 8K or higher ultra-high definition (UHD) images / videos has increased in various fields. As image / video data has high resolution and high quality, the amount of information or bits to be transmitted increases relative to existing image / video data. Therefore, transmitting image data using media such as existing wired / wireless broadband lines or existing storage media or storing image / video data using existing storage media increases the transmission cost and storage cost.
[0004] In addition, the interest and demand for immersive media such as virtual reality (VR) and artificial reality (AR) content or holograms have recently increased, and the broadcast of images / videos (e.g., game images) having characteristics different from real images has increased.
[0005] Therefore, a very efficient image / video compression technology is needed to effectively compress, transmit, store, and reproduce the information of high-resolution and high-quality images / videos having various characteristics as described above.
[0006] In addition, filtering techniques using adaptive loop filtering (ALF) to improve compression efficiency and increase subjective / objective visual quality have been discussed. To efficiently apply these techniques, a method for efficiently signaling relevant information is needed. Summary of the Invention
[0007] Technical Solution
[0008] According to an embodiment of the present disclosure, an image decoding method performed by a decoding device is provided. The method includes the steps of: obtaining image information including adaptive loop filter (ALF) information and prediction-related information from a bitstream; deriving a predicted sample of a current block based on the prediction-related information; generating a reconstructed sample based on the predicted sample; and performing an ALF process on the reconstructed sample based on the ALF information, wherein the ALF information includes alternative filter information for a chrominance component of the current block, an index of an alternative filter applied to the chrominance component of the current block is derived based on the alternative filter information, and the ALF process is performed on the chrominance component of the current block based on the index of the alternative filter.
[0009] According to another embodiment of the present disclosure, a video encoding method performed by an encoding device is provided. The method includes the following steps: determining a prediction mode of a current block and deriving prediction samples based on the prediction mode; generating reconstructed samples based on the prediction samples; performing an Adaptive Loop Filter (ALF) process on the reconstructed samples; and encoding image information including ALF information and prediction-related information, wherein the ALF information includes alternative filter information for a chrominance component of the current block, and the alternative filter information indicates an index of an alternative filter applied to the chrominance component of the current block.
[0010] According to another embodiment of the present disclosure, a computer-readable digital storage medium is provided, which stores a bitstream including image information that causes a decoding device to perform an image decoding method. The image decoding method includes the following steps: obtaining, from the bitstream, image information including Adaptive Loop Filter (ALF) information and prediction-related information; deriving prediction samples of a current block based on the prediction-related information; generating reconstructed samples based on the prediction samples; and performing an ALF process on the reconstructed samples based on the ALF information, wherein the ALF information includes alternative filter information for a chrominance component of the current block, an index of an alternative filter applied to the chrominance component of the current block is derived based on the alternative filter information, and the ALF process is performed on the chrominance component of the current block based on the index of the alternative filter.
[0011] Advantageous Effects
[0012] According to an embodiment of the present disclosure, the overall image / video compression efficiency can be increased.
[0013] According to an embodiment of the present disclosure, subjective / objective visual quality can be increased through efficient filtering.
[0014] According to an embodiment of the present disclosure, ALF-related information can be signaled efficiently. Description of the Drawings
[0015] Figure 1 An example of a video / image encoding system to which embodiments of the present disclosure can be applied is shown.
[0016] Figure 2 is a diagram schematically showing the configuration of a video / image encoding device to which embodiments of this document can be applied.
[0017] Figure 3 is a diagram schematically showing the configuration of a video / image decoding device to which embodiments of this document can be applied.
[0018] Figure 4 A picture including a CTU is shown exemplarily.
[0019] Figure 5 Context Adaptive Binary Arithmetic Coding (CABAC) for encoding syntactic elements is exemplarily shown.
[0020] Figure 6 An encoder of an encoding device is shown.
[0021] Figure 7 A decoder of a decoding device is shown.
[0022] Figure 8 A hierarchical structure for encoding an image / video is exemplarily shown.
[0023] Figure 9 It is a flowchart schematically showing an example of ALF processing.
[0024] Figure 10 An example of the shape of an ALF filter is shown.
[0025] Figure 11 An example of the hierarchical structure of ALF data is shown.
[0026] Figure 12 Another example of the hierarchical structure of ALF data is shown.
[0027] Figure 13 A fixed order corresponding to position-dependent filter coefficients is shown.
[0028] Figure 14 and Figure 15 An example of a video / image encoding method and related components according to an embodiment of this document is schematically shown.
[0029] Figure 16 and Figure 17 An example of an image / video decoding method and related components according to an embodiment of this document is schematically shown.
[0030] Figure 18 An example of a content stream system to which the embodiments disclosed in this document can be applied is shown. Detailed Description
[0031] Although the present disclosure may have various modifications and configurations, certain embodiments have been shown in the drawings and described in detail herein. However, this should not be construed as limiting the present disclosure to any specific embodiment. The terms used herein are presented for describing specific embodiments and are not intended to limit the technical idea of the present disclosure. Unless otherwise specified, singular terms may include plural forms. It will be understood that the terms "comprising" or "having" when used herein specify the presence of the stated features, integers, steps, operations, elements, components, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
[0032] Each component in the drawings described in this disclosure is shown independently for convenience of describing different characteristic functions, and it is not meant that the components are implemented in separate hardware or separate software. For example, two or more configurations can be combined to form one configuration, or one configuration can be divided into multiple configurations. Embodiments in which the respective configurations are integrated and / or separated are also included within the scope of this disclosure without departing from the spirit of this disclosure.
[0033] In this specification, "A or B" can mean "only A", "only B", or "both A and B". In other words, in this specification, "A or B" can be interpreted as "A and / or B". For example, in this specification, "A, B, or C" can mean "only A", "only B", "only C", or "any combination of A, B, and C".
[0034] The slashes ( / ) or commas used in this specification 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".
[0035] In this specification, "at least one of A and B" can mean "only A", "only B", or "both A and B". Additionally, in this specification, the expressions "at least one of A or B" or "at least one of A and / or B" can be interpreted as "at least one of A and B".
[0036] Furthermore, in this specification, "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" or "at least one of A, B, and / or C" can mean "at least one of A, B, and C".
[0037] Furthermore, the parentheses used in this specification can mean "for example". Specifically, when indicated as "prediction (intra prediction)", it can mean that "intra prediction" is presented as an example of "prediction". In other words, "prediction" in this specification is not limited to "intra prediction", and "intra prediction" can be presented as an example of "prediction". Additionally, when indicated as "prediction (i.e., intra prediction)", it can also mean that "intra prediction" is presented as an example of "prediction".
[0038] The technical features described separately in one drawing in this specification can be implemented separately or simultaneously.
[0039] Hereinafter, preferred embodiments of the present disclosure will be described in more detail with reference to the drawings. Hereinafter, the same reference numerals are used for the same components in the drawings, and repeated descriptions of the same components may be omitted.
[0040] Figure 1 An example of a video / image encoding system to which the present disclosure can be applied is shown.
[0041] Referring Figure 1 , the video / image encoding system may include a first device (source device) and a second device (receiving device). The source device may send the encoded video / image information or data in the form of a file or a stream to the receiving device via a digital storage medium or a network.
[0042] The source device may include a video source, an encoding device, and a transmitter. The receiving device may include a receiver, 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 include a display, and the display may be configured as a separate device or an external component.
[0043] The video source may obtain video / images through processes such as capturing, synthesizing, or generating video / images. The video source may include a video / image capturing device and / or a video / image generating device. For example, the video / image capturing device may include one or more cameras, a video / image archive including previously captured video / images, etc. For example, the video / image generating device may include a computer, a tablet computer, and a smart phone, and may generate video / images (electronically). For example, virtual video / images may be generated by a computer or the like. In this case, the video / image capturing process may be replaced by a process of generating relevant data.
[0044] The encoding device may encode the input video / images. For compression and encoding efficiency, the encoding device may perform a series of processes such as prediction, transformation, and quantization. The encoded data (encoded video / image information) may be output in the form of a bitstream.
[0045] The transmitter may send the encoded image / video information or data output in the form of a bitstream to the receiver of the receiving device in the form of a file or a stream via a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include elements for generating a media file in a predetermined file format and may include elements for transmission via a broadcast / communication network. The receiver may receive / extract the bitstream and send the received bitstream to the decoding device.
[0046] The decoding device may decode the video / images by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.
[0047] The renderer can render the decoded video / image. The rendered video / image can be displayed via a display.
[0048] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document can be applied to the methods disclosed in the Versatile Video Coding (VVC) standard, the Essential Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the Second Generation Audio Video Coding Standard (AVS2), or the next-generation video / image coding standards (e.g., H.267, H.268, etc.).
[0049] This document presents various embodiments of video / image coding, and unless otherwise specified, the above embodiments can also be executed in combination with each other.
[0050] In this document, video can refer to a series of images over time. A picture generally refers to a unit of an image representing a specific time range, and a slice / tile refers to a unit that constitutes a part of a picture in terms of coding. A slice / tile can include one or more Coding Tree Units (CTUs). A picture can be composed of one or more slices / tiles.
[0051] A tile is a rectangular region of CTUs within a specific tile column and a specific tile row in a picture. A tile column is a rectangular region of CTUs with a height equal to the height of the picture and a width specified by a syntax element in the picture parameter set. A tile row is a rectangular region of CTUs with a height specified by a syntax element in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of CTUs that divides a picture, where the CTUs are sequentially ordered in the raster scan of the CTUs of a tile, while the tiles in the picture are sequentially ordered in the raster scan of the tiles of the picture. A slice can include multiple complete tiles of a picture or multiple consecutive CTU rows in a tile, which can be included in one NAL unit. In this document, tile group and slice can be used interchangeably. For example, in this document, a tile group / tile group header can be referred to as a slice / slice header.
[0052] In addition, a picture can be divided into two or more sub-pictures. A sub-picture can be a rectangular region of one or more slices within a picture.
[0053] A pixel or pel can mean the smallest unit that constitutes a picture (or image). Additionally, "sample" can be used as a term corresponding to a pixel. A sample generally can represent a pixel or a pixel value, and can represent only the pixel / pixel value of the luminance component or only the pixel / pixel value of the chrominance component.
[0054] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. A unit may include one luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or a region. In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients in M columns and N rows. Alternatively, a sample may mean a pixel value in the spatial domain, and when such a pixel value is transformed to the frequency domain, it may mean a transform coefficient in the frequency domain.
[0055] Figure 2 is a diagram schematically showing a configuration of a video / image encoding device to which this document can be applied. Hereinafter, the video encoding device may include an image encoding device.
[0056] Refer to Figure 2 , the encoding device 200 includes an image splitter 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-frame predictor 221 and an intra-frame 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. According to an embodiment, the image splitter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250, and the filter 260 may be configured by at least one hardware component (e.g., an encoder chipset or a processor). Additionally, the memory 270 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium. The hardware component may further include the memory 270 as an internal / external component.
[0057] The image splitter 210 may split an input image (or picture or frame) input to the encoding device 200 into one or more processors. For example, the processors may be referred to as coding units (CUs). In this case, the coding units may be recursively split from coding tree units (CTUs) or largest coding units (LCUs) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, one coding unit may be split into multiple coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quadtree structure may be applied first, and later the binary tree structure and / or the ternary structure may be applied. Alternatively, the binary tree structure may be applied first. The encoding process according to the present disclosure may be performed based on the final coding units that are no longer splittable. In this case, depending on the image characteristics and based on the encoding efficiency, the largest coding unit may be used as the final coding unit, or if necessary, the coding unit may be recursively split into coding units with a deeper depth and the coding unit with an optimal size may be used as the final coding unit. Here, the encoding process may include processes of prediction, transformation, and reconstruction (to be described later). As another example, the processor may further include a prediction unit (PU) or a transformation unit (TU). In this case, the prediction unit and the transformation unit may be split or separated from the above-mentioned final coding unit. The prediction unit may be a unit for sample prediction, and the transformation unit may be a unit for deriving transformation coefficients and / or a unit for deriving a residual signal from the transformation coefficients.
[0058] In some cases, the unit may be used interchangeably with terms such as block or region. In general, an M×N block may represent a set of samples or transformation coefficients composed of M columns and N rows. Samples generally may represent pixels or pixel values, and may represent only the pixels / pixel values of the luminance component or only the pixels / pixel values of the chrominance component. Samples may be used as a term corresponding to one picture (or image) of pixels or picture elements.
[0059] In the encoding device 200, a prediction signal (prediction block, prediction sample array) output from the inter-frame predictor 221 or the intra-frame predictor 222 is subtracted from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array), and the generated residual signal is sent to the transformer 232. In this case, as shown, the unit that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoding device 200 may be referred to as the subtractor 231. The predictor may perform prediction on a block to be processed (hereinafter, referred to as the current block) and generate a prediction block including the prediction samples of the current block. The predictor may determine whether to apply intra-frame prediction or inter-frame prediction based on the current block or the CU. As will be described later in the description of each prediction mode, the predictor may generate various information related to the prediction (e.g., prediction mode information) and send the generated information to the entropy encoder 240. The information about the prediction may be encoded in the entropy encoder 240 and output in the form of a bitstream.
[0060] The intra-frame predictor 222 may predict the current block by referring to the samples in the current picture. Depending on the prediction mode, the samples referred to may be located near the current block or may be separated. In intra-frame prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. For example, the non-directional modes may include the DC mode and the planar mode. For example, depending on the level of detail of the prediction direction, the directional modes may include 33 directional prediction modes or 65 directional prediction modes. However, this is only an example, and more or fewer directional prediction modes may be used according to the settings. The intra-frame predictor 222 may use the prediction mode applied to the neighboring block to determine the prediction mode applied to the current block.
[0061] The inter - frame predictor 221 can derive a prediction block of a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. Here, in order to reduce the amount of motion information transmitted in the inter - frame prediction mode, the motion information can be predicted in units of blocks, sub - blocks, or samples based on the correlation of the motion information between neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can also include inter - frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter - frame prediction, neighboring blocks can include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block can be the same or different. The temporal neighboring block can be referred to as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block can be referred to as a collocated picture (colPic). For example, the inter - frame predictor 221 can configure a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter - frame prediction can be performed based on various prediction modes. For example, in the skip mode and the merge mode, the inter - frame predictor 221 can use the motion information of neighboring blocks as the motion information of the current block. In the skip mode, different from the merge mode, the residual signal may not be transmitted. In the case of the motion vector prediction (MVP) mode, the motion vector of a neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling a motion vector difference.
[0062] The predictor 220 can generate a prediction signal based on various prediction methods described below. For example, the predictor can apply not only intra - frame prediction or inter - frame prediction to predict a block, but also apply both intra - frame prediction and inter - frame prediction simultaneously. This can be referred to as combined inter - frame and intra - frame prediction (CIIP). Additionally, the predictor can predict a block based on the intra - block copy (IBC) prediction mode or the palette mode. The IBC prediction mode or the palette mode can be used for content image / video coding such as games, e.g., screen content coding (SCC). IBC basically performs prediction in the current picture, but can be performed similarly to inter - frame prediction such that a reference block is derived in the current picture. That is, IBC can use at least one inter - frame prediction technique described in the present disclosure. The palette mode can be regarded as an example of intra - frame coding or intra - frame prediction. When the palette mode is applied, the sample values within the picture can be signaled based on information about the palette table and the palette index.
[0063] The prediction signal generated by a predictor (including the inter-frame predictor 221 and / or the intra-frame predictor 222) can be used to generate a reconstructed signal or to generate a residual signal. The transformer 232 can generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique can include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loève transform (KLT), a graph-based transform (GBT), or a conditional non-linear transform (CNT). Here, GBT means a transform obtained from a graph when the relationship information between pixels is represented by a graph. CNT refers to a transform generated based on a prediction signal generated using all previously reconstructed pixels. Additionally, the transform process can be applied to square pixel blocks of the same size or can be applied to blocks of variable size other than square.
[0064] The quantizer 233 can quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 can encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. The information about the quantized transform coefficients can be referred to as residual information. The quantizer 233 can rearrange the block-type quantized transform coefficients into a one-dimensional vector form based on the coefficient scan order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about the transform coefficients can be generated. The entropy encoder 240 can perform various coding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), etc. The entropy encoder 240 can encode together or separately the information required for video / image reconstruction other than the quantized transform coefficients (e.g., the values of syntax elements, etc.). The encoded information (e.g., the encoded video / image information) can be sent or stored in the form of a bitstream in units of NAL (network abstraction layer). The video / image information can also include information about various parameter sets, such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). Additionally, the video / image information can also include general constraint information. In the present disclosure, the information and / or syntax elements sent / signaled from the encoding device to the decoding device can be included in the video / picture information. The video / image information can be encoded through the above encoding process and included in the bitstream. The bitstream can be sent via a network or can be stored in a digital storage medium. The network can include a broadcast 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. A transmitter (not shown) for sending the signal output from the entropy encoder 240 and / or a storage unit (not shown) for storing the signal can be included as internal / external elements of the encoding device 200, and alternatively, the transmitter can be included in the entropy encoder 240.
[0065] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, a residual signal (residual block or residual samples) can be reconstructed by applying dequantization and inverse transformation to the quantized transform coefficients via the dequantizer 234 and the inverse transform unit 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the inter-prediction unit 221 or the intra-prediction unit 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If there is no residual in the block to be processed (e.g., in the case of applying the skip mode), the predicted block can be used as the reconstructed block. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. As described below, the generated reconstructed signal can be used for intra-prediction of the next block to be processed in the current picture and can be used for inter-prediction of the next picture through filtering.
[0066] In addition, luminance mapping with chroma scaling (LMCS) can be applied during picture encoding and / or reconstruction.
[0067] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). For example, various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various information related to filtering and send the generated information to the entropy encoder 240, as will be described later in the description of each filtering method. The information related to filtering can be encoded by the entropy encoder 240 and output in the form of a bitstream.
[0068] The modified reconstructed picture sent to the memory 270 can be used as a reference picture in the inter-prediction unit 221. When inter-prediction is applied by the encoding device, a prediction mismatch between the encoding device 200 and the decoding device 300 can be avoided and the encoding efficiency can be improved.
[0069] The DPB of the memory 270 can store the modified reconstructed picture used as a reference picture in the inter-prediction unit 221. The memory 270 can store the motion information of the blocks that derive (or encode) the motion information in the current picture and / or the motion information of the blocks that have been reconstructed in the picture. The stored motion information can be sent to the inter-prediction unit 221 and used as the motion information of spatially neighboring blocks or temporally neighboring blocks. The memory 270 can store the reconstructed samples of the reconstructed blocks in the current picture and can transfer the reconstructed samples to the intra-prediction unit 222.
[0070] In the present disclosure, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. When transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or, for consistency of expression, may still be referred to as transform coefficients.
[0071] In addition, in the present disclosure, 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 coefficients, and the information about the transform coefficients may be signaled by a residual coding syntax. The transform coefficients may be derived based on the residual information (or the information about the transform coefficients), and the scaled transform coefficients may be derived by an inverse transform (scaling) of the transform coefficients. The residual samples may be derived based on an inverse transform (transform) of the scaled transform coefficients. These details may also be applied / expressed in other parts of the present disclosure.
[0072] Figure 3 is a diagram schematically showing the configuration of a video / image decoding device to which the present disclosure can be applied.
[0073] Referring to Figure 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 intra predictor 331 and an inter predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured by hardware components (e.g., a decoder chipset or a processor). Additionally, the memory 360 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware components may also include the memory 360 as an internal / external component.
[0074] When receiving a bitstream including video / image information, the decoding device 300 may reconstruct an image corresponding to the processing of the video / image information in the Figure 2 encoding device. For example, the decoding device 300 may derive units / blocks based on the block partitioning related information obtained from the bitstream. The decoding device 300 may perform decoding using the processor applied in the encoding device. Thus, for example, the decoding processor may be an encoding unit, and the encoding unit may be partitioned from a coding tree unit or a largest coding unit according to a quadtree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units may be derived from the coding unit. The reconstructed image signal decoded and output by the decoding device 300 may be reproduced by a reproduction device.
[0075] The decoding device 300 may receive from Figure 2The signal output by the encoding device in the form of a bitstream, and the received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive the information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information can also include information about various parameter sets, such as the Adaptive Parameter Set (APS), Picture Parameter Set (PPS), Sequence Parameter Set (SPS), or Video Parameter Set (VPS). Additionally, the video / image information can also include general constraint information. The decoding device can also decode the picture based on the information about the parameter sets and / or the general constraint information. The signaled / received information and / or syntax elements described later in this disclosure can be decoded through the decoding process and obtained from the bitstream. For example, the entropy decoder 310 decodes the information in the bitstream based on an encoding method such as exponential Golomb coding, CAVLC, or CABAC, and outputs the syntax elements required for image reconstruction and the quantization values of the transform coefficients of the residuals. More specifically, the CABAC entropy decoding method can receive the bins corresponding to the respective syntax elements in the bitstream, use the information of the syntax element to be decoded, the decoding information of the block to be decoded, or the information of the symbols / bins decoded in the previous stage to determine the context model, and perform arithmetic decoding on the bins by predicting the probability of the bin occurrence according to the determined context model, and generate the symbols corresponding to the values of the respective syntax elements. In this case, the CABAC entropy decoding method can update the context model by using the information of the decoded symbols / bins for the context model of the next symbol / bin after determining the context model. Among the information decoded by the entropy decoder 310, the information related to prediction can be provided to the predictors (inter-frame predictor 332 and intra-frame predictor 331), and the residual values (i.e., the quantized transform coefficients and related parameter information) for which entropy decoding has been performed in the entropy decoder 310 can be input to the residual processor 320. The residual processor 320 can derive the residual signal (residual block, residual sample, residual sample array). Additionally, the information about filtering among the information decoded by the entropy decoder 310 can be provided to the filter 350. Furthermore, the receiver (not shown) for receiving the signal output by the encoding device can also be configured as an internal / external component of the decoding device 300, or the receiver can be a component of the entropy decoder 310. Additionally, the decoding device according to this disclosure can be referred to as a video / image / picture decoding device, and the decoding device can be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder can include the entropy decoder 310, and the sample decoder can include at least one of a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.
[0076] The dequantizer 321 can dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 can rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scan order executed in the encoding device. The dequantizer 321 can perform dequantization on the quantized transform coefficients using quantization parameters (e.g., quantization step information) and obtain the transform coefficients.
[0077] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0078] The predictor can perform prediction on the current block and generate a prediction block including the prediction samples of the current block. The predictor can determine whether to apply intra prediction or inter prediction to the current block based on the information about prediction output from the entropy decoder 310 and can determine a specific intra / inter prediction mode.
[0079] The predictor 330 can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction simultaneously. This can be referred to as combined inter and intra prediction (CIIP). Additionally, the predictor can predict a block based on the intra block copy (IBC) prediction mode or the palette mode. The IBC prediction mode or the palette mode can be used for content image / video coding such as games, e.g., screen content coding (SCC). IBC basically performs prediction in the current picture, but can be performed similarly to inter prediction such that a reference block is derived in the current picture. That is, IBC can use at least one of the inter prediction techniques described in the present disclosure. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample values within the picture can be signaled based on the information about the palette table and the palette index.
[0080] The intra predictor 331 can predict the current block by referring to the samples in the current picture. Depending on the prediction mode, the samples referred to can be located near the current block or can be separated. In intra prediction, the prediction mode can include a plurality of non-directional modes and a plurality of directional modes. The intra predictor 331 can use the prediction mode applied to the neighboring blocks to determine the prediction mode applied to the current block.
[0081] The inter-frame predictor 332 may derive a predicted block of the 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-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on the adjacent blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. The inter-frame prediction may be performed based on various prediction modes, and the information about the prediction may include information indicating the inter-frame prediction mode of the current block.
[0082] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to a prediction signal (predicted block, predicted sample array) output from a predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331). If there is no residual for the block to be processed, for example, when the skip mode is applied, the predicted block may be used as the reconstructed block.
[0083] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra-frame prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter-frame prediction of the next picture.
[0084] In addition, luminance mapping with chroma scaling (LMCS) may be applied in the picture decoding process.
[0085] The filter 350 may improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 360 (specifically, the DPB of the memory 360). For example, the various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0086] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the blocks that derive (or decode) the motion information in the current picture and / or the motion information of the blocks that have been reconstructed in the picture. The stored motion information can be sent to the inter-frame predictor 332 to be used as the motion information of spatially neighboring blocks or temporally neighboring blocks. The memory 360 can store the reconstructed samples of the reconstructed blocks in the current picture and transmit the reconstructed samples to the intra-frame predictor 331.
[0087] In this document, the embodiments described in the filter 260, the inter-frame predictor 221, and the intra-frame predictor 222 of the encoding device 200 can be the same as or respectively correspond to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300 and be applied accordingly. This also applies to the inter-frame predictor 332 and the intra-frame predictor 331.
[0088] As described above, in video coding, prediction is performed to increase the compression efficiency. Thus, a prediction block including prediction samples of a current block (a block to be encoded) can be generated. Here, the prediction block includes prediction samples in the spatial domain (or pixel domain). The prediction block is derived identically in the encoding device and the decoding device, and the encoding device decodes information about the residual between the original block and the prediction block (residual information) rather than the original sample values of the original block itself. By signaling the device, the image coding efficiency can be increased. The decoding device can derive a residual block including residual samples based on the residual information, and generate a reconstructed block including reconstructed samples by summing the residual block and the prediction block, and generate a reconstructed picture including the reconstructed block.
[0089] The residual information can be generated through transform processing and quantization processing. For example, the encoding device can derive a residual block between the original block and the prediction block, and perform transform processing on the residual samples (residual sample array) included in the residual block to derive transform coefficients. Then, by performing quantization processing on the transform coefficients, quantized transform coefficients are derived to signal the residual-related information (via the bitstream) to the decoding device. Here, the residual information can include position information, transform technique, transform kernel, quantization parameters, value information of the quantized transform coefficients, etc. The decoding device can perform dequantization / inverse transform processing based on the residual information and derive the residual samples (or residual block). The decoding device can generate a reconstructed picture based on the prediction block and the residual block. The encoding device can also dequantize / inverse transform the quantized transform coefficients for inter-frame prediction reference of a later picture to derive a residual block, and generate a reconstructed picture based on it.
[0090] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. When transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or, for consistency of expression, may still be referred to as transform coefficients.
[0091] 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 coefficients, and the information about the transform coefficients may be signaled by the residual coding syntax. The transform coefficients may be derived based on the residual information (or the information about the transform coefficients), and the scaled transform coefficients may be derived by inverse-transforming (scaling) the transform coefficients. The residual samples may be derived based on the inverse-transforming (transforming) of the scaled transform coefficients. This may also be applied / expressed in other parts of this document.
[0092] Intra prediction may refer to a prediction that generates prediction samples for a current block based on reference samples in a picture (hereinafter referred to as the current picture) to which the current block belongs. When intra prediction is applied to the current block, neighboring reference samples to be used for the intra prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nW×nH and a total of 2×nH samples neighboring the lower left, samples adjacent to the upper boundary of the current block and a total of 2×nW samples neighboring the upper right, and one sample neighboring the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include a plurality of upper neighboring samples and a plurality of left neighboring samples. Additionally, 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 lower boundary of the current block, and one sample neighboring the lower right of the current block.
[0093] However, some of the neighboring reference samples of the current block may not have been decoded or may not be available yet. In this case, the decoder may configure the neighboring reference samples to be used for prediction by replacing the unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction may be configured by interpolation of the available samples.
[0094] When deriving the neighboring reference samples, (i) the prediction samples may be derived based on the average or interpolation of the neighboring reference samples of the current block, and (ii) the prediction samples may be derived based on the reference samples among the peripheral reference samples of the current block that exist in a specific (prediction) direction of the prediction samples. The case of (i) may be referred to as a non-directional mode or a non-angle mode, and the case of (ii) may be referred to as a directional mode or an angle mode.
[0095] In addition, a predicted sample can also be generated by interpolating between a second neighboring sample and a first neighboring sample among neighboring reference samples, where the predicted sample based on the current block is in a direction opposite to the prediction direction of the intra prediction mode of the current block. The above situation can be referred to as linear interpolation intra prediction (LIP). Additionally, a chrominance prediction sample can be generated based on a linear model using luminance samples. This situation can be referred to as the LM mode.
[0096] Furthermore, a temporary predicted sample of the current block can be derived based on filtered neighboring reference samples, and at least one reference sample (i.e., unfiltered neighboring reference sample) derived according to the intra prediction mode among the existing neighboring reference samples and the temporary predicted sample can be weighted and summed to derive the predicted sample of the current block. The above situation can be referred to as position-dependent intra prediction (PDPC).
[0097] In addition, the reference sample row with the highest prediction accuracy among the neighboring multi-reference sample rows of the current block can be selected to derive a predicted sample using the reference samples located in the prediction direction on the corresponding row, and then the reference sample row used in this article can be indicated (signaled) to the decoding device to perform intra prediction coding. The above situation can be referred to as multi-reference row (MRL) intra prediction or MRL-based intra prediction.
[0098] Moreover, intra prediction can be performed by dividing the current block into vertical or horizontal sub-partitions based on the same intra prediction mode, and neighboring reference samples can be derived and used on a sub-partition basis. That is, in this case, the intra prediction mode of the current block also applies to the sub-partitions, and in some cases, the intra prediction performance can be improved by deriving and using neighboring reference samples on a sub-partition basis. This prediction method can be referred to as intra-sub-partition (ISP) or ISP-based intra prediction.
[0099] The above intra prediction methods can be referred to as intra prediction types separately from the intra prediction modes. Intra prediction types can be called by various terms such as intra prediction techniques or additional intra prediction modes. For example, the intra prediction type (or additional intra prediction mode) can include at least one of the above LIP, PDPC, MRL, and ISP. A general intra prediction method other than a specific intra prediction type such as LIP, PDPC, MRL, or ISP can be referred to as a normal intra prediction type. The normal intra prediction type can generally be applied when a specific intra prediction type is not applied, and prediction can be performed based on the above intra prediction modes. Additionally, post-filtering can be performed on the derived predicted samples as needed.
[0100] Specifically, the intra prediction process can include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and a predicted sample derivation step based on the intra prediction mode / type. Additionally, a post-filtering step can be performed on the derived predicted samples as needed.
[0101] When intra prediction is applied, the intra prediction mode applied to the current block may be determined using the intra prediction modes of neighboring blocks. For example, the decoding device may select one of the mpm candidates of the mpm list derived from the intra prediction modes of neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block based on the received most probable mode (mpm) index, and select one of the other remaining intra prediction modes not included in the mpm candidates (and the planar mode) based on the 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. If the mpm list does not include the planar mode as a candidate, the mpm list may have three candidates. When the mpm list does not include the planar mode as a candidate, a non-planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not the planar mode may be signaled. For example, the mpm flag may be signaled first, and when the value of the mpm flag is 1, the mpm index and the non-planar flag may be signaled. Additionally, when the value of the non-planar flag is 1, the mpm index may be signaled. Here, the mpm list is configured not to include the planar mode as a candidate, and the non-planar flag is not signaled first to check whether it is the planar mode because the planar mode is always considered as an mpm.
[0102] For example, whether the intra prediction mode applied to the current block is among the MPM candidates (and the planar mode) or in the residual mode can be indicated based on an MPM flag (e.g., Intra_luma_mpm_flag). A value of 1 for the MPM flag can indicate that the intra prediction mode of the current block is within the MPM candidates (and the planar mode), and a value of 0 for the MPM flag can indicate that the intra prediction mode of the current block is not among the MPM candidates (and the planar mode). A value of 0 for the non - planar flag (e.g., Intra_luma_not_planar_flag) can indicate that the intra prediction mode of the current block is the planar mode, and a value of 1 for the non - planar flag can indicate that the intra prediction mode of the current block is not the planar mode. The MPM index can be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the residual intra prediction mode information can be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the residual intra prediction mode information can index the residual intra prediction modes not included in the MPM candidates (and the planar mode) among all the intra prediction modes in the order of the prediction mode numbers to indicate one of them. The intra prediction mode can be the intra prediction mode of the luminance component (samples). Hereinafter, the intra prediction mode information can include at least one of an MPM flag (e.g., Intra_luma_mpm_flag), a non - planar flag (e.g., Intra_luma_not_planar_flag), an MPM index (e.g., mpm_idx or intra_luma_mpm_idx), and residual intra prediction mode information (rem_intra_luma_pred_mode or intra_luma_mpm_remainder). In this document, the MPM list can be referred to by various terms such as the MPM candidate list and candModeList. When applying MIP to the current block, a separate MPM flag (e.g., intra_mip_mpm_flag), an MPM index (e.g., intra_mip_mpm_idx), and residual intra prediction mode information (e.g., intra_mip_mpm_remainder) for MIP can be signaled, and the non - planar flag is not signaled.
[0103] In other words, generally, when performing block splitting on an image, the current block to be encoded and the neighboring blocks have similar image characteristics. Therefore, the probability that the current block and the neighboring blocks have the same or similar intra prediction modes is relatively high. Thus, the encoder can use the intra prediction mode of the neighboring blocks to encode the intra prediction mode of the current block.
[0104] For example, an encoder / decoder may configure a list of the most probable modes (MPMs) for a current block. The MPM list may also be referred to as an MPM candidate list. In this document, an MPM may refer to a mode that improves coding efficiency by considering the similarity between a current block and neighboring blocks in intra prediction mode coding. As described above, the MPM list may be configured to include the planar mode, or may be configured not to include the planar mode. For example, when the MPM list includes the planar mode, the number of candidates in the MPM list may be 6. And if the MPM list does not include the planar mode, the number of candidates in the MPM list may be 5.
[0105] The encoder / decoder may configure an MPM list including 5 or 6 MPMs.
[0106] To configure the MPM list, three types of modes may be considered: a default intra mode, a neighboring intra mode, and a derived intra mode.
[0107] For the neighboring intra mode, two neighboring blocks may be considered, namely, a left neighboring block and an upper neighboring block.
[0108] As described above, if the MPM list is configured not to include the planar mode, the planar mode is excluded from the list, and the number of MPM list candidates may be set to 5.
[0109] In addition, non - directional modes (or non - angular modes) among the intra prediction modes may include a DC mode based on the average of neighboring reference samples of the current block or an interpolated planar mode.
[0110] When inter - frame prediction is applied, the predictor of an encoding device / decoding device may derive a predicted sample by performing inter - frame prediction in units of blocks. Inter - frame prediction may be prediction derived in a manner that depends on data elements (e.g., sample values or motion information) of pictures other than the current picture. When inter - frame prediction is applied to a current block, the predicted block (predicted sample array) of the current block may be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index. Here, in order to reduce the amount of motion information transmitted in the inter - frame prediction mode, the motion information of the current block may be predicted in units of blocks, sub - blocks, or samples based on the correlation of the 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 also include information on the inter - frame prediction type (L0 prediction, L1 prediction, Bi - prediction, etc.). In the case of inter - frame prediction, neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks 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 referred to as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). For example, a motion information candidate list may be configured based on neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) may be signaled to derive the motion vector and / or reference picture index of the current block. Inter - frame prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the motion information of the current block may be the same as that of the neighboring block. In the skip mode, different from the merge mode, the residual signal may not be transmitted. In the case of the motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and the motion vector of the current block 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.
[0111] Depending on the inter - frame prediction type (L0 prediction, L1 prediction, Bi - prediction, etc.), the motion information may include L0 motion information and / or L1 motion information. The motion vector in the L0 direction may be referred to as the L0 motion vector or MVL0, and the motion vector in the L1 direction may be referred to as the L1 motion vector or MVL1. The prediction based on the L0 motion vector may be referred to as L0 prediction, the prediction based on the L1 motion vector may be referred to as L1 prediction, and the prediction based on both the L0 motion vector and the L1 motion vector may be referred to as bi - prediction. Here, the L0 motion vector may indicate the motion vector associated with the reference picture list L0 (L0), and the L1 motion vector may indicate the motion vector associated with the reference picture list L1 (L1). The reference picture list L0 may include pictures earlier than the current picture in the output order as reference pictures, and the reference picture list L1 may include pictures later than the current picture in the output order. The previous picture may be referred to as the forward (reference) picture, and the subsequent picture may be referred to as the backward (reference) picture. The reference picture list L0 may also include pictures later than the current picture in the output order as reference pictures. In this case, the previous picture may be indexed first in the reference picture list L0, and the subsequent picture may be indexed later. The reference picture list L1 may also include the previous picture earlier than the current picture in the output order as a reference picture. In this case, the subsequent picture may be indexed first in the reference picture list L1, and the previous picture may be indexed later. The output order may correspond to the picture order count (POC) order.
[0112] Figure 4 An exemplary picture including a CTU is shown. In Figure 4In the picture, the rectangle divided by the dotted line may indicate the CTU, the rectangle divided by the thick line may indicate the tile, and the shaded area may indicate the tile group (or slice). In the video / image coding according to the present disclosure, the image processing unit may have a hierarchical structure. A picture may be divided into one or more tiles or tile groups (or slices). One tile group (or slice) may include one or more tiles. One tile may include one or more CTUs. A CTU may be divided into one or more CUs. A tile is a rectangular area containing CTUs in a specific tile row and a specific tile column within the picture. According to the raster scan of the tiles in the picture, the tile group may include an integer number of tiles. The tile group header may carry information / parameters applicable to the corresponding tile group. When the encoding / decoding device has a multi-core processor, the encoding / decoding process of the tile or tile group may be processed in parallel. Here, the tile group may have one of the tile group types including an intra (I) tile group, a predictive (P) tile group, and a bi-predictive (B) tile group. For the blocks in the I tile group, inter-frame prediction is not used for prediction, and only intra-frame prediction may be used. Additionally, in this case, the original sample values may be encoded and signaled without prediction. For the blocks in the P tile group, intra-frame prediction or inter-frame prediction may be used, and when inter-frame prediction is used, only single prediction may be used. Furthermore, intra-frame prediction or inter-frame prediction may be used for the blocks in the B tile group, and when inter-frame prediction is used, up to maximum pair (bi) prediction may be used.
[0113] The encoder may determine the tile / tile group and the maximum coding unit size and the minimum coding unit size according to the characteristics of the video image (e.g., resolution) or considering the encoding efficiency or parallel processing, and the information about it or the information from which it can be derived may be included in the bitstream.
[0114] The decoder may obtain information indicating whether the tile / tile group of the current picture is divided into multiple coding units and whether the CTUs in the tile are divided into multiple coding units. When this information is obtained (sent) only under specific conditions, the efficiency may increase.
[0115] The tile group header (tile group header syntax or slice header, slice header syntax) may include information / parameters that can be commonly applied to the tile group (or slice). The APS (APS syntax) or PPS (PPS syntax) may include information / parameters that can be commonly applied to one or more pictures. The SPS (SPS syntax) may include information / parameters that can be commonly applied to one or more sequences. The VPS (VPS syntax) may include information / parameters that can be commonly applied to the entire video. The advanced syntax in the present disclosure may include at least one of the APS syntax, PPS syntax, SPS syntax, and VPS syntax.
[0116] In addition, for example, information about the division and configuration of tiles / tile groups (or slices) can be configured syntactically at the encoding end and sent to the decoding device in the form of a bitstream.
[0117] Figure 5 Context Adaptive Binary Arithmetic Coding (CABAC) used for encoding syntactic elements is exemplarily shown.
[0118] For example, in the encoding process of CABAC, when the input signal is a syntactic element rather than a binary value, the encoding device can convert the input signal into a binary value by binarizing the value of the input signal. Additionally, when the input signal is already a binary value (i.e., when the value of the input signal is a binary value), binarization can be bypassed. Here, each binary number 0 or 1 that constitutes the binary value is called a cell. For example, when the binarized binary string is 110, each of 1, 1, and 0 is called a cell. The cells for a syntactic element can indicate the value of the syntactic element.
[0119] Thereafter, the binarized cells of the syntactic element can be input into a regular encoding engine or a bypass encoding engine.
[0120] The regular encoding engine of the encoding device can assign a context model reflecting probability values to the corresponding cells and encode the corresponding cells based on the assigned context model. In the regular encoding engine of the encoding device, after encoding each cell, the context model of the corresponding cell can be updated. The cells encoded in this way are called context-encoded cells.
[0121] A context model can be assigned and updated for each cell to be context-encoded (regularly encoded), and the context model can be indicated based on ctxIdx or ctxInc. ctxIdx can be derived based on ctxInc. For example, the context index (ctxIdx) indicating the context model of each regularly encoded cell can be derived as the sum of the context index increment (ctxInc) and the context index offset (ctxIdxOffset). Here, ctxInc can be derived differently for each cell. ctxIdxOffset can be represented by the minimum value of ctxIdx. The minimum value of ctxIdx can be called the initial value (initValue) of ctxIdx. ctxIdxOffset is a value usually used to distinguish the context models of other syntactic elements, and the context model of a syntactic element can be distinguished / derived based on ctxIdx.
[0122] When a binary cell of a syntactic element is input to a bypass coding engine, it may be encoded as follows. For example, the bypass coding engine of the coding device omits the process of estimating the probability of the input cell and the process of updating the probability model applied to the cell after coding. When bypass coding is applied, the coding device may improve the coding speed by encoding the input cell by applying a uniform probability distribution instead of assigning a context model. The cell encoded as described above may be referred to as a bypass cell.
[0123] During entropy coding, it may be determined whether to perform coding through a regular coding engine or through a bypass coding engine, and thus, the coding path may be switched. Entropy decoding may perform the same process as entropy coding in reverse order.
[0124] For example, when a syntax element is decoded based on a context model, the decoding device may receive a cell corresponding to the syntax element through a bitstream, determine a context model using the syntax element and decoding information of a decoding target block or a neighboring block or information of a symbol / cell decoded in a previous stage, and perform arithmetic decoding of the cell by predicting the occurrence probability of the received cell according to the determined context model, thereby deriving the value of the syntax element. Thereafter, the context model of the cell to be decoded next may be updated using the determined context model.
[0125] In addition, for example, when a syntax element is bypass-decoded, the decoding device may receive a cell corresponding to the syntax element through a bitstream, and may decode the input cell by applying a uniform probability distribution. In this case, the decoding device may omit a process of deriving a context model of the syntax element and a process of updating the context model applied to the cell after decoding.
[0126] Figure 6 An entropy encoder of the encoding device is shown.
[0127] Figure 6 The entropy encoder 600 can be used with the above Figure 2 The entropy encoder 240 is the same as the entropy encoder 240. The binarization unit 601 in the entropy encoder 600 may perform binarization on the target syntax element. Here, the binarization may be based on various binarization methods such as truncated Rice binarization and fixed-length binarization, and the binarization method for the target syntax element may be predefined.
[0128] The entropy encoding processor 602 in the entropy encoder 600 can perform entropy encoding on a target syntax element. The encoding device can encode an empty string of the target syntax element based on an entropy encoding technique such as context adaptive binary arithmetic coding (CABAC) or context adaptive variable length coding (CAVLC) based on regular coding (context-based) or bypass coding, and the output can be included in the bitstream. As described above, the bitstream can be sent to the decoding device via a (digital) storage medium or a network.
[0129] Figure 7 Shows the entropy decoder of the decoding device.
[0130] Figure 7 The entropy decoder 700 of can be the same as the entropy decoder 310 described above. Figure 3 The binarization unit 701 in the entropy decoder 700 can perform binarization on a target syntax element. Here, the binarization can be based on various binarization methods such as truncated Rice binarization processing and fixed-length binarization processing, and the binarization method used for the target syntax element can be predefined. The decoding device can derive an available cell string (cell string candidate) of available values of the target syntax element through the binarization process.
[0131] The entropy decoding processor 702 in the entropy decoder 700 can perform entropy decoding on a target syntax element. The decoding device sequentially decodes and parses each cell of the target syntax element from the input bits in the bitstream, and compares the derived cell string with the available cell strings of the corresponding syntax element. If the derived cell string is the same as one of the available cell strings, the value corresponding to the cell string is derived as the value of the corresponding syntax element. If not, the above process is performed again after further parsing the next bit in the bitstream. Through this process, the corresponding information can be signaled using variable-length bits without using the start bit or end bit of a specific piece of information (specific syntax element) in the bitstream. Thus, relatively few bits can be allocated to low values, and the overall coding efficiency can be increased.
[0132] Figure 8 Exemplarily shows a hierarchical structure for encoding an image / video.
[0133] Refer to Figure 8 In, the encoded image / video is divided into a video coding layer (VCL) that processes the image / video and its own decoding process, a subsystem that sends and stores the encoded information, and a NAL (network abstraction layer) that is responsible for functions and exists between the VCL and the subsystem.
[0134] In the VCL, VCL data including compressed image data (slice data) is generated, or a parameter set including a picture parameter set (PSP), a sequence parameter set (SPS), and a video parameter set (VPS), or supplementary enhancement information (SEI) messages required for image decoding processing can be generated.
[0135] In the NAL, an NAL unit can be generated by adding header information (NAL unit header) to the raw byte sequence payload (RBSP) generated in the VCL. In this case, the RBSP refers to slice data, parameter sets, SEI messages, etc. generated in the VCL. The NAL unit header can include NAL unit type information specified according to the RBSP data included in the corresponding NAL unit.
[0136] As shown in the figure, the NAL unit can be classified into a VCL NAL unit and a non-VCL NAL unit according to the RBSP generated in the VCL. A VCL NAL unit can mean an NAL unit including information about an image (slice data), and a non-VCL NAL unit can mean an NAL unit including information (parameter set or SEI message) required for decoding an image.
[0137] The above VCL NAL units and non-VCL NAL units can be sent over a network by attaching header information according to the data standard of the subsystem. For example, the NAL unit can be transformed into a data format of a predetermined standard such as the H.266 / VVC file format, the Real-Time Transport Protocol (RTP), the Transport Stream (TS), etc. and sent over various networks.
[0138] As described above, the NAL unit can be specified by the NAL unit type according to the RBSP data structure included in the corresponding NAL unit, and information about the NAL unit type can be stored in the NAL unit header and signaled.
[0139] For example, the NAL unit can be classified into a VCL NAL unit type and a non-VCL NAL unit type according to whether the NAL unit includes information about an image (slice data). The VCL NAL unit type can be classified according to the nature and type of the picture included in the VCL NAL unit, and the non-VCL NAL unit type can be classified according to the type of the parameter set.
[0140] The following are examples of NAL unit types specified according to the type of the parameter set included in the non-VCL NAL unit type.
[0141] - APS (Adaptive Parameter Set) NAL unit: The type of the NAL unit including APS
[0142] - DPS (Decoding Parameter Set) NAL unit: The type of the NAL unit including DPS
[0143] -VPS (Video Parameter Set) NAL unit: The type of the NAL unit including the VPS
[0144] -SPS (Sequence Parameter Set) NAL unit: The type of the NAL unit including the SPS
[0145] -PPS (Picture Parameter Set) NAL unit: The type of the NAL unit including the PPS
[0146] -PH (Picture Header) NAL unit: The type of the NAL unit including the PH
[0147] The above NAL unit types may have the syntax information of the NAL unit type, and the syntax information may be stored in and signaled by the NAL unit header. For example, the syntax information may be nal_unit_type, and the NAL unit type may be specified by the nal_unit_type value.
[0148] In addition, as described above, a picture may include multiple slices, and a slice may include a slice header and slice data. In this case, a picture header may be further added to the multiple slices (slice header and slice data sets) in a picture. The picture header (picture header syntax) may include information / parameters generally applicable to the picture. In this document, the tile group may be mixed with or replaced by the slice or the picture. Additionally, in this document, the tile group header may be mixed with or replaced by the slice header or the picture header.
[0149] The slice header (slice header syntax) may include information / parameters generally applicable to the slice. APS (APS syntax) or PPS (PPS syntax) may include information / parameters generally applicable to one or more slices or pictures. SPS (SPS syntax) may include information / parameters generally applicable to one or more sequences. VPS (VPS syntax) may include information / parameters generally applicable to multiple layers. DPS (DPS syntax) may include information / parameters generally applicable to the total video. The DPS may include information / parameters related to the concatenation of the coded video sequence (CVS). The high-level syntax (HLS) in this document may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, and slice header syntax.
[0150] In this document, the image / image information encoded by the encoding device and signaled to the decoding device in the form of a bitstream includes not only the segmentation-related information, intra / inter prediction information, residual information, loop filter information, etc. in the picture, but also the information included in the slice header, the information included in the APS, the information included in the PPS, the information included in the SPS, and / or the information included in the VPS.
[0151] In addition, in order to compensate for the difference between the original image and the reconstructed image caused by errors occurring in compression encoding processing such as quantization, loop filtering processing may be performed on the reconstructed samples or the reconstructed picture as described above. As described above, loop filtering can be performed by the filter of the encoding device and the filter of the decoding device, and a deblocking filter, SAO, and / or an adaptive loop filter (ALF) can be applied. For example, ALF processing can be performed after the deblocking filtering processing and / or SAO processing are completed. However, even in this case, the deblocking filtering processing and / or SAO processing can be omitted.
[0152] Figure 9 is a flowchart schematically showing an example of ALF processing. Figure 9 The ALF processing disclosed in can be performed in the encoding device and the decoding device. In this document, the encoding device can include an encoding device and / or a decoding device.
[0153] Referring to Figure 9 , the encoding device derives a filter for ALF (S900). The filter can include filter coefficients. The encoding device can determine whether to apply ALF, and when it is determined to apply ALF, it can derive a filter including filter coefficients for ALF. The information for deriving the filter (coefficients) for ALF or the filter (coefficients) for ALF can be referred to as ALF parameters. The information about whether to apply ALF (i.e., the ALF enable flag) and the ALF data for deriving the filter can be signaled from the encoding device to the decoding device. The ALF data can include the information for deriving the filter for ALF. Additionally, for example, for hierarchical control of ALF, the ALF enable flag can be signaled at the SPS, picture header, slice header, and / or CTB levels, respectively.
[0154] In order to derive the filter for ALF, the activity and / or directionality of the current block (or ALF target block) are derived, and the filter can be derived based on the activity and / or directionality. For example, ALF processing can be applied in units of 4×4 blocks (based on the luminance component). The current block or ALF target block can be, for example, a CU, or can be a 4×4 block within a CU. Specifically, for example, the filter for ALF can be derived based on a first filter derived from the information included in the ALF data and a predefined second filter, and the encoding device can select one of the filters based on the activity and / or directionality. The encoding device can perform ALF using the filter coefficients included in the selected filter.
[0155] The encoding device performs filtering based on a filter (S910). Modified reconstructed samples can be derived based on the filtering. For example, the filter coefficients in the filter can be arranged or assigned according to the filter shape, and filtering can be performed on the reconstructed samples in the current block. Here, the reconstructed samples in the current block can be the reconstructed samples after the deblocking filtering process and the SAO process are completed. For example, one filter shape can be used, or one filter shape can be selected and used from among multiple predetermined filter shapes. For example, the filter shape applied to the luminance component and the filter shape applied to the chrominance component can be different. For example, a 7×7 diamond filter shape can be used for the luminance component, and a 5×5 diamond filter shape can be used for the chrominance component.
[0156] Figure 10 An example of the shape of the ALF filter is shown. Figure 10 C0 to C11 in (a) of Figure 10 and C0 to C5 in (b) of
[0157] Figure 10 (a) of Figure 10 shows the shape of a 7×7 diamond filter, Figure 10 (b) of shows the shape of a 5×5 diamond filter. In Figure 10 , Cn in the filter shape represents the filter coefficient. When the n in Cn is the same, this indicates that the same filter coefficient can be assigned. In this document, the position and / or unit for assigning filter coefficients according to the filter shape of the ALF may be referred to as a filter tap. In this case, one filter coefficient can be assigned to each filter tap, and the arrangement of the filter taps can correspond to the filter shape. The filter tap located at the center of the filter shape may be referred to as the center filter tap. The same filter coefficient can be assigned to two filter taps with the same n value that exist at corresponding positions relative to the center filter tap. For example, in the case of a 7×7 diamond filter shape, including 25 filter taps, and since the filter coefficients C0 to C11 are assigned in a centrosymmetric form, only 13 filter coefficients can be used to assign filter coefficients to 25 filter taps. Additionally, for example, in the case of a 5×5 diamond filter shape, including 13 filter taps, and since the filter coefficients C0 to C5 are assigned in a centrosymmetric form, only 7 filter coefficients can be used to assign filter coefficients to 13 filter taps. For example, in order to reduce the amount of data for signaling information about the filter coefficients, 12 out of the 13 filter coefficients of the 7×7 diamond filter shape can be (explicitly) signaled, and one filter coefficient can be (implicitly) derived. Additionally, for example, 6 out of the 7 filter coefficients of the 5×5 diamond filter shape can be (explicitly) signaled, and one filter coefficient can be (implicitly) derived.
[0158] According to an embodiment of the present document, the ALF parameters for ALF processing may be signaled by an Adaptive Parameter Set (APS). The ALF parameters may be derived from filter information for ALF or ALF data.
[0159] ALF is an in-loop filtering technique that can be applied in video / image coding as described above. A Wiener-based adaptive filter may be used to perform ALF. This may be to minimize the Mean Square Error (MSE) between the original samples and the decoded samples (or reconstructed samples). The high-level design of the ALF tool may include syntax elements that can be accessed from the SPS and / or slice header (or tile group header).
[0160] Figure 11 An example of the hierarchical structure of the ALF data is shown.
[0161] Refer to Figure 11 , the encoded video sequence (CVS) 1100 may include an SPS, one or more PPSs, and one or more subsequent encoded pictures. Each encoded picture may be divided into rectangular regions. The rectangular regions may be referred to as tiles. One or more tiles may be aggregated to form a tile group or a slice. In this case, the tile group header may be linked to the PPS, and the PPS may be linked to the SPS. According to the existing method, the ALF data (ALF parameters) are included in the tile group header. Considering that a video consists of multiple pictures and a picture includes multiple tiles, the frequent ALF data (ALF parameters) signaling on a tile group basis reduces the coding efficiency.
[0162] According to the embodiment proposed in the present disclosure, the ALF parameters may be included in the APS and signaled as follows.
[0163] Figure 12 Another example of the hierarchical structure of the ALF data is shown.
[0164] Refer to Figure 12, the CVS1200 may include an SPS, one or more PPSs, one or more APSs, and one or more subsequent coded pictures. That is, the APS is defined, and the APS may carry necessary ALF data (ALF parameters). Additionally, the APS may have self-identification parameters and ALF data. The self-identification parameters of the APS may include the APS ID. That is, in addition to the ALF data field, the APS may include information indicating the APS ID. The tile group header or slice header may use the APS index information to refer to the APS. In other words, the tile group header or slice header may include the APS index information and may perform ALF processing on the target block based on the ALF data (ALF parameters) included in the APS having the APS ID indicated by the APS index information. Here, the APS index information may be referred to as APS ID information.
[0165] Additionally, the SPS may include a flag allowing the use of ALF. For example, when the CVS starts, the SPS may be checked, and the flag may be checked in the SPS. For example, the SPS may include the syntax in Table 1 below. The syntax in Table 1 may be part of the SPS.
[0166] [Table 1]
[0167]
[0168] For example, the semantics of the syntax elements included in the syntax in Table 1 may be represented as shown in Table 2 below.
[0169] [Table 2]
[0170]
[0171] That is, the syntax element sps_alf_enabled_flag may indicate whether ALF is enabled. When the value of the ALF enable flag sps_alf_enabled_flag signaled through the SPS (or SPS level) is 1, it may be determined that ALF is enabled for the pictures in the CVS referring to the SPS. Additionally, when the value of sps_alf_enabled_flag is 0, it may be determined that ALF is not enabled for the pictures in the CVS referring to the SPS.
[0172] Furthermore, as described above, ALF may be individually turned on / off by signaling an additional enable flag at a level lower than the SPS. For example, when the ALF tool is enabled for the CVS, the slice_alf_enabled_flag may be signaled in the tile group header or slice header. For example, the slice header may include the syntax in Table 3 below.
[0173] [Table 3]
[0174]
[0175] For example, the semantics of the syntactic elements included in the syntax of Table 3 can be represented as shown in the following table.
[0176] [Table 4]
[0177]
[0178]
[0179] For example, when ALF is enabled at the SPS level, the slice_alf_enabled_flag can be parsed / signaled. Each tile group consisting of one or more tiles can determine whether ALF is enabled based on the slice_alf_enabled_flag.
[0180] When the value of the ALF enable flag sps_alf_enabled_flag signaled in the tile group header or slice header is 1, the ALF data can be parsed through the slice header. For example, the slice_alf_enabled_flag can specify the ALF enable conditions for the luminance and chrominance components.
[0181] The ALF data can be accessed through the APS ID information (i.e., slice_alf_aps_id). The APS referred to by the corresponding tile group or corresponding slice can be identified based on the APS ID information. The APS can include the ALF data.
[0182] In addition, the structure of the APS including the ALF data can be described based on the syntax of, for example, Table 5 below. The syntax of Table 5 can be part of the APS.
[0183] [Table 5]
[0184]
[0185] For example, the semantics of the syntactic elements included in the syntax of Table 5 can be represented as shown in Table 6 below.
[0186] [Table 6]
[0187]
[0188]
[0189] As described above, the syntax element adaptation_parameter_set_id may indicate the identifier of the corresponding APS. That is, the APS can be identified based on the syntax element adaptation_parameter_set_id. The syntax element adaptation_parameter_set_id may be referred to as APS ID information. In addition, the APS may include an ALF data field. The ALF data field alf_data() may be parsed / signaled after the syntax element adaptation_parameter_set_id.
[0190] The core processing / manipulation of the ALF information may be performed in the slice header or the tile group header. The above ALF data field may include information about the processing of the ALF filter. For example, the information that can be extracted from the ALF data field includes information about the number of filters used, information indicating whether ALF is applied only to the luminance component, information about the color components, information about the Exponential Golomb (EG) parameters, and / or the incremental values of the filter coefficients, etc.
[0191] In addition, for example, the ALF data field may include the following ALF data syntax.
[0192] [Table 7]
[0193]
[0194]
[0195]
[0196] For example, the semantics of the syntax elements included in the syntax of Table 7 may be represented as shown in the following table.
[0197] [Table 8]
[0198]
[0199]
[0200]
[0201]
[0202]
[0203]
[0204]
[0205]
[0206] Parsing of the ALF data in the slice header is started by first parsing / signaling the syntax element alf_luma_filter_signal_flag that indicates whether to signal a set of luma filters. Similarly, the syntax element alf_chroma_filter_signal_flag that indicates whether to signal chroma filters can be parsed / signaled.
[0207] When alf_luma_filter_signal_flag is enabled, alf_luma_clip_flag can be parsed.
[0208] When this flag is disabled, linear adaptive loop filtering can be specified to be applied to the luma component. When this flag is enabled, non-linear adaptive loop filtering can be specified to be applied to the luma component.
[0209] In addition, information about the number of luma filters used can be parsed.
[0210] As an example, the maximum number of filters that can be used can be set to 25. When the number of signaled luma filters is at least one, for each filter in the range from 0 to the maximum number of filters (i.e., 25, which can alternatively be referred to as classes), the index information of the filter can be parsed / signaled. This can mean that each class (i.e., from 0 to the maximum number of filters) is associated with a filter index.
[0211] Next, alf_luma_use_fixed_filter_flag can be parsed / signaled, which is a flag indicating whether a fixed filter is used in the current slice. When alf_luma_use_fixed_filter_flag is enabled, the index of the fixed filter set can be signaled using the alf_luma_fixed_filter_set_idx parameter. This parameter can have a value in the range from 0 to 15. In addition, alf_luma_fixed_filter_pred_present_flag can be parsed / signaled. This flag can specify whether a fixed filter is used to predict the i-th filter coefficient. Then, for each filter, the flag indicating whether a fixed filter is used for the corresponding filter can be decoded.
[0212] When labeling the filters to be used for each class based on the filter index, alf_luma_coeff_delta_flag can be parsed / signaled. This flag can be used to interpret whether there is a flag alf_luma_coeff_delta_prediction_flag related to the prediction of the ALF luma filter coefficient increment value in the slice header.
[0213] If the number of luma filters signalled by the syntax element alf_luma_num_filters_signalled_minus1 is greater than 0 and the value of the syntax element alf_luma_coeff_delta_flag is 0, it means that there is a syntax element alf_luma_coeff_delta_prediction_flag in the slice header and its status is evaluated. If the status of the syntax element alf_luma_coeff_delta_prediction_flag indicates 1, this may mean that the luma filter coefficients are predicted from the previous luma (filter) coefficients. If the status of the syntax element alf_luma_coeff_delta_prediction_flag indicates 0, this may mean that the luma filter coefficients are not predicted by increment from the previous luma (filter) coefficients.
[0214] Additionally, when the delta filter coefficients (i.e., alf_luma_coeff_delta_abs) are encoded based on the Exp-Golomb code, the order k (order k) of the Exp-Golomb (EG) code can be determined to decode the delta luma filter coefficients (i.e., alf_luma_coeff_delta_abs). For example, the filter coefficients can be decoded using the order k based on the Exp-Golomb coding. The order of the Exp-Golomb code can be represented as EG(k).
[0215] To determine EG(k), the syntax element alf_luma_min_eg_order_minus1 can be parsed / signalled. The syntax element alf_luma_min_eg_order_minus1 can be an entropy-coded syntax element. The syntax element alf_luma_min_eg_order_minus1 can indicate the minimum order of the EG for decoding the delta luma filter coefficients. For example, the value of the syntax element alf_luma_min_eg_order_minus1 can be in the range of 0 to 6.
[0216] After parsing / signaling the syntax element alf_luma_min_eg_order_minus1, the syntax element alf_luma_eg_order_increase_flag may be parsed / signaled. If the value of the syntax element alf_luma_eg_order_increase_flag is 1, this indicates that the order of the EG indicated by the syntax element alf_luma_min_eg_order_minus1 is increased by 1. If the value of the syntax element alf_luma_eg_order_increase_flag is 0, this indicates that the order of the EG indicated by the syntax element alf_luma_min_eg_order_minus1 is not increased. The order of the EG may be represented by the index of the EG. For example, the EG order (or EG index) related to the luminance component based on the syntax element alf_luma_min_eg_order_minus1 and the syntax element alf_luma_eg_order_increase_flag may be determined as follows.
[0217] [Table 9]
[0218]
[0219] Based on the determination process, expGoOrderY may be derived as expGoOrderY = KminTab. Thus, an array including the EG order may be derived and used by the decoding device. expGoOrderY may indicate the EG order (or EG index).
[0220] The following table may represent a method for deriving the Golomb order based on the above algorithm. That is, the above algorithm may be based on the following table. In the following table, the Golomb index may be the input and the k order to be used may be the corresponding output.
[0221] [Table 10]
[0222] Columbus index = 0 Columbus index = 1 Columbus index = 2 Kmin = 1 1 1 2 alf_luma_eg_order_increase_flag[i] 0 1 1 Columbus order k 1 2 3
[0223] Referring to Table 10, the (minimum) Columbus order and / or the (minimum) Columbus index can be increased based on alf_eg_order_increase_flag[i]. For example, if alf_luma_min_eg_order_minus1 = 0, then Kmin can be set to = 0 + 1. When the Columbus index is 0, alf_luma_eg_order_increase_flag[i] can be parsed. When this flag is enabled (if available), the Columbus order corresponding to the Columbus index = 0 can be increased by 1 from the initial Kmin value. As shown in Table 11, when this flag is disabled (not available), when the Columbus index = 0, the Columbus order may not increase. Kmin can be updated using the Columbus order. For example, the Columbus index can be regarded as (updated to) 1. Here, the value of alf_luma_eg_order_increase_flag[1] can be 1. Therefore, the Kmin Columbus order can be increased to 2. Similarly, alf_luma_eg_order_increase_flag[2] is enabled (available), which can indicate an increase of Kmin by 1 so that the final Columbus order is 3.
[0224] Figure 13 Exemplarily shown is the Columbus index of filter coefficients according to the filter type. Figure 13 The (a) of can represent a 5×5 filter, Figure 13 The (b) of can represent a 7×7 filter. Here, only a part of the symmetric filter can be shown. In Figure 13 each position of the numbers can represent the pre-assigned Columbus index of the ALF filter coefficients corresponding to each position.
[0225] In one example, the k-th order Columbus order of a given filter coefficient can be determined by indexing the Columbus index of the given coefficient position into Table 11 above. Each ALF filter coefficient can be decoded using the k-th order.
[0226] In one example, there can be a predefined Columbus order index (i.e., golombOrderIdxY). The predefined Columbus order can be used to determine the final Columbus order for encoding the coefficients.
[0227] For example, the predefined Columbus order can be configured as follows, for example.
[0228] [Equation 1]
[0229] golombOrderIdxY[ ] = {0,0,1,0,1,2,1,0,0,1,2}
[0230] Here, the order k = expGoOrderY[golombOrderIdxY[j]], and j can represent the j-th signaled filter coefficient. For example, if j = 2 (i.e., the third filter coefficient), then golomborderIdxY[2] = 1, so k = expGoOrderY[1].
[0231] In this case, for example, if the value of the syntax element alf_luma_coeff_delta_flag represents true (i.e., 1), then the syntax element alf_luma_coeff_flag can be signaled for each signaled filter. The syntax element alf_luma_coeff_flag indicates whether (explicitly) the luminance filter coefficients are signaled.
[0232] When determining the EG order and the status of the above - related flags (i.e., alf_luma_coeff_delta_flag, alf_luma_coeff_flag, etc.), the difference information and sign information of the luminance filter coefficients (i.e., when alf_luma_coeff_flag is true) can be parsed / signaled (if indicated). The absolute value of the increment information of each of the 12 filter coefficients (alf_luma_coeff_delata_abs syntax element) can be parsed / signaled. Additionally, if the syntax element alf_luma_coeff_delta_abs has a value, the sign information (syntax element alf_luma_coeff_delta_sign) can be parsed / signaled. The information including the difference information and sign information of the luminance filter coefficients can be referred to as information about the luminance filter coefficients.
[0233] The increment of the filter coefficients can be determined and stored together with the sign. In this case, the increment of the signed filter coefficients can be stored in the form of an array, which can be represented as filterCoefficients. The increment of the filter coefficients can be referred to as the incremental luminance coefficients, and the increment of the signed filter coefficients can be referred to as the signed incremental luminance coefficients.
[0234] To determine the final filter coefficients from the signed incremental luminance coefficients, the (luminance) filter coefficients can be updated as follows.
[0235] [Equation 2]
[0236] filterCoefficients[sigFiltIdx][j]+=filterCoefficients[sigFiltIdx]][j]
[0237] Here, j may indicate the filter coefficient index, and sigFiltIdx may indicate the filter index signaled by the signal. j = {0, …, 11}, and sigFiltIdx = {0, …, alf_luma_filters_signaled_minus1}.
[0238] The coefficients may be copied into the final AlfCoeffL[filtIdx][j]. In this case, filtidx = 0, …, 24, and j = 0, …, 11.
[0239] The signed incremental luma coefficients for a given filter index may be used to determine the first 12 filter coefficients. For example, the thirteenth filter coefficient of a 7×7 filter may be determined based on the following formula. The thirteenth filter coefficient may indicate the above-mentioned center tap filter coefficient.
[0240] [Equation 3]
[0241] AlfCoeff L [filtIdx]
[12] = 128 - ∑ k AlfCoeff C [filtIdx][k] << 1
[0242] Here, the filter coefficient index 12 may indicate the thirteenth filter coefficient.
[0243] For example, to ensure bitstream consistency, the values of the final filter coefficients AlfCoeffL[filtIdx][k] range from 0, …, 11, may be in the range of -2 7 to 2 7 -1, and when k is 12, may be in the range of 0 to 2 8 -1. Here, k may be replaced by j.
[0244] When performing the processing on the luma component, the processing on the chroma component may be performed based on the syntax element alf_chroma_idc. If the value of the syntax element alf_chroma_idc is greater than 0, the minimum EG order information of the chroma component (i.e., the syntax element alf_chroma_min_eg_order_minus1) may be parsed / signaled. According to the above embodiments of this document, a 5×5 diamond filter shape may be used for the chroma component. In this case, the maximum Columbus index may be 2. In this case, for example, the EG order (or EG index) of the chroma component may be determined as follows.
[0245] [Table 11]
[0246]
[0247] Based on the determination process, expGoOrderC can be derived as expGoOrderC = KminTab. Thus, an array including the EG order can be derived, which can be used by the decoding device. expGoOrderC can indicate the EG order (or EG index) of the chrominance component.
[0248] If alf_luma_clip_flag is enabled (if available), the minimum exponent Golomb order for clipping can be parsed. Similar to the ALF coefficient signaling, alf_luma_clip_eg_order_increase_flag can be parsed. Then, for each filter index, alf_luma_doeff_flag is enabled (available), and if there are filter coefficients (i.e., j = 0..1), the clipping index can be parsed.
[0249] Once the luminance filter coefficients are reconstructed, the chrominance coefficients can also be parsed. Additionally, there can be a predefined Golomb order index (golombOrderIdxC). The predefined Golomb order can be used to determine the final Golomb order for encoding the coefficients.
[0250] For example, the predefined Golomb order can be configured as follows, for example.
[0251] [Equation 4]
[0252] golombOrderIdxC[ ] = {0,0,1,0,0,1}
[0253] Here, the order k = expGoOrderC[golombOrderIdxC[j]], and j can represent the j-th signalized filter coefficient. For example, if j = 2, it indicates the third filter coefficient, golomborderIdxY[2] = 1, so k = expGoOrderC[1].
[0254] Based on this, the absolute value information and sign information of the chroma filter coefficients can be parsed / signaled. The information including the absolute value information and sign information of the chroma filter coefficients can be referred to as information about the chroma filter coefficients. For example, a 5×5 rhombus filter shape can be applied to the chroma component. In this case, the absolute increment information (syntax element alf_chroma_coeff_abs) of each of the six (chroma component) filter coefficients can be parsed / signaled. Additionally, if the value of the syntax element alf_chroma_coeff_abs is greater than 0, the sign information (syntax element alf_chroma_coeff_sign) can be parsed / signaled. For example, the six chroma filter coefficients can be derived based on the information about the chroma filter coefficients. In this case, for example, the seventh chroma filter coefficient can be determined based on the following formula. The seventh filter coefficient can represent the above-mentioned center tap filter coefficient.
[0255] [Equation 5]
[0256] AlfCoeff C [6] = 128 - ∑ k AlfCoeff C [[filtIdx][k] << 1
[0257] Here, the filter coefficient index 6 can indicate the seventh filter coefficient. For reference, since the filter coefficient index starts from 0, the value 6 can indicate the seventh filter coefficient.
[0258] For example, to ensure bitstream consistency, when k is 0, …, 5, the value range of the final filter coefficient AlfCoeffC[filtIdx][k] can be from -2 7 to 2 7 -1, and when k is 6, the value range of the final filter coefficient AlfCoeffC[filtIdx][k] can be from -2 8 to 2 8 -1. Here, k can be replaced by j.
[0259] Then, similar to the case of luma, when determining the chroma clipping index, alf_luma_clip_flag can be checked. If this flag is enabled (if available), the minimum Golomb order of clipping can be parsed. Then, if there are filter coefficients, alf_chroma_clip_index can be parsed.
[0260] As described above, when deriving (luminance / chrominance) filter coefficients, ALF-based filtering may be performed based on the filter coefficients or a filter including the filter coefficients. Thus, as described above, modified reconstructed samples may be derived. Additionally, multiple filters may be derived, and the filter coefficients of one of the multiple filters may be used for ALF processing. For example, one of the multiple filters may be indicated based on signaling filter selection information. Or, for example, one of the multiple filters may be selected based on the activity and / or directionality of the current block or the ALF target block, and the filter coefficients of the selected filter may be used for ALF processing.
[0261] Once the layer information from the APS and the slice header is decoded, the coding tree unit (CTU) is decoded. A network abstraction layer (NAL) unit may include a slice header and slice data. The slice data may facilitate the decoding of the coding tree unit.
[0262] The following table exemplarily represents the syntax of the coding tree unit.
[0263] [Table 12]
[0264]
[0265] For example, the semantics of the syntax elements included in the syntax of Table 12 may be represented as shown in the following table.
[0266] [Table 13]
[0267]
[0268]
[0269] In CTU-level processing, when ALF is enabled for a slice, the syntax element alf_ctb_flag may be parsed / signaled. The alf_ctb_flag may specify applying ALF to the coding tree block (CTB). When ALF is applied to the CTB and the number of transmitted APS IDs is greater than 0, another flag alf_use_aps_flag may be parsed / signaled. When alf_use_aps_flag is 1, the filter information of the APS for the luminance CTB may be specified. However, when alf_use_aps_flag is disabled, one of the fixed filter sets may be applied to the CTB.
[0270] In an embodiment of this document, an encoding process for efficiently applying the above ALF is proposed. According to an embodiment of this document, an example of the binarization process of the above syntax element alf_luma_fixed_filter_idx is proposed. Here, the alf_luma_fixed_filter_idx may specify the fixed filter applied to the (luminance) CTB (reconstructed samples).
[0271] In one example, if alf_use_aps_flag is true (value 1), a set of filters from APS can be applied to the (luminance) CTB (reconstructed samples), and filter coefficients can be derived based on information about the previous filter (e.g., alf_luma_prev_filter_idx_minus1). When alf_use_aps_flag is false (value 0), a fixed filter can be applied to the (luminance) CTB (reconstructed samples). For example, the value of alf_luma_fixed_filter_idx can be in the range of 0 to 15.
[0272] The following table shows an example of the binarization process of syntax elements related to ALF.
[0273] [Table 14]
[0274]
[0275]
[0276] In Table 14, the syntax element alf_luma_fixed_filter_idx can be encoded based on truncated binary (TB) binarization. For example, the maximum value related to the syntax element (e.g., cMax) can be 15. According to the TB binarization, only the complexity will increase unnecessarily without any additional benefit. For this reason, the following example based on fixed-length (FL) binarization is proposed.
[0277] The following table shows another example of the binarization information of syntax elements related to the ALF process.
[0278] [Table 15]
[0279]
[0280] Table 15 is described focusing on the differences from Table 14. In Table 15, the syntax element alf_luma_fixed_filter_idx can be encoded based on FL binarization. For example, the maximum value related to the syntax element (e.g., cMax) can be represented using 4 bits.
[0281] The following table shows an example of assigning ctxInc to a context-coded cell as a syntax element of the context-coded cell according to Table 15 above. In Table 15, for example, cells with binIdx greater than or equal to 5 may not exist (or may not be available) for the syntax element alf_luma_fixed_filter_idx.
[0282] [Table 16]
[0283]
[0284] According to an embodiment of the present disclosure, an example of the binarization process of the above-mentioned syntactic element alf_luma_fixed_filter_set_idx is presented. Here, alf_luma_fixed_filter_set_idx can specify the index of a fixed filter set.
[0285] For example, a fixed-length (FL) binarization process can be applied to the signaling of alf_luma_fixed_filter_set_idx.
[0286] The following table illustrates the ALF data syntax by way of example.
[0287] [Table 17]
[0288]
[0289] Referring to the above table, alf_luma_fixed_filter_set_idx can be encoded based on a fixed-length (FL) binarization process rather than a truncated binary (TB) binarization process. For example, the semantics of alf_luma_fixed_filter_set_idx included in the table can be represented as shown in the following table.
[0290] [Table 18]
[0291]
[0292] In an embodiment of this document, a signaling method related to ALF coefficients for simplifying the signaling derivation process of the Golomb order is presented. For example, in an embodiment of this document, the proposed method can be implemented through fixed signaling. In one example, the k-th order of the exponential Golomb code can be fixed to 2 for luminance and 3 for chrominance. However, the embodiments of this document are not necessarily limited to such examples, and the k-th order can be fixed to another appropriate value.
[0293] The following table shows the syntax of the above-mentioned simplified ALF data field.
[0294] [Table 19]
[0295]
[0296]
[0297] For example, the semantics of the syntactic elements included in the syntax of Table 19 can be represented as shown in the following table.
[0298] [Table 20]
[0299]
[0300]
[0301] In an embodiment of this document, a method of using a predetermined Golomb order for each ALF filter coefficient is proposed.
[0302] The following table exemplarily shows the Golomb order (k-th order) for decoding ALF luminance coefficients. C0 to C11 represent ALF luminance coefficient indices (or, for example, filter coefficients depending on the position in the filter shape for ALF), where, for example, the k-th order can be 2 or 3. Figure 6
[0303] [Table 21]
[0304]
[0305] The following table exemplifies the coding-based semantics according to this embodiment. For example, the following table can be modified to fix the Golomb order of luminance coefficients or chrominance coefficients.
[0306] [Table 22]
[0307]
[0308]
[0309] In an embodiment of this document, a method of signaling a fixed Golomb order only for the chrominance component is proposed. That is, an example of signaling for fixing the Golomb order of the chrominance component is implemented according to this embodiment.
[0310] The following table exemplarily shows the syntax of the coding-based ALF data field according to the embodiment of this document.
[0311] [Table 23]
[0312]
[0313]
[0314]
[0315] For example, the semantics of the syntax elements included in the syntax of Table 23 can be represented as shown in the following table.
[0316] [Table 24]
[0317]
[0318] In an embodiment of this document, fixed signaling for encoding information regarding ALF clipping is proposed (e.g., alf_luma_clip_idx[sfIdx][j], alf_chroma_clip_idx[j], etc.). For example, the k-th order Golomb can be predetermined or pre-fixed and used as in the above embodiment.
[0319] The following table illustrates by way of example the syntax of the encoded ALF data field according to this embodiment.
[0320] [Table 25]
[0321]
[0322]
[0323] For example, the semantics of the syntax elements included in the syntax of Table 25 can be represented as shown in the following table.
[0324] [Table 26]
[0325]
[0326]
[0327] In an embodiment of this document, a signaling combination from various perspectives of the ALF data field based on (or dependent on) exponential Golomb coding is proposed. That is, an example of signaling that combines at least one of the above embodiments can be achieved through this embodiment.
[0328] The following table illustratively shows the syntax of the encoded ALF data field according to this embodiment.
[0329] [Table 27]
[0330]
[0331]
[0332] For example, the semantics of the syntax elements included in the syntax of Table 27 can be represented as shown in the following table.
[0333] [Table 28]
[0334]
[0335]
[0336] In an embodiment of the present disclosure, a method for preventing the APS ID of chrominance from being signaled and inferred is proposed. The following table illustrates by way of example the syntax of the encoded slice header according to this embodiment.
[0337] [Table 29]
[0338]
[0339] For example, the semantics of the syntactic elements included in the syntax of the above table can be represented as shown in the following table.
[0340] [Table 30]
[0341]
[0342] Referring to the above table, regardless of whether the slice type is I or the number of ALF APSs referred to by the slice is one, slice_alf_aps_id_chroma can be signaled.
[0343] In addition, in an embodiment of the present disclosure, a method for parsing / signaling alternative filter information for chrominance components is proposed.
[0344] The following table exemplarily shows the syntax based on the coded ALF data field according to this embodiment.
[0345] [Table 31]
[0346]
[0347] For example, the semantics of the syntactic elements included in the syntax of the above table can be represented as shown in the following table.
[0348] [Table 32]
[0349]
[0350]
[0351]
[0352]
[0353]
[0354]
[0355] Referring to the above table, the ALF data field may include alternative filter information for chrominance components.
[0356] For example, the syntax element alf_chroma_num_alts_minus1 may indicate the number of alternative filters for the chrominance component. The index altIdx of the alternative filter for the chrominance component may have a value in the range from 0 to alf_chroma_num_alts_minus1. Additionally, the syntax element alf_chroma_coeff_abs[altIdx][j] may indicate the absolute value of the i-th coefficient included in the alternative filter with index altIdx. Additionally, the syntax element alf_chroma_coeff_sign[altIdx][j] may indicate the sign of the i-th coefficient included in the alternative filter with index altIdx.
[0357] Comparing Table 32 above with Table 7, it can be understood that in the embodiments of the present disclosure, the syntax related to the exponential Golomb coding of the ALF coefficients and the clipping coefficients is simplified, and the syntax for predicting the filter coefficients is removed by using the fixed filter prediction. Additionally, referring to Table 32 above, in the embodiments of the present disclosure, a method of signaling the fixed exponential Golomb order instead of signaling the order k of the exponential Golomb (EG) code is proposed.
[0358] The following table exemplifies the syntax of the coding tree unit (CTU).
[0359] [Table 33]
[0360]
[0361] For example, the semantics of the syntax elements included in the syntax of the above table may be represented as shown in the following table.
[0362] [Table 34]
[0363]
[0364]
[0365] Referring to the above table, the index information of the alternative filter for the coding tree unit (CTU) or the chrominance component of the current block for applying ALF may be included. For example, the syntax element alf_ctb_filter_alt_idx may specify the index of the alternative filter for the chrominance component when applying ALF to the chrominance component with chrominance index 1 or 2.
[0366] The following table exemplifies the syntax of the sample adaptive offset (SAO).
[0367] [Table 35]
[0368]
[0369] The following table shows an example of the ALF process in a standard document format.
[0370] [Table 36]
[0371]
[0372]
[0373] In addition, the following table shows an example of the coding tree unit filtering process for luminance samples in a standard document format.
[0374] [Table 37]
[0375]
[0376]
[0377]
[0378]
[0379] In addition, the following table shows an example of the process for deriving the ALF transpose and filter index for luminance samples in a standard document format.
[0380] [Table 38]
[0381]
[0382]
[0383]
[0384]
[0385] In addition, the following table shows an example of the coding tree unit filtering process for chrominance samples in a standard document format.
[0386] [Table 39]
[0387]
[0388]
[0389]
[0390] In addition, the following table shows examples of the initialization value (initValue) and shift index (shiftIdx) of the context index increment (ctxInc) according to the syntax element alf_ctb_filter_alt_idx.
[0391] [Table 40]
[0392]
[0393] Referring to the above table, the initialization value (initValue) of the syntax element alf_ctb_filter_alt_idx that indicates the index information of the alternative filter can be determined based on the context index increment (ctxInc) or the initialization type (initType) of alf_ctb_filter_alt_idx. Additionally, the shift index (shiftIdx) of alf_ctb_filter_alt_idx can be determined based on the context index increment (ctxInc) of alf_ctb_filter_alt_idx.
[0394] Additionally, the following table shows examples of binarization related to various syntaxes including the syntax element alf_ctb_filter_alt_idx.
[0395] [Table 41]
[0396]
[0397]
[0398]
[0399] Referring to the above table, the syntax element alf_ctb_filter_alt_idx that indicates the index information of the alternative filter for the coding tree unit (CTU) or the chrominance component of the current block to which ALF is applied can be coded based on the truncated Rice binarization method of the index parameter of the alternative filter. Additionally, the maximum value (cMax) of the index parameter of the alternative filter for the chrominance component can correspond to alf_chroma_num_alts_minus1. alf_chroma_num_alts_minus1 can correspond to a value that is 1 less than the number of alternative filters for the chrominance component. Additionally, the truncated Rice binarization method can be performed based on the Rice parameter (cRiceParam) value 0.
[0400] Additionally, the following table shows an example of the process for deriving the context index increment (ctxInc) of the syntax element alf_ctb_filter_alt_idx in the standard document format.
[0401] [Table 42]
[0402]
[0403] Cells in the cell string of the index information of the alternative filter can be entropy decoded based on a context model, and the context model of the cells in the cell string of the index information of the alternative filter can be determined based on the context index increment of the cells. Referring to the above table, the context model of the index information of the alternative filter can be determined based on the context index increment of the syntax element alf_ctb_filter_alt_idx indicating the index information of the alternative filter, and the context index increment of the index information of the alternative filter can be determined based on the chrominance component of the CTU or the current block to which the ALF is applied. For example, the context index increment of the index information of the alternative filter can be determined based on the index of the chrominance component. For example, the context index increment derived when the chrominance component of the current block is cb can be different from the context index increment derived when the chrominance component of the current block is cr. For example, when the index of the chrominance component is 0, the context index increment of alf_ctb_filter_alt_idx can have a value of 0, and when the index of the chrominance component is 1, the context index increment of alf_ctb_filter_alt_idx can have a value of 1. Alternatively, for example, when the index of the chrominance component is 1, the context index increment of alf_ctb_filter_alt_idx can have a value of 1, and when the index of the chrominance component is 2, the context index increment of alf_ctb_filter_alt_idx can have a value of 2.
[0404] Figure 14 and Figure 15 Schematically shows an example of a video / image encoding method and related components according to an embodiment of the present disclosure. Figure 14 The method shown can be performed by Figure 2 the encoding device shown. Specifically, for example, S1400 can be performed by the predictor 220 of the encoding device, S1410 can be performed by the adder 250 of the encoding device. S1420 can be performed by the filter 260 of the encoding device, and S1430 can be performed by the entropy encoder 240 of the encoding device. Figure 14 The method shown can include the embodiments described above in the present disclosure.
[0405] Referring to Figure 14 , the encoding device determines the prediction mode of the current block and derives prediction samples based on the prediction mode (S1400). The encoding device can determine any one of the various prediction modes described in this document (e.g., inter prediction or intra prediction). The encoding device can derive the prediction samples of the current block based on the determined prediction mode. The encoding device can generate prediction mode information indicating the prediction mode applied to the current block.
[0406] The decoding device generates a reconstructed sample based on a prediction sample (S1410). First, the decoding device may derive a residual sample based on the prediction sample and the original sample. For example, the decoding device may derive a residual sample based on a comparison between the original sample and a modified reconstructed sample.
[0407] The encoding device may generate a reconstructed sample based on the sum of the prediction sample and the residual sample. The encoding device may perform intra prediction based on the reconstructed sample.
[0408] The encoding device performs an ALF process on the reconstructed sample (S1220). The encoding device derives ALF-related parameters applicable to filtering the reconstructed sample and performs the ALF process.
[0409] The encoding device encodes image information including ALF information and prediction-related information (S1430). For example, the prediction-related information may include inter prediction mode information or inter prediction type information. For example, the inter prediction mode information may include information indicating at least a part of various inter prediction modes. For example, various modes such as a merge mode, a skip mode, a motion vector prediction (MVP) mode, an affine mode, a sub-block merge mode, or a merge and MVD (MMVD) mode may be used. Additionally, in addition to or instead of an auxiliary mode, a decoder-side motion vector refinement (DMVR) mode, an adaptive motion vector resolution (AMVR) mode, bi-prediction with CU-level weights (BCW), or bidirectional optical flow (BDOF) may be used. For example, the inter prediction type information may include an inter_pred_idc syntax element. Alternatively, the inter prediction type information may include information indicating any one of L0 prediction, L1 prediction, or bi-prediction.
[0410] For example, the ALF information may include the information about the ALF filter coefficients, the information about a fixed filter, the information about clipping, etc., described above in the present disclosure. Additionally, for example, the ALF information may include alternative filter information for a chrominance component of a current block. The alternative filter information may indicate an alternative filter for deriving a modified reconstructed sample of the chrominance component of the current block. Alternatively, the alternative filter information may indicate an index of an alternative filter applied to the chrominance component of the current block.
[0411] The image / video information may include information for generating a reconstructed sample and / or information related to ALF. The information for generating a reconstructed sample may include, for example, prediction-related information, residual information, and / or quantization / transformation-related information. The prediction-related information may include information about various prediction modes (e.g., merge mode, MVP mode, etc.), MVD information, etc.
[0412] The encoded image / video information may be output in the form of a bitstream. The bitstream may be sent to the decoding device via a network or a storage medium.
[0413] According to an embodiment of the present disclosure, the image / video information may include various types of information.
[0414] In an embodiment, the alternative filter information may include information on the number of alternative filters for the chrominance component of the current block, the absolute value information of the coefficients included in the alternative filters for the chrominance component of the current block, and the sign information of the coefficients included in the alternative filters for the chrominance component of the current block.
[0415] In an embodiment, the alternative filter information may include index information of the alternative filters for the chrominance component of the current block. And the index information of the alternative filters may be based on truncated Rice binarization.
[0416] In an embodiment, the maximum value (cMax) of the index information of the alternative filters may be equal to a value that is 1 less than the number of alternative filters for the chrominance component of the current block, and the truncated Rice binarization may be performed based on the Rice parameter (cRiceParam) value of 0.
[0417] In an embodiment, the cells in the cell string of the index information for the alternative filters may be entropy-coded based on a context model. The context model for the cells in the cell string of the index information of the alternative filters may be determined based on the context index increment of the cells. Additionally, the context index increment may be determined based on the index of the chrominance component of the current block.
[0418] In an embodiment, the context index increment derived when the chrominance component of the current block is cb may be different from the context index increment derived when the chrominance component of the current block is cr.
[0419] In an embodiment, the image information may include information on ALF clipping, and the information on ALF clipping may include a flag indicating whether clipping is applied to the chrominance component of the current block and clipping index information indicating the clipping value.
[0420] Figure 16 and Figure 17 Schematically shows an example of an image / video decoding method and related components according to an embodiment of the present disclosure. Figure 16 The illustrated method may be performed by Figure 3 the illustrated decoding device. Specifically, for example, S1600 may be performed by the entropy decoder 310 of the decoding device, S1610 may be performed by the predictor 330 of the decoding device. S1620 may be performed by the adder 340 of the decoding device, and S1630 may be performed by the filter 350 of the decoding device. Figure 16 The illustrated method may include the embodiments described above in the present disclosure.
[0421] Refer toFigure 16 , the decoding device obtains image information including adaptive loop filter (ALF) information and prediction-related information from the bitstream (S1600). The image information may include various information according to the above-described embodiments of the present disclosure. For example, the image information may include at least a part of prediction-related information or residual-related information.
[0422] For example, the prediction-related information may include inter-frame prediction mode information or inter-frame prediction type information. For example, the inter-frame prediction mode information may include information indicating at least a part of various inter-frame prediction modes. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, or merge with MVD (MMVD) mode may be used. Additionally, in addition to or instead of the auxiliary mode, a decoder-side motion vector refinement (DMVR) mode, an adaptive motion vector resolution (AMVR) mode, a dual prediction with CU-level weight (BCW), or a bidirectional optical flow (BDOF), etc. may be used. For example, the inter-frame prediction type information may include an inter_pred_idc syntax element. Alternatively, the inter-frame prediction type information may include information indicating any one of L0 prediction, L1 prediction, and paired (bi) prediction.
[0423] In addition, the image information may include various information according to the embodiments of the present disclosure. For example, the image information may include ALF information, and the ALF information may include information described in at least one of Tables 1 to 42 above. For example, the ALF information may include information about the ALF filter coefficients described above in the present disclosure, information about the fixed filter, information about clipping, etc. Alternatively, for example, the ALF information may include alternative filter information for the chrominance component of the current block. The alternative filter information may indicate an index of an alternative filter applied to the chrominance component of the current block.
[0424] The decoding device derives the predicted samples of the current block based on the prediction-related information (S1610). For example, the prediction-related information may include inter-frame prediction mode information or inter-frame prediction type information. For example, the inter-frame prediction mode information may include information indicating at least a part of various inter-frame prediction modes. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, or merge with MVD (MMVD) mode may be used. Additionally, in addition to or instead of the auxiliary mode, a decoder-side motion vector refinement (DMVR) mode, an adaptive motion vector resolution (AMVR) mode, a dual prediction with CU-level weight (BCW), or a bidirectional optical flow (BDOF), etc. may be used. For example, the inter-frame prediction type information may include an inter_pred_idc syntax element. Alternatively, the inter-frame prediction type information may include information indicating any one of L0 prediction, L1 prediction, and paired (bi) prediction.
[0425] The decoding device generates a reconstructed sample of the current block based on a prediction sample (S1620). The decoding device may derive the prediction sample of the current block based on prediction-related information included in the image / video information. The decoding device may derive a residual sample based on residual information included in the image / video information. The decoding device may generate a reconstructed sample based on the prediction sample and the residual sample. A reconstructed block and a reconstructed picture may be derived based on the reconstructed sample.
[0426] The decoding device performs an ALF process on the reconstructed sample based on ALF information (S1630). The decoding device may derive filter coefficients of the ALF from the ALF information and perform the ALF process based on the reconstructed sample and the filter coefficients. As a result of performing the ALF process, the decoding device may generate a modified reconstructed sample.
[0427] For example, the decoding device may generate a modified reconstructed sample by filtering the reconstructed sample and may perform a filtering process of the reconstructed sample using a filter based on the filter coefficients. A picture reconstructed by the decoding device may include the reconstructed sample.
[0428] In an embodiment, the alternative filter information may include information on the number of alternative filters for a chrominance component of the current block, absolute value information of coefficients included in the alternative filters for the chrominance component of the current block, and sign information of coefficients included in the alternative filters for the chrominance component of the current block.
[0429] In an embodiment, the alternative filter information may include index information of an alternative filter for a chrominance component of the current block, and the index information of the alternative filter may be based on truncated Rice binarization.
[0430] In an embodiment, a maximum value (cMax) of the index information of the alternative filter may be equal to a value that is 1 less than the number of alternative filters for a chrominance component of the current block, and truncated Rice binarization may be performed based on a Rice parameter (cRiceParam) value of 0.
[0431] In an embodiment, cells in a cell string of the index information for the alternative filter may be entropy-coded based on a context model. The context model for cells in the cell string of the index information for the alternative filter may be determined based on a context index increment of the cells. Additionally, the context index increment may be determined based on an index of a chrominance component of the current block.
[0432] In an embodiment, the context index increment derived when the chrominance component of the current block is cb may be different from the context index increment derived when the chrominance component of the current block is cr.
[0433] In an embodiment, the image information may include information about ALF clipping, and the information about ALF clipping may include a flag indicating whether clipping is applied to the chrominance component of the current block and clipping index information indicating the clipping value.
[0434] In the above embodiment, the method is described based on a flowchart having a series of steps or blocks. The present disclosure is not limited to the order of the above steps or blocks. Some steps or blocks may occur simultaneously or in an order different from other steps or blocks as described above. In addition, those skilled in the art will understand that the steps shown in the above flowchart are not exclusive, may include additional steps, or one or more steps in the flowchart may be deleted without affecting the scope of the present disclosure.
[0435] The method according to the above embodiment of this document may be implemented in software form, and the encoding device and / or decoding device according to this document may be included, for example, in a device that performs image processing of a TV, a computer, a smart phone, a set-top box, a display device, etc.
[0436] When the embodiment in this document is implemented in software, the above method may be implemented as a module (process, function, etc.) that performs the above functions. The module may be stored in a memory and executed by a processor. The memory may be located inside or outside the processor and may be connected to the processor by various well-known means. The processor may include an application specific integrated circuit (ASIC), other chip sets, 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 the present disclosure may be implemented and executed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in the respective drawings may be implemented and executed on a computer, a processor, a microprocessor, a controller, or a chip. In this case, information about the instructions or algorithms for implementation may be stored in a digital storage medium.
[0437] In addition, the decoding device and encoding device to which the present disclosure is applied may be included in a multimedia broadcast transmission / reception device, a mobile communication terminal, a home theater video device, a digital cinema video device, a surveillance camera, a video chat device, a real-time communication device (e.g., video communication), a mobile streaming device, a storage medium, a camera, a VoD service providing device, an over-the-top (OTT) video device, an Internet streaming service providing device, a three-dimensional (3D) video device, a videoconference video device, a vehicle user device (i.e., a vehicle user device, an aircraft user device, a ship user device, etc.), and a medical video device, and may be used to process video signals and data signals. For example, an over-the-top (OTT) video device may include a game console, a Blu-ray player, an Internet access TV, a home theater system, a smart phone, a tablet PC, a digital video recorder (DVR), etc.
[0438] In addition, the processing method described in this document may be generated in the form of a program to be executed by a computer and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present disclosure may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices that store data readable by a computer system. For example, the computer-readable recording medium may include a 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 includes a medium implemented in the form of a carrier wave (i.e., transmission via the Internet). In addition, the bitstream generated by this encoding method may be stored in a computer-readable recording medium or may be transmitted via a wired / wireless communication network.
[0439] In addition, the embodiments of this document may be implemented as a computer program product according to program code, and the program code may be executed in a computer by the embodiments of this document. The program code may be stored on a computer-readable carrier.
[0440] Figure 18 An example of a content stream system to which the embodiments disclosed in this document can be applied is shown.
[0441] Refer to Figure 18 , a content stream system to which the embodiments of this document are applied may mainly include an encoding server, a streaming server, a network server, a media storage device, a user device, and a multimedia input device.
[0442] The encoding server compresses the content input from a multimedia input device (e.g., a smart phone, a camera, a video camera, etc.) into digital data to generate a bitstream and sends the bitstream to the streaming server. As another example, when the multimedia input device (e.g., a smart phone, a camera, a video camera, etc.) directly generates a bitstream, the encoding server may be omitted.
[0443] A bitstream can be generated by an encoding method or a bitstream generation method according to an embodiment of the present disclosure, and during the process of sending or receiving the bitstream, the streaming server can temporarily store the bitstream.
[0444] The streaming server sends multimedia data to the user device based on a user request through a network server, and the network server serves as a medium for informing the user of the service. When the user requests a desired service from the network server, the network server transmits it to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control commands / responses between devices in the content streaming system.
[0445] The streaming server can receive content from a media storage device and / or an encoding server. For example, when receiving content from the encoding server, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a predetermined time.
[0446] Examples of user devices may include mobile phones, smartphones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, tablet computers, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, head-mounted displays), digital TVs, desktop computers, digital signage, etc. Each server in the content streaming system can operate as a distributed server, and in this case, the data received from each server can be distributed.
[0447] Each server in the content streaming system can operate as a distributed server, and in this case, the data received from each server can be distributed and processed.
[0448] The claims described herein can be combined in various ways. For example, the technical features of the method claims in this document can be combined and implemented as a device, and the technical features of the device claims in this document can be combined and implemented as a method. Additionally, the technical features of the method claims in this document and the technical features of the device claims in this document can be combined to be implemented as a device, and the technical features of the method claims in this document and the technical features of the device claims in this document can be combined and implemented as a method.
Claims
1. A decoding device for image decoding, the decoding device comprising: a memory; and at least one processor, the at least one processor being connected to the memory and configured to: obtain image information including adaptive loop filter (ALF) information and prediction-related information from a bitstream; derive prediction samples for a current block based on the prediction-related information; generate reconstructed samples based on the prediction samples; and perform ALF processing on the reconstructed samples based on the ALF information, wherein the ALF information includes alternative filter information for a chrominance component of the current block, wherein an index of an alternative filter applied to the chrominance component of the current block is derived based on the alternative filter information, wherein the alternative filter information includes information on the number of alternative filters for the chrominance component of the current block and index information of the alternative filters for the chrominance component of the current block, wherein, based on the information on the number of the alternative filters for the chrominance component of the current block, absolute value information of coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information, wherein, based on the absolute value information of the coefficients included in the alternative filters for the chrominance component of the current block, sign information of the coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information, wherein the ALF processing is performed on the chrominance component of the current block based on the index of the alternative filter, wherein the index information of the alternative filter is based on truncated Rice binarization, wherein a maximum value cMax of the index information of the alternative filter is equal to a value that is 1 less than the number of alternative filters for the chrominance component of the current block, and the truncated Rice binarization is performed based on a Rice parameter cRiceParam value of 0, wherein cells in a cell string of the index information for the alternative filter are entropy decoded based on a context model, wherein the context model for the cells in the cell string related to the index information of the alternative filter is determined based on a context index increment for the cells, wherein the context index increment is determined based on the chrominance component of the current block, and wherein the context index increment based on the chrominance component cb of the current block is different from the context index increment based on the chrominance component cr of the current block.
2. The decoding device according to claim 1, wherein, The image information includes information on ALF clamping, and the information on ALF clamping includes a flag indicating whether clamping is applied to the chrominance component of the current block and clamping index information indicating a clamping value.
3. An encoding device for image encoding, the encoding device comprising: a memory; and at least one processor, the at least one processor being connected to the memory and configured to: Determine the prediction mode of the current block; Derive a prediction sample based on the prediction mode; Generate a reconstructed sample based on the prediction sample; Perform adaptive loop filter (ALF) processing on the reconstructed sample; And Encode image information including ALF information and prediction-related information to output the bitstream; wherein the ALF information includes alternative filter information for the chrominance component of the current block; wherein the alternative filter information indicates an index of an alternative filter applied to the chrominance component of the current block; wherein the alternative filter information includes information on the number of alternative filters for the chrominance component of the current block and index information of the alternative filters for the chrominance component of the current block; wherein, based on the information on the number of the alternative filters for the chrominance component of the current block, absolute value information of coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information; wherein, based on the absolute value information of the coefficients included in the alternative filters for the chrominance component of the current block, sign information of the coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information; wherein the index information of the alternative filter is based on truncated Rice binarization; wherein the maximum value cMax of the index information of the alternative filter is equal to a value one less than the number of alternative filters for the chrominance component of the current block, and the truncated Rice binarization is performed based on the Rice parameter cRiceParam value 0; wherein the cells in the cell string of the index information for the alternative filter are entropy-coded based on a context model; wherein the context model of the cells in the cell string related to the index information of the alternative filter is determined based on a context index increment for the cells; wherein the context index increment is determined based on the chrominance component of the current block, and wherein the context index increment based on the chrominance component cb of the current block is different from the context index increment based on the chrominance component cr of the current block.
4. The encoding device according to claim 3, wherein, The image information includes information on ALF clipping, and the information on ALF clipping includes a flag indicating whether to apply clipping to the chrominance component of the current block to which the alternative filter is applied and clipping index information indicating the clipping value.
5. A device for transmitting data for an image, the device comprising: At least one processor configured to obtain a bitstream for the image, wherein the bitstream is generated based on the following operations: determining a prediction mode of a current block, deriving a prediction sample based on the prediction mode, generating a reconstructed sample based on the prediction sample, performing adaptive loop filter (ALF) processing on the reconstructed sample, and encoding image information including ALF information and prediction-related information to output the bitstream; and A transmitter configured to transmit the data including the bitstream wherein the ALF information includes alternative filter information for a chrominance component of the current block wherein the alternative filter information indicates an index of an alternative filter applied to the chrominance component of the current block wherein the alternative filter information includes information on the number of alternative filters for the chrominance component of the current block and index information of the alternative filters for the chrominance component of the current block wherein, based on the information on the number of the alternative filters for the chrominance component of the current block, absolute value information of coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information wherein, based on the absolute value information of the coefficients included in the alternative filters for the chrominance component of the current block, sign information of the coefficients included in the alternative filters for the chrominance component of the current block is included in the alternative filter information wherein the index information of the alternative filter is based on truncated Rice binarization wherein a maximum value cMax of the index information of the alternative filter is equal to a value that is 1 less than the number of the alternative filters for the chrominance component of the current block, and the truncated Rice binarization is performed based on a Rice parameter cRiceParam value of 0 wherein cells in a cell string of the index information for the alternative filter are entropy-coded based on a context model wherein the context model for the cells in the cell string related to the index information of the alternative filter is determined based on a context index increment for the cells wherein the context index increment is determined based on the chrominance component of the current block, and wherein the context index increment based on the chrominance component cb of the current block is different from the context index increment based on the chrominance component cr of the current block