Home
last modified time | relevance | path

Searched refs:codec_ (Results 1 – 22 of 22) sorted by relevance

/external/webrtc/webrtc/modules/video_coding/codecs/vp8/
Dsimulcast_encoder_adapter.cc141 memset(&codec_, 0, sizeof(webrtc::VideoCodec)); in SimulcastEncoderAdapter()
188 codec_ = *inst; in InitEncode()
195 codec_.extra_options = screensharing_extra_options_.get(); in InitEncode()
203 stream_codec = codec_; in InitEncode()
207 PopulateStreamCodec(&codec_, i, number_of_streams, in InitEncode()
333 if (codec_.maxBitrate > 0 && new_bitrate_kbit > codec_.maxBitrate) { in SetRates()
334 new_bitrate_kbit = codec_.maxBitrate; in SetRates()
336 if (new_bitrate_kbit < codec_.minBitrate) { in SetRates()
337 new_bitrate_kbit = codec_.minBitrate; in SetRates()
339 if (codec_.numberOfSimulcastStreams > 0 && in SetRates()
[all …]
Dvp8_impl.cc221 if (codec_.maxBitrate > 0 && new_bitrate_kbit > codec_.maxBitrate) { in SetRates()
222 new_bitrate_kbit = codec_.maxBitrate; in SetRates()
224 if (new_bitrate_kbit < codec_.minBitrate) { in SetRates()
225 new_bitrate_kbit = codec_.minBitrate; in SetRates()
227 if (codec_.numberOfSimulcastStreams > 0 && in SetRates()
228 new_bitrate_kbit < codec_.simulcastStream[0].minBitrate) { in SetRates()
229 new_bitrate_kbit = codec_.simulcastStream[0].minBitrate; in SetRates()
231 codec_.maxFramerate = new_framerate; in SetRates()
236 uint32_t k_pixels_per_frame = codec_.width * codec_.height / 1000; in SetRates()
269 GetStreamBitratesKbps(codec_, new_bitrate_kbit); in SetRates()
[all …]
Dsimulcast_encoder_adapter_unittest.cc111 codec_ = *codecSettings; in InitEncode()
139 const VideoCodec& codec() const { return codec_; } in codec()
157 VideoCodec codec_; member in webrtc::testing::MockVideoEncoder
244 &codec_, static_cast<const int*>(kTestTemporalLayerProfile)); in SetupCodec()
245 EXPECT_EQ(0, adapter_->InitEncode(&codec_, 1, 1200)); in SetupCodec()
291 *ref_codec = codec_; in InitRefCodec()
294 ref_codec->width = codec_.simulcastStream[stream_index].width; in InitRefCodec()
295 ref_codec->height = codec_.simulcastStream[stream_index].height; in InitRefCodec()
296 ref_codec->maxBitrate = codec_.simulcastStream[stream_index].maxBitrate; in InitRefCodec()
297 ref_codec->minBitrate = codec_.simulcastStream[stream_index].minBitrate; in InitRefCodec()
[all …]
Dvp8_impl.h95 VideoCodec codec_; variable
161 VideoCodec codec_; variable
Dsimulcast_encoder_adapter.h114 VideoCodec codec_; variable
/external/webrtc/webrtc/modules/video_coding/codecs/vp9/
Dvp9_impl.cc80 memset(&codec_, 0, sizeof(codec_)); in VP9EncoderImpl()
117 codec_.spatialLayers[0].target_bitrate_bps > 0; in ExplicitlyConfiguredSpatialLayers()
131 total_bitrate_bps += codec_.spatialLayers[i].target_bitrate_bps; in SetSvcRates()
137 codec_.spatialLayers[i].target_bitrate_bps / in SetSvcRates()
204 if (codec_.maxBitrate > 0 && new_bitrate_kbit > codec_.maxBitrate) { in SetRates()
205 new_bitrate_kbit = codec_.maxBitrate; in SetRates()
208 codec_.maxFramerate = new_framerate; in SetRates()
260 if (&codec_ != inst) { in InitEncode()
261 codec_ = *inst; in InitEncode()
275 encoded_image_._size = CalcBufferSize(kI420, codec_.width, codec_.height); in InitEncode()
[all …]
Dvp9_impl.h107 VideoCodec codec_; variable
164 VideoCodec codec_; variable
/external/libvpx/libvpx/test/
Dsvc_test.cc39 memset(&codec_, 0, sizeof(codec_)); in SvcTest()
76 vpx_svc_init(&svc_, &codec_, vpx_codec_vp9_cx(), &codec_enc_); in InitializeEncoder()
78 vpx_codec_control(&codec_, VP8E_SET_CPUUSED, 4); // Make the test faster in InitializeEncoder()
79 vpx_codec_control(&codec_, VP9E_SET_TILE_COLUMNS, tile_columns_); in InitializeEncoder()
80 vpx_codec_control(&codec_, VP9E_SET_TILE_ROWS, tile_rows_); in InitializeEncoder()
86 if (codec_initialized_) vpx_codec_destroy(&codec_); in ReleaseEncoder()
94 while ((cx_pkt = vpx_codec_get_cx_data(&codec_, &iter)) != NULL) { in GetStatsData()
120 res = vpx_svc_encode(&svc_, &codec_, video.img(), video.pts(), in Pass1EncodeNFrames()
128 res = vpx_svc_encode(&svc_, &codec_, NULL, video.pts(), video.duration(), in Pass1EncodeNFrames()
142 while ((cx_pkt = vpx_codec_get_cx_data(&codec_, &iter)) != NULL) { in StoreFrames()
[all …]
Dtile_independence_test.cc34 fw_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest()
35 inv_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest()
Ddecode_test_driver.h151 : codec_(codec), cfg_(), flags_(0) {} in DecoderTest()
155 const CodecFactory *codec_; variable
Dencode_test_driver.cc101 const vpx_codec_err_t res = codec_->DefaultEncoderConfig(&cfg_, 0); in InitializeConfig()
181 codec_->CreateEncoder(cfg_, deadline_, init_flags_, &stats_)); in RunLoop()
195 codec_->CreateDecoder(dec_cfg, dec_init_flags)); in RunLoop()
Dencode_test_driver.h182 : codec_(codec), abort_(false), init_flags_(0), frame_flags_(0), in EncoderTest()
229 const CodecFactory *codec_; variable
Ddecode_test_driver.cc68 Decoder *const decoder = codec_->CreateDecoder(dec_cfg, flags_); in RunLoop()
/external/webrtc/webrtc/video/
Dvideo_encoder_unittest.cc103 VideoCodec codec_ = {}; member in webrtc::VideoEncoderSoftwareFallbackWrapperTest
127 codec_.codecType = kVideoCodecVP8; in UtilizeFallbackEncoder()
128 codec_.maxFramerate = 30; in UtilizeFallbackEncoder()
129 codec_.width = kWidth; in UtilizeFallbackEncoder()
130 codec_.height = kHeight; in UtilizeFallbackEncoder()
133 fallback_wrapper_.InitEncode(&codec_, 2, kMaxPayloadSize)); in UtilizeFallbackEncoder()
145 codec_.codecType = kVideoCodecVP8; in FallbackFromEncodeRequest()
146 codec_.maxFramerate = 30; in FallbackFromEncodeRequest()
147 codec_.width = kWidth; in FallbackFromEncodeRequest()
148 codec_.height = kHeight; in FallbackFromEncodeRequest()
[all …]
/external/webrtc/talk/app/webrtc/java/jni/
Dandroidmediadecoder_jni.cc123 VideoCodec codec_; member in webrtc_jni::MediaCodecVideoDecoder
266 memset(&codec_, 0, sizeof(codec_)); in MediaCodecVideoDecoder()
291 if (&codec_ != inst) { in InitDecode()
292 codec_ = *inst; in InitDecode()
295 codec_.maxFramerate = (codec_.maxFramerate >= 1) ? codec_.maxFramerate : 30; in InitDecode()
307 << codec_.width << " x " << codec_.height << ". Fps: " << in InitDecodeOnCodecThread()
308 (int)codec_.maxFramerate; in InitDecodeOnCodecThread()
344 codec_.width, in InitDecodeOnCodecThread()
345 codec_.height, in InitDecodeOnCodecThread()
479 (inputImage._encodedWidth != codec_.width || in Decode()
[all …]
/external/webrtc/webrtc/tools/agc/
Dagc_harness.cc92 codec_(VoECodec::GetInterface(voe_)), in AgcVoiceEngine()
132 for (int i = 0; i < codec_->NumOfCodecs(); i++) { in SetUp()
133 RTC_CHECK_EQ(0, codec_->GetCodec(i, codec_params)); in SetUp()
140 RTC_CHECK_EQ(0, codec_->SetSendCodec(channel_, codec_params)); in SetUp()
153 codec_->Release(); in TearDown()
178 for (int i = 0; i < codec_->NumOfCodecs(); i++) { in PrintCodecs()
179 RTC_CHECK_EQ(0, codec_->GetCodec(i, params)); in PrintCodecs()
216 VoECodec* codec_; member in webrtc::__anon9bdbc2680111::AgcVoiceEngine
/external/webrtc/talk/media/webrtc/
Dwebrtcvoe.h93 base_(engine_), codec_(engine_), in VoEWrapper()
107 codec_(codec), in VoEWrapper()
117 webrtc::VoECodec* codec() const { return codec_.get(); } in codec()
128 scoped_voe_ptr<webrtc::VoECodec> codec_; variable
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dneteq_external_decoder_test.cc22 : codec_(codec), in NetEqExternalDecoderTest()
24 sample_rate_hz_(CodecSampleRateHz(codec_)), in NetEqExternalDecoderTest()
34 neteq_->RegisterExternalDecoder(decoder_, codec_, name_, in Init()
Dneteq_external_decoder_test.h53 NetEqDecoder codec_;
/external/webrtc/webrtc/modules/audio_coding/acm2/
Daudio_coding_module_unittest_oldapi.cc186 ASSERT_EQ(0, AudioCodingModule::Codec("L16", &codec_, kSampleRateHz, 1)); in SetUpL16Codec()
187 codec_.pltype = kPayloadType; in SetUpL16Codec()
191 ASSERT_EQ(0, acm_->RegisterReceiveCodec(codec_)); in RegisterCodec()
192 ASSERT_EQ(0, acm_->RegisterSendCodec(codec_)); in RegisterCodec()
219 EXPECT_TRUE(last_length == 2 * codec_.pacsize || last_length == 0) in VerifyEncoding()
234 CodecInst codec_; member in webrtc::AudioCodingModuleTestOldApi
318 codec_.pacsize = k10MsBlocksPerPacket * kSampleRateHz / 100; in TEST_F()
337 int blocks_per_packet = codec_.pacsize / (kSampleRateHz / 100); in TEST_F()
347 expected_ts += codec_.pacsize; in TEST_F()
351 ASSERT_EQ(0, AudioCodingModule::Codec("ISAC", &codec_, kSampleRateHz, 1)); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_rtcp_impl_unittest.cc174 memset(&codec_, 0, sizeof(VideoCodec)); in RtpRtcpImplTest()
175 codec_.plType = 100; in RtpRtcpImplTest()
176 strncpy(codec_.plName, "VP8", 3); in RtpRtcpImplTest()
177 codec_.width = 320; in RtpRtcpImplTest()
178 codec_.height = 180; in RtpRtcpImplTest()
179 EXPECT_EQ(0, sender_.impl_->RegisterSendPayload(codec_)); in RtpRtcpImplTest()
193 VideoCodec codec_; member in webrtc::RtpRtcpImplTest
198 RTPVideoHeader rtp_video_header = {codec_.width, in SendFrame()
199 codec_.height, in SendFrame()
208 codec_.plType, in SendFrame()
/external/webrtc/webrtc/modules/video_coding/
Dvideo_sender_unittest.cc369 codec_ = MakeVp8VideoCodec(width, height, 3); in SetUp()
370 codec_.minBitrate = 10; in SetUp()
371 codec_.startBitrate = codec_bitrate_kbps_; in SetUp()
372 codec_.maxBitrate = codec_bitrate_kbps_; in SetUp()
374 sender_->RegisterExternalEncoder(encoder_.get(), codec_.plType, false); in SetUp()
375 EXPECT_EQ(0, sender_->RegisterSendCodec(&codec_, 1, 1200)); in SetUp()
419 VideoCodec codec_; member in webrtc::vcm::__anon85d6b7670111::TestVideoSenderWithVp8