diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-08-19 20:56:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 20:56:24 +0200 |
commit | 35306a812bab3de099db1539ddae546ee3ffebed (patch) | |
tree | 27d5c3909050a7b14d48adc55c32f7b887c41625 /src/libFLAC/include/private/lpc.h | |
parent | 6d2492d346b929e32d04050cc8c24b7427a26042 (diff) | |
download | flac-35306a812bab3de099db1539ddae546ee3ffebed.tar.gz |
Introduce subdivide_tukey apodization
Subdivide_tukey is intended to replace partial_tukey and
punchout_tukey. It works in rougly the same way, but uses a more
efficient algorithm, recyling more data.
subdivide_tukey has 2 arguments, of which 1 is optional. The
first states the maximum number of parts the signal has to be
split up in, the second is the tukey parameter, divided by the
max num of parts.
subdivide_tukey(3) analyses audio with an unsplit block, with the
block split in 2 and split in 3. Here the default p of 0.5 applies
to the smallest parts, so the unsplit block effectively has a p of
0.5/3. subdivide_tukey(3/2e-1) does the same but with p of 0.2.
Diffstat (limited to 'src/libFLAC/include/private/lpc.h')
-rw-r--r-- | src/libFLAC/include/private/lpc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libFLAC/include/private/lpc.h b/src/libFLAC/include/private/lpc.h index 470dfcb8..5212b35e 100644 --- a/src/libFLAC/include/private/lpc.h +++ b/src/libFLAC/include/private/lpc.h @@ -56,6 +56,8 @@ */ void FLAC__lpc_window_data(const FLAC__int32 in[], const FLAC__real window[], FLAC__real out[], uint32_t data_len); void FLAC__lpc_window_data_wide(const FLAC__int64 in[], const FLAC__real window[], FLAC__real out[], uint32_t data_len); +void FLAC__lpc_window_data_partial(const FLAC__int32 in[], const FLAC__real window[], FLAC__real out[], uint32_t data_len, uint32_t part_size, uint32_t data_shift); +void FLAC__lpc_window_data_partial_wide(const FLAC__int64 in[], const FLAC__real window[], FLAC__real out[], uint32_t data_len, uint32_t part_size, uint32_t data_shift); /* * FLAC__lpc_compute_autocorrelation() |