finish encoder's intra prediction