A rate control algorithm for video coding in augmented reality applications