CN1767653A - Bit rate control method - Google Patents

Bit rate control method Download PDF

Info

Publication number
CN1767653A
CN1767653A CN 200510110106 CN200510110106A CN1767653A CN 1767653 A CN1767653 A CN 1767653A CN 200510110106 CN200510110106 CN 200510110106 CN 200510110106 A CN200510110106 A CN 200510110106A CN 1767653 A CN1767653 A CN 1767653A
Authority
CN
China
Prior art keywords
frame
prev
zero
cur
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510110106
Other languages
Chinese (zh)
Other versions
CN100448297C (en
Inventor
李国平
赵海武
陈勇
李萍
侯钢
王国中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
INESA Electron Co., Ltd.
Original Assignee
Central Academy of SVA Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Central Academy of SVA Group Co Ltd filed Critical Central Academy of SVA Group Co Ltd
Priority to CNB2005101101068A priority Critical patent/CN100448297C/en
Publication of CN1767653A publication Critical patent/CN1767653A/en
Application granted granted Critical
Publication of CN100448297C publication Critical patent/CN100448297C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention provides a code rate control method, which applies code rate controls of a frame level and a macroblock level to encode images according to the image kind of the current frame.

Description

A kind of bit rate control method
Technical field
The present invention relates to a kind of bit rate control method.
Background technology
In recent years a collection of digital audio/video encoding and decoding standard of Chu Xianing, representative have an international standard MPEG-1, H.263, MPEG-2, MPEG-4, AVC H.264/MPEG-4, the autonomous standard A VS that formulates of China, WM9 that Microsoft releases or the like, these standards all relate to different video code check range of application in actual applications.In order to make different standard application in different range of code rates, we just are necessary for the different rate control algorithm of various standard formulations, picture is at MPEG-1, H.263, MPEG-2, in these standards of MPEG-4, there are a lot of rate control algorithms to obtain practical application, yet at up-to-date video standard, as H.264/MPEG-4AVC and in the AVS standard, owing to adopted a lot of brand-new coding techniquess, a lot of rate control algorithms in the past can not satisfy practical application, so we need a kind of rate control algorithm at these up-to-date standard design.
Summary of the invention
A kind of bit rate control method provided by the invention, the control precision height, subjective picture quality is good, and computation complexity is very low simultaneously, not only is fit to the various software application and the real-time working of suitable hardware.
In order to achieve the above object, the invention provides a kind of bit rate control method, it comprises following steps:
Step 1, in frame level bit-rate control, (GOP) is unit with each image sets, calculates the bit B of each image sets Gop:
Step 1.1, according to channel target bit rate R and frame per second F, calculate the bit B of each image sets Gop:
B gop = B ful ln ess + S gop × ( R F ) - - - ( 1 )
B in following formula FullnessBe remaining bit number in the buffer memory, S GopBe the number of image frames among each image sets GOP;
Step 1.2, to remaining bit number B in the buffer memory FullnessBe initialized as 0.
Step 2, can be I image (I picture) according to the image type of present frame, P image (forward prediction image) or B image (bidirectional predictive picture) calculate the bit B that current image frame is distributed Cur_frame:
B cur_frame=P cur×(B gop-B cur_gop_used)/(P ip×P pb×F i+P pb×F p+F b)(2)
F in following formula i, F p, F bBe respectively the frame number of I image, P image and B image, P IpBe the Bit Allocation in Discrete weight parameter of I image with respect to the P image, P PbBe the Bit Allocation in Discrete weight parameter of P image with respect to the B image, P CurWeight parameter for present frame;
Initialization B Cur_gop_used,, F i, F p, F b, and set P Ip, P PbValue;
The target average quantization coefficient Q of step 3, calculating current image frame Cur_ave:
If the already used bit number of former frame image is B Prev_frame, the number of former frame image summation about non-zero DCT (discrete cosine transform) coefficient is N Prev_frame, then the number of summation about non-zero DCT coefficients is in the present frame:
N cur_frame=B cur_frame×N prev_frame/B prev_frame (3)
If the number of a frame DCT coefficient is N Total_frame, the average quantization coefficient of former frame image is Q Prev_ave, then the target average quantization coefficient of current image frame is:
Q cur_ave=Q prev_ave+W×(N prev_frame-N cur_frame/(N total_frame-N prev_frame)(4)
W is a weight coefficient in following formula, and its value can define according to different situations.
Step 4, macro-block level Rate Control:
If the already used bit of coded macroblocks is B in step 4.1 present image Cur_frame_used, the bit that then remains macro block and distributed is:
B cur_frame_rest=B cur_frame-B cur_frame_used (5)
If the number of the summation about non-zero DCT coefficients in the coded macroblocks is N Cur_frame_used, then the number of the summation about non-zero DCT coefficients of coded macroblocks is not:
N cur_frame_rest=B cur_frame_rest×N cur_frame_used/B cur_frame_used (6)
If the number of the DCT coefficient of step 4.2 residue macro block is N Total_frame_rest, the average of the summation about non-zero DCT coefficients of current macro is:
N cur_mb_sve=N cur_frame_rest/N cotal_frame_rest (7)
The number N of the summation about non-zero DCT coefficients of step 4.3, calculating current macro Pred_mb:
Because in coded macroblocks, there is correlation between the macro block, therefore we can be according to the number of the summation about non-zero DCT coefficients of coded macroblocks, perhaps according to the sum of current macro DCT coefficient and the prediction number of current macro zero DCT coefficient, dope the number of the summation about non-zero DCT coefficients of current macro, that is:
N pred _ mb = Pred i = 1 N ( N i prev _ mb ) - - - ( 8 )
N i Prev_mbBe illustrated in the current macro number of the summation about non-zero DCT coefficients of coded macroblocks before;
nZ pred _ mb = Pred i = 1 N ( nZ i prev _ mb ) - - - ( 9 )
NZ i Prev_mbBe illustrated in the current macro number of the zero DCT coefficient of coded macroblocks before, nZ Pred_mbPrediction number for the zero DCT coefficient of current macro;
N pred_mb=N mb-nZ pred_mb (10)
In following formula, N MbThe sum of the DCT coefficient of expression current macro, Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology.
If the quantization parameter of the previous macro block of step 4.4 current coding macro block is Q Prev_mb, then the quantization parameter of current coding macro block is:
Q cur _ mb = Q prev _ mb + W × ( N pred _ mb - N cur _ mb _ ave ) Max ( N total _ frame _ rest - N pred _ mb ' N total _ frame _ rest - N cur _ mb _ ave ) - - - ( 11 )
Max gets max-operator for both in following formula, and W is a weight coefficient, and its value is defined according to different situations by the user;
With Q Cur_mbBe limited in [Q Cur_ave-step, Q Cur_ave+ step] in the scope, wherein step is the jump coefficient of quantization parameter, is defined as required by the user.
Step 4.5, macroblock coding.
After step 4.6, current macro coding are finished, upgrade the employed bit B of coded macroblocks Cur_frameAnd the number N of the summation about non-zero DCT coefficients of coded macroblocks Cur_frame_usedIf all macroblock codings of present image are finished, promptly finish the frame coding of present image, then arrive step 5, otherwise to step 4.1.
Step 5, current image frame coding are finished, upgrade B Cur_gop_used, B Prev_frame, N Prev_frame,Q Prev_ave, judge whether the frame coding of two field pictures all among the present image group GOP is finished, be, then arrive step 6, otherwise to step 2.
Step 6, with remaining bit number assignment in the current cache to the B parameter of present image group GOP FullnessIf the coding of all images group is all finished, then finish, otherwise to step 1.
Further, in the step 2 of the present invention, the weight parameter P of present frame CurBe defined as:
Further, defined the prediction of current macro summation about non-zero DCT coefficients in the formula in the step 4.3 of the present invention (8), Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology.Pred can have a lot of methods, as mean value method and median method.
Mean value method:
N pred _ mb = 1 n Σ i = 1 n ( N i pred _ mb ) - - - ( 13 )
Wherein, N Prev_mbThe predicted value of expression current macro non-zero discrete cosine transform coefficient, N i Prev_mbThe number of representing the non-zero discrete cosine transform coefficient of encoded macro block i.
Median method:
N pred_mb=MID(N A prev_mb,N B prev_mb,N C prev_mb) (14)
MID represents to get coded macroblocks N in following formula A Prev_mb, N B Prev_mb, N C Prev_mbMedian;
When the number of coded macroblocks more than or equal to 3 the time, then choose three macro blocks with current coding macro block correlation maximum therein, obtain the number of their non-zero discrete cosine transform coefficient: N respectively A Prev_mb, N B Prev_mb, N C Prev_mb
When the number of coded macroblocks less than 3 the time, then by adding 0 value, make formula (14) guarantee all the time 3 parameters to be got median; If coded macroblocks does not exist, then make 3 parameter N in the formula (14) A Prev_mb, N B Prev_mb, N C Prev_mbValue be 0.
Further, defined current macro zero DCT coefficient prediction in the formula in the step 4.3 of the present invention (9), Pred represents Forecasting Methodology, N represents the needed number of coded macroblocks in the past of this Forecasting Methodology, its Forecasting Methodology is the same with the summation about non-zero DCT coefficients prediction can a lot of methods, as mean value method and median method.
Mean value method:
N zero _ pred _ mb = 1 n Σ i = 1 n ( N i zero _ prev _ mb ) - - - ( 15 )
Wherein, N Zero_pred_mdThe predicted value of expression current macro zero discrete cosine transform coefficient, N i Zero_pred_mbThe number of representing the zero discrete cosine transform coefficient of encoded macro block i.
Median method:
N zero_pred_mb=MID(N A zero_prev_mb,N B zero_prev_mb,N C zero_prev_mb (16)
MID represents the N of coded macroblocks in following formula A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mbGet median;
When the number of coded macroblocks more than or equal to 3 the time, then choose three macro blocks with current coding macro block correlation maximum therein, obtain the number of their zero discrete cosine transform coefficient: N respectively A Zero_prev_mb, N B Zerp_prev_mb, N C Zero_prev_mb
When the number of coded macroblocks less than 3 the time, then by adding 0 value, make formula (16) guarantee all the time 3 parameters to be got median; If coded macroblocks does not exist, then make 3 parameter N in the formula (16) A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mbValue be 0.
A kind of bit rate control method provided by the invention comprises frame level bit-rate control and macro-block level Rate Control, the control precision height, and subjective picture quality is good, and computation complexity is very low simultaneously, not only is fit to the various software application and the real-time working of suitable hardware.
Description of drawings
Fig. 1 is the macro block spatial relation figure of a kind of bit rate control method provided by the invention.
Embodiment
Followingly specify a kind of preferred forms of the present invention according to Fig. 1:
The invention provides a kind of bit rate control method, it comprises following steps:
Step 1.1, according to channel target bit rate R and frame per second F, calculate the bit B of each image sets Gop:
B gop = B ful ln ess + S gop ( R F ) - - - ( 1 )
B in following formula FullnessBe remaining bit number in the buffer memory, S GopBe the number of image frames among each image sets GOP;
Step 1.2, to remaining bit number B in the buffer memory FullnessBe initialized as 0.
Step 2, can be I image (I picture) according to the image type of present frame, P image (forward prediction image) or B image (bidirectional predictive picture) calculate the bit B that current image frame is distributed Cur_frame:
B cur_frame=P cur×(B gop-B cur_gop-used)/(P ip×P pb×F i+P pb×F p+F b) (2)
F in following formula i, F p, F bBe respectively the frame number of I image and P image and B image, P IpBe the Bit Allocation in Discrete weight parameter of I image with respect to the P image, P PbBe the Bit Allocation in Discrete weight parameter of P image with respect to the B image, P CurWeight parameter for present frame.
Initialization B Cur_gop_used,, F i, F p, F b, and set P Ip, P PbValue.
The target average quantization coefficient Q of step 3, calculating current image frame Cur_ave:
If the already used bit number of former frame image is B Prev_frame, the number of former frame image summation about non-zero DCT (discrete cosine transform) coefficient is N Prev_frame, then the number of summation about non-zero DCT coefficients is in the present frame:
N cur_frame=B cur_frame×N prev_frame (3)
If the number of a frame DCT coefficient is N Total_frame, the average quantization coefficient of former frame image is Q Prev_ave, then the target average quantization coefficient of current image frame is:
Q cur_ave=Q prev_ave+W×(N prev_frame-N cur_frame)/(N total_frame-N prev_frame)(4)
W is a weight coefficient in following formula, and its value is defined according to different situations by the user.
Step 4, macro-block level Rate Control:
If in step 4.1 present image the bit that uses of coded macroblocks be B Cur_frame_used, the bit that then remains macro block and distributed is:
B cur_frame_rest=B cur_frame-B cur_frame_used (5)
If the number of the summation about non-zero DCT coefficients in the coded macroblocks is N Cur_frame_used, then the number of the summation about non-zero DCT coefficients of coded macroblocks is not:
N cur_frame_rest=B cur_frame_rest×N cur_frame_used/B cur_frame_used (6)
If the number of the DCT coefficient of step 4.2 residue macro block is N Total_frame_rest, the average of the summation about non-zero DCT coefficients of current macro is:
N cur_mb_ave=N cur_frame_rest/N total_frame_rest (7)
The number N of the summation about non-zero DCT coefficients of step 4.3, calculating current macro Pred_mb:
Because in coded macroblocks, there is correlation between the macro block, therefore we can be according to the number of the summation about non-zero DCT coefficients of coded macroblocks, perhaps according to the sum of current macro DCT coefficient and the prediction number of current macro zero DCT coefficient, dope the number of the summation about non-zero DCT coefficients of current macro, that is:
N pred _ mb = Pred i = 1 N ( N i prev _ mb ) - - - ( 8 )
N i Prev_mbBe illustrated in the current macro number of the summation about non-zero DCT coefficients of coded macroblocks before;
nZ pred _ mb = Pred i = 1 N ( nZ i prev _ mb ) - - - ( 9 )
NZ i Prev_mbBe illustrated in the current macro number of the zero DCT coefficient of coded macroblocks before, nZ Pred_mbPrediction number for the zero DCT coefficient of current macro;
N pred_mb=N mb-nZ pred_mb (10)
In following formula, N MbThe sum of the DCT coefficient of expression current macro, Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology.
If the quantization parameter of the previous macro block of step 4.4 current coding macro block is Q Prev_mb, then the quantization parameter of current coding macro block is:
Q cur _ mb = Q prev _ mb + W × ( N pred _ mb - N cur _ mb _ ave ) Max ( N total _ frame _ rest - N pred _ mb ' N total _ frame _ rest - N cur _ mb _ ave ) - - - ( 11 )
Max gets max-operator for both in following formula, and W is a weight coefficient, and its value is defined according to different situations by the user;
With Q Cur_mbBe limited in [Q Cur_ave-step, Q Cur_ave+ step] in the scope, wherein step is the jump coefficient of quantization parameter, can define as required.
Step 4.5, macroblock coding.
After step 4.6, current macro coding are finished, upgrade the employed bit B of coded macroblocks Cur_frame_usedAnd the number N of the summation about non-zero DCT coefficients of coded macroblocks Cur_frame_usedIf all macroblock codings of present image are finished, and then arrive step 5, otherwise to step 4.1.
Step 5, current image frame coding are finished, upgrade B Cur_gop_used, B Prev_frame, N Prev_frame, Q Prev_ave, judge whether the frame coding of two field pictures all among the present image group GOP is finished, be, then arrive step 6, otherwise to step 2.
Step 6, with remaining bit number assignment in the current cache to the B parameter of present image group GOP FulnessIf the coding of all images group is all finished, then finish, otherwise to step 1.
Further, in the step 2 of the present invention, the weight parameter P of present frame CurBe defined as:
Figure A20051011010600142
Further, defined the prediction of current macro summation about non-zero DCT coefficients in the formula in the step 4.3 of the present invention (8), Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology.
If N equals 4, and the position relation as shown in Figure 1, and wherein E is a current coding macro block, and other are encoded macro block, and then Pred can have a lot of methods, simply enumerates following two kinds: mean value method and median method.
Mean value method:
N pred _ mb = 1 4 Σ i = 1 4 ( N i prev _ mb )
N in following formula i Prev_mbBe respectively N A Prev_mb, N B Prev_mb, N C Prev_mbAnd N D Prev_mb, represent encoded macro block A, macro block B, the number of the non-zero discrete cosine transform coefficient of macro block C and macro block D respectively.
Median method:
At first at the macro block A that has encoded, macro block B, among macro block C and the macro block D, 3 macro blocks selecting to obtain with current coding macro block correlation maximum are macro block A, macro block B, macro block C is to the number N of the non-zero discrete cosine transform coefficient of these three macro blocks A Prev_mb, N B Rev_mb, N C Prev_mbGet median, that is:
N pred_mb=MID(N A prev_mb,N B prev_mb,N C prev_mb) (14)
Above-mentioned, only enumerated this simple adjacent macroblocks situation and two kinds of simple forecast methods, formula among the present invention (8) expression from around this method of prediction summation about non-zero DCT coefficients the coded macroblocks, therefore not only be confined to top exemplary method.
Further, defined current macro zero DCT coefficient prediction in the formula in the step 4.3 of the present invention (9), Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology.Its Forecasting Methodology is the same with the summation about non-zero DCT coefficients prediction:
Mean value method:
N zero _ pred _ mb = 1 4 Σ i = 1 4 ( N i zero _ prev _ mb ) - - - ( 15 )
N Zero_pred_mbThe predicted value of expression current macro zero discrete cosine transform coefficient, N i Zero_pred_mbBe respectively N A Zero_prde_mb, N B Zero_pred_mb, N C Zero_pred_mbAnd N D Zero_pred_mb, represent encoded macro block A, macro block B, the number of the zero discrete cosine transform coefficient of macro block C and macro block D respectively.
Median method:
At first at the macro block A that has encoded, macro block B, among macro block C and the macro block D, 3 macro blocks selecting to obtain with current coding macro block correlation maximum are macro block A, macro block B, macro block C is to the number N of the zero discrete cosine transform coefficient of these three macro blocks A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mbGet median, that is:
N zero_pred_mb=MID(N A zero_prev_mb,N B zero_prev_mb,N C zero_prev_mb) (16)
Above-mentioned, only enumerated this simple adjacent macroblocks situation and two kinds of simple forecast methods, formula among the present invention (9) expression from around this method of prediction zero DCT coefficient the coded macroblocks, also not only be confined to top exemplary method.
A kind of bit rate control method provided by the invention comprises frame level bit-rate control and macro-block level Rate Control, the control precision height, and subjective picture quality is good, and computation complexity is very low simultaneously, not only is fit to the various software application and the real-time working of suitable hardware.

Claims (6)

1. a bit rate control method is characterized in that, comprises following steps:
Step 1, in frame level bit-rate control, be unit with each image sets GOP, calculate the bit B of each image sets Gop:
Step 1.1, according to channel target bit rate R and frame per second F, calculate the bit B of each image sets Gop:
B gop = B ful ln ess + S gop × ( R F ) - - - ( 1 )
In following formula, B FullnessBe remaining bit number in the buffer memory, S GopBe the number of image frames among each image sets GOP;
Step 1.2, to remaining bit number B in the buffer memory FullnessBe initialized as 0;
Step 2, can be I image (I picture) according to the image type of present frame, P image (forward prediction image) or B image (bidirectional predictive picture) calculate the bit B that current image frame is distributed Cur_frame:
B cur_frame=P cur×(B gop-B cur_gop_used)/(P ip×P pb×F i+P pb×F p+F b)(2)
F in following formula i, F p, F bBe respectively the frame number of I image and P image and B image, P IpBe the Bit Allocation in Discrete weight parameter of I image with respect to the P image, P PbBe the Bit Allocation in Discrete weight parameter of P image with respect to the B image, P CurWeight parameter for present frame;
Initialization B Cur_gop_used,, F i, F p, F b, and set P Ip, P PbValue;
The target average quantization coefficient Q of step 3, calculating current image frame Cur_ave:
If the already used bit number of former frame image is B Prev_frame, the number of former frame image non-zero discrete cosine transform coefficient is N Prev_frame, then the number of non-zero discrete cosine transform coefficient is in the present frame:
N cur_frame=B cur_frame×N prev_frame/B prev_frame (3)
If the number of a frame discrete cosine transform coefficient is N Total_frame, the average quantization coefficient of former frame image is Q Prev_ave, then the target average quantization coefficient of current image frame is:
Q cur_ave=Q prev_ave+W×(N prev_frame-N cur_frame)/(N total_frame-N prev_frame)(4)
W is a weight coefficient in following formula, and its value is defined according to different situations by the user;
Step 4, macro-block level Rate Control:
If in step 4.1 present image the bit that uses of coded macroblocks be B Cur_frame_used, the bit that then remains macro block and distributed is:
B cur_frame_rest=B cur_frame-B cur_frame_used (5)
If the number of the non-zero discrete cosine transform coefficient in the coded macroblocks is N Cur_frame_used, then the number of the non-zero discrete cosine transform coefficient of coded macroblocks is not:
N cur_frame_rest=B cur_frame_rest×N cur_frame_used/B cur_frame_used (6)
If the number of the discrete cosine transform coefficient of step 4.2 residue macro block is N Total_frame_rest, the average of the non-zero discrete cosine transform coefficient of current macro is:
N cur_mb_ave=N cur_frame_rest/N total_frame_rest (7)
The number N of the non-zero discrete cosine transform coefficient of step 4.3, calculating current macro Pred_mb:
In coded macroblocks, there is correlation between the macro block, according to the number of the non-zero discrete cosine transform coefficient of coded macroblocks, perhaps according to the sum of current macro discrete cosine transform coefficient and the prediction number of current macro zero discrete cosine transform coefficient, dope the number of the non-zero discrete cosine transform coefficient of current macro, that is:
N pred _ mb = Pr ed i = 1 N ( N i prev _ mb ) - - - ( 8 )
N i Prev_mbBe illustrated in the current macro number of the non-zero discrete cosine transform coefficient of coded macroblocks before;
n Z pred _ mb = Pr ed i = 1 N ( nZ i prev _ mb ) - - - ( 9 )
NZ i Prev_mbBe illustrated in the current macro number of the zero discrete cosine transform coefficient of coded macroblocks before, nZ Pred_mbPrediction number for the zero discrete cosine transform coefficient of current macro;
N pred_mb=N mb-nZ pred_mb (10)
In following formula, N MbThe sum of the discrete cosine transform coefficient of expression current macro, Pred represents Forecasting Methodology, and N represents the needed number of coded macroblocks in the past of this Forecasting Methodology;
If the quantization parameter of the previous macro block of step 4.4 current coding macro block is Q Prev_mb, then the quantization parameter of current coding macro block is:
Q cur _ mb = Q prev _ mb + W × ( N pred _ mb - N cur _ mb _ ave ) Max ( N total _ frame _ rest - N pred _ mb , N total _ frame _ rest - N cur _ mb _ ave ) - - - ( 11 )
Max gets max-operator for both in following formula, and W is a weight coefficient, and its value is according to circumstances defined by the user;
With Q Cur_mbBe limited in [Q Cur_ave-step, Q Cur_ave+ step] in the scope, wherein step is the jump coefficient of quantization parameter, is defined as required by the user;
Step 4.5, macroblock coding;
After step 4.6, current macro coding are finished, upgrade the employed bit B of coded macroblocks Cur_frame_usedAnd the number N of the non-zero discrete cosine transform coefficient of coded macroblocks Cur_frame_usedIf all macroblock codings of present image are finished, and then arrive step 5, otherwise to step 4.1;
Step 5, current image frame coding are finished, upgrade B Cur_gop_used, B Prev_frame, N Prev_frame, Q Prev_ave, judge whether the frame coding of two field pictures all among the present image group GOP is finished, be, then arrive step 6, otherwise to step 2;
Step 6, with remaining bit number assignment in the current cache to the B parameter of present image group GOP FullnessIf the coding of all images group is all finished, then finish, otherwise to step 1.
2. bit rate control method as claimed in claim 1 is characterized in that, in the described step 2, and the weight parameter P of present frame CurBe defined as:
Figure A2005101101060005C1
3. bit rate control method as claimed in claim 1 is characterized in that, in the formula in the described step 4.3 (8), current macro non-zero discrete cosine transform coefficient forecast method can adopt mean value method:
N pred _ mb = 1 n Σ i = 1 n ( N i prev _ mb ) - - - ( 13 )
Wherein, N Prev_mbThe predicted value of expression current macro non-zero discrete cosine transform coefficient, N i Prev_mbThe number of representing the non-zero discrete cosine transform coefficient of encoded macro block i.
4. bit rate control method as claimed in claim 1 is characterized in that, current macro non-zero discrete cosine transform coefficient forecast method can adopt median method in the formula in the described step 4.3 (8):
N pred_mb=MID(N A prev_mb,N B prev_mb,N C prev_mb) (14)
In following formula, MID represents to get coded macroblocks N A Prev_mb, N B Prev_mb, N C Prev_mbMedian;
When the number of coded macroblocks more than or equal to 3 the time, choose and three of current coding macro block correlation maximum coded macroblockss, obtain the number of their non-zero discrete cosine transform coefficient: N respectively A Prev_mb, N B Prev_mb, N C Prev_mb
When the number of coded macroblocks less than 3 the time, by adding 0 value, make formula (14) get median to 3 parameters all the time; If coded macroblocks does not exist, then 3 parameter N in the formula (14) A Prev_mb, N B Prev_mb, N C Prev_mbValue all get 0.
5. bit rate control method as claimed in claim 1 is characterized in that, current macro zero discrete cosine transform coefficient forecast method can adopt mean value method in the formula in the described step 4.3 (9):
N zero _ pred _ mb = 1 n Σ i = 1 n ( N i zero _ prev _ mb ) - - - ( 15 )
Wherein, N Zero_pred_mbThe predicted value of expression current macro zero discrete cosine transform coefficient, N i Zero_pred_mbThe number of representing the zero discrete cosine transform coefficient of encoded macro block i.
6. bit rate control method as claimed in claim 1 is characterized in that, current macro zero discrete cosine transform coefficient forecast method can adopt median method: N in the formula in the described step 4.3 (9) Zero_pred_mb=MID (N A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mb) (16)
MID represents to get coded macroblocks N in following formula A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mbMedian;
When the number of coded macroblocks more than or equal to 3 the time, choose and three of current coding macro block correlation maximum coded macroblockss, obtain the number of their zero discrete cosine transform coefficient: N respectively A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mb
When the number of coded macroblocks less than 3 the time, by adding 0 value, make formula (16) get median to 3 parameters all the time; If coded macroblocks does not exist, then 3 parameter N in the formula (16) A Zero_prev_mb, N B Zero_prev_mb, N C Zero_prev_mbValue all get 0.
CNB2005101101068A 2005-11-08 2005-11-08 Bit rate control method Active CN100448297C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101101068A CN100448297C (en) 2005-11-08 2005-11-08 Bit rate control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101101068A CN100448297C (en) 2005-11-08 2005-11-08 Bit rate control method

Publications (2)

Publication Number Publication Date
CN1767653A true CN1767653A (en) 2006-05-03
CN100448297C CN100448297C (en) 2008-12-31

Family

ID=36743200

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101101068A Active CN100448297C (en) 2005-11-08 2005-11-08 Bit rate control method

Country Status (1)

Country Link
CN (1) CN100448297C (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100425077C (en) * 2006-08-07 2008-10-08 浙江大学 Video compression code ratio control method using uneven distribution of frame target bit number
WO2009121234A1 (en) * 2008-03-31 2009-10-08 深圳市融创天下科技发展有限公司 A video compression code rate control method
CN100563338C (en) * 2007-12-13 2009-11-25 上海广电(集团)有限公司中央研究院 A kind of control method of constant code rate
CN100563336C (en) * 2008-01-03 2009-11-25 上海广电(集团)有限公司中央研究院 A kind of constant code rate control method based on mobile TV
CN101159871B (en) * 2007-11-12 2010-08-04 中兴通讯股份有限公司 Macro block group video code rate control method
CN101572806B (en) * 2009-06-01 2010-12-01 北京邮电大学 Frame I code rate control method based on H264
CN101399982B (en) * 2007-09-30 2010-12-01 奇景光电股份有限公司 Image compression control method and device
CN101340571B (en) * 2008-08-15 2012-04-18 北京中星微电子有限公司 Code rate control method and control apparatus
CN101491106B (en) * 2006-07-14 2013-01-02 索尼株式会社 Image processing device, method, and program
CN114466189A (en) * 2021-12-27 2022-05-10 浙江大华技术股份有限公司 Code rate control method, electronic device and storage medium
CN114821432A (en) * 2022-05-05 2022-07-29 杭州电子科技大学 Video target segmentation anti-attack method based on discrete cosine transform
CN116437090A (en) * 2023-06-13 2023-07-14 基石酷联微电子技术(北京)有限公司 Efficient parallelizable image compression code rate control method and processing equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192081B1 (en) * 1995-10-26 2001-02-20 Sarnoff Corporation Apparatus and method for selecting a coding mode in a block-based coding system
CA2208950A1 (en) * 1996-07-03 1998-01-03 Xuemin Chen Rate control for stereoscopic digital video encoding
CN1193616C (en) * 2000-09-29 2005-03-16 中兴通讯股份有限公司 Quantization and code stream control method for image compressing transmission
CN1206864C (en) * 2002-07-22 2005-06-15 中国科学院计算技术研究所 Association rate distortion optimized code rate control method and apparatus thereof
CN100574427C (en) * 2005-08-26 2009-12-23 华中科技大学 The control method of video code bit rate

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491106B (en) * 2006-07-14 2013-01-02 索尼株式会社 Image processing device, method, and program
CN100425077C (en) * 2006-08-07 2008-10-08 浙江大学 Video compression code ratio control method using uneven distribution of frame target bit number
CN101399982B (en) * 2007-09-30 2010-12-01 奇景光电股份有限公司 Image compression control method and device
CN101159871B (en) * 2007-11-12 2010-08-04 中兴通讯股份有限公司 Macro block group video code rate control method
CN100563338C (en) * 2007-12-13 2009-11-25 上海广电(集团)有限公司中央研究院 A kind of control method of constant code rate
CN100563336C (en) * 2008-01-03 2009-11-25 上海广电(集团)有限公司中央研究院 A kind of constant code rate control method based on mobile TV
WO2009121234A1 (en) * 2008-03-31 2009-10-08 深圳市融创天下科技发展有限公司 A video compression code rate control method
CN101340571B (en) * 2008-08-15 2012-04-18 北京中星微电子有限公司 Code rate control method and control apparatus
CN101572806B (en) * 2009-06-01 2010-12-01 北京邮电大学 Frame I code rate control method based on H264
CN114466189A (en) * 2021-12-27 2022-05-10 浙江大华技术股份有限公司 Code rate control method, electronic device and storage medium
CN114821432A (en) * 2022-05-05 2022-07-29 杭州电子科技大学 Video target segmentation anti-attack method based on discrete cosine transform
CN114821432B (en) * 2022-05-05 2022-12-02 杭州电子科技大学 Video target segmentation anti-attack method based on discrete cosine transform
CN116437090A (en) * 2023-06-13 2023-07-14 基石酷联微电子技术(北京)有限公司 Efficient parallelizable image compression code rate control method and processing equipment
CN116437090B (en) * 2023-06-13 2023-08-22 基石酷联微电子技术(北京)有限公司 Efficient parallelizable image compression code rate control method and processing equipment

Also Published As

Publication number Publication date
CN100448297C (en) 2008-12-31

Similar Documents

Publication Publication Date Title
CN1767653A (en) Bit rate control method
CN101039432A (en) Method and apparatus for realizing self-adaptive quantization in coding process
CN100345450C (en) Deblocking filtering method and apparatus of video frequency or image
CN1685734A (en) Method and apparatus for controlling rate of video sequence, video encoding device
CN1224268C (en) Moving picture coding apparatus and moving picture decoding apparatus
CN1738423A (en) Method for controlling video code bit rate
CN1870755A (en) Method for controlling the encoder output bit rate in a block-based video encoder, and corresponding video encoder apparatus
CN1820512A (en) Method, medium, and filter removing a blocking effect
CN1929613A (en) Apparatus and method for image encoding and decoding and recording medium
CN1846446A (en) Process and arrangement for encoding video pictures
CN1726709A (en) Rate control with picture-based lookahead window
CN1640149A (en) Video data conversion device and video data conversion method
CN1929611A (en) Methods and apparatus for video intraprediction encoding and decoding
CN1777283A (en) Microblock based video signal coding/decoding method
CN1617590A (en) Video data transmission system
CN1608372A (en) Method and apparatus for selecting macroblock quantization in a video encoder
CN1870754A (en) Encoding and decoding apparatus and method for reducing blocking phenomenon and computer-readable recording medium
CN1925619A (en) Apparatus and method for video encoding and decoding and recording medium
CN100341334C (en) Multi-reference frame rapid movement estimation method based on effective coverage
CN1882083A (en) Method for reducing image blocking effect
CN101056408A (en) Method and apparatus for determining a threshold for skip mode in video coding
CN1691780A (en) Video encoder and method for detecting and encoding noise
CN101043633A (en) Quantization matrix selecting method, apparatus of coding and coding/decoding method and system
CN101040534A (en) Moving image conversion method, moving image conversion apparatus, moving image conversion system, and server apparatus, and program
CN1708135A (en) Method of and apparatus for predicting DC coefficient of video data unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: GUANGDIAN ELECTRONIC CO., LTD., SHANGHAI

Free format text: FORMER OWNER: CENTRAL RESEARCH ACADEMY OF SVA GROUP

Effective date: 20120615

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20120615

Address after: 200233 No. 168, Shanghai, Tianlin Road

Patentee after: Guangdian Electronic Co., Ltd., Shanghai

Address before: 200233, No. 2, building 757, Yishan Road, Shanghai

Patentee before: Central Institute of Shanghai Video and Audio (Group) Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: INESA ELECTRON CO., LTD.

Free format text: FORMER NAME: SVA ELECTRON CO., LTD.

CP03 Change of name, title or address

Address after: 200233 Building 1, building 200, Zhang Heng Road, Zhangjiang hi tech park, Shanghai, Pudong New Area, 2

Patentee after: INESA Electron Co., Ltd.

Address before: 200233 No. 168, Shanghai, Tianlin Road

Patentee before: Guangdian Electronic Co., Ltd., Shanghai