OLD | NEW |
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_API_AUDIO_CODECS_AUDIO_ENCODER_H_ | 11 #ifndef WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ |
12 #define WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ | 12 #define WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ |
13 | 13 |
14 #include <algorithm> | 14 #include <algorithm> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/rtc_base/array_view.h" | 19 #include "webrtc/api/array_view.h" |
20 #include "webrtc/rtc_base/buffer.h" | 20 #include "webrtc/rtc_base/buffer.h" |
21 #include "webrtc/rtc_base/deprecation.h" | 21 #include "webrtc/rtc_base/deprecation.h" |
22 #include "webrtc/rtc_base/optional.h" | 22 #include "webrtc/rtc_base/optional.h" |
23 #include "webrtc/typedefs.h" | 23 #include "webrtc/typedefs.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 class Clock; | 27 class Clock; |
28 class RtcEventLog; | 28 class RtcEventLog; |
29 | 29 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 protected: | 206 protected: |
207 // Subclasses implement this to perform the actual encoding. Called by | 207 // Subclasses implement this to perform the actual encoding. Called by |
208 // Encode(). | 208 // Encode(). |
209 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, | 209 virtual EncodedInfo EncodeImpl(uint32_t rtp_timestamp, |
210 rtc::ArrayView<const int16_t> audio, | 210 rtc::ArrayView<const int16_t> audio, |
211 rtc::Buffer* encoded) = 0; | 211 rtc::Buffer* encoded) = 0; |
212 }; | 212 }; |
213 } // namespace webrtc | 213 } // namespace webrtc |
214 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ | 214 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_ENCODER_H_ |
OLD | NEW |