Abstract:
A method and an apparatus are provided for obtaining a motion vector, and disclose application of the method and the apparatus for obtaining a motion vector in a video coding method and apparatus. The method includes: obtaining a first motion vector from a first motion vector set corresponding to a to-be-processed picture block; obtaining a second motion vector through calculation based on the first motion vector, where there is a preset vector difference between the first motion vector and the second motion vector, and the first motion vector and the second motion vector are different; adding the second motion vector to the first motion vector set to constitute a second motion vector set; and obtaining a target motion vector from the second motion vector set.
Abstract:
A three-dimensional (3D) video encoding method, decoding method, and related apparatus is disclosed. The decoding method may include decoding a video bitstream to obtain a single sample flag bit corresponding to a current image block in a current depth map, performing detection on a first adjacent prediction sampling point and a second adjacent prediction sampling point of the current image block in the current depth map if the single sample flag bit obtained by decoding indicates that a decoding mode corresponding to the current image block is a single depth intra-frame mode (SDM), and constructing a sample candidate set according to results of the detection on the first adjacent prediction sampling point and the second adjacent prediction sampling point, where the sample candidate set includes a first index location and a second index location, decoding the video bitstream to obtain a single sample index flag bit corresponding to the current image block.
Abstract:
A three-dimensional video encoding method, decoding method, and related apparatus is disclosed. The decoding method may include decoding a video bitstream to obtain a single sample flag bit corresponding to a current image block in a current depth map, performing detection on a first adjacent prediction sampling point and a second adjacent prediction sampling point of the current image block in the current depth map if the single sample flag bit obtained by decoding indicates that a decoding mode corresponding to the current image block is a single depth intra-frame mode, and constructing a sample candidate set according to results of the detection on the first adjacent prediction sampling point and the second adjacent prediction sampling point, where the sample candidate set includes a first index location and a second index location, decoding the video bitstream to obtain a single sample index flag bit corresponding to the current image block.
Abstract:
A loop filtering method and apparatus are provided. The method includes: obtaining a first pixel matrix, where a value of a pixel at a corresponding location in the first pixel matrix corresponds to a luminance value of a pixel at a corresponding location in a first picture block; obtaining a second pixel matrix, where a pixel at a corresponding location in the second pixel matrix corresponds to a quantization step value corresponding to the luminance value of the pixel at the corresponding location in the first picture block; performing filtering processing on an input pixel matrix by using a filtering network to obtain an output pixel matrix, where the filtering network is a neural network that has a filtering function and is obtained through training, the output pixel matrix includes a third pixel matrix. Thus, filtering effect can be improved for reconstructed pictures of various quality levels.
Abstract:
A video encoder, a video decoder, and a corresponding method, where the method includes, when a plurality of preset conditions are satisfied, performing bi-directional optical flow (BDOF) processing on a current picture block to obtain a predicted sample value of the current picture block, where the plurality of preset conditions include at least a condition that a height (H) of the current picture block is greater than or equal to 8, a width (W) of the current picture block is greater than or equal to 8, and a product of W and H is greater than 128. Thus encoding/decoding complexity and prediction accuracy can be balanced to some extent.
Abstract:
An inter prediction method and apparatus, and a corresponding encoder and decoder are disclosed. The method includes: obtaining an index value of a length of a motion vector difference of the current picture block; determining target length information from a set of candidate length information based on the index value of the length; obtaining the motion vector difference of the current picture block based on the target length information; determining the motion vector target value of the current picture block based on the motion vector difference of the current picture block and the motion vector predictor of the current picture block; and obtaining a prediction block of the current picture block based on the motion vector target value of the current picture block.
Abstract:
A display method and an electronic device provide icon animation and starting window image decoding that can be performed in parallel. After a launch operation is detected, an application launch animation may start to be displayed, thus reducing waiting latency and improving user experience.
Abstract:
A picture decoding method includes determining motion information of a to-be-decoded block; obtaining a first decoding prediction block of the to-be-decoded block based on the motion information; performing motion search with first precision in the prediction reference picture block to obtain at least two second decoding prediction blocks; performing downsampling on the first decoding prediction block and the at least two second decoding prediction blocks to obtain a first sampling pixel array and at least two second sampling pixel arrays, respectively; calculating a difference between the first sampling pixel array and each of the second sampling pixel arrays, and using, as a target prediction motion vector, a motion vector corresponding to a second sampling pixel array with a minimum difference; and obtaining a target decoding prediction block of the to-be-decoded block based on the target prediction motion vector, and decoding the to-be-decoded block based on the target decoding prediction block.
Abstract:
An inter prediction method includes obtaining predicted motion information of a current image block, where the predicted motion information is used to obtain one or more motion vectors of the current image block, and the motion vectors include a forward MV and a backward MV for a bidirectional inter prediction. The disclosed method further includes determining a motion vector difference for the current image block, and calculating the motion vectors based on the predicted motion information and the motion vector difference, where the motion vector difference is shared by the forward MV and the backward MV.
Abstract:
This application provides a video picture decoding and encoding method and a video picture decoding and encoding apparatus. When it is determined that a merge or skip mode is used, if it is determined through decoding that an MMVD indicator is true, a triangle PU indicator may not be coded. The triangle PU indicator is coded only when it is determined through decoding that the MMVD indicator is false. This reduces a quantity of used coding resources, and can reduce bit overheads of a bitstream.