Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: webrtc/modules/audio_processing/aec3/render_transfer_buffer.h

Issue 2584493002: Added first layer of the echo canceller 3 functionality (Closed)
Patch Set: Restricted the AnalyzeRender access, added ability to add external reporting of echo failure, and o… Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_TRANSFER_BUFFER_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_TRANSFER_BUFFER_H_
13
14 #include <memory>
15 #include <vector>
16
17 #include "webrtc/base/constructormagic.h"
18 #include "webrtc/base/swap_queue.h"
19 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h"
20
21 namespace webrtc {
22
23 // Interface which limits access to the RenderTransferBuffer to write access.
24 class RenderTransferBufferWriter {
25 public:
26 virtual ~RenderTransferBufferWriter() = 0;
aleloi 2016/12/16 15:04:32 For some reason, the style guide says that dtors s
peah-webrtc 2016/12/20 10:10:26 Good find! I have removed this class in the new pa
aleloi 2016/12/20 15:55:35 If someone knows why, please enlighten me! Here's
peah-webrtc 2016/12/21 23:13:49 That makes sense, but I don't know if that is the
27 virtual bool Insert(std::vector<float>* frame) = 0;
28 };
29
30 class RenderTransferBuffer : public RenderTransferBufferWriter {
31 public:
32 RenderTransferBuffer(size_t num_bands, size_t frame_length);
33 ~RenderTransferBuffer() override;
34 bool Insert(std::vector<float>* frame) override;
hlundin-webrtc 2016/12/16 10:04:48 Comment on the fact that frame will be swapped.
peah-webrtc 2016/12/20 10:10:26 have removed this class in the new patch. Done.
35 bool Remove(std::vector<float>* frame);
hlundin-webrtc 2016/12/16 10:04:48 And here.
peah-webrtc 2016/12/20 10:10:26 I have removed this class in the new patch. Done.
36
37 private:
38 static const size_t kQueueSize = 30;
hlundin-webrtc 2016/12/16 10:04:48 constexpr
ivoc 2016/12/19 11:30:22 Move to .cc file?
peah-webrtc 2016/12/20 10:10:26 I have removed this class in the new patch. Done.
peah-webrtc 2016/12/20 10:10:26 I have removed this class in the new patch. Done.
39 SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>> queue_;
40 std::vector<float> frame_;
aleloi 2016/12/16 15:04:31 Will frame_ be used later? It's not used at the mo
peah-webrtc 2016/12/20 10:10:26 Fully true, that should be removed. I have removed
41 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RenderTransferBuffer);
42 };
43
44 } // namespace webrtc
45
46 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RENDER_TRANSFER_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698