/external/webrtc/modules/video_coding/utility/ |
D | simulcast_rate_allocator_unittest.cc | 57 memset(&codec_, 0, sizeof(VideoCodec)); in SimulcastRateAllocatorTest() 58 codec_.codecType = kVideoCodecVP8; in SimulcastRateAllocatorTest() 59 codec_.minBitrate = kMinBitrateKbps; in SimulcastRateAllocatorTest() 60 codec_.maxBitrate = kLegacyScreenshareMaxBitrateKbps; in SimulcastRateAllocatorTest() 61 codec_.active = true; in SimulcastRateAllocatorTest() 92 allocator_.reset(new SimulcastRateAllocator(codec_)); in CreateAllocator() 99 codec_.numberOfSimulcastStreams = num_simulcast_layers; in SetupCodec3SL3TL() 100 codec_.simulcastStream[2].numberOfTemporalLayers = 3; in SetupCodec3SL3TL() 101 codec_.simulcastStream[2].maxBitrate = 4000; in SetupCodec3SL3TL() 102 codec_.simulcastStream[2].targetBitrate = 3000; in SetupCodec3SL3TL() [all …]
|
D | simulcast_rate_allocator.cc | 62 : codec_(codec), in SimulcastRateAllocator() 89 if (codec_.maxBitrate) { in DistributeAllocationToSimulcastLayers() 90 DataRate max_rate = DataRate::KilobitsPerSec(codec_.maxBitrate); in DistributeAllocationToSimulcastLayers() 95 if (codec_.numberOfSimulcastStreams == 0) { in DistributeAllocationToSimulcastLayers() 97 if (codec_.active) { in DistributeAllocationToSimulcastLayers() 100 std::max(DataRate::KilobitsPerSec(codec_.minBitrate), in DistributeAllocationToSimulcastLayers() 109 std::vector<size_t> layer_index(codec_.numberOfSimulcastStreams); in DistributeAllocationToSimulcastLayers() 113 return std::tie(codec_.simulcastStream[a].maxBitrate) < in DistributeAllocationToSimulcastLayers() 114 std::tie(codec_.simulcastStream[b].maxBitrate); in DistributeAllocationToSimulcastLayers() 119 for (; active_layer < codec_.numberOfSimulcastStreams; ++active_layer) { in DistributeAllocationToSimulcastLayers() [all …]
|
/external/webrtc/media/engine/ |
D | simulcast_encoder_adapter_unittest.cc | 209 codec_ = *codecSettings; in InitEncode() 247 const VideoCodec& codec() const { return codec_; } in codec() 324 VideoCodec codec_; member in webrtc::test::MockVideoEncoder 456 &codec_, static_cast<const int*>(kTestTemporalLayerProfile), in SetupCodec() 458 rate_allocator_.reset(new SimulcastRateAllocator(codec_)); in SetupCodec() 459 EXPECT_EQ(0, adapter_->InitEncode(&codec_, kSettings)); in SetupCodec() 492 *ref_codec = codec_; in InitRefCodec() 496 ref_codec->width = codec_.simulcastStream[stream_index].width; in InitRefCodec() 497 ref_codec->height = codec_.simulcastStream[stream_index].height; in InitRefCodec() 498 ref_codec->maxBitrate = codec_.simulcastStream[stream_index].maxBitrate; in InitRefCodec() [all …]
|
D | simulcast_encoder_adapter.cc | 161 memset(&codec_, 0, sizeof(webrtc::VideoCodec)); in SimulcastEncoderAdapter() 222 codec_ = *inst; in InitEncode() 223 SimulcastRateAllocator rate_allocator(codec_); in InitEncode() 226 codec_.startBitrate * 1000, codec_.maxFramerate)); in InitEncode() 235 std::begin(codec_.simulcastStream), in InitEncode() 236 std::begin(codec_.simulcastStream) + number_of_streams, in InitEncode() 239 std::distance(std::begin(codec_.simulcastStream), minmax.first); in InitEncode() 241 std::distance(std::begin(codec_.simulcastStream), minmax.second); in InitEncode() 247 codec_.codecType == webrtc::kVideoCodecVP8 ? "VP8" : "H264", in InitEncode() 272 ret = encoder->InitEncode(&codec_, settings); in InitEncode() [all …]
|
/external/webrtc/api/video_codecs/test/ |
D | video_encoder_software_fallback_wrapper_unittest.cc | 183 VideoCodec codec_ = {}; member in webrtc::VideoEncoderSoftwareFallbackWrapperTestBase 212 I420Buffer::Create(codec_.width, codec_.height); in EncodeFrame() 232 codec_.codecType = kVideoCodecVP8; in InitEncode() 233 codec_.maxFramerate = kFramerate; in InitEncode() 234 codec_.width = kWidth; in InitEncode() 235 codec_.height = kHeight; in InitEncode() 236 codec_.VP8()->numberOfTemporalLayers = 1; in InitEncode() 237 rate_allocator_.reset(new SimulcastRateAllocator(codec_)); in InitEncode() 245 fallback_wrapper_->InitEncode(&codec_, kSettings)); in InitEncode() 263 codec_.codecType = kVideoCodecVP8; in UtilizeFallbackEncoder() [all …]
|
/external/webrtc/video/ |
D | encoder_bitrate_adjuster_unittest.cc | 49 codec_.codecType = VideoCodecType::kVideoCodecVP9; in SetUpAdjuster() 50 codec_.numberOfSimulcastStreams = 1; in SetUpAdjuster() 51 codec_.VP9()->numberOfSpatialLayers = num_spatial_layers; in SetUpAdjuster() 52 codec_.VP9()->numberOfTemporalLayers = num_temporal_layers; in SetUpAdjuster() 54 codec_.spatialLayers[si].minBitrate = 100 * (1 << si); in SetUpAdjuster() 55 codec_.spatialLayers[si].targetBitrate = 200 * (1 << si); in SetUpAdjuster() 56 codec_.spatialLayers[si].maxBitrate = 300 * (1 << si); in SetUpAdjuster() 57 codec_.spatialLayers[si].active = true; in SetUpAdjuster() 58 codec_.spatialLayers[si].numberOfTemporalLayers = num_temporal_layers; in SetUpAdjuster() 61 codec_.codecType = VideoCodecType::kVideoCodecVP8; in SetUpAdjuster() [all …]
|
/external/openscreen/cast/standalone_receiver/ |
D | decoder.cc | 53 if (!codec_ && !Initialize()) { in Decode() 109 codec_ = avcodec_find_decoder_by_name(codec_name_.c_str()); in Initialize() 110 if (!codec_) { in Initialize() 115 << avcodec_get_name(codec_->id) << ')'; in Initialize() 117 parser_ = MakeUniqueAVCodecParserContext(codec_->id); in Initialize() 124 context_ = MakeUniqueAVCodecContext(codec_); in Initialize() 141 const int open_result = avcodec_open2(context_.get(), codec_, nullptr); in Initialize() 173 codec_ ? avcodec_get_name(codec_->id) : nullptr; in HandleInitializationError() 175 codec_ = nullptr; // Set null to mean "not initialized." in HandleInitializationError()
|
/external/v4l2_codec2/tests/c2_e2e_test/jni/ |
D | mediacodec_encoder.cpp | 136 codec_(codec), in MediaCodecEncoder() 142 if (codec_ != nullptr) { in ~MediaCodecEncoder() 143 AMediaCodec_delete(codec_); in ~MediaCodecEncoder() 172 bool ret = AMediaCodec_configure(codec_, format, nullptr /* surface */, nullptr /* crtpto */, in Configure() 183 return AMediaCodec_start(codec_) == AMEDIA_OK; in Start() 198 index = AMediaCodec_dequeueInputBuffer(codec_, kTimeoutUs); in Encode() 221 index = AMediaCodec_dequeueOutputBuffer(codec_, &info, kTimeoutUs); in Encode() 237 return AMediaCodec_stop(codec_) == AMEDIA_OK; in Stop() 257 uint8_t* buf = AMediaCodec_getInputBuffer(codec_, index, &out_size); in FeedInputBuffer() 276 media_status_t status = AMediaCodec_queueInputBuffer(codec_, index, 0 /* offset */, kBufferSize, in FeedInputBuffer() [all …]
|
D | mediacodec_decoder.cpp | 155 : codec_(codec), in MediaCodecDecoder() 167 if (codec_ != nullptr) { in ~MediaCodecDecoder() 168 AMediaCodec_delete(codec_); in ~MediaCodecDecoder() 214 AMediaCodec_configure(codec_, format, surface_, nullptr /* crtpto */, 0 /* flag */); in Configure() 224 media_status_t ret = AMediaCodec_start(codec_); in Start() 256 media_status_t status = AMediaCodec_releaseOutputBuffer(codec_, evt.idx, false); in Decode() 315 return AMediaCodec_stop(codec_) == AMEDIA_OK; in Stop() 322 uint8_t* buf = AMediaCodec_getInputBuffer(codec_, index, &buf_size); in FeedInputBuffer() 349 codec_, index, 0 /* offset */, fragment->data.size(), timestamp_us, input_flag); in FeedInputBuffer() 365 AMediaCodec_queueInputBuffer(codec_, index, 0 /* offset */, 0 /* size */, timestamp_us, in FeedEOSInputBuffer() [all …]
|
D | video_encoder_e2e_test.cpp | 102 codec_ = VideoCodecType::H264; in ParseTestStreamData() 105 codec_ = VideoCodecType::VP8; in ParseTestStreamData() 108 codec_ = VideoCodecType::VP9; in ParseTestStreamData() 113 codec_ = VideoCodecType::H264; in ParseTestStreamData() 157 VideoCodecType codec() const { return codec_; } in codec() 176 VideoCodecType codec_; member in android::C2VideoEncoderTestEnvironment
|
/external/webrtc/modules/video_coding/codecs/h264/ |
D | h264_encoder_impl.cc | 213 codec_ = *inst; in InitEncode() 217 if (codec_.numberOfSimulcastStreams == 0) { in InitEncode() 218 codec_.simulcastStream[0].width = codec_.width; in InitEncode() 219 codec_.simulcastStream[0].height = codec_.height; in InitEncode() 247 configurations_[i].width = codec_.simulcastStream[idx].width; in InitEncode() 248 configurations_[i].height = codec_.simulcastStream[idx].height; in InitEncode() 249 configurations_[i].max_frame_rate = static_cast<float>(codec_.maxFramerate); in InitEncode() 250 configurations_[i].frame_dropping_on = codec_.H264()->frameDroppingOn; in InitEncode() 251 configurations_[i].key_frame_interval = codec_.H264()->keyFrameInterval; in InitEncode() 253 codec_.simulcastStream[idx].numberOfTemporalLayers; in InitEncode() [all …]
|
/external/webrtc/modules/video_coding/codecs/vp9/ |
D | svc_rate_allocator.cc | 177 : codec_(codec), in SvcRateAllocator() 202 if (codec_.maxBitrate != 0) { in Allocate() 204 std::min(total_bitrate, DataRate::KilobitsPerSec(codec_.maxBitrate)); in Allocate() 207 if (codec_.spatialLayers[0].targetBitrate == 0) { in Allocate() 215 const size_t first_active_layer = GetFirstActiveLayer(codec_); in Allocate() 216 const size_t num_active_layers = GetNumActiveSpatialLayers(codec_); in Allocate() 227 if (codec_.mode == VideoCodecMode::kScreensharing) { in Allocate() 251 if (codec_.mode == VideoCodecMode::kRealtimeVideo) { in Allocate() 274 AdjustAndVerify(codec_, first_active_layer, in GetAllocationNormalVideo() 282 const size_t num_temporal_layers = codec_.VP9().numberOfTemporalLayers; in GetAllocationNormalVideo() [all …]
|
D | vp9_impl.cc | 264 codec_ = {}; in VP9EncoderImpl() 304 return codec_.spatialLayers[0].targetBitrate > 0; in ExplicitlyConfiguredSpatialLayers() 350 codec_.spatialLayers[sl_idx].maxFramerate); in SetSvcRates() 391 framerate_controller_[i].SetTargetRate(codec_.maxFramerate); in SetSvcRates() 442 codec_.maxFramerate = static_cast<uint32_t>(parameters.framerate_fps + 0.5); in SetRates() 494 if (&codec_ != inst) { in InitEncode() 495 codec_ = *inst; in InitEncode() 509 num_spatial_layers_, FramerateController(codec_.maxFramerate)); in InitEncode() 547 vpx_img_wrap(nullptr, img_fmt, codec_.width, codec_.height, 1, nullptr); in InitEncode() 550 config_->g_w = codec_.width; in InitEncode() [all …]
|
/external/webrtc/modules/video_coding/codecs/vp8/ |
D | libvpx_vp8_encoder.cc | 359 codec_.maxFramerate = static_cast<uint32_t>(parameters.framerate_fps + 0.5); in SetRates() 507 codec_ = *inst; in InitEncode() 511 if (codec_.numberOfSimulcastStreams == 0) { in InitEncode() 512 codec_.simulcastStream[0].width = codec_.width; in InitEncode() 513 codec_.simulcastStream[0].height = codec_.height; in InitEncode() 577 codec_.mode == VideoCodecMode::kScreensharing ? 12 : 2; in InitEncode() 642 SimulcastRateAllocator init_allocator(codec_); in InitEncode() 822 codec_.VP8()->denoisingOn ? denoiser_state : kDenoiserOff); in InitAndSetControlSettings() 826 codec_.VP8()->denoisingOn ? denoiser_state : kDenoiserOff); in InitAndSetControlSettings() 832 codec_.mode == VideoCodecMode::kScreensharing ? 100u : 1u); in InitAndSetControlSettings() [all …]
|
/external/libwebm/common/ |
D | video_frame.h | 36 : nanosecond_pts_(pts_in_nanoseconds), codec_(vpx_codec) {} in VideoFrame() 40 codec_(vpx_codec) {} in VideoFrame() 54 Codec codec() const { return codec_; } in codec() 63 Codec codec_ = kVP9; variable
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_rtcp_impl_unittest.cc | 188 memset(&codec_, 0, sizeof(VideoCodec)); in SetUp() 189 codec_.plType = 100; in SetUp() 190 codec_.width = 320; in SetUp() 191 codec_.height = 180; in SetUp() 205 VideoCodec codec_; member in webrtc::RtpRtcpImplTest 214 rtp_video_header.width = codec_.width; in SendFrame() 215 rtp_video_header.height = codec_.height; in SendFrame() 226 EXPECT_TRUE(module->impl_->OnSendingRtpFrame(0, 0, codec_.plType, true)); in SendFrame() 227 EXPECT_TRUE(sender->SendVideo(codec_.plType, VideoCodecType::kVideoCodecVP8, in SendFrame()
|
D | rtp_rtcp_impl2_unittest.cc | 193 memset(&codec_, 0, sizeof(VideoCodec)); in SetUp() 194 codec_.plType = 100; in SetUp() 195 codec_.width = 320; in SetUp() 196 codec_.height = 180; in SetUp() 216 VideoCodec codec_; member in webrtc::RtpRtcpImpl2Test 225 rtp_video_header.width = codec_.width; in SendFrame() 226 rtp_video_header.height = codec_.height; in SendFrame() 237 EXPECT_TRUE(module->impl_->OnSendingRtpFrame(0, 0, codec_.plType, true)); in SendFrame() 238 EXPECT_TRUE(sender->SendVideo(codec_.plType, VideoCodecType::kVideoCodecVP8, in SendFrame()
|
/external/libvpx/libvpx/test/ |
D | tile_independence_test.cc | 34 fw_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest() 35 inv_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest()
|
D | decode_test_driver.h | 151 : codec_(codec), cfg_(), flags_(0) {} in DecoderTest() 155 const CodecFactory *codec_; variable
|
D | encode_test_driver.cc | 102 const vpx_codec_err_t res = codec_->DefaultEncoderConfig(&cfg_, 0); in InitializeConfig() 184 codec_->CreateEncoder(cfg_, deadline_, init_flags_, &stats_)); in RunLoop() 198 codec_->CreateDecoder(dec_cfg, dec_init_flags)); in RunLoop()
|
/external/libaom/libaom/test/ |
D | decode_test_driver.h | 154 : codec_(codec), cfg_(), flags_(0) {} in DecoderTest() 158 const CodecFactory *codec_; variable
|
D | tile_independence_test.cc | 38 fw_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest() 39 inv_dec_ = codec_->CreateDecoder(cfg, 0); in TileIndependenceTest()
|
D | encode_test_driver.cc | 87 const aom_codec_err_t res = codec_->DefaultEncoderConfig(&cfg_, 0); in InitializeConfig() 201 codec_->CreateEncoder(cfg_, init_flags_, &stats_)); in RunLoop() 214 codec_->CreateDecoder(dec_cfg, 0 /* flags */)); in RunLoop()
|
D | decode_multithreaded_test.cc | 43 single_thread_dec_ = codec_->CreateDecoder(cfg, 0); in AV1DecodeMultiThreadedTest() 48 multi_thread_dec_[i] = codec_->CreateDecoder(cfg, 0); in AV1DecodeMultiThreadedTest()
|
/external/libwebm/m2ts/ |
D | webm2pes.cc | 254 VideoFrame vpx_frame(block->GetTime(cluster), codec_); in ConvertToFile() 324 VideoFrame frame(block->GetTime(cluster), codec_); in ConvertToPacketReceiver() 395 codec_ = VideoFrame::kVP8; in InitWebmParser() 397 codec_ = VideoFrame::kVP9; in InitWebmParser()
|