FastandEfficientAlgorithmsforVideoCompressionandRateControl