Patent ID: 7720145

Claim:
An article comprising a computer readable medium having instructions thereon which when executed by a computing platform result in execution of a method for computing a quantizer value (Q) in a video encoder, comprising: modeling bits (B) required to code a current macroblock in a frame, in a rate control unit of the video encoder, using an equation B=a*S/Q+b*S/Q 2 , where a and b are coefficients of the equation, S is signal energy of the current macroblock, and Q is the quantizer value used to code the current macroblock; determining values of the coefficients a and b of the equation using a set of values of R i , S i , and Q i in the rate control unit, where R i is the actual number of bits consumed by an i th coded macroblock with signal energy (S i ) at a quantizer value (Q i ), and i varies from 0 to N−1, where N is a number of coded macroblocks in the frame up to the current macroblock; and, computing the quantizer value (Q) for the current macroblock, in the rate control unit, by solving the equation with the determined values of coefficients a and b, the signal energy (S) for the current macroblock, and the bits (B) allocated for the current macroblock.