zephyrproject-rtos / liblc3codec

LC3 codec implementation
63 stars 37 forks source link

How to verify the codec is correct or not? #3

Open loginerrort opened 3 years ago

loginerrort commented 3 years ago

Hi @aescolar ,

There is a LC3 sample binary file on BluetoothSIG working group which can be used to verify the correctness.
I found that inputs of the CLI tool are different from this API, this made me hard to verify it.
In this library, the encoder and decoder should pass byte_count argument into run method. That's mean compress a frame duration data into byte_count size. But the CLI tool only can be provided a target bit rate, and it would try to reach the bit rate.
Because of this difference, I don't know how to use that tool decode the data encoded by this API.
Would you have any idea about it?

I found the branch name "sneak_peek". Where can I found the source of it?

Regards

aescolar commented 3 years ago

Hi @loginerrort. The codec was verified by the author. The verification code is not part of this sneak peek branch though. Unfortunately I can't provide you support on how you could verify it on your own.

You can find more background for this repo/branch here: https://github.com/zephyrproject-rtos/liblc3codec/pull/1#issuecomment-814084633