Abstract:
An intra-frame encoding method, an intra-frame decoding method, an encoder, and a decoder, where the intra-frame encoding method includes obtaining reference pixel values of a current picture block obtaining a predicted value of a first-type pixel in the current picture block according to the reference pixel values of the current picture block using an intra-frame prediction algorithm, obtaining residual values of the first-type pixel, obtaining transform coefficients according to the residual values of the first-type pixel, quantizing the transform coefficients, reconstructing the first-type pixel according to the quantized transform coefficients and the predicted value of the first-type pixel, and obtaining a reconstructed value of the second-type pixel according to the reconstructed value of the first-type pixel using an interpolation method. Hence, flexible encoding can be implemented, and encoding efficiency can be improved.
Abstract:
Embodiments of this application provide a motion-compensated prediction method which includes determining a location that is of an initial reference pixel of a current pixel and that is in a reference image, where the current pixel is located in a first sub-image in the current image; when the initial reference pixel is located outside a second sub-image that is in the reference image and that is at a location corresponding to the first sub-image, determining, based on the location of the initial reference pixel, a location that is of a target reference pixel of the current pixel and that is in the reference image; and determining a prediction value of a pixel value of the current pixel based on a pixel value of the target reference pixel and/or a pixel value of a neighboring pixel of the target reference pixel.
Abstract:
An image processing method and apparatus includes transforming a first image to obtain a first transform coefficient set; transforming a second image, or transforming a difference image between the first image and a second image, to obtain a second transform coefficient set; selecting a first group of transform coefficients from the first transform coefficient set according to magnitudes of transform coefficients in the first transform coefficient set, where magnitudes of transform coefficients in the first group of transform coefficients meet a preset threshold condition; determining an image difference between the first image and the second image according to the first group of transform coefficients and the second transform coefficient set; and processing the first image and the second image according to the image difference.
Abstract:
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.
Abstract:
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.
Abstract:
A unit size of a to-be-processed unit corresponding to a first transform coefficient set is determined using division information. Then, a quantization regulation factor for the first transform coefficient set is determined according to a first preset algorithm and the unit size of the to-be-processed unit, and with the first preset algorithm, the quantization regulation factor decreases progressively with the size of the to-be-processed unit. Dequantization processing is performed on a transform coefficient in the first transform coefficient set according to a second preset algorithm using the quantization regulation factor. Therefore, a decoding device adaptively determines the quantization regulation factor for the first transform coefficient set according to the unit size of the to-be-processed unit, and then performs dequantization processing on the transform coefficient in the first transform coefficient set using the determined quantization regulation factor.
Abstract:
An intra-frame encoding method, an intra-frame decoding method, an encoder, and a decoder, where the intra-frame encoding method includes obtaining reference pixel values of a current picture block obtaining a predicted value of a first-type pixel in the current picture block according to the reference pixel values of the current picture block using an intra-frame prediction algorithm, obtaining residual values of the first-type pixel, obtaining transform coefficients according to the residual values of the first-type pixel, quantizing the transform coefficients, reconstructing the first-type pixel according to the quantized transform coefficients and the predicted value of the first-type pixel, and obtaining a reconstructed value of the second-type pixel according to the reconstructed value of the first-type pixel using an interpolation method. Hence, flexible encoding can be implemented, and encoding efficiency can be improved.
Abstract:
An image processing method and apparatus includes transforming a first image to obtain a first transform coefficient set; transforming a second image, or transforming a difference image between the first image and a second image, to obtain a second transform coefficient set; selecting a first group of transform coefficients from the first transform coefficient set according to magnitudes of transform coefficients in the first transform coefficient set, where magnitudes of transform coefficients in the first group of transform coefficients meet a preset threshold condition; determining an image difference between the first image and the second image according to the first group of transform coefficients and the second transform coefficient set; and processing the first image and the second image according to the image difference.
Abstract:
An intra-frame decoding method includes obtaining, from a video code stream, prediction mode information of a first signal component of a current block; determining a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of a linear model above (LMA) mode and a linear model left (LML) mode; obtaining a predicted value of a first signal component sampling point of the current block; and obtaining a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.
Abstract:
Embodiments of the present invention provide an encoding or decoding method and apparatus. The method includes: extracting first information in a bitstream; determining a chroma component intra prediction mode according to the first information; when the chroma component intra prediction mode cannot be determined according to the first information, extracting second information in the bitstream; and determining the chroma component intra prediction mode according to the second information, where the first information includes information for indicating whether the chroma component intra prediction mode is a DM mode or an LM mode, the second information is used to indicate a remaining mode as the chroma component intra prediction mode, and the remaining mode is one of available chroma component intra prediction modes other than a mode that may be determined according to the first information.