<s> """<STR_LIT>""" <EOL> import encoder <EOL> import vp8_mpeg <EOL> class Vp8CodecMpeg1dMode ( vp8_mpeg . Vp8CodecMpegMode ) : <EOL> def __init__ ( self , name = '<STR_LIT>' ) : <EOL> super ( Vp8CodecMpeg1dMode , self ) . __init__ ( name ) <EOL> self . option_set = encoder . OptionSet ( <EOL> encoder . IntegerOption ( '<STR_LIT>' , <NUM_LIT:0> , <NUM_LIT> ) . Mandatory ( ) , <EOL> encoder . DummyOption ( '<STR_LIT>' ) , <EOL> encoder . DummyOption ( '<STR_LIT>' ) , <EOL> ) <EOL> def ConfigurationFixups ( self , config ) : <EOL> """<STR_LIT>""" <EOL> key_q_value = config . GetValue ( '<STR_LIT>' ) <EOL> fixed_q = float ( key_q_value ) * <NUM_LIT> <EOL> gold_q = float ( fixed_q ) / <NUM_LIT> <EOL> if fixed_q > <NUM_LIT> : <EOL> fixed_q = <NUM_LIT> <EOL> if gold_q > <NUM_LIT> : <EOL> gold_q = <NUM_LIT> <EOL> config = config . ChangeValue ( '<STR_LIT>' , str ( int ( gold_q ) ) ) <EOL> config = config . ChangeValue ( '<STR_LIT>' , str ( int ( fixed_q ) ) ) <EOL> return config <EOL> def SuggestTweak ( self , encoding ) : <EOL> """<STR_LIT>""" <EOL> if not encoding . result : <EOL> return None <EOL> parameters = self . _SuggestTweakToName ( encoding , '<STR_LIT>' ) <EOL> if parameters : <EOL> return encoder . Encoding ( encoder . Encoder ( encoding . context , parameters ) , <EOL> encoding . bitrate , encoding . videofile ) <EOL> return None </s>
