CN106358041B - A kind of interframe prediction encoding method and device - Google Patents

A kind of interframe prediction encoding method and device Download PDF

Info

Publication number
CN106358041B
CN106358041B CN201610765403.4A CN201610765403A CN106358041B CN 106358041 B CN106358041 B CN 106358041B CN 201610765403 A CN201610765403 A CN 201610765403A CN 106358041 B CN106358041 B CN 106358041B
Authority
CN
China
Prior art keywords
block
weighting parameters
encoded
reference picture
weighting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610765403.4A
Other languages
Chinese (zh)
Other versions
CN106358041A (en
Inventor
朱洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610765403.4A priority Critical patent/CN106358041B/en
Publication of CN106358041A publication Critical patent/CN106358041A/en
Priority to MYPI2018002705A priority patent/MY196896A/en
Priority to CA3028510A priority patent/CA3028510C/en
Priority to SG11201811472QA priority patent/SG11201811472QA/en
Priority to ES17845171T priority patent/ES2857857T3/en
Priority to EP17845171.2A priority patent/EP3509303B1/en
Priority to JP2019510423A priority patent/JP6781823B2/en
Priority to KR1020187037514A priority patent/KR102148723B1/en
Priority to PCT/CN2017/096641 priority patent/WO2018040869A1/en
Priority to AU2017317848A priority patent/AU2017317848B2/en
Priority to US16/313,601 priority patent/US10715820B2/en
Priority to TW106128993A priority patent/TWI655860B/en
Application granted granted Critical
Publication of CN106358041B publication Critical patent/CN106358041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • 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
    • 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)

Abstract

The embodiment of the invention discloses a kind of interframe prediction encoding method and devices, which comprises frame to be encoded is divided into multiple blocks to be encoded using encoder;For each block to be encoded, the corresponding forward coding block of the block to be encoded and backward encoding block are determined;Determine corresponding first weighting parameters of forward coding block;Determine comprising forward coding block reference picture the second weighting parameters based on overall brightness, and determination include after to encoding block reference picture the third weighting parameters based on overall brightness;According to the first weighting parameters, to corresponding 4th weighting parameters of encoding block after determining;According to the first weighting parameters, the second weighting parameters, third weighting parameters, the 4th weighting parameters, the practical weighting parameters of the prediction of the block to be encoded are determined;Using the practical weighting parameters of prediction, predictive coding is carried out to the block to be encoded.Using interframe prediction encoding method provided in an embodiment of the present invention and device, the accuracy of inter prediction encoding is improved.

Description

A kind of interframe prediction encoding method and device
Technical field
The present invention relates to technical field of video coding, in particular to a kind of interframe prediction encoding method and device.
Background technique
It is well known that there is very strong correlation between video image data, that is to say, that there is a large amount of redundancy.Frame Between predictive coding be exactly to be obtained using the block in the coded reference picture of time domain to predicting for current block to be encoded Then predicted value encodes the difference of the value of block to be encoded and predicted value.Inter prediction encoding generally includes, forward prediction, Back forecast, symmetrical prediction and bi-directional predicted.One forward or backward reference is only needed for forward prediction, back forecast Frame, and symmetrically predict to need forward reference frame and backward reference frame with bi-directional predicted.
In general, bidirectional weighting can consider in the video coding framework of modern block base motion compensation mixing dct transform Be weighting parameters be (1/2,1/2), then the weighting parameters of forward direction are (1,0), back-weight parameter is (0,1).H.264 double Into coding, using being encoded separately, for the block to be encoded of frame to be encoded, it is assumed that coding parameter is 3, respectively 1/2,1/3,1/4, the forward reference frame of block to be encoded and backward reference frame respectively correspond 3 weighting parameters, forward reference frame and The weighting parameters of backward reference frame will be selected from 9 (3*3) kind modes, and there may be forward direction weightings during actual prediction The case where parameter and back-weight parameter are 1/3, it is clear that such weighting parameters be it is unreasonable, will cause inter-prediction volume The accuracy of code is lower.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of bidirectional weighting predictive coding method and device, pre- to improve interframe Survey the accuracy of coding.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of interframe prediction encoding methods, which comprises
Frame to be encoded is divided into multiple blocks to be encoded using encoder;
For each block to be encoded, the corresponding forward coding block of the block to be encoded and backward encoding block are determined;
Determine corresponding first weighting parameters of the forward coding block;
It determines the second weighting parameters based on overall brightness of the reference picture comprising the forward coding block, and determines The third weighting parameters based on overall brightness of reference picture comprising the backward encoding block;
According to first weighting parameters, corresponding 4th weighting parameters of the backward encoding block are determined;
According to first weighting parameters, second weighting parameters, the third weighting parameters, the 4th weighting ginseng Number, determines the practical weighting parameters of the prediction of the block to be encoded;
Using the practical weighting parameters of prediction, predictive coding is carried out to the block to be encoded.
Preferably, described to be directed to each block to be encoded, determine the corresponding forward coding block of the block to be encoded and backward coding Block, comprising:
For each block to be encoded, using motion search technology, determine the corresponding forward coding block of the block to be encoded with after To encoding block.
Preferably, corresponding first weighting parameters of the determination forward coding block, comprising:
According to the forward coding block and the backward encoding block, it is corresponding to calculate pre-set each forward direction weighting parameters Prediction block;
Calculate the residual values of the block to be encoded and each prediction block;
By the corresponding forward direction weighting parameters of the smallest residual values of absolute value, it is determined as the first weighting parameters.
Preferably, the weighting parameters based on overall brightness of reference picture are determined, comprising:
According to the brightness value of all pixels of reference picture point and pixel sum, the reference picture is determined Weighting parameters based on overall brightness.
Preferably, the weighting parameters based on overall brightness of reference picture are determined, comprising:
According to frame, the reference picture and the least residual technology to be encoded, determine the reference picture based on The weighting parameters of overall brightness.
It is preferably, described to determine corresponding 4th weighting parameters of the backward encoding block according to first weighting parameters, Include:
According to first weighting parameters and formula: the first weighting parameters of four weighting parameters=1-, determine it is described after To corresponding 4th weighting parameters of encoding block.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of inter prediction encoding device, described device includes:
Division module, for frame to be encoded to be divided into multiple blocks to be encoded using encoder;
First determining module determines the corresponding forward coding block of the block to be encoded with after for being directed to each block to be encoded To encoding block;
Second determining module, for determining corresponding first weighting parameters of the forward coding block;
Third determining module, for determining second based on overall brightness of the reference picture comprising the forward coding block Weighting parameters, and determine the third weighting parameters based on overall brightness of the reference picture comprising the backward encoding block;
4th determining module, for determining that the backward encoding block the corresponding 4th adds according to first weighting parameters Weight parameter;
5th determining module, for according to first weighting parameters, second weighting parameters, third weighting ginseng Several, described 4th weighting parameters, determine the practical weighting parameters of the prediction of the block to be encoded;
Coding module, for carrying out predictive coding to the block to be encoded using the practical weighting parameters of prediction.
Preferably, first determining module, is specifically used for:
For each block to be encoded, using motion search technology, determine the corresponding forward coding block of the block to be encoded with after To encoding block.
Preferably, second determining module includes: the first computational submodule, the second computational submodule, determines submodule,
First computational submodule, for according to the forward coding block and the backward encoding block, calculating to be set in advance The corresponding prediction block of each forward direction weighting parameters set;
Second computational submodule, for calculating the residual values of the block to be encoded and each prediction block;
The determining submodule, for being determined as first for the corresponding forward direction weighting parameters of the smallest residual values of absolute value Weighting parameters.
Preferably, the weighting parameters based on overall brightness of reference picture are determined, comprising:
According to the brightness value of all pixels of reference picture point and pixel sum, the reference picture is determined Weighting parameters based on overall brightness.
Preferably, the weighting parameters based on overall brightness of reference picture are determined, comprising:
According to frame, the reference picture and the least residual technology to be encoded, determine the reference picture based on The weighting parameters of overall brightness.
Preferably, the 4th determining module, is specifically used for:
According to first weighting parameters and formula: the first weighting parameters of four weighting parameters=1-, determine it is described after To corresponding 4th weighting parameters of encoding block.
As seen from the above technical solutions, a kind of interframe prediction encoding method and device provided in an embodiment of the present invention, institute The method of stating includes: that frame to be encoded is divided into multiple blocks to be encoded using encoder;For each block to be encoded, determining should be wait compile The corresponding forward coding block of code block and backward encoding block;Determine corresponding first weighting parameters of the forward coding block;Determine packet The second weighting parameters based on overall brightness of reference picture containing the forward coding block, and determine to include the backward volume The third weighting parameters based on overall brightness of the reference picture of code block;According to first weighting parameters, determine described backward Corresponding 4th weighting parameters of encoding block;According to first weighting parameters, second weighting parameters, third weighting ginseng Several, described 4th weighting parameters, determine the practical weighting parameters of the prediction of the block to be encoded;Using the prediction, actually weighting is joined Number carries out predictive coding to the block to be encoded.
Using technical solution provided in an embodiment of the present invention, to volume after being determined by the forward direction weighting parameters of forward coding block The corresponding back-weight parameter of code block, and do not have to choose back-weight parameter from weighting parameters, it avoids the prior art and is adding The lower problem of the unreasonable accuracy that will lead to predictive coding of back-weight parameter is chosen in weight parameter.This improves The accuracy of inter prediction encoding.
Certainly, implementing either present invention method or device must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of interframe prediction encoding method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of inter prediction encoding device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
To solve prior art problem, the embodiment of the invention provides a kind of interframe prediction encoding method and devices, below It is described in detail respectively.
It should be noted that image uniform to be encoded is divided into mutual nonoverlapping basic coding unit by encoder, most Greatly 64*64, to each basic coding unit according to sequential encoding from top to bottom, from left to right.In practical operation, it can incite somebody to action Basic coding unit is encoded directly as a coding unit, can also be according to quad-tree partition by basic coding unit Coding unit, coding unit can be again divided into encoding block.
Interframe prediction encoding method and device provided in an embodiment of the present invention, primarily directed to symmetrical prediction and bi-directional predicted Two kinds of prediction modes, current frame to be encoded include forward reference frame list and backward reference frame lists, and reference frame lists are wrapped again Containing multiple reference frames.For each block to be encoded, forward coding block and backward encoding block are searched for, is joined according to preset weighting Number, choose optimal weighting parameters and encoded, when reference picture have brightness change when, it is also necessary to according to brightness change value into Row weight estimation.
Fig. 1 is a kind of flow diagram of interframe prediction encoding method provided in an embodiment of the present invention, is included the following steps:
Frame to be encoded is divided into multiple blocks to be encoded using encoder by S101.
S102 determines the corresponding forward coding block of the block to be encoded and backward encoding block for each block to be encoded.
Specifically, being directed to each block to be encoded, the corresponding forward coding block of the block to be encoded and backward encoding block are determined, it can To be directed to each block to be encoded, using motion search technology, the corresponding forward coding block of the block to be encoded and backward coding are determined Block.
S103 determines corresponding first weighting parameters of the forward coding block.
Specifically, determine corresponding first weighting parameters of the forward coding block, can according to the forward coding block and The backward encoding block calculates the corresponding prediction block of pre-set each forward direction weighting parameters;Calculate the block to be encoded and The residual values of each prediction block;By the corresponding forward direction weighting parameters of the smallest residual values of absolute value, it is determined as the first weighting parameters.
S104 determines the second weighting parameters based on overall brightness of the reference picture comprising the forward coding block, with And determine the third weighting parameters based on overall brightness of the reference picture comprising the backward encoding block.
Specifically, determine the weighting parameters based on overall brightness of reference picture, it can be according to the institute of the reference picture There are the brightness value and pixel sum of pixel, determines the weighting parameters based on overall brightness of the reference picture.
It, can be according to the frame to be encoded, described specifically, determine the weighting parameters based on overall brightness of reference picture Reference picture and least residual technology determine the weighting parameters based on overall brightness of the reference picture.
S105 determines corresponding 4th weighting parameters of the backward encoding block according to first weighting parameters.
Specifically, to corresponding 4th weighting parameters of encoding block after determining, can according to first weighting parameters and Formula: the first weighting parameters of four weighting parameters=1- determine corresponding 4th weighting parameters of the backward encoding block.
S106, according to first weighting parameters, second weighting parameters, the third weighting parameters, the described 4th Weighting parameters determine the practical weighting parameters of the prediction of the block to be encoded.
S107 carries out predictive coding to the block to be encoded using the practical weighting parameters of prediction.
It will be appreciated by persons skilled in the art that frame to be encoded is first divided into basic coding unit, basic coding list Member can be four coding units by quad-tree partition, and four coding units can also carry out independent division, available big Small is the encoding block of 8*8,8*16,16*8 or 16*16, for each basic coding unit take under, from left to right Coded sequence carry out.As long as encoding block is able to satisfy coding requirement in the embodiment of the present invention, the size of encoding block is not added To limit.
In actual use, each block to be encoded will search for phase therewith from forward direction reference frame lists and backward reference frame lists Matched piece, i.e. forward coding block and backward encoding block.In general, determining forward coding block and backward volume using motion search technology Code block.Motion search technology is the prior art, and the embodiment of the present invention does not repeat it herein.
Illustratively, the forward direction weighting parameters of encoder in advance setting are as follows: 1/3,2/3,1/4,1/2,3/4, block to be encoded L0Forward coding block and backward encoding block be L1、L2, with the corresponding prediction block P of forward direction weighting parameters 1/31For, P1=1/3* L1+(1-1/3)*L2, successively calculate P2、P3、P4、P5.By the value of obtain 5 prediction blocks and block to be encoded L0Subtract each other, it is assumed that To residual values be respectively P1=0.15, P2=0.12, P3=0.11, P4=0.03, P5=-0.005, the smallest absolute value is P5 Corresponding -0.005, then it is determined as the first weighting parameters for 3/4.
When forward coding block to the reference picture where encoding block there is light intensity to change with after, needing will be with reference to figure The brightness value of picture is also encoded.It is therefore desirable to calculate the weighting parameters of the overall brightness in relation to reference picture.Actual use In, all brightness values of image can be added up to the summation for obtaining brightness value, then with the summation of brightness value divided by all pictures Prime number obtains luminance weighted parameter.Illustratively, the pixel number of reference picture be 10,10 pixels brightness value it Be 11, then luminance weighted parameter be 11/10, i.e., 1.1.Alternatively, frame to be encoded and two width reference pictures are first carried out it is down-sampled, Become lesser image, select a luminance weighted parameter, it is multiplied to obtain weighted reference picture with reference picture, and will figure As piecemeal, then to each of present image piece, the block to match is searched in weighted reference picture, obtains prediction residual value simultaneously Take the sum of its square;By converting different luminance weighted parameters, the sum of corresponding residual values square are obtained, selection keeps residual error flat Luminance weighted parameter of the square and the smallest luminance weighted parameter as reference picture, corresponding forward direction reference picture and backward reference The overall brightness weighting parameters of image are W1、W2.The above two method for obtaining overall brightness weighting parameters is the prior art, this Inventive embodiments do not repeat them here.
It will be appreciated by persons skilled in the art that in S103, it is determined that the corresponding first weighting ginseng of forward coding block Number, for determining 3/4, then corresponding second weighting parameters of backward encoding block are 1-3/4=1/4.
In practical application, the reference picture where forward coding block and backward encoding block is usually to have light intensity variation , so the coding to block to be encoded is not only related in relation to the brightness also with reference picture with weighting parameters, actual weighting ginseng Number is (3/4*W1, 1/4*W2).Assuming that W1=1.1, W2=1.2, actual weighting parameters are (0.825,0.3).By practical weighting Parameter (0.825,0.3) combines forward coding block and backward encoding block, the residual values of prediction block and block to be encoded is obtained, to residual error Value is encoded.When image does not have the variation of light intensity, the weighting parameters of overall brightness are 1.
In practical application, the acquisition pattern of weighting parameters can be using one parameter N of setting, it is assumed that N=4, then it is specific to add Weight parameter are as follows: (0,1), (1/4,3/4), (1/2,1/2), (3/4,1/4), (1,0).Can also by where block to be encoded wait compile Code frame with where forward coding block and backward encoding block forward reference frame and backward reference frame bound, when next time encode When, if frame to be encoded still corresponds to the forward reference frame and backward reference frame, N is called directly, obtains weighting parameters.
In general, the acquisition pattern of N can use: being configured in advance;Alternatively, by each piece and forward direction in frame to be encoded Reference frame and backward reference frame carry out successive ignition, and the value range of usual N is 3 or more, in view of the influence to code efficiency, N Value do not exceed 10 generally.N can be written to the frame head of frame to be encoded or write in coding parameter combination.
When parameter is (0,1) and (1,0), specific corresponding back forecast and forward prediction, the embodiment of the present invention are not done superfluous It states.
As it can be seen that application present invention embodiment shown in FIG. 1, to volume after being determined by the forward direction weighting parameters of forward coding block The corresponding back-weight parameter of code block, and do not have to choose back-weight parameter from weighting parameters, it avoids the prior art and is adding The lower problem of the unreasonable accuracy that will lead to predictive coding of back-weight parameter is chosen in weight parameter.This improves The accuracy of inter prediction encoding.
Fig. 2 is a kind of structural schematic diagram of inter prediction encoding device provided in an embodiment of the present invention, may include: to divide Module 201, the first determining module 202, the second determining module 203, third determining module 204, the 4th determining module the 205, the 5th Determining module 206, coding module 207.
Division module 201, for frame to be encoded to be divided into multiple blocks to be encoded using encoder.
First determining module 202, for be directed to each block to be encoded, determine the corresponding forward coding block of the block to be encoded and Backward encoding block.
Specifically, the first determining module 202 can be used in practical application: each block to be encoded is directed to, using movement Search technique determines the corresponding forward coding block of the block to be encoded and backward encoding block.
Second determining module 203, for determining corresponding first weighting parameters of the forward coding block.
Specifically, the second determining module 203 may include: the first computational submodule, the second calculating submodule in practical application Block determines submodule (not shown), wherein
First computational submodule, for calculating pre-set according to the forward coding block and the backward encoding block The corresponding prediction block of each forward direction weighting parameters;
Second computational submodule, for calculating the residual values of the block to be encoded and each prediction block;
Submodule is determined, for being determined as the first weighting for the corresponding forward direction weighting parameters of the smallest residual values of absolute value Parameter.
Third determining module 204 includes the reference picture of the forward coding block based on overall brightness for determination Second weighting parameters, and determine that the third based on overall brightness of the reference picture comprising the backward encoding block weights ginseng Number.
Specifically, the weighting parameters based on overall brightness of reference picture are determined in practical application, it can be according to the ginseng The brightness value and pixel sum for examining all pixels point of image, determine the weighting based on overall brightness of the reference picture Parameter.
Specifically, determine the weighting parameters based on overall brightness of reference picture in practical application, can according to it is described to Coded frame, the reference picture and least residual technology determine the weighting parameters based on overall brightness of the reference picture.
4th determining module 205, for determining the backward encoding block the corresponding 4th according to first weighting parameters Weighting parameters.
Specifically, the 4th determining module 205 can be used in practical application: according to first weighting parameters and public affairs Formula: the first weighting parameters of four weighting parameters=1- determine corresponding 4th weighting parameters of the backward encoding block.
5th determining module 206, for being added according to first weighting parameters, second weighting parameters, the third Weight parameter, the 4th weighting parameters, determine the practical weighting parameters of the prediction of the block to be encoded.
Coding module 207, for carrying out predictive coding to the block to be encoded using the practical weighting parameters of prediction.
As it can be seen that application present invention embodiment shown in Fig. 2, to volume after being determined by the forward direction weighting parameters of forward coding block The corresponding back-weight parameter of code block, and do not have to choose back-weight parameter from weighting parameters, it avoids the prior art and is adding The lower problem of the unreasonable accuracy that will lead to predictive coding of back-weight parameter is chosen in weight parameter.This improves The accuracy of inter prediction encoding.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (8)

1. a kind of interframe prediction encoding method, which is characterized in that the described method includes:
Frame to be encoded is divided into multiple blocks to be encoded using encoder;
For each block to be encoded, the corresponding forward coding block of the block to be encoded and backward encoding block are determined;
According to the forward coding block and the backward encoding block, it is corresponding pre- to calculate pre-set each forward direction weighting parameters Survey block;
Calculate the residual values of the block to be encoded and each prediction block;
By the corresponding forward direction weighting parameters of the smallest residual values of absolute value, it is determined as the first weighting parameters;
Determine that the second weighting parameters based on overall brightness of the reference picture comprising the forward coding block, and determination include The third weighting parameters based on overall brightness of the reference picture of the backward encoding block;
According to first weighting parameters and formula: the first weighting parameters of four weighting parameters=1- determine the backward volume Corresponding 4th weighting parameters of code block;
According to first weighting parameters, second weighting parameters, the third weighting parameters, the 4th weighting parameters, Determine the practical weighting parameters of the prediction of the block to be encoded;
Using the practical weighting parameters of prediction, predictive coding is carried out to the block to be encoded.
2. determining the block to be encoded the method according to claim 1, wherein described be directed to each block to be encoded Corresponding forward coding block and backward encoding block, comprising:
For each block to be encoded, using motion search technology, the corresponding forward coding block of the block to be encoded and backward volume are determined Code block.
3. the method according to claim 1, wherein determining the weighting ginseng based on overall brightness of reference picture Number, comprising:
According to the brightness value of all pixels of reference picture point and pixel sum, determine the reference picture based on The weighting parameters of overall brightness.
4. the method according to claim 1, wherein determining the weighting ginseng based on overall brightness of reference picture Number, comprising:
According to frame, the reference picture and the least residual technology to be encoded, determine the reference picture based on entirety The weighting parameters of brightness.
5. a kind of inter prediction encoding device, which is characterized in that described device includes:
Division module, for frame to be encoded to be divided into multiple blocks to be encoded using encoder;
First determining module determines the corresponding forward coding block of the block to be encoded and backward volume for being directed to each block to be encoded Code block;
Second determining module, comprising: the first computational submodule, determines submodule at the second computational submodule;Described first calculates son Module, for calculating pre-set each forward direction weighting parameters pair according to the forward coding block and the backward encoding block The prediction block answered;Second computational submodule, for calculating the residual values of the block to be encoded and each prediction block;It is described true Stator modules, for being determined as the first weighting parameters for the corresponding forward direction weighting parameters of the smallest residual values of absolute value;
Third determining module, for determining the second weighting based on overall brightness of the reference picture comprising the forward coding block Parameter, and determine the third weighting parameters based on overall brightness of the reference picture comprising the backward encoding block;
4th determining module, for according to first weighting parameters and formula: the weighting ginseng of four weighting parameters=1- first Number, determines corresponding 4th weighting parameters of the backward encoding block;
5th determining module, for according to first weighting parameters, second weighting parameters, the third weighting parameters, 4th weighting parameters determine the practical weighting parameters of the prediction of the block to be encoded;
Coding module, for carrying out predictive coding to the block to be encoded using the practical weighting parameters of prediction.
6. device according to claim 5, which is characterized in that first determining module is specifically used for:
For each block to be encoded, using motion search technology, the corresponding forward coding block of the block to be encoded and backward volume are determined Code block.
7. device according to claim 5, which is characterized in that determine the weighting ginseng based on overall brightness of reference picture Number, comprising:
According to the brightness value of all pixels of reference picture point and pixel sum, determine the reference picture based on The weighting parameters of overall brightness.
8. device according to claim 5, which is characterized in that determine the weighting ginseng based on overall brightness of reference picture Number, comprising:
According to frame, the reference picture and the least residual technology to be encoded, determine the reference picture based on entirety The weighting parameters of brightness.
CN201610765403.4A 2016-08-30 2016-08-30 A kind of interframe prediction encoding method and device Active CN106358041B (en)

Priority Applications (12)

Application Number Priority Date Filing Date Title
CN201610765403.4A CN106358041B (en) 2016-08-30 2016-08-30 A kind of interframe prediction encoding method and device
JP2019510423A JP6781823B2 (en) 2016-08-30 2017-08-09 Interframe predictive coding method and equipment
PCT/CN2017/096641 WO2018040869A1 (en) 2016-08-30 2017-08-09 Interframe predictive coding method and device
SG11201811472QA SG11201811472QA (en) 2016-08-30 2017-08-09 Interframe predictive coding method and device
ES17845171T ES2857857T3 (en) 2016-08-30 2017-08-09 Inter-frame bi-predictive encoding method and device
EP17845171.2A EP3509303B1 (en) 2016-08-30 2017-08-09 Interframe bi-predictive coding method and device
MYPI2018002705A MY196896A (en) 2016-08-30 2017-08-09 Interframe predictive coding method and device
KR1020187037514A KR102148723B1 (en) 2016-08-30 2017-08-09 Inter-frame predictive coding method and apparatus
CA3028510A CA3028510C (en) 2016-08-30 2017-08-09 Bidirectional interframe predictive coding method and device using forward and backward block weighting and block brightness weighting
AU2017317848A AU2017317848B2 (en) 2016-08-30 2017-08-09 Interframe predictive coding method and device
US16/313,601 US10715820B2 (en) 2016-08-30 2017-08-09 Interframe predictive coding method and device
TW106128993A TWI655860B (en) 2016-08-30 2017-08-25 Inter prediction coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610765403.4A CN106358041B (en) 2016-08-30 2016-08-30 A kind of interframe prediction encoding method and device

Publications (2)

Publication Number Publication Date
CN106358041A CN106358041A (en) 2017-01-25
CN106358041B true CN106358041B (en) 2019-05-10

Family

ID=57858182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610765403.4A Active CN106358041B (en) 2016-08-30 2016-08-30 A kind of interframe prediction encoding method and device

Country Status (12)

Country Link
US (1) US10715820B2 (en)
EP (1) EP3509303B1 (en)
JP (1) JP6781823B2 (en)
KR (1) KR102148723B1 (en)
CN (1) CN106358041B (en)
AU (1) AU2017317848B2 (en)
CA (1) CA3028510C (en)
ES (1) ES2857857T3 (en)
MY (1) MY196896A (en)
SG (1) SG11201811472QA (en)
TW (1) TWI655860B (en)
WO (1) WO2018040869A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106358041B (en) * 2016-08-30 2019-05-10 北京奇艺世纪科技有限公司 A kind of interframe prediction encoding method and device
US20220174277A1 (en) * 2019-03-11 2022-06-02 Telefonaktiebolaget Lm Ericsson (Publ) Video coding involving gop-based temporal filtering
CN115695812A (en) * 2021-07-30 2023-02-03 中兴通讯股份有限公司 Video encoding method, video decoding method, video encoding device, video decoding device, electronic equipment and storage medium
CN116168790B (en) * 2023-04-25 2023-07-14 深圳爱递医药科技有限公司 Big data recruitment system for clinical trial

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1981535A (en) * 2004-05-04 2007-06-13 高通股份有限公司 Method and apparatus for weighted prediction in predictive frames
CN101610413A (en) * 2009-07-29 2009-12-23 清华大学 A kind of coding/decoding method of video and device
CN102301716A (en) * 2009-02-02 2011-12-28 汤姆森特许公司 Method for decoding a stream representative of a sequence of pictures, method for coding a sequence of pictures and coded data structure
CN103430540A (en) * 2011-03-08 2013-12-04 高通股份有限公司 Motion vector predictors (MVPs) for bi-predictive inter mode in video coding

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266150B2 (en) * 2001-07-11 2007-09-04 Dolby Laboratories, Inc. Interpolation of video compression frames
JP4015934B2 (en) 2002-04-18 2007-11-28 株式会社東芝 Video coding method and apparatus
US8457203B2 (en) 2005-05-26 2013-06-04 Ntt Docomo, Inc. Method and apparatus for coding motion and prediction weighting parameters
JP4764136B2 (en) * 2005-10-31 2011-08-31 富士通セミコンダクター株式会社 Moving picture coding apparatus and fade scene detection apparatus
WO2007092215A2 (en) 2006-02-02 2007-08-16 Thomson Licensing Method and apparatus for adaptive weight selection for motion compensated prediction
TW201116067A (en) * 2009-10-27 2011-05-01 Hon Hai Prec Ind Co Ltd Video codec method, video encode device and video decode device
KR102167095B1 (en) * 2012-07-02 2020-10-16 엘지전자 주식회사 Method for decoding image and apparatus using same
CN104692023B (en) * 2014-11-28 2017-03-22 江苏丰东热技术股份有限公司 Device for controlling conveying speed by using unpowered rollers
CN106358041B (en) * 2016-08-30 2019-05-10 北京奇艺世纪科技有限公司 A kind of interframe prediction encoding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1981535A (en) * 2004-05-04 2007-06-13 高通股份有限公司 Method and apparatus for weighted prediction in predictive frames
CN102301716A (en) * 2009-02-02 2011-12-28 汤姆森特许公司 Method for decoding a stream representative of a sequence of pictures, method for coding a sequence of pictures and coded data structure
CN101610413A (en) * 2009-07-29 2009-12-23 清华大学 A kind of coding/decoding method of video and device
CN103430540A (en) * 2011-03-08 2013-12-04 高通股份有限公司 Motion vector predictors (MVPs) for bi-predictive inter mode in video coding

Also Published As

Publication number Publication date
SG11201811472QA (en) 2019-03-28
CN106358041A (en) 2017-01-25
TW201820870A (en) 2018-06-01
AU2017317848A1 (en) 2019-01-24
AU2017317848B2 (en) 2020-04-30
MY196896A (en) 2023-05-09
US10715820B2 (en) 2020-07-14
WO2018040869A1 (en) 2018-03-08
CA3028510C (en) 2022-05-31
EP3509303A1 (en) 2019-07-10
ES2857857T3 (en) 2021-09-29
CA3028510A1 (en) 2018-03-08
TWI655860B (en) 2019-04-01
US20190246119A1 (en) 2019-08-08
EP3509303A4 (en) 2019-07-10
KR102148723B1 (en) 2020-08-28
EP3509303B1 (en) 2020-12-02
KR20190013908A (en) 2019-02-11
JP2019528634A (en) 2019-10-10
JP6781823B2 (en) 2020-11-04

Similar Documents

Publication Publication Date Title
CN106358041B (en) A kind of interframe prediction encoding method and device
CN104885467B (en) Content-adaptive parameter transformation for next-generation Video coding
CN102726043B (en) hybrid video coding
KR101452921B1 (en) Method for performing localized multihypothesis prediction during video coding of a coding unit, and associated apparatus
JP4643447B2 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
CN104980760B (en) Method and apparatus for being coded and decoded to motion vector
US20220174292A1 (en) Method and apparatus for estimating optical flow for motion compensation
CN104301724B (en) Method for processing video frequency, encoding device and decoding device
CN110870314A (en) Multiple predictor candidates for motion compensation
CN109496430A (en) General-purpose type for Video coding assumes the system and method for prediction more
CN106686378A (en) Method and apparatus for decoding image
CN104041041B (en) Motion vector scaling for the vectorial grid of nonuniform motion
US20040008778A1 (en) Hierarchical segment-based motion vector encoding and decoding
KR20220012428A (en) Inter-plane prediction
KR101263090B1 (en) Methods of encoding and decoding using multi-level prediction and apparatuses for using the same
CN107181959A (en) The method and apparatus of derive motion vector prediction
CN110312132A (en) A kind of decoding method, device and its equipment
RU2509439C2 (en) Method and apparatus for encoding and decoding signal, data medium and computer program product
CN104754338A (en) Selection method and device for intra-frame predication mode
BRPI0904534A2 (en) method to decode videos
CN111031317A (en) Encoding and decoding method, device and equipment
EP2061248A1 (en) Motion estimation and compensation process and device
CN102740071A (en) Scalable video codec encoder device and methods thereof
KR20120095611A (en) Method and apparatus for encoding/decoding multi view video
MXPA05007303A (en) Method and device for choosing a mode of coding.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1233809

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant