Image encoding / decoding method and apparatus, and recording medium storing bitstream thereon

By using predefined candidate lists and index information to determine interpolation filters in image encoding and decoding, the problem of adaptive interpolation filter configuration is solved and the encoding efficiency and ease of operation of high-definition and ultra-high-definition images are improved.

CN118679737APending Publication Date: 2024-09-20LG ELECTRONICS INC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202380021399.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-13
Filing Date
2023-02-13
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult to effectively configure and use adaptive interpolation filters in the existing technology, resulting in low efficiency of image encoding and decoding. Especially in high-definition and ultra-high-definition image processing, it is difficult to match the characteristics of video sequences.

Method used

Select the appropriate interpolation filter from the predefined candidate list, calculate the SAD value based on the characteristics of the current block, reorder the candidate list, and use the index information to determine the interpolation filter. Supports multiple filter types and lengths, including DCT, Gaussian and sharpening filters.

Benefits of technology

It improves the coding efficiency in the motion compensation process, reduces unnecessary flag transmission, simplifies the operation complexity, and improves the coding efficiency of inter-frame prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118679737A
    Figure CN118679737A
Patent Text Reader

Abstract

The image decoding / encoding method and apparatus according to the present disclosure can determine an interpolation filter of a current block based on a candidate list including a plurality of predefined interpolation filter candidates, generate a prediction sample of the current block based on the interpolation filter of the current block, and decode / encode the current block based on the prediction sample of the current block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an image encoding / decoding method and apparatus and a recording medium storing a bit stream. Background Art

[0002] Recently, demands for high-resolution and high-quality images such as HD (High Definition) images and UHD (Ultra High Definition) images have been increasing in various application fields, and therefore, efficient image compression technology is being discussed.

[0003] There are various technologies, such as inter-frame prediction technology that uses video compression technology to predict pixel values ​​included in the current picture from pictures before or after the current picture, intra-frame prediction technology that predicts pixel values ​​included in the current picture by using pixel information in the current picture, entropy coding technology that assigns short symbols to values ​​with high occurrence frequency and assigns long symbols to values ​​with low occurrence frequency, etc., and these image compression technologies can be used to effectively compress image data and transmit or store it. Summary of the invention

[0004] Technical issues

[0005] The present disclosure seeks to provide a method and apparatus for adaptively determining an interpolation filter based on a candidate list.

[0006] The present disclosure seeks to provide a method and apparatus for configuring a candidate list for an adaptive interpolation filter technique.

[0007] The present disclosure seeks to provide a method and apparatus for signaling / deriving a flag for adaptively using an adaptive interpolation filter technique.

[0008] The present disclosure seeks to provide a method and apparatus for propagating interpolation filter related information in adaptive interpolation filter techniques.

[0009] Technical Solutions

[0010] According to the image decoding method and device of the present disclosure, an interpolation filter of a current block can be determined based on a candidate list of multiple interpolation filter candidates predefined in a decoding device, a prediction sample of the current block can be generated based on the interpolation filter of the current block, and the current block can be reconstructed based on the prediction sample of the current block.

[0011] In the image decoding method and device according to the present disclosure, determining the interpolation filter may include calculating SAD values ​​corresponding to multiple interpolation filter candidates respectively, and the SAD value may be calculated based on a template area of ​​a current block and a template area of ​​a reference block, and the reference block may include at least one of a reference block in an L0 direction or a reference block in an L1 direction.

[0012] In the image decoding method and apparatus according to the present disclosure, a reordered candidate list may be generated by reordering interpolation filter candidates in ascending order of SAD values. An interpolation filter for a current block may be determined from the reordered candidate list based on index information signaled from a bitstream. The index information may indicate one of a plurality of interpolation filter candidates belonging to the reordered candidate list.

[0013] In the image decoding method and device according to the present disclosure, SAD values ​​may be calculated for reference picture list 0 and reference picture list 1, respectively.

[0014] In the image decoding method and apparatus according to the present disclosure, the candidate list may include at least one of a DCT-based interpolation filter, a Gaussian interpolation filter, or a sharpening interpolation filter.

[0015] In the image decoding method and device according to the present disclosure, the DCT-based interpolation filter may include at least one of an 8-tap first DCT-based interpolation filter or a 12-tap second DCT-based interpolation filter, and the Gaussian interpolation filter may include at least one of an 8-tap first Gaussian interpolation filter or a 12-tap second Gaussian interpolation filter.

[0016] In the image decoding method and apparatus according to the present disclosure, determining the interpolation filter of the current block based on the candidate list may be performed based on first flag information indicating whether an adaptive interpolation filter technique is used for the current block.

[0017] In the image decoding method and device according to the present disclosure, the first flag information can be determined based on at least one of the second flag information indicating whether the adaptive filter technology is allowed in the video sequence including the current block, the quantization parameter of the current block, the size of the current block, or the inter-frame prediction mode of the current block.

[0018] In the image decoding method and apparatus according to the present disclosure, the candidate list may be determined as one of a plurality of candidate lists predefined in the decoding device.

[0019] In the image decoding method and apparatus according to the present disclosure, an interpolation filter for a chrominance component of a current block may be determined independently of an interpolation filter for a luminance component of the current block.

[0020] In the image decoding method and apparatus according to the present disclosure, the candidate list may be reconfigured based on an interpolation filter used in at least one of a picture, a slice, or a block decoded before a current block.

[0021] According to the image encoding method and device of the present disclosure, an interpolation filter of a current block may be determined based on a candidate list of multiple interpolation filter candidates predefined in an encoding device, a prediction sample of the current block may be generated based on the interpolation filter of the current block, and the current block may be encoded based on the prediction sample of the current block.

[0022] A computer-readable digital storage medium is provided, which stores encoded video / image information, thereby causing a decoding device according to the present disclosure to perform an image decoding method.

[0023] A computer-readable digital storage medium storing video / image information generated according to an image encoding method according to the present disclosure is provided.

[0024] A method and apparatus for transmitting video / image information generated according to an image encoding method according to the present disclosure are provided.

[0025] Beneficial Effects

[0026] According to the present disclosure, encoding efficiency in a motion compensation process may be improved by selectively using an interpolation filter matched to characteristics of a video sequence based on a candidate list including a plurality of interpolation filter candidates.

[0027] According to the present disclosure, an interpolation filter that better matches the characteristics of a video sequence may be selected by using interpolation filter candidates having various filter types and filter lengths.

[0028] According to the present disclosure, it is possible to remove signaling of an unnecessary flag and control complexity of operation by limiting the signaling / deriving conditions of a flag for adaptively using an adaptive interpolation filter technique.

[0029] According to the present disclosure, encoding efficiency of inter-frame prediction can be improved by considering or reusing information about a candidate list or interpolation filter used in a previously encoded / decoded picture, slice, or block in a subsequent encoding / decoding process. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A video / image compilation system according to the present disclosure is shown.

[0031] Figure 2 A schematic block diagram showing an encoding device to which an embodiment of the present disclosure is applicable and which performs encoding of a video / image signal.

[0032] Figure 3 A schematic block diagram showing a decoding device to which an embodiment of the present disclosure is applicable and which performs decoding of a video / image signal.

[0033] Figure 4An inter-frame prediction method performed by a decoding device according to an embodiment of the present disclosure is shown.

[0034] Figure 5 A schematic configuration of the inter-frame predictor 332 that performs the inter-frame prediction method according to the present disclosure is shown.

[0035] Figure 6 An inter prediction method performed by the encoding device 200 as an embodiment according to the present disclosure is shown.

[0036] Figure 7 A schematic configuration of the inter-frame predictor 221 that performs the inter-frame prediction method according to the present disclosure is shown.

[0037] Figure 8 An example of a content streaming system to which an embodiment of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0038] Because the present disclosure can make various changes and has several embodiments, specific embodiments will be illustrated in the drawings and described in detail in the detailed description. However, it is not intended to limit the present disclosure to specific embodiments, and it should be understood to include all changes, equivalents and substitutes included in the spirit and technical scope of the present disclosure. While describing each of the accompanying drawings, similar reference numerals are used for similar components.

[0039] Terms such as first, second, etc. can be used to describe various components, but components should not be limited by these terms. These terms are only used to distinguish one component from other components. For example, without departing from the scope of the present disclosure, a first component can be referred to as a second component, and similarly, a second component can also be referred to as a first component. Terms and / or combinations of any one or more related statement items in a plurality of related statement items are included.

[0040] When a component is referred to as being "connected" or "linked" to another component, it should be understood that it can be directly connected or linked to another component, but another component may also exist in between. On the other hand, when a component is referred to as being "directly connected" or "directly linked" to another component, it should be understood that another component does not exist in between.

[0041] The terms used in this application are only used to describe specific embodiments and are not intended to limit the present disclosure. Unless the context clearly indicates otherwise, singular expressions include plural expressions. In this application, it should be understood that terms such as "including" or "having" are intended to designate the existence of features, numbers, steps, operations, components, parts or combinations thereof described in the specification, but do not exclude the possibility of the existence or addition of one or more other features, numbers, steps, operations, components, parts or combinations thereof in advance.

[0042] The present disclosure relates to video / image coding. For example, the methods / embodiments disclosed herein may be applied to methods disclosed in the Universal Video Coding (VVC) standard. In addition, the methods / embodiments disclosed herein may be applied to methods disclosed in the Basic Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the second generation audio video coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267 or H.268, etc.).

[0043] This specification proposes various embodiments of video / image coding, and unless otherwise stated, these embodiments may be performed in combination with each other.

[0044] Here, video may refer to a collection of a series of images over time. A picture generally refers to a unit representing an image within a specific time period, and a slice / tile is a unit that forms a part of a picture in coding. A slice / tile may include at least one coding tree unit (CTU). A picture may be composed of at least one slice / tile. A tile is a rectangular area consisting of multiple CTUs within a specific tile column and a specific tile row of a picture. A tile column is a rectangular area of ​​a CTU having the same height as the picture and a width assigned by the syntax requirements of the picture parameter set. A tile row is a rectangular area of ​​a CTU having a height assigned by the picture parameter set and the same width as the width of the picture. The CTU within a tile may be arranged continuously according to a CTU raster scan, and the tiles within a picture may be arranged continuously according to a raster scan of the tile. A slice may include an integer number of complete tiles or an integer number of continuous complete CTU rows within a tile of a picture that may be exclusively included in a single NAL unit. At the same time, a picture may be divided into at least two sub-pictures. A sub-picture may be a rectangular area of ​​at least one slice within a picture.

[0045] Pixel, pixel or picture element may refer to the smallest unit constituting a picture (or image). In addition, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component, or only a pixel / pixel value of a chrominance component.

[0046] A unit may represent a basic unit of image processing. A unit may include at least one of a specific region of a picture and information associated with the corresponding region. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an MxN block may include a set (or array) of transform coefficients or samples (or sample arrays) consisting of M columns and N rows.

[0047] Here, "A or B" may refer to "only A", "only B", or "both A and B". In other words, herein, "A or B" may be interpreted as "A and / or B". For example, herein, "A, B or C" may refer to "only A", "only B", "only C", or "any combination of A, B, and C".

[0048] As used herein, a slash ( / ) or a comma may mean "and / or". For example, "A / B" may mean "A and / or B". Thus, "A / B" may mean "only A", "only B", or "both A and B". For example, "A, B, C" may mean "A, B, or C".

[0049] Here, "at least one of A and B" may refer to "only A", "only B", or "both A and B". In addition, herein, expressions such as "at least one of A or B" or "at least one of A and / or B" can be interpreted in the same manner as "at least one of A and B".

[0050] In addition, herein, “at least one of A, B, and C” may refer to “only A”, “only B”, “only C”, or “any combination of A, B, and C”. In addition, “at least one of A, B, or C” or “at least one of A, B and / or C” may refer to “at least one of A, B, and C”.

[0051] In addition, the brackets used herein may refer to "for example". Specifically, when the indication is "prediction (intra-frame prediction)", "intra-frame prediction" may be proposed as an example of "prediction". In other words, the "prediction" here is not limited to "intra-frame prediction", and "intra-frame prediction" may be proposed as an example of "prediction". In addition, even when the indication is "prediction (ie, intra-frame prediction)", "intra-frame prediction" may be proposed as an example of "prediction".

[0052] Here, technical features described individually in one drawing may be implemented individually or simultaneously.

[0053] Figure 1 A video / image compilation system according to the present disclosure is shown.

[0054] refer to Figure 1 , a video / image coding system may include a first device (source device) and a second device (receiving device).

[0055] The source device may send the encoded video / image information or data to the receiving device in the form of a file or stream transmission through a digital storage medium or a network. The source device may include a video source, an encoding device, and a sending unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display unit, and the display unit may be composed of a separate device or an external component.

[0056] The video source may obtain the video / image through the process of capturing, synthesizing or generating the video / image. The video source may include a device for capturing the video / image and a device for generating the video / image. The device for capturing the video / image may include at least one camera, a video / image archive including previously captured videos / images, etc. The device for generating the video / image may include a computer, a tablet computer, a smart phone, etc., and may (electronically) generate the video / image. For example, a virtual video / image may be generated by a computer, etc., and in this case, the process of capturing the video / image may be replaced by the process of generating the relevant data.

[0057] The encoding device can encode the input video / image. The encoding device can perform a series of processes such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bit stream.

[0058] The sending unit may send the encoded video / image information or data output in the form of a bit stream to the receiving unit of the receiving device in the form of a file or stream transmission through a digital storage medium or a network. The digital storage medium may include various storage media, such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The sending unit may include an element for generating a media file in a predetermined file format and may include an element for transmission through a broadcast / communication network. The receiving unit may receive / extract a bit stream and send it to a decoding device.

[0059] The decoding device may decode the video / image by performing a series of processes such as inverse quantization, inverse transformation, prediction, etc. corresponding to the operations of the encoding device.

[0060] The renderer may render the decoded video / image. The rendered video / image may be displayed through a display unit.

[0061] Figure 2 A rough block diagram of an encoding device to which an embodiment of the present disclosure can be applied and which performs encoding of a video / image signal is shown.

[0062] refer to Figure 2 , the encoding device 200 may be composed of 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 transformer 232, a quantizer 233, an inverse quantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. According to an embodiment, the above-mentioned image segmenter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250, and the filter 260 may be configured by at least one hardware component (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include a memory 270 as an internal / external component.

[0063] The image divider 210 may divide the input image (or picture, frame) input to the encoding device 200 into at least one processing unit. As an example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure.

[0064] For example, one coding unit may be segmented into a plurality of coding units having a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quadtree structure may be applied first, and the binary tree structure and / or the ternary structure may be applied later. Alternatively, the binary tree structure may be applied before the quadtree structure. The coding process according to this specification may be performed based on a final coding unit that is no longer segmented. In this case, based on coding efficiency according to image characteristics, etc., the maximum coding unit may be directly used as the final coding unit, or if necessary, the coding unit may be recursively segmented into coding units of a deeper depth, and the coding unit with the best size may be used as the final coding unit. Here, the coding process may include processes such as prediction, transformation, and reconstruction described later.

[0065] As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be divided or partitioned from the above-mentioned final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.

[0066] In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an MxN block may represent a set of transform coefficients or samples consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component, or only a pixel / pixel value of a chroma component. A sample may be used as a term to make a picture (or image) correspond to a pixel or a picture element.

[0067] The encoding device 200 may subtract the prediction signal (prediction block, prediction sample array) output from the inter predictor 221 or the intra predictor 222 from the input image signal (original block, original sample array) to generate a residual signal (residual signal, residual sample array), and the generated residual signal is sent to the transformer 232. In this case, the unit that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) within the encoding device 200 may be referred to as a subtractor 231.

[0068] The predictor 220 may perform prediction on a block to be processed (hereinafter referred to as a current block) and generate a predicted block including a prediction sample for the current block. The predictor 220 may determine whether intra prediction or inter prediction is applied in units of a current block or CU. The predictor 220 may generate various information about the prediction, such as prediction mode information, and send it to the entropy encoder 240, as described later in the description of each prediction mode. The information about the prediction may be encoded in the entropy encoder 240 and output in the form of a bitstream.

[0069] The intra-frame predictor 222 can predict the current block by referring to the samples in the current picture. Depending on the prediction mode, the referenced sample can be located near the current block or can be located at a certain distance away from the current block. In intra-frame prediction, the prediction mode may include at least one non-directional mode and multiple directional modes. The non-directional mode may include at least one of the DC mode or the plane mode. Depending on the detail level of the prediction direction, the directional mode may include 33 directional modes or 65 directional modes. However, this is only an example, and more or less directional modes may be used depending on the configuration. The intra-frame predictor 222 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.

[0070] The inter-frame predictor 221 may derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter-frame prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). For example, the inter-frame predictor 221 may configure a motion information candidate list based on the neighboring blocks, and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, for skip mode and merge mode, the inter predictor 221 may use motion information of neighboring blocks as motion information of the current block. For skip mode, unlike merge mode, a residual signal may not be transmitted. For motion vector prediction (MVP) mode, motion vectors of surrounding blocks are used as motion vector predictors, and motion vector differences are signaled to indicate the motion vector of the current block.

[0071] The predictor 220 may generate a prediction signal based on various prediction methods described later. For example, the predictor may not only apply intra prediction or inter prediction to predict a block, but may also apply intra prediction and inter prediction at the same time. It may be referred to as a combined inter and intra prediction (CIIP) mode. In addition, the predictor may be based on an intra block copy (IBC) prediction mode or may be based on a palette mode for prediction of a block. The IBC prediction mode or the palette mode may be used for content image / video coding of games, such as screen content coding (SCC), etc. IBC basically performs prediction within the current picture, but it may be performed similarly to inter prediction because it derives a reference block within the current picture. In other words, IBC may use at least one of the inter prediction techniques described herein. The palette mode may be considered an example of intra coding or intra prediction. When the palette mode is applied, the sample values ​​within the picture may be signaled based on information about the palette table and the palette index. The prediction signal generated by the predictor 220 may be used to generate a reconstructed signal or a residual signal.

[0072] The transformer 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loève transform (KLT), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, GBT refers to a transform obtained from a graph when relationship information between pixels is expressed as a graph. CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels. In addition, the transform process may be applied to square pixel blocks of the same size or may be applied to non-square blocks of variable size.

[0073] The quantizer 233 may quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream. The information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the quantized transform coefficients in the block form into a one-dimensional vector form based on the coefficient scanning order, and may generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.

[0074] The entropy encoder 240 may perform various encoding methods such as Exponential Golomb, Context Adaptive Variable Length Coding (CAVLC), Context Adaptive Binary Arithmetic Coding (CABAC), etc. The entropy encoder 240 may encode information necessary for video / video image reconstruction (e.g., values ​​of syntax elements, etc.) in addition to transform coefficients quantized together or individually.

[0075] The encoded information (e.g., encoded video / image information) can be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream. The video / image information may further include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. Here, information and / or syntax elements transmitted / signaled from the encoding device to the decoding device may be included in the video / image information. The video / image information may be encoded and included in the bitstream through the above-mentioned encoding process. The bitstream may be transmitted through a network or may be stored in a digital storage medium. Here, the network may include a broadcast network and / or a communication network, etc., and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmission unit (not shown) for transmission and / or a storage unit (not shown) for storing a signal output from the entropy encoder 240 may be configured as an internal / external element of the encoding device 200, or the transmission unit may also be included in the entropy encoder 240.

[0076] The quantized transform coefficients output from the 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 through the inverse quantizer 234 and the inverse transformer 235. The adder 250 can add the reconstructed residual signal to the prediction signal output from the inter-frame predictor 221 or the intra-frame predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). When there is no residual of the block to be processed, such as when the skip mode is applied, the prediction block can be used as a reconstructed block. The adder 250 can be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can also be used for inter-frame prediction of the next picture through filtering described later. At the same time, luminance mapping with chroma scaling (LMCS) can be applied in the picture encoding and / or reconstruction process.

[0077] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and the modified reconstructed picture can be stored in the memory 270, specifically in the DPB of the memory 270. Various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various information about filtering and send it to the entropy encoder 240. The information about filtering can be encoded in the entropy encoder 240 and output in the form of a bit stream.

[0078] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied therethrough, the encoding apparatus can avoid prediction mismatch in the encoding apparatus 200 and the decoding apparatus, and can also improve encoding efficiency.

[0079] The DPB of the memory 270 may store the modified reconstructed picture to be used as a reference picture in the inter-frame predictor 221. The memory 270 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the block in the pre-reconstructed picture. The stored motion information may be sent to the inter-frame predictor 221 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 may store the reconstructed samples of the reconstructed block in the current picture and send them to the intra-frame predictor 222.

[0080] Figure 3 A rough block diagram of a decoding device to which an embodiment of the present disclosure can be applied and which performs decoding of a video / image signal is shown.

[0081] refer to Figure 3 , the decoding apparatus 300 may be configured by including an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321.

[0082] According to an embodiment, the above-mentioned entropy decoder 310, residual processor 320, predictor 330, adder 340 and filter 350 may be configured by one hardware component (e.g., decoder chipset or processor). In addition, the memory 360 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include the memory 360 as an internal / external component.

[0083] When a bit stream including video / image information is input, the decoding apparatus 300 may generate a decoded signal in response to the bit stream received in the decoded signal. Figure 2 The image is reconstructed by the process of processing video / image information in the encoding device of the decoding device. For example, the decoding device 300 can derive the unit / block based on the relevant information of the block segmentation obtained from the bit stream. The decoding device 300 can perform decoding by using the processing unit applied in the encoding device. Therefore, the processing unit of decoding can be a coding unit, and the coding unit can be divided from the coding tree unit or the maximum coding unit according to the quadtree structure, the binary tree structure and / or the ternary tree structure. At least one transform unit can be derived from the coding unit. And, the reconstructed image signal decoded and output by the decoding device 300 can be played by a playback device.

[0084] The decoding device 300 may receive the bit stream from Figure 2 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) necessary for image reconstruction (or picture reconstruction). The video / image information may further include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The decoding device may further decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or the syntax elements described later in this document may be decoded and obtained from the bitstream by a decoding process. For example, the entropy decoder 310 may decode the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, CABAC, etc., and output the values ​​of the syntax elements necessary for image reconstruction and the quantized values ​​of the transform coefficients of the residual. In more detail, the CABAC entropy decoding method can receive a bin corresponding to each syntax element from a bitstream, determine a context model by using information of syntax elements to be decoded, decoding information of surrounding blocks and blocks to be decoded, or information of symbols / bins decoded in the previous step, perform arithmetic decoding on bins by predicting the probability of occurrence of bins according to the determined context model, and generate symbols corresponding to the values ​​of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using information about decoded symbols / bins of the context model for the next symbol / bin. Among the information decoded in the entropy decoder 310, information about prediction is provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value, that is, the quantized transform coefficient and related parameter information, which is entropy decoded in the entropy decoder 310, can be input to the residual processor 320. The residual processor 320 can derive a residual signal (residual block, residual sample, residual sample array). In addition, information about filtering among the information decoded in the entropy decoder 310 can be provided to the filter 350. Meanwhile, a receiving unit (not shown) that receives a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300 or the receiving unit may be a component of the entropy decoder 310 .

[0085] Meanwhile, the decoding device according to this specification may be referred to as a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of an inverse quantizer 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.

[0086] The inverse quantizer 321 may inverse quantize the quantized transform coefficient and output the transform coefficient. The inverse quantizer 321 may rearrange the quantized transform coefficient into a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding device. The inverse quantizer 321 may perform inverse quantization on the quantized transform coefficient by using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficient.

[0087] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0088] The predictor 320 may perform prediction on the current block and generate a prediction block including prediction samples for the current block. The predictor 320 may determine whether to apply intra prediction or inter prediction to the current block based on the information on prediction output from the entropy decoder 310, and determine a specific intra / inter prediction mode.

[0089] The predictor 320 can generate a prediction signal based on various prediction methods described later. For example, the predictor 320 can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. It can be called a combined inter and intra prediction (CIIP) mode. In addition, the predictor can be based on an intra block copy (IBC) prediction mode or can be based on a palette mode for prediction of a block. The IBC prediction mode or the palette mode can be used for content image / video coding of games, such as screen content coding (SCC), etc. IBC basically performs prediction within the current picture, but it can be performed similarly to inter prediction because it derives a reference block within the current picture. In other words, IBC can use at least one of the inter prediction techniques described herein. The palette mode can be considered as an example of intra coding or intra prediction. When the palette mode is applied, information about the palette table and the palette index can be included in the video / image information and sent with a signal.

[0090] The intra-frame predictor 331 can predict the current block by referring to samples within the current picture. Depending on the prediction mode, the referenced sample can be located near the current block or can be located at a certain distance away from the current block. In intra-frame prediction, the prediction mode can include at least one non-directional mode and multiple directional modes. The intra-frame predictor 331 can determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.

[0091] The inter-frame predictor 332 may derive a prediction block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter-frame prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on the neighboring blocks, and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating an inter-frame prediction mode for the current block.

[0092] The adder 340 may add the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331) to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). When there is no residual of the block to be processed, such as when the skip mode is applied, the prediction block may be used as the reconstructed block.

[0093] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next block to be processed in the current picture, may be output through filtering described later, or may be used for inter prediction of the next picture. At the same time, luminance mapping with chroma scaling (LMCS) may be applied during picture decoding.

[0094] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and send the modified reconstructed picture to the memory 360, specifically the DPB of the memory 360. The various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0095] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame prediction unit 332. The memory 360 can be derived from the motion information in its current picture (or decoded) The motion information of the block and / or the motion information of the block in the pre-reconstructed picture. The stored motion information can be sent to the inter-frame predictor 332 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 can store the reconstructed samples of the reconstructed block in the current picture and send them to the intra-frame predictor 331.

[0096] Here, the embodiments described in the filter 260, the inter-frame predictor 221, and the intra-frame predictor 222 of the encoding device 200 may also be equally or correspondingly applied to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300, respectively.

[0097] Figure 4 An inter-frame prediction method performed by the decoding device 300 according to an embodiment of the present disclosure is shown.

[0098] refer to Figure 4 , the interpolation filter of the current block can be determined S400.

[0099] The interpolation filter of the current block may be derived from a candidate list including a plurality of interpolation filter candidates predefined in a decoding device. The filter types of the plurality of predefined interpolation filter candidates may include at least one of a DCT-based interpolation filter (DCT-IF), a Gaussian interpolation filter (Gaussian IF), or a sharpening interpolation filter (Sharpening IF). Interpolation filters having different numbers of filter taps and / or different filter coefficients may be included in the candidate list even if they have the same filter type.

[0100] Specifically, the candidate list may include at least one of an 8-tap DCT-IF, a 12-tap DCT-IF, an 8-tap Gaussian interpolation filter, or a 12-tap Gaussian interpolation filter. As an example, the candidate list may be defined as shown in Table 1 below.

[0101] [Table 1]

[0102]

[0103] Table 1 defines interpolation filter candidates for each index (Idx). However, the index in Table 1 is only used to distinguish the interpolation filter candidates and does not limit the position of the interpolation filter candidate corresponding to the index. In other words, the position of the interpolation filter candidate within the candidate list may be different from Table 1. In addition, the candidate list may further include at least one of a 4-tap DCT-IF, a 4-tap Gaussian interpolation filter, a 16-tap DCT-IF, a 16-tap Gaussian interpolation filter, a 4-tap sharpening interpolation filter, an 8-tap sharpening interpolation filter, a 12-tap sharpening interpolation filter, or a 16-tap sharpening interpolation filter.

[0104] Hereinafter, a method for determining an interpolation filter of a current block based on a candidate list will be described in detail.

[0105] Cost-based determination method

[0106] In the case of a decoding device, a cost may be calculated for each interpolation filter candidate belonging to the candidate list. Among the costs calculated based on the interpolation filter candidates, one interpolation filter candidate with the minimum cost may be selected. The selected interpolation filter candidate may be set as the interpolation filter of the current block.

[0107] Here, the cost may be calculated for all interpolation filter candidates belonging to the candidate list, or the cost may be calculated only for the first N interpolation filter candidates belonging to the candidate list. N is an integer of 2, 3, 4 or more, and may be less than the total number of interpolation filter candidates belonging to the candidate list.

[0108] The cost may be calculated as the sum of absolute differences (SAD) between one or more samples in the template region of the current block and one or more samples in the template region of the reference block.

[0109] Specifically, when the current block is encoded by unidirectional prediction, the current block may have a reference block in either the L0 direction or the L1 direction. In this case, the SAD may be calculated based on a template region adjacent to the reference block in the L0 or L1 direction and a template region adjacent to the current block. The samples in the template region may be generated by applying the corresponding interpolation filter candidate to the reconstructed samples of the reference picture.

[0110] Alternatively, when the current block is encoded by bidirectional prediction, the current block may have a reference block in the L0 direction and a reference block in the L1 direction. In this case, the SAD may be calculated based on a template area adjacent to the reference block in the L0 direction, a template area adjacent to the reference block in the L1 direction, and a template area adjacent to the current block. Samples of the template areas in the L0 and L1 directions may be generated by applying corresponding interpolation filter candidates to reconstructed samples of reference pictures in the L0 and L1 directions, respectively. As an example, the SAD may be calculated according to the following equation 1.

[0111] [Equation 1]

[0112] tP = (tP0 + tP1 + offset) >> (shift)

[0113] SAD = ∑|tC – tP|

[0114] In Equation 1, tP0 and tP1 may represent a sample value of the template region in the L0 direction and a sample value of the template region in the L1 direction, respectively, and tC may represent a sample value of the template region of the current block. The offset and the shift may be set to 1, respectively.

[0115] Alternatively, when a weighted sum is applied between reference blocks in the L1 and L2 directions, the weight of the weighted sum may be equally applied to tP0 and tP1, and the offset and shift may be set based on the weighted sum. For example, when the weighted sum is 16, the offset may be set to (1<<(1+3)), and the shift may be set to (1+4).

[0116] As described above, the final template region may be generated by the average or weighted sum of sample values ​​of the template region in the L0 direction and the sample values ​​of the template region in the L1 direction, and the SAD between the template region of the current block and the final template region may be calculated.

[0117] SAD can be modified and applied in various ways such as mean reduced SAD (MRSAD), high frequency removal SAD, etc. More specifically, MRSAD may be calculated as in Equation 2 below.

[0118] [Equation 2]

[0119] tP = (tP0 + tP1 + offset) >> shift

[0120] delta = (∑ (tC - tP)) / (W x H)

[0121] SAD = ∑ | (tC – tP) – delta |

[0122] In Equation 2, tP0, tP1, tC, offset, and shift are the same as those described in Equation 1, and repeated description is omitted here. W and H may respectively represent the width and height of a template area used to calculate the cost.

[0123] In addition, the SAD of high frequency removal can be calculated according to the following Equation 3.

[0124] [Equation 3]

[0125] tmp = (2 * tC) – tP0 – tP1

[0126] SAD = ∑| tmp |

[0127] In Equation 3, tP0, tP1, and tC are the same as those described in Equation 1, and the repeated description is omitted here.

[0128] Alternatively, even when the current block is encoded by bidirectional prediction, the SAD may be calculated based on a template area adjacent to the reference block and a template area adjacent to the current block in either the L0 or L1 directions. Either the L0 or L1 directions may be directions predefined equally for the encoding apparatus and the decoding apparatus.

[0129] The template area used to calculate the cost may be a neighboring area adjacent to the current block and / or the reference block. As an example, the template area may include at least one of a top neighboring area, a left neighboring area, an upper left neighboring area, a lower left neighboring area, or an upper right neighboring area.

[0130] The template area may be an area predefined equally for the encoding device and the decoding device for calculating the cost. Alternatively, the template area may be variably determined based on information specifying the location of the template area. In this case, the information specifying the location of the template area may be signaled via a bitstream. Alternatively, the location and / or size of the template area may be determined based on whether the current block is positioned on the boundary of at least one of a picture, a slice, a tile, or a coding tree unit, the size of the current block (e.g., width, height, ratio of width and height, product of width and height), the shape of the current block, the partition type of the current block, the prediction mode of the neighboring area, or the availability of the neighboring area.

[0131] As an example, when the current block is positioned at the top boundary of the coding tree unit, the cost may be calculated without reference to at least one of the top neighboring area, the upper left neighboring area, or the upper right neighboring area of ​​the current block. When the width of the current block is greater than the height, the cost may be calculated with reference to the top neighboring area, and the cost may be calculated without reference to the left neighboring area. On the contrary, when the width of the current block is less than the height, the cost may be calculated with reference to the left neighboring area, and the cost may be calculated without reference to the top neighboring area. When the current block is generated by horizontal block division, the cost may be calculated without reference to the top neighboring area. On the contrary, when the current block is generated by vertical block division, the cost may be calculated without reference to the left neighboring area. When the neighboring area of ​​the current block is encoded in the intra-frame mode, the cost may be calculated without reference to the corresponding neighboring area. However, it is not limited to this, and the cost may be calculated with reference to the corresponding neighboring area regardless of the prediction mode of the neighboring area.

[0132] The template area may be configured with M sample lines. Here, M may be an integer of 1, 2, 3, 4 or more. The number of sample lines configuring the template area may be the same regardless of the position of the above-mentioned neighboring area, or may be different according to the position of the neighboring area. The cost may be calculated based on all samples belonging to the template area. Alternatively, the cost may be calculated using only sample lines at predetermined positions within the template area. Alternatively, the cost may be calculated based on all or some samples of the sample lines belonging to the predetermined positions. The positions of sample lines and / or samples used for cost calculation within the template area may be determined based on at least one of whether the current block is positioned on the boundary of a picture, slice, tile, or coding tree unit, the size of the current block, the shape of the current block, the partition type of the current block, the prediction mode of the neighboring area, or the availability of the neighboring area. Alternatively, information for specifying the position of the sample line used for cost calculation may be sent by a bitstream signal.

[0133] Re-ranked candidate list and determination method based on index information

[0134] As far as the decoding device is concerned, the cost can be calculated for each interpolation filter candidate belonging to the candidate list. The cost is the same as described in the above-mentioned "determination method based on cost", and the detailed description is omitted here.

[0135] The interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the calculated cost. The interpolation filter of the current block may be determined based on the reordered candidate list and the index information. The index information is encoded based on the reordered candidate list and may be signaled through a bitstream. The index information may indicate any one of the interpolation filter candidates in the reordered candidate list.

[0136] As an example, it is assumed that the candidate list includes three interpolation filter candidates, ie, first to third interpolation filter candidates, and indexes 0 to 2 are respectively assigned to the first to third interpolation filter candidates.

[0137] Costs of cost0 to cost2 may be calculated for the first to third interpolation filter candidates, respectively. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, and cost0. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, and the first interpolation filter candidate. In other words, index 0 may be assigned to the second interpolation filter candidate, index 1 may be assigned to the third interpolation filter candidate, and index 2 may be assigned to the first interpolation filter candidate.

[0138] The value of the index information is an integer in the range of 0 to 2, and the interpolation filter candidate indicated by the index information can be set as the interpolation filter of the current block. In other words, when the value of the index information is 0, the second interpolation filter candidate assigned with index 0 in the reordered candidate list can be set as the interpolation filter of the current block. Alternatively, when the value of the index information is 1, the third interpolation filter candidate assigned with index 1 in the reordered candidate list can be set as the interpolation filter of the current block. Alternatively, when the value of the index information is 2, the first interpolation filter candidate assigned with index 2 in the reordered candidate list can be set as the interpolation filter of the current block.

[0139] Alternatively, it is assumed that the candidate list includes five interpolation filter candidates, ie, first to fifth interpolation filter candidates, and indexes 0 to 4 are respectively assigned to the first to fifth interpolation filter candidates.

[0140] Costs of cost0 to cost4 may be calculated for the first to fifth interpolation filter candidates, respectively. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, cost0, cost3, and cost4. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, the first interpolation filter candidate, the fourth interpolation filter candidate, and the fifth interpolation filter candidate. In other words, index 0 may be assigned to the second interpolation filter candidate, index 1 may be assigned to the third interpolation filter candidate, index 2 may be assigned to the first interpolation filter candidate, index 3 may be assigned to the fourth interpolation filter candidate, and index 4 may be assigned to the fifth interpolation filter candidate.

[0141] Index information may be encoded for the first N interpolation filter candidates belonging to the reordered candidate list. When N is 3, the value of the index information is an integer in the range of 0 to 2, and may indicate any one of the first three interpolation filter candidates belonging to the reordered candidate list. The interpolation filter candidate indicated by the index information may be set as the interpolation filter of the current block. However, this is merely an example, and N may be 2 or 4.

[0142] Alternatively, each cost may be calculated for the first N interpolation filter candidates among the five interpolation filter candidates belonging to the candidate list, and no cost may be calculated for the remaining interpolation filter candidates. In the following, for ease of description, it is assumed that N is 3, but the present disclosure is not limited thereto, and N may be 2 or 4.

[0143] Costs of cost0 to cost2 may be calculated for the first three interpolation filter candidates, i.e., the first to third interpolation filter candidates. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, and cost0. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, the first interpolation filter candidate, the fourth interpolation filter candidate, and the fifth interpolation filter candidate.

[0144] Index information may be encoded for the first N interpolation filter candidates for which the cost is calculated. When N is 3, the value of the index information is an integer in the range of 0 to 2, and may indicate any one of the first three interpolation filter candidates belonging to the reordered candidate list. The interpolation filter candidate indicated by the index information may be set as the interpolation filter of the current block.

[0145] Determination method based on index information

[0146] The index information in this embodiment may be encoded based on an index of a candidate list predefined equally for an encoding device and a decoding device instead of a reordered candidate list. In this case, the process of calculating a cost for each interpolation filter candidate belonging to the candidate list and the process of reordering the interpolation filter candidates of the candidate list based on the calculated cost may be omitted. The index information may indicate any one of a plurality of interpolation filter candidates belonging to the candidate list. The interpolation filter candidate indicated by the index information may be set as the interpolation filter of the current block.

[0147] The interpolation filter of the current block can be determined by selectively using any one of a plurality of determination methods predefined in the decoding device. The plurality of predefined determination methods may include at least one of the above-mentioned cost-based determination method, a determination method based on a reordered candidate list and index information, or a determination method based on index information. For selective use, information specifying any one of the plurality of determination methods may be used. Here, the information may be explicitly signaled via a bitstream, or may be implicitly derived based on parameters of the current block. The parameters may include at least one of a position, a size, a shape, a partition type, a component type, an inter-frame prediction mode type, or whether the block is encoded by bidirectional prediction.

[0148] The interpolation filter determined by the above method can be equally applied to the reference block in the L0 direction and the reference block in the L1 direction for generating the current block. Alternatively, as described later, each interpolation filter can be determined for each reference picture list, and even in this case, the above method can be applied in the same / similar manner, and repeated description is omitted. Here, the reference picture list may include reference picture list 0 (L0) and reference picture list 1 (L1).

[0149] Cost-based determination method

[0150] For each of the L0 and L1 directions, the cost corresponding to the interpolation filter candidate belonging to the candidate list can be calculated separately. Specifically, for the L0 direction, the cost can be calculated based on the template area adjacent to the reference block and the template area adjacent to the current block in the L0 direction. The interpolation filter candidate with the smallest cost among the calculated costs can be set as the interpolation filter for generating the reference block in the L0 direction of the current block. Similarly, for the L1 direction, the cost can be calculated based on the template area adjacent to the reference block and the template area adjacent to the current block in the L1 direction. The interpolation filter candidate with the smallest cost among the calculated costs can be set as the interpolation filter for generating the reference block in the L1 direction of the current block. Thus, different interpolation filters can be used for the L0 direction and L1 direction of the current block.

[0151] The cost may be defined as SAD as described above, and may be calculated as in the following Equation 4. However, this is merely an example, and may be modified and applied in various ways such as the above-described mean reduced SAD (MRSAD), high frequency removal SAD, and the like.

[0152] [Equation 4]

[0153] SAD_L0 = ∑| tC – tP0 |

[0154] SAD_L1 = ∑| tC – tP1 |

[0155] In Equation 4, SAD_L0 and SAD_L1 represent SAD in the L0 direction and SAD in the L1 direction, respectively. tP0 represents the sample value of the template area in the L0 direction, and tP1 represents the sample value of the template area in the L1 direction. tC represents the sample value of the template area of ​​the current block.

[0156] Alternatively, the interpolation filter for the L1 direction may be determined based on the interpolation filter for the L0 direction predetermined by the above method. As an example, as in the following equation 5, the modified sample value (tmp) of the template area of ​​the current block may be calculated based on the sample value (tC) of the template area of ​​the current block and the sample value (tP0) of the template area in the L0 direction. Here, tP0 may be generated based on the predetermined interpolation filter for the L0 direction. The SAD (SAD_L1) in the L1 direction may be calculated based on the difference between the modified sample value (tmp) and the sample value (tP1) of the template area in the L1 direction. The sample value (tP1) of the template area in the L1 direction may be calculated for each interpolation filter candidate belonging to the candidate list. Similarly, the SAD (SAD_L1) in the L1 direction is also calculated for each interpolation filter candidate belonging to the candidate list, and among them, the interpolation filter candidate with the minimum value of SAD_L1 may be set as the interpolation filter in the L1 direction of the current block.

[0157] [Equation 5]

[0158] tmp = (2tC – tP0)

[0159] SAD_L1 = ∑| tmp – tP1 |

[0160] Alternatively, for the L0 direction, costs corresponding to the interpolation filter candidates belonging to the candidate list may be calculated respectively, and among them, the interpolation filter candidate with the smallest cost may be set as the interpolation filter in the L0 direction of the current block. At the same time, the interpolation filter candidates in the candidate list may be reordered in ascending order of the costs calculated for the L0 direction. For the L1 direction, costs corresponding to the first N interpolation filter candidates in the reordered candidate list may be calculated, and costs may not be calculated for the remaining interpolation filter candidates. The interpolation filter candidate with the smallest cost among the costs corresponding to the first N interpolation filter candidates may be set as the interpolation filter in the L1 direction of the current block.

[0161] Method for determining candidate list and index information based on re-ranking

[0162] As described above, for each of the L0 and L1 directions, costs corresponding to all or some of the interpolation filter candidates belonging to the candidate list may be calculated, respectively.

[0163] The interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the cost calculated for the L0 direction. Likewise, the interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the cost calculated for the L1 direction.

[0164] The interpolation filter of the current block may be determined based on the reordered candidate list and index information. The index information is encoded based on the reordered candidate list and may be signaled through a bitstream. The index information may indicate any one of the interpolation filter candidates in the reordered candidate list.

[0165] As an example, the index information may be signaled for the L0 direction and the L1 direction, respectively. In other words, the interpolation filter in the L0 direction may be determined based on the reordered candidate list for the L0 direction and the index information in the L0 direction. Here, the index information in the L0 direction is encoded based on the index of the reordered candidate list for the L0 direction, and may indicate any one of the interpolation filter candidates in the reordered candidate list for the L0 direction. Similarly, the interpolation filter in the L1 direction may be determined based on the reordered candidate list for the L1 direction and the index information in the L1 direction. Here, the index information in the L1 direction is encoded based on the index of the reordered candidate list for the L1 direction, and may indicate any one of the interpolation filter candidates in the reordered candidate list for the L1 direction.

[0166] Alternatively, the index information may indicate any one of the index sets predefined in the decoding device. Each index set may be configured with an index indicating an interpolation filter in the L0 direction and an index indicating an interpolation filter in the L1 direction. Here, the index information may be encoded based on the index of the reordered candidate list. When the candidate list is configured with three interpolation filter candidates, the index set may be defined as shown in Table 2 below.

[0167] [Table 2]

[0168]

[0169] Referring to Table 2, Idx may refer to index information, and CandIdx_L0 and CandIdx_L1 may refer to an index indicating an interpolation filter in the L0 direction and an index indicating an interpolation filter in the L1 direction, respectively. When the candidate list is configured with three interpolation filter candidates, up to nine index sets may be defined. Any one of the nine index sets may be indicated based on the index information, and an interpolation filter may be determined for each of the L0 and L1 directions of the current block based on the candidate list reordered for each of the L0 and L1 directions and the indicated index set.

[0170] For example, when the value of the index information sent by the signal is 1, the index set (0, 1) may be selected. At this time, the interpolation filter candidate with index 0 in the reordered candidate list for the L0 direction may be set as the interpolation filter in the L0 direction of the current block, and the interpolation filter candidate with index 1 in the reordered candidate list for the L1 direction may be set as the interpolation filter in the L1 direction of the current block.

[0171] Determination method based on index information

[0172] Index information may be signaled for each of the L0 direction and the L1 direction of the current block. The index information in this embodiment may be encoded based on an index of a candidate list predefined equally for the encoding device and the decoding device instead of the reordered candidate list. In this case, for each of the L0 direction and the L1 direction, a process of calculating a cost corresponding to an interpolation filter candidate belonging to the candidate list and a process of reordering the interpolation filter candidates of the candidate list based on the calculated cost may be omitted.

[0173] Specifically, the interpolation filter in the L0 direction may be determined based on the predefined candidate list and the index information in the L0 direction. Here, the index information in the L0 direction may indicate any one of the interpolation filter candidates in the predefined candidate list. As an example, the interpolation filter candidate having an index having the same value as the index information in the L0 direction may be set as the interpolation filter in the L0 direction of the current block.

[0174] Likewise, the interpolation filter in the L1 direction may be determined based on the predefined candidate list and the index information in the L1 direction. Here, the index information in the L1 direction may indicate another one of the interpolation filter candidates in the predefined candidate list. As an example, an interpolation filter candidate having an index having the same value as the index information in the L1 direction may be set as the interpolation filter in the L1 direction of the current block. However, when the value of the index information in the L1 direction is greater than or equal to the value of the index information in the L0 direction, the interpolation filter candidate corresponding to the value obtained by adding 1 to the value of the index information in the L1 direction may be set as the interpolation filter in the L1 direction of the current block.

[0175] The interpolation filter of the current block can be adaptively determined based on the candidate list, which is referred to as the adaptive interpolation filter technology below. The adaptive interpolation filter technology can be adaptively used based on a predetermined variable (UseAdaptiveFilter). Here, UseAdaptiveFilter can indicate whether the adaptive interpolation filter technology is used for the current block. As an example, when UseAdaptiveFilter is 1, the adaptive interpolation filter technology can be used for the current block. In this case, the interpolation filter of the current block can be determined based on the candidate list by the above method. On the other hand, when UseAdaptiveFilter is 0, the adaptive interpolation filter technology may not be used for the current block. In this case, the interpolation filter of the current block can be determined as a default interpolation filter predefined equally for the encoding device and the decoding device. The default interpolation filter may be any one of the interpolation filter candidates belonging to the candidate list. As an example, the default interpolation filter may be the same as the interpolation filter candidate with index 0 in the candidate list. Alternatively, the default interpolation filter may be defined separately from the candidate list, and it may not belong to the interpolation filter candidate of the candidate list.

[0176] UseAdaptiveFilter can be derived based on flag information (adaptive_filter_flag) signaled in units of coding units (CUs). For example, when the value of adaptive_filter_flag is 1, UseAdaptiveFilter can be derived as 1, and when the value of adaptive_filter_flag is 0, UseAdaptiveFilter can be derived as 0.

[0177] When a predetermined condition is satisfied, adaptive_filter_flag may be signaled through a bitstream. The predetermined condition may include at least one of conditions 1 to 4 described later. There may be a limitation that adaptive_filter_flag is signaled when all predetermined conditions are satisfied, or adaptive_filter_flag is signaled when any one of the predetermined conditions is satisfied.

[0178] Adaptive_filter_flag may be signaled based on whether the adaptive interpolation filter technique is allowed (condition 1). Whether the adaptive interpolation filter technique is allowed may be determined based on a flag signaled in units of at least one of a video sequence, a picture, a sub-picture, a slice, or a coding tree unit. When the adaptive interpolation filter technique is allowed according to the flag, adaptive_filter_flag may be signaled, and otherwise, adaptive_filter_flag may not be signaled.

[0179] As an example, adaptive_filter_flag may be signaled according to Table 3 below.

[0180] [Table 3]

[0181]

[0182] Referring to Table 3, sps_adaptive_filter_enabled_flag may indicate whether adaptive interpolation filter technology is allowed for a video sequence. Alternatively, sps_adaptive_filter_enabled_flag may also indicate whether adaptive_if_flag is present in the coding unit syntax. According to Table 3, when sps_adaptive_filter_enabled_flag is 1, adaptive_if_flag may be signaled, and when sps_adaptive_filter_enabled_flag is 0, adaptive_if_flag may not be signaled. When adaptive_if_flag is not signaled, adaptive_if_flag may be derived as 0.

[0183] The adaptive_filter_flag may be signaled based on whether a predetermined quantization parameter is greater than a threshold value (condition 2). The quantization parameter may refer to a quantization parameter (SliceQpY) of a slice to which the current block belongs. Alternatively, the quantization parameter may refer to a quantization parameter of a current block as a coding unit, or a quantization parameter of a block decoded before the current block. The threshold value may be a value predefined equally for an encoding device and a decoding device. When the quantization parameter is less than or equal to the threshold value, the adaptive_if_flag may be signaled, and when the quantization parameter is greater than the threshold value, the adaptive_if_flag may not be signaled. When the adaptive_if_flag is not signaled, the adaptive_if_flag may be derived as 0.

[0184] As an example, adaptive_filter_flag may be signaled according to Table 4 below.

[0185] [Table 4]

[0186]

[0187] Referring to Table 4, adaptive_if_flag may be signaled based on the quantization parameter (SliceQpY) of the slice to which the current block belongs. In other words, when SliceQpY is less than or equal to 33, adaptive_if_flag may be signaled, and when SliceQpY is greater than 33, adaptive_if_flag may not be signaled. The threshold value 33 in Table 4 is merely an example, and a threshold value of 28, 38, or 43 may be used.

[0188] The adaptive_filter_flag may be signaled based on whether the size of the current block is less than a threshold size (condition 3). Here, the size of the current block may be expressed as at least one of the width, height, sum of width and height, product of width and height, minimum / maximum of width and height, or ratio of width and height of the current block. The threshold size may be a size predefined equally for the encoding device and the decoding device. The threshold size may be an integer of 16, 32, 64, 128, 256 or more. When the size of the current block is greater than or equal to the threshold size, the adaptive_filter_flag may be signaled, and when the size of the current block is less than the threshold size, the adaptive_filter_flag may not be signaled. When the adaptive_filter_flag is not signaled, the adaptive_filter_flag may be derived as 0.

[0189] As an example, adaptive_filter_flag may be signaled according to Table 5 below.

[0190] [Table 5]

[0191]

[0192] Referring to Table 5, cbWidth and cbHeight may represent the width and height of the current block, respectively. When the product of the width and height of the current block is greater than or equal to the threshold size of 256, adaptive_filter_flag may be signaled, and when the product of the width and height of the current block is less than the threshold size of 256, adaptive_filter_flag may not be signaled. Alternatively, when the width and height of the current block are greater than or equal to the threshold size of 16, adaptive_filter_flag may be signaled, and when either of the width and height of the current block is less than the threshold size of 16, adaptive_filter_flag may not be signaled.

[0193] The adaptive_filter_flag may be signaled based on whether the inter prediction mode of the current block is a preset mode (condition 4). Here, the preset mode may be at least one of a merge mode, an AMVP mode, an affine merge mode, an affine AMVP mode, or a sub-block based merge mode. When the inter prediction mode of the current block corresponds to the preset mode, the adaptive_filter_flag may be signaled, and otherwise, the adaptive_filter_flag may not be signaled. When the adaptive_filter_flag is not signaled, the adaptive_filter_flag may be derived as 0.

[0194] As an example, adaptive_filter_flag may be signaled according to Table 6 below.

[0195] [Table 6]

[0196]

[0197] In Table 6, inter_affine_flag may indicate whether the inter prediction mode of the current block is the affine AMVP mode (i.e., whether motion compensation based on an affine model is used for the current block). As an example, when inter_affine_flag is 0, it may indicate that the inter prediction mode of the current block is not the affine AMVP mode. In this case, the inter prediction mode of the current block may be a merge mode, an AMVP mode, an affine merge mode, or a sub-block-based merge mode. On the other hand, when inter_affine_flag is 1, it may indicate that the inter prediction mode of the current block is the affine AMVP mode. Referring to Table 6, when inter_affine_flag is 0, adaptive_filter_flag may be signaled, and when inter_affine_flag is 1, adaptive_filter_flag may not be signaled.

[0198] In the case where adaptive_filter_flag is not signaled, UseAdaptiveFilter is implicitly derived based on whether a predetermined condition is satisfied. Here, the predetermined condition may include at least one of the above conditions 1 to 4. As an example, when all predetermined conditions are satisfied, UseAdaptiveFilter may be derived as 1, and when any one of the predetermined conditions is not satisfied, it may be derived as 0. Alternatively, when any one of the predetermined conditions is satisfied, UseAdaptiveFilter may be derived as 1, and when all predetermined conditions are not satisfied, it may be derived as 0.

[0199] Alternatively, it may be determined whether to use the adaptive interpolation filter technique in units of pictures and / or slices. To this end, at least one of pic_adaptive_if_flag in units of pictures or slice_adaptive_if_flag in units of slices may be signaled. Here, pic_adaptive_if_flag may indicate whether the adaptive interpolation filter technique is used for the picture to which the current block belongs, and slice_adaptive_if_flag may indicate whether the adaptive interpolation filter technique is used for the slice to which the current block belongs.

[0200] As an example, when pic_adaptive_if_flag is 1, it may indicate that the adaptive interpolation filter technology is used for all coding blocks belonging to the picture, and when pic_adaptive_if_flag is 0, it may indicate that the adaptive interpolation filter technology is not used for at least one coding block belonging to the picture. Alternatively, when pic_adaptive_if_flag is 1, it may indicate that the adaptive interpolation filter technology is used for at least one coding block belonging to the picture, and when pic_adaptive_if_flag is 0, it may indicate that the adaptive interpolation filter technology is not used for all coding blocks belonging to the picture.

[0201] As an example, when slice_adaptive_if_flag is 1, it may indicate that the adaptive interpolation filter technology is used for all coding blocks belonging to the slice, and when slice_adaptive_if_flag is 0, it may indicate that the adaptive interpolation filter technology is not used for at least one coding block belonging to the slice. Alternatively, when slice_adaptive_if_flag is 1, it may indicate that the adaptive interpolation filter technology is used for at least one coding block belonging to the slice, and when slice_adaptive_if_flag is 0, it may indicate that the adaptive interpolation filter technology is not used for all coding blocks belonging to the slice.

[0202] When the adaptive interpolation filter technique is enabled for a video sequence according to the sps_adaptive_filter_enabled_flag described in Table 3, pic_adaptive_if_flag and / or slice_adaptive_if_flag may be signaled.

[0203] Even when pic_adaptive_if_flag or slice_adaptive_if_flag indicates the use of adaptive interpolation filter technology, it is possible to determine whether the adaptive interpolation filter technology is used for each coding block. Here, it is possible to determine whether the adaptive interpolation filter technology is used based on the above-mentioned UseAdaptiveFilter. The UseAdaptiveFilter as described above can be derived based on the adaptive_filter_flag explicitly signaled, or can be derived implicitly based on whether a predetermined condition is met. The conditions here may include at least one of the above-mentioned conditions 2 to 4.

[0204] For existing video codecs, adaptive motion vector resolution (AMVR) is applied and a separate interpolation filter is used in response to a situation where the phase is half-pel, but the adaptive interpolation filter technology according to the present disclosure can be applied regardless of whether adaptive motion vector resolution is used and / or whether the phase is half-pel.

[0205] The above-mentioned candidate list can be any one selected from a plurality of candidate lists predefined equally for the encoding device and the decoding device. The number of predefined candidate lists in the decoding device is L, and each candidate list may include M interpolation filter candidates. Here, L may be an integer of 2, 3, 4 or more, and M may be an integer of 1, 2, 3, 4 or more. The predefined candidate lists may include the same number of interpolation filter candidates. Alternatively, the number of interpolation filter candidates belonging to any one of the predefined candidate lists may be different from the number of interpolation filter candidates belonging to another of the predefined candidate lists.

[0206] As an example, the predefined candidate list may include three candidate lists, i.e., a first candidate list, a second candidate list, and a third candidate list. Here, the first candidate list may include at least one of an 8-tap Gaussian interpolation filter, a 12-tap Gaussian interpolation filter, an 8-tap sharpening interpolation filter, or a 12-tap sharpening interpolation filter. The second candidate list may include at least one of an 8-tap DCT-IF, a 12-tap DCT-IF, an 8-tap sharpening interpolation filter, or a 12-tap sharpening interpolation filter. The third candidate list may include at least one of an 8-tap DCT-IF, a 12-tap DCT-IF, an 8-tap Gaussian interpolation filter, or a 12-tap Gaussian interpolation filter. However, this is only an example and is not limited thereto. In other words, at least one of the interpolation filter candidates in the first candidate list may have a filter length of 4 taps, 6 taps, 10 taps, 14 taps, or 16 taps. At least one of the interpolation filter candidates in the second candidate list may have a filter length of 4 taps, 6 taps, 10 taps, 14 taps, or 16 taps. At least one of the interpolation filter candidates in the third candidate list may have a filter length of 4 taps, 6 taps, 10 taps, 14 taps, or 16 taps. Alternatively, one candidate list may include interpolation filter candidates having the same filter length, and may not include interpolation filter candidates having different filter lengths. One candidate list may include interpolation filter candidates having the same filter type, and may not include interpolation filter candidates having different filter types.

[0207] Table 7 below shows a case where the number of predefined candidate lists is 3 and the candidate list includes 4 interpolation filter candidates. According to Table 7, each candidate list may include heterogeneous filter types, and may include interpolation filter candidates of the same filter type having different filter lengths.

[0208] [Table 7]

[0209]

[0210] It is possible to transmit index information specifying any one of a plurality of predefined candidate lists based on a flag indicating whether an adaptive interpolation filter technique is used in units of a picture and / or a slice. As an example, when an adaptive interpolation filter technique is used for a corresponding picture according to pic_adaptive_if_flag, index information may be additionally transmitted by a signal. Alternatively, when an adaptive interpolation filter technique is used for a corresponding slice according to slice_adaptive_if_flag, index information may be additionally transmitted by a signal. One candidate list specified based on the index information may be shared by coding blocks belonging to the corresponding picture or slice.

[0211] An index information that integrates a flag indicating whether to use the adaptive interpolation filter technology and the index information can be sent by a signal. As an example, when the value of the index information is 0, a candidate list configured with a default interpolation filter (hereinafter referred to as the default candidate list) can be selected. The default candidate list can be any one of the above-mentioned multiple predefined candidate lists. The default candidate list is defined separately from the multiple predefined candidate lists and may not belong to the multiple predefined candidate lists. On the other hand, when the value of the index information is greater than 0, a candidate list corresponding to the index information can be selected from multiple predefined candidate lists.

[0212] Based on whether the picture and / or slice is a P slice, whether the picture and / or slice is a B slice, or at least one of the distance between the current picture and the reference picture, any one of multiple predefined candidate lists can be implicitly determined. As an example, when the distance between the current picture and the reference picture is greater than a threshold distance predefined equally for the encoding device and the decoding device, the third candidate list can be selected, and otherwise, the second candidate list can be selected. Here, the distance between the current picture and the reference picture can be defined as the POC difference (diffPOC) between the current picture and the reference picture. The diffPOC can be defined as at least one of the first POC difference between the current picture and the reference picture in the L0 direction, the second POC difference between the current picture and the reference picture in the L1 direction, the minimum value of the first POC difference and the second POC difference, or the maximum value of the first POC difference and the second POC difference. The threshold distance can be an integer of 2, 3, 4 or more.

[0213] Based on the quantization parameter of the picture and / or slice, any one of the multiple predefined candidate lists may be implicitly determined. As an example, when the quantization parameter (sliceQP) of the slice to which the current block belongs is less than a predetermined threshold, the first candidate list may be selected, and otherwise, the second candidate list may be selected.

[0214] Any one of a plurality of predefined candidate lists may be selectively used in units of coding units. To this end, index information specifying any one of a plurality of predefined candidate lists may be signaled in units of coding units. Here, a coding unit may refer to a coding unit that is no longer divided into smaller coding units (i.e., a current block), a coding tree unit to which the current block belongs, or a coding unit of a predetermined size having shared index information.

[0215] Considering at least one of the inter prediction mode of the current block or the size of the current block, any one of a plurality of predefined candidate lists may be selected. For the affine mode, since motion compensation based on an affine model is performed in units of small blocks such as 4x4 blocks, an interpolation filter with a relatively short filter length may be used. On the other hand, for general inter modes such as merge mode and AMVP mode, since translation motion compensation is performed, an interpolation filter with a relatively long filter length may be used. In addition, for the general inter mode, interpolation filters with different filter lengths and / or filter types may be used according to the size of the current block.

[0216] As an example, when the inter prediction mode of the current block is an affine mode, the candidate list for the current block may include at least one of a 6-tap DCT-IF, an 8-tap DCT-IF, a 6-tap Gaussian interpolation filter, or an 8-tap Gaussian interpolation filter. However, this is only an example, and at least one of the interpolation filter candidates in the candidate list may have a 4-tap filter length. When the inter prediction mode of the current block is a general inter mode, the candidate list for the current block may include at least one of an 8-tap DCT-IF, a 12-tap DCT-IF, an 8-tap sharpening interpolation filter, or a 12-tap sharpening interpolation filter. However, this is only an example, and at least one of the interpolation filter candidates in the candidate list may have a filter length of 6 taps or 10 taps. Alternatively, when the inter prediction mode of the current block is a general inter mode, the candidate list for the current block may include at least one of a 12-tap DCT-IF, a 12-tap Gaussian interpolation filter, or a 12-tap sharpening interpolation filter. However, this is merely an example, and at least one of the interpolation filter candidates in the candidate list may have a filter length of 10 taps, 14 taps, or 16 taps.

[0217] Meanwhile, when the size of the current block is less than or equal to a predetermined threshold size, the candidate list for the current block may include at least one of an 8-tap DCT-IF, a 12-tap DCT-IF, an 8-tap sharpening interpolation filter, or a 12-tap sharpening interpolation filter. However, this is only an example, and at least one of the interpolation filter candidates in the candidate list may have a filter length of 6 taps or 10 taps. On the other hand, when the size of the current block is greater than the threshold size, the candidate list for the current block may include at least one of a 12-tap DCT-IF, a 12-tap Gaussian interpolation filter, or a 12-tap sharpening interpolation filter. However, this is only an example, and at least one of the interpolation filter candidates in the candidate list may have a filter length of 10 taps, 14 taps, or 16 taps. The size of the current block may be expressed by at least one of the width, height, sum of width and height, product of width and height, minimum / maximum value of width and height, or ratio of width and height of the current block. The threshold size may be 16, 32, 64, 128, 256, 512, or a larger integer.

[0218] Alternatively, one candidate list may include interpolation filter candidates having the same filter length, and may not include interpolation filter candidates having different filter lengths.One candidate list may include interpolation filter candidates having the same filter type, and may not include interpolation filter candidates having different filter types.

[0219] The following Table 8 shows a candidate list according to the inter prediction mode and size of the current block. This is just an example, and the conditions on the block size, filter type, filter length, and the number of interpolation filter candidates may be changed.

[0220] [Table 8]

[0221]

[0222] Through the above-mentioned embodiments, the interpolation filter of the luminance component of the current block can be determined, and the interpolation filter of the chrominance component of the current block can be determined based on the interpolation filter predetermined for the luminance component. As an example, the interpolation filter of the chrominance component can have the same filter type as the interpolation filter of the luminance component. The filter length of the interpolation filter of the chrominance component can be half the filter length of the interpolation filter of the luminance component. Alternatively, through the above-mentioned embodiments, the interpolation filter of the chrominance component can be determined independently of the interpolation filter of the luminance component.

[0223] As described above, when determining the interpolation filter of the current block, at least one of the index information specifying any one of the multiple interpolation filter candidates belonging to a candidate list (hereinafter referred to as the first index information) or the index information specifying any one of the multiple predefined candidate lists (hereinafter referred to as the second index information) may be used. This index information may be stored in the current block so that it can be propagated to blocks decoded after the current block. As an example, the first index information may be stored in the current block to propagate to the next block, and the second index information may not be stored in the current block. Alternatively, the first index information may not be stored in the current block, and the second index information may be stored in the current block to propagate to the next block. Alternatively, both the first and second index information may be stored in the current block to propagate to the next block.

[0224] When determining the interpolation filter of the current block based on the reordered candidate list, the first index information may be encoded based on the index of the reordered candidate list. It may be different from the index assigned to the corresponding interpolation filter candidate in the non-reordered candidate list. Here, the corresponding interpolation filter candidate may refer to an interpolation filter candidate having the same index as the first index information in the reordered candidate list. When the first index information encoded based on the index of the reordered candidate list is stored as is and propagated to the next block, the next block may use a filter other than the interpolation filter used in the corresponding block storing the first index information. Therefore, separately from the first index information, the index assigned to the corresponding interpolation filter candidate in the non-reordered candidate list may be stored for propagation to the next block.

[0225] As described above, the interpolation filter can be determined in units of pictures and / or slices, and in this case, the interpolation filter for the current picture / slice can be determined by considering the interpolation filters of pictures / slices decoded before the current picture / slice.

[0226] As an example, interpolation filters can be propagated in units of pictures and / or slices. The interpolation filter of the currently decoded picture / slice can be determined by considering the interpolation filter most frequently used in the previously decoded picture / slice. When any one of multiple candidate lists is selected in units of pictures and / or slices, multiple candidate lists for the current picture / slice can be reconfigured by including the candidate list selected in the previous picture / slice. When any one of multiple interpolation filter candidates is selected in units of pictures and / or slices, the candidate list of the current picture / slice can be reconfigured by including the interpolation filter candidate selected in the previous picture / slice. When any one of multiple candidate lists is selected in units of coding units, multiple candidate lists for the current block can be reconfigured by including the candidate list selected in the previous picture / slice. When any one of multiple interpolation filter candidates belonging to a candidate list is selected in units of coding units, the candidate list for the current block can be reconfigured by including the interpolation filter candidate selected in the previous picture / slice.

[0227] refer to Figure 4 , based on the interpolation filter of the current block, a prediction sample of the current block may be generated ( S410 ).

[0228] Specifically, the interpolation filter of the current block may be applied to the reconstructed samples in the reference picture of the current block to generate samples of the reference block of the current block. The generated samples of the reference block may be used as the prediction samples of the current block.

[0229] When the current block is encoded by bidirectional prediction, the interpolation filter of the current block may be equally applied to the reference picture in the L0 direction and the reference picture in the L1 direction of the current block. Alternatively, the interpolation filter of the current block may be determined for the L0 direction and the L1 direction, respectively, and in this case, the interpolation filter in the L0 direction may be applied to the reference picture in the L0 direction, and the interpolation filter in the L1 direction may be applied to the reference picture in the L1 direction.

[0230] The interpolation filter of the current block may be applied to the reference pictures in the L0 and L1 directions to generate reference blocks in the L0 and L1 directions, respectively, and the prediction sample of the current block may be generated based on the weighted sum between the samples of the reference block in the L1 direction and the samples of the reference block in the L1 direction.

[0231] Figure 5 A schematic configuration of the inter-frame predictor 332 performing the inter-frame prediction method according to the present disclosure is shown.

[0232] refer to Figure 5 , the inter-frame predictor 332 may include an interpolation filter determiner 500 and a prediction sample generator 510 .

[0233] The interpolation filter determiner 500 may determine an interpolation filter of a current block. The interpolation filter of the current block may be derived from a candidate list including a plurality of interpolation filter candidates predefined in a decoding apparatus. Figure 4 Same as described.

[0234] The interpolation filter determiner 500 may be based on a reference Figure 4 Any one of the cost-based determination method, the reordered candidate list and index information-based determination method, or the index information-based determination method is used to determine the interpolation filter of the current block.

[0235] Alternatively, the interpolation filter determiner 500 may selectively use any one of a plurality of determination methods predefined in the decoding apparatus to determine the interpolation filter of the current block. Here, the plurality of predefined determination methods may include at least one of the above-mentioned cost-based determination method, the determination method based on the reordered candidate list and index information, or the determination method based on index information. For selective use, information specifying any one of the plurality of determination methods may be explicitly signaled, or the information may be implicitly derived based on the parameters of the current block.

[0236] The interpolation filter determined by the above method may be equally applied to generate a reference block in the L0 direction and a reference block in the L1 direction of the current block. Figure 4 Each reference picture list described in detail determines an interpolation filter, and the detailed description will be omitted here.

[0237] In the interpolation filter determiner 500, the adaptive interpolation filter technology may be adaptively used based on a predetermined variable (UseAdaptiveFilter). UseAdaptiveFilter is a variable indicating whether the adaptive interpolation filter technology is used for the current block, and when UseAdaptiveFilter is 1, the adaptive interpolation filter technology may be used for the current block, and when UseAdaptiveFilter is 0, the adaptive interpolation filter technology may not be used for the current block. The method for deriving UseAdaptiveFilter is the same as Figure 4 Same as described in .

[0238] The interpolation filter determiner 500 may select any one of a plurality of candidate lists predefined equally for the encoding apparatus and the decoding apparatus. A method for configuring a plurality of predefined candidate lists and a method for selecting any one of the candidate lists are similar to Figure 4 Same as described in .

[0239] The interpolation filter determiner 500 may determine the interpolation filter for the luminance component of the current block according to the above-described embodiment, and may determine the interpolation filter for the chrominance component based on the interpolation filter for the luminance component. Alternatively, the interpolation filter determiner 500 may independently determine the interpolation filter for the luminance component and the interpolation filter for the chrominance component according to the above-described embodiment.

[0240] The interpolation filter determiner 500 may consider at least one of the candidate list or interpolation filter candidates used in a previous picture / slice when determining an interpolation filter for a current block or a current picture / slice.

[0241] The prediction sample generator 510 may generate a prediction sample of the current block based on the interpolation filter of the current block. In this case, the interpolation filter of the current block may be equally applied to the reference picture in the L0 direction and the reference picture in the L1 direction of the current block. Alternatively, when the interpolation filter of the current block is determined for the L0 direction and the L1 direction respectively, the prediction sample generator 510 may apply the interpolation filter in the L0 direction to the reference picture in the L0 direction, and apply the interpolation filter in the L1 direction to the reference picture in the L1 direction.

[0242] Figure 6 An inter-frame prediction method performed by the encoding device 200 according to an embodiment of the present disclosure is shown.

[0243] refer to Figure 6 , the interpolation filter of the current block can be determined S600.

[0244] The interpolation filter of the current block can be determined from a candidate list including a plurality of interpolation filter candidates predefined in the encoding device. Figure 4 The descriptions are the same and repeated descriptions will be omitted here.

[0245] Hereinafter, a method for determining an interpolation filter of a current block based on a candidate list will be described in detail.

[0246] Cost-based determination method

[0247] As far as the encoding device is concerned, a cost may be calculated for each interpolation filter candidate belonging to the candidate list. Among the costs calculated based on the interpolation filter candidates, one interpolation filter candidate with the minimum cost may be selected. The selected interpolation filter candidate may be set as the interpolation filter of the current block. This is similar to the reference Figure 4 The descriptions are the same and repeated descriptions will be omitted here.

[0248] Determination method based on re-ordered candidate list and index information encoding

[0249] In the case of an encoding device, a cost may be calculated for each interpolation filter candidate belonging to a candidate list. The interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the calculated cost. The best interpolation filter candidate may be determined in the reordered candidate list, and index information indicating the corresponding interpolation filter candidate may be encoded and inserted into a bitstream. Here, the index information may be encoded based on an index of the reordered candidate list.

[0250] As an example, it is assumed that the candidate list includes three interpolation filter candidates, ie, first to third interpolation filter candidates, and indexes 0 to 2 are respectively assigned to the first to third interpolation filter candidates.

[0251] Costs of cost0 to cost2 may be calculated for the first to third interpolation filter candidates, respectively. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, and cost0. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, and the first interpolation filter candidate. In other words, the second interpolation filter candidate may be assigned an index of 0, the third interpolation filter candidate may be assigned an index of 1, and the first interpolation filter candidate may be assigned an index of 2.

[0252] When the third interpolation filter candidate assigned index 1 in the reordered candidate list is determined to be the optimal interpolation filter candidate, the interpolation filter of the current block may be set to the third interpolation filter candidate, and index information having a value of 1 may be encoded.

[0253] Alternatively, it is assumed that the candidate list includes five interpolation filter candidates, ie, first to fifth interpolation filter candidates, and indexes 0 to 4 are respectively assigned to the first to fifth interpolation filter candidates.

[0254] Costs of cost0 to cost4 may be calculated for the first to fifth interpolation filter candidates, respectively. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, cost0, cost3, and cost4. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, the first interpolation filter candidate, the fourth interpolation filter candidate, and the fifth interpolation filter candidate. In other words, index 0 may be assigned to the second interpolation filter candidate, index 1 may be assigned to the third interpolation filter candidate, index 2 may be assigned to the first interpolation filter candidate, index 3 may be assigned to the fourth interpolation filter candidate, and index 4 may be assigned to the fifth interpolation filter candidate.

[0255] Any one of the first N interpolation filter candidates belonging to the reordered candidate list may be set as the interpolation filter of the current block. Index information may be encoded for the first N interpolation filter candidates belonging to the reordered candidate list. When N is 3, the value of the index information is an integer in the range of 0 to 2, and may indicate any one of the first three interpolation filter candidates belonging to the reordered candidate list.

[0256] Alternatively, each cost may be calculated for the first N interpolation filter candidates among the five interpolation filter candidates belonging to the candidate list, and no cost may be calculated for the remaining interpolation filter candidates. Hereinafter, for ease of description, it is assumed that N is 3, but the present disclosure is not limited thereto, and N may be 2 or 4.

[0257] Costs of cost0 to cost2 may be calculated for the first three interpolation filter candidates, i.e., the first to third interpolation filter candidates. In this case, it is assumed that when the calculated costs are sorted in ascending order, they are sorted in the order of cost1, cost2, and cost0. In this case, if the interpolation filter candidates are reordered in ascending order of cost, the candidate list may be reordered in the order of the second interpolation filter candidate, the third interpolation filter candidate, the first interpolation filter candidate, the fourth interpolation filter candidate, and the fifth interpolation filter candidate.

[0258] Any one of the first N interpolation filter candidates whose costs are calculated may be set as the interpolation filter of the current block. Index information may be encoded for the first N interpolation filter candidates whose costs are calculated. When N is 3, the value of the index information is an integer in the range of 0 to 2, and may indicate any one of the first three interpolation filter candidates belonging to the reordered candidate list.

[0259] Determination method based on index information encoding

[0260] The index information in this embodiment can be encoded based on the index of the candidate list predefined equally for the encoding device and the decoding device instead of the reordered candidate list. In this case, the process of calculating the cost for each interpolation filter candidate belonging to the candidate list and the process of reordering the interpolation filter candidates of the candidate list based on the calculated cost can be omitted. In other words, any one of the multiple interpolation filter candidates belonging to the candidate list can be set as the interpolation filter of the current block, and the index information indicating any one of the multiple interpolation filter candidates can be encoded and inserted into the bitstream.

[0261] The interpolation filter of the current block can be determined by selectively using any one of a plurality of determination methods predefined in the encoding device. The plurality of predefined determination methods may include at least one of the above-mentioned cost-based determination method, a determination method based on a reordered candidate list and index information encoding, or a determination method based on index information encoding. Information specifying any one selected from the plurality of determination methods may be encoded and inserted into the bitstream. Alternatively, any one of the plurality of determination methods may be implicitly determined based on a parameter of the current block. The parameter may include at least one of a position, a size, a shape, a partition type, a component type, an inter-frame prediction mode type, or whether the block is encoded by bidirectional prediction.

[0262] The interpolation filter determined by the above method can be equally applied to generate a reference block in the L0 direction and a reference block in the L1 direction of the current block. Alternatively, as described later, each interpolation filter can be determined for each reference picture list, and even in this case, the above method can be applied in the same / similar manner, and repeated description is omitted.

[0263] Cost-based determination method

[0264] For each of the L0 and L1 directions, the cost corresponding to the interpolation filter candidate belonging to the candidate list can be calculated respectively. Based on the calculated cost, the interpolation filter can be determined for each of the L0 and L1 directions. This is similar to the reference Figure 4 The descriptions are the same and repeated descriptions will be omitted here.

[0265] Determination method based on re-ordered candidate list and index information encoding

[0266] For each of the L0 and L1 directions, the cost corresponding to all or part of the interpolation filter candidates belonging to the candidate list may be calculated respectively. The interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the cost calculated for the L0 direction. Similarly, the interpolation filter candidates belonging to the candidate list may be reordered in ascending order of the cost calculated for the L1 direction.

[0267] The interpolation filter of the current block may be determined as any one of the interpolation filter candidates belonging to the reordered candidate list. Index information indicating any one of the interpolation filter candidates belonging to the reordered candidate list may be encoded and inserted into the bitstream. The index information may be encoded based on an index of the reordered candidate list.

[0268] As an example, index information may be encoded for the L0 direction and the L1 direction, respectively. Index information in the L0 direction may be encoded based on the index of the reordered candidate list for the L0 direction, and may indicate any one of the interpolation filter candidates of the reordered candidate list for the L0 direction. Index information in the L1 direction may be encoded based on the index of the reordered candidate list for the L1 direction, and may indicate any one of the interpolation filter candidates of the reordered candidate list for the L1 direction.

[0269] Alternatively, the index information may indicate any one of the index sets predefined in the encoding device. Each index set may be configured with an index indicating an interpolation filter in the L0 direction and an index indicating an interpolation filter in the L1 direction. Here, the index information may be encoded based on the index of the reordered candidate list. As an example, referring to Table 2, when an interpolation filter candidate with an index of 0 in the reordered candidate list for the L0 direction is determined as the interpolation filter in the L0 direction of the current block and an interpolation filter candidate with an index of 1 in the reordered candidate list for the L1 direction is determined as the interpolation filter in the L1 direction of the current block, index information having a value of 1 indicating that the index set is (0,1) may be encoded.

[0270] Determination method based on index information encoding

[0271] The index information may be encoded for each of the L0 direction and the L1 direction of the current block. The index information in this embodiment may be encoded based on an index of a candidate list predefined equally for the encoding device and the decoding device, rather than based on the reordered candidate list. In this case, for each of the L0 and L1 directions, the process of calculating the cost corresponding to the interpolation filter candidate belonging to the candidate list and the process of reordering the interpolation filter candidates of the candidate list based on the calculated cost may be omitted.

[0272] Specifically, the interpolation filter in the L0 direction may be determined as any one of the interpolation filter candidates in the predefined candidate list, and the index information in the L0 direction indicating any one of the interpolation filter candidates may be encoded. Similarly, the interpolation filter in the L1 direction may be determined as another one of the interpolation filter candidates in the predefined candidate list, and the index information in the L1 direction indicating another one of the interpolation filter candidates may be encoded. However, when the value of the index information in the encoded L1 direction is greater than the value of the index information in the L0 direction, the value obtained by subtracting 1 from the value of the index information in the encoded L1 direction may be encoded.

[0273] The interpolation filter of the current block can be adaptively determined based on the candidate list, which is referred to as the adaptive interpolation filter technology below. The adaptive interpolation filter technology can be adaptively used based on a predetermined variable (UseAdaptiveFilter). Here, UseAdaptiveFilter can indicate whether the adaptive interpolation filter technology is used for the current block. As an example, when UseAdaptiveFilter is 1, the adaptive interpolation filter technology can be used for the current block. In this case, the interpolation filter of the current block can be determined based on the candidate list by the above method. On the other hand, when UseAdaptiveFilter is 0, the adaptive interpolation filter technology may not be used for the current block. In this case, the interpolation filter of the current block can be determined as a default interpolation filter, which is equally predefined for the encoding device and the decoding device.

[0274] UseAdaptiveFilter can be derived based on flag information (adaptive_filter_flag) encoded in units of coding units (CUs). When a predetermined condition is met, adaptive_filter_flag can be encoded and inserted into the bitstream. Figure 4 Description will be made, and detailed description will be omitted here.

[0275] Alternatively, UseAdaptiveFilter can be derived implicitly based on whether a predetermined condition is met, which is determined by reference Figure 4 Description will be made, and detailed description will be omitted here.

[0276] Alternatively, it is possible to determine whether to use the adaptive interpolation filter technology in units of pictures and / or slices, and at least one of pic_adaptive_if_flag in units of pictures or slice_adaptive_if_flag in units of slices may be encoded. In addition, even when pic_adaptive_if_flag or slice_adaptive_if_flag indicates the use of the adaptive interpolation filter technology, it is possible to determine whether the adaptive interpolation filter technology is used for each coding block. This is done by referring to Figure 4 Description will be made, and the detailed description will be omitted here.

[0277] The candidate list may be any one selected from a plurality of candidate lists predefined equally for the encoding device and the decoding device. A method for configuring a plurality of candidate lists and a method for selecting any one of the plurality of candidate lists are similar to Figure 4 The same as described in , and the repeated description will be omitted here.

[0278] In units of pictures and / or slices, based on a flag indicating whether an adaptive interpolation filter technique is used, index information specifying any one of a plurality of predefined candidate lists may be encoded. As an example, when the adaptive interpolation filter technique is used for the corresponding picture according to pic_adaptive_if_flag, the index information may be additionally encoded. Alternatively, when the adaptive interpolation filter technique is used for the corresponding slice according to slice_adaptive_if_flag, the index information may be additionally encoded. Any one candidate list specified among the plurality of predefined candidate lists may be shared by the coding blocks belonging to the corresponding picture or slice. Alternatively, an index information integrating a flag indicating whether an adaptive interpolation filter technique is used and index information may be encoded. Alternatively, any one of the plurality of predefined candidate lists may be implicitly determined based on at least one of whether the picture and / or slice is a P slice, whether the picture and / or slice is a B slice, or the distance between the current picture and the reference picture. Any one of the plurality of predefined candidate lists may be implicitly determined based on a quantization parameter of the picture and / or slice.

[0279] In units of coding units, any one of a plurality of predefined candidate lists may be selectively used. In units of coding units, index information specifying any one of a plurality of predefined candidate lists may be encoded. Alternatively, any one of a plurality of predefined candidate lists may be selected by considering at least one of an inter-frame prediction mode of a current block or a size of the current block.

[0280] Through the above embodiment, the interpolation filter of the luminance component of the current block can be determined, and the interpolation filter of the chrominance component of the current block can be determined based on the interpolation filter predetermined for the luminance component. Alternatively, through the above embodiment, the interpolation filter of the chrominance component can be determined independently of the interpolation filter of the luminance component.

[0281] In the process of determining the interpolation filter of the current block, at least one of index information (hereinafter referred to as first index information) specifying any one of a plurality of interpolation filter candidates belonging to a candidate list or index information (hereinafter referred to as second index information) specifying any one of a plurality of predefined candidate lists may be encoded / derived. This index information may be stored in the current block so that it may be propagated to blocks encoded after the current block.

[0282] When determining the interpolation filter for the current block based on the reordered candidate list, the index in the non-reordered candidate list may be stored to propagate to the next block.

[0283] As described above, the interpolation filter can be determined in units of pictures and / or slices, and in this case, the interpolation filter for the current picture / slice can be determined by considering interpolation filters of pictures / slices encoded before the current picture / slice.

[0284] refer to Figure 6 , a prediction sample of the current block may be generated based on an interpolation filter of the current block S610.

[0285] Specifically, the interpolation filter of the current block may be applied to the reconstructed samples in the reference picture of the current block to generate samples of the reference block of the current block. The generated samples of the reference block may be used as the prediction samples of the current block.

[0286] When the current block is encoded by bidirectional prediction, the interpolation filter of the current block may be equally applied to the reference picture in the L0 direction and the reference picture in the L1 direction of the current block. Alternatively, the interpolation filter of the current block may be determined for the L0 direction and the L1 direction, respectively, and in this case, the interpolation filter in the L0 direction may be applied to the reference picture in the L0 direction, and the interpolation filter in the L1 direction may be applied to the reference picture in the L1 direction.

[0287] The interpolation filters of the current block may be applied to the reference pictures in the L0 and L1 directions, respectively, to generate reference blocks in the L0 and L1 directions, and the prediction samples of the current block may be generated based on the weighted sum between the samples of the reference block in the L1 direction and the samples of the reference block in the L1 direction.

[0288] Figure 7A schematic configuration of the inter-frame predictor 221 performing the inter-frame prediction method according to the present disclosure is shown.

[0289] refer to Figure 7 , the inter-frame predictor 221 may include an interpolation filter determiner 700 and a prediction sample generator 710 .

[0290] The interpolation filter determiner 700 may determine an interpolation filter of a current block. The interpolation filter of the current block may be determined from a candidate list including a plurality of interpolation filter candidates predefined in an encoding apparatus. Figure 4 Same as described.

[0291] The interpolation filter determiner 700 may be based on the reference Figure 6 The interpolation filter of the current block is determined by any one of the described cost-based determination method, the reordered candidate list and index information encoding-based determination method, or the index information encoding-based determination method.

[0292] Alternatively, the interpolation filter determiner 700 may selectively use any one of a plurality of determination methods predefined in the encoding device to determine the interpolation filter of the current block. Here, the plurality of predefined determination methods may include at least one of the above-mentioned cost-based determination method, the determination method based on the reordered candidate list and index information encoding, or the determination method based on index information encoding.

[0293] The interpolation filter determined by the above method may be equally applied to the reference block in the L0 direction and the reference block in the L1 direction for generating the current block. Alternatively, the interpolation filter determiner 700 may determine the interpolation filter for each reference picture list separately, and this is in accordance with the reference picture list. Figure 6 Same as described in detail.

[0294] In the interpolation filter determiner 700, the adaptive interpolation filter technology may be adaptively used based on a predetermined variable (UseAdaptiveFilter). UseAdaptiveFilter is a variable indicating whether the adaptive interpolation filter technology is used for the current block, and when UseAdaptiveFilter is 1, the adaptive interpolation filter technology may be used for the current block, and when UseAdaptiveFilter is 0, the adaptive interpolation filter technology may not be used for the current block. The method for deriving UseAdaptiveFilter is the same as Figure 6 Same as described in.

[0295] The interpolation filter determiner 700 may select any one of a plurality of candidate lists predefined equally for the encoding apparatus and the decoding apparatus. A method for configuring a plurality of predefined candidate lists and a method for selecting any one of the candidate lists are similar to Figure 4 Same as described in.

[0296] The interpolation filter determiner 700 may determine the interpolation filter for the luminance component of the current block according to the above-described embodiment, and may determine the interpolation filter for the chrominance component based on the interpolation filter for the luminance component. Alternatively, the interpolation filter determiner 700 may independently determine the interpolation filter for the luminance component and the interpolation filter for the chrominance component according to the above-described embodiment.

[0297] The interpolation filter determiner 700 may consider at least one of the candidate list or interpolation filter candidates used in a previous picture / slice when determining an interpolation filter for a current block or a current picture / slice.

[0298] The prediction sample generator 710 may generate the prediction sample of the current block by applying the interpolation filter of the current block equally to the reference picture in the L0 direction and the reference picture in the L1 direction of the current block. Alternatively, when the interpolation filter of the current block is determined for each of the L0 and L1 directions, the prediction sample generator 710 may generate the prediction sample of the current block by applying the interpolation filter in the L0 direction and the interpolation filter in the L1 direction to the reference picture in the L0 direction and the reference picture in the L1 direction, respectively.

[0299] In the above embodiments, the method is described as a series of steps or boxes based on the flowchart, but the corresponding embodiments are not limited to the order of the steps, and some steps may occur simultaneously or in a different order than other steps described above. In addition, those skilled in the art will appreciate that the steps shown in the flowchart are not exclusive, and other steps may be included or one or more steps in the flowchart may be deleted without affecting the scope of the embodiments of the present disclosure.

[0300] The above-mentioned method according to the embodiment of the present disclosure can be implemented in the form of software, and the encoding device and / or decoding device according to the present disclosure can be included in a device that performs image processing, such as a TV, a computer, a smart phone, a set-top box, a display device, etc.

[0301] In the present disclosure, when the embodiment is implemented as software, the above method can be implemented as a module (process, function, etc.) that performs the above functions. The module can be stored in a memory and can be executed by a processor. The memory can be located inside or outside the processor and can be connected to the processor by various well-known means. The processor may include an application-specific integrated circuit (ASIC), another chipset, a logic circuit, and / or a data processing device. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and / or other storage devices. In other words, the embodiments described herein can be implemented on a processor, a microprocessor, a controller, or a chip. For example, the functional unit shown in each of the figures can be implemented on a computer, a processor, a microprocessor, a controller, or a chip. In this case, information (e.g., information about instructions) or an algorithm for implementation can be stored in a digital storage medium.

[0302] In addition, the decoding device and the encoding device of the embodiment of the present disclosure can be included in multimedia broadcast sending and receiving devices, mobile communication terminals, home theater video devices, digital theater video devices, surveillance cameras, video conversation devices, real-time communication devices such as video communication, mobile streaming devices, storage media, cameras, devices for providing video on demand (VoD) services, over-the-top video (OTT) devices, devices for providing Internet streaming services, three-dimensional (3D) video devices, virtual reality (VR) devices, augmented reality (AR) devices, videophone video devices, transportation terminals (e.g., vehicle (including autonomous driving vehicle) terminals, aircraft terminals, ship terminals, etc.) and medical video devices, etc., and can be used to process video signals or data signals. For example, over-the-top video (OTT) devices may include game consoles, Blu-ray players, networked TVs, home theater systems, smart phones, tablet computers, digital video recorders (DVRs), etc.

[0303] In addition, the processing method of the embodiment of the present disclosure can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to an embodiment of the present disclosure can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices and distributed storage devices that store computer-readable data. Computer-readable recording media may include, for example, Blu-ray discs (BD), universal serial buses (USB), ROMs, PROMs, EPROMs, EEPROMs, RAMs, CD-ROMs, tapes, floppy disks, and optical media storage devices. In addition, computer-readable recording media include media implemented in the form of carrier waves (e.g., transmitted via the Internet). In addition, the bit stream generated by the encoding method may be stored in a computer-readable recording medium or may be sent via a wired or wireless communication network.

[0304] In addition, the embodiments of the present disclosure may be implemented by a computer program product through a program code, and the program code may be executed on a computer by the embodiments of the present disclosure. The program code may be stored on a computer-readable carrier.

[0305] Figure 8 An example of a content streaming system to which an embodiment of the present disclosure can be applied is shown.

[0306] refer to Figure 8 The content streaming transmission system to which the embodiments of the present disclosure are applied may mainly include an encoding server, a streaming transmission server, a web server, a media storage, a user device, and a multimedia input device.

[0307] The encoding server generates a bitstream by compressing content input from a multimedia input device such as a smartphone, a camera, a camcorder, etc. into digital data and transmits it to the streaming server. As another example, when a multimedia input device such as a smartphone, a camera, a camcorder, etc. directly generates a bitstream, the encoding server may be omitted.

[0308] A bitstream may be generated by applying the encoding method or the bitstream generating method of the embodiment of the present disclosure, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0309] The streaming server sends multimedia data to the user device through the web server based on the user's request, and the web server serves as a medium to inform the user what services are available. When the user requests the required service from the web server, the web server delivers it to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server controls the command / response between each device in the content streaming system.

[0310] The streaming server may receive content from a media storage and / or encoding server. For example, when receiving content from an encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a certain period of time.

[0311] Examples of user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation, tablet PCs, tablet computers, ultrabooks, wearable devices (e.g., smart watches, smart glasses, head-mounted displays (HMDs), digital televisions, desktops, digital signage, etc.).

[0312] Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributed and processed.

[0313] The claims set forth herein can be combined in various ways. For example, the technical features of the method claims of the present disclosure can be combined and implemented as a device, and the technical features of the device claims of the present disclosure can be combined and implemented as a method. In addition, the technical features of the method claims of the present disclosure and the technical features of the device claims can be combined and implemented as a device, and the technical features of the method claims of the present disclosure and the technical features of the device claims can be combined and implemented as a method.

Claims

1. An image decoding method, comprising: determining an interpolation filter for a current block based on a candidate list, the candidate list including a plurality of interpolation filter candidates predefined in a decoding device; generating a prediction sample of the current block based on the interpolation filter of the current block; as well as The current block is reconstructed based on the prediction samples of the current block.

2. The method according to claim 1, wherein: Determining the interpolation filter includes respectively calculating SAD values ​​corresponding to the plurality of interpolation filter candidates, wherein the SAD value is calculated based on the template area of ​​the current block and the template area of ​​the reference block, and The reference block includes at least one of a reference block in the L0 direction or a reference block in the L1 direction.

3. The method according to claim 2, wherein: generating a reordered candidate list by reordering the interpolation filter candidates in ascending order of the SAD values, wherein an interpolation filter for the current block is determined from the reordered candidate list based on index information signaled from the bitstream, and The index information indicates one of the plurality of interpolation filter candidates belonging to the reordered candidate list.

4. The method according to claim 2, wherein: The SAD values ​​are calculated for reference picture list 0 and reference picture list 1, respectively.

5. The method according to claim 1, wherein: The candidate list includes at least one of a DCT-based interpolation filter, a Gaussian interpolation filter, or a sharpening interpolation filter, The DCT-based interpolation filter includes at least one of an 8-tap first DCT-based interpolation filter or a 12-tap second DCT-based interpolation filter, and The Gaussian interpolation filter includes at least one of an 8-tap first Gaussian interpolation filter and a 12-tap second Gaussian interpolation filter.

6. The method according to claim 1, wherein: Determining the interpolation filter of the current block based on the candidate list is performed based on first flag information indicating whether an adaptive interpolation filter technique is used for the current block.

7. The method according to claim 6, wherein: The first flag information is determined based on at least one of second flag information indicating whether the adaptive filter technique is allowed in a video sequence including the current block, a quantization parameter of the current block, a size of the current block, or an inter-frame prediction mode of the current block.

8. The method according to claim 1, wherein: The candidate list is determined to be one of a plurality of candidate lists predefined in the decoding device.

9. The method according to claim 1, wherein: An interpolation filter for a chroma component of the current block is determined independently of an interpolation filter for a luma component of the current block.

10. The method according to claim 1, wherein: The candidate list is reconfigured based on an interpolation filter used in at least one of a picture, a slice, or a block decoded before the current block.

11. An image encoding method, comprising: determining an interpolation filter for a current block based on a candidate list, the candidate list including a plurality of interpolation filter candidates predefined in an encoding device; generating a prediction sample of the current block based on the interpolation filter of the current block; as well as The current block is encoded based on the predicted samples of the current block.

12. A computer-readable storage medium storing a bit stream generated by an image encoding method, the image encoding method comprising: determining an interpolation filter for a current block based on a candidate list, the candidate list including a plurality of interpolation filter candidates predefined in an encoding device; generating a prediction sample of the current block based on the interpolation filter of the current block; as well as The current block is encoded based on the predicted samples of the current block.

Citation Information

Cited By

  • Encoding method, decoding method, bitstream, encoder, decoder, and storage medium

    WO2026085788A1

  • Video encoding method and apparatus, video decoding method and apparatus, computer-readable medium, and electronic device

    WO2026179774A1