SSIM-Motivated Rate-Distortion Optimization for Video Coding