CN103517077A - Method and device for rapidly selecting prediction mode - Google Patents

Method and device for rapidly selecting prediction mode Download PDF

Info

Publication number
CN103517077A
CN103517077A CN201210544210.8A CN201210544210A CN103517077A CN 103517077 A CN103517077 A CN 103517077A CN 201210544210 A CN201210544210 A CN 201210544210A CN 103517077 A CN103517077 A CN 103517077A
Authority
CN
China
Prior art keywords
frame
num
module
enter
judging treatmenting
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
CN201210544210.8A
Other languages
Chinese (zh)
Other versions
CN103517077B (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.)
Shenzhen Montnets Technology Co., Ltd.
Original Assignee
BAC INFORMATION TECHNOLOGY 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 BAC INFORMATION TECHNOLOGY Co Ltd filed Critical BAC INFORMATION TECHNOLOGY Co Ltd
Priority to CN201210544210.8A priority Critical patent/CN103517077B/en
Publication of CN103517077A publication Critical patent/CN103517077A/en
Application granted granted Critical
Publication of CN103517077B publication Critical patent/CN103517077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and device for rapidly selecting a prediction mode. According to the method, interference to prediction mode selection by a coding structure presupposition mechanism can be rapidly judged by analyzing statistical properties of the macro-block prediction mode in a region; the stability requirement of rate-distortion performance can be achieved while calculated amount is reduced by deleting impossible prediction modes or impossible reference frames before an optimal prediction mode is determined.

Description

A kind of fast prediction mode selecting method and device
Technical field
The present invention relates to coding and decoding video field, relate in particular to a kind of fast prediction mode selecting method and device.
Background technology
The traversing operation of conventional coding techniques on predictive mode, although can seek optimum prediction mode, the amount of calculation of thereupon bringing is also huge.Especially under the default mechanism of coding structure, complete when inconsistent when the classification optimum prediction mode actual with it of default picture frame, can cause the maximum of amount of calculation to waste, and now to the lifting of distortion performance without a bit help.
For this problem, a kind of fast prediction model selection of the present invention strategy.
Summary of the invention
The object of the embodiment of the present invention is to propose a kind of fast prediction mode selecting method, be intended to solve the traversing operation of the conventional coding techniques of prior art on predictive mode, can cause the maximum waste of amount of calculation, and to the lifting of distortion performance without the problem at all helping.The embodiment of the present invention is achieved in that a kind of fast prediction mode selecting method, said method comprising the steps of:
Step B, judges whether t≤num frame, if so, enter step C;
Step C, judgement current encoded frame frame twhether be I frame, enter if not step D;
Step D, initialize n=1, num i=0;
Step e, judges whether n≤num mb* Thres 1, if so, enter step F, if not, enter step G;
Step F, to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return to step e;
Step G, judges whether num i> (n-1) * Thres 2, if so, enter step H;
Step H: first utilize fast prediction model selection strategy, delete impossible predictive mode, then current macro is encoded, last, enter step J;
Step J: determine whether n>=num mb, if so, first make t=t+1, then enter step L, if not, first, make n=n+1, then reenter step H;
Step L: determine whether t≤num frame, if not, finish;
Wherein, t presentation code frame number; Frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence; N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nrepresent current macro; num irepresent first mode statistical variable; num mbrepresent the macro block sum in a two field picture; Thres 1it is the first decision threshold; Thres 2it is the second decision threshold.
Further, further comprising the steps of before step B:
Steps A, initialize t=1.
Further, in step C, judgement current encoded frame frame twhether be I frame, if to current encoded frame frame tencode, then make t=t+1, more then return to step B.
Further, in step G, judge whether num i> (n-1) * Thres 2, if not, enter step I;
Step I: first current macro is encoded, then enter step K;
Step K: determine whether n>=num mb, if so, first make t=t+1, then reenter step B; If not, first, make n=n+1, then reenter step I.
Further, in step L, determine whether t≤num frame, if so, enter step M;
Step M: determine whether frame tfor I frame, if not, enter step N;
Step N: initialize n=1, num pb=0;
Step 0: determine whether n≤num mb* Thres 1, if so, enter step P; If not, enter step Q;
Step P: first to Mb t, nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter step 0;
Step Q: judge whether num pb> (n-1) * Thres 2, if so, enter step R;
Step R: first utilize fast prediction model selection strategy, delete impossible reference frame; Then enter step S;
Step S: first current macro is encoded, then enter step T;
Step T: determine whether n>=num mb, if so, first make t=t+1, then reenter step B; If not, first, make n=n+1, then reenter step S.
Further, in step M, determine whether frame tfor I frame, if so, first to frame tencode, then make t=t+1, finally reenter step B.
Further, in step Q, judge whether num pb> (n-1) * Thres 2, if not, enter step S.Another object of the embodiment of the present invention is to propose a kind of fast prediction mode selector, and described device comprises:
The first judging treatmenting module: for judging whether t≤num frame, if so, enter the second judging treatmenting module; If not, finish;
The second judging treatmenting module: for judging current encoded frame frame twhether is I frame, be to current encoded frame frame tencode, then make t=t+1, return to the first judging treatmenting module; Otherwise enter the second assignment module;
The second assignment module: be connected with the 3rd judging treatmenting module, for initialize n=1, num i=0;
The 3rd judging treatmenting module: for judging whether n≤num mb* Thres 1, if so, enter the first processing module; If not, enter the 4th judging treatmenting module;
The first processing module, for to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return and carry out the 3rd judging treatmenting module;
The 4th judging treatmenting module, for judging whether num i> (n-1) * Thres 2, if so, enter the second processing module; If not, enter the first coding module;
The second processing module, for first utilizing fast prediction model selection strategy, deletes impossible predictive mode; Then current macro is encoded; Finally, enter the 6th judging treatmenting module;
The first coding module, for first current macro being encoded, then enters the 5th judging treatmenting module;
The 5th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the first coding module;
The 6th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then enter the 7th judging treatmenting module; If not, first, make n=n+1, then reenter the second processing module;
The 7th judging treatmenting module, for determining whether t≤num frame, if not, finish;
Wherein, frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence; N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nrepresent current macro; T presentation code frame number; num mbrepresent the macro block sum in a two field picture; num irepresent first mode statistical variable; Thres 1be the first decision threshold, Thres 2it is the second decision threshold.
Further, described device also comprises:
First composes module: be connected with the first judging treatmenting module, for initialize t=1.
Further, described device also comprises:
Described the 7th judging treatmenting module, also for determining whether t≤num frame, if so, enter the 8th judging treatmenting module;
The 8th judging treatmenting module, is connected with the 7th judging treatmenting module, for determining whether frame tfor I frame, if so, first to frame tencode, then make t=t+1, finally reenter the first judging treatmenting module; If not, enter the 3rd assignment module;
The 3rd assignment module, is connected with the 9th judging treatmenting module, for initialize n=1, num pb=0;
Num pbrepresent the second pattern statistical variable;
The 9th judging treatmenting module, for determining whether n≤num mb* Thres 1, if so, enter the 3rd processing module; If not, enter the tenth judging treatmenting module;
The 3rd processing module, for first to Mb t, nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter the 9th judging treatmenting module;
The tenth judging treatmenting module, for judging whether num pb> (n-1) * Thres 2, if so, enter the 4th processing module; If not, enter the second coding module;
The 4th processing module, for first utilizing fast prediction model selection strategy, deletes impossible reference frame; Then enter the second coding module;
The second coding module, for first current macro being encoded, then enters the 11 judging treatmenting module;
The 11 judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the second coding module.
Beneficial effect of the present invention
The embodiment of the present invention, by the statistical property of the macroblock prediction pattern in analyzed area, can be judged the interference of in the default mechanism of coding structure, predictive mode being selected fast; By before optimum prediction mode is determined, delete impossible predictive mode or impossible reference frame, when reducing amount of calculation, reach the stability requirement of distortion performance.The stability requirement of performance.
Accompanying drawing explanation
Fig. 1 is a kind of fast prediction mode selecting method of preferred embodiment of the present invention flow chart;
Fig. 2 is a kind of fast prediction mode selector of preferred embodiment of the present invention structural representation.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
The embodiment of the present invention, by the statistical property of the macroblock prediction pattern in analyzed area, can be judged the interference of in the default mechanism of coding structure, predictive mode being selected fast; By before optimum prediction mode is determined, delete impossible predictive mode or impossible reference frame, when reducing amount of calculation, reach the stability requirement of distortion performance.
Embodiment mono-
Fig. 1 is a kind of fast prediction mode selecting method of preferred embodiment of the present invention flow chart, said method comprising the steps of:
S101, initialize t=1.
T presentation code frame number;
S102, judges whether t≤num frame, if so, enter step S103; If not, finish.
Wherein, frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence.
S103, judgement current encoded frame frame twhether is I frame, be to current encoded frame frame tencode, then make t=t+1, more then return to step S102; Otherwise enter step S104.
S104, initialize n=1, num i=0.
N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nn the macro block that represents current encoded frame, also referred to as current macro; num irepresent first mode statistical variable;
S105, judges whether n≤num mb* Thres 1, if so, enter step S106; If not, enter step S107.
Wherein, num mbrepresent the macro block sum in a two field picture; Thres 1be the first decision threshold, Thres > 0.05*height/width; Width, height respectively presentation video be take columns, the line number that pixel is unit;
S106, to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return to step S105;
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Figure BSA00000823895800061
Wherein, num irepresent first mode statistical variable.
S107, judges whether num i> (n-1) * Thres 2, if so, enter S108; If not, enter S109.
Wherein, Thres 2be the second decision threshold, 0.7≤Thres 2≤ 1.
S108: first utilize fast prediction model selection strategy, deleting impossible predictive mode is inter-frame forecast mode; Then current macro is encoded; Finally, enter S110.Only current macro is carried out to infra-frame prediction, choose the optimum prediction mode that optimum frame inner estimation mode is current macro, then carrying out conventional macroblock coding subsequent processing steps is change quantization, entropy coding etc., finally enters S110 again.
S109: first current macro is encoded, then enter S111.
S110: determine whether n>=num mb, if so, first make t=t+1, then enter S112; If not, first, make n=n+1, then reenter S108.
S111: determine whether n>=num mb, if so, first make t=t+1, then reenter S102; If not, first, make n=n+1, then reenter S109.
S112: determine whether t≤num frame, if so, enter S113; If not, finish.
S113: determine whether frame tfor I frame, if so, first to frame tencode, then make t=t+1, finally reenter S102; If not, enter S114.
S114: initialize n=1, num pb=0.
S115: determine whether n≤num mb* Thres 1, if so, enter S116; If not, enter S117.
S116: first to Mb t, nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter S115.
Figure BSA00000823895800062
In full, num pbrepresent the second pattern statistical variable.
S117: judge whether num pb> (n-1) * Thres 2, if so, enter S118; If not, enter S119.
S118: first utilize fast prediction model selection strategy, delete impossible reference frame; Then enter S119.First delete in reference listing and play the reference frame that sequence number is less than T, then enter S119.
Wherein T presentation code sequence number equals the broadcasting sequence number of the reference frame of t-1.
S119: first current macro is encoded, then enter S120.
S120: determine whether n>=num mb, if so, first make t=t+1, then reenter S102; If not, first, make n=n+1, then reenter S119.
The embodiment of the present invention, by the statistical property of the macroblock prediction pattern in analyzed area, can be judged the interference of in the default mechanism of coding structure, predictive mode being selected fast; By before optimum prediction mode is determined, delete impossible predictive mode or impossible reference frame, when reducing amount of calculation, reach the stability of distortion performance.
Embodiment bis-
Fig. 2 is a kind of fast prediction mode selector of preferred embodiment of the present invention structural representation.Described system comprises:
First composes module: be connected with the first judging treatmenting module, for initialize t=1;
T presentation code frame number;
The first judging treatmenting module: for judging whether t≤num frame, if so, enter the second judging treatmenting module; If not, finish;
Wherein, frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence;
The second judging treatmenting module: for judging current encoded frame frame twhether is I frame, be to current encoded frame frame tencode, then make t=t+1, return to the first judging treatmenting module; Otherwise enter the second assignment module.
The second assignment module: be connected with the 3rd judging treatmenting module, for initialize n=1, num i=0.
N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nn the macro block that represents current encoded frame, also referred to as current macro; num irepresent first mode statistical variable;
The 3rd judging treatmenting module: for judging whether n≤num mb* Thres l, if so, enter the first processing module; If not, enter the 4th judging treatmenting module.
Wherein, num mbrepresent the macro block sum in a two field picture; Thres 1be the first decision threshold, Thres 1> 0.05*height/width; Width, height respectively presentation video be take columns, the line number that pixel is unit;
The first processing module, for to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return and carry out the 3rd judging treatmenting module;
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Figure BSA00000823895800081
Wherein, num irepresent first mode statistical variable;
The 4th judging treatmenting module, for judging whether num i> (n-1) * Thres 2, if so, enter the second processing module; If not, enter the first coding module;
Wherein, Thres 2be the second decision threshold, 0.7≤Thres 2≤ 1;
The second processing module, for first utilizing fast prediction model selection strategy, deleting impossible predictive mode is inter-frame forecast mode; Then current macro is encoded; Finally, enter the 6th judging treatmenting module.
Be specially: current macro is carried out to infra-frame prediction, choose the optimum prediction mode that optimum frame inner estimation mode is current macro, then carrying out conventional macroblock coding subsequent processing steps is change quantization, entropy coding etc., finally enters the 6th judging treatmenting module again.
The first coding module, for first current macro being encoded, then enters the 5th judging treatmenting module.
The 5th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the first coding module.
The 6th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then enter the 7th judging treatmenting module; If not, first, make n=n+1, then reenter the second processing module.
The 7th judging treatmenting module, for determining whether t≤num frame, if so, enter the 8th judging treatmenting module; If not, finish.
The 8th judging treatmenting module, for determining whether frame tfor I frame, if so, first to frame tp-adic valuation P module.
The 3rd assignment module, is connected with the 9th judging treatmenting module, for initialize n=1, num pb=0.
Num pbrepresent the second pattern statistical variable;
The 9th judging treatmenting module, for determining whether n≤num mb* Thres 1, if so, enter the 3rd processing module; If not, enter the tenth judging treatmenting module.
The 3rd processing module, for first to Mb t, nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter the 9th judging treatmenting module.
Figure BSA00000823895800091
In full, num pbrepresent the second pattern statistical variable;
The tenth judging treatmenting module, for judging whether num pb> (n-1) * Thres 2, if so, enter the 4th processing module; If not, enter the second coding module.
The 4th processing module, for first utilizing fast prediction model selection strategy, deletes impossible reference frame; Then enter the second coding module.
Be specially: first delete in reference listing and play the reference frame that sequence number is less than T, then enter the second coding module; Wherein T presentation code sequence number equals the broadcasting sequence number of the reference frame of t-1.
The second coding module, for first current macro being encoded, then enters the 11 judging treatmenting module.
The 11 judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the second coding module.
The embodiment of the present invention, by the statistical property of the macroblock prediction pattern in analyzed area, can be judged the interference of in the default mechanism of coding structure, predictive mode being selected fast; By before optimum prediction mode is determined, delete impossible predictive mode or impossible reference frame, when reducing amount of calculation, reach the stability of distortion performance.
Those having ordinary skill in the art will appreciate that, the all or part of step realizing in above-described embodiment method can complete by program command related hardware, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention; not in order to limit the present invention; allly originally the foregoing is only preferred embodiment of the present invention; not in order to limit the present invention; all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (22)

1. a fast prediction mode selecting method, is characterized in that, said method comprising the steps of:
Step B, judges whether t≤num frame, if so, enter step C;
Step C, judgement current encoded frame frame twhether be I frame, enter if not step D;
Step D, initialize n=1, num i=0;
Step e, judges whether n≤num mb* Thres 1, if so, enter step F, if not, enter step G;
Step F, to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return to step e;
Step G, judges whether num i> (n-1) * Thres 2, if so, enter step H;
Step H: first utilize fast prediction model selection strategy, delete impossible predictive mode, then current macro is encoded, last, enter step J;
Step J: determine whether n>=num mb, if so, first make t=t+1, then enter step L, if not, first, make n=n+1, then reenter step H;
Step L: determine whether t≤num frame, if not, finish;
Wherein, t presentation code frame number; Frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence; N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nrepresent current macro; num irepresent first mode statistical variable; num mbrepresent the macro block sum in a two field picture; Thres 1it is the first decision threshold; Thres 2it is the second decision threshold.
2. a kind of fast prediction mode selecting method as claimed in claim 1, is characterized in that, further comprising the steps of before step B:
Steps A, initialize t=1.
3. a kind of fast prediction mode selecting method as claimed in claim 1, is characterized in that, in step C, and judgement current encoded frame frame twhether be I frame, if to current encoded frame frame tencode, then make t=t+1, more then return to step B.
4. a kind of fast prediction mode selecting method as claimed in claim 1, is characterized in that, in step G, judges whether num i> (n-1) * Thres 2, if not, enter step I;
Step I: first current macro is encoded, then enter step K;
Step K: determine whether n>=num mb, if so, first make t=t+1, then reenter step B; If not, first, make n=n+1, then reenter step I.
5. a kind of fast prediction mode selecting method as described in as arbitrary in claim 1-4 one, is characterized in that,
Described Thres 1> 0.05*height/width;
Width, height respectively presentation video be take columns, the line number that pixel is unit.
6. a kind of fast prediction mode selecting method as claimed in claim 5, is characterized in that,
0.7≤Thres 2≤1。
7. a kind of fast prediction mode selecting method as claimed in claim 6, is characterized in that,
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Figure FSA00000823895700021
Wherein, num irepresent first mode statistical variable.
8. a kind of fast prediction mode selecting method as claimed in claim 7, is characterized in that,
Described " first utilize fast prediction model selection strategy, delete impossible predictive mode " is specially:
Only current macro is carried out to infra-frame prediction, choose the optimum prediction mode that optimum frame inner estimation mode is current macro.
9. a kind of fast prediction mode selecting method as claimed in claim 8, is characterized in that, in step L, determines whether t≤num frame, if so, enter step M;
Step M: determine whether frame tfor I frame, if not, enter step N;
Step N: initialize n=1, num pb=0;
Step O: determine whether n≤num mb* Thres 1, if so, enter step P; If not, enter step Q;
Step P: first to Mb t, nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter step O;
Step Q: judge whether num pb> (n-1) * Thres 2, if so, enter step R;
Step R: first utilize fast prediction model selection strategy, delete impossible reference frame; Then enter step S;
Step S: first current macro is encoded, then enter step T;
Step T: determine whether n>=num mb, if so, first make t=t+1, then reenter step B; If not, first, make n=n+1, then reenter step S.
10. a kind of fast prediction mode selecting method as claimed in claim 9, is characterized in that, in step M, determines whether frame tfor I frame, if so, first to frame tencode, then make t=t+1, finally reenter step B.
11. a kind of fast prediction mode selecting methods as claimed in claim 10, is characterized in that, in step Q, judge whether num pb> (n-1) * Thre s2, if not, enter step S.
12. a kind of fast prediction mode selecting methods as described in as arbitrary in claim 9-11 one, is characterized in that, the second pattern statistical variable computational methods are:
Figure FSA00000823895700031
Num pbrepresent the second pattern statistical variable.
13. a kind of fast prediction mode selecting methods as claimed in claim 12, is characterized in that,
Described " first utilize fast prediction model selection strategy, delete impossible reference frame " is specially:
First delete in reference listing and play the reference frame that sequence number is less than T, wherein T presentation code sequence number equals the broadcasting sequence number of the reference frame of t-1.
14. 1 kinds of fast prediction mode selectors, is characterized in that, described device comprises:
The first judging treatmenting module: for judging whether t≤num frame, if so, enter the second judging treatmenting module; If not, finish;
The second judging treatmenting module: for judging current encoded frame frame twhether is I frame, be to current encoded frame frame tencode, then make t=t+1, return to the first judging treatmenting module; Otherwise enter the second assignment module;
The second assignment module: be connected with the 3rd judging treatmenting module, for initialize n=1, num i=0;
The 3rd judging treatmenting module: for judging whether n≤num mb* Thres 1, if so, enter the first processing module; If not, enter the 4th judging treatmenting module;
The first processing module, for to current coding macro block Mb t, nencode, and according to the predictive mode of current coding macro block, calculate first mode statistical variable, then make n=n+1, more then return and carry out the 3rd judging treatmenting module;
The 4th judging treatmenting module, for judging whether num i> (n-1) * Thres 2, if so, enter the second processing module; If not, enter the first coding module;
The second processing module, for first utilizing fast prediction model selection strategy, deletes impossible predictive mode; Then current macro is encoded; Finally, enter the 6th judging treatmenting module;
The first coding module, for first current macro being encoded, then enters the 5th judging treatmenting module;
The 5th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the first coding module;
The 6th judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then enter the 7th judging treatmenting module; If not, first, make n=n+1, then reenter the second processing module;
The 7th judging treatmenting module, for determining whether t≤num frame, if not, finish;
Wherein, frame trepresent current encoded frame; num framethe number of image frames of presentation code sequence; N represents Mb t, ncoding sequence number in current encoded frame; Mb t, nrepresent current macro; T presentation code frame number; num mbrepresent the macro block sum in a two field picture; num irepresent first mode statistical variable; Thres 1be the first decision threshold, Thres 2it is the second decision threshold.
15. a kind of fast prediction mode selectors as claimed in claim 14, is characterized in that, described device also comprises:
First composes module: be connected with the first judging treatmenting module, for initialize t=1.
16. a kind of fast prediction mode selectors as described in one of claim 14-15, is characterized in that,
Thres 1>0.05*height/width;
Width, height respectively presentation video be take columns, the line number that pixel is unit.
17. a kind of fast prediction mode selectors as claimed in claim 16, is characterized in that,
0.7≤Thres 2≤1。
18. a kind of fast prediction mode selectors as claimed in claim 17, is characterized in that,
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Figure FSA00000823895700041
19. a kind of fast prediction mode selectors as described in one of claim 17-18, is characterized in that, in the second processing module, described " first utilize fast prediction model selection strategy, delete impossible predictive mode " is specially:
Current macro is carried out to infra-frame prediction, choose the optimum prediction mode that optimum frame inner estimation mode is current macro.
20. a kind of fast prediction mode selectors as claimed in claim 19, is characterized in that, described device also comprises:
Described the 7th judging treatmenting module, also for determining whether t≤num frame, if so, enter the 8th judging treatmenting module;
The 8th judging treatmenting module, is connected with the 7th judging treatmenting module, for determining whether frame tfor I frame, if so, first to frame tencode, then make t=t+1, finally reenter the first judging treatmenting module; If not, enter the 3rd assignment module;
The 3rd assignment module, is connected with the 9th judging treatmenting module, for initialize n=1, num pb=0;
Num pbrepresent the second pattern statistical variable;
The 9th judging treatmenting module, for determining whether n≤num mb* Thres 1, if so, enter the 3rd processing module; If not, enter the tenth judging treatmenting module;
The 3rd processing module, for first to Mb t,nencode, then according to the predictive mode of macro block, calculate the second pattern statistical variable; Then, make n=n+1, more then reenter the 9th judging treatmenting module;
The tenth judging treatmenting module, for judging whether num pb>(n-1) * Thres 2, if so, enter the 4th processing module; If not, enter the second coding module;
The 4th processing module, for first utilizing fast prediction model selection strategy, deletes impossible reference frame; Then enter the second coding module;
The second coding module, for first current macro being encoded, then enters the 11 judging treatmenting module;
The 11 judging treatmenting module, for determining whether n>=num mb, if so, first make t=t+1, then reenter the first judging treatmenting module; If not, first, make n=n+1, then reenter the second coding module.
21. a kind of fast prediction mode selectors as claimed in claim 20, is characterized in that, described the second pattern statistical variable computational methods are as follows:
Num pbrepresent the second pattern statistical variable.
22. a kind of fast prediction mode selectors as claimed in claim 21, is characterized in that, in the 4th processing module, described " first utilize fast prediction model selection strategy, delete impossible reference frame " is specially:
Delete in reference listing and play the reference frame that sequence number is less than T, wherein T presentation code sequence number equals the broadcasting sequence number of the reference frame of t-1.
CN201210544210.8A 2012-12-14 2012-12-14 Method and device for rapidly selecting prediction mode Active CN103517077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210544210.8A CN103517077B (en) 2012-12-14 2012-12-14 Method and device for rapidly selecting prediction mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210544210.8A CN103517077B (en) 2012-12-14 2012-12-14 Method and device for rapidly selecting prediction mode

Publications (2)

Publication Number Publication Date
CN103517077A true CN103517077A (en) 2014-01-15
CN103517077B CN103517077B (en) 2017-02-15

Family

ID=49898990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210544210.8A Active CN103517077B (en) 2012-12-14 2012-12-14 Method and device for rapidly selecting prediction mode

Country Status (1)

Country Link
CN (1) CN103517077B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618715A (en) * 2014-07-22 2015-05-13 腾讯科技(北京)有限公司 Method and device for obtaining minimal rate-distortion cost
CN111526363A (en) * 2020-03-31 2020-08-11 北京字节跳动网络技术有限公司 Encoding method and apparatus, terminal and storage medium
CN112019848A (en) * 2020-09-11 2020-12-01 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode
CN112019849A (en) * 2020-09-11 2020-12-01 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179728A (en) * 2007-12-13 2008-05-14 北京中星微电子有限公司 Method and apparatus for determining interframe encoding mode
CN101217663A (en) * 2008-01-09 2008-07-09 上海华平信息技术股份有限公司 A quick selecting method of the encode mode of image pixel block for the encoder
CN101640802A (en) * 2009-08-28 2010-02-03 北京工业大学 Video inter-frame compression coding method based on macroblock features and statistical properties
CN101815215A (en) * 2009-06-29 2010-08-25 香港应用科技研究院有限公司 Selecting method for coding mode and a device thereof
CN102186070A (en) * 2011-04-20 2011-09-14 北京工业大学 Method for realizing rapid video coding by adopting hierarchical structure anticipation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179728A (en) * 2007-12-13 2008-05-14 北京中星微电子有限公司 Method and apparatus for determining interframe encoding mode
CN101217663A (en) * 2008-01-09 2008-07-09 上海华平信息技术股份有限公司 A quick selecting method of the encode mode of image pixel block for the encoder
CN101815215A (en) * 2009-06-29 2010-08-25 香港应用科技研究院有限公司 Selecting method for coding mode and a device thereof
CN101640802A (en) * 2009-08-28 2010-02-03 北京工业大学 Video inter-frame compression coding method based on macroblock features and statistical properties
CN102186070A (en) * 2011-04-20 2011-09-14 北京工业大学 Method for realizing rapid video coding by adopting hierarchical structure anticipation

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618715A (en) * 2014-07-22 2015-05-13 腾讯科技(北京)有限公司 Method and device for obtaining minimal rate-distortion cost
CN104618715B (en) * 2014-07-22 2018-10-30 腾讯科技(北京)有限公司 A kind of method and device obtaining minimum rate distortion costs
CN111526363A (en) * 2020-03-31 2020-08-11 北京字节跳动网络技术有限公司 Encoding method and apparatus, terminal and storage medium
WO2021196994A1 (en) * 2020-03-31 2021-10-07 北京字节跳动网络技术有限公司 Encoding method and apparatus, terminal, and storage medium
CN112019848A (en) * 2020-09-11 2020-12-01 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode
CN112019849A (en) * 2020-09-11 2020-12-01 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode
CN112019848B (en) * 2020-09-11 2022-09-16 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode
CN112019849B (en) * 2020-09-11 2022-10-04 深圳市梦网视讯有限公司 Method, system and equipment for rapidly analyzing prediction mode

Also Published As

Publication number Publication date
CN103517077B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
KR101208863B1 (en) Selecting encoding types and predictive modes for encoding video data
CN102883157B (en) Method for video coding and video encoder
US8320470B2 (en) Method for spatial error concealment
CN104378643B (en) A kind of 3D video depths image method for choosing frame inner forecast mode and system
JP4735375B2 (en) Image processing apparatus and moving image encoding method.
CN100574447C (en) Fast intraframe predicting mode selecting method based on the AVS video coding
CN109688407B (en) Reference block selection method and device for coding unit, electronic equipment and storage medium
CN102300094B (en) Video coding method
CN104581170A (en) Rapid inter-frame transcoding method for reducing video resolution based on HEVC
CN101502125A (en) Image data processing method, program for image data processing method, recording medium with recorded program for image data processing method and image data processing device
CN103517077A (en) Method and device for rapidly selecting prediction mode
CN101827269A (en) Method for video coding and device
CN102215392B (en) Intra-frame predicting method or device for estimating pixel value
CN104601992A (en) SKIP mode quickly selecting method based on Bayesian minimum hazard decision
CN106803962B (en) 3D video depth map method for choosing frame inner forecast mode based on bayesian criterion
CN102158702B (en) Self-adaption H.264 code rate control method
US10045003B2 (en) Efficient mode decision method for multiview video coding based on motion vectors
CN103686166B (en) Fast prediction mode selection method and system based on correlation analysis
CN101518091A (en) Decoding device, decoding method, decoding program, and integrated circuit
CN104104947A (en) Video coding method and device
CN103327329A (en) Method and system for quantitative adjustment of image quality jump
CN114666579A (en) Video coding method and device, electronic equipment and storage medium
CN104702954A (en) Video coding method and device
CN102984522A (en) Brightness transformation domain intra-frame prediction coding and decoding method and system
CN112954350A (en) Video post-processing optimization method and device based on frame classification

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Song Xiuli

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice

Addressee: BAC Information Technology Co., Ltd.

Document name: Notification to Make Rectification

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong Province, Shenzhen city Nanshan District District Science Park Keyuan Road branch science park A1 unit 4 Building 403-405 unit

Applicant after: BAC Information Technology Co., Ltd.

Address before: Unit B1 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant before: BAC Information Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets high in the four Longtaili Technology Building Room 325 No. 30

Patentee after: Shenzhen Monternet encyclopedia Information Technology Co. Ltd.

Address before: 518057 Guangdong Province, Shenzhen city Nanshan District District Science Park Keyuan Road branch science park A1 unit 4 Building 403-405 unit

Patentee before: BAC Information Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190521

Address after: Room 325, Longtaili Science and Technology Building, 30 Sidao, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen Montnets Technology Co., Ltd.

Address before: Room 325, Longtaili Science and Technology Building, 30 Sidao, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee before: Shenzhen Monternet encyclopedia Information Technology Co. Ltd.