CN107318024A - Method for video coding and device based on sports ground - Google Patents

Method for video coding and device based on sports ground Download PDF

Info

Publication number
CN107318024A
CN107318024A CN201710501666.9A CN201710501666A CN107318024A CN 107318024 A CN107318024 A CN 107318024A CN 201710501666 A CN201710501666 A CN 201710501666A CN 107318024 A CN107318024 A CN 107318024A
Authority
CN
China
Prior art keywords
reverse
propulsion
prediction
current block
target
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
CN201710501666.9A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710501666.9A priority Critical patent/CN107318024A/en
Publication of CN107318024A publication Critical patent/CN107318024A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/527Global motion vector estimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides a kind of method for video coding and device based on sports ground, coding method includes, and the MVF of current block prediction is obtained according to neighbours' block of the current block in time domain and spatial domain;If current block has propulsion, searched from MVF prediction and the propulsion of the propulsion identical target;And the index of target propulsion is encoded.If current block has reverse, searched from MVF prediction and the reverse of the reverse identical target;Then, the index of the target reverse is encoded.Finally, at least one in the coding of the coding of target propulsion manipulative indexing and target reverse manipulative indexing obtains the coding of the sports ground of the current block.The method for video coding only needs to encode the index of target propulsion or reverse, is encoded without the propulsion or reverse to current block, this improves code efficiency.

Description

Method for video coding and device based on sports ground
Technical field
The invention belongs to digital video compaction technique field, more particularly to a kind of method for video coding based on sports ground and Device.
Background technology
H.264 it is a kind of efficient Video coding compression standard.Multi-reference frame is introduced since H.264 so that traditional MV (Motion Vector, motion vector) codings become MVF (Motion Vector Field, sports ground) codings, wherein, Sports ground includes MV and refidx (reference key, for indicating to use which width image as reference).Wherein, motion vector is to work as The difference MV0=(x0, y0) of preceding piece of coordinate (x, y) in the current frame and coordinate (x0, y0) of the prediction block in reference frame-(x, y).Reference key and motion vector constitute the Prediction Parameters of one group of completion, are compiled as a part for the coded data of current block Code.
H.264 coded image is divided into three types:I frames, P frames and B frames.I frames only use the letter of coded block in this frame Cease to predict current block, this predictive mode is referred to as infra-frame prediction;The use of P frames has completed coding and display order is current The corresponding reconstructed frame of frame before frame predicts the block to be encoded in present frame, and this predictive mode is referred to as forward prediction;B frames can To be predicted using the reconstructed frame of coding (display order before or after present frame can) has been completed in present frame Block to be encoded.
In h .264, direct coding refidx, then, MV are encoded using median prediction, that is, need to compile sports ground Code;Carry out coding to sports ground to still need to consume the plenty of time, therefore, code efficiency is low.
The content of the invention
In view of this, the purpose of the application is to provide a kind of method for video coding and device based on sports ground, to carry High video coding efficiency.
In a first aspect, this application provides a kind of method for video coding based on sports ground, including:
The prediction of the corresponding sports ground of the current block, the neighbour are obtained from the corresponding sports ground of neighbours' block of current block Occupying block includes at least class in time domain neighbours block and spatial domain neighbours' block;Before the prediction of the corresponding sports ground of the current block includes To the prediction of prediction and the reverse field of sports ground;
When the current block has propulsion, searched and institute from the prediction of the corresponding sports ground of the current block State the propulsion of propulsion identical target;
Index corresponding to the target propulsion is encoded, and obtains the volume of the propulsion of the current block Code;
When the current block has reverse, searched and institute from the prediction of the corresponding sports ground of the current block State the reverse of reverse identical target;
Index corresponding to the target reverse is encoded, and obtains the volume of the reverse of the current block Code.
Alternatively, it is described when the current block has propulsion, from the pre- of the corresponding sports ground of the current block Searched in survey and the propulsion of the propulsion identical target, including:
Obtain the propulsion of the current block;
Extracted in the prediction of all propulsions included from the prediction of the corresponding sports ground of the current block Go out the prediction of the mutual unduplicated propulsion, and be the prediction establishment rope of each mutual unduplicated propulsion Draw;
Whether the prediction of each relatively more described mutual unduplicated propulsion is identical with the propulsion one by one;
When exist and the propulsion of the propulsion identical prediction when, it is determined that with the propulsion phase With propulsion be predicted as the target propulsion, and determine the corresponding index of the target propulsion.
Alternatively, it is described when the current block has reverse, from the pre- of the corresponding sports ground of the current block Searched in survey and the reverse of the reverse identical target, including:
Obtain the reverse of the current block;
Extract and do not weigh in the prediction of the reverse included from the prediction of the corresponding sports ground of the current block mutually The prediction of the multiple reverse, and be the prediction establishment index of each mutual unduplicated reverse;
Whether the prediction of each relatively more described mutual unduplicated reverse is identical with the reverse one by one;
When exist and the reverse of the reverse information identical prediction when, it is determined that with the reverse Identical reverse is predicted as the target reverse, and determines the corresponding rope of the target reverse Draw.
Alternatively, the corresponding index of the prediction to the target propulsion is encoded, and obtains described current The coding of the propulsion of block includes:
First preset mark is encoded, first preset mark has the target propulsion for sign ;
Index corresponding to the target propulsion is encoded;
According to the coding of first preset mark and the coding of the corresponding index of the target propulsion, institute is obtained State the coding of the propulsion of current block.
Alternatively, the corresponding index of the prediction to the target reverse is encoded, and obtains described current The coding of the reverse of block, including:
The second preset mark that there is the target reverse for characterizing is encoded;
Index corresponding to the target reverse is encoded;
According to the coding of second preset mark, and, the coding of the corresponding index of the target reverse is obtained To the coding of the reverse of the current block.
Second aspect, present invention also provides a kind of video coding apparatus based on sports ground, including:
Sports ground prediction module, it is corresponding for obtaining the current block from the corresponding sports ground of neighbours' block of current block The prediction of sports ground, neighbours' block includes at least class in time domain neighbours block and spatial domain neighbours' block;The current block correspondence Sports ground prediction include propulsion prediction and reverse prediction;
First searching modul, for when the current block has propulsion, from the corresponding motion of the current block Searched in the prediction of field and the propulsion of the propulsion identical target;
First coding module, for being encoded to the corresponding index of the target propulsion, obtains described current The coding of the propulsion of block;
Second searching modul, for when the current block has reverse, from the corresponding motion of the current block Searched in the prediction of field and the reverse of the reverse identical target;
Second coding module, for being encoded to the corresponding index of the target reverse, obtains described current The coding of the reverse of block.
Alternatively, first searching modul, including:
First acquisition submodule, the propulsion for obtaining the current block;
First index creation submodule, for from the prediction of the corresponding sports ground of the current block included it is all described Extract the prediction of the mutually unduplicated propulsion in the prediction of propulsion, and for each do not repeat mutually it is described before Index is created to the prediction of sports ground;
First comparison sub-module, for one by one relatively it is described each mutually the prediction of unduplicated propulsion with it is described before It is whether identical to sports ground;
First determination sub-module, for when exist and the propulsion of the propulsion identical prediction when, really It is fixed to be predicted as the target propulsion with the propulsion of the propulsion identical, and determine before the target To the corresponding index of sports ground.
Alternatively, second searching modul, including:
Second acquisition submodule, the reverse for obtaining the current block;
Second index creation submodule, for the reverse included from the prediction of the corresponding sports ground of the current block The prediction of the mutually unduplicated reverse is extracted in the prediction of field, and is each mutually unduplicated described reverse The prediction of field creates index;
Second comparison sub-module, for one by one relatively it is described each mutually the prediction of unduplicated reverse with it is described after It is whether identical to sports ground;
Second determination sub-module, for when in the presence of the prediction with the reverse of the reverse information identical When, it is determined that the target reverse that is predicted as with the reverse of the reverse identical, and determine described The corresponding index of target reverse.
Alternatively, first coding module, including:
First encoding submodule, for being encoded to the first preset mark, first preset mark is deposited for sign In the target propulsion;
Second encoding submodule, for being encoded to the corresponding index of the target propulsion;
First coding obtains submodule, for the coding according to first preset mark and the target propulsion The coding of corresponding index, obtains the coding of the propulsion of the current block.
Alternatively, second coding module, including:
3rd encoding submodule, for being carried out to the second preset mark that there is the target reverse for characterizing Coding;
4th encoding submodule, for being encoded to the corresponding index of the target reverse;
Second coding obtains submodule, for the coding according to second preset mark, and, to fortune after the target The coding of the dynamic corresponding index in field, obtains the coding of the reverse of the current block.
The method for video coding based on sports ground that the present invention is provided, according to neighbours block of the current block in time domain and spatial domain Obtain the prediction (that is, MVF prediction) of the sports ground of the current block;If there is propulsion in current block, from MVF prediction The prediction of middle lookup and the propulsion of the propulsion identical, referred to as target propulsion;And to before target to fortune The index of dynamic field is encoded.If current block has reverse, searched from the MVF of neighbours' block prediction backward with this The prediction of sports ground identical reverse, referred to as target reverse;Then, to the index of the target reverse Encoded.Finally, according to the coding of target propulsion manipulative indexing and the coding of target reverse manipulative indexing In at least one of obtain the current block sports ground coding.It can be seen that, the method for video coding only need to before target to fortune The index of dynamic field or target reverse is encoded, and is entered without the propulsion or reverse to current block Row coding, this improves code efficiency.Moreover, the propulsion and reverse of current block can independently make With above-mentioned video coding process (i.e., it is possible to encoded just for propulsion using this method, or, just for rear Encoded to motion to using this method), improve flexibility.
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 accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of the method for video coding based on sports ground of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the corresponding neighbours' block of current block of the embodiment of the present invention;
Fig. 3 is the flow chart of another method for video coding based on sports ground of the embodiment of the present invention;
Fig. 4 is a kind of block diagram of the video coding apparatus based on sports ground of the embodiment of the present invention;
Fig. 5 is a kind of block diagram of first searching modul of the embodiment of the present invention;
Fig. 6 is a kind of block diagram of first coding module of the embodiment of the present invention;
Fig. 7 is a kind of block diagram of second searching modul of the embodiment of the present invention;
Fig. 8 is a kind of block diagram of second coding module of the 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 A part of 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.
Fig. 1 is referred to, a kind of flow chart of the method for video coding based on sports ground of the embodiment of the present invention, the party is shown Method is used to encode the sports ground of frame of video.As shown in figure 1, this method may comprise steps of:
S110, obtains the prediction of the corresponding sports ground of the current block from the corresponding sports ground of neighbours' block of current block.
Neighbours' block includes at least class in time domain neighbours block and spatial domain neighbours' block, for example, can there was only time domain neighbours' block, Or, only spatial domain neighbours block, or, existing time domain neighbours block has spatial domain neighbours' block again.
Fig. 2 is referred to, a kind of schematic diagram of the corresponding neighbours' block of current block of the embodiment of the present application is shown, as shown in Fig. 2 X is current block, and A0, A1, B0, B1 and B2 are current block X spatial domain neighbours' blocks, naturally it is also possible to select X other spatial domain neighbours blocks, The application is not intended to limit to this;Then, the sports ground of above-mentioned spatial domain neighbours block is obtained, if certain position is not present, this is skipped Position.Wherein, the propulsion and reverse of neighbours' block are included.
Y is represented in reference pictures of the current block X in time domain with position block in Fig. 2, obtains the sports ground of time domain neighbours' block, Same position block of the Y reference picture in C0, C1 position shown in Fig. 2 can be utilized to obtain Y sports ground.
The sports ground of each neighbours' block shown in Fig. 2 as current block X sports ground prediction.The prediction of sports ground includes The prediction of prediction and the reverse field of propulsion, the prediction of sports ground is used for predicting the sports ground of current block.
The sports ground of the spatial domain neighbours' block and time domain neighbours' block shown in Fig. 2 is obtained, and rejects identical sports ground, it is final common N sports ground is obtained, numbering is followed successively by:mvfp0、mvfp1、……、mvfpn-1.
The acquisition modes of the sports ground of neighbours' block can be realized using existing mode, for example, using efficient video coding (High Efficiency Video Coding, HEVC) is obtained.
S120, when there is propulsion in the current block, searched from the prediction of the corresponding sports ground of current block with The propulsion identical target propulsion.
If there is propulsion in the sports ground of current block, mvffc is designated as, then from the institute of the S110 current blocks obtained The prediction of whole propulsions is extracted in the prediction for having sports ground, and rejects identical.I.e. from time domain or spatial domain neighbours Whole propulsions are extracted in the sports ground of block, and reject identical sports ground, the corresponding forward direction of current block finally given Any two sports ground is different in the prediction of sports ground.
Then, found out from the prediction for extracting obtained all propulsions identical with the propulsion field of current block Sports ground, referred to as target propulsion.
For example, extracting whole propulsions from the prediction of n sports ground and rejecting identical entry, propulsion is obtained The prediction of field, it is assumed that be followed successively by the prediction of the propulsion finally given comprising m propulsion, numbering: mvfpf0、mvfpf1、……、mvfpfm-1.Judge in this m propulsion with the presence or absence of a mvffc with current block Identical, if it is present determine that with mvffc identicals be target propulsion because target propulsion with The propulsion of current block is identical, it is possible to utilize the propulsion of the coded representation current block of target propulsion Coding.
In order to accurately find the coding of target propulsion, it is necessary to which the prediction to propulsion creates index, according to mesh The index of mark propulsion finds the coding of the target propulsion.For example, mvfpfi=mvffc, then to fortune before target Dynamic field is mvfpfi, and index is i.
S130, index corresponding to the target propulsion is encoded.
The index of target propulsion is encoded, for example, being encoded to mvfpfi index i.
S140, when there is reverse in the current block, searched from the prediction of the corresponding sports ground of current block with The reverse identical target reverse.
If there is reverse in the sports ground of current block, mvfbc is designated as, then all sports grounds obtained from S110 Prediction in extract the prediction of whole reverses, and reject identical.For example, being carried from the prediction of n sports ground Take out whole reverses and reject identical entry, the prediction for obtaining reverse includes t reverse, and numbering is successively For mvfpb0, mvfpb1 ..., mvfpbt-1.
Then, judge with the presence or absence of a mvfbc identical with current block in this t reverse, if deposited , it is determined that the corresponding sports ground of this is target reverse, because target reverse and the backward fortune of current block Dynamic field is identical, it is possible to utilize the reverse coding of the coded representation current block of target reverse.
In order to accurately find the coding of target reverse, it is necessary to which the prediction to reverse creates index, according to mesh The index of mark reverse finds the coding of the target reverse.For example, mvfpbj=mvfbc, then to fortune after target Dynamic field is mvfpbcj, and index is j.
S150, index corresponding to the target reverse is encoded.
For example, being encoded to mvfpbcj index j.
S160, coding and the target reverse manipulative indexing according to the target propulsion manipulative indexing Coding at least one of, obtain the coding of current block correspondence sports ground.
If current block only exists propulsion, the coding of target propulsion is regard as the corresponding fortune of current block The coding of dynamic field;
If current block only exists reverse, the coding of target reverse is regard as the corresponding fortune of current block The coding of dynamic field;
If current block has propulsion and reverse simultaneously, by the coding and mesh of target propulsion The coding for marking reverse is used as the coding of the corresponding sports ground of current block.
Target propulsion is coded block with target reverse, it is only necessary to encoding target propulsion and mesh The information such as the corresponding index of reverse are marked, the data volume of index is far smaller than the data volume of sports ground, therefore, coding Efficiency of the efficiency far of index higher than encoded motion.
The method for video coding based on sports ground that the present embodiment is provided, according to current block in time domain and/or spatial domain The propulsion of neighbours' block determines the prediction of the propulsion of current block, and the prediction of the propulsion is defined as into mesh Mark propulsion;And/or, according to the pre- of the reverse of the reverse of neighbours' block of current block determination current block Survey, and the prediction of the reverse is defined as target reverse;Because to fortune after target propulsion and target The coding of dynamic field, it is known that so only need to encode the index of target propulsion (or, target reverse), Encoded without the propulsion or reverse to current block, this improves code efficiency.Moreover, working as Preceding piece of propulsion and reverse can independently use above-mentioned video coding process, i.e. can be just for Propulsion is encoded using this method, or, encoded just for reverse to using this method, improve spirit Activity.
Fig. 3 is referred to, the flow chart of another method for video coding based on sports ground of the embodiment of the present invention is shown, such as Shown in Fig. 3, this method may comprise steps of:
S210, obtains the prediction of the corresponding sports ground of the current block from the corresponding sports ground of neighbours' block of current block.
Neighbours' block includes time domain neighbours block and/or spatial domain neighbours' block.Obtain the process and S110 phases of the sports ground of neighbours' block Together, here is omitted.
For example, the sports ground included in the prediction of the sports ground obtained after rejecting identical entry has n, coding is followed successively by mvfp0、mvfp1、……、mvfpn-1。
The prediction of sports ground includes the propulsion and reverse of neighbours' block.
S220, the prediction direction to current block is encoded.
Prediction direction include forward, backward and it is two-way in any one.For example, forward coding is binary number " 00 ", Backward to be encoded to binary number " 01 ", alternating binary coding is binary number " 10 ".
S230, obtains the sports ground of current block.
If the prediction direction of current block is preceding to the sports ground of the current block obtained is propulsion;
If the prediction direction of current block is backward, the sports ground of the current block obtained is reverse;
If the prediction direction of current block is two-way, the sports ground of the current block obtained is propulsion and reverse .
The sports ground of current block is obtained using the mode of existing predicted motion, will not enumerate herein.
S240, if the sports ground of current block has propulsion, is carried from the prediction of the corresponding sports ground of current block Whole propulsions are taken out, and reject identical entry, the prediction of propulsion is obtained.
Extract whole propulsions from the prediction of the corresponding sports ground of current block, and from whole propulsions Identical entry is rejected in, the prediction of the propulsion finally given is different, that is, in the prediction of the propulsion obtained Any two sports ground it is different.
S250, each sports ground included by the prediction of propulsion, which is created, to be indexed.
For example, extracting whole propulsions from the prediction of n sports ground and rejecting identical entry, obtain before m To sports ground, numbering is followed successively by:mvfpf0、mvfpf1、……、mvfpfm-1.0~m-1 of numbering herein is the rope of sports ground Draw.
The benefit for creating index for sports ground is that subsequently only index can be encoded, with carrying out coding phase to sports ground Than the data volume of index is far smaller than the data volume of sports ground, is encoded therefore, it is possible to the index that improves follow-up.
S260, compares the propulsion identical sports ground whether included in the prediction of propulsion with current block; If it is, performing S270;Otherwise, S280 is performed.
Judge whether the sports ground in the prediction of propulsion is identical with the propulsion field of current block.Sports ground is identical Refer to that refidx (reference key) and MV are identical.
S270, a pair index corresponding with the propulsion identical sports center of current block is encoded.
If there is the prediction of the propulsion identical propulsion with current block, then to the forward direction of neighbours' block The corresponding index of sports ground is encoded.
If for example, the propulsion (mvfpfi) (that is, the prediction of the propulsion of current block) of a certain neighbours' block Propulsion (mvffc) with current block is identical, i.e. the corresponding index of identical entry is i, then sets ismvffeq=1; Ismvffeq=1 represents to exist in the prediction of propulsion the propulsion identical target propulsion with current block , it is possible to use the propulsion coding of target propulsion coded representation current block, therefore, only need to be to identical entry correspondence Index encoded, greatly reduce amount of coded data, improve code efficiency.
Under such a application scenarios, first ismvffeq is encoded, then, index i encoded, for example, Ismvffeq=1 can be binary number " 1 " to encode;Index i coding can be the binary number corresponding to the index.
For example, neighbours' block B0 propulsion is identical with the propulsion field of current block, then transported with the forward direction of neighbours' block The coding for moving field is used as the coding of the sports ground of current block, it is not necessary to the sports ground of current block is encoded, it is only necessary to encode Index of the propulsion of neighbours' block in the prediction of propulsion.
S280, the propulsion to current block is encoded.
If not including the propulsion identical sports ground with current block in the prediction of the propulsion of current block, The propulsion to current block is then needed to encode.
Under such a application scenarios, ismvffeq=0 is set, ismvffeq=0 represents that propulsion is not present in current block Prediction;First ismvffeq is encoded, then, propulsion encoded using existing mode, i.e. first to reference Index is encoded, then MV residual errors are encoded.
S290, if the sports ground of current block has reverse, is extracted all backward from the prediction of sports ground Sports ground, and identical entry is rejected, obtain the prediction of the reverse of current block.
S2100, each sports ground included by the prediction of reverse, which is created, to be indexed.
For example, extracting whole reverses from the prediction of n sports ground and rejecting identical, t are obtained backward Sports ground, any two sports ground is different in this t reverse.
The numbering of this t reverse be followed successively by mvfpb1, mvfpb2 ..., mvfpbt-1, coding 0 herein~ T-1 is the index of sports ground.
S2110, compares the reverse identical sports ground whether included in the prediction of reverse with current block; If it is, performing S2120;Otherwise, S2130 is performed.
Judge each sports ground (refidx whether identical with the reverse field of current block in the prediction of reverse It is all identical with MV).
S2120, a pair index corresponding with the reverse identical sports center of current block is encoded.
In a kind of possible implementation of the present invention, if the reverse (mvfpbj) of a certain neighbours' block with it is current The reverse (mvfbc) of block is identical, i.e. the corresponding index of identical entry is j, then sets ismvfbeq=1;Ismvfbeq=1 Represent to exist in the prediction of reverse the reverse identical with current block, therefore, next only need to be to identical The corresponding index of item is encoded, i.e., compiled using the reverse of the reverse coding sign current block of the identical entry Code.
Under such a application scenarios, ismvfbeq is first encoded, then, code index j, for example, ismvffeq=1 can be two System number " 1 " is encoded;Index i coding can be the binary number corresponding to the index.
In the alternatively possible implementation of the present invention, the reverse identical sports ground pair of coding and current block , can be in the following way during the index answered:
If ismvffeq=0, ismvfbeq and index j are encoded according to the first arithmetic coding mode;If Ismvffeq=1, then encode ismvfbeq and index j according to second of arithmetic coding mode.
Arithmetic encoder is divided into two modules, is probability Estimation module and interval division module respectively;It is spaced division module Interval is divided according to probability, actual binary code stream is generated;Probability Estimation module is used to estimate symbol progress probability Meter.For binary coder, if present encoding symbol is " 1 ", probability Estimation module can be after coding exponent number more The probability Estimation of new symbol, making the probability of " 1 " increase, and the probability of " 0 " reduction, next time during coded identification " 1 " " 1 " code length Can be shorter;If current sign is " 0 ", probability Estimation module can update the probability Estimation of symbol after end-of-encode, make " 0 " Probability increase and the probability of " 1 " reduce.The present embodiment is " 1 " or " 0 " to ismvfbeq, index j according to ismvffeq Coding makes a distinction.According to statistics, as ismvffeq=1, ismvfbeq should also be more prone to 1, therefore, according to Ismvffeq situation uses different content models to ismvfbeq, index j, for example, as ismvffeq=1, it is right Ismvfbeq coding uses ctx0, and during ismvffeq=0, ctx1 is used to ismvfbeq coding.So encoded Cheng Zhong, with the progress of coding, statistically ismvfbeq=1 probability should be more than ismvfbeq=1 in ctx1 in ctx0 Probability, such ismvfbeq code efficiency is just improved.
S2130, the reverse to current block is encoded.
If not including the reverse identical sports ground with current block in the prediction of reverse, set Ismvfbeq=0, is first encoded to ismvfbeq, then, and propulsion is encoded using existing mode, i.e. first Reference key is encoded, then MV residual errors are encoded.
The method for video coding based on sports ground that the present embodiment is provided, according to current block in time domain and/or spatial domain The propulsion of neighbours' block determines the prediction of the propulsion of current block, and the prediction of the propulsion is defined as into mesh Mark propulsion;And/or, according to the pre- of the reverse of the reverse of neighbours' block of current block determination current block Survey, and the prediction of the reverse is defined as target reverse;Because to fortune after target propulsion and target The coding of dynamic field, it is known that so only need to pair with the propulsion identical target propulsion field of current block (or, with it is current The reverse of the reverse of block identical target) corresponding to index encoded, it is not necessary to the forward direction of current block Sports ground (or, reverse) itself is encoded, data volume of the data volume well below sports ground of index, therefore, should Method improves video coding efficiency.Moreover, the propulsion and reverse of current block can be independently using upper The video coding process stated, i.e. can be encoded just for propulsion using this method, or, just for backward fortune Trend is encoded using this method, improves the flexibility of Video coding.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain A little steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, be retouched in specification The embodiment stated belongs to preferred embodiment, and involved action and the module not necessarily present invention are necessary.
Corresponding to the above-mentioned method for video coding embodiment based on sports ground, present invention also offers based on sports ground Video coding apparatus embodiment.
Fig. 4 is referred to, a kind of block diagram of the video coding apparatus based on sports ground of the embodiment of the present application, the device is shown Encoded for the sports ground to frame of video.As shown in figure 4, the device can include:Sports ground prediction module 110, first Searching modul 120, the first coding module 130, the second searching modul 140 and the second coding module 150.
Sports ground prediction module 110, for obtaining current block correspondence from the corresponding sports ground of neighbours' block of current block Sports ground prediction.
Neighbours' block includes at least class in time domain neighbours block and spatial domain neighbours' block, for example, can only have time domain adjacent Block is occupied, or, only spatial domain neighbours block, or, existing time domain neighbours block has spatial domain neighbours' block again.
The sports ground of each neighbours' block as shown in Figure 2 as current block X sports ground prediction.The prediction bag of sports ground The prediction of propulsion and the prediction of reverse field are included, the prediction of sports ground is used for predicting the sports ground of current block.
First searching modul 120, for when the current block has propulsion, from the corresponding fortune of the current block Searched in the prediction of dynamic field and the propulsion of the propulsion identical target.
If there is propulsion in the sports ground of current block, mvffc is designated as, then sports ground prediction module 110 is obtained Current block all sports grounds prediction in extract the prediction of whole propulsions, and reject identical.Then, from The propulsion identical sports ground with current block, referred to as mesh are found out in the prediction for extracting obtained all propulsions Mark propulsion.
In one embodiment of the application, as shown in figure 5, the first searching modul 120 can include:First obtains submodule Block 121, the first index creation submodule 122, the first comparison sub-module 123 and the first determination sub-module 124.
First acquisition submodule 121, the propulsion for obtaining the current block.
First index creation submodule 122, for owning for being included from the prediction of the corresponding sports ground of the current block The prediction of the mutually unduplicated propulsion is extracted in the prediction of the propulsion, and institute is not repeated mutually for each The prediction for stating propulsion creates index.
For example, extracting whole propulsions from the prediction of n sports ground and rejecting identical entry, obtain before m To sports ground, moreover, any two propulsion is different in this m propulsion.
Then, m propulsion is numbered successively successively, for example, numbering is followed successively by:mvfpf0、 mvfpf1、……、mvfpfm-1.0~m-1 of numbering herein is the index of propulsion.
First comparison sub-module 123, for the prediction of each relatively more described mutual unduplicated propulsion and institute one by one Whether identical state propulsion.
Judge whether the sports ground in the prediction of propulsion is identical with the propulsion field of current block.Sports ground is identical Refer to that refidx (reference key) and MV are identical.
First determination sub-module 124, for when exist and the propulsion of the propulsion identical prediction when, It is determined that being predicted as the target propulsion with the propulsion of the propulsion identical, and determine the target The corresponding index of propulsion.
The propulsion of current block is obtained using first searching modul, and, from the propulsion field of current block The prediction of the propulsion identical propulsion with current block is searched in prediction, and determines the prediction of the propulsion For the target propulsion of current block, finally obtain the index of the target propulsion, so as to next step to before target to The index of sports ground is encoded.
First coding module 130, for being encoded to the corresponding index of the target propulsion, obtains described work as The coding of preceding piece of propulsion.
, only need to be to this if there is the propulsion identical sports ground with current block in the prediction of propulsion The corresponding index of prediction of propulsion is encoded.
In one embodiment of the application, as shown in fig. 6, the first coding module 130 includes:First encoding submodule 131st, the second encoding submodule 132 and the first coding obtain submodule 133.
First encoding submodule 131, for being encoded to the first preset mark, first preset mark is used to characterize There is the target propulsion.
For example, there is the propulsion with current block during the prediction of propulsion can be represented with ismvffeq=1 Identical.
Second encoding submodule 132, for being encoded to the corresponding index of the target propulsion.
First coding obtain submodule 133, for before the coding and the target according to first preset mark to fortune The coding of the dynamic corresponding index in field, obtains the coding of the propulsion of the current block.
Under such a application scenarios, first ismvffeq is encoded, then, index i corresponding to target propulsion Encoded, for example, ismvffeq=1 can be binary number " 1 " to encode;Index i coding can be that index institute is right The binary number answered.
First coding module need to only be encoded to the index of the first preset mark and target propulsion, and to ought Preceding piece of propulsion carries out coding and compared, and greatly reduces amount of coded data, improves code efficiency.
Second searching modul 140, for when the current block has reverse, from the corresponding fortune of the current block Searched in the prediction of dynamic field and the reverse of the reverse identical target.
When the reverse identical sports ground with current block is searched from the prediction of the corresponding sports ground of current block, really Sports ground in the prediction of the fixed sports ground is target reverse.
In one embodiment of the application, as shown in fig. 7, the second searching modul 140 can include:Second obtains submodule Block 141, the second index creation submodule 142, the second comparison sub-module 143 and the second determination sub-module 144.
Second acquisition submodule 141, the reverse for obtaining current block.
Second index creation submodule 142, for the reverse included from the prediction of the corresponding sports ground of current block The prediction of mutually unduplicated reverse is extracted in the prediction of field, and is each mutual unduplicated reverse field Prediction creates index.
If there is reverse in the sports ground of current block, extracted from the prediction of the corresponding sports ground of current block Go out whole reverses, and reject identical entry, obtain the prediction of the reverse of current block.And, it is that each is not weighed mutually The prediction of multiple reverse creates index.
For example, extracting whole reverses from the prediction of n sports ground and rejecting identical, t are obtained backward Sports ground, numbering be followed successively by mvfpb1, mvfpb2 ..., mvfpbt-1.0~t-1 of coding herein is the index of sports ground.
Second comparison sub-module 143, for comparing each the mutually prediction of unduplicated reverse and backward fortune one by one Whether dynamic field is identical.
Second determination sub-module 144, for when exist and the reverse of reverse information identical prediction when, It is determined that being predicted as target reverse with the reverse of reverse identical, and determine that target reverse is right The index answered.
Second searching modul is similar to the function of the first searching modul, and difference is, the second searching modul is used for Search the prediction of the reverse identical reverse with current block, i.e. target reverse, and obtain the target The index of reverse, so that next step is encoded to the index of the target reverse.
Second coding module 150, for being encoded to the corresponding index of the target reverse, obtains described work as The coding of preceding piece of reverse.
If there is target reverse, then the index of the target reverse need to only be encoded.
In one embodiment of the application, as shown in figure 8, the second coding module 150 includes:3rd encoding submodule 151st, the 4th encoding submodule 152 and the second coding obtain submodule 153.
3rd encoding submodule 151, for there is the second preset mark of the target reverse for characterizing Encoded.
4th encoding submodule 152, for being encoded to the corresponding index of the target reverse.
Second coding obtains submodule 153, for the coding according to second preset mark, and, after the target To the coding of the corresponding index of sports ground, the coding of the reverse of current block is obtained.
If for example, the reverse (mvfpbj) of a certain neighbours' block and reverse (mvfbc) phase of current block Together, i.e. the corresponding index of identical entry is j, then sets ismvfbeq=1;Ismvfbeq=1 is represented in the prediction of reverse In the presence of the reverse identical target reverse with current block, it therefore, it can utilize the target reverse The reverse of coded representation current block is encoded, therefore second coding module corresponding to identical entry need to only be indexed and compiled Code.
The method for video coding based on sports ground that the present embodiment is provided, according to current block in time domain and/or spatial domain The propulsion of neighbours' block determines the prediction of the propulsion of current block, and the prediction of the propulsion is defined as into mesh Mark propulsion;And/or, according to the pre- of the reverse of the reverse of neighbours' block of current block determination current block Survey, and the prediction of the reverse is defined as target reverse;Because to fortune after target propulsion and target The coding of dynamic field, it is known that so only need to encode the index of target propulsion (or target reverse), and The propulsion or reverse of current block need not be encoded, this improves code efficiency.Moreover, current The propulsion and reverse of block can independently use above-mentioned video coding process, i.e. can be just for preceding Encoded to sports ground using this method, or, encoded, improved flexibly to using this method just for reverse Property.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with features of novelty with principles disclosed herein most wide Scope.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method for video coding based on sports ground, it is characterised in that including:
The prediction of the corresponding sports ground of the current block, neighbours' block are obtained from the corresponding sports ground of neighbours' block of current block Including at least class in time domain neighbours block and spatial domain neighbours' block;The prediction of the corresponding sports ground of the current block includes preceding to fortune The prediction of dynamic field and the prediction of reverse;
When the current block has propulsion, before searching from the prediction of the corresponding sports ground of the current block and be described To sports ground identical target propulsion;
Index corresponding to the target propulsion is encoded, and obtains the coding of the propulsion of the current block;
When the current block has reverse, after searching from the prediction of the corresponding sports ground of the current block and be described To sports ground identical target reverse;
Index corresponding to the target reverse is encoded, and obtains the coding of the reverse of the current block.
2. according to the method described in claim 1, it is characterised in that described when the current block has propulsion, from Searched in the prediction of the corresponding sports ground of the current block with the propulsion of the propulsion identical target, including:
Obtain the propulsion of the current block;
Extracted mutually in the prediction of all propulsions included from the prediction of the corresponding sports ground of the current block The prediction of the unduplicated propulsion, and be the prediction establishment index of each mutual unduplicated propulsion;
Whether the prediction of each relatively more described mutual unduplicated propulsion is identical with the propulsion one by one;
When exist and the propulsion of the propulsion identical prediction when, it is determined that with the propulsion identical Propulsion is predicted as the target propulsion, and determines the corresponding index of the target propulsion.
3. according to the method described in claim 1, it is characterised in that described when the current block has reverse, from Searched in the prediction of the corresponding sports ground of the current block with the reverse of the reverse identical target, including:
Obtain the reverse of the current block;
Extracted in the prediction of the reverse included from the prediction of the corresponding sports ground of the current block mutually unduplicated The prediction of the reverse, and be the prediction establishment index of each mutual unduplicated reverse;
Whether the prediction of each relatively more described mutual unduplicated reverse is identical with the reverse one by one;
When exist and the reverse of the reverse information identical prediction when, it is determined that with the reverse phase With reverse be predicted as the target reverse, and determine the corresponding index of the target reverse.
4. according to the method described in claim 1, it is characterised in that the prediction to the target propulsion is corresponding Index is encoded, and is obtained the coding of the propulsion of the current block and is included:
First preset mark is encoded, first preset mark has the target propulsion for sign;
Index corresponding to the target propulsion is encoded;
According to the coding of first preset mark and the coding of the corresponding index of the target propulsion, described work as is obtained The coding of preceding piece of propulsion.
5. according to the method described in claim 1, it is characterised in that the prediction to the target reverse is corresponding Index is encoded, and obtains the coding of the reverse of the current block, including:
The second preset mark that there is the target reverse for characterizing is encoded;
Index corresponding to the target reverse is encoded;
According to the coding of second preset mark, and, the coding of the corresponding index of the target reverse obtains institute State the coding of the reverse of current block.
6. a kind of video coding apparatus based on sports ground, it is characterised in that including:
Sports ground prediction module, for obtaining the corresponding motion of the current block from the corresponding sports ground of neighbours' block of current block The prediction of field, neighbours' block includes at least class in time domain neighbours block and spatial domain neighbours' block;The corresponding fortune of the current block The prediction of dynamic field includes the prediction of propulsion and the prediction of reverse field;
First searching modul, for when the current block has propulsion, from the corresponding sports ground of the current block Searched in prediction and the propulsion of the propulsion identical target;
First coding module, for being encoded to the corresponding index of the target propulsion, obtains the current block The coding of propulsion;
Second searching modul, for when the current block has reverse, from the corresponding sports ground of the current block Searched in prediction and the reverse of the reverse identical target;
Second coding module, for being encoded to the corresponding index of the target reverse, obtains the current block The coding of reverse.
7. device according to claim 6, it is characterised in that first searching modul, including:
First acquisition submodule, the propulsion for obtaining the current block;
First index creation submodule, for all forward directions included from the prediction of the corresponding sports ground of the current block The prediction of the mutually unduplicated propulsion is extracted in the prediction of sports ground, and the forward direction fortune is not repeated mutually for each The prediction of dynamic field creates index;
First comparison sub-module, the prediction for each relatively more described mutual unduplicated propulsion one by one is transported with the forward direction Whether dynamic field is identical;
First determination sub-module, for when exist and the propulsion of the propulsion identical prediction when, it is determined that with The propulsion of the propulsion identical is predicted as the target propulsion, and determines before the target to fortune The dynamic corresponding index in field.
8. device according to claim 6, it is characterised in that second searching modul, including:
Second acquisition submodule, the reverse for obtaining the current block;
Second index creation submodule, for the reverse that is included from the prediction of the corresponding sports ground of the current block The prediction of the mutually unduplicated reverse is extracted in prediction, and is each mutual unduplicated reverse Prediction creates index;
Second comparison sub-module, for the prediction of each relatively more described mutual unduplicated reverse and the backward fortune one by one Whether dynamic field is identical;
Second determination sub-module, for when exist and the reverse of the reverse information identical prediction when, really It is fixed to be predicted as the target reverse with the reverse of the reverse identical, and determine after the target To the corresponding index of sports ground.
9. device according to claim 6, it is characterised in that first coding module, including:
First encoding submodule, for being encoded to the first preset mark, there is institute in first preset mark for sign State target propulsion;
Second encoding submodule, for being encoded to the corresponding index of the target propulsion;
First coding obtains submodule, corresponding with the target propulsion for the coding according to first preset mark Index coding, obtain the coding of the propulsion of the current block.
10. device according to claim 6, it is characterised in that second coding module, including:
3rd encoding submodule, for being compiled to the second preset mark that there is the target reverse for characterizing Code;
4th encoding submodule, for being encoded to the corresponding index of the target reverse;
Second coding obtains submodule, for the coding according to second preset mark, and, the target reverse The coding of corresponding index, obtains the coding of the reverse of the current block.
CN201710501666.9A 2017-06-27 2017-06-27 Method for video coding and device based on sports ground Pending CN107318024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710501666.9A CN107318024A (en) 2017-06-27 2017-06-27 Method for video coding and device based on sports ground

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710501666.9A CN107318024A (en) 2017-06-27 2017-06-27 Method for video coding and device based on sports ground

Publications (1)

Publication Number Publication Date
CN107318024A true CN107318024A (en) 2017-11-03

Family

ID=60180714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710501666.9A Pending CN107318024A (en) 2017-06-27 2017-06-27 Method for video coding and device based on sports ground

Country Status (1)

Country Link
CN (1) CN107318024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556567A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Method and device for inter-frame prediction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339935A (en) * 2011-01-21 2013-10-02 高通股份有限公司 Motion vector prediction
CN103916673A (en) * 2013-01-06 2014-07-09 华为技术有限公司 Coding method and decoding method and device based on bidirectional forecast
CN104363451A (en) * 2014-10-27 2015-02-18 华为技术有限公司 Image forecasting method and related device
CN105072450A (en) * 2009-11-18 2015-11-18 Sk电信有限公司 Method and apparatus for encoding/decoding a motion vector by selecting a set of predicted candidate motion vectors, and method and apparatus for image encoding/decoding using the same
CN106851273A (en) * 2017-02-10 2017-06-13 北京奇艺世纪科技有限公司 A kind of motion-vector coding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072450A (en) * 2009-11-18 2015-11-18 Sk电信有限公司 Method and apparatus for encoding/decoding a motion vector by selecting a set of predicted candidate motion vectors, and method and apparatus for image encoding/decoding using the same
CN103339935A (en) * 2011-01-21 2013-10-02 高通股份有限公司 Motion vector prediction
CN103916673A (en) * 2013-01-06 2014-07-09 华为技术有限公司 Coding method and decoding method and device based on bidirectional forecast
CN104363451A (en) * 2014-10-27 2015-02-18 华为技术有限公司 Image forecasting method and related device
CN106851273A (en) * 2017-02-10 2017-06-13 北京奇艺世纪科技有限公司 A kind of motion-vector coding method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556567A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Method and device for inter-frame prediction

Similar Documents

Publication Publication Date Title
CN105915914B (en) Remove the method and apparatus of redundancy in motion vector predictor
CN103238319B (en) Derivation motion vector predictor or the method and device of motion vector predictor candidate item
CN103152562B (en) The coding/decoding method of motion vector
CN104869422B (en) Method and apparatus for encoding and decoding motion vector
CN105704495B (en) The method and apparatus of motion vector prediction
CN103748880B (en) The coding method of image sequence and the coding/decoding method and device of device and image sequence
CN104661031B (en) For encoding video pictures and method, encoding device and the decoding device of decoding
CN103096072B (en) The coding/decoding method of video data
CN106713933A (en) Image decoding method
CN108605137A (en) The method for video coding and device compensated using affine motion
CN110447228A (en) Difference motion vector (MVD) prediction
CN109845268A (en) Divided using the block of tree construction
CN109314785A (en) Method and apparatus for exporting motion prediction information
CN103609125A (en) Method and apparatus for encoding and decoding motion vector of multi-view video
CN103152563B (en) The decoding device of video data
TWI538487B (en) Method and system of coding prediction for screen video
CN107105286A (en) Derive the method and apparatus of motion vector predictor
CN103098467A (en) Methods and apparatuses for encoding and decoding motion vector
CN106170088A (en) For the method decoding video signal
CN107360433A (en) A kind of interframe prediction encoding method and device
CN106993187A (en) A kind of coding method of variable frame rate and device
CN108833925A (en) Inter-frame prediction method based on deep neural network in a kind of mixed video coding/decoding system
CN107318024A (en) Method for video coding and device based on sports ground
CN106658024B (en) A kind of quick method for video coding
CN112565753B (en) Method and apparatus for determining motion vector difference, storage medium, and electronic apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103