Home
last modified time | relevance | path

Searched refs:encoder_ (Results 1 – 25 of 31) 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.h52 : encoder_(encoder), iter_(NULL) {} in CxDataIterator()
55 return vpx_codec_get_cx_data(encoder_, &iter_); in Next()
59 vpx_codec_ctx_t *encoder_;
92 memset(&encoder_, 0, sizeof(encoder_)); in Encoder()
95 virtual ~Encoder() { vpx_codec_destroy(&encoder_); } in ~Encoder()
97 CxDataIterator GetCxData() { return CxDataIterator(&encoder_); } in GetCxData()
102 return vpx_codec_get_preview_frame(&encoder_); in GetPreviewFrame()
112 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
117 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
122 const vpx_codec_err_t res = vpx_codec_control_(&encoder_, ctrl_id, arg); in Control()
[all …]
Dencode_test_driver.cc28 if (video->img() && !encoder_.priv) { in InitEncoder()
34 res = vpx_codec_enc_init(&encoder_, CodecInterface(), &cfg_, init_flags_); in InitEncoder()
41 res = vpx_codec_control_(&encoder_, VP9E_SET_TILE_COLUMNS, in InitEncoder()
81 res = vpx_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal()
86 API_REGISTER_STATE_CHECK(res = vpx_codec_encode(&encoder_, img, video.pts(), in EncodeFrameInternal()
94 vpx_codec_encode(&encoder_, NULL, 0, 0, 0, deadline_); in Flush()
95 if (!encoder_.priv) in Flush()
/external/libaom/libaom/test/
Dencode_test_driver.h48 : encoder_(encoder), iter_(NULL) {} in CxDataIterator()
51 return aom_codec_get_cx_data(encoder_, &iter_); in Next()
55 aom_codec_ctx_t *encoder_;
88 memset(&encoder_, 0, sizeof(encoder_)); in Encoder()
91 virtual ~Encoder() { aom_codec_destroy(&encoder_); } in ~Encoder()
93 CxDataIterator GetCxData() { return CxDataIterator(&encoder_); } in GetCxData()
98 return aom_codec_get_preview_frame(&encoder_); in GetPreviewFrame()
108 const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); in Control()
113 const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); in Control()
118 const aom_codec_err_t res = aom_codec_control_(&encoder_, ctrl_id, arg); in Control()
[all …]
Dencode_test_driver.cc31 if (video->img() && !encoder_.priv) { in InitEncoder()
37 res = aom_codec_enc_init(&encoder_, CodecInterface(), &cfg_, init_flags_); in InitEncoder()
67 res = aom_codec_enc_config_set(&encoder_, &cfg_); in EncodeFrameInternal()
73 aom_codec_encode(&encoder_, img, video.pts(), in EncodeFrameInternal()
79 const aom_codec_err_t res = aom_codec_encode(&encoder_, NULL, 0, 0, 0); in Flush()
80 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/protobuf/js/binary/
Dwriter.js99 this.encoder_ = new jspb.BinaryEncoder();
118 var temp = this.encoder_.end();
134 var bookmark = this.encoder_.end();
151 var messageLength = this.totalLength_ + this.encoder_.length() - oldLength;
197 this.encoder_.end();
210 var flat = new Uint8Array(this.totalLength_ + this.encoder_.length());
222 var tail = this.encoder_.end();
279 this.encoder_.writeUnsignedVarint32(x);
368 this.encoder_.writeUnsignedVarint32(value);
381 this.encoder_.writeSignedVarint32(value);
[all …]
/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::__anon6bfc03b10111::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::__anon6bfc03b10111::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 …]
/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/webrtc/webrtc/modules/audio_coding/neteq/test/
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
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
/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/drm_hwcomposer/
Ddrmconnector.cpp35 encoder_(current_encoder), in DrmConnector()
182 return encoder_; in encoder()
186 encoder_ = encoder; in set_encoder()
Ddrmconnector.h85 DrmEncoder *encoder_; variable
/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