(Hevc/GenerateBS): Optimizing computation.