Patent ID: 7848423

Claim:
A video encoding apparatus of encoding an input video image by motion compensation predictive encoding, the input video image having a luminance component and first and second color difference components, the apparatus comprising: a determining module configured to determine an index indicating one combination of a plurality of combinations comprising (A) a first weighting factor for the luminance component, (B) a second weighting factor for the first color difference component, (C) a third weighting factor for the second color difference component, (D) a first offset for the luminance component, (E) a second offset for the first color difference component, (F) a third offset for the second color difference component, (G) a first flag indicating presence or non-presence of the weighting factor and the offsets for the luminance component, and (H) a second flag indicating presence or non-presence of the weighting factor and the offsets for the first and second color difference components; a first generator configured to generate a motion compensation prediction image for a to-be-encoded block by multiplying the luminance and first and second color difference components of a reference image by the weighting factors, respectively, and adding the offsets, to results of the multiplying, based on a motion vector for the to-be-encoded block of the input video image; a second generator configured to generate a prediction error signal for the to-be-encoded block by calculating an error between the input video image and the motion compensation prediction image; a third generator configured to generate a quantized orthogonal transform coefficient for the to-be-encoded block by subjecting the prediction error signal to orthogonal transform and quantization; and an encoder configured to encode, for the to-be-encoded block, (1) the quantized orthogonal transform coefficient, (2) information of the motion vector and (3) the index, and encode, for one or more to-be-encoded blocks, the plurality of combinations.