CN102752596A - Rate distortion optimization method - Google Patents
Rate distortion optimization method Download PDFInfo
- Publication number
- CN102752596A CN102752596A CN2012102315492A CN201210231549A CN102752596A CN 102752596 A CN102752596 A CN 102752596A CN 2012102315492 A CN2012102315492 A CN 2012102315492A CN 201210231549 A CN201210231549 A CN 201210231549A CN 102752596 A CN102752596 A CN 102752596A
- Authority
- CN
- China
- Prior art keywords
- distortion
- cost
- code check
- check value
- rate
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention relates to a rate distortion optimization method, which comprises the following steps: A. performing rate distortion calculation by using a first calculation index to obtain a first group of distortion/code rate values; B. performing rate distortion calculation by using a second calculation index to obtain a second group of distortion/code rate values; C. acquiring a distortion/code rate value corresponding to the minimum coding cost in a first group of distortion/code rate values by adopting a first rate-distortion optimization mode; D. obtaining a plurality of candidate code rate values and corresponding coding costs according to the distortion/code rate value of the minimum coding cost; E. obtaining a second group of distortion/code rate value compensation costs corresponding to the candidate code rate values by adopting a second rate distortion optimization mode; F. and determining the minimum value of the comprehensive cost according to the coding cost and the compensation cost, and further acquiring the optimal coding mode. The rate distortion optimization method of the invention enables the rate distortion optimization result to be optimal by integrating two rate distortion optimization indexes.
Description
Technical field
The present invention relates to image/video encoding and decoding field, more particularly, relate to a kind of rate-distortion optimization method.
Background technology
With international standard H264 is reference, when encoded in the basic coding unit, can select the different coding pattern.The selection of coding mode comprises the selection to infra-frame prediction mode or inter prediction mode; Also can comprise the selection of partitioning scheme to the basic coding unit (routine INTRA-4x4, INTRA-8x8, INTRA-16x16, SKIP, DIRECT, INTER-16x16, INTER-16x8, INTER-8x16, INTER-8x8, can further be divided into INTER-8x8, INTER-8x4, INTER-4x8, INTER-4x4), can also comprise selection predict blocks position (routine Intra_4x4_Vertical, Intra_4x4_Horizontal, Intra_4x4_Diagonal_Down_Left, Intra_4x4_Diagonal_Down_Right, Intra_4x4_Vertical_Right, Intra_4x4_Horizontal_Down, Intra_4x4_Vertical_Left, Intra_4x4_Horizontal_Up, Intra_4x4_DC) to INTER-8x8.Confirming of coding mode is that the percent of pass aberration optimizing realizes that wherein rate-distortion optimization is the process that following cost function J is minimized,
J(s,c,mode|QP)=D(s,c,mode|QP)+λ
modeR(s,c,mode|QP) (1)
Wherein D is a distortion value, and R is the code check value, and s and c represent former figure respectively and build the corresponding basic coding of image unit again through what encoding and decoding were handled, and mode representes the coding mode selected of basic coding unit, and QP is a quantization parameter, λ
ModeBe to be used for the Lagrangian parameter of compromise distortion value and code check value.
Rate-distortion optimization is under the fixed condition of quantization parameter QP, confirms the mode that can make above-mentioned cost function J minimum.In the H264 standard, λ
ModeBy quantization parameter QP decision, promptly have
λ
mode=0.85×2
(QP-12)/3 (2)
Above-mentioned rate-distortion optimization is to specify λ
ModeSituation under confirm optimum coding mode mode.But, above-mentioned λ
ModeThe statistical approximation result of definite mode during just with the distortion of MSE (mean squared error, mean square error) mensuration.And MSE can correctly express distortion, can often occur on the contrary feeling inconsistent situation with the distortion of human eye.Such as being directed against the close distorted image of some MSE values, the distortion sensation of human eye possibly have a great difference.So measure the method for distortion with MSE also perfect inadequately, therefore can cause the result of above-mentioned rate-distortion optimization is not the best yet.
So, be necessary to provide a kind of rate-distortion optimization method, to solve the existing in prior technology problem.
Summary of the invention
The technical problem that the present invention will solve is; To rate-distortion optimization method of the prior art can not be correct the expression distortion; Cause the defective of the result badly of rate-distortion optimization; Provide a kind of, make the rate-distortion optimization method that the rate-distortion optimization result is best through comprehensive two kinds of rate-distortion optimization indexs.
The technical solution adopted for the present invention to solve the technical problems is: the present invention relates to a kind of rate-distortion optimization method, it comprises step:
A, employing first parameter are carried out rate distortion calculating, obtain first group of distortion/code check value;
B, employing second parameter are carried out rate distortion calculating, obtain second group of distortion/code check value;
C, adopt the first rate-distortion optimization mode, obtain the distortion/code check value of corresponding minimum code cost in said first group of distortion/code check value;
D, according to the distortion/code check value of said minimum code cost, obtain a plurality of candidate code check values and respective coding cost;
E, adopt the second rate-distortion optimization mode, obtain the compensation cost of the second group distortion/code check value corresponding with said candidate code check value;
F, according to said coding cost and said compensation cost, confirm the minimum value of integrate-cost, and then obtain the forced coding pattern.
In rate-distortion optimization method of the present invention, said first parameter is squared difference and the index corresponding to mean square error, is specially:
Wherein SSD is squared difference and index; S representes the basic coding unit of former figure; C representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and x, y represent the location of pixels in the said basic coding unit, and A representes the pixel coverage of said basic coding unit.
In rate-distortion optimization method of the present invention, said second parameter is the structural similarity index, is specially:
SSIM(s,c)=L(s,c)·G(s.c)·H(s,c),
Wherein SSIM is the structural similarity index, and s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and L representes the brightness similarity, and G representes to contrast similarity, and H representes structural similarity; μ
sBe the mean value of s interior pixel, μ
cBe the mean value of c interior pixel,
Be the variance yields of s interior pixel,
Be the variance yields of c interior pixel, σ
ScBe the covariance value of respective pixel in s interior pixel and the c, C
1, C
2, C
3Be constant.
In rate-distortion optimization method of the present invention, said step C is specially: obtain corresponding codes cost J in said first group of distortion/code check value through following formula
i 1, again according to said coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mode|QP)=D
i 1(s,c,mode|QP)+λ
1R
i(s,c,mode|QP),
J wherein
i 1Be said coding cost, D
i 1Be said first group of distortion value, R
iBe said code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and mode representes the coding mode selected of said basic coding unit, and QP is a quantization parameter, λ
1Be to be used for the Lagrangian parameter of compromise said first group of distortion value and said code check value, i is a positive integer; Wherein
λ
1=0.85×2
(QP-12)/3。
In rate-distortion optimization method of the present invention, in said step D, with the code check value of said minimum code cost, and at least two the code check values adjacent with the code check value of said minimum code cost are as said candidate code check value.
In rate-distortion optimization method of the present invention, said step e is specially: obtain the compensation cost of the second group distortion/code check value corresponding through following formula with said candidate code check value,
Wherein
Be said second group of distortion value, R
iBe said code check value,
Be said compensation cost, k
iBe the slope of the said curve that second group of distortion/the code check value is constituted in respective points, i is a positive integer.
In rate-distortion optimization method of the present invention, said step F is specially: obtain said integrate-cost J through following formula
i, and according to said integrate-cost J
iMinimum value confirm said forced coding pattern,
Wherein
Be said coding cost,
Be said compensation cost, w
1, w
2Be weight coefficient, i is a positive integer.
In rate-distortion optimization method of the present invention, when the motion vector of inter prediction was estimated, said step C was specially: obtain corresponding codes cost J in said first group of distortion/code check value through following formula
i 1, again according to said coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mv|QP)=D
i 1(s,c,mv|QP)+λ
motionR
i(s,c,mv|QP),
Wherein
Be said coding cost, D
i 1Be said first group of distortion value, R
iBe said code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and the motion vector when mv representes inter prediction, QP are quantization parameter, λ
MotionBe the Lagrangian parameter when asking motion vector, i is a positive integer; Wherein
λ
Motion=0.85 * 2
(QP-12)/3Or
In rate-distortion optimization method of the present invention; Said rate-distortion optimization method also comprises step: according to the minimum value of said integrate-cost; Obtain best Lagrangian parameter; According to the Lagrangian parameter of said the best, obtain the Lagrangian parameter the when motion vector of inter prediction estimated.
In rate-distortion optimization method of the present invention, obtain the Lagrangian parameter of said the best according to following formula,
λ
* mode=(J-D)/R,
Wherein J is minimum integrate-cost, and D is the distortion value of said forced coding pattern, and R is the code check value of said forced coding pattern, λ
* ModeBe the Lagrangian parameter of said the best,
Lagrangian parameter when obtaining said motion vector and estimate to inter prediction through following formula,
λ
* Motion=λ
* ModeOr
λ wherein
* MotionLagrangian parameter when estimating for said motion vector to inter prediction.
The rate-distortion optimization method of embodiment of the present invention has following beneficial effect: through comprehensive two kinds of rate-distortion optimization indexs, make the rate-distortion optimization result best.Avoid the expression distortion that the rate-distortion optimization method of prior art can not be correct, caused the technical problem of the result badly of rate-distortion optimization.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is described further, in the accompanying drawing:
Fig. 1 is the flow chart of first preferred embodiment of rate-distortion optimization method of the present invention;
Fig. 2 is the idiographic flow block diagram of first preferred embodiment of rate-distortion optimization method of the present invention;
Fig. 3 is for obtaining the sketch map of candidate's code check value in the rate-distortion optimization method of the present invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Please with reference to Fig. 1, Fig. 1 is the flow chart of first preferred embodiment of rate-distortion optimization method of the present invention.This rate-distortion optimization method starts from:
Step 105 adopts the second rate-distortion optimization mode, obtains the compensation cost of the second group distortion/code check value corresponding with candidate code check value;
Step 106 according to said coding cost and said compensation cost, is confirmed the minimum value of integrate-cost, and then is obtained the forced coding pattern.
Please with reference to Fig. 2, Fig. 2 is the idiographic flow block diagram of first preferred embodiment of rate-distortion optimization method of the present invention.Pass through the practical implementation process of the detailed explanation first rate-distortion optimization method of the present invention of Fig. 2 below.
At first; Before step 101, the input coding elementary cell is selected all coding modes of this coding elementary cell to code device then one by one; To each coding mode; Accomplish respective coding and decoding processing, the elementary cell that obtains encoding is corresponding builds image again, and the processing method of Code And Decode can be carried out according to various video encoding standards.Such as, encoding process can be carried out following each step successively: confirm predict blocks, residual computations, dct transform (discrete cosine transform, Discrete Cosine Transform), quantification, entropy coding.Decoding processing then is the reverse operating to above-mentioned each step.The concrete grammar that rate-distortion optimization method of the present invention is handled this Code And Decode does not limit.
Come step 101 subsequently, in step 101, adopt first parameter to build the corresponding basic coding of image unit again, carry out rate distortion and calculate, obtain first group of distortion/code check value to the basic coding unit of former figure with through what encoding and decoding were handled.In the present embodiment, first parameter is SSD (squared difference with, the sum of squared difference) index of corresponding MSE (mean square error, mean squared error).This rate distortion calculates and is specially:
Wherein SSD is squared difference and index; S representes the basic coding unit of former figure; C representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and x, y represent each locations of pixels in the said basic coding unit, and A representes the pixel coverage of basic coding unit.
Through the calculating of following formula, s and the c corresponding according to each coding mode obtain corresponding code check value R
iWith the distortion value D that expresses with the SSD index
i 1, can obtain first group of distortion/code check value like this, be designated as (D
i 1, R
i), wherein i is a positive integer, the maximum of i is to the number of coding mode that should the basic coding unit.
Come step 102 subsequently, in step 102, adopt second parameter to build the corresponding basic coding of image unit again, carry out rate distortion and calculate, obtain second group of distortion/code check value to the basic coding unit of former figure with through what encoding and decoding were handled.In the present embodiment, second parameter is SSIM (structural similarity, a structural similarity) index.This rate distortion calculates and is specially:
SSIM(s,c)=L(s,c)·G(s.c)·H(s,c),
Wherein SSIM is the structural similarity index, and s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and L representes the brightness similarity, and G representes to contrast similarity, and H representes structural similarity; μ
sBe the mean value of s interior pixel, μ
cBe the mean value of c interior pixel,
Be the variance yields of s interior pixel,
Be the variance yields of c interior pixel, σ
ScBe the covariance value of respective pixel in s interior pixel and the c, C
1, C
2, C
3Be constant, C
1, C
2, C
3Value can obtain through experiment.
Through the calculating of following formula, s and the c corresponding according to each coding mode can obtain corresponding code check value R
iWith the distortion value of expressing with the SSIM index
Can obtain second group of distortion/code check value like this, be designated as
Wherein i is a positive integer, and the maximum of i is to the number of coding mode that should the basic coding unit.
Because adopt calculating of SSD index and SSIM index to calculate the just different calculation methods of distortion value, and to code check value R
iSo did not influence is first group of distortion/code check value (D
i 1, R
i) and second group of distortion/code check value
In code check value R
iIdentical.
Come step 103 subsequently, in step 103, adopt the first rate-distortion optimization mode, obtain the distortion/code check value of corresponding minimum code cost in first group of distortion/code check value.Be specially, obtain corresponding codes cost J in first group of distortion/code check value through following formula
i 1, again according to coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mode|QP)=D
i 1(s,c,mode|QP)+λ
1R
i(s,c,mode|QP),
J wherein
i 1Be coding cost, D
i 1Be first group of distortion value, R
iBe the code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and mode representes the coding mode selected of said basic coding unit, and QP is a quantization parameter, λ
1Be to be used for the Lagrangian parameter (i.e. the first mode parameter) of compromise said first group of distortion value and said code check value, i is a positive integer; Wherein
λ
1=0.85×2
(QP-12)/3。
Come step 104 subsequently, in step 104, the distortion/code check value according to the minimum code cost obtains a plurality of candidate code check values and respective coding cost.Specifically as shown in Figure 3, Fig. 3 is for obtaining the sketch map of candidate's code check value in the rate-distortion optimization method of the present invention.Abscissa is code check value R among Fig. 3
i, ordinate is distortion value D
i, comprising first group of distortion/code check value (D
i 1, R
i) matched curve and second group of distortion/code check value
Matched curve.According to first group of distortion/code check value (D
i 1, R
i) the code check value of the minimum code cost that obtains, and at least two the code check values adjacent with the code check value of this minimum code cost are as candidate code check value.As among Fig. 3
The coding cost
Minimum is then with code check value R
3, and with code check value R
3Adjacent code check value R
2With code check value R
4As candidate's code check value, candidate's code check value R
2The corresponding codes cost is J
2 1, candidate's code check value R
3The corresponding codes cost is J
3 1, candidate's code check value R
4The corresponding codes cost is J
4 1Certainly also can select more candidate's code check value here, as will with code check value R
34 adjacent code check value R
1, code check value R
2, code check value R
4And code check value R
5All as candidate's code check value.On the other hand, if R
3The left side or the right during not corresponding to the adjacent code check value of coding mode, then only select R
3With corresponding monolateral adjacent code check value as candidate's code check value.
Come step 105 subsequently, in step 105, adopt the second rate-distortion optimization mode, obtain the compensation cost of the second group distortion/code check value corresponding with candidate code check value.
With the data point among Fig. 3 is example, and the code check value sorts from small to large and is followed successively by R
1, R
2, R
3, R
4And R
5, such curve that second group of distortion/the code check value is constituted is at candidate's code check value R
2Corresponding point (D
2 2, R
2) slope be:
Second group of curve that distortion/the code check value is constituted is at candidate's code check value R
3Pairing point (D
3 2, R
3) slope be:
Second group of curve that distortion/the code check value is constituted is at candidate's code check value R
4Pairing point (D
4 2, R
4) slope be:
Obtain the compensation cost of the second group distortion/code check value corresponding again with candidate code check value through following formula,
Wherein
Be second group of distortion value, R
iBe the code check value,
Be compensation cost, k
iFor the said curve that second group of distortion/the code check value is constituted the slope of respective points (above try to achieve), i is a positive integer.Can calculate candidate's code check value R so respectively
2The compensation cost
Candidate's code check value R
3The compensation cost
And candidate's code check value R
4The compensation cost
In this step, second group of curve that distortion/the code check value is constituted obtained in also available other modes of the slope of respective points, as asking for the matched curve of R~D earlier, utilizes this matched curve slope calculations again.Therefore second group of curve that distortion/the code check value is constituted do not limit protection scope of the present invention at the concrete obtain manner of the slope of respective points.
Come step 106 subsequently, according to coding cost J
i 1And compensation cost
Confirm integrate-cost J
iMinimum value, and then obtain the forced coding pattern.
Obtain integrate-cost J through following formula
i:
Wherein
Be the coding cost,
Be compensation cost, w
1, w
2Be weight coefficient, can get fixed value or set that i is a positive integer by the user.At last according to integrate-cost J
iMinimum value confirm forced coding pattern output.
As second preferred embodiment of rate-distortion optimization method of the present invention, the rate distortion when rate-distortion optimization method of the present invention also can be estimated the motion vector of inter prediction is optimized.Be with the difference of first preferred embodiment,
Obtain corresponding codes cost J in first group of distortion/code check value through following formula
i 1, again according to coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mv|PQ)=D
i 1(s,c,mv|PQ)+λ
motionR
i(s,c,mv|PQ),
Wherein
Be coding cost, D
i 1Be first group of distortion value, R
iBe the code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and the motion vector when mv representes inter prediction, QP are quantization parameter, λ
MotionBe the Lagrangian parameter (the first mode parameter) when asking motion vector, i is a positive integer; Wherein
λ
Motion=0.85 * 2
(QP-12)/3Or
Other steps and first preferred embodiment are same or similar, specifically see also first preferred embodiment of the present invention.
The 3rd preferred embodiment as rate-distortion optimization method of the present invention; Rate-distortion optimization method of the present invention also can be according to the minimum value of the integrate-cost in first preferred embodiment; Obtain the Lagrangian parameter the when motion vector of inter prediction estimated, the rate distortion so that the motion vector of inter prediction is estimated carries out better optimize.
At first, obtain best Lagrangian parameter, be specially according to the minimum value of the integrate-cost in first preferred embodiment:
λ
* mode=(J-D)/R,
Wherein J is minimum integrate-cost, and D is the distortion value of forced coding pattern, and R is the code check value of forced coding pattern, λ
* ModeBe the Lagrangian parameter of the best.
Then according to the Lagrangian parameter of the best, obtain the Lagrangian parameter the when motion vector of inter prediction estimated, be specially
λ
* Motion=λ
* ModeOr
λ wherein
* MotionLagrangian parameter when the motion vector of inter prediction is estimated.
In sum, rate-distortion optimization method of the present invention makes the rate-distortion optimization result best through comprehensive two kinds of rate-distortion optimization indexs.Used the combination of SSD index and SSIM index in an embodiment of the present invention; Can certainly carry out complex optimum with other index; For example: SSD can use SAD (absolute difference sum; Sum of Absolute Differences) or SATD replacements such as (absolute value summation again after the Hadamard conversion, Sum of Absolute Transformed Differences), SSIM can use MS-SSIM (multiple dimensioned SSIM; Multi-Scale SSIM) or VIF replacements such as (visual information fidelity, Visual Information Fidelity); Rate-distortion optimization method of the present invention can be looked for the forced coding pattern from all coding modes of coding elementary cell simultaneously, also can from a part of coding mode of appointment, look for the forced coding pattern; Rate-distortion optimization can be realized according to the type (being I frame, P frame or B frame) of frame coding is independent separately in addition; Rate-distortion optimization method of the present invention has been avoided the expression distortion that the rate-distortion optimization method of prior art can not be correct well, causes the technical problem of the result badly of rate-distortion optimization.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure transformation that utilizes specification of the present invention and accompanying drawing content to be done, or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.
Claims (10)
1. a rate-distortion optimization method is characterized in that, comprises step:
A, employing first parameter are carried out rate distortion calculating, obtain first group of distortion/code check value;
B, employing second parameter are carried out rate distortion calculating, obtain second group of distortion/code check value;
C, adopt the first rate-distortion optimization mode, obtain the distortion/code check value of corresponding minimum code cost in said first group of distortion/code check value;
D, according to the distortion/code check value of said minimum code cost, obtain a plurality of candidate code check values and respective coding cost;
E, adopt the second rate-distortion optimization mode, obtain the compensation cost of the second group distortion/code check value corresponding with said candidate code check value;
F, according to said coding cost and said compensation cost, confirm the minimum value of integrate-cost, and then obtain the forced coding pattern.
2. rate-distortion optimization method according to claim 1 is characterized in that, said first parameter is squared difference and the index corresponding to mean square error, is specially:
Wherein SSD is squared difference and index; S representes the basic coding unit of former figure; C representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and x, y represent the location of pixels in the said basic coding unit, and A representes the pixel coverage of said basic coding unit.
3. rate-distortion optimization method according to claim 1 is characterized in that, said second parameter is the structural similarity index, is specially:
SSIM(s,c)=L(s,c)·G(s.c)·H(s,c),
Wherein SSIM is the structural similarity index, and s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and L representes the brightness similarity, and G representes to contrast similarity, and H representes structural similarity; μ
sBe the mean value of s interior pixel, μ
cBe the mean value of c interior pixel,
Be the variance yields of s interior pixel,
Be the variance yields of c interior pixel, σ
ScBe the covariance value of respective pixel in s interior pixel and the c, C
1, C
2, C
3Be constant.
4. rate-distortion optimization method according to claim 1 is characterized in that, said step C is specially: obtain corresponding codes cost J in said first group of distortion/code check value through following formula
i 1, again according to said coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mode|QP)=D
i 1(s,c,mode|QP)+λ
1R
i(s,c,mode|QP),
J wherein
i 1Be said coding cost, D
i 1Be said first group of distortion value, R
iBe said code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and mode representes the coding mode selected of said basic coding unit, and QP is a quantization parameter, λ
1Be to be used for the Lagrangian parameter of compromise said first group of distortion value and said code check value, i is a positive integer; Wherein
λ
1=0.85×2
(QP-12)/3。
5. rate-distortion optimization method according to claim 1 is characterized in that, in said step D, with the code check value of said minimum code cost, and at least two the code check values adjacent with the code check value of said minimum code cost are as said candidate code check value.
6. rate-distortion optimization method according to claim 1 is characterized in that, said step e is specially: obtain the compensation cost of the second group distortion/code check value corresponding through following formula with said candidate code check value,
7. rate-distortion optimization method according to claim 1 is characterized in that, said step F is specially: obtain said integrate-cost J through following formula
i, and according to said integrate-cost J
iMinimum value confirm said forced coding pattern,
8. rate-distortion optimization method according to claim 1 is characterized in that, when the motion vector of inter prediction was estimated, said step C was specially: obtain corresponding codes cost J in said first group of distortion/code check value through following formula
i 1, again according to said coding cost J
i 1Confirm the distortion/code check value of corresponding minimum code cost,
J
i 1(s,c,mv|QP)=D
i 1(s,c,mv|QP)+λ
motionR
i(s,c,mv|QP),
Wherein
Be said coding cost, D
i 1Be said first group of distortion value, R
iBe said code check value, s representes the basic coding unit of former figure, and c representes to build the corresponding basic coding of image unit again through what encoding and decoding were handled, and the motion vector when mv representes inter prediction, QP are quantization parameter, λ
MotionBe the Lagrangian parameter when asking motion vector, i is a positive integer; Wherein
λ
Motion=0.85 * 2
(QP-12)/3Or
9. rate-distortion optimization method according to claim 1; It is characterized in that; Said rate-distortion optimization method also comprises step: according to the minimum value of said integrate-cost; Obtain best Lagrangian parameter,, obtain the Lagrangian parameter the when motion vector of inter prediction estimated according to the Lagrangian parameter of said the best.
10. rate-distortion optimization method according to claim 9 is characterized in that, obtains the Lagrangian parameter of said the best according to following formula,
λ
* mode=(J-D)/R,
Wherein J is minimum integrate-cost, and D is the distortion value of said forced coding pattern, and R is the code check value of said forced coding pattern, λ
* ModeBe the Lagrangian parameter of said the best,
Lagrangian parameter when obtaining said motion vector and estimate to inter prediction through following formula,
λ
* Motion=λ
* ModeOr
λ wherein
* MotionLagrangian parameter when estimating for said motion vector to inter prediction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210231549.2A CN102752596B (en) | 2012-07-05 | 2012-07-05 | Rate distortion optimization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210231549.2A CN102752596B (en) | 2012-07-05 | 2012-07-05 | Rate distortion optimization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102752596A true CN102752596A (en) | 2012-10-24 |
CN102752596B CN102752596B (en) | 2014-12-17 |
Family
ID=47032471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210231549.2A Active CN102752596B (en) | 2012-07-05 | 2012-07-05 | Rate distortion optimization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102752596B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104093022A (en) * | 2014-06-25 | 2014-10-08 | 华为技术有限公司 | Rate distortion optimization method and device |
CN104349167A (en) * | 2014-11-17 | 2015-02-11 | 电子科技大学 | Adjustment method of video code rate distortion optimization |
CN106331706A (en) * | 2016-05-03 | 2017-01-11 | 上海兆芯集成电路有限公司 | Rate distortion optimization method based on curve fitting and device using the method |
CN107040782A (en) * | 2017-04-21 | 2017-08-11 | 上海电力学院 | The global Rate-distortion optimization method of Video coding based on Lagrangian method |
CN107623858A (en) * | 2017-10-19 | 2018-01-23 | 北京工业大学 | A kind of 3D video fast encoding methods that rule is skipped based on adaptive segmentation |
CN108696749A (en) * | 2017-04-11 | 2018-10-23 | 北京君正集成电路股份有限公司 | A kind of mode selecting method and device improving image coding quality |
CN108696750A (en) * | 2017-04-05 | 2018-10-23 | 深圳市中兴微电子技术有限公司 | A kind of decision method and device of prediction mode |
CN108989804A (en) * | 2018-08-23 | 2018-12-11 | 杭州雄迈集成电路技术有限公司 | The coding method of image and device |
CN109561315A (en) * | 2018-10-31 | 2019-04-02 | 北京金山云网络技术有限公司 | A kind of method for estimating, device, electronic equipment and storage medium |
CN109688411A (en) * | 2017-10-18 | 2019-04-26 | 深圳市中兴微电子技术有限公司 | A kind of Video coding rate distortion costs estimation method and device |
CN112040232A (en) * | 2020-11-04 | 2020-12-04 | 北京金山云网络技术有限公司 | Real-time communication transmission method and device and real-time communication processing method and device |
-
2012
- 2012-07-05 CN CN201210231549.2A patent/CN102752596B/en active Active
Non-Patent Citations (4)
Title |
---|
YI-HSIN HUANG 等: "Perceptual-Based Coding Mode Decision", 《PROCEEDINGS OF 2010 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS)》 * |
杨春玲 等: "基于SSE和SSIM的H.264帧内预测模式选择改进算法", 《电子与信息学报》 * |
杨春玲 等: "基于结构相似的H.264帧间预测改进算法", 《计算机学报》 * |
毕厚杰 主编: "《新一代视频压缩编码标准-H.264/AVC》", 1 August 2006, 人民邮电出版社 * |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104093022B (en) * | 2014-06-25 | 2017-08-18 | 华为技术有限公司 | A kind of Rate-distortion optimization method and device |
CN104093022A (en) * | 2014-06-25 | 2014-10-08 | 华为技术有限公司 | Rate distortion optimization method and device |
CN104349167A (en) * | 2014-11-17 | 2015-02-11 | 电子科技大学 | Adjustment method of video code rate distortion optimization |
CN104349167B (en) * | 2014-11-17 | 2018-01-19 | 电子科技大学 | A kind of method of adjustment of Video coding rate-distortion optimization |
CN106331706B (en) * | 2016-05-03 | 2019-04-30 | 上海兆芯集成电路有限公司 | Rate-distortion optimization method based on curve matching and the device using this method |
CN106331706A (en) * | 2016-05-03 | 2017-01-11 | 上海兆芯集成电路有限公司 | Rate distortion optimization method based on curve fitting and device using the method |
CN108696750A (en) * | 2017-04-05 | 2018-10-23 | 深圳市中兴微电子技术有限公司 | A kind of decision method and device of prediction mode |
CN108696749A (en) * | 2017-04-11 | 2018-10-23 | 北京君正集成电路股份有限公司 | A kind of mode selecting method and device improving image coding quality |
CN107040782A (en) * | 2017-04-21 | 2017-08-11 | 上海电力学院 | The global Rate-distortion optimization method of Video coding based on Lagrangian method |
CN107040782B (en) * | 2017-04-21 | 2019-10-01 | 上海电力学院 | Video coding overall situation Rate-distortion optimization method based on Lagrangian method |
CN109688411A (en) * | 2017-10-18 | 2019-04-26 | 深圳市中兴微电子技术有限公司 | A kind of Video coding rate distortion costs estimation method and device |
CN107623858A (en) * | 2017-10-19 | 2018-01-23 | 北京工业大学 | A kind of 3D video fast encoding methods that rule is skipped based on adaptive segmentation |
CN107623858B (en) * | 2017-10-19 | 2020-08-28 | 北京工业大学 | 3D video fast coding method based on adaptive segmentation skipping rule |
CN108989804A (en) * | 2018-08-23 | 2018-12-11 | 杭州雄迈集成电路技术有限公司 | The coding method of image and device |
CN108989804B (en) * | 2018-08-23 | 2021-04-27 | 杭州雄迈集成电路技术股份有限公司 | Image coding method and device |
CN109561315A (en) * | 2018-10-31 | 2019-04-02 | 北京金山云网络技术有限公司 | A kind of method for estimating, device, electronic equipment and storage medium |
CN109561315B (en) * | 2018-10-31 | 2020-10-02 | 北京金山云网络技术有限公司 | Motion estimation method and device, electronic equipment and storage medium |
CN112040232A (en) * | 2020-11-04 | 2020-12-04 | 北京金山云网络技术有限公司 | Real-time communication transmission method and device and real-time communication processing method and device |
CN112040232B (en) * | 2020-11-04 | 2021-06-22 | 北京金山云网络技术有限公司 | Real-time communication transmission method and device and real-time communication processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102752596B (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102752596B (en) | Rate distortion optimization method | |
KR102165288B1 (en) | Video encoding/decoding method and apparatus using prediction based on in-loop filtering | |
US8144770B2 (en) | Apparatus and method for encoding moving picture | |
JP5128443B2 (en) | Video encoding and decoding method and apparatus | |
CN101965734B (en) | Method And Apparatus For Image Intra Prediction | |
KR101228020B1 (en) | Video coding method and apparatus using side matching, and video decoding method and appartus thereof | |
CN103179395B (en) | Rate-distortion for context-adaptive variable-length decoding (CAVLC) quantizes | |
CN101385347B (en) | Method of and apparatus for video intraprediction encoding/decoding | |
KR100739714B1 (en) | Method and apparatus for intra prediction mode decision | |
CN102932642B (en) | Interframe coding quick mode selection method | |
CN102334337A (en) | Apparatus and method for coding/decoding image selectivly using descrete cosine/sine transtorm | |
US9179146B2 (en) | Encoding and decoding device and method using intra prediction | |
CN101552924B (en) | Spatial prediction method for video coding | |
CN103918271A (en) | Method and system for structural similarity based perceptual video coding | |
KR20100004037A (en) | Method and apparatus for encoding video, and method and apparatus for decoding video | |
WO2008004768A1 (en) | Image encoding/decoding method and apparatus | |
CN107113438A (en) | Intra-frame encoding mode | |
CN103188494A (en) | Apparatus and method for encoding depth image by skipping discrete cosine transform (DCT), and apparatus and method for decoding depth image by skipping DCT | |
CN104902276B (en) | Converter unit partitioning method and device | |
CN101313581B (en) | Method and device for coding a video image | |
US20180249160A1 (en) | Vector quantization for video coding using codebook generated by selected training signals | |
CN104333761A (en) | HEVC basic unit level code rate allocation method | |
CN102780886B (en) | Rate distortion optimization method | |
CN102780884B (en) | Rate distortion optimization method | |
CN105338365B (en) | Method for video coding and video coding apparatus |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220524 Address after: 510530 No. 10, Nanxiang 2nd Road, Science City, Luogang District, Guangzhou, Guangdong Patentee after: Guangdong Guangsheng research and Development Institute Co.,Ltd. Address before: 518057 6th floor, software building, No. 9, Gaoxin Zhongyi Road, high tech Zone, Nanshan District, Shenzhen, Guangdong Province Patentee before: SHENZHEN RISING SOURCE TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |