Home
last modified time | relevance | path

Searched refs:frame_length (Results 1 – 25 of 97) sorted by relevance

1234

/external/tensorflow/tensorflow/contrib/signal/python/ops/
Dspectral_ops.py36 def stft(signals, frame_length, frame_step, fft_length=None, argument
67 with ops.name_scope(name, 'stft', [signals, frame_length,
71 frame_length = ops.convert_to_tensor(frame_length, name='frame_length')
72 frame_length.shape.assert_has_rank(0)
77 fft_length = _enclosing_power_of_two(frame_length)
82 signals, frame_length, frame_step, pad_end=pad_end)
86 window = window_fn(frame_length, dtype=framed_signals.dtype)
121 def inverse_stft_window_fn_inner(frame_length, dtype): argument
138 frame_length = ops.convert_to_tensor(frame_length, name='frame_length')
139 frame_length.shape.assert_has_rank(0)
[all …]
Dshape_ops.py30 def _infer_frame_shape(signal, frame_length, frame_step, pad_end, axis): argument
32 frame_length = tensor_util.constant_value(frame_length)
46 if frame_step and frame_length is not None:
51 num_frames = (frame_axis - frame_length + frame_step) // frame_step
53 return outer_dimensions + [num_frames, frame_length] + inner_dimensions
56 def frame(signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1, argument
97 with ops.name_scope(name, "frame", [signal, frame_length, frame_step,
100 frame_length = ops.convert_to_tensor(frame_length, name="frame_length")
105 frame_length.shape.assert_has_rank(0)
109 result_shape = _infer_frame_shape(signal, frame_length, frame_step, pad_end,
[all …]
Dreconstruction_ops.py111 frame_length = signal_shape[-1]
113 subframe_length = util_ops.gcd(frame_length, frame_step)
115 subframes_per_frame = frame_length // subframe_length
116 output_size = frame_step * (frames - 1) + frame_length
/external/tensorflow/tensorflow/contrib/signal/python/kernel_tests/
Dspectral_ops_test.py82 def _compare(self, signal, frame_length, frame_step, fft_length): argument
86 signal, frame_length, frame_step, fft_length, pad_end=False)
89 signal_ph, frame_length, frame_step, fft_length, pad_end=False)
92 actual_stft, frame_length, frame_step, fft_length)
101 actual_stft_ph, frame_length, frame_step, fft_length),
110 signal, fft_length, frame_step, frame_length)
114 expected_stft, fft_length, frame_step, frame_length)
125 stft = spectral_ops.stft(signal, frame_length=7, frame_step=8,
130 stft = spectral_ops.stft(signal, frame_length=8, frame_step=8,
135 stft = spectral_ops.stft(signal, frame_length=8, frame_step=8,
[all …]
Dshape_ops_test.py89 frame_length = 2
93 result = shape_ops.frame(signal, frame_length, frame_step,
97 result = shape_ops.frame(signal, frame_length, frame_step,
103 frame_length = 2
107 result = shape_ops.frame(signal, frame_length, frame_step,
111 result = shape_ops.frame(signal, frame_length, frame_step,
118 frame_length = array_ops.placeholder(dtypes.int32, shape=[])
120 result = shape_ops.frame(signal, frame_length, frame_step,
124 result = shape_ops.frame(signal, frame_length, frame_step,
132 frame_length = 4
[all …]
/external/webrtc/webrtc/common_audio/vad/
Dvad_unittest.cc30 bool VadTest::ValidRatesAndFrameLengths(int rate, size_t frame_length) { in ValidRatesAndFrameLengths() argument
32 if (frame_length == 80 || frame_length == 160 || frame_length == 240) { in ValidRatesAndFrameLengths()
37 if (frame_length == 160 || frame_length == 320 || frame_length == 480) { in ValidRatesAndFrameLengths()
42 if (frame_length == 320 || frame_length == 640 || frame_length == 960) { in ValidRatesAndFrameLengths()
47 if (frame_length == 480 || frame_length == 960 || frame_length == 1440) { in ValidRatesAndFrameLengths()
Dwebrtc_vad.c59 size_t frame_length) { in WebRtcVad_Process() argument
73 if (WebRtcVad_ValidRateAndFrameLength(fs, frame_length) != 0) { in WebRtcVad_Process()
78 vad = WebRtcVad_CalcVad48khz(self, audio_frame, frame_length); in WebRtcVad_Process()
80 vad = WebRtcVad_CalcVad32khz(self, audio_frame, frame_length); in WebRtcVad_Process()
82 vad = WebRtcVad_CalcVad16khz(self, audio_frame, frame_length); in WebRtcVad_Process()
84 vad = WebRtcVad_CalcVad8khz(self, audio_frame, frame_length); in WebRtcVad_Process()
93 int WebRtcVad_ValidRateAndFrameLength(int rate, size_t frame_length) { in WebRtcVad_ValidRateAndFrameLength() argument
106 if (frame_length == valid_length) { in WebRtcVad_ValidRateAndFrameLength()
Dvad_core.c125 int16_t total_power, size_t frame_length) { in GmmProbability() argument
149 if (frame_length == 80) { in GmmProbability()
154 } else if (frame_length == 160) { in GmmProbability()
599 size_t frame_length) { in WebRtcVad_CalcVad48khz() argument
608 size_t num_10ms_frames = frame_length / kFrameLen10ms48khz; in WebRtcVad_CalcVad48khz()
618 vad = WebRtcVad_CalcVad8khz(inst, speech_nb, frame_length / 6); in WebRtcVad_CalcVad48khz()
624 size_t frame_length) in WebRtcVad_CalcVad32khz() argument
634 frame_length); in WebRtcVad_CalcVad32khz()
635 len = frame_length / 2; in WebRtcVad_CalcVad32khz()
647 size_t frame_length) in WebRtcVad_CalcVad16khz() argument
[all …]
Dvad_core.h107 size_t frame_length);
109 size_t frame_length);
111 size_t frame_length);
113 size_t frame_length);
/external/libldac/src/
Dldaclib_api.c73 int frame_length) in ldaclib_assert_frame_length() argument
75 if ((0 < frame_length) && (frame_length <= LDAC_MAXNBYTES)) { in ldaclib_assert_frame_length()
84 int frame_length, in ldaclib_assert_supported_frame_length() argument
88 if ((LDAC_MINSUPNBYTES/2 <= frame_length) && (frame_length <= LDAC_MAXSUPNBYTES/2)) { in ldaclib_assert_supported_frame_length()
96 if ((LDAC_MINSUPNBYTES <= frame_length) && (frame_length <= LDAC_MAXSUPNBYTES)) { in ldaclib_assert_supported_frame_length()
332 int frame_length, argument
352 if (!ldaclib_assert_frame_length(frame_length)) {
357 if (!ldaclib_assert_supported_frame_length(frame_length, chconfig_id)) {
369 p_cfg->frame_length = frame_length;
391 *p_frame_length = p_cfg->frame_length;
[all …]
/external/aac/libAACdec/src/
DFDK_delay.cpp130 const UINT frame_length, const UCHAR channel) { in FDK_Delay_Apply() argument
135 FDK_ASSERT(frame_length <= MAX_FRAME_LENGTH); in FDK_Delay_Apply()
138 if (frame_length >= data->delay) { in FDK_Delay_Apply()
139 FDKmemcpy(tmp, &time_buffer[frame_length - data->delay], in FDK_Delay_Apply()
142 (frame_length - data->delay) * sizeof(FIXP_PCM)); in FDK_Delay_Apply()
148 FDKmemcpy(tmp, &time_buffer[0], frame_length * sizeof(FIXP_PCM)); in FDK_Delay_Apply()
150 frame_length * sizeof(FIXP_PCM)); in FDK_Delay_Apply()
152 &data->delay_line[channel * data->delay + frame_length], in FDK_Delay_Apply()
153 (data->delay - frame_length) * sizeof(FIXP_PCM)); in FDK_Delay_Apply()
155 (data->delay - frame_length)], in FDK_Delay_Apply()
[all …]
/external/webrtc/webrtc/tools/frame_editing/
Dframe_editing_lib.cc40 size_t frame_length = CalcBufferSize(kI420, width, height); in EditFrames() local
42 rtc::scoped_ptr<uint8_t[]> temp_buffer(new uint8_t[frame_length]); in EditFrames()
56 while ((num_bytes_read = fread(temp_buffer.get(), 1, frame_length, in_fid)) in EditFrames()
57 == frame_length) { in EditFrames()
61 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
70 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
75 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
80 if (num_bytes_read > 0 && num_bytes_read < frame_length) { in EditFrames()
/external/libopus/silk/
Dstereo_LR_to_MS.c47 …opus_int frame_length /* I Number of samples … in silk_stereo_LR_to_MS() argument
61 ALLOC( side, frame_length + 2, opus_int16 ); in silk_stereo_LR_to_MS()
63 for( n = 0; n < frame_length + 2; n++ ) { in silk_stereo_LR_to_MS()
73 silk_memcpy( state->sMid, &mid[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_LR_to_MS()
74 silk_memcpy( state->sSide, &side[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_LR_to_MS()
77 ALLOC( LP_mid, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
78 ALLOC( HP_mid, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
79 for( n = 0; n < frame_length; n++ ) { in silk_stereo_LR_to_MS()
86 ALLOC( LP_side, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
87 ALLOC( HP_side, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
[all …]
Ddecoder_set_fs.c41 opus_int frame_length, ret = 0; in silk_decoder_set_fs() local
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { in silk_decoder_set_fs()
100 psDec->frame_length = frame_length; in silk_decoder_set_fs()
104 silk_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); in silk_decoder_set_fs()
Ddecode_frame.c53 L = psDec->frame_length; in silk_decode_frame()
75 psDec->indices.quantOffsetType, psDec->frame_length ); in silk_decode_frame()
107 silk_assert( psDec->ltp_mem_length >= psDec->frame_length ); in silk_decode_frame()
108 mv_len = psDec->ltp_mem_length - psDec->frame_length; in silk_decode_frame()
109 … silk_memmove( psDec->outBuf, &psDec->outBuf[ psDec->frame_length ], mv_len * sizeof(opus_int16) ); in silk_decode_frame()
110 silk_memcpy( &psDec->outBuf[ mv_len ], pOut, psDec->frame_length * sizeof( opus_int16 ) ); in silk_decode_frame()
DVAD.c104 silk_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); in silk_VAD_GetSA_Q8_c()
105 silk_assert( psEncC->frame_length <= 512 ); in silk_VAD_GetSA_Q8_c()
106 silk_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8_c()
111 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8_c()
112 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8_c()
113 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8_c()
131 X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); in silk_VAD_GetSA_Q8_c()
158 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8_c()
259 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_c()
279 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_c()
Ddecode_pulses.c42 …const opus_int frame_length /* I Frame length … in silk_decode_pulses() argument
57 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_decode_pulses()
58 if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { in silk_decode_pulses()
59 silk_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ in silk_decode_pulses()
114 silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); in silk_decode_pulses()
Dstereo_MS_to_LR.c41 …opus_int frame_length /* I Number of samples … in silk_stereo_MS_to_LR() argument
50 silk_memcpy( state->sMid, &x1[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
51 silk_memcpy( state->sSide, &x2[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
69 for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { in silk_stereo_MS_to_LR()
79 for( n = 0; n < frame_length; n++ ) { in silk_stereo_MS_to_LR()
Dencode_pulses.c65 …const opus_int frame_length /* I Frame length … in silk_encode_pulses() argument
87 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_encode_pulses()
88 if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { in silk_encode_pulses()
89 silk_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ in silk_encode_pulses()
91 silk_memset( &pulses[ frame_length ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof(opus_int8)); in silk_encode_pulses()
204 silk_encode_signs( psRangeEnc, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); in silk_encode_pulses()
/external/libopus/silk/x86/
DVAD_sse.c68 silk_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); in silk_VAD_GetSA_Q8_sse4_1()
69 silk_assert( psEncC->frame_length <= 512 ); in silk_VAD_GetSA_Q8_sse4_1()
70 silk_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8_sse4_1()
75 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8_sse4_1()
76 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8_sse4_1()
77 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8_sse4_1()
95 X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); in silk_VAD_GetSA_Q8_sse4_1()
122 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8_sse4_1()
240 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_sse4_1()
260 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8_sse4_1()
/external/webrtc/webrtc/test/testsupport/metrics/
Dvideo_metrics.cc111 const size_t frame_length = 3 * width * height >> 1; in CalculateMetrics() local
114 rtc::scoped_ptr<uint8_t[]> ref_buffer(new uint8_t[frame_length]); in CalculateMetrics()
115 rtc::scoped_ptr<uint8_t[]> test_buffer(new uint8_t[frame_length]); in CalculateMetrics()
122 size_t ref_bytes = fread(ref_buffer.get(), 1, frame_length, ref_fp); in CalculateMetrics()
123 size_t test_bytes = fread(test_buffer.get(), 1, frame_length, test_fp); in CalculateMetrics()
124 while (ref_bytes == frame_length && test_bytes == frame_length) { in CalculateMetrics()
147 ref_bytes = fread(ref_buffer.get(), 1, frame_length, ref_fp); in CalculateMetrics()
148 test_bytes = fread(test_buffer.get(), 1, frame_length, test_fp); in CalculateMetrics()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dbandwidth_estimator.c142 const int32_t frame_length, in WebRtcIsac_UpdateBandwidthEstimator() argument
166 if ( frame_length != bwest_str->prev_frame_length ) in WebRtcIsac_UpdateBandwidthEstimator()
169 1000.0f / (float)frame_length; /* bits/s */ in WebRtcIsac_UpdateBandwidthEstimator()
174 rec_rtp_rate = ((float)pksize * 8.0f * 1000.0f / (float)frame_length) + in WebRtcIsac_UpdateBandwidthEstimator()
187 bwest_str->prev_frame_length = frame_length; in WebRtcIsac_UpdateBandwidthEstimator()
211 if (send_ts_diff <= (16 * frame_length)*2) in WebRtcIsac_UpdateBandwidthEstimator()
225 (float)frame_length); in WebRtcIsac_UpdateBandwidthEstimator()
274 if ( frame_length != bwest_str->prev_frame_length ) in WebRtcIsac_UpdateBandwidthEstimator()
278 1000.0f / (float)frame_length; /* bits/s */ in WebRtcIsac_UpdateBandwidthEstimator()
293 late_diff = arr_ts_diff - (float)(16 * frame_length); in WebRtcIsac_UpdateBandwidthEstimator()
[all …]
/external/aac/libMpegTPDec/src/
Dtpdec_adts.cpp200 bs.frame_length = FDKreadBits(hBs, Adts_Length_FrameLength); in adtsRead_DecodeHeader()
222 bs.frame_length - 7 - bs.num_raw_blocks * 2 - 2; in adtsRead_DecodeHeader()
251 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
259 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
265 bs.frame_length * 8 + in adtsRead_DecodeHeader()
331 FDKpushFor(hBs, (bs.frame_length << 3) - adtsHeaderLength - 3); in adtsRead_DecodeHeader()
353 (pAdts->bs.frame_length - 7) in adtsRead_GetRawDataBlockLength()
/external/libvncserver/webclients/novnc/include/
Dplayback.js11 var rfb, mode, test_state, frame_idx, frame_length, variable
24 frame_length = VNC_frame_data.length;
51 while ((frame_idx < frame_length) && (frame.charAt(0) === "}")) {
62 if (frame_idx >= frame_length) {
/external/libxaac/decoder/
Dixheaacd_lpfuncs.c373 if ((512 == ptr_ics_info->frame_length) || in ixheaacd_imdct_process()
374 (480 == ptr_ics_info->frame_length)) { in ixheaacd_imdct_process()
375 if (512 == ptr_ics_info->frame_length) { in ixheaacd_imdct_process()
389 int i, N = (ptr_ics_info->frame_length << 1); in ixheaacd_imdct_process()
417 if (1024 == ptr_ics_info->frame_length) { in ixheaacd_imdct_process()
425 if ((512 == ptr_ics_info->frame_length) || in ixheaacd_imdct_process()
426 (480 == ptr_ics_info->frame_length)) { in ixheaacd_imdct_process()
428 if (512 == ptr_ics_info->frame_length) { in ixheaacd_imdct_process()
434 } else if (480 == ptr_ics_info->frame_length) { in ixheaacd_imdct_process()
443 ptr_spec_coeff, ptr_long_window, ptr_ics_info->frame_length, in ixheaacd_imdct_process()
[all …]

1234