Fast CU size and prediction mode decision method for HEVC encoder based on spatial features