CPC H04N 19/625 (2014.11) [H04N 19/119 (2014.11); H04N 19/136 (2014.11); H04N 19/182 (2014.11); H04N 19/186 (2014.11); H04N 19/423 (2014.11)] | 20 Claims |
1. A data processing method for image compression, comprising:
segmenting an image to be compressed into a plurality of image matrices, and sequentially performing first matrix calculation on elements of the image matrices to obtain first intermediate matrices;
configuring a storage space size according to a resolution and pixel component depth of the image to be compressed, configuring storage addresses of the first intermediate matrices according to a number of the first intermediate matrices, and storing the first intermediate matrices;
reading the first intermediate matrices, performing second matrix calculation on elements of the first intermediate matrices and elements of a preset conversion matrix to obtain second intermediate matrices, and performing third matrix calculation on elements of the second intermediate matrices and the elements of the preset conversion matrix to obtain third intermediate matrices; and
performing fourth matrix calculation on the preset conversion matrix and the third intermediate matrices to obtain result matrices, and encoding the result matrices to obtain a compressed image.
|