Home
last modified time | relevance | path

Searched refs:spectrum (Results 1 - 11 of 11) sorted by relevance

/third_party/ffmpeg/libavcodec/
H A Datrac1.c66 float* spectrum[2]; member
79 DECLARE_ALIGNED(32, float, spec)[AT1_SU_SAMPLES]; ///< the mdct spectrum buffer
142 prev_buf = &su->spectrum[1][ref_pos + band_samples - 16]; in at1_imdct_block()
144 at1_imdct(q, &q->spec[pos], &su->spectrum[0][ref_pos + start_pos], nbits, band_num); in at1_imdct_block()
148 &su->spectrum[0][ref_pos + start_pos], ff_sine_32, 16); in at1_imdct_block()
150 prev_buf = &su->spectrum[0][ref_pos+start_pos + 16]; in at1_imdct_block()
156 memcpy(q->bands[band_num] + 32, &su->spectrum[0][ref_pos + 16], 240 * sizeof(float)); in at1_imdct_block()
162 FFSWAP(float*, su->spectrum[0], su->spectrum[1]); in at1_imdct_block()
223 /* read in the spectral data and reconstruct MDCT spectrum o in at1_unpack_dequant()
[all...]
H A Datrac3.c85 DECLARE_ALIGNED(32, float, spectrum)[SAMPLES_PER_FRAME];
145 * Or fix the functions before so they generate a pre reversed spectrum. in imlt()
268 * Restore the quantized band spectrum coefficients
443 * Combine the tonal band spectrum and regular band spectrum
445 * @param spectrum output spectrum buffer
450 static int add_tonal_components(float *spectrum, int num_components, in add_tonal_components() argument
459 output = &spectrum[components[i].pos]; in add_tonal_components()
609 num_subbands = decode_spectrum(gb, snd->spectrum); in decode_channel_sound_unit()
[all...]
H A Daacsbr_template.c194 // Save last spectrum parameters variables to compare to new ones
216 // Check if spectrum parameters changed
264 SpectrumParameters *spectrum)
307 sbr->k[0] = start_min + sbr_offset_ptr[spectrum->bs_start_freq];
309 if (spectrum->bs_stop_freq < 14) {
313 for (k = 0; k < spectrum->bs_stop_freq; k++)
315 } else if (spectrum->bs_stop_freq == 14) {
317 } else if (spectrum->bs_stop_freq == 15) {
321 "Invalid bs_stop_freq: %d\n", spectrum->bs_stop_freq);
342 if (!spectrum
263 sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr, SpectrumParameters *spectrum) global() argument
[all...]
H A Dtwinvq.c35 * Evaluate a single LPC amplitude spectrum envelope coefficient from the line
36 * spectrum pairs.
69 * Evaluate the LPC amplitude spectrum envelope from the line spectrum pairs.
102 * Evaluate the LPC amplitude spectrum envelope from the line spectrum pairs.
390 tctx->spectrum + i * mtab->size, in imdct_output()
507 read_and_decode_spectrum(tctx, tctx->spectrum, in ff_twinvq_decode_frame()
552 !FF_ALLOC_TYPED_ARRAY(tctx->spectrum, table_size) || in init_mdct_win()
703 // The remaining bits are all used for the main spectrum coefficient in init_bitstream_params()
[all...]
H A Datrac3plus.h100 int16_t spectrum[2048]; ///< decoded IMDCT spectrum member
138 int used_quant_units; ///< number of quant units with coded spectrum
139 int num_coded_subbands; ///< number of subbands with coded spectrum
206 * @param[in,out] sp ptr to channel spectrum to process
215 * with spectrum reversal in the odd subbands.
H A Dtwinvq.h77 /** main codebooks for spectrum data */
82 uint8_t cb_len_read; ///< number of spectrum coefficients to read
157 float *spectrum; member
H A Datrac3plus.c94 /* build huffman tables for spectrum decoding */ in ff_atrac3p_init_vlcs()
536 * set number of quant units having coded spectrum */ in decode_quant_wordlen()
753 * Decode huffman-coded IMDCT spectrum for all channels.
770 memset(chan->spectrum, 0, sizeof(chan->spectrum)); in decode_spectrum()
789 &chan->spectrum[ff_atrac3p_qu_to_spec_pos[qu]], in decode_spectrum()
793 memcpy(&chan->spectrum[ff_atrac3p_qu_to_spec_pos[qu]], in decode_spectrum()
794 &ctx->channels[0].spectrum[ff_atrac3p_qu_to_spec_pos[qu]], in decode_spectrum()
796 sizeof(chan->spectrum[ff_atrac3p_qu_to_spec_pos[qu]])); in decode_spectrum()
H A Datrac3plusdec.c66 DECLARE_ALIGNED(32, float, samples)[2][ATRAC3P_FRAME_SAMPLES]; ///< quantized MDCT spectrum
245 /* clear channel's residual spectrum */ in decode_residual_spectrum()
249 src = &ch_unit->channels[ch].spectrum[ff_atrac3p_qu_to_spec_pos[qu]]; in decode_residual_spectrum()
/third_party/libsnd/tests/
H A Ddft_cmp.c34 static void dft_magnitude (const double *data, double *spectrum) ;
95 ** Quick dirty calculation of magnitude spectrum for real valued data using
101 dft_magnitude (const double *data, double *spectrum) in dft_magnitude() argument
115 /* DFT proper. Since the data is real, only generate a half spectrum. */ in dft_magnitude()
125 spectrum [k] = sqrt (real_part * real_part + imag_part * imag_part) ; in dft_magnitude()
128 spectrum [DFT_SPEC_LENGTH - 1] = 0.0 ; in dft_magnitude()
130 spectrum [0] = spectrum [1] = spectrum [2] = 0.0 ; in dft_magnitude()
/third_party/ffmpeg/libavfilter/
H A Daf_apsyclip.c282 const float *spectrum, float *mask_curve) in calculate_mask_curve()
293 magnitude = FFABS(spectrum[0]); in calculate_mask_curve()
295 magnitude = FFABS(spectrum[s->fft_size]); in calculate_mask_curve()
299 magnitude = hypotf(spectrum[2 * i], spectrum[2 * i + 1]) * 2; in calculate_mask_curve()
317 magnitude = FFABS(spectrum[s->fft_size]); in calculate_mask_curve()
321 magnitude = hypotf(spectrum[2 * i], spectrum[2 * i + 1]) * 2; in calculate_mask_curve()
436 // repeat clipping-filtering process a few times to control both the peaks and the spectrum in feed()
281 calculate_mask_curve(AudioPsyClipContext *s, const float *spectrum, float *mask_curve) calculate_mask_curve() argument
/third_party/skia/gm/
H A Dall_bitmap_configs.cpp62 uint8_t spectrum[256]; in make_bitmap() local
64 spectrum[y] = y; in make_bitmap()
68 memcpy(bm.getAddr8(0, y), &spectrum[y], 128); in make_bitmap()

Completed in 12 milliseconds