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

|
1. A method for decoding video data comprising frames, each frame being split into blocks, the method for decoding comprising:
determining first and second motion vectors for a block to be decoded in a frame to be decoded, the first motion vector specifying a first area in a first frame different from the frame to be decoded, and the second motion vector specifying a second area in a second frame different from the frame to be decoded;
determining, by using at least one of signal content of the first area and signal content of the second area, whether to perform refinement for the first and second motion vectors in the method for decoding, in a case where a mode in which the refinement for the first and second motion vectors is capable of being performed is used in the method for decoding, wherein signal content of the block to be decoded is not used to determine whether to perform the refinement;
wherein in a case where it is determined that the refinement is performed, performing the refinement for the first and second motion vectors to generate refined first and second motion vectors at sub-pixel accuracy; and
wherein in a case where the refinement is performed, decoding the block to be decoded using the refined first and second motion vectors;
wherein a plurality of patterns for refining is capable of being used in the 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,
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,
wherein, the refinement for the first and second motion vectors is capable of including first refinement and second refinement which is performed after the first refinement.
|