Add support for complex int16_t and uint16_t type files #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Simple patch to support int16_t and uint16_t files.
Tested with LimeSDR with a complex int16_t file from broadcast DVB-S signal from Astra satellite.
There is an issue I'm not sure the best way to solve. Due to 16bit nature of the data, the graphs now don't show too much as they are scaled for a byte. There is the option of applying a scale in the cconverter class, but that will cause a truncation of the data (due to int operations) before stuffing it into a float32 - would be better to preserve all the bits, not just the MSB.
Thanks,
Matt