CN107770524A - A kind of video coding-decoding processing method and device - Google Patents

A kind of video coding-decoding processing method and device Download PDF

Info

Publication number
CN107770524A
CN107770524A CN201710983987.7A CN201710983987A CN107770524A CN 107770524 A CN107770524 A CN 107770524A CN 201710983987 A CN201710983987 A CN 201710983987A CN 107770524 A CN107770524 A CN 107770524A
Authority
CN
China
Prior art keywords
current block
prediction
block
motion vector
type
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
CN201710983987.7A
Other languages
Chinese (zh)
Other versions
CN107770524B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201710983987.7A priority Critical patent/CN107770524B/en
Publication of CN107770524A publication Critical patent/CN107770524A/en
Application granted granted Critical
Publication of CN107770524B publication Critical patent/CN107770524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the present invention, which provides a kind of video coding-decoding processing method and device, the method for processing video frequency, to be included:The information of the type of prediction of current block is obtained from code stream;According to the prediction type, the hypothesis number type of prediction of current block is exported;At least assume that number type of prediction uses the movable information with current block hypothesis number type of prediction identical adjacent block to a kind of, export movable information or motion information prediction value or movable information candidate or the motion information prediction value candidate of current block.The video coding-decoding method and device can make full use of the motion vector information in the adjacent block of current block, improve the accuracy commonly and under special pattern predicted in interframe, improve video coding efficiency.

Description

A kind of video coding-decoding processing method and device
Technical field
The present invention relates to video processing technique, more particularly to a kind of video coding-decoding processing method and device.
Background technology
In video coding technique, video information is eliminated in time and sky by using the prediction of time-domain and spatial domain Between on redundancy.Inter-frame prediction techniques are a kind of technologies for being commonly utilized in coding and decoding video field.By motion compensation, with Information in coded frame predicts the information of present frame.Need to transmit many side letters in movement compensation process, in video code flow Breath, decoding end reconstruct the Pixel Information of present frame using the residual error after these side information and conversion.In common interframe In predictive mode, mainly carry out reconstruction image by the coding mode information of block, these side information of motion vector difference value information.In spy Different inter-frame mode is such as skipped and Direct Model, without transmitting motion vector difference value information.The motion directly obtained with prediction is sweared Measure the motion vector as current block.
In h .264, common inter-frame mode, its prediction direction can be preceding to backward and two-way.Either which kind of Prediction direction, what the method for its derive motion vector predicted value was just as, that is, take in the motion vector in three adjacent blocks It is worth the motion vector predictor for current block.And in special pattern, motion vector export is complex.For P-SKIP (P frames Skip) pattern, only export forward motion vector.For B-SKIP (B frames are skipped) and B-DIRECT (B frames are direct) pattern, by both Fixed rule export forward motion vector and backward motion vector.
In HEVC, AMVP (advanced motion-vector prediction) technology is introduced.The technology is waited by building motion vector Select list, by transmitting the sequence number of the motion vector predictor chosen or motion vector in code stream, decoding end according to sequence number with And the motion vector candidates list built by same rule comes derive motion vector or motion vector predictor.AMVP technology applications It is referred to as Merge patterns in a special mode.Merge patterns in derive motion vector, not merely with adjacent block in fortune Dynamic vector information, while also utilize the reference frame information of adjacent block.In the candidate list of Merge mode constructions, house by The movable information for the adjacent block that priority orders obtain, including motion vector information and reference frame information.That is, Merge Pattern is also derived the reference frame corresponding with the motion vector while derive motion vector.
In AVS, motion vector export with it is H.264 similar.It is also the AVS using a set of fixation under common inter-frame mode MEDIAN (AVS median predictions) method, P-SKIP only exports forward motion vector under special pattern.B-SKIP and B-DIRECT Exported under pattern front and rear to two motion vectors.
H.264 with AVS, although common inter-frame mode motion vector export in forward, backward and two-way feelings Derived motion vector is different under condition or number is different, but they do not have the difference of the prediction direction type according to adjacent block And specially select the block for having identical prediction direction type in adjacent block and carry out predicted motion vector.As long as but exist in adjacent block and refer to To reference frame direction and current block identical motion vector, just bring the motion vector of prediction current block.For before predicting to The neighboring block motion vector of the forward motion vector of type of prediction current block can be the forward motion vector of forward prediction block, It can be bi-directional predicted piece of forward motion vector.As long as selected block has required motion vector, and this is selected The prediction direction type of block is it is not necessary to consider.
In AVS P frames, only with reference to the frame encoded prior to present frame, the prediction of its movable information does not have according to current Block assumes the difference of number type of prediction and exports movable information from the adjacent block of different hypothesis number type of prediction, and this is not abundant Utilize the relevant information risen between the identical adjacent block for assuming number.
In HEVC, motion vector export is decided by the motion vector candidates list of structure and which shows in selective listing The sequence number of individual candidate.This mode needs the transmission sequence number in code stream, adds certain code stream expense.But it can be more accurate Ground predicted motion vector.Because HEVC is that it is not a kind of basis directly according to candidate motion vector sequence number derive motion vector Prediction direction type selects the motion vector deriving method with reference to adjacent block.In Merge patterns, current block not only moves arrow Amount is identical with selected adjacent block, and reference frame is also identical.If the prediction block of backward or forward is not present in adjacent block, Current block cannot go to attempt the prediction mode of backward or forward.This is a deficiency existing for Merge patterns.
The content of the invention
It is an object of the invention to for the weak point present in prior art, it is proposed that one kind is predicted according to current block Type can be prediction direction type to determine the how derived method of current block motion vector.This method can make full use of Block of pixels can use the characteristic of the prediction of different directions in coding and decoding video.Can taste the block of pixels under interframe special pattern A variety of prediction direction patterns such as two-way, backward, symmetrical, forward direction are tried, each pattern corresponds to derive motion vector respectively.The technology energy Enough lift the efficiency of Video coding.
The invention also provides a kind of prediction hypothesis number according to current block, to determine leading for the movable information of current block Go out method.This method can make full use of the correlation between the adjacent block of identical hypothesis number type of prediction, lifting Video coding effect Rate.
The first object of the present invention is to provide a kind of video decoding processing method, and it includes:
The information of the type of prediction of current block is obtained from code stream;According to the prediction type, current block is exported Prediction direction type;
With current block type of prediction identical adjacent block and current block motion is at least used a kind of prediction direction type Vector points to the direction identical movable information of reference frame, exports motion vector or motion vector predictor or the motion of current block Vectors candidates or motion vector predictor candidate.
The second object of the present invention is to provide a kind of video coding processing method, and it includes:
Using the reference frame with the reference frame of the current block prediction direction type identical adjacent block as current block;
Use the motion vector encoder current block of described reference frame, the prediction direction type of current block and current block, institute The motion vector for the current block stated is the motion vector with the adjacent block of current block prediction direction type identical current block;
Only current block prediction direction type information is write in code stream, and the reference frame information of current block and motion vector letter Breath is not written into code stream.
Further, in addition to by the motion vector of the adjacent block with current block prediction direction type identical current block exist Number information in the set of candidate motion vectors of current block is also write in code stream.
The third object of the present invention is to provide a kind of video coding processing method, and it includes:
Using the reference frame with the reference frame of the current block prediction direction type identical adjacent block as current block;
Use the motion vector encoder current block of described reference frame, the prediction direction type of current block and current block;
Current block prediction direction type information is write in code stream;Using current with current block prediction direction type identical Predicted value of the motion vector of the adjacent block of block as the motion vector of current block, by the motion vector of current block with it is described current The difference write-in code stream of the predicted value of the motion vector of block;And the reference frame information of current block is not written into code stream.
Further, in addition to by the motion vector of the adjacent block with current block prediction direction type identical current block exist The number information that the motion vector predictor candidate of current block is concentrated also is write in code stream.
The fourth object of the present invention is to provide a kind of video coding-decoding processing method, and it includes:
If in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical adjacent block With current block motion vector point to reference frame direction identical movable information, export current block motion vector or motion arrow Measure predicted value or motion vector candidates or motion vector predictor candidate;
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
The fifth object of the present invention is to provide a kind of video decoding processing device, and it includes:
The type of prediction reading unit of the information of the type of prediction of current block is obtained from code stream;
The prediction direction type setting unit of the prediction direction type of current block is set according to the type of prediction;
Motion vector lead-out unit, at least to a kind of prediction direction type use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
The sixth object of the present invention is to provide a kind of video coding processing device, and it includes:
Reference frame setting unit, for using with the reference frame of the current block prediction direction type identical adjacent block as The reference frame of current block;
Current block coding unit, for the fortune using the reference frame of current block, prediction direction type and corresponding current block Dynamic vector encodes current block;The motion vector of described current block is the phase with current block prediction direction type identical current block The motion vector of adjacent block;
Type of prediction writing unit, for only current block prediction direction type information to be write in code stream, the ginseng of current block Examine frame information and motion vector information is not written into code stream.
Further, in addition to motion vector candidates numbering writing unit, for will be with current block prediction direction type phase Number information of the motion vector of the adjacent block of same current block in the set of candidate motion vectors of current block is also write in code stream.
The seventh object of the present invention is to provide a kind of video coding processing device, and it includes:
Reference frame setting unit, for using with the reference frame of the current block prediction direction type identical adjacent block as The reference frame of current block;
Current block coding unit, for the fortune using the reference frame of current block, prediction direction type and corresponding current block Dynamic vector encodes current block;
Prediction direction type and motion vector difference writing unit, for current block prediction direction type information to be write into code stream In, and use and motion of the motion vector of the adjacent block of current block prediction direction type identical current block as current block The predicted value of vector, the difference of the motion vector of current block and the predicted value of the motion vector of the current block is write into code stream, and The reference frame information of current block is not written into code stream.
Further, in addition to motion vector candidates numbering writing unit, for will be with current block prediction direction type phase Number information of the motion vector of the adjacent block of same current block in the set of candidate motion vectors of current block is also write in code stream.
The eigth object of the present invention is to provide a kind of coding and decoding video processing unit, and it includes:
Same type motion vector lead-out unit, is specifically used for, if in the presence of with current block type of prediction identical adjacent block, The direction identical for pointing to reference frame with current block motion vector with current block type of prediction identical adjacent block is then used to transport Dynamic information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing;
Different types of movement vector derivation unit, is specifically used for, if in the absence of adjacent with current block type of prediction identical Block, then use the direction identical that reference frame is pointed to current block motion vector of the adjacent block different from current block type of prediction Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
The ninth object of the present invention is to provide a kind of video decoding processing method, and it includes:
The information of the type of prediction of current block is obtained from code stream;
According to the prediction type, the hypothesis number type of prediction of current block is exported;
At least assume that number type of prediction uses the motion with current block hypothesis number type of prediction identical adjacent block to a kind of Information, export movable information or motion information prediction value or movable information candidate or the motion information prediction value candidate of current block.
The tenth object of the present invention is to provide a kind of video coding processing method, and it includes:
Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
Using described reference frame, the motion vector encoder current block for assuming number type of prediction and current block of current block, The motion vector of described current block is the motion vector for the adjacent block that number type of prediction identical current block is assumed with current block;
Only current block is set in prediction type write-in code stream, and the reference frame information of current block, current block Motion vector information is not written into code stream.
Further, in addition to will assume with current block number type of prediction identical current block adjacent block motion vector Number information in the set of candidate motion vectors of current block is also write in code stream.
The present invention the 11st purpose be to provide a kind of video coding processing method, it includes:
Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
Use described reference frame, the motion vector encoder current block for assuming number type of prediction and current block of current block;
Current block is assumed in number prediction type write-in code stream;Assume number type of prediction identical using with current block Predicted value of the motion vector of the adjacent block of current block as the motion vector of current block, by the motion vector of current block with it is described The difference write-in code stream of the predicted value of the motion vector of current block;And the reference frame information of current block is not written into code stream.
Further, in addition to will assume with current block number type of prediction identical current block adjacent block motion vector Number information in the set of candidate motion vectors of current block is also write in code stream.
The present invention the 12nd purpose be to provide a kind of video coding-decoding processing method, it includes:
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate;
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The movable information of the different adjacent block of type, export current block movable information or motion information prediction value or movable information candidate or Motion information prediction value candidate.
The present invention the 13rd purpose be to provide a kind of video decoding processing device, it includes:
The type of prediction reading unit of the prediction type of current block is obtained from code stream;
The hypothesis number type of prediction setting unit of the hypothesis number type of prediction of current block is set according to the type of prediction;
Movable information lead-out unit, at least assuming one kind that the use of number type of prediction assumes number prediction class with current block The movable information of type identical adjacent block, export current block movable information or motion information prediction value or movable information candidate or Motion information prediction value candidate.
The present invention the 14th purpose be to provide a kind of video coding processing device, it includes:
Reference frame setting unit, for the reference frame that number type of prediction identical adjacent block is assumed with the current block to be made For the reference frame of current block;
Current block coding unit, for the reference frame using current block, hypothesis number type of prediction and corresponding current block Motion vector encoder current block;The motion vector of described current block is to assume number type of prediction identical current block with current block Adjacent block motion vector;
Type of prediction writing unit, for only current block to be set in prediction type write-in code stream, and current block Reference frame information, the motion vector information of current block be not written into code stream.
Further, in addition to motion vector candidates numbering writing unit, for number type of prediction will to be assumed with current block Number information of the motion vector of the adjacent block of identical current block in the set of candidate motion vectors of current block also writes code stream In.
The present invention the 15th purpose be to provide a kind of video coding processing device, it includes:
Reference frame setting unit, for the reference frame that number type of prediction identical adjacent block is assumed with the current block to be made For the reference frame of current block;
Current block coding unit, for the reference frame using current block, hypothesis number type of prediction and corresponding current block Motion vector encoder current block;
Assuming that number prediction type and motion vector difference writing unit, for current block to be assumed into number prediction type And in motion vector difference information write-in code stream, and use the adjacent block that number type of prediction identical current block is assumed with current block Predicted value of the motion vector as the motion vector of current block, the motion of the motion vector of current block and the current block is sweared The difference write-in code stream of the predicted value of amount, and the reference frame information of current block is not written into code stream.
Further, in addition to motion vector candidates numbering writing unit, for number type of prediction will to be assumed with current block Number information of the motion vector of the adjacent block of identical current block in the set of candidate motion vectors of current block also writes code stream In.
The present invention the 16th purpose be to provide a kind of coding and decoding video processing unit, it includes:
Identical hypothesis number type of prediction movable information lead-out unit, is specifically used for, if assuming number prediction in the presence of with current block Type identical adjacent block, then the movable information that number type of prediction identical adjacent block is assumed with current block is used, export is currently The movable information or motion information prediction value of block or movable information candidate or motion information prediction value candidate;
Difference assumes number type of prediction movable information lead-out unit, is specifically used for, if assuming that number is pre- in the absence of with current block Type identical adjacent block is surveyed, then uses the movable information of the adjacent block different from current block hypothesis number type of prediction, export is worked as Preceding piece of movable information or motion information prediction value or movable information candidate or motion information prediction value candidate.
The invention has the advantages that the video coding-decoding method and device of the present invention, by the prediction for obtaining current block Type, according to the type of prediction of current block export current block motion vector or motion vector predictor or motion vector candidates or Motion vector predictor candidate.The video coding-decoding method and device can make full use of the motion in the adjacent block of current block to swear Information is measured, the accuracy predicted in inter mode is improved, improves video coding efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of the first current block provided in an embodiment of the present invention and its adjacent block;
Fig. 2 is motion vector guiding device structural representation in a kind of Video processing provided in an embodiment of the present invention;
Fig. 3 is motion vector guiding device structural representation in a kind of Video coding that inventive embodiments provide;
Fig. 4 is motion vector guiding device structural representation in a kind of video decoding that inventive embodiments provide;
Fig. 5 is motion vector guiding device structural representation in another Video processing provided in an embodiment of the present invention;
Fig. 6 is motion vector guiding device structural representation in another Video coding that inventive embodiments provide;
Fig. 7 is motion vector guiding device structural representation in another video decoding that inventive embodiments provide.
Fig. 8 is movable information guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.
Fig. 9 is movable information guiding device structural representation in a kind of video decoding provided in an embodiment of the present invention.
Figure 10 is movable information guiding device structural representation in another video decoding provided in an embodiment of the present invention.
Figure 11 is movable information guiding device structural representation in another Video coding provided in an embodiment of the present invention.
Figure 12 is movable information guiding device structural representation in another Video coding provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment 1
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the prediction type of the current block is obtained from code stream.
Specifically, by parsing the prediction type in video code flow, to obtain the type of prediction of current block.
Step 2, according to the prediction type, the prediction direction type of current block is exported.A kind of possible situation is, Current block be B frames directly or skip mode, in the case of above-mentioned condition is met, also have syntactic element to indicate and currently treat in code stream Handle block of pixels type of prediction, it is a kind of it might be that the prediction type be current block prediction direction type, example Such as, the prediction direction type of current block can be one kind in two-way, backward, symmetrical, forward direction.
Step 3, if in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after step 1 obtains current block prediction direction type, according to prediction direction Type exports the motion vector of current block.
Before the motion vector of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
If there is no with current block type of prediction identical adjacent block, then according in the different adjacent block of type of prediction Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
In video encoding standard, whether we are by calculating the forward and backward motion vector of a block in straight line On, the type of prediction for judging this block is symmetrical type of prediction.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
Such as the first step, during derive motion vector, if the reference frame of current block and search choose it is adjacent The reference frame of block is same reference frame, then swears motion of the motion vector for searching for the adjacent block chosen directly as current block Amount.If the reference frame for the adjacent block that the reference frame of current block and search are chosen is not same reference frame, adjacent block is transported Dynamic vector is multiplied by " distance of current block and current block reference ", then divided by " between adjacent block and the reference block of adjacent block away from From ", motion vector of the obtained motion vector as current block.
If the movable information of current block can not be obtained as stated above, the movable information of current block is set to 0 motion arrow Amount and nearest reference frame.Specifically, if two-way or symmetrical prediction direction pattern, then preceding backward motion vector is all set to 0 Motion vector, reference frame is to be front and rear to nearest decoded frame;If forward prediction direction mode, then forward motion vector 0 motion vector is set to, reference frame is to be preceding to decoded nearest frame;If back forecast direction mode, then reverse is sweared Amount is set to 0 motion vector, and reference frame is backward decoded nearest frame.
Embodiment 2
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the prediction type of the current block is obtained from code stream.
Specifically, by parsing the prediction type in video code flow, to obtain the type of prediction of current block.
Step 2, according to the prediction type, the prediction direction type of current block is exported.A kind of possible situation is, Current block be B frames directly or skip mode, in the case of above-mentioned condition is met, also have syntactic element to indicate and currently treat in code stream Handle block of pixels type of prediction, it is a kind of it might be that the prediction type be current block prediction direction type, example Such as, the prediction direction type of current block can be one kind in two-way, backward, symmetrical, forward direction.
Step 3, if in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible way is:
If the predictive mode of current prediction unit is two-way, by the following method derive motion vector:
If adjacent block has bi-directional predicted piece, by F>G>C>A>B>D order scans adjacent block and obtains one successively Bi-directional predicted piece, transported the forward motion vector of the prediction block and backward motion vector as the forward direction of current prediction unit Dynamic vector and backward motion vector;
Otherwise, if adjacent block has forward and backward prediction block simultaneously, by F>G>C>A>B>D order scans successively Adjacent block obtains a forward prediction block and a back forecast block, by the forward motion vector and back forecast of forward prediction block Forward motion vector and backward motion vector of the backward motion vector of block respectively as current prediction unit;
Otherwise, the forward motion vector of current prediction unit and backward motion vector are zero vector.
Otherwise, if the predictive mode of current prediction unit is symmetrical, derive motion vector by the following method:
If there is symmetrical prediction block in adjacent block, by F>G>C>A>B>D order scans adjacent block and obtains one successively Symmetrical prediction block, transported the forward motion vector of the prediction block and backward motion vector as the forward direction of current prediction unit Dynamic vector and backward motion vector;
Otherwise, if adjacent block has more than one bi-directional predicted piece, by D>B>A>C>G>F order scans phase successively Adjacent block obtains one bi-directional predicted piece, using the forward motion vector of the prediction block and backward motion vector as current predictive The forward motion vector and backward motion vector of unit;
Otherwise, if back forecast block in adjacent block be present, by F>G>C>A>B>D order scans adjacent block and obtained successively To a back forecast block, the backward motion vector using the backward motion vector of the prediction block as current prediction unit, and will Forward motion vector as current prediction unit after this backward motion vector negates;
Otherwise, if forward prediction block in adjacent block be present, by F>G>C>A>B>D order scans adjacent block and obtained successively To a forward prediction block, the forward motion vector using the forward motion vector of the prediction block as current prediction unit, and will Backward motion vector as current prediction unit after this forward motion vector negates;
Otherwise, the forward motion vector of current prediction unit and backward motion vector are zero vector.
Otherwise, if the predictive mode of current prediction unit is backward, derive motion vector by the following method:
If there is back forecast block in adjacent block, by F>G>C>A>B>D order scans adjacent block and obtains one successively Back forecast block, the backward motion vector using the backward motion vector of the prediction block as current prediction unit;
Otherwise, if adjacent block has bi-directional predicted piece, by D>B>A>C>G>F order scans adjacent block and obtained successively One bi-directional predicted piece, the backward motion vector using its backward motion vector as current prediction unit;
Otherwise, the backward motion vector of current prediction unit is zero vector, in the absence of forward motion vector.
Otherwise, if the predictive mode of current prediction unit is preceding to derive motion vector by the following method:
If there is forward prediction block in adjacent block, by F>G>C>A>B>D order scans adjacent block and obtains one successively Forward prediction block, the forward motion vector using the forward motion vector of the prediction block as current prediction unit;
Otherwise, if adjacent block has bi-directional predicted piece, by D>B>A>C>G>F order scans adjacent block and obtained successively One bi-directional predicted piece, the forward motion vector using the forward motion vector of the prediction block as current prediction unit;
Otherwise, the forward motion vector of current prediction unit is zero vector, in the absence of backward motion vector.
Embodiment 3
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the prediction type of the current block is obtained from code stream.
Specifically, by parsing the prediction type in video code flow, to obtain the type of prediction of current block.
Step 2, according to the prediction type, the prediction direction type of current block is exported.A kind of possible situation is, Current block be B frames directly or skip mode, in the case of above-mentioned condition is met, also have syntactic element to indicate and currently treat in code stream Handle block of pixels type of prediction, it is a kind of it might be that the prediction type be current block prediction direction type, example Such as, the prediction direction type of current block can be one kind in two-way, backward, forward direction.
Step 3, if in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after step 1 obtains current block prediction direction type, according to prediction direction Type exports the motion vector of current block.
Before the motion vector of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
If there is no with current block type of prediction identical adjacent block, then according in the different adjacent block of type of prediction Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
Such as the first step, during derive motion vector, if the reference frame of current block and search choose it is adjacent The reference frame of block is same reference frame, then swears motion of the motion vector for searching for the adjacent block chosen directly as current block Amount.If the reference frame for the adjacent block that the reference frame of current block and search are chosen is not same reference frame, adjacent block is transported Dynamic vector is multiplied by " distance of current block and current block reference ", then divided by " between adjacent block and the reference block of adjacent block away from From ", motion vector of the obtained motion vector as current block.
If the movable information of current block can not be obtained as stated above, the movable information of current block is set to 0 motion arrow Amount and nearest reference frame.Specifically, if bi-directional predicted direction mode, then preceding backward motion vector is all set to 0 motion arrow Amount, reference frame is to be front and rear to nearest decoded frame;If forward prediction direction mode, then forward motion vector is set to 0 Motion vector, reference frame is to be preceding to decoded nearest frame;If back forecast direction mode, then backward motion vector is set to 0 motion vector, reference frame are backward decoded nearest frame.
Embodiment 4
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the prediction type of the current block is obtained from code stream.
Specifically, by parsing the prediction type in video code flow, to obtain the type of prediction of current block.
Step 2, according to the prediction type, the prediction direction type of current block is exported.A kind of possible situation is, Current block be B frames directly or skip mode, in the case of above-mentioned condition is met, also have syntactic element to indicate and currently treat in code stream Handle block of pixels type of prediction, it is a kind of it might be that the prediction type be current block prediction direction type, example Such as, the prediction direction type of current block can be one kind backward, in forward direction.
Step 3, if in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after step 1 obtains current block prediction direction type, according to prediction direction Type exports the motion vector of current block.
Before the motion vector of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
If there is no with current block type of prediction identical adjacent block, then according in the different adjacent block of type of prediction Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
Specifically, derive motion vector as follows:
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
Such as the first step, during derive motion vector, if the reference frame of current block and search choose it is adjacent The reference frame of block is same reference frame, then swears motion of the motion vector for searching for the adjacent block chosen directly as current block Amount.If the reference frame for the adjacent block that the reference frame of current block and search are chosen is not same reference frame, adjacent block is transported Dynamic vector is multiplied by " distance of current block and current block reference ", then divided by " between adjacent block and the reference block of adjacent block away from From ", motion vector of the obtained motion vector as current block.
If the movable information of current block can not be obtained as stated above, the movable information of current block is set to 0 motion arrow Amount and nearest reference frame.Specifically, if bi-directional predicted direction mode, then preceding backward motion vector is all set to 0 motion arrow Amount, reference frame is to be front and rear to nearest decoded frame;If forward prediction direction mode, then forward motion vector is set to 0 Motion vector, reference frame is to be preceding to decoded nearest frame;If back forecast direction mode, then backward motion vector is set to 0 motion vector, reference frame are backward decoded nearest frame.
Embodiment 5
Fig. 1 is the schematic diagram of the first current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided Video encoding/decoding method includes:
Step 1, the prediction type of the current block is obtained from code stream.
Specifically, by parsing the prediction type in video code flow, to obtain the type of prediction of current block.
Step 2, according to the prediction type, the prediction direction type of current block is exported.A kind of possible situation is, Current block be B frames directly or skip mode, in the case of above-mentioned condition is met, also have syntactic element to indicate and currently treat in code stream Handle block of pixels type of prediction, it is a kind of it might be that the prediction type be current block prediction direction type, example Such as, the prediction direction type of current block can be one kind in two-way, backward, symmetrical, forward direction.
Step 3, if in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical Adjacent block with current block motion vector point to reference frame direction identical movable information, export current block motion vector or Motion vector predictor or motion vector candidates or motion vector predictor candidate.
If in the absence of with current block type of prediction identical adjacent block, use different from current block type of prediction adjacent The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after step 1 obtains current block prediction direction type, according to prediction direction Type exports the motion vector of current block.
Before the motion vector of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.A kind of possible situation is to consider that A1~AN, B1~BM, C1, C2 are that current block is all existing adjacent Block, the priority orders of search are AN>AN-1>……>A1>BM>BM-1>……>B1>C1>C2.
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
If there is no with current block type of prediction identical adjacent block, then according in the different adjacent block of type of prediction Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
Such as the first step, during derive motion vector, if the reference frame of current block and search choose it is adjacent The reference frame of block is same reference frame, then swears motion of the motion vector for searching for the adjacent block chosen directly as current block Amount.If the reference frame for the adjacent block that the reference frame of current block and search are chosen is not same reference frame, adjacent block is transported Dynamic vector is multiplied by " distance of current block and current block reference ", then divided by " between adjacent block and the reference block of adjacent block away from From ", motion vector of the obtained motion vector as current block.
Embodiment 6
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the information of the type of prediction of current block is obtained from code stream.
Specifically, by parsing video code flow the prediction type that obtains.
Step 2, according to the prediction type, the hypothesis number type of prediction of current block is exported.A kind of possible situation For, current block be P frames directly or skip mode, in the case of above-mentioned condition is met, the syntactic element in code stream, export is worked as The prediction hypothesis number of preceding pending block of pixels, it is a kind of it might be that current block for it is double assume or it is single assume in one kind, root According to the syntax element information in code stream, export currently pending block of pixels is which time under certain hypothesis number type of prediction Choosing.
Step 2,
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate;
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The movable information of the different adjacent block of type, export current block movable information or motion information prediction value or movable information candidate or Motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block, and the movable information includes motion vector and reference frame information.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double first candidate for assuming block movable informations.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as double first candidate for assuming movable information of current block.
Otherwise, current block is double assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If existed in adjacent block, more than one is double to assume block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, the then fortune with current block prediction hypothesis number identical adjacent block searched first Dynamic information, as double second candidate for assuming movable information of current block.
If only existing a double hypothesis block in adjacent block, and the prediction block of more than one list hypothesis be present, then will be by AN> BM>C1>A1>B1>C2 orders, 2 single movable information combinations for assuming block for searching for obtain at first are used as current block is double to assume fortune Second candidate of dynamic information.
Otherwise, the candidate of current block motion information second is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, first candidate of movable information is assumed as current block list.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If more than one list in adjacent block be present assumes block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search and current block prediction hypothesis number identical block in adjacent block in block, if false in the presence of being predicted with current block If number identical adjacent block, then the movable information with current block prediction hypothesis number identical adjacent block searched first, Second candidate of movable information is assumed as current block list.
If only existing a single hypothesis block in adjacent block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1 >B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the combination of the first reference frame movable information are used as and worked as Preceding piece of single second candidate for assuming movable information.
Otherwise, current block list assumes that the candidate of movable information second is 0 motion vector, and reference frame is a nearest frame.
Embodiment 7
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the information of the type of prediction of current block is obtained from code stream.
Specifically, by parsing video code flow the prediction type that obtains.
Step 2, according to the prediction type, the hypothesis number type of prediction of current block is exported.A kind of possible situation For, current block be P frames directly or skip mode, in the case of above-mentioned condition is met, have syntactic element, export in code stream The prediction hypothesis number of currently pending block of pixels, it is a kind of it might be that current block is one kind in double hypothesis or single hypothesis.
Step 3, if assuming number type of prediction identical adjacent block in the presence of with current block, use and assume that number is pre- with current block The movable information of type identical adjacent block is surveyed, exports the movable information or motion information prediction value or movable information time of current block Choosing or motion information prediction value candidate.Movable information includes motion vector and reference frame information.
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The movable information of the different adjacent block of type, export current block movable information or motion information prediction value or movable information candidate or Motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double movable informations for assuming blocks.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as current double movable informations for assuming block.
Otherwise, current block is double assumes that movable information is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, single as current block assume movable information.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.Embodiment 8
Fig. 1 is the schematic diagram of a kind of current block provided in an embodiment of the present invention and its adjacent block.What the present embodiment provided regards Frequency coding/decoding method includes:
Step 1, the hypothesis number prediction type and candidate's value information of the current block are obtained from code stream.
Specifically, it is pre- to obtain the hypothesis number of current block by parsing the hypothesis number prediction type in video code flow Survey type.A kind of possible situation is, current block be P frames directly or skip mode, in the case of above-mentioned condition is met, according to code Syntactic element in stream, the hypothesis number type of prediction of currently pending block of pixels is exported, one kind is it might be that current block is One kind in double hypothesis or single hypothesis, the syntax element information in code stream, it is that certain is false to export currently pending block of pixels If which candidate under number type of prediction.
Step 2, if assuming number type of prediction identical adjacent block in the presence of with current block, use and assume that number is pre- with current block The movable information of type identical adjacent block is surveyed, exports the movable information or motion information prediction value or movable information time of current block Choosing or motion information prediction value candidate.Movable information includes motion vector and reference frame information.
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The direction identical movable information that reference frame is pointed to current block motion vector of the different adjacent block of type, export the fortune of current block Dynamic information or motion information prediction value or movable information candidate or motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
In the P frames of Video coding, we believe the motion of the block of DMH patterns (pair hypothesis based on direction is predicted) coding Breath only takes the information of its center motion vector and its reference frame to be used as and refers to movable information as the movable information singly assumed.
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double first candidate for assuming block movable informations.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as double first candidate for assuming movable information of current block.
Otherwise, current block is double assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If existed in adjacent block, more than one is double to assume block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as double second candidate for assuming movable informations of current block.
If only existing a double hypothesis block in adjacent block, and the prediction block of more than one list hypothesis be present, then will be by AN> BM>C1>A1>B1>C2 orders, 2 single movable information combinations for assuming block for searching for obtain at first are used as current block is double to assume fortune Second candidate of dynamic information.
Otherwise, the candidate of current block motion information second is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, first candidate of movable information is assumed as current block list.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If more than one list in adjacent block be present assumes block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as current block list assume movable information second candidate.
If only existing a single hypothesis block in adjacent block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1 >B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the combination of the first reference frame movable information are used as and worked as Preceding piece of single second candidate for assuming movable information.
Otherwise, current block list assumes that the candidate of movable information second is 0 motion vector, and reference frame is a nearest frame.
Step 3, according to derived hypothesis number prediction type and candidate's value information after parsing syntactic element, and the The reference movable information obtained in two steps, obtain the movable information of current block, including motion vector and reference frame.
Embodiment 9
Fig. 2 is motion vector guiding device structural representation in a kind of Video processing provided in an embodiment of the present invention.Such as Fig. 2 Shown, in the present embodiment, the motion vector guiding device in the Video processing includes motion vector lead-out unit 210.
The motion vector lead-out unit 210 that the present embodiment provides, is specifically used for:
Use the direction phase that reference frame is pointed to current block motion vector with current block type of prediction identical adjacent block Same movable information, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.Specially:
A kind of possible situation is, after current block prediction direction type is obtained, is worked as according to prediction direction type to export Preceding piece of motion vector.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.As shown in figure 1, a kind of possible situation is, A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are only considered For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, as follows derive motion vector:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
Embodiment 10
Fig. 2 is motion vector guiding device structural representation in a kind of Video processing provided in an embodiment of the present invention.Such as Fig. 2 Shown, in the present embodiment, the motion vector guiding device in the Video processing includes motion vector lead-out unit 210.
The motion vector lead-out unit 210 that the present embodiment provides, is specifically used for:
Using with what current block assumed number type of prediction identical adjacent block reference frame is pointed to current block motion vector Direction identical movable information, export the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.Specially:
A kind of possible situation is after obtaining current block and assuming number type of prediction, to be led according to number type of prediction is assumed Go out the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.As shown in figure 1, a kind of possible situation is, A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are only considered For AN>BM>C1>A1>B1>C2.
No matter the hypothesis number type of prediction of current block is how many, as follows derive motion vector:
According to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if Assume number type of prediction identical adjacent block in the presence of with current block, then what is searched according to first assumes number prediction with current block The movable information of type identical adjacent block, export the motion vector or motion vector predictor or motion vector candidates of current block Or motion vector predictor candidate.Embodiment 11
Fig. 3 is motion vector guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.Such as Fig. 3 Shown, in the present embodiment, the motion vector guiding device in the Video coding includes motion vector lead-out unit 310, prediction Type writing unit 320.
The motion vector lead-out unit 310 that the present embodiment provides, is specifically used for:
Use the direction phase that reference frame is pointed to current block motion vector with current block type of prediction identical adjacent block Same movable information, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.Specially:
A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks.Search for these blocks In with current block type of prediction identical adjacent block.A kind of possible situation is that current block is arranged to bi-directional type, adjacent block In have the adjacent block that A1 and B1 are bi-directional type.The then motion vector by the average value of A1 and B1 motion vectors as current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
Type of prediction writing unit 320, is specifically used for:
The type of prediction of current block is written in code stream.Specially:
In coding side, by calculating the rate distortion costs under current block all kinds, a rate distortion costs minimum is obtained Prediction direction type.The prediction direction type is written in code stream.
Embodiment 12
Fig. 4 is motion vector guiding device structural representation in a kind of video decoding provided in an embodiment of the present invention.Such as Fig. 4 Shown, in the present embodiment, the motion vector guiding device in the video decoding includes, prediction type reading unit 410, Motion vector lead-out unit 420.
The prediction type reading unit 410 that the present embodiment provides, is specifically used for:
The prediction type of current block is read from code stream, is specially:
A kind of possible situation is that the information of forecasting of current block is prediction direction information, and the information is compiled in coding side through entropy Code is had been written into code stream, in decoding end, it is necessary to carry out the prediction direction information that entropy decoding parses current block.
Motion vector lead-out unit 420, is specifically used for:
Use the direction phase that reference frame is pointed to current block motion vector with current block type of prediction identical adjacent block Same movable information, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.It is specifically used for:
A kind of possible situation is, after type of prediction setting unit sets current block prediction direction type, according to pre- Direction type is surveyed to export the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.As shown in figure 1, a kind of possible situation is, A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are only considered For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, as follows derive motion vector:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
Embodiment 13
Fig. 5 is motion vector guiding device structural representation in a kind of Video processing provided in an embodiment of the present invention.Such as Fig. 5 Shown, in the present embodiment, the motion vector guiding device in the Video processing includes, and judges to whether there is with working as in adjacent block The judging unit 510 of preceding piece of type of prediction same block, same type neighboring block motion vector derivation unit 520, different type phase Adjacent block motion vector lead-out unit 530.
What the present embodiment provided judges in adjacent block with the presence or absence of the judging unit with current block type of prediction same block 510, it is specifically used for:
Judge to whether there is in current block type of prediction identical block in adjacent block.Standard is done for next step derive motion vector It is standby.
Same type neighboring block motion vector derivation unit 520, is specifically used for:
If in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical adjacent block With current block motion vector point to reference frame direction identical movable information, export current block motion vector or motion arrow Measure predicted value or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after current block prediction direction type is obtained, according to prediction direction type come Export the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
Different type neighboring block motion vector derivation unit 530, is specifically used for:
If in the absence of with current block type of prediction identical adjacent block, be used in different adjacent of current block type of prediction The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
During derive motion vector, if the reference frame for the adjacent block that the reference frame of current block and search are chosen is Same reference frame, then it will search for motion vector of the motion vector directly as current block for the adjacent block chosen.It is if current The reference frame for the adjacent block that the reference frame of block and search are chosen is not same reference frame, then is multiplied by neighboring block motion vector " distance of current block and current block reference ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained fortune Motion vector of the dynamic vector as current block.
Embodiment 14
Fig. 6 is motion vector guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.Such as Fig. 6 Shown, in the present embodiment, the motion vector guiding device in the Video coding includes
Reference frame setting unit 610, for by the reference frame with the current block prediction direction type identical adjacent block Reference frame as current block;
Current block coding unit 620, for using the reference frame of current block, prediction direction type and corresponding current block Motion vector encoder current block;
Type of prediction and motion vector difference writing unit 630, for current block prediction direction type information to be write into code stream In, for using and motion of the motion vector of the adjacent block of current block prediction direction type identical current block as current block The predicted value of vector, the difference of the motion vector of current block and the predicted value is write into code stream.
The reference frame setting unit 610 that the present embodiment provides, for will be with the current block prediction direction type identical Reference frame of the reference frame of adjacent block as current block, is specifically used for:
It is current for the motion vector encoder using the reference frame of current block, prediction direction type and corresponding current block Block.The prediction direction type of current block can be forward, backward, it is symmetrical and two-way in one kind.
Current block coding unit 620, for using the reference frame of current block, prediction direction type and corresponding current block Motion vector encoder current block.
Type of prediction and motion vector difference writing unit 630, for current block prediction direction type information and motion to be sweared In amount difference write-in code stream.Specifically,
For by current block prediction direction type information, for use and current block prediction direction type identical current block Adjacent block predicted value of the motion vector as the motion vector of current block, by the motion vector of current block and the predicted value Difference write-in code stream.
If in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical adjacent block With current block motion vector point to reference frame direction identical movable information, export current block motion vector or motion arrow Measure predicted value or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after current block prediction direction type is obtained, according to prediction direction type come Export the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
Different type neighboring block motion vector derivation unit 630, is specifically used for:
If in the absence of with current block type of prediction identical adjacent block, be used in different adjacent of current block type of prediction The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
During derive motion vector, if the reference frame for the adjacent block that the reference frame of current block and search are chosen is Same reference frame, then it will search for motion vector of the motion vector directly as current block for the adjacent block chosen.It is if current The reference frame for the adjacent block that the reference frame of block and search are chosen is not same reference frame, then is multiplied by neighboring block motion vector " distance of current block and current block reference ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained fortune Motion vector of the dynamic vector as current block.
If derived is the predicted value candidate of the predicted value of current block motion vector or current block motion vector, ought Preceding piece of motion vector and the difference of derived motion vector predictor or motion vector predictor candidate are written in code stream.
Embodiment 15
Fig. 7 is motion vector guiding device structural representation in a kind of video decoding provided in an embodiment of the present invention.Such as Fig. 7 Shown, in the present embodiment, the motion vector guiding device in the Video coding includes, prediction type reading unit 710; The prediction direction type setting unit 720 of the prediction direction type of current block is set according to the type of prediction;Judge adjacent block In with the presence or absence of judging unit 730 with current block type of prediction same block;Same type neighboring block motion vector derivation unit 740, different type neighboring block motion vector derivation unit 750.
The information of forecasting reading unit 710 that the present embodiment provides, is specifically used for:
The prediction type of current block is read from code stream.
The prediction direction type setting unit 720 of the prediction direction type of current block, tool are set according to the type of prediction Body is used for:
A kind of possible situation is that the information of forecasting of current block is prediction direction information, and the information is compiled in coding side through entropy Code is had been written into code stream, in decoding end, it is necessary to carry out the prediction direction information that entropy decoding parses current block.By current block Type of prediction is arranged to parse the prediction type of obtained current block in code stream.The type of prediction of current block may be prediction Direction type may be forward, backward, it is two-way, symmetrical in one kind.
Judge with the presence or absence of the judging unit 730 with current block type of prediction same block to be specifically used in adjacent block:
Judge to whether there is in current block type of prediction identical block in adjacent block.Standard is done for next step derive motion vector It is standby.
Same type neighboring block motion vector derivation unit 740, is specifically used for:
If in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical adjacent block With current block motion vector point to reference frame direction identical movable information, export current block motion vector or motion arrow Measure predicted value or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after current block prediction direction type is obtained, according to prediction direction type come Export the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
Different type neighboring block motion vector derivation unit 750, is specifically used for:
If in the absence of with current block type of prediction identical adjacent block, be used in different adjacent of current block type of prediction The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
During derive motion vector, if the reference frame for the adjacent block that the reference frame of current block and search are chosen is Same reference frame, then it will search for motion vector of the motion vector directly as current block for the adjacent block chosen.It is if current The reference frame for the adjacent block that the reference frame of block and search are chosen is not same reference frame, then is multiplied by neighboring block motion vector " distance of current block and current block reference ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained fortune Motion vector of the dynamic vector as current block.
Embodiment 16
Fig. 8 is movable information guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.Such as Fig. 8 Shown, in the present embodiment, the motion vector guiding device in the Video coding includes:
Reference frame setting unit 810, for the reference of number type of prediction identical adjacent block will to be assumed with the current block Reference frame of the frame as current block;
Current block coding unit 820, for the reference frame using current block, assume number type of prediction and corresponding current block Motion vector encoder current block;
Type of prediction writing unit 830, for current block to be assumed in number prediction type write-in code stream;
The reference frame setting unit 810 that the present embodiment provides, is specifically used for:
Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
Current block coding unit 820, is specifically used for:
Use the motion vector encoder current block of the reference frame of current block, hypothesis number type of prediction and corresponding current block;
Type of prediction writing unit 830, for current block to be assumed in number prediction type write-in code stream;For using Assume the motion vector of the adjacent block of number type of prediction identical current block as the pre- of the motion vector of current block with current block Measured value, the hypothesis number type of prediction of current block is write into code stream.
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.
Specifically, a kind of possible situation is that after obtaining current block and assuming number type of prediction, class is predicted according to hypothesis number Type exports the movable information of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the movable information of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.Movable information includes motion vector and reference frame information.
Different type neighboring block motion vector derivation unit 830, is specifically used for:
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The direction identical movable information that reference frame is pointed to current block motion vector of the different adjacent block of type, export the fortune of current block Dynamic information or motion information prediction value or movable information candidate or motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double first candidate for assuming block movable informations.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as double first candidate for assuming movable information of current block.
Otherwise, current block is double assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If existed in adjacent block, more than one is double to assume block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as double second candidate for assuming movable informations of current block.
If only existing a double hypothesis block in adjacent block, and the prediction block of more than one list hypothesis be present, then will be by AN> BM>C1>A1>B1>C2 orders, 2 single movable information combinations for assuming block for searching for obtain at first are used as current block is double to assume fortune Second candidate of dynamic information.
Otherwise, the candidate of current block motion information second is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, first candidate of movable information is assumed as current block list.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If more than one list in adjacent block be present assumes block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as current block list assume movable information second candidate.
If only existing a single hypothesis block in adjacent block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1 >B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the combination of the first reference frame movable information are used as and worked as Preceding piece of single second candidate for assuming movable information.
Otherwise, current block list assumes that the candidate of movable information second is 0 motion vector, and reference frame is a nearest frame.
The hypothesis number type of prediction of current block and candidate's information are written in code stream.Specially:
In coding side, by calculating the rate distortion costs under current block all kinds, a rate distortion costs minimum is obtained Hypothesis number type of prediction and candidate number.It it will be assumed in several prediction types and candidate's information write-in code stream.Specifically, A kind of possible situation is that the first candidate of double hypothesis is represented with 1, and the second candidate of double hypothesis is represented with 2, single to assume that the first candidate uses 3 represent, single to assume that the second candidate is represented with 4.
Embodiment 17
Fig. 9 is movable information guiding device structural representation in a kind of video decoding provided in an embodiment of the present invention.Such as Fig. 9 Shown, in the present embodiment, the movable information guiding device in the Video coding includes, prediction type reading unit 910, The hypothesis number type of prediction setting unit 920 of the hypothesis number type of prediction of current block is set according to the type of prediction;Judge phase It whether there is the judging unit 930 that number type of prediction same block is assumed with current block, identical hypothesis number type of prediction phase in adjacent block Adjacent block movable information lead-out unit 940, difference assume number type of prediction neighboring block motion information lead-out unit 950.
The type of prediction reading unit 910 that the present embodiment provides, is specifically used for:
The hypothesis number prediction type of current block is read from code stream
The hypothesis number type of prediction setting unit of the hypothesis number type of prediction of current block is set according to the type of prediction 920, it is specifically used for:
A kind of possible situation, which is that the hypothesis number prediction type of current block is entropy encoded in coding side, has been written into code In stream, in decoding end, it is necessary to carry out the hypothesis number prediction type that entropy decoding parses current block.By the hypothesis number of current block Type of prediction is arranged to parse the hypothesis number prediction type of obtained current block in code stream.The hypothesis number prediction class of current block Type may be double one kind assumed in assuming with list.
Judge to whether there is the judging unit 930 for assuming number type of prediction same block with current block in adjacent block, it is specific to use In:
Judge to whether there is in adjacent block and assume number type of prediction identical block in current block.To export motion letter in next step Breath is prepared.
Identical hypothesis number type of prediction neighboring block motion information lead-out unit 940, is specifically used for:
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.
Difference assumes number type of prediction neighboring block motion information lead-out unit 950, is specifically used for:
Specifically, a kind of possible situation is, after obtaining current block and assuming number prediction type, according to assuming that number is pre- Type is surveyed to export the movable information of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the movable information of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.Movable information includes motion vector and reference frame information.
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The movable information of the different adjacent block of type, export current block movable information or motion information prediction value or movable information candidate or Motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double movable informations for assuming blocks.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as current double movable informations for assuming block.
Otherwise, current block is double assumes that movable information is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, single as current block assume movable information.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
Embodiment 18
Figure 10 is movable information guiding device structural representation in a kind of video decoding provided in an embodiment of the present invention.Such as figure Shown in 10, in the present embodiment, the movable information guiding device in the Video coding includes, it is assumed that number type of prediction and candidate number Information reading unit 1010, according to the hypothesis number type of prediction and candidate number of the type of prediction and candidate number setting current block Assuming that number type of prediction and candidate's setting unit 1020, judge to whether there is in adjacent block and assume number type of prediction with current block The judging unit 10,30 of same block, identical hypothesis number type of prediction neighboring block motion information lead-out unit 1040, difference assumes number Type of prediction neighboring block motion information lead-out unit 1050.
The hypothesis number type of prediction and candidate's reading unit 1010 that the present embodiment provides, are specifically used for:
From code stream read current block hypothesis number type of prediction and candidate's information and.
Set the hypothesis number for assuming number type of prediction and candidate number of current block pre- according to the type of prediction and candidate number Type and candidate's setting unit 1020 are surveyed, is specifically used for:
A kind of possible situation is that the hypothesis number type of prediction and candidate's information of current block are entropy encoded in coding side and write Enter into code stream, in decoding end, it is necessary to carry out hypothesis number type of prediction and candidate's information that entropy decoding parses current block. By decoding obtain current block may be it is double assume the first candidate, the second candidate of double hypothesis is single to assume the first candidate, single to assume the One kind in two candidates.
Judge to whether there is the judging unit 1030 for assuming number type of prediction same block with current block in adjacent block, it is specific to use In:
Judge to whether there is in adjacent block and assume number type of prediction identical block in current block.To export motion letter in next step Breath is prepared.
Identical hypothesis number type of prediction neighboring block motion information lead-out unit 1040, is specifically used for:
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.Movable information includes motion vector and reference frame information.
Difference assumes number type of prediction neighboring block motion information lead-out unit 1050
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The direction identical movable information that reference frame is pointed to current block motion vector of the different adjacent block of type, export the fortune of current block Dynamic information or motion information prediction value or movable information candidate or motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
In the P frames of Video coding, the movable information of the block of DMH pattern-codings is regarded the motion singly assumed and believed by us Breath, only take the information of its center motion vector and its reference frame to be used as and refer to movable information.
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double first candidate for assuming block movable informations.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as double first candidate for assuming movable information of current block.
Otherwise, current block is double assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If existed in adjacent block, more than one is double to assume block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as double second candidate for assuming movable informations of current block.
If only existing a double hypothesis block in adjacent block, and the prediction block of more than one list hypothesis be present, then will be by AN> BM>C1>A1>B1>C2 orders, 2 single movable information combinations for assuming block for searching for obtain at first are used as current block is double to assume fortune Second candidate of dynamic information.
Otherwise, the candidate of current block motion information second is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, first candidate of movable information is assumed as current block list.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If more than one list in adjacent block be present assumes block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as current block list assume movable information second candidate.
If only existing a single hypothesis block in adjacent block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1 >B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the combination of the first reference frame movable information are used as and worked as Preceding piece of single second candidate for assuming movable information.
Otherwise, current block list assumes that the candidate of movable information second is 0 motion vector, and reference frame is a nearest frame.
Embodiment 19
Figure 11 is motion vector guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.Such as figure Shown in 11, in the present embodiment, the motion vector guiding device in the Video coding includes
Reference frame setting unit 1110, for by the reference frame with the current block prediction direction type identical adjacent block Reference frame as current block;
Current block coding unit 1120, for reference frame, prediction direction type and the corresponding current block using current block Motion vector encoder current block;
Type of prediction and motion vector difference writing unit 1130, for current block prediction direction type information to be write into code stream In, for using and motion of the motion vector of the adjacent block of current block prediction direction type identical current block as current block The predicted value of vector, the difference of the motion vector of current block and the predicted value is write into code stream.
Motion vector candidates numbering writing unit 1140, for the motion vector candidates numbering of current block to be written into code stream In.
The reference frame setting unit 1110 that the present embodiment provides, for will be with the current block prediction direction type identical Reference frame of the reference frame of adjacent block as current block, is specifically used for:
It is current for the motion vector encoder using the reference frame of current block, prediction direction type and corresponding current block Block.The prediction direction type of current block can be forward, backward, it is symmetrical and two-way in one kind.
Current block coding unit 1120, for reference frame, prediction direction type and the corresponding current block using current block Motion vector encoder current block.,
Type of prediction and motion vector difference writing unit 1130, for current block prediction direction type information and motion to be sweared In amount difference write-in code stream.Specifically,
For by current block prediction direction type information, for use and current block prediction direction type identical current block Adjacent block predicted value of the motion vector as the motion vector of current block, by the motion vector of current block and the predicted value Difference write-in code stream.
If in the presence of with current block type of prediction identical adjacent block, use and current block type of prediction identical adjacent block With current block motion vector point to reference frame direction identical movable information, export current block motion vector or motion arrow Measure predicted value or motion vector candidates or motion vector predictor candidate.
Specifically, a kind of possible situation is, after current block prediction direction type is obtained, according to prediction direction type come Export the motion vector of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the motion vector of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
No matter which kind of type is the prediction direction type of current block be, first step derive motion vector as follows:
According to priority sequential search and current block type of prediction identical block from the adjacent block in current block, if in the presence of with Current block type of prediction identical adjacent block, then searched according to first with current block type of prediction identical adjacent block Movable information, export the motion vector or motion vector predictor or motion vector candidates or motion vector predictor time of current block Choosing.
If the reference frame for the adjacent block that the reference frame of current block and search are chosen is same reference frame, search is selected In adjacent block motion vector directly as current block motion vector.If the phase that the reference frame of current block and search are chosen The reference frame of adjacent block is not same reference frame, then neighboring block motion vector is multiplied by " current block and current block reference away from From ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained motion vector as current block motion swear Amount.
If in the absence of with current block type of prediction identical adjacent block, be used in different adjacent of current block type of prediction The direction identical movable information that reference frame is pointed to current block motion vector of block, exports motion vector or the motion of current block Vector predictor or motion vector candidates or motion vector predictor candidate.
Specifically, derive motion vector as follows:
If the type of prediction of current block is bi-directional predicted type, and in the absence of the adjacent of bi-directional predicted type in adjacent block Block, the adjacent block of forward prediction type and back forecast type be present, then according to the motion vector of forward prediction type adjacent block, The motion vector or motion vector predictor or motion vector of the motion vector export current block of back forecast type adjacent block are waited Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, there is more than one bi-directional predicted piece, then first arrived according to the opposite sequential search of according to priority order is bi-directional predicted The information of doing exercises of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, back forecast block be present, then according to first that according to priority sequential search arrives after To the movable information of prediction block, export backward motion vector, and by the motion vector it is reverse after obtain forward motion vector, will The derived forward and backward motion vector is waited as the motion vector or motion vector predictor or motion vector of current block Choosing or motion vector predictor candidate.
If the type of prediction of current block is symmetrical type of prediction, and in the absence of the adjacent of symmetrical type of prediction in adjacent block Block, in the absence of more than one bi-directional predicted piece, in the absence of back forecast block, forward prediction block be present, then according to according to priority suitable Sequence searches for the movable information of first obtained forward prediction block, exports forward motion vector, and reverse by the motion vector After obtain backward motion vector, using the derived forward and backward motion vector as the motion vector of current block or motion swear Measure predicted value or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The reverse information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the reverse information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is back forecast type, and in the absence of the adjacent of back forecast type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The movable information of block, export the motion vector or motion vector predictor or motion vector candidates or motion-vector prediction of current block It is worth candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, there is more than one bi-directional predicted piece, then first Two-way obtained according to the opposite sequential search of according to priority order The propulsion information of block is surveyed, exports the motion vector or motion vector predictor or motion vector candidates or motion arrow of current block Measure predicted value candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, one bi-directional predicted piece is only existed, then according to bi-directional predicted piece of the propulsion information, export the motion vector of current block Or motion vector predictor or motion vector candidates or motion vector predictor candidate.
If the type of prediction of current block is forward prediction type, and in the absence of the adjacent of forward prediction type in adjacent block Block, in the absence of bi-directional predicted piece, symmetrical prediction block be present, then the symmetrical prediction of first obtained according to according to priority sequential search The propulsion information of block, export the motion vector or motion vector predictor or motion vector candidates or motion vector of current block Predicted value candidate.
During derive motion vector, if the reference frame for the adjacent block that the reference frame of current block and search are chosen is Same reference frame, then it will search for motion vector of the motion vector directly as current block for the adjacent block chosen.It is if current The reference frame for the adjacent block that the reference frame of block and search are chosen is not same reference frame, then is multiplied by neighboring block motion vector " distance of current block and current block reference ", then divided by " the distance between reference block of adjacent block and adjacent block ", obtained fortune Motion vector of the dynamic vector as current block.
If derived is the predicted value candidate of the predicted value of current block motion vector or current block motion vector, ought Preceding piece of motion vector and the difference of derived motion vector predictor or motion vector predictor candidate are written in code stream.
Motion vector candidates numbering writing unit 1140, for the motion vector candidates numbering of current block to be written into code stream In.
Embodiment 20
Figure 12 is movable information guiding device structural representation in a kind of Video coding provided in an embodiment of the present invention.Such as figure Shown in 12, in the present embodiment, the motion vector guiding device in the Video coding includes:
Reference frame setting unit 1210, for the reference of number type of prediction identical adjacent block will to be assumed with the current block Reference frame of the frame as current block;
Current block coding unit 1220, for the reference frame using current block, assume number type of prediction and corresponding current The motion vector encoder current block of block;
Type of prediction and motion vector difference writing unit 1230, for current block to be assumed into number prediction type write-in code In stream;
Motion vector candidates numbering writing unit 1240, for current piece of motion vector candidates numbering to be written into code stream In.
The reference frame setting unit 1210 that the present embodiment provides, is specifically used for:
Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
Current block coding unit 1220, is specifically used for:
Use the motion vector encoder current block of the reference frame of current block, hypothesis number type of prediction and corresponding current block;
Type of prediction writing unit 1230, for current block to be assumed in number prediction type write-in code stream;For making The motion vector of current block is used as by the use of the motion vector for the adjacent block that number type of prediction identical current block is assumed with current block Predicted value, the difference of the motion vector of current block and the predicted value is write into code stream.
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.
Specifically, a kind of possible situation is that after obtaining current block and assuming number type of prediction, class is predicted according to hypothesis number Type exports the movable information of current block.
, it is necessary to determine that the priority of search adjacent block is suitable first before the movable information of current block is exported as follows Sequence.A kind of possible situation is, as shown in figure 1, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search For AN>BM>C1>A1>B1>C2.
If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume number type of prediction with current block The movable information of identical adjacent block, export the movable information or motion information prediction value or movable information candidate or fortune of current block Dynamic information prediction value candidate.Movable information includes motion vector and reference frame information.
If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number prediction class with current block The direction identical movable information that reference frame is pointed to current block motion vector of the different adjacent block of type, export the fortune of current block Dynamic information or motion information prediction value or movable information candidate or motion information prediction value candidate.
Specifically, a kind of possible situation is, is obtained in step 1 after current block assumes number type of prediction, according to assuming number Type of prediction exports the movable information of current block.
Before the movable information of current block is exported as follows, a kind of possible situation is, it is first determined search is adjacent The priority orders of block.For example, only considering A1, AN, B1, BM, C1, C2 totally 6 blocks, the priority orders of search are AN>BM>C1 >A1>B1>C2。
If the hypothesis number type of prediction of current block is double it is assumed that the priority orders of search are AN>BM>C1>A1>B1> C2, according to priority sequential search assumes number type of prediction identical block with current block from the adjacent block in current block, if in the presence of Assume number type of prediction identical adjacent block with current block, then what is searched first assumes number type of prediction phase with current block The movable information of same adjacent block, as current double first candidate for assuming block movable informations.
Assume that number type of prediction identical is all double adjacent blocks assumed if there is no with current block, and exist and be more than 1 The individual adjacent block singly assumed, then will be by AN>BM>C1>A1>B1>C2 orders, 2 obtained single motions for assuming block are searched at first Information combination is as double first candidate for assuming movable information of current block.
Otherwise, current block is double assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If existed in adjacent block, more than one is double to assume block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as double second candidate for assuming movable informations of current block.
If only existing a double hypothesis block in adjacent block, and the prediction block of more than one list hypothesis be present, then will be by AN> BM>C1>A1>B1>C2 orders, 2 single movable information combinations for assuming block for searching for obtain at first are used as current block is double to assume fortune Second candidate of dynamic information.
Otherwise, the candidate of current block motion information second is 0 motion vector, and reference frame is a nearest frame.
If current block assumes prediction block to be single, the priority orders of search are AN>BM>C1>A1>B1>C2, from current block In adjacent block according to priority sequential search and current block assume number type of prediction identical block, if assuming in the presence of with current block Number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, first candidate of movable information is assumed as current block list.
Assume number type of prediction identical block if there is no with current block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1>B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the motion of the first reference frame are believed First candidate of movable information is assumed in breath combination as current block list.
Otherwise, current block list assumes that the candidate of movable information first is 0 motion vector, and reference frame is a nearest frame.
If more than one list in adjacent block be present assumes block, according to priority order C2>B1>A1>C1>BM>AN, from current According to priority sequential search assumes number type of prediction identical block with current block in adjacent block in block, if in the presence of false with current block If number type of prediction identical adjacent block, then what is searched first assumes number type of prediction identical adjacent block with current block Movable information, as current block list assume movable information second candidate.
If only existing a single hypothesis block in adjacent block, and double prediction blocks assumed be present, then will be by AN>BM>C1>A1 >B1>C2 orders, at first the first motion vector of double hypothesis blocks that search obtains and the combination of the first reference frame movable information are used as and worked as Preceding piece of single second candidate for assuming movable information.Otherwise, current block list assumes that the candidate of movable information second is 0 motion vector, Reference frame is a nearest frame.
The hypothesis number prediction type of current block is written in code stream.
Motion vector candidates numbering writing unit 1240, is specifically used for:
In coding side, by calculating the rate distortion costs under current block all kinds, a rate distortion costs minimum is obtained Hypothesis number type of prediction and candidate number.It it will be assumed in several prediction types and candidate's information write-in code stream.Specifically, A kind of possible situation is that the first candidate of double hypothesis is represented with 1, and the second candidate of double hypothesis is represented with 2, single to assume that the first candidate uses 3 represent, single to assume that the second candidate is represented with 4.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modifications or replacement, the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (12)

  1. A kind of 1. video decoding processing method, it is characterised in that including:
    The information of the type of prediction of current block is obtained from code stream;
    According to the prediction type, the hypothesis number type of prediction of current block is exported;
    At least assume that number type of prediction uses the movable information with current block hypothesis number type of prediction identical adjacent block to a kind of, Export movable information or motion information prediction value or movable information candidate or the motion information prediction value candidate of current block.
  2. A kind of 2. video coding processing method, it is characterised in that including:
    Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
    It is described using described reference frame, the motion vector encoder current block for assuming number type of prediction and current block of current block Current block motion vector be with current block assume number type of prediction identical current block adjacent block motion vector;
    Only current block is set in prediction type write-in code stream, and the motion of the reference frame information of current block, current block Vector Message is not written into code stream.
  3. 3. method for processing video frequency according to claim 2, it is characterised in that
    The motion vector for assuming the adjacent block of number type of prediction identical current block with current block is sweared in the Candidate Motion of current block Number information in quantity set is also write in code stream.
  4. A kind of 4. video coding processing method, it is characterised in that including:
    Reference frame of the reference frame as current block of number type of prediction identical adjacent block will be assumed with the current block;
    Use described reference frame, the motion vector encoder current block for assuming number type of prediction and current block of current block;
    Current block is assumed in number prediction type write-in code stream;Assume that number type of prediction identical is current using with current block Predicted value of the motion vector of the adjacent block of block as the motion vector of current block, by the motion vector of current block with it is described current The difference write-in code stream of the predicted value of the motion vector of block;And the reference frame information of current block is not written into code stream.
  5. 5. video coding processing method described in claim 4, it is characterised in that
    The motion vector for assuming the adjacent block of number type of prediction identical current block with current block is sweared in the Candidate Motion of current block Number information in quantity set is also write in code stream.
  6. A kind of 6. video coding-decoding processing method, it is characterised in that including:
    If assuming number type of prediction identical adjacent block in the presence of with current block, use and assume that number type of prediction is identical with current block Adjacent block movable information, export the movable information or motion information prediction value or movable information candidate or motion letter of current block Cease predicted value candidate;
    If assuming number type of prediction identical adjacent block in the absence of with current block, use and assume number type of prediction not with current block The movable information of same adjacent block, exports movable information or motion information prediction value or movable information candidate or the motion of current block Information prediction value candidate.
  7. A kind of 7. video decoding processing device, it is characterised in that including:
    The type of prediction reading unit of the prediction type of current block is obtained from code stream;
    The hypothesis number type of prediction setting unit of the hypothesis number type of prediction of current block is set according to the type of prediction;
    Movable information lead-out unit, at least assuming that the use of number type of prediction assumes number type of prediction phase with current block to one kind The movable information of same adjacent block, exports movable information or motion information prediction value or movable information candidate or the motion of current block Information prediction value candidate.
  8. A kind of 8. video coding processing device, it is characterised in that including:
    Reference frame setting unit, for using with the current block assume number type of prediction identical adjacent block reference frame as ought Preceding piece of reference frame;
    Current block coding unit, the motion for the reference frame using current block, hypothesis number type of prediction and corresponding current block Vector coding current block;The motion vector of described current block is the phase that number type of prediction identical current block is assumed with current block The motion vector of adjacent block;
    Type of prediction writing unit, for only current block to be set in prediction type write-in code stream, and the ginseng of current block Examine frame information, the motion vector information of current block is not written into code stream.
  9. 9. video coding processing device according to claim 8, it is characterised in that
    Motion vector candidates numbering writing unit, for the adjacent block of number type of prediction identical current block will to be assumed with current block Number information of the motion vector in the set of candidate motion vectors of current block also write in code stream.
  10. A kind of 10. video coding processing device, it is characterised in that including:
    Reference frame setting unit, for using with the current block assume number type of prediction identical adjacent block reference frame as ought Preceding piece of reference frame;
    Current block coding unit, the motion for the reference frame using current block, hypothesis number type of prediction and corresponding current block Vector coding current block;
    Assuming that number prediction type and motion vector difference writing unit, for current block to be assumed into number prediction type and fortune In dynamic vector difference information write-in code stream, and the fortune using the adjacent block that number type of prediction identical current block is assumed with current block Predicted value of the dynamic vector as the motion vector of current block, by the motion vector of the motion vector of current block and the current block The difference write-in code stream of predicted value, and the reference frame information of current block is not written into code stream.
  11. 11. video coding processing device according to claim 10, it is characterised in that
    Motion vector candidates numbering writing unit, for the adjacent block of number type of prediction identical current block will to be assumed with current block Number information of the motion vector in the set of candidate motion vectors of current block also write in code stream.
  12. A kind of 12. coding and decoding video processing unit, it is characterised in that including:
    Identical hypothesis number type of prediction movable information lead-out unit, is specifically used for, if assuming number type of prediction in the presence of with current block Identical adjacent block, then the movable information that number type of prediction identical adjacent block is assumed with current block is used, exports current block Movable information or motion information prediction value or movable information candidate or motion information prediction value candidate;
    Difference assumes number type of prediction movable information lead-out unit, is specifically used for, if assuming number prediction class in the absence of with current block Type identical adjacent block, then the movable information of the adjacent block different from current block hypothesis number type of prediction is used, exports current block Movable information or motion information prediction value or movable information candidate or motion information prediction value candidate.
CN201710983987.7A 2013-06-15 2013-12-13 Video coding and decoding processing method and device Active CN107770524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710983987.7A CN107770524B (en) 2013-06-15 2013-12-13 Video coding and decoding processing method and device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN 201310240700 CN103338372A (en) 2013-06-15 2013-06-15 Method and device for processing video
CN201710983987.7A CN107770524B (en) 2013-06-15 2013-12-13 Video coding and decoding processing method and device
CN201310690704.1A CN104243982B (en) 2013-06-15 2013-12-13 A kind of video coding-decoding processing method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201310690704.1A Division CN104243982B (en) 2013-06-15 2013-12-13 A kind of video coding-decoding processing method and device

Publications (2)

Publication Number Publication Date
CN107770524A true CN107770524A (en) 2018-03-06
CN107770524B CN107770524B (en) 2020-11-06

Family

ID=49246458

Family Applications (3)

Application Number Title Priority Date Filing Date
CN 201310240700 Pending CN103338372A (en) 2013-06-15 2013-06-15 Method and device for processing video
CN201310690704.1A Active CN104243982B (en) 2013-06-15 2013-12-13 A kind of video coding-decoding processing method and device
CN201710983987.7A Active CN107770524B (en) 2013-06-15 2013-12-13 Video coding and decoding processing method and device

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN 201310240700 Pending CN103338372A (en) 2013-06-15 2013-06-15 Method and device for processing video
CN201310690704.1A Active CN104243982B (en) 2013-06-15 2013-12-13 A kind of video coding-decoding processing method and device

Country Status (1)

Country Link
CN (3) CN103338372A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351565A (en) * 2018-04-02 2019-10-18 浙江大学 A kind of reference zone motion vector deriving method and device
CN112913249A (en) * 2018-10-22 2021-06-04 北京字节跳动网络技术有限公司 Simplified coding and decoding of generalized bi-directional prediction index

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338372A (en) * 2013-06-15 2013-10-02 浙江大学 Method and device for processing video
CN111193930B (en) 2013-12-16 2021-11-30 浙江大学 Method and device for coding and decoding forward double-hypothesis coding image block
CN106031170B (en) * 2014-04-01 2019-04-26 联发科技股份有限公司 The method of motion information coding
CN104661031B (en) * 2015-02-16 2017-12-22 华为技术有限公司 For encoding video pictures and method, encoding device and the decoding device of decoding
CN109644271B (en) * 2016-09-06 2021-04-13 联发科技股份有限公司 Method and device for determining candidate set for binary tree partition block
CN109089119B (en) 2017-06-13 2021-08-13 浙江大学 Method and equipment for predicting motion vector
WO2019000443A1 (en) 2017-06-30 2019-01-03 华为技术有限公司 Inter-frame prediction method and device
CN107396102B (en) * 2017-08-30 2019-10-08 中南大学 A kind of inter-frame mode fast selecting method and device based on Merge technological movement vector
CN109672894B (en) * 2017-10-13 2022-03-08 腾讯科技(深圳)有限公司 Inter-frame prediction method, device and storage medium
WO2019084776A1 (en) * 2017-10-31 2019-05-09 华为技术有限公司 Method and device for obtaining candidate motion information of image block, and codec
KR102639425B1 (en) 2018-07-11 2024-02-21 후아웨이 테크놀러지 컴퍼니 리미티드 Video encoders, video decoders, and corresponding methods
TWI720551B (en) 2018-07-18 2021-03-01 聯發科技股份有限公司 Method and apparatus of inter prediction for video coding
CN110868601B (en) * 2018-08-28 2024-03-15 华为技术有限公司 Inter-frame prediction method, inter-frame prediction device, video encoder and video decoder
CN110876059B (en) * 2018-09-03 2022-06-10 华为技术有限公司 Method and device for acquiring motion vector, computer equipment and storage medium
PL3861743T3 (en) 2018-10-24 2024-05-13 Huawei Technologies Co., Ltd. Video decoder and methods
CN111263166B (en) * 2018-11-30 2022-10-11 华为技术有限公司 Video image prediction method and device
WO2020108168A1 (en) * 2018-11-30 2020-06-04 华为技术有限公司 Video image prediction method and device
CN111385575A (en) * 2018-12-29 2020-07-07 华为技术有限公司 Inter-frame prediction method and device and corresponding encoder and decoder
WO2020140242A1 (en) * 2019-01-03 2020-07-09 北京大学 Video processing method and apparatus
CN111698506B (en) 2019-03-11 2022-04-26 杭州海康威视数字技术股份有限公司 Motion information candidate list construction method, triangle prediction decoding method and device
CN113647108A (en) 2019-03-27 2021-11-12 北京字节跳动网络技术有限公司 History-based motion vector prediction

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050025567A (en) * 2003-09-07 2005-03-14 마이크로소프트 코포레이션 Predicting motion vectors for fields of forward-predicted interlaced video frames
CN101350925A (en) * 2008-07-11 2009-01-21 清华大学 Method for filtering interpolation
CN102227132A (en) * 2011-05-25 2011-10-26 深圳市融创天下科技股份有限公司 Motion vector prediction coding and decoding method, apparatus thereof and coding and decoding system
CN102377992A (en) * 2010-08-06 2012-03-14 华为技术有限公司 Method and device for obtaining predicted value of motion vector
KR20120084923A (en) * 2011-01-21 2012-07-31 에스케이 텔레콤주식회사 Motion information generating apparatus and method using motion vector predictor index coding, and image encoding/decoding apparatus and method using the same
CN103190151A (en) * 2010-08-17 2013-07-03 吴秀美 Inter prediction encoding method
CN103338372A (en) * 2013-06-15 2013-10-02 浙江大学 Method and device for processing video

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6983018B1 (en) * 1998-11-30 2006-01-03 Microsoft Corporation Efficient motion vector coding for video compression
JP2002051342A (en) * 2000-08-04 2002-02-15 Canon Inc Coding apparatus, method of coding and storage medium
KR100774296B1 (en) * 2002-07-16 2007-11-08 삼성전자주식회사 Method and apparatus for encoding and decoding motion vectors
TWI224930B (en) * 2002-07-18 2004-12-01 Lg Electronics Inc Calculation method for prediction motion vector
KR20120009861A (en) * 2010-07-22 2012-02-02 에스케이 텔레콤주식회사 Method and Apparatus for Encoding/Decoding of Video Data Using Expanded Skip Mode
FR2969456A1 (en) * 2010-12-15 2012-06-22 France Telecom METHODS AND DEVICES FOR ENCODING AND DECODING AT LEAST ONE IMAGE USING A PREDICT PIXEL SELECTION, CORRESPONDING COMPUTER PROGRAM
CN103024378B (en) * 2012-12-06 2016-04-13 浙江大学 Movable information deriving method and device in a kind of coding and decoding video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050025567A (en) * 2003-09-07 2005-03-14 마이크로소프트 코포레이션 Predicting motion vectors for fields of forward-predicted interlaced video frames
CN101350925A (en) * 2008-07-11 2009-01-21 清华大学 Method for filtering interpolation
CN102377992A (en) * 2010-08-06 2012-03-14 华为技术有限公司 Method and device for obtaining predicted value of motion vector
CN103190151A (en) * 2010-08-17 2013-07-03 吴秀美 Inter prediction encoding method
KR20120084923A (en) * 2011-01-21 2012-07-31 에스케이 텔레콤주식회사 Motion information generating apparatus and method using motion vector predictor index coding, and image encoding/decoding apparatus and method using the same
CN102227132A (en) * 2011-05-25 2011-10-26 深圳市融创天下科技股份有限公司 Motion vector prediction coding and decoding method, apparatus thereof and coding and decoding system
CN103338372A (en) * 2013-06-15 2013-10-02 浙江大学 Method and device for processing video

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351565A (en) * 2018-04-02 2019-10-18 浙江大学 A kind of reference zone motion vector deriving method and device
CN110351565B (en) * 2018-04-02 2021-08-03 浙江大学 Method and device for exporting motion vector of reference region
CN112913249A (en) * 2018-10-22 2021-06-04 北京字节跳动网络技术有限公司 Simplified coding and decoding of generalized bi-directional prediction index
CN112913249B (en) * 2018-10-22 2022-11-08 北京字节跳动网络技术有限公司 Simplified coding and decoding of generalized bi-directional prediction index

Also Published As

Publication number Publication date
CN103338372A (en) 2013-10-02
CN107770524B (en) 2020-11-06
CN104243982A (en) 2014-12-24
CN104243982B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN104243982B (en) A kind of video coding-decoding processing method and device
CN105915914B (en) Remove the method and apparatus of redundancy in motion vector predictor
CN110169061A (en) The merging patterns of multiple hypothesis
CN105704495B (en) The method and apparatus of motion vector prediction
WO2020182166A1 (en) Method and device for constructing motion information candidate list
CN103260031B (en) Method and apparatus for encoding/decoding to motion vector
CN105847835B (en) The method and apparatus for handling vision signal
CN102098519B (en) Video encoding method and decoding method as well as encoding and decoding device
CN102835111B (en) The motion vector of previous block is used as the motion vector of current block, image to be carried out to the method and apparatus of coding/decoding
CN105306945A (en) Scalable synopsis coding method and device for monitor video
CN106803960A (en) Picture decoding method
CN108605137A (en) The method for video coding and device compensated using affine motion
CN101610413B (en) Video coding/decoding method and device
CN105898325B (en) The derivation method and device of motion vector predictor candidate item set
CN110213590A (en) Time-domain motion vector acquisition, inter-prediction, Video coding method and apparatus
CN106101720A (en) Video encoding/decoding method
CN101379835A (en) Method and apparatus for motion estimation using combined reference bi-prediction
CN108259913A (en) A kind of intra-frame prediction method in MB of prediction frame
CN102883161A (en) Video encoding and decoding processing method and device
CN105025298A (en) A method and device of encoding/decoding an image
CN113225555B (en) Geometric partition mode prediction method and device in video coding and decoding
CN101288314A (en) Dynamic image encoding device, dynamic image decoding device, dynamic image encoding method, dynamic image decoding method, dynamic image encoding program, and dynamic image decoding program
CN103051896B (en) Mode skipping-based video frequency coding method and mode skipping-based video frequency coding system
CN102843554A (en) Interframe image prediction encoding and decoding methods and video encoding and decoding device
CN103188490A (en) Combination compensation mode in video coding process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant