Nothing Special   »   [go: up one dir, main page]

AU2016425069B2 - Method and apparatus for image coding and decoding through inter prediction - Google Patents

Method and apparatus for image coding and decoding through inter prediction Download PDF

Info

Publication number
AU2016425069B2
AU2016425069B2 AU2016425069A AU2016425069A AU2016425069B2 AU 2016425069 B2 AU2016425069 B2 AU 2016425069B2 AU 2016425069 A AU2016425069 A AU 2016425069A AU 2016425069 A AU2016425069 A AU 2016425069A AU 2016425069 B2 AU2016425069 B2 AU 2016425069B2
Authority
AU
Australia
Prior art keywords
block
prediction
coding
decoding
prediction block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
AU2016425069A
Other versions
AU2016425069A1 (en
Inventor
Jicheng An
Xu Chen
Jianhua Zheng
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of AU2016425069A1 publication Critical patent/AU2016425069A1/en
Application granted granted Critical
Publication of AU2016425069B2 publication Critical patent/AU2016425069B2/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/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
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • 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/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/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/523Motion estimation or motion compensation with sub-pixel accuracy
    • 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/53Multi-resolution motion estimation; Hierarchical motion 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/533Motion estimation using multistep search, e.g. 2D-log search or one-at-a-time search [OTS]
    • 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/56Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A method and device for image coding and decoding for inter-frame prediction. The method for decoding comprises: determining prediction motion information of a first decoding block, performing bidirectional prediction with respect to the first decoding block on the basis of the prediction motion information to produce a first decoding prediction block; performing a motion search of a first precision value with respect to a prediction reference image block to produce at least one second decoding prediction block, the search position of the motion search being determined with a motion vector prediction value and the first precision value; calculating the difference between the first decoding prediction block and each second decoding prediction block, acquiring a target motion vector prediction value of the first decoding block, and updating the target motion vector prediction value by means of the motion search, thus increasing the motion precision for inter-frame prediction.

Description

METHOD AND APPARATUS FOR IMAGE CODING AND DECODING THROUGH INTER PREDICTION TECHNICAL FIELD
[0001] The present invention relates to the field of video image technologies, and in particular, to a method and an apparatus for image coding and decoding through inter prediction.
BACKGROUND
[0002] In a video coding and decoding framework, a hybrid coding structure is usually used for video sequence coding and decoding. An encoder side of the hybrid coding structure usually includes a prediction module, a transformation module, a quantization module, and an entropy encoding module. A decoder side of the hybrid coding structure usually includes an entropy decoding module, a dequantization module, an inverse transformation module, and a prediction compensation module. These coding and decoding modules can be combined to effectively remove redundant information of a video sequence and ensure that a coded image of the video sequence is obtained on the decoder side.
[0003] In the video coding and decoding framework, an image of a video sequence is usually divided into image blocks for coding. One image is divided into several image blocks, and these image blocks are coded and decoded by using the foregoing modules.
[0004] In the foregoing modules, the prediction module is configured to obtain prediction block information of an image block of a coded image of a video sequence on the encoder side, so as to determine, based on a specific mode, whether a residual of the image block needs to be obtained. The prediction compensation module is configured to obtain prediction block information of a current decoded image block on the decoder side, and then determine, based on a specific mode, whether to obtain the current decoded image block based on an image block residual obtained through decoding. The prediction module and the prediction compensation module usually include two technologies: intra prediction and inter prediction. In the inter prediction technology, an image that is adjacent to a current image and used for inter prediction is referred to as a reference image.
[0005] In the inter prediction technology, to effectively remove redundant information of a current image block, an encoder side and a decoder side need to obtain a matched image block that is most similar to the current image block from the reference image, so as to reduce a residual of the I current image block. When inter prediction is performed on the current image block, the reference image is searched for an appropriate matched image block based on prediction motion information. In this case, motion vector information in the prediction motion information is determined by motion vector information of an adjacent block. In other words, all information of a previous reference image may be used for coding and decoding the current image block. It can be learned that, in interframe coding and decoding, motion vector information of an adjacent block is directly used as a motion vector predictor of a current block. This manner of directly obtaining a motion vector predictor of inter prediction inevitably causes a deviation of prediction motion precision.
[0005a] A reference herein to a patent document or any other matter identified as prior art, is not to be taken as an admission that the document or other matter was known or that the information it contains was part of the common general knowledge as at the priority date of any of the claims.
SUMMARY
[0006] Embodiments of the present invention may provide a method and an apparatus for image coding and decoding through inter prediction, which may improve motion precision of inter prediction.
[0006a] According to a first aspect of the invention, there is provided a method for image coding through inter prediction, comprising: determining prediction motion information of a first coding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtaining a first coding prediction block of the first coding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of thefirst coding block; performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and obtaining a target coding prediction block of the first coding block based on the third coding prediction block, and coding the first coding block based on the target coding prediction block.
[0006b] According to another aspect of the invention, there is provided a method for image decoding through inter prediction, comprising: determining prediction motion information of a first decoding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtaining a first decoding prediction block of the first decoding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of thefirst decoding block; performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decoding the first decoding block based on the target decoding prediction block.
[0006c] According to a further aspect of the invention, there is provided an apparatus for image coding through inter prediction, comprising: a determining unit, configured to determine prediction motion information of a first coding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtain a first coding prediction block of the first coding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first coding prediction block and each second coding prediction block, and use a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block; and perform bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and a coding unit, configured to: obtain a target coding prediction block of the first coding block based on the third coding prediction block, and code the first coding block based on the target coding prediction block.
[0006d] According to yet another aspect of the invention, there is provided an apparatus for image decoding through inter prediction, comprising: a determining unit, configured to determine prediction motion information of a first decoding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtain a first decoding prediction block of the first decoding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first decoding prediction block and each second decoding prediction block, and use a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; and perform bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and a decoding unit, configured to: obtain a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decode the first decoding block based on the target decoding prediction block.
[0007] According to a first example, a method for image coding through inter prediction is provided, including: determining prediction motion information of a first coding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, and obtaining a first coding prediction block of the first coding block based on the initial coding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of thefirst coding block; performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and obtaining a target coding prediction block of the first coding block based on the third coding prediction block, and coding the first coding block based on the target coding prediction block.
[0008] The beneficial effect lies in that when coding the first coding block, an encoder side can update the target motion vector predictor through motion search, so as to improve motion precision of inter prediction.
[0009] With reference to the first example, in a possible design, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0010] With reference to the first example, in a possible design, the initial coding prediction block includes a forward initial coding prediction block and a backward initial coding prediction block, and the performing bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block includes: performing forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block; and performing backward prediction on the first coding block based on the backward prediction motion information to obtain the backward initial coding prediction block of the first coding block.
[0011] With reference to the first example, in a possible design, the obtaining a first coding prediction block of the first coding block based on the initial coding prediction block includes the following manner: performing weighted summation on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block; or using the forward initial coding prediction block as the first coding prediction block of the first coding block; or using the backward initial coding prediction block as the first coding prediction block of the first coding block.
[0012] The beneficial effect lies in that after performing bidirectional prediction on the first coding block based on the prediction motion information, the encoder side may combine the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block, or may obtain the first coding prediction block based on an initial coding prediction block in a single direction. Implementations are diversified, and may be flexibly selected based on an actual situation.
[0013] With reference to the first example, in a possible design, the second coding prediction block includes a forward second coding prediction block and a backward second coding prediction block, and the performing motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block includes: performing motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and using each found forward coding prediction block as the forward second coding prediction block to obtain the at least one second coding prediction block; and performing motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and using each found backward coding prediction block as the backward second coding prediction block to obtain the at least one second coding prediction block, where the first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0014] With reference to the first example, in a possible design, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and the calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block includes: comparing differences between the forward second coding prediction blocks and the first coding prediction block, and using a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor; and/or comparing differences between the backward second coding prediction blocks and the first coding prediction block, and using a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor.
[0015] The beneficial effect lies in that differences between second coding prediction blocks obtained by performing motion search on the prediction reference image block and the first coding prediction block are compared to update the target motion vector predictor of the first coding block, thereby improving motion precision of inter prediction.
[0016] With reference to the first example, in a possible design, the third coding prediction block of the first coding block includes a forward third coding prediction block and a backward third coding prediction block, and the performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block includes: performing forward prediction on the first coding block based on the target forward motion vector predictor to obtain the forward third coding prediction block of the first coding block; and performing backward prediction on the first coding block based on the target backward motion vector predictor to obtain the backward third coding prediction block of the first coding block.
[0017] With reference to the first example, in a possible design, the obtaining a target coding prediction block of the first coding block based on the third coding prediction block includes: performing weighted summation on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block; or using the forward third coding prediction block as the target coding prediction block of the first coding block; or using the backward third coding prediction block as the target coding prediction block of the first coding block.
[0018] The beneficial effect lies in that after performing bidirectional prediction on a third coding block based on the target motion vector predictor to obtain the third coding prediction block, the encoder side may combine the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block, or may obtain the target coding prediction block of the first coding block based on a third coding prediction block in a single direction. Implementations are diversified, and may be flexibly selected based on an actual situation.
[0019] According to a second example, a method for image decoding through inter prediction is provided, including: determining prediction motion information of a first decoding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, and obtaining a first decoding prediction block of the first decoding block based on the initial decoding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decoding the first decoding block based on the target decoding prediction block.
[0020] The beneficial effect lies in that when coding the first decoding block, a decoder side can update the target motion vector predictor through motion search, so as to improve motion precision of inter prediction.
[0021] With reference to the second example, in a possible design, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0022] With reference to the second example, in a possible design, the initial decoding prediction block includes a forward initial decoding prediction block and a backward initial decoding prediction block, and the performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block includes: performing forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block; and performing backward prediction on the first decoding block based on the backward prediction motion information to obtain the backward initial decoding prediction block of the first decoding block.
[0023] With reference to the second example, in a possible design, the obtaining afirst decoding prediction block of the first decoding block based on the initial decoding prediction block includes the following manner: performing weighted summation on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block; or using the forward initial decoding prediction block as the first decoding prediction block of the first decoding block; or using the backward initial decoding prediction block as the first decoding prediction block of thefirst decoding block.
[0024] The beneficial effect lies in that after performing bidirectional prediction on the first decoding block based on the prediction motion information, the decoder side may combine the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block, or may obtain the first decoding prediction block based on an initial decoding prediction block in a single direction. Implementations are diversified, and may be flexibly selected based on an actual situation.
[0025] With reference to the second example, in a possible design, the second decoding prediction block includes a forward second decoding prediction block and a backward second decoding prediction block, and the performing motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block includes: performing motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and using each found forward decoding prediction block as the forward second decoding prediction block to obtain the at least one second decoding prediction block; and performing motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and using each found backward decoding prediction block as the backward second decoding prediction block to obtain the at least one second decoding prediction block, where the first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0026] With reference to the second example, in a possible design, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and the calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block includes: comparing differences between the forward second decoding prediction blocks and the first decoding prediction block, and using a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor; and/or comparing differences between the backward second decoding prediction blocks and the first decoding prediction block, and using a target backward motion vector predictor between the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor.
[0027] The beneficial effect lies in that differences between second decoding prediction blocks obtained by performing motion search on the prediction reference image block and the first decoding prediction block are compared to update the target motion vector predictor of the first decoding block, thereby improving motion precision of inter prediction.
[0028] With reference to the second example, in a possible design, the third decoding prediction block of the first decoding block includes a forward third decoding prediction block and a backward third decoding prediction block, and the performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block includes: performing forward prediction on the first decoding block based on the target forward motion vector predictor to obtain the forward third decoding prediction block of the first decoding block; and performing backward prediction on the first decoding block based on the target backward motion vector predictor to obtain the backward third decoding prediction block of the first decoding block.
[0029] With reference to the second example, in a possible design, the obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block includes the following manner: performing weighted summation on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of the first decoding block; or using the forward third decoding prediction block as the target decoding prediction block of the first decoding block; or using the backward third decoding prediction block as the target decoding prediction block of the first decoding block.
[0030] The beneficial effect lies in that after performing bidirectional prediction on a third decoding block based on the target motion vector predictor to obtain the third decoding prediction block, the decoder side may combine the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of the first decoding block, or may obtain the target decoding prediction block of the first decoding block based on a third decoding prediction block in a single direction. Implementations are diversified, and may be flexibly selected based on an actual situation.
[0031] According to a third example, an apparatus for image coding through inter prediction is provided, including: a determining unit, configured to determine prediction motion information of a first coding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, and obtain a first coding prediction block of the first coding block based on the initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first coding prediction block and each second coding prediction block, and use a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block; and perform bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and a coding unit, configured to: obtain a target coding prediction block of the first coding block based on the third coding prediction block, and code the first coding block based on the target coding prediction block.
[0032] With reference to the third example, in a possible design, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0033] With reference to the third example, in a possible design, the initial coding prediction block includes a forward initial coding prediction block and a backward initial coding prediction block, and when performing bidirectional prediction on the first coding block based on the prediction motion information to obtain the initial coding prediction block of the first coding block, the processing unit is specifically configured to: perform forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the backward prediction motion information to obtain the backward initial coding prediction block of the first coding block.
[0034] With reference to the third example, in a possible design, when obtaining the first coding prediction block of the first coding block based on the initial coding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block; or use the forward initial coding prediction block as the first coding prediction block of the first coding block; or use the backward initial coding prediction block as the first coding prediction block of the first coding block.
[0035] With reference to the third example, in a possible design, the second coding prediction block includes a forward second coding prediction block and a backward second coding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second coding prediction block, the processing unit is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward coding prediction block as the forward second coding prediction block to obtain the at least one second coding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward coding prediction block as the backward second coding prediction block to obtain the at least one second coding prediction block, where the first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0036] With reference to the third example, in a possible design, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first coding prediction block and each second coding prediction block, and using the motion vector predictor between the first coding block and the second coding prediction block with a smallest difference as the target motion vector predictor of the first coding block, the processing unit is specifically configured to: compare differences between the forward second coding prediction blocks and the first coding prediction block, and use a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor; or compare differences between the backward second coding prediction blocks and the first coding prediction block, and use a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor.
[0037] With reference to the third example, in a possible design, the third coding prediction block of the first coding block includes a forward third coding prediction block and a backward third coding prediction block, and when performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain the third coding prediction block of the first coding block, the processing unit is specifically configured to: perform forward prediction on the first coding block based on the target forward motion vector predictor to obtain the forward third coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the target backward motion vector predictor to obtain the backward third coding prediction block of the first coding block.
[0038] With reference to the third example, in a possible design, when obtaining the target coding prediction block of the first coding block based on the third coding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block; or use the forward third coding prediction block as the target coding prediction block of the first coding block; or use the backward third coding prediction block as the target coding prediction block of the first coding block.
[0039] According to a fourth example, an apparatus for image decoding through inter prediction is provided, including: a determining unit, configured to determine prediction motion information of a first decoding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, and obtain a first decoding prediction block of the first decoding block based on the initial decoding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first decoding prediction block and each second decoding prediction block, and use a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; and perform bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and a decoding unit, configured to: obtain a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decode the first decoding block based on the target decoding prediction block.
[0040] With reference to the fourth example, in a possible design, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0041] With reference to the fourth example, in a possible design, the initial decoding prediction block includes a forward initial decoding prediction block and a backward initial decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain the initial decoding prediction block of the first decoding block, the processing unit is specifically configured to: perform forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block; and perform backward prediction on the first decoding block based on the backward prediction motion information to obtain the backward initial decoding prediction block of the first decoding block.
[0042] With reference to the fourth example, in a possible design, when obtaining the first decoding prediction block of the first decoding block based on the initial decoding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block; or use the forward initial decoding prediction block as the first decoding prediction block of the first decoding block; or use the backward initial decoding prediction block as the first decoding prediction block of the first decoding block.
[0043] With reference to the fourth example, in a possible design, the second decoding prediction block includes a forward second decoding prediction block and a backward second decoding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second decoding prediction block, the processing unit is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward decoding prediction block as the forward second decoding prediction block to obtain the at least one second decoding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward decoding prediction block as the backward second decoding prediction block to obtain the at least one second decoding prediction block, where the first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0044] With reference to the fourth example, in a possible design, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first decoding prediction block and each second decoding prediction block, and using the motion vector predictor between the first decoding block and the second decoding prediction block with a smallest difference as the target motion vector predictor of the first decoding block, the processing unit is specifically configured to: compare differences between the forward second decoding prediction blocks and the first decoding prediction block, and use a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor; or compare differences between the backward second decoding prediction blocks and the first decoding prediction block, and use a target backward motion vector predictor between
13a the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor.
[0045] With reference to the fourth example, in a possible design, the third decoding prediction block of the first decoding block includes a forward third decoding prediction block and a backward third decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain the third decoding prediction block of the first decoding block, the processing unit is specifically configured to: perform forward prediction on the first decoding block based on the target forward motion vector predictor to obtain the forward third decoding prediction block of the first decoding block; and perform backward prediction on the first decoding block based on the target backward motion vector predictor to obtain the backward third decoding prediction block of the first decoding block.
[0046] With reference to the fourth example, in a possible design, when obtaining the target decoding prediction block of the first decoding block based on the third decoding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of the first decoding block; or use the forward third decoding prediction block as the target decoding prediction block of the first decoding block; or use the backward third decoding prediction block as the target decoding prediction block of the first decoding block.
[0047] According to a fifth example, a coding device is provided, and the device includes a processor and a memory, where the memory stores a computer readable program, and the processor runs the program in the memory to implement the coding method according to thefirst example.
[0048] According to a sixth example, a decoding device is provided, and the device includes a processor and a memory, where the memory stores a computer readable program, and the processor runs the program in the memory to implement the decoding method according to the second example.
[0049] According to a seventh example, a computer storage medium is provided, configured to store a computer software instruction for the first example and the second example, where the computer software instruction includes a program designed for performing the foregoing examples.
[0050] It should be understood that the third to the seventh examples of the embodiments of the present invention are consistent with the technical solutions of the first and the second examples of the embodiments of the present invention, and beneficial effects obtained by all examples and corresponding implementable design manners are similar. Details are not described again.
13b
BRIEF DESCRIPTION OF DRAWINGS
[0051] FIG. 1A and FIG. 1B are respectively schematic diagrams of selecting prediction motion information of a current block in a merge mode and a non-merge mode;
[0052] FIG. 2 is a schematic block diagram of a video codec apparatus or an electronic device;
[0053] FIG. 3 is a schematic block diagram of a video codec system;
[0054] FIG. 4 is a flowchart of a method for image coding through inter prediction according to an embodiment of the present invention;
[0055] FIG. 5 is a flowchart of a method for image decoding through inter prediction according to an embodiment of the present invention;
[0056] FIG. 6A, FIG. 6B, FIG. 7, FIG. 8A, FIG. 8B, FIG. 8C, FIG. 8D, FIG. 9A, and FIG. 9B are schematic diagrams of a process for image decoding through inter prediction according to an embodiment of the present invention;
[0057] FIG. 10 is a structural diagram of an apparatus for image coding through inter prediction according to an embodiment of the present invention;
[0058] FIG. 11 is a structural diagram of an image coder using inter prediction according to an embodiment of the present invention;
[0059] FIG. 12 is a structural diagram of an apparatus for image decoding through inter prediction according to an embodiment of the present invention; and
[0060] FIG. 13 is a structural diagram of an image decoder using inter prediction according to an embodiment of the present invention.
DESCRIPTION OF EMBODIMENTS
[0061] The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the
13c embodiments of the present invention. Apparently, the described embodiments are some rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0062] An inter prediction technology is classified into a merge (Merge) mode and a non-merge mode, and the non-merge mode is further classified into a skip (SKIP) mode and a non-skip mode.
[0063] In the non-merge mode and a non-skip mode of the merge mode in the inter prediction technology, redundant information of a current image block is removed based on pixel information of a coded or decoded image adjacent to a current image to obtain a residual.
[0064] In the inter prediction technology, to effectively remove the redundant information of the current image block, an encoder side or a decoder side needs to obtain an image block that is most similar to the current image block from a reference image, so as to reduce a residual of the current image block. The encoder side or the decoder side usually obtains an image block of the foregoing reference image through motion estimation. In an existing video coding and decoding technology, a reference image is usually searched for an appropriate matched image block in a unit of an image block during coding and decoding in a motion estimation process. In some embodiments, an image block is a prediction unit of an image to be coded by an encoder side or a prediction unit of an image to be reconstructed by a decoder side. In some embodiments, an image block is a transformation unit of an image to be coded by the encoder side or a transformation unit of an image to be reconstructed by the decoder side. In some embodiments, an image block is a coding unit or a coding subunit of an image to be coded by the encoder side, or a decoding unit or a decoding subunit of an image to be reconstructed by the decoder side. No limitation is imposed.
[0065] In the non-merge mode of the inter prediction technology, an encoder side performs subtraction on a pixel value corresponding to a current image block and a pixel value corresponding to a matched image block to obtain a residual, performs entropy encoding on a value obtained after the residual is transformed and quantized, and finally writes, into a code stream, both a bit stream obtained through entropy encoding and a motion offset (namely, a motion vector difference) obtained through searching. Correspondingly, during prediction compensation (or referred to as motion compensation), a decoder side first performs entropy encoding after obtaining an entropy encoding bit stream, to obtain a corresponding residual and a corresponding motion vector difference; then obtains a motion vector value based on the obtained motion vector difference and a motion vector value of an adjacent block; obtains a corresponding matched image block from a reference image based on the motion vector value; and adds a pixel value corresponding to the matched image block and a pixel value corresponding to the residual to obtain a value of the decoded current image block.
[0066] In the non-skip mode of the merge mode of the inter prediction technology, an encoder side performs subtraction on a pixel value corresponding to a current image block and a pixel value corresponding to a matched image block to obtain a residual, performs entropy encoding on a value obtained after the residual is transformed and quantized, and finally writes a bit stream obtained through entropy encoding into a code stream. Correspondingly, during prediction compensation (or referred to as motion compensation), a decoder side first performs entropy encoding after obtaining an entropy encoding bit stream, to obtain a corresponding residual; obtains a corresponding matched image block from a reference image based on a motion vector value of an adjacent block; and adds a pixel value corresponding to the matched image block and a pixel value corresponding to the residual to obtain a value of the decoded current image block.
[0067] In a skip mode of the merge mode of the inter prediction technology, to save a bit rate, a residual and a motion vector difference do not need to be obtained. In both coding and decoding processes, a corresponding matched image block is directly obtained based on motion information of an adjacent block and is used as a value of a current image block.
[0068] As shown in FIG. 1A, in a merge mode, adjacent blocks are marked as different index values, and the index values are used to determine an adjacent block whose motion vector information is used by a current block as prediction motion information of the current block. As shown in FIG. 1B, in a non-merge mode, a motion vector predictor list is constructed by detecting an adjacent block, and a motion vector predictor is selected from the motion vector predictor list for a current block as a motion vector predictor of the current block. It can be learned that, in interframe coding and decoding, motion vector information of an adjacent block is directly used as a motion vector predictor of a current block. This manner of directly obtaining a motion vector predictor of inter prediction inevitably causes a deviation of prediction motion precision.
[0069] FIG. 2 is a schematic block diagram of a video codec apparatus or electronic device 50. The apparatus or the electronic device may be incorporated into a codec according to an embodiment of the present invention. FIG. 3 is a schematic apparatus diagram of a video codec system according to an embodiment of the present invention. The following describes units in FIG. 2 and FIG. 3.
[0070] The electronic device 50 may be, for example, a mobile terminal or user equipment in a wireless communications system. It should be understood that the embodiments of the present invention may be implemented by any electronic device or apparatus that may need to code, or decode, or code and decode a video image.
[0071] The apparatus 50 may include a housing configured to be incorporated into and protect the device. The apparatus 50 may further include a display 32 in a form of a liquid crystal display. In another embodiment of the present invention, the display may be any appropriate display technology applied to image or video display. The apparatus 50 may further include a keypad 34. In another embodiment of the present invention, any appropriate data or user interface mechanism may be used. For example, a user interface may be implemented as a virtual keyboard or a data entry system to serve as a part of a touch-sensitive display. The apparatus may include a microphone 36 or any appropriate audio input, and the audio input may be digital or analog signal input. The apparatus 50 may further include the following audio output device. In this embodiment of the present invention, the audio output device may be any one of a headset 38, a speaker, an analog audio output connection, or a digital audio output connection. The apparatus 50 may also include a battery 40. In another embodiment of the present invention, the device may be powered by any appropriate mobile energy device, such as a solar cell, a fuel cell, or a clock mechanism generator. The apparatus may further include an infrared port 42 configured to perform short-range line-of-sight communication with another device. In another embodiment, the apparatus 50 may further include any appropriate short-range communication solution, such as a Bluetooth wireless connection or a USB/live line wired connection.
[0072] The apparatus 50 may include a controller 56 or a processor configured to control the apparatus 50. The controller 56 may be connected to a memory 58. In this embodiment of the present invention, the memory may store image data and audio data, and/or may store an instruction implemented on the controller 56. The controller 56 may also be connected to a codec circuit 54 adapted to implement audio and/or video data coding and decoding, or the controller 56 is connected to a codec circuit 54 to implement auxiliary coding and decoding.
[0073] The apparatus 50 may further include a card reader 48 and a smart card 46 that are configured to provide user information and are adapted to provide information for network authentication and authorized user authentication.
[0074] The apparatus 50 may further include a radio interface circuit 52. The radio interface circuit is connected to the controller and is adapted to generate, for example, a wireless communication signal used to communicate with a cellular communications network, a wireless communications system, or a wireless local area network. The apparatus 50 may further include an antenna 44. The antenna is connected to the radio interface circuit 52 to send radio frequency signals generated in the radio interface circuit 52 to other (a plurality of) apparatuses and receive radio frequency signals from other (a plurality of) apparatuses.
[0075] In some embodiments of the present invention, the apparatus 50 includes a camera that is capable of recording or detecting a single frame. The codec 54 or the controller receives and processes these single frames. In some embodiments of the present invention, the apparatus may receive to-be-processed video image data from another device before transmission and/or storage. In some embodiments of the present invention, the apparatus 50 may receive, through a wireless or wired connection, an image for coding/decoding.
[0076] FIG. 3 is a schematic block diagram of another video codec system 10 according to an embodiment of the present invention. As shown in FIG. 3, the video codec system 10 includes a source apparatus 12 and a destination apparatus 14. The source apparatus 12 generates coded video data. Therefore, the source apparatus 12 may be referred to as a video coding apparatus or a video coding device. The destination apparatus 14 may decode the coded video data generated by the source apparatus 12. Therefore, the destination apparatus 14 may be referred to as a video decoding apparatus or a video decoding device. The source apparatus 12 and the destination apparatus 14 may be instances of a video codec apparatus or a video codec device. The source apparatus 12 and the destination apparatus 14 may include a wide range of apparatuses, including a desktop computer, a mobile computing apparatus, a notebook (for example, a laptop) computer, a tablet computer, a set-top box, a handset such as a smartphone, a television, a camera, a display apparatus, a digital media player, a video game console, an in-vehicle computer, or another similar apparatus.
[0077] The destination apparatus 14 may receive the coded video data from the source apparatus 12 through a channel 16. The channel 16 may include one or more media and/or apparatuses that can transmit the coded video data from the source apparatus 12 to the destination apparatus 14. In an instance, the channel 16 may include one or more communications media that enable the source apparatus 12 to directly transmit the coded video data to the destination apparatus 14 in real time. In this instance, the source apparatus 12 may modulate the coded video data according to a communications standard (for example, a wireless communication protocol), and may transmit the modulated video data to the destination apparatus 14. The one or more communications media may include wireless and/or wired communications media, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The one or more communications media may form a part of a packet-based network (for example, a local area network, a wide area network, or a global network (for example, the Internet)). The one or more communications media may include a router, a switch, a base station, or another device that facilitates communication from the source apparatus 12 to the destination apparatus 14.
[0078] In another instance, the channel 16 may include a storage medium storing the coded video data generated by the source apparatus 12. In this instance, the destination apparatus 14 may access the storage medium through disk access or card access. The storage medium may include various local access data storage media, such as a Blu-ray, a DVD, a CD-ROM, a flash memory, or other appropriate digital storage media configured to store the coded video data.
[0079] In another instance, the channel 16 may include a file server or another intermediate storage apparatus that stores the coded video data generated by the source apparatus 12. In this instance, the destination apparatus 14 may access, through streaming transmission or downloading, the coded video data stored in the file server or the another intermediate storage apparatus. The file server may be of a server type that can store coded video data and transmit the coded video data to the destination apparatus 14. The instance file server includes a web server (for example, applied to a website), a File Transfer Protocol (FTP) server, a network-attached storage (NAS) apparatus, and a local disk drive.
[0080] The destination apparatus 14 may access the coded video data through a standard data connection (for example, an Internet connection). An instance type of the data connection includes a radio channel (for example, a Wi-Fi connection), a wired connection (for example, a DSL or a cable modem), or a combination of both that are adapted to access the coded video data stored on the file server. Transmission of the coded video data from the file server may be streaming transmission, download transmission, or a combination thereof.
[0081] The technology of the present invention is not limited to a wireless application scenario. For example, the technology may be used to support video coding and decoding in the following various multimedia applications: over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming video transmission (for example, through the Internet), coding of video data stored on data storage media, decoding of video data stored on data storage media, and other applications. In some instances, the video codec system 10 may be configured to support unidirectional or bidirectional video transmission, so as to support applications such as video streaming transmission, video playback, video broadcast, and/or video-telephony.
[0082] In the instance in FIG. 3, the source apparatus 12 includes a video source 18, a video coder 20, and an output interface 22. In some instances, the output interface 22 may include a modulator/demodulator (modem) and/or a transmitter. The video source 18 may include a video capture apparatus (for example, a video camera), a video archive including previously captured video data, a video input interface configured to receive video data from a video content provider, and/or a computer graphics system configured to generate video data, or a combination of the foregoing video data sources.
[0083] The video coder 20 can code video data from the video source 18. In some instances, the source apparatus 12 directly transmits the coded video data to the destination apparatus 14 by using the output interface 22. The coded video data may also be stored on the storage medium or the file server for later access by the destination apparatus 14 for decoding and/or playback.
[0084] In the instance in FIG. 3, the destination apparatus 14 includes an input interface 28, a video decoder 30, and a display apparatus 32. In some instances, the input interface 28 includes a receiver and/or a modem. The input interface 28 may receive the coded video data through the channel 16. The display apparatus 32 may be integrated into the destination apparatus 14 or may be located outside the destination apparatus 14. Usually, the display apparatus 32 displays decoded video data. The display apparatus 32 may include various display apparatuses, such as a liquid crystal display (LCD), a plasma display, an organic light-emitting diode (OLED) display, or another type of display apparatus.
[0085] The video coder 20 and the video decoder 30 may operate according to a video compression standard (for example, the High Efficiency Video Coding H.265 standard), and may comply with an HEVC test model (HM). The text description ITU-TH.265 (V3) (04/2015) of the H.265 standard was published on April 29, 2015 and can be downloaded from http://handle.itu.int/11.1002/1000/12455, and entire content of the file is incorporated herein by reference.
[0086] Alternatively, the video coder 20 and the video decoder 30 may operate according to another proprietary or industry standard. The standard includes ITU-T H.261, ISO/IEC MPEG-i Visual, ITU-T H.262, ISO/IEC MPEG-2 Visual, ITU-T H.263, ISO/IEC MPEG-4 Visual, or ITU-T H.264 (also referred to as ISO/IEC MPEG-4 AVC), and includes scalable video coding (SVC) and multi-view video coding (MVC) extensions. It should be understood that the technology of the present invention is not limited to any specific codec standard or technology.
[0087] In addition, FIG. 3 is merely an instance, and the technology of the present invention may be applied to video codec applications (for example, unilateral video coding or video decoding) that do not necessarily include any data communication between a coding apparatus and a decoding apparatus. In another instance, data is retrieved from a local memory, and the data is transmitted through network streaming transmission, or the data is operated in a similar manner. The coding apparatus may code data and store the data in the memory, and/or the decoding apparatus may retrieve data from the memory and decode the data. In many instances, coding and decoding are performed by a plurality of apparatuses that do not communicate with each other but only code data to the memory and/or retrieve data from the memory and decode the data.
[0088] The video coder 20 and the video decoder 30 each may be implemented as any one of a plurality of appropriate circuits, such as one or more microprocessors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), discrete logic, hardware, or any combination thereof. If the technology is partially or entirely implemented by using software, an apparatus may store an instruction of the software in an appropriate non-transitory computer readable storage medium, and may execute, by using one or more processors, an instruction in hardware to execute the technology in the present invention. Any one of the foregoing items (including hardware, software, a combination of hardware and software, and the like) may be considered as the one or more processors. Each of the video coder 20 and the video decoder 30 may be included in one or more coders or decoders, either of the video coder 20 and the video decoder 30 may be integrated as a part of a combined coder/decoder (codec (CODEC)) in another apparatus.
[0089] In the present invention, it may be usually indicated that the video coder 20 sends information to another apparatus (for example, the video decoder 30) by using a signal. The term "sending by using a signal" may usually refer to a syntactic element and/or represent transmission of coded video data. The transmission may occur in real time or near real time. Alternatively, this communication may occur over a time span, for example, may occur when a syntactic element is stored in a computer readable storage medium by using coded binary data during coding. The syntactic element may be retrieved by the decoding apparatus at any time after being stored in the medium.
[0090] As shown in FIG. 4, an embodiment of the present invention provides a method for image coding through inter prediction. A specific procedure is as follows.
[0091] Step 401: Determine prediction motion information of a first coding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block.
[0092] The first coding block is a currently to-be-processed and to-be-coded block, the motion vector predictor in the prediction motion information includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image information includes reference frame index information of a forward prediction reference image block and reference frame index information of a backward prediction reference image block.
[0093] Further, the prediction reference image block of the first coding block is obtained based on the motion vector predictor or the prediction reference image information of the first coding block.
[0094] Optionally, the prediction motion information of the first coding block includes the forward motion vector predictor, the backward motion vector predictor, a picture order count (Picture Order Count, POC) corresponding to the forward prediction reference image block, and a POC corresponding to the backward prediction reference image block; or may include only the forward motion vector predictor and a POC corresponding to the forward prediction reference image block; or may include only the backward motion vector predictor and a POC corresponding to the backward prediction reference image block.
[0095] Specifically, for a method for determining the prediction motion information of the first coding block, refer to a method for determining prediction motion information of a current coding block in the prior art.
[0096] If a merge mode of inter prediction is used, a candidate prediction motion information list is constructed based on motion information of an adjacent block of the first coding block, and candidate prediction motion information is selected from the candidate prediction motion information list as the prediction motion information of the first coding block. The candidate motion information list includes a motion vector predictor, reference frame index information of a reference image block, and the like. It should be noted that the motion vector predictor in this mode is a motion vector value of the adjacent block.
[0097] If a non-merge mode of inter prediction is used, a motion vector predictor list is constructed based on motion information of an adjacent block of the first coding block, and a motion vector is selected from the motion vector predictor list as the motion vector predictor of the first coding block. It should be noted that the motion vector predictor in this mode may be a motion vector value of the adjacent block, or may be a sum of a motion vector value of a selected adjacent block and a motion vector difference of the first coding block. The motion vector difference is a difference between a motion vector obtained by performing motion estimation on the first coding block and the motion vector value of the selected adjacent block.
[0098] Step 402: Perform bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, and obtain a first coding prediction block of the first coding block based on the initial coding prediction block.
[0099] Further, when a POC corresponding to the prediction reference image block is not equal to a POC of thefirst coding block, bidirectional prediction including forward prediction and backward prediction is performed on the first coding block based on the prediction motion information. When the POC corresponding to the prediction reference image block is less than the POC of the first coding block, forward prediction is performed on the first coding block based on the prediction motion information; or when the POC corresponding to the prediction reference image block is greater than the POC of the first coding block, backward prediction is performed on the first coding block based on the prediction motion information.
[0100] Specifically, the performing bidirectional prediction on the first coding block based on the prediction motion information to obtain a forward initial coding prediction block of the first coding block includes the following processes.
[0101] S421. Perform forward prediction on the first coding block based on the prediction motion information, to be specific, perform forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block.
[0102] In a possible implementation, forward prediction is performed on the first coding block based on the forward prediction reference image block in the prediction motion information to obtain the forward initial coding prediction block of the first coding block.
[0103] In another possible implementation, forward prediction is performed on the first coding block based on the forward motion vector predictor in the prediction motion information to obtain the forward initial coding prediction block of the first coding block.
[0104] S422. Perform backward prediction on the first coding block based on the prediction motion information, to be specific, perform backward prediction on the first coding block based on the backward prediction motion information to obtain a backward initial coding prediction block of the first coding block.
[0105] In a possible implementation, forward prediction is performed on the first coding block based on the backward prediction reference image block in the prediction motion information to obtain the forward initial coding prediction block of the first coding block.
[0106] In another possible implementation, forward prediction is performed on the first coding block based on the backward motion vector predictor in the prediction motion information to obtain the forward initial coding prediction block of the first coding block.
[0107] The initial coding prediction block includes the forward initial coding prediction block and the backward initial coding prediction block.
[0108] Further, the obtaining a first coding prediction block of the first coding block based on the initial coding prediction block includes the following three implementations.
[0109] In a first implementation, weighted summation is performed on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block.
[0110] In this implementation, optionally, an average value of the forward initial coding prediction block and the backward initial coding prediction block is used as the first coding prediction block of the first coding block.
[0111] In a second implementation, the forward initial coding prediction block is used as the first coding prediction block of the first coding block.
[0112] In a third implementation, the backward initial coding prediction block is used as the first coding prediction block of the first coding block.
[0113] Step 403: Perform motion estimation of first precision on the prediction reference image block based on the motion vector predictor to obtain at least one second coding prediction block.
[0114] In some embodiments, this step is to perform motion search of the first precision on the prediction reference image block, where a search location of the motion search is determined by using the motion vector predictor and the first precision. In a feasible implementation, the location of the motion search is a location that is around a location represented by the motion vector predictor and that is within coverage of the first precision. For example, if the location indicated by the motion vector predictor is (1, 1), and the first precision is 1/2 pixel precision, the location of the motion search is (1.5, 1), (1.5, 1.5), (1.5, -0.5), (1, 1), (1, 1.5), (1, -0.5), (-0.5, 1), (-0.5, 1.5), and (-0.5, -0.5).
[0115] Specifically, the performing motion estimation of first precision on the prediction reference image block based on the motion vector predictor to obtain at least one second coding prediction block includes the following processes:
[0116] S431. Perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward coding prediction block as a forward second coding prediction block to obtain the at least one second coding prediction block.
[0117] S432. Perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward coding prediction block as a backward second coding prediction block to obtain the at least one second coding prediction block, where the second coding prediction block includes the forward second coding prediction block and the backward second coding prediction block.
[0118] The first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision. This is not limited.
[0119] Step 404: Calculate a difference between the first coding prediction block and each second coding prediction block, and use a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block.
[0120] Specifically, the calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block includes the following processes:
[0121] S441. Compare differences between the forward second coding prediction blocks and the first coding prediction block, and use a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor.
[0122] S442. Compare differences between the backward second coding prediction blocks and the first coding prediction block, and use a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor, where the target motion vector predictor includes the target forward motion vector predictor and the target backward motion vector predictor.
[0123] Specifically, when differences between second coding prediction blocks and the first coding prediction block are compared, a sum of absolute values of pixel differences in the two image blocks may be used as a value of the difference between the second coding prediction block and the first coding prediction block. Optionally, a sum of square values of pixel differences in the two image blocks may be used as a value of the difference between the second coding prediction block and the first coding prediction block. A difference comparison method is not specifically limited.
[0124] Step 405: Perform bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block.
[0125] Specifically, the performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block includes the following processes:
[0126] S451. Perform forward prediction on the first coding block based on the target forward motion vector predictor to obtain a forward third coding prediction block of the first coding block.
[0127] S452. Perform backward prediction on the first coding block based on the target backward motion vector predictor to obtain a backward third coding prediction block of the first coding block, where the third coding prediction block of the first coding block includes the forward third coding prediction block and the backward third coding prediction block.
[0128] Step 406: Obtain a target coding prediction block of the first coding block based on the third coding prediction block, and code the first coding block based on the target coding prediction block.
[0129] Specifically, the obtaining a target coding prediction block of the first coding block based on the third coding prediction block includes the following three implementations.
[0130] In a first implementation, weighted summation is performed on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block.
[0131] In this implementation, optionally, an average value of the forward third coding prediction block and the backward third coding prediction block is used as the target coding prediction block of the first coding block.
[0132] In a second implementation, the forward third coding prediction block is used as the target coding prediction block of the first coding block.
[0133] In a third implementation, the backward third coding prediction block is used as the target coding prediction block of the first coding block.
[0134] It should be understood that, in some embodiments, a flag bit may be coded in higher layer information of a code stream, such as a slice level, a picture level, or a sequence level, and the flag bit is used to indicate whether the image coding method shown in FIG. 4 is applied.
[0135] As shown in FIG. 5, an embodiment of the present invention provides a method for image decoding through inter prediction. A specific procedure is as follows.
[0136] Step 501: Determine prediction motion information of a first decoding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block.
[0137] The first decoding block is a currently to-be-processed block that needs to be constructed based on parsed code stream information, the motion vector predictor in the prediction motion information includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image information includes reference frame index information of a forward prediction reference image block and reference frame index information of a backward prediction reference image block.
[0138] Further, the prediction reference image block of the first coding block is obtained based on the motion vector predictor or the prediction reference image information of the first decoding block.
[0139] Optionally, the prediction motion information of the first decoding block includes the forward motion vector predictor, the backward motion vector predictor, a picture order count (Picture Order Count, POC) corresponding to the forward prediction reference image block, and a POC corresponding to the backward prediction reference image block; or may include only the forward motion vector predictor and a POC corresponding to the forward prediction reference image block; or may include only the backward motion vector predictor and a POC corresponding to the backward prediction reference image block.
[0140] Specifically, for a method for determining the prediction motion information of the first decoding block, refer to a method for determining prediction motion information of a current decoding block in the prior art.
[0141] If a merge mode of inter prediction is used, a candidate prediction motion information list is constructed based on motion information of an adjacent block of the first decoding block, and candidate prediction motion information is selected from the candidate prediction motion information list as the prediction motion information of the first decoding block. The candidate motion information list includes a motion vector predictor, reference frame index information of a reference image block, and the like. It should be noted that the motion vector predictor in this mode is a motion vector value of the adjacent block.
[0142] If a non-merge mode of inter prediction is used, a motion vector predictor list is constructed based on motion information of an adjacent block of the first decoding block, and a motion vector is selected from the motion vector predictor list as the motion vector predictor of the first decoding block. It should be noted that the motion vector predictor in this mode may be a motion vector value of the adjacent block, or may be a sum of a motion vector value of a selected adjacent block and a motion vector difference of the first decoding block. The motion vector difference may be directly obtained through decoding.
[0143] Step 502: Perform bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, and obtain a first decoding prediction block of the first decoding block based on the initial decoding prediction block.
[0144] Further, when a POC corresponding to the prediction reference image block is not equal to a POC of the first decoding block, bidirectional prediction including forward prediction and backward prediction is performed on the first decoding block based on the prediction motion information. When the POC corresponding to the prediction reference image block is less than the POC of the first decoding block, forward prediction is performed on the first decoding block based on the prediction motion information; or when the POC corresponding to the prediction reference image block is greater than the POC of the first decoding block, backward prediction is performed on the first decoding block based on the prediction motion information.
[0145] Specifically, the performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain a forward initial decoding prediction block of the first decoding block includes the following processes.
[0146] S521. Perform forward prediction on the first decoding block based on the prediction motion information, to be specific, perform forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block.
[0147] In a possible implementation, forward prediction is performed on the first decoding block based on the forward prediction reference image block in the prediction motion information to obtain the forward initial decoding prediction block of the first decoding block.
[0148] In another possible implementation, forward prediction is performed on the first decoding block based on the forward motion vector predictor in the prediction motion information to obtain the forward initial decoding prediction block of the first decoding block.
[0149] S522. Perform backward prediction on the first decoding block based on the prediction motion information, to be specific, perform backward prediction on the first decoding block based on the backward prediction motion information to obtain a backward initial decoding prediction block of the first decoding block.
[0150] In a possible implementation, forward prediction is performed on the first decoding block based on the backward prediction reference image block in the prediction motion information to obtain the forward initial decoding prediction block of the first decoding block.
[0151] In another possible implementation, forward prediction is performed on the first decoding block based on the backward motion vector predictor in the prediction motion information to obtain the forward initial decoding prediction block of the first decoding block.
[0152] The initial decoding prediction block includes the forward initial decoding prediction block and the backward initial decoding prediction block.
[0153] Further, the obtaining a first decoding prediction block of the first decoding block based on the initial decoding prediction block includes the following three implementations.
[0154] In a first implementation, weighted summation is performed on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block.
[0155] In this implementation, optionally, an average value of the forward initial decoding prediction block and the backward initial decoding prediction block is used as the first decoding prediction block of the first decoding block.
[0156] In a second implementation, the forward initial decoding prediction block is used as the first decoding prediction block of the first decoding block.
[0157] In a third implementation, the backward initial decoding prediction block is used as the first decoding prediction block of the first decoding block.
[0158] Step 503: Perform motion estimation of first precision on the prediction reference image block based on the motion vector predictor to obtain at least one second decoding prediction block.
[0159] In some embodiments, this step is to perform motion search of the first precision on the prediction reference image block, where a search location of the motion search is determined by using the motion vector predictor and the first precision. In a feasible implementation, the location of the motion search is a location that is around a location represented by the motion vector predictor and that is within coverage of the first precision. For example, if the location indicated by the motion vector predictor is (1, 1), and the first precision is 1/2 pixel precision, the location of the motion search is (1.5, 1), (1.5, 1.5), (1.5, -0.5), (1, 1), (1, 1.5), (1, -0.5), (-0.5, 1), (-0.5, 1.5), and (-0.5, -0.5).
[0160] Specifically, the performing motion estimation of first precision on the prediction reference image block based on the motion vector predictor to obtain at least one second decoding prediction block includes the following processes:
[0161] S531. Perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward decoding prediction block as a forward second decoding prediction block to obtain the at least one second decoding prediction block.
[0162] S532. Perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward decoding prediction block as a backward second decoding prediction block to obtain the at least one second decoding prediction block, where the second decoding prediction block includes the forward second decoding prediction block and the backward second decoding prediction block.
[0163] The first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision. This is not limited.
[0164] Step 504: Calculate a difference between the first decoding prediction block and each second decoding prediction block, and use a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block.
[0165] Specifically, the calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block includes the following processes:
[0166] S541. Compare differences between the forward second decoding prediction blocks and the first decoding prediction block, and use a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor.
[0167] S542. Compare differences between the backward second decoding prediction blocks and the first decoding prediction block, and use a target backward motion vector predictor between the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor, where the target motion vector predictor includes the target forward motion vector predictor and the target backward motion vector predictor.
[0168] Specifically, when differences between second decoding prediction blocks and the first decoding prediction block are compared, a sum of absolute values of pixel differences in the two image blocks may be used as a value of the difference between the second decoding prediction block and the first decoding prediction block. Optionally, a sum of square values of pixel differences in the two image blocks may be used as a value of the difference between the second decoding prediction block and the first decoding prediction block. A difference comparison method is not specifically limited.
[0169] Step 505: Perform bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block.
[0170] Specifically, the performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block includes the following processes:
[0171] S551. Perform forward prediction on the first decoding block based on the target forward motion vector predictor to obtain a forward third decoding prediction block of the first decoding block.
[0172] S552. Perform backward prediction on the first decoding block based on the target backward motion vector predictor to obtain a backward third decoding prediction block of the first decoding block, where the third decoding prediction block of the first decoding block includes the forward third decoding prediction block and the backward third decoding prediction block.
[0173] Step 506: Obtain a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decode the first decoding block based on the target decoding prediction block.
[0174] Specifically, the obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block includes the following three implementations.
[0175] In a first implementation, weighted summation is performed on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of the first decoding block.
[0176] In this implementation, optionally, an average value of the forward third decoding prediction block and the backward third decoding prediction block is used as the target decoding prediction block of the first decoding block.
[0177] In a second implementation, the forward third decoding prediction block is used as the target decoding prediction block of the first decoding block.
[0178] In a third implementation, the backward third decoding prediction block is used as the target decoding prediction block of the first decoding block.
[0179] It should be understood that, in some embodiments, corresponding to an encoder side, a flag bit may be first parsed in higher layer information of a code stream, such as a strip level, an image level, or a sequence level, and the flag bit is used to indicate whether the image decoding method shown in FIG. 5 is applied.
[0180] The following describes in detail the coding method in FIG. 4 and the decoding method in FIG. 5 by using several specific embodiments.
EMBODIMENT 1
[0181] As shown in FIG. 6A and FIG. 6B, a current decoding block is a first decoding block, and prediction motion information of the current decoding block is obtained. It is assumed that forward and backward motion vector predictors of the current decoding block are respectively (-10, 4) and (5, 6), a POC corresponding to the current decoding block is 4, a POC corresponding to a forward prediction reference image block is 2, and a POC corresponding to a backward prediction reference image block is 6.
[0182] Forward prediction and backward prediction are separately performed on the current decoding block to obtain an initial forward decoding prediction block (Forward Prediction Block, FPB) and an initial backward decoding prediction block (Backward Prediction Block, BPB) of the current decoding block, and it is assumed that the initial forward decoding prediction block and the initial backward decoding prediction block are respectively an FPB 1 and a BPB 1. Weighted summation is performed on the FPB 1 and the BPB 1 to obtain afirst decoding prediction block (Decoding Prediction Block, DPB) of the current decoding block, and it is assumed that the first decoding prediction block is a DPB 1.
[0183] (-10, 4) and (5, 6) are used as reference input of the forward and backward motion vector predictors, and motion search of first precision is separately performed on the forward prediction reference image block and the backward prediction reference image block. In this case, the first precision is 1/2 pixel precision in a1-pixel range. The first decoding prediction block DPB 1 is used as a reference. Differences between the first decoding prediction block DPB 1 and each of corresponding new forward and backward decoding prediction blocks found through the motion search are compared to obtain forward and backward motion vector predictors corresponding to a new decoding prediction block with a smallest difference from the DPB 1, to serve as target motion vector predictors. It is assumed that the forward and backward motion vector predictors are respectively (-11, 4) and (6, 6).
[0184] The target motion vector predictors are updated to (-11, 4) and (6, 6). In addition, forward prediction and backward prediction are performed on the first decoding block based on the target motion vector predictors, and weighted summation is performed on the obtained new forward decoding prediction block and backward decoding prediction block to obtain a target decoding prediction block. It is assumed that the target decoding prediction block is a DPB 2, and the decoding prediction block of the current decoding block is updated to the DPB 2.
[0185] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and the backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
EMBODIMENT 2
[0186] As shown in FIG. 6A and FIG. 6B, a current coding block is a first coding block, and prediction motion information of the current coding block is obtained. It is assumed that forward and backward motion vector predictors of the current coding block are respectively (-10, 4) and (5, 6), a POC corresponding to the current coding block is 4, a POC corresponding to a forward prediction reference image block is 2, and a POC corresponding to a backward prediction reference image block is 6.
[0187] Forward prediction and backward prediction are separately performed on the current coding block to obtain an initial forward coding prediction block and an initial backward coding prediction block of the current coding block, and it is assumed that the initial forward coding prediction block and the initial backward coding prediction block are respectively an FPB1 and a BPB 1. Weighted summation is performed on the FPB1 and the BPB 1 to obtain a first coding prediction block of the current coding block, and it is assumed that the first coding prediction block is a DPB 1.
[0188] (-10, 4) and (5, 6) are used as reference input of the forward and backward motion vector predictors, and motion search of first precision is separately performed on the forward prediction reference image block and the backward prediction reference image block. In this case, the first precision is 1/2 pixel precision in a 1-pixel range. The first coding prediction block DPB 1 is used as a reference. Differences between the first coding prediction block DPB1 and each of corresponding new forward and backward coding prediction blocks found through the motion search are compared to obtain forward and backward motion vector predictors corresponding to a new coding prediction block with a smallest difference from the DPB 1, to serve as target motion vector predictors. It is assumed that the forward and backward motion vector predictors are respectively (-11, 4) and (6, 6).
[0189] The target motion vector predictors are updated to (-11, 4) and (6, 6). In addition, forward prediction and backward prediction are performed on the first coding block based on the target motion vector predictors, and weighted summation is performed on the obtained new forward coding prediction block and backward coding prediction block to obtain a target coding prediction block. It is assumed that the target coding prediction block is a DPB 2, and the coding prediction block of the current coding block is updated to the DPB 2.
[0190] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and the backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
EMBODIMENT 3
[0191] As shown in FIG. 7, a current decoding block is afirst decoding block, and prediction motion information of the current decoding block is obtained. It is assumed that a forward motion vector predictor of the current decoding block is (-21, 18), a POC corresponding to the current decoding block is 4, and a POC corresponding to a forward prediction reference image block is 2.
[0192] Forward prediction is performed on the current decoding block to obtain an initial forward decoding prediction block of the current decoding block, and it is assumed that the initial forward decoding prediction block is an FPB1. In this case, the FPB1 is used as a first decoding prediction block of the current decoding block, and the first decoding prediction block is denoted as a DPB 1.
[0193] (-21, 18) is used as reference input of the forward motion vector predictor, and motion search of first precision is performed on the forward prediction reference image block. In this case, the first precision is 1 pixel precision in a 5-pixel range. The first decoding prediction block DPB1 is used as a reference. Differences between the first decoding prediction block DPB1 and corresponding new backward decoding prediction blocks found through the motion search are compared to obtain a forward motion vector predictor corresponding to a new decoding prediction block with a smallest difference from the DPB 1, to serve as a target motion vector predictor. It is assumed that the forward motion vector predictor is (-19, 19).
[0194] The target motion vector predictor is updated to (-19, 19). In addition, forward prediction is performed on the first decoding block based on the target motion vector predictor, and the obtained new forward decoding prediction block is used as a target decoding prediction block. It is assumed that the target decoding prediction block is a DPB 2, and the decoding prediction block of the current decoding block is updated to the DPB 2.
[0195] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and a backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
EMBODIMENT 4
[0196] As shown in FIG. 7, a current coding block is afirst coding block, and prediction motion information of the current coding block is obtained. It is assumed a forward motion vector predictor of the current coding block is (-21, 18), a POC corresponding to the current coding block is 4, and a POC corresponding to a forward prediction reference image block is 2.
[0197] Forward prediction is performed on the current coding block to obtain an initial forward coding prediction block of the current coding block, and it is assumed that the initial forward coding prediction block is an FPB 1. In this case, the FPB1 is used as a first coding prediction block of the current coding block, and the first coding prediction block is denoted as a DPB 1.
[0198] (-21, 18) is used as reference input of the forward motion vector predictor, and motion search of first precision is performed on the forward prediction reference image block. In this case, the first precision is 1 pixel precision in a 5-pixel range. The first coding prediction block DPB1 is used as a reference. Differences between the first coding prediction block DPB1 and corresponding new backward coding prediction blocks found through the motion search are compared to obtain a forward motion vector predictor corresponding to a new coding prediction block with a smallest difference from the DPB 1, to serve as a target motion vector predictor. It is assumed that the forward motion vector predictor is (-19, 19).
[0199] The target motion vector predictor is updated to (-19, 19). In addition, forward prediction is performed on the first coding block based on the target motion vector predictor, and the obtained new forward coding prediction block is used as a target coding prediction block. It is assumed that the target coding prediction block is a DPB 2, and the coding prediction block of the current coding block is updated to the DPB 2.
[0200] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and a backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
EMBODIMENT 5
[0201] As shown in FIG. 8A, FIG. 8B, FIG. 8C, and FIG. 8D, a current coding block is a first coding block, and prediction motion information of the current coding block is obtained. It is assumed that forward and backward motion vector predictors of the current coding block are respectively (-6, 12) and (8, 4), a POC corresponding to the current coding block is 8, a POC corresponding to a forward prediction reference image block is 4, and a POC corresponding to a backward prediction reference image block is 12.
[0202] Forward prediction and backward prediction are separately performed on the current coding block to obtain an initial forward coding prediction block and an initial backward coding prediction block of the current coding block, and it is assumed that the initial forward coding prediction block and the initial backward coding prediction block are respectively an FPB1 and a BPB 1. Weighted summation is performed on the FPB1 and the BPB 1 to obtain a first coding prediction block of the current coding block, and it is assumed that the first coding prediction block is a DPB 1.
[0203] (-6, 12) and (8, 4) are used as reference input of the forward and backward motion vector predictors, and motion search of first precision is separately performed on the forward prediction reference image block and the backward prediction reference image block. The first coding prediction block DPB1 is used as a reference. Differences between the first coding prediction block DPB1 and each of corresponding new forward and backward coding prediction blocks found through the motion search are compared to obtain forward and backward motion vector predictors corresponding to a new coding prediction block with a smallest difference from the DPB 1, to serve as target motion vector predictors. It is assumed that the forward and backward motion vector predictors are respectively (-11, 4) and (6, 6).
[0204] The target motion vector predictors are updated to (-11, 4) and (6, 6). In addition, forward prediction and backward prediction are performed on the first coding block based on the target motion vector predictors, and weighted summation is performed on the obtained new forward coding prediction block and backward coding prediction block to obtain a target coding prediction block. It is assumed that the target coding prediction block is a DPB 2, and the coding prediction block of the current coding block is updated to the DPB 2.
[0205] Subsequently, (-11, 4) and (6, 6) are used as reference input of the forward and backward motion vector predictors, and motion search of the first precision is separately performed on the forward prediction reference image block and the backward prediction reference image block. The coding prediction block DPB 2 of the current coding block is used as a reference. Differences between the first coding prediction block DPB 2 and each of corresponding new forward and backward coding prediction blocks found through the motion search are compared to obtain forward and backward motion vector predictors corresponding to a new coding prediction block with a smallest difference from the DPB 2, to serve as new target motion vector predictors. It is assumed that the forward and backward motion vector predictors are respectively (-7, 11) and (6, 5).
[0206] Subsequently, the target motion vector predictors are updated to (-7, 11) and (6, 5). In addition, forward prediction and backward prediction are performed on the first coding block based on the latest target motion vector predictors, and weighted summation is performed on the obtained new forward coding prediction block and backward coding prediction block to obtain a target coding prediction block. It is assumed that the target coding prediction block is a DPB 3, and the coding prediction block of the current coding block is updated to the DPB 3.
[0207] Further, the target motion vector predictor may be subsequently updated according to the foregoing method, so that a quantity of repetitions is not limited.
[0208] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and the backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
EMBODIMENT 6
[0209] In this embodiment, a manner of obtaining a motion vector predictor in a coding process of a non-merge mode of inter prediction is different from that in the foregoing embodiments. Embodiment 6 describes in detail a decoding process of the non-merge mode of inter prediction. Similarly, the coding process and the decoding process are similar in the non-merge mode of inter prediction, and details are not described herein again.
[0210] As shown in FIG. 9A and FIG. 9B, a current decoding block is a first decoding block, and prediction motion information of the current decoding block is obtained. It is assumed that forward and backward motion vector values of the current decoding block are respectively (-10, 4) and (5, 6), forward and backward motion vector differences are respectively (-2, 1) and (1, 1), a POC corresponding to the current decoding block is 4, a POC corresponding to a forward prediction reference image block is 2, and a POC corresponding to a backward prediction reference image block is 6.
[0211] Forward prediction and backward prediction are separately performed on the current decoding block to obtain an initial forward decoding prediction block (-FPB) and an initial backward decoding prediction block (BPB) of the current decoding block, and it is assumed that the initial forward decoding prediction block and the initial backward decoding prediction block are respectively an FPB 1 and a BPB 1. Weighted summation is performed on the FPB 1 and the BPB 1 to obtain a first decoding prediction block (DPB) of the current decoding block, and it is assumed that the first decoding prediction block is a DPB 1.
[0212] Forward and backward motion vector predictors (-10, 4) + (-2, 1) = (-12, 5) and (5, 6)
+ (1, 1)= (6, 7) are used as reference input of the forward and backward motion vectors, and motion search of first precision is separately performed on the forward prediction reference image block and the backward prediction reference image block. In this case, the first precision is 1/4 pixel precision in a 1-pixel range. The first decoding prediction block DPB 1 is used as a reference. Differences between the first decoding prediction block DPB 1 and each of corresponding new forward and backward decoding prediction blocks found through the motion search are compared to obtain forward and backward motion vectors corresponding to a new decoding prediction block with a smallest difference from the DPB 1, to serve as target motion vector predictors. It is assumed that the forward and backward motion vectors are respectively (-11, 4) and (6, 6).
[0213] The target motion vector predictors are updated to (-11, 4) and (6, 6). In addition, forward prediction and backward prediction are performed on the first decoding block based on the target motion vector predictors, and weighted summation is performed on the obtained new forward decoding prediction block and backward decoding prediction block to obtain a target decoding prediction block. It is assumed that the target decoding prediction block is a DPB 2, and the decoding prediction block of the current decoding block is updated to the DPB 2.
[0214] It should be noted that, when motion search of the first precision is performed on the forward prediction reference image block and the backward prediction reference image block, the first precision may be any specified precision, for example, may be integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0215] In conclusion, the foregoing coding and decoding methods may be applied to all bidirectional prediction processes in video image coding and decoding, and an updated motion vector predictor and coding and decoding prediction blocks may be applied to all video image coding and decoding processes. A codec system obtains current coding and decoding prediction blocks based on prediction motion information of current coding and decoding blocks; performs motion search based on a motion vector predictor and a prediction reference image block to obtain new coding and decoding prediction blocks; and updates the motion vector predictor and the coding and decoding prediction blocks of the current coding and decoding blocks through difference comparison with current coding and decoding prediction blocks, so as to improve motion precision.
[0216] According to the foregoing embodiments, as shown in FIG. 10, an embodiment of the present invention provides an apparatus 1000 for image coding through inter prediction. As shown in FIG. 10, the apparatus 1000 includes a determining unit 1001, a processing unit 1002, and a coding unit 1003.
[0217] The determining unit 1001 is configured to determine prediction motion information of a first coding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block.
[0218] The processing unit 1002 is configured to: perform bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, and obtain a first coding prediction block of the first coding block based on the initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first coding prediction block and each second coding prediction block, and use a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block; and perform bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block.
[0219] The coding unit 1003 is configured to: obtain a target coding prediction block of the first coding block based on the third coding prediction block, and code the first coding block based on the target coding prediction block.
[0220] Optionally, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0221] Optionally, the initial coding prediction block includes a forward initial coding prediction block and a backward initial coding prediction block, and when performing bidirectional prediction on the first coding block based on the prediction motion information to obtain the initial coding prediction block of the first coding block, the processing unit 1002 is specifically configured to: perform forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the backward prediction motion information to obtain the backward initial coding prediction block of the first coding block.
[0222] Optionally, when obtaining the first coding prediction block of the first coding block based on the initial coding prediction block, the processing unit 1002 is specifically configured to: perform weighted summation on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block; or use the forward initial coding prediction block as the first coding prediction block of the first coding block; or use the backward initial coding prediction block as the first coding prediction block of the first coding block.
[0223] Optionally, the second coding prediction block includes a forward second coding prediction block and a backward second coding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second coding prediction block, the processing unit 1002 is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward coding prediction block as the forward second coding prediction block to obtain the at least one second coding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward coding prediction block as the backward second coding prediction block to obtain the at least one second coding prediction block.
[0224] The first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0225] Optionally, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first coding prediction block and each second coding prediction block, and using the motion vector predictor between the first coding block and the second coding prediction block with a smallest difference as the target motion vector predictor of the first coding block, the processing unit 1002 is specifically configured to: compare differences between the forward second coding prediction blocks and the first coding prediction block, and use a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor; or compare differences between the backward second coding prediction blocks and the first coding prediction block, and use a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor.
[0226] Optionally, the third coding prediction block of the first coding block includes a forward third coding prediction block and a backward third coding prediction block, and when performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain the third coding prediction block of the first coding block, the processing unit 1002 is specifically configured to: perform forward prediction on the first coding block based on the target forward motion vector predictor to obtain the forward third coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the target backward motion vector predictor to obtain the backward third coding prediction block of the first coding block.
[0227] Optionally, when obtaining the target coding prediction block of the first coding block based on the third coding prediction block, the processing unit 1002 is specifically configured to: perform weighted summation on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block; or use the forward third coding prediction block as the target coding prediction block of the first coding block; or use the backward third coding prediction block as the target coding prediction block of the first coding block.
[0228] It should be noted that, for function implementation and an interaction manner of each unit of the apparatus 1000 in this embodiment of the present invention, further refer to descriptions in a related method embodiment. Details are not described herein again.
[0229] According to a same invention concept, as shown in FIG. 11, an embodiment of the present invention further provides a coder 1100. As shown in FIG. 11, the coder 1100 includes a processor 1101 and a memory 1102. Program code used to execute the solutions of the present invention is stored in the memory 1102, and is used to instruct the processor 1101 to perform the coding method shown in FIG. 4.
[0230] Code corresponding to the method shown in FIG. 4 may also be built into a chip by performing design programming for the processor, so that when the chip runs, the method shown in FIG. 4 can be performed.
[0231] According to the foregoing embodiments, as shown in FIG. 12, an embodiment of the present invention provides an apparatus 1200 for image decoding through inter prediction. As shown in FIG. 12, the apparatus 1200 includes a determining unit 1201, a processing unit 1202, and a decoding unit 1203.
[0232] The determining unit 1201 is configured to determine prediction motion information of a first decoding block, where the prediction motion information includes a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block.
[0233] The processing unit 1202 is configured to: perform bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, and obtain a first decoding prediction block of the first decoding block based on the initial decoding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, where a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first decoding prediction block and each second decoding prediction block, and use a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; and perform bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block.
[0234] The decoding unit 1203 is configured to: obtain a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decode the first decoding block based on the target decoding prediction block.
[0235] Optionally, the prediction motion information includes forward prediction motion information and backward prediction motion information, the motion vector predictor includes a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block includes a forward prediction reference image block and a backward prediction reference image block.
[0236] Optionally, the initial decoding prediction block includes a forward initial decoding prediction block and a backward initial decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain the initial decoding prediction block of the first decoding block, the processing unit 1202 is specifically configured to: perform forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block; and perform backward prediction on the first decoding block based on the backward prediction motion information to obtain the backward initial decoding prediction block of the first decoding block.
[0237] Optionally, when obtaining the first decoding prediction block of the first decoding block based on the initial decoding prediction block, the processing unit 1202 is specifically configured to: perform weighted summation on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block; or use the forward initial decoding prediction block as the first decoding prediction block of the first decoding block; or use the backward initial decoding prediction block as the first decoding prediction block of the first decoding block.
[0238] Optionally, the second decoding prediction block includes a forward second decoding prediction block and a backward second decoding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second decoding prediction block, the processing unit 1202 is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward decoding prediction block as the forward second decoding prediction block to obtain the at least one second decoding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward decoding prediction block as the backward second decoding prediction block to obtain the at least one second decoding prediction block.
[0239] The first precision includes integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
[0240] Optionally, the target motion vector predictor includes a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first decoding prediction block and each second decoding prediction block, and using the motion vector predictor between the first decoding block and the second decoding prediction block with a smallest difference as the target motion vector predictor of the first decoding block, the processing unit 1202 is specifically configured to: compare differences between the forward second decoding prediction blocks and the first decoding prediction block, and use a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor; or compare differences between the backward second decoding prediction blocks and the first decoding prediction block, and use a target backward motion vector predictor between the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor.
[0241] Optionally, the third decoding prediction block of the first decoding block includes a forward third decoding prediction block and a backward third decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain the third decoding prediction block of the first decoding block, the processing unit 1202 is specifically configured to: perform forward prediction on the first decoding block based on the target forward motion vector predictor to obtain the forward third decoding prediction block of thefirst decoding block; and perform backward prediction on the first decoding block based on the target backward motion vector predictor to obtain the backward third decoding prediction block of the first decoding block.
[0242] Optionally, when obtaining the target decoding prediction block of the first decoding block based on the third decoding prediction block, the processing unit 1202 is specifically configured to: perform weighted summation on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of thefirst decoding block; or use the forward third decoding prediction block as the target decoding prediction block of the first decoding block; or use the backward third decoding prediction block as the target decoding prediction block of the first decoding block.
[0243] It should be noted that, for function implementation and an interaction manner of each unit of the apparatus 1200 in this embodiment of the present invention, further refer to descriptions in a related method embodiment. Details are not described herein again.
[0244] It should be understood that division of the units in the apparatus 1200 and the apparatus 1000 is merely logical function division. In an actual implementation, all or some of the units may be integrated into one physical entity, or the units may be physically separated. For example, the foregoing units may be separately disposed processing elements, or may be integrated into a chip of a controller for implementation, or may be stored in a memory element of a controller in a form of program code and invoked by a processing element of the controller to implement functions of the foregoing units. In addition, the units may be integrated or may be implemented separately. The processing element may be an integrated circuit chip and has a signal processing capability. In an implementation process, steps in the foregoing methods or the foregoing units can be implemented by using a hardware integrated logic circuit in the processing element, or by using instructions in a form of software. The processing element may be a general purpose processor, such as a central processing unit (English: central processing unit, CPU for short); or may be configured as one or more integrated circuits that perform the foregoing methods, such as one or more application-specific integrated circuits (English: application-specific integrated circuit, ASIC for short), one or more microprocessors (English: digital signal processor, DSP for short), or one or more field-programmable gate arrays (English: field-programmable gate array, FPGA for short).
[0245] According to a same invention concept, an embodiment of the present invention further provides a decoder 1300. As shown in FIG. 13, the decoder 1300 includes a processor 1301 and a memory 1302. Program code used to execute the solutions of the present invention is stored in the memory 1302, and is used to instruct the processor 1301 to perform the decoding method shown in FIG. 5.
[0246] Code corresponding to the method shown in FIG. 5 may also be built into a chip by performing design programming for the processor, so that when the chip runs, the method shown in FIG. 5 can be performed.
[0247] It can be understood that, the processor in the coder 1100 and the decoder 1300 in the embodiments of the present invention may be a CPU, a DSP, an ASIC, or one or more integrated circuits configured to control program execution in the solutions of the present invention. One or more memories included in a computer system may be a read-only memory (English: read-only memory, ROM for short) or another type of static storage device that is capable of storing static information and a static instruction, a random access memory (English: random access memory, RAM for short) or another type of dynamic storage device that is capable of storing information and an instruction, or may be a magnetic disk memory. These memories are connected to the processor by using a bus, or may be connected to the processor by using a dedicated connection cable.
[0248] A person of ordinary skill in the art may understand that all or some of the steps in the foregoing methods of the embodiments may be implemented by a program instructing a processor. The foregoing program may be stored in a computer readable storage medium. The storage medium is a non-transitory (English: non-transitory) medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid state drive, a magnetic tape (English: magnetic tape), a floppy disk (English: floppy disk), an optical disc (English: optical disc), or any combination thereof.
[0249] The present invention is described with reference to respective flowcharts and block diagrams of the methods and the devices in the embodiments of the present invention. It should be understood that computer program instructions may be used to implement each process and each block in the flowcharts and the block diagrams and a combination of a process and a block in the flowcharts and the block diagrams. These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts or in one or more blocks in the block diagrams.
[0250] The foregoing descriptions are merely example implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
[0251] Where any or all of the terms "comprise", "comprises", "comprised" or "comprising" are used in this specification (including the claims) they are to be interpreted as specifying the presence of the stated features, integers, steps or components, but not precluding the presence of one or more other features, integers, steps or components.

Claims (32)

The claims defining the invention are as follows:
1. A method for image coding through inter prediction, comprising: determining prediction motion information of a first coding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtaining a first coding prediction block of the first coding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block; performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and obtaining a target coding prediction block of the first coding block based on the third coding prediction block, and coding the first coding block based on the target coding prediction block.
2. The method according to claim 1, wherein the prediction motion information comprises forward prediction motion information and backward prediction motion information, the motion vector predictor comprises a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block comprises a forward prediction reference image block and a backward prediction reference image block.
3. The method according to claim 2, wherein the initial coding prediction block comprises the forward initial coding prediction block and the backward initial coding prediction block, and the performing bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block comprises: performing forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block; and performing backward prediction on the first coding block based on the backward prediction motion information to obtain the backward initial coding prediction block of the first coding block.
4. The method according to claim 3, wherein the obtaining a first coding prediction block of the first coding block based on the initial coding prediction block comprises: performing weighted summation on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block; or using the forward initial coding prediction block as the first coding prediction block of the first coding block; or using the backward initial coding prediction block as the first coding prediction block of the first coding block.
5. The method according to claim 4, wherein the second coding prediction block comprises a forward second coding prediction block and a backward second coding prediction block, and the performing motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block comprises: performing motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and using each found forward coding prediction block as the forward second coding prediction block to obtain the at least one second coding prediction block; and performing motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and using each found backward coding prediction block as the backward second coding prediction block to obtain the at least one second coding prediction block, wherein the first precision comprises integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
6. The method according to claim 5, wherein the target motion vector predictor comprises a target forward motion vector predictor and a target backward motion vector predictor, and the calculating a difference between the first coding prediction block and each second coding prediction block, and using a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block comprises: comparing differences between the forward second coding prediction blocks and the first coding prediction block, and using a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor; and/or comparing differences between the backward second coding prediction blocks and the first coding prediction block, and using a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor.
7. The method according to claim 6, wherein the third coding prediction block of the first coding block comprises a forward third coding prediction block and a backward third coding prediction block, and the performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block comprises: performing forward prediction on the first coding block based on the target forward motion vector predictor to obtain the forward third coding prediction block of the first coding block; and performing backward prediction on the first coding block based on the target backward motion vector predictor to obtain the backward third coding prediction block of thefirst coding block.
8. The method according to claim 7, wherein the obtaining a target coding prediction block of the first coding block based on the third coding prediction block comprises: performing weighted summation on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block; or using the forward third coding prediction block as the target coding prediction block of the first coding block; or using the backward third coding prediction block as the target coding prediction block of the first coding block.
9. A method for image decoding through inter prediction, comprising: determining prediction motion information of a first decoding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtaining a first decoding prediction block of the first decoding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; performing motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decoding the first decoding block based on the target decoding prediction block.
10. The method according to claim 9, wherein the prediction motion information comprises forward prediction motion information and backward prediction motion information, the motion vector predictor comprises a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block comprises a forward prediction reference image block and a backward prediction reference image block.
11. The method according to claim 10, wherein the initial decoding prediction block comprises the forward initial decoding prediction block and the backward initial decoding prediction block, and the performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block comprises: performing forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block; and performing backward prediction on the first decoding block based on the backward prediction motion information to obtain the backward initial decoding prediction block of the first decoding block.
12. The method according to claim 11, wherein the obtaining a first decoding prediction block of the first decoding block based on the initial decoding prediction block comprises: performing weighted summation on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block; or using the forward initial decoding prediction block as the first decoding prediction block of the first decoding block; or using the backward initial decoding prediction block as the first decoding prediction block of the first decoding block.
13. The method according to claim 12, wherein the second decoding prediction block comprises a forward second decoding prediction block and a backward second decoding prediction block, and the performing motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block comprises: performing motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and using each found forward decoding prediction block as the forward second decoding prediction block to obtain the at least one second decoding prediction block; and performing motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and using each found backward decoding prediction block as the backward second decoding prediction block to obtain the at least one second decoding prediction block, wherein the first precision comprises integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
14. The method according to claim 13, wherein the target motion vector predictor comprises a target forward motion vector predictor and a target backward motion vector predictor, and the calculating a difference between the first decoding prediction block and each second decoding prediction block, and using a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block comprises: comparing differences between the forward second decoding prediction blocks and the first decoding prediction block, and using a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor; and/or comparing differences between the backward second decoding prediction blocks and the first decoding prediction block, and using a target backward motion vector predictor between the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor.
15. The method according to claim 14, wherein the third decoding prediction block of the first decoding block comprises a forward third decoding prediction block and a backward third decoding prediction block, and the performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block comprises: performing forward prediction on the first decoding block based on the target forward motion vector predictor to obtain the forward third decoding prediction block of the first decoding block; and performing backward prediction on the first decoding block based on the target backward motion vector predictor to obtain the backward third decoding prediction block of the first decoding block.
16. The method according to claim 15, wherein the obtaining a target decoding prediction block of the first decoding block based on the third decoding prediction block comprises: performing weighted summation on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of thefirst decoding block; or using the forward third decoding prediction block as the target decoding prediction block of the first decoding block; or using the backward third decoding prediction block as the target decoding prediction block of the first decoding block.
17. An apparatus for image coding through inter prediction, comprising: a determining unit, configured to determine prediction motion information of a first coding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first coding block based on the prediction motion information to obtain an initial coding prediction block of the first coding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtain a first coding prediction block of the first coding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second coding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first coding prediction block and each second coding prediction block, and use a motion vector predictor between the first coding block and a second coding prediction block with a smallest difference as a target motion vector predictor of the first coding block; and perform bidirectional prediction on the first coding block based on the target motion vector predictor to obtain a third coding prediction block of the first coding block; and a coding unit, configured to: obtain a target coding prediction block of the first coding block based on the third coding prediction block, and code the first coding block based on the target coding prediction block.
18. The apparatus according to claim 17, wherein the prediction motion information comprises forward prediction motion information and backward prediction motion information, the motion vector predictor comprises a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block comprises a forward prediction reference image block and a backward prediction reference image block.
19. The apparatus according to claim 18, wherein the initial coding prediction block comprises the forward initial coding prediction block and the backward initial coding prediction block, and when performing bidirectional prediction on the first coding block based on the prediction motion information to obtain the initial coding prediction block of the first coding block, the processing unit is specifically configured to: perform forward prediction on the first coding block based on the forward prediction motion information to obtain the forward initial coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the backward prediction motion information to obtain the backward initial coding prediction block of the first coding block.
20. The apparatus according to claim 19, wherein when obtaining the first coding prediction block of the first coding block based on the initial coding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward initial coding prediction block and the backward initial coding prediction block to obtain the first coding prediction block of the first coding block; or use the forward initial coding prediction block as the first coding prediction block of the first coding block; or use the backward initial coding prediction block as the first coding prediction block of the first coding block.
21. The apparatus according to claim 20, wherein the second coding prediction block comprises a forward second coding prediction block and a backward second coding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second coding prediction block, the processing unit is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward coding prediction block as the forward second coding prediction block to obtain the at least one second coding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward coding prediction block as the backward second coding prediction block to obtain the at least one second coding prediction block, wherein the first precision comprises integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or 1/8 pixel precision.
22. The apparatus according to claim 21, wherein the target motion vector predictor comprises a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first coding prediction block and each second coding prediction block, and using the motion vector predictor between the first coding block and the second coding prediction block with a smallest difference as the target motion vector predictor of the first coding block, the processing unit is specifically configured to: compare differences between the forward second coding prediction blocks and the first coding prediction block, and use a target forward motion vector predictor between the first coding block and a forward second coding prediction block with a smallest difference as the target motion vector predictor; and/or compare differences between the backward second coding prediction blocks and the first coding prediction block, and use a target backward motion vector predictor between the first coding block and a backward second coding prediction block with a smallest difference as the target motion vector predictor.
23. The apparatus according to claim 22, wherein the third coding prediction block of the first coding block comprises a forward third coding prediction block and a backward third coding prediction block, and when performing bidirectional prediction on the first coding block based on the target motion vector predictor to obtain the third coding prediction block of the first coding block, the processing unit is specifically configured to: perform forward prediction on the first coding block based on the target forward motion vector predictor to obtain the forward third coding prediction block of the first coding block; and perform backward prediction on the first coding block based on the target backward motion vector predictor to obtain the backward third coding prediction block of the first coding block.
24. The apparatus according to claim 23, wherein when obtaining the target coding prediction block of the first coding block based on the third coding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward third coding prediction block and the backward third coding prediction block to obtain the target coding prediction block of the first coding block; or use the forward third coding prediction block as the target coding prediction block of the first coding block; or use the backward third coding prediction block as the target coding prediction block of the first coding block.
25. An apparatus for image decoding through inter prediction, comprising: a determining unit, configured to determine prediction motion information of a first decoding block, wherein the prediction motion information comprises a motion vector predictor and prediction reference image information, and the prediction reference image information is used to represent a prediction reference image block; a processing unit, configured to: perform bidirectional prediction on the first decoding block based on the prediction motion information to obtain an initial decoding prediction block of the first decoding block, wherein the initial coding prediction block comprises at least one of a forward initial coding prediction block obtained based on forward prediction of the first coding block or a backward initial coding prediction block obtained based on backward prediction of the first coding block; obtain a first decoding prediction block of the first decoding block using at least one of the forward initial coding prediction block or the backward initial coding prediction block; perform motion search of first precision on the prediction reference image block to obtain at least one second decoding prediction block, wherein a search location of the motion search is determined by using the motion vector predictor and the first precision; calculate a difference between the first decoding prediction block and each second decoding prediction block, and use a motion vector predictor between the first decoding block and a second decoding prediction block with a smallest difference as a target motion vector predictor of the first decoding block; and perform bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain a third decoding prediction block of the first decoding block; and a decoding unit, configured to: obtain a target decoding prediction block of the first decoding block based on the third decoding prediction block, and decode the first decoding block based on the target decoding prediction block.
26. The apparatus according to claim 25, wherein the prediction motion information comprises forward prediction motion information and backward prediction motion information, the motion vector predictor comprises a forward motion vector predictor and a backward motion vector predictor, and the prediction reference image block comprises a forward prediction reference image block and a backward prediction reference image block.
27. The apparatus according to claim 26, wherein the initial decoding prediction block comprises the forward initial decoding prediction block and the backward initial decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the prediction motion information to obtain the initial decoding prediction block of the first decoding block, the processing unit is specifically configured to: perform forward prediction on the first decoding block based on the forward prediction motion information to obtain the forward initial decoding prediction block of the first decoding block; and perform backward prediction on the first decoding block based on the backward prediction motion information to obtain the backward initial decoding prediction block of the first decoding block.
28. The apparatus according to claim 27, wherein when obtaining the first decoding prediction block of the first decoding block based on the initial decoding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward initial decoding prediction block and the backward initial decoding prediction block to obtain the first decoding prediction block of the first decoding block; or use the forward initial decoding prediction block as the first decoding prediction block of the first decoding block; or use the backward initial decoding prediction block as the first decoding prediction block of the first decoding block.
29. The apparatus according to claim 28, wherein the second decoding prediction block comprises a forward second decoding prediction block and a backward second decoding prediction block, and when performing motion search of the first precision on the prediction reference image block based on the motion vector predictor to obtain the at least one second decoding prediction block, the processing unit is specifically configured to: perform motion search of the first precision on the forward prediction reference image block based on the forward motion vector predictor, and use each found forward decoding prediction block as the forward second decoding prediction block to obtain the at least one second decoding prediction block; and perform motion search of the first precision on the backward prediction reference image block based on the backward motion vector predictor, and use each found backward decoding prediction block as the backward second decoding prediction block to obtain the at least one second decoding prediction block, wherein the first precision comprises integer pixel precision, 1/2 pixel precision, 1/4 pixel precision, or
1/8 pixel precision.
30. The apparatus according to claim 29, wherein the target motion vector predictor comprises a target forward motion vector predictor and a target backward motion vector predictor, and when calculating the difference between the first decoding prediction block and each second decoding prediction block, and using the motion vector predictor between the first decoding block and the second decoding prediction block with a smallest difference as the target motion vector predictor of the first decoding block, the processing unit is specifically configured to: compare differences between the forward second decoding prediction blocks and the first decoding prediction block, and use a target forward motion vector predictor between the first decoding block and a forward second decoding prediction block with a smallest difference as the target motion vector predictor; or compare differences between the backward second decoding prediction blocks and the first decoding prediction block, and use a target backward motion vector predictor between the first decoding block and a backward second decoding prediction block with a smallest difference as the target motion vector predictor.
31. The apparatus according to claim 30, wherein the third decoding prediction block of the first decoding block comprises a forward third decoding prediction block and a backward third decoding prediction block, and when performing bidirectional prediction on the first decoding block based on the target motion vector predictor to obtain the third decoding prediction block of the first decoding block, the processing unit is specifically configured to: perform forward prediction on the first decoding block based on the target forward motion vector predictor to obtain the forward third decoding prediction block of the first decoding block; and perform backward prediction on the first decoding block based on the target backward motion vector predictor to obtain the backward third decoding prediction block of the first decoding block.
32. The apparatus according to claim 31, wherein when obtaining the target decoding prediction block of the first decoding block based on the third decoding prediction block, the processing unit is specifically configured to: perform weighted summation on the forward third decoding prediction block and the backward third decoding prediction block to obtain the target decoding prediction block of the first decoding block; or use the forward third decoding prediction block as the target decoding prediction block of the first decoding block; or use the backward third decoding prediction block as the target decoding prediction block of the first decoding block.
AU2016425069A 2016-09-30 2016-09-30 Method and apparatus for image coding and decoding through inter prediction Active AU2016425069B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/101289 WO2018058622A1 (en) 2016-09-30 2016-09-30 Method and device for image coding and decoding for inter-frame prediction

Publications (2)

Publication Number Publication Date
AU2016425069A1 AU2016425069A1 (en) 2019-04-11
AU2016425069B2 true AU2016425069B2 (en) 2022-03-03

Family

ID=61763050

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2016425069A Active AU2016425069B2 (en) 2016-09-30 2016-09-30 Method and apparatus for image coding and decoding through inter prediction

Country Status (11)

Country Link
US (1) US11039144B2 (en)
EP (1) EP3509304B1 (en)
JP (1) JP6700489B2 (en)
KR (2) KR102322437B1 (en)
CN (1) CN109479143B (en)
AU (1) AU2016425069B2 (en)
BR (1) BR112019005678B1 (en)
MX (1) MX2019003549A (en)
MY (1) MY194555A (en)
RU (1) RU2715010C1 (en)
WO (1) WO2018058622A1 (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866272A (en) * 2018-05-16 2023-03-28 华为技术有限公司 Video coding and decoding method and device
CN110662052B (en) 2018-06-29 2022-07-08 北京字节跳动网络技术有限公司 Updating conditions of a look-up table (LUT)
GB2588531B (en) 2018-06-29 2023-02-01 Beijing Bytedance Network Tech Co Ltd Concept of using one or multiple look up tables to store motion information of previously coded in order and use them to code following blocks
WO2020003282A1 (en) 2018-06-29 2020-01-02 Beijing Bytedance Network Technology Co., Ltd. Managing motion vector predictors for video coding
SG11202011714RA (en) 2018-06-29 2020-12-30 Beijing Bytedance Network Technology Co Ltd Partial/full pruning when adding a hmvp candidate to merge/amvp
JP7328330B2 (en) 2018-06-29 2023-08-16 北京字節跳動網絡技術有限公司 Check Order of Motion Candidates in LUT
CN110662058B (en) 2018-06-29 2023-06-30 北京字节跳动网络技术有限公司 Conditions of use of the lookup table
BR112020024202A2 (en) 2018-06-29 2021-02-17 Beijing Bytedance Network Technology Co., Ltd. method of processing video data, video processing apparatus and non-transitory computer-readable storage and recording media
SG11202013028PA (en) 2018-06-29 2021-01-28 Beijing Bytedance Network Technology Co Ltd Interaction between lut and amvp
CN110677669B (en) 2018-07-02 2021-12-07 北京字节跳动网络技术有限公司 LUT with LIC
BR112021000004A8 (en) * 2018-07-06 2023-02-07 Mediatek Inc INHERITED MOTION INFORMATION TO DECODE A CURRENT ENCODING UNIT IN A VIDEO ENCODING SYSTEM
CN110858794B (en) 2018-08-24 2022-11-11 华为技术有限公司 Multi-frequency band transmission method and device
CN112640468A (en) 2018-09-04 2021-04-09 华为技术有限公司 Reference frame obtaining method and device applied to bidirectional interframe prediction
CN111064961B (en) 2018-09-12 2023-06-09 北京字节跳动网络技术有限公司 Video processing method and device
CN117041592A (en) * 2018-11-08 2023-11-10 Oppo广东移动通信有限公司 Image signal encoding/decoding method and apparatus therefor
CN111263152B (en) * 2018-11-30 2021-06-01 华为技术有限公司 Image coding and decoding method and device for video sequence
KR20240010576A (en) 2019-01-10 2024-01-23 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Invoke of lut updating
WO2020143824A1 (en) 2019-01-13 2020-07-16 Beijing Bytedance Network Technology Co., Ltd. Interaction between lut and shared merge list
WO2020147772A1 (en) 2019-01-16 2020-07-23 Beijing Bytedance Network Technology Co., Ltd. Motion candidates derivation
WO2020192611A1 (en) 2019-03-22 2020-10-01 Beijing Bytedance Network Technology Co., Ltd. Interaction between merge list construction and other tools
JP7303330B2 (en) * 2019-04-28 2023-07-04 北京字節跳動網絡技術有限公司 Symmetric motion vector differential encoding
CN115037933B (en) * 2022-08-09 2022-11-18 浙江大华技术股份有限公司 Method and equipment for inter-frame prediction

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050786A1 (en) * 2004-09-09 2006-03-09 Kabushiki Kaisha Toshiba Moving picture coding apparatus and computer program product
US20140205014A1 (en) * 2011-09-28 2014-07-24 JVC Kenwood Corporation Moving picture coding device, moving picture coding method, moving picture coding program, transmitting device, transmission method and transmission program, and moving picture decoding device, moving picture decoding method, moving picture decoding program, receiving device, reception method and reception program

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5778097A (en) * 1996-03-07 1998-07-07 Intel Corporation Table-driven bi-directional motion estimation using scratch area and offset valves
MXPA03006080A (en) * 2001-11-06 2003-09-10 Matsushita Electric Ind Co Ltd Moving picture coding method and moving picture decoding method.
CN1236624C (en) * 2003-09-04 2006-01-11 上海大学 Quick full pixel movement evaluation method of multiple kinds of modules
EP1578137A2 (en) * 2004-03-17 2005-09-21 Matsushita Electric Industrial Co., Ltd. Moving picture coding apparatus with multistep interpolation process
KR20090008418A (en) 2006-04-28 2009-01-21 가부시키가이샤 엔티티 도코모 Image predictive coding device, image predictive coding method, image predictive coding program, image predictive decoding device, image predictive decoding method and image predictive decoding program
JP2008011158A (en) * 2006-06-29 2008-01-17 Matsushita Electric Ind Co Ltd Method and device for motion vector search
CN100551073C (en) * 2006-12-05 2009-10-14 华为技术有限公司 Decoding method and device, image element interpolation processing method and device
US20110261882A1 (en) 2008-04-11 2011-10-27 Thomson Licensing Methods and apparatus for template matching prediction (tmp) in video encoding and decoding
JP2010028220A (en) 2008-07-15 2010-02-04 Sony Corp Motion vector detecting device, motion vector detecting method, image encoding device, and program
CN101931803B (en) 2009-06-26 2013-01-09 华为技术有限公司 Method, device and equipment for acquiring motion information of video image and template constructing method
CN101860747B (en) * 2010-03-31 2012-05-23 北京大学 Sub-pixel movement estimation system and method
JP5304708B2 (en) * 2010-03-31 2013-10-02 株式会社Jvcケンウッド Moving picture coding apparatus, moving picture coding method, and moving picture coding program
CN106998473B (en) 2010-04-09 2020-03-24 三菱电机株式会社 Moving image encoding device and moving image decoding device
KR20130099242A (en) 2011-01-07 2013-09-05 노키아 코포레이션 Motion prediction in video coding
CN103477637B (en) * 2011-02-10 2017-04-26 太阳专利托管公司 Moving picture encoding method and moving picture encoding device
JP5649523B2 (en) * 2011-06-27 2015-01-07 日本電信電話株式会社 Video encoding method, apparatus, video decoding method, apparatus, and program thereof
US9819963B2 (en) * 2011-07-12 2017-11-14 Electronics And Telecommunications Research Institute Inter prediction method and apparatus for same
KR101624058B1 (en) 2011-10-17 2016-05-24 가부시끼가이샤 도시바 Encoding device and encoding method
US11330284B2 (en) * 2015-03-27 2022-05-10 Qualcomm Incorporated Deriving motion information for sub-blocks in video coding

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060050786A1 (en) * 2004-09-09 2006-03-09 Kabushiki Kaisha Toshiba Moving picture coding apparatus and computer program product
US20140205014A1 (en) * 2011-09-28 2014-07-24 JVC Kenwood Corporation Moving picture coding device, moving picture coding method, moving picture coding program, transmitting device, transmission method and transmission program, and moving picture decoding device, moving picture decoding method, moving picture decoding program, receiving device, reception method and reception program

Also Published As

Publication number Publication date
US11039144B2 (en) 2021-06-15
EP3509304A4 (en) 2019-08-21
EP3509304B1 (en) 2023-11-01
WO2018058622A1 (en) 2018-04-05
US20190230362A1 (en) 2019-07-25
CN109479143B (en) 2020-09-08
JP2019530362A (en) 2019-10-17
AU2016425069A1 (en) 2019-04-11
MY194555A (en) 2022-12-01
KR20190045935A (en) 2019-05-03
KR20210021142A (en) 2021-02-24
KR102219320B1 (en) 2021-02-23
BR112019005678B1 (en) 2023-12-12
KR102322437B1 (en) 2021-11-05
MX2019003549A (en) 2019-08-12
JP6700489B2 (en) 2020-05-27
CN109479143A (en) 2019-03-15
EP3509304A1 (en) 2019-07-10
RU2715010C1 (en) 2020-02-21
BR112019005678A2 (en) 2019-06-11

Similar Documents

Publication Publication Date Title
AU2016425069B2 (en) Method and apparatus for image coding and decoding through inter prediction
KR102228298B1 (en) Video encoding method, video decoding method, and terminal
US20230030845A1 (en) Picture Encoding and Decoding Method and Apparatus for Video Sequence
JP6968228B2 (en) Methods and equipment for image coding and decoding via inter-prediction
JP7388610B2 (en) Video encoding method, video decoding method, and terminal
CN112218073B (en) Video encoding method, decoding method and terminal

Legal Events

Date Code Title Description
DA3 Amendments made section 104

Free format text: THE NATURE OF THE AMENDMENT IS: AMEND THE INVENTION TITLE TO READ METHOD AND APPARATUS FOR IMAGE CODING AND DECODING THROUGH INTER PREDICTION

FGA Letters patent sealed or granted (standard patent)