We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To improve the 8bit quantization in the RTL mode with ½ LSB and round it to the nearest LSB I would suggest to replace the lines
*(data++) = (unsigned char)(((*xi << sample_shift) >> 8) + 128); *(data++) = (unsigned char)(((*xq << sample_shift) >> 8) + 128);
with
*(data++) = (unsigned char)((((*xi << sample_shift) + 0x80) >> 8) + 128); *(data++) = (unsigned char)((((*xq << sample_shift) + 0x80) >> 8) + 128);
or even more optimized
*(data++) = (unsigned char)(((*xi << sample_shift) + 0x8080) >> 8); *(data++) = (unsigned char)(((*xq << sample_shift) + 0x8080) >> 8);
Cheers
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To improve the 8bit quantization in the RTL mode with ½ LSB and round it to the nearest LSB I would suggest to replace the lines
*(data++) = (unsigned char)(((*xi << sample_shift) >> 8) + 128);
*(data++) = (unsigned char)(((*xq << sample_shift) >> 8) + 128);
with
*(data++) = (unsigned char)((((*xi << sample_shift) + 0x80) >> 8) + 128);
*(data++) = (unsigned char)((((*xq << sample_shift) + 0x80) >> 8) + 128);
or even more optimized
*(data++) = (unsigned char)(((*xi << sample_shift) + 0x8080) >> 8);
*(data++) = (unsigned char)(((*xq << sample_shift) + 0x8080) >> 8);
Cheers
The text was updated successfully, but these errors were encountered: