[go: up one dir, main page]

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

Method and device for rapidly selecting prediction mode Download PDF

Info

Publication number
CN103517077B
CN103517077B CN201210544210.8A CN201210544210A CN103517077B CN 103517077 B CN103517077 B CN 103517077B CN 201210544210 A CN201210544210 A CN 201210544210A CN 103517077 B CN103517077 B CN 103517077B
Authority
CN
China
Prior art keywords
frame
num
module
judging treatmenting
thres
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210544210.8A
Other languages
Chinese (zh)
Other versions
CN103517077A (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

Landscapes

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

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, more particularly, to a kind of fast prediction mode selecting method and device.
Background technology
Traversing operation on predictive mode for the conventional encoding techniques, although can seek to optimum prediction mode, carries therewith The amount of calculation come is also huge.Especially preset under mechanism in coding structure, when classification and its of pre-set image frame are actual optimal The maximum waste of amount of calculation when predictive mode is completely inconsistent, can be caused, and now the lifting to distortion performance is no at all helped Help.
For this problem, a kind of present invention fast prediction model selection strategy.
Content of the invention
The purpose of the embodiment of the present invention is to propose a kind of fast prediction mode selecting method it is intended to solution prior art is normal Rule traversing operation on predictive mode for the coding techniques, can cause the maximum waste of amount of calculation, and the lifting to distortion performance The problem no at all helping.
The embodiment of the present invention is achieved in that a kind of fast prediction mode selecting method, and methods described includes following step Suddenly:
Step B, judges whether t≤numframe, if so, then enter step C;
Step C, judges current encoded frame frametWhether it is I frame, if otherwise entering step D;
Step D, assigns initial value n=1, numI=0;
Step E, judges whether n≤numMb*Thres1, if so, then enter step F, if it is not, then entering step G;
Step F, to current coding macro block Mbt,nEncoded, and the predictive mode according to current coding macro block, calculated the One mode statistical variable, then makes n=n+1, followed by return to step E;
Step G, judges whether numI>(n-1)*Thres2, if so, then enter step H;
Step H:First with fast prediction model selection strategy, delete impossible predictive mode, then to currently grand Block is encoded, and finally, enters step J;
Step J:Determine whether n >=numMb, if so, then make t=t+1 first, subsequently into step L, if it is not, then first, Make n=n+1, then reenter step H;
Step L:Determine whether t≤numframe, if it is not, then terminating;
Wherein, t presentation code frame number;frametRepresent current encoded frame;numframeThe picture frame of presentation code sequence Number;N represents Mbt,nCoding sequence number in current encoded frame;Mbt,nRepresent current macro;numIRepresent that first mode statistics becomes Amount;numMbRepresent the macro block sum in a two field picture;Thres1For the first decision threshold;Thres2For the second decision threshold.
Further, further comprising the steps of before step B:
Step A, assigns initial value t=1.
Further, in step C, judge current encoded frame frametWhether it is I frame, if then to current encoded frame frametEncoded, then made t=t+1, followed by returning to step B.
Further, in step G, judge whether numI>(n-1)*Thres2, if it is not, then entering step I;
Step I:First current macro is encoded, subsequently into step K;
Step K:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter step B;If it is not, it is then first First, make n=n+1, then reenter step I.
Further, in step L, determine whether t≤numframe, if so, then enter step M;
Step M:Determine whether frametFor I frame, if it is not, then entering step N;
Step N:Assign initial value n=1, numpb=0;
Step O:Determine whether n≤numMb*Thres1, if so, then enter step P;If it is not, then entering step Q;
Step P:First to Mbt,nEncoded, then the predictive mode according to macro block calculates second mode statistical variable; Then, make n=n+1, followed by reentering step O;
Step Q:Judge whether numpb>(n-1)*Thres2, if so, then enter step R;
Step R:First with fast prediction model selection strategy, delete impossible reference frame;Subsequently into step S;
Step S:First current macro is encoded, subsequently into step T;
Step T:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter step B;If it is not, it is then first First, make n=n+1, then reenter step S.
Further, in step M, determine whether frametFor I frame, if so, then first to frametEncoded, then Make t=t+1, finally reenter step B.
Further, in step Q, judge whether numpb>(n-1)*Thres2, if it is not, then entering step S.The present invention is real The another object applying example is to propose a kind of fast prediction mode selector, and described device includes:
First judging treatmenting module:For judging whether t≤numframe, if so, then enter the second judging treatmenting module;If No, then terminate;
Second judging treatmenting module:For judging current encoded frame frametWhether it is I frame, be then to current encoded frame frametEncoded, then made t=t+1, returned the first judging treatmenting module;Otherwise enter the second assignment module;
Second assignment module:It is connected with the 3rd judging treatmenting module, for assigning initial value n=1, numI=0;
3rd judging treatmenting module:For judging whether n≤numMb*Thres1, if so, then enter first processing module; If it is not, then entering the 4th judging treatmenting module;
First processing module, for current coding macro block Mbt,nEncoded, and the prediction according to current coding macro block Pattern, calculates first mode statistical variable, then makes n=n+1, executes the 3rd judging treatmenting module followed by returning;
4th judging treatmenting module, is used for judging whether numI>(n-1)*Thres2, if so, then enter second processing mould Block;If it is not, then entering the first coding module;
Second processing module, for first with fast prediction model selection strategy, deleting impossible predictive mode;So Afterwards current macro is encoded;Finally, enter the 6th judging treatmenting module;
First coding module, for encoding to current macro first, subsequently into the 5th judging treatmenting module;
5th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then reenter First judging treatmenting module;If it is not, then first, make n=n+1, then reenter the first coding module;
6th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, subsequently into the 7th Judging treatmenting module;If it is not, then first, make n=n+1, then reenter Second processing module;
7th judging treatmenting module, is used for determining whether t≤numframe, if it is not, then terminating;
Wherein, frametRepresent current encoded frame;numframeThe number of image frames of presentation code sequence;N represents Mbt,nWorking as Coding sequence number in front coded frame;Mbt,nRepresent current macro;T presentation code frame number;numMbRepresent grand in a two field picture Block sum;numIRepresent first mode statistical variable;Thres1For the first decision threshold, Thres2For the second decision threshold.
Further, described device also includes:
First assignment module:It is connected with the first judging treatmenting module, for assigning initial value t=1.
Further, described device also includes:
Described 7th judging treatmenting module, is additionally operable to determine whether t≤numframe, if so, then enter the 8th judgement and process Module;
8th judging treatmenting module, is connected with the 7th judging treatmenting module, is used for determining whether frametFor I frame, if so, Then first to frametEncoded, then made t=t+1, finally reentered the first judging treatmenting module;If it is not, then entering 3rd assignment module;
3rd assignment module, is connected with the 9th judging treatmenting module, for assigning initial value n=1, numpb=0;
numpbRepresent second mode statistical variable;
9th judging treatmenting module, is used for determining whether n≤numMb*Thres1, if so, then enter the 3rd processing module; If it is not, then entering the tenth judging treatmenting module;
3rd processing module, for first to Mbt,nEncoded, then the predictive mode according to macro block calculates the second mould Formula statistical variable;Then, make n=n+1, followed by reentering the 9th judging treatmenting module;
Tenth judging treatmenting module, is used for judging whether numpb>(n-1)*Thres2, if so, then enter fourth process mould Block;If it is not, then entering the second coding module;
Fourth processing module, for first with fast prediction model selection strategy, deleting impossible reference frame;Then Enter the second coding module;
Second coding module, for encoding to current macro first, subsequently into the 11st judging treatmenting module;
11st judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then again enter Enter the first judging treatmenting module;If it is not, then first, make n=n+1, then reenter the second coding module.
Beneficial effects of the present invention
The embodiment of the present invention passes through the statistical property of the macro-block skip mode in analyzed area, can quickly judge coding structure The interference in default mechanism, predictive mode being selected;By, before optimum prediction mode determines, deleting impossible predictive mode Or impossible reference frame, reach the stability requirement of distortion performance while reducing amount of calculation.
Brief description
Fig. 1 is a kind of preferred embodiment of the present invention fast prediction mode selecting method flow chart;
Fig. 2 is a kind of preferred embodiment of the present invention fast prediction mode selector structural representation.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated, and for convenience of description, illustrate only the part related to the embodiment of the present invention.Should manage Solution, the specific embodiment that this place is described, it is used only for explaining the present invention, not in order to limit the present invention.
The embodiment of the present invention passes through the statistical property of the macro-block skip mode in analyzed area, can quickly judge coding structure The interference in default mechanism, predictive mode being selected;By, before optimum prediction mode determines, deleting impossible predictive mode Or impossible reference frame, reach the stability requirement of distortion performance while reducing amount of calculation.
Embodiment one
Fig. 1 is a kind of preferred embodiment of the present invention fast prediction mode selecting method flow chart, and methods described includes following Step:
S101, assigns initial value t=1.
T presentation code frame number;
S102, judges whether t≤numframe, if so, then enter step S103;If it is not, then terminating.
Wherein, frametRepresent current encoded frame;numframeThe number of image frames of presentation code sequence.
S103, judges current encoded frame frametWhether it is I frame, be then to current encoded frame frametEncoded, then Make t=t+1, followed by returning to step S102;Otherwise enter step S104.
S104, assigns initial value n=1, numI=0.
N represents Mbt,nCoding sequence number in current encoded frame;Mbt,nRepresent n-th macro block of current encoded frame, also referred to as For current macro;numIRepresent first mode statistical variable;
S105, judges whether n≤numMb*Thres1, if so, then enter step S106;If it is not, then entering step S107.
Wherein, numMbRepresent the macro block sum in a two field picture;Thres1For the first decision threshold, Thres1>0.05* height/width;Width, height represent columns in units of pixel for the image, line number respectively;
S106, to current coding macro block Mbt,nEncoded, and the predictive mode according to current coding macro block, calculate first Mode statistical variable, then makes n=n+1, followed by return to step S105;
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Wherein, numIRepresent first mode statistical variable.
S107, judges whether numI>(n-1)*Thres2, if so, then enter S108;If it is not, then entering S109.
Wherein, Thres2For the second decision threshold, 0.7≤Thres2≤1.
S108:First with 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 with infra-frame prediction, chooses optimal frame in Predictive mode is the optimum prediction mode of current macro, and the macroblock coding subsequent processing steps then carrying out routine are converted quantity Change, entropy code etc., finally enter back into S110.
S109:First current macro is encoded, subsequently into S111.
S110:Determine whether n >=numMb, if so, then make t=t+1 first, subsequently into S112;If it is not, then first, make n =n+1, then reenters S108.
S111:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter S102;If it is not, it is then first First, make n=n+1, then reenter S109.
S112:Determine whether t≤numframe, if so, then enter S113;If it is not, then terminating.
S113:Determine whether frametFor I frame, if so, then first to frametEncoded, then made t=t+1, finally Reenter S102;If it is not, then entering S114.
S114:Assign initial value n=1, numpb=0.
S115:Determine whether n≤numMb*Thres1, if so, then enter S116;If it is not, then entering S117.
S116:First to Mbt,nEncoded, then the predictive mode according to macro block calculates second mode statistical variable;So Afterwards, make n=n+1, followed by reentering S115.
In in full, numpbRepresent second mode statistical variable.
S117:Judge whether numpb>(n-1)*Thres2, if so, then enter S118;If it is not, then entering S119.
S118:First with fast prediction model selection strategy, delete impossible reference frame;Subsequently into S119.I.e. Delete in reference listing first and play the reference frame that sequence number is less than T, subsequently into S119.
Wherein T presentation code sequence number is equal to the broadcasting sequence number of the reference frame of t-1.
S119:First current macro is encoded, subsequently into S120.
S120:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter S102;If it is not, it is then first First, make n=n+1, then reenter S119.
The embodiment of the present invention passes through the statistical property of the macro-block skip mode in analyzed area, can quickly judge coding structure The interference in default mechanism, predictive mode being selected;By, before optimum prediction mode determines, deleting impossible predictive mode Or impossible reference frame, reach the stability of distortion performance while reducing amount of calculation.
Embodiment two
Fig. 2 is a kind of preferred embodiment of the present invention fast prediction mode selector structural representation.Described system includes:
First assignment module:It is connected with the first judging treatmenting module, for assigning initial value t=1;
T presentation code frame number;
First judging treatmenting module:For judging whether t≤numframe, if so, then enter the second judging treatmenting module;If No, then terminate;
Wherein, frametRepresent current encoded frame;numframeThe number of image frames of presentation code sequence;
Second judging treatmenting module:For judging current encoded frame frametWhether it is I frame, be then to current encoded frame frametEncoded, then made t=t+1, returned the first judging treatmenting module;Otherwise enter the second assignment module.
Second assignment module:It is connected with the 3rd judging treatmenting module, for assigning initial value n=1, numI=0.
N represents Mbt,nCoding sequence number in current encoded frame;Mbt,nRepresent n-th macro block of current encoded frame, also referred to as For current macro;numIRepresent first mode statistical variable;
3rd judging treatmenting module:For judging whether n≤numMb*Thres1, if so, then enter first processing module; If it is not, then entering the 4th judging treatmenting module.
Wherein, numMbRepresent the macro block sum in a two field picture;Thres1For the first decision threshold, Thres1>0.05* height/width;Width, height represent columns in units of pixel for the image, line number respectively;
First processing module, for current coding macro block Mbt,nEncoded, and the prediction according to current coding macro block Pattern, calculates first mode statistical variable, then makes n=n+1, executes the 3rd judging treatmenting module followed by returning;
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Wherein, numIRepresent first mode statistical variable;
4th judging treatmenting module, is used for judging whether numI>(n-1)*Thres2, if so, then enter second processing mould Block;If it is not, then entering the first coding module;
Wherein, Thres2For the second decision threshold, 0.7≤Thres2≤1;
Second processing module, for first with fast prediction model selection strategy, deleting impossible predictive mode be Inter-frame forecast mode;Then current macro is encoded;Finally, enter the 6th judging treatmenting module.
It is specially:Current macro is carried out with infra-frame prediction, chooses optimal intra prediction mode and be the optimal of current macro Predictive mode, the macroblock coding subsequent processing steps then carrying out routine are change quantization, entropy code etc., finally enter back into the 6th Judging treatmenting module.
First coding module, for encoding to current macro first, subsequently into the 5th judging treatmenting module.
5th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then reenter First judging treatmenting module;If it is not, then first, make n=n+1, then reenter the first coding module.
6th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, subsequently into the 7th Judging treatmenting module;If it is not, then first, make n=n+1, then reenter Second processing module.
7th judging treatmenting module, is used for determining whether t≤numframe, if so, then enter the 8th judging treatmenting module;If No, then terminate.
8th judging treatmenting module, is used for determining whether frametFor I frame, if so, then first to frametEncoded, Then make t=t+1, finally reenter the first judging treatmenting module;If it is not, then entering the 3rd assignment module.
3rd assignment module, is connected with the 9th judging treatmenting module, for assigning initial value n=1, numpb=0.
numpbRepresent second mode statistical variable;
9th judging treatmenting module, is used for determining whether n≤numMb*Thres1, if so, then enter the 3rd processing module; If it is not, then entering the tenth judging treatmenting module.
3rd processing module, for first to Mbt,nEncoded, then the predictive mode according to macro block calculates the second mould Formula statistical variable;Then, make n=n+1, followed by reentering the 9th judging treatmenting module.
In in full, numpbRepresent second mode statistical variable;
Tenth judging treatmenting module, is used for judging whether numpb>(n-1)*Thres2, if so, then enter fourth process mould Block;If it is not, then entering the second coding module.
Fourth processing module, for first with fast prediction model selection strategy, deleting impossible reference frame;Then Enter the second coding module.
It is specially:Delete in reference listing first and play the reference frame that sequence number is less than T, subsequently into the second coding module; Wherein T presentation code sequence number is equal to the broadcasting sequence number of the reference frame of t-1.
Second coding module, for encoding to current macro first, subsequently into the 11st judging treatmenting module.
11st judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then again enter Enter the first judging treatmenting module;If it is not, then first, make n=n+1, then reenter the second coding module.
The embodiment of the present invention passes through the statistical property of the macro-block skip mode in analyzed area, can quickly judge coding structure The interference in default mechanism, predictive mode being selected;By, before optimum prediction mode determines, deleting impossible predictive mode Or impossible reference frame, reach the stability of distortion performance while reducing amount of calculation.
It will be understood by those skilled in the art that realizing all or part of step in above-described embodiment method is can With completed by programmed instruction related hardware, described program can be stored in a computer read/write memory medium, Described storage medium can be ROM, RAM, disk, CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.

Claims (18)

1. a kind of fast prediction mode selecting method is it is characterised in that the method comprising the steps of:
Step B, judges whether t≤numframe, if so, then enter step C;
Step C, judges current encoded frame frametWhether it is I frame, if otherwise entering step D;
Step D, assigns initial value n=1, numI=0;
Step E, judges whether n≤numMb*Thres1, if so, then enter step F, if it is not, then entering step G;
Step F, to current coding macro block Mbt,nEncoded, and the predictive mode according to current coding macro block, calculate the first mould Formula statistical variable, then makes n=n+1, followed by return to step E;
Step G, judges whether numI>(n-1)*Thres2, if so, then enter step H;
Step H:First with fast prediction model selection strategy, delete impossible predictive mode, then current macro is entered Row coding, finally, enters step J;
Step J:Determine whether n >=numMb, if so, then make t=t+1 first, subsequently into step L, if it is not, then first, make n= N+1, then reenters step H;
Step L:Determine whether t≤numframe, if it is not, then terminating;
Wherein, t presentation code frame number;frametRepresent current encoded frame;numframeThe number of image frames of presentation code sequence;n Represent Mbt,nCoding sequence number in current encoded frame;Mbt,nRepresent current macro;numIRepresent first mode statistical variable; numMbRepresent the macro block sum in a two field picture;Thres1For the first decision threshold;Thres2For the second decision threshold;
Described utilization fast prediction model selection strategy, deletes impossible predictive mode, specially:Only current macro is carried out Infra-frame prediction, chooses the optimum prediction mode that optimal intra prediction mode is current macro;
Described utilization fast prediction model selection strategy, deletes among impossible predictive mode, using the choosing of fast prediction pattern Select strategy, delete impossible reference frame, specially:
Delete and in reference listing, play the reference frame that sequence number is less than T, wherein T presentation code sequence number is equal to broadcasting of the reference frame of t-1 Put sequence number.
2. as claimed in claim 1 a kind of fast prediction mode selecting method it is characterised in that also include before step B with Lower step:
Step A, assigns initial value t=1.
3. a kind of fast prediction mode selecting method it is characterised in that in step C, judges current volume as claimed in claim 1 Code frame frametWhether it is I frame, if then to current encoded frame frametEncoded, then made t=t+1, followed by again returning Return step B.
4. as claimed in claim 1 a kind of fast prediction mode selecting method it is characterised in that in step G, judging whether numI>(n-1)*Thres2, if it is not, then entering step I;
Step I:First current macro is encoded, subsequently into step K;
Step K:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter step B;If it is not, then 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 it is characterised in that
Described Thres1>0.05*height/width;
Width, height represent columns in units of pixel for the image, line number respectively.
6. as claimed in claim 5 a kind of fast prediction mode selecting method it is characterised in that
0.7≤Thres2≤1.
7. as claimed in claim 6 a kind of fast prediction mode selecting method it is characterised in that
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
Wherein, numIRepresent first mode statistical variable.
8. as claimed in claim 7 a kind of fast prediction mode selecting method it is characterised in that in step L, determining whether t ≤numframe, if so, then enter step M;
Step M:Determine whether frametFor I frame, if it is not, then entering step N;
Step N:Assign initial value n=1, numpb=0;
Step O:Determine whether n≤numMb*Thres1, if so, then enter step P;If it is not, then entering step Q;
Step P:First to Mbt,nEncoded, then the predictive mode according to macro block calculates second mode statistical variable;Then, Make n=n+1, followed by reentering step O;
Step Q:Judge whether numpb>(n-1)*Thres2, if so, then enter step R;
Step R:First with fast prediction model selection strategy, delete impossible reference frame;Subsequently into step S;
Step S:First current macro is encoded, subsequently into step T;
Step T:Determine whether n >=numMb, if so, then make t=t+1 first, then reenter step B;If it is not, then first, Make n=n+1, then reenter step S.
9. as claimed in claim 8 a kind of fast prediction mode selecting method it is characterised in that in step M, determining whether frametFor I frame, if so, then first to frametEncoded, then made t=t+1, finally reentered step B.
10. as claimed in claim 9 a kind of fast prediction mode selecting method it is characterised in that in step Q, judging whether numpb>(n-1)*Thres2, if it is not, then entering step S.
A kind of 11. fast prediction mode selecting methods as described in as arbitrary in claim 8-10 one are it is characterised in that the second mould Formula statistical variable computational methods are:
numpbRepresent second mode statistical variable.
A kind of 12. fast prediction mode selectors are it is characterised in that described device includes:
First judging treatmenting module:For judging whether t≤numframe, if so, then enter the second judging treatmenting module;If it is not, Then terminate;
Second judging treatmenting module:For judging current encoded frame frametWhether it is I frame, be then to current encoded frame framet Encoded, then made t=t+1, returned the first judging treatmenting module;Otherwise enter the second assignment module;
Second assignment module:It is connected with the 3rd judging treatmenting module, for assigning initial value n=1, numI=0;
3rd judging treatmenting module:For judging whether n≤numMb*Thres1, if so, then enter first processing module;If it is not, Then enter the 4th judging treatmenting module;
First processing module, for current coding macro block Mbt,nEncoded, and the predictive mode according to current coding macro block, Calculate first mode statistical variable, then make n=n+1, execute the 3rd judging treatmenting module followed by returning;
4th judging treatmenting module, is used for judging whether numI>(n-1)*Thres2, if so, then enter Second processing module;If No, then enter the first coding module;
Second processing module, for first with fast prediction model selection strategy, deleting impossible predictive mode;Then right Current macro is encoded;Finally, enter the 6th judging treatmenting module;
First coding module, for encoding to current macro first, subsequently into the 5th judging treatmenting module;
5th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then reenter One judging treatmenting module;If it is not, then first, make n=n+1, then reenter the first coding module;
6th judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, subsequently into the 7th judgement Processing module;If it is not, then first, make n=n+1, then reenter Second processing module;
7th judging treatmenting module, is used for determining whether t≤numframe, if it is not, then terminating;
Wherein, frametRepresent current encoded frame;numframeThe number of image frames of presentation code sequence;N represents Mbt,nCompile current Coding sequence number in code frame;Mbt,nRepresent current macro;T presentation code frame number;numMbRepresent that the macro block in a two field picture is total Number;numIRepresent first mode statistical variable;Thres1For the first decision threshold, Thres2For the second decision threshold;
In described Second processing module, described utilization fast prediction model selection strategy, delete impossible predictive mode, specifically For:Current macro is carried out with infra-frame prediction, chooses the optimum prediction mode that optimal intra prediction mode is current macro;
Described utilization fast prediction model selection strategy, deletes among impossible predictive mode, described utilization fast prediction mould Formula selection strategy, deletes impossible reference frame, specially:Delete and in reference listing, play the reference frame that sequence number is less than T, wherein T presentation code sequence number is equal to the broadcasting sequence number of the reference frame of t-1.
13. as claimed in claim 12 a kind of fast prediction mode selector it is characterised in that described device also includes:
First tax module:It is connected with the first judging treatmenting module, for assigning initial value t=1.
A kind of 14. fast prediction mode selectors as described in one of claim 12-13 it is characterised in that
Thres1>0.05*height/width;
Width, height represent columns in units of pixel for the image, line number respectively.
15. as claimed in claim 14 a kind of fast prediction mode selector it is characterised in that
0.7≤Thres2≤1.
16. as claimed in claim 15 a kind of fast prediction mode selector it is characterised in that
Described " according to the predictive mode of current coding macro block, calculating first mode statistical variable " is specially:
.
17. as claimed in claim 16 a kind of fast prediction mode selector it is characterised in that described device also includes:
Described 7th judging treatmenting module, is additionally operable to determine whether t≤numframe, if so, then enter the 8th judging treatmenting module;
8th judging treatmenting module, is connected with the 7th judging treatmenting module, is used for determining whether frametFor I frame, if so, then first First to frametEncoded, then made t=t+1, finally reentered the first judging treatmenting module;If it is not, then entering the 3rd Assignment module;
3rd assignment module, is connected with the 9th judging treatmenting module, for assigning initial value n=1, numpb=0;
numpbRepresent second mode statistical variable;
9th judging treatmenting module, is used for determining whether n≤numMb*Thres1, if so, then enter the 3rd processing module;If it is not, Then enter the tenth judging treatmenting module;
3rd processing module, for first to Mbt,nEncoded, then the predictive mode according to macro block calculates second mode system Meter variable;Then, make n=n+1, followed by reentering the 9th judging treatmenting module;
Tenth judging treatmenting module, is used for judging whether numpb>(n-1)*Thres2, if so, then enter fourth processing module;If No, then enter the second coding module;
Fourth processing module, for first with fast prediction model selection strategy, deleting impossible reference frame;Subsequently into Second coding module;
Second coding module, for encoding to current macro first, subsequently into the 11st judging treatmenting module;
11st judging treatmenting module, is used for determining whether n >=numMb, if so, then make t=t+1 first, then reenter One judging treatmenting module;If it is not, then first, make n=n+1, then reenter the second coding module.
18. as claimed in claim 17 a kind of fast prediction mode selector it is characterised in that described second mode statistics Variable computational methods are as follows:
numpbRepresent second mode statistical variable.
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 CN103517077A (en) 2014-01-15
CN103517077B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

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 香港应用科技研究院有限公司 Method and apparatus for coding mode selection
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 香港应用科技研究院有限公司 Method and apparatus for coding mode selection
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

Also Published As

Publication number Publication date
CN103517077A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
KR101208863B1 (en) Selecting encoding types and predictive modes for encoding video data
CN106961606B (en) HEVC intra-frame coding mode selection method based on texture division characteristics
CN103517077B (en) Method and device for rapidly selecting prediction mode
CN101969561B (en) A kind of intra-frame mode selection method, device and a kind of encoder
CN100574447C (en) Fast intraframe predicting mode selecting method based on the AVS video coding
EP1687985A1 (en) Mode decision for inter prediction in video coding
JP2006246431A (en) Image coding apparatus and method
CN104853191B (en) A Fast Encoding Method for HEVC
CN107018412B (en) A kind of DVC-HEVC video transcoding method based on key frame coding unit partition mode
CN101917627B (en) Video fault-tolerant coding method based on self-adaptation flexible macro-block order
CN114449262A (en) Video coding control method, device, equipment and storage medium
CN101902642B (en) Quick decision method for H.264 interframe SKIP modes
CN103686166B (en) Fast prediction mode selection method and system based on correlation analysis
CN113573066B (en) Video coding method and device
CN105791863B (en) 3D-HEVC depth map intra-frame predictive encoding method based on layer
CN116248902A (en) VVC intra-frame coding division method based on LightGBM
CN110035285B (en) Depth Prediction Method Based on Motion Vector Sensitivity
CN102143362A (en) Video transcoding processing method and video transcoding processing device from MPEG2 format or H. 263 format to H. 264 format
AU2021103378A4 (en) A self-adaptive n-depth context tree weighting method
CN114449278B (en) Arbitrary rate downsampling transcoding method and device based on information reuse
CN112019848B (en) Method, system and equipment for rapidly analyzing prediction mode
CN116456088B (en) A VVC intra-frame fast coding method based on probability size
KR100845644B1 (en) How to determine fast motion mode
CN114449273B (en) HEVC-based enhanced block partition search method and device
Tang et al. Forward Prediction-Guided Cross-Partition Targeted Pruning for VVenC

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 for 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

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.

CP03 Change of name, title or address
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.