factor out computation of intra-pred-mode candidates list