The invention provides a coding method for weakening
chromaticity smear. The coding method comprises the following steps: S0, inputting a 32 * 32 block or a 16 * 16 block or an 8 * 8 block; s1, motion judgment; s2, judging whether the block is a motion block- If yes, the step S3 is carried out, and if not, the process is ended; s3, traversing the coeff of the non-
skip mode; s4, judging whether coeff is not all 0- If yes, the step S5 is carried out, and if not, the step S6 is carried out; s5, calculating the sad of each 4 * 4 block of the
skip mode recon and the non-
skip mode recon of the uv component; obtaining the maximum value sadmax of the uv component sad; determining whether sadmax > = Recsadthrd0- If yes, forbidding is carried out, the skip is disable, and the non-skip is disable; if not, further judging whether sadmax is greater than or equal to recsadthrd1-or not If yes, forbidding is carried out, and skip: disable is carried out; if not, ending; s6, calculating sad of each 4 * 4 block raw and recon of the uv component; obtaining the maximum value sadmax of the uv component sad; determining whether sadmax > = rawsadthrd0- If yes, forbidding is carried out, the skip is disable, and the non-skip is disable; and if not, ending.