[Speex-dev] Determine number of 20ms frames in packet - without decoding

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Tue Feb 19 15:23:09 PST 2008



Alexander Chemeris wrote:
> On 2/16/08, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:
>>> Oh, you're right, inband handling is different, but it's a matter of one
>>> flag, passed to functioin. Probably not that much to keep code DRY.
>> Well, let's first merge your code and then we'll see about possible
>> simplifications.
> 
> Waiting for your decision ;)
> I guess you stopped on the fact you need to check my statement
> about wb_skip_table?

Oh, your table looked fine. I think it's mine that was wrong for the
"null mode" (which nobody ever uses I guess!).

> It would be good to define - it is very misleading for newcomers
> as it is now. And I would like to say, that from user point of view
> "frame" meaning all "layers" is natural, because most of users
> are not aware of any "layers" - they want to operate with encoded
> packet as a whole and do not think of internals. Actually, I've got
> some idea about "layers" only when was forced to write sample
> number calculation code.

Well, turns out I use frame size for both meanings -- which normally
isn't a problem because few people are directly aware of the "layers" in
the first place.

> Sure. But in SDP you specify mode and not bitrate. ;) So I want
> to operate with the same things as in SDP.

I see. BTW, you can ask the full bit-rate to the encoder or decoder.
It's only the mode that give you the layer's bit-rate (which we might
want to change).

	Jean-Marc


More information about the Speex-dev mailing list