Home
last modified time | relevance | path

Searched refs:tonal (Results 1 – 3 of 3) sorted by relevance

/external/libopus/src/
Danalysis.c143 void tonality_get_info(TonalityAnalysisState *tonal, AnalysisInfo *info_out, int len) in tonality_get_info() argument
150 pos = tonal->read_pos; in tonality_get_info()
151 curr_lookahead = tonal->write_pos-tonal->read_pos; in tonality_get_info()
155 if (len > 480 && pos != tonal->write_pos) in tonality_get_info()
161 if (pos == tonal->write_pos) in tonality_get_info()
165 OPUS_COPY(info_out, &tonal->info[pos], 1); in tonality_get_info()
166 tonal->read_subframe += len/120; in tonality_get_info()
167 while (tonal->read_subframe>=4) in tonality_get_info()
169 tonal->read_subframe -= 4; in tonality_get_info()
170 tonal->read_pos++; in tonality_get_info()
[all …]
Danalysis.h81 void tonality_analysis(TonalityAnalysisState *tonal, AnalysisInfo *info,
84 void tonality_get_info(TonalityAnalysisState *tonal, AnalysisInfo *info_out, int len);
/external/libopus/celt/
Dcelt_encoder.c1189 float tonal; in compute_vbr() local
1192 tonal = MAX16(0.f,analysis->tonality-.15f)-0.09f; in compute_vbr()
1193 tonal_target = target + (opus_int32)((coded_bins<<BITRES)*1.2f*tonal); in compute_vbr()