摘要 |
PROBLEM TO BE SOLVED: To provide a method for selecting an optimal coding mode for each macroblock in a video. SOLUTION: A plurality of candidate coding modes are present, each macroblock includes a set of macroblock domains, a difference between a transform coefficient of an input macroblock and a transform coefficient of a predicted macroblock is judged in a transform-domain, and the difference is quantized to yield a quantized difference. An inverse quantization is performed on the quantized difference to yield a reconstructed difference. A rate required to code the quantized difference is determined. A distortion is determined according to the difference and the reconstructed difference. Then, a cost is determined for each candidate mode based on the rate and the distortion, and the candidate coding mode that yields a minimum cost is selected as the optimal coding mode for the macroblock. COPYRIGHT: (C)2006,JPO&NCIPI |