(HEVC/Research) Optimize framedelay.
(HEVC/Research) Optimize FrameDelayBorder.
(HEVC/Research) Code cleaning.