Efficient bit allocation and CTU level rate control for High Efficiency Video Coding