主权项 |
1. A video encoding apparatus, comprising:
a prediction unit, implemented by one or more processors, configured to generate a prediction block based on interpolating chroma sub-samples of a reference frame referenced by a motion vector of a current block; a subtraction unit, implemented by one or more processors, configured to generate a residual block based on subtracting the prediction block from the current block; a transform unit, implemented by one or more processors, configured to generate a frequency-transformed block based on transforming the residual block; a quantization unit, implemented by one or more processors, configured to generate a quantized frequency-transformed block based on quantizing the frequency-transformed block; and an encoding unit, implemented by one or more processors, configured to encode the quantized frequency-transformed block into a bitstream, wherein the prediction unit is configured to
calculate non-divided values of a first set of sub-samples by multiplying chroma integer-pixels of the reference frame by integer numerators and summing the multiplied chroma integer-pixels,derive the first set of sub-samples by dividing the non-divided values by a common denominator, andderive a second set of sub-samples by interpolation from the non-divided values of the first set of sub-samples, not from the first set of sub-samples which have been divided by the common denominator, and then division by the common denominator. |