The invention discloses an intra-frame coding method based on HEVC. The method includes the steps that first, the sizes of the left bock, the upper left block and the upper block of a current
coding block are acquired, if the sizes are all two or three, the size of the current
coding block is set to be two or three, and the third step is executed, or else the second step is executed; second, according to probability, the number of
modes in an RMD candidate
queue is reduced; third, if the size of a predicted block is 32*32 or 16*16, the fourth step is executed, or else the fifth step is executed; fourth, RMD is performed, and the ninth step is skipped to; fifth, the
degree of similarity of the RMD candidate
queue to a candidate
queue of a parent predicted block is judged, if the RMD candidate queue is similar to the candidate queue of the parent predicted block, the sixth step is executed, or else the seventh step is executed; sixth, the optimal mode of the parent predicted block serves as the optimal mode of the current predicted block, and the ninth step is executed; seventh, mode
filtration is performed on the RMD candidate queue; eighth, the processed RMD candidate queue is grouped; ninth, RDO is performed.