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

Side by Side Diff: webrtc/modules/utility/source/coder.h

Issue 1677013002: Switch to using new ACM methods for encoder management (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@acm-13
Patch Set: DCHECKs Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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_UTILITY_SOURCE_CODER_H_ 11 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_CODER_H_
12 #define WEBRTC_MODULES_UTILITY_SOURCE_CODER_H_ 12 #define WEBRTC_MODULES_UTILITY_SOURCE_CODER_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/common_types.h" 16 #include "webrtc/common_types.h"
17 #include "webrtc/modules/audio_coding/acm2/codec_manager.h"
18 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h"
17 #include "webrtc/modules/audio_coding/include/audio_coding_module.h" 19 #include "webrtc/modules/audio_coding/include/audio_coding_module.h"
18 #include "webrtc/typedefs.h" 20 #include "webrtc/typedefs.h"
19 21
20 namespace webrtc { 22 namespace webrtc {
21 class AudioFrame; 23 class AudioFrame;
22 24
23 class AudioCoder : public AudioPacketizationCallback 25 class AudioCoder : public AudioPacketizationCallback
24 { 26 {
25 public: 27 public:
26 AudioCoder(uint32_t instanceID); 28 AudioCoder(uint32_t instanceID);
(...skipping 14 matching lines...) Expand all
41 protected: 43 protected:
42 int32_t SendData(FrameType frameType, 44 int32_t SendData(FrameType frameType,
43 uint8_t payloadType, 45 uint8_t payloadType,
44 uint32_t timeStamp, 46 uint32_t timeStamp,
45 const uint8_t* payloadData, 47 const uint8_t* payloadData,
46 size_t payloadSize, 48 size_t payloadSize,
47 const RTPFragmentationHeader* fragmentation) override; 49 const RTPFragmentationHeader* fragmentation) override;
48 50
49 private: 51 private:
50 std::unique_ptr<AudioCodingModule> _acm; 52 std::unique_ptr<AudioCodingModule> _acm;
53 acm2::CodecManager codec_manager_;
54 acm2::RentACodec rent_a_codec_;
51 55
52 CodecInst _receiveCodec; 56 CodecInst _receiveCodec;
53 57
54 uint32_t _encodeTimestamp; 58 uint32_t _encodeTimestamp;
55 int8_t* _encodedData; 59 int8_t* _encodedData;
56 size_t _encodedLengthInBytes; 60 size_t _encodedLengthInBytes;
57 61
58 uint32_t _decodeTimestamp; 62 uint32_t _decodeTimestamp;
59 }; 63 };
60 } // namespace webrtc 64 } // namespace webrtc
61 65
62 #endif // WEBRTC_MODULES_UTILITY_SOURCE_CODER_H_ 66 #endif // WEBRTC_MODULES_UTILITY_SOURCE_CODER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.cc ('k') | webrtc/modules/utility/source/coder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698