CN102625101A - Method for rapidly selecting H.264 interframe predication mode based on random pixel method - Google Patents

Method for rapidly selecting H.264 interframe predication mode based on random pixel method Download PDF

Info

Publication number
CN102625101A
CN102625101A CN2012100709004A CN201210070900A CN102625101A CN 102625101 A CN102625101 A CN 102625101A CN 2012100709004 A CN2012100709004 A CN 2012100709004A CN 201210070900 A CN201210070900 A CN 201210070900A CN 102625101 A CN102625101 A CN 102625101A
Authority
CN
China
Prior art keywords
patterns
frame forecast
forecast mode
inter
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100709004A
Other languages
Chinese (zh)
Other versions
CN102625101B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201210070900.4A priority Critical patent/CN102625101B/en
Publication of CN102625101A publication Critical patent/CN102625101A/en
Application granted granted Critical
Publication of CN102625101B publication Critical patent/CN102625101B/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 provides a method for rapidly selecting an H.264 interframe predication mode based on a random pixel method. The method mainly comprises the steps of: 1, randomly selecting a plurality of pixel points of a current image, and solving a variance yield delta of brightness components of all the pixel points; 2, setting a large dimension threshold TH1 and a small size threshold TH2; and 3, comparing the relationships between delta and the thresholds TH1 and TH2, and determining an optimal interframe prediction mode. Under the conditions that the selected number of the pixel points is proper and the thresholds TH1 and TH2 are set properly, the method can be used for rapidly determining the optimal prediction mode for interframe prediction, so that the prediction time is saved and the coding efficiency is increased effectively.

Description

A kind of H.264 inter-frame forecast mode fast selecting method based on the random pixel method
Technical field
The invention belongs to the multimedia video coding field, be specifically related to a kind of H.264 fast selecting method of inter-frame forecast mode that is directed against.Select suitable and dimension threshold is provided with under the suitable situation in the number of pixel, the present invention can accelerate the inter prediction process, improves code rate.
Background technology
H.264 be the video encoding standard of joint video team (JVT/Joint Video Team) exploitation of MPEG (Motion Picture Experts Group) of VCEG (video coding expert group) and the ISO/IEC of ITU-T.It is equal to the tenth part of the MPEG-4 of ISO, in official approval in May, 2003.Compare with traditional video coding mode, H.264 following advantage is arranged: the code efficiency that (1) is higher; (2) high-quality video picture; (3) adaptive time-delay characteristics; (4) mistake restore funcitons.
In cataloged procedure H.264, estimation is an operand the best part in the whole coding module.Therefore no matter be to realize or in the process that software is realized, to estimation with backoff algorithm is optimized and improvement is very important at hardware.In motion estimation module, how can obtain high-precision motion vector fast and effectively is the key that realizes high efficient coding.In present block matching algorithm, full-search algorithm (FS) has the highest search precision, but its operand is big, the drawbacks limit of real-time difference the application of FS in reality.
H.264 adopt rate-distortion optimization (Rate Distortion Optimization; RDO) judge that selection divides block mode; Encoder is to all possible pattern difference of each macro block calculation rate distortion cost; Then they are compared, the minimum pattern of selection rate distortion cost is an optimum prediction mode.
In general, the large scale piecemeal is applicable to the smooth or stagnant zone of image; The small size piecemeal is suitable for image texture more complicated or the bigger zone of activity.And in the natural video frequency sequence, exist on the big quantity space static and the very little zone of activity on evenly smooth or the time domain.If can adopt some method to predict these zones, just can avoid the little minute complicated rate distortion costs of block mode to calculate, thereby reduce the scramble time greatly.The present invention is through selecting the plurality of pixels point of present image at random, and asks variance to handle to its luminance component, and the variance yields that obtains and pre-set threshold value are compared, and the result through comparison judges best inter-frame forecast mode fast.
Summary of the invention
Time, raising code efficiency for reducing inter prediction the present invention proposes a kind of H.264 inter-frame forecast mode fast selecting method based on the random pixel method.This method picked at random plurality of pixels point, and ask variance to handle to its luminance component, then variance yields and threshold value are compared, through optimum prediction mode between the quick judgment frame of comparative result.
In order to achieve the above object, the present invention adopts following technical scheme:
Step 1: select the plurality of pixels point of present image at random, and ask the variance yields δ of these pixel luminance components;
Step 2: set large scale threshold value TH 1, small size threshold value TH 2
Step 3: compare δ and threshold value TH 1, TH 2Relation, confirm best inter-frame forecast mode.
Wherein, in the said step 1: select the plurality of pixels point of present image at random, and ask the variance yields δ of these pixel luminance components, in the present invention, the selection of pixel is at random, and asks variance to handle to the luminance component of pixel.
Wherein, in the said step 2: set large scale threshold value TH 1, small size threshold value TH 2, in the present invention, large scale is set at 16 * 16 patterns; Small size is set at 8 * 8 patterns; The setting of threshold value along with prediction constantly carry out change, after the prediction of some frames finishes, the suitable correction threshold TH of the pairing variance yields δ of best inter-frame forecast mode that selects according to the front 1, TH 2
Wherein, in the said step 3: compare δ and threshold value TH 1, TH 2Relation, confirm best inter-frame forecast mode, in the present invention, if δ is smaller or equal to TH 1, then selecting 16 * 16 patterns for use is best inter-frame forecast mode; If δ is more than or equal to TH 2Then calculate and compare the rate distortion costs of 16 * 16 patterns and 8 * 8 patterns; If the rate distortion costs of 16 * 16 patterns is little; 16 * 16 patterns of selection are best inter-frame forecast mode, otherwise calculate the rate distortion costs of 8 * 8,8 * 4,4 * 8,4 * 4 patterns, and the minimum pattern of its rate distortion costs is best inter-frame forecast mode; If δ is greater than TH 1Less than TH 2, then calculate the rate distortion costs of 16 * 16,16 * 8,8 * 16 patterns, the minimum pattern of its rate distortion costs is best inter-frame forecast mode.Here work as δ greater than TH 1The time, which kind of situation we all will calculate the rate distortion costs of 16 * 16 patterns, confirm optimum prediction mode with the rate distortion costs of other patterns again after relatively
Principle of the present invention: through calculating the variance yields select the pixel luminance component at random, and with itself and threshold value TH 1, TH 2Do comparison,, judge best inter-frame forecast mode fast according to result relatively.The advantage of this method is under the situation of not understanding the integral image textural characteristics, can judge best inter-frame forecast mode fast according to the variance yields of selecting the pixel luminance component at random, saves predicted time, improves code efficiency effectively.
Description of drawings
Fig. 1 is the basic structure flow chart of the inventive method;
Fig. 2 is the concrete realization flow figure of the inventive method.
Embodiment
The present invention is the new method that a kind of H.264 inter-frame forecast mode is selected.
Referring to accompanying drawing 1, main contents of the present invention are: select the plurality of pixels point of present image at random, and ask variance to handle to its luminance component, then with threshold value TH 1, TH 2Relatively, according to result relatively, judge best inter-frame forecast mode fast.This system of selection is selected suitable and threshold value is provided with under the suitable situation in the pixel number, can shorten the time of inter prediction, improves code efficiency.
For clearer elaboration the object of the invention, technical scheme and advantage,, be that the video sequence of CIF (352 * 288) is that example (supposing that its predictive mode is an inter-frame forecast mode) is done further detailed explanation with 300 frame formats below in conjunction with accompanying drawing.
Embodiment is seen Fig. 1 flow chart, and key step is following:
1, selects 200 pixels of current certain two field picture at random, at first extract these 200 pixel luma component values and ask its average, see formula (1), ask the variance yields of luminance component again, see formula (2).
AVG = 1 200 Σ i = 0 200 P i - - - ( 1 )
δ = 1 200 Σ i = 0 200 ( P i - AVB ) 2 - - - ( 2 )
AVG is the mean value of 200 pixel luminance components in above-mentioned two formulas, and δ is the variance yields of pixel luminance component, P iBe the brightness value of i pixel, 200 numbers for selected pixels point can know that according to practical experience 200 pixels are enough to obtain enough forecasting accuracy.
2, the variance threshold values that large scale pattern 16 * 16 patterns is set is TH 1, the variance threshold values of small size pattern 8 * 8 patterns is TH 2, the TH here 1, TH 2Be to obtain at first, along with inter prediction constantly carries out, after every completion 100 frames prediction, to threshold value TH through practical experience 1, TH 2Revise, see formula (3), (4).
TH 1 = 1 n Σ i = 1 n δ i - - - ( 3 )
TH 2 = 1 h Σ j = 1 h δ j - - - ( 4 )
N in the formula (3) is a number of selecting 16 * 16 patterns in the 100 frame inter predictions, δ iPairing variance yields when selecting i 16 * 16 patterns for use, the h in the formula (4) is a number of selecting 8 * 8 patterns in the 100 frame inter predictions, δ jPairing variance yields when selecting j 8 * 8 patterns for use, and n+h<=100 are arranged.
3, with variance yields δ that obtains and threshold value TH 1, TH 2Relatively, select optimum prediction mode fast through comparative result.
(1) if δ smaller or equal to TH 1, then selecting 16 * 16 patterns is best inter-frame forecast mode, other patterns are set to invalid mode.
(2) if δ more than or equal to TH 2, then calculate the rate distortion costs of 16 * 16,8 * 8 patterns, be designated as RDC respectively 1(Rate Distortion Cost), RDC 2, if RDC 1Smaller or equal to RDC 2, then selecting 16 * 16 patterns is best inter-frame forecast mode, other patterns are set to invalid mode; If RDC 1Greater than RDC 2, then calculate the rate distortion costs of 8 * 8,4 * 8,8 * 4,4 * 4 patterns, selecting the minimum pattern of cost is best inter-frame forecast mode, other patterns are set to invalid mode.
(3) if δ greater than TH 1Less than TH 2, then calculate the rate distortion costs of 16 * 16,16 * 8,8 * 16 patterns, choosing the minimum pattern of rate distortion costs is best inter-frame forecast mode, other patterns are set to invalid mode.
The english abbreviation that occurs in the Figure of description, its implication is following:
RDC: rate distortion costs.

Claims (4)

1. the present invention proposes a kind of H.264 inter-frame forecast mode fast selecting method based on the random pixel method, the concrete steps of this method are following:
Step 1: select the plurality of pixels point of present image at random, and ask the variance yields δ of these pixel luminance components;
Step 2: set large scale threshold value TH 1, small size threshold value TH 2
Step 3: compare δ and threshold value TH 1, TH 2Relation, confirm best inter-frame forecast mode.
2. a kind of H.264 inter-frame forecast mode fast selecting method according to claim 1 based on the random pixel method; It is characterized in that: in the said step 1: the plurality of pixels point of selecting present image at random; And ask the variance yields δ of these pixel luminance components; In the present invention, the selection of pixel is at random, and asks variance to handle to the luminance component of pixel.
3. a kind of H.264 inter-frame forecast mode fast selecting method based on the random pixel method according to claim 1 is characterized in that: in the said step 2: set large scale threshold value TH 1, small size threshold value TH 2, in the present invention, large scale is set at 16 * 16 patterns, and small size is set at 8 * 8 patterns, and threshold value is variable, after the prediction of some frames finishes, according to the suitable correction threshold TH of the pairing variance yields δ of best inter-frame forecast mode of front selection 1, TH 2
4. a kind of H.264 inter-frame forecast mode fast selecting method based on the random pixel method according to claim 1 is characterized in that: in the said step 3: compare δ and threshold value TH 1, TH 2Relation, confirm best inter-frame forecast mode, in the present invention, if δ is smaller or equal to TH 1, then selecting 16 * 16 patterns for use is best inter-frame forecast mode; If δ is more than or equal to TH 2Then calculate and compare the rate distortion costs of 16 * 16 patterns and 8 * 8 patterns; If the rate distortion costs of 16 * 16 patterns is little; Then selecting 16 * 16 patterns for use is best inter-frame forecast mode, otherwise calculates the rate distortion costs of 8 * 8,8 * 4,4 * 8,4 * 4 patterns, and the minimum pattern of selection rate distortion cost is best inter-frame forecast mode; If δ is greater than TH 1Less than TH 2, then calculate the rate distortion costs of 16 * 16,16 * 8,8 * 16 patterns, the minimum pattern of selection rate distortion cost is best inter-frame forecast mode.
CN201210070900.4A 2012-03-16 2012-03-16 Method for rapidly selecting H.264 interframe predication mode based on random pixel method Expired - Fee Related CN102625101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210070900.4A CN102625101B (en) 2012-03-16 2012-03-16 Method for rapidly selecting H.264 interframe predication mode based on random pixel method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210070900.4A CN102625101B (en) 2012-03-16 2012-03-16 Method for rapidly selecting H.264 interframe predication mode based on random pixel method

Publications (2)

Publication Number Publication Date
CN102625101A true CN102625101A (en) 2012-08-01
CN102625101B CN102625101B (en) 2014-02-12

Family

ID=46564762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210070900.4A Expired - Fee Related CN102625101B (en) 2012-03-16 2012-03-16 Method for rapidly selecting H.264 interframe predication mode based on random pixel method

Country Status (1)

Country Link
CN (1) CN102625101B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811730A (en) * 2015-04-29 2015-07-29 武汉光发科技有限公司 Video image intra-frame encoding unit texture analysis and encoding unit selection method
CN109168004A (en) * 2018-09-27 2019-01-08 北京奇艺世纪科技有限公司 A kind of interpolation method and device of motion compensation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217663A (en) * 2008-01-09 2008-07-09 上海华平信息技术股份有限公司 A quick selecting method of the encode mode of image pixel block for the encoder
WO2011031692A2 (en) * 2009-09-10 2011-03-17 Dolby Laboratories Licensing Corporation Speedup techniques for rate distortion optimized quantization
CN102075751A (en) * 2011-01-12 2011-05-25 浙江大学 Macro block motion state-based H264 quick mode selection method
CN102186070A (en) * 2011-04-20 2011-09-14 北京工业大学 Method for realizing rapid video coding by adopting hierarchical structure anticipation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217663A (en) * 2008-01-09 2008-07-09 上海华平信息技术股份有限公司 A quick selecting method of the encode mode of image pixel block for the encoder
WO2011031692A2 (en) * 2009-09-10 2011-03-17 Dolby Laboratories Licensing Corporation Speedup techniques for rate distortion optimized quantization
CN102075751A (en) * 2011-01-12 2011-05-25 浙江大学 Macro block motion state-based H264 quick mode selection method
CN102186070A (en) * 2011-04-20 2011-09-14 北京工业大学 Method for realizing rapid video coding by adopting hierarchical structure anticipation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毛峡等: "一种基于模糊决策的矩形目标提取算法", 《北京航空航天大学学报》, vol. 34, no. 6, 30 June 2008 (2008-06-30), pages 699 - 702 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811730A (en) * 2015-04-29 2015-07-29 武汉光发科技有限公司 Video image intra-frame encoding unit texture analysis and encoding unit selection method
CN104811730B (en) * 2015-04-29 2017-09-26 武汉光发科技有限公司 A kind of texture analysis of video image intraframe coding unit and coding unit system of selection
CN109168004A (en) * 2018-09-27 2019-01-08 北京奇艺世纪科技有限公司 A kind of interpolation method and device of motion compensation

Also Published As

Publication number Publication date
CN102625101B (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN102984521B (en) High-efficiency video coding inter-frame mode judging method based on temporal relativity
CN103188496B (en) Based on the method for coding quick movement estimation video of motion vector distribution prediction
CN101431675B (en) Pixel motion estimating method and apparatus
CN102740077B (en) H.264/AVC standard-based intra-frame prediction mode selection method
CN103248895B (en) A kind of quick mode method of estimation for HEVC intraframe coding
CN102932642B (en) Interframe coding quick mode selection method
CN104349167B (en) A kind of method of adjustment of Video coding rate-distortion optimization
CN100574447C (en) Fast intraframe predicting mode selecting method based on the AVS video coding
CN103327327B (en) For the inter prediction encoding unit selection method of high-performance video coding HEVC
CN103327325A (en) Intra-frame prediction mode rapid self-adaptation selection method based on HEVC standard
CN101820546A (en) Intra-frame prediction method
CN104702959B (en) A kind of intra-frame prediction method and system of Video coding
CN105187826A (en) Rapid intra-frame mode decision method specific to high efficiency video coding standard
CN1604653A (en) Differential video coding method
CN103957410A (en) I-frame code rate control method based on residual frequency domain complexity
CN102075751B (en) Macro block motion state-based H264 quick mode selection method
CN101917618B (en) Calculation complexity control method for multi-viewpoint video coding and layering B frame predicting structure
CN103384327A (en) AVS fast mode selection algorithm based on adaptive threshold
CN104333755B (en) The CU based on SKIP/Merge RD Cost of B frames shifts to an earlier date terminating method in HEVC
CN102640494A (en) Video coding device and video decoding device
CN101883275B (en) Video coding method
CN102625101B (en) Method for rapidly selecting H.264 interframe predication mode based on random pixel method
US20130128954A1 (en) Encoding method and apparatus
CN101931739A (en) Absolute error sum estimation system and method
CN101783956B (en) Backward-prediction method based on spatio-temporal neighbor information

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

Termination date: 20150316

EXPY Termination of patent right or utility model