forked from roc-streaming/roc-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roc-streaminggh-608: Allow PCM mapping only between raw and non-raw
This commit removes support for direct PCM mapping between non-raw formats (e.g. int16 <=> int32). Now it's only allowed to map from raw to non-raw, or vice versa, where "raw" format is native-endian 32-bit floats. This change significantly reduces code size (on x86_64/release .o file is reduced from 5 MB to 80 KB), as well as simplifies code generator script. We did not actually use mapping between non-raw formats, except tests, so the code is mostly unaffected. If we'll need that, we can create a pair of mappers, first to map input format to raw format, then to map raw format to output format. Tests and comments are reworked as well.
- Loading branch information
Showing
33 changed files
with
2,733 additions
and
11,694 deletions.
There are no files selected for viewing
10,728 changes: 983 additions & 9,745 deletions
10,728
src/internal_modules/roc_audio/pcm_format.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.