HomeSort by relevance Sort by last modified time
    Searched refs:frame_length (Results 1 - 25 of 107) sorted by null

1 2 3 4 5

  /external/grpc-grpc/tools/codegen/core/
gen_server_registered_method_bad_client_test_body.py 44 for frame_length in range(0, len(payload) + 1):
45 is_end = frame_length == len(
47 frame = [(frame_length >> 16) & 0xff, (frame_length >> 8) & 0xff,
48 (frame_length) & 0xff, 0, 1
49 if is_end else 0, 0, 0, 0, 1] + payload[0:frame_length]
  /external/aac/libAACdec/src/
FDK_delay.cpp 130 const UINT frame_length, const UCHAR channel) {
135 FDK_ASSERT(frame_length <= MAX_FRAME_LENGTH);
138 if (frame_length >= data->delay) {
139 FDKmemcpy(tmp, &time_buffer[frame_length - data->delay],
142 (frame_length - data->delay) * sizeof(FIXP_PCM));
148 FDKmemcpy(tmp, &time_buffer[0], frame_length * sizeof(FIXP_PCM));
150 frame_length * sizeof(FIXP_PCM));
152 &data->delay_line[channel * data->delay + frame_length],
153 (data->delay - frame_length) * sizeof(FIXP_PCM));
155 (data->delay - frame_length)],
    [all...]
FDK_delay.h 134 * \param frame_length Frame length of input/output signal (needs to be >=
141 const UINT frame_length, const UCHAR channel);
channel.h 156 const UINT flags, const UINT elFlags, const UINT frame_length,
pulsedata.h 133 const SHORT frame_length);
  /external/webrtc/webrtc/common_audio/vad/include/
webrtc_vad.h 65 // - frame_length [i] : Length of audio frame buffer in number of samples.
71 size_t frame_length);
73 // Checks for valid combinations of |rate| and |frame_length|. We support 10,
77 // - frame_length [i] : Speech frame buffer length in number of samples.
80 int WebRtcVad_ValidRateAndFrameLength(int rate, size_t frame_length);
  /external/webrtc/webrtc/tools/frame_editing/
frame_editing_lib.cc 40 size_t frame_length = CalcBufferSize(kI420, width, height); local
42 rtc::scoped_ptr<uint8_t[]> temp_buffer(new uint8_t[frame_length]);
56 while ((num_bytes_read = fread(temp_buffer.get(), 1, frame_length, in_fid))
57 == frame_length) {
61 fwrite(temp_buffer.get(), 1, frame_length, out_fid);
70 fwrite(temp_buffer.get(), 1, frame_length, out_fid);
75 fwrite(temp_buffer.get(), 1, frame_length, out_fid);
80 if (num_bytes_read > 0 && num_bytes_read < frame_length) {
  /external/webrtc/webrtc/common_audio/vad/
vad_unittest.cc 30 bool VadTest::ValidRatesAndFrameLengths(int rate, size_t frame_length) {
32 if (frame_length == 80 || frame_length == 160 || frame_length == 240) {
37 if (frame_length == 160 || frame_length == 320 || frame_length == 480) {
42 if (frame_length == 320 || frame_length == 640 || frame_length == 960)
    [all...]
webrtc_vad.c 59 size_t frame_length) {
73 if (WebRtcVad_ValidRateAndFrameLength(fs, frame_length) != 0) {
78 vad = WebRtcVad_CalcVad48khz(self, audio_frame, frame_length);
80 vad = WebRtcVad_CalcVad32khz(self, audio_frame, frame_length);
82 vad = WebRtcVad_CalcVad16khz(self, audio_frame, frame_length);
84 vad = WebRtcVad_CalcVad8khz(self, audio_frame, frame_length);
93 int WebRtcVad_ValidRateAndFrameLength(int rate, size_t frame_length) {
106 if (frame_length == valid_length) {
vad_core.h 97 * - frame_length : Number of input samples
107 size_t frame_length);
109 size_t frame_length);
111 size_t frame_length);
113 size_t frame_length);
vad_unittest.h 45 bool ValidRatesAndFrameLengths(int rate, size_t frame_length);
  /external/tensorflow/tensorflow/python/ops/signal/
spectral_ops.py 37 def stft(signals, frame_length, frame_step, fft_length=None,
46 frame_length: An integer scalar `Tensor`. The window length in samples.
49 If not provided, uses the smallest power of 2 enclosing `frame_length`.
63 ValueError: If `signals` is not at least rank 1, `frame_length` is
68 with ops.name_scope(name, 'stft', [signals, frame_length,
72 frame_length = ops.convert_to_tensor(frame_length, name='frame_length')
73 frame_length.shape.assert_has_rank(0)
78 fft_length = _enclosing_power_of_two(frame_length)
    [all...]
shape_ops.py 29 def _infer_frame_shape(signal, frame_length, frame_step, pad_end, axis):
31 frame_length = tensor_util.constant_value(frame_length)
48 elif frame_step is not None and frame_length is not None:
51 0, (frame_axis - frame_length + frame_step) // frame_step)
52 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,
58 """Expands `signal`'s `axis` dimension into frames of `frame_length`.
60 Slides a window of size `frame_length` over `signal`'s `axis` dimension
62 `[frames, frame_length]` frames
    [all...]
  /external/libopus/silk/
decoder_set_fs.c 41 opus_int frame_length, ret = 0; local
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length );
58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) {
100 psDec->frame_length = frame_length;
104 celt_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH );
decode_frame.c 53 L = psDec->frame_length;
75 psDec->indices.quantOffsetType, psDec->frame_length );
107 celt_assert( psDec->ltp_mem_length >= psDec->frame_length );
108 mv_len = psDec->ltp_mem_length - psDec->frame_length;
109 silk_memmove( psDec->outBuf, &psDec->outBuf[ psDec->frame_length ], mv_len * sizeof(opus_int16) );
110 silk_memcpy( &psDec->outBuf[ mv_len ], pOut, psDec->frame_length * sizeof( opus_int16 ) );
decode_pulses.c 42 const opus_int frame_length /* I Frame length */
57 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH );
58 if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) {
59 celt_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */
114 silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses );
stereo_LR_to_MS.c 47 opus_int frame_length /* I Number of samples */
61 ALLOC( side, frame_length + 2, opus_int16 );
63 for( n = 0; n < frame_length + 2; n++ ) {
73 silk_memcpy( state->sMid, &mid[ frame_length ], 2 * sizeof( opus_int16 ) );
74 silk_memcpy( state->sSide, &side[ frame_length ], 2 * sizeof( opus_int16 ) );
77 ALLOC( LP_mid, frame_length, opus_int16 );
78 ALLOC( HP_mid, frame_length, opus_int16 );
79 for( n = 0; n < frame_length; n++ ) {
86 ALLOC( LP_side, frame_length, opus_int16 );
87 ALLOC( HP_side, frame_length, opus_int16 )
    [all...]
stereo_MS_to_LR.c 41 opus_int frame_length /* I Number of samples */
50 silk_memcpy( state->sMid, &x1[ frame_length ], 2 * sizeof( opus_int16 ) );
51 silk_memcpy( state->sSide, &x2[ frame_length ], 2 * sizeof( opus_int16 ) );
69 for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) {
79 for( n = 0; n < frame_length; n++ ) {
  /external/tensorflow/tensorflow/python/kernel_tests/signal/
spectral_ops_test.py 82 def _compare(self, signal, frame_length, frame_step, fft_length):
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)
124 # frame_length (8) is used.
125 stft = spectral_ops.stft(signal, frame_length=7, frame_step=8,
130 stft = spectral_ops.stft(signal, frame_length=8, frame_step=8
    [all...]
shape_ops_test.py 79 # Non-scalar frame_length.
94 frame_length = 2
98 result = shape_ops.frame(signal, frame_length, frame_step,
102 result = shape_ops.frame(signal, frame_length, frame_step,
109 frame_length = 2
112 # if frame_length is known at graph definition time.
113 result = shape_ops.frame(signal, frame_length, frame_step,
117 result = shape_ops.frame(signal, frame_length, frame_step,
121 # If frame_length is not known, rank and (known) outer and inner dimensions
124 frame_length = array_ops.placeholder(dtypes.int32, shape=[]
    [all...]
  /external/libldac/src/
ldaclib_api.c 73 int frame_length)
75 if ((0 < frame_length) && (frame_length <= LDAC_MAXNBYTES)) {
84 int frame_length,
88 if ((LDAC_MINSUPNBYTES/2 <= frame_length) && (frame_length <= LDAC_MAXSUPNBYTES/2)) {
96 if ((LDAC_MINSUPNBYTES <= frame_length) && (frame_length <= LDAC_MAXSUPNBYTES)) {
332 int frame_length,
352 if (!ldaclib_assert_frame_length(frame_length)) {
678 int frame_length; local
    [all...]
  /external/aac/libMpegTPEnc/src/
tpenc_adts.h 124 USHORT frame_length; member in struct:__anon14917
169 int bufferFullness, int frame_length);
  /external/webrtc/webrtc/tools/agc/
test_utils.cc 30 const size_t frame_length = local
34 float gain_step = (gain - last_gain) / (frame_length - 1);
35 for (size_t i = 0; i < frame_length; ++i) {
  /external/libopus/silk/x86/
VAD_sse4_1.c 68 celt_assert( MAX_FRAME_LENGTH >= psEncC->frame_length );
69 celt_assert( psEncC->frame_length <= 512 );
70 celt_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) );
75 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 );
76 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 );
77 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 );
85 They're arranged to allow the minimal ( frame_length / 4 ) extra
95 X, &X[ X_offset[ 3 ] ], psEncC->frame_length );
122 decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BANDS - 1 ) )
    [all...]
  /device/google/cuttlefish_common/host/frontend/stream_audio/opuscpp/
opus_wrapper.cc 103 const auto frame_length = frame_size * num_channels_ * sample_size; local
105 if (data_length % frame_length != 0u) {
108 data_length -= (data_length % frame_length);
112 for (std::size_t i{}; i < data_length; i += frame_length) {
121 const auto frame_length = (frame_size * num_channels_ * sizeof(*frame_start)); local
122 std::vector<unsigned char> encoded(frame_length);
154 const auto frame_length = (frame_size * num_channels_ * sizeof(opus_int16)); local
155 std::vector<opus_int16> decoded(frame_length);
167 const auto frame_length = (frame_size * num_channels_ * sizeof(opus_int16)); local
168 std::vector<opus_int16> decoded(frame_length);
    [all...]

Completed in 1383 milliseconds

1 2 3 4 5