Search

CN-119031142-B - Angular mode inter prediction method, encoder, and storage medium

CN119031142BCN 119031142 BCN119031142 BCN 119031142BCN-119031142-B

Abstract

The application discloses an angle mode inter-frame prediction method and a related device. The method comprises the steps of constructing a candidate adjacent block list for a current block, wherein the candidate adjacent block list comprises adjacent blocks of the current block in a plurality of angle directions, the coded adjacent blocks adopting inter-frame prediction are available adjacent blocks, the rest adjacent blocks are unavailable adjacent blocks, motion information is set for the unavailable adjacent blocks, motion information check is carried out on the adjacent blocks in each angle direction, the angle direction of the check is an effective angle direction, motion information of unavailable adjacent blocks in the effective angle direction is modified by utilizing motion information of reference blocks of unavailable adjacent blocks in the effective angle direction, and a predicted value of the current block is calculated by utilizing motion information of available adjacent blocks and/or unavailable adjacent blocks in each effective angle direction. By the method, the computing overhead in the encoding process can be reduced.

Inventors

  • ZHAN CHUNMEI
  • FANG RUIDONG
  • JIANG DONG
  • LIN JUCAI
  • YIN JUN

Assignees

  • 浙江大华技术股份有限公司

Dates

Publication Date
20260508
Application Date
20200720

Claims (15)

  1. 1. An angular mode inter prediction method, comprising: constructing a candidate adjacent block list for a current block, wherein the candidate adjacent block list comprises adjacent blocks of the current block in a plurality of angle directions, wherein available adjacent blocks are coded adjacent blocks adopting inter-frame prediction, and the rest adjacent blocks are unavailable adjacent blocks; setting motion information of unavailable adjacent blocks; performing motion information duplicate checking on the adjacent blocks in each angle direction, wherein the angle direction through which the duplicate checking passes is an effective angle direction; filling the effective angle direction into an angle mode list to obtain an angle mode index of the effective angle direction; Modifying the motion information of the unavailable adjacent block by utilizing the motion information of the reference block of the unavailable adjacent block, wherein the reference block of the unavailable adjacent block comprises a previous adjacent block and/or a next adjacent block of the unavailable adjacent block; and calculating the predicted value of the current block by utilizing the motion information of the available adjacent blocks and/or the unavailable adjacent blocks in the effective angle direction.
  2. 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, The value range of the angle mode index is 0-4.
  3. 3. The method of claim 1, wherein the current block includes an angle mode flag in a bitstream, the angle mode flag indicating whether the current block adopts the angle mode inter prediction.
  4. 4. The method of claim 1, wherein the step of determining the position of the substrate comprises, The motion information searching for the adjacent blocks in each angle direction comprises the following steps: and selecting at least one pair of adjacent blocks in each angle direction according to the size of the current block to check the motion information.
  5. 5. The method according to claim 1, wherein calculating a predicted value of the current block using motion information of available neighboring blocks and/or unavailable neighboring blocks in the effective angular direction comprises: the current block is divided into a plurality of sub-blocks, motion compensation is carried out by utilizing motion information of a corresponding adjacent block of each sub-block in an effective angle direction, a predicted value of each sub-block is obtained, and predicted values of all sub-blocks of the current block form the predicted value of the current block.
  6. 6. The method of claim 5, wherein the performing motion compensation using motion information of a corresponding neighboring block of each sub-block in an effective angular direction to obtain a predicted value of each sub-block comprises: Correcting the first predicted value of each sub-block by using a plurality of corrected motion vectors to obtain a plurality of second predicted values of each sub-block, wherein the first predicted value of each sub-block is obtained by performing motion compensation by using the motion information of each sub-block, and the motion information of each sub-block is obtained by using the motion information of the corresponding adjacent block of each sub-block in the effective angle direction; Determining a final corrected motion vector of each sub-block based on the corrected motion vector corresponding to the second predicted value with the minimum evaluation index of each sub-block; correcting by utilizing the final corrected motion vector of each sub-block to obtain a corrected motion vector; and determining a predicted value of each sub-block by using the modified motion vector.
  7. 7. The method according to claim 6, wherein the corrected motion vector includes a forward corrected motion vector and a backward corrected motion vector, the second predicted value includes a forward second predicted value and a backward second predicted value, the forward second predicted value is a pixel value of a second predicted block to which motion information including a corrected forward motion vector is directed, the corrected forward motion vector is corrected for a forward motion vector of a sub-block using the forward corrected motion vector, the backward second predicted value is a pixel value of a second predicted block to which motion information including a corrected backward motion vector is directed, the corrected backward motion vector is corrected for a backward motion vector of a sub-block using the backward corrected motion vector; the determining the final corrected motion vector of each sub-block based on the corrected motion vector corresponding to the second predicted value with the minimum evaluation index of each sub-block comprises: Based on the absolute error and an algorithm, acquiring an evaluation index between a forward second predicted value and a backward second predicted value of each corrected motion vector of each sub-block; and determining a final corrected motion vector of the sub-block based on the corrected motion vectors corresponding to the pair of forward second predicted values and the backward second predicted values with the minimum evaluation index.
  8. 8. The method of claim 7, wherein each set of corresponding forward and backward modified motion vectors are equal in size, opposite in direction, and/or, The predicted value of the sub-block is the average value of the forward predicted value and the backward predicted value of the sub-block.
  9. 9. The method of claim 1, wherein modifying the motion information of the unavailable neighboring block using the motion information of the reference block of the unavailable neighboring block, further comprises: and setting the motion information of the unavailable neighboring block as an initial value.
  10. 10. The method of claim 1, wherein all of the neighboring blocks have the same size and are smaller than the current block, and/or wherein the neighboring blocks are located on a left or upper side of the current block.
  11. 11. The method of any one of claims 1-10, wherein the plurality of angular directions includes at least two of horizontal, vertical, horizontal up, horizontal down, and vertical to the right.
  12. 12. An angular mode inter prediction apparatus, comprising: A construction module, configured to construct a candidate neighboring block list for a current block, where the candidate neighboring block list includes neighboring blocks of the current block in multiple angular directions, available neighboring blocks are encoded neighboring blocks that use inter prediction, and remaining neighboring blocks are unavailable neighboring blocks; the weight checking module is used for checking the weight of the motion information of the adjacent blocks in each angle direction, and the angle direction through which the checked weight passes is an effective angle direction; The setting module is used for setting the motion information of unavailable adjacent blocks; the filling module is used for filling the effective angle direction into an angle mode list to obtain an angle mode index of the effective angle direction; The modification module is used for modifying the motion information of the unavailable adjacent block by utilizing the motion information of the reference block of the unavailable adjacent block, wherein the reference block of the unavailable adjacent block comprises a previous adjacent block and/or a next adjacent block of the unavailable adjacent block; and the calculating module is used for calculating the predicted value of the current block by utilizing the motion information of the available adjacent blocks and/or the unavailable adjacent blocks in the effective angle direction.
  13. 13. An encoder comprising a processor, a memory coupled to the processor, wherein, The memory stores program instructions; The processor is configured to execute program instructions stored in the memory to implement the method of any one of claims 1-11.
  14. 14. A storage medium storing program instructions which, when executed by a processor, implement the method of any one of claims 1-11.
  15. 15. An electronic device comprising the encoder of claim 13.

Description

Angular mode inter prediction method, encoder, and storage medium Technical Field The present application relates to the field of video coding technologies, and in particular, to an angle mode inter prediction method, an encoder, and a storage medium. Background The video can be compressed by the video coding technology, so that the data volume of the video is reduced, the network bandwidth in the video transmission process is reduced, and the storage space is reduced. Among other things, video coding modes may include inter-prediction mode and intra-prediction mode prediction. Taking an inter-frame prediction mode as an example, inter-frame prediction is to predict the information of the current frame by using many highly relevant redundant information existing in the reference frame. Among them, the inter Prediction mode may be classified into various types, such as an inter motion vector angle Prediction mode (MVAP, motionVectorAngle Prediction), a temporal motion vector Prediction mode, a spatial motion vector Prediction mode, a historical motion vector motion mode, and the like. Taking an inter-frame motion vector angle prediction mode as an example, the inter-frame motion vector angle prediction mode may also be referred to as angle mode inter-frame prediction, i.e., inter-frame motion vector angle prediction, that is, motion information of neighboring blocks in multiple angle directions of a current block (a block to be predicted in a current frame) is respectively taken as motion information of the current block, rate distortion cost of the current block when motion information of neighboring blocks in different angle directions is respectively calculated as motion information of the current block, and finally motion information of neighboring blocks in an angle direction with the minimum corresponding rate distortion cost is taken as motion information of the current block, so that a predicted value of the current block is obtained through the motion information of the current block. However, the existing angle mode inter prediction requires a large computational overhead. Disclosure of Invention The application provides an angle mode inter-frame prediction method, an encoder and a storage medium, which can solve the problem of high calculation cost required by the existing angle mode inter-frame prediction. The technical scheme includes that an angle mode inter prediction method is provided, the method comprises the steps of constructing a candidate adjacent block list for a current block, wherein the candidate adjacent block list comprises adjacent blocks of the current block in multiple angle directions, the coded adjacent blocks adopting inter prediction are available adjacent blocks, the rest adjacent blocks are unavailable adjacent blocks, setting motion information for the unavailable adjacent blocks, conducting motion information weight checking on the adjacent blocks in all the angle directions, enabling the angle directions of the weight checking to be effective angle directions, modifying motion information of the unavailable adjacent blocks in the effective angle directions by means of motion information of reference blocks of the unavailable adjacent blocks in the effective angle directions, and calculating prediction values of the current block by means of motion information of the available adjacent blocks and/or the unavailable adjacent blocks in each effective angle direction. In order to solve the technical problems, the application provides another technical scheme of an angle mode inter prediction device, which comprises a construction module, a reconstruction module, a modification module and a calculation module, wherein the construction module is used for constructing a candidate neighbor block list for a current block, the candidate neighbor block list comprises neighbor blocks of the current block in a plurality of angle directions, the encoded neighbor blocks adopting inter prediction are available neighbor blocks, the rest neighbor blocks are unavailable neighbor blocks, the setting module is used for setting motion information for the unavailable neighbor blocks, the reconstruction module is used for carrying out motion information reconstruction on the neighbor blocks in each angle direction, the angle direction through the reconstruction is an effective angle direction, the modification module is used for modifying the motion information of the unavailable neighbor blocks in the effective angle direction by utilizing the motion information of a reference block of the unavailable neighbor blocks in the effective angle direction, and the calculation module is used for calculating the prediction value of the current block by utilizing the motion information of the available neighbor blocks and/or the unavailable neighbor blocks in each effective angle direction. In order to solve the technical problems, the application provides another technical scheme of the angle mode i