The present application relates to the technical field of
image processing, and particularly relates to an
image processing method, an electronic device and a readable storage medium, the
image processing method comprises the following steps: fusing and blocking a current frame and a
reference frame to obtain a plurality of to-be-encoded
spatial image blocks, and combining the to-be-encoded
spatial image blocks into a plurality of macroblocks, and configuring a corresponding encoding quantization table and a decoding quantization table for each
macroblock; performing
discrete cosine transform by using a first integer
DCT transform kernel; performing quantization by using the encoding quantization table; performing
entropy encoding and storing into an off-
chip memory; reading a compressed code
stream from the off-
chip memory, performing entropy decoding, and performing
inverse quantization by using the decoding quantization table; performing inverse
discrete cosine transform by using a second integer
DCT transform kernel; performing block recombination to obtain a reconstructed
reference frame, and taking the reconstructed
reference frame as a new reference frame, taking a next frame input as a new current frame, and recycling. The present application can effectively solve the technical problem of
distortion accumulation in the multi-round iteration encoding and decoding process based on
JPEG.