Abstract:
An encoding method includes: encoding transform coefficients of a transform coefficient block according to a predetermined scan order, and encoding a set number of transform coefficients in each group until a last group of the transform coefficient block is encoded; storing an obtained map of non-zero transform coefficients, absolute values of transform coefficients, and positive and negative signs of non-zero transform coefficients; when the last group is being encoded, encoding the stored map of non-zero transform coefficients and the map of non-zero transform coefficients encoded in the last group into a bit stream; and encoding the stored absolute values of transform coefficients and positive and negative signs of non-zero transform coefficients and the absolute values of transform coefficients and positive and negative signs of non-zero transform coefficients encoded in the last group into the bit stream.
Abstract:
The present disclosure provides a method and an apparatus for rounding a coordinate value of a non-integer pixel position motion vector. The method includes: rounding a coordinate value of a non-integer pixel position motion vector, which includes: for each dimension of coordinates of the non-integer pixel position motion vector, when a coordinate in the dimension is a non-integer pixel position, rounding the coordinate value of the non-integer pixel position motion vector in the dimension to one of integer pixel coordinate positions A and B if distances from the coordinate of the non-integer pixel position motion vector in the dimension to the integer pixel coordinate positions A and B adjacent to the non-integer pixel position in the dimension are the same, where an integer pixel coordinate position is determined by a sign of the coordinate value of the non-integer pixel position motion vector in the dimension.
Abstract:
An encoding method, a decoding method, an encoding apparatus, a decoding apparatus, for a video image. The encoding method includes: determining an optimal merged neighboring block for a current block based on a motion vector merging technology; determining, based a prediction direction of the optimal merged neighboring block, a motion vector derivation mode that needs to be used by a decoder; correcting a motion vector of the current block based on the motion vector derivation mode; and determining a residual between a predicted value and an original value of the current block based on the corrected motion vector, thereby encoding the current block. According to the technical solutions, a more accurate predicted value is obtained by correcting the motion vector, and a smaller residual is generated.
Abstract:
The present disclosure provides a method and an apparatus for rounding a coordinate value of a non-integer pixel position motion vector. The method includes: rounding a coordinate value of a non-integer pixel position motion vector, which includes: for each dimension of coordinates of the non-integer pixel position motion vector, when a coordinate in the dimension is a non-integer pixel position, rounding the coordinate value of the non-integer pixel position motion vector in the dimension to one of integer pixel coordinate positions A and B if distances from the coordinate of the non-integer pixel position motion vector in the dimension to the integer pixel coordinate positions A and B adjacent to the non-integer pixel position in the dimension are the same, where an integer pixel coordinate position is determined by a sign of the coordinate value of the non-integer pixel position motion vector in the dimension.
Abstract:
Embodiments of the present invention provide an encoding method, a decoding method, an encoding apparatus, a decoding apparatus, for a video image. The encoding method includes: determining an optimal integrated neighboring block for a current block based on a motion vector integration technology; determining, based a prediction direction of the optimal integrated neighboring block, a motion vector derivation mode that needs to be used by a decoder; correcting a motion vector of the current block based on the motion vector derivation mode; and determining a residual between a predicted value and an original value of the current block based on the corrected motion vector, thereby encoding the current block. According to the technical solutions, a more accurate predicted value is obtained by correcting the motion vector, and a smaller residual is generated.
Abstract:
Provided herein are an encoding method, a decoding method, an encoding apparatus, a decoding apparatus, for a video image. The encoding method includes: determining an optimal integrated neighboring block for a current block based on a motion vector integration technology; determining, based a prediction direction of the optimal integrated neighboring block, a motion vector derivation mode that needs to be used by a decoder; correcting a motion vector of the current block based on the motion vector derivation mode; and determining a residual between a predicted value and an original value of the current block based on the corrected motion vector, thereby encoding the current block. According to the technical solutions, a more accurate predicted value is obtained by correcting the motion vector, and a smaller residual is generated.
Abstract:
Embodiments of the present invention provide an encoding method, a decoding method, an encoding apparatus, a decoding apparatus, for a video image. The encoding method includes: determining an optimal integrated neighboring block for a current block based on a motion vector integration technology; determining, based a prediction direction of the optimal integrated neighboring block, a motion vector derivation mode that needs to be used by a decoder; correcting a motion vector of the current block based on the motion vector derivation mode; and determining a residual between a predicted value and an original value of the current block based on the corrected motion vector, thereby encoding the current block. According to the technical solutions, a more accurate predicted value is obtained by correcting the motion vector, and a smaller residual is generated.
Abstract:
A method and device for generating a predicted value of image to generate a predicted value of a current block during image encoding or decoding is disclosed, where the method includes determining a searching scope, wherein a plurality of motion vectors are included in the searching scope, performing up-sampling interpolations on first reference blocks corresponding to the motion vector in the searching scope, in a reference image of the current block using a first filter to obtain up-sampled first reference blocks, obtaining, using the up-sampled first reference blocks, at least one candidate motion vector corresponding to the current block, performing up-sampling interpolations on second reference blocks, corresponding to the at least one candidate motion vector, in the reference image of the current block using a second filter to obtain up-sampled second reference blocks, combining the up-sampled second reference blocks to obtain a predicted value of the current block.
Abstract:
A method and device for generating a predicted value of image that are mostly used to generate a predicted value of a current block during image encoding or decoding. The method includes: determining a searching scope, wherein multiple motion vectors are included in the searching scope; performing up-sampling interpolations on first reference blocks, corresponding to the motion vector in the searching scope, in a reference image of the current block by using a first filter to obtain up-sampled first reference blocks; by using the up-sampled first reference blocks, obtaining at least one candidate motion vector corresponding to the current block; performing up-sampling interpolations on second reference blocks, corresponding to the at least one candidate motion vector, in the reference image of the current block by using a second filter to obtain up-sampled second reference blocks; combining the up-sampled second reference blocks to obtain a predicted value of the current block.
Abstract:
Embodiments of the present invention provide a motion prediction or compensation method during a video coding and decoding process. A motion prediction or compensation method provided in the embodiments of the present invention includes: acquiring a candidate motion vector set; conducting a refined search for an optimal motion vector based on information of the candidate motion vector set; and performing motion prediction or compensation by using the motion vector acquired by the refined search. This improves coding performance and meanwhile maintains reasonable complexity.