aboutsummaryrefslogtreecommitdiffstats
path: root/core/ambdec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove custom stuff for standardChris Robinson2023-05-041-1/+1
|
* Replace al::optional with std::optionalChris Robinson2023-05-041-4/+4
|
* Use macros for the likely/unlikely attributesChris Robinson2023-03-011-1/+1
| | | | | The syntax parser for GCC 8 (and earlier?) fails when these attributes are in certain places.
* clang-tidy cleanups (#800)Rosen Penev2023-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Avoid unnecessary uses of make_optionalChris Robinson2023-01-131-1/+1
|
* Avoid using a macro to wrap standard attributesChris Robinson2022-12-061-1/+1
|
* Use standard likely/unlikely attributes when availableChris Robinson2022-12-051-1/+1
|
* Clear trailing whitespace from the loaded ambdec descriptionChris Robinson2022-09-151-0/+2
|
* Use the correct va_list for the second vsnprintfChris Robinson2022-09-141-1/+1
|
* Use ifstream's wchar_t constructors on WindowsChris Robinson2022-09-121-1/+1
| | | | MinGW seems to have added them a while ago, so that greatly simplifies things.
* Don't pack ambdec coefficientsChris Robinson2022-09-121-4/+3
| | | | | | | | | Tne coefficients are placed as for full 3D ACN handling. The ChanMask just indicates which have potentially useful values. This could be a bit more agressive and clear ChanMask bits for channels that don't contribute to output, so that a decoder the specifies height-related channel bits, but leaves their coefficients all 0, can be handled as 2D. I don't expect many ambdec files to be like that, though.
* Simplify ambdec loadingChris Robinson2022-09-121-236/+156
|
* Ensure coeff_scale is set for ambdec filesChris Robinson2022-09-111-5/+10
|
* Reject ambdec files with higher than third order and FuMa scalingChris Robinson2022-09-111-13/+15
|
* Explicitly define AmbDecConf's destructorChris Robinson2022-02-221-0/+3
| | | | | | GCC complains it can't inline the destructor because it's "unlikely" to be called and would bloat code size, despite being implicitly defined. Technically accurate, but rather annoying since it's not explicitly called or defined.
* Handle spaces in the ambdec descriptionChris Robinson2021-06-241-1/+1
|
* Return an optional for an errorChris Robinson2020-12-251-191/+79
|
* Avoid dynamic vectors in AmbDecConfChris Robinson2020-12-251-15/+68
| | | | Also add a bit more sanity checking
* Move the ambdec loader to coreChris Robinson2020-12-251-0/+434