Towards Prediction Optimality In Video Compression And Networking