Text this: Reference frame list optimization algorithm in video coding by quality enhancement of the nearest picture