/external/webrtc/api/ |
D | array_view_unittest.cc | 32 size_t Call(ArrayView<T> av) { in Call() 37 void CallFixed(ArrayView<T, N> av) {} in CallFixed() 49 ArrayView<int*> x; in TEST() 52 ArrayView<char> y = arr; in TEST() 55 ArrayView<char, 6> yf = arr; in TEST() 58 ArrayView<const char> z(arr + 1, 3); in TEST() 61 ArrayView<const char, 3> zf(arr + 1, 3); in TEST() 64 ArrayView<const char> w(arr, 2); in TEST() 67 ArrayView<const char, 2> wf(arr, 2); in TEST() 70 ArrayView<char> q(arr, 0); in TEST() [all …]
|
D | array_view.h | 147 class ArrayView final : public impl::ArrayViewBase<T, Size> { 154 ArrayView(U* data, size_t size) in ArrayView() function 164 ArrayView() : ArrayView(nullptr, 0) {} in ArrayView() function 165 ArrayView(std::nullptr_t) // NOLINT in ArrayView() function 166 : ArrayView() {} in ArrayView() 167 ArrayView(std::nullptr_t, size_t size) in ArrayView() function 168 : ArrayView(static_cast<T*>(nullptr), size) { in ArrayView() 175 ArrayView(U (&array)[N]) // NOLINT in ArrayView() function 176 : ArrayView(array, N) { in ArrayView() 188 ArrayView(std::array<U, N>& u) // NOLINT in ArrayView() function [all …]
|
/external/webrtc/logging/rtc_event_log/encoder/ |
D | rtc_event_log_encoder_new_format.h | 72 void EncodeAlrState(rtc::ArrayView<const RtcEventAlrState*> batch, 75 rtc::ArrayView<const RtcEventAudioNetworkAdaptation*> batch, 77 void EncodeAudioPlayout(rtc::ArrayView<const RtcEventAudioPlayout*> batch, 80 rtc::ArrayView<const RtcEventAudioReceiveStreamConfig*> batch, 83 rtc::ArrayView<const RtcEventAudioSendStreamConfig*> batch, 86 rtc::ArrayView<const RtcEventBweUpdateDelayBased*> batch, 89 rtc::ArrayView<const RtcEventBweUpdateLossBased*> batch, 92 rtc::ArrayView<const RtcEventDtlsTransportState*> batch, 95 rtc::ArrayView<const RtcEventDtlsWritableState*> batch, 98 rtc::ArrayView<const RtcEventGenericAckReceived*> batch, [all …]
|
/external/webrtc/modules/audio_processing/agc2/rnn_vad/ |
D | rnn.cc | 66 std::vector<float> GetScaledParams(rtc::ArrayView<const int8_t> params) { in GetScaledParams() 79 rtc::ArrayView<const int8_t> weights, in GetPreprocessedFcWeights() 103 rtc::ArrayView<const int8_t> tensor_src, in GetPreprocessedGruTensor() 127 rtc::ArrayView<const float> weights, in ComputeGruUpdateResetGates() 128 rtc::ArrayView<const float> recurrent_weights, in ComputeGruUpdateResetGates() 129 rtc::ArrayView<const float> bias, in ComputeGruUpdateResetGates() 130 rtc::ArrayView<const float> input, in ComputeGruUpdateResetGates() 131 rtc::ArrayView<const float> state, in ComputeGruUpdateResetGates() 132 rtc::ArrayView<float> gate) { in ComputeGruUpdateResetGates() 147 rtc::ArrayView<const float> weights, in ComputeGruOutputGate() [all …]
|
D | spectral_features_internal.h | 58 rtc::ArrayView<const float> x, 59 rtc::ArrayView<float, kOpusBands24kHz> auto_corr) const; 67 rtc::ArrayView<const float> x, 68 rtc::ArrayView<const float> y, 69 rtc::ArrayView<float, kOpusBands24kHz> cross_corr) const; 80 rtc::ArrayView<const float> bands_energy, 81 rtc::ArrayView<float, kNumBands> log_bands_energy); 93 void ComputeDct(rtc::ArrayView<const float> in, 94 rtc::ArrayView<const float, kNumBands * kNumBands> dct_table, 95 rtc::ArrayView<float> out);
|
D | spectral_features.h | 43 rtc::ArrayView<const float, kFrameSize20ms24kHz> reference_frame, 44 rtc::ArrayView<const float, kFrameSize20ms24kHz> lagged_frame, 45 rtc::ArrayView<float, kNumBands - kNumLowerBands> higher_bands_cepstrum, 46 rtc::ArrayView<float, kNumLowerBands> average, 47 rtc::ArrayView<float, kNumLowerBands> first_derivative, 48 rtc::ArrayView<float, kNumLowerBands> second_derivative, 49 rtc::ArrayView<float, kNumLowerBands> bands_cross_corr, 54 rtc::ArrayView<float, kNumLowerBands> average, 55 rtc::ArrayView<float, kNumLowerBands> first_derivative, 56 rtc::ArrayView<float, kNumLowerBands> second_derivative) const; [all …]
|
D | pitch_search_internal.h | 26 void Decimate2x(rtc::ArrayView<const float, kBufSize24kHz> src, 27 rtc::ArrayView<float, kBufSize12kHz> dst); 49 rtc::ArrayView<const float, kBufSize24kHz> pitch_buf, 50 rtc::ArrayView<float, kMaxPitch24kHz + 1> yy_values); 56 rtc::ArrayView<const float> auto_corr, 57 rtc::ArrayView<const float> pitch_buf, 64 rtc::ArrayView<const float, kBufSize24kHz> pitch_buf, 65 rtc::ArrayView<const size_t, 2> inv_lags); 70 rtc::ArrayView<const float, kBufSize24kHz> pitch_buf,
|
D | rnn.h | 45 rtc::ArrayView<const int8_t> bias, 46 rtc::ArrayView<const int8_t> weights, 55 rtc::ArrayView<const float> GetOutput() const; 57 void ComputeOutput(rtc::ArrayView<const float> input); 77 rtc::ArrayView<const int8_t> bias, 78 rtc::ArrayView<const int8_t> weights, 79 rtc::ArrayView<const int8_t> recurrent_weights, 87 rtc::ArrayView<const float> GetOutput() const; 90 void ComputeOutput(rtc::ArrayView<const float> input); 114 rtc::ArrayView<const float, kFeatureVectorSize> feature_vector,
|
D | lp_residual.cc | 31 rtc::ArrayView<const float> x, in ComputeCrossCorrelation() 32 rtc::ArrayView<const float> y, in ComputeCrossCorrelation() 33 rtc::ArrayView<float, kNumLpcCoefficients> x_corr) { in ComputeCrossCorrelation() 45 rtc::ArrayView<float, kNumLpcCoefficients> auto_corr) { in DenoiseAutoCorrelation() 56 rtc::ArrayView<const float, kNumLpcCoefficients> auto_corr, in ComputeInitialInverseFilterCoefficients() 57 rtc::ArrayView<float, kNumLpcCoefficients - 1> lpc_coeffs) { in ComputeInitialInverseFilterCoefficients() 91 rtc::ArrayView<const float> x, in ComputeAndPostProcessLpcCoefficients() 92 rtc::ArrayView<float, kNumLpcCoefficients> lpc_coeffs) { in ComputeAndPostProcessLpcCoefficients() 118 rtc::ArrayView<const float, kNumLpcCoefficients> lpc_coeffs, in ComputeLpResidual() 119 rtc::ArrayView<const float> x, in ComputeLpResidual() [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_header_extensions.h | 36 static bool Parse(rtc::ArrayView<const uint8_t> data, uint32_t* time_24bits); 38 static bool Write(rtc::ArrayView<uint8_t> data, uint32_t time_24bits); 55 static bool Parse(rtc::ArrayView<const uint8_t> data, 58 static bool Write(rtc::ArrayView<uint8_t> data, 69 static bool Parse(rtc::ArrayView<const uint8_t> data, 75 static bool Write(rtc::ArrayView<uint8_t> data, 87 static bool Parse(rtc::ArrayView<const uint8_t> data, int32_t* rtp_time); 89 static bool Write(rtc::ArrayView<uint8_t> data, int32_t rtp_time); 100 static bool Parse(rtc::ArrayView<const uint8_t> data, 105 static bool Write(rtc::ArrayView<uint8_t> data, [all …]
|
D | video_rtp_depacketizer_av1_unittest.cc | 120 rtc::ArrayView<const uint8_t> payloads[] = {payload1}; in TEST() 123 rtc::ArrayView<const uint8_t> frame_view(*frame); in TEST() 135 rtc::ArrayView<const uint8_t> payloads[] = {payload1}; in TEST() 138 rtc::ArrayView<const uint8_t> frame_view(*frame); in TEST() 149 rtc::ArrayView<const uint8_t> payloads[] = {payload1}; in TEST() 152 rtc::ArrayView<const uint8_t> frame_view(*frame); in TEST() 166 rtc::ArrayView<const uint8_t> payloads[] = {payload1}; in TEST() 169 rtc::ArrayView<const uint8_t> frame_view(*frame); in TEST() 178 rtc::ArrayView<const uint8_t> payloads[] = {payload1}; in TEST() 181 EXPECT_THAT(rtc::ArrayView<const uint8_t>(*frame), in TEST() [all …]
|
/external/webrtc/modules/audio_processing/ns/ |
D | noise_suppressor.cc | 72 void ApplyFilterBankWindow(rtc::ArrayView<float, kFftSize> x) { in ApplyFilterBankWindow() 84 void FormExtendedFrame(rtc::ArrayView<const float, kNsFrameSize> frame, in FormExtendedFrame() 85 rtc::ArrayView<float, kFftSize - kNsFrameSize> old_data, in FormExtendedFrame() 86 rtc::ArrayView<float, kFftSize> extended_frame) { in FormExtendedFrame() 95 void OverlapAndAdd(rtc::ArrayView<const float, kFftSize> extended_frame, in OverlapAndAdd() 96 rtc::ArrayView<float, kOverlapSize> overlap_memory, in OverlapAndAdd() 97 rtc::ArrayView<float, kNsFrameSize> output_frame) { in OverlapAndAdd() 109 void DelaySignal(rtc::ArrayView<const float, kNsFrameSize> frame, in DelaySignal() 110 rtc::ArrayView<float, kFftSize - kNsFrameSize> delay_buffer, in DelaySignal() 111 rtc::ArrayView<float, kNsFrameSize> delayed_frame) { in DelaySignal() [all …]
|
D | noise_estimator.h | 34 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum, 39 rtc::ArrayView<const float> speech_probability, 40 rtc::ArrayView<const float, kFftSizeBy2Plus1> signal_spectrum); 43 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_noise_spectrum() const { in get_noise_spectrum() 48 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_prev_noise_spectrum() in get_prev_noise_spectrum() 54 rtc::ArrayView<const float, kFftSizeBy2Plus1> get_parametric_noise_spectrum() in get_parametric_noise_spectrum() 58 rtc::ArrayView<const float, kFftSizeBy2Plus1>
|
D | fast_math.h | 23 void LogApproximation(rtc::ArrayView<const float> x, rtc::ArrayView<float> y); 33 void ExpApproximation(rtc::ArrayView<const float> x, rtc::ArrayView<float> y); 34 void ExpApproximationSignFlip(rtc::ArrayView<const float> x, 35 rtc::ArrayView<float> y);
|
D | ns_fft.h | 29 void Fft(rtc::ArrayView<float, kFftSize> time_data, 30 rtc::ArrayView<float, kFftSize> real, 31 rtc::ArrayView<float, kFftSize> imag); 34 void Ifft(rtc::ArrayView<const float> real, 35 rtc::ArrayView<const float> imag, 36 rtc::ArrayView<float> time_data);
|
/external/webrtc/modules/audio_processing/aec3/ |
D | suppression_gain.h | 40 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 42 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> echo_spectrum, 43 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 45 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 59 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> echo_spectrum, 60 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 75 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 77 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> residual_echo, 78 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> comfort_noise, 81 void GetMinGain(rtc::ArrayView<const float> weighted_residual_echo, [all …]
|
D | matched_filter.h | 36 rtc::ArrayView<const float> x, 37 rtc::ArrayView<const float> y, 38 rtc::ArrayView<float> h, 50 rtc::ArrayView<const float> x, 51 rtc::ArrayView<const float> y, 52 rtc::ArrayView<float> h, 62 rtc::ArrayView<const float> x, 63 rtc::ArrayView<const float> y, 64 rtc::ArrayView<float> h, 101 rtc::ArrayView<const float> capture); [all …]
|
D | signal_dependent_erle_estimator.h | 40 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle() const { in Erle() 48 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 50 rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 51 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 52 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2, 53 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> average_erle, 63 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 67 rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 68 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 69 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2, [all …]
|
D | erle_estimator.h | 47 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 49 rtc::ArrayView<const float, kFftLengthBy2Plus1> 51 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 53 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 58 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle() const { in Erle() 66 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleOnsets() in ErleOnsets() 81 rtc::ArrayView<const absl::optional<float>> GetInstLinearQualityEstimates() in GetInstLinearQualityEstimates()
|
D | aec_state.h | 63 void GetResidualEchoScaling(rtc::ArrayView<float> residual_scaling) const; 72 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle() const { in Erle() 121 rtc::ArrayView<const float> GetReverbFrequencyResponse() const { in GetReverbFrequencyResponse() 135 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 137 rtc::ArrayView<const std::vector<float>> 140 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2_refined, 141 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 142 rtc::ArrayView<const SubtractorOutput> subtractor_output); 199 rtc::ArrayView<const int> DirectPathFilterDelays() const { in DirectPathFilterDelays() 209 rtc::ArrayView<const int> analyzer_filter_delay_estimates_blocks, [all …]
|
D | echo_remover.cc | 71 void SignalTransition(rtc::ArrayView<const float> from, in SignalTransition() 72 rtc::ArrayView<const float> to, in SignalTransition() 73 rtc::ArrayView<float> out) { in SignalTransition() 98 rtc::ArrayView<const float> v, in WindowedPaddedFft() 99 rtc::ArrayView<float> v_old, in WindowedPaddedFft() 140 rtc::ArrayView<float> output); 270 rtc::ArrayView<std::array<float, kFftLengthBy2>> e(e_stack.data(), in ProcessCapture() 272 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> Y2( in ProcessCapture() 274 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> E2( in ProcessCapture() 276 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2( in ProcessCapture() [all …]
|
/external/webrtc/modules/audio_coding/codecs/cng/ |
D | cng_unittest.cc | 63 EXPECT_EQ(0U, cng_encoder.Encode(rtc::ArrayView<const int16_t>( in TestCngEncode() 68 rtc::ArrayView<const int16_t>(speech_data_, num_samples_10ms), in TestCngEncode() 99 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_, 641), in TEST_F() 136 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_, 160), in TEST_F() 146 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_, 160), in TEST_F() 150 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_ + 160, 160), in TEST_F() 153 rtc::ArrayView<const uint8_t>(sid_data.data(), kCNGNumParamsNormal + 1)); in TEST_F() 165 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_, 160), in TEST_F() 193 cng_encoder.Encode(rtc::ArrayView<const int16_t>(speech_data_, 160), in TEST_F() 200 EXPECT_TRUE(cng_decoder.Generate(rtc::ArrayView<int16_t>(out_data, 640), 1)); in TEST_F() [all …]
|
/external/webrtc/modules/audio_processing/ |
D | three_band_filter_bank.cc | 106 rtc::ArrayView<const float, kFilterSize> filter, in FilterCore() 107 rtc::ArrayView<const float, ThreeBandFilterBank::kSplitBandSize> in, in FilterCore() 109 rtc::ArrayView<float, ThreeBandFilterBank::kSplitBandSize> out, in FilterCore() 110 rtc::ArrayView<float, kMemorySize> state) { in FilterCore() 173 rtc::ArrayView<const float, kFullBandSize> in, in Analysis() 174 rtc::ArrayView<const rtc::ArrayView<float>, ThreeBandFilterBank::kNumBands> in Analysis() 202 rtc::ArrayView<const float, kFilterSize> filter( in Analysis() 204 rtc::ArrayView<const float, kDctSize> dct_modulation( in Analysis() 206 rtc::ArrayView<float, kMemorySize> state(state_analysis_[filter_index]); in Analysis() 229 rtc::ArrayView<const rtc::ArrayView<float>, ThreeBandFilterBank::kNumBands> in Synthesis() [all …]
|
/external/webrtc/common_audio/ |
D | channel_buffer.h | 55 std::vector<rtc::ArrayView<T>>(num_bands_)), in data_() 58 std::vector<rtc::ArrayView<T>>(num_allocated_channels_)) { in data_() 61 const_cast<std::vector<std::vector<rtc::ArrayView<T>>>*>(&bands_view_); in data_() 63 const_cast<std::vector<std::vector<rtc::ArrayView<T>>>*>( in data_() 68 (*channels_view)[band][ch] = rtc::ArrayView<T>( in data_() 101 rtc::ArrayView<const rtc::ArrayView<T>> channels_view(size_t band = 0) { 104 rtc::ArrayView<const rtc::ArrayView<T>> channels_view(size_t band = 0) const { 125 rtc::ArrayView<const rtc::ArrayView<T>> bands_view(size_t channel) { in bands_view() 128 rtc::ArrayView<const rtc::ArrayView<T>> bands_view(size_t channel) const { in bands_view() 172 const std::vector<std::vector<rtc::ArrayView<T>>> bands_view_; [all …]
|
/external/webrtc/modules/audio_mixer/ |
D | gain_change_calculator.h | 25 float CalculateGainChange(rtc::ArrayView<const int16_t> in, 26 rtc::ArrayView<const int16_t> out); 31 void CalculateGain(rtc::ArrayView<const int16_t> in, 32 rtc::ArrayView<const int16_t> out, 33 rtc::ArrayView<float> gain); 35 float CalculateDifferences(rtc::ArrayView<const float> values);
|