CN103338372A - Method and device for processing video - Google Patents

Method and device for processing video Download PDF

Info

Publication number
CN103338372A
CN103338372A CN 201310240700 CN201310240700A CN103338372A CN 103338372 A CN103338372 A CN 103338372A CN 201310240700 CN201310240700 CN 201310240700 CN 201310240700 A CN201310240700 A CN 201310240700A CN 103338372 A CN103338372 A CN 103338372A
Authority
CN
China
Prior art keywords
motion vector
current block
prediction
type
block
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.)
Pending
Application number
CN 201310240700
Other languages
Chinese (zh)
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 CN 201310240700 priority Critical patent/CN103338372A/en
Publication of CN103338372A publication Critical patent/CN103338372A/en
Priority to CN201710983987.7A priority patent/CN107770524B/en
Priority to CN201310690704.1A priority patent/CN104243982B/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention provides a method and a device for processing a video. The method comprises the following steps: obtaining a prediction type of a present block; and exporting a motion vector or a motion vector predicted value or a motion vector candidate or motion vector predicted value candidate according to the prediction type of the present block. The method and the device of coding and decoding the video can make full use of motion vector information of adjacent blocks of the present block, and improve the accuracy of precasting in an ordinary model and a special model between frames, and the video coding efficiency.

Description

A kind of method for processing video frequency and device
Technical field
The present invention relates to video processing technique, relate in particular to a kind of method for processing video frequency and device.
Background technology
In video coding technique, eliminate the redundancy of video information on time and space by the prediction that utilizes time-domain and spatial domain.The inter prediction technology is that a kind of widespread usage is in the technology in coding and decoding video field.By motion compensation, predict the information of present frame with the information in the coded frame.In movement compensation process, need to transmit a lot of side informations in the video code flow, decoding end utilizes the residual error after these side informations and the conversion to reconstruct the Pixel Information of present frame.In common inter-frame forecast mode, mainly by the coding mode information of piece, these side informations of motion vector difference information come reconstructed image.At special inter-frame mode as skipping and Direct Model, without transmitting moving phasor difference value information.Directly with predicting the motion vector that the obtains motion vector as current block.
In H.264, common inter-frame mode, its prediction direction can be forward direction, the back to and two-way.No matter be which kind of prediction direction, its method that derives motion vector predictor all is the same, and the intermediate value of namely getting three motion vectors in the adjacent block is the motion vector predictor of current block.And in special pattern, motion vector is derived comparatively complicated.Skip for the P-SKIP(P frame) pattern, only derive forward motion vector.Skip for the B-SKIP(B frame) and the B-DIRECT(B frame direct) pattern, derive forward motion vector and backward motion vector by set rule.
In HEVC, introduced AMVP(advanced person's motion-vector prediction) technology.This technology is by making up the motion vector candidates tabulation, by the motion vector predictor chosen of transmission or the sequence number of motion vector in code stream, decoding end tabulates to derive motion vector or motion vector predictor according to sequence number and by the motion vector candidates that same rule makes up.The AMVP technology is applied in and is called as the Merge pattern under the special pattern.The Merge pattern when deriving motion vector, the motion vector information in the adjacent block of Li Yonging not only, the while has also been utilized the reference frame information of adjacent block.In the candidate list of Merge mode construction, deposit the movable information of the adjacent block that according to priority obtains in proper order, comprised motion vector information and reference frame information.That is to say that the Merge pattern has also derived the reference frame corresponding with this motion vector when deriving motion vector.
In AVS, motion vector is derived with H.264 similar.Also be to adopt the fixing AVS MEDIAN(AVS median prediction of a cover under the normal frames inter mode) method, P-SKIP only derives forward motion vector under the special pattern.Derive front and back under B-SKIP and the B-DIRECT pattern to two motion vectors.
H.264 with AVS in, though the motion vector of normal frames inter mode derive forward direction, back to and two-way situation under the motion vector difference or the number difference that derive, they are not specially selected according to the difference of the prediction direction type of adjacent block has the piece of identical prediction direction type to come motion vectors in the adjacent block.But as long as there be the reference frame direction motion vector identical with current block that points in the adjacent block, just bring the motion vector of prediction current block.The adjacent block motion vector that is used for the forward motion vector of prediction forward prediction type current block can be the forward motion vector of forward prediction piece, also can be bi-directional predicted forward motion vector.As long as there is needed motion vector in selected piece, be not to consider and be somebody's turn to do the prediction direction type of selecting piece.
In HEVC, motion vector is derived and is decided by the motion vector candidates tabulation that makes up and the sequence number that shows which candidate in the selective listing.This mode need be in code stream transmission sequence number, increased certain code stream expense.But it is motion vectors more accurately.Because HEVC directly derives motion vector according to the candidate motion vector sequence number, it is not a kind ofly to select motion vector deriving method with reference to adjacent block according to the prediction direction type.In the Merge pattern, current block not only motion vector wants identical with selected adjacent block, and reference frame is also identical.If there is not the prediction piece of backward or forward in the adjacent block, then current block just can not go to attempt the prediction mode of backward or forward.This is the deficiency that the Merge pattern exists.
Summary of the invention
The objective of the invention is at the existing in prior technology weak point, proposed a kind ofly according to the current block type of prediction, can be the method that the prediction direction type decides the current block motion vector how to derive.This method can take full advantage of the characteristic that block of pixels in the coding and decoding video can adopt the prediction of different directions.Can make block of pixels under the interframe special pattern attempt two-way, back to multiple prediction direction patterns such as, symmetry, forward directions, every kind of pattern is corresponding derivation motion vector respectively.This technology can promote the efficient of video coding.
First purpose of the present invention is to provide a kind of method for processing video frequency, it comprises: use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Further, this method also comprises the information of the type of prediction of obtaining described current block from code stream.
Further, this method comprises that also the information with the type of prediction of current block is written in the code stream.
Further, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
Second purpose of the present invention is to provide another method for processing video frequency, it comprises: if there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block;
If there be not the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block different with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Further, this method also comprises the information of the type of prediction of obtaining described current block from code stream.
Further, this method comprises that also the information with the type of prediction of current block is written in the code stream.
Further, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
The present invention's the 3rd purpose is to provide a kind of video process apparatus, and it comprises:
The motion vector lead-out unit, be used for using the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Further, the type of prediction reading unit that also comprises the information of the type of prediction of from code stream, obtaining described current block.
Further, comprise that also information with the type of prediction of current block is written to the type of prediction writing unit in the code stream.
Further, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
The 4th purpose of the present invention is to provide a kind of video process apparatus, and it comprises:
If there be the adjacent block identical with the current block type of prediction, then use the motion vector lead-out unit of deriving motion vector from the same type adjacent block, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block;
If there be not the adjacent block identical with the current block type of prediction, then use the dissimilar adjacent block motion vector lead-out units of deriving motion vector from dissimilar adjacent blocks, derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block by these dissimilar adjacent block motion vector lead-out units.
Further, the type of prediction reading unit that also comprises the information of the type of prediction of from code stream, obtaining described current block.
Further, comprise that also information with the type of prediction of current block is written to the type of prediction writing unit in the code stream.
Further, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
The invention has the beneficial effects as follows, video coding-decoding method of the present invention and device, by obtaining the type of prediction of current block, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block according to the type of prediction of current block.This video coding-decoding method and device can take full advantage of the motion vector information in the adjacent block of current block, improve prediction accuracy under the interframe special pattern, have improved the video code efficiency.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
First kind of current block that Fig. 1 provides for the embodiment of the invention and the schematic diagram of adjacent block thereof;
Motion vector let-off gear(stand) structural representation in a kind of Video processing that Fig. 2 provides for the embodiment of the invention;
Motion vector let-off gear(stand) structural representation during a kind of video that Fig. 3 provides for inventive embodiments is encoded;
Motion vector let-off gear(stand) structural representation in a kind of video decode that Fig. 4 provides for inventive embodiments;
Motion vector let-off gear(stand) structural representation in the another kind of Video processing that Fig. 5 provides for the embodiment of the invention;
Motion vector let-off gear(stand) structural representation during the another kind of video that Fig. 6 provides for inventive embodiments is encoded;
Motion vector let-off gear(stand) structural representation in the another kind of video decode that Fig. 7 provides for inventive embodiments.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment 1
A kind of current block that Fig. 1 provides for the embodiment of the invention and the schematic diagram of adjacent block thereof.The video encoding/decoding method that present embodiment provides comprises:
Step 1 is obtained the prediction type of described current block from code stream.
Particularly, by resolving the prediction type in the video code flow, obtain the type of prediction of current block.A kind of possible situation is, current block is the direct or skip mode of B frame, satisfying under the above-mentioned condition situation, also have syntactic element to show the type of prediction of current pending block of pixels in the code stream, a kind of possible situation is, this prediction type is the prediction direction type of current block, and for example, the prediction direction type of current block can be two-way, back to, symmetry, a kind of in the forward direction.
Step 2, if there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If there be not the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block different with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, a kind of possible situation is after step 1 obtains current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, a kind of possible situation is at first to determine the priority orders of search adjacent block.For example, only consider A1, AN, B1, BM, C1, C2 totally 6 pieces, the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, the first step derives motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
If there is no the adjacent block identical with the current block type of prediction then according to the movable information in the different adjacent block of type of prediction, derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, mode derives motion vector as described below:
If the type of prediction of current block is bi-directional predicted type, and there is not the adjacent block of bi-directional predicted type in the adjacent block, the adjacent block that has forward prediction type and back forecast type, then according to the motion vector of forward prediction type adjacent block, the motion vector of back forecast type adjacent block is derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, existence is more than one bi-directional predicted, then according to the sequential search of reversed in order according to priority to first information of doing exercises of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is the back forecast piece, the movable information of first back forecast piece that arrives according to sequential search according to priority then, derive backward motion vector, and obtain forward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is not the back forecast piece, there is the forward prediction piece, the movable information of first forward prediction piece that obtains according to sequential search according to priority then, derive forward motion vector, and obtain backward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, existence is more than one bi-directional predicted, first reverse information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, only there be one bi-directional predicted, then according to this reverse information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, movable information of first symmetry prediction piece that obtains according to sequential search is according to priority then derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, existence is more than one bi-directional predicted, first propulsion information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, only there be one bi-directional predicted, then according to this propulsion information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, propulsion information of first symmetry prediction piece that obtains according to sequential search according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
As the first step, in deriving the process of motion vector, if the reference frame of the adjacent block that the reference frame of current block and search are chosen is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Embodiment 2
First kind of current block that Fig. 1 provides for the embodiment of the invention and the schematic diagram of adjacent block thereof.The video encoding/decoding method that present embodiment provides comprises:
Step 1 is obtained the information of the type of prediction of described current block from code stream.
Particularly, by resolving the prediction type in the video code flow, obtain the type of prediction of current block.A kind of possible situation is, current block is B frame general mode, and by resolving the syntactic element in the code stream, what the prediction direction type that obtains current block was two-way, back in, symmetry, the forward direction is a kind of.
Step 2, if there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If there be not the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block different with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, a kind of possible situation is after step 1 obtains current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, a kind of possible situation is at first to determine the priority orders of search adjacent block.A kind of possible situation is, considers that A1~AN, B1~BM, C1, C2 are the adjacent block of all existence of current block, and the priority orders of search is 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, the first step derives motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
If there is no the adjacent block identical with the current block type of prediction then according to the movable information in the different adjacent block of type of prediction, derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, mode derives motion vector as described below:
If the type of prediction of current block is bi-directional predicted type, and there is not the adjacent block of bi-directional predicted type in the adjacent block, the adjacent block that has forward prediction type and back forecast type, then according to the motion vector of forward prediction type adjacent block, the motion vector of back forecast type adjacent block is derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, existence is more than one bi-directional predicted, then according to the sequential search of reversed in order according to priority to first information of doing exercises of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is the back forecast piece, the movable information of first back forecast piece that arrives according to sequential search according to priority then, derive backward motion vector, and obtain forward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is not the back forecast piece, there is the forward prediction piece, the movable information of first forward prediction piece that obtains according to sequential search according to priority then, derive forward motion vector, and obtain backward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, existence is more than one bi-directional predicted, first reverse information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, only there be one bi-directional predicted, then according to this reverse information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, movable information of first symmetry prediction piece that obtains according to sequential search is according to priority then derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, existence is more than one bi-directional predicted, first propulsion information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, only there be one bi-directional predicted, then according to this propulsion information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, propulsion information of first symmetry prediction piece that obtains according to sequential search according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
As the first step, in deriving the process of motion vector, if the reference frame of the adjacent block that the reference frame of current block and search are chosen is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Embodiment 3
Motion vector let-off gear(stand) structural representation in a kind of Video processing that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, in the present embodiment, the motion vector let-off gear(stand) in the described Video processing comprises motion vector lead-out unit 210.
The motion vector lead-out unit 210 that present embodiment provides specifically is used for:
Use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.Be specially:
A kind of possible situation is after obtaining current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, need at first to determine the priority orders of search adjacent block.As shown in Figure 1, a kind of possible situation is, only considers A1, AN, B1, BM, C1, C2 totally 6 pieces, and the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, derive motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Embodiment 4
Motion vector let-off gear(stand) structural representation during a kind of video that Fig. 3 provides for the embodiment of the invention is encoded.As shown in Figure 3, in the present embodiment, the motion vector let-off gear(stand) in the described video coding comprises motion vector lead-out unit 310, type of prediction writing unit 320.
The motion vector lead-out unit 310 that present embodiment provides specifically is used for:
Use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.Be specially:
A kind of possible situation is as shown in Figure 1, only to consider A1, AN, B1, BM, C1, C2 totally 6 pieces.Search for adjacent block identical with the current block type of prediction in these pieces.A kind of possible situation is, current block is set to bi-directional type, and it all is the adjacent block of bi-directional type that A1 and B1 are arranged in the adjacent block.Then with the mean value of A1 and B1 motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
Type of prediction writing unit 320 specifically is used for:
The type of prediction of current block is written in the code stream.Be specially:
At coding side, by calculating the rate distortion costs under the current block all kinds, obtain the prediction direction type of a rate distortion costs minimum.This prediction direction type is written in the code stream.
Embodiment 5
Motion vector let-off gear(stand) structural representation in a kind of video decode that Fig. 4 provides for the embodiment of the invention.As shown in Figure 4, in the present embodiment, the motion vector let-off gear(stand) in the described video decode comprises, prediction type reading unit 410, motion vector lead-out unit 420.
The prediction type reading unit 410 that present embodiment provides specifically is used for:
From code stream, read the prediction type of current block, be specially:
A kind of possible situation is, the information of forecasting of current block is prediction direction information, and this information has been written in the code stream through the entropy coding at coding side, in decoding end, need carry out the prediction direction information that entropy parses current block.
Motion vector lead-out unit 420 specifically is used for:
Use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.Specifically be used for:
A kind of possible situation is, after type of prediction arranges the unit and sets current block prediction direction type, derives the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, need at first to determine the priority orders of search adjacent block.As shown in Figure 1, a kind of possible situation is, only considers A1, AN, B1, BM, C1, C2 totally 6 pieces, and the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, derive motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Embodiment 6
Motion vector let-off gear(stand) structural representation in a kind of Video processing that Fig. 5 provides for the embodiment of the invention.As shown in Figure 5, in the present embodiment, motion vector let-off gear(stand) in the described Video processing comprises, judge the judging unit 510 that whether exists in the adjacent block with current block type of prediction same block, same type adjacent block motion vector lead-out unit 520, dissimilar adjacent block motion vector lead-out units 530.
Present embodiment provides judges and specifically is used for the judging unit 510 that whether exists in the adjacent block with current block type of prediction same block:
Judge and whether be present in the identical piece of current block type of prediction in the adjacent block.Deriving motion vector for next step prepares.
Same type adjacent block motion vector lead-out unit 520 specifically is used for:
If there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, a kind of possible situation is after obtaining current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, need at first to determine the priority orders of search adjacent block.A kind of possible situation is, as shown in Figure 1, only considers A1, AN, B1, BM, C1, C2 totally 6 pieces, and the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, the first step derives motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Dissimilar adjacent block motion vector lead-out units 530 specifically are used for:
If there be not the adjacent block identical with the current block type of prediction, then be used in the identical movable information of the direction with current block motion vector points reference frame of the different adjacent block of current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, mode derives motion vector as described below:
If the type of prediction of current block is bi-directional predicted type, and there is not the adjacent block of bi-directional predicted type in the adjacent block, the adjacent block that has forward prediction type and back forecast type, then according to the motion vector of forward prediction type adjacent block, the motion vector of back forecast type adjacent block is derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, existence is more than one bi-directional predicted, then according to the sequential search of reversed in order according to priority to first information of doing exercises of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is the back forecast piece, the movable information of first back forecast piece that arrives according to sequential search according to priority then, derive backward motion vector, and obtain forward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is not the back forecast piece, there is the forward prediction piece, the movable information of first forward prediction piece that obtains according to sequential search according to priority then, derive forward motion vector, and obtain backward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, existence is more than one bi-directional predicted, first reverse information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, only there be one bi-directional predicted, then according to this reverse information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, movable information of first symmetry prediction piece that obtains according to sequential search is according to priority then derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, existence is more than one bi-directional predicted, first propulsion information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, only there be one bi-directional predicted, then according to this propulsion information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, propulsion information of first symmetry prediction piece that obtains according to sequential search according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
In deriving the process of motion vector, if the reference frame of the adjacent block that the reference frame of current block and search are chosen is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Embodiment 7
Motion vector let-off gear(stand) structural representation during a kind of video that Fig. 6 provides for the embodiment of the invention is encoded.As shown in Figure 2, in the present embodiment, motion vector let-off gear(stand) in the described video coding comprises judges the judging unit 610 that whether exists in the adjacent block with current block type of prediction same block, same type adjacent block motion vector lead-out unit 620, dissimilar adjacent block motion vector lead-out units 630, type of prediction writing unit 640.
Present embodiment provides judges and specifically is used for the judging unit 610 that whether exists in the adjacent block with current block type of prediction same block:
Judge and whether be present in the identical piece of current block type of prediction in the adjacent block.Deriving motion vector for next step prepares.
Same type adjacent block motion vector lead-out unit 620 specifically is used for:
If there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, a kind of possible situation is after obtaining current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, need at first to determine the priority orders of search adjacent block.A kind of possible situation is, as shown in Figure 1, only considers A1, AN, B1, BM, C1, C2 totally 6 pieces, and the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, the first step derives motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Dissimilar adjacent block motion vector lead-out units 630 specifically are used for:
If there be not the adjacent block identical with the current block type of prediction, then be used in the identical movable information of the direction with current block motion vector points reference frame of the different adjacent block of current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, mode derives motion vector as described below:
If the type of prediction of current block is bi-directional predicted type, and there is not the adjacent block of bi-directional predicted type in the adjacent block, the adjacent block that has forward prediction type and back forecast type, then according to the motion vector of forward prediction type adjacent block, the motion vector of back forecast type adjacent block is derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, existence is more than one bi-directional predicted, then according to the sequential search of reversed in order according to priority to first information of doing exercises of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is the back forecast piece, the movable information of first back forecast piece that arrives according to sequential search according to priority then, derive backward motion vector, and obtain forward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is not the back forecast piece, there is the forward prediction piece, the movable information of first forward prediction piece that obtains according to sequential search according to priority then, derive forward motion vector, and obtain backward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, existence is more than one bi-directional predicted, first reverse information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, only there be one bi-directional predicted, then according to this reverse information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, movable information of first symmetry prediction piece that obtains according to sequential search is according to priority then derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, existence is more than one bi-directional predicted, first propulsion information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, only there be one bi-directional predicted, then according to this propulsion information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, propulsion information of first symmetry prediction piece that obtains according to sequential search according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
In deriving the process of motion vector, if the reference frame of the adjacent block that the reference frame of current block and search are chosen is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Type of prediction writing unit 640,
The type of prediction of current block is written in the code stream.Be specially:
At coding side, by calculating the rate distortion costs under the current block all kinds, obtain the prediction direction type of a rate distortion costs minimum.This prediction direction type is written in the code stream.
Embodiment 8
Motion vector let-off gear(stand) structural representation in a kind of video decode that Fig. 7 provides for the embodiment of the invention.As shown in Figure 7, in the present embodiment, motion vector let-off gear(stand) in the described video coding comprises, prediction type reading unit 710, judge the judging unit 720 that whether exists in the adjacent block with current block type of prediction same block, same type adjacent block motion vector lead-out unit 730, dissimilar adjacent block motion vector lead-out units 740.
The information of forecasting reading unit 710 that present embodiment provides specifically is used for:
From code stream, read the prediction type of current block, be specially:
A kind of possible situation is, the information of forecasting of current block is prediction direction information, and this information has been written in the code stream through the entropy coding at coding side, in decoding end, need carry out the prediction direction information that entropy parses current block.The type of prediction of current block is set to resolve in the code stream prediction type of the current block that obtains.The type of prediction of current block may be the prediction direction type, may be a kind of in, two-way, the symmetry of forward direction, back.
Judge the judging unit 720 that whether exists in the adjacent block with current block type of prediction same block, specifically be used for:
Judge and whether be present in the identical piece of current block type of prediction in the adjacent block.Deriving motion vector for next step prepares.
Same type adjacent block motion vector lead-out unit 730 specifically is used for:
If there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, a kind of possible situation is after obtaining current block prediction direction type, to derive the motion vector of current block according to the prediction direction type.
Before the motion vector of deriving current block as follows, need at first to determine the priority orders of search adjacent block.A kind of possible situation is, as shown in Figure 1, only considers A1, AN, B1, BM, C1, C2 totally 6 pieces, and the priority orders of search is AN〉BM〉C1〉A1〉B1〉C2.
No matter which kind of type is the prediction direction type of current block be, the first step derives motion vector as follows:
The sequential search piece identical with the current block type of prediction according to priority in the adjacent block from current block, if there be the adjacent block identical with the current block type of prediction, the movable information of the adjacent block identical with the current block type of prediction that then searches according to first, motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of derivation current block.
If the reference frame of the reference frame of current block and the adjacent block chosen of search is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
Dissimilar adjacent block motion vector lead-out units 740 specifically are used for:
If there be not the adjacent block identical with the current block type of prediction, then be used in the identical movable information of the direction with current block motion vector points reference frame of the different adjacent block of current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
Particularly, mode derives motion vector as described below:
If the type of prediction of current block is bi-directional predicted type, and there is not the adjacent block of bi-directional predicted type in the adjacent block, the adjacent block that has forward prediction type and back forecast type, then according to the motion vector of forward prediction type adjacent block, the motion vector of back forecast type adjacent block is derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, existence is more than one bi-directional predicted, then according to the sequential search of reversed in order according to priority to first information of doing exercises of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is the back forecast piece, the movable information of first back forecast piece that arrives according to sequential search according to priority then, derive backward motion vector, and obtain forward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is symmetrical type of prediction, and there is not the adjacent block of symmetrical type of prediction in the adjacent block, do not exist more than one bi-directional predicted, there is not the back forecast piece, there is the forward prediction piece, the movable information of first forward prediction piece that obtains according to sequential search according to priority then, derive forward motion vector, and obtain backward motion vector by this motion vector after oppositely, with the forward direction of described derivation and backward motion vector motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate as current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, existence is more than one bi-directional predicted, first reverse information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, only there be one bi-directional predicted, then according to this reverse information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the back forecast type, and there is not the adjacent block of back forecast type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, movable information of first symmetry prediction piece that obtains according to sequential search is according to priority then derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, existence is more than one bi-directional predicted, first propulsion information of bi-directional predicted that obtains according to the sequential search of reversed in order according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, only there be one bi-directional predicted, then according to this propulsion information of bi-directional predicted, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
If the type of prediction of current block is the forward prediction type, and there is not the adjacent block of forward prediction type in the adjacent block, there be not bi-directional predicted, there is symmetry prediction piece, propulsion information of first symmetry prediction piece that obtains according to sequential search according to priority then derives motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
In deriving the process of motion vector, if the reference frame of the adjacent block that the reference frame of current block and search are chosen is same reference frame, then the motion vector of the adjacent block that search is chosen is directly as the motion vector of current block.If the reference frame of the adjacent block that the reference frame of current block and search are chosen is not same reference frame, then the adjacent block motion vector be multiply by " distance of current block and current block reference ", divided by " distance between the reference block of adjacent block and adjacent block ", the motion vector that obtains is as the motion vector of current block again.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method for processing video frequency is characterized in that, comprising:
Use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
2. the described method for processing video frequency of claim 1 is further characterized in that, obtains the information of the type of prediction of described current block from code stream.
3. the described method for processing video frequency of claim 1 is further characterized in that, the information of the type of prediction of current block is written in the code stream.
4. the described method for processing video frequency of claim 1 is characterized in that, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
5. a method for processing video frequency is characterized in that, comprising:
If there be the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block;
If there be not the adjacent block identical with the current block type of prediction, then use the identical movable information of the direction with current block motion vector points reference frame of the adjacent block different with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
6. a video process apparatus is characterized in that, comprising:
The motion vector lead-out unit, be used for using the identical movable information of the direction with current block motion vector points reference frame of the adjacent block identical with the current block type of prediction, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block.
7. the described video process apparatus of claim 6 is further characterized in that, obtains the type of prediction reading unit of information of the type of prediction of described current block from code stream.
8. the described video process apparatus of claim 6 is further characterized in that, the information of the type of prediction of current block is written to type of prediction writing unit in the code stream.
9. the described video process apparatus of claim 6 is characterized in that, described type of prediction is a kind of in the following prediction direction type: forward direction, back are to, symmetry and two-way.
10. a video process apparatus is characterized in that, comprising:
If there be the adjacent block identical with the current block type of prediction, then use the motion vector lead-out unit of deriving motion vector from the same type adjacent block, derive motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block;
If there be not the adjacent block identical with the current block type of prediction, then use the dissimilar adjacent block motion vector lead-out units of deriving motion vector from dissimilar adjacent blocks, derived motion vector or motion vector predictor or motion vector candidates or the motion vector predictor candidate of current block by these dissimilar adjacent block motion vector lead-out units.
CN 201310240700 2013-06-15 2013-06-15 Method and device for processing video Pending CN103338372A (en)

Priority Applications (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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310240700 CN103338372A (en) 2013-06-15 2013-06-15 Method and device for processing video

Publications (1)

Publication Number Publication Date
CN103338372A true CN103338372A (en) 2013-10-02

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
CN201710983987.7A Active CN107770524B (en) 2013-06-15 2013-12-13 Video coding and decoding processing method and device
CN201310690704.1A Active CN104243982B (en) 2013-06-15 2013-12-13 A kind of video coding-decoding processing method and device

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN201710983987.7A Active CN107770524B (en) 2013-06-15 2013-12-13 Video coding and decoding processing method and device
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 (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717512A (en) * 2013-12-16 2015-06-17 浙江大学 Coding and decoding method and device for forward double-hypothesis coding image blocks
WO2015149698A1 (en) * 2014-04-01 2015-10-08 Mediatek Inc. Method of motion information coding
CN107396102A (en) * 2017-08-30 2017-11-24 中南大学 A kind of inter-frame mode fast selecting method and device based on Merge technological movement vectors
CN107770524A (en) * 2013-06-15 2018-03-06 浙江大学 A kind of video coding-decoding processing method and device
WO2018045944A1 (en) * 2016-09-06 2018-03-15 Mediatek Inc. Methods and apparatuses of candidate set determination for binary-tree splitting blocks
WO2018228016A1 (en) * 2017-06-13 2018-12-20 华为技术有限公司 Method and device for motion vector prediction
WO2019072049A1 (en) * 2017-10-13 2019-04-18 腾讯科技(深圳)有限公司 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
WO2020048180A1 (en) * 2018-09-03 2020-03-12 华为技术有限公司 Motion vector acquisition method, device, computer equipment and storage medium
WO2020108168A1 (en) * 2018-11-30 2020-06-04 华为技术有限公司 Video image prediction method and device
CN111263166A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Video image prediction method and device
WO2020140915A1 (en) * 2019-01-03 2020-07-09 深圳市大疆创新科技有限公司 Video processing method and apparatus
WO2020182165A1 (en) * 2019-03-11 2020-09-17 杭州海康威视数字技术股份有限公司 Method for constructing motion information candidate list and triangular prediction decoding method and apparatus
WO2020192726A1 (en) * 2019-03-27 2020-10-01 Beijing Bytedance Network Technology Co., Ltd. History-based motion vector prediction
CN113315974A (en) * 2018-10-24 2021-08-27 华为技术有限公司 Video decoder and method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809642B (en) * 2015-02-16 2020-06-16 华为技术有限公司 Method for encoding and decoding video image, encoding device and decoding device
KR20200012957A (en) 2017-06-30 2020-02-05 후아웨이 테크놀러지 컴퍼니 리미티드 Inter-frame Prediction Method and Device
CN110351565B (en) * 2018-04-02 2021-08-03 浙江大学 Method and device for exporting motion vector of reference region
BR112021000349A2 (en) 2018-07-11 2021-04-06 Huawei Technologies Co., Ltd. VIDEO ENCODER, VIDEO DECODER, AND MATCHING METHOD
WO2020015706A1 (en) * 2018-07-18 2020-01-23 Mediatek Inc. Method and apparatus of motion compensation bandwidth reduction for video coding system utilizing multi-hypothesis
CN117241039A (en) * 2018-08-28 2023-12-15 华为技术有限公司 Inter-frame prediction method, inter-frame prediction device, video encoder and video decoder
WO2020084462A1 (en) * 2018-10-22 2020-04-30 Beijing Bytedance Network Technology Co., Ltd. Restrictions on decoder side motion vector derivation based on block size

Family Cites Families (14)

* 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
US7567617B2 (en) * 2003-09-07 2009-07-28 Microsoft Corporation Predicting motion vectors for fields of forward-predicted interlaced video frames
CN101350925A (en) * 2008-07-11 2009-01-21 清华大学 Method for filtering interpolation
KR20120009861A (en) * 2010-07-22 2012-02-02 에스케이 텔레콤주식회사 Method and Apparatus for Encoding/Decoding of Video Data Using Expanded Skip Mode
CN102377992B (en) * 2010-08-06 2014-06-04 华为技术有限公司 Method and device for obtaining predicted value of motion vector
KR20120016991A (en) * 2010-08-17 2012-02-27 오수미 Inter prediction process
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
KR101484171B1 (en) * 2011-01-21 2015-01-23 에스케이 텔레콤주식회사 Motion Information Generating Apparatus and Method using Motion Vector Predictor Index Coding, and Image Encoding/Decoding Apparatus and Method using the Same
CN102227132B (en) * 2011-05-25 2017-04-12 深圳市云宙多媒体技术有限公司 Motion vector prediction coding and decoding method, apparatus thereof and coding and decoding system
CN103024378B (en) * 2012-12-06 2016-04-13 浙江大学 Movable information deriving method and device in a kind of coding and decoding video
CN103338372A (en) * 2013-06-15 2013-10-02 浙江大学 Method and device for processing video

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770524B (en) * 2013-06-15 2020-11-06 浙江大学 Video coding and decoding processing method and device
CN107770524A (en) * 2013-06-15 2018-03-06 浙江大学 A kind of video coding-decoding processing method and device
US10187654B2 (en) 2013-12-16 2019-01-22 Samsung Electronics Co., Ltd. Method and device for forward multiple-hypothesis encoding/decoding of image block
CN104717512B (en) * 2013-12-16 2019-07-23 浙江大学 To double decoding methods and device for assuming coded picture block before a kind of
CN104717512A (en) * 2013-12-16 2015-06-17 浙江大学 Coding and decoding method and device for forward double-hypothesis coding image blocks
CN106031170B (en) * 2014-04-01 2019-04-26 联发科技股份有限公司 The method of motion information coding
CN106031170A (en) * 2014-04-01 2016-10-12 联发科技股份有限公司 Method of motion information coding
US10944983B2 (en) 2014-04-01 2021-03-09 Mediatek Inc. Method of motion information coding
WO2015149698A1 (en) * 2014-04-01 2015-10-08 Mediatek Inc. Method of motion information coding
TWI634783B (en) * 2016-09-06 2018-09-01 聯發科技股份有限公司 Methods and apparatuses of candidate set determination for binary-tree splitting blocks
WO2018045944A1 (en) * 2016-09-06 2018-03-15 Mediatek Inc. Methods and apparatuses of candidate set determination for binary-tree splitting blocks
WO2018228016A1 (en) * 2017-06-13 2018-12-20 华为技术有限公司 Method and device for motion vector prediction
CN109089119A (en) * 2017-06-13 2018-12-25 浙江大学 A kind of method and apparatus of motion-vector prediction
US11202077B2 (en) 2017-06-13 2021-12-14 Huawei Technologies Co., Ltd. Motion vector prediction method and device
CN107396102A (en) * 2017-08-30 2017-11-24 中南大学 A kind of inter-frame mode fast selecting method and device based on Merge technological movement vectors
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
US11076168B2 (en) 2017-10-13 2021-07-27 Tencent Technology (Shenzhen) Company Limited Inter-prediction method and apparatus, and storage medium
CN109672894B (en) * 2017-10-13 2022-03-08 腾讯科技(深圳)有限公司 Inter-frame prediction method, device and storage medium
WO2019072049A1 (en) * 2017-10-13 2019-04-18 腾讯科技(深圳)有限公司 Inter-frame prediction method, device and storage medium
CN109672894A (en) * 2017-10-13 2019-04-23 腾讯科技(深圳)有限公司 A kind of 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
US11563949B2 (en) 2018-09-03 2023-01-24 Huawei Technologies Co., Ltd. Motion vector obtaining method and apparatus, computer device, and storage medium
WO2020048180A1 (en) * 2018-09-03 2020-03-12 华为技术有限公司 Motion vector acquisition method, device, computer equipment and storage medium
CN113315974A (en) * 2018-10-24 2021-08-27 华为技术有限公司 Video decoder and method
US11765383B2 (en) 2018-10-24 2023-09-19 Huawei Technologies Co., Ltd. Video decoder and methods
WO2020108168A1 (en) * 2018-11-30 2020-06-04 华为技术有限公司 Video image prediction method and device
CN111263166B (en) * 2018-11-30 2022-10-11 华为技术有限公司 Video image prediction method and device
CN111263166A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Video image prediction method and device
WO2020140915A1 (en) * 2019-01-03 2020-07-09 深圳市大疆创新科技有限公司 Video processing method and apparatus
WO2020182165A1 (en) * 2019-03-11 2020-09-17 杭州海康威视数字技术股份有限公司 Method for constructing motion information candidate list and triangular prediction decoding method and apparatus
US11863714B2 (en) 2019-03-11 2024-01-02 Hangzhou Hikvision Digital Technology Co., Ltd. Method for constructing motion information candidate list, method and apparatus for triangle prediction decoding
WO2020192726A1 (en) * 2019-03-27 2020-10-01 Beijing Bytedance Network Technology Co., Ltd. History-based motion vector prediction
US11895320B2 (en) 2019-03-27 2024-02-06 Beijing Bytedance Network Technology Co., Ltd History-based motion vector prediction

Also Published As

Publication number Publication date
CN104243982B (en) 2018-10-26
CN107770524B (en) 2020-11-06
CN107770524A (en) 2018-03-06
CN104243982A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN103338372A (en) Method and device for processing video
CN107113424B (en) With the Video coding and coding/decoding method of the block of inter-frame forecast mode coding
CN105915914B (en) Remove the method and apparatus of redundancy in motion vector predictor
CN102316317B (en) Method and device for generating predicted value of picture
CN102387360B (en) Video coding-decoding inter-frame image prediction method and Video Codec
JP5576048B2 (en) Direct mode encoding and decoding method
CN103748880A (en) Method and device for encoding a sequence of images and method and device for decoding a sequence of images
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
CN110169061A (en) The merging patterns of multiple hypothesis
GB2588546A (en) Interaction of asymmetric weighted merges and other coding tools
CN101610417B (en) Image filling method, device and equipment
CN103314585A (en) Video encoding and decoding with improved error resilience
CN102098519B (en) Video encoding method and decoding method as well as encoding and decoding device
CN103609125A (en) Method and apparatus for encoding and decoding motion vector of multi-view video
CN102714736A (en) Method and apparatus for encoding and decoding motion vector based on reduced motion vector predictor candidates
CN102577389A (en) Video coding device and video decoding device
CN101945276A (en) Decoder side motion estimation (me) using plural reference frames
CN111698506A (en) Motion information candidate list construction method, triangle prediction decoding method and device
CN102075756B (en) Video multiframe prediction encoding and decoding method and device
CN103533376A (en) Method and apparatus for motion information processing of interframe prediction coding, and coding and decoding system
CN102883161A (en) Video encoding and decoding processing method and device
CN101288314B (en) Moving picture encoding device, dynamic image decoding device, motion image encoding method, dynamic image decoding method
CN113225555B (en) Geometric partition mode prediction method and device in video coding and decoding
CN104918047A (en) Bidirectional motion estimation elimination method and device
CN102340663A (en) Image motion estimation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131002

WD01 Invention patent application deemed withdrawn after publication