Home
last modified time | relevance | path

Searched refs:opus_encoder_ (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/modules/audio_coding/codecs/opus/
Dopus_unittest.cc139 WebRtcOpusEncInst* opus_encoder_ = nullptr; member in webrtc::__anon867c4db80111::OpusTest
194 EXPECT_EQ(0, WebRtcOpus_SetMaxPlaybackRate(opus_encoder_, set)); in SetMaxPlaybackRate()
195 EXPECT_EQ(0, WebRtcOpus_GetMaxPlaybackRate(opus_encoder_, &bandwidth)); in SetMaxPlaybackRate()
256 CreateSingleOrMultiStreamEncoder(&opus_encoder_, channels_, application_, in TestDtxEffect()
263 0, WebRtcOpus_SetBitRate(opus_encoder_, channels_ == 1 ? 32000 : 64000)); in TestDtxEffect()
269 EXPECT_EQ(0, dtx ? WebRtcOpus_EnableDtx(opus_encoder_) in TestDtxEffect()
270 : WebRtcOpus_DisableDtx(opus_encoder_)); in TestDtxEffect()
278 opus_encoder_, speech_data_.GetNextBlock(), opus_decoder_, in TestDtxEffect()
284 EXPECT_EQ(0, opus_encoder_->in_dtx_mode); in TestDtxEffect()
294 opus_encoder_, silence, opus_decoder_, in TestDtxEffect()
[all …]
Dopus_speed_test.cc33 WebRtcOpusEncInst* opus_encoder_; member in webrtc::OpusSpeedTest
41 opus_encoder_(NULL), in OpusSpeedTest()
49 EXPECT_EQ(0, WebRtcOpus_EncoderCreate(&opus_encoder_, channels_, app, 48000)); in SetUp()
52 EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_encoder_, bit_rate_)); in SetUp()
58 EXPECT_EQ(0, WebRtcOpus_EncoderFree(opus_encoder_)); in TearDown()
67 int value = WebRtcOpus_Encode(opus_encoder_, in_data, input_length_sample_, in EncodeABlock()
95 EXPECT_EQ(0, WebRtcOpus_SetComplexity(opus_encoder_, complexity)); \
115 EXPECT_EQ(0, WebRtcOpus_SetBandwidth(opus_encoder_, bandwidth)); \
Dopus_fec_test.cc59 WebRtcOpusEncInst* opus_encoder_; member in webrtc::OpusFecTest
111 EXPECT_EQ(0, WebRtcOpus_EncoderCreate(&opus_encoder_, channels_, app, 48000)); in SetUp()
114 EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_encoder_, bit_rate_)); in SetUp()
119 EXPECT_EQ(0, WebRtcOpus_EncoderFree(opus_encoder_)); in TearDown()
131 opus_encoder_(NULL), in OpusFecTest()
136 WebRtcOpus_Encode(opus_encoder_, &in_data_[data_pointer_], in EncodeABlock()
184 EXPECT_EQ(0, WebRtcOpus_EnableFec(opus_encoder_)); in TEST_P()
186 opus_encoder_, mode_set[i].target_packet_loss_rate)); in TEST_P()
190 EXPECT_EQ(0, WebRtcOpus_DisableFec(opus_encoder_)); in TEST_P()
/external/webrtc/modules/audio_coding/neteq/test/
Dneteq_opus_quality_test.cc57 WebRtcOpusEncInst* opus_encoder_; member in webrtc::test::NetEqOpusQualityTest
75 opus_encoder_(NULL), in NetEqOpusQualityTest()
117 WebRtcOpus_EncoderCreate(&opus_encoder_, channels_, application_, 48000); in SetUp()
118 ASSERT_TRUE(opus_encoder_); in SetUp()
125 EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_encoder_, bit_rate_kbps_ * 1000)); in SetUp()
127 EXPECT_EQ(0, WebRtcOpus_EnableFec(opus_encoder_)); in SetUp()
130 EXPECT_EQ(0, WebRtcOpus_EnableDtx(opus_encoder_)); in SetUp()
132 EXPECT_EQ(0, WebRtcOpus_SetComplexity(opus_encoder_, complexity_)); in SetUp()
133 EXPECT_EQ(0, WebRtcOpus_SetMaxPlaybackRate(opus_encoder_, maxplaybackrate_)); in SetUp()
134 EXPECT_EQ(0, WebRtcOpus_SetPacketLossRate(opus_encoder_, target_loss_rate_)); in SetUp()
[all …]