[CELT-dev] question about CELT_SET_COMPLEXITY_REQUEST

Torgeir Hagland torg at gaikai.com
Tue Mar 2 13:46:26 PST 2010


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 


More information about the celt-dev mailing list