Image encoding / decoding method and apparatus, and recording medium storing bit stream

By deriving candidates using the affine motion model of affine blocks in non-affine mode and configuring the merged candidate list, the problem of insufficient inter-frame prediction accuracy and compression performance in the existing technology is solved, and more efficient image coding is achieved.

CN118575477APending Publication Date: 2024-08-30LG ELECTRONICS INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202380017119.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-04
Filing Date
2023-01-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively utilize the affine model of affine blocks for image inter-frame prediction in non-affine mode, resulting in insufficient prediction accuracy and compression performance.

Method used

Candidate derivation by affine motion model using affine blocks in non-affine mode, configuring the merged candidate list to improve inter-frame prediction accuracy and coding efficiency, additionally considering motion information derived from the affine motion model to increase prediction accuracy sex.

Benefits of technology

Improved inter-frame prediction accuracy and coding efficiency, improving image compression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575477A
    Figure CN118575477A
Patent Text Reader

Abstract

An image decoding / encoding method and apparatus according to the present disclosure may configure a merge candidate list of a current block, derive motion information of the current block based on the merge candidate list and a merge index, and perform inter prediction on the current block based on the motion information of the current block. Here, the merge candidate list may include candidates derived using an affine motion model of an affine block encoded by affine prediction.
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 thus, 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. These image compression technologies can be used to effectively compress image data and send or store it. Summary of the invention

[0004] Technical issues

[0005] The present disclosure is directed to providing a method and apparatus for an affine model using an affine block in a non-affine mode.

[0006] The present disclosure is directed to providing a method and apparatus for deriving a candidate by using an affine model of an affine block in a non-affine mode.

[0007] The present disclosure is directed to providing a method and apparatus for configuring a candidate list by using candidates derived by an affine model using an affine block in a non-affine mode.

[0008] Technical Solution

[0009] According to the image decoding method and apparatus of the present disclosure, a merge candidate list of a current block may be configured, motion information of the current block may be derived based on the merge candidate list and a merge index, and inter-frame prediction may be performed on the current block based on the motion information of the current block.

[0010] In the image decoding method and apparatus according to the present disclosure, the merge candidate list may include candidates derived by using an affine motion model of an affine block encoded by affine prediction.

[0011] In the image decoding method and apparatus according to the present disclosure, the merge index may indicate one of a plurality of candidates included in the merge candidate list.

[0012] In the image decoding method and apparatus according to the present disclosure, the candidate motion information derived by using the affine motion model of the affine block may be motion information derived from the affine motion model for a predefined position in the current block.

[0013] In the image decoding method and apparatus according to the present disclosure, the predefined position may be defined as one of an upper left position, a lower left position, an upper right position, a lower right position, or a center position of the current block.

[0014] In the image decoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among blocks at a predefined position based on the current block.

[0015] In the image decoding method and apparatus according to the present disclosure, it may be confirmed whether an affine block is a block encoded by affine prediction among blocks at a predefined position according to a predetermined priority.

[0016] In the image decoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among spatial merging candidates of the current block.

[0017] In the image decoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among non-adjacent spatial merging candidates that are not adjacent to the current block.

[0018] In the image decoding method and apparatus according to the present disclosure, the position of the non-adjacent spatial merging candidate that is not adjacent to the current block may be adaptively determined based on the width and height of the current block.

[0019] In the image decoding method and apparatus according to the present disclosure, the position of a non-adjacent spatial merging candidate that is not adjacent to the current block may be defined as a specific position in a grid having a predefined size.

[0020] In the image decoding method and apparatus according to the present disclosure, at least one of a spatial merge candidate having a motion vector of a block spatially adjacent to a current block, a temporal merge candidate having a motion vector of a block temporally adjacent to the current block, a non-adjacent spatial merge candidate having a motion vector of a block not spatially adjacent to the current block, or a candidate derived by using an affine motion model of an affine block may be included.

[0021] The image decoding method and apparatus according to the present disclosure may perform inter-frame prediction by generating a prediction block of a current block from one reference block specified by motion information of the current block.

[0022] The image encoding method and apparatus according to the present disclosure may configure a merge candidate list of a current block, determine motion information of the current block based on the merge candidate list, and perform inter-frame prediction on the current block based on the motion information of the current block.

[0023] In the image encoding method and apparatus according to the present disclosure, the merge candidate list may include candidates derived by using an affine motion model of an affine block encoded by affine prediction.

[0024] In the image encoding method and apparatus according to the present disclosure, the merge index may indicate one of a plurality of candidates included in the merge candidate list.

[0025] In the image encoding method and apparatus according to the present disclosure, the candidate motion information derived by using the affine motion model of the affine block may be motion information derived from the affine motion model for a predefined position in the current block.

[0026] In the image encoding method and apparatus according to the present disclosure, the predefined position may be defined as one of an upper left position, a lower left position, an upper right position, a lower right position, or a center position of the current block.

[0027] In the image encoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among blocks at a predefined position based on the current block.

[0028] In the image encoding method and apparatus according to the present disclosure, it may be confirmed whether an affine block is a block encoded by affine prediction among blocks at a predefined position according to a predetermined priority.

[0029] In the image encoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among spatial merging candidates of the current block.

[0030] In the image encoding method and apparatus according to the present disclosure, the affine block may be determined as a block encoded by affine prediction among non-adjacent spatial merging candidates that are not adjacent to the current block.

[0031] In the image encoding method and apparatus according to the present disclosure, the position of the non-adjacent spatial merging candidate that is not adjacent to the current block may be adaptively determined based on the width and height of the current block.

[0032] In the image encoding method and apparatus according to the present disclosure, the positions of non-adjacent spatial merging candidates that are not adjacent to the current block may be defined as specific positions in a grid having a predefined size.

[0033] In the image encoding method and device according to the present disclosure, the merge candidate list may include multiple merge candidates, and the multiple merge candidates may include a spatial merge candidate having a motion vector of a block spatially adjacent to a current block, a temporal merge candidate having a motion vector of a block temporally adjacent to the current block, a non-adjacent spatial merge candidate having a motion vector of a block not spatially adjacent to the current block, or at least one of a candidate derived by using an affine motion model of an affine block.

[0034] The image encoding method and apparatus according to the present disclosure may perform inter-frame prediction by generating a prediction block of a current block from one reference block specified by motion information of the current block.

[0035] A computer-readable digital storage medium storing encoded video / image information is provided, which causes an image decoding method to be performed due to a decoding device according to the present disclosure.

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

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

[0038] Technical Effects

[0039] According to the present disclosure, by generating various candidates using an affine model derivation candidate of an affine block in a non-affine mode, the accuracy and reliability of inter prediction may be improved.

[0040] According to the present disclosure, by configuring a merge candidate list by effectively considering candidates of an affine model using an affine block, encoding efficiency of a candidate index may be improved.

[0041] According to the present disclosure, in addition to existing motion information simply stored in predefined locations, motion information derived based on an affine motion model may be additionally considered for prediction to consider various movements as candidates, thereby increasing prediction accuracy and improving compression performance. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

[0045] Figure 4 An inter-frame prediction method based on the merge mode performed by a decoding device as an embodiment to which the present disclosure is applied is shown.

[0046] Figure 5 and Figure 6 Neighboring blocks that may be used as spatial merging candidates as an embodiment to which the present disclosure is applied are shown.

[0047] Figures 7 to 10is a diagram for describing a non-affine merging mode using motion information of an affine block according to an embodiment of the present disclosure.

[0048] Fig.11 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0049] Fig.12 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0050] Fig.13 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0051] Fig.14 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0052] Fig.15 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0053] Fig.16 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0054] Fig.17 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0055] Fig.18 A rough configuration of the inter predictor 332 that performs inter prediction based on the merge mode as an embodiment according to the present disclosure is shown.

[0056] Fig.19 An inter-frame prediction method based on a merge mode performed by an encoding device according to an embodiment of the present disclosure is shown.

[0057] Fig. 20 A rough configuration of the inter predictor 221 that performs inter prediction based on the merge mode as an embodiment according to the present disclosure is shown.

[0058] Fig.21 An example of a content streaming system to which embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0059] Since the present disclosure can be variously changed and has multiple embodiments, specific embodiments will be shown in the drawings and described in detail in the specific embodiments. However, it is not intended to limit the present disclosure to specific embodiments, but it should be understood to include all changes, equivalents and substitutions included in the spirit and technical scope of the present disclosure. While describing each figure, similar reference numerals are used for similar components.

[0060] Terms such as first, second, etc. can be used to describe various components, but components should not be limited by these terms. 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 include any one or more combinations of related items in a plurality of related items.

[0061] 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 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.

[0062] 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 states otherwise, singular expressions include plural expressions. In this application, it should be understood that terms such as "including" or "having" are intended to specify the presence of features, quantities, steps, operations, components, parts or combinations thereof described in this specification, but do not preclude the presence or addition of one or more other features, quantities, steps, operations, components, parts or combinations thereof.

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

[0064] This specification proposes various embodiments of video / image encoding, and unless otherwise specified, the embodiments may be performed in combination with each other.

[0065] Herein, 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 / patch is a unit that forms a part of a picture in encoding. A slice / patch may include at least one coding tree unit (CTU). A picture may be composed of at least one slice / patch. A patch is a rectangular area consisting of a plurality of CTUs within a specific patch column and a specific patch row of a picture. A patch column is a rectangular area of ​​a CTU whose height is the same as the height of the picture and whose width is specified by the syntax requirements of the picture parameter set. A patch row is a rectangular area of ​​a CTU whose height is specified by the picture parameter set and whose width is the same as the width of the picture. The CTUs within a patch may be arranged continuously according to a CTU raster scan, and the patches within a picture may be arranged continuously according to a raster scan of the patch. A slice may include an integer number of complete patches of a picture that may be exclusively included in a single NAL unit or an integer number of continuous complete CTU rows within a patch. In addition, 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.

[0066] A pixel or a picture element (pel) may represent the smallest unit constituting a picture (or image). In addition, a "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.

[0067] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of ​​a picture and information related to the corresponding area. 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 an area. In general, an M×N block may include a set (or array) of transform coefficients or samples (or sample arrays) consisting of M columns and N rows.

[0068] Herein, "A or B" may mean "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 mean "only A", "only B", "only C", or "any combination of A, B, and C".

[0069] 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".

[0070] Herein, "at least one of A and B" may mean "only A", "only B", or "both A and B". In addition, herein, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted in the same manner as "at least one of A and B".

[0071] In addition, herein, "at least one of A, B, and C" may mean "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 mean "at least one of A, B, and C".

[0072] In addition, the brackets used in this document may indicate "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, "prediction" in this document 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 (i.e., intra-frame prediction)", "intra-frame prediction" may be proposed as an example of "prediction".

[0073] In this document, technical features described separately in one figure may be implemented separately or simultaneously.

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

[0075] Reference Figure 1 , a video / image encoding system may include a first device (source device) and a second device (receiving device).

[0076] The source device may send coded video / image information or data to the receiving device in the form of a file or stream through a digital storage medium or a network. The source device may include a video source, an encoding device, and a transmitting 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.

[0077] The video source may acquire the video / image by a 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 a process of generating the relevant data.

[0078] 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.

[0079] 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 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 sending through a broadcast / communication network. The receiving unit may receive / extract a bit stream and send it to a decoding device.

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

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

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

[0083] Reference 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, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may also 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 also include a memory 270 as an internal / external component.

[0084] The image divider 210 may divide the input image (or picture or 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.

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

[0086] As another example, the processing unit may also include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be divided or split from the above-mentioned final coding unit, respectively. The prediction unit may be a unit for 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.

[0087] In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an M×N 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 luminance component, or only a pixel / pixel value of a chrominance component. A sample may be used as a term for forming a picture (or image) corresponding to a pixel or a picture element.

[0088] 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 in the encoding device 200 that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) may be referred to as a subtractor 231.

[0089] The predictor 220 may perform prediction on a block to be processed (hereinafter referred to as a current block) and generate a prediction block including a prediction sample of the current block. The predictor 220 may determine whether to apply intra prediction or inter prediction in units of a current block or CU. The predictor 220 may generate various information about the prediction (e.g., prediction mode information, etc.) 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.

[0090] 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 positioned at a specific 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 a DC mode or a plane mode. Depending on the level of detail of the prediction direction, the directional mode may include 33 directional modes or 65 directional modes. However, this is an example, and more or fewer 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.

[0091] The inter-frame predictor 221 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information 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 also 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 co-located 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, for example, for skip mode and merge mode, the inter predictor 221 may use the motion information of the neighboring blocks as the 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, the motion vectors of the surrounding blocks are used as motion vector predictors, and the motion vector difference is signaled to indicate the motion vector of the current block.

[0092] The predictor 220 can generate a prediction signal based on various prediction methods described later. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. This can be called an intra-frame combined prediction (CIIP) mode. In addition, the predictor can be based on an intra-frame block copy (IBC) prediction mode, or can predict blocks based on a palette mode. The IBC prediction mode or the palette mode can be used for content image / video encoding 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 regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample value within the picture can be signaled based on information about the palette table and the palette index. The prediction signal generated by the predictor 220 can be used to generate a reconstruction signal or a residual signal.

[0093] 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 represents a transform obtained from a graph when relationship information between pixels is represented as a graph. CNT represents 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.

[0094] 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 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.

[0095] 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 (e.g., values ​​of syntax elements, etc.) required for video / image reconstruction other than the quantized transform coefficients together or separately.

[0096] The coding information (e.g., coded video / image information) may be transmitted or stored in units of network abstraction layer (NAL) units in the form of a bitstream. The video / image information may also include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. Herein, information and / or syntax elements transmitted / signaled to a decoding device from an encoding device may be included in the video / image information. The video / image information may be encoded and included in a 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 transmitting unit (not shown) for transmitting a signal output from the entropy encoder 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding device 200, or the transmitting unit may also be included in the entropy encoder 240.

[0097] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transformation to the quantized transform coefficients via a dequantizer 234 and an 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 for the block to be processed (similar to 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 by filtering as described later. In addition, in the picture coding and / or reconstruction process, luminance mapping and chrominance scaling (LMCS) can be applied.

[0098] 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, the DPB of the memory 270). Various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filtering, bilateral filtering, 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 bitstream.

[0099] The modified reconstructed picture sent to the memory 270 may be used as a reference picture in the inter-frame predictor 221. When inter-frame 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.

[0100] 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 previously 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.

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

[0102] Reference 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 322.

[0103] According to an embodiment, the above entropy decoder 310, the residual processor 320, the predictor 330, the adder 340 and the filter 350 may be configured by one hardware component (e.g., a decoder chipset or a 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 also include the memory 360 as an internal / external component.

[0104] 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 processing of video / image information in the encoding device reconstructs the image. For example, the decoding device 300 can derive the unit / block based on the block segmentation related information obtained from the bit stream. The decoding device 300 can perform decoding 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 larger 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.

[0105] The decoding device 300 may receive the bit stream from Figure 2The received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets such as 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 also include general constraint information. The decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or 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 required for image reconstruction and the quantized values ​​of the transform coefficients of the residual. In more detail, the CABAC entropy decoding method can receive bins corresponding to various syntax elements from a bitstream, use the syntax element information to be decoded, the decoding information of the surrounding blocks and the blocks to be decoded, or the information of the symbol / bin decoded in the previous step to determine the context model, perform arithmetic decoding of the bin by predicting the probability of occurrence of the bin according to the determined context model, and generate symbols corresponding to the values ​​of the various syntax elements. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using the information about the decoded symbol / bin for the context model of the next symbol / bin. Among the information decoded in the entropy decoder 310, the information about the prediction is provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value (ie, quantized transform coefficients and related parameter information) for which entropy decoding is performed 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, the information about filtering among the information decoded in the entropy decoder 310 can be provided to the filter 350. In addition, 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 .

[0106] In addition, the decoding device according to the present 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 a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.

[0107] The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients 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 dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.

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

[0109] The predictor 320 may perform prediction on the current block and generate a prediction block including prediction samples of 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.

[0110] 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. This can be called an intra-frame combined prediction (CIIP) mode. In addition, the predictor can be based on an intra-frame block copy (IBC) prediction mode, or can predict blocks based on a palette mode. The IBC prediction mode or the palette mode can be used for content image / video encoding 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 regarded 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 notified with a signal.

[0111] The intra-frame predictor 331 can predict the current block by referencing samples within the current picture. Depending on the prediction mode, the referenced samples can be located near the current block, or can be located a specific 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 blocks.

[0112] The inter-frame predictor 332 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information 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 also 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 neighboring blocks, and derive a motion vector and / or a reference picture index of 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 the inter-frame prediction mode of the current block.

[0113] 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 for the block to be processed (similar to when the skip mode is applied), the prediction block can be used as a reconstructed block.

[0114] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra-frame prediction of the next block to be processed in the current picture, may be output by filtering as described later, or may be used for inter-frame prediction of the next picture. In addition, luminance mapping and chrominance scaling (LMCS) may be applied in the picture decoding process.

[0115] 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). Various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0116] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the block in the previously 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.

[0117] Herein, 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 applied equivalently or correspondingly to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300, respectively.

[0118] Figure 4 An inter-frame prediction method based on the merge mode performed by a decoding device as an embodiment to which the present disclosure is applied is shown.

[0119] The motion information (motion vector, reference picture list, reference picture index, etc.) of the current coding unit can be derived from the motion information of the neighboring blocks without encoding. The motion information of any neighboring block can be configured as the motion information of the current coding unit, which is defined as a merge mode. When describing the embodiments of the present disclosure, the case where the merge mode is used as an inter-frame prediction mode is mainly described, but the present disclosure is not limited to this. In other words, the embodiments described in the present disclosure can be basically equally applied to other inter-frame prediction modes (for example, skip mode, AMVP mode, inter-frame intra-frame combined prediction (CIIP) mode, intra-frame block copy mode, affine mode, etc.).

[0120] Reference Figure 4 , the decoding device can configure a merge candidate list of the current block S400.

[0121] The merge candidate list may include one or more merge candidates that can be used to derive motion information of the current block. The size of the merge candidate list can be variably determined based on information indicating the maximum number of merge candidates configuring the merge candidate list (hereinafter, size information). The size information can be encoded in the encoding device and notified with a signal, or it can be a fixed value (e.g., 2, 3, 4, 5, 6 or a larger integer) pre-agreed in the decoding device. In the present disclosure, the merge candidate list may be referred to as a merge list, a candidate list, etc.

[0122] The plurality of merge candidates included in the merge candidate list may include at least one of a spatial merge candidate or a temporal merge candidate.

[0123] A spatial merge candidate may refer to a neighboring block or motion information of a neighboring block that is spatially adjacent to the current block. Here, the neighboring block may include at least one of the lower left block (A0), the left block (A1), the upper right block (B0), the upper block (B1), or the upper left block (B2) of the current block. According to a predetermined priority, the available neighboring blocks among the neighboring blocks may be added to the merge candidate list in sequence. For example, the priority may be defined as B1->A1->B0->A1->B2, A1->B1->A0->B1->B2, A1->B1->B0->A0->B2, etc., but is not limited thereto.

[0124] In addition, the spatial merge candidate may also include neighboring blocks that are not adjacent to the current block, which refer to Figure 5 and Figure 6 describe.

[0125] A temporal merge candidate may refer to one or more collocated blocks or motion information of collocated blocks belonging to a collocated picture. Here, a collocated picture is any one of a plurality of reference pictures belonging to a reference picture list, which may be a picture different from the picture to which the current block belongs. A collocated picture may be the first picture or the last picture in the reference picture list. Alternatively, a collocated picture may be specified based on an index encoded to indicate a collocated picture. A collocated block may include at least one of a block (C1) including the center position of the current block or a neighboring block (C0) adjacent to the lower right corner of the current block. According to a predetermined priority, the available blocks between C0 and C1 may be added to the merge candidate list in sequence. For example, C0 may have a higher priority than C1. However, not limited thereto, C1 may have a higher priority than C0.

[0126] The encoding / decoding device may include a buffer storing motion information of at least one block (hereinafter, the previous block) that has completed encoding / decoding before the current block. In other words, the buffer may store a list (hereinafter, the motion information list) composed of motion information of the previous block.

[0127] The motion information list may be initialized in units of any one of a picture, a slice, a patch, a CTU row, or a CTU. Initialization may mean that the motion information list is empty. The motion information corresponding to the previous block is sequentially added to the motion information list according to the encoding / decoding order of the previous block, but the motion information list may be updated in a first-in-first-out (FIFO) manner by considering the size of the motion information list. For example, if the most recently encoded / decoded motion information (hereinafter, the most recent motion information) is the same as the motion information pre-added to the motion information list, the most recent motion information may not be added to the motion information list. Alternatively, the motion information that is the same as the most recent motion information may be removed from the motion information list, and the most recent motion information may be added to the motion information list. In this case, the most recent motion information may be added to the last position of the motion information list, or may be added to the position of the removed motion information.

[0128] The previous block may include at least one of one or more neighboring blocks spatially adjacent to the current block or one or more neighboring blocks spatially not adjacent to the current block.

[0129] The merge candidate list may also include a previous block or motion information of a previous block belonging to the buffer or the motion information list as a merge candidate.

[0130] To this end, a redundancy check between the motion information list and the merge candidate list may be performed. Redundancy checks may be performed on all or some of the merge candidates belonging to the merge candidate list and all or part of the previous blocks in the motion information list. However, for the sake of convenience of description, it is assumed that the redundancy check in the present disclosure is performed on some merge candidates belonging to the merge candidate list and some previous blocks in the motion information list. Here, some merge candidates in the merge candidate list may include at least one of the left block or the upper block among the spatial merge candidates. However, it is not limited to this and may be limited to any one block among the spatial merge candidates. For example, some merge candidates may also include at least one of the lower left block, the upper right block, the upper left block, or the temporal merge candidate. Some previous blocks in the motion information list may refer to the K previous blocks most recently added to the motion information list. Here, K is 1, 2, 3 or greater, and may be a fixed value pre-agreed in the encoding / decoding device.

[0131] For example, assume that five previous blocks (or motion information of previous blocks) are stored in the motion information list and indexes 1 to 5 are assigned to the respective previous blocks. As the index is larger, it refers to the most recently stored previous block. In this case, the redundancy of motion information between the previous blocks with indexes 5, 4, and 3 and some merge candidates in the merge candidate list may be checked. Alternatively, the redundancy between the previous blocks with indexes 5 and 4 and some merge candidates in the merge candidate list may be checked. Alternatively, the most recently added previous block with index 5 may be excluded, and the redundancy between the previous blocks with indexes 4 and 3 and some merge candidates in the merge candidate list may be checked.

[0132] As a result of the redundancy check, if there is at least one previous block with different motion information, the corresponding previous block may be added to the merge candidate list. Alternatively, if there is at least one previous block with the same motion information, the previous block in the motion information list may not be added to the merge candidate list. On the other hand, if there is no previous block with the same motion information, all or part of the previous blocks in the motion information list may be added to the last position of the merge candidate list. In this case, it can be added to the merge candidate list in the order of the previous blocks most recently added to the motion information list (ie, from large index to small index). However, there may be a restriction that the previous block most recently added to the motion information list (ie, the previous block with the largest index) is not added to the merge candidate list. The previous block may be added by considering the size of the merge candidate list. For example, according to the size information of the above-mentioned merge candidate list, it is assumed that the merge candidate list has a maximum of T merge candidates. In this case, there may be a restriction that only the previous block is added until the number of merge candidates belonging to the merge candidate list reaches (Tn). Here, n may be an integer of 1, 2 or more. Alternatively, the previous block may be repeatedly added until the number of merge candidates belonging to the merge candidate list reaches T.

[0133] As an embodiment, as described above, the plurality of merge candidates may include at least one of a spatial merge candidate having a motion vector of a block spatially adjacent to the current block, a temporal merge candidate having a motion vector of a block temporally adjacent to the current block, a non-adjacent spatial merge candidate having a motion vector of a block not spatially adjacent to the current block, or a candidate derived by using an affine motion model of an affine block. In other words, the merge candidate list may include motion information of a block at a specific position without using an affine motion model, or may include motion information derived by using an affine motion model.

[0134] The decoding apparatus may derive motion information of the current block based on the merge candidate list and the merge index S410.

[0135] The merge index may specify any one of the multiple merge candidates belonging to the merge candidate list. The motion information of the current block may be configured as the motion information of the merge candidate specified by the merge index. The decoding device may generate a prediction sample of the current block based on the derived motion information S420. The decoding device may generate the prediction sample by performing motion compensation based on the derived motion information. In other words, the decoding device may perform inter-frame prediction on the current block based on the derived motion information.

[0136] As an embodiment, the pre-derived motion information (particularly, the motion vector) may be corrected based on a predetermined difference motion vector (MVD). Motion compensation may be performed by using the corrected motion vector.

[0137] Figure 5 and Figure 6 Neighboring blocks that may be used as spatial merging candidates as an embodiment to which the present disclosure is applied are shown.

[0138] The neighboring blocks used in merge mode can be blocks adjacent to the current coding unit, such as Figure 5 The merge candidate indices 0 to 4 in (blocks adjacent to the boundary of the current coding unit), or may be blocks not adjacent to the current coding unit, such as Figure 5 The merge candidate indices 5 to 26 in . If the distance between the merge candidate and the current block exceeds a predefined threshold, it can be configured as unavailable.

[0139] For example, the predefined threshold can be configured as the height of the CTU (ctu_height) or (ctu_height+N), which is defined as the merge candidate available threshold. In other words, if the difference between the y-axis coordinate (yi) of the merge candidate and the y-axis coordinate (y0) of the upper left sample of the current coding unit (hereinafter, the reference sample of the current coding unit) (ie, yi-y0) is greater than the merge candidate available threshold, the merge candidate can be configured as unavailable. Here, N is a predefined offset value. Specifically, for example, N can be configured as 16 or ctu_height.

[0140] If many merge candidates cross the CTU boundary, many unavailable merge candidates are generated, which may reduce coding efficiency. The merge candidate at the top position of the coding unit (hereinafter, the upper merge candidate) can be configured to be as small as possible, and the merge candidate at the lower left position of the coding unit (hereinafter, the lower left merge candidate) can be configured to be as large as possible.

[0141] like Figure 6In the example, the difference between the y-axis coordinate of the reference sample of the current coding unit and the y-axis coordinate of the upper merge candidate can be configured to be no more than twice the height of the coding unit. The difference between the x-axis coordinate of the reference sample of the current coding unit and the x-axis coordinate of the lower left merge candidate can be configured to be no more than twice the width of the coding unit.

[0142] A merge candidate adjacent to the current coding unit is called an adjacent merge candidate, and a merge candidate not adjacent to the current coding unit is defined as a non-adjacent merge candidate. A flag (isAdjacentMergeflag) showing whether the merge candidate of the current coding unit is an adjacent merge candidate may be signaled. If the value of IsAdjacentMergeflag is 1, the motion information of the current coding unit may be derived from the adjacent merge candidate, and if the value of isAdjacentMergeflag is 0, the motion information of the current coding unit may be derived from the non-adjacent merge candidate.

[0143] According to conventional image compression technology, when a non-affine merge mode is applied, motion information of neighboring blocks at predefined positions is used as is as prediction information of the current block. Here, a non-affine merge mode (or may be referred to as a non-affine mode) shows a mode that is not an affine merge mode (or an affine mode). In the present disclosure, a non-affine merge mode may be referred to as a merge mode, a general merge mode, or a conventional merge mode. When an affine mode is applied, a motion vector of a current block or a sub-block within the current block may be derived by using an affine motion model (or an affine model) derived based on a motion vector of a control point of a current block angle.

[0144] In other words, in the conventional non-affine prediction method, the motion information that has been derived is used in the process of using the motion information of the neighboring blocks as prediction candidates. Figure 5 When encoding a block in , the predefined position (i.e., such as Figure 5 The motion information of the neighboring blocks with merge candidate indices 0 to 4 in ( ) is used as the prediction candidate for non-affine merging of the current block.

[0145] In an embodiment of the present disclosure, in the process of configuring prediction candidates of a non-affine merge mode, unlike a conventional image compression technique that uses motion information at a predefined position as is as prediction information for a current block, if surrounding blocks are encoded by using an affine motion model, a method for performing inter-frame prediction using motion information derived using an affine motion model of a corresponding block is proposed.

[0146] Figures 7 to 10 is a diagram for describing a non-affine merging mode using motion information of an affine block according to an embodiment of the present disclosure.

[0147] In an embodiment of the present disclosure, a method for deriving motion information from surrounding affine blocks for non-affine merging is proposed. In the present disclosure, an affine block refers to a block encoded in an affine mode (or affine prediction) and may also be referred to as an affine coded block. This embodiment assumes that Figure 7 As shown, the left block of the current block is an affine block. It is not limited to this, and even when the lower left, upper, upper right or upper left neighboring block is an affine block, this embodiment can also be equally applied.

[0148] Reference Figure 7 , when the left block of the current block is encoded in an affine mode, the motion information referred to as the prediction candidate may be the motion information at the corresponding position derived as the affine motion model of the left block.

[0149] Reference Figure 8 , when the left block of the current block is encoded in affine mode, the motion information at the left sample position referenced by the current block is called mvA. According to traditional image compression technology, such as Figure 8 As shown, regardless of whether the left block of the current block is encoded in affine mode, the motion information mvA of the reference sample derived as the affine motion model of the left block can be used as a prediction candidate. In other words, according to the conventional image compression technology, when non-affine prediction is applied to the current block, the motion information of the sample at the predefined position on the left can be used as a merge candidate.

[0150] In an embodiment of the present disclosure, when a neighboring block is encoded by affine prediction, motion information of the current block can be derived from the affine block of the corresponding affine block, and the derived motion information can be used as a prediction candidate. Figure 7 and Figure 8 When the left block of the current block is coded in affine mode, such as Fig. 9 As shown, the motion information of the position of the current block can be derived by using the affine motion model of the left block.

[0151] By additionally considering motion information derived based on an affine motion model for prediction (rather than simply existing motion information stored at predefined locations), various moves can be considered as candidates, thereby increasing prediction accuracy and improving compression performance.

[0152] Specifically, Fig. 9 As shown, the motion information of the current block can be derived based on the affine motion model of the left block. For an affine block, the motion information (motion vector) can be derived in units of sub-blocks or in units of pixels of a predetermined size based on the affine motion model. On the contrary, in the present disclosure, when the current block is a non-affine block, one motion information (motion vector) of the current block can be derived from the affine motion model of the adjacent affine block.

[0153] As an embodiment, motion information derived based on an affine motion model of a neighboring affine block may be used as a merge candidate. In other words, motion information derived based on an affine motion model of a neighboring affine block may be added (or inserted) into a merge candidate list as a merge candidate. The position of the neighboring affine block using the affine motion model may be defined as various positions. As an example, it may be the above Figure 5 and Figure 6 As an example, the neighboring affine block may be a block adjacent to the current block. Alternatively, as an example, the neighboring affine block may be a block not adjacent to the current block.

[0154] As an implementation, any position within the current block may be predefined to derive a motion information, and the motion vector of the predefined position may be derived from the affine motion model of the adjacent affine block. For example, the any position may be the upper left, lower right, or upper right position of the current block. Fig.10 In the implementation manner, the center position of the current block is defined as an arbitrary position, and the case where the motion information of the corresponding position is derived from the affine motion model is described as an example.

[0155] As an embodiment, the affine motion model of the neighboring block may be determined based on the control point motion vector of the corresponding neighboring block and the width / height of the neighboring block. The number of control points of the neighboring block may be 2, 3, or 4. The motion vector at the predefined position in the current block may be derived according to the affine motion model of the neighboring affine block based on the relative position of the current block to the neighboring affine block or the width / height of the current block.

[0156] Reference Fig.10 , and above Figure 8 Unlike the implementation described in , new motion information mvC (rather than the motion vector mvA at the left position) can be used as a prediction candidate. The new candidate can be derived from the affine motion model of the left affine block.

[0157] Reference Figures 7 to 10 , describes a method of using motion information (motion vector) derived by using an affine motion model of neighboring affine blocks as a merge candidate of a non-affine merge mode. Next, various methods of defining the position of neighboring affine blocks using an affine motion model are described.

[0158] Fig.11 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0159] In an embodiment of the present disclosure, a candidate derived from an adjacent affine block in a non-affine merge mode may be defined as a neighboring position (or neighboring pixel position) referenced by a merge candidate. As an embodiment, motion information may be derived from an affine motion model of a block including a corresponding position, and the derived motion information may be added to a merge candidate list as a merge candidate. In other words, the position of the neighboring pixel referenced in the process of configuring an affine candidate of an adjacent block for non-affine merge may be as follows: Fig.11 is defined in the example shown.

[0160] Specifically, the position of the neighboring affine block used as a merge candidate in the non-affine merge mode may be defined as a position adjacent to the current block. Fig.11 In the example of , it can be the left, lower-left, top, upper-right, or upper-left position adjacent to the current block.

[0161] Alternatively, the position of the adjacent affine block used as a merge candidate in the non-affine merge mode may be a position that is not adjacent to the current block. For example, the non-adjacent position may be Fig.11 For example, the non-adjacent position may be defined as the position of a pixel included in a non-adjacent block located at a diagonal position of the upper left, upper right, or lower left.

[0162] In addition, for example, the non-adjacent position may be defined as the position of the pixel included in the non-adjacent block located in the left or upper direction. The non-adjacent block located in the left or upper direction may be adaptively determined according to the width and / or height of the current block. For example, the non-adjacent block located in the left or upper direction may be adaptively determined based on the width and / or height of the current block. Fig.11 Specified in the example.

[0163] Fig.12 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0164] In an embodiment of the present disclosure, a candidate derived from an adjacent affine block in a non-affine merge mode may be defined as a neighboring position (or neighboring pixel position) referenced by a merge candidate. As an embodiment, motion information may be derived from an affine motion model of a block including a corresponding position, and the derived motion information may be added to a merge candidate list as a merge candidate. In other words, the position of the neighboring pixel referenced in the process of configuring an affine candidate of an adjacent block for non-affine merge may be as follows: Fig.12 is defined in the example shown.

[0165] Reference Fig.12 , the position of the adjacent affine block used as a merge candidate in the non-affine merge mode can be determined based on the grid. In the present disclosure, the grid represents a predetermined processing unit block and is not limited by the name. The grid can be called a block, a unit area, a sub-block, etc.

[0166] Specifically, the positions of the adjacent affine blocks used as merge candidates in the non-affine merge mode can be defined as the positions of the pixels located in each grid. The size of the grid can be preconfigured. For example, the grid can be preconfigured to 4, 8, 16, 32 or 64.

[0167] As an example, Fig.12 As shown, the position of the neighboring affine block used as a merge candidate in the affine merge mode may be the position of the upper left pixel within a grid having a preconfigured size.

[0168] Fig.13 is a diagram showing locations of neighboring blocks for candidate configurations according to an embodiment of the present disclosure.

[0169] In an embodiment of the present disclosure, a candidate derived from an adjacent affine block in a non-affine merge mode may be defined as a neighboring position (or neighboring pixel position) referenced by a merge candidate. As an embodiment, motion information may be derived from an affine motion model of a block including a corresponding position, and the derived motion information may be added to a merge candidate list as a merge candidate. In other words, the position of the neighboring pixel referenced in the process of configuring an affine candidate of an adjacent block for non-affine merge may be as follows: Fig.13 is defined in the example shown.

[0170] Reference Fig.13 , the positions of the neighboring affine blocks used as merge candidates in the non-affine merge mode can be determined based on the grid. Specifically, the positions of the neighboring affine blocks used as merge candidates in the non-affine merge mode can be defined as the positions of the pixels located in each grid. The size of the grid can be preconfigured. For example, the grid can be preconfigured to 4, 8, 16, 32, or 64.

[0171] As an implementation method, Fig.13 As shown, the position of the neighboring affine block used as a merge candidate in the affine merge mode can be defined as a specific pixel position within a grid with a preconfigured size. For example, the position of the neighboring affine block used as a merge candidate in the affine merge mode can be a center pixel position within a grid with a preconfigured size. As another example, it can be defined as an upper right, lower left, or lower right pixel position.

[0172] Fig.14 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0173] Reference Fig.14 , describing a method for configuring a merge candidate list to which an embodiment of the present disclosure can be applied. Fig.14The method for configuring the merge candidate list in is an example, and the present disclosure is not limited thereto. For example, Fig.14 The order of the steps shown may be changed, some steps may be omitted, and some steps may be added. Fig.14 Steps other than those shown.

[0174] In addition, above Figure 4 The embodiments described in the description can be applied in the same manner and in Fig.14 In the implementation method described above, the Figure 4 Duplicate description. In addition, Fig.14 In the implementation mode in, for the convenience of description, it is described by assuming that it is performed by a decoding device, but it is not limited to this and can also be equally applied to an encoding device.

[0175] Reference Fig.14 , the decoding device may add a spatial merge candidate to the merge candidate list S1400. The spatial merge candidate may refer to a neighboring block that is spatially adjacent to the current block or motion information of a neighboring block. Here, the neighboring block may include at least one of the lower left block (A0), the left block (A1), the upper right block (B0), the upper block (B1), or the upper left block (B2) of the current block. According to a predetermined priority, the available neighboring blocks among the neighboring blocks may be added to the merge candidate list in sequence. In an embodiment, the upper left block (B2) may be added to the merge candidate list only when the remaining four neighboring blocks are not added to the merge candidate list as merge candidates.

[0176] The decoding apparatus may add a temporal merge candidate to the merge candidate list S1410. The temporal merge candidate may refer to one or more collocated blocks or motion information of collocated blocks belonging to a collocated picture. Here, the collocated picture is any one of a plurality of reference pictures belonging to a reference picture list, which may be a picture different from the picture to which the current block belongs.

[0177] The collocated picture may be the first picture or the last picture in the reference picture list. Alternatively, the collocated picture may be specified based on an index encoded to indicate the collocated picture. The collocated block may include at least one of a block (C1) including the center position of the current block or a neighboring block (C0) adjacent to the lower right corner of the current block. The available blocks between C0 and C1 may be sequentially added to the merge candidate list according to a predetermined priority.

[0178] The decoding device may add a history-based motion vector predictor (HMVP) to the merge candidate list S1420. The HMVP represents the motion information of the block encoded before the current block. The HMVP added to the merge candidate list may be derived from the HMVP candidate list. In the present disclosure, the HMVP candidate list may be referred to as an HMVP list, an HMVP buffer, an HMVP table, a lookup table, an HMVP lookup table, etc.

[0179] The decoding device may add an average merge candidate to the merge candidate list S1430. The average merge candidate may be derived by averaging the motion information (motion vectors) of the merge candidates included in the merge candidate list. The average merge candidate may also be referred to as a paired candidate. As an example, the motion vector of the average merge candidate may be derived by averaging the motion vectors of two candidates included in the merge candidate list. In addition, as an example, the two candidates may be defined as the first candidate and the second candidate in the merge candidate list.

[0180] As an implementation method, the above Fig.14 An availability check and / or redundancy check may be performed before adding a candidate in each step of the merging process. In addition, before adding the HMVP, it may be confirmed whether the number of merge candidates included in the merge candidate list is a value obtained by subtracting 1 from the maximum number of the merge candidate list. In addition, before adding the average merge candidate, it may be confirmed whether the number of merge candidates included in the merge candidate list is less than a value obtained by subtracting 1 from the maximum number of the merge candidate list.

[0181] Fig.15 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0182] Reference Fig.15 , describing a method for configuring a merge candidate list to which an embodiment of the present disclosure can be applied. Fig.15 The method for configuring the merge candidate list in is an example, and the present disclosure is not limited thereto. For example, Fig.15 The order of the steps shown may be changed, some steps may be omitted, and some steps may be added. Fig.15 Steps other than those shown above. Figure 4 The embodiments described in the description can be applied in the same manner. Fig.15 In the implementation method described above, the Figure 4 Duplicate description. In addition, Fig.15 In the implementation mode in, for the convenience of description, it is described by assuming that it is performed by a decoding device, but it is not limited to this and can also be equally applied to an encoding device.

[0183] Reference Fig.15 , the decoding device may add a spatial merge candidate to the merge candidate list S1500, and may add a temporal merge candidate to the merge candidate list S1510.

[0184] The decoding apparatus may add motion information of non-adjacent blocks as merge candidates S1520. Figure 5 , Figure 6 , Figures 11 to 13As described in, the motion information of non-adjacent blocks that are not adjacent to the current block can be added to the merge candidate list. The position of the non-adjacent blocks can be predefined. For example, it can be defined as above Figure 5 , Figure 6 , Figures 11 to 13 As an example, motion information of non-adjacent blocks at K positions may be added to the merge candidate list. K may be a predefined value. For example, K may be an integer greater than 2. For example, K may be 18.

[0185] And, the decoding apparatus may add a history-based motion vector predictor (HMVP) to the merge candidate list S1530. The decoding apparatus may add an average merge candidate to the merge candidate list S1540.

[0186] As an implementation method, the above Fig.15 Availability check and / or redundancy check are performed before adding candidates in each step. In addition, before adding motion information of non-adjacent blocks as merge candidates, it can be confirmed whether the number of merge candidates included in the merge candidate list is less than the maximum number of the merge candidate list.

[0187] In addition, before adding HMVP, it can be confirmed whether the number of merge candidates included in the merge candidate list is a value obtained by subtracting 1 from the maximum number of the merge candidate list. In addition, before adding the average merge candidate, it can be confirmed whether the number of merge candidates included in the merge candidate list is less than the value obtained by subtracting 1 from the maximum number of the merge candidate list.

[0188] Next, the description is made by using the Figures 7 to 13 An implementation method of configuring a merge candidate list using motion information derived from an affine motion model of neighboring affine blocks described in.

[0189] Fig.16 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0190] Reference Fig.16 , describing a method for configuring a merge candidate list to which an embodiment of the present disclosure can be applied. Fig.16 The method for configuring the merge candidate list in is an example, and the present disclosure is not limited thereto. For example, Fig.16 The order of the steps shown may be changed, some steps may be omitted, and some steps may be added. Fig.16 Steps other than those shown.

[0191] In addition, the above can be applied equivalently Figure 4 and Fig.14 The embodiments described in Fig.16In the implementation method described above, the Figure 4 and Fig.14 Duplicate description. In addition, Fig.16 In the implementation mode in, for the convenience of description, it is described by assuming that it is performed by a decoding device, but it is not limited to this and can also be equally applied to an encoding device.

[0192] Reference Fig.16 , the decoding device may add a spatial merge candidate to the merge candidate list S1600, and may add a temporal merge candidate to the merge candidate list S1610.

[0193] The decoding apparatus may add the motion information derived by using the affine motion model of the neighboring affine blocks as a merge candidate to the merge candidate list S1620. Figures 7 to 13 In this regard, repeated description is omitted.

[0194] The decoding device may derive motion information by using an affine motion model of an affine block among neighboring blocks spatially adjacent to the current block, and add the derived motion information to a merge candidate list. The neighboring blocks spatially adjacent to the current block may include at least one of a lower left block (A0), a left block (A1), an upper right block (B0), an upper block (B1), or an upper left block (B2) of the current block. According to a predetermined priority, neighboring blocks that are both affine blocks and available among the neighboring blocks may be sequentially added to the merge candidate list.

[0195] The decoding apparatus may add a history-based motion vector predictor (HMVP) to the merge candidate list S1630, and may add an average merge candidate to the merge candidate list S1640.

[0196] As an implementation method, the above Fig.16 Availability check and / or redundancy check are performed before adding candidates in each step. In addition, before adding motion information derived based on the affine motion model of the neighboring block, it can be confirmed whether the corresponding neighboring block is encoded by affine prediction.

[0197] In addition, before adding motion information derived based on an affine motion model of a neighboring block, it may be confirmed whether the number of spatial merging candidates added to the merging candidate list is less than M and / or whether the number of merging candidates included in the merging candidate list is less than a value obtained by subtracting N from the maximum number of merging candidate lists. Here, M and N represent predefined values. As an example, M may be defined as one of 4, 5, 6, or 7.

[0198] In addition, before adding HMVP, it can be confirmed whether the number of merge candidates included in the merge candidate list is a value obtained by subtracting 1 from the maximum number of the merge candidate list. In addition, before adding the average merge candidate, it can be confirmed whether the number of merge candidates included in the merge candidate list is less than the value obtained by subtracting 1 from the maximum number of the merge candidate list.

[0199] Fig.17 is a flowchart illustrating a method for configuring a merge candidate list according to an embodiment of the present disclosure.

[0200] Reference Fig.17 , describing a method for configuring a merge candidate list to which an embodiment of the present disclosure can be applied. Fig.17 The method for configuring the merge candidate list in is an example, and the present disclosure is not limited thereto. For example, Fig.17 The order of the steps shown may be changed, some steps may be omitted, and some steps may be added. Fig.17 Steps other than those shown.

[0201] In addition, the above can be applied equivalently Figure 4 and Fig.15 The embodiments described in Fig.17 In the implementation method described above, the Figure 4 and Fig.15 Duplicate description. In addition, Fig.17 In the implementation mode in, for the convenience of description, it is described by assuming that it is performed by a decoding device, but it is not limited to this and can also be equally applied to an encoding device.

[0202] Reference Fig.17 The decoding apparatus may add a spatial merge candidate to the merge candidate list S1700, and may add a temporal merge candidate to the merge candidate list S1710. Also, the decoding apparatus may add motion information of non-adjacent blocks as a merge candidate S1720.

[0203] The decoding apparatus may add the motion information derived by using the affine motion model of the affine block to the merge candidate list S1730. Figures 7 to 13 In this regard, repeated description is omitted.

[0204] The decoding device may derive motion information by using an affine motion model of an affine block, and add the derived motion information to a merge candidate list. Here, the affine block may include a neighboring block spatially adjacent to the current block and a block at a specific position that is not adjacent to the current block. The neighboring block spatially adjacent to the current block may include at least one of a lower left block (A0), a left block (A1), an upper right block (B0), an upper block (B1), or an upper left block (B2) of the current block. According to a predetermined priority, neighboring blocks that are both affine blocks and available among the neighboring blocks may be added to the merge candidate list in sequence.

[0205] Alternatively, non-adjacent blocks can be Figure 5 , Figure 6 , Figures 11 to 13 As an example, the blocks to be confirmed as blocks encoded in the affine mode may be 5 adjacent blocks and 18 non-adjacent blocks.

[0206] And, the decoding apparatus may add HMVP (ie, history-based motion vector predictor) to the merge candidate list S1740. The decoding apparatus may add an average merge candidate to the merge candidate list S1750.

[0207] As an implementation method, the above Fig.17 Availability check and / or redundancy check are performed before adding candidates in each step. In addition, before adding motion information of non-adjacent blocks as merge candidates, it can be confirmed whether the number of merge candidates included in the merge candidate list is less than the maximum number of the merge candidate list.

[0208] In addition, before adding the motion information derived based on the affine motion model of the neighboring block, it can be confirmed whether the corresponding neighboring block is encoded by affine prediction.

[0209] In addition, before adding motion information derived based on an affine motion model of a neighboring block, it may be confirmed whether the number of spatial merge candidates added to the merge candidate list is less than M and / or whether the number of merge candidates included in the merge candidate list is less than a value obtained by subtracting N from the maximum number of merge candidate lists. Here, M and N represent predefined values. As an example, M may be defined as 23.

[0210] In addition, before adding HMVP, it can be confirmed whether the number of merge candidates included in the merge candidate list is a value obtained by subtracting 1 from the maximum number of the merge candidate list. In addition, before adding the average merge candidate, it can be confirmed whether the number of merge candidates included in the merge candidate list is less than the value obtained by subtracting 1 from the maximum number of the merge candidate list.

[0211] Fig.16 and Fig.17The case where a candidate derived by using an affine motion model of a neighboring affine block is inserted into the merge candidate list as a separate candidate different from a spatial merge candidate or a non-adjacent spatial merge candidate is described above.

[0212] In another embodiment of the present disclosure, a candidate derived by using an affine motion model of a neighboring affine block may be inserted into the merge candidate list as a spatial merge candidate or a non-adjacent spatial merge candidate.

[0213] In other words, as an example, when configuring a spatial merge candidate, the decoding device may confirm whether a neighboring block of the current block is a block encoded in an affine mode. If the neighboring block of the current block is an affine block, the decoding device may add motion information derived by using an affine motion model of the corresponding affine block to the merge candidate list as a spatial merge candidate. Fig.14 S1400 and Fig.15 The relevant operations are performed in S1500.

[0214] In addition, as an example, when configuring non-adjacent spatial merge candidates, the decoding device may confirm whether the non-adjacent block is a block encoded in an affine mode. If the non-adjacent block is an affine block, the decoding device may add motion information derived by using an affine motion model of the corresponding affine block to the merge candidate list as a non-adjacent spatial merge candidate. Fig.15 The relevant operations are performed in S1520.

[0215] Fig.18 A rough configuration of the inter predictor 332 that performs inter prediction based on the merge mode as an embodiment according to the present disclosure is shown.

[0216] By reference Figure 4 The inter prediction method based on the affine model performed by the decoding device is described, which can be equally performed in the inter predictor 332 of the decoding device. Therefore, repeated description is omitted here.

[0217] Reference Fig.18 , the inter-frame predictor 332 may include a merge candidate list configuration unit 1800 , a motion information derivation unit 1810 , and a prediction sample generation unit 1820 .

[0218] The merge candidate list configuration unit 1800 may configure a merge candidate list of the current block.

[0219] The merge candidate list may include one or more merge candidates that can be used to derive motion information of the current block. The size of the merge candidate list may be variably determined based on information indicating the maximum number of merge candidates configuring the merge candidate list (hereinafter, size information). The size information may be encoded in the encoding device and notified with a signal, or may be a fixed value (e.g., 2, 3, 4, 5, 6 or a larger integer) pre-agreed in the decoding device.

[0220] The plurality of merge candidates included in the merge candidate list may include at least one of a spatial merge candidate or a temporal merge candidate.

[0221] Spatial merging candidates and temporal merging candidates are compared with the reference Figure 4 The same as described above, the detailed description is omitted here. In addition, the spatial merge candidate may also include a neighboring block that is not adjacent to the current block. Figure 5 and Figure 6 The description is the same, and the detailed description is omitted here.

[0222] The merge candidate list configuration unit 1800 may use the motion information derived by using the affine motion model of the neighboring affine blocks as a merge candidate of the non-affine merge mode. Figures 7 to 10 The description is the same, and the detailed description is omitted here.

[0223] In addition, the merge candidate list configuration unit 1800 can define the position of the neighboring affine block using the affine motion model. Figures 11 to 13 The description is the same, and the detailed description is omitted here.

[0224] In addition, the merge candidate list configuration unit 1800 may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a separate candidate different from a spatial merge candidate or a non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0225] In addition, the merge candidate list configuration unit 1800 may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a spatial merge candidate or a non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0226] The motion information derivation unit 1810 may derive motion information of the current block based on the merge candidate list and the merge index.

[0227] The merge index may specify any one of a plurality of merge candidates belonging to the merge candidate list. The motion information of the current block may be configured as the motion information of the merge candidate specified by the merge index.

[0228] The prediction sample generation unit 1820 may generate a prediction sample of the current block based on the derived motion information. The prediction sample generation unit 1820 may generate a prediction sample by performing motion compensation (ie, inter prediction) based on the derived motion information.

[0229] Fig.19 An inter-frame prediction method based on a merge mode performed by an encoding device according to an embodiment of the present disclosure is shown.

[0230] In the following, the inter-frame prediction method based on the affine model performed in the decoding device is referred to as Figure 4 A description is made, which can be equally / similarly applied to the inter-frame prediction method based on the affine model performed in the encoding device. Therefore, repeated description is omitted here.

[0231] The encoding apparatus may configure a merge candidate list of the current block S1900.

[0232] The merge candidate list may include one or more merge candidates that can be used to derive motion information of the current block. The size of the merge candidate list may be variably determined based on information indicating the maximum number of merge candidates configuring the merge candidate list (hereinafter, size information). The size information may be encoded in the encoding device and notified with a signal, or may be a fixed value (e.g., 2, 3, 4, 5, 6 or a larger integer) pre-agreed in the decoding device.

[0233] The plurality of merge candidates included in the merge candidate list may include at least one of a spatial merge candidate or a temporal merge candidate.

[0234] Spatial merging candidates and temporal merging candidates are compared with the reference Figure 4 The same as described above, the detailed description is omitted here. In addition, the spatial merge candidate may also include a neighboring block that is not adjacent to the current block. Figure 5 and Figure 6 The description is the same, and the detailed description is omitted here.

[0235] The encoding device may use the motion information derived by using the affine motion model of the neighboring affine blocks as a merge candidate of the non-affine merge mode. Figures 7 to 10 The description is the same, and the detailed description is omitted here.

[0236] In addition, the encoding device may define the position of the neighboring affine blocks using the affine motion model. Figures 11 to 13 The description is the same, and the detailed description is omitted here.

[0237] In addition, the encoding device may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a separate candidate different from the spatial merge candidate or the non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0238] In addition, the encoding device may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a spatial merge candidate or a non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0239] The encoding device may determine motion information of the current block based on the merge candidate list S1910. The encoding device may signal a merge index specifying a candidate for inter prediction of the current block among a plurality of candidates included in the merge candidate list to the decoding device.

[0240] The merge index may specify any one of a plurality of merge candidates belonging to the merge candidate list. The motion information of the current block may be configured as the motion information of the merge candidate specified by the merge index.

[0241] The encoding apparatus may generate a prediction sample of the current block based on the determined motion information S1920. The encoding apparatus may generate the prediction sample by performing motion compensation (ie, inter prediction) based on the determined motion information.

[0242] Fig. 20 A rough configuration of the inter predictor 221 that performs inter prediction based on the merge mode as an embodiment according to the present disclosure is shown.

[0243] The inter-frame prediction method based on the affine model implemented in the encoding device is obtained by referring to Fig.19 Description has been made, which can be equally performed in the inter-frame predictor 221 of the encoding device. Therefore, repeated description is omitted here.

[0244] Reference Fig. 20 , the inter-frame predictor 221 may include a merge candidate list configuration unit 2000 , a motion information determination unit 2010 , and a prediction sample generation unit 2020 .

[0245] The merge candidate list configuration unit 2000 may configure a merge candidate list of a current block.

[0246] The merge candidate list may include one or more merge candidates that can be used to derive motion information of the current block. The size of the merge candidate list may be variably determined based on information indicating the maximum number of merge candidates configuring the merge candidate list (hereinafter, size information). The size information may be encoded in the encoding device and notified with a signal, or may be a fixed value (e.g., 2, 3, 4, 5, 6 or a larger integer) pre-agreed in the decoding device.

[0247] The plurality of merge candidates included in the merge candidate list may include at least one of a spatial merge candidate or a temporal merge candidate.

[0248] Spatial merging candidates and temporal merging candidates are compared with the reference Figure 4 The same as described above, the detailed description is omitted here. In addition, the spatial merge candidate may also include a neighboring block that is not adjacent to the current block. Figure 5 and Figure 6 The description is the same, and the detailed description is omitted here.

[0249] The merge candidate list configuration unit 2000 may use the motion information derived by using the affine motion model of the neighboring affine blocks as a merge candidate of the non-affine merge mode. Figures 7 to 10 The description is the same, and the detailed description is omitted here.

[0250] In addition, the merge candidate list configuration unit 2000 can define the position of the neighboring affine block using the affine motion model. Figures 11 to 13 The description is the same, and the detailed description is omitted here.

[0251] In addition, the merge candidate list configuration unit 2000 may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a separate candidate different from a spatial merge candidate or a non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0252] In addition, the merge candidate list configuration unit 2000 may insert a candidate derived by using an affine motion model of a neighboring affine block into the merge candidate list as a spatial merge candidate or a non-adjacent spatial merge candidate. Fig.16 and Fig.17 The description is the same, and the detailed description is omitted here.

[0253] The motion information determining unit 2010 may determine the motion information of the current block based on the merge candidate list. The encoding device may signal a merge index specifying a candidate for inter prediction of the current block among a plurality of candidates included in the merge candidate list to the decoding device.

[0254] The merge index may specify any one of a plurality of merge candidates belonging to the merge candidate list. The motion information of the current block may be configured as the motion information of the merge candidate specified by the merge index.

[0255] The prediction sample generation unit 2020 may generate a prediction sample of the current block based on the determined motion information. The encoding apparatus may generate a prediction sample by performing motion compensation (ie, inter prediction) based on the determined motion information.

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

[0257] 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.

[0258] 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 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 another storage device. In other words, the embodiments described herein can be implemented on a processor, a microprocessor, a controller or a chip to perform. For example, the functional units shown in the various figures can be implemented on a computer, a processor, a microprocessor, a controller or a chip to perform. In this case, the information (e.g., information about instructions) or the algorithm used for implementation can be stored in a digital storage medium.

[0259] In addition, the decoding device and the encoding device to which the embodiments of the present disclosure are applied may be included in a multimedia broadcast sending and receiving device, a mobile communication terminal, a home theater video device, a digital theater video device, a surveillance camera, a video conversation device, a real-time communication device similar to video communication, a mobile streaming device, a storage medium, a camera, a device for providing a video on demand (VOD) service, an OTT (over the top) video device, a device for providing an Internet streaming service, a three-dimensional (3D) video device, a virtual reality (VR) device, an augmented reality (AR) device, a video phone video device, a transportation terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an aircraft terminal, a ship terminal, etc.) and a medical video device, etc., and may be used to process a video signal or a data signal. For example, an OTT (over the top) video device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smart phone, a tablet PC, a digital video recorder (DVR), etc.

[0260] In addition, the processing method to which the embodiments of the present disclosure are applied can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. The multimedia data with a data structure according to the embodiments of the present disclosure can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices and distributed storage devices that store computer-readable data. The computer-readable recording medium may include, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical media storage device. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (for example, transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium, or can be sent via a wired / wireless communication network.

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

[0262] Fig.21 An example of a content streaming system to which embodiments of the present disclosure can be applied is shown.

[0263] Reference Fig.21 , a content streaming system to which an embodiment of the present disclosure is applied may generally include an encoding server, a streaming server, a network server, a media storage, a user device, and a multimedia input device.

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

[0265] A bitstream may be generated by an encoding method or a bitstream generating method to which an embodiment of the present disclosure is applied, and a streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0266] The streaming server sends multimedia data to the user device through the network server based on the user request, and the network server serves as a medium to inform the user what services are available. When the user requests a desired service from the network server, the network server transmits the request 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 the various devices in the content streaming system.

[0267] 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 specific period of time.

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

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

[0270] The claims set forth herein may be combined in various ways. For example, the technical features of the method claims of the present disclosure may be combined and implemented as a device, and the technical features of the device claims of the present disclosure may 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 may 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 may be combined and implemented as a method.

Claims

1. An image decoding method, the image decoding method comprising the following steps: Configuring a merge candidate list of the current block, wherein the merge candidate list includes candidates derived using an affine motion model of an affine block encoded by affine prediction; deriving motion information of the current block based on the merge candidate list and a merge index, wherein the merge index indicates one of a plurality of candidates included in the merge candidate list; and Inter prediction is performed on the current block based on the motion information of the current block.

2. The image decoding method according to claim 1, wherein: The candidate motion information derived by using the affine motion model of the affine block is motion information derived from the affine motion model for a predefined position in the current block.

3. The image decoding method according to claim 2, wherein: The predefined position is defined as one of an upper left position, a lower left position, an upper right position, a lower right position, or a center position of the current block.

4. The image decoding method according to claim 1, wherein: The affine block is determined as a block encoded by the affine prediction among blocks at a predefined position based on the current block.

5. The image decoding method according to claim 4, wherein: Whether the affine block is a block encoded by the affine prediction among the blocks at the predefined positions is confirmed according to a predetermined priority.

6. The image decoding method according to claim 1, wherein: The affine block is determined as a block encoded by the affine prediction among spatial merging candidates of the current block.

7. The image decoding method according to claim 1, wherein: The affine block is determined as a block encoded by the affine prediction among non-adjacent spatial merging candidates that are not adjacent to the current block.

8. The image decoding method according to claim 7, wherein: Positions of non-adjacent spatial merging candidates that are not adjacent to the current block are adaptively determined based on the width and height of the current block.

9. The image decoding method according to claim 7, wherein: Positions of non-adjacent spatial merging candidates that are not adjacent to the current block are defined as specific positions in a grid having a predefined size.

10. The image decoding method according to claim 1, wherein: The merge candidate list includes multiple merge candidates. The multiple merge candidates include at least one of a spatial merge candidate having a motion vector of a block spatially adjacent to the current block, a temporal merge candidate having a motion vector of a block temporally adjacent to the current block, a non-adjacent spatial merge candidate having a motion vector of a block not spatially adjacent to the current block, or a candidate derived by using an affine motion model of an affine block.

11. The image decoding method according to claim 1, wherein: The inter prediction is performed by generating a prediction block of the current block from one reference block specified by the motion information of the current block.

12. A method for encoding an image, the method comprising the following steps: configuring a merge candidate list of the current block, wherein the merge candidate list includes candidates derived using an affine motion model of an affine block encoded by affine prediction, Determine motion information of the current block based on the merge candidate list; and Inter prediction is performed on the current block based on the motion information of the current block.

13. A computer-readable storage medium storing a bit stream generated by the image encoding method according to claim 12.

14. A method for transmitting data of image information, the method comprising the following steps: Configuring a merge candidate list of the current block, wherein the merge candidate list includes candidates derived using an affine motion model of an affine block encoded by affine prediction; Determine the motion information of the current block based on the merge candidate list; performing inter-frame prediction on the current block based on the motion information of the current block; generating a bitstream by encoding the current block based on a prediction block of the current block generated by the inter-frame prediction; and Data including the bit stream is transmitted.

Citation Information

Cited By

  • Decoding method and apparatus, coding method and apparatus, device, storage medium and program product

    WO2026156638A1