CPC H04N 19/56 (2014.11) [H04N 19/117 (2014.11); H04N 19/51 (2014.11); H04N 19/513 (2014.11); H04N 19/52 (2014.11); H04N 19/573 (2014.11); H04N 19/577 (2014.11)] | 2 Claims |
1. A decoding apparatus, comprising:
circuitry; and
memory coupled to the circuitry,
wherein in operation, the circuitry:
generates one or more motion vector predictor candidates;
selects a motion vector predictor from among the one or more motion vector predictor candidates;
decodes a motion vector of a current block using the motion vector predictor; and
decodes the current block using the motion vector of the current block, and in generating the one or more motion vector predictor candidates, the circuitry:
determines whether left adjacent blocks on a left side of the current block include a first motion vector, the first motion vector being available without scaling;
when the left adjacent blocks include the first motion vector, generates the first motion vector as one of the one or more motion vector predictor candidates;
when the left adjacent blocks do not include the first motion vector, determines whether the left adjacent blocks include a second motion vector, the second motion vector being made available by scaling;
when the left adjacent blocks include the second motion vector, scales the second motion vector to generate a scaled second motion vector as one of the one or more motion vector predictor candidates;
when the left adjacent blocks do not include the second motion vector, does not generate the one or more motion vector predictor candidates from the left adjacent blocks;
determines whether upper adjacent blocks on an upper side of the current block include a third motion vector, the third motion vector being available without scaling;
when the upper adjacent blocks include the third motion vector, generates the third motion vector as one of the one or more motion vector predictor candidates;
when the upper adjacent blocks do not include the third motion vector, determines (i) whether the upper adjacent blocks include a fourth motion vector, the fourth motion vector being made available by scaling, and (ii) whether the left adjacent blocks include one or more inter-predicted blocks;
when (i) the upper adjacent blocks include the fourth motion vector and (ii) the left adjacent blocks do not include an inter-predicted block, scales the fourth motion vector to generate a scaled fourth motion vector as one of the one or more motion vector predictor candidates; and
when (i) the upper adjacent blocks do not include the fourth motion vector or (ii) the left adjacent blocks include at least one inter-predicted block, does not generate the one or more motion vector predictor candidates from the upper adjacent blocks.
|