Patent ID: 8416849

Claim:
A method of macroblock level self-adaptative bit rate allocation for video image comprising: step A, employing a continuous analysis in space and a specific motion search algorithm to macroblocks of sampled images, so as to calculate macroblock texture complexity factor C t and motion complexity factor C m respectively by using sobel operators and motion predicted SATD; step B, calculating macroblock energy E i by using a formula E i =log 2 (C t +C m ); step C, combining macroblock bits and macroblock energy by using a formula b ( n , i ) = E i ∑ n = 0 i - 1 ⁢ E n × i N × B n , wherein, b (n,i) is a target bits allocated to a ith macroblock of a nth frame image; i is a index number of a current macroblock within the image; N is a number of macroblocks within the image; B n is a target bits allocated to the nth frame image; E i is a ith macroblock energy; step D, calculating quantification parameters Q p for encoding by using R-D rate distortion model in macroblock unit in a condition that bits of macroblock has been allocated; step E, balancing complexity of the video image and output bit rate of an encoder of the video image via the quantification parameters Q p , thus making the output bit rate of the encoder constant; Step F, obtaining a video image with uniform quality in image space while ensuring accuracy of bit rate allocation from the encoder with constant output bit rate.