google / compare-codecs

Apache License 2.0
49 stars 23 forks source link

Goal-seeking needs to control certain parameters of the codec. #6

Open alvestrand opened 9 years ago

alvestrand commented 9 years ago

The RT mode needs to keep the lookahead parameter at zero to meet its requirements. This means that the goal-seeker needs to know to avoid it - this may fit best if the ConfigurationFixups function of "Codec" takes a "mode" parameter - this requires keeping the name of the mode around, which argues for encapsulating the scoring function into an object having both a mode name and a score function.

An alternative design is to have separate codec names for each mode, which control the underlying parameters.