Remove unused NonlinearBeamformer interface

Review-Url: https://codereview.webrtc.org/2129663002
Cr-Commit-Position: refs/heads/master@{#13451}
This commit is contained in:
aluebs 2016-07-12 12:43:01 -07:00 committed by Commit bot
parent 59764f32f7
commit 95663fe746
3 changed files with 0 additions and 19 deletions

View File

@ -28,9 +28,6 @@ class MockNonlinearBeamformer : public NonlinearBeamformer {
: NonlinearBeamformer(array_geometry, 1u) {}
MOCK_METHOD2(Initialize, void(int chunk_size_ms, int sample_rate_hz));
// TODO(aluebs): Remove once the dependencies have moved to new API.
MOCK_METHOD2(ProcessChunk, void(const ChannelBuffer<float>& data,
ChannelBuffer<float>* output));
MOCK_METHOD1(AnalyzeChunk, void(const ChannelBuffer<float>& data));
MOCK_METHOD1(PostFilter, void(ChannelBuffer<float>* data));
MOCK_METHOD1(IsInBeam, bool(const SphericalPointf& spherical_point));

View File

@ -421,18 +421,6 @@ void NonlinearBeamformer::PostFilter(ChannelBuffer<float>* data) {
}
}
void NonlinearBeamformer::ProcessChunk(const ChannelBuffer<float>& input,
ChannelBuffer<float>* output) {
RTC_DCHECK_GT(output->num_channels(), 0u);
RTC_DCHECK_EQ(output->num_frames_per_band(), input.num_frames_per_band());
AnalyzeChunk(input);
for (size_t i = 0u; i < input.num_bands(); ++i) {
std::memcpy(output->channels(i)[0], input.channels(i)[0],
sizeof(input.channels(0)[0][0]) * input.num_frames_per_band());
}
PostFilter(output);
}
void NonlinearBeamformer::AimAt(const SphericalPointf& target_direction) {
target_angle_radians_ = target_direction.azimuth();
InitHighFrequencyCorrectionRanges();

View File

@ -78,10 +78,6 @@ class NonlinearBeamformer : public LappedTransform::Callback {
// frames and channels must correspond to the constructor parameters.
virtual void PostFilter(ChannelBuffer<float>* data);
// TODO(aluebs): Remove once the dependencies have moved to new API.
virtual void ProcessChunk(const ChannelBuffer<float>& input,
ChannelBuffer<float>* output);
virtual void AimAt(const SphericalPointf& target_direction);
virtual bool IsInBeam(const SphericalPointf& spherical_point);