| CPC H04N 19/523 (2014.11) [H04N 19/56 (2014.11); H04N 19/176 (2014.11)] | 7 Claims |

|
1. A method for decoding video data comprising frames, each frame being split into blocks, the method for decoding comprising:
determining whether a first mode is used, the first mode being a mode in which at least refinement for a motion vector related to a block to be decoded is capable of being performed in the method for decoding;
determining, in a case where the first mode is used, whether to perform the refinement for the motion vector, based on at least sample values of the video data in an area different from the block to be decoded;
refining the motion vector related to the block to be decoded, in a case where it is determined that the refinement is performed; and
decoding the block using an inter prediction using the refined motion vector, in a case where the refinement is performed, wherein inverse transformation is used for decoding the block of pixels,
wherein a plurality of patterns for refining is capable of being used in the first mode in the method for decoding;
wherein the plurality of patterns includes a horizontal pattern and a vertical pattern,
wherein, when using the horizontal pattern, a plurality of horizontal sub-pixel positions on the right of a position to be refined and a plurality of horizontal sub-pixel positions on the left of the position to be refined are candidates of a horizontal position of the refined motion vector, and
wherein, when using the vertical pattern, a plurality of vertical sub-pixel positions above the position to be refined and a plurality of vertical sub-pixel positions below the position to be refined are candidates of a vertical position of the refined motion vector.
|