/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 | 149 class ArrayView final : public array_view_internal::ArrayViewBase<T, Size> { 156 ArrayView(U* data, size_t size) in ArrayView() function 166 ArrayView() : ArrayView(nullptr, 0) {} in ArrayView() function 167 ArrayView(std::nullptr_t) // NOLINT in ArrayView() function 168 : ArrayView() {} in ArrayView() 169 ArrayView(std::nullptr_t, size_t size) in ArrayView() function 170 : ArrayView(static_cast<T*>(nullptr), size) { in ArrayView() 178 ArrayView(U (&array)[N]) // NOLINT in ArrayView() function 179 : ArrayView(array, N) { in ArrayView() 191 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 | 73 void EncodeAlrState(rtc::ArrayView<const RtcEventAlrState*> batch, 76 rtc::ArrayView<const RtcEventAudioNetworkAdaptation*> batch, 78 void EncodeAudioPlayout(rtc::ArrayView<const RtcEventAudioPlayout*> batch, 81 rtc::ArrayView<const RtcEventAudioReceiveStreamConfig*> batch, 84 rtc::ArrayView<const RtcEventAudioSendStreamConfig*> batch, 87 rtc::ArrayView<const RtcEventBweUpdateDelayBased*> batch, 90 rtc::ArrayView<const RtcEventBweUpdateLossBased*> batch, 93 rtc::ArrayView<const RtcEventDtlsTransportState*> batch, 96 rtc::ArrayView<const RtcEventDtlsWritableState*> batch, 99 rtc::ArrayView<const RtcEventFrameDecoded* const> batch, [all …]
|
/external/webrtc/modules/audio_processing/aec3/ |
D | matched_filter.h | 37 rtc::ArrayView<const float> x, 38 rtc::ArrayView<const float> y, 39 rtc::ArrayView<float> h, 43 rtc::ArrayView<float> accumulated_error, 44 rtc::ArrayView<float> scratch_memory); 54 rtc::ArrayView<const float> x, 55 rtc::ArrayView<const float> y, 56 rtc::ArrayView<float> h, 60 rtc::ArrayView<float> accumulated_error, 61 rtc::ArrayView<float> scratch_memory); [all …]
|
D | suppression_gain.h | 44 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 46 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> echo_spectrum, 47 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 49 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 51 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 70 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> echo_spectrum, 71 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 86 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 88 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> residual_echo, 89 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> comfort_noise, [all …]
|
D | signal_dependent_erle_estimator.h | 40 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle( in Erle() 50 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 52 rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 53 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 54 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2, 55 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> average_erle, 56 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> 67 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 71 rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 72 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, [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() 143 rtc::ArrayView<float> output); 274 rtc::ArrayView<std::array<float, kFftLengthBy2>> e(e_stack.data(), in ProcessCapture() 276 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> Y2( in ProcessCapture() 278 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> E2( in ProcessCapture() 280 rtc::ArrayView<std::array<float, kFftLengthBy2Plus1>> R2( in ProcessCapture() [all …]
|
D | aec_state.h | 65 void GetResidualEchoScaling(rtc::ArrayView<float> residual_scaling) const; 74 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle( in Erle() 80 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleUnbounded() in ErleUnbounded() 128 rtc::ArrayView<const float> GetReverbFrequencyResponse() const { in GetReverbFrequencyResponse() 142 rtc::ArrayView<const std::vector<std::array<float, kFftLengthBy2Plus1>>> 144 rtc::ArrayView<const std::vector<float>> 147 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2_refined, 148 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 149 rtc::ArrayView<const SubtractorOutput> subtractor_output); 205 rtc::ArrayView<const int> DirectPathFilterDelays() const { in DirectPathFilterDelays() [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( in Erle() 66 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleUnbounded() in ErleUnbounded() 79 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleDuringOnsets() in ErleDuringOnsets() 94 rtc::ArrayView<const absl::optional<float>> GetInstLinearQualityEstimates() in GetInstLinearQualityEstimates()
|
D | subband_erle_estimator.h | 38 void Update(rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 39 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 40 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2, 44 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Erle( in Erle() 51 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleUnbounded() in ErleUnbounded() 57 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> ErleDuringOnsets() in ErleDuringOnsets() 78 rtc::ArrayView<const float, kFftLengthBy2Plus1> X2, 79 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> Y2, 80 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> E2,
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_header_extensions.h | 41 static bool Parse(rtc::ArrayView<const uint8_t> data, uint32_t* time_24bits); 43 static bool Write(rtc::ArrayView<uint8_t> data, uint32_t time_24bits); 65 static bool Parse(rtc::ArrayView<const uint8_t> data, 68 static bool Write(rtc::ArrayView<uint8_t> data, 80 static bool Parse(rtc::ArrayView<const uint8_t> data, 86 static bool Write(rtc::ArrayView<uint8_t> data, 99 static bool Parse(rtc::ArrayView<const uint8_t> data, 101 static size_t ValueSize(rtc::ArrayView<const uint8_t> csrc_audio_levels); 102 static bool Write(rtc::ArrayView<uint8_t> data, 103 rtc::ArrayView<const uint8_t> csrc_audio_levels); [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 …]
|
D | rtp_header_extensions.cc | 46 bool AbsoluteSendTime::Parse(rtc::ArrayView<const uint8_t> data, in Parse() 54 bool AbsoluteSendTime::Write(rtc::ArrayView<uint8_t> data, in Write() 102 bool AbsoluteCaptureTimeExtension::Parse(rtc::ArrayView<const uint8_t> data, in Parse() 129 bool AbsoluteCaptureTimeExtension::Write(rtc::ArrayView<uint8_t> data, in Write() 167 bool AudioLevel::Parse(rtc::ArrayView<const uint8_t> data, in Parse() 178 bool AudioLevel::Write(rtc::ArrayView<uint8_t> data, in Write() 212 bool CsrcAudioLevel::Parse(rtc::ArrayView<const uint8_t> data, in Parse() 225 rtc::ArrayView<const uint8_t> csrc_audio_levels) { in ValueSize() 229 bool CsrcAudioLevel::Write(rtc::ArrayView<uint8_t> data, in Write() 230 rtc::ArrayView<const uint8_t> csrc_audio_levels) { in Write() [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>
|
/external/webrtc/modules/audio_processing/agc2/rnn_vad/ |
D | rnn_gru.cc | 24 std::vector<float> PreprocessGruTensor(rtc::ArrayView<const int8_t> tensor_src, in PreprocessGruTensor() 57 rtc::ArrayView<const float> input, in ComputeUpdateResetGate() 58 rtc::ArrayView<const float> state, in ComputeUpdateResetGate() 59 rtc::ArrayView<const float> bias, in ComputeUpdateResetGate() 60 rtc::ArrayView<const float> weights, in ComputeUpdateResetGate() 61 rtc::ArrayView<const float> recurrent_weights, in ComputeUpdateResetGate() 62 rtc::ArrayView<float> gate) { in ComputeUpdateResetGate() 93 rtc::ArrayView<const float> input, in ComputeStateGate() 94 rtc::ArrayView<const float> update, in ComputeStateGate() 95 rtc::ArrayView<const float> reset, in ComputeStateGate() [all …]
|
D | pitch_search_internal.h | 27 void Decimate2x(rtc::ArrayView<const float, kBufSize24kHz> src, 28 rtc::ArrayView<float, kBufSize12kHz> dst); 68 rtc::ArrayView<const float, kBufSize24kHz> pitch_buffer, 69 rtc::ArrayView<float, kRefineNumLags24kHz> y_energy, 82 rtc::ArrayView<const float, kBufSize12kHz> pitch_buffer, 83 rtc::ArrayView<const float, kNumLags12kHz> auto_correlation, 90 rtc::ArrayView<const float, kBufSize24kHz> pitch_buffer, 91 rtc::ArrayView<const float, kRefineNumLags24kHz> y_energy, 105 rtc::ArrayView<const float, kBufSize24kHz> pitch_buffer, 106 rtc::ArrayView<const float, kRefineNumLags24kHz> y_energy,
|
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 | test_utils.h | 32 void ExpectEqualFloatArray(rtc::ArrayView<const float> expected, 33 rtc::ArrayView<const float> computed); 37 void ExpectNearAbsolute(rtc::ArrayView<const float> expected, 38 rtc::ArrayView<const float> computed, 52 virtual bool ReadChunk(rtc::ArrayView<float> dst) = 0; 93 rtc::ArrayView<const float, kBufSize24kHz> PitchBuffer24kHzView() const { in PitchBuffer24kHzView() 96 rtc::ArrayView<const float, kRefineNumLags24kHz> SquareEnergies24kHzView() in SquareEnergies24kHzView() 100 rtc::ArrayView<const float, kNumLags12kHz> AutoCorrelation12kHzView() const { in AutoCorrelation12kHzView() 118 void WriteChunk(rtc::ArrayView<const float> value) { in WriteChunk()
|
/external/rust/beto-rust/nearby/presence/array_view/src/ |
D | lib.rs | 32 pub struct ArrayView<T, const N: usize> { struct 38 impl<T: fmt::Debug, const N: usize> fmt::Debug for ArrayView<T, N> { argument 44 impl<T, const N: usize> ArrayView<T, N> { implementation 48 pub fn try_from_array(array: [T; N], len: usize) -> Option<ArrayView<T, N>> { in try_from_array() 52 Some(ArrayView { array, len }) 72 impl<T: Default + Copy, const N: usize> ArrayView<T, N> { implementation 75 pub fn try_from_slice(slice: &[T]) -> Option<ArrayView<T, N>> { in try_from_slice() 81 Some(ArrayView { in try_from_slice() 89 impl<T, const N: usize> AsRef<[T]> for ArrayView<T, N> { implementation 95 impl<T, const N: usize> borrow::Borrow<[T]> for ArrayView<T, N> { implementation [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/logging/rtc_event_log/events/ |
D | rtc_event_field_encoding_parser.h | 103 rtc::ArrayView<uint64_t> values; 104 rtc::ArrayView<uint8_t> positions; 118 RtcEventLogParseStatusOr<rtc::ArrayView<absl::string_view>> ParseStringField( 121 RtcEventLogParseStatusOr<rtc::ArrayView<uint64_t>> ParseNumericField( 160 rtc::ArrayView<uint64_t> GetValues() { return values_; } in GetValues() 161 rtc::ArrayView<uint8_t> GetPositions() { return positions_; } in GetPositions() 162 rtc::ArrayView<absl::string_view> GetStrings() { return strings_; } in GetStrings() 192 PopulateRtcEventMember(const rtc::ArrayView<uint64_t> values, in PopulateRtcEventMember() 194 rtc::ArrayView<E> output) { in PopulateRtcEventMember() 208 PopulateRtcEventMember(const rtc::ArrayView<uint8_t> positions, in PopulateRtcEventMember() [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() 230 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 …]
|