CN100563337C - Integer transform based on AVS quantizes and the integral inverse transform quantification method - Google Patents

Integer transform based on AVS quantizes and the integral inverse transform quantification method Download PDF

Info

Publication number
CN100563337C
CN100563337C CN 200710047354 CN200710047354A CN100563337C CN 100563337 C CN100563337 C CN 100563337C CN 200710047354 CN200710047354 CN 200710047354 CN 200710047354 A CN200710047354 A CN 200710047354A CN 100563337 C CN100563337 C CN 100563337C
Authority
CN
China
Prior art keywords
transform
matrix
integer
inverse
avs
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.)
Active
Application number
CN 200710047354
Other languages
Chinese (zh)
Other versions
CN101184234A (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 CN 200710047354 priority Critical patent/CN100563337C/en
Publication of CN101184234A publication Critical patent/CN101184234A/en
Application granted granted Critical
Publication of CN100563337C publication Critical patent/CN100563337C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a kind of integer transform based on AVS and quantize and the integral inverse transform quantification method, this method avoids using complex calculations such as multiplication and division method, only relies on addition and shift operation just can realize integer transform and the inverse transformation of AVS.In great economize on hardware resource, can significantly improve the speed of data processing.

Description

Integer transform based on AVS quantizes and the integral inverse transform quantification method
Technical field
The present invention relates to a kind of integer transform based on AVS quantizes and the integral inverse transform quantification method.
Background technology
AVS (Audio Video coding Standard) sets up the autonomous digital audio/video encoding and decoding technique standard of formulating of China that " digital audio/video encoding and decoding technique standard operation group " proposes by China's Ministry of Information Industry, is the general character basic standard of digital audio/video industrial colonies such as Digital Television, broadband network Streaming Media, mobile multimedia communication, videodisc.This standard is very advanced, and its code efficiency is than Moving Picture Experts Group-2 high 2~3 times (high definition TV can reach 3 times or more), and is suitable with MPEG-4 AVC/H.264 standard code efficient, but technical scheme is more succinct.At 2006 beginning of the years, the national standard that the AVS standard becomes the audio frequency and video field has been passed through in Ministry of Information Industry's official approval, and formally in implementation of China, can save the multi-million dollar patent fee every year, have good market prospects and researching value.
Compare with other video encoding and decoding standard, the main difference point of AVS has adopted 8 * 8 integer transforms with regard to the conversion fraction that is it.Can eliminate the intrinsic problem that adopts discrete cosine transform (DCT) conversion to have mismatch.8 * 8 integer direct transforms as the formula (1).
Y = HXH T = 8 8 8 8 8 8 8 8 10 9 6 2 - 2 - 6 - 9 - 10 10 4 - 4 - 10 - 10 - 4 4 10 9 - 2 - 10 - 6 6 10 2 - 9 8 - 8 - 8 8 8 - 8 - 8 8 6 - 10 2 9 - 9 - 2 10 - 6 4 - 10 10 - 4 - 4 10 - 10 4 2 - 6 9 - 10 10 - 9 6 - 2 [ X ] 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2 - - - ( 1 )
In the formula, X represents 8 * 8 image residual matrix, and Y represents 8 * 8 transform coefficient matrix, and H represents 8 * 8 integer direct transform matrix, H TThe integer direct transform transpose of a matrix matrix of expression 8 * 8.
AVS8 * 8 integral inverse transforms are the process that 8 * 8 transform coefficient matrix Y are converted to 8 * 8 residual error sample value matrix X, and step is as follows:
At first, transform coefficient matrix is carried out following horizontal inverse transformation: H=Y * T 8 T
Wherein, T 8Be 8 * 8 inverse transformation matrixes, T 8 TBe T 8Transposed matrix, H represents the intermediate object program after the horizontal inverse transformation.
T 8 = 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2
Second step, the element h of matrix H IjBe calculated as follows:
h ij=(Clip3(-2 15,2 15-1,(h ij+4)))>>3 i,j=0~7
In the 3rd step, matrix H is carried out following vertical inverse transformation: H=T 8* H.Wherein, H represents 8 * 8 matrixes after the inverse transformation.
The 4th step, the element r of residual error sample value matrix X IjBe calculated as follows:
r ij=(Clip3(-2 15,2 15-1,(h ij+2 6)))>>7 i,j=0~7
H wherein IjIt is H entry of a matrix element.
Aspect the quantification inverse quantization, AVS quantizes choosing of progression and also is different from H.264/AVC, and it is worth as index with a quantization parameter QP (Quantization Parameter) 52 kinds of step-lengths, and adopts 64 grades of quantifications, whenever QP value increase by 8, then quantization step Q StepDouble.This has just strengthened different application and the professional ability that code check and quality is had different requirements of adapting to.Round the error of bringing in the transform and quantization process in order to reduce, the operation that among the AVS convergent-divergent and quantification combined, as the formula (2).
F q(u,v)=sign[F(u,v)][((|F(u,v)|M(u&3,v&3)+2 18)>>19)×QC+f×2 L]>>L (2)
Wherein, F is a transform coefficient matrix; U, v are the row and column index; L=15+QP/8; M is a scaled matrix, and QC is to be the quantization parameter table of index with QP, is made up of some positive integers, and its value can be with reference to pertinent literature.F is used for rounding off and rounds, and in actual applications, also can not consider sometimes.The inverse quantization process as the formula (3).
w ij=(F q[i,j]×DequantTable(QP)+2 ShiftTable(QP)-1)>>ShiftTable(QP)i,j=0~7 (3)
W wherein IjBe the element of two-dimensional transform coefficient matrix, i, j are the call number of row, column in the matrix; F qBe two-dimentional quantization parameter matrix; DequantTable is the dequantized coefficients table; ShiftTable is a dequantized coefficients translation table.
In realizing AVS hardware encoding process, the hardware designs and the realization of research integer transform, quantification and integral inverse transform, inverse quantization have a very important role.Along with the hardware handles frequency requirement is improved day by day, this class design and the method that realizes also more and more are held in esteem and look.
Summary of the invention
The integer transform that technical problem to be solved by this invention provides based on AVS quantizes and the integral inverse transform quantification method, can reduce hard-wired complexity greatly on the one hand, the economize on hardware resource, can significantly improve data processing speed on the other hand, make it satisfy the real-time processing requirements of high definition coding.
In order to solve the problems of the technologies described above, the present invention is achieved in that a kind of integer transform based on AVS quantizes and the integral inverse transform quantification method, wherein the conversion of first line translation rank rear is adopted in the integer direct transform, integral inverse transform adopts the mode deal with data of line translation behind the first rank transformation, and it comprises following steps:
Step 1, the PredDiffEn_IH signal is set is enable signal, when if PredDiffEn_IH is high level, expression input data PredDiff_I is valid data, the input data are 9 bit strip symbolic numbers, through output transform coefficient T rans_M and output enable TransEn_MH behind the integer transform, wherein:
8 * 8 integer direct transform expression formulas are:
Y = HXH T = 8 8 8 8 8 8 8 8 10 9 6 2 - 2 - 6 - 9 - 10 10 4 - 4 - 10 - 10 - 4 4 10 9 - 2 - 10 - 6 6 10 2 - 9 8 - 8 - 8 8 8 - 8 - 8 8 6 - 10 2 9 - 9 - 2 10 - 6 4 - 10 10 - 4 - 4 10 - 10 4 2 - 6 9 - 10 10 - 9 6 - 2 [ X ] 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2
X represents 8 * 8 image residual matrix, and Y represents 8 * 8 transform coefficient matrix, and H represents 8 * 8 integer direct transform matrix, H TThe integer direct transform transpose of a matrix matrix of expression 8 * 8,
If the input data in the X image residual matrix are X (0), X (1) ... X (6), X (7), through the dateout behind the single step integer transform is Z (0), Z (1), Z (2), Z (3), Z (4), Z (5), Z (6), Z (7), by the above-mentioned integer transform expression formula even number behavior even symmetry of transformation matrix H as can be known, and odd number behavior odd symmetry, thereby utilize the symmetry of transformation matrix H, release following matrix:
Z ( 0 ) Z ( 2 ) Z ( 4 ) Z ( 6 ) = 8 8 8 8 10 4 - 4 - 10 8 - 8 - 8 8 4 - 10 10 - 4 X ( 0 ) + X ( 7 ) X ( 1 ) + X ( 6 ) X ( 2 ) + X ( 5 ) X ( 3 ) + X ( 4 )
Z ( 1 ) Z ( 3 ) Z ( 5 ) Z ( 7 ) = 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 X ( 0 ) - X ( 7 ) X ( 1 ) - X ( 6 ) X ( 2 ) - X ( 5 ) X ( 3 ) - X ( 4 ) ,
Because (N * N) * (N * 1) matrix-vector multiplication changes twice ((N/2) * (N/2)) * ((N/2) * 1) matrix-vector multiplication into, thus the number of times of computing can reduce by half, but and parallel computation;
Step 2, if enable signal TransEn_MH is a high level, show that conversion coefficient Trans_M is valid data, through after quantizing, conversion coefficient Quant_O and output enable QuantEn_OH after output quantizes;
Step 3, if enable signal QuantEn_OH is a high level, show that the conversion coefficient after the quantification is valid data, through behind the inverse quantization, output variation coefficient InvTrans_M and output enable InvTrans_MH; And
Step 4, if enable signal InvTrans_MH is a high level, show that the conversion coefficient behind the inverse quantization is valid data, through after the inverse transformation, prediction of output residual error InvPredDiff_I and prediction residual output enable InvPredDiffEn_IH, wherein:
The input data are the conversion coefficient behind the inverse quantization, and establishing the input data is Y (0), Y (1) ... Y (6), Y (7), integral inverse transform matrix
T 8 = 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2
T 8Even number classify even symmetry as, and odd number is classified odd symmetry as, if be Z (0) through the dateout after the computing of single step inverse discrete cosine, Z (1), Z (2), Z (3), Z (4), Z (5), Z (6), Z (7) utilizes the symmetry of transformation matrix T8, can release following matrix:
Z ( 0 ) Z ( 1 ) Z ( 2 ) Z ( 3 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) + 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 )
Z ( 7 ) Z ( 6 ) Z ( 5 ) Z ( 4 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) - 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 )
Because (matrix multiplication operation of N * N) * (N * 1) is replaced by the matrix product of two ((N/2) * (N/2)) * ((N/2) * 1), operation times has also reduced half, and because the latter half on equation the right only has the poor of sign symbol, so two matrix equalities can calculate simultaneously.
The above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, it further comprises: in the step 1, integer transform adopts the mode of multiplexing single step discrete cosine transform computing, finishing whole integer transform need be with multiplexing 2 times of single step discrete cosine transform computing, and wherein single step discrete cosine transform calculation step is:
Step 1a, with X (0)+X (7), X (1)+X (6), X (2)+X (5), X (3)+X (4), X (0)-X (7) X (1)-X (6), X (2)-X (5), X (3)-X (4) is expressed as R0, R1, R2, R3, R4, R5, R6, R7 respectively.Can get Y (0)=8R0+8R1+8R2+8R3, Y (1)=10R4+9R5+6R6+2R7, Y (2)=10R0+4R1-4R2-10R3, Y (3)=9R4-2R5-10R6-6R7, Y (4)=8R0-8R1-8R2+8R3, Y (5)=6R4-10R5+2R6+9R7, Y (6)=4R0-10R1+10R2-4R3, Y (7)=2R4-6R5+9R6-10R7;
Step 1b, make Q0=8R0+8R3, Q1=8R1+8R2, Q2=10R4+6R6, Q3=9R5+2R7, Q4=10R0-4R2, Q5=4R1-10R3, Q6=9R4-10R6, Q7=2R5+6R7, Q8=6R4+2R6, Q9=10R5-9R7, Q10=4R0+10R2, Q11=10R1+4R3, Q12=2R4+9R6, Q13=6R5+10R7 establishes through the value after the single step DCT computing and is respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z0=Q0+Q1 then, Z1=Q2+Q3, Z2=Q4+Q5, Z3=Q6-Q7, Z4=Q0-Q1, Z5=Q8-Q9, Z6=Q10-Q11, Z7=Q12-Q13;
Step 1c, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted, as Q0=R0<<3+R3<<3.
Above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, and it further comprises: in the step 1, realize the shifting function of different directions by exercising energy signal Row_En and row enable signal Col_En, thus the transposition of realization matrix.
The above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, and it further comprises: in the step 2, quantize to comprise convergent-divergent and quantize two steps that realize quantizing to calculate by 3 grades of flowing water, first order flowing water is realized M (u﹠amp; 3, v﹠amp; 3), the calculating of QC and f, finish by tabling look-up, second level flowing water is mainly realized calculating | F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19, third level flowing water mainly realize [((| F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19) * QC+f * 2 LThe L of]>>, wherein, (u v) is a transform coefficient matrix to F, and u, v are the row and column index; M (u﹠amp; 3, v﹠amp; 3) be scaled matrix; QC is to be the quantization parameter table of index with quantization parameter QP; F is used for rounding off and rounds; L=15+QP/8.
The above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, it further comprises: in the step 3, inverse quantization is realized by 2 grades of flowing water, first order flowing water is realized IQ_TAB[qp], (shift-2) and calculating (shift-1), finish by tabling look-up, second level flowing water realize (coeff*IQ_TAB[qp]+(1<<(shift-2)))>>(shift-1) calculating.
The above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, it further comprises: in the step 4, integral inverse transform adopts multiplexing single step inverse discrete cosine compute mode, finishing whole integral inverse transform need be with multiplexing 2 times of single step inverse discrete cosine computing, and wherein single step inverse discrete cosine calculation step is:
Step 4a, make U0=8Y0+8Y4, U1=8Y0-8Y4, U2=10Y1+6Y5, U3=9Y1-10Y5, U4=6Y1+2Y5, U5=2Y1+9Y5, U6=10Y2+4Y6, U7=4Y2-10Y6, U8=9Y3+2Y7, U9=2Y3+6Y7, U10=10Y3-9Y7, U11=6Y3+10Y7, W0=U0+U6 then, W1=U1+U7, W2=U1-U7, W3=U0-U6, W4=U2+U8, W5=U3-U9, W6=U4-U10, W7=U5-U11;
Step 4b, establish through the value after the computing of a single step inverse discrete cosine and be respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7 is got by formula (6) formula (7), Z (0)=W0+W4, Z (1)=W1+W5, Z (2)=W2+W6, Z (3)=W3+W7, Z (4)=W0-W4, Z (5)=W1-W5, Z (6)=W2-W6, Z (7)=W3-W7;
Step 4c, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted, as U0=Y (0)<<3+Y (4)<<3.
The above-mentioned integer transform based on AVS quantizes and the integral inverse transform quantification method, and it further comprises: in the step 4, and integral inverse transform and the shared same transpose memory of integer direct transform unit.
The present invention makes it compared with prior art owing to adopted above-mentioned technical scheme, has following advantage and good effect:
1, because in the step 1, integer transform adopts the mode of multiplexing single step discrete cosine transform computing; In the step 4, integral inverse transform adopts the mode of multiplexing single step inverse discrete cosine computing; In whole change quantization and inverse transformation inverse quantization process, all avoid using multiplication and division, and adopt modes such as displacement, ROM or other to realize and integer transform and the multiplexing same transposition register of inverse transformation or the like.The present invention reduces hard-wired complexity greatly as can be seen, has saved hardware resource;
2, because in the step 1 and 4, the parallel pipelining process of integer transform and inverse transformation is handled; In the step 2,3, avoid using multiplication and division in the stream treatment of quantification and inverse quantization and the whole computational process, thereby significantly improve data processing speed, increased the data throughout of entire process structure, make it satisfy the real-time processing requirements of high definition coding.
Description of drawings
Integer transform based on AVS of the present invention quantizes and the integral inverse transform quantification method is provided by following embodiment and accompanying drawing.
Fig. 1 is integer transform, quantification and integral inverse transform, the inverse quantization hardware implementation structure figure that the invention provides AVS.
Fig. 2 the invention provides discrete cosine transform multiplexing structure figure.
Embodiment
Below will be described in further detail integer transform quantification and the integral inverse transform quantification method based on AVS of the present invention.
As shown in Figure 1, be that the integer transform based on AVS provided by the invention quantizes and the integral inverse transform quantification method, it comprises following steps:
Step 1, the PredDiffEn_IH signal is set is enable signal, if when PredDiffEn_IH is high level, expression input data PredDiff_I is valid data, and the input data are 9 bit strip symbolic numbers.Through output transform coefficient T rans_M and output enable TransEn_MH behind the integer transform;
Step 2, if enable signal TransEn_MH is a high level, show that conversion coefficient Trans_M is valid data, through after quantizing, conversion coefficient Quant_O and output enable QuantEn_OH after output quantizes;
Step 3, if enable signal QuantEn_OH is a high level, show that the conversion coefficient after the quantification is valid data, through behind the inverse quantization, output variation coefficient InvTrans_M and output enable InvTrans_MH;
Step 4, if enable signal InvTrans_MH is a high level, show that the conversion coefficient behind the inverse quantization is valid data, through after the inverse transformation, prediction of output residual error InvPredDiff_I and prediction residual output enable InvPredDiffEn_IH.
In the step 1, integer transform adopts the mode of multiplexing single step discrete cosine transform (DCT) computing to realize, saves the resource that is consumed significantly.Finishing whole integer transform need be with multiplexing 2 times of single step DCT computing.The DCT of this multiplexing single step algorithm realizes block diagram (as shown in Figure 2).The counter State that is controlled by system controller reflects the state that current DCT computing is carried out.The input data enter single step DCT arithmetic element after importing mask register, by exporting by the output mask register after a series of computing, if State==1 then output result that will this moment feeds back to the input mask register carries out single step DCT computing again, if State==2 then operation result output that will this moment.After single step DCT computing is finished each time, add a post-processing unit, realize rounding single step DCT operation result.
In the step 1, establishing the input data is X0, X1......X6, and X7 by integer transform expression formula (1) the even number behavior even symmetry of transformation matrix H as can be known, and odd number behavior odd symmetry, thereby utilizes the symmetry of transformation matrix H, can release following matrix:
Z ( 0 ) Z ( 2 ) Z ( 4 ) Z ( 6 ) = 8 8 8 8 10 4 - 4 - 10 8 - 8 - 8 8 4 - 10 10 - 4 X ( 0 ) + X ( 7 ) X ( 1 ) + X ( 6 ) X ( 2 ) + X ( 5 ) X ( 3 ) + X ( 4 ) - - - ( 4 )
Z ( 1 ) Z ( 3 ) Z ( 5 ) Z ( 7 ) = 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 X ( 0 ) - X ( 7 ) X ( 1 ) - X ( 6 ) X ( 2 ) - X ( 5 ) X ( 3 ) - X ( 4 ) - - - ( 5 )
Single step DCT computing comprises following steps:
Step 1.1, with X (0)+X (7), X (1)+X (6), X (2)+X (5), X (3)+X (4), X (0)-X (7) X (1)-X (6), X (2)-X (5), X (3)-X (4) is expressed as R0, R1, R2, R3, R4, R5, R6, R7 respectively.Can get Y (0)=8R0+8R1+8R2+8R3, Y (1)=10R4+9R5+6R6+2R7, Y (2)=10R0+4R1-4R2-10R3, Y (3)=9R4-2R5-10R6-6R7, Y (4)=8R0-8R1-8R2+8R3, Y (5)=6R4-10R5+2R6+9R7, Y (6)=4R0-10R1+10R2-4R3, Y (7)=2R4-6R5+9R6-10R7;
Step 1.2, make Q0=8R0+8R3, Q1=8R1+8R2, Q2=10R4+6R6, Q3=9R5+2R7, Q4=10R0-4R2, Q5=4R1-10R3, Q6=9R4-10R6, Q7=2R5+6R7, Q8=6R4+2R6, Q9=10R5-9R7, Q10=4R0+10R2, Q11=10R1+4R3, Q12=2R4+9R6, Q13=6R5+10R7 establishes through the value after the single step DCT computing and is respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z0=Q0+Q1 then, Z1=Q2+Q3, Z2=Q4+Q5, Z3=Q6-Q7, Z4=Q0-Q1, Z5=Q8-Q9, Z6=Q10-Q11, Z7=Q12-Q13;
Step 1.3, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted, as Q0=R0<<3+R3<<3;
In the step 1, the shift register that transpose memory is made up of 8 * 8 register arrays realizes, by exercise can signal Row_En and row enable signal Col_En realize the shifting function of different directions, thereby the transposition of realization matrix.
In the step 2, quantize to comprise convergent-divergent and quantize two steps, mainly realize quantizing to calculate as can be seen by 3 grades of flowing water from quantizing expression formula.First order flowing water is realized M (u﹠amp; 3, v﹠amp; 3), the calculating of QC and f, finish by tabling look-up.Second level flowing water is mainly realized calculating | and F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19.Third level flowing water mainly realize [((| F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19) * QC+f * 2 LThe L of]>>.
In the step 3, the inverse quantization expression formula is:
Curr_blk[yy][xx]=(coeff*IQ_TAB[qp]+(1<<(shift-2)))>>(shift-1)。From the inverse quantization expression formula as can be seen, inverse quantization can be realized by 2 grades of flowing water.First order flowing water is realized IQ_TAB[qp], (shift-2) and calculating (shift-1), finish by tabling look-up.Second level flowing water realize (coeff*IQ_TAB[qp]+(1<<(shift-2)))>>(shift-1) calculating.
In the step 3, operation for (shift-1) position that moves to right at last, can not directly carry out shifting function because the figure place of being moved is uncertain, the structure that adopts a look-up table to add a MUX in the present invention realizes this shifting function, not only can avoid using complicated multiplication and division method computing but also can realizing function;
In the step 4, integral inverse transform adopts the mode of multiplexing single step inverse discrete cosine (IDCT) computing, saves the resource that is consumed significantly.Finishing whole integral inverse transform need be with multiplexing 2 times of single step IDCT computing.It is similar when the IDCT of this multiplexing single step algorithm realizes block diagram to integer transform.The counter INVState that is controlled by system controller reflects the state that current I DCT computing is carried out.The input data enter single step IDCT arithmetic element after importing mask register, by exporting by the output mask register after a series of computing, if INVState==1 then output result that will this moment feeds back to the input mask register carries out single step IDCT computing again, if INVState==2 then operation result output that will this moment.After single step IDCT computing is finished each time, add a post-processing unit, realize rounding single step IDCT operation result.
In the step 4, establishing the input data is Y0, Y1......Y6, and Y7 is by the integral inverse transform matrix T 8Even number classify even symmetry as, and odd number is classified odd symmetry as, thereby utilizes transformation matrix T 8Symmetry, can release following matrix:
Z ( 0 ) Z ( 1 ) Z ( 2 ) Z ( 3 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) + 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 ) - - - ( 6 )
Z ( 7 ) Z ( 6 ) Z ( 5 ) Z ( 4 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) - 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 ) - - - ( 7 )
Single step IDCT computing comprises following steps:
Step 4.1, make U0=8Y0+8Y4, U1=8Y0-8Y4, U2=10Y1+6Y5, U3=9Y1-10Y5, U4=6Y1+2Y5, U5=2Y1+9Y5, U6=10Y2+4Y6, U7=4Y2-10Y6, U8=9Y3+2Y7, U9=2Y3+6Y7, U10=10Y3-9Y7, U11=6Y3+10Y7, W0=U0+U6 then, W1=U1+U7, W2=U 1-U7, W3=U0-U6, W4=U2+U8, W5=U3-U9, W6=U4-U10, W7=U5-U11;
Step 4.2, establish through the value after the single step IDCT computing and be respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7 is got by formula (6) formula (7), Z (0)=W0+W4, Z (1)=W1+W5, Z (2)=W2+W6, Z (3)=W3+W7, Z (4)=W0-W4, Z (5)=W 1-W5, Z (6)=W2-W6, Z (7)=W3-W7;
Step 4.3, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted, as U0=Y (0)<<3+Y (4)<<3;
In the step 4,, thereby consider module reuse, integral inverse transform and the shared same transpose memory of integer direct transform unit because the logical resource that 8 * 8 register arrays take is more.
Among the present invention, integer transform adopts the conversion of first line translation rank rear and the mode deal with data that row changes behind the first rank transformation is adopted in the integer inverse transformation, can make the transfer process between the few row, column of data minus, has improved the speed of data processing.
The emulation of the present invention on ModelsimSE 6.1b, the language of use is Verilog; Whole integer transform, quantification, inverse quantization, inverse transformation are all finished and have been used 42 clock cycle; Clock frequency can reach more than the 100MHz, satisfies the requirement that video image is handled in real time.

Claims (6)

1. one kind quantizes and the integral inverse transform quantification method based on the integer transform of AVS, and it is characterized in that: the conversion of first line translation rank rear is adopted in the integer direct transform, and integral inverse transform adopts the mode deal with data of line translation behind the first rank transformation, and it comprises following steps:
Step 1, the PredDiffEn_IH signal is set is enable signal, when if PredDiffEn_IH is high level, expression input data PredDiff_I is valid data, the input data are 9 bit strip symbolic numbers, through output transform coefficient T rans_M and output enable TransEn_MH behind the integer transform, wherein:
8 * 8 integer direct transform expression formulas are:
Y = HXH T = 8 8 8 8 8 8 8 8 10 9 6 2 - 2 - 6 - 9 - 10 10 4 - 4 - 10 - 10 - 4 4 10 9 - 2 - 10 - 6 6 10 2 - 9 8 - 8 - 8 8 8 - 8 - 8 8 6 - 10 2 9 - 9 - 2 10 - 6 4 - 10 10 - 4 - 4 10 - 10 4 2 - 6 9 - 10 10 - 9 6 - 2 [ X ] 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2
X represents 8 * 8 image residual matrix, and Y represents 8 * 8 transform coefficient matrix, and H represents 8 * 8 integer direct transform matrix, H TThe integer direct transform transpose of a matrix matrix of expression 8 * 8,
If the input data in the X image residual matrix are X (0), X (1) ... X (6), X (7), through the dateout behind the single step integer transform is Z (0), Z (1), Z (2), Z (3), Z (4), Z (5), Z (6), Z (7) is known by above-mentioned integer transform expression formula, the even number behavior even symmetry of transformation matrix H, and odd number behavior odd symmetry, thereby utilize the symmetry of transformation matrix H, release following matrix:
Z ( 0 ) Z ( 2 ) Z ( 4 ) Z ( 6 ) = 8 8 8 8 10 4 - 4 - 10 8 - 8 - 8 8 4 - 10 10 - 4 X ( 0 ) + X ( 7 ) X ( 1 ) + X ( 6 ) X ( 2 ) + X ( 5 ) X ( 3 ) + X ( 4 )
Z ( 1 ) Z ( 3 ) Z ( 5 ) Z ( 7 ) = 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 X ( 0 ) - X ( 7 ) X ( 1 ) - X ( 6 ) X ( 2 ) - X ( 5 ) X ( 3 ) - X ( 4 ) ,
The number of times of computing is reduced by half, and can parallel computation;
Step 2, if enable signal TransEn_MH is a high level, show that conversion coefficient Trans_M is valid data, through after quantizing, conversion coefficient Quant_O and output enable QuantEn_OH after output quantizes;
Step 3, if enable signal QuantEn_OH is a high level, show that the conversion coefficient after the quantification is valid data, through behind the inverse quantization, output variation coefficient InvTrans_M and output enable InvTrans_MH; And
Step 4, if enable signal InvTrans_MH is a high level, show that the conversion coefficient behind the inverse quantization is valid data, through after the inverse transformation, prediction of output residual error InvPredDiff_I and prediction residual output enable InvPredDiffEn_IH, wherein:
The input data are the conversion coefficient behind the inverse quantization, and establishing the input data is Y (0), Y (1) ... Y (6), Y (7), integral inverse transform matrix
T 8 = 8 10 10 9 8 6 4 2 8 9 4 - 2 - 8 - 10 - 10 - 6 8 6 - 4 - 10 - 8 2 10 9 8 2 - 10 - 6 8 9 - 4 - 10 8 - 2 - 10 6 8 - 9 - 4 10 8 - 6 - 4 10 - 8 - 2 10 - 9 8 - 9 4 2 - 8 10 - 10 6 8 - 10 10 - 9 8 - 6 4 - 2
T 8Even number classify even symmetry as, and odd number is classified odd symmetry as, if be Z (0) through the dateout after the computing of single step inverse discrete cosine, Z (1), Z (2), Z (3), Z (4), Z (5), Z (6), Z (7) utilizes transformation matrix T 8Symmetry, release following matrix:
Z ( 0 ) Z ( 1 ) Z ( 2 ) Z ( 3 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) + 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 )
Z ( 7 ) Z ( 6 ) Z ( 5 ) Z ( 4 ) = 8 10 8 4 8 4 - 8 - 10 8 - 4 - 8 10 8 - 10 8 - 4 Y ( 0 ) Y ( 2 ) Y ( 4 ) Y ( 6 ) - 10 9 6 2 9 - 2 - 10 - 6 6 - 10 2 9 2 - 6 9 - 10 Y ( 1 ) Y ( 3 ) Y ( 5 ) Y ( 7 )
Two matrix equalities can be calculated simultaneously.
2. the integer transform based on AVS as claimed in claim 1 quantizes and the integral inverse transform quantification method, it is characterized in that: in the step 1, integer transform adopts the mode of multiplexing single step discrete cosine transform computing, finishing whole integer transform need be with multiplexing 2 times of single step discrete cosine transform computing, and wherein single step discrete cosine transform calculation step is:
Step 1a, with X (0)+X (7), X (1)+X (6), X (2)+X (5), X (3)+X (4), X (0)-X (7) X (1)-X (6), X (2)-X (5), X (3)-X (4) is expressed as R0 respectively, R1, R2, R3, R4, R5, R6, R7, get Y (0)=8R0+8R1+8R2+8R3, Y (1)=10R4+9R5+6R6+2R7, Y (2)=10R0+4R1-4R2-10R3, Y (3)=9R4-2R5-10R6-6R7, Y (4)=8R0-8R1-8R2+8R3, Y (5)=6R4-10R5+2R6+9R7, Y (6)=4R0-10R1+10R2-4R3, Y (7)=2R4-6R5+9R6-10R7;
Step 1b, make Q0=8R0+8R3, Q1=8R1+8R2, Q2=10R4+6R6, Q3=9R5+2R7, Q4=10R0-4R2, Q5=4R1-10R3, Q6=9R4-10R6, Q7=2R5+6R7, Q8=6R4+2R6, Q9=10R5-9R7, Q10=4R0+10R2, Q11=10R1+4R3, Q12=2R4+9R6, Q13=6R5+10R7 establishes through the value after the single step DCT computing and is respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7, Z0=Q0+Q1 then, Z1=Q2+Q3, Z2=Q4+Q5, Z3=Q6-Q7, Z4=Q0-Q1, Z5=Q8-Q9, Z6=Q10-Q11, Z7=Q12-Q13;
Step 1c, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted.
3. the integer transform based on AVS as claimed in claim 1 quantizes and the integral inverse transform quantification method, it is characterized in that: in the step 1, by exercise can signal Row_En and row enable signal Col_En realize the shifting function of different directions, thereby the transposition of realization matrix.
4. the integer transform based on AVS as claimed in claim 1 quantizes and the integral inverse transform quantification method, it is characterized in that: in the step 2, quantize to comprise convergent-divergent and quantize two steps that realize quantizing to calculate by 3 grades of flowing water, first order flowing water is realized M (u﹠amp; 3, v﹠amp; 3), the calculating of QC and f, finish by tabling look-up, second level flowing water is realized calculating | F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19, the realization of third level flowing water [((| F (u, v) | M (u﹠amp; 3, v﹠amp; 3)+2 18)>>19) * QC+f * 2 LThe L of]>>, wherein, (u v) is a transform coefficient matrix to F, and u, v are the row and column index; M (u﹠amp; 3, v﹠amp; 3) be scaled matrix; QC is to be the quantization parameter table of index with quantization parameter QP; F is used for rounding off and rounds; L=15+QP/8.
5. the integer transform based on AVS as claimed in claim 1 quantizes and the integral inverse transform quantification method, it is characterized in that: in the step 4, integral inverse transform adopts multiplexing single step inverse discrete cosine compute mode, finishing whole integral inverse transform need be with multiplexing 2 times of single step inverse discrete cosine computing, and wherein single step inverse discrete cosine calculation step is:
Step 4a, make U0=8Y0+8Y4, U1=8Y0-8Y4, U2=10Y1+6Y5, U3=9Y1-10Y5, U4=6Y1+2Y5, U5=2Y1+9Y5, U6=10Y2+4Y6, U7=4Y2-10Y6, U8=9Y3+2Y7, U9=2Y3+6Y7, U10=10Y3-9Y7, U11=6Y3+10Y7, W0=U0+U6 then, W1=U1+U7, W2=U1-U7, W3=U0-U6, W4=U2+U8, W5=U3-U9, W6=U4-U10, W7=U5-U11;
Step 4b, establish through the value after the computing of a single step inverse discrete cosine and be respectively Z0, Z1, Z2, Z3, Z4, Z5, Z6, Z7 is got by formula (6) formula (7), Z (0)=W0+W4, Z (1)=W1+W5, Z (2)=W2+W6, Z (3)=W3+W7, Z (4)=W0-W4, Z (5)=W1-W5, Z (6)=W2-W6, Z (7)=W3-W7;
Step 4c, in the process that realizes, above-mentioned constant coefficient multiplication is realized with the mode that is shifted.
6. the integer transform based on AVS as claimed in claim 1 quantizes and the integral inverse transform quantification method, it is characterized in that: in the step 4, and integral inverse transform and the shared same transpose memory of integer direct transform unit.
CN 200710047354 2007-10-24 2007-10-24 Integer transform based on AVS quantizes and the integral inverse transform quantification method Active CN100563337C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710047354 CN100563337C (en) 2007-10-24 2007-10-24 Integer transform based on AVS quantizes and the integral inverse transform quantification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710047354 CN100563337C (en) 2007-10-24 2007-10-24 Integer transform based on AVS quantizes and the integral inverse transform quantification method

Publications (2)

Publication Number Publication Date
CN101184234A CN101184234A (en) 2008-05-21
CN100563337C true CN100563337C (en) 2009-11-25

Family

ID=39449284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710047354 Active CN100563337C (en) 2007-10-24 2007-10-24 Integer transform based on AVS quantizes and the integral inverse transform quantification method

Country Status (1)

Country Link
CN (1) CN100563337C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355701B (en) * 2008-09-09 2012-04-04 无锡中星微电子有限公司 Device and method for inverse transformation of integer of DCT
CN101754009B (en) * 2008-11-28 2012-01-11 展讯通信(上海)有限公司 Integral inverse transform method and the device thereof
CN101848392A (en) * 2010-05-07 2010-09-29 北京大学深圳研究生院 Video encoding and decoding device and integer transform and inverse transform method thereof
CN102045569B (en) * 2010-12-31 2012-10-24 北京大学深圳研究生院 Integer transformation device for video encoder and implementation method thereof
CN102227135A (en) * 2011-04-20 2011-10-26 深圳市融创天下科技发展有限公司 Video coding 8X8 integer transformation method
US9521410B2 (en) * 2012-04-26 2016-12-13 Qualcomm Incorporated Quantization parameter (QP) coding in video coding
CN105516730B (en) * 2014-09-24 2018-04-24 晨星半导体股份有限公司 Video coding device and video decoded device and its coding and coding/decoding method
CN111225206B (en) * 2018-11-23 2021-10-26 华为技术有限公司 Video decoding method and video decoder
CN110856000B (en) * 2019-10-22 2020-10-27 深圳市华星光电技术有限公司 Image decompression method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564602A (en) * 2004-03-18 2005-01-12 华中科技大学 Integral conversing matrix selection method of video coding and related integral conversion method
CN1770864A (en) * 2005-09-09 2006-05-10 海信集团有限公司 4x4 discrete cosine transform rapid parallel device based on AVS and its method
CN1874512A (en) * 2006-06-29 2006-12-06 上海交通大学 High performance pipeline system in use for AVS video decoder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564602A (en) * 2004-03-18 2005-01-12 华中科技大学 Integral conversing matrix selection method of video coding and related integral conversion method
CN1770864A (en) * 2005-09-09 2006-05-10 海信集团有限公司 4x4 discrete cosine transform rapid parallel device based on AVS and its method
CN1874512A (en) * 2006-06-29 2006-12-06 上海交通大学 High performance pipeline system in use for AVS video decoder

Also Published As

Publication number Publication date
CN101184234A (en) 2008-05-21

Similar Documents

Publication Publication Date Title
CN100563337C (en) Integer transform based on AVS quantizes and the integral inverse transform quantification method
CN100463522C (en) Improved block transform and quantization for image and video coding
CN1805547B (en) Reversible overlap operator for efficient lossless data compression
CN100442669C (en) Method for reduced bit-depth quantization
CN100412907C (en) Low complexity and unified transforms for video coding
CN1860527B (en) Device and method for processing a signal with a sequence of discrete values
CN101796506A (en) Shift design with proportional zoom formula and disproportional pantographic interface
Tran et al. Linear phase paraunitary filter bank with filters of different lengths and its application in image compression
MX2008008987A (en) Transforms with common factors.
CN102036075B (en) Image and digital video coding and decoding methods
CN100409693C (en) Orthogonal transformation method for image and video compression
US20060117078A1 (en) Performance optimized approach for efficient numerical computations
Brahimi et al. An efficient fast integer DCT transform for images compression with 16 additions only
CN104244010A (en) Method for improving digital signal conversion performance and digital signal conversion method and device
CN101605259B (en) Device and method for transforming coding and decoding for multimedia data
CN100450184C (en) Discrete cosine transforming method operated for image coding and video coding
CN100490539C (en) Discrete cosine transform method applicable to image coding and video coding
CN101095137A (en) 8x8 transform and quantization
CN102395031B (en) Data compression method
CN102045569B (en) Integer transformation device for video encoder and implementation method thereof
Deepthi et al. Design and Implementation of JPEG Image Compression and Decompression
CN100349466C (en) Method and device for qrasi-energy convervation change in vide frequency image cornpression
CN1642280B (en) Image-video-signal converting apparatus and method thereof
CN101316367A (en) Two-dimension inverse transformation method of video encoding and decoding standard, and its implementing circuit
CN100563341C (en) Multiple dimensioned compatible processing devices and methods therefor in image and the video coding

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: 20120619

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

Effective date of registration: 20120619

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