Patent ID: 8009730

Claim:
Method for controlling the encoder output bit rate in a block-based video encoder, wherein the transform coefficients derived from a pixel block are quantized using a variable quantization parameter and are encoded, and wherein said quantization parameter is related to the quantizer step size and said pixel blocks can be coded in intra mode or in inter mode, said method including the steps: determining for each macroblock of a frame containing one or more of said blocks of transform coefficients, which percentage ρ of the quantized coefficients gets the amplitude ‘zero’ depending on an applied value of said quantization parameter; based on the resulting information about the ρ value/quantization parameter relationship for the macroblocks of said frame, controlling the encoder output bit rate R for said frame, when processing said macroblocks, by using said quantization parameter value such that the control of the bit rate R is based on R(ρ)=Θ*(100−ρ), Θ being a constant, wherein, when controlling the encoder output bit rate R by using said quantization parameter value, the quantization parameter value applied to the current macroblock is constrained by a pre-determined deviation from the average of the quantization parameter values for all prior macroblocks in the current frame until the current macroblock, and wherein said percentage ρ determination for each macroblock of transform coefficients of a frame is carried out using two different types of look-up tables, a first type mapping the coding mode, the position of a transform coefficient in a block and the magnitude value of transform coefficients to a corresponding candidate quantization parameter value, a second type mapping the coding mode, the position of a transform coefficient in a block and a candidate quantization parameter to an applicable quantization threshold value for a quantization parameter.