Home
last modified time | relevance | path

Searched refs:encoder_ (Results 1 – 25 of 29) sorted by relevance

12

/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_opus_unittest.cc27 encoder_.reset(new AudioEncoderOpus(codec_inst_)); in CreateCodec()
30 EXPECT_EQ(expected_app, encoder_->application()); in CreateCodec()
34 rtc::scoped_ptr<AudioEncoderOpus> encoder_; member in webrtc::AudioEncoderOpusTest
47 EXPECT_TRUE(encoder_->SetApplication(AudioEncoder::Application::kSpeech)); in TEST_F()
48 EXPECT_EQ(AudioEncoderOpus::kVoip, encoder_->application()); in TEST_F()
55 encoder_->Reset(); in TEST_F()
57 EXPECT_EQ(AudioEncoderOpus::kAudio, encoder_->application()); in TEST_F()
60 EXPECT_TRUE(encoder_->SetApplication(AudioEncoder::Application::kSpeech)); in TEST_F()
61 EXPECT_EQ(AudioEncoderOpus::kVoip, encoder_->application()); in TEST_F()
64 encoder_->Reset(); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/
Dsimulcast_unittest.h228 : encoder_(encoder), decoder_(decoder) {} in TestVp8Simulcast()
305 encoder_->RegisterEncodeCompleteCallback(&encoder_callback_); in SetUpCodec()
308 EXPECT_EQ(0, encoder_->InitEncode(&settings_, 1, 1200)); in SetUpCodec()
322 encoder_->Release(); in TearDown()
382 encoder_->SetRates(kMaxBitrates[2], 30); // To get all three streams. in TestKeyFrameRequestsOnAllStreams()
386 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, &frame_types)); in TestKeyFrameRequestsOnAllStreams()
390 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, &frame_types)); in TestKeyFrameRequestsOnAllStreams()
395 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, &frame_types)); in TestKeyFrameRequestsOnAllStreams()
401 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, &frame_types)); in TestKeyFrameRequestsOnAllStreams()
407 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, &frame_types)); in TestKeyFrameRequestsOnAllStreams()
[all …]
/external/libvpx/libvpx/test/
Dencode_test_driver.h54 : encoder_(encoder), iter_(NULL) {} in CxDataIterator()
57 return vpx_codec_get_cx_data(encoder_, &iter_); in Next()
61 vpx_codec_ctx_t *encoder_;
97 memset(&encoder_, 0, sizeof(encoder_)); in Encoder()
101 vpx_codec_destroy(&encoder_); in ~Encoder()
105 return CxDataIterator(&encoder_); in GetCxData()
111 return vpx_codec_get_preview_frame(&encoder_); in GetPreviewFrame()
123 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
128 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
133 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
[all …]
Dencode_test_driver.cc27 if (video->img() && !encoder_.priv) { in InitEncoder()
33 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, in InitEncoder()
41 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS, in InitEncoder()
50 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS, in InitEncoder()
90 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal()
96 res = vpx_codec_encode(&encoder_, img, video.pts(), video.duration(), in EncodeFrameInternal()
102 const vpx_codec_err_t res = vpx_codec_encode(&encoder_, NULL, 0, 0, 0, in Flush()
104 if (!encoder_.priv) in Flush()
/external/webrtc/webrtc/video/
Dvideo_encoder.cc56 encoder_(encoder), in VideoEncoderSoftwareFallbackWrapper()
81 " (fallback from: " + encoder_->ImplementationName() + ")"; in InitFallbackEncoder()
85 encoder_->Release(); in InitFallbackEncoder()
103 encoder_->InitEncode(codec_settings, number_of_cores, max_payload_size); in InitEncode()
109 encoder_->RegisterEncodeCompleteCallback(callback_); in InitEncode()
123 int32_t ret = encoder_->RegisterEncodeCompleteCallback(callback); in RegisterEncodeCompleteCallback()
135 return encoder_->Release(); in Release()
144 int32_t ret = encoder_->Encode(frame, codec_specific_info, frame_types); in Encode()
159 int32_t ret = encoder_->SetChannelParameters(packet_loss, rtt); in SetChannelParameters()
170 int32_t ret = encoder_->SetRates(bitrate, framerate); in SetRates()
[all …]
Dvideo_send_stream_tests.cc173 encoder_(Clock::GetRealTimeClock(), kEncodeDelayMs) { in TEST_F()
196 send_config->encoder_settings.encoder = &encoder_; in TEST_F()
206 test::DelayedEncoder encoder_; in TEST_F() member in webrtc::TEST_F::TransmissionTimeOffsetObserver
217 : SendTest(kDefaultTimeoutMs), encoder_(Clock::GetRealTimeClock()) { in TEST_F()
240 send_config->encoder_settings.encoder = &encoder_; in TEST_F()
250 test::FakeEncoder encoder_; in TEST_F() member in webrtc::TEST_F::TransportWideSequenceNumberObserver
548 encoder_(stop), in TestPacketFragmentationSize()
560 encoder_.SetFrameSize(start_size); in TestPacketFragmentationSize()
666 encoder_.SetFrameSize(static_cast<size_t>(current_size_frame_.Value())); in TestPacketFragmentationSize()
691 send_config->encoder_settings.encoder = &encoder_; in TestPacketFragmentationSize()
[all …]
Dvideo_quality_test.h109 rtc::scoped_ptr<VideoEncoder> encoder_; variable
/external/webrtc/webrtc/modules/video_coding/
Dgeneric_encoder.cc101 : encoder_(encoder), in VCMGenericEncoder()
112 return encoder_->Release(); in Release()
126 if (encoder_->InitEncode(settings, numberOfCores, maxPayloadSize) != 0) { in InitEncode()
132 encoder_->RegisterEncodeCompleteCallback(vcm_encoded_frame_callback_); in InitEncode()
154 int32_t result = encoder_->Encode(inputFrame, codecSpecificInfo, &frameTypes); in Encode()
158 encoder_->ImplementationName()); in Encode()
164 return encoder_->Encode(inputFrame, codecSpecificInfo, &frameTypes); in Encode()
184 encoder_->SetChannelParameters(params.loss_rate, params.rtt); in SetEncoderParameters()
187 encoder_->SetRates(target_bitrate_kbps, params.input_frame_rate); in SetEncoderParameters()
201 return encoder_->SetPeriodicKeyFrames(enable); in SetPeriodicKeyFrames()
[all …]
Dvideo_sender_unittest.cc192 rtc::scoped_ptr<VideoEncoder> encoder_; member in webrtc::vcm::__anon46a55fe90111::TestVideoSender
207 sender_->RegisterExternalEncoder(&encoder_, kUnusedPayloadType, false); in SetUp()
228 encoder_, in ExpectIntraRequest()
239 EXPECT_CALL(encoder_, in ExpectIntraRequest()
259 NiceMock<MockVideoEncoder> encoder_; member in webrtc::vcm::__anon46a55fe90111::TestVideoSenderWithMockEncoder
294 sender_->RegisterExternalEncoder(&encoder_, kUnusedPayloadType, true); in TEST_F()
316 EXPECT_CALL(encoder_, SetRates(_, kInputFps)).Times(1).WillOnce(Return(0)); in TEST_F()
331 EXPECT_CALL(encoder_, SetChannelParameters(kLossRate, kRtt)) in TEST_F()
341 EXPECT_CALL(encoder_, SetRates(_, kInputFps)).Times(1).WillOnce(Return(0)); in TEST_F()
346 EXPECT_CALL(encoder_, SetRates(2 * settings_.startBitrate, kInputFps)) in TEST_F()
[all …]
Dgeneric_encoder.h137 VideoEncoder* const encoder_;
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Daudio_encoder_ilbc.cc48 encoder_(nullptr) { in AudioEncoderIlbc()
56 RTC_CHECK_EQ(0, WebRtcIlbcfix_EncoderFree(encoder_)); in ~AudioEncoderIlbc()
118 encoder_, in EncodeInternal()
132 if (encoder_) in Reset()
133 RTC_CHECK_EQ(0, WebRtcIlbcfix_EncoderFree(encoder_)); in Reset()
135 RTC_CHECK_EQ(0, WebRtcIlbcfix_EncoderCreate(&encoder_)); in Reset()
139 RTC_CHECK_EQ(0, WebRtcIlbcfix_EncoderInit(encoder_, encoder_frame_size_ms)); in Reset()
Daudio_encoder_ilbc.h58 IlbcEncoderInstance* encoder_; variable
/external/webrtc/webrtc/modules/video_coding/codecs/vp9/
Dvp9_impl.cc69 encoder_(NULL), in VP9EncoderImpl()
94 if (encoder_ != NULL) { in Release()
95 if (vpx_codec_destroy(encoder_)) { in Release()
98 delete encoder_; in Release()
99 encoder_ = NULL; in Release()
197 if (encoder_->err) { in SetRates()
216 if (vpx_codec_enc_config_set(encoder_, config_)) { in SetRates()
253 if (encoder_ == NULL) { in InitEncode()
254 encoder_ = new vpx_codec_ctx_t; in InitEncode()
416 if (vpx_codec_enc_init(encoder_, vpx_codec_vp9_cx(), config_, 0)) { in InitAndSetControlSettings()
[all …]
Dvp9_impl.h113 vpx_codec_ctx_t* encoder_; variable
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/test/
Dvp8_impl_unittest.cc110 encoder_.reset(VP8Encoder::Create()); in SetUp()
117 encoder_->RegisterEncodeCompleteCallback(encode_complete_callback_.get()); in SetUp()
156 encoder_->InitEncode(&codec_inst_, 1, 1440)); in SetUpEncodeDecode()
189 rtc::scoped_ptr<VideoEncoder> encoder_; member in webrtc::TestVp8Impl
210 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Release()); in TEST_F()
213 encoder_->SetRates(bit_rate, codec_inst_.maxFramerate)); in TEST_F()
215 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->InitEncode(&codec_inst_, 1, 1440)); in TEST_F()
230 encoder_->Encode(input_frame_, NULL, NULL); in TEST_F()
251 encoder_->Encode(input_frame_, NULL, NULL); in TEST_F()
271 EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, NULL)); in TEST_F()
/external/google-tv-pairing-protocol/cpp/src/polo/pairing/
Dpairingsession.cc32 encoder_(NULL), in PairingSession()
47 if (encoder_) { in ~PairingSession()
48 delete encoder_; in ~PairingSession()
156 size_t bytes_needed = nonce_length / encoder_->symbols_per_byte(); in DoOutputPairing()
193 if (encoder_) { in SetConfiguration()
194 delete encoder_; in SetConfiguration()
195 encoder_ = NULL; in SetConfiguration()
200 encoder_ = new encoding::HexadecimalEncoder(); in SetConfiguration()
Dpairingsession.h86 const encoding::SecretEncoder* encoder() const { return encoder_; } in encoder()
192 encoding::SecretEncoder* encoder_; variable
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
Dneteq_ilbc_quality_test.cc56 encoder_.reset(new AudioEncoderIlbc(config)); in SetUp()
69 info = encoder_->Encode(dummy_timestamp, in EncodeBlock()
79 rtc::scoped_ptr<AudioEncoderIlbc> encoder_; member in webrtc::test::NetEqIlbcQualityTest
Dneteq_pcmu_quality_test.cc56 encoder_.reset(new AudioEncoderPcmU(config)); in SetUp()
69 info = encoder_->Encode(dummy_timestamp, in EncodeBlock()
79 rtc::scoped_ptr<AudioEncoderPcmU> encoder_; member in webrtc::test::NetEqPcmuQualityTest
/external/drm_hwcomposer/
Ddrmconnector.cpp35 encoder_(current_encoder), in DrmConnector()
124 return encoder_; in encoder()
128 encoder_ = encoder; in set_encoder()
Ddrmconnector.h75 DrmEncoder *encoder_; variable
/external/webrtc/webrtc/modules/video_coding/codecs/test/
Dvideoprocessor.cc48 : encoder_(encoder), in VideoProcessorImpl()
94 encoder_->RegisterEncodeCompleteCallback(encode_callback_); in Init()
116 encoder_->InitEncode(config_.codec_settings, nbr_of_cores, in Init()
147 encoder_->RegisterEncodeCompleteCallback(NULL); in ~VideoProcessorImpl()
154 int set_rates_result = encoder_->SetRates(bit_rate, frame_rate); in SetRates()
215 int32_t encode_result = encoder_->Encode(source_frame_, NULL, &frame_types); in ProcessFrame()
Dvideoprocessor_integrationtest.cc104 VideoEncoder* encoder_; member in webrtc::VideoProcessorIntegrationTest
154 encoder_ = VP8Encoder::Create(); in SetUpCodecConfig()
158 encoder_ = VP9Encoder::Create(); in SetUpCodecConfig()
225 encoder_, decoder_, frame_reader_, frame_writer_, packet_manipulator_, in SetUpCodecConfig()
414 delete encoder_; in TearDown()
494 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Release()); in ProcessFramesAndVerify()
/external/webrtc/webrtc/modules/audio_coding/acm2/
Drent_a_codec_unittest.cc38 encoder_ = rent_a_codec_.RentEncoderStack(&param); in CreateCodec()
48 encoder_->Encode(timestamp_, kZeroData, kPacketSizeSamples, out); in EncodeAndVerify()
62 AudioEncoder* encoder_ = nullptr; member in webrtc::acm2::RentACodecTestF
/external/webrtc/webrtc/
Dvideo_encoder.h178 webrtc::VideoEncoder* const encoder_; variable

12