Torgeir Hagland
2010-Mar-02 21:46 UTC
[CELT-dev] question about CELT_SET_COMPLEXITY_REQUEST
looking at the code for celt_encoder_ctl in 0.7.1 I'm confused as to why Complexity is described as a value from 0-10, but the code only appears to have one setting for 0-2 and another setting for 3-10. Is that for future use or am I missing something? case CELT_SET_COMPLEXITY_REQUEST: { int value = va_arg(ap, celt_int32); if (value<0 || value>10) goto bad_arg; if (value<=2) { st->pitch_enabled = 0; st->pitch_available = 0; } else { st->pitch_enabled = 1; if (st->pitch_available<1) st->pitch_available = 1; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20100302/688a24b7/attachment-0002.htm
Gregory Maxwell
2010-Mar-02 22:01 UTC
[CELT-dev] question about CELT_SET_COMPLEXITY_REQUEST
On Tue, Mar 2, 2010 at 4:46 PM, Torgeir Hagland <torg at gaikai.com> wrote:> looking at the code for celt_encoder_ctl in 0.7.1 I'm confused as to why > Complexity is described as a value from 0-10, but the code only appears to > have one setting for 0-2 and another setting for 3-10. Is that for future > use or am I missing something?The additional range is for future use.