#include "celt.h"
#include "opus_private.h"
Go to the source code of this file.
|
void | tonality_analysis_init (TonalityAnalysisState *analysis) |
|
void | tonality_analysis_reset (TonalityAnalysisState *analysis) |
|
void | tonality_get_info (TonalityAnalysisState *tonal, AnalysisInfo *info_out, int len) |
|
void | run_analysis (TonalityAnalysisState *analysis, const CELTMode *celt_mode, const void *analysis_pcm, int analysis_frame_size, int frame_size, int c1, int c2, int C, opus_int32 Fs, int lsb_depth, downmix_func downmix, AnalysisInfo *analysis_info) |
|
◆ ANALYSIS_BUF_SIZE
#define ANALYSIS_BUF_SIZE 720 /* 15 ms at 48 kHz */ |
◆ DETECT_SIZE
◆ NB_FRAMES
◆ NB_TBANDS
◆ NB_TOT_BANDS
◆ TONALITY_ANALYSIS_RESET_START
#define TONALITY_ANALYSIS_RESET_START angle |
◆ run_analysis()
void run_analysis |
( |
TonalityAnalysisState * |
analysis, |
|
|
const CELTMode * |
celt_mode, |
|
|
const void * |
analysis_pcm, |
|
|
int |
analysis_frame_size, |
|
|
int |
frame_size, |
|
|
int |
c1, |
|
|
int |
c2, |
|
|
int |
C, |
|
|
opus_int32 |
Fs, |
|
|
int |
lsb_depth, |
|
|
downmix_func |
downmix, |
|
|
AnalysisInfo * |
analysis_info |
|
) |
| |
◆ tonality_analysis_init()
Initialize a TonalityAnalysisState struct.
This performs some possibly slow initialization steps which should not be repeated every analysis step. No allocated memory is retained by the state struct, so no cleanup call is required.
◆ tonality_analysis_reset()
◆ tonality_get_info()