The invention provides a coding method and device for weakening a
ringing effect, and the method comprises the steps: S1, comparing the RDCost of a current block in two
modes of division and non-division, carrying out the pre-judgment of the division
modes, and selecting a division scheme with the smaller RDCost; s2, judging whether the
ringing effect does not exist in the current block by utilizing a quantization module of the video
encoder, if so, ending
ringing effect detection, and if not, further judging whether the
ringing effect exists in the current block by utilizing a pixel change condition in an image block of the video
encoder; s3, further judging the
ringing effect of the current block, if the original pixels of the sub-block of the current block are flat, but the reconstructed pixels of the sub-block of the current block are not flat, judging that the
ringing effect occurs in the block, forcibly selecting a division mode, and ending the ringing effect detection; and if all the sub-blocks are traversed and ringing effect detection is not quitted, the division scheme is kept unchanged. The method has the advantages that operation is simple, hardware implementation is facilitated, the overall
compression ratio is not affected, and
subjective quality can be effectively improved.