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

Side by Side Diff: webrtc/api/audio_codecs/audio_encoder.h

Issue 2799033006: Injectable audio encoders: Moved audio encoder, factory and builtin factory to api/. (Closed)
Patch Set: More backwards-compatibility! Created 3 years, 7 months 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
« no previous file with comments | « webrtc/api/audio_codecs/BUILD.gn ('k') | webrtc/api/audio_codecs/audio_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ 11 #ifndef WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ 12 #define WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <memory>
16 #include <string>
15 #include <vector> 17 #include <vector>
16 18
17 #include "webrtc/base/array_view.h" 19 #include "webrtc/base/array_view.h"
18 #include "webrtc/base/buffer.h" 20 #include "webrtc/base/buffer.h"
19 #include "webrtc/base/deprecation.h" 21 #include "webrtc/base/deprecation.h"
20 #include "webrtc/base/optional.h" 22 #include "webrtc/base/optional.h"
21 #include "webrtc/typedefs.h" 23 #include "webrtc/typedefs.h"
22 24
23 namespace webrtc { 25 namespace webrtc {
24 26
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 int max_frame_length_ms); 204 int max_frame_length_ms);
203 205
204 protected: 206 protected:
205 // Subclasses implement this to perform the actual encoding. Called by 207 // Subclasses implement this to perform the actual encoding. Called by
206 // Encode(). 208 // Encode().
207 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, 209 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
208 rtc::ArrayView<const int16_t> audio, 210 rtc::ArrayView<const int16_t> audio,
209 rtc::Buffer* encoded) = 0; 211 rtc::Buffer* encoded) = 0;
210 }; 212 };
211 } // namespace webrtc 213 } // namespace webrtc
212 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_AUDIO_ENCODER_H_ 214 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/api/audio_codecs/BUILD.gn ('k') | webrtc/api/audio_codecs/audio_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698