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

Side by Side Diff: webrtc/modules/audio_coding/codecs/ilbc/audio_decoder_ilbc.h

Issue 2342443005: Moved Opus-specific payload splitting into AudioDecoderOpus. (Closed)
Patch Set: Created 4 years, 3 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
(...skipping 10 matching lines...) Expand all
21 namespace webrtc { 21 namespace webrtc {
22 22
23 class AudioDecoderIlbc final : public AudioDecoder { 23 class AudioDecoderIlbc final : public AudioDecoder {
24 public: 24 public:
25 AudioDecoderIlbc(); 25 AudioDecoderIlbc();
26 ~AudioDecoderIlbc() override; 26 ~AudioDecoderIlbc() override;
27 bool HasDecodePlc() const override; 27 bool HasDecodePlc() const override;
28 size_t DecodePlc(size_t num_frames, int16_t* decoded) override; 28 size_t DecodePlc(size_t num_frames, int16_t* decoded) override;
29 void Reset() override; 29 void Reset() override;
30 std::vector<ParseResult> ParsePayload(rtc::Buffer* payload, 30 std::vector<ParseResult> ParsePayload(rtc::Buffer* payload,
31 uint32_t timestamp, 31 uint32_t timestamp) override;
32 bool is_primary) override;
33 int SampleRateHz() const override; 32 int SampleRateHz() const override;
34 size_t Channels() const override; 33 size_t Channels() const override;
35 34
36 protected: 35 protected:
37 int DecodeInternal(const uint8_t* encoded, 36 int DecodeInternal(const uint8_t* encoded,
38 size_t encoded_len, 37 size_t encoded_len,
39 int sample_rate_hz, 38 int sample_rate_hz,
40 int16_t* decoded, 39 int16_t* decoded,
41 SpeechType* speech_type) override; 40 SpeechType* speech_type) override;
42 41
43 private: 42 private:
44 IlbcDecoderInstance* dec_state_; 43 IlbcDecoderInstance* dec_state_;
45 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderIlbc); 44 RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderIlbc);
46 }; 45 };
47 46
48 } // namespace webrtc 47 } // namespace webrtc
49 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_AUDIO_DECODER_ILBC_H_ 48 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_AUDIO_DECODER_ILBC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698