Decoding and encoding apparatus, data transmitting apparatus, and computer-readable storage medium
By using adaptive loop filter technology, the problem of high cost in high-resolution image/video transmission and storage is solved, and compression efficiency and visual quality are improved, making it suitable for efficient transmission and storage of virtual reality and immersive media content.
Patent Information
- Application Number
- CN202311330125.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-08
- Filing Date
- 2020-07-08
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2040-07-08
AI Technical Summary
Existing technologies are costly and inefficient in transmitting and storing high-resolution, high-quality images/videos, and are difficult to effectively compress and transmit virtual reality and immersive media content.
The adaptive loop filter (ALF) technique is employed to improve image/video compression efficiency by generating and encoding alternative filter information for chroma components, and to derive filter coefficients during decoding to generate modified reconstructed samples.
It improves image/video compression efficiency, enhances subjective and objective visual quality, and efficiently notifies relevant information.
Smart Images

Figure CN117221539B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 202080063247.1 (international application number PCT / KR2020 / 008941, international application date July 8, 2020, invention title "Video or image coding using an adaptive loop filter"). Technical Field
[0002] This disclosure relates to video or image coding using adaptive loop filters. Background Technology
[0003] Recently, the demand for high-resolution, high-quality images / videos, such as 4K, 8K, or even higher Ultra High Definition (UHD) images / videos, has increased across various fields. As image / video data becomes more high-resolution and higher-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 both transmission and storage costs.
[0004] In addition, interest and demand for immersive media such as virtual reality (VR) and artificial reality (AR) content or holograms have recently increased, and the broadcasting of images / videos with characteristics different from real images (e.g., game images) has increased.
[0005] Therefore, highly efficient image / video compression technologies are needed to effectively compress, transmit, store, and reproduce high-resolution, high-quality image / video information with the various characteristics described above.
[0006] Furthermore, filtering techniques using adaptive loop filtering (ALF) to improve compression efficiency and enhance subjective / objective visual quality are discussed. To efficiently apply these techniques, an efficient method for signaling relevant information is needed. Summary of the Invention
[0007] Technical solution
[0008] According to embodiments of this disclosure, an image decoding method performed by a decoding device is provided. The method includes the following steps: obtaining image information including adaptive loop filter (ALF) information and residual information from a bitstream; generating a reconstruction sample of the current block based on the residual information; deriving filter coefficients of the ALF based on the ALF information; and generating a modified reconstruction sample of the current block based on the reconstruction sample and the filter coefficients, wherein the ALF information includes alternative filter information for the chroma components of the current block, and the filter coefficients of the chroma components of the current block are generated based on the alternative filter information.
[0009] According to another embodiment of this disclosure, a video coding method performed by an encoding device is provided. The method includes the following steps: deriving a predicted sample of a current block in a current frame; deriving a residual sample of the current block based on the predicted sample; generating residual information and reconstructed samples based on the residual samples; deriving filter coefficients of an adaptive loop filter (ALF) for the reconstructed samples; generating ALF information based on the filter coefficients; and encoding image information including ALF information and residual information, wherein the ALF information includes alternative filter information for the chroma components of the current block, and the alternative filter information indicates alternative filters for reconstructed samples used to derive modifications to the chroma components of the current block.
[0010] According to another embodiment of this 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 image information including adaptive loop filter (ALF) information and residual information from the bitstream; generating a reconstruction sample of the current block based on the residual information; deriving filter coefficients of the ALF based on the ALF information; and generating a modified reconstruction sample of the current block based on the reconstruction sample and the filter coefficients, wherein the ALF information includes alternative filter information regarding the chrominance components of the current block, and the filter coefficients of the chrominance components of the current block are generated based on the alternative filter information.
[0011] Beneficial effects
[0012] According to embodiments of this disclosure, overall image / video compression efficiency can be increased.
[0013] According to embodiments of this disclosure, subjective / objective visual quality can be increased through efficient filtering.
[0014] According to embodiments of this disclosure, ALF-related information can be efficiently notified using signals. Attached Figure Description
[0015] Figure 1 An example of a video / image coding system to which embodiments of the present disclosure may be applied is illustrated schematically.
[0016] Figure 2 This is a diagram schematically illustrating the configuration of a video / image encoding apparatus to which embodiments of the present disclosure may be applied.
[0017] Figure 3 This is a diagram schematically illustrating the configuration of a video / image decoding device to which embodiments of the present disclosure can be applied.
[0018] Figure 4 A block diagram of Context Adaptive Arithmetic Coding (CABAC) is shown.
[0019] Figure 5 The entropy encoder of the encoding device is shown.
[0020] Figure 6 The entropy decoder of the decoding device is shown.
[0021] Figure 7 An example of a layered structure for encoding images / videos is shown.
[0022] Figure 8 This is a flowchart that schematically illustrates an example of ALF processing.
[0023] Figure 9 An example of the shape of an ALF filter is shown.
[0024] Figure 10 An example of a hierarchical structure for ALF data is shown.
[0025] Figure 11 Another example of the hierarchical structure of ALF data is shown.
[0026] Figure 12 The fixed order corresponding to the position-related filter coefficients is shown.
[0027] Figure 13 and Figure 14 Examples of video / image encoding methods and related components according to embodiments of the present disclosure are illustrated schematically.
[0028] Figure 15 and Figure 16 Examples of image / video decoding methods and related components according to embodiments of the present disclosure are illustrated schematically.
[0029] Figure 17 Examples of content streaming systems to which the embodiments disclosed in this disclosure can be applied are shown. Detailed Implementation
[0030] While this disclosure may have various modifications and configurations, certain embodiments have been shown in the accompanying drawings and described in detail herein. However, this should not be construed as limiting this disclosure to any particular embodiment. The terminology used herein is presented to describe particular embodiments and is not intended to limit the technical concept of this disclosure. Unless otherwise specified, singular terms may include plural forms. It will be understood that the terms “comprising” or “having” as used herein specify the presence of said feature, integer, step, operation, element, component, or combination thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
[0031] The various components in the accompanying drawings described in this disclosure are shown independently for ease of depiction of different features and functions, and are not intended to imply that the components are implemented in separate hardware or separate software. For example, two or more configurations may be combined to form a single configuration, or a single configuration may be divided into multiple configurations. Embodiments in which the various configurations are integrated and / or separated are also included within the scope of this disclosure without departing from its spirit.
[0032] In this specification, "A or B" may mean "A only", "B only", or "both A and B". In other words, in this specification, "A or B" may be interpreted as "A and / or B". For example, in this specification, "A, B or C" may mean "A only", "B only", "C only", or "any combination of A, B, and C".
[0033] The forward slash ( / ) or comma used in this specification may mean "and / or". For example, "A / B" may mean "A and / or B". Therefore, "A / B" may mean "A only", "B only", or "both A and B". For example, "A, B, C" may mean "A, B, or C".
[0034] In this specification, "at least one of A and B" may mean "A only", "B only" or "both A and B". Additionally, in this specification, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted as "at least one of A and B".
[0035] Additionally, in this specification, "at least one of A, B, and C" may mean "A only", "B only", "C only" or "any combination of A, B, and C". Furthermore, "at least one of A, B, or C" or "at least one of A, B, and / or C" may mean "at least one of A, B, and C".
[0036] Additionally, the parentheses used in this specification may mean "for example". Specifically, when indicated as "prediction (intra-frame prediction)", it may mean that "intra-frame prediction" is mentioned as an example of "prediction". In other words, "prediction" in this specification is not limited to "intra-frame prediction", and "intra-frame prediction" may be mentioned as an example of "prediction". Furthermore, when indicated as "prediction (i.e., intra-frame prediction)", it may also mean that "intra-frame prediction" is mentioned as an example of "prediction".
[0037] The technical features described individually in a single figure in this specification may be implemented individually or simultaneously.
[0038] Hereinafter, preferred embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. In the drawings, the same reference numerals will be used for the same components, and repeated descriptions of the same components may be omitted.
[0039] Figure 1 An example of a video / image coding system to which this disclosure can be applied is illustrated schematically.
[0040] Reference Figure 1 A video / image encoding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image information or data to the receiving device in the form of a file or stream via a digital storage medium or network.
[0041] 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.
[0042] Video sources can acquire video / images through processes that capture, synthesize, or generate video / images. Video sources may include video / image capture devices and / or video / image generation devices. For example, a video / image capture device may include one or more cameras, a video / image archive including previously captured video / images, etc. For example, a video / image generation device may include a computer, tablet computer, and smartphone, and may generate video / images (electronically). For example, virtual video / images may be generated via a computer, etc. In this case, the video / image capture process may be replaced by a process that generates related data.
[0043] Encoding devices can encode input video / images. For compression and encoding efficiency, encoding devices can perform a series of processes such as prediction, transformation, and quantization. The encoded data (encoded video / image information) can be output as a bitstream.
[0044] The transmitter can send encoded image / image information or data, output as a bitstream, to a receiver of a receiving device in the form of a file or stream via a digital storage medium or 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 media files according to a predetermined file format and may include elements for transmission over a broadcast / communication network. The receiver can receive / extract the bitstream and send the received bitstream to a decoding device.
[0045] Decoding devices can decode video / images by performing a series of processes such as dequantization, inverse transform, and prediction, which correspond to the operations of encoding devices.
[0046] The renderer can render decoded video / images. The rendered video / images can be displayed on a monitor.
[0047] This disclosure relates to video / image coding. For example, the methods / implementations disclosed in this document can be applied to methods disclosed in the Universal Video Coding (VVC) standard, the Basic Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the Audio Video Coding 2 (AVS2) standard, or next-generation video / image coding standards (e.g., H.267, H.268, etc.).
[0048] This document presents various implementations of video / image coding, and unless otherwise specified, the above implementations may also be combined with each other.
[0049] In this document, video can refer to a series of images over time. A frame typically refers to a unit representing an image within a specific time range, while a slice / piece refers to a unit that constitutes part of a frame in terms of encoding. A slice / piece may include one or more coding tree units (CTUs). A frame may consist of one or more slices / pieces.
[0050] A tile is a rectangular area of CTUs within a specific tile column and a specific tile row in an image. A tile column is a rectangular area of CTUs with a height equal to the height of the image and a width specified by a syntax element in the image parameter set. A tile row is a rectangular area of CTUs with a height specified by a syntax element in the image parameter set and a width equal to the width of the image. A tile scan is a specific ordering of CTUs that divides the image, wherein CTUs are ordered consecutively in a tile CTU raster scan, and tiles in the image are ordered consecutively in a tile raster scan. A slice may include multiple complete tiles of the image or multiple consecutive rows of CTUs within a single tile, which may be contained within a single NAL unit. In this document, tile groups and slices are used interchangeably. For example, in this document, a tile group / tile group header may be referred to as a slice / slice header.
[0051] Furthermore, a frame can be divided into two or more sub-frames. A sub-frame can be a rectangular area of one or more slices within the frame.
[0052] A pixel or image unit can refer to the smallest unit that makes up a picture (or image). Additionally, the term "sample" can be used as the counterpart to a pixel. A sample can typically represent a pixel or pixel value, and can represent only the pixel / pixel value of the luminance component or only the pixel / pixel value of the chrominance component.
[0053] A unit can represent a basic unit of image processing. A unit may include a specific region of an image and at least one of the information associated with that region. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, the term "unit" may be used interchangeably with terms such as "block" or "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 refer to a pixel value in the spatial domain, and when such pixel value is transformed to the frequency domain, it may refer to a transform coefficient in the frequency domain.
[0054] Figure 2 This diagram schematically illustrates the configuration of a video / image encoding apparatus to which this disclosure can be applied. Hereinafter, the video encoding apparatus may include an image encoding apparatus.
[0055] Reference Figure 2 The encoding device 200 includes an image segmenter 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 transform 232, a quantizer 233, a dequantizer 234, and an inverse transform 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstruction block generator. According to embodiments, the image segmenter 210, predictor 220, residual processor 230, entropy encoder 240, adder 250, and filter 260 may be configured by at least one hardware component (e.g., an encoder chipset or 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 also include the memory 270 as an internal / external component.
[0056] Image segmenter 210 can segment an input image (or picture or frame) input to encoding device 200 into one or more processors. For example, a processor may be referred to as a coding unit (CU). In this case, the coding unit may be recursively segmented from coding tree unit (CTU) or maximum coding unit (LCU) according to a quadtree-binary-trinary tree (QTBTTT) structure. For example, a coding unit may be segmented into multiple deeper coding units based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure may be applied first, followed by a binary tree structure and / or a ternary structure. Alternatively, a binary tree structure may be applied first. The encoding process according to this disclosure may be performed based on the final coding unit that is no longer segmented. In this case, based on the image characteristics and encoding efficiency, the maximum coding unit may be used as the final coding unit, or if necessary, the coding unit may be recursively segmented into deeper coding units, and the coding unit with the optimal size may be used as the final coding unit. Here, the encoding process may include prediction, transformation, and reconstruction processes (described later). As another example, the processor may also include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be split or divided from the final encoding unit described above. The prediction unit may be a unit for predicting samples, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving residual signals from transform coefficients.
[0057] In some cases, a unit can be used interchangeably with terms such as a block or region. Generally, an M×N block can represent a set of samples or transform coefficients consisting of M columns and N rows. Samples can typically represent pixels or pixel values, and may represent pixel / pixel values of only the luminance component or only the chrominance component. Samples can be used as a term corresponding to a frame (or image) of pixels or picometers.
[0058] In the encoding device 200, a residual signal (residual block, residual sample array) is generated by subtracting the prediction signal (prediction block, prediction sample array) output from the inter-frame predictor 221 or the intra-frame predictor 222 from the input image signal (original block, original sample array), and the generated residual signal is sent to the converter 232. In this case, as shown, the unit in the encoding device 200 that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) may be called the subtractor 231. The predictor can perform prediction on the 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 can determine whether to apply intra-frame prediction or inter-frame prediction based on the current block or CU. As described later in the description of the various prediction modes, the predictor can 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 can be encoded in the entropy encoder 240 and output in the form of a bitstream.
[0059] Intra-predictor 222 can refer to samples in the current frame to predict the current block. Depending on the prediction mode, the referenced samples may be located near or separated from the current block. In intra-prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. For example, non-directional modes may include DC mode and planar mode. For example, depending on the level of detail in the prediction direction, the directional modes may include 33 or 65 directional prediction modes. However, this is just an example, and more or fewer directional prediction modes may be used depending on the settings. Intra-predictor 222 can use the prediction modes applied to neighboring blocks to determine the prediction mode applied to the current block.
[0060] Inter-frame predictor 221 can deduce the prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference frame. Here, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation between motion information between neighboring blocks and the current block. Motion information may include motion vectors and reference frame indices. Motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, neighboring blocks may include spatially neighboring blocks existing in the current frame and temporally neighboring blocks existing in the reference frame. The reference frame including the reference block and the reference frame including the temporally neighboring block may be the same or different. The temporally neighboring block may be referred to as a juxtaposed reference block, a juxtaposed CU (colCU), etc., and the reference frame including the temporally neighboring block may be referred to as a juxtaposed frame (colPic). For example, inter-frame predictor 221 can configure a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to deduce the motion vector and / or reference frame index of the current block. Inter-frame prediction can be performed based on various prediction modes. For example, in skip mode and merge mode, the inter-frame predictor 221 can use motion information of neighboring blocks as motion information for the current block. In skip mode, unlike merge mode, residual signals may not be sent. In motion vector prediction (MVP) mode, motion vectors of neighboring blocks can be used as motion vector predictors, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0061] 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 both intra-frame prediction and inter-frame prediction simultaneously. This can be referred to as combined intra-frame and inter-frame prediction (CIIP). Alternatively, the predictor can predict blocks based on an intra-block copy (IBC) prediction mode or a palette mode. The IBC prediction mode or palette mode can be used for content image / video coding such as screen content coding (SCC) in games, etc. IBC essentially performs prediction in the current frame, but can be performed similarly to inter-frame prediction, such that a reference block is derived in the current frame. That is, IBC can use at least one inter-frame prediction technique described in this disclosure. The palette mode can be considered as an example of intra-frame coding or intra-frame prediction. When a palette mode is applied, sample values within the frame can be signaled based on information about the palette table and palette index.
[0062] The predicted signal generated by the predictor (including inter-frame predictor 221 and / or intra-frame predictor 222) can be used to generate a reconstructed signal or a residual signal. Transformer 232 can generate transform coefficients by applying transform techniques to the residual signal. For example, the transform technique may include at least one of Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Karhunen-Loève Transform (KLT), Graphical Based Transform (GBT), or Conditional Nonlinear Transform (CNT). Here, GBT refers to a transform obtained from a graphic when the relationship information between pixels is represented graphically. CNT refers to a transform generated based on the predicted signal generated using all previously reconstructed pixels. Furthermore, the transform processing can be applied to square pixel blocks of the same size or to blocks of variable size other than squares.
[0063] Quantizer 233 quantizes the transform coefficients and sends them to entropy encoder 240, which encodes the quantized signal (information about the quantized transform coefficients) and outputs a bitstream. This information about the quantized transform coefficients can be referred to as residual information. Quantizer 233 can rearrange the block-type quantized transform coefficients into a one-dimensional vector based on the coefficient scan order, and generate information about the quantized transform coefficients based on this one-dimensional vector. Entropy encoder 240 can perform various encoding methods such as exponential Golomb, context-adaptive variable-length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). Entropy encoder 240 can encode information required for video / image reconstruction other than the quantized transform coefficients (e.g., values of syntax elements, etc.) together or separately. The encoded information (e.g., encoded video / image information) can be sent or stored in NAL (Network Abstraction Layer) units as a bitstream. The video / image information may also include information about various parameter sets, such as Adaptive Parameter Set (APS), Picture Parameter Set (PPS), Sequence Parameter Set (SPS), or Video Parameter Set (VPS). Additionally, the video / image information may include general constraint information. In this disclosure, information and / or syntactic elements transmitted from the encoding device to / signaled to the decoding device may be included in the video / picture information. The video / image information may be encoded by the above-described encoding process and included in a bitstream. The bitstream may be transmitted via a network or stored in a digital storage medium. The network may include broadcast networks and / or communication networks, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) that transmits the signal output from the entropy encoder 240 and / or a storage unit (not shown) that stores the signal may be included as an internal / external element of the encoding device 200, and alternatively, the transmitter may be included in the entropy encoder 240.
[0064] The quantized transform coefficients output from quantizer 233 can be used to generate a prediction signal. For example, the residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transform to the quantized transform coefficients via dequantizer 234 and inverse transformer 235. Adder 250 adds the reconstructed residual signal to the prediction signal output from inter-frame predictor 221 or intra-frame predictor 222 to generate a reconstructed signal (reconstructed frame, reconstructed block, reconstructed sample array). If the block to be processed has no residual (e.g., in the case of applying skip mode), the prediction block can be used as a reconstructed block. Adder 250 may be referred to as a reconstructor or reconstructed block generator. As described below, the generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current frame and can be filtered for inter-frame prediction of the next frame.
[0065] In addition, luminance mapping with chroma scaling (LMCS) can be applied during screen encoding and / or reconstruction.
[0066] Filter 260 can improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, filter 260 can generate a modified reconstructed image by applying various filtering methods to the reconstructed image and store the modified reconstructed image in memory 270 (specifically, the DPB of memory 270). Various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filtering, bilateral filtering, etc. Filter 260 can generate various filtering-related information and send the generated information to entropy encoder 240, as described later in the description of each filtering method. The filtering-related information can be encoded by entropy encoder 240 and output as a bitstream.
[0067] The modified reconstructed frame sent to memory 270 can be used as a reference frame in inter-frame predictor 221. When inter-frame prediction is applied by the encoding device, prediction mismatch between encoding device 200 and decoding device 300 can be avoided and encoding efficiency can be improved.
[0068] The DPB of memory 270 can store reconstructed frames modified for use as reference frames in inter-frame predictor 221. Memory 270 can store motion information of blocks in the current frame that derive (or encode) motion information and / or motion information of already reconstructed blocks in the frame. The stored motion information can be sent to inter-frame predictor 221 and used as motion information for spatially or temporally neighboring blocks. Memory 270 can store reconstructed samples of reconstructed blocks in the current frame and can transmit the reconstructed samples to intra-frame predictor 222.
[0069] In this disclosure, at least one of quantization / dequantization and / or transformation / inverse transformation may be omitted. When quantization / dequantization is omitted, the transformation coefficients of the quantization may be referred to as transformation coefficients. When transformation / inverse transformation is omitted, the transformation coefficients may be referred to as coefficients or residual coefficients, or, for the sake of consistency, may still be referred to as transformation coefficients.
[0070] Furthermore, in this 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 via 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 the inverse transform (scaling) of the transform coefficients. The residual samples may be derived based on the inverse transform (scaling) of the scaled transform coefficients. These details may also be applied / expressed in other parts of this disclosure.
[0071] Figure 3 This is a diagram schematically illustrating the configuration of a video / image decoding device to which this disclosure can be applied.
[0072] Reference 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-frame predictor 331 and an inter-frame predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to embodiments, the entropy decoder 310, residual processor 320, predictor 330, adder 340, and filter 350 may be configured by hardware components (e.g., a decoder chipset or 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.
[0073] When the input includes a bitstream containing video / image information, the decoding device 300 can reconstruct and... Figure 2 The encoding device processes video / image information corresponding to the image. For example, the decoding device 300 can deduce units / blocks based on block segmentation information obtained from the bitstream. The decoding device 300 can use a processor applied in the encoding device to perform decoding. Therefore, for example, the processor for decoding can be an encoding unit, and the encoding unit can be segmented from encoding tree units or maximum encoding units according to a quadtree structure, binary tree structure, and / or ternary tree structure. One or more transform units can be derived from the encoding units. The reconstructed image signal decoded and output by the decoding device 300 can be reproduced by a reproduction device.
[0074] Decoding device 300 can receive from Figure 2The encoding device outputs a signal 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 information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets, such as adaptive parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). In addition, the video / image information may also include general constraint information. The decoding device can also decode the picture based on the information about the parameter sets and / or general constraint information. The information and / or syntax elements notified / received by signals, as described later in this disclosure, can be decoded and obtained from the bitstream through the decoding process. For example, the entropy decoder 310 decodes the information in the bitstream based on encoding methods such as exponential Golomb coding, CAVLC, or CABAC, and outputs quantized values of the syntax elements and transform coefficients of the residuals required for image reconstruction. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntactic element in the bitstream, determines a context model using information about the target syntactic element, decoding information about the target block, or information about symbols / bins decoded in a previous stage, and performs arithmetic decoding on the bins by predicting the probability of bin occurrence based on the determined context model, generating symbols corresponding to the values of each syntactic element. In this case, the CABAC entropy decoding method can update the context model after determining the context model by using the information of the decoded symbols / bins for the context model of the next symbol / bin. Information related to prediction from the information decoded by the entropy decoder 310 can be provided to the predictors (inter-frame predictor 332 and intra-frame predictor 331), and the residual values (i.e., quantized transform coefficients and related parameter information) from the entropy decoder 310 can be input to the residual processor 320. The residual processor 320 can derive residual signals (residual blocks, residual samples, residual sample arrays). Additionally, information about filtering from the information decoded by the entropy decoder 310 can be provided to the filter 350. Furthermore, a receiver (not shown) for receiving signals output from the encoding device may be configured as an internal / external component of the decoding device 300, or the receiver may be a component of the entropy decoder 310. Additionally, the decoding device according to this disclosure may be referred to as a video / image / picture decoding device, and the decoding device may be classified as an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoder 310, and the sample decoder may 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.
[0075] Dequantizer 321 can dequantize the quantized transform coefficients and output the transform coefficients. Dequantizer 321 can rearrange the quantized transform coefficients in a two-dimensional block format. In this case, the rearrangement can be performed based on the coefficient scan order performed in the encoding device. Dequantizer 321 can use quantization parameters (e.g., quantization step size information) to perform dequantization on the quantized transform coefficients and obtain the transform coefficients.
[0076] The inverse transformer 322 performs inverse transformation on the transformation coefficients to obtain the residual signal (residual block, residual sample array).
[0077] The predictor can perform prediction on the current block and generate a prediction block that includes prediction samples of the current block. The predictor can determine whether to apply intra-frame prediction or inter-frame prediction to the current block based on information about the prediction output from the entropy decoder 310, and can determine a specific intra-frame / inter-frame prediction mode.
[0078] Predictor 330 can generate a prediction signal based on various prediction methods. For example, the predictor can not only apply 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 intra-frame and inter-frame prediction (CIIP). Alternatively, the predictor can predict blocks based on an intra-block copy (IBC) prediction mode or a palette mode. IBC prediction mode or palette mode can be used for content image / video coding such as screen content coding (SCC) in games. IBC essentially performs prediction in the current frame, but can be performed similarly to inter-frame prediction, such that a reference block is derived in the current frame. That is, IBC can use at least one inter-frame prediction technique described in this disclosure. Palette mode can be considered as an example of intra-frame coding or intra-frame prediction. When a palette mode is applied, sample values within the frame can be signaled based on information about the palette table and palette index.
[0079] Intra-predictor 331 can refer to samples in the current frame to predict the current block. Depending on the prediction mode, the referenced samples may be located near or separated from the current block. In intra-prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. Intra-predictor 331 can use the prediction modes applied to neighboring blocks to determine the prediction mode applied to the current block.
[0080] Inter-frame predictor 332 can deduce the predicted block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference frame. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation between motion information between neighboring blocks and the current block. Motion information may include motion vectors and reference frame indices. Motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, neighboring blocks may include spatially neighboring blocks existing in the current frame and temporally neighboring blocks existing in the reference frame. For example, inter-frame predictor 332 can configure a motion information candidate list based on neighboring blocks and deduce the motion vector and / or reference frame index of the current block based on the received candidate selection information. Inter-frame prediction can 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.
[0081] Adder 340 generates a reconstruction signal (reconstructed frame, reconstruction block, reconstruction sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including inter-frame predictor 332 and / or intra-frame predictor 331). If the block to be processed has no residual, such as when a skip mode is applied, the prediction block can be used as a reconstruction block.
[0082] Adder 340 may be referred to as a reconstructor or reconstruction block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current frame, and can be output through filtering as described below, or it can be used for inter-frame prediction of the next frame.
[0083] In addition, Luminance Mapping with Chroma Scaling (LMCS) can be applied in the image decoding process.
[0084] Filter 350 can improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, filter 350 can generate a modified reconstructed image by applying various filtering methods to the reconstructed image and store the modified reconstructed image in memory 360 (specifically, the DPB of memory 360). For example, various filtering methods may include deblocking filtering, sample adaptive shifting, adaptive loop filtering, bilateral filtering, etc.
[0085] The (modified) reconstructed frame stored in the DPB of memory 360 can be used as a reference frame in inter-frame predictor 332. Memory 360 can store motion information of blocks in the current frame that have had their motion information derived (or decoded) and / or motion information of already reconstructed blocks in the frame. The stored motion information can be sent to inter-frame predictor 332 as motion information for spatially or temporally neighboring blocks. Memory 360 can store reconstructed samples of reconstructed blocks in the current frame and transmit the reconstructed samples to intra-frame predictor 331.
[0086] In this document, the implementations described in the filter 260, inter-frame predictor 221, and intra-frame predictor 222 of the encoding device 200 can be applied in the same way as or respectively corresponding to the filter 350, inter-frame predictor 332, and intra-frame predictor 331 of the decoding device 300. This can also be applied to the inter-frame predictor 332 and the intra-frame predictor 331.
[0087] As described above, in video coding, prediction is performed to increase compression efficiency. This generates a prediction block that includes prediction samples of the current block (the block to be encoded). Here, the prediction block includes prediction samples in the spatial domain (or pixel domain). The prediction block is derived identically from both the encoding and decoding devices, 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 themselves. By signaling the device, 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 reconstruction block including reconstructed samples by summing the residual block and the prediction block, and generate a reconstructed image including the reconstruction block.
[0088] Residual information can be generated through transform and quantization processes. For example, an 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 residual-related information (via bitstream) to the decoding device. Here, residual information may include position information, transform technique, transform kernel and quantization parameters, and the value information of the quantized transform coefficients. The decoding device can perform dequantization / inverse transform processing based on the residual information and derive residual samples (or residual blocks). The decoding device can generate a reconstructed frame based on the prediction block and the residual block. The encoding device can also perform dequantization / inverse transform on the quantized transform coefficients used for inter-frame prediction reference in later frames to derive residual blocks and generate a reconstructed frame based on them.
[0089] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the transform coefficients of the quantization 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.
[0090] In this document, quantized transform coefficients and transform coefficients can be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, residual information may include information about the transform coefficients, and this information about the transform coefficients can be signaled via residual coding syntax. Transform coefficients can be derived based on residual information (or information about the transform coefficients), and scaled transform coefficients can be derived by the inverse transform (scaling) of the transform coefficients. Residual samples can be derived based on the inverse transform (scaling) of the scaled transform coefficients. This can also be applied / expressed in other parts of this document.
[0091] Intra-frame prediction refers to the prediction of a block based on reference samples in the frame to which the current block belongs (hereinafter referred to as the current frame). When intra-frame prediction is applied to the current block, neighboring reference samples to be used for intra-frame prediction of the current block can 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 adjacent to the lower left, samples adjacent to the top boundary of the current block and a total of 2×nW samples adjacent to the upper right, and a sample adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include multiple upper neighbor samples and multiple left neighbor samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and a sample adjacent to the lower right of the current block.
[0092] However, some neighboring reference samples of the current block may not yet be decoded or available. In this case, the decoder can configure the neighboring reference samples to be used for prediction by replacing the unavailable samples with the available ones. Alternatively, the neighboring reference samples to be used for prediction can be configured by interpolation of the available samples.
[0093] When deriving neighboring reference samples, (i) the predicted sample can be derived based on the average or interpolation of the neighboring reference samples of the current block, and (ii) the predicted sample can be derived based on reference samples among the peripheral reference samples of the current block that exist in a specific (predictive) direction of the predicted sample. Case (i) can be referred to as non-directional mode or non-angular mode, and case (ii) can be referred to as directional mode or angular mode.
[0094] Furthermore, predicted samples can also be generated by interpolation between the first and second nearest neighbor samples in the neighboring reference samples, where the predicted sample of the current block is located in the direction opposite to the prediction direction of the intra-prediction mode of the current block. This is known as Linear Interpolation Intra-Prediction (LIP). Alternatively, a linear model can be used to generate chroma predicted samples based on luminance samples. This is known as LM mode.
[0095] Additionally, a provisional prediction sample for the current block can be derived based on filtered neighboring reference samples, and at least one reference sample derived from the existing neighboring reference samples according to the intra-prediction mode (i.e., an unfiltered neighboring reference sample) and the provisional prediction sample can be weighted and summed to derive the prediction sample for the current block. This situation can be referred to as position-dependent intra-prediction (PDPC).
[0096] Alternatively, the reference sample line with the highest prediction accuracy among the neighboring multiple reference sample lines of the current block can be selected to derive the prediction sample using reference samples located in the prediction direction on the corresponding line. The reference sample line used in this paper can then be indicated (signaled) to the decoding device to perform intra-frame prediction coding. The above situation can be referred to as multiple reference line (MRL) intra-frame prediction or MRL-based intra-frame prediction.
[0097] Alternatively, 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 sub-partitions, and in some cases, intra-prediction performance can be improved by deriving and using neighboring reference samples on a sub-partition basis. This prediction method can be called intra-partition (ISP) or ISP-based intra-prediction.
[0098] The intra-prediction methods described above can be separated from intra-prediction modes and referred to as intra-prediction types. Intra-prediction types can be named using various terms such as intra-prediction techniques or additional intra-prediction modes. For example, an intra-prediction type (or additional intra-prediction mode) may include at least one of LIP, PDPC, MRL, and ISP described above. General intra-prediction methods other than specific intra-prediction types such as LIP, PDPC, MRL, or ISP may be referred to as normal intra-prediction types. Normal intra-prediction types can typically be applied without applying specific intra-prediction types and can be used to perform predictions based on the intra-prediction modes described above. Furthermore, post-filtering can be performed on the derived prediction samples as needed.
[0099] Specifically, the intra-frame prediction process may include an intra-frame prediction mode / type determination step, a neighboring reference sample derivation step, and a prediction sample derivation step based on the intra-frame prediction mode / type. Additionally, a post-filtering step may be performed on the derived prediction samples as needed.
[0100] When applying intra-prediction, the intra-prediction mode applied to the current block can be determined using the intra-prediction modes of neighboring blocks. For example, the decoding device can select one of the MPM candidates from a list of MPM candidates derived from the intra-prediction modes of neighboring blocks (e.g., left and / or top neighboring blocks) based on the received Most Probable Mode (MPM) index, and select one of the remaining intra-prediction modes not included in the MPM candidates (and planar modes) based on the remaining intra-prediction mode information. The MPM list can be configured to include or exclude planar modes as candidates. For example, if the MPM list includes planar modes as candidates, it can have six candidates. If the MPM list excludes planar modes as candidates, it can have three candidates. When the MPM list excludes planar modes as candidates, a non-planar flag indicating whether the intra-prediction mode of the current block is not a planar mode can be signaled (e.g., intra_luma_not_planar_flag). For example, the MPM flag can be signaled first, and when the MPM flag is 1, the MPM index and non-planar flag can be signaled. Additionally, when the non-planar flag has a value of 1, the MPM index can be signaled. Here, the MPM list is configured not to include planar patterns as candidates, and the non-planar flag is not signaled first to check if it is a planar pattern, because planar patterns are always considered as MPMs.
[0101] For example, whether the intra-prediction mode applied to the current block is in an MPM candidate (and planar mode) or in a remaining mode can be indicated based on an MPM flag (e.g., Intra_luma_mpm_flag). A value of 1 for the MPM flag indicates that the intra-prediction mode of the current block is in an MPM candidate (and planar mode), and a value of 0 for the MPM flag indicates that the intra-prediction mode of the current block is not in an MPM candidate (and planar mode). A value of 0 for a non-planar flag (e.g., Intra_luma_not_planar_flag) indicates that the intra-prediction mode of the current block is planar, and a value of 1 for the non-planar flag indicates that the intra-prediction mode of the current block is not planar. The MPM index can be signaled as an MPM_idx or Intra_luma_mpm_idx syntax element, and the remaining intra-prediction mode information can be signaled as a Rem_intra_luma_pred_mode or Intra_luma_mpm_remainder syntax element. For example, the remaining intra-prediction mode information can be indexed according to the prediction mode number to indicate one of the remaining intra-prediction modes not included in the MPM candidates (and planar modes). The intra-prediction mode can be an intra-prediction mode for the luma component (sample). The intra-prediction mode information may include at least one of the following: 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 remaining intra-prediction mode information (rem_intra_luma_pred_mode or Intra_luma_mpm_remainder). In this document, the MPM list may be referred to by various terms such as the MPM candidate list and candModeList. When MIP is applied to the current block, the individual MPM flags used for MIP (e.g., intra_mip_mpm_flag), MPM index (e.g., intra_mip_mpm_idx), and remaining intra-prediction mode information (e.g., intra_mip_mpm_remainder) can be signaled, and non-plane flags are not signaled.
[0102] In other words, when performing block splitting on an image, the current block to be encoded and its neighboring blocks typically have similar image characteristics. Therefore, there is a high probability that the current block and its neighboring blocks have the same or similar intra-prediction modes. Thus, the encoder can use the intra-prediction modes of neighboring blocks to encode the intra-prediction mode of the current block.
[0103] For example, the encoder / decoder can configure a list of most probable modes (MPMs) for the current block. The MPM list can also be referred to as the MPM candidate list. In this paper, MPM can refer to a mode that considers the similarity between the current block and neighboring blocks to improve coding efficiency in intra-frame predictive mode coding. As mentioned above, the MPM list can be configured to include planar modes or can be configured not to include planar modes. For example, when the MPM list includes planar modes, the number of candidates in the MPM list can be 6. And if the MPM list does not include planar modes, the number of candidates in the MPM list can be 5.
[0104] The encoder / decoder can be configured to include a list of 5 or 6 MPMs.
[0105] To configure the MPM list, three types of modes can be considered: default intra-frame mode, neighbor intra-frame mode, and deduced intra-frame mode.
[0106] For the near-neighbor intra-frame mode, two neighboring blocks can be considered: the left neighboring block and the top neighboring block.
[0107] As described above, if the MPM list is configured not to include flat patterns, then flat patterns are excluded from the list, and the number of candidates in the MPM list can be set to 5.
[0108] Additionally, non-directional (or non-corner) modes in intra-frame prediction modes may include a DC mode based on the average of neighboring reference samples of the current block or a planar mode based on interpolation.
[0109] When inter-frame prediction is applied, the predictor of the encoding / decoding device can derive prediction samples by performing inter-frame prediction on a block-by-block basis. Inter-frame prediction can be derived in a manner that depends on data elements (e.g., sample values or motion information) of frames other than the current frame. When applying inter-frame prediction to the current block, the prediction block (prediction sample array) of the current block can be derived based on the reference block (reference sample array) specified by the motion vector on the reference frame indicated by the reference frame index. Here, to reduce the amount of motion information transmitted in inter-frame prediction mode, the motion information of the current block can be predicted on a block, sub-block, or sample-by-sample basis based on the correlation of motion information between neighboring blocks and the current block. Motion information may include motion vectors and reference frame indices. Motion information may also include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, neighboring blocks may include spatially neighboring blocks existing in the current frame and temporally neighboring blocks existing in the reference frame. The reference frame including the reference block and the reference frame including the temporally neighboring block may be the same or different. Temporally neighboring blocks can be referred to as collated reference blocks, collated CUs (colCU), etc., and reference frames including temporally neighboring blocks can be referred to as collated frames (colPic). For example, a candidate list of motion information can be configured based on the neighboring blocks of the current block, and a signal can be used to indicate which candidate's flag or index information is selected (used) to derive the motion vector of the current block and / or the reference frame index. Inter-frame prediction can be performed based on various prediction modes. For example, in skip mode and merge mode, the motion information of the current block can be the same as the motion information of neighboring blocks. In skip mode, unlike merge mode, residual signals may not be sent. In motion vector prediction (MVP) mode, the motion vectors of the selected neighboring blocks can be used as motion vector predictors, and the motion vector of the current block can be signaled. In this case, the motion vector of the current block can be derived using the sum of the motion vector predictor and the motion vector difference.
[0110] Depending on the inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.), motion information may include L0 motion information and / or L1 motion information. Motion vectors in the L0 direction may be referred to as L0 motion vectors or MVL0, and motion vectors in the L1 direction may be referred to as L1 motion vectors or MVL1. Prediction based on L0 motion vectors may be called L0 prediction, prediction based on L1 motion vectors may be called L1 prediction, and prediction based on both L0 and L1 motion vectors may be called bi-prediction. Here, L0 motion vectors may indicate motion vectors associated with a reference frame list L0 (L0), and L1 motion vectors may indicate motion vectors associated with a reference frame list L1 (L1). The reference frame list L0 may include frames that are earlier than the current frame in output order as reference frames, and the reference frame list L1 may include frames that are later than the current frame in output order. Previous frames may be referred to as forward (reference) frames, and subsequent frames may be referred to as backward (reference) frames. The reference frame list L0 may also include frames that are later than the current frame in output order as reference frames. In this scenario, the previous frame can be indexed first in the reference frame list L0, and subsequent frames can be indexed later. The reference frame list L1 may also include previous frames that are earlier than the current frame in the output order. In this case, subsequent frames can be indexed first in the reference frame list L1, and previous frames can be indexed later. The output order can correspond to the Frame Order Count (POC) order.
[0111] Figure 4 A block diagram of Context Adaptive Arithmetic Coding (CABAC) is shown.
[0112] When the input signal is a syntax element rather than a binary value, CABAC's encoding process first converts the input signal into a binary value through binarization. If the input signal is already 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 (cell string) is 110, each of the 1s, 1s, and 0s is called a cell. A cell used for a syntax element indicates the value of the corresponding syntax element.
[0113] The binarized cells are input into either a regular coding engine or a bypass coding engine. The regular coding engine assigns a context model reflecting the probability value to the corresponding cell and encodes the cell based on the assigned context model.
[0114] In a conventional coding engine, after encoding each information cell, the probability model of the corresponding information cell can be updated. Information cells encoded in this way are called context-coded information cells. A bypass coding engine omits the process of estimating the probability of input information cells and updating the probability model applied to the corresponding information cells after encoding. Encoding speed is improved by applying a uniform probability distribution (e.g., 50:50) to the input information cells instead of allocating context. Information cells encoded in this way are called bypass information cells. Context models can be allocated and updated for each information cell to be context-coded (conventional coding), and the context model can be indicated based on ctxidx or ctxInc. ctxidx can be derived based on ctxInc. Specifically, for example, the context index (ctxidx) indicating the context model of each conventionally encoded information 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 information 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 of the context model that is usually used to distinguish other syntactic elements, and the context model of a syntactic element can be distinguished / derived based on ctxinc.
[0115] During entropy encoding, it can be determined whether encoding is performed using a regular encoding engine or a bypass encoding engine; therefore, the encoding path can be switched. Entropy decoding performs the same processing as entropy encoding in reverse order.
[0116] Figure 5 The entropy encoder of the encoding device is shown.
[0117] Figure 5 The entropy encoder 500 can be used with the above Figure 2 The entropy encoder 240 is the same. The binarization unit 501 in the entropy encoder 500 can perform binarization on the target syntactic element. Here, the binarization can be based on various binarization methods such as truncated Rice binarization and fixed-length binarization, and the binarization method used for the target syntactic element can be predefined.
[0118] The entropy encoding processor 502 in the entropy encoder 500 can perform entropy encoding on the target syntactic element. The encoding device can encode the empty string of the target syntactic element based on entropy encoding techniques such as context-adaptive arithmetic coding (CABAC) or context-adaptive variable-length coding (CAVLC), either using conventional encoding (context-based) or bypass encoding, and the output can be included in a bitstream. As described above, the bitstream can be transmitted to the decoding device via a (digital) storage medium or a network.
[0119] Figure 6 The entropy decoder of the decoding device is shown.
[0120] Figure 6 The entropy decoder 600 can be used with the above Figure 3 The entropy decoder 310 is identical. The binarization unit 601 in the entropy decoder 600 performs binarization on the target syntactic element. Here, binarization can be based on various binarization methods such as truncated Ricean binarization and fixed-length binarization, and the binarization method used for the target syntactic element can be predefined. The decoding device can derive available cell strings (cell string candidates) of available values for the target syntactic element through the binarization process.
[0121] The entropy decoding processor 602 in the entropy decoder 600 performs entropy decoding on the target syntactic element. The decoding device sequentially decodes and parses each cell of the target syntactic element from the input bits in the bitstream, and compares the derived cell string with the available cell string of the corresponding syntactic element. If the derived cell string matches one of the available cell strings, the value corresponding to the cell string is derived as the value of the corresponding syntactic element. If not, the above process is repeated after further parsing the next bit in the bitstream. Through this process, corresponding information can be signaled using variable-length bits without using the start or end bits of specific information (specific syntactic element) in the bitstream. Thus, relatively fewer bits can be allocated to low values, and overall coding efficiency can be increased.
[0122] Figure 7 An example of a layered structure for encoding images / videos is shown.
[0123] Reference Figure 7 The encoded images / videos are divided into a Video Coding Layer (VCL) that processes the images / videos and performs its own decoding, a subsystem that sends and stores the encoded information, and a Network Abstraction Layer (NAL) that is responsible for the functions and exists between the VCL and the subsystems.
[0124] In VCL, VCL data including compressed image data (slice data) is generated, or parameter sets including Picture Parameter Set (PSP), Sequence Parameter Set (SPS) and Video Parameter Set (VPS) or additional supplemental enhancement information (SEI) messages required for image decoding processing can be generated.
[0125] In NAL, NAL cells are generated by adding header information (NAL cell header) to the raw byte sequence payload (RBSP) generated in VCL. In this case, RBSP refers to slice data, parameter sets, SEI messages, etc., generated in VCL. The NAL cell header may include NAL cell type information specified based on the RBSP data included in the corresponding NAL cell.
[0126] As shown in the figure, NAL units can be classified into VCL NAL units and non-VCL NAL units based on the RBSP generated in the VCL. VCL NAL units can refer to NAL units that include information about the image (slice data), while non-VCL NAL units can refer to NAL units that include information (parameter set or SEI message) required to decode the image.
[0127] The aforementioned VCL NAL units and non-VCL NAL units can be transmitted over a network by adding header information according to the data standard of the subsystem. For example, NAL units can be converted into data formats of predetermined standards such as H.266 / VVC file format, Real-time Transport Protocol (RTP), Transport Stream (TS), etc., and transmitted over various networks.
[0128] As described above, NAL cells can be specified as NAL cell types based on the RBSP data structures included in the corresponding NAL cells, and information about the NAL cell type can be stored in the NAL cell header and notified by signals.
[0129] For example, NAL units can be classified into VCL NAL unit types and non-VCL NAL unit types based on whether the NAL unit includes information about the image (slice data). VCL NAL unit types can be classified based on the nature and type of the image included in the VCL NAL unit, and non-VCL NAL unit types can be classified based on the type of parameter set.
[0130] The following is an example of a NAL cell type specified based on the type of the parameter set included in a non-VCL NAL cell type.
[0131] - APS (Adaptive Parameter Set) NAL Unit: The type of NAL unit including APS.
[0132] - DPS (Decoding Parameter Set) NAL Unit: The type of NAL unit including the DPS.
[0133] - VPS (Video Parameter Set) NAL Unit: Includes the type of NAL unit for the VPS.
[0134] - SPS (Sequence Parameter Set) NAL Unit: The type of NAL unit that includes SPS.
[0135] - PPS (Picture Parameter Set) NAL Unit: Includes the types of NAL units for PPS.
[0136] - PH (Header) NAL Unit: The type of NAL unit including PH.
[0137] The aforementioned NAL unit type may contain syntactic information, which can be stored in the NAL unit header and signaled. For example, the syntactic information may be nal_unit_type, and the NAL unit type may be specified by the nal_unit_type value.
[0138] Furthermore, as mentioned above, a frame can include multiple slices, and a slice can include a slice header and slice data. In this case, a frame header can be further added to multiple slices (slice header and slice dataset) within a frame. The frame header (frame header syntax) can include information / parameters typically applicable to the frame. In this document, tile groups can be mixed with or replaced by slices or frames. Additionally, in this document, tile group headers can be mixed with or replaced by slice headers or frame headers.
[0139] A slice header (slice header syntax) may include information / parameters typically applicable to a slice. APS (APS syntax) or PPS (PPS syntax) may include information / parameters typically applicable to one or more slices or frames. SPS (SPS syntax) may include information / parameters typically applicable to one or more sequences. VPS (VPS syntax) may include information / parameters typically applicable to multiple layers. DPS (DPS syntax) may include information / parameters typically applicable to the total video. DPS may include information / parameters related to the concatenation of coded video sequences (CVS). The High-Level Syntax (HLS) in this document may include at least one of APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, and slice header syntax.
[0140] 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 segmentation-related information, intra / inter-frame prediction information, residual information, loop filtering information, etc. in the frame, but also information included in the slice header, information included in the APS, information included in the PPS, information included in the SPS and / or information included in the VPS.
[0141] Furthermore, to compensate for differences between the original and reconstructed images caused by errors in compression coding processes such as quantization, loop filtering can be performed on the reconstructed samples or reconstructed images as described above. As mentioned above, loop filtering can be performed by filters from the encoding and decoding devices, and deblocking filters, SAO, and / or adaptive loop filters (ALF) can be applied. For example, ALF processing can be performed after deblocking filtering and / or SAO processing is completed. However, even in this case, deblocking filtering and / or SAO processing can be omitted.
[0142] Figure 8This is a flowchart that schematically illustrates an example of ALF processing. Figure 8 The ALF processing disclosed herein can be performed in both an encoding device and a decoding device. In this document, the encoding device may include both an encoding device and / or a decoding device.
[0143] Reference Figure 8 The encoding device derives a filter for ALF (S800). The filter may include filter coefficients. The encoding device can determine whether ALF is applied, and when it is determined that ALF is applied, it can derive a filter including filter coefficients for ALF. The information used to derive the filter (coefficients) for ALF, or the filter (coefficients) for ALF, may be referred to as ALF parameters. Information regarding whether ALF is applied (i.e., the ALF enable flag) and ALF data used to derive the filter can be signaled from the encoding device to the decoding device. The ALF data may include information used to derive the filter for ALF. Additionally, for example, for layered control of ALF, the ALF enable flag can be signaled at the SPS, frame header, slice header, and / or CTB levels, respectively.
[0144] To derive the filter for ALF, the activity and / or directivity of the current block (or ALF target block) are derived, and the filter can be derived based on the activity and / or directivity. For example, ALF processing can be applied in 4×4 block units (based on the luma component). The current block or ALF target block can be, for example, a CU, or it 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 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 directivity. The encoding device can perform ALF using the filter coefficients included in the selected filter.
[0145] The encoding device performs filtering based on the filter (S810). Modified reconstructed samples can be derived based on the filtering. For example, the filter coefficients in the filter can be arranged or allocated 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 deblocking filtering and SAO processing. For example, a single filter shape can be used, or a filter shape can be selected and used from multiple predetermined filter shapes. For example, the filter shape applied to the luma component and the filter shape applied to the chroma component can be different. For example, a 7×7 diamond filter shape can be used for the luma component, and a 5×5 diamond filter shape can be used for the chroma component.
[0146] Figure 9 An example of the shape of an ALF filter is shown. Figure 9 C0~C11 in (a) and Figure 9In (b), C0 to C5 can be filter coefficients that depend on their position within the shape of each filter.
[0147] Figure 9 (a) shows the shape of a 7×7 rhombus filter. Figure 9 (b) shows the shape of a 5×5 rhombus filter. Figure 9 In this document, Cn in the filter shape represents the filter coefficient. When 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 can be referred to as a filter tap. In this case, a filter coefficient can be assigned to various filter taps, and the arrangement of the filter taps can correspond to the filter shape. The filter tap located at the center of the filter shape can 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 in corresponding positions relative to the center filter tap. For example, in the case of a 7×7 rhombus filter shape, which includes 25 filter taps, and since filter coefficients C0 to C11 are assigned in a centrally symmetrical manner, only 13 filter coefficients can be used to assign filter coefficients to the 25 filter taps. Alternatively, for example, in the case of a 5×5 rhombus filter shape, which includes 13 filter taps, and since filter coefficients C0 to C5 are assigned in a centrally symmetrical manner, only 7 filter coefficients can be used to assign filter coefficients to the 13 filter taps. For example, to reduce the amount of data regarding filter coefficients that can be signaled, 12 of the 13 filter coefficients in a 7×7 rhombus filter shape can be signaled explicitly, and one filter coefficient can be derived implicitly. Alternatively, for example, 6 of the 7 filter coefficients in a 5×5 rhombus filter shape can be signaled explicitly, and one filter coefficient can be derived implicitly.
[0148] According to the implementation method described in this document, the ALF parameters used for ALF processing can be signaled via an adaptive parameter set (APS). The ALF parameters can be derived from filter information or ALF data used for ALF.
[0149] ALF is an in-loop filtering technique that can be applied in video / image coding as described above. ALF can be performed using Wiener-based adaptive filters. This can be done to minimize the mean squared error (MSE) between the original sample and the decoded sample (or reconstructed sample). Advanced designs for ALF tools can include syntactic elements accessible from the SPS and / or slice header (or piece group header).
[0150] Figure 10 An example of a hierarchical structure for ALF data is shown.
[0151] Reference Figure 10 A encoded video sequence (CVS) 900 may include a sequence of frames (SPS), one or more frames (PPS), and one or more subsequent encoded frames. Each encoded frame can be divided into rectangular regions. These rectangular regions may be referred to as tiles. One or more tiles may be aggregated to form a tile group or 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 existing methods, ALF data (ALF parameters) is included in the tile group header. Considering that a video consists of multiple frames and a frame includes multiple tiles, frequent ALF data (ALF parameter) signaling in units of tile groups reduces coding efficiency.
[0152] According to the embodiments proposed in this disclosure, ALF parameters may be included in the APS and notified by signals as follows.
[0153] Figure 11 Another example of the hierarchical structure of ALF data is shown.
[0154] Reference Figure 11 The CVS 1100 may include an SPS, one or more PPSs, one or more APSs, and subsequently one or more encoded frames. That is, an APS is defined, and the APS may carry the 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 an 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 reference the APS. In other words, the tile group header or slice header may include APS index information, and ALF processing of the target block may be performed based on the ALF data (ALF parameters) included in the APS with the APS ID indicated by the APS index information. Here, the APS index information may be referred to as APS ID information.
[0155] Additionally, the SPS may include flags that allow the use of ALF. For example, the SPS can be checked when CVS starts, and the flag can be checked within the SPS. For example, the SPS may include the syntax of Table 1 below. The syntax of Table 1 may be part of the SPS.
[0156] [Table 1]
[0157] For example, the semantics of the syntactic elements included in the syntax of Table 1 can be represented as shown in Table 2 below.
[0158] [Table 2]
[0159] In other words, the syntax element `sps_alf_enabled_flag` indicates whether ALF is enabled. When the value of the ALF enabling flag `sps_alf_enabled_flag`, which is signaled via SPS (or SPS level), is 1, it can be determined that ALF is enabled for the screen in the CVS of the reference SPS. Conversely, when the value of `sps_alf_enabled_flag` is 0, it can be determined that ALF is not enabled for the screen in the CVS of the reference SPS.
[0160] Furthermore, as mentioned above, ALF can be individually enabled / disabled by signaling an additional enable flag at a level lower than SPS. For example, when enabling ALF tools for CVS, the slice_alf_enabled_flag can be signaled in the tile group header or slice header. For example, the slice header may include the syntax shown in Table 3 below.
[0161] [Table 3]
[0162] For example, the semantics of the syntactic elements included in the syntax of Table 3 can be represented as shown in the following table.
[0163] [Table 4]
[0164] For example, when ALF is enabled at the SPS level, the slice_alf_enabled_flag can be resolved / notified via a signal. Individual tile groups consisting of one or more tiles can determine whether ALF is enabled based on the slice_alf_enabled_flag.
[0165] When the value of the ALF enable flag sps_alf_enabled_flag, which is signaled by a signal in the tile header or slice header, is 1, ALF data can be parsed through the slice header. For example, slice_alf_enabled_flag can specify the ALF enable conditions for the luma and chroma components.
[0166] ALF data can be accessed via APS ID information (i.e., slice_alf_aps_id). The APS referenced by a corresponding tile group or slice can be identified based on the APS ID information. APS may include ALF data.
[0167] Furthermore, the structure of the APS, which includes ALF data, can be described based on syntax such as Table 5 below. The syntax in Table 5 can be part of the APS.
[0168] [Table 5]
[0169] For example, the semantics of the syntactic elements included in the syntax of Table 5 can be represented as shown in Table 6 below.
[0170] [Table 6]
[0171] As described above, the syntax element `adaptation_parameter_set_id` indicates 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` can be referred to as the APS ID information. Additionally, the APS may include ALF data fields. The ALF data field `alf_data()` can be parsed / signaled after the syntax element `adaptation_parameter_set_id`.
[0172] The core processing / manipulation of ALF information can be performed in the slice header or tile group header. The aforementioned ALF data fields may include information about the processing of ALF filters. For example, information that can be extracted from ALF data fields 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 Columbus (EG) parameter, and / or the increment values of the filter coefficients, etc.
[0173] In addition, for example, an ALF data field may include the following ALF data syntax.
[0174] [Table 7]
[0175] For example, the semantics of the syntactic elements included in the syntax of Table 7 can be represented as shown in the following table.
[0176] [Table 8]
[0177] Parsing of the ALF data in the slice header begins by parsing / signaling the syntax element `alf_luma_filter_signal_flag` that indicates whether to signal the luma filter set. Similarly, the syntax element `alf_chroma_filter_signal_flag` that indicates whether to signal the chroma filter can be parsed / signaled.
[0178] When alf_luma_filter_signal_flag is enabled, alf_luma_clip_flag can be parsed.
[0179] When this flag is disabled, a linear adaptive loop filter can be specified to be applied to the luminance component. When this flag is enabled, a nonlinear adaptive loop filter can be specified to be applied to the luminance component.
[0180] Additionally, information about the number of brightness filters used can be analyzed.
[0181] As an example, the maximum number of filters that can be used can be set to 25. When the number of luminance filters signaled is at least one, the filter index information can be parsed / signed for each filter in the range from 0 to the maximum number of filters (i.e., 25, which may also be referred to as a class). This can mean that each class (i.e., from 0 to the maximum number of filters) is associated with a filter index.
[0182] Next, the `alf_luma_use_fixed_filter_flag` can be parsed / signaled, 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 of 0 to 15. Additionally, the `alf_luma_fixed_filter_pred_present_flag` can be parsed / signaled. This flag specifies whether a fixed filter is used to predict the coefficients of the i-th filter. Then, for each filter, the flag indicating whether a fixed filter is used for the corresponding filter can be decoded.
[0183] When marking filters to be used for various classes based on filter indexes, the `alf_luma_coeff_delta_flag` can be parsed / signaled. This flag can be used to interpret whether the `alf_luma_coeff_delta_prediction_flag` flag, which relates to the prediction of ALF luminance filter coefficient increment values, exists in the slice header.
[0184] If the number of luminance filters signaled 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 the syntax element `alf_luma_coeff_delta_prediction_flag` is present in the slice header and its state is evaluated. If the state of the syntax element `alf_luma_coeff_delta_prediction_flag` is 1, it means that luminance filter coefficients are predicted from previous luminance (filter) coefficients. If the state of the syntax element `alf_luma_coeff_delta_prediction_flag` is 0, it means that luminance filter coefficients are not predicted from the increment of previous luminance (filter) coefficients.
[0185] Furthermore, when the delta filter coefficients (i.e., alf_luma_coeff_delta_abs) are encoded based on exponential Golomb codes, the order k (order k) of the exponential Golomb (EG) code can be determined to decode the delta luminance filter coefficients (i.e., alf_luma_coeff_delta_abs). For example, the filter coefficients can be decoded using order k based on exponential Golomb codes. The order of the exponential Golomb code can be represented as EG(k).
[0186] To determine EG(k), the syntax element alf_luma_min_eg_order_minus1 can be parsed / signaled. 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 EG used for decoding the incremental luminance 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.
[0187] After parsing / signaling the syntax element `alf_luma_min_eg_order_minus1`, the syntax element `alf_luma_eg_order_increase_flag` can 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` increases 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` does not increase. The order of the EG can be represented by the index of the EG. For example, the EG order (or EG index) (related to the luma component) based on the syntax elements `alf_luma_min_eg_order_minus1` and `alf_luma_eg_order_increase_flag` can be determined as follows.
[0188] [Table 9]
[0189] Based on deterministic processing, expGoOrderY can be derived as expGoOrderY = KminTab. From this, an array including the EG order can be derived, which can be used by the decoding device. expGoOrderY can indicate the EG order (or EG index).
[0190] The table below illustrates the method for deriving the Columbus order based on the algorithm described above. That is, the algorithm can be based on the table below. In the table, the Columbus index can be the input, and the k-th order to be used can be the corresponding output.
[0191] [Table 10]
[0192] Referring to Table 10, the (minimum) Columbus order and / or (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 resolved. When this flag is enabled (if available), the Columbus order corresponding to 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), the Columbus order may not be increased when the Columbus index = 0. Kmin can be updated using the Columbus order, for example, the Columbus index can be considered (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 instructs Kmin to increase by 1 so that the final Columbus order is 3.
[0193] Figure 12 An example is shown showing the Columbus index of filter coefficients according to filter type. Figure 12 (a) can represent a 5×5 filter. Figure 12 (b) can represent a 7×7 filter. Here, only a portion of the symmetric filter may be shown. Figure 12 In the diagram, the numbers at each position can represent the pre-assigned Golomb index of the ALF filter coefficient corresponding to that position.
[0194] In one example, the k-th Golomb order of a given filter coefficient can be determined by indexing the Golomb index of the given coefficient position into Table 11 above. Individual ALF filter coefficients can be decoded using the k-th order.
[0195] In one example, a predefined Columbus order index may exist (i.e., golombOrderIdxY). The predefined Columbus order can be used to determine the final Columbus order used to encode the coefficients.
[0196] For example, a predefined Columbus order can be configured as follows.
[0197] [Formula 1]
[0198] Here, the order k = expGoOrderY[golombOrderIdxY[j]], and j can represent the filter coefficient of the j-th signal. For example, if j = 2 (i.e., the third filter coefficient), then golomborderIdxY[2] = 1, so k = expGoOrderY[1].
[0199] In this case, for example, if the value of the syntax element alf_luma_coeff_delta_flag is true (i.e., 1), then the syntax element alf_luma_coeff_flag can be signaled for each filter that is signaled. The syntax element alf_luma_coeff_flag indicates whether the luminance filter coefficients are (explicitly) signaled.
[0200] When the order of EG and the state of the aforementioned related flags (i.e., alf_luma_coeff_delta_flag, alf_luma_coeff_flag, etc.) are determined, the difference and sign information of the luminance filter coefficients can be parsed / signed (i.e., alf_luma_coeff_flag is true) (if indicated). The absolute value information of the increment of each of the 12 filter coefficients can be parsed / signed (alf_luma_coeff_delta_abs syntax element). Additionally, if the syntax element alf_luma_coeff_delta_abs has a value, the sign information can be parsed / signed (alf_luma_coeff_delta_sign syntax element). The information including the difference and sign information of the luminance filter coefficients can be referred to as information about the luminance filter coefficients.
[0201] The increments of the filter coefficients can be determined and stored along with their signs. In this case, the increments of the signed filter coefficients can be stored in the form of an array, which can be represented as filterCoefficients. The increments of the filter coefficients can be called incremental luminance coefficients, and the increments of the signed filter coefficients can be called signed incremental luminance coefficients.
[0202] To determine the final filter coefficients from the signed incremental luminance coefficients, the (luminance) filter coefficients can be updated as follows.
[0203] [Equation 2]
[0204] Here, j can indicate the filter coefficient index, and sigFiltIdx can indicate the filter index notified by a signal. j={0,… ,11}, and sigFiltIdx={0,… ,alf_luma_filters_signaled_minus1}.
[0205] The coefficients can be copied into the final AlfCoeffL[filtIdx][j]. In this case, filtidx = 0, …, 24, and j = 0, … , 11.
[0206] The signed incremental luminance coefficients of a given filter index can be used to determine the first 12 filter coefficients. For example, the thirteenth filter coefficient of a 7×7 filter can be determined based on the following formula. The thirteenth filter coefficient can indicate the center-tap filter coefficient mentioned above.
[0207] [Formula 3]
[0208] Here, filter coefficient index 12 indicates the thirteenth filter coefficient.
[0209] For example, to ensure bitstream consistency, the final filter coefficients AlfCoeffL[filtIdx][k] range from 0, …, 11, and can be set to -2. 7 Up to 2 7 The range is -1, and when k is 12, it can be between 0 and 2. 8 Within the range of -1. Here, k can be replaced by j.
[0210] When processing the luminance component, processing of the chrominance component can 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 chrominance component can be parsed / signed (i.e., the syntax element `alf_chroma_min_eg_order_minus1`). According to the above embodiment of this document, a 5×5 diamond filter shape can be used for the chrominance component. In this case, the maximum Golomb index can be 2. In this case, for example, the EG order (or EG index) of the chrominance component can be determined as follows.
[0211] [Table 11]
[0212] Based on deterministic processing, expGoOrderC can be derived as expGoOrderC = KminTab. From this, an array including EG orders can be derived, which can be used by the decoding device. expGoOrderC can indicate the EG order (or EG index) of the chroma components.
[0213] If `alf_luma_clip_flag` is enabled (if available), the minimum exponential Golomb order used for clipping can be resolved. Similar to ALF coefficient signaling, `alf_luma_clip_eg_order_increase_flag` can be resolved. Then, for each filter index, `alf_luma_doeff_flag` is enabled (if available), and the clipping index can be resolved if filter coefficients exist (i.e., j=0.. 1).
[0214] Once the luminance filter coefficients are reconstructed, the chrominance coefficients can also be resolved. Additionally, a predefined Golomb order index (golombOrderIdxC) can exist. This predefined Golomb order can be used to determine the final Golomb order used for encoding the coefficients.
[0215] For example, a predefined Columbus order can be configured as follows.
[0216] [Formula 4]
[0217] Here, the order k = expGoOrderC[golombOrderIdxC[j]], and j can represent the filter coefficient of the jth signal. For example, if j = 2, it indicates the third filter coefficient, golomborderIdxY[2] = 1, so k = expGoOrderC[1].
[0218] Based on this, the absolute value information and sign information of the chroma filter coefficients can be parsed / signed. This 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 diamond filter shape can be applied to the chroma components. In this case, the absolute increment information (syntactic element alf_chroma_coeff_abs) of each of the six (chroma component) filter coefficients can be parsed / signed. Additionally, if the value of the syntactic element alf_chroma_coeff_abs is greater than 0, the sign information (syntactic element alf_chroma_coeff_sign) can be parsed / signed. 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 aforementioned center-tap filter coefficient.
[0219] [Formula 5]
[0220] Here, filter coefficient index 6 indicates the seventh filter coefficient. For reference, since filter coefficient indices start from 0, the value 6 indicates the seventh filter coefficient.
[0221] For example, to ensure bitstream consistency, when k is 0, …, 5, the final filter coefficient AlfCoeffC[filtIdx][k] can range from -2. 7 Up to 2 7 -1, when k is 6, the final filter coefficient AlfCoeffC[filtIdx][k] can be in the range of -2. 8 Up to 2 8 -1. Here, k can be replaced by j.
[0222] Then, similar to the case for luminance, when determining the chroma clipping index, the `alf_luma_clip_flag` can be checked. If this flag is enabled (if available), the minimum Golomb order of the clipping can be resolved. Then, if filter coefficients exist, the `alf_chroma_clip_index` can be resolved.
[0223] As described above, when deriving (luminance / chrominance) filter coefficients, ALF-based filtering can be performed based on the filter coefficients or a filter including the filter coefficients. Thus, as described above, modified reconstructed samples can be derived. Furthermore, multiple filters can be derived, and the filter coefficients of one of the multiple filters can be used for ALF processing. For example, one of the multiple filters can be indicated based on filter selection information notified by a signal. Alternatively, for example, one of the multiple filters can 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 can be used for ALF processing.
[0224] Once the layer information from the APS and 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 facilitates the decoding of the Coding Tree Unit.
[0225] The following table illustrates the syntax of a coding tree unit.
[0226] [Table 12]
[0227] For example, the semantics of the syntactic elements included in the syntax of Table 12 can be represented as shown in the following table.
[0228] [Table 13]
[0229] In CTU-level processing, when ALF is enabled for a slice, the syntax element `alf_ctb_flag` can be parsed / signaled. `alf_ctb_flag` specifies that ALF is applied to the Code Tree Block (CTB). When ALF is applied to the CTB and the number of APSIDs sent is greater than 0, another flag, `alf_use_aps_flag`, can be parsed / signaled. When `alf_use_aps_flag` is 1, filter information for applying APS to the luma CTB can be specified. However, when `alf_use_aps_flag` is disabled, one of a fixed set of filters can be applied to the CTB.
[0230] In the embodiments of this document, an encoding process for efficiently applying the aforementioned ALF is proposed. According to the embodiments of this document, an example of binarization processing of the aforementioned syntactic element alf_luma_fixed_filter_idx is presented. Here, alf_luma_fixed_filter_idx can specify a fixed filter applied to the (luminance) CTB (reconstructed sample).
[0231] In one example, if `alf_use_aps_flag` is true (value 1), a set of filters from the APS can be applied to the (luma) CTB (reconstructed sample), and the filter coefficients can be derived based on information about previous filters (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 (luma) CTB (reconstructed sample). For example, the value of `alf_luma_fixed_filter_idx` can be in the range of 0 to 15.
[0232] The following shows an example of binarization processing of syntactic elements related to ALF.
[0233] [Table 14]
[0234] In Table 14, the syntactic element alf_luma_fixed_filter_idx can be encoded based on truncated binary (TB) binarization. For example, the maximum value associated with the syntactic element (e.g., cMax) could be 15. TB binarization only unnecessarily increases complexity without any additional benefit. Therefore, the following example based on fixed-length (FL) binarization is proposed.
[0235] The following is another example showing the binarization information of syntactic elements related to the ALF process.
[0236] [Table 15]
[0237] Table 15 focuses on the differences from Table 14. In Table 15, the syntactic element alf_luma_fixed_filter_idx can be encoded based on FL binarization. For example, the maximum value associated with a syntactic element (e.g., cMax) can be represented using 4 bits.
[0238] The following table shows an example of assigning ctxInc to a syntactic element that uses context-coded information as context-coded information according to Table 15 above. In Table 15, for example, for the syntactic element alf_luma_fixed_filter_idx, information with binIdx greater than or equal to 5 may not exist (or may be unavailable).
[0239] [Table 16]
[0240] According to an embodiment of this disclosure, an example of the binarization process for the above-described syntactic element alf_luma_fixed_filter_set_idx is provided. Here, alf_luma_fixed_filter_set_idx can specify the index of a fixed filter set.
[0241] For example, a fixed-length (FL) binarization process can be applied to the signaling of alf_luma_fixed_filter_set_idx.
[0242] The table below illustrates ALF data syntax.
[0243] [Table 17]
[0244] Referring to the table above, 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 table below.
[0245] [Table 18]
[0246] In the embodiments of this document, a signaling method related to ALF coefficients is proposed to simplify the signaling derivation of the Columbus order. For example, in the embodiments of this document, the proposed method can be implemented by fixed signaling. In one example, the k-th order of the exponential Columbus code can be fixed to 2 for luminance and 3 for chrominance. However, the embodiments of this document are not limited to this example, and the k-th order can be fixed to another suitable value.
[0247] The following shows the syntax of the simplified ALF data field applied above.
[0248] [Table 19]
[0249] For example, the semantics of the syntactic elements included in the syntax of Table 19 can be represented as shown in the following table.
[0250] [Table 20]
[0251] In the implementation of this document, a method is proposed to use a predetermined Golomb order for each ALF filter coefficient.
[0252] The table below exemplarily illustrates the Columbus order (kth order) used for decoding ALF luminance coefficients. C0 to C11 represent the ALF luminance coefficient indices (or, for example, depending on the...). Figure 6 (Filter coefficients used for the position in the filter shape of ALF), where, for example, the k-th order can be 2 or 3.
[0253] [Table 21]
[0254] The table below illustrates the encoding-based semantics according to this implementation. For example, the table below could be a modification of the semantics of the Columbus order with a fixed luminance coefficient or chrominance coefficient.
[0255] [Table 22]
[0256] In the embodiments of this document, a method is proposed to signal a fixed Columbus order only for the chromaticity components. That is, an example of signaling for a fixed Columbus order for the chromaticity components is implemented according to this embodiment.
[0257] The following table exemplarily illustrates the syntax of an encoded ALF data field according to an implementation of this document.
[0258] [Table 23]
[0259] For example, the semantics of the syntactic elements included in the syntax of Table 23 can be represented as shown in the following table.
[0260] [Table 24]
[0261] In the embodiments of this document, fixed signaling (e.g., alf_luma_clip_idx[sfIdx][j], alf_chroma_clip_idx[j], etc.) is proposed for encoding information about ALF clipping. For example, the k-th order Columbus can be predetermined or pre-fixed and used as described in the embodiments above.
[0262] The following table illustrates the syntax of an encoded ALF data field according to this embodiment.
[0263] [Table 25]
[0264] For example, the semantics of the syntactic elements included in the syntax of Table 25 can be represented as shown in the following table.
[0265] [Table 26]
[0266] In the embodiments of this document, signaling combinations from various perspectives of ALF data fields are proposed based on (or dependent on) exponential Golomb coding. That is, an example of signaling combining at least one of the above embodiments can be implemented through this embodiment.
[0267] The following table exemplarily illustrates the syntax of an encoded ALF data field according to this embodiment.
[0268] [Table 27]
[0269] For example, the semantics of the syntactic elements included in the syntax of Table 27 can be represented as shown in the following table.
[0270] [Table 28]
[0271] In embodiments of this disclosure, a method is proposed to prevent the APS ID of chromaticity from being signaled and inferred.
[0272] The following table illustrates the syntax of the encoding-based slice header according to this embodiment.
[0273] [Table 29]
[0274] For example, the semantics of syntactic elements included in the syntax of the table above can be represented as shown in the table below.
[0275] [Table 30]
[0276] Referring to the table above, regardless of whether the slice type is I or the number of ALF APS referenced by the slice is one, a signal can be used to notify slice_alf_aps_id_chroma.
[0277] Furthermore, in embodiments of this disclosure, a method for parsing / using signals to notify alternative filter information of chroma components is proposed.
[0278] The following table exemplarily illustrates the syntax of an encoded ALF data field according to this embodiment.
[0279] [Table 31]
[0280] For example, the semantics of syntactic elements included in the syntax of the table above can be represented as shown in the table below.
[0281] [Table 32]
[0282] Referring to the table above, the ALF data field may include alternative filter information for the chroma components.
[0283] For example, the syntactic element `alf_chroma_num_alts_minus1` can indicate the number of alternative filters used for the chroma components. The index `altIdx` of the alternative filters used for the chroma components can have a value in the range of 0 to `alf_chroma_num_alts_minus1`. Additionally, the syntactic element `alf_chroma_coeff_abs[altIdx][j]` can indicate the absolute value of the i-th coefficient included in the alternative filters with index `altIdx`. Furthermore, the syntactic element `alf_chroma_coeff_sign[altIdx][j]` can indicate the sign of the i-th coefficient included in the alternative filters with index `altIdx`.
[0284] Comparing Table 32 with Table 7 above, it can be understood that in the embodiments of this disclosure, the syntax related to the exponential Golomb coding of the ALF coefficients and the limiting coefficients is simplified, and the syntax used to predict the filter coefficients is removed by using fixed filter prediction. Furthermore, referring to Table 32 above, in the embodiments of this disclosure, a method is proposed to signal the fixed exponential Golomb order instead of signaling the order k of the exponential Golomb (EG) code.
[0285] The table below illustrates the syntax of a Code Tree Unit (CTU).
[0286] [Table 33]
[0287] For example, the semantics of syntactic elements included in the syntax of the table above can be represented as shown in the table below.
[0288] [Table 34]
[0289] Referring to the table above, index information for the alternative filters used to apply ALF to the coding tree unit (CTU) or the chroma component of the current block may be included. For example, the syntax element alf_ctb_filter_alt_idx can specify the index of the alternative filter used for the chroma component when ALF is applied to the chroma component with chroma index 1 or 2.
[0290] The following table illustrates the syntax of Sample Adaptive Offset Syntax (SAO).
[0291] [Table 35]
[0292] The following table shows an example of an ALF procedure in a standard document format.
[0293] [Table 36]
[0294] Additionally, the table below illustrates an example of the coding tree unit filtering process for luminance samples in a standard document format.
[0295] [Table 37]
[0296] Additionally, the table below illustrates an example of the process for deriving the ALF transpose and filter index for luminance samples in a standard document format.
[0297] [Table 38]
[0298] Additionally, the table below illustrates an example of the coding tree unit filtering process for chroma samples in a standard document format.
[0299] [Table 39]
[0300] Additionally, the following table shows an example of the initialization value (initValue) and shift index (shiftIdx) of the context index increment (ctxInc) based on the syntactic element alf_ctb_filter_alt_idx.
[0301] [Table 40]
[0302] Referring to the table above, the initialization value (initValue) of the syntactic element `alf_ctb_filter_alt_idx`, which indicates the index information of the alternative filter, can be determined based on either 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`.
[0303] Additionally, the following shows examples of binarization related to various syntaxes including the syntactic element alf_ctb_filter_alt_idx.
[0304] [Table 41]
[0305] Referring to the table above, the syntactic element `alf_ctb_filter_alt_idx`, which indicates the index information of the substitution filters used for applying ALF (Code Tree Unit) or the chroma component of the current block, can be encoded based on a truncated Rice binarization method using the index parameters of the substitution filters. Additionally, the maximum value (cMax) of the index parameters for the substitution filters used for the chroma components can correspond to `alf_chroma_num_alts_minus1`. `alf_chroma_num_alts_minus1` can correspond to a value one less than the number of substitution filters used for the chroma components. Furthermore, the truncated Rice binarization method can be performed based on a Rice parameter (cRiceParam) value of 0.
[0306] Additionally, the following table illustrates, in standard document format, an example of the process for deriving the context index increment (ctxInc) of the syntactic element alf_ctb_filter_alt_idx.
[0307] [Table 42]
[0308] The information cells in the information cell string of the substitution filter's index information can be entropy-decoded based on the context model, and the context model of the information cells in the information cell string of the substitution filter's index information can be determined based on the context index increment of the information cells. Referring to the table above, the context model of the substitution filter's index information can be determined based on the context index increment of the syntactic element alf_ctb_filter_alt_idx that indicates the substitution filter's index information, and the context index increment of the substitution filter's index information can be determined based on the CTU of the applied ALF or the chroma component of the current block. For example, the context index increment of the substitution filter's index information can be determined based on the index of the chroma component. For example, the context index increment derived when the chroma component of the current block is cb may be different from the context index increment derived when the chroma component of the current block is cr. For example, when the index of the chroma component is 0, the context index increment of alf_ctb_filter_alt_idx may have a value of 0, and when the index of the chroma component is 1, the context index increment of alf_ctb_filter_alt_idx may have a value of 1. Alternatively, for example, when the index of the chroma component is 1, the context index increment of alf_ctb_filter_alt_idx may have a value of 1, and when the index of the chroma component is 2, the context index increment of alf_ctb_filter_alt_idx may have a value of 2.
[0309] Figure 13 and Figure 14 Examples of video / image encoding methods and related components according to embodiments of the present disclosure are illustrated schematically. Figure 13 The method shown can be derived from Figure 2 The encoding device shown performs the following actions. Specifically, for example, S1300 can be executed by the predictor 220 of the encoding device, S1310 can be executed by the residual processor 230 of the encoding device, and S1320 can be executed by either the residual processor 230 or the adder 250 of the encoding device. Additionally, S1330 to S1340 can be executed by the adder 250 of the encoding device, and S1350 can be executed by the entropy encoder 240 of the encoding device. Figure 13 The methods shown may include the embodiments described above in this disclosure.
[0310] Reference Figure 13 The encoding device derives a prediction sample for the current block in the current frame (S1300). The encoding device may derive the prediction sample for the current block based on a prediction mode. The encoding device may generate prediction mode information indicating the prediction mode applied to the current block. In this case, various prediction methods described in this disclosure (e.g., inter-frame prediction or intra-frame prediction) may be applied. In this case, the encoding device may generate prediction mode information. The encoding device may generate prediction mode information indicating the prediction mode applied to the current block.
[0311] The encoding device derives the residual sample for the current block based on the predicted sample (S1210). The encoding device can derive the residual sample based on the predicted sample and the original sample. For example, the encoding device can derive the residual sample based on a comparison between the original sample and the modified reconstructed sample.
[0312] The encoding device generates residual information and reconstructed samples based on the residual samples (S1320). Based on the residual information, (modified) residual samples can be derived. Reconstructed samples can be generated based on the (modified) residual samples and the predicted samples.
[0313] The encoding device derives the filter coefficients (S1330) of the adaptive loop filter (ALF) for the reconstructed samples. The encoding device can generate ALF-related information. The encoding device can derive ALF-related parameters that can be applied to filter the reconstructed samples.
[0314] Additionally, the encoding device generates ALF information based on the filter coefficients (S1340). For example, the ALF information may include information about the ALF filter coefficients described above in this disclosure, information about fixed filters, information about clipping, etc. Alternatively, for example, the ALF information may include alternative filter information for the chroma components of the current block.
[0315] The encoding device encodes image information, including ALF information and residual information (S1250). The image / video information may include information used to generate reconstructed samples and / or information related to ALF. The information used to generate reconstructed samples may include, for example, prediction-related information, residual information, and / or quantization / transformation-related information. Prediction-related information may include information about various prediction modes (e.g., merging mode, MVP mode, etc.), MVD information, etc.
[0316] Encoded image / video information can be output as a bitstream. The bitstream can be sent to the decoding device via a network or storage medium.
[0317] According to embodiments of this disclosure, image / video information may include various types of information.
[0318] In an implementation, the substitution filter information may include information about the number of substitution filters for the chromaticity components of the current block, absolute value information of the coefficients included in the substitution filters for the chromaticity components of the current block, and sign information of the coefficients included in the substitution filters for the chromaticity components of the current block.
[0319] In one implementation, the substitution filter information may include index information of substitution filters for the chrominance components of the current block. Furthermore, the index information of the substitution filters may be based on truncated Ricean binarization.
[0320] In an implementation, the maximum value (cMax) of the index information of the substitution filter can be equal to a value that is 1 less than the number of substitution filters used for the chromaticity components of the current block, and truncated Rice binarization can be performed based on a Rice parameter (cRiceParam) value of 0.
[0321] In this implementation, the cells in the cell string used to replace the filter's index information can be entropy-encoded based on a context model. The context model of the cells in the cell string relative to the filter's index information can be determined based on the context index increment of the cells. Furthermore, the context index increment can be determined based on the index of the chroma component of the current block.
[0322] In an implementation, the context index increment derived when the chroma component of the current block is cb may be different from the context index increment derived when the chroma component of the current block is cr.
[0323] In an implementation, 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 chromaticity components of the current block and clipping index information indicating the clipping value.
[0324] Figure 15 and Figure 16Examples of image / video decoding methods and related components according to embodiments of the present disclosure are illustrated schematically. Figure 15 The method shown can be derived from Figure 3 The decoding device shown performs the following actions. Specifically, for example, S1500 can be performed by the entropy decoder 310 of the decoding device, S1510 can be performed by the adder 340 of the decoding device, and S1520 to S1530 can be performed by the filter 350 of the decoding device. Figure 15 The methods shown may include the embodiments described above in this disclosure.
[0325] Reference Figure 15 The decoding device obtains image information from the bitstream, including adaptive loop filter (ALF) information and residual information (S1500). The image information may include various information according to the above embodiments of this disclosure. For example, the image information may include at least a portion of prediction-related information or residual-related information.
[0326] For example, prediction-related information may include inter-frame prediction mode information or inter-frame prediction type information. For example, inter-frame prediction mode information may include information indicating at least a portion 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 and MVD (MMVD) mode may be used. Additionally, in addition to or instead of auxiliary modes, decoder-side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, dual prediction with CU-level weights (BCW), or bidirectional optical flow (BDOF) may be used. For example, inter-frame prediction type information may include the inter_pred_idc syntax element. Alternatively, inter-frame prediction type information may include information indicating any of L0 prediction, L1 prediction, and paired (dual) prediction.
[0327] Additionally, the image information may include various information according to embodiments of this 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 this disclosure, information about fixed filters, information about clipping, etc. Alternatively, for example, the ALF information may include alternative filter information for the chroma components of the current block.
[0328] The decoding device generates a reconstruction sample for the current block based on the residual information (S1510). The decoding device can derive a prediction sample for the current block based on prediction-related information included in the image / video information. The decoding device can derive residual samples based on residual information included in the image / video information. The decoding device can generate reconstruction samples based on the prediction samples and residual samples. The reconstructed block and reconstructed frame can be derived based on the reconstruction samples.
[0329] The decoding device derives the filter coefficients of the ALF based on the ALF information (S1520). The decoding device can derive the filter coefficients of the ALF. A filter may include a set of filter coefficients. The filter or filter coefficients may be derived based on the ALF information. Alternatively, the filter coefficients for the chroma components of the current block may be generated based on alternative filter information.
[0330] The decoding device generates a modified reconstruction sample for the current block based on the reconstruction sample and ALF information (S1530). The decoding device can derive the filter coefficients used for ALF from the ALF information and generate the reconstruction sample and the modified reconstruction sample based on the filter coefficients.
[0331] For example, a decoding device can generate modified reconstructed samples by filtering the reconstructed samples, and the filtering process of the reconstructed samples can be performed using filters based on filter coefficients. The image reconstructed by the decoding device may include the reconstructed samples.
[0332] In an implementation, the substitution filter information may include information about the number of substitution filters for the chromaticity components of the current block, absolute value information of the coefficients included in the substitution filters for the chromaticity components of the current block, and sign information of the coefficients included in the substitution filters for the chromaticity components of the current block.
[0333] In one implementation, the substitution filter information may include index information of substitution filters for the chromaticity components of the current block, and the index information of the substitution filters may be based on truncated Ricean binarization.
[0334] In one implementation, the maximum value (cMax) of the index information of the substitution filter can be equal to a value that is 1 less than the number of substitution filters used for the chromaticity components of the current block, and truncated Rice binarization can be performed based on a Rice parameter (cRiceParam) value of 0.
[0335] In this implementation, the cells in the cell string used to replace the filter's index information can be entropy-encoded based on a context model. The context model of the cells in the cell string relative to the filter's index information can be determined based on the context index increment of the cells. Furthermore, the context index increment can be determined based on the index of the chroma component of the current block.
[0336] In an implementation, the context index increment derived when the chroma component of the current block is cb may be different from the context index increment derived when the chroma component of the current block is cr.
[0337] In an implementation, 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 chromaticity components of the current block and clipping index information indicating the clipping value.
[0338] In the above embodiments, the method is described based on a flowchart having a series of steps or blocks. This disclosure is not limited to the order of the steps or blocks described above. Some steps or blocks may occur simultaneously or in a different order than the other steps or blocks described above. Furthermore, those skilled in the art will understand that the steps shown in the above flowchart are not exclusive and may include additional steps, or one or more steps in the flowchart may be deleted without affecting the scope of this disclosure.
[0339] The methods described in the embodiments of this document can be implemented in software, and the encoding and / or decoding devices according to this document can be included, for example, in devices that perform image processing for TVs, computers, smartphones, set-top boxes, display devices, etc.
[0340] When the embodiments described in this document are implemented in software, the above methods can be implemented as modules (processes, functions, etc.) that perform the above functions. Modules can be stored in memory and executed by a processor. Memory can be located internally or externally to the processor and can be connected to the processor by various well-known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. Memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and / or other storage devices. That is, the embodiments described in this document can be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units shown in the various figures can be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information about the instructions or algorithms used for implementation can be stored in a digital storage medium.
[0341] Furthermore, the decoding and encoding devices employing this disclosure can be included in multimedia broadcasting transmitting / receiving devices, mobile communication terminals, home theater video devices, digital cinema video devices, surveillance cameras, video chat devices, real-time communication devices (e.g., video communication), mobile streaming devices, storage media, cameras, VoD service providing devices, over-the-top (OTT) video devices, internet streaming service providing devices, three-dimensional (3D) video devices, teleconferencing video devices, transportation user equipment (i.e., vehicle user equipment, aircraft user equipment, ship user equipment, etc.), and medical video devices, and can be used to process video signals and data signals. For example, over-the-top (OTT) video devices may include game consoles, Blu-ray players, internet access TVs, home theater systems, smartphones, tablet PCs, digital video recorders (DVRs), etc.
[0342] Furthermore, the processing method applied in this document can be generated in the form of a program to be executed by a computer and can be stored in a computer-readable recording medium. Multimedia data having the data structure according to this disclosure can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices that store data readable by a computer system. For example, computer-readable recording media may include BD, Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical data storage devices. Additionally, computer-readable recording media include media implemented in the form of a carrier wave (i.e., transmission via the Internet). Furthermore, the bitstream generated by this encoding method can be stored in a computer-readable recording medium or transmitted via a wired / wireless communication network.
[0343] Furthermore, the embodiments described in this document can be implemented as a computer program product based on program code, and the program code can be executed in a computer using the embodiments described in this document. The program code can be stored on a computer-readable medium.
[0344] Figure 17 Examples of content streaming systems to which the implementation methods disclosed in this document can be applied are shown.
[0345] Reference Figure 17 The content streaming system that applies the implementation method of this document may mainly include an encoding server, a streaming server, a network server, a media storage device, a user device, and a multimedia input device.
[0346] An encoding server compresses content input from multimedia input devices (e.g., smartphones, cameras, camcorders, etc.) into digital data to generate a bitstream and sends the bitstream to a streaming server. As another example, when the multimedia input device (e.g., smartphone, camera, camcorder, etc.) generates the bitstream directly, the encoding server can be omitted.
[0347] A bitstream can be generated by an encoding method or bitstream generation method that applies the embodiments of this disclosure, and the stream server can temporarily store the bitstream during the sending or receiving of the bitstream.
[0348] The streaming server sends multimedia data to the user's device based on the user's request via a web server, with the web server acting as a medium to inform the user of services. When a user requests a desired service from the web server, the web server forwards it to the streaming server, and the streaming server sends the multimedia data to the user. In this scenario, the content streaming system may include a separate control server. In this case, the control server is used to control the commands / responses between devices within the content streaming system.
[0349] A streaming server can receive content from media storage devices and / or encoding servers. For example, when receiving content from an encoding server, the content can be received in real time. In this case, to provide a smooth streaming service, the streaming server can store the bitstream for a predetermined period of time.
[0350] Examples of user devices may include mobile phones, smartphones, laptops, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, head-mounted displays), digital TVs, desktop computers, digital signage, etc. The servers in a content streaming system can operate as distributed servers, in which case data received from each server can be distributed.
[0351] In a content streaming system, each server can operate as a distributed server, and in this case, the data received from each server can be distributed and processed.
[0352] The claims described herein can be combined in various ways. For example, the technical features of the method claims of this document can be combined and implemented as a device, and the technical features of the device claims of this document can be combined and implemented as a method. Furthermore, the technical features of the method claims and the device claims of this document can be combined to implement a device, and the technical features of the method claims and the device claims of this document can be combined and implemented as a method.
Claims
1. A decoding device for image decoding, the decoding device comprising: Memory; as well as At least one processor, connected to the memory, is configured to: Image information, including prediction-related information, adaptive loop filter (ALF) information, and residual information, is obtained from the bitstream; The prediction mode for the current block is determined based on the prediction-related information. Based on the prediction pattern, generate prediction samples for the current block; Based on the residual information, a residual sample for the current block is generated; Based on the predicted samples and the residual samples, a reconstruction sample for the current block is generated; The filter coefficients used for ALF are derived based on the ALF information; as well as Based on the reconstructed samples and the filter coefficients, reconstructed samples for modifying the current block are generated. The ALF information includes alternative filter information for the chrominance components of the current block. Specifically, the filter coefficients for the chromaticity components of the current block are generated based on the alternative filter information. The substitution filter information includes information about the number of substitution filters for the chroma component of the current block, information about the absolute values of the coefficients included in the substitution filters for the chroma component of the current block, and information about the signs of the coefficients included in the substitution filters for the chroma component of the current block. The image information also includes index information for the replacement filters of the chroma components of the current block. The index information of the substitution filter is based on truncated Ricean binarization. In this context, the information elements in the information element string of the index information used for the replacement filter are entropy-decoded based on a context model. The context model for the cells in the cell string associated with the index information of the alternative filter is determined based on the context index increment for the cells. The context index increment is determined based on the chroma components of the current block, and The context index increment derived from the chroma component cb of the current block is different from the context index increment derived from the chroma component cr of the current block.
2. An encoding device for image encoding, the encoding device comprising: Memory; as well as At least one processor, connected to the memory, is configured to: Derive the prediction pattern for the current block; Generate prediction-related information based on the prediction model; Based on the prediction pattern, a prediction sample for the current block is derived; Based on the predicted samples, derive the residual samples for the current block; Residual information is generated based on the residual samples; Based on the predicted samples and the residual samples, a reconstruction sample for the current block is generated; Derive the filter coefficients for the adaptive loop filter ALF for the reconstructed samples; ALF information is generated based on the filter coefficients; as well as Image information, including the prediction-related information, the ALF information, the residual information, and the index information of the substitution filter for the chroma component of the current block, is encoded. The ALF information includes alternative filter information for the chrominance components of the current block. The substitution filter information indicates a substitution filter used to derive a reconstructed sample for modifying the chromaticity components of the current block. The substitution filter information includes information about the number of substitution filters for the chroma component of the current block, information about the absolute values of the coefficients included in the substitution filters for the chroma component of the current block, and information about the signs of the coefficients included in the substitution filters for the chroma component of the current block. The index information of the substitution filter is based on truncated Ricean binarization. In this context, the information elements in the information element string of the index information used for the substitution filter are entropy-encoded based on a context model. The context model for the cells in the cell string associated with the index information of the alternative filter is determined based on the context index increment for the cells. The context index increment is determined based on the chroma components of the current block, and The context index increment derived from the chroma component cb of the current block is different from the context index increment derived from the chroma component cr of the current block.
3. An apparatus for transmitting data for an image, the apparatus comprising: At least one processor, configured to: obtain a bitstream for the image, wherein the bitstream is generated by performing the following operations: deriving a prediction mode for a current block; generating prediction-related information based on the prediction mode; deriving prediction samples for the current block based on the prediction mode; deriving residual samples for the current block based on the prediction samples; generating residual information based on the residual samples; generating reconstructed samples for the current block based on the prediction samples and the residual samples; deriving filter coefficients for an adaptive loop filter (ALF) for the reconstructed samples; generating ALF information based on the filter coefficients; and encoding image information including the prediction-related information, the ALF information, the residual information, and index information of an alternative filter for the chroma component of the current block; and Send the data including the bit stream. The ALF information includes alternative filter information for the chrominance components of the current block. The substitution filter information indicates the substitution filter used to derive the modified chromaticity component of the current block from the reconstructed sample. The substitution filter information includes information about the number of substitution filters for the chroma component of the current block, information about the absolute values of the coefficients included in the substitution filters for the chroma component of the current block, and information about the signs of the coefficients included in the substitution filters for the chroma component of the current block. The index information of the substitution filter is based on truncated Ricean binarization. In this context, the information elements in the information element string of the index information used for the substitution filter are entropy-encoded based on a context model. The context model for the cells in the cell string associated with the index information of the alternative filter is determined based on the context index increment for the cells. The context index increment is determined based on the chroma components of the current block, and The context index increment derived from the chroma component cb of the current block is different from the context index increment derived from the chroma component cr of the current block.
Citation Information
Patent Citations
Method and device for encoding / decoding images, and computer readable medium
CN108712650A
An adaptive loop filter
GB201903187D0
