Compressing, coding and quantizing method
A quantization method and compression coding technology, applied in image communication, digital video signal modification, electrical components, etc., can solve the problems of lack of compression, a large number of additional bits, and the inability to further reduce quantization loss, so as to facilitate transmission and reduce transmission The effect of the number of bits
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] See figure 1 , figure 1 It is a schematic flowchart of a method for compression encoding and quantization provided by an embodiment of the present invention.
[0040] A compression encoding quantization method, comprising the following steps:
[0041] (a) setting quantized macroblocks;
[0042] (b) obtaining the prediction residual and the first quantization parameter of each pixel in the macroblock;
[0043] (c) calculating SAD1 and SAD2 respectively according to the prediction residual and the first quantization parameter;
[0044] (d) Compare the size of the SAD1 and the SAD2, if the SAD1≤SAD2, then complete the coding compression quantization according to the first quantization method corresponding to the SAD1, otherwise, according to the second quantization method corresponding to the SAD2 The method accomplishes the encoding compression quantization.
[0045] In a specific embodiment, the first quantization method is used to calculate the SAD1; the second qua...
Embodiment 2
[0048] see again figure 1 . On the basis of the foregoing embodiments, this embodiment focuses on a detailed description of a compression encoding and quantization method.
[0049] (S100) Quantized macroblocks are set.
[0050] The quantization unit is set to be a macroblock MB, that is, one macroblock MB adopts a unified first quantization parameter QP, and the first quantization parameter QP is given by code rate control.
[0051] In a specific embodiment, QP is set to be 2.
[0052] Set the size of the macroblock MB to 8*1.
[0053] (S101) Obtain the prediction residual of each pixel in the macroblock MB.
[0054] In a specific embodiment, the prediction residual Res of all pixels in the macroblock MB is {12, 13, 15, 18, 20, 23, 15, 10}.
[0055] (S102) Obtain a first quantization residual according to the prediction residual and the first quantization parameter.
[0056] The calculation formula of the first quantization residual is:
[0057] Resqp 1i =Res i >>QP ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


