CN100586184C - Infra-frame prediction method - Google Patents

Infra-frame prediction method Download PDF

Info

Publication number
CN100586184C
CN100586184C CN 200810056776 CN200810056776A CN100586184C CN 100586184 C CN100586184 C CN 100586184C CN 200810056776 CN200810056776 CN 200810056776 CN 200810056776 A CN200810056776 A CN 200810056776A CN 100586184 C CN100586184 C CN 100586184C
Authority
CN
China
Prior art keywords
predictive mode
energy
current block
predictive
modes
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.)
Expired - Fee Related
Application number
CN 200810056776
Other languages
Chinese (zh)
Other versions
CN101222635A (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.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
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 Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN 200810056776 priority Critical patent/CN100586184C/en
Publication of CN101222635A publication Critical patent/CN101222635A/en
Application granted granted Critical
Publication of CN100586184C publication Critical patent/CN100586184C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to an intra-frame prediction method, comprising the following steps that: a 4x4 pixel luma block to be predicted is chosen to be as a current block; whether the current block is the center block is judged, if yes, energy functions of the residual error between prediction blocks of the current block and the current block in all predicting modes and a candidate predicting mode is determined according to the energy functions in different predicting modes, otherwise, a usable predicting mode is taken as the candidate predicting mode; a rate-distortion cost parameter in the candidate predicting mode is calculated, the candidate predicting mode with the minimal rate-distortion cost parameter is taken as the optimal predicting mode of the current block. The invention determines the candidate predicting mode according to the residual error energy function and determines the optimal predicting mode by calculating the rate-distortion cost parameter of the candidate predicting mode so as to decrease the number of the predicting modes which need to calculate the rate-distortion cost parameter, thereby reducing the amount of computation.

Description

Intra-frame prediction method
Technical field
The present invention relates to a kind of intra-frame prediction method, especially a kind of intra-frame prediction method that can effectively improve arithmetic speed.
Background technology
H.264/AVC, a new generation's video encoding standard has the good network performance, is applicable to mutual and nonreciprocal applied environment, has just received very big concern since issue, and its significant advantage is the compression efficiency height.Fig. 1 shows the H.264/AVC encoder frame figure of standard, and its course of work can be divided into forward path and rebuild passage according to data flow direction.Present frame F nCoding, be that the macro block of original image 16 * 16 pixels is encoded, macroblock coding is divided into intraframe coding and interframe encode, when intraframe coding and interframe encode, predicted macroblock P is obtained by reconstruction frames.In intra-frame encoding mode, P by the coded macroblocks in the present frame through the decoding, reconstruct, by reconstruct macro block uF ' nPrediction obtains, and under interframe encoding mode, P is by one or more reference frame F ' N-1Motion compensated prediction obtains.Predicted macroblock P and current macro F nDifference be residual error macro block D n, D nObtain a string transformation parameter X after conversion, quantification, parameter X need be carried out the processing of two aspects: the one, reorder and the entropy coding processing, and whole process does not have feedback component, so be called forward path; The 2nd, inverse quantization and inversion process produce macro block D ' n, D ' nObtain reconstruct macro block uF ' with predicted macroblock P addition n, reconstruct macro block uF ' nPass through the reference frame F ' that a series of processing obtain rebuilding again n, be used for the estimation of next frame, so be called the reconstruction passage.H.264/AVC the raising of performance is inseparable with some new technologies that it adopts, as adopt intra-frame prediction method, conversion based on spatial domain adopt integral discrete cosine transform (Discrete Cosine Transform is hereinafter to be referred as DCT), motion estimation/motion compensation based on 4 * 4 block of pixels, rebuild passage and adopt loop filtering, new entropy coding method etc.
Be the key factor that improves of performance H.264/AVC wherein based on the infra-frame prediction of spatial domain, infra-frame prediction utilizes the spatial coherence of image, according to the information of the information prediction current block of the adjacent pixel blocks of decoding and reconstituting, obtain the prediction piece of current block, then the residual error of the prediction piece of current block and current block is carried out conversion, quantification, coding, in order to represent current block preferably, H.264/AVC adopt rate-distortion optimization (RateDistortion Optization is hereinafter to be referred as RDO) technology to come the optimized encoding quality and minimize bits of coded.
H.264/AVC the macro block with 16 * 16 pixels is a unit in the standard, a macro block comprises the chrominance block of a luminance block and two correspondences, wherein luminance block be 1 16 * 16 or 16 4 * 4, chrominance block is 8 * 8.
Luminance block for 4 * 4, infra-frame prediction have 9 kinds of predictive modes, and these predictive modes are:
Pattern 0: vertical prediction (vertical prediction) pattern
Pattern 1: horizontal forecast (horizontal prediction) pattern
Pattern 2:DC predicts (DC prediction) pattern
Mode 3: 45 degree direction prediction (diagonal down/left prediction) patterns
Pattern 4:135 degree direction prediction (diagonal down/right prediction) pattern
Pattern 5:112.5 degree direction prediction (vertical-right prediction) pattern
Pattern 6:157.5 degree direction prediction (horizontal-down prediction) pattern
Mode 7: 67.5 degree direction prediction (vertical-left prediction) patterns
Pattern 8:22.5 degree direction prediction (horizontal-up prediction) pattern
Wherein, except the DC predictive mode, remaining 8 kinds of predictive modes are called directional prediction modes, and Fig. 2 shows the graph of a relation of reference pixel and current block pixel to be predicted, and wherein capitalization is represented is reference pixel, and what lowercase was represented is the current block pixel.Numeral among Fig. 3 has been indicated the sensing of all directions predictive modes.
Luminance block for 16 * 16, infra-frame prediction have 4 kinds of predictive modes, and these predictive modes are:
Vertical prediction (vertical prediction) pattern
Horizontal forecast (horizontal prediction) pattern
DC predicts (DC prediction) pattern
Dull and stereotyped prediction (plane prediction) pattern
Chrominance block for 8 * 8, infra-frame prediction have 4 kinds of predictive modes, and these predictive modes are:
DC predicts (DC prediction) pattern
Horizontal forecast (horizontal prediction) pattern
Vertical prediction (vertical prediction) pattern
Dull and stereotyped prediction (plane prediction) pattern
From above-mentioned analysis as can be seen: represent that quantity, the M16 of the predictive mode of 4 * 4 luminance block represent the quantity of the predictive mode of 16 * 16 luminance block if M8 represents quantity, the M4 of the predictive mode of chrominance block, the number of combinations of luminance block and chroma block prediction modes is M8 * (M4 * 16+M16)=592 in macro block, promptly, for the optimization model of the infra-frame prediction of determining a macro block, encoder need carry out the calculating of 592 RDO.Therefore, H.264/AVC the raising of compression ratio is the cost that increases to computation complexity, is difficult to real-time application.
Summary of the invention
The objective of the invention is defective, a kind of intra-frame prediction method is provided,, improve the speed of intraframe predictive coding, help the real-time application of encoder in order to solve the existing high problem of intra-frame prediction method computation complexity at prior art.
The present invention provides following technical scheme by embodiment:
A kind of intra-frame prediction method comprises:
Step 1: choose 4 * 4 pixel intensity pieces to be predicted as current block;
Step 2: judge whether described current block is central block, if, execution in step 3, otherwise, execution in step 4;
Step 3: calculate the energy function of the residual error of the prediction piece of described current block under all predictive modes and described current block, and determine candidate's predictive mode, execution in step 5 according to the energy function under the different predictive modes;
Wherein said step 3 specifically comprises:
Step 31: the prediction piece that calculates the described current block under the different predictive modes;
Step 32: prediction piece and described current block according to the described current block under the different predictive modes obtain the prediction piece of the described current block under the different predictive modes and the residual error of described current block;
Step 33: the residual error under the different predictive modes is carried out the energy function that discrete cosine transform obtains the residual error under the different predictive modes;
Wherein the computing formula of energy function is:
E = Σ y = 1 4 Σ x = 1 4 w ( y , x ) DCT ( y - 1 , x - 1 )
Wherein, w ( y , x ) = 0.2 ( y = 1 , x = 1 ) , ( y = 1 , x = 2 ) , ( y = 2 , x = 1 ) 0.4 ( y = 1 , x = 3 ) , ( y = 2 , x = 2 ) , ( y = 3 , x = 1 ) 0.6 ( y = 1 , x = 4 ) , ( y = 2 , x = 3 ) , ( y = 3 , x = 2 ) , ( y = 4 , x = 1 ) 0.8 ( y = 2 , x = 4 ) , ( y = 3 , x = 3 ) , ( y = 4 , x = 2 ) 1 ( y = 3 , x = 4 ) , ( y = 4 , x = 3 ) , ( y = 4 , x = 4 )
DCT = 1 1 1 1 2 1 - 1 - 2 1 - 1 - 1 1 1 - 2 2 - 1 X 1 2 1 1 1 1 - 1 - 2 1 - 1 - 1 2 1 - 2 1 - 1 ⊗ a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4 a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4
Y is the coordinate of the Width of described current block, and x is the coordinate of the short transverse of described current block, and X is the prediction piece of described current block and the residual error of described current block, DCT (y, x) be described current block coordinate for (y, DCT coefficient x), a = 1 2 , b = 2 5 ;
Step 34: with the energy function of the residual error under the different predictive modes according to energy value sequence arrangement from small to large, obtain the first less energy of energy value, second energy, the 3rd energy and the 4th energy successively, and obtain corresponding to described first energy first predictive mode, corresponding to second predictive mode of described second energy, corresponding to the 3rd predictive mode of described the 3rd energy with corresponding to the 4th predictive mode of described the 4th energy;
Step 35: determine candidate's predictive mode according to described first energy, second energy, the 3rd energy and the 4th energy and described first predictive mode, second predictive mode, the 3rd predictive mode and the 4th predictive mode;
Step 4: with available predictive mode as candidate's predictive mode, execution in step 5;
Step 5: the rate distortion costs parameter of calculated candidate predictive mode, candidate's predictive mode of choosing rate distortion costs parameter minimum is the optimal prediction modes of described current block.
The embodiment of the invention is selected candidate's predictive mode of 4 * 4 pixel intensity pieces according to energy function, rate distortion costs parameter by the calculated candidate predictive mode obtains optimal prediction modes, rather than obtain optimal prediction modes according to the rate distortion costs parameter of all predictive modes, because reducing of predictive mode quantity, can slip distortion cost CALCULATION OF PARAMETERS amount, improve arithmetic speed, be applicable to real-time coding.
Description of drawings
Fig. 1 is the H.264/AVC encoder frame figure of standard of prior art;
Fig. 2 is the H.264/AVC schematic diagram of reference pixel and current block pixel relationship to be predicted in the standard of prior art;
Fig. 3 is the H.264/AVC sensing figure of directional prediction modes in the standard of prior art;
Fig. 4 is intra-frame prediction method embodiment one flow chart of the present invention;
Fig. 5 is intra-frame prediction method embodiment two flow charts of the present invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with the drawings and specific embodiments.
Fig. 4 is intra-frame prediction method embodiment one flow chart of the present invention, and this intra-frame prediction method comprises:
Step 41: choose 4 * 4 pixel intensity pieces to be predicted as current block;
Step 42: judge whether described current block is central block, if, execution in step 43, otherwise, execution in step 44;
Step 43: calculate the energy function of the residual error of the prediction piece of described current block under all predictive modes and described current block, and determine candidate's predictive mode, execution in step 45 according to the energy function under the different predictive modes;
Step 44: with available predictive mode as candidate's predictive mode, execution in step 45;
Step 45: the rate distortion costs parameter of calculated candidate predictive mode, candidate's predictive mode of choosing rate distortion costs parameter minimum is the optimal prediction modes of described current block.
Fig. 5 is intra-frame prediction method embodiment two flow charts of the present invention, and this intra-frame prediction method comprises:
Step 501: with one 16 * 16 macroblock partitions is 16 4 * 4 luminance block, execution in step 502.H.264/AVC the macro block with 16 * 16 pixels is a unit in the standard, a macro block comprises a luminance block and two chrominance block, luminance block be 1 16 * 16 or 16 4 * 4, chrominance block is 8 * 8, the pixel value of current luminance block or chrominance block use last piece adjacent and adjacent left piece with current block the pixel value of decoding and reconstituting according to multiple predictive mode predictive coding.Because H.264/AVC the conversion in the standard is a unit with 4 * 4, and 4 * 4 occupy very big ratio in predictive coding, therefore, present embodiment improves at the predictive coding of 4 * 4 luminance block, will not change the predictive coding method of 16 * 16 luminance block and 8 * 8 chrominance block.
Step 502: 4 * 4 luminance block of choosing a coding to be predicted are as current block, execution in step 503.The predictive mode of the intra-frame prediction method of 4 * 4 luminance block comprises 8 kinds of direction predictions and a kind of DC prediction.The selection of adopting the RDO technology to carry out the predictive mode of luminance block in traditional H.264/AVC standard comprises the steps:
(1) for 4 * 4 luminance block, calculate 9 kinds of rate distortion costs parameters under the predictive mode respectively, obtain the minimum value of rate distortion costs parameter and corresponding to the predictive mode of rate distortion costs parameter minimum.The computing formula of rate distortion costs parameter (RDCost) is: RDCost=SSD+ λ * bitrate, and wherein RDCost is the rate distortion costs parameter; SSD is the quadratic sum of all elements of the difference block of current block and reconstructed blocks, i.e. reconstruct residual error square; λ is the function of quantization parameter (QP), λ=0.85 * 2 (QP-12)/3Bitrate is the code check behind the entropy coding, promptly forms the bit number of code stream after the predictive coding.
(2) obtain the minimum rate distortion costs parameter of 16 4 * 4 luminance block according to said method, and with this 16 minimum rate distortion costs parameters addition, with after the addition and as the rate distortion costs parameter of 4 * 4 luminance block.
(3) for 16 * 16 luminance block, calculate respectively all elements after the hasmard conversion of residual error of 4 kinds of current blocks under the predictive mode and prediction piece and, be residual error hasmard conversion and value (STAD), calculate the rate distortion costs parameter of the minimum predictive mode of STAD value, with the rate distortion costs parameter of this rate distortion costs parameter as 16 * 16 luminance block.
(4) the rate distortion costs parameter that obtains of (2), (3) is relatively selected the predictive mode of the predictive mode of minimum rate distortion costs parameter correspondence as luminance block in the frame.
From the formula of the rate distortion costs parameter of above-mentioned (1) as can be seen, every kind of predictive mode to current 4 * 4 luminance block all will carry out precoding, computation complexity is bigger, in order to reduce computation complexity, can simplify the calculating of RDO or the predictive mode that minimizing is used for calculating RDO, for the complexity that reduces intraframe coding keeps the efficient of intraframe coding simultaneously preferably, present embodiment adopts and reduces the method that is used for calculating the RDO predictive mode.
Step 503: judging whether current block is central block, is execution in step 504 then, otherwise, execution in step 507.Because adopt from left to right in the video coding, order from top to bottom carries out decoding and reconstituting, when if left piece adjacent with current block and adjacent last piece have all been decoded, be called left piece and last piece available, when left piece decoding and reconstituting, it is available to be called left piece, and when last piece during decoding and reconstituting, it is available to be called piece, when both did not all decode, it was all unavailable to be called both.But when left piece and last piece equal time spent, current block is central block, at this moment, corresponding to current block 9 kinds of predictive modes is arranged; When current block is not central block, predictive mode corresponding to current block is called the available predictions pattern, 9 kinds of available predictions pattern less thaies, but as has only the left piece time spent, the available predictions pattern is with horizontal forecast pattern (pattern 1), DC predictive mode (pattern 2), 22.5 degree directional prediction modes (pattern 8), but had only the last piece time spent, the available predictions pattern is vertical prediction pattern (pattern 0), DC predictive mode (pattern 2), 45 degree directional prediction modes (mode 3), 67.5 degree direction predictions (mode 7).
Step 504: calculate the energy function of residual error of current block and prediction piece under all predictive modes, execution in step 505.From above-mentioned analysis as can be known, if when current block is central block, its available predictive mode has 9 kinds, in order to reduce the operand that RDO calculates, adopts the method that reduces predictive mode.Because most of zone of nature or synthetic image is made up of low frequency, and most of high-frequency information can be used 0 run-length encoding, and high frequency can reflect the complexity of the texture of an image roughly.In actual applications, predict the information of current block according to the grain direction of current block with the information of the adjacent block of decoding, then corresponding residual error is carried out the calculating of energy function, the defined energy function of the present invention is to the mapping of the energy space of one dimension from the frequency domain space of multidimensional, the high fdrequency component of the dct transform of texture residual block has reflected the detailed information of texture residual error, detailed information for outstanding texture residual error, the present invention distributes the higher weights (influence that w (y, x)) can amplify high frequency coefficient for high frequency.By the definition of DCT energy function of the present invention, texture residual block details abundant more (high-frequency information is many more), its DCT energy is big more.The present invention has utilized this feature of energy function just, select the several modes of texture residual block complexity less (energy is less, high-frequency information is less) to carry out the calculating of RDO, thereby can reach to reduce and be used for carrying out the pattern quantity that RDO calculates, the final purpose that realizes accelerating intraframe coding speed.Wherein the computing formula of energy function is:
E DCT = Σ y = 1 ω Σ x = 1 h w ( y , x ) DCT ( y - 1 , x - 1 )
Here E DCTBe the energy calculating at the dct transform of prediction residual, ω and h are the width and the height of current block, and (y is to be positioned at (y, DCT coefficient x) x) to DCT, for 4 * 4 luminance block H.264/AVC, weights function w in the following formula (y, x) (x=1,2 ... h, y=1,2 ..., ω), be defined as follows:
w ( y , x ) = 0.2 ( y = 1 , x = 1 ) , ( y = 1 , x = 2 ) , ( y = 2 , x = 1 ) 0.4 ( y = 1 , x = 3 ) , ( y = 2 , x = 2 ) , ( y = 3 , x = 1 ) 0.6 ( y = 1 , x = 4 ) , ( y = 2 , x = 3 ) , ( y = 3 , x = 2 ) , ( y = 4 , x = 1 ) 0.8 ( y = 2 , x = 4 ) , ( y = 3 , x = 3 ) , ( y = 4 , x = 2 ) 1 ( y = 3 , x = 4 ) , ( y = 4 , x = 3 ) , ( y = 4 , x = 4 )
Wherein, ω=4, h=4
Integer dct transform in the dct transform employing standard in the following formula, formula is as follows:
DCT = 1 1 1 1 2 1 - 1 - 2 1 - 1 - 1 1 1 - 2 2 - 1 X 1 2 1 1 1 1 - 1 - 2 1 - 1 - 1 2 1 - 2 1 - 1 ⊗ a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4 a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4
Wherein, a = 1 2 , b = 2 5 , X is current block and the residual error of predicting piece.
Step 505: with the energy function value of the reconstruct residual error under the different predictive modes by from small to large sequence arrangement, choose minimum four energy value first energy (E1), second energy (E2), the 3rd energy (E3), the 4th energy (E4) and corresponding first predictive mode (m1), second predictive mode (m2), the 3rd predictive mode (m3), the 4th predictive mode (m4), execution in step 506.
Step 506:, from above-mentioned four kinds of predictive mode m1, m2, m3, m4, determine candidate's predictive mode, execution in step 508 according to following screening principle.Described screening principle comprises:
Step 5061: whether judge E2 greater than α * E1, if, execution in step 5062; Otherwise, execution in step 5063.
Step 5062: candidate's predictive mode is m1.
Step 5063: whether judge E3 greater than α * E1, if, execution in step 5064, otherwise execution in step 5065.
Step 5064: candidate's predictive mode is m1 and m2.
Step 5065: whether judge E4 greater than α * E1, if, execution in step 5066, otherwise execution in step 5067.
Step 5066: candidate's predictive mode is m1, m2 and m3.
Step 5067: whether judge E4 less than β * E1, if, execution in step 5068, otherwise, execution in step 5069.
Step 5068: candidate's predictive mode is m1 and m2.
Step 5069: candidate's predictive mode is m1, m2, m3 and m4.
Above-mentioned α, β are constants, through a large amount of tests, get α=1.4 and β=1.05 o'clock coding best results.
Step 507: with available predictive mode as candidate's predictive mode, execution in step 508.But when having only the left piece time spent adjacent with current block, the available predictions pattern is pattern 1, pattern 2, pattern 8; But when having only the last piece time spent adjacent with current block, the available predictions pattern is pattern 0, pattern 2, mode 3, mode 7; When the left piece adjacent with current block and last piece when all unavailable, candidate's predictive mode is the DC predictive mode.
Step 508: each candidate's predictive mode of current block is carried out RDO calculate, candidate's predictive mode of choosing rate distortion costs parameters R DCost minimum is the optimal prediction modes of current block, execution in step 509.But be the adjacent left piece and adjacent the going up the equal time spent of piece of current block, carry out RDO according to candidate's predictive mode that energy function is determined and calculate that candidate's predictive mode of the rate distortion costs parameter minimum that obtains is an optimal prediction modes; But the adjacent left piece of current block or adjacent going up one of the piece time spent are carried out RDO to available predictive mode and are calculated, and the available predictions pattern of the rate distortion costs parameter minimum that obtains is an optimal prediction modes; When the adjacent left piece of current block and adjacent last piece were all unavailable, the DC predictive mode was an optimal prediction modes.
Step 509: judge whether that 16 luminance block all carried out aforementioned calculation as current block, if, execution in step 510, otherwise repeated execution of steps 502 is all finished predictive coding up to 4 * 4 all luminance block.
Step 510: with the minimum rate distortion costs parameter addition of 16 4 * 4 luminance block, and with after the addition and as the rate distortion costs parameters R DCost4 of 4 * 4 luminance block, execution in step 512.
Step 511: the rate distortion costs parameter of calculating 4 kinds of predictive modes of 16 * 16 luminance block, obtain minimum rate distortion costs parameter and corresponding to the predictive mode of minimum rate distortion costs parameter, wherein Zui Xiao rate distortion costs parameter is the rate distortion costs parameters R DCost16 of 16 * 16 luminance block, predictive mode corresponding to minimum rate distortion costs parameter is the optimal prediction modes of 16 * 16 luminance block, execution in step 512.
Step 512: compare the rate distortion costs parameters R Dcost4 of 4 * 4 luminance block and the rate distortion costs parameters R Dcost16 of 16 * 16 luminance block, if RDcost4<RDcost16, execution in step 513, otherwise, execution in step 514.
Step 513: choose corresponding to the optimal prediction modes of each 4 * 4 luminance block optimal prediction modes as the luminance block of 16 * 16 macro blocks.
Step 514: choose corresponding to the optimal prediction modes of 16 * 16 luminance block of RDcost16 optimal prediction modes as the luminance block of 16 * 16 macro blocks.
Present embodiment, intra-frame prediction method to 4 * 4 luminance block in the standard H.264/AVC improves, determine candidate's predictive mode with the energy function that the dct transform of residual error obtains, candidate's predictive mode is carried out RDO to be calculated, rather than all predictive modes are carried out RDO calculate, owing to carry out the predictive mode quantity minimizing that RDO calculates, can reduce the operand of RDO effectively, help being applied to real-time coding.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (5)

1, a kind of intra-frame prediction method is characterized in that, comprising:
Step 1: choose 4 * 4 pixel intensity pieces to be predicted as current block;
Step 2: judge whether described current block is central block, if, execution in step 3, otherwise, execution in step 4;
Step 3: calculate the energy function of the residual error of the prediction piece of described current block under all predictive modes and described current block, and determine candidate's predictive mode, execution in step 5 according to the energy function under the different predictive modes;
Wherein said step 3 specifically comprises:
Step 31: the prediction piece that calculates the described current block under the different predictive modes;
Step 32: prediction piece and described current block according to the described current block under the different predictive modes obtain the prediction piece of the described current block under the different predictive modes and the residual error of described current block;
Step 33: the residual error under the different predictive modes is carried out the energy function that discrete cosine transform obtains the residual error under the different predictive modes;
Wherein the computing formula of energy function is:
E = Σ y = 1 4 Σ x = 1 4 w ( y , x ) DCT ( y - 1 , x - 1 )
Wherein, w ( y , x ) = 0.2 ( y = 1 , x = 1 ) , ( y = 1 , x = 2 ) , ( y = 2 , x = 1 ) 0.4 ( y = 1 , x = 3 ) , ( y = 2 , x = 2 ) , ( y = 3 , x = 1 ) 0.6 ( y = 1 , x = 4 ) , ( y = 2 , x = 3 ) , ( y = 3 , x = 2 ) , ( y = 4 , x = 1 ) 0.8 ( y = 2 , x = 4 ) , ( y = 3 , x = 3 ) , ( y = 4 , x = 2 ) 1 ( y = 3 , x = 4 ) , ( y = 4 , x = 3 ) , ( y = 4 , x = 4 )
DCT = ( 1 1 1 1 2 1 - 1 - 2 1 - 1 - 1 1 1 - 2 2 - 1 X 1 2 1 1 1 1 - 1 - 2 1 - 1 - 1 2 1 - 2 1 - 1 ) ⊗ a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4 a 2 ab 2 a 2 ab 2 ab 2 b 2 4 ab 2 b 2 4
Y is the coordinate of the Width of described current block, and x is the coordinate of the short transverse of described current block, and X is the prediction piece of described current block and the residual error of described current block, DCT (y, x) be described current block coordinate for (y, DCT coefficient x), a = 1 2 , b = 2 5 ;
Step 34: with the energy function of the residual error under the different predictive modes according to energy value sequence arrangement from small to large, obtain the first less energy of energy value, second energy, the 3rd energy and the 4th energy successively, and obtain corresponding to described first energy first predictive mode, corresponding to second predictive mode of described second energy, corresponding to the 3rd predictive mode of described the 3rd energy with corresponding to the 4th predictive mode of described the 4th energy;
Step 35: determine candidate's predictive mode according to described first energy, second energy, the 3rd energy and the 4th energy and described first predictive mode, second predictive mode, the 3rd predictive mode and the 4th predictive mode;
Step 4: with available predictive mode as candidate's predictive mode, execution in step 5;
Step 5: the rate distortion costs parameter of calculated candidate predictive mode, candidate's predictive mode of choosing rate distortion costs parameter minimum is the optimal prediction modes of described current block.
2, intra-frame prediction method according to claim 1, it is characterized in that, described step 2 is specially: the pixel intensity piece is pressed from left to right, the decoding of order from top to bottom, when the left pixel intensity piece adjacent with described current block and last pixel intensity piece had all been decoded, described current block was a central block.
3, intra-frame prediction method according to claim 1 is characterized in that, described step 35 specifically comprises:
Step 351: judge described second energy whether greater than 1.4 times of described first energy, if then described first predictive mode is candidate's predictive mode, otherwise, execution in step 352;
Step 352: judge described the 3rd energy whether greater than 1.4 times of described first energy, if then described first predictive mode and second predictive mode are candidate's predictive mode, otherwise, execution in step 353;
Step 353: judge described the 4th energy whether greater than 1.4 times of described first energy, if then described first predictive mode, second predictive mode and the 3rd predictive mode are candidate's predictive mode, otherwise, execution in step 354;
Step 354: judge that described the 4th energy is whether less than 1.05 times of described first energy, if, then described first predictive mode and second predictive mode are candidate's predictive mode, otherwise described first predictive mode, second predictive mode, the 3rd predictive mode and the 4th predictive mode are candidate's predictive mode.
4, intra-frame prediction method according to claim 1 is characterized in that, described step 4 specifically comprises:
When the last pixel intensity piece adjacent with described current block decoded, vertical prediction pattern, DC predictive mode, 45 degree directional prediction modes, 67.5 are spent directional prediction modes as candidate's predictive mode;
When the left pixel intensity piece adjacent with described current block decoded, horizontal forecast pattern, DC predictive mode, 22.5 are spent directional prediction modes as candidate's predictive mode;
When the last pixel intensity piece adjacent, when left pixel intensity piece is not all decoded with described current block, with the DC predictive mode as candidate's predictive mode.
5, intra-frame prediction method according to claim 1 is characterized in that, also comprises:
Step 6: with the rate distortion costs parameter sum of 16 4 * 4 pixel intensity piece optimal prediction modes rate distortion costs parameter as 4 * 4 pixel intensity pieces;
Step 7: calculate 16 * 16 pixel intensity pieces under different predictive modes residual error hasmard conversion and value;
Step 8: will have residual error hasmard conversion and the rate distortion costs parameter of predictive mode of value minimum as the rate distortion costs parameter of 16 * 16 pixel intensity pieces;
Step 9: whether the rate distortion costs parameter of judging described 4 * 4 pixel intensity pieces is less than the rate distortion costs parameter of described 16 * 16 pixel intensity pieces, if, will be corresponding to the optimal prediction modes of 4 * 4 pixel intensity pieces optimal prediction modes as the pixel intensity piece, otherwise, will be corresponding to the optimal prediction modes of 16 * 16 pixel intensity pieces optimal prediction modes as the pixel intensity piece.
CN 200810056776 2008-01-24 2008-01-24 Infra-frame prediction method Expired - Fee Related CN100586184C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810056776 CN100586184C (en) 2008-01-24 2008-01-24 Infra-frame prediction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810056776 CN100586184C (en) 2008-01-24 2008-01-24 Infra-frame prediction method

Publications (2)

Publication Number Publication Date
CN101222635A CN101222635A (en) 2008-07-16
CN100586184C true CN100586184C (en) 2010-01-27

Family

ID=39632171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810056776 Expired - Fee Related CN100586184C (en) 2008-01-24 2008-01-24 Infra-frame prediction method

Country Status (1)

Country Link
CN (1) CN100586184C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888549A (en) * 2010-06-18 2010-11-17 浙江大学 Intra-frame 4*4 forecasting model selection method based on transform domain information

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350927B (en) * 2008-07-29 2011-07-13 北京中星微电子有限公司 Method and apparatus for forecasting and selecting optimum estimation mode in a frame
WO2010043806A2 (en) * 2008-10-14 2010-04-22 France Telecom Encoding and decoding with elimination of one or more predetermined predictors
CN101873500B (en) * 2009-04-24 2012-05-23 华为技术有限公司 Interframe prediction encoding method, interframe prediction decoding method and equipment
CN101964906B (en) * 2009-07-22 2012-07-04 北京工业大学 Rapid intra-frame prediction method and device based on texture characteristics
CN102098507B (en) * 2010-06-08 2013-12-25 同济大学 Integrative compressing method and device of image
CN102281435B (en) * 2010-06-11 2013-10-02 华为技术有限公司 Encoding method, decoding method, encoding device, decoding device and encoding/decoding system
CN101895756B (en) * 2010-07-15 2012-10-31 北京大学 Method and system for coding, decoding and reconstructing video image blocks
CN102377993B (en) * 2010-08-05 2014-09-03 富士通株式会社 Intra-frame prediction mode selection method and system
CN107360427B (en) 2010-10-08 2020-09-01 Ge视频压缩有限责任公司 Encoder and encoding method, and decoder and decoding method
CN104811718A (en) * 2010-10-26 2015-07-29 数码士控股有限公司 Adaptive intra-prediction encoding and decoding method
CN107197309B (en) * 2011-10-07 2020-02-18 英迪股份有限公司 Method for decoding video signal
CN102427530B (en) * 2011-10-11 2013-10-23 北京工业大学 Intra prediction method
KR102407474B1 (en) 2011-10-18 2022-06-10 엘지전자 주식회사 Method for intra prediction and device
KR20130049526A (en) * 2011-11-04 2013-05-14 오수미 Method for generating reconstructed block
KR20130058524A (en) * 2011-11-25 2013-06-04 오수미 Method for generating chroma intra prediction block
EP3606074B1 (en) * 2013-03-29 2020-12-30 JVC KENWOOD Corporation Image decoding device, image decoding method, and image decoding program
CN104853192B (en) * 2015-05-08 2018-02-13 腾讯科技(深圳)有限公司 Predicting mode selecting method and device
CN106254866B (en) * 2016-10-17 2018-05-29 中国科学技术大学 Video intra-frame encoding method based on the flexible block order of stratification
EP3591973A4 (en) * 2017-03-22 2020-03-18 Huawei Technologies Co., Ltd. Method and apparatus for decoding video data, and method and apparatus for encoding video data
CN107592534A (en) * 2017-09-27 2018-01-16 天津工业大学 A kind of vehicle-mounted HD video play system of subway based on built-in Linux
CN108156457B (en) * 2017-12-27 2021-10-15 郑州云海信息技术有限公司 Image coding method and device for converting JPEG (Joint photographic experts group) into WebP (Web WebP)
JP7214894B2 (en) 2019-04-16 2023-01-30 エルジー エレクトロニクス インコーポレイティド Transforms in intra-prediction-based video coding

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888549A (en) * 2010-06-18 2010-11-17 浙江大学 Intra-frame 4*4 forecasting model selection method based on transform domain information
CN101888549B (en) * 2010-06-18 2012-05-02 浙江大学 Intra-frame 4*4 forecasting model selection method based on transform domain information

Also Published As

Publication number Publication date
CN101222635A (en) 2008-07-16

Similar Documents

Publication Publication Date Title
CN100586184C (en) Infra-frame prediction method
CN102484719B (en) Method and apparatus for encoding video, and method and apparatus for decoding video
CN102763411B (en) Method and apparatus to Video coding and the method and apparatus to video decode
CN100566426C (en) The method and apparatus of encoding and decoding of video
CN106067980B (en) For the device encoded to image
KR100739714B1 (en) Method and apparatus for intra prediction mode decision
CN102740077B (en) H.264/AVC standard-based intra-frame prediction mode selection method
CN102790878B (en) Coding mode choosing method and device for video coding
JP5345220B2 (en) Encoding and decoding with the exclusion of one or more predetermined predictors
CN104869409A (en) Method And Apparatus Of Deriving Intra Predicion Mode
CN1736103A (en) Fast mode decision making for interframe encoding
CN105306939A (en) Apparatus and method for coding/decoding videos
CN103929652B (en) Intra-frame prediction fast mode selecting method based on autoregressive model in video standard
KR20110000438A (en) Video encoding/decoding method and apparatus by using multiple dimensional integer transform
CN104168480A (en) Fast selecting method for intra-frame prediction encoding modes based on HEVC standard
CN102364950B (en) H.264/advanced video coding (AVC)-standard-based intra-frame prediction mode rapid selection method and device
CN102065293B (en) Image compression method based on space domain predictive coding
CN102984522B (en) A kind of luminance transformation territory infra-frame prediction decoding method and system
CN101854534B (en) Fast interframe mode selection method in H. 264
CN104954785A (en) Layered mode decision method used for scalable video coding
CN104320660A (en) Rate-distortion optimization method used for lossless video coding and coding method
CN100512445C (en) Predictive coding method among interlacing video sequence frame internal fields
Zhu et al. Adaptive intra modes reduction by clustering for H. 264/AVC

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100127

Termination date: 20180124

CF01 Termination of patent right due to non-payment of annual fee