Patent ID: 8254463

Claim:
An encoded data output method of outputting encoded data of respective macroblocks corresponding to an input bit stream in a predetermined number of bits or less, comprising: a prediction mode determination step for determining whether or not a prediction mode applied to the macroblocks is a predetermined prediction mode; an encoded data selection step for selecting a predetermined type of encoded data corresponding to the pixels at predetermined positions in the macroblocks to which the predetermined prediction mode is applied; and a bit distribution step for more preferentially distributing bits, the number of which is already determined for each macroblock, to a predetermined type of encoded data selected at the encoded data selection step than a predetermined type of encoded data that is not selected at the encoded data selection step in the macroblocks to which the predetermined prediction mode is applied, wherein the prediction mode determination step, the encoded data selection step, and the bit distribution step are executed for each macroblock independently from macroblocks other than said each macroblock.