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 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:
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, setting, as a target prediction motion vector, a motion vector corresponding to a second sampling pixel array with a minimum difference, 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:
A motion vector determining method includes a first matched distortion value between a forward prediction block and a backward prediction block of a current block is calculated. A matched distortion value between a first prediction block and a fifth prediction block, a matched distortion value between a second prediction block and a sixth prediction block, a matched distortion value between a third prediction block and a seventh prediction block, and a matched distortion value between a fourth prediction block and an eighth prediction block are calculated. A target forward prediction block and a target backward prediction block are determined based on a value relationship between the matched distortion values. A target motion vector of the current block is determined based on the target forward prediction block and the target backward prediction block.
Abstract:
A motion vector determining method includes a first matched distortion value between a forward prediction block and a backward prediction block of a current block is calculated. A matched distortion value between a first prediction block and a fifth prediction block, a matched distortion value between a second prediction block and a sixth prediction block, a matched distortion value between a third prediction block and a seventh prediction block, and a matched distortion value between a fourth prediction block and an eighth prediction block are calculated. A target forward prediction block and a target backward prediction block are determined based on a value relationship between the matched distortion values. A target motion vector of the current block is determined based on the target forward prediction block and the target backward prediction block.
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, setting, as a target prediction motion vector, a motion vector corresponding to a second sampling pixel array with a minimum difference, 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:
A motion vector determining method includes a first matched distortion value between a forward prediction block and a backward prediction block of a current block is calculated. A matched distortion value between a first prediction block and a fifth prediction block, a matched distortion value between a second prediction block and a sixth prediction block, a matched distortion value between a third prediction block and a seventh prediction block, and a matched distortion value between a fourth prediction block and an eighth prediction block are calculated. A target forward prediction block and a target backward prediction block are determined based on a value relationship between the matched distortion values. A target motion vector of the current block is determined based on the target forward prediction block and the target backward prediction block.
Abstract:
A video decoding method includes obtaining an index of predicted motion information of a current image block in a candidate predicted motion information list, where the predicted motion information includes reference image information and a motion vector prediction value, and candidate predicted motion information in the candidate predicted motion information list is motion information of an adjacent block of the current image block in time domain or space domain, querying the candidate predicted motion information list based on the index, and using the found candidate predicted motion information as the predicted motion information, determining a correspondence between a motion vector difference and a motion vector prediction value based on the predicted motion information, and obtaining the motion vector difference from the bitstream, and adding the motion vector prediction value and the corresponding motion vector difference based on the correspondence to obtain a motion vector of the current image block.