Image encoding / decoding method and apparatus

By encoding motion vector differences using an index-based method that defines specific areas or ranges, the method addresses inefficiencies in existing technologies, improving compression efficiency for high-resolution images.

US20260380002A1Pending Publication Date: 2026-11-26UNIVERSITY INDUSTRY COOPERATION GROUP OF KYUNG HEE UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/740985
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-03-07
Filing Date
2026-07-14
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing image encoding/decoding technologies face inefficiencies in the motion vector difference encoding process, leading to increased data transmission and storage costs for high-resolution, high-quality images.

Method used

The method involves deriving a motion vector prediction value and obtaining information about the motion vector difference, which is encoded using an index indicating an area containing a combination of x and y components, defined by specific ranges or linear functions, to improve compression efficiency.

Benefits of technology

This approach enhances compression efficiency by optimizing the encoding of motion vector differences, reducing the number of bits required for transmission and storage of high-resolution images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260380002A1-D00000_ABST
    Figure US20260380002A1-D00000_ABST
Patent Text Reader

Abstract

An image encoding / decoding method and apparatus are provided. An image decoding method may comprise deriving a motion vector prediction value of a current block, obtaining information regarding a motion vector difference of the current block, deriving the motion vector difference of the current block based on the information regarding the motion vector difference, and deriving a motion vector of the current block based on the motion vector prediction value and the motion vector difference. The information regarding the motion vector difference of the current block may comprise an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present invention relates to an image encoding / decoding method and apparatus, and, more particularly, to an image encoding / decoding method and apparatus which improves an encoding efficiency of motion vector differences.BACKGROUND ART

[0002] Recently, the demand for multimedia data, such as video, has been increasing rapidly In particular, the demand for high-resolution, high-quality images, such as HD (High Definition) images and UHD (Ultra High Definition) images, is increasing in various application fields. High-resolution, high-quality image data has a larger amount of data than conventional image data. Accordingly, the transmission and storage costs for storing and / or transmitting such high-resolution, high-quality image data increase compared to conventional image data.

[0003] To solve these problems, high-efficiency image encoding / decoding technology for images with higher resolution and quality is required.

[0004] To encode images, various techniques are used, such as intra prediction techniques that predict pixel values included in a current picture using pixel information within the current picture, inter prediction techniques that predict pixel values included in a current picture from a previous or subsequent picture of the current picture, transform and quantization techniques to compress the energy of a residual signal, which is a difference between a prediction signal and an original signal, and entropy coding techniques that assign short codes to values with high appearance frequency and long codes to values with low appearance frequency. Furthermore, to improve image encoding efficiency, various tools are being developed to implement each of these techniques. In addition, to decode the encoded image, the image may be reconstructed and reproduced through image decoding techniques that utilize technologies and tools corresponding to the image encoding techniques.

[0005] By utilizing these image encoding and image decoding techniques, image data may be effectively compressed, transmitted, stored, and played back.Technical Problem

[0006] An object of the present disclosure is to provide an image encoding / decoding method and apparatus that improves the inefficiency of a motion vector difference encoding process and enhances compression efficiency.

[0007] In addition, an object of the present disclosure is to provide an image encoding / decoding method and apparatus that enhances compression efficiency by improving a process of encoding information about motion vector differences.

[0008] Technical objects to be achieved in the present disclosure are not limited to what is mentioned above, and other technical objects not mentioned therein can be considered from the embodiments of the present disclosure to be described below by those skilled in the art to which a technical configuration of the present disclosure is applied.Technical Solution

[0009] An image decoding method according to an embodiment of the present invention may comprise deriving a motion vector prediction value of a current block, obtaining information regarding a motion vector difference of the current block, deriving the motion vector difference of the current block based on the information regarding the motion vector difference, and deriving a motion vector of the current block based on the motion vector prediction value and the motion vector difference. The information regarding the motion vector difference of the current block may comprise an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.

[0010] In the image decoding method, the area containing the at least one combination may be defined by a combination of a range of the x component and a range of the y component of the motion vector difference.

[0011] In the image decoding method, the index may indicate one area among a plurality of areas containing a combination of the range of the x component and the range of the y component, which are different from each other, of the motion vector difference.

[0012] In the image decoding method, the information regarding the motion vector difference of the current block may further comprise information indicating a difference between an area indicated by the index and the motion vector difference of the current block.

[0013] In the image decoding method, the area containing the at least one combination may be defined by a linear function of the x and y components of the motion vector difference.

[0014] In the image decoding method, the index may indicate one area among a plurality of areas defined by different linear functions.

[0015] In the image decoding method, the information regarding the motion vector difference of the current block may further comprise information indicating the value of one of the x and y components of the motion vector difference of the current block.

[0016] In the image decoding method, the information regarding the motion vector difference of the current block may further comprise information indicating a sign of the x component of the motion vector difference of the current block and a sign of the y component of the motion vector difference of the current block.

[0017] In the image decoding method, the area containing the at least one combination may be defined by a linear function of an absolute value of the x component and an absolute value of the y component of the motion vector difference.

[0018] In the image decoding method, the information regarding the motion vector difference of the current block may further comprise information indicating an absolute value of one of the x component and y component of the motion vector difference of the current block.

[0019] In the image decoding method, the information regarding the motion vector difference of the current block may further comprise information indicating a sign of the x component of the motion vector difference of the current block and information indicating a sign of the y component of the motion vector difference of the current block.

[0020] An image encoding method according to an embodiment of the present invention may comprise deriving a motion vector prediction value of a current block, obtaining information regarding a motion vector difference of the current block, deriving the motion vector difference of the current block based on the information regarding the motion vector difference, and deriving a motion vector of the current block based on the motion vector prediction value and the motion vector difference. The information regarding the motion vector difference of the current block may comprise an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.

[0021] In a non-transitory computer-readable recording medium for storing a bitstream generated by an image encoding method according to an embodiment of the present invention, the image encoding method may comprise deriving a motion vector prediction value of a current block, obtaining information regarding a motion vector difference of the current block, deriving the motion vector difference of the current block based on the information regarding the motion vector difference, and deriving a motion vector of the current block based on the motion vector prediction value and the motion vector difference. The information regarding the motion vector difference of the current block may comprise an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.

[0022] A method of transmitting a bitstream generated by an image encoding method according to an embodiment of the present invention may comprise transmitting the bitstream. The image encoding method may comprise deriving a motion vector prediction value of a current block, obtaining information regarding a motion vector difference of the current block, deriving the motion vector difference of the current block based on the information regarding the motion vector difference, and deriving a motion vector of the current block based on the motion vector prediction value and the motion vector difference. The information regarding the motion vector difference of the current block may comprise an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.Advantageous Effects

[0023] According to the present invention, it is possible to provide an image encoding / decoding method and apparatus that improve compression efficiency by improving the inefficiency of a motion vector difference encoding process.

[0024] According to the present invention, it is possible to provide a recording medium storing a bitstream generated by the image encoding method or apparatus of the present invention.

[0025] The effects obtainable from the present invention are not limited to the above-mentioned effects, and other effects not mentioned above will be clearly understood by those skilled in the art from the description below.DESCRIPTION OF DRAWINGS

[0026] FIG. 1 is a block diagram showing an image encoding apparatus according to an embodiment of the present invention.

[0027] FIG. 2 is a block diagram showing an image decoding apparatus according to an embodiment of the present invention.

[0028] FIG. 3 is a diagram schematically showing a video coding system to which the present invention is applicable.

[0029] FIG. 4 is a diagram exemplarily illustrating a content streaming system to which an embodiment of the present invention is applicable.

[0030] FIG. 5 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0031] FIG. 6 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0032] FIG. 7 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0033] FIG. 8 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0034] FIG. 9 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0035] FIG. 10 is a diagram illustrating a plurality of points for encoding a motion vector difference according to an embodiment of the present invention.

[0036] FIG. 11 is a diagram illustrating a plurality of linear areas for encoding a motion vector difference according to an embodiment of the present invention.

[0037] FIG. 12 is a diagram illustrating a plurality of linear areas for encoding a motion vector difference according to an embodiment of the present invention.

[0038] FIG. 13 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0039] FIG. 14 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0040] FIG. 15 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0041] FIG. 16 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0042] FIG. 17 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0043] FIG. 18 is a flowchart illustrating an image decoding method using information indicating an area containing a motion vector difference according to an embodiment of the present disclosure.MODE FOR INVENTION

[0044] The present invention may have various modifications and embodiments, and specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to specific embodiments, but should be understood to include all modifications, equivalents, or substitutes included in the spirit and technical scope of the present invention. In describing each drawing, similar reference numerals were used for similar components.

[0045] The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are only used for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component. The term and / or includes a combination of a plurality of related described items or any item among a plurality of related described items.

[0046] When it is said that a component is ‘coupled with / to’ or ‘connected to’ another component, it should be understood that the one component is connected to the other component directly or through any other component in between. On the other hand, when it is said that a component is ‘directly connected to’ or ‘directly coupled to’ another component, it should be understood that there is no other component between the components.

[0047] The terminology used in the present invention is only used to describe specific embodiments and is not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly indicates otherwise. In this application, terms such as “include” or “have” are intended to specify the presence of the features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood as not excluding the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0048] Hereinafter, embodiments of the present invention will be described in detail with reference to the attached drawings. Hereinafter, the same reference numerals are used for identical components in the drawings, and redundant descriptions of identical components will be omitted.

[0049] FIG. 1 is a block diagram showing an image encoding apparatus according to an embodiment of the present invention.

[0050] Referring to FIG. 1, the image encoding apparatus 100 may include an image partitioning unit 101, an intra prediction unit 102, an inter prediction unit 103, a subtractor 104, a transform unit 105, a quantizer 106, an entropy encoding unit 107, a dequantizer 108, an inverse transform unit 109, an adder 110, a filter unit 111, and a memory 112.

[0051] Each component shown in FIG. 1 is depicted independently to represent different characteristic functions of the image encoding apparatus, which does not imply that each component consists of separate hardware or a single software unit. That is, each component is listed and included as a separate component for convenience of explanation, and at least two components among components may be combined to form a single component, or a single component may be divided into multiple components to perform functions, and such integrated and separated embodiments of each component are included within the scope of the present invention as long as they do not deviate from the essence of the present invention.

[0052] In addition, some components may not be essential components that perform an essential function in the present invention, but may be optional components for improving performance. The present invention may be implemented by including only the components essential to the essence of the present invention, excluding the components used only for improving performance, and a structure including only the essential components, excluding the optional components used only for improving performance, is also included within the scope of the present invention.

[0053] The image partitioning unit 101 may divide an input image into at least one block. At this time, the input image or frame may be divided into tiles. The tiles are divided into superblocks having a predetermined size, and each superblock may be divided into blocks. The image partitioning unit 101 may recursively divide the superblock into blocks. Here, the superblock may be divided into 2 or 4 vertically or horizontally, or recursively divided into 4. Alternatively, the superblock may be divided once in the vertical and horizontal directions, respectively, into 3 blocks. In addition, the image partitioning unit 101 may divide the block into transform blocks, which are units of transform and / or prediction.

[0054] The prediction units 102 and 103 may include an intra prediction unit 102 that performs intra prediction and an inter prediction unit 103 that performs inter prediction. The prediction units 102 and 103 may determine whether to use intra prediction or perform inter prediction for a prediction unit. Additionally, the prediction units 102 and 103 may determine specific information (e.g., intra prediction mode, inter prediction mode, motion vector, reference picture, etc.) according to the determined prediction method. At this time, the processing unit in which the prediction is performed and the processing unit in which the prediction method and specific content are determined may be different. For example, the prediction units 102 and 103 may determine the prediction method and prediction mode, etc. for each prediction unit and perform prediction according to the transform unit.

[0055] According to another embodiment, the prediction unit may encode an input image using a third mode (e.g., IBC (intra block copy), Palette mode, etc.) that is a mode other than the intra mode and the inter mode. However, if a third mode has functional characteristics similar to the intra mode or the inter mode, the third mode may be classified as the intra mode or the inter mode. In this disclosure, the third mode will be described only when a specific description of the third mode is required.

[0056] The intra prediction unit 102 may generate a prediction block of the current block based on the intra prediction mode of the current block and reference pixel information around the current block, which is pixel information within the current picture. If the neighboring block of the current block is predicted by the inter prediction, the reference pixels included in the inter-predicted neighboring block may be replaced with reference pixels in another neighboring block that is intra-predicted. That is, if a reference pixel is not available, the intra prediction unit 102 may perform intra prediction of the current block by replacing an unavailable reference pixel with at least one of the available reference pixels.

[0057] The intra prediction modes used for intra prediction may include a directional prediction mode that uses reference pixel information according to the prediction direction, a non-directional mode that does not use directional information, a Recursive Intra prediction (RIP), and a Paeth intra prediction mode. Additionally, the mode for predicting luma information and the mode for predicting chroma information may be different, and the intra prediction mode information of the luma component block or the predicted luma signal information may be utilized to predict chroma information.

[0058] The intra prediction unit 102 may perform filtering on a reference sample or a prediction pixel. According to one embodiment, the intra prediction unit 102 may perform filtering on a reference sample according to the prediction mode, size and / or shape of the current prediction unit and generate a prediction sample using the filtered reference sample. According to another embodiment, the intra prediction unit 102 may generate a prediction sample and perform filtering on the prediction sample according to the prediction mode, size and / or shape of the current prediction unit to generate a filtered prediction sample. The intra prediction unit 102 may determine whether to perform filtering and / or the intensity of filtering based on at least one of the prediction mode, size, shape and encoding parameters of the current prediction unit.

[0059] The inter prediction unit 103 generates a prediction block using the previously reconstructed reference image stored in the memory 112, the inter block mode, the inter prediction mode, and motion information. Here, inter prediction may mean motion prediction or motion compensation.

[0060] Motion information may include, for example, motion vector stack information containing motion vector candidates, reference picture information, reference picture list indicators, motion compensation mode information, etc. Here, motion vector candidates may be motion vectors obtained as a result of performing spatial motion vector prediction and temporal motion vector prediction. Spatial motion vector prediction and temporal motion vector prediction may be performed dynamically.

[0061] The inter prediction unit 103 may perform motion vector prediction (MVP) to perform motion prediction and / or motion compensation, and may perform motion prediction and / or motion compensation for the prediction unit by applying a simple inter prediction mode, OBMC (Overlapped Block Motion Compensation), and a local warp mode that uses modified motion information based on an affine model to the encoding unit.

[0062] Alternatively, the inter prediction unit 103 may perform motion prediction and / or motion compensation for the prediction unit by applying a compound prediction mode that compounds different prediction values. For example, the inter prediction unit 103 may perform motion prediction and / or motion compensation for the prediction unit by applying compound wedge prediction, frame distance based compound prediction, inter-intra prediction, etc.

[0063] A residual block containing residual information, which is a difference between the prediction unit generated in the prediction units 102 and 103 and the original block of the prediction unit, may be generated. The generated residual block may be input into the transform unit 105 and transformed.

[0064] The subtractor 104 subtracts the prediction block generated by the intra prediction unit 102 or the inter prediction unit 103 from the block currently to be encoded to generate the residual block of the current block. The residual (residual block) between the generated prediction block and the original block may be input to the transform unit 105.

[0065] In addition, the prediction mode information and motion vector information used for prediction may be encoded in the entropy encoding unit 107 along with the residual value and transmitted to the decoder. When using a specific encoding mode, the original block may be encoded and transmitted to the decoder without generating the prediction block through the prediction units 102 and 103.

[0066] The transform unit 105 may perform transform on the residual block containing residual data to generate and output a transform coefficient. Here, the transform coefficient may be a coefficient value generated by performing a transform on the residual block. If there is no residual data, the transform unit 105 may omit the transform.

[0067] The transform unit 105 may determine a transform type and a transform kernel based on at least one of the coding parameters, such as the size of the transform block, color component, and prediction mode, and may perform transform on the transform block using the determined transform type and transform kernel.

[0068] According to one embodiment, the transform unit 105 may perform transform using the transform type and the transform kernel according to at least one of DCT (Discrete Cosine Transform), ADST (Asymmetric Discrete Sine Transform), IDTX (Identity Transform), and WHT (Walsh Hadamard Transform).

[0069] The quantizer 106 may quantize the transform coefficient or residual signal transformed into the frequency domain by the transform unit 105 according to a quantization parameter (QP). The quantization parameter may vary depending on the block or the importance of the image. The value calculated by the quantizer 106 may be provided to the dequantizer 108 and the entropy encoding unit 107.

[0070] The transform unit 105 and / or the quantizer 106 may be optionally included in the image encoding apparatus 100. That is, the image encoding apparatus 100 may perform at least one of transform or quantization on the residual data of the residual block, or may encode the residual block by skipping both transform and quantization. Even if neither transform nor quantization is performed in the image encoding apparatus 100, or if neither transform nor quantization is performed, the block input to the entropy encoding unit 107 is typically referred to as the transform block.

[0071] The entropy encoding unit 107 may generate and output a bitstream by performing entropy encoding according to a probability distribution on values output by the quantizer 106, coding parameter values output during the encoding process, information for decoding an image, etc. Here, the information for decoding an image may include syntax elements, etc.

[0072] Coding parameters may include information (flags, indices, etc.) that is encoded in the encoding apparatus 100 and signaled to the decoding apparatus 200, such as syntax elements, as well as information derived during the encoding or decoding process, and may mean information required when encoding or decoding images.

[0073] The entropy encoding unit 107 may encode various information such as coefficient information of a transform block, block type information, prediction mode information, partitioning unit information, prediction unit information, transmission unit information, motion vector information, reference frame information, block interpolation information, and filtering information. The entropy encoding unit 107 may apply arithmetic coding to multiple symbols. Also, the entropy encoding unit 107 may encode coefficients based on multiple levels. Here, the entropy encoding unit 107 may use an exponential Golomb coding method.

[0074] The dequantizer 108 and the inverse transform unit 109 may inversely quantize the values quantized by the quantizer 106 and inversely transform the values transformed by the transform unit 105. The residual value generated by the dequantizer 108 and the inverse transform unit 109 may be combined with the prediction unit predicted through the motion estimation unit, motion compensation unit, and intra prediction unit 102 included in the prediction units 102 and 103 to generate a reconstructed block. The adder 110 generates a reconstructed block by adding the prediction block generated by the prediction units 102 and 103 and the residual block generated through the inverse transform unit 109.

[0075] The filter unit 111 may apply edge loop filter, adaptive loop filter (ALF), CDEF (Constrained Directional Enhancement Filter), loop restoration filter, etc., to the restored sample, restored block, or restored image as a whole or part of the filtering technique.

[0076] The memory 112 may store a restored block or picture calculated through the filter unit 111. The memory 112 may include a reference picture buffer. Additionally, the stored restored block or picture in memory 112 may be provided to the prediction units 102 and 103 when performing inter prediction.

[0077] Next, an image decoding apparatus according to one embodiment of the present invention will be described with reference to the drawings.

[0078] FIG. 2 is a block diagram showing an image decoding apparatus 200 according to an embodiment of the present invention.

[0079] Referring to FIG. 2, the image decoding apparatus 200 may include an entropy decoding unit 201, a dequantizer 202, an inverse transform unit 203, prediction units 204 and 205, an adder 206, a filter unit 207, and a memory 208.

[0080] The image decoding apparatus 200 may receive a bitstream output by the image encoding apparatus 100. The image decoding apparatus 200 may receive a bitstream stored in a computer-readable recording medium or a bitstream stream streamed through a wired / wireless transmission medium. The image decoding apparatus 200 may decode the bitstream to generate a restored image or a decoded image, and may output the restored image or the decoded image.

[0081] The entropy decoding unit 201 may generate symbols by performing entropy decoding according to the probability distribution of the bitstream. The generated symbols may include symbols in the form of quantized levels. Here, the entropy decoding method may be the inverse process of the entropy encoding method described above.

[0082] The entropy decoding unit 201 may change one-dimensional vector-shaped coefficients into two-dimensional block-shaped coefficients through a transform coefficient scanning method to decode transform coefficient levels (quantized levels).

[0083] The entropy decoding unit 201 may perform entropy decoding as the opposite procedure to the entropy encoding performed in the entropy encoding unit 107 of the image encoding apparatus 100. For example, the entropy decoding unit 201 may perform entropy decoding by applying a method such as multi-level arithmetic encoding, exponential Golomb, etc., corresponding to the method performed by the image encoder.

[0084] The entropy decoding unit 201 may decode and obtain various information such as coefficient information of the transform block, block type information, prediction mode information, partitioning unit information, prediction unit information, transmission unit information, motion vector information, reference frame information, block interpolation information, and filtering information.

[0085] The dequantizer 202 performs dequantization on the quantized transform block to generate the transform block. The dequantizer 202 operates substantially the same as the dequantizer 108 of FIG. 1.

[0086] The inverse transform unit 203 performs inverse transform on the transform block to generate a residual block. At this time, the transform method may be determined based on information regarding the prediction method (inter or intra prediction), the size and / or shape of the block, the intra prediction mode, etc. The inverse transform unit 203 operates substantially the same as the inverse transform unit 109 of FIG. 1.

[0087] The prediction units 204 and 205 may generate a prediction block based on the prediction block generation related information provided by the entropy decoding unit 201 and the previously decoded block or picture information provided by the memory 208.

[0088] The prediction units 204 and 205 may include an intra prediction unit 204 and an inter prediction unit 205. The prediction units 204 and 205 receive various information such as prediction unit information received from the entropy decoding unit 201, prediction mode information of the intra prediction method, and motion prediction related information of the inter prediction method, and may distinguish the prediction unit from the current encoding unit and determine the prediction mode of the prediction unit.

[0089] The intra prediction unit 204 may generate a prediction block of a current block based on the intra prediction mode of the current block and reference pixel information around the current block, which is pixel information within a current picture.

[0090] The intra prediction mode used for intra prediction may be one of a directional prediction mode, non-directional mode, RIP, or Paeth intra prediction mode. Additionally, the mode for predicting luma information and the mode for predicting chroma information may be different, and the intra prediction mode information of the luma component block or the predicted luma signal information may be utilized to predict chroma information.

[0091] According to one embodiment, the intra prediction unit 204 may perform filtering on a reference sample and generate a prediction sample using the filtered reference sample. Alternatively, the intra prediction unit 204 may generate a prediction sample and perform filtering on the prediction sample to generate a filtered prediction sample. Here, whether filtering is applied and the strength of the applied filtering may be determined based on at least one of the prediction mode, size, shape, and encoding parameters of the current prediction unit.

[0092] The intra prediction unit 204 operates substantially the same as the intra prediction unit 102 of FIG. 1.

[0093] The inter prediction unit 205 may perform inter prediction on the current prediction unit based on information included in at least one of the previous or subsequent pictures of the current picture including the current prediction unit, using information necessary for inter prediction of the current prediction unit provided by the image encoding apparatus 100. Alternatively, inter prediction may be performed based on information on some pre-restored areas within the current picture including the current prediction unit. The inter prediction unit 205 generates a prediction block using a reference image, an inter prediction mode, and motion information. Here, inter prediction may mean motion compensation.

[0094] Motion information may include motion vector stack information including motion vector candidates, reference picture information, reference picture list indicator, motion compensation mode information, etc.

[0095] The inter prediction unit 205 may operate substantially the same as the inter prediction unit 103 of FIG. 1.

[0096] The adder 206 generates a restoration block by adding the prediction block generated by the intra prediction unit 204 or the inter prediction unit 205 and the residual block generated through the inverse transform unit 203. It operates substantially the same as the adder 110 of FIG. 1.

[0097] The filter unit 207 may reduce various types of noise occurring in the restored blocks. The filter unit 207 may include an edge loop filter, an adaptive loop filter (ALF), a CDEF (Constrained Directional Enhancement Filter), a loop restoration filter, etc.

[0098] The filter unit 207 may receive information regarding whether each filter is applied, information regarding the filter strength, etc. from the image encoding apparatus 100. The filter unit 207 of the image decoding apparatus 200 may receive filter-related information provided by the image encoding apparatus 100 and perform filtering on the corresponding block in the image decoding apparatus 200.

[0099] The filter unit 207 may operate substantially the same as the filter unit 111 of FIG. 1.

[0100] The memory 208 may store a restored block generated by the adder 206. For example, the memory 208 may include a reference picture buffer. The memory 208 may operate substantially the same as the memory 112 of FIG. 1.

[0101] FIG. 3 is a diagram schematically showing a video coding system to which the present invention is applicable.

[0102] The video coding system according to one embodiment may include an encoding apparatus 10 and a decoding apparatus 20. The encoding apparatus 10 may transmit encoded video and / or image information or data to the decoding apparatus 20 via a digital storage medium or network in the form of a file or streaming.

[0103] The encoding apparatus 10 according to one embodiment may include an image generator 11, an encoding unit 12, and a transmission unit 13. The decoding apparatus 20 according to one embodiment may include a reception unit 21, a decoding unit 22, and an image playback unit 23. The encoding unit 12 may be called a video / image encoding unit, and the decoding unit 22 may be called a video / image decoding unit. The transmission unit 13 may be included in the encoding unit 12. The reception unit 21 may be included in the decoding unit 22. The image playback unit 23 may include a display unit, and the display unit may be composed of a separate device or an external component.

[0104] The image generator 11 may acquire a video / image through a process of capturing, synthesizing, or generating a video / image. The image generator 11 may include a video / image capture device and / or a video / image generation device. The video / image capture device may include, for example, one or more cameras, a video / image archive containing a previously captured video / image, etc. The video / image generation device may include, for example, a computer, a tablet, and a smartphone, etc., and may generate a video / image (electronically). For example, a virtual video / image may be generated through a computer, etc., in which case the video / image capture process may be replaced by a process of generating related data.

[0105] The encoding unit 12 may encode the input video / image. The encoding unit 12 may perform a series of procedures such as prediction, transform, and quantization for compression and encoding efficiency. The encoding unit 12 may output the encoded data (encoded video / image information) in the form of a bitstream. The detailed configuration of the encoding unit 12 may be configured in the same way as the encoding apparatus 100 of FIG. 1 described above.

[0106] The transmission unit 13 may transmit the encoded video / image information or data output in the form of a bitstream to the reception unit 21 of the decoding apparatus 20 via a digital storage medium or network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit 13 may include elements for generating a media file through a predetermined file format and elements for transmission via a broadcast / communication network. The reception unit 21 may extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit 22.

[0107] The decoding unit 22 may decode a video / image by performing a series of procedures such as dequantization, inverse transform, and prediction corresponding to the operation of the encoding unit 12. The detailed configuration of the decoding unit 22 may be configured in the same way as the decoding apparatus 200 of FIG. 2 described above.

[0108] The image playback unit 23 may render the decoded video / image. The rendered video / image may be displayed through the display unit.

[0109] FIG. 4 is a diagram exemplarily illustrating a content streaming system to which an embodiment of the present invention is applicable.

[0110] As illustrated in FIG. 4, a content streaming system to which an embodiment of the present invention is applied may largely include a multimedia input device, a media storage, an encoding server, a streaming server, a web server, and a user device.

[0111] The encoding server compresses content received from multimedia input devices such as smartphones, cameras, and CCTVs into digital data to generate a bitstream and transmits it to the streaming server. Alternatively, the encoding server compresses content pre-stored in a media storage into digital data to generate a bitstream and transmits it to the streaming server.

[0112] As another example, when multimedia input devices such as smartphones, cameras, and CCTVs generate the bitstream directly, the encoding server may be omitted.

[0113] The bitstream may be generated by an image encoding method and / or image encoding apparatus to which an embodiment of the present invention is applied, and the streaming server may temporarily or non-temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0114] The streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server may act as an intermediary that informs the user of any available services. When a user device requests a desired service from the web server, the web server transmits it to the streaming server, and the streaming server may transmit multimedia data to the user device. At this time, the content streaming system may include a separate control server, and in this case, the control server may control commands / responses between devices within the content streaming system.

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

[0116] Examples of the user devices may include mobile phones, smartphones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, HMDs), digital TVs, desktop computers, digital signage, etc.

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

[0118] According to a video encoding method, only a difference value between a current block and a reference block may be encoded in order to eliminate spatial information redundancy between the current block and the reference block. In addition, the encoder may transmit information regarding the difference value between the encoded coding block and the reference block to the decoder. Here, the encoder may encode a motion vector difference (mvd) between the motion vector of the current block and the motion vector prediction (mvp) of the current block, and transmit the encoded motion vector difference to the decoder.

[0119] To represent relative movement in two dimensions, the x and y components of the motion vector difference may be derived. The values of the x and y components of the motion vector difference may be encoded. For example, if the motion vector of the current block is (5, 4) and the motion vector prediction is (1, 2), the motion vector difference may be (4, 2). The value 4 of the x component and the value 2 of the y component of the motion vector difference may be encoded, respectively.

[0120] Here, as the resolution of the video increases, the number of transmission bits used to code the motion vector difference may increase. Accordingly, the inefficiency in representing the motion vector difference used in video encoding methods may increase.

[0121] According to the VVC standard, MMVD (merge mode with motion vector difference) is defined to efficiently encode the motion vector difference. However, the MMVD method is a mode dependent on the merge mode among inter predictions, and may only encode the difference value of motion vector derived by the merge mode. Also, according to the MMVD method, only motion vector differences expressed on the x-axis or y-axis may be encoded. That is, the MMVD method may only encode limited motion vector differences.

[0122] According to one embodiment of the present disclosure, instead of encoding the x and y components of the motion vector difference independently, the x and y components of the motion vector difference may be encoded as a group. Specifically, to encode the motion vector difference, at least one area in which the motion vector difference may be distributed in a coordinate system may be defined. In addition, information indicating the area containing the motion vector difference may be encoded. In addition, information indicating the relative position of the motion vector difference within a predetermined area may be further encoded.

[0123] FIG. 5 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0124] Referring to FIG. 5, a predetermined area may be defined in a coordinate system. Specifically, the predetermined area may be defined as −a1≤x≤a2 or −a3≤y≤a4. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include a flag indicating whether the motion vector difference value is present within the predetermined area.

[0125] For example, if the values of a1, a2, a3 and a4 are 1 and the motion vector difference is (1, 0), the motion vector difference is present in a predetermined area. Therefore, the value of the flag may have a first value. On the other hand, if the motion vector difference is (2, 2), the motion vector difference is not present in a predetermined area. Therefore, the value of the flag may have a second value.

[0126] If the information used to encode the motion vector difference further includes sign-related information, the predetermined area may be defined as 0≤x≤a1 or 0≤y≤a3.

[0127] FIG. 6 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0128] Referring to FIG. 6, a predetermined area may be defined in a coordinate system. Specifically, the predetermined area may be defined as −a1≤x≤a2 and −a3≤y≤a4. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include a flag indicating whether a motion vector difference value is present within the predetermined area.

[0129] For example, if the values of a1, a2, a3 and a4 are 1 and the motion vector difference is (1, 0), the motion vector difference is present in the predetermined area. Therefore, the value of the flag may have a first value. On the other hand, if the motion vector difference is (2, 2), the motion vector difference is not present in the predetermined area. Therefore, the value of the flag may have a second value.

[0130] If the information used to encode the motion vector difference further includes sign-related information, the predetermined area may be defined as 0≤x≤a1 and 0≤y≤a3.

[0131] FIG. 7 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0132] Referring to FIG. 7, a predetermined area may be defined in a coordinate system. Specifically, the predetermined area may be defined as −a1≤x+y≤a2. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include a flag indicating whether a motion vector difference value is present within the predetermined area.

[0133] For example, if the values of a1 and a2 are 1 and the motion vector difference is (1, 0), the motion vector difference is present in the predetermined area. Therefore, the value of the flag may have a first value. On the other hand, if the motion vector difference is (2, 2), the motion vector difference is not present in the predetermined area. Therefore, the value of the flag may have a second value.

[0134] If the information used to encode the motion vector difference further includes sign-related information, the predetermined area may be defined as 0≤x+y≤a1.

[0135] FIG. 8 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0136] Referring to FIG. 8, a predetermined area may be defined in a coordinate system. Specifically, the predetermined area may be defined as −a1≤x−y≤a2. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include a flag indicating whether a motion vector difference value is present within the predetermined area.

[0137] For example, if the values of a1 and a2 are 1 and the motion vector difference is (1, 0), the motion vector difference is present in the predetermined area. Therefore, the value of the flag may have a first value. On the other hand, if the motion vector difference is (2, 2), the motion vector difference is not present in the predetermined area. Therefore, the value of the flag may have a second value.

[0138] If the information used to encode the motion vector difference further includes sign-related information, the predetermined area may be defined as 0≤x−y≤a1.

[0139] In addition, the predetermined area may be set in various ways. In this case, the encoder may encode information indicating a method of defining a predetermined area and transfer the encoded information to the decoder. Alternatively, the encoder and decoder may derive a method of defining a predetermined area based on coding parameters of blocks adjacent to a current block.

[0140] FIG. 9 is a diagram illustrating a predetermined area for encoding a motion vector difference according to an embodiment of the present invention.

[0141] Referring to FIG. 9, a predetermined area may be defined in a coordinate system. Specifically, the predetermined area may be defined as |x|+|y|≤a1. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include a flag indicating whether a motion vector difference value is present within the predetermined area.

[0142] For example, if the value of a1 is 1 and the motion vector difference is (1, 0), the motion vector difference is present in the predetermined area. Therefore, the value of the flag may have a first value. On the other hand, if the motion vector difference is (2, 2), the motion vector difference is not present in the predetermined area. Therefore, the value of the flag may have a second value.

[0143] Alternatively, the predetermined area may be defined as a1≤|x|+|y|≤a2. In this case as well, information regarding an area containing a motion vector difference may be defined. Information regarding an area containing a motion vector difference may include a flag indicating whether a motion vector difference value is present within the predetermined area.

[0144] In addition, the predetermined area may be set in various ways. In this case, the encoder may encode information indicating a method of defining a predetermined area and transfer the encoded information to the decoder. Alternatively, the encoder and decoder may derive a method of defining a predetermined area based on coding parameters of blocks adjacent to a current block.

[0145] According to one embodiment of the present disclosure, a plurality of points are defined in a coordinate system, and information indicating a point corresponding to a motion vector difference may be encoded.

[0146] FIG. 10 is a diagram illustrating a plurality of points for encoding a motion vector difference according to an embodiment of the present invention.

[0147] Referring to FIG. 10, a plurality of points may be defined in a coordinate system. For example, the plurality of points may be (0, 0), (0, 1), and (1, 1). In addition, information indicating a point corresponding to a motion vector difference may be defined. The information indicating a point corresponding to a motion vector difference may include an index indicating a point corresponding to a motion vector difference value among the plurality of points.

[0148] For example, if the index value is 0, the point (0, 0) may be indicated. If the index value is 1, the point (0, 1) may be indicated. If the index value is 2, the point (1, 0) may be indicated. In addition, if the index value is 3, it may indicate that it corresponds to a point other than that. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0149] Alternatively, the plurality of points may be (0, 0), (1, 0), (−1, 0), (0, 1), (0, −1), (1, 1), (−1, 1), (1, −1), and (−1, −1). The information indicating the point corresponding to the motion vector difference may indicate one of the plurality of points.

[0150] When the information used to encode the motion vector difference further includes sign-related information, the plurality of points may be defined as (0, 0), (1, 0), (0, 1), (1, 1).

[0151] In addition, the predetermined points may be set in various ways. In this case, the encoder may encode information indicating a method of defining the predetermined points and transfer the encoded information to the decoder. Alternatively, the encoder and decoder may derive a method of defining the predetermined points based on coding parameters of blocks adjacent to a current block.

[0152] According to one embodiment of the present disclosure, instead of encoding the x and y components of the motion vector difference independently, the x and y components of the motion vector difference may be encoded as a group. Specifically, to encode the motion vector difference, at least one linear area in which the motion vector difference may be distributed in a coordinate system may be defined. In addition, information indicating the linear area containing the motion vector difference may be encoded.

[0153] FIG. 11 is a diagram illustrating a plurality of linear areas for encoding a motion vector difference according to an embodiment of the present invention.

[0154] Referring to FIG. 11, a plurality of linear areas may be defined in a coordinate system. For example, the plurality of linear areas may be defined as a first linear area where x+y=0, a second linear area where x+y=a1, and a third linear area where x+y=−a2. For example, a1 and a2 may be 1. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating a linear area containing a motion vector difference value among the plurality of areas.

[0155] Here, if the index value is 0, the motion vector difference may be located in the first linear area. If the index value is 1, the motion vector difference may be located in the second linear area. If the index value is 2, the motion vector difference may be located in the third linear area. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding linear areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0156] Alternatively, the information used to encode the motion vector difference may further include sign-related information. In this case, the plurality of linear areas may be defined as a first linear area where x+y=0, a second linear area where x+y=a1, and a third linear area where x+y=a2. Here, a1 and a2 may be positive real numbers.

[0157] FIG. 12 is a diagram illustrating a plurality of linear areas for encoding a motion vector difference according to an embodiment of the present invention.

[0158] Referring to FIG. 12, a plurality of linear areas may be defined in a coordinate system. For example, the plurality of linear areas may be defined as a first linear area where x−y=0, a second linear area where x−y=a1, and a third linear area where x−y=−a2. For example, a1 and a2 may be 1. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating a linear area containing a motion vector difference value among the plurality of areas.

[0159] Here, if the index value is 0, the motion vector difference may be located in the first linear area. If the index value is 1, the motion vector difference may be located in the second linear area. If the index value is 2, the motion vector difference may be located in the third linear area. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding linear areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0160] Alternatively, the information used to encode the motion vector difference may further include sign-related information. In this case, the plurality of linear areas may be defined as a first linear area where x−y=0, a second linear area where x−y=a1, and a third linear area where x−y=a2. Here, a1 and a2 may be positive real numbers.

[0161] In addition, the predetermined linear areas may be set in various ways. In this case, the encoder may encode information indicating a method of defining the predetermined linear areas and transfer the encoded information to the decoder. Alternatively, the encoder and decoder may derive the method of defining the predetermined linear areas based on coding parameters of blocks adjacent to a current block.

[0162] Alternatively, the predetermined linear areas may be defined as ax+by=c, where a, b, and c can be any real numbers. In addition, the number of predetermined linear areas may be three or more. In this case, the index may have an integer value of 3 or more.

[0163] According to one embodiment of the present disclosure, in order to encode a motion vector difference, a plurality of predetermined areas in which the motion vector difference may be distributed in a coordinate system may be defined. In addition, information indicating a predetermined area containing the motion vector difference among the plurality of predetermined areas may be encoded. In addition, information indicating the relative position of the motion vector difference in a predetermined area containing the motion vector difference may be further encoded.

[0164] FIG. 13 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0165] Referring to FIG. 13, a plurality of predetermined areas may be defined in a coordinate system. Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as −a1≤x≤a2 or −a3≤y≤a4, and a third area defined as −a5≤x≤a6 or −a7≤y≤a8. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating an area containing a motion vector difference value among the plurality of areas.

[0166] Here, if the index value is 0, the motion vector difference may be located in the first area. If the index value is 1, the motion vector difference may be located in the second area excluding the first area. If the index value is 2, the motion vector difference may be located in the third area excluding the first and second areas. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0167] The information used to encode the motion vector difference may further include sign-related information. In this case, the predetermined areas may include a first area including (0, 0), a second area defined as 0≤x≤a1 or 0≤y≤a2, and a third area defined as 0≤x≤a3 or 0≤y≤a4.

[0168] FIG. 14 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0169] Referring to FIG. 14, a plurality of predetermined areas may be defined in a coordinate system. Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as −a1≤x≤a2 and −a3≤y≤a4, and a third area defined as −a5≤x≤a6 and −a7≤y≤a8. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating an area containing a motion vector difference value among the plurality of areas.

[0170] Here, if the index value is 0, the motion vector difference may be located in the first area. If the index value is 1, the motion vector difference may be located in the second area excluding the first area. If the index value is 2, the motion vector difference may be located in the third area excluding the first and second areas. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0171] The information used to encode the motion vector difference may further include sign-related information. In this case, the predetermined areas may include a first area including (0, 0), a second area defined as 0≤x≤a1 and 0≤y≤a2, and a third area defined as 0≤x≤a3 and 0≤y≤a4.

[0172] FIG. 15 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0173] Referring to FIG. 15, a plurality of predetermined areas may be defined in a coordinate system. Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as x+y≤a1, and a third area defined as x+y≤a2. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating an area containing a motion vector difference value among the plurality of areas.

[0174] Here, if the index value is 0, the motion vector difference may be located in the first area. If the index value is 1, the motion vector difference may be located in the second area excluding the first area. If the index value is 2, the motion vector difference may be located in the third area excluding the first and second areas. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0175] As separate information for defining the plurality of predetermined areas, if sign-related information is defined, the predetermined areas may be defined by taking the sign-related information into account.

[0176] Alternatively, a linear function for defining the predetermined linear areas may be defined as ax+by=c, where a, b, and c may be any real numbers.

[0177] FIG. 16 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0178] Referring to FIG. 16, a plurality of predetermined areas may be defined in a coordinate system. Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as x−y≤a1, and a third area defined as x−y≤a2. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating an area containing a motion vector difference value among the plurality of areas.

[0179] Here, if the index value is 0, the motion vector difference may be located in the first area. If the index value is 1, the motion vector difference may be located in the second area excluding the first area. If the index value is 2, the motion vector difference may be located in the third area excluding the first and second areas. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0180] As separate information for defining the plurality of predetermined areas, if sign-related information is defined, the predetermined areas may be defined by taking the sign-related information into account.

[0181] Alternatively, a linear function for defining the predetermined linear areas may be defined as ax+by=c, where a, b, and c may be any real numbers.

[0182] FIG. 17 is a diagram illustrating a plurality of areas for encoding a motion vector difference according to an embodiment of the present invention.

[0183] Referring to FIG. 17, a plurality of predetermined areas may be defined in a coordinate system. Here, the plurality of predetermined areas may be defined based on a sum of the absolute values of the components of the motion vector difference.

[0184] Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as |x|+|y|=a1, and a third area defined as |x|+|y|=a2. In addition, information regarding the areas containing a motion vector difference may be defined. The information regarding an area containing the motion vector difference may include an index indicating an area containing the motion vector difference value among the plurality of areas. Since the plurality of predetermined areas are defined based on the absolute values of the components of the motion vector difference, the index may indicate the absolute values of the components of the motion vector difference.

[0185] Here, when the index value is 0, the motion vector difference is located in the first area, and the sum of the absolute values of the x and y components of the motion vector difference may be 0. When the index value is 1, the motion vector difference is located in the second area, and the sum of the absolute values of the x and y components of the motion vector difference may be 1. When the index value is 2, the motion vector difference is located in the third area, and the sum of the absolute values of the x and y components of the motion vector difference may be 2. In addition, when the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0186] According to another embodiment, a plurality of predetermined areas may be defined in a coordinate system. Here, the plurality of predetermined areas may be defined based on the range of the sum of the absolute values of the components of the motion vector difference. For example, when the sample unit of the motion vector difference is a fractional sample, the plurality of predetermined areas may be defined based on the range of the sum of the absolute values of the components of the motion vector difference.

[0187] Referring to FIG. 17, a plurality of predetermined areas may be defined in a coordinate system. Specifically, the predetermined areas may include a first area including (0, 0), a second area defined as |x|+|y|≤a1, and a third area defined as |x|+|y|≤a2. In addition, information regarding an area containing a motion vector difference may be defined. The information regarding an area containing a motion vector difference may include an index indicating an area containing a motion vector difference value among the plurality of areas.

[0188] Here, if the index value is 0, the motion vector difference may be located in the first area. If the index value is 1, the motion vector difference may be located in the second area excluding the first area. If the index value is 2, the motion vector difference may be located in the third area excluding the first and second areas. In addition, if the index value is 3, the motion vector difference may be located in an area other than the corresponding predetermined areas. In this case, additional information regarding the motion vector difference may be transmitted to the decoder.

[0189] Despite the information regarding the motion vector difference, if the component (x, y) of the motion vector difference is not determined to a specific value, additional information to specify the component (x, y) of the motion vector difference may be transmitted. For example, additional information to specify the component (x, y) of the motion vector difference may be transmitted along with information regarding whether the motion vector difference is included in a predetermined area.

[0190] For example, if the motion vector difference is (3,3) and the predetermined area is defined as 2≤x≤4 and 2≤y≤4, the information regarding the motion vector difference may include information indicating that the motion vector difference is located in the predetermined area. In addition, the information regarding the motion vector difference may further include information indicating (1, 1), which is the relative position of the motion vector difference from (2, 2), which is a point having the minimum x value and minimum y value of the predetermined area.

[0191] Here, the x and y components at the relative position of the motion vector difference may be encoded independently. Alternatively, the x and y components at the relative position of the motion vector difference may be encoded using a table defined by combining the components.

[0192] Alternatively, if at least one predetermined area is defined by the operation of the x component and the y component, the information regarding the motion vector difference may include information indicating that the motion vector difference is located in the predetermined area. In addition, the information regarding the motion vector difference may further include additional information for specifying at least one of the x component or the y component of the motion vector difference. Here, the additional information may be information for specifying one of the x component or the y component. In addition, the additional information may specify one of the x component or the y component of the motion vector difference by considering the relative position of the motion vector difference in the predetermined area.

[0193] For example, at least one predetermined area may be defined as a first area defined as x+y=0, a second area defined as x+y=1, and a third area defined as x+y=2. Here, if the area is specified by information indicating a predetermined area where the motion vector difference is located (e.g., x+y=2) and additional information indicates that the x component of the motion vector difference is 2, the motion vector difference may be specified as (2, 0).

[0194] Alternatively, additional information may be information indicating one of the possible combinations within the predetermined area. Specifically, additional information may be defined as an index or offset indicating one of the values of the motion vector difference defined in the predetermined area.

[0195] For example, at least one predetermined area may be defined as a first area defined as x+y=0, a second area defined as x+y=1, and a third area defined as x+y=2. Here, if the area is specified by information indicating a predetermined area where the motion vector difference is located (e.g., x+y=2) and additional information indicates one of the motion vector difference values (e.g., (0, 2), (1, 1), (2, 0)) in the predetermined area, the motion vector difference may be specified.

[0196] Alternatively, if at least one predetermined area is defined by the operation of the absolute value of the x component and the absolute value of the y component, the information regarding the motion vector difference may include information indicating that the motion vector difference is located in the predetermined area. Furthermore, the information regarding the motion vector difference may further include additional information for specifying at least one of the x component or the y component of the motion vector difference. According to one embodiment, the additional information may include information indicating the absolute value of the x component or the y component of the motion vector difference. Additionally, it may include at least one of information indicating the sign of the x component of the motion vector difference and information indicating the sign of the y component.

[0197] For example, at least one predetermined area may be defined as a first area defined as (0, 0), a second area defined as |x|+|y|=1, and a third area defined as |x|+|y|=2. Here, if the area is specified by information indicating a predetermined area where the motion vector difference is located (e.g., |x|+|y|=2) and the absolute value of the x component (e.g., |x|=1) and the signs of the x and y components are specified by additional information (e.g., x≥0, y≤0), the motion vector difference may be specified as (1, −1).

[0198] In the inter prediction process of the current block, the Adaptive Motion Vector Resolution (AMVR) method may be applied. AMVR is a technique that may encode and decode the resolution of the motion vector difference of the current block in various ways. That is, when AMVR is applied, the resolution of the motion vector of the current block may be determined differently depending on the coding parameters of the current block. In addition, scaling may be applied to the motion vector using the determined motion vector resolution. Therefore, the motion vector can be encoded and decoded accurately and efficiently.

[0199] For example, the motion vector difference may be encoded based on a table defined by an index indicating an area corresponding to the motion vector difference, additional information for specifying the components of the motion vector difference, and information indicating a sample unit which is the resolution of the motion vector difference. Here, the additional information may include information indicating the value of the x or y component of the motion vector difference, the absolute value and the signs of the x and y components of the motion vector difference.

[0200] As previously explained, when coding the x and y components of the motion vector difference as a group, the x and y components of the motion vector difference may be encoded using the resolution of the motion vector determined by the AMVR method. In this case, information indicating whether the motion vector difference is included and information indicating the relative position of the motion vector difference in the predetermined area may be encoded by reflecting the resolution of the motion vector determined by the AMVR method. For example, if the motion vector difference is located in the area x+y=1 and the resolution of the motion vector is ½ sample (half-pel), the information regarding the area indicating the motion vector difference may indicate the area x+y=4. Here, the x and y components of the motion vector difference may be expressed as positions in scaled half-sample units.

[0201] Alternatively, even if the AMVR method is applied, the x and y components of the motion vector difference may be expressed as positions in units of integer samples. In this case, the decoder may determine the values of the x and y components of the motion vector difference and scale the motion vector difference.

[0202] As described above, if at least one area in which motion vector differences may be distributed is defined in a coordinate system and information indicating an area containing a motion vector difference is encoded, the information indicating the area containing the motion vector difference may be encoded using CABAC. That is, the information indicating the area containing the motion vector difference is binarized, and CABAC may be applied to each bin. In this case, the information indicating the area containing the motion vector difference may be encoded by the same context model. Alternatively, the information indicating the area containing the motion vector difference may be encoded by a context model determined based on coding parameters such as the size and shape of the current block, motion difference information of a previous block, block mode, and quantization parameters.

[0203] In addition, as described above, information indicating the relative position of the motion vector difference within the predetermined area may be further encoded. Information indicating the relative position of the motion vector difference within the predetermined area may be encoded using CABAC. That is, the information indicating the relative position of the motion vector difference within the predetermined area may be binarized, and CABAC may be applied to each bin. In this case, information indicating the relative position of the motion vector difference within the predetermined area may be encoded by the same context model. Alternatively, the information indicating the relative position of the motion vector difference within the predetermined area may be encoded by a context model determined based on coding parameters such as the size and shape of the current block, motion difference information of a previous block, block mode, and quantization parameters.

[0204] In addition, as described above, information indicating the sign of each component of the motion vector difference may be further encoded. Here, information indicating the sign of each component of the motion vector difference may be encoded using CABAC. In addition, in order to encode information indicating the sign of each component of the motion vector difference using CABAC, context modeling of information regarding the sign of the motion vector difference may be performed.

[0205] Alternatively, the information indicating the sign of each component of the motion vector difference may not be signaled. In this case, the decoder may derive the sign of each component of the motion vector difference. Specifically, the decoder may derive the values of the components of the motion vector difference and derive motion vector difference values with different signs. In addition, template matching may be applied to reference blocks indicated by different motion vectors using each motion vector difference, and the sign of the motion vector difference may be derived using the motion vector indicating the reference block with the highest similarity among reference blocks.

[0206] Alternatively, parity encoding may be applied to the motion vector difference based on whether there is a zero in the value of the motion vector difference, and the encoding and signaling of information regarding the sign of the motion vector difference may be omitted. In this case, the decoder may derive information regarding the sign of the motion vector difference by applying parity decoding based on whether there is a zero in the value of the motion vector difference.

[0207] An image decoding method using information indicating an area containing a motion vector difference may be as described below.

[0208] FIG. 18 is a flowchart illustrating an image decoding method using information indicating an area containing a motion vector difference according to an embodiment of the present disclosure. The image decoding method of FIG. 18 may be performed by the image decoding apparatus.

[0209] Referring to FIG. 18, the image decoding apparatus may derive a motion vector prediction value of a current block (S1810).

[0210] The image decoding apparatus may obtain information regarding the motion vector difference of the current block (S1820). Here, the information regarding the motion vector difference of the current block may include an index indicating an area containing at least one combination of the x component value and the y component value of the motion vector difference of the current block.

[0211] Here, the area containing at least one combination may be defined by a combination of the range of the x component and the range of the y component of the motion vector difference. In addition, the index may indicate one area among a plurality of areas containing a combination of the range of the x component and the range of the y component, which are different from each other, of the motion vector difference.

[0212] Here, the information regarding the motion vector difference of the current block may further include information indicating a difference between an area indicated by the index and the motion vector difference of the current block.

[0213] Here, the area containing at least one combination may be defined by a linear function of the x and y components of the motion vector difference. In addition, the index may indicate one area among a plurality of areas defined by different linear functions.

[0214] Here, the information regarding the motion vector difference of the current block may further include information indicating the value of one of the x and y components of the motion vector difference of the current block.

[0215] Here, the information regarding the motion vector difference of the current block may further include information indicating the sign of the x component of the motion vector difference of the current block and the sign of the y component of the motion vector difference of the current block.

[0216] Meanwhile, the area containing at least one combination may be defined by a linear function of the absolute value of the x component and the absolute value of the y component of the motion vector difference.

[0217] Here, the information regarding the motion vector difference of the current block may further include information indicating the absolute value of one of the x component and y component of the motion vector difference of the current block.

[0218] Here, the information regarding the motion vector difference of the current block may further include information indicating the sign of the x component of the motion vector difference of the current block; and information indicating the sign of the y component of the motion vector difference of the current block.

[0219] The image decoding apparatus may derive the motion vector difference of the current block based on information regarding the motion vector difference (S1830).

[0220] The image decoding apparatus may derive a motion vector of the current block based on a motion vector prediction value and the motion vector difference (S1840).

[0221] Meanwhile, the steps described in FIG. 18 may be performed in an image encoding method. In addition, a bitstream may be generated by an image encoding method including the steps described in FIG. 18. The bitstream may be stored in a non-transitory computer-readable recording medium, and may also be transmitted (or streamed).

[0222] The exemplary methods of the present disclosure are described as a series of operations for clarity of description, but this is not intended to limit the order in which the steps are performed, and if necessary, each step may be performed simultaneously or in a different order. To implement the method according to the present disclosure, additional steps may be included in addition to the shown steps, some steps may be excluded and the remaining steps may be included, or some steps may be excluded and additional steps may be included.

[0223] The various embodiments of the present disclosure are not intended to list all possible combinations but to describe representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.

[0224] Various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of implementation by hardware, it may be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general processors, controllers, microcontrollers, microprocessors, etc.

[0225] Alternatively, various embodiments of the present disclosure may be implemented in the form of program instructions that may be executed through various computer components and recorded on a computer-readable recording medium. In addition, a bitstream generated by the encoding method according to the embodiment may be stored on a non-transitory computer-readable recording medium.

[0226] The above-mentioned computer-readable recording medium may include program instructions, data files, data structures, etc., either alone or in combination. The program instructions recorded on the above-mentioned computer-readable recording medium may be those specifically designed and configured for the present disclosure, or they may be those known and available to those skilled in the art of computer software.

[0227] In the foregoing, the present disclosure is described based on specific details, such as specific components, limited embodiments, and drawings. However, the embodiments of the present disclosure are provided merely to aid in the overall understanding of the present disclosure and are not intended to limit the present disclosure to the above embodiments. Accordingly, a person skilled in the art can make various modifications and variations from this description.

[0228] Therefore, the spirit of the present invention shall not be limited to the above-described embodiments, and the entire scope of the appended claims and their equivalents will fall within the scope and spirit of the invention.INDUSTRIAL APPLICABILITY

[0229] The present invention may be used in an image encoding apparatus, an image decoding apparatus and a recording medium for storing a bitstream.

Claims

1. An image decoding method, comprising:deriving a motion vector prediction value of a current block;obtaining information regarding a motion vector difference of the current block;deriving the motion vector difference of the current block based on the information regarding the motion vector difference; andderiving a motion vector of the current block based on the motion vector prediction value and the motion vector difference,wherein the information regarding the motion vector difference of the current block comprises an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.

2. The image decoding method of claim 1, wherein the area containing the at least one combination is defined by a combination of a range of the x component and a range of the y component of the motion vector difference.

3. The image decoding method of claim 2, wherein the index indicates one area among a plurality of areas containing a combination of the range of the x component and the range of the y component, which are different from each other, of the motion vector difference.

4. The image decoding method of claim 2, wherein the information regarding the motion vector difference of the current block further comprises information indicating a difference between an area indicated by the index and the motion vector difference of the current block.

5. The image decoding method of claim 1, wherein the area containing the at least one combination is defined by a linear function of the x and y components of the motion vector difference.

6. The image decoding method of claim 5, wherein the index indicates one area among a plurality of areas defined by different linear functions.

7. The image decoding method of claim 5, wherein the information regarding the motion vector difference of the current block further comprises information indicating the value of one of the x and y components of the motion vector difference of the current block.

8. The image decoding method of claim 1, wherein the information regarding the motion vector difference of the current block further comprises:information indicating a sign of the x component of the motion vector difference of the current block; andinformation indicating a sign of the y component of the motion vector difference of the current block.

9. The image decoding method of claim 1, wherein the area containing the at least one combination is defined by a linear function of an absolute value of the x component and an absolute value of the y component of the motion vector difference.

10. The image decoding method of claim 9, wherein the information regarding the motion vector difference of the current block further comprises information indicating an absolute value of one of the x component and y component of the motion vector difference of the current block.

11. The image decoding method of claim 9, wherein the information regarding the motion vector difference of the current block further comprises:information indicating a sign of the x component of the motion vector difference of the current block; andinformation indicating a sign of the y component of the motion vector difference of the current block.

12. An image encoding method, comprising:deriving a motion vector prediction value of a current block;obtaining information regarding a motion vector difference of the current block;deriving the motion vector difference of the current block based on the information regarding the motion vector difference; andderiving a motion vector of the current block based on the motion vector prediction value and the motion vector difference,wherein the information regarding the motion vector difference of the current block comprises an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.

13. A method of transmitting a bitstream generated by an image encoding method, the method comprising:transmitting the bitstream,wherein the image encoding method comprises deriving a motion vector prediction value of a current block;obtaining information regarding a motion vector difference of the current block;deriving the motion vector difference of the current block based on the information regarding the motion vector difference; andderiving a motion vector of the current block based on the motion vector prediction value and the motion vector difference,wherein the information regarding the motion vector difference of the current block comprises an index indicating an area containing at least one combination of a value of an x component and a value of a y component of the motion vector difference of the current block.