Video encoding / decoding method and apparatus for performing inloop filtering by using non-regional sample

By employing Adaptive Loop Filtering with non-local samples and IBC prediction, the method enhances video encoding and decoding efficiency, addressing the challenges of increasing video data sizes and improving picture quality, thereby surpassing the limitations of existing compression technologies.

WO2024205296A1PCT designated stage expired Publication Date: 2024-10-03HYUNDAI MOTOR CO LTD +2

Patent Information

Application Number
PCT/KR2024/004016
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-26
Filing Date
2024-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Current video compression technologies, such as H.264/AVC, HEVC, and VVC, face challenges in achieving higher coding efficiency and picture quality improvements as video data sizes increase with higher resolutions and frame rates, necessitating more efficient compression methods, particularly in the use of in-loop filtering techniques.

Method used

The implementation of Adaptive Loop Filtering (ALF) using non-local samples, including temporally adjacent reference samples and Intra Block Copy (IBC) prediction, to enhance video encoding and decoding efficiency by determining reference samples for filtering processes.

Benefits of technology

This approach improves video coding efficiency and picture quality by effectively utilizing ALF with reference samples, reducing data size while maintaining high image quality, thus addressing the limitations of existing compression technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024004016_03102024_PF_FP_ABST
    Figure KR2024004016_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A video encoding / decoding method and apparatus are provided. The video decoding method according to the present disclosure may comprise the steps of: generating a reconstructed block for the current block from a bitstream; and performing filtering by inputting the reconstructed block to an adaptive loop filter (ALF), wherein the step for performing filtering may comprise the steps of: determining one or more reference samples of the current block by using at least one of an inter prediction mode or an intra block copy (IBC); and performing the filtering by using the one or more reference samples.
Need to check novelty before this filing date? Find Prior Art

Description

Video encoding / decoding method and device for performing in-loop filtering using non-local samples

[0001] The present disclosure relates to a video encoding / decoding method and device that performs in-loop filtering using non-local samples, and more particularly, to a video encoding / decoding method and device that performs adaptive loop filtering using samples temporally adjacent to a current block and reference samples of IBC prediction.

[0002] The content described below merely provides background information related to the present embodiment and does not constitute prior art.

[0003] Since video data has a large amount of data compared to voice data or still image data, it requires a lot of hardware resources, including memory, to store or transmit it without processing for compression.

[0004] Therefore, when storing or transmitting video data, an encoder is used to compress the video data and store or transmit it, and a decoder receives the compressed video data, decompresses it, and plays it back. Examples of such video compression technologies include H.264 / AVC, HEVC (High Efficiency Video Coding), and VVC (Versatile Video Coding), which improves encoding efficiency by about 30% compared to HEVC.

[0005] However, as the size, resolution, and frame rate of images are gradually increasing, and the amount of data that needs to be encoded is also increasing, a new compression technology that has better encoding efficiency and better image quality improvement than existing compression technologies is required.

[0006] Recently, upsampling and super-resolution technologies have been utilized to improve the image quality of video frames. In particular, the efficient use of these upsampling or super-resolution technologies should be considered for in-loop filtering of chroma components to enhance video encoding efficiency and improve image quality.

[0007] The present disclosure aims to provide a method and device for performing filtering based on an Adaptive Loop Filter (ALF) using reference samples within a reference picture temporally adjacent to a current picture.

[0008] In addition, the present disclosure aims to provide a method and device for performing filtering based on ALF using a reference sample determined using IBC (Intra Block Copy).

[0009] In addition, the present disclosure aims to provide a method and device for improving video encoding / decoding efficiency.

[0010] In addition, the present disclosure aims to provide a recording medium storing a bitstream generated by the video encoding / decoding method or device of the present disclosure.

[0011] In addition, the present disclosure aims to provide a method and device for transmitting a bitstream generated by the video encoding / decoding method or device of the present disclosure.

[0012] According to the present disclosure, a video decoding method includes a process of generating a restoration block for a current block from a bitstream and a process of inputting the restoration block into an adaptive loop filter (ALF) to perform filtering, wherein the process of performing the filtering may include a process of determining one or more reference samples of the current block using at least one of an inter prediction mode and an intra block copy (IBC) and a process of performing the filtering using the one or more reference samples.

[0013] According to the present disclosure, a video encoding method includes a process of generating a restoration block for a current block and a process of inputting the restoration block into an ALF to perform filtering, wherein the process of performing the filtering may include a process of determining one or more reference samples of the current block using at least one of an inter-prediction mode or an IBC and a process of performing the filtering using the one or more reference samples.

[0014] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by a video encoding method or device according to the present disclosure can be provided.

[0015] In addition, according to the present disclosure, a recording medium storing a bitstream generated by a video encoding method or device according to the present disclosure can be provided.

[0016] In addition, according to the present disclosure, a recording medium storing a bitstream received and decoded by a video decoding device according to the present disclosure and used for restoring an image can be provided.

[0017] According to the present disclosure, a method and device for performing filtering based on an Adaptive Loop Filter (ALF) using a reference sample in a reference picture temporally adjacent to a current picture can be provided.

[0018] In addition, according to the present disclosure, a method and device for performing filtering based on ALF using a reference sample determined using IBC (Intra Block Copy) can be provided.

[0019] Additionally, according to the present disclosure, a method and device for improving video encoding / decoding efficiency can be provided.

[0020] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.

[0021] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure.

[0022] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT structure.

[0023] FIGS. 3A and 3B are diagrams illustrating multiple intra prediction modes, including wide-angle intra prediction modes.

[0024] Figure 4 is an example diagram of the surrounding blocks of the current block.

[0025] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure.

[0026] FIG. 6 is a drawing for explaining the form of an ALF (Adaptive Loop Filter) according to one embodiment of the present disclosure.

[0027] FIG. 7 is a drawing for explaining the shape of ALF according to another embodiment of the present disclosure.

[0028] FIG. 8 is a drawing for explaining the shape of ALF according to another embodiment of the present disclosure.

[0029] FIG. 9 is a flowchart illustrating a video decoding process according to one embodiment of the present disclosure.

[0030] FIG. 10 is a flowchart illustrating a video encoding process according to one embodiment of the present disclosure.

[0031] Hereinafter, some embodiments of the present disclosure will be described in detail with reference to exemplary drawings. When designating components in each drawing, it should be noted that, where possible, identical components are given the same reference numerals, even if they appear in different drawings. Furthermore, in describing the present embodiments, detailed descriptions of related known configurations or functions will be omitted if they are deemed to obscure the gist of the present embodiments. In this disclosure, the terms "image" and "video" may be used interchangeably.

[0032] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image encoding device and its subcomponents will be described with reference to the illustration in FIG. 1.

[0033] The video encoding device may be configured to include a picture segmentation unit (110), a prediction unit (120), a subtractor (130), a transformation unit (140), a quantization unit (145), a reordering unit (150), an entropy encoding unit (155), an inverse quantization unit (160), an inverse transformation unit (165), an adder (170), a loop filter unit (180), and a memory (190).

[0034] Each component of the video encoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.

[0035] A single image (video) is composed of one or more sequences containing multiple pictures. Each picture is divided into multiple regions, and encoding is performed for each region. For example, a single picture is divided into one or more tiles and / or slices. Here, one or more tiles can be defined as a tile group. Each tile or / slice is divided into one or more Coding Tree Units (CTUs). Each CTU is then divided into one or more Coding Units (CUs) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in a CTU is encoded as the syntax of the CTU. In addition, information commonly applied to all blocks within a single slice is encoded as the syntax of the slice header, and information applied to all blocks constituting one or more pictures is encoded in the Picture Parameter Set (PPS) or the picture header. Furthermore, information commonly referenced by multiple pictures is encoded in a Sequence Parameter Set (SPS). And, information commonly referenced by one or more SPS is encoded in a Video Parameter Set (VPS). In addition, information commonly applied to one tile or tile group may be encoded as syntax of a tile or tile group header. Syntaxes included in an SPS, PPS, slice header, tile or tile group header may be referred to as high level syntax.

[0036] The picture segmentation unit (110) determines the size of the CTU. Information about the size of the CTU (CTU size) is encoded as the syntax of SPS or PPS and transmitted to the image decoding device.

[0037] The picture segmentation unit (110) divides each picture constituting an image into a plurality of CTUs having a predetermined size, and then recursively divides the CTUs using a tree structure. A leaf node in the tree structure becomes a CU, which is a basic unit of encoding.

[0038] The tree structure may be a QuadTree (QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, a BinaryTree (BT) in which an upper node is divided into two lower nodes, or a TernaryTree (TT) in which an upper node is divided into three lower nodes in a 1:2:1 ratio, or a structure that mixes two or more of the QT structures, BT structures, and TT structures. For example, a QTBT (QuadTree plus BinaryTree) structure may be used, or a QTBTTT (QuadTree plus BinaryTree TernaryTree) structure may be used. Here, BTTT may be combined and referred to as a MTT (Multiple-Type Tree).

[0039] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT structure.

[0040] As illustrated in FIG. 2, a CTU may first be split into a QT structure. The quadtree splitting may be repeated until the size of the splitting block reaches the minimum block size (MinQTSize) of the leaf node allowed in the QT. A first flag (QT_split_flag) indicating whether each node of the QT structure is split into four nodes of the lower layer is encoded by the entropy encoding unit (155) and signaled to the image decoding device. If the leaf node of the QT is not larger than the maximum block size (MaxBTSize) of the root node allowed in the BT, it may be further split into one or more of the BT structure or the TT structure. There may be multiple splitting directions in the BT structure and / or the TT structure. For example, there may be two directions in which the block of the corresponding node is split horizontally and two directions in which the block is split vertically. As illustrated in FIG. 2, when MTT splitting begins, a second flag (mtt_split_flag) indicating whether nodes have been split, and if splitting has occurred, a flag indicating the splitting direction (vertical or horizontal) and / or a flag indicating the splitting type (Binary or Ternary) are encoded by the entropy encoding unit (155) and signaled to the image decoding device.

[0041] Alternatively, before encoding the first flag (QT_split_flag) indicating whether each node is split into four nodes of a lower layer, a CU split flag (split_cu_flag) indicating whether the node is split may be encoded. If the CU split flag (split_cu_flag) value indicates that the node is not split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a CU (coding unit), which is a basic unit of encoding. If the CU split flag (split_cu_flag) value indicates that the node is split, the video encoding device starts encoding from the first flag in the above-described manner.

[0042] As another example of a tree structure, when QTBT is used, there may be two types: a type that horizontally splits the block of the corresponding node into two blocks of the same size (i.e., symmetric horizontal splitting) and a type that vertically splits it (i.e., symmetric vertical splitting). A split flag (split_flag) indicating whether each node of the BT structure is split into blocks of a lower layer and split type information indicating the type of split are encoded by the entropy encoding unit (155) and transmitted to the image decoding device. Meanwhile, there may additionally be a type that splits the block of the corresponding node into two blocks of an asymmetrical shape. The asymmetric shape may include a shape that splits the block of the corresponding node into two rectangular blocks with a size ratio of 1:3, or a shape that splits the block of the corresponding node in a diagonal direction.

[0043] A CU can have various sizes depending on the QTBT or QTBTTT partitioning from the CTU. Hereinafter, the block corresponding to the CU to be encoded or decoded (i.e., the leaf node of the QTBTTT) is referred to as the "current block." Depending on the QTBTTT partitioning employed, the current block may be rectangular as well as square.

[0044] The prediction unit (120) predicts the current block and generates a prediction block. The prediction unit (120) includes an intra prediction unit (122) and an inter prediction unit (124).

[0045] In general, each current block within a picture can be predictively coded. Prediction of the current block can typically be performed using either intra-prediction (using data from the picture containing the current block) or inter-prediction (using data from a picture coded before the picture containing the current block). Inter-prediction encompasses both unidirectional and bidirectional prediction.

[0046] The intra prediction unit (122) predicts pixels within the current block using pixels (reference pixels) located around the current block within the current picture including the current block. There are multiple intra prediction modes depending on the prediction direction. For example, as shown in Fig. 3a, the multiple intra prediction modes may include two non-directional modes including the Planar mode and the DC mode, and 65 directional modes. The surrounding pixels to be used and the calculation formula are defined differently depending on each prediction mode.

[0047] For efficient directional prediction for a rectangular current block, directional modes (intra prediction modes 67 to 80 and -1 to -14) indicated by dotted arrows in Fig. 3b may be additionally used. These may be referred to as "wide-angle intra-prediction modes." In Fig. 3b, the arrows point to corresponding reference samples used for prediction, and do not indicate the prediction direction. The prediction direction is opposite to the direction indicated by the arrows. Wide-angle intra-prediction modes are modes that perform prediction in the opposite direction of a specific directional mode without additional bit transmission when the current block is rectangular. At this time, among the wide-angle intra-prediction modes, some wide-angle intra-prediction modes available for the current block may be determined based on the ratio of the width and height of the rectangular current block. For example, wide-angle intra prediction modes (intra prediction modes 67 to 80) having an angle less than 45 degrees are available when the current block is a rectangular shape whose height is smaller than its width, and wide-angle intra prediction modes (intra prediction modes -1 to -14) having an angle greater than -135 degrees are available when the current block is a rectangular shape whose width is larger than its height.

[0048] The intra prediction unit (122) can determine an intra prediction mode to be used to encode the current block. In some examples, the intra prediction unit (122) can encode the current block using multiple intra prediction modes and select an appropriate intra prediction mode to be used from the tested modes. For example, the intra prediction unit (122) can calculate bit-rate distortion values ​​using rate-distortion analysis for multiple tested intra prediction modes and select an intra prediction mode with the best bit-rate distortion characteristics among the tested modes.

[0049] The intra prediction unit (122) selects one intra prediction mode from among multiple intra prediction modes and predicts the current block using surrounding pixels (reference pixels) and an operation formula determined according to the selected intra prediction mode. Information about the selected intra prediction mode is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.

[0050] The inter prediction unit (124) generates a prediction block for the current block using a motion compensation process. The inter prediction unit (124) searches for a block most similar to the current block within reference pictures that were encoded and decoded before the current picture, and generates a prediction block for the current block using the searched block. Then, a motion vector (MV) corresponding to the displacement between the current block within the current picture and the prediction block within the reference picture is generated. Generally, motion estimation is performed on the luma component, and the motion vector calculated based on the luma component is used for both the luma component and the chroma component. The motion information including information on the reference picture used to predict the current block and information on the motion vector is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.

[0051] The inter prediction unit (124) may perform interpolation on a reference picture or a reference block to improve prediction accuracy. That is, subsamples between two consecutive integer samples are interpolated by applying filter coefficients to a plurality of consecutive integer samples including the two integer samples. When a process of searching for a block most similar to the current block is performed on the interpolated reference picture, the motion vector can be expressed up to a precision in decimal units rather than a precision in integer sample units. The precision or resolution of the motion vector can be set differently for each target region to be encoded, such as a slice, tile, CTU, CU, etc. When such adaptive motion vector resolution (AMVR) is applied, information on the motion vector resolution to be applied to each target region must be signaled for each target region. For example, when the target region is a CU, information on the motion vector resolution applied to each CU is signaled. Information on the motion vector resolution may be information indicating the precision of a differential motion vector, which will be described later.

[0052] Meanwhile, the inter prediction unit (124) can perform inter prediction using bi-prediction. In the case of bi-prediction, two reference pictures and two motion vectors indicating the block position most similar to the current block within each reference picture are used. The inter prediction unit (124) selects a first reference picture and a second reference picture from reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1), respectively, and searches for a block similar to the current block within each reference picture to generate a first reference block and a second reference block. Then, the first reference block and the second reference block are averaged or weighted averaged to generate a prediction block for the current block. Then, motion information including information on two reference pictures used to predict the current block and information on two motion vectors is transmitted to the entropy encoding unit (155). Here, reference picture list 0 may be composed of pictures that are before the current picture in display order among the restored pictures, and reference picture list 1 may be composed of pictures that are after the current picture in display order among the restored pictures. However, this is not necessarily limited to this, and restored pictures that are after the current picture in display order may be additionally included in reference picture list 0, and conversely, restored pictures that are before the current picture may be additionally included in reference picture list 1.

[0053] Various methods can be used to minimize the number of bits required to encode motion information.

[0054] For example, if the reference picture and motion vector of the current block are identical to those of a neighboring block, the motion information of the current block can be transmitted to the image decoding device by encoding information that can identify the neighboring block. This method is called 'merge mode'.

[0055] In merge mode, the inter prediction unit (124) selects a predetermined number of merge candidate blocks (hereinafter referred to as 'merge candidates') from the surrounding blocks of the current block.

[0056] As the surrounding blocks for deriving merge candidates, all or part of the left block (A0), the lower left block (A1), the upper block (B0), the upper right block (B1), and the upper left block (B2) adjacent to the current block within the current picture may be used, as illustrated in FIG. 4. In addition, a block located within a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as a merge candidate. For example, a block co-located with the current block within the reference picture or blocks adjacent to the block at the co-located block may be additionally used as a merge candidate. If the number of merge candidates selected by the method described above is less than a preset number, a 0 vector is added to the merge candidates.

[0057] The inter prediction unit (124) uses these surrounding blocks to construct a merge list containing a predetermined number of merge candidates. Among the merge candidates included in the merge list, the merge candidate to be used as motion information of the current block is selected and merge index information for identifying the selected candidate is generated. The generated merge index information is encoded by the entropy encoding unit (155) and transmitted to the video decoding device.

[0058] Merge Skip mode is a special case of merge mode. After quantization, when all transform coefficients for entropy encoding are close to zero, only neighboring block selection information is transmitted without transmitting residual signals. By utilizing merge skip mode, relatively high encoding efficiency can be achieved for low-motion images, still images, and screen content images.

[0059] Hereinafter, merge mode and merge skip mode are collectively referred to as merge / skip mode.

[0060] Another method for encoding motion information is Advanced Motion Vector Prediction (AMVP) mode.

[0061] In AMVP mode, the inter prediction unit (124) derives predicted motion vector candidates for the motion vector of the current block using neighboring blocks of the current block. As neighboring blocks used to derive predicted motion vector candidates, all or some of the left block (A0), the lower left block (A1), the upper block (B0), the upper right block (B1), and the upper left block (B2) adjacent to the current block in the current picture as shown in FIG. 4 may be used. In addition, a block located in a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as the neighboring block used to derive predicted motion vector candidates. For example, a block co-located with the current block in the reference picture or blocks adjacent to the block in the co-located block may be used. If the number of motion vector candidates is less than a preset number by the method described above, a 0 vector is added to the motion vector candidates.

[0062] The inter prediction unit (124) derives predicted motion vector candidates using the motion vectors of these surrounding blocks, and determines a predicted motion vector for the motion vector of the current block using the predicted motion vector candidates. Then, the predicted motion vector is subtracted from the motion vector of the current block to produce a differential motion vector.

[0063] The predicted motion vector can be obtained by applying a predefined function (e.g., median, mean, etc.) to the predicted motion vector candidates. In this case, the image decoding device also knows the predefined function. In addition, since the surrounding blocks used to derive the predicted motion vector candidates are blocks that have already been encoded and decoded, the image decoding device also already knows the motion vectors of the surrounding blocks. Therefore, the image encoding device does not need to encode information to identify the predicted motion vector candidates. Therefore, in this case, information about the differential motion vector and information about the reference picture used to predict the current block are encoded.

[0064] Alternatively, the predicted motion vector can be determined by selecting one of the predicted motion vector candidates. In this case, information for identifying the selected predicted motion vector candidate is additionally encoded, along with information about the differential motion vector and the reference picture used to predict the current block.

[0065] The subtractor (130) subtracts the prediction block generated by the intra prediction unit (122) or inter prediction unit (124) from the current block to generate a residual block.

[0066] The transformation unit (140) transforms residual signals within a residual block having pixel values ​​in a spatial domain into transform coefficients in a frequency domain. The transformation unit (140) may transform the residual signals within the residual block using the entire size of the residual block as a transformation unit, or may divide the residual block into a plurality of sub-blocks and use the sub-blocks as transformation units to perform the transformation. Alternatively, the residual signals may be transformed using only the transformation domain sub-block as a transformation unit by dividing the sub-blocks into two sub-blocks, that is, a transformation domain and a non-transform domain. Here, the transformation domain sub-block may be one of two rectangular blocks having a size ratio of 1:1 with respect to the horizontal axis (or vertical axis). In this case, a flag (cu_sbt_flag) indicating that only a sub-block has been converted, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag), and / or position information (cu_sbt_pos_flag) are encoded by the entropy encoding unit (155) and signaled to the image decoding device. In addition, the size of the conversion area sub-block may have a size ratio of 1:3 with respect to the horizontal axis (or vertical axis), and in this case, a flag (cu_sbt_quad_flag) distinguishing the corresponding division is additionally encoded by the entropy encoding unit (155) and signaled to the image decoding device.

[0067] Meanwhile, the transformation unit (140) can individually perform transformations on the residual block in the horizontal and vertical directions. For the transformation, various types of transformation functions or transformation matrices can be used. For example, a pair of transformation functions for horizontal transformation and vertical transformation can be defined as a Multiple Transform Set (MTS). The transformation unit (140) can select one transformation function pair with the best transformation efficiency among the MTS and transform the residual block in the horizontal and vertical directions, respectively. Information (mts_idx) on the transformation function pair selected among the MTS is encoded by the entropy encoding unit (155) and signaled to the image decoding device.

[0068] The quantization unit (145) quantizes the transform coefficients output from the transform unit (140) using quantization parameters and outputs the quantized transform coefficients to the entropy encoding unit (155). The quantization unit (145) may directly quantize a related residual block without transformation for a certain block or frame. The quantization unit (145) may also apply different quantization coefficients (scaling values) according to the positions of the transform coefficients within the transform block. The quantization matrix applied to the quantized transform coefficients arranged in two dimensions may be encoded and signaled to an image decoding device.

[0069] The rearrangement unit (150) can perform rearrangement of coefficient values ​​for quantized residual values.

[0070] The reordering unit (150) can change a two-dimensional coefficient array into a one-dimensional coefficient sequence by using coefficient scanning. For example, the reordering unit (150) can output a one-dimensional coefficient sequence by scanning from the DC coefficient to the coefficients of the high-frequency region by using a zig-zag scan or a diagonal scan. Depending on the size of the transformation unit and the intra prediction mode, a vertical scan that scans the two-dimensional coefficient array in the column direction or a horizontal scan that scans the two-dimensional block-shaped coefficients in the row direction may be used instead of the zig-zag scan. That is, depending on the size of the transformation unit and the intra prediction mode, the scanning method to be used may be determined among the zig-zag scan, the diagonal scan, the vertical scan, and the horizontal scan.

[0071] The entropy encoding unit (155) generates a bitstream by encoding a sequence of one-dimensional quantized transform coefficients output from the rearrangement unit (150) using various encoding methods such as CABAC (Context-based Adaptive Binary Arithmetic Code) and Exponential Golomb.

[0072] In addition, the entropy encoding unit (155) encodes information related to block division, such as CTU size, CU division flag, QT division flag, MTT division type, and MTT division direction, so that the image decoding device can divide the block in the same manner as the image encoding device. In addition, the entropy encoding unit (155) encodes information about a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and encodes intra prediction information (i.e., information about an intra prediction mode) or inter prediction information (information about an encoding mode of motion information (merge mode or AMVP mode), a merge index in the case of a merge mode, and a reference picture index and a differential motion vector in the case of an AMVP mode) according to the prediction type. In addition, the entropy encoding unit (155) encodes information related to quantization, that is, information about a quantization parameter and information about a quantization matrix.

[0073] The inverse quantization unit (160) inversely quantizes the quantized transform coefficients output from the quantization unit (145) to generate transform coefficients. The inverse transform unit (165) transforms the transform coefficients output from the inverse quantization unit (160) from the frequency domain to the spatial domain to restore the residual block.

[0074] An adder (170) adds the restored residual block and the predicted block generated by the prediction unit (120) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting the next block.

[0075] The loop filter unit (180) performs filtering on restored pixels to reduce blocking artifacts, ringing artifacts, blurring artifacts, etc. that occur due to block-based prediction and transformation / quantization. The loop filter unit (180) may include all or part of a deblocking filter (182), a sample adaptive offset (SAO) filter (184), and an adaptive loop filter (ALF, 186) as an in-loop filter.

[0076] The deblocking filter (182) filters the boundaries between restored blocks to remove blocking artifacts caused by block-based encoding / decoding, and the SAO filter (184) and the ALF (186) perform additional filtering on the deblocking-filtered image. The SAO filter (184) and the ALF (186) are filters used to compensate for the differences between restored pixels and original pixels caused by lossy coding. The SAO filter (184) improves not only subjective image quality but also encoding efficiency by applying an offset in units of CTUs. In contrast, the ALF (186) performs block-based filtering, and compensates for distortion by applying different filters by distinguishing the edges and degrees of variation of the corresponding block. Information on filter coefficients to be used in the ALF can be encoded and signaled to an image decoding device.

[0077] The restored blocks filtered through the deblocking filter (182), SAO filter (184), and ALF (186) are stored in the memory (190). When all blocks within a picture are restored, the restored picture can be used as a reference picture for inter-predicting blocks within a picture to be encoded later.

[0078] The video encoding device can store the bitstream of encoded video data on a non-transitory storage medium or transmit it to the video decoding device using a communication network.

[0079] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image decoding device and its subcomponents will be described with reference to FIG. 5.

[0080] The video decoding device may be configured to include an entropy decoding unit (510), a rearrangement unit (515), an inverse quantization unit (520), an inverse transformation unit (530), a prediction unit (540), an adder (550), a loop filter unit (560), and a memory (570).

[0081] Similar to the video encoding device of FIG. 1, each component of the video decoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.

[0082] The entropy decoding unit (510) decodes the bitstream generated by the image encoding device to extract information related to block division, thereby determining the current block to be decoded, and extracts prediction information, information on residual signals, etc. required to restore the current block.

[0083] The entropy decoding unit (510) extracts information about the CTU size from the Sequence Parameter Set (SPS) or the Picture Parameter Set (PPS), determines the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, i.e., the root node, and the CTU is divided using the tree structure by extracting division information about the CTU.

[0084] For example, when splitting a CTU using the QTBTTT structure, first, the first flag (QT_split_flag) related to the splitting of QT is extracted, and each node is split into four nodes of the lower layer. Then, for the nodes corresponding to the leaf nodes of QT, the second flag (mtt_split_flag) related to the splitting of MTT and the split direction (vertical / horizontal) and / or split type (binary / ternary) information are extracted, and the corresponding leaf nodes are split into the MTT structure. Accordingly, each node below the leaf nodes of QT are split recursively into the BT or TT structure.

[0085] As another example, when splitting a CTU using the QTBTTT structure, the CU split flag (split_cu_flag) indicating whether the CU is split is first extracted, and if the block is split, the first flag (QT_split_flag) may be extracted. During the splitting process, each node may undergo zero or more repeated QT splits followed by zero or more repeated MTT splits. For example, a CTU may undergo an MTT split right away, or conversely, may undergo only multiple QT splits.

[0086] As another example, when splitting a CTU using the QTBT structure, the first flag (QT_split_flag) related to the splitting of QT is extracted, and each node is split into four nodes of the lower layer. Furthermore, for nodes corresponding to leaf nodes of QT, a split flag (split_flag) indicating whether to further split into BTs and splitting direction information are extracted.

[0087] Meanwhile, when the entropy decoding unit (510) determines the current block to be decoded by using the division of the tree structure, it extracts information on the prediction type indicating whether the current block is intra-predicted or inter-predicted. If the prediction type information indicates intra-prediction, the entropy decoding unit (510) extracts syntax elements for intra-prediction information (intra-prediction mode) of the current block. If the prediction type information indicates inter-prediction, the entropy decoding unit (510) extracts syntax elements for inter-prediction information, i.e., information indicating a motion vector and a reference picture referenced by the motion vector.

[0088] Additionally, the entropy decoding unit (510) extracts information about the quantized transform coefficients of the current block as information related to quantization and information about residual signals.

[0089] The rearrangement unit (515) can change the sequence of one-dimensional quantized transform coefficients entropy-decoded in the entropy decoding unit (510) back into a two-dimensional coefficient array (i.e., block) in the reverse order of the coefficient scanning performed by the image encoding device.

[0090] The inverse quantization unit (520) inversely quantizes the quantized transform coefficients and inversely quantizes the quantized transform coefficients using the quantization parameters. The inverse quantization unit (520) may also apply different quantization coefficients (scaling values) to the quantized transform coefficients arranged in two dimensions. The inverse quantization unit (520) may perform inverse quantization by applying a matrix of quantized coefficients (scaling values) from an image encoding device to a two-dimensional array of quantized transform coefficients.

[0091] The inverse transform unit (530) inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals, thereby generating a residual block for the current block.

[0092] In addition, when the inverse transform unit (530) inversely transforms only a portion of a transform block (sub-block), it extracts a flag (cu_sbt_flag) indicating that only a sub-block of the transform block has been transformed, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag) of the sub-block, and / or position information (cu_sbt_pos_flag) of the sub-block, and inversely transforms the transform coefficients of the corresponding sub-block from the frequency domain to the spatial domain to restore residual signals, and fills “0” values ​​with residual signals for areas that have not been inversely transformed, thereby generating a final residual block for the current block.

[0093] In addition, when MTS is applied, the inverse transform unit (530) determines a transform function or a transform matrix to be applied in the horizontal and vertical directions using MTS information (mts_idx) signaled from the image encoding device, and performs inverse transform on the transform coefficients within the transform block in the horizontal and vertical directions using the determined transform function.

[0094] The prediction unit (540) may include an intra prediction unit (542) and an inter prediction unit (544). The intra prediction unit (542) is activated when the prediction type of the current block is intra prediction, and the inter prediction unit (544) is activated when the prediction type of the current block is inter prediction.

[0095] The intra prediction unit (542) determines the intra prediction mode of the current block among a plurality of intra prediction modes from the syntax elements for the intra prediction mode extracted from the entropy decoding unit (510), and predicts the current block using reference pixels around the current block according to the intra prediction mode.

[0096] The inter prediction unit (544) uses the syntax elements for the inter prediction mode extracted from the entropy decoding unit (510) to determine the motion vector of the current block and the reference picture referenced by the motion vector, and predicts the current block using the motion vector and the reference picture.

[0097] An adder (550) adds the residual block output from the inverse transform unit (530) and the predicted block output from the inter prediction unit (544) or the intra prediction unit (542) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting a block to be decoded later.

[0098] The loop filter unit (560) may include a deblocking filter (562), an SAO filter (564), and an ALF (566) as in-loop filters. The deblocking filter (562) deblocks the boundaries between restored blocks to remove blocking artifacts caused by block-by-block decoding. The SAO filter (564) and the ALF (566) perform additional filtering on restored blocks after deblocking filtering to compensate for differences between restored pixels and original pixels caused by lossy coding. The filter coefficients of the ALF are determined using information about filter coefficients decoded from the non-stream.

[0099] The restored blocks filtered through the deblocking filter (562), SAO filter (564), and ALF (566) are stored in the memory (570). When all blocks within a picture are restored, the restored picture is used as a reference picture for inter-predicting blocks within a picture to be encoded later.

[0100] The following embodiments may be performed by various components within an image encoding device. They may also be performed by various components within an image decoding device.

[0101] FIG. 6 is a drawing for explaining the form of an ALF (Adaptive Loop Filter) according to one embodiment of the present disclosure.

[0102] Referring to Fig. 6, ALF (186, 566) approximates the restored video frame to the original by using an adaptive linear filter based on the Wiener-Hopf equation. The video encoding device calculates the filter coefficients of ALF (186) according to bit-rate-distortion optimization using the output samples of SAO (184), and then transmits them to the video decoding device. ALF (186, 566) is configured in a 7×7 diamond shape and a 5×5 diamond shape as shown in the example of Fig. 6, and is used for luma and chroma samples, respectively. The shape and size of the filter can be determined by considering the balance between coding efficiency and computational complexity. For example, the computational complexity of ALF (186, 566) can be reduced by using a symmetric FIR filter.

[0103] Filter coefficient c as exemplified in Fig. 6 i To derive , a sample is used at that location. The filtered sample I(x,y) at the current location (x,y) can be calculated as in mathematical expression 1 according to a 7-bit precision operation.

[0104]

[0105] Here, r i is calculated according to mathematical formula 2 as the difference between the current sample and the adjacent sample.

[0106]

[0107] Here, b i is a clipping parameter.

[0108] ALF(186, 566) uses up to 25 sets of filter coefficients for the luma component and applies them to 4×4 sub-blocks. The 4×4 sub-blocks are classified into one of 25 classes based on the gradient information of the local block estimated using the Laplacian filter. Specifically, the classification index for the class is derived from the combination of five directional attributes representing the intensity and direction of the texture component and five activity attributes of the sub-block. In addition, geometric transformations such as 90-degree rotation, diagonal translation, and vertical translation can be applied to the filter coefficients before filtering. By considering various directionalities using geometric transformations, a wider variety of block characteristics can be processed using a smaller number of filter coefficient sets.

[0109] In addition to subblock-level filters, their application can also be determined at the CTU level. For chroma components, up to eight filters can be used at the CTU level. Chroma ALF can be activated only when luma ALF is enabled at that level.

[0110] Meanwhile, an Adaptation Parameter Set (APS) is used to transmit ALF filter parameters, including a set of filter coefficients. As mentioned above, up to 25 sets of filter coefficients can be calculated for the luma component and up to 8 sets of filter coefficients for the chroma component. When using the same ALF coefficients in different slices, the index of the reference APS can be signaled instead of being retransmitted repeatedly.

[0111] In video applications such as High-Dynamic Range (HDR) and Wide Color Gamut (WCG), video color restoration is crucial. Cross-Component ALF (CC-ALF) corrects chroma samples in parallel with ALF, using the correlation between the current chroma sample and the corresponding luma sample.

[0112] FIG. 7 is a drawing for explaining the shape of ALF according to another embodiment of the present disclosure.

[0113] Referring to Fig. 7, ALF(186, 566) can be composed of three types of filter taps having a cross shape, a 5x5 diamond shape, a 1x1 sample shape, and a 3x3 diamond shape, as in the example of Fig. 7. In this case, ALF(186, 566) is used for the current sample, the samples adjacent to the current sample in a cross shape, the samples after filtering using a fixed coefficient filter, and the samples before filtering using a deblocking filter, respectively. The shape and size of the filter can be determined by considering the balance between the efficiency of coding and the complexity of computation. The filtering operation performed to improve the current sample R(x, y) to R'(x, y) using ALF(186, 566) can be calculated as in mathematical equation 3.

[0114]

[0115] Here, f may be the difference between the sample after filtering using the SAO filter and the current sample R(x, y), g may be the difference between the sample after filtering using the fixed coefficient filter and the current sample R(x, y), and h may be the difference between the sample before filtering using the deblocking filter and the current sample R(x, y).

[0116] Video prediction method using deep learning

[0117] A VPN (Video Prediction Network) is a network that performs video interpolation or video extrapolation to predict a current frame from one or more frames from a previous time point or one or more frames from a subsequent time point. Video interpolation is a method of predicting a current frame from frames from a previous time point and frames from a subsequent time point. For example, a video interpolation method can be used to predict a frame at time t from frames at time t-1 and frames at time t+1. A video extrapolation method is a method of predicting a frame at a subsequent time point from frames at a previous time point and the current frame. For example, a video extrapolation method can be used to predict a frame from t=n+1 to t=n+k from frames at t=0 to t=n.

[0118] Optical flow is a motion vector per pixel that represents the movement of pixels between frames. Video interpolation and extrapolation can be performed using optical flow. In other words, a frame can be generated by predicting where the pixels of the current frame will move in the next frame. The output format of the optical flow can be set to be the same as the dimension or size of the frame, so that the optical flow at each pixel location can be output. This format can be an optical flow map. The optical flow map represents the movement in the x direction and the y direction, and two maps can be output. In the case of an 8-bit image, each pixel in the optical flow can be represented as a value between 0 and 255. In the case of a 10-bit image, each pixel in the optical flow can be represented as a value between 0 and 1023. For example, in the case of an 8-bit image, a value where the pixel is represented as 127 has an optical flow of 0, and a value where the pixel is represented as 0 or 255 has a maximum optical flow. PWC-Net is one of the neural network algorithms that outputs an optical flow map. PWC-Net outputs optical flows of different scales in a pyramid shape and performs learning by utilizing warping between images in the feature map area.

[0119] Adaptive Convolutional Networks (ACNs) learn using Convolutional Neural Networks (CNNs) and simultaneously perform video prediction and pixel interpolation or extrapolation. ACNs directly output the frames they want to predict. An attention model selects which areas to focus on when a deep learning model interprets input. An attention model can find feature maps that respond to the objects being analyzed in a video and assign weights to the corresponding channels. Attention models can extract attention on a frame-by-frame basis. Using the attention maps output by the attention model, masks can be applied to the input and output videos, allowing video interpolation to focus on key information.

[0120] The ALF of the present disclosure can perform filtering using samples of reference pictures temporally adjacent to the current picture or reference samples of IBC (Intra Block Copy) prediction. A method for performing filtering using such ALF is described below. While the following embodiments focus on a video decoding device, they can also be performed by a video encoding device.

[0121] How to determine the reference picture of the current picture

[0122] The reference picture of the current picture may include pixels closer to the original because it is located at a lower layer in the temporal hierarchy. The reference picture that is temporally closest to the current picture may include samples that are highly temporally correlated with the current picture. A method for determining the reference picture of the current picture of the present disclosure may include a method for determining a reference picture by giving priority to a lower layer in the temporal hierarchy, a method for determining a reference picture that is temporally closest to the current picture, a method for determining a reference picture by giving priority to a lower layer in the temporal hierarchy within a DPB (Decoded Picture Buffer), a method for determining a reference picture among all pictures within a DPB, a method for determining a collocated picture signaled from a slice header, a method for determining a picture with the smallest index in a reference picture list L0 as a reference picture, or a method for determining a picture with the smallest index in a reference picture list L1 as a reference picture. One or more reference pictures may be determined. In this case, when signaling the ALF parameter, the number of the reference picture list of the determined reference picture and the index of the determined reference picture can be signaled together.

[0123] How to determine reference samples within a reference picture

[0124] The ALF of the present disclosure can perform filtering using a reference sample within a reference picture determined by a method for determining a reference picture of a current picture. Hereinafter, a method for determining a reference sample within a reference picture of the present disclosure will be described. An image decoding device can determine a block of an arbitrary size within a reference picture using the position of a current pixel, and determine a reference sample using an average value, a median value, a mode value, or a maximum value of the determined block of an arbitrary size. Here, the block of an arbitrary size within the reference picture may be a block determined based on a position within the reference picture corresponding to the position of the current pixel within the current picture. The image decoding device can determine a reference block within the reference picture using a motion vector, and determine a reference sample within the reference block. For example, the image decoding device can determine a reference block using a motion vector stored in units of 4x4 blocks, and determine a reference sample within the determined reference block.

[0125] A video decoding device can determine a reference block using a motion vector predicted by an affine transform, and determine a reference sample within the reference block. The video decoding device can determine a reference sample by averaging samples acquired from different reference pictures. The video decoding device can determine a reference sample within the reference picture using an optical flow map. The optical flow map can be generated using a deep learning-based algorithm. An optical flow used in BDOF (Bi-Directional Optical Flow) or PROF (Prediction Refinement with Optical Flow) can be used. The video decoding device can generate a reference picture using a video interpolation method or a video extrapolation method, and determine a sample at the same position as a current sample within the generated reference picture as a reference sample.

[0126] How to determine a reference sample using IBC (Intra Block Copy)

[0127] The ALF of the present disclosure can perform filtering using a reference sample determined using IBC. Hereinafter, a method for determining a reference sample using IBC of the present disclosure will be described. If the current block is encoded in IBC mode, the video decoding device can determine the reference sample using the motion vector of IBC. If the current block is not encoded in IBC mode, the video decoding device can determine the reference sample using the motion vector of IBC with the least distortion. The video decoding device can determine the reference sample using template matching.

[0128] FIG. 8 is a drawing for explaining the shape of ALF according to another embodiment of the present disclosure.

[0129] Referring to Fig. 8, ALF(186, 566) can be composed of five types of filter taps having a cross shape, a 5x5 diamond shape, a 1x1 sample shape, a 3x3 diamond shape, and two 1x1 sample shapes, as in the example of Fig. 8. In this case, ALF(186, 566) is used for the current sample, samples adjacent to the current sample in a cross shape, samples after filtering using a fixed coefficient filter, samples before filtering using a deblocking filter, reference samples determined by the aforementioned process, and reference samples after filtering using a fixed coefficient filter. The shape and size of the filter can be determined by considering the balance between coding efficiency and computational complexity. The filtering operation performed to improve the current sample R(x, y) to R'(x, y) using ALF(186, 566) can be calculated as in Equation 4.

[0130]

[0131] Here, f is the difference between the sample after filtering using the SAO filter and the current sample R(x, y), and g iis the difference between the sample after filtering using the fixed coefficient filter and the current sample R(x, y), and h i can be the difference between the sample before filtering using the deblocking filter and the current sample R(x, y). p i is the difference between the determined reference sample and the current sample R(x, y), and pFilterd i can be the difference between the reference sample and the current sample R(x, y) after filtering using a fixed coefficient filter.

[0132] In another embodiment, the filtering operation performed to improve the current sample R(x, y) to R'(x, y) using ALF(186, 566) can be calculated as in Equation 5.

[0133]

[0134] Here, f is the difference between the sample after filtering using the SAO filter and the current sample R(x, y), and g i is the difference between the sample after filtering using the fixed coefficient filter and the current sample R(x, y), and h i can be the difference between the sample before filtering using the deblocking filter and the current sample R(x, y). r i is the difference between the residual sample at the location of the determined reference sample and the current sample R(x, y), and rFilterd i It can be the difference between the residual sample of the location of the reference sample after filtering using a fixed coefficient filter and the current sample R(x, y).

[0135] In another embodiment, when filtering is performed using two reference samples determined using two reference pictures, respectively, the filtering operation performed to improve the current sample R(x, y) to R'(x, y) using ALF(186, 566) can be calculated as in Equation 6.

[0136]

[0137] Here, f is the difference between the sample after filtering using the SAO filter and the current sample R(x, y), and g i is the difference between the sample after filtering using the fixed coefficient filter and the current sample R(x, y), and h i can be the difference between the sample before filtering using the deblocking filter and the current sample R(x, y). p i,j is the difference between the reference sample determined from the jth reference picture and the current sample R(x, y), and pFilterd i,j may be the difference between the reference sample determined from the jth reference picture after filtering using a fixed coefficient filter and the current sample R(x, y). When two or more reference samples are used, the reference samples may be determined based on at least one of the reference picture or the IBC. When two or more reference samples are used, the reference block with the least distortion of the prediction block may be selected using ALF, and the index of the corresponding reference block may be signaled.

[0138] In another embodiment, when filtering is performed using filters of various shapes other than a 1x1 shaped filter on a determined reference sample, the filtering operation performed to improve the current sample R(x, y) to R'(x, y) using ALF(186, 566) can be calculated as in Equation 7.

[0139]

[0140] Here, f is the difference between the sample after filtering using the SAO filter and the current sample R(x, y), and g i is the difference between the sample after filtering using the fixed coefficient filter and the current sample R(x, y), and h i can be the difference between the sample before filtering using the deblocking filter and the current sample R(x, y). pi is the difference between the determined reference sample and the current sample R(x, y), and pFilterd i can be the difference between the reference sample and the current sample R(x, y) after filtering using a fixed coefficient filter.

[0141] Signaling information about ALF

[0142] A video encoding device can signal a flag indicating whether to apply ALF. Whether to apply ALF can be determined in units of sequence, picture, subpicture, slice, tile, or Coding Tree Unit (CTU). The video encoding device can signal filter coefficients of ALF using Adaptation Parameter Set (APS). The filter coefficients of ALF can be coefficients predefined in the video encoding device or the video decoding device. The filter coefficients of ALF can be the same filter coefficients as the existing ALF. The video code and device can determine which filter to use and signal an index for the determined filter.

[0143] FIG. 9 is a flowchart illustrating a video decoding process according to one embodiment of the present disclosure.

[0144] Referring to FIG. 9, the video decoding device generates a restoration block for a re-block from a bitstream (S910). The video decoding device inputs the restoration block into ALF and performs filtering (S920). The process of performing filtering may include a process of determining one or more reference samples of the current block using at least one of inter-prediction mode or IBC, and a process of performing filtering using one or more reference samples.

[0145] When using inter prediction, the process of determining one or more reference samples may include the process of determining one or more reference pictures that are temporally adjacent to a current picture and the process of determining one or more reference samples from one or more reference pictures. The one or more reference pictures may be determined based on at least one of a temporal layer, a temporal distance from the current picture, a DPB, a corresponding reference picture, and an index of a reference picture list. The one or more reference samples may be determined based on at least one of a block determined based on a current block within one or more reference pictures, a block determined using a motion vector within one or more reference pictures, and a block determined using a motion vector by an affine transformation within one or more reference pictures.

[0146] One or more reference samples can be determined from one or more reference pictures using an optical flow map. The optical flow map can be determined based on at least one of a deep learning algorithm, BDOF, or PROF. When using IBC, the process of determining one or more reference samples can include a process of determining one or more reference samples using a motion vector of the IBC.

[0147] FIG. 10 is a flowchart illustrating a video encoding process according to one embodiment of the present disclosure.

[0148] Referring to FIG. 10, the video encoding device generates a restoration block for the current block (S1010). The video encoding device inputs the restoration block into ALF and performs filtering (S1020). The process of performing filtering may include a process of determining one or more reference samples of the current block using at least one of inter-prediction mode or IBC, and a process of performing filtering using one or more reference samples.

[0149] When using inter prediction, the process of determining one or more reference samples may include the process of determining one or more reference pictures that are temporally adjacent to a current picture and the process of determining one or more reference samples from one or more reference pictures. The one or more reference pictures may be determined based on at least one of a temporal layer, a temporal distance from the current picture, a DPB, a corresponding reference picture, and an index of a reference picture list. The one or more reference samples may be determined based on at least one of a block determined based on a current block within one or more reference pictures, a block determined using a motion vector within one or more reference pictures, and a block determined using a motion vector by an affine transformation within one or more reference pictures.

[0150] One or more reference samples can be determined from one or more reference pictures using an optical flow map. The optical flow map can be determined based on at least one of a deep learning algorithm, BDOF, or PROF. When using IBC, the process of determining one or more reference samples can include a process of determining one or more reference samples using a motion vector of the IBC.

[0151] Although the flowchart / timing diagram of this specification describes each process as being executed sequentially, this is merely an illustrative description of the technical idea of ​​one embodiment of the present disclosure. In other words, a person of ordinary skill in the art to which one embodiment of the present disclosure belongs may modify and apply various modifications and variations by changing the order described in the flowchart / timing diagram without departing from the essential characteristics of one embodiment of the present disclosure, or by executing one or more of the processes in parallel. Therefore, the flowchart / timing diagram is not limited to a chronological order.

[0152] It should be understood that the exemplary embodiments described above can be implemented in many different ways. The functions or methods described in one or more examples can be implemented in hardware, software, firmware, or any combination thereof. It should be understood that the functional components described herein are labeled as "units" to further emphasize their implementation independence.

[0153] Meanwhile, the various functions or methods described in this embodiment may also be implemented as instructions stored on a non-transitory storage medium that can be read and executed by one or more processors. Non-transitory storage media include, for example, all types of storage devices that store data in a form readable by a computer system. For example, non-transitory storage media include storage media such as erasable programmable read-only memory (EPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSDs).

[0154] The above description is merely an example of the technical idea of ​​the present embodiment, and those skilled in the art will appreciate that various modifications and variations can be made without departing from the essential characteristics of the present embodiment. Therefore, the present embodiments are not intended to limit the technical idea of ​​the present embodiment, but rather to explain it, and the scope of the technical idea of ​​the present embodiment is not limited by these embodiments. The scope of protection of the present embodiment should be interpreted by the claims below, and all technical ideas within a scope equivalent thereto should be interpreted as being included in the scope of rights of the present embodiment.

[0155]

[0156] CROSS-REFERENCE TO RELATED APPLICATION

[0157] This patent application claims priority to Korean patent application No. 10-2023-0041947, filed in Korea on March 30, 2023, and Korean patent application No. 10-2024-0041429, filed in Korea on March 26, 2024, the entire contents of which are incorporated herein by reference.

Claims

1. A process of generating a restoration block for the current block from a bitstream; and Including a process of inputting the above restoration block into ALF (Adaptive Loop Filter) and performing filtering, The process of performing the above filtering is: A process of determining one or more reference samples of the current block using at least one of inter prediction mode or IBC (Intra Block Copy); and A video decoding method, comprising a process of performing the filtering using one or more reference samples.

2. In paragraph 1, When using the above inter-prediction, the process of determining one or more reference samples is as follows: A process of determining one or more reference pictures that are temporally adjacent to the current picture; and A video decoding method, comprising a process of determining one or more reference samples from one or more reference pictures.

3. In paragraph 2, The process of determining one or more of the above reference pictures is: A video decoding method, comprising a process of determining one or more reference pictures based on at least one of a temporal layer, a temporal distance from the current picture, a DPB (Decoded Picture Buffer), a corresponding reference picture, and an index of a reference picture list.

4. In paragraph 2, The process of determining one or more of the above reference samples is: A video decoding method further comprising a process of determining the one or more reference samples based on at least one of a block determined based on the current block within the one or more reference pictures, a block determined using a motion vector within the one or more reference pictures, and a block determined using a motion vector by affine transformation within the one or more reference pictures.

5. In paragraph 2, The process of determining one or more of the above reference samples is: Further comprising a process of determining one or more reference samples from the one or more reference pictures using an optical flow map, A video decoding method, wherein the optical flow map is determined based on at least one of a deep learning algorithm, BDOF (Bi-Directional Optical Flow) or PROF (Prediction Refinement with Optical Flow).

6. In paragraph 1, When using the above IBC, the process of determining one or more reference samples is as follows: A video decoding method, comprising a process of determining one or more reference samples using the motion vector of the IBC.

7. The process of creating a restoration block for the current block; and Including a process of inputting the above restoration block into ALF and performing filtering, The process of performing the above filtering is: A process of determining one or more reference samples of the current block using at least one of inter prediction mode or IBC; and A video encoding method, comprising a process of performing the filtering using one or more reference samples.

8. In paragraph 7, When using the above inter-prediction, the process of determining one or more reference samples is as follows: A process of determining one or more reference pictures that are temporally adjacent to the current picture; and A video encoding method, comprising a process of determining one or more reference samples from one or more reference pictures.

9. In paragraph 8, The process of determining one or more of the above reference pictures is: A video encoding method, comprising a process of determining one or more reference pictures based on at least one of a temporal layer, a temporal distance from the current picture, a DPB, a corresponding reference picture, and an index of a reference picture list.

10. In paragraph 8, The process of determining one or more of the above reference samples is: A video encoding method further comprising a step of determining the one or more reference samples based on at least one of a block determined based on the current block within the one or more reference pictures, a block determined using a motion vector within the one or more reference pictures, and a block determined using a motion vector by affine transformation within the one or more reference pictures.

11. In paragraph 8, The process of determining one or more of the above reference samples is: Further comprising a process of determining one or more reference samples from the one or more reference pictures using an optical flow map, A video encoding method, wherein the optical flow map is determined based on at least one of a deep learning algorithm, BDOF or PROF.

12. In paragraph 7, When using the above IBC, the process of determining one or more reference samples is as follows: A video encoding method, comprising a process of determining one or more reference samples using the motion vector of the IBC.

13. A computer-readable recording medium storing a bitstream generated by a video encoding method, wherein the video encoding method comprises: The process of creating a restoration block for the current block; and Including a process of inputting the above restoration block into ALF and performing filtering, The process of performing the above filtering is: A process of determining one or more reference samples of the current block using at least one of inter prediction mode or IBC; and A recording medium comprising a process for performing the filtering using one or more of the above reference samples.

Citation Information

Patent Citations

  • In-loop filtering method and apparatus using same

    KR1020140019221A

  • Consulting service system and method for college entrance exam related to sports

    KR102534416B1

  • Battery management system for ultra-small electric vehicles

    KR102709133B1

Cited By

  • Spatially displaced input to adaptive loop filtering

    EP4811793A1

  • Method and apparatus of adaptive loop filter with prediction TAPS from reference pictures in video coding

    WO2026077312A1

  • Spatially displaced input to adaptive loop filtering

    WO2026195223A1