-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The DSP library now builds for Apple M1 chips and above on MacOS. * Implemented abs_max2, abs_min2, abs_max3 and abs_min3 functions. * Implemented sign_min, sign_max, sign_minmax functions. * Updated build scripts. * Updated module versions in dependencies.
- Loading branch information
Showing
192 changed files
with
11,106 additions
and
1,853 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2024 Vladimir Sadovnikov <sadko4u@gmail.com> | ||
* | ||
* This file is part of lsp-dsp-lib | ||
* Created on: 10 нояб. 2024 г. | ||
* | ||
* lsp-dsp-lib is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* any later version. | ||
* | ||
* lsp-dsp-lib is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with lsp-dsp-lib. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef LSP_PLUG_IN_DSP_COMMON_PAN_H_ | ||
#define LSP_PLUG_IN_DSP_COMMON_PAN_H_ | ||
|
||
#include <lsp-plug.in/dsp/common/types.h> | ||
|
||
LSP_DSP_LIB_BEGIN_NAMESPACE | ||
|
||
#pragma pack(push, 1) | ||
|
||
/** | ||
* Definition for the panorama calulation function (parallel form) | ||
* | ||
* @param dst destination buffer to store value | ||
* @param l left channel data | ||
* @param r right channel data | ||
* @param dfl default value if it is not possible to compute panorama | ||
* @param count number of samples to process | ||
*/ | ||
typedef void (* LSP_DSP_LIB_TYPE(depan_t))(float *dst, const float *l, const float *r, float dfl, size_t count); | ||
|
||
#pragma pack(pop) | ||
|
||
LSP_DSP_LIB_END_NAMESPACE | ||
|
||
/** | ||
* Calculate the linear pan law panorama position between left and right channels (parallel form): | ||
* pan = abs(R) / (abs(L) + abs(R)) | ||
* | ||
* @param dst destination buffer to store value | ||
* @param l left channel data | ||
* @param r right channel data | ||
* @param dfl default value if it is not possible to compute panorama | ||
* @param count number of samples to process | ||
*/ | ||
LSP_DSP_LIB_SYMBOL(void, depan_lin, float *dst, const float *l, const float *r, float dfl, size_t count); | ||
|
||
/** | ||
* Calculate the equal power pan law (quadratic) panorama position between left and right channels (parallel form): | ||
* pan = R^2 / (L^2 + R^2) | ||
* | ||
* @param dst destination buffer to store value | ||
* @param l left channel data | ||
* @param r right channel data | ||
* @param dfl default value if it is not possible to compute panorama | ||
* @param count number of samples to process | ||
*/ | ||
LSP_DSP_LIB_SYMBOL(void, depan_eqpow, float *dst, const float *l, const float *r, float dfl, size_t count); | ||
|
||
#endif /* LSP_PLUG_IN_DSP_COMMON_PAN_H_ */ |
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.