Method and device for video coding using bidirectional prediction based on motion vector correction
The method refines the L1 motion vector in video coding by using direction and intra predictors to correct suboptimal predictions in SMVD, addressing inefficiencies in bidirectional prediction and improving video quality and efficiency.
Patent Information
- Application Number
- PCT/KR2024/001551
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-31
- Filing Date
- 2024-02-01
- Publication Date
- 2024-10-17
AI Technical Summary
Existing video coding technologies, such as SMVD, face inefficiencies in bidirectional prediction due to suboptimal motion vector generation in the L1 direction when only the L0 direction's motion vector difference is signaled, leading to potential inaccuracies in motion vector prediction, especially when the current picture is not centrally located between reference pictures.
A method and device for refining the motion vector in the L1 direction using a direction predictor and/or an intra predictor by comparing the L0 predictor or intra predictor with blocks in the L1 reference picture, and correcting the motion vector based on minimum difference search within a preset range, enhancing prediction accuracy.
This approach improves video coding efficiency and subjective quality by adaptively filtering reference blocks through template matching, optimizing motion vector prediction even when the current picture is not centrally located, thereby enhancing coding efficiency and picture quality.
Smart Images

Figure KR2024001551_17102024_PF_FP_ABST
Abstract
Description
Method and device for video coding using bidirectional prediction based on motion vector compensation
[0001] The present disclosure relates to a video coding method and device using motion vector compensation-based bidirectional prediction.
[0002] The content described below merely provides background information related to the present invention and does not constitute prior art.
[0003] Since video data has a large amount of data compared to voice data or still image data, it requires a lot of hardware resources, including memory, to store or transmit it without processing for compression.
[0004] Therefore, when storing or transmitting video data, an encoder is used to compress the video data and store or transmit it, and a decoder receives the compressed video data, decompresses it, and plays it back. Examples of such video compression technologies include H.264 / AVC, HEVC (High Efficiency Video Coding), and VVC (Versatile Video Coding), which improves encoding efficiency by about 30% compared to HEVC.
[0005] However, as the size, resolution, and frame rate of images are gradually increasing, and the amount of data that needs to be encoded is also increasing, a new compression technology that has better encoding efficiency and better image quality improvement than existing compression technologies is required.
[0006] Even if only one-way motion vector difference (MVD) is signaled during bidirectional prediction, there is a technology called Symmetric Motion Vector Difference (SMVD) that can reduce the amount of transmitted bits compared to the regular Advanced Motion Vector Prediction (AMVP) mode. SMVD finds a combination of L0 reference pictures and L1 reference pictures that are located in opposite directions in display order with respect to the current picture. Like regular AMVP, SMVD generates motion vector predictors (MVPs) in the L0 and L1 directions. After receiving an MVD in one direction, SMVD generates an L0-direction motion vector (mvL0) by adding the signaled MVD to the L0-direction motion vector predictor. Additionally, SMVD generates an L1-direction motion vector (mvL1) by adding a sign-inverted -MVD to the L1-direction motion vector predictor.
[0007] According to the existing SMVD technology, the decoder receives only the MVD in the L0 direction and uses the -MVD with the inverted sign to generate the motion vector in the L1 direction. At this time, the received MVD may not be optimal for generating the motion vector in the L1 direction. In addition, since the current picture may not be temporally located at the exact center of the two reference pictures, the motion vector in the L1 direction may not be generated properly when an object in the picture moves at a constant speed. Therefore, in order to improve video encoding efficiency and video quality, a method for effectively compensating the motion vector in the direction for which the MVD is not transmitted needs to be considered.
[0008] The present disclosure aims to provide a video coding method and device that effectively refines a motion vector in the L1 direction using a predictor and / or an intra predictor in the L0 direction when a motion vector difference in one direction (e.g., the L0 direction) is signaled in bidirectional prediction and a motion vector difference in the other direction (e.g., the L1 direction) is not signaled.
[0009] According to an embodiment of the present disclosure, a method for restoring a current block, performed by a video decoding device, is provided, characterized in that the method comprises the steps of: obtaining a first reference picture and a second reference picture of the current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; generating a first motion vector of the current block; generating a first predictor of the current block using the first motion vector and the first reference picture; generating a comparison block using at least one of the first predictor or an intra predictor of the current block; searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; and setting a second motion vector as a vector indicating the searched block.
[0010] According to another embodiment of the present disclosure, a method for encoding a current block, performed by a video encoding apparatus, comprises the steps of: obtaining a first reference picture and a second reference picture of the current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; determining a first motion vector and a second motion vector of the current block; generating a first predictor of the current block using the first motion vector and the first reference picture, and generating a second predictor of the current block using the second motion vector and the second reference picture; generating a first bidirectional prediction block of the current block using the first predictor and the second predictor; generating a comparison block using at least one of the first predictor or an intra predictor of the current block; searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; correcting the second motion vector with a vector indicating the searched block; A method is provided, characterized by comprising: a step of generating a corrected second predictor using the corrected second motion vector and the second reference picture; and a step of generating a second bidirectional prediction block of the current block using the first predictor and the corrected second predictor.
[0011] According to another embodiment of the present disclosure, a computer-readable recording medium storing a bitstream generated by an image encoding method, the image encoding method comprising: obtaining a first reference picture and a second reference picture of a current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; determining a first motion vector and a second motion vector of the current block; generating a first predictor of the current block using the first motion vector and the first reference picture, and generating a second predictor of the current block using the second motion vector and the second reference picture; generating a first bidirectional prediction block of the current block using the first predictor and the second predictor; generating a comparison block using at least one of the first predictor or an intra predictor of the current block; searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; correcting the second motion vector with a vector indicating the searched block; A recording medium is provided, characterized by comprising: a step of generating a corrected second predictor using the corrected second motion vector and the second reference picture; and a step of generating a second bidirectional prediction block of the current block using the first predictor and the corrected second predictor.
[0012] As described above, according to the present embodiment, in intra template matching prediction, a video coding method and device are provided that adaptively filters a reference block according to template matching by utilizing intra mode information, thereby making it possible to improve objective video encoding efficiency and subjective video quality.
[0013] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure.
[0014] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT (QuadTree plus BinaryTree TernaryTree) structure.
[0015] FIGS. 3A and 3B are diagrams illustrating multiple intra prediction modes, including wide-angle intra prediction modes.
[0016] Figure 4 is an example diagram of the surrounding blocks of the current block.
[0017] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure.
[0018] Figure 6 is an example diagram showing motion vector generation according to SMVD (Symmetric Motion Vector Difference) technology.
[0019] Figures 7a and 7a are exemplary diagrams showing the search of a reference picture index according to SMVD technology.
[0020] Figure 8 is an example diagram showing a case where the current picture is not located at the exact center of two reference pictures in time.
[0021] FIG. 9 is an exemplary diagram showing correction of an L1 motion vector according to one embodiment of the present disclosure.
[0022] FIG. 10 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0023] FIG. 11 is an exemplary diagram showing acquisition of an intra prediction mode according to one embodiment of the present disclosure.
[0024] FIG. 12 is an exemplary diagram showing acquisition of an intra prediction mode according to another embodiment of the present disclosure.
[0025] FIG. 13 is an exemplary diagram illustrating the generation of a predictor based on template matching according to one embodiment of the present disclosure.
[0026] FIG. 14 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0027] Figure 15 is an example diagram showing a case where the first directional reference picture and the second directional reference picture exist at temporally opposite positions relative to the current picture.
[0028] FIG. 16 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0029] FIG. 17a and FIG. 17b are exemplary diagrams showing a method for an image encoding device to encode a current block according to one embodiment of the present disclosure.
[0030] FIG. 18 is an exemplary diagram showing a method for an image decoding device to restore a current block according to one embodiment of the present disclosure.
[0031] Hereinafter, embodiments of the present invention will be described in detail with reference to exemplary drawings. When designating components in each drawing, it should be noted that, where possible, identical components are given the same reference numerals, even if they appear in different drawings. Furthermore, in describing the present embodiments, detailed descriptions of related known structures or functions will be omitted if they are deemed to obscure the gist of the present embodiments.
[0032] FIG. 1 is an exemplary block diagram of an image encoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image encoding device and its subcomponents will be described with reference to the illustration in FIG. 1.
[0033] The video encoding device may be configured to include a picture segmentation unit (110), a prediction unit (120), a subtractor (130), a transformation unit (140), a quantization unit (145), a reordering unit (150), an entropy encoding unit (155), an inverse quantization unit (160), an inverse transformation unit (165), an adder (170), a loop filter unit (180), and a memory (190).
[0034] Each component of the video encoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.
[0035] A single image (video) is composed of one or more sequences containing multiple pictures. Each picture is divided into multiple regions, and encoding is performed for each region. For example, a single picture is divided into one or more tiles and / or slices. Here, one or more tiles can be defined as a tile group. Each tile or / slice is divided into one or more Coding Tree Units (CTUs). Each CTU is then divided into one or more Coding Units (CUs) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in a CTU is encoded as the syntax of the CTU. In addition, information commonly applied to all blocks within a single slice is encoded as the syntax of the slice header, and information applied to all blocks constituting one or more pictures is encoded in the Picture Parameter Set (PPS) or the picture header. Furthermore, information commonly referenced by multiple pictures is encoded in a Sequence Parameter Set (SPS). And, information commonly referenced by one or more SPS is encoded in a Video Parameter Set (VPS). In addition, information commonly applied to one tile or tile group may be encoded as syntax of a tile or tile group header. Syntaxes included in an SPS, PPS, slice header, tile or tile group header may be referred to as high level syntax.
[0036] The picture segmentation unit (110) determines the size of the CTU. Information about the size of the CTU (CTU size) is encoded as the syntax of SPS or PPS and transmitted to the image decoding device.
[0037] The picture segmentation unit (110) divides each picture constituting an image into a plurality of CTUs having a predetermined size, and then recursively divides the CTUs using a tree structure. A leaf node in the tree structure becomes a CU, which is a basic unit of encoding.
[0038] The tree structure may be a QuadTree (QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, a BinaryTree (BT) in which an upper node is divided into two lower nodes, or a TernaryTree (TT) in which an upper node is divided into three lower nodes in a 1:2:1 ratio, or a structure that mixes two or more of the QT structures, BT structures, and TT structures. For example, a QTBT (QuadTree plus BinaryTree) structure may be used, or a QTBTTT (QuadTree plus BinaryTree TernaryTree) structure may be used. Here, BTTT may be combined and referred to as a MTT (Multiple-Type Tree).
[0039] Figure 2 is a drawing for explaining a method of dividing a block using the QTBTTT structure.
[0040] As illustrated in FIG. 2, a CTU may first be split into a QT structure. The quadtree splitting may be repeated until the size of the splitting block reaches the minimum block size (MinQTSize) of the leaf node allowed in the QT. A first flag (QT_split_flag) indicating whether each node of the QT structure is split into four nodes of the lower layer is encoded by the entropy encoding unit (155) and signaled to the image decoding device. If the leaf node of the QT is not larger than the maximum block size (MaxBTSize) of the root node allowed in the BT, it may be further split into one or more of the BT structure or the TT structure. There may be multiple splitting directions in the BT structure and / or the TT structure. For example, there may be two directions in which the block of the corresponding node is split horizontally and two directions in which the block is split vertically. As illustrated in FIG. 2, when MTT splitting begins, a second flag (mtt_split_flag) indicating whether nodes have been split, and if splitting has occurred, a flag indicating the splitting direction (vertical or horizontal) and / or a flag indicating the splitting type (Binary or Ternary) are encoded by the entropy encoding unit (155) and signaled to the image decoding device.
[0041] Alternatively, before encoding the first flag (QT_split_flag) indicating whether each node is split into four nodes of a lower layer, a CU split flag (split_cu_flag) indicating whether the node is split may be encoded. If the CU split flag (split_cu_flag) value indicates that the node is not split, the block of the corresponding node becomes a leaf node in the split tree structure and becomes a CU (coding unit), which is a basic unit of encoding. If the CU split flag (split_cu_flag) value indicates that the node is split, the video encoding device starts encoding from the first flag in the above-described manner.
[0042] As another example of a tree structure, when QTBT is used, there may be two types: a type that horizontally splits the block of the corresponding node into two blocks of the same size (i.e., symmetric horizontal splitting) and a type that vertically splits it (i.e., symmetric vertical splitting). A split flag (split_flag) indicating whether each node of the BT structure is split into blocks of a lower layer and split type information indicating the type of split are encoded by the entropy encoding unit (155) and transmitted to the image decoding device. Meanwhile, there may additionally be a type that splits the block of the corresponding node into two blocks of an asymmetrical shape. The asymmetric shape may include a shape that splits the block of the corresponding node into two rectangular blocks with a size ratio of 1:3, or a shape that splits the block of the corresponding node in a diagonal direction.
[0043] A CU can have various sizes depending on the QTBT or QTBTTT partitioning from the CTU. Hereinafter, the block corresponding to the CU to be encoded or decoded (i.e., the leaf node of the QTBTTT) is referred to as the "current block." Depending on the QTBTTT partitioning employed, the current block may be rectangular as well as square.
[0044] The prediction unit (120) predicts the current block and generates a prediction block. The prediction unit (120) includes an intra prediction unit (122) and an inter prediction unit (124).
[0045] In general, each current block within a picture can be predictively coded. Prediction of the current block can typically be performed using either intra-prediction (using data from the picture containing the current block) or inter-prediction (using data from a picture coded before the picture containing the current block). Inter-prediction encompasses both unidirectional and bidirectional prediction.
[0046] The intra prediction unit (122) predicts pixels within the current block using pixels (reference pixels) located around the current block within the current picture including the current block. There are multiple intra prediction modes depending on the prediction direction. For example, as shown in Fig. 3a, the multiple intra prediction modes may include two non-directional modes including the Planar mode and the DC mode, and 65 directional modes. The surrounding pixels to be used and the calculation formula are defined differently depending on each prediction mode.
[0047] For efficient directional prediction for a rectangular current block, directional modes (intra prediction modes 67 to 80 and -1 to -14) indicated by dotted arrows in Fig. 3b may be additionally used. These may be referred to as "wide-angle intra-prediction modes." In Fig. 3b, the arrows point to corresponding reference samples used for prediction, and do not indicate the prediction direction. The prediction direction is opposite to the direction indicated by the arrows. Wide-angle intra-prediction modes are modes that perform prediction in the opposite direction of a specific directional mode without additional bit transmission when the current block is rectangular. At this time, among the wide-angle intra-prediction modes, some wide-angle intra-prediction modes available for the current block may be determined based on the ratio of the width and height of the rectangular current block. For example, wide-angle intra prediction modes (intra prediction modes 67 to 80) having an angle less than 45 degrees are available when the current block is a rectangular shape whose height is smaller than its width, and wide-angle intra prediction modes (intra prediction modes -1 to -14) having an angle greater than -135 degrees are available when the current block is a rectangular shape whose width is larger than its height.
[0048] The intra prediction unit (122) can determine an intra prediction mode to be used to encode the current block. In some examples, the intra prediction unit (122) can encode the current block using multiple intra prediction modes and select an appropriate intra prediction mode to be used from the tested modes. For example, the intra prediction unit (122) can calculate bit-rate distortion values using rate-distortion analysis for multiple tested intra prediction modes and select an intra prediction mode with the best bit-rate distortion characteristics among the tested modes.
[0049] The intra prediction unit (122) selects one intra prediction mode from among multiple intra prediction modes and predicts the current block using surrounding pixels (reference pixels) and an operation formula determined according to the selected intra prediction mode. Information about the selected intra prediction mode is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.
[0050] The inter prediction unit (124) generates a prediction block for the current block using a motion compensation process. The inter prediction unit (124) searches for a block most similar to the current block within reference pictures that were encoded and decoded before the current picture, and generates a prediction block for the current block using the searched block. Then, a motion vector (MV) corresponding to the displacement between the current block within the current picture and the prediction block within the reference picture is generated. Generally, motion estimation is performed on the luma component, and the motion vector calculated based on the luma component is used for both the luma component and the chroma component. The motion information including information on the reference picture used to predict the current block and information on the motion vector is encoded by the entropy encoding unit (155) and transmitted to the image decoding device.
[0051] The inter prediction unit (124) may perform interpolation on a reference picture or a reference block to improve prediction accuracy. That is, subsamples between two consecutive integer samples are interpolated by applying filter coefficients to a plurality of consecutive integer samples including the two integer samples. When a process of searching for a block most similar to the current block is performed on the interpolated reference picture, the motion vector can be expressed up to a precision in decimal units rather than a precision in integer sample units. The precision or resolution of the motion vector can be set differently for each target region to be encoded, such as a slice, tile, CTU, CU, etc. When such adaptive motion vector resolution (AMVR) is applied, information on the motion vector resolution to be applied to each target region must be signaled for each target region. For example, when the target region is a CU, information on the motion vector resolution applied to each CU is signaled. Information on the motion vector resolution may be information indicating the precision of a differential motion vector, which will be described later.
[0052] Meanwhile, the inter prediction unit (124) can perform inter prediction using bi-prediction. In the case of bi-prediction, two reference pictures and two motion vectors indicating the block position most similar to the current block within each reference picture are used. The inter prediction unit (124) selects a first reference picture and a second reference picture from reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1), respectively, and searches for a block similar to the current block within each reference picture to generate a first reference block and a second reference block. Then, the first reference block and the second reference block are averaged or weighted averaged to generate a prediction block for the current block. Then, motion information including information on two reference pictures used to predict the current block and information on two motion vectors is transmitted to the entropy encoding unit (155). Here, reference picture list 0 may be composed of pictures that are before the current picture in display order among the restored pictures, and reference picture list 1 may be composed of pictures that are after the current picture in display order among the restored pictures. However, this is not necessarily limited to this, and restored pictures that are after the current picture in display order may be additionally included in reference picture list 0, and conversely, restored pictures that are before the current picture may be additionally included in reference picture list 1.
[0053] Various methods can be used to minimize the number of bits required to encode motion information.
[0054] For example, if the reference picture and motion vector of the current block are identical to those of a neighboring block, the motion information of the current block can be transmitted to the image decoding device by encoding information that can identify the neighboring block. This method is called 'merge mode.'
[0055] In merge mode, the inter prediction unit (124) selects a predetermined number of merge candidate blocks (hereinafter referred to as 'merge candidates') from the surrounding blocks of the current block.
[0056] As the surrounding blocks for deriving merge candidates, all or part of the left block (A0), the lower left block (A1), the upper block (B0), the upper right block (B1), and the upper left block (B2) adjacent to the current block within the current picture may be used, as illustrated in FIG. 4. In addition, a block located within a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as a merge candidate. For example, a block co-located with the current block within the reference picture or blocks adjacent to the block at the co-located block may be additionally used as a merge candidate. If the number of merge candidates selected by the method described above is less than a preset number, a 0 vector is added to the merge candidates.
[0057] The inter prediction unit (124) uses these surrounding blocks to construct a merge list containing a predetermined number of merge candidates. Among the merge candidates included in the merge list, the merge candidate to be used as motion information of the current block is selected and merge index information for identifying the selected candidate is generated. The generated merge index information is encoded by the entropy encoding unit (155) and transmitted to the video decoding device.
[0058] Merge Skip mode is a special case of merge mode. After quantization, when all transform coefficients for entropy encoding are close to zero, only neighboring block selection information is transmitted without transmitting residual signals. By utilizing merge skip mode, relatively high encoding efficiency can be achieved for low-motion images, still images, and screen content images.
[0059] Hereinafter, merge mode and merge skip mode are collectively referred to as merge / skip mode.
[0060] Another method for encoding motion information is Advanced Motion Vector Prediction (AMVP) mode.
[0061] In AMVP mode, the inter prediction unit (124) derives predicted motion vector candidates for the motion vector of the current block using neighboring blocks of the current block. As neighboring blocks used to derive predicted motion vector candidates, all or some of the left block (A0), the lower left block (A1), the upper block (B0), the upper right block (B1), and the upper left block (B2) adjacent to the current block in the current picture as shown in FIG. 4 may be used. In addition, a block located in a reference picture (which may or may not be the same as the reference picture used to predict the current block) other than the current picture in which the current block is located may be used as the neighboring block used to derive predicted motion vector candidates. For example, a block co-located with the current block in the reference picture or blocks adjacent to the block in the co-located block may be used. If the number of motion vector candidates is less than a preset number by the method described above, a 0 vector is added to the motion vector candidates.
[0062] The inter prediction unit (124) derives predicted motion vector candidates using the motion vectors of these surrounding blocks, and determines a predicted motion vector for the motion vector of the current block using the predicted motion vector candidates. Then, the predicted motion vector is subtracted from the motion vector of the current block to produce a differential motion vector.
[0063] The predicted motion vector can be obtained by applying a predefined function (e.g., median, mean, etc.) to the predicted motion vector candidates. In this case, the image decoding device also knows the predefined function. In addition, since the surrounding blocks used to derive the predicted motion vector candidates are blocks that have already been encoded and decoded, the image decoding device also already knows the motion vectors of the surrounding blocks. Therefore, the image encoding device does not need to encode information to identify the predicted motion vector candidates. Therefore, in this case, information about the differential motion vector and information about the reference picture used to predict the current block are encoded.
[0064] Alternatively, the predicted motion vector can be determined by selecting one of the predicted motion vector candidates. In this case, information for identifying the selected predicted motion vector candidate is additionally encoded, along with information about the differential motion vector and the reference picture used to predict the current block.
[0065] The subtractor (130) subtracts the prediction block generated by the intra prediction unit (122) or inter prediction unit (124) from the current block to generate a residual block.
[0066] The transformation unit (140) transforms residual signals within a residual block having pixel values in a spatial domain into transform coefficients in a frequency domain. The transformation unit (140) may transform the residual signals within the residual block using the entire size of the residual block as a transformation unit, or may divide the residual block into a plurality of sub-blocks and use the sub-blocks as transformation units to perform the transformation. Alternatively, the residual signals may be transformed using only the transformation domain sub-block as a transformation unit by dividing the sub-blocks into two sub-blocks, that is, a transformation domain and a non-transform domain. Here, the transformation domain sub-block may be one of two rectangular blocks having a size ratio of 1:1 with respect to the horizontal axis (or vertical axis). In this case, a flag (cu_sbt_flag) indicating that only a sub-block has been converted, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag), and / or position information (cu_sbt_pos_flag) are encoded by the entropy encoding unit (155) and signaled to the image decoding device. In addition, the size of the conversion area sub-block may have a size ratio of 1:3 with respect to the horizontal axis (or vertical axis), and in this case, a flag (cu_sbt_quad_flag) distinguishing the corresponding division is additionally encoded by the entropy encoding unit (155) and signaled to the image decoding device.
[0067] Meanwhile, the transformation unit (140) can individually perform transformations on the residual block in the horizontal and vertical directions. For the transformation, various types of transformation functions or transformation matrices can be used. For example, a pair of transformation functions for horizontal transformation and vertical transformation can be defined as a Multiple Transform Set (MTS). The transformation unit (140) can select one transformation function pair with the best transformation efficiency among the MTS and transform the residual block in the horizontal and vertical directions, respectively. Information (mts_idx) on the transformation function pair selected among the MTS is encoded by the entropy encoding unit (155) and signaled to the image decoding device.
[0068] The quantization unit (145) quantizes the transform coefficients output from the transform unit (140) using quantization parameters and outputs the quantized transform coefficients to the entropy encoding unit (155). The quantization unit (145) may directly quantize a related residual block without transformation for a certain block or frame. The quantization unit (145) may also apply different quantization coefficients (scaling values) according to the positions of the transform coefficients within the transform block. The quantization matrix applied to the quantized transform coefficients arranged in two dimensions may be encoded and signaled to an image decoding device.
[0069] The rearrangement unit (150) can perform rearrangement of coefficient values for quantized residual values.
[0070] The reordering unit (150) can change a two-dimensional coefficient array into a one-dimensional coefficient sequence by using coefficient scanning. For example, the reordering unit (150) can output a one-dimensional coefficient sequence by scanning from the DC coefficient to the coefficients of the high-frequency region by using a zig-zag scan or a diagonal scan. Depending on the size of the transformation unit and the intra prediction mode, a vertical scan that scans the two-dimensional coefficient array in the column direction or a horizontal scan that scans the two-dimensional block-shaped coefficients in the row direction may be used instead of the zig-zag scan. That is, depending on the size of the transformation unit and the intra prediction mode, the scanning method to be used may be determined among the zig-zag scan, the diagonal scan, the vertical scan, and the horizontal scan.
[0071] The entropy encoding unit (155) generates a bitstream by encoding a sequence of one-dimensional quantized transform coefficients output from the rearrangement unit (150) using various encoding methods such as CABAC (Context-based Adaptive Binary Arithmetic Code) and Exponential Golomb.
[0072] In addition, the entropy encoding unit (155) encodes information related to block division, such as CTU size, CU division flag, QT division flag, MTT division type, and MTT division direction, so that the image decoding device can divide the block in the same manner as the image encoding device. In addition, the entropy encoding unit (155) encodes information about a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and encodes intra prediction information (i.e., information about an intra prediction mode) or inter prediction information (information about an encoding mode of motion information (merge mode or AMVP mode), a merge index in the case of a merge mode, and a reference picture index and a differential motion vector in the case of an AMVP mode) according to the prediction type. In addition, the entropy encoding unit (155) encodes information related to quantization, that is, information about a quantization parameter and information about a quantization matrix.
[0073] The inverse quantization unit (160) inversely quantizes the quantized transform coefficients output from the quantization unit (145) to generate transform coefficients. The inverse transform unit (165) transforms the transform coefficients output from the inverse quantization unit (160) from the frequency domain to the spatial domain to restore the residual block.
[0074] An adder (170) adds the restored residual block and the predicted block generated by the prediction unit (120) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting the next block.
[0075] The loop filter unit (180) performs filtering on restored pixels to reduce blocking artifacts, ringing artifacts, blurring artifacts, etc. that occur due to block-based prediction and transformation / quantization. The loop filter unit (180) may include all or part of a deblocking filter (182), a sample adaptive offset (SAO) filter (184), and an adaptive loop filter (ALF, 186) as an in-loop filter.
[0076] The deblocking filter (182) filters the boundaries between restored blocks to remove blocking artifacts caused by block-based encoding / decoding, and the SAO filter (184) and the ALF (186) perform additional filtering on the deblocking-filtered image. The SAO filter (184) and the ALF (186) are filters used to compensate for the differences between restored pixels and original pixels caused by lossy coding. The SAO filter (184) improves not only subjective image quality but also encoding efficiency by applying an offset in units of CTUs. In contrast, the ALF (186) performs block-based filtering, and compensates for distortion by applying different filters by distinguishing the edges and degrees of variation of the corresponding block. Information on filter coefficients to be used in the ALF can be encoded and signaled to an image decoding device.
[0077] The restored blocks filtered through the deblocking filter (182), SAO filter (184), and ALF (186) are stored in the memory (190). When all blocks within a picture are restored, the restored picture can be used as a reference picture for inter-predicting blocks within a picture to be encoded later.
[0078] The video encoding device can store the bitstream of encoded video data on a non-transitory storage medium or transmit it to the video decoding device using a communication network.
[0079] FIG. 5 is an exemplary block diagram of an image decoding device capable of implementing the techniques of the present disclosure. Hereinafter, the image decoding device and its subcomponents will be described with reference to FIG. 5.
[0080] The video decoding device may be configured to include an entropy decoding unit (510), a rearrangement unit (515), an inverse quantization unit (520), an inverse transformation unit (530), a prediction unit (540), an adder (550), a loop filter unit (560), and a memory (570).
[0081] Similar to the video encoding device of FIG. 1, each component of the video decoding device may be implemented in hardware, software, or a combination of hardware and software. Furthermore, the functions of each component may be implemented in software, with a microprocessor executing the software functions corresponding to each component.
[0082] The entropy decoding unit (510) decodes the bitstream generated by the image encoding device to extract information related to block division, thereby determining the current block to be decoded, and extracts prediction information, information on residual signals, etc. required to restore the current block.
[0083] The entropy decoding unit (510) extracts information about the CTU size from the Sequence Parameter Set (SPS) or the Picture Parameter Set (PPS), determines the size of the CTU, and divides the picture into CTUs of the determined size. Then, the CTU is determined as the top layer of the tree structure, i.e., the root node, and the CTU is divided using the tree structure by extracting division information about the CTU.
[0084] For example, when splitting a CTU using the QTBTTT structure, first, the first flag (QT_split_flag) related to the splitting of QT is extracted, and each node is split into four nodes of the lower layer. Then, for the nodes corresponding to the leaf nodes of QT, the second flag (mtt_split_flag) related to the splitting of MTT and the split direction (vertical / horizontal) and / or split type (binary / ternary) information are extracted, and the corresponding leaf nodes are split into the MTT structure. Accordingly, each node below the leaf nodes of QT are split recursively into the BT or TT structure.
[0085] As another example, when splitting a CTU using the QTBTTT structure, the CU split flag (split_cu_flag) indicating whether the CU is split is first extracted, and if the block is split, the first flag (QT_split_flag) may be extracted. During the splitting process, each node may undergo zero or more repeated QT splits followed by zero or more repeated MTT splits. For example, a CTU may undergo an MTT split right away, or conversely, may undergo only multiple QT splits.
[0086] As another example, when splitting a CTU using the QTBT structure, the first flag (QT_split_flag) related to the splitting of QT is extracted, and each node is split into four nodes of the lower layer. Furthermore, for nodes corresponding to leaf nodes of QT, a split flag (split_flag) indicating whether to further split into BTs and splitting direction information are extracted.
[0087] Meanwhile, when the entropy decoding unit (510) determines the current block to be decoded by using the division of the tree structure, it extracts information on the prediction type indicating whether the current block is intra-predicted or inter-predicted. If the prediction type information indicates intra-prediction, the entropy decoding unit (510) extracts syntax elements for intra-prediction information (intra-prediction mode) of the current block. If the prediction type information indicates inter-prediction, the entropy decoding unit (510) extracts syntax elements for inter-prediction information, i.e., information indicating a motion vector and a reference picture referenced by the motion vector.
[0088] Additionally, the entropy decoding unit (510) extracts information about the quantized transform coefficients of the current block as information related to quantization and information about residual signals.
[0089] The rearrangement unit (515) can change the sequence of one-dimensional quantized transform coefficients entropy-decoded in the entropy decoding unit (510) back into a two-dimensional coefficient array (i.e., block) in the reverse order of the coefficient scanning performed by the image encoding device.
[0090] The inverse quantization unit (520) inversely quantizes the quantized transform coefficients and inversely quantizes the quantized transform coefficients using the quantization parameters. The inverse quantization unit (520) may also apply different quantization coefficients (scaling values) to the quantized transform coefficients arranged in two dimensions. The inverse quantization unit (520) may perform inverse quantization by applying a matrix of quantized coefficients (scaling values) from an image encoding device to a two-dimensional array of quantized transform coefficients.
[0091] The inverse transform unit (530) inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals, thereby generating a residual block for the current block.
[0092] In addition, when the inverse transform unit (530) inversely transforms only a portion of a transform block (sub-block), it extracts a flag (cu_sbt_flag) indicating that only a sub-block of the transform block has been transformed, directionality (vertical / horizontal) information (cu_sbt_horizontal_flag) of the sub-block, and / or position information (cu_sbt_pos_flag) of the sub-block, and inversely transforms the transform coefficients of the corresponding sub-block from the frequency domain to the spatial domain to restore residual signals, and fills “0” values with residual signals for areas that have not been inversely transformed, thereby generating a final residual block for the current block.
[0093] In addition, when MTS is applied, the inverse transform unit (530) determines a transform function or a transform matrix to be applied in the horizontal and vertical directions using MTS information (mts_idx) signaled from the image encoding device, and performs inverse transform on the transform coefficients within the transform block in the horizontal and vertical directions using the determined transform function.
[0094] The prediction unit (540) may include an intra prediction unit (542) and an inter prediction unit (544). The intra prediction unit (542) is activated when the prediction type of the current block is intra prediction, and the inter prediction unit (544) is activated when the prediction type of the current block is inter prediction.
[0095] The intra prediction unit (542) determines the intra prediction mode of the current block among a plurality of intra prediction modes from the syntax elements for the intra prediction mode extracted from the entropy decoding unit (510), and predicts the current block using reference pixels around the current block according to the intra prediction mode.
[0096] The inter prediction unit (544) uses the syntax elements for the inter prediction mode extracted from the entropy decoding unit (510) to determine the motion vector of the current block and the reference picture referenced by the motion vector, and predicts the current block using the motion vector and the reference picture.
[0097] An adder (550) adds the residual block output from the inverse transform unit (530) and the predicted block output from the inter prediction unit (544) or the intra prediction unit (542) to restore the current block. The pixels within the restored current block are used as reference pixels when intra-predicting a block to be decoded later.
[0098] The loop filter unit (560) may include a deblocking filter (562), an SAO filter (564), and an ALF (566) as in-loop filters. The deblocking filter (562) deblocks the boundaries between restored blocks to remove blocking artifacts caused by block-by-block decoding. The SAO filter (564) and the ALF (566) perform additional filtering on restored blocks after deblocking filtering to compensate for differences between restored pixels and original pixels caused by lossy coding. The filter coefficients of the ALF are determined using information about filter coefficients decoded from the non-stream.
[0099] The restored blocks filtered through the deblocking filter (562), SAO filter (564), and ALF (566) are stored in the memory (570). When all blocks within a picture are restored, the restored picture is used as a reference picture for inter-predicting blocks within a picture to be encoded later.
[0100]
[0101] The present embodiment relates to encoding and decoding of images (videos) as described above. More specifically, in a bidirectional prediction, when a motion vector difference in one direction (e.g., L0 direction) is signaled and a motion vector difference in the other direction (e.g., L1 direction) is not signaled, a video coding method and device are provided for effectively refining a motion vector in the L1 direction using a predictor and / or an intra predictor in the L0 direction.
[0102] The following embodiments may be performed by a prediction unit (120) within a video encoding apparatus. Additionally, the following embodiments may be performed by a prediction unit (540) within a video decoding apparatus.
[0103] The video encoding device can generate signaling information related to the present embodiment in terms of rate distortion optimization in encoding the current block. The video encoding device can encode the signaling information using the entropy encoding unit (155) and then transmit it to the video decoding device. The video decoding device can decode the signaling information related to the decoding of the current block from the bitstream using the entropy decoding unit (510).
[0104] In the following description, the term "target block" may be used interchangeably with the current block or coding unit (CU). Alternatively, the term "target block" may also refer to a portion of a coding unit.
[0105] Also, a value of a flag being true indicates that the flag is set to 1. Also, a value of a flag being false indicates that the flag is set to 0.
[0106] I. SMVD(Symmetric Motion Vector Difference)
[0107] Even if only one-way motion vector difference (MVD) is signaled during bidirectional prediction, SMVD technology exists as a technology that can reduce the amount of bits transmitted compared to regular AMVP mode.
[0108] Hereinafter, the operation of the SMVD is described in detail using the illustrations of FIGS. 6, 7a and 7b.
[0109] Figure 6 is an example diagram showing the generation of a motion vector according to SMVD technology.
[0110] The SMVD technique finds a combination of L0 reference pictures and L1 reference pictures that are located in opposite directions in the display order with respect to the current picture. From the AMVP candidate list, the SMVD technique generates motion vector predictors (mvpL0 and mvpL1) in the L0 and L1 directions. After receiving an MVD in one direction, the SMVD technique generates an L0 direction motion vector (mvL0) by adding the signaled MVD to mvpL0 as in Equation 1. In addition, the SMVD technique generates an L1 direction motion vector (mvL1) by adding a -MVD with a reversed sign to mvpL1 as in Equation 2.
[0111]
[0112]
[0113] The video decoding device can apply the SMVD technology to the current block if all the conditions shown in Table 1 are satisfied.
[0114]
[0115] As shown in Table 1, if the current block is bidirectionally predicted, the affine mode is not applied (inter_affine_flag = 0), and the SMVD mode is enabled (sym_mvd_flag = 1), the video decoding device can apply the SMVD technique. At this time, the current picture must be temporally located between the L0 reference picture and the L1 reference picture.
[0116] Figures 7a and 7b are exemplary diagrams showing the search of a reference picture index according to SMVD technology.
[0117] The video decoding device sets the reference picture indexes (RefIdxSymL0, RefIdxSymL1) in the L0 and L1 directions of the SMVD by comparing the display order of the reference pictures in the current picture and the L0 list and the L1 list. For example, as shown in the example of FIG. 7a, the video decoding device sets RefIdxSymL0 to the index of the picture in the L0 list that has a smaller POC (Picture Order Count) than the current picture and has the smallest POC difference from the current picture. In addition, the video decoding device sets RefIdxSymL1 to the index of the picture in the L1 list that has a larger POC than the current picture and has the smallest POC difference from the current picture.
[0118] As described above, if a case in which the L0 reference picture, the current picture, and the L1 reference picture are listed in that order is not found, as in the example of FIG. 7b, the video decoding device sets RefIdxSymL0 to the index of the picture in the L0 list that has a POC greater than that of the current picture and has the smallest POC difference with the current picture. In addition, the video decoding device sets RefIdxSymL1 to the index of the picture in the L1 list that has a POC less than that of the current picture and has the smallest POC difference with the current picture.
[0119] As in the process described above, if the current picture exists between the L0 reference picture and the L1 reference picture in display order, the video decoding device parses sym_mvd_flag to determine whether to use the SMVD mode.
[0120] When sym_mvd_flag is 1, the video decoding device generates a motion vector predictor candidate list (mvpList) in the L0 and L1 directions. The video decoding device parses the mvpList indices (mvp_l0_flag, mvp_l1_flag) in the L0 and L1 directions to generate motion vector predictors as in mathematical expression 3.
[0121]
[0122] The video decoding device generates motion vectors by adding the motion vector difference and the sign-inverted motion vector difference to the motion vector predictors in both directions, as shown in Equations 1 and 2. Thereafter, the video decoding device generates a prediction block of the current block using the L0 reference picture, the L1 reference picture, and the final motion vectors.
[0123] However, conventional SMVD techniques only receive MVD signals in the L0 direction and use -MVDs with inverted signs to generate motion vectors in the L1 direction. Therefore, -MVDs with inverted signs may not be optimal for generating motion vectors in the L1 direction.
[0124] Additionally, as in the example of Fig. 8, since the current picture may not be located at the exact center of the two reference pictures in time, the motion vector in the L1 direction according to the SMVP mode may not be generated properly when an object within the picture moves at a constant speed. Therefore, it is necessary to refine the motion vector in the direction where the motion vector difference is not signaled.
[0125] The following embodiments are described with a focus on an image decoding device, but can be implemented identically or similarly in an image encoding device.
[0126] II. Embodiments according to the present disclosure
[0127] The problem of the existing technology as described above can be solved by comparing the L0 predictor obtained from the L0 reference picture or the intra predictor of the current block with a block in the L1 reference picture to correct the motion vector in the L1 direction (Example 1, Example 2, Example 4). Alternatively, the problem of the existing technology can be solved by comparing the predictor generated by the weighted sum of the L0 predictor and the intra predictor with a block in the L1 reference picture to correct the motion vector in the L1 direction (Example 3, Example 4). In addition, the image decoding device can derive the motion vector in the L1 direction based on the motion vector in the L0 direction without separately receiving motion information in the L1 direction as a signal, and then correct the derived L1 direction motion vector using the above-described correction methods (Example 5).
[0128] Hereinafter, implementation examples according to the present disclosure are described.
[0129] Hereinafter, the L0 direction is used interchangeably with the first direction, and the L1 direction is used interchangeably with the second direction. 'L0 direction' is simply expressed as 'L0', and 'L1 direction' is simply expressed as 'L1'. In addition, 'in the first direction' is simply expressed as 'first', and 'in the second direction' is simply expressed as 'second'. For example, a motion vector in the L0 direction and an L0 motion vector are used interchangeably, and a motion vector in the L1 direction and an L1 motion vector are used interchangeably. In addition, a motion vector in the first direction and a first motion vector are used interchangeably, and a motion vector in the second direction and a second motion vector are used interchangeably.
[0130] <Example 1> Compensating the second direction motion vector by comparing the difference between the blocks in the first direction predictor and the second direction reference picture
[0131] In this implementation example, the image decoding device compares the difference between blocks indicated by motion vectors in the first direction and the second direction, and corrects the motion vector in the second direction.
[0132] FIG. 9 is an exemplary diagram showing correction of an L1 motion vector according to one embodiment of the present disclosure.
[0133] As shown in the example of Fig. 9, the video decoding device searches for a block having a minimum difference from the block indicated by mvL0 in the first directional reference picture within a predetermined search range on the second directional reference picture. The video decoding device corrects the motion vector mvL1 to mvL1', which is a vector indicating the searched block. Here, the motion vector mvL1 before correction is a motion vector generated according to the existing SMVD technique. The predetermined search range described above may be generated around the block indicated by mvL1. In the present implementation example, various measures such as MSE (Mean Square Errors), SSE (Sum of Squared Errors), SAD (Sum of Absolute Differences), and SATD (Sum of Absolute Transformed Differences) may be used to calculate the difference between two blocks.
[0134] <Example 2> Compensating the second direction motion vector by comparing the difference between the intra predictor of the current block and the block in the second direction reference picture.
[0135] In this implementation example, the image decoding device compares the difference between the intra predictor of the current block and the block indicated by the second direction motion vector to correct the second direction motion vector.
[0136] FIG. 10 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0137] As shown in the example of Fig. 10, the video decoding device searches for a block with the smallest difference from the intra predictor of the current block within a predetermined search range on the second reference picture. The video decoding device corrects the motion vector mvL1 to mvL1', which is a vector indicating the searched block. Here, the motion vector mvL1 before correction is a motion vector generated according to the existing SMVD technique. The predetermined search range described above can be generated around the block indicated by mvL1. In the present implementation example, various measures such as MSE, SSE, SAD, and SATD can be used to calculate the difference between two blocks.
[0138] Additionally, in this implementation example, the generation of the intra predictor used to correct the motion vector in the second direction and the acquisition of the prediction mode can be implemented in various ways. Below, detailed methods of this implementation example are described.
[0139] <Example 2-1> Using the preset prediction mode
[0140] In this embodiment, the video decoding device uses a preset prediction mode as the prediction mode of the intra predictor for correcting the motion vector in the second direction. The video decoding device can use Planar, DC, Horizontal, Vertical, or a predetermined directional mode (angular mode) as the preset mode. After setting the prediction mode to the preset prediction mode, the video decoding device generates an intra predictor of the current block according to the set prediction mode. The video decoding device utilizes the generated intra predictor to correct the motion vector in the second direction.
[0141] <Example 2-2> Use the prediction mode of the intra-predicted block among the surrounding blocks of the current block.
[0142] In this implementation example, the image decoding device uses the prediction mode of an intra-predicted block among the surrounding blocks of the current block as the prediction mode of the intra predictor for correcting the motion vector in the second direction.
[0143] FIG. 11 is an exemplary diagram showing acquisition of an intra prediction mode according to one embodiment of the present disclosure.
[0144] As shown in the example of FIG. 11, the video decoding device searches for intra-predicted neighboring blocks in the restored area of the current picture. The video decoding device selects one of the prediction modes of the intra-predicted blocks searched around the current block. For example, the video decoding device may select the prediction mode with the smallest mode number or the most frequent prediction mode among the intra-prediction modes within a predetermined range centered on the current block. Alternatively, the video decoding device may select the prediction mode of the intra-predicted block closest to the current block. The above is merely an example, and the method of selecting a prediction mode is not limited to the present disclosure.
[0145] <Example 2-3> Use the prediction mode of the intra-predicted block among the surrounding blocks of the block indicated by the motion vector in the first direction.
[0146] In this implementation example, the image decoding device uses the prediction mode of an intra-predicted block among the surrounding blocks of the block indicated by the motion vector in the first direction as the prediction mode of the intra predictor for correcting the motion vector in the second direction.
[0147] FIG. 12 is an exemplary diagram showing acquisition of an intra prediction mode according to another embodiment of the present disclosure.
[0148] As in the example of FIG. 12, the video decoding device searches for intra-predicted surrounding blocks centered on a block indicated by mvL0 in a first reference picture (hereinafter, referred to as a P block). The video decoding device selects one of the prediction modes of the intra-predicted blocks searched around the P block. For example, the video decoding device may select a prediction mode with a smallest mode number or a most frequent prediction mode among the intra-prediction modes within a predetermined range centered on the P block. Alternatively, the video decoding device may select a prediction mode of an intra-predicted block closest to the P block. The above is merely an example, and the method of selecting a prediction mode is not limited to the present disclosure.
[0149] <Example 2-4> Deriving an intra prediction mode using DIMD (Decoder-side Intra Mode Derivation)
[0150] In this implementation example, the video decoding device uses a mode derived by DIMD (Decoder-side Intra Mode Derivation) as a prediction mode of an intra predictor for correcting a motion vector in the second direction. Instead of receiving the intra prediction mode of the current block from the video encoding device, the video decoding device derives the prediction mode according to the DIMD technique. That is, the video decoding device derives a gradient value from a template around the current block, generates a HOG (Histogram of Gradient) from the gradient value, and derives the intra prediction mode based on the HOG.
[0151] In the present implementation, the video decoding device selects one of the intra prediction modes derived according to the DIMD. The video decoding device selects the prediction mode with the smallest mode number among the prediction modes having the HOG value. The video decoding device may use the prediction mode with the largest HOG value. Alternatively, the video decoding device selects two prediction modes having the largest HOG value and the second largest HoG value. The video decoding device may generate predictors according to the two prediction modes and then weight the predictors to generate an intra predictor. The above is merely an example, and the method for selecting a prediction mode and the method for generating a predictor are not limited to the present disclosure.
[0152] <Example 2-5> Deriving an intra prediction mode using TIMD (Template-based Intra Mode Derivation)
[0153] In the present embodiment, the video decoding device uses a mode derived from Template-based Intra Mode Derivation (TIMD) as a prediction mode of an intra predictor for correcting a motion vector in the second direction. Instead of receiving an intra prediction mode of a current block from a video encoding device, the video decoding device derives a prediction mode according to the TIMD technique. That is, the video decoding device selects one of the intra prediction modes in the Most Probable (MPM) list based on the template. The video decoding device sets the prediction mode of the current block to the prediction mode derived from TIMD. In the present embodiment, the video decoding device can use the intra prediction mode derived from TIMD as a prediction mode of an intra predictor for correcting a motion vector in the second direction.
[0154] <Example 2-6> Generating a predictor by referencing the restored area in the current picture
[0155] In this implementation, to generate an intra predictor for the current block, the image decoding device performs template matching within the restored region. As shown in the example of Fig. 13, the image decoding device searches for a template with the smallest difference from the template of the current block, and then uses the block corresponding to the searched template (block R in the example of Fig. 13) as the predictor for the current block. In this implementation, various measures, such as MSE, SSE, SAD, and SATD, can be used to estimate the difference between two templates.
[0156] <Realization Example 2-7> Selectively use the methods of Realization Example 2-1 to Realization Example 2-6.
[0157] In this implementation example, in generating a predictor for correcting a motion vector in the second direction and setting a prediction mode, the video decoding device selectively uses the methods of Implementation Examples 2-1 to 2-6. Which method among Implementation Examples 2-1 to 2-6 is to be used can be signaled at various levels such as Video Parameter Set (VPS), Sequence Parameter Set (SPS), Picture Parameter Set (PPS), Picture Header (PH), Slice Header (SH), CTU, CU, etc. For example, as shown in Table 2, a syntax element indicating which method among Implementation Examples 2-1 to 2-6 is to be used can be signaled at the SPS level.
[0158]
[0159] According to Table 2, the video decoding device parses sps_single_mvd_intra_idx at the SPS level. The video decoding device determines the method to use to derive the intra prediction mode using sps_single_mvd_intra_idx according to Table 3. The way the syntax elements described above are signaled at the VPS, PPS, PH, and SH levels is similar to the way they are signaled at the SPS level, as shown in Table 2.
[0160]
[0161] In addition, the video decoding device can determine at the CTU level which method among implementation examples 2-1 to 2-6 to use to correct the motion vector in the second direction, as shown in Table 4.
[0162]
[0163] In Table 4, if the value of modeType is MODE_TYPE_INTER, the video decoding device additionally parses ctu_single_mvd_intra_idx. The video decoding device determines the method to use to derive the intra prediction mode using ctu_single_mvd_intra_idx according to Table 3.
[0164] In addition, the video decoding device can determine at the CU level which method among implementation examples 2-1 to 2-6 to use to correct the motion vector in the second direction, as shown in Table 5.
[0165]
[0166] In Table 5, the video decoding device determines whether the current block performs bidirectional prediction based on the value of inter_pred_idc. In addition, the video decoding device determines the values of ph_mvd_l1_zero_flag and sym_mvd_flag. If the value of ph_mvd_l1_zero_flag is 1, the video decoding device does not parse the motion vector difference in the second direction and sets it to 0. If the value of sym_mvd_flag is 1, the video decoding device performs the SMVD mode. The video decoding device parses the motion vector difference in the first direction and does not parse the motion vector difference in the second direction. That is, the video decoding device sets the motion vector difference in the second direction to the motion vector difference in the first direction with an inverted sign. If the value of inter_pred_idc is equal to PRED_BI and the value of ph_mvd_l1_zero_flag or sym_mvd_flag is equal to 1, the video decoding device parses cu_single_mvd_intra_idx. The video decoding device determines the method to use to derive the intra prediction mode using cu_single_mvd_intra_idx according to Table 3.
[0167] <Example 3> The second direction motion vector is corrected by comparing the difference between the predictor generated by the weighted sum of the intra predictor of the current block and the first direction predictor and the block in the second direction reference picture.
[0168] In this implementation example, the image decoding device compares the difference between the predictor generated based on the weighted sum of the intra predictor of the current block and the first direction predictor and the block indicated by the second direction motion vector to correct the second direction motion vector.
[0169] FIG. 14 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0170] As shown in the example of FIG. 14, the video decoding device weights the predictor indicated by the first direction motion vector in the L0 picture and the intra predictor of the current block to generate a final predictor (Final Predictor in the example of FIG. 14). The video decoding device searches for a block with the smallest difference from the aforementioned final predictor within a predetermined search range on the second reference picture. The video decoding device corrects the motion vector mvL1 to mvL1', which is a vector indicating the searched block. Here, the motion vector mvL1 before correction is a motion vector generated according to the existing SMVD technique. The predetermined search range described above can be generated around the block indicated by mvL1. In the present implementation example, various measures such as MSE, SSE, SAD, SATD, etc. can be used to calculate the difference between two blocks. In addition, various methods according to Implementation Example 2 can be used to generate the intra predictor of the current block.
[0171] <Example 4> Optionally use examples 1, 2, and 3.
[0172] In this implementation example, in order to correct the motion vector in the second direction, the image decoding device selectively uses the methods of Implementation Examples 1 to 3. Which method among Implementation Examples 1 to 3 is to be used can be signaled at various levels such as VPS, SPS, PPS, PH, SH, CTU, CU, etc. For example, as shown in Table 6, a syntax element indicating which method among Implementation Examples 1 to 3 is to be used can be signaled at the SPS level.
[0173]
[0174] According to Table 6, the video decoding device parses sps_single_mvd_mvr_idx at the SPS level. The video decoding device determines the method to be used to compensate the motion vector in the second direction using sps_single_mvd_mvr_idx according to Table 7. The way in which the above-mentioned syntax elements are signaled at the VPS, PPS, PH, and SH levels is similar to the way in which they are signaled at the SPS level, as shown in Table 6.
[0175]
[0176] In addition, the video decoding device can determine at the CTU level which method among implementation examples 1 to 3 to use to correct the motion vector in the second direction, as shown in Table 8.
[0177]
[0178] In Table 8, if the value of modeType is equal to MODE_TYPE_INTER, the video decoding device additionally parses ctu_single_mvd_mvr_idx. The video decoding device determines the method to use to compensate the motion vector in the second direction using ctu_single_mvd_mvr_idx according to Table 7.
[0179] In addition, the video decoding device can determine at the CU level which method among implementation examples 1 to 3 to use to correct the motion vector in the second direction, as shown in Table 9.
[0180]
[0181] In Table 9, the video decoding device determines whether the current block performs bidirectional prediction based on the value of inter_pred_idc. In addition, the video decoding device determines the values of ph_mvd_l1_zero_flag and sym_mvd_flag. If the value of ph_mvd_l1_zero_flag is 1, the video decoding device does not parse the motion vector difference in the second direction and sets it to 0. If the value of sym_mvd_flag is 1, the video decoding device performs the SMVD mode. The video decoding device parses the motion vector difference in the first direction and does not parse the motion vector difference in the second direction. That is, the video decoding device sets the motion vector difference in the second direction to the motion vector difference in the first direction with an inverted sign. If the value of inter_pred_idc is equal to PRED_BI and the value of ph_mvd_l1_zero_flag or sym_mvd_flag is equal to 1, the video decoding device parses cu_single_mvd_mvr_idx. The video decoding device uses cu_single_mvd_mvr_idx according to Table 7 to determine the method to use to compensate the motion vector in the second direction.
[0182] <Example 5> Using the motion vector in the first direction, a motion vector in the second direction is derived, and the derived motion vector in the second direction is corrected.
[0183] In the present implementation example, in the case of bidirectional prediction, the image decoding device derives a motion vector in the second direction based on a motion vector in the first direction without separately receiving motion information in the second direction. Thereafter, the image decoding device corrects the derived motion vector in the second direction.
[0184] As in the example of Fig. 15, when the first direction reference picture and the second direction reference picture exist at temporally opposite positions with respect to the current picture and an object in the picture moves at a constant speed, the motion vector in the first direction and the motion vector in the second direction are positioned on a straight line and point in opposite directions.
[0185] FIG. 16 is an exemplary diagram showing correction of an L1 motion vector according to another embodiment of the present disclosure.
[0186] In this implementation example, the video decoding device derives mvL1 by inverting the sign of mvL0 as in the example of Fig. 16, without receiving second-direction motion information (e.g., mvp_l1_flag, second-direction motion vector difference, etc.). The video decoding device searches for a block that minimizes the difference from the predictor of the current block (block P in the example of Fig. 16) within a predetermined search range on the second-direction reference picture. The video decoding device corrects the motion vector mvL1 to mvL1', which is a vector indicating the searched block. Here, the motion vector mvL1 before correction is a motion vector derived as described above. The predetermined search range described above can be generated around the block indicated by mvL1.
[0187] In this implementation example, various measures such as MSE, SSE, SAD, and SATD can be used to estimate the difference between two blocks. In addition, methods according to Implementation Examples 1 to 4 can be used to generate a predictor for the current block.
[0188] Hereinafter, using the cities of FIGS. 17a to 18, a method for correcting a second motion vector when the current picture exists temporally between a first reference picture and a second reference picture is described.
[0189] FIG. 17a and FIG. 17b are exemplary diagrams showing a method for an image encoding device to encode a current block according to one embodiment of the present disclosure.
[0190] The video encoding device acquires a first reference picture and a second reference picture of the current block (S1700). Here, the current picture exists temporally between the first reference picture and the second reference picture. The video encoding device sets the first reference picture and the second reference picture of the current block, as in the example of FIG. 7A or FIG. 7B.
[0191] The video encoding device determines the first motion vector and the second motion vector of the current block (S1702). In terms of rate distortion optimization, the video encoding device determines the first motion vector from the first reference picture and the second motion vector from the second reference picture.
[0192] The video encoding device generates a first predictor and a second predictor of the current block (S1704). The video encoding device generates a first predictor of the current block using a first motion vector and a first reference picture, and generates a second predictor of the current block using a second motion vector and a second reference picture.
[0193] The video encoding device generates a first bidirectional prediction block of the current block using the first predictor and the second predictor (S1706). For example, the video encoding device may generate the first bidirectional prediction block by weighting the first predictor and the second predictor.
[0194] The video encoding device generates a first motion vector difference of the current block (S1708).
[0195] For example, a video encoding device generates a first motion vector predictor candidate list, and then obtains a first motion vector predictor of a current block based on the first motion vector predictor candidate list and the first motion vector. The video encoding device determines an index indicating the first motion vector predictor in the first motion vector predictor candidate list. The video encoding device subtracts the first motion vector predictor from the first motion vector to generate a first motion vector difference.
[0196] The video encoding device encodes an index indicating a first motion vector predictor and a first motion vector difference (S1710).
[0197] The video encoding device derives a second motion vector before correction (S1712).
[0198] The video encoding device derives a second motion vector before correction according to the SMVD technique or implementation example 5.
[0199] According to the SMVD technique, the video encoding device generates a list of second motion vector predictor candidates, and then obtains a second motion vector predictor of the current block based on the list of second motion vector predictor candidates and the second motion vector. The video encoding device derives the second motion vector before compensation by adding the second motion vector predictor and the sign-inverted first motion vector difference.
[0200] Alternatively, according to Example 5, the image decoding device can invert the sign of the first motion vector to derive the second motion vector before correction.
[0201] The video encoding device generates a comparison block using at least one of the first predictor of the current block or the intra predictor of the current block (S1714).
[0202] According to Example 1, the image encoding device can generate the aforementioned comparison block. That is, the image encoding device sets the comparison block as the first predictor.
[0203] According to Realization Example 2, the video encoding device can generate a comparison block. That is, the video encoding device generates an intra predictor of the current block according to Realization Examples 2-1 to 2-7, and then sets the comparison block as the intra predictor.
[0204] According to Example 3, the video encoding device can generate a comparison block. That is, the video encoding device generates an intra predictor according to Example 2. The video encoding device generates a block by weighting the first predictor and the intra predictor, and then sets the comparison block as the weighted block.
[0205] According to embodiment 4, the video encoding device can generate a comparison block. That is, the video decoding device obtains an index that indicates a method for generating a comparison block according to embodiment 1, embodiment 2, or embodiment 3. The video encoding device determines the above-described index in terms of rate distortion optimization or obtains it from a higher level. According to the above-described index, the video encoding device uses the first predictor as a comparison block, uses the intra predictor as a comparison block, or uses a block generated by weighting the first predictor and the intra predictor as a comparison block.
[0206] The video encoding device searches for a block with the smallest difference from the comparison block within a preset search range on the second reference picture (S1716). The preset search range may be set around the second motion vector before correction.
[0207] The video encoding device corrects the second motion vector before correction with a vector indicating the searched block (S1718).
[0208] The video encoding device generates a corrected second predictor (S1720). The video encoding device generates the corrected second predictor using the corrected second motion vector and the second reference picture.
[0209] The video encoding device generates a second bidirectional prediction block of the current block using the first predictor and the corrected second predictor (S1722). For example, the video encoding device may generate the second bidirectional prediction block by weighting the first predictor and the corrected second predictor.
[0210] The video encoding device determines a flag indicating non-transmission of the second motion vector difference using the first bidirectional prediction block and the second bidirectional prediction block (S1724). The aforementioned flag indicates that the second motion vector is derived by the video decoding device because the second motion vector difference is not transmitted. In terms of rate distortion optimization, the video encoding device can determine the flag. For example, if the first bidirectional prediction block is optimal, the flag is determined to be false. On the other hand, if the second bidirectional prediction block is optimal, the flag is determined to be true.
[0211] The video encoding device encodes a flag (S1726).
[0212] The video encoding device checks the flag (S1728).
[0213] If the flag is true (Yes in S1728), the video encoding device skips encoding and transmitting the second motion vector difference. Since the second motion vector difference is not transmitted, the video decoding device derives the second motion vector before correction according to the SMVD technique or Implementation Example 5.
[0214] If the flag is false (No of S1728), the video encoding device performs the following steps.
[0215] The video encoding device generates a second motion vector difference of the current block (S1740).
[0216] For example, the video encoding device generates a second motion vector predictor candidate list, and then obtains a second motion vector predictor of the current block based on the second motion vector predictor candidate list and the second motion vector. The video encoding device determines an index indicating the second motion vector predictor in the second motion vector predictor candidate list. The video encoding device subtracts the second motion vector predictor from the second motion vector to generate a second motion vector difference.
[0217] The video encoding device encodes an index indicating a second motion vector predictor and a second motion vector difference (S1742).
[0218] Thereafter, the video encoding device generates a residual block by subtracting the first bidirectional prediction block or the second bidirectional prediction block from the current block based on the flag. The video encoding device applies transformation / quantization to the residual block to generate transform coefficients, and then encodes the quantized transform coefficients.
[0219] FIG. 18 is an exemplary diagram showing a method for an image decoding device to restore a current block according to one embodiment of the present disclosure.
[0220] The video decoding device acquires the first reference picture and the second reference picture of the current block (S1800). Here, the current picture exists temporally between the first reference picture and the second reference picture. The video decoding device sets the first reference picture and the second reference picture of the current block, as in the example of FIG. 7a or FIG. 7b.
[0221] The video decoding device generates a first motion vector of the current block (S1802).
[0222] For example, a video decoding device decodes an index indicating a first motion vector predictor and a first motion vector differential from a bitstream. The video decoding device generates a first motion vector predictor candidate list, and then obtains a first motion vector predictor of a current block based on the first motion vector predictor candidate list and the decoded index. The video decoding device adds the first motion vector predictor and the first motion vector differential to generate a first motion vector.
[0223] The video decoding device generates a first predictor of the current block using the first motion vector and the first reference picture (S1804).
[0224] The video decoding device decodes a flag indicating non-transmission of the second motion vector difference from the bitstream (S1806).
[0225] The video decoding device checks the flag (S1808).
[0226] If the flag is true (Yes in S1808), the video decoding device performs the following steps.
[0227] The video decoding device derives a second motion vector (1810).
[0228] Since the second motion vector difference is not transmitted, the image decoding device derives the second motion vector according to the SMVD technique or implementation example 5.
[0229] According to the SMVD technique, the video decoding device decodes an index indicating a second motion vector predictor from the bitstream. The video decoding device generates a list of second motion vector predictor candidates, and then obtains a second motion vector predictor of the current block based on the list of second motion vector predictor candidates and the decoded index. The video decoding device derives the second motion vector by adding the second motion vector predictor and the sign-inverted first motion vector difference.
[0230] Alternatively, according to Example 5, the image decoding device can invert the sign of the first motion vector to derive the second motion vector.
[0231] The image decoding device generates a comparison block using at least one of the first predictor of the current block or the intra predictor of the current block (S1812).
[0232] According to Example 1, the image decoding device can generate the aforementioned comparison block. That is, the image decoding device sets the comparison block as the first predictor.
[0233] According to Realization Example 2, the video decoding device can generate a comparison block. That is, the video decoding device generates an intra predictor of the current block according to Realization Examples 2-1 to 2-7, and then sets the comparison block as the intra predictor.
[0234] According to Example 3, the video decoding device can generate a comparison block. That is, the video decoding device generates an intra predictor according to Example 2. After generating a block by weighting the first predictor and the intra predictor, the video decoding device sets the comparison block as the weighted block.
[0235] According to embodiment 4, the video decoding device can generate a comparison block. That is, the video decoding device obtains an index that indicates a method for generating a comparison block according to embodiment 1, embodiment 2, or embodiment 3. The video decoding device decodes the above-described index from a bitstream or obtains it from a higher level. According to the above-described index, the video decoding device uses the first predictor as a comparison block, uses the intra predictor as a comparison block, or uses a block generated by weighting the first predictor and the intra predictor as a comparison block.
[0236] The video decoding device searches for a block with the smallest difference from the comparison block within a preset search range on the second reference picture (S1814). The preset search range may be set around the derived second motion vector.
[0237] The video decoding device corrects the second motion vector with a vector indicating the searched block (S1816).
[0238] The video decoding device generates a second predictor of the current block using the corrected second motion vector and the second reference picture (S1818).
[0239] On the other hand, if the flag is false (No in S1808), the video decoding device performs the following steps.
[0240] The video decoding device generates a second motion vector of the current block (S1830).
[0241] For example, a video decoding device decodes an index indicating a second motion vector predictor and a second motion vector differential from a bitstream. The video decoding device generates a list of second motion vector predictor candidates, and then obtains a second motion vector predictor of the current block based on the list of second motion vector predictor candidates and the decoded index. The video decoding device generates a second motion vector by adding the second motion vector predictor and the second motion vector differential.
[0242] The video decoding device generates a second predictor of the current block using the second motion vector and the second reference picture (S1832).
[0243] After generating different second predictors according to the flag, the image decoding device generates a bidirectional prediction block of the current block using the first predictor and the second predictor (S1820).
[0244] Thereafter, the video decoding device decodes the quantized transform coefficients from the bitstream and applies inverse quantization / inverse transformation to the quantized transform coefficients to generate a residual block. The video decoding device adds the residual block and the bidirectional prediction block to generate a restored block of the current block.
[0245] Although the flowchart / timing diagram of this specification describes each process as being executed sequentially, this is merely an illustrative description of the technical idea of one embodiment of the present disclosure. In other words, a person of ordinary skill in the art to which one embodiment of the present disclosure belongs may modify and apply various modifications and variations by changing the order described in the flowchart / timing diagram without departing from the essential characteristics of one embodiment of the present disclosure, or by executing one or more of the processes in parallel. Therefore, the flowchart / timing diagram is not limited to a chronological order.
[0246] It should be understood that the exemplary embodiments described above can be implemented in many different ways. The functions or methods described in one or more examples can be implemented in hardware, software, firmware, or any combination thereof. It should be understood that the functional components described herein are labeled as "units" to further emphasize their implementation independence.
[0247] Meanwhile, the various functions or methods described in this embodiment may also be implemented as instructions stored on a non-transitory storage medium that can be read and executed by one or more processors. Non-transitory storage media include, for example, all types of storage devices that store data in a form readable by a computer system. For example, non-transitory storage media include storage media such as erasable programmable read-only memory (EPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSDs).
[0248] The above description is merely an example of the technical idea of the present embodiment, and those skilled in the art will appreciate that various modifications and variations can be made without departing from the essential characteristics of the present embodiment. Therefore, the present embodiments are not intended to limit the technical idea of the present embodiment, but rather to explain it, and the scope of the technical idea of the present embodiment is not limited by these embodiments. The scope of protection of the present embodiment should be interpreted by the claims below, and all technical ideas within a scope equivalent thereto should be interpreted as being included in the scope of rights of the present embodiment.
[0249] (Explanation of symbols)
[0250] 120: Prediction Department
[0251] 155: Entropy decryption unit
[0252] 510: Entropy decryption unit
[0253] 540: Forecasting Department
[0254]
[0255] CROSS-REFERENCE TO RELATED APPLICATION
[0256] This patent application claims priority to Korean patent application No. 10-2023-0048702, filed in Korea on April 13, 2023, and Korean patent application No. 10-2024-0015111, filed in Korea on January 31, 2024, the entire contents of which are incorporated herein by reference.
Claims
1. A method for restoring a current block performed by a video decoding device, A step of obtaining a first reference picture and a second reference picture of the current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; A step of generating a first motion vector of the current block; A step of generating a first predictor of the current block using the first motion vector and the first reference picture; A step of generating a comparison block using at least one of the first predictor or the intra predictor of the current block; A step of searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; and A step of setting a second motion vector as a vector indicating the above-mentioned searched block. A method, characterized by including:
2. In paragraph 1, A step of decoding a flag indicating non-transmission of a second motion vector difference from a bitstream; and Steps to check the above flags Including more, A method characterized in that, if the above flag is true, the step of generating the comparison block or the step of setting the second motion vector are performed.
3. In paragraph 2, If the above flag is true, A step of generating a second predictor of the current block using the corrected second motion vector and the second reference picture; and A step of generating a bidirectional prediction block of the current block using the first predictor and the second predictor. A method, characterized in that it further comprises:
4. In paragraph 2, If the above flag is false, A step of obtaining a second motion vector predictor of the current block, decoding a second motion vector difference from the bitstream, and then adding the second motion vector predictor and the second motion vector difference to generate the second motion vector; A step of generating a second predictor of the current block using the second motion vector and the second reference picture; and A step of generating a bidirectional prediction block of the current block using the first predictor and the second predictor. A method, characterized in that it further comprises:
5. In paragraph 1, The step of generating the first motion vector is: A method characterized in that the first motion vector predictor of the current block is obtained, the first motion vector difference is decoded from a bitstream, and the first motion vector is generated by adding the first motion vector predictor and the first motion vector difference.
6. In paragraph 1, The steps for generating the above comparison block are: A method characterized in that the above comparison block is set as the first predictor.
7. In paragraph 1, The steps for generating the above comparison block are: a step of generating the intra predictor; and A step of setting the above comparison block as the intra predictor A method, characterized by including:
8. In paragraph 1, The steps for generating the above comparison block are: A step of generating the intra predictor; A step of generating a block by weighting the first predictor and the intra predictor; and A step of setting the above comparison block to the above weighted block. A method, characterized by including:
9. In paragraph 1, The steps for generating the above comparison block are: A step of obtaining an index that instructs a method of generating the above comparison block; and A method characterized in that, according to the above index, the first predictor is used as the comparison block, the intra predictor is used as the comparison block, or a block generated by weighting the first predictor and the intra predictor is used as the comparison block.
10. In paragraph 7, The step of generating the above intra predictor is: A method characterized by generating the intra predictor using a preset prediction mode.
11. In paragraph 7, The step of generating the above intra predictor is: A step of searching intra predicted blocks around the current block; A step of selecting one prediction mode according to a preset method among the prediction modes of the intra predicted blocks; and A step of generating the intra predictor using the above-mentioned selected prediction mode. A method, characterized by including:
12. In paragraph 7, The step of generating the above intra predictor is: A step of searching for intra-predicted blocks around a block indicated by the first motion vector on the first reference picture; A step of selecting one prediction mode according to a preset method among the prediction modes of the intra predicted blocks; and A step of generating the intra predictor using the above-mentioned selected prediction mode. A method, characterized by including:
13. In paragraph 7, The step of generating the above intra predictor is: A step of deriving a prediction mode according to DIMD (Decoder-side Intra Mode Derivation) technology; and A step of generating the intra predictor using the above-described induced prediction mode. A method, characterized by including:
14. In paragraph 7, The step of generating the above intra predictor is: A step of deriving a prediction mode according to TIMD (Template-based Intra Mode Derivation) technology; and A step of generating the intra predictor using the above-described induced prediction mode. A method, characterized by including:
15. In paragraph 7, The step of generating the above intra predictor is: A step of performing template matching in the restored area within the current picture to search for a template with the minimum difference from the template of the current block; and A step of using a block corresponding to the above-mentioned searched template as the intra predictor. A method, characterized by including:
16. A method for encoding a current block performed by a video encoding device, A step of obtaining a first reference picture and a second reference picture of the current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; A step of determining a first motion vector and a second motion vector of the current block; A step of generating a first predictor of the current block using the first motion vector and the first reference picture, and generating a second predictor of the current block using the second motion vector and the second reference picture; A step of generating a first bidirectional prediction block of the current block using the first predictor and the second predictor; A step of generating a comparison block using at least one of the first predictor or the intra predictor of the current block; A step of searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; A step of correcting the second motion vector with a vector indicating the searched block; A step of generating a corrected second predictor using the corrected second motion vector and the second reference picture; and A step of generating a second bidirectional prediction block of the current block using the first predictor and the corrected second predictor. A method, characterized by including:
17. In paragraph 16, A step of determining a flag indicating non-transmission of a second motion vector difference using the first bidirectional prediction block and the second bidirectional prediction block; and Step of encoding the above flag A method, characterized in that it further comprises:
18. In paragraph 17, A step of obtaining a first motion vector predictor of the current block and generating a first motion vector difference by subtracting the first motion vector predictor from the first motion vector; and Step of encoding the first motion vector difference A method, characterized in that it further comprises:
19. In paragraph 18, Further comprising the step of checking the above flag, If the above flag is false, A step of obtaining a second motion vector predictor of the current block and generating a second motion vector difference by subtracting the second motion vector predictor from the second motion vector; and Step of encoding the second motion vector difference A method, characterized in that it further comprises:
20. A computer-readable recording medium storing a bitstream generated by an image encoding method, wherein the image encoding method comprises: A step of obtaining a first reference picture and a second reference picture of a current block, wherein the current picture exists temporally between the first reference picture and the second reference picture; A step of determining a first motion vector and a second motion vector of the current block; A step of generating a first predictor of the current block using the first motion vector and the first reference picture, and generating a second predictor of the current block using the second motion vector and the second reference picture; A step of generating a first bidirectional prediction block of the current block using the first predictor and the second predictor; A step of generating a comparison block using at least one of the first predictor or the intra predictor of the current block; A step of searching for a block having a minimum difference from the comparison block within a preset search range on the second reference picture; A step of correcting the second motion vector with a vector indicating the searched block; A step of generating a corrected second predictor using the corrected second motion vector and the second reference picture; and A step of generating a second bidirectional prediction block of the current block using the first predictor and the corrected second predictor. A recording medium, characterized by including:
Citation Information
Patent Citations
A device, a method and a computer readable storage medium for industrial safety management
KR102921961B1
Method and apparatus for improved intra prediction
US20230049154A1
Method and device for processing video signal for inter-prediction
WO2020180129A1
KR20210032535A
