However, according to a certain complexity of the pattern and magnitude of motion of the noncompressed video data, where the weighting coefficients KP and KB and the ratios (DI /DP, DI /DB) are simply brought into proportion to each other, there is a case where the values of the weighting coefficients KP and KB become extremely large and extremely small.