Home
last modified time | relevance | path

Searched refs:AudioEncoderOpus (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_opus.cc26 AudioEncoderOpus::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig()
27 AudioEncoderOpus::Config config; in CreateConfig()
32 config.application = config.num_channels == 1 ? AudioEncoderOpus::kVoip in CreateConfig()
33 : AudioEncoderOpus::kAudio; in CreateConfig()
79 bool AudioEncoderOpus::Config::IsOk() const { in IsOk()
91 AudioEncoderOpus::AudioEncoderOpus(const Config& config) in AudioEncoderOpus() function in webrtc::AudioEncoderOpus
96 AudioEncoderOpus::AudioEncoderOpus(const CodecInst& codec_inst) in AudioEncoderOpus() function in webrtc::AudioEncoderOpus
97 : AudioEncoderOpus(CreateConfig(codec_inst)) {} in AudioEncoderOpus()
99 AudioEncoderOpus::~AudioEncoderOpus() { in ~AudioEncoderOpus()
103 size_t AudioEncoderOpus::MaxEncodedBytes() const { in MaxEncodedBytes()
[all …]
Daudio_encoder_opus_unittest.cc27 encoder_.reset(new AudioEncoderOpus(codec_inst_)); in CreateCodec()
29 num_channels == 1 ? AudioEncoderOpus::kVoip : AudioEncoderOpus::kAudio; in CreateCodec()
34 rtc::scoped_ptr<AudioEncoderOpus> encoder_;
48 EXPECT_EQ(AudioEncoderOpus::kVoip, encoder_->application()); in TEST_F()
57 EXPECT_EQ(AudioEncoderOpus::kAudio, encoder_->application()); in TEST_F()
61 EXPECT_EQ(AudioEncoderOpus::kVoip, encoder_->application()); in TEST_F()
66 EXPECT_EQ(AudioEncoderOpus::kVoip, encoder_->application()); in TEST_F()
74 EXPECT_EQ(AudioEncoderOpus::kAudio, encoder_->application()); in TEST_F()
119 void TestSetPacketLossRate(AudioEncoderOpus* encoder, in TestSetPacketLossRate()
Daudio_encoder_opus.h24 class AudioEncoderOpus final : public AudioEncoder {
53 explicit AudioEncoderOpus(const Config& config);
54 explicit AudioEncoderOpus(const CodecInst& codec_inst);
55 ~AudioEncoderOpus() override;
97 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus);
/external/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_decoder_unittest.cc455 AudioEncoderOpus::Config config; in AudioDecoderOpusTest()
458 config.application = AudioEncoderOpus::kVoip; in AudioDecoderOpusTest()
459 audio_encoder_.reset(new AudioEncoderOpus(config)); in AudioDecoderOpusTest()
469 AudioEncoderOpus::Config config; in AudioDecoderOpusStereoTest()
473 config.application = AudioEncoderOpus::kAudio; in AudioDecoderOpusStereoTest()
474 audio_encoder_.reset(new AudioEncoderOpus(config)); in AudioDecoderOpusStereoTest()
/external/webrtc/webrtc/modules/audio_coding/acm2/
Drent_a_codec.cc160 return rtc_make_scoped_ptr(new AudioEncoderOpus(speech_inst)); in CreateEncoder()