摘要:
The present invention relates to the field of video image processing, and provides a filtering method and an apparatus, to resolve a problem that subjective quality and objective quality of an image deteriorate because filtering processing cannot be performed on internal blocks of a non-translational motion prediction unit.
摘要:
An image prediction method and apparatus is disclosed. The image prediction method includes: determining, according to information about adjacent image units adjacent to a to-be-processed image unit, whether a set of candidate prediction modes for the to-be-processed image unit includes an affine merge mode, where the affine merge mode indicates that respective predicted images of the to-be-processed image unit and the adjacent image units of the to-be-processed image unit are obtained by using a same affine model; parsing a bitstream to obtain first indication information; determining, in the set of candidate prediction modes, a prediction mode for the to-be-processed image unit according to the first indication information; and determining a predicted image of the to-be-processed image unit according to the prediction mode. The method reduces a bit rate of encoding a prediction mode, thereby improving encoding efficiency.
摘要:
A picture prediction method includes: determining motion vectors of W control points in a current picture block; obtaining motion vectors of P pixel units of the current picture block by using a motion model and the motion vectors of the W control points, where precision of the determined motion vectors of the W control points is 1/n of pixel precision, precision of the motion vector of each of the P pixel units is 1/N of the pixel precision, the motion vector of each of the P pixel units is used to determine a corresponding reference pixel unit in a reference picture of a corresponding pixel unit; and performing interpolation filtering on a pixel of the corresponding reference pixel unit by using an interpolation filter with a phase of Q, to obtain a predicted pixel value of each of the P pixel units.
摘要:
A picture prediction method includes: determining two pixel samples in a current picture block, and determining a candidate motion information unit set corresponding to each of the two pixel samples; determining a merged motion information unit set i including two motion information units; and predicting a pixel value of the current picture block by using an affine motion model and the merged motion information unit set i.
摘要:
An image processing method includes acquiring N pieces of motion information from N adjacent image blocks adjacent to a current image block, where the N adjacent image blocks are in a one-to-one correspondence with the N pieces of motion information, and the N pieces of motion information are in a one-to-one correspondence with the N reference image blocks, determining candidate motion information from the N pieces of motion information according to a preset rule, determining, in the reference image, a location range of a to-be-stored pixel, and storing all pixels in the location range, where the location range covers all pixels of a candidate reference image block, and reading the pixels in the location range, and performing encoding processing on the current image block according to the pixels in the location range.
摘要:
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.
摘要:
Image encoding and decoding methods and related devices are provided. An image encoding and decoding method includes: for a sub-image block obtained by partitioning an image block, determining at least two position parameters, in which the at least two position parameters include a first position parameter and a second position parameter, the first position parameter identifies whether the sub-image block is a rectangle or not a rectangle, and the second position parameter identifies endpoint information of the sub-image block; determining an encoding sequence of the first position parameter and the second position parameter according to a partition manner of the image block; and encoding the at least two position parameters according to the determined encoding sequence.
摘要:
A picture prediction method and a related apparatus are disclosed. A picture prediction method includes: determining K1 pixel samples in a picture block x, and determining a candidate motion information unit set corresponding to each pixel sample in the K1 pixel samples, where the candidate motion information unit set corresponding to each pixel sample includes at least one candidate motion information unit; determining a merged motion information unit set i including K1 motion information units, where each motion information unit in the merged motion information unit set i is selected from at least a part of motion information units in candidate motion information unit sets corresponding to different pixel samples in the K1 pixel samples; and predicting a pixel value of the picture block x by using a non-translational motion model and the merged motion information unit set i.
摘要:
An image encoding method includes: determining N encoded units from adjacent encoded units of a to-be-encoded unit according to a first preset rule, where a motion prediction mode of the N encoded units is the same as that of the to-be-encoded unit; generating an nth motion vector group by using a first preset algorithm and based on a motion vector of an nth encoded unit; determining, from obtained N motion vector groups according to a second preset rule, one motion vector group as an optimal motion vector group; determining a prediction sample value of each sample unit in the to-be-encoded unit by using a second preset algorithm and based on the optimal motion vector group; and encoding a prediction residual of each sample unit and an index identifier of the optimal motion vector group, to obtain a bitstream corresponding to the to-be-encoded unit.
摘要:
A reference frame decoding method includes obtaining a first reference frame, where the first reference frame is a first picture frame on which decoding reconstruction has been performed or a first interpolated picture frame obtained by pixel interpolation on the first picture frame, parsing a bitstream to obtain mapping parameters, determining to-be-determined coefficients of a preset mapping function according to the mapping parameters, obtaining, in the first reference frame according to the mapping function whose to-be-determined coefficients have been determined, a first pixel unit having a mapping relationship with a second pixel unit of a second reference frame, and assigning a pixel value of the first pixel unit to the second pixel unit.