/AliOS-Things-master/components/uvoice/codec/ |
A D | spx_encoder.c | 25 int frame_size; member 45 int frame_size = 0; in spx_encode_process() local 51 for (i = 0; i < samples; i += spx->frame_size) { in spx_encode_process() 55 frame_size = speex_bits_write(&spx->bits, buffer + encode_sum + sizeof(int), in spx_encode_process() 56 spx->frame_size * sizeof(spx_int16_t)); in spx_encode_process() 57 if (frame_size + sizeof(int) >= spx->frame_size * sizeof(spx_int16_t)) { in spx_encode_process() 61 snd_memcpy(buffer + encode_sum, &frame_size, sizeof(int)); in spx_encode_process() 62 encode_sum += frame_size + sizeof(int); in spx_encode_process() 89 if ((mencoder->frames * mencoder->channels) % spx->frame_size != 0) { in spx_encode_action() 91 spx->frame_size); in spx_encode_action() [all …]
|
A D | spx_decoder.c | 25 int frame_size; member 91 int frame_size; in spx_decoder_process() local 96 frame_size = *(int *)(buffer + offset); in spx_decoder_process() 98 if (frame_size > nbytes - offset) { in spx_decoder_process() 102 snd_memcpy(bits->chars, buffer + offset, frame_size); in spx_decoder_process() 104 bits->nbBits = frame_size << 3; in spx_decoder_process() 109 offset += frame_size; in spx_decoder_process() 124 pcm_info.frames = spx->frame_size / spx->channels; in spx_decoder_process() 143 spx->frame_size * sizeof(short))) { in spx_decoder_process() 257 spx->frame_size = temp; in spx_decoder_create() [all …]
|
A D | pvmp3_decoder.c | 42 int32_t frame_size; member 98 decoder->frame_size = (12000 * decoder->bitrate / sample_rate + padding) * 4; in pvmp3_parse_header() 133 decoder->frame_size = 144000 * decoder->bitrate / sample_rate + padding; in pvmp3_parse_header() 141 decoder->frame_size = tmp * decoder->bitrate / sample_rate + padding; in pvmp3_parse_header() 258 frame_size_bak = decoder->frame_size; in pvmp3_frame_locate() 263 next_frame_pos += decoder->frame_size; in pvmp3_frame_locate() 299 decoder->frame_size = frame_size_bak; in pvmp3_frame_locate() 301 decoder->proc_sum += frame_pos + decoder->frame_size - decoder->pos; in pvmp3_frame_locate() 302 decoder->pos = frame_pos + decoder->frame_size; in pvmp3_frame_locate() 338 decoder->frame_size = 0; in pvmp3_decoder_reset()
|
A D | amr_decoder.c | 57 int frame_size; in amr_decoder_process() local 109 frame_size = block_size[dec_mode]; in amr_decoder_process() 110 if (rem_size < frame_size) { in amr_decoder_process() 128 readptr += frame_size + 1; in amr_decoder_process() 129 rem_size -= frame_size; in amr_decoder_process()
|
A D | amrwb_decoder.c | 58 int frame_size; in amrwb_decoder_process() local 112 frame_size = block_size[dec_mode] - 1; in amrwb_decoder_process() 113 if (rem_size < frame_size) { in amrwb_decoder_process() 131 readptr += frame_size + 1; in amrwb_decoder_process() 132 rem_size -= frame_size; in amrwb_decoder_process()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/multimedia/speech/inc/ |
A D | iirfilt.h | 50 void iirfilt_process(IirBiquardState *st, int stages, int16_t *buf, int frame_size); 52 void iirfilt_process_int24(IirBiquardState *st, int stages, int32_t *buf, int frame_size); 54 void iirfilt_process_float(IirBiquardState *st, int stages, float *buf, int frame_size); 57 …iirfilt_process2(IirBiquardState *st, int stages, float master_gain, int16_t *buf, int frame_size); 59 …t_process2_int24(IirBiquardState *st, int stages, float master_gain, int32_t *buf, int frame_size); 61 …ilt_process2_float(IirBiquardState *st, int stages, float master_gain, float *buf, int frame_size); 63 …ess3(IirBiquardState *st, int stages, float master_gain, int16_t *buf, int frame_size, int stride); 65 …nt24(IirBiquardState *st, int stages, float master_gain, int32_t *buf, int frame_size, int stride); 67 …_float(IirBiquardState *st, int stages, float master_gain, float *buf, int frame_size, int stride);
|
A D | fftfilt.h | 21 FftFiltState *fftfilt_init(int sample_rate, int frame_size, const FftFiltConfig *config); 25 void fftfilt_process_float(FftFiltState *st, float *buf, int frame_size); 27 void fftfilt_process(FftFiltState *st, int16_t *buf, int frame_size); 29 void fftfilt_process2_float(FftFiltState *st, float *buf, int frame_size, int stride); 31 void fftfilt_process2(FftFiltState *st, int16_t *buf, int frame_size, int stride);
|
A D | speech_iir_calibration.h | 18 SpeechIirCalibState *speech_iir_calib_init(int32_t sample_rate, int32_t frame_size, const SpeechIir… 22 void speech_iir_calib_process(SpeechIirCalibState *st, int16_t *buf, int32_t frame_size);
|
A D | speech_fir_calibration.h | 44 SpeechFirCalibState *speech_fir_calib_init(int32_t sample_rate, int32_t frame_size, const SpeechFir… 48 void speech_fir_calib_process(SpeechFirCalibState *st, int16_t *buf, int32_t frame_size);
|
A D | speech_utils.h | 62 inline float speech_frame_size2time_ms(int sample_rate, int frame_size) in speech_frame_size2time_ms() argument 66 frame_time = (float)frame_size / (sample_rate / 1000); in speech_frame_size2time_ms()
|
A D | speech_ff_2mic_ns2.h | 11 SpeechFF2MicNs2State *speech_ff_2mic_ns2_create(int sample_rate, int frame_size);
|
A D | single_mic_NNDenoise.h | 18 NNDenoiseState * single_mic_NN_denoise_create(int32_t sr, int32_t frame_size,int32_t post_coef);
|
A D | speech_ff_3mic_ns1.h | 11 SpeechFF3MicNs1State *speech_ff_3mic_ns1_create(int sample_rate, int frame_size);
|
A D | SubBandBasedAEC.h | 21 SubBandAecState *SubBandAec_init(int sample_rate, int frame_size, const SubBandAecConfig *cfg);
|
A D | spectrum.h | 25 SpectrumState *spectrum_init(int sample_rate, int frame_size, const SpectrumConfig *config);
|
A D | wnr.h | 23 WnrState* wnr_create(int32_t sample_rate, int32_t frame_size, const WnrConfig *config);
|
/AliOS-Things-master/components/uvoice/media/ |
A D | uvoice_format.c | 104 unsigned int frame_size = 0; in mp3_id3v2_parse() local 113 frame_size = header.size[0] << 24 | in mp3_id3v2_parse() 118 if (frame_size == 0) { in mp3_id3v2_parse() 127 frame_pos = pos - frame_size; in mp3_id3v2_parse() 140 frame_pos = pos - frame_size; in mp3_id3v2_parse() 153 frame_pos = pos - frame_size; in mp3_id3v2_parse() 166 frame_pos = pos - frame_size; in mp3_id3v2_parse() 179 frame_pos = pos - frame_size; in mp3_id3v2_parse() 182 copy_size = MIN(sizeof(type) - 1, frame_size); in mp3_id3v2_parse() 194 frame_pos = pos - frame_size; in mp3_id3v2_parse() [all …]
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/ |
A D | audio_provider.cc | 107 int channel_num = 3, frame_size; in pcm_stream_read() local 130 frame_size = channel_num * sample_bytes; in pcm_stream_read() 139 for (i = 0; i < ret / frame_size; i++) in pcm_stream_read() 144 ((char *)buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC1 in pcm_stream_read() 147 … ((char *)mic2_pcm_tmp_buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC2 in pcm_stream_read() 148 … ((char *)mic3_pcm_tmp_buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC3 in pcm_stream_read()
|
/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/ |
A D | audio_rtos.c | 136 unsigned int byte_len = 0, frame_size = 0; in pcm_readi() local 142 frame_size = (pcm_dev->params.channels) * (pcm_dev->params.sample_bits) / 8; in pcm_readi() 143 byte_len = xbuf->frames * frame_size; in pcm_readi() 145 xbuf->result = (ret > 0) ? ret / frame_size : 0; in pcm_readi() 152 int byte_len = 0, frame_size = 0; in pcm_writei() local 170 frame_size = (pcm_dev->params.channels) * (pcm_dev->params.sample_bits) / 8; in pcm_writei() 171 byte_len = (xbuf->frames) * frame_size; in pcm_writei() 173 xbuf->result = (ret > 0) ? ret / frame_size : 0; in pcm_writei()
|
A D | cap_task.c | 60 unsigned int frame_size, period_bytes; in cap_thread_loop() local 70 frame_size = pcm_dev->params.channels * pcm_dev->params.sample_bits / 8; in cap_thread_loop() 71 period_bytes = frame_size * cap_interval_ms * pcm_dev->params.rate / 1000; in cap_thread_loop()
|
A D | pb_task.c | 48 unsigned int frame_size, period_bytes, left_bytes; in pb_thread_loop() local 71 frame_size = pcm_dev->params.channels * pcm_dev->params.sample_bits / 8; in pb_thread_loop() 72 period_bytes = frame_size * PB_TIMER_INTERVAL_MS * pcm_dev->params.rate / 1000; in pb_thread_loop()
|
/AliOS-Things-master/components/a2sa/example/ |
A D | sound_example_wav.c | 64 int num_read, frame_size; in play_sample() local 95 frame_size = channels * bits / 8; in play_sample() 97 size = rate /10 * frame_size; in play_sample() 111 if (aos_pcm_writei(pcm, buffer, num_read/frame_size) < 0) { in play_sample()
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | audio.c | 262 int channel_num = 3, sample_bytes = 2, frame_size; in codec_pcm_stream_read() local 272 frame_size = channel_num * sample_bytes; in codec_pcm_stream_read() 276 for(i = 0; i < ret/frame_size; i++) { in codec_pcm_stream_read() 279 ((char *)buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC1 in codec_pcm_stream_read() 285 … ((char *)buf)[i * sample_bytes + j] = tempBuf[(i+1)*frame_size - sample_bytes + j]; // MIC3*/ in codec_pcm_stream_read()
|
/AliOS-Things-master/components/SDL2/src/audio/alsa/ |
A D | SDL_alsa_audio.c | 351 const int frame_size = ((SDL_AUDIO_BITSIZE(this->spec.format)) / 8) * in ALSA_PlayDevice() local 385 sample_buf += status * frame_size; in ALSA_PlayDevice() 400 const int frame_size = ((SDL_AUDIO_BITSIZE(this->spec.format)) / 8) * in ALSA_CaptureFromDevice() local 402 const int total_frames = buflen / frame_size; in ALSA_CaptureFromDevice() 404 snd_pcm_uframes_t wait_time = frame_size / 2; in ALSA_CaptureFromDevice() 406 SDL_assert((buflen % frame_size) == 0); in ALSA_CaptureFromDevice() 431 sample_buf += status * frame_size; in ALSA_CaptureFromDevice() 437 return (total_frames - frames_left) * frame_size; in ALSA_CaptureFromDevice()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/app/xmodem/ |
A D | xmodem_update_rom.h | 20 extern VOID xmodem_img_write(char *ptr, unsigned int wr_offset, unsigned int frame_size);
|