

def test_SuggestTweakIncreasesCq(self):
    codec = vp8_mpeg_1d.Vp8CodecMpeg1dMode()
    videofile = encoder.Videofile('foofile_640_480_30.yuv')
    my_optimizer = optimizer.Optimizer(codec)
    my_encoder = codec.StartEncoder(my_optimizer.context)
    encoding = encoder.Encoding(my_encoder, 500, videofile)
    encoding.result = {
        'bitrate': 1000,
    }
    new_encoding = codec.SuggestTweak(encoding)
    self.assertEqual('63', new_encoding.encoder.parameters.GetValue('key-q'))

dataset/ETHPy150Open google/compare-codecs/lib/vp8_mpeg_1d_unittest.py TestVp8Mpeg1dCodec.test_SuggestTweakIncreasesCq/original