Rate-distortion optimization for video compression | Synapse