/external/webrtc/api/video_codecs/test/ |
D | video_decoder_software_fallback_wrapper_unittest.cc | 85 EncodedImage encoded_image; in TEST_F() local 86 encoded_image._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 87 fallback_wrapper_->Decode(encoded_image, false, -1); in TEST_F() 99 EncodedImage encoded_image; in TEST_F() local 100 encoded_image._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 101 fallback_wrapper_->Decode(encoded_image, false, -1); in TEST_F() 115 EncodedImage encoded_image; in TEST_F() local 116 fallback_wrapper_->Decode(encoded_image, false, -1); in TEST_F() 120 encoded_image._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 121 fallback_wrapper_->Decode(encoded_image, false, -1); in TEST_F() [all …]
|
/external/webrtc/modules/video_coding/utility/ |
D | ivf_file_writer.cc | 128 bool IvfFileWriter::InitFromFirstFrame(const EncodedImage& encoded_image, in InitFromFirstFrame() argument 130 if (encoded_image._encodedWidth == 0 || encoded_image._encodedHeight == 0) { in InitFromFirstFrame() 134 width_ = encoded_image._encodedWidth; in InitFromFirstFrame() 135 height_ = encoded_image._encodedHeight; in InitFromFirstFrame() 138 using_capture_timestamps_ = encoded_image.Timestamp() == 0; in InitFromFirstFrame() 154 bool IvfFileWriter::WriteFrame(const EncodedImage& encoded_image, in WriteFrame() argument 159 if (num_frames_ == 0 && !InitFromFirstFrame(encoded_image, codec_type)) in WriteFrame() 163 if ((encoded_image._encodedWidth > 0 || encoded_image._encodedHeight > 0) && in WriteFrame() 164 (encoded_image._encodedHeight != height_ || in WriteFrame() 165 encoded_image._encodedWidth != width_)) { in WriteFrame() [all …]
|
D | simulcast_test_fixture_impl.cc | 77 Result OnEncodedImage(const EncodedImage& encoded_image, in OnEncodedImage() argument 82 if (encoded_image.SpatialIndex().value_or(0) == 0) { in OnEncodedImage() 83 if (encoded_image._frameType == VideoFrameType::kVideoFrameKey) { in OnEncodedImage() 85 encoded_image.data(), encoded_image.size())); in OnEncodedImage() 89 encoded_image.data(), encoded_image.size())); in OnEncodedImage() 93 layer_sync_[encoded_image.SpatialIndex().value_or(0)] = in OnEncodedImage() 95 temporal_layer_[encoded_image.SpatialIndex().value_or(0)] = in OnEncodedImage() 98 layer_sync_[encoded_image.SpatialIndex().value_or(0)] = in OnEncodedImage() 100 temporal_layer_[encoded_image.SpatialIndex().value_or(0)] = in OnEncodedImage() 103 return Result(Result::OK, encoded_image.Timestamp()); in OnEncodedImage() [all …]
|
D | ivf_file_writer.h | 39 bool WriteFrame(const EncodedImage& encoded_image, VideoCodecType codec_type); 46 bool InitFromFirstFrame(const EncodedImage& encoded_image,
|
/external/webrtc/call/ |
D | rtp_video_sender_unittest.cc | 242 EncodedImage encoded_image; in TEST() local 243 encoded_image.SetTimestamp(1); in TEST() 244 encoded_image.capture_time_ms_ = 2; in TEST() 245 encoded_image._frameType = VideoFrameType::kVideoFrameKey; in TEST() 246 encoded_image.SetEncodedData(EncodedImageBuffer::Create(&kPayload, 1)); in TEST() 250 test.router()->OnEncodedImage(encoded_image, nullptr).error); in TEST() 254 test.router()->OnEncodedImage(encoded_image, nullptr).error); in TEST() 258 test.router()->OnEncodedImage(encoded_image, nullptr).error); in TEST() 262 test.router()->OnEncodedImage(encoded_image, nullptr).error); in TEST() 424 EncodedImage encoded_image; in TEST() local [all …]
|
D | rtp_payload_params_unittest.cc | 64 EncodedImage encoded_image; in TEST() local 65 encoded_image.rotation_ = kVideoRotation_90; in TEST() 66 encoded_image.content_type_ = VideoContentType::SCREENSHARE; in TEST() 67 encoded_image.SetSpatialIndex(1); in TEST() 77 params.GetRtpVideoHeader(encoded_image, &codec_info, kDontCare); in TEST() 83 header = params.GetRtpVideoHeader(encoded_image, &codec_info, 1); in TEST() 105 EncodedImage encoded_image; in TEST() local 106 encoded_image.rotation_ = kVideoRotation_90; in TEST() 107 encoded_image.content_type_ = VideoContentType::SCREENSHARE; in TEST() 108 encoded_image.SetSpatialIndex(0); in TEST() [all …]
|
D | rtp_video_sender.cc | 323 const EncodedImage& encoded_image, in IsFirstFrameOfACodedVideoSequence() argument 325 if (encoded_image._frameType != VideoFrameType::kVideoFrameKey) { in IsFirstFrameOfACodedVideoSequence() 355 return encoded_image.SpatialIndex() <= 0; in IsFirstFrameOfACodedVideoSequence() 553 const EncodedImage& encoded_image, in OnEncodedImage() argument 555 fec_controller_->UpdateWithEncodedData(encoded_image.size(), in OnEncodedImage() 556 encoded_image._frameType); in OnEncodedImage() 569 stream_index = encoded_image.SpatialIndex().value_or(0); in OnEncodedImage() 574 encoded_image.Timestamp() + in OnEncodedImage() 582 encoded_image.Timestamp(), encoded_image.capture_time_ms_, in OnEncodedImage() 584 encoded_image._frameType == VideoFrameType::kVideoFrameKey)) { in OnEncodedImage() [all …]
|
/external/webrtc/video/ |
D | frame_encode_metadata_writer.cc | 140 EncodedImage* encoded_image) { in FillTimingInfo() argument 149 ExtractEncodeStartTimeAndFillMetadata(simulcast_svc_idx, encoded_image); in FillTimingInfo() 165 if (outlier_frame_size && encoded_image->size() >= *outlier_frame_size) { in FillTimingInfo() 171 encoded_image->capture_time_ms_ - last_timing_frame_time_ms_; in FillTimingInfo() 180 last_timing_frame_time_ms_ = encoded_image->capture_time_ms_; in FillTimingInfo() 189 encoded_image->SetEncodeTime(*encode_start_ms, encode_done_ms); in FillTimingInfo() 190 encoded_image->timing_.flags = timing_flags; in FillTimingInfo() 192 encoded_image->timing_.flags = VideoSendTiming::kInvalid; in FillTimingInfo() 198 EncodedImage* encoded_image) { in UpdateBitstream() argument 201 encoded_image->_frameType != VideoFrameType::kVideoFrameKey) { in UpdateBitstream() [all …]
|
D | send_statistics_proxy_unittest.cc | 365 EncodedImage encoded_image; in TEST_F() local 369 statistics_proxy_->OnSendEncodedImage(encoded_image, &codec_info); in TEST_F() 375 EncodedImage encoded_image; in TEST_F() local 380 encoded_image.qp_ = 3; in TEST_F() 381 statistics_proxy_->OnSendEncodedImage(encoded_image, &codec_info); in TEST_F() 383 encoded_image.qp_ = 127; in TEST_F() 384 statistics_proxy_->OnSendEncodedImage(encoded_image, &codec_info); in TEST_F() 389 EncodedImage encoded_image; in TEST_F() local 392 encoded_image.qp_ = -1; in TEST_F() 395 statistics_proxy_->OnSendEncodedImage(encoded_image, &codec_info); in TEST_F() [all …]
|
D | frame_encode_metadata_writer.h | 37 void FillTimingInfo(size_t simulcast_svc_idx, EncodedImage* encoded_image); 40 EncodedImage* encoded_image); 49 EncodedImage* encoded_image) RTC_EXCLUSIVE_LOCKS_REQUIRED(lock_);
|
D | send_statistics_proxy.cc | 938 const EncodedImage& encoded_image, in OnSendEncodedImage() argument 945 ? encoded_image.SpatialIndex().value_or(0) in OnSendEncodedImage() 964 codec_info, encoded_image._encodedWidth * encoded_image._encodedHeight, in OnSendEncodedImage() 986 stats->total_encode_time_ms += encoded_image.timing_.encode_finish_ms - in OnSendEncodedImage() 987 encoded_image.timing_.encode_start_ms; in OnSendEncodedImage() 993 stats->width = encoded_image._encodedWidth; in OnSendEncodedImage() 994 stats->height = encoded_image._encodedHeight; in OnSendEncodedImage() 998 uma_container_->key_frame_counter_.Add(encoded_image._frameType == in OnSendEncodedImage() 1001 if (encoded_image.qp_ != -1) { in OnSendEncodedImage() 1004 *stats->qp_sum += encoded_image.qp_; in OnSendEncodedImage() [all …]
|
/external/webrtc/test/ |
D | fake_vp8_encoder.cc | 94 EncodedImage& encoded_image, in EncodeHook() argument 97 uint8_t stream_idx = encoded_image.SpatialIndex().value_or(0); in EncodeHook() 99 encoded_image.Timestamp()); in EncodeHook() 101 PopulateCodecSpecific(encoded_image.size(), encoded_image._frameType, in EncodeHook() 102 stream_idx, encoded_image.Timestamp()); in EncodeHook() 106 WriteFakeVp8(buffer->data(), encoded_image._encodedWidth, in EncodeHook() 107 encoded_image._encodedHeight, in EncodeHook() 108 encoded_image._frameType == VideoFrameType::kVideoFrameKey); in EncodeHook()
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_sender_video_frame_transformer_delegate.cc | 28 const EncodedImage& encoded_image, in TransformableVideoSenderFrame() argument 35 : encoded_data_(encoded_image.GetEncodedData()), in TransformableVideoSenderFrame() 38 frame_type_(encoded_image._frameType), in TransformableVideoSenderFrame() 42 capture_time_ms_(encoded_image.capture_time_ms_), in TransformableVideoSenderFrame() 119 const EncodedImage& encoded_image, in TransformFrame() argument 123 encoded_image, video_header, payload_type, codec_type, rtp_timestamp, in TransformFrame() 189 EncodedImage encoded_image; in CloneSenderVideoFrame() local 190 encoded_image.SetEncodedData(encoded_image_buffer); in CloneSenderVideoFrame() 211 encoded_image, new_header, original->GetPayloadType(), new_codec_type, in CloneSenderVideoFrame()
|
/external/webrtc/sdk/objc/unittests/ |
D | RTCEncodedImage_xctest.mm | 22 webrtc::EncodedImage encoded_image; 23 encoded_image.SetEncodedData(encoded_data); 26 [[RTC_OBJC_TYPE(RTCEncodedImage) alloc] initWithNativeEncodedImage:encoded_image]; 45 webrtc::EncodedImage encoded_image; 46 encoded_image.SetEncodedData(encoded_data); 48 [[RTC_OBJC_TYPE(RTCEncodedImage) alloc] initWithNativeEncodedImage:encoded_image];
|
D | objc_video_decoder_factory_tests.mm | 81 webrtc::EncodedImage encoded_image; 82 encoded_image.SetEncodedData(webrtc::EncodedImageBuffer::Create()); 84 EXPECT_EQ(decoder->Decode(encoded_image, false, 0), WEBRTC_VIDEO_CODEC_OK); 90 webrtc::EncodedImage encoded_image; 91 encoded_image.SetEncodedData(webrtc::EncodedImageBuffer::Create()); 93 EXPECT_EQ(decoder->Decode(encoded_image, false, 0), WEBRTC_VIDEO_CODEC_ERROR);
|
/external/webrtc/test/pc/e2e/analyzer/video/ |
D | quality_analyzing_video_encoder.cc | 244 const EncodedImage& encoded_image, in OnEncodedImage() argument 255 if (timestamp_frame_id.first == encoded_image.Timestamp()) { in OnEncodedImage() 274 << encoded_image.Timestamp(); in OnEncodedImage() 280 discard = ShouldDiscard(frame_id, encoded_image); in OnEncodedImage() 283 encoded_image.SpatialIndex().value_or(0)); in OnEncodedImage() 293 stats.qp = encoded_image.qp_; in OnEncodedImage() 294 analyzer_->OnFrameEncoded(peer_name_, frame_id, encoded_image, stats, in OnEncodedImage() 303 injector_->InjectData(frame_id, discard, encoded_image); in OnEncodedImage() 321 const EncodedImage& encoded_image) { in ShouldDiscard() argument 329 int cur_spatial_index = encoded_image.SpatialIndex().value_or(0); in ShouldDiscard() [all …]
|
D | BUILD.gn | 79 deps = [ "../../../../../api/video:encoded_image" ] 92 "../../../../../api/video:encoded_image", 108 "../../../../../api/video:encoded_image", 133 "../../../../../api/video:encoded_image", 194 "../../../../../api/video:encoded_image", 306 "../../../../../api/video:encoded_image", 509 "../../../../../api/video:encoded_image", 529 "../../../../../api/video:encoded_image", 558 "../../../../../api/video:encoded_image", 569 "../../../../../api/video:encoded_image",
|
/external/webrtc/modules/video_coding/codecs/multiplex/ |
D | multiplex_encoded_image_packer.cc | 134 memcpy(buffer, image.encoded_image.data(), image.encoded_image.size()); in PackBitstream() 164 EncodedImage combined_image = images[0].encoded_image; in PackAndRelease() 174 static_cast<uint32_t>(images[i].encoded_image.size()); in PackAndRelease() 178 frame_header.frame_type = images[i].encoded_image._frameType; in PackAndRelease() 262 EncodedImage encoded_image = combined_image; in Unpack() local 263 encoded_image.SetTimestamp(combined_image.Timestamp()); in Unpack() 264 encoded_image._frameType = frame_headers[i].frame_type; in Unpack() 265 encoded_image.SetEncodedData(EncodedImageBuffer::Create( in Unpack() 269 image_component.encoded_image = encoded_image; in Unpack()
|
/external/webrtc/modules/video_coding/codecs/av1/ |
D | dav1d_decoder.cc | 37 int32_t Decode(const EncodedImage& encoded_image, 121 int32_t Dav1dDecoder::Decode(const EncodedImage& encoded_image, in Decode() argument 130 dav1d_data_wrap(&dav1d_data, encoded_image.data(), encoded_image.size(), in Decode() 188 .set_timestamp_rtp(encoded_image.Timestamp()) in Decode() 189 .set_ntp_time_ms(encoded_image.ntp_time_ms_) in Decode() 190 .set_color_space(encoded_image.ColorSpace()) in Decode()
|
D | libaom_av1_encoder.cc | 657 EncodedImage encoded_image; in Encode() local 668 encoded_image.SetEncodedData(EncodedImageBuffer::Create( in Encode() 676 encoded_image._frameType = layer_frame->IsKeyframe() in Encode() 679 encoded_image.SetTimestamp(frame.timestamp()); in Encode() 680 encoded_image.capture_time_ms_ = frame.render_time_ms(); in Encode() 681 encoded_image.rotation_ = frame.rotation(); in Encode() 682 encoded_image.content_type_ = VideoContentType::UNSPECIFIED; in Encode() 688 encoded_image._encodedWidth = cfg_.g_w * n / d; in Encode() 689 encoded_image._encodedHeight = cfg_.g_h * n / d; in Encode() 690 encoded_image.SetSpatialIndex(layer_frame->SpatialId()); in Encode() [all …]
|
D | libaom_av1_encoder_unittest.cc | 107 EXPECT_THAT(encoded_frames[0].encoded_image._frameType, in TEST() 109 EXPECT_THAT(encoded_frames[1].encoded_image._frameType, in TEST() 129 EXPECT_THAT(encoded_frames[0].encoded_image._frameType, in TEST() 131 EXPECT_THAT(encoded_frames[1].encoded_image._frameType, in TEST() 223 Field(&Frame::encoded_image, in TEST() 228 Field(&Frame::encoded_image, in TEST() 233 Field(&Frame::encoded_image, in TEST() 257 EXPECT_THAT(encoded_frames[0].encoded_image._frameType, in TEST() 259 EXPECT_THAT(encoded_frames[1].encoded_image._frameType, in TEST()
|
/external/webrtc/modules/video_coding/codecs/test/ |
D | videoprocessor.cc | 358 const webrtc::EncodedImage& encoded_image, in FrameEncoded() argument 368 config_.encoded_frame_checker->CheckEncodedFrame(codec_type, encoded_image); in FrameEncoded() 372 size_t spatial_idx = encoded_image.SpatialIndex().value_or(0); in FrameEncoded() 376 stats_->GetFrameWithTimestamp(encoded_image.Timestamp(), spatial_idx); in FrameEncoded() 412 frame_stat->length_bytes = encoded_image.size(); in FrameEncoded() 413 frame_stat->frame_type = encoded_image._frameType; in FrameEncoded() 415 frame_stat->max_nalu_size_bytes = GetMaxNaluSizeBytes(encoded_image, config_); in FrameEncoded() 416 frame_stat->qp = encoded_image.qp_; in FrameEncoded() 428 const webrtc::EncodedImage* encoded_image_for_decode = &encoded_image; in FrameEncoded() 432 encoded_image, codec_type, frame_number, spatial_idx, in FrameEncoded() [all …]
|
D | videoprocessor.h | 101 const webrtc::EncodedImage& encoded_image, in OnEncodedImage() argument 108 task_queue_->PostTask([video_processor, encoded_image, in OnEncodedImage() 110 video_processor->FrameEncoded(encoded_image, codec_specific_info); in OnEncodedImage() 115 video_processor_->FrameEncoded(encoded_image, *codec_specific_info); in OnEncodedImage() 157 void FrameEncoded(const webrtc::EncodedImage& encoded_image, 163 void DecodeFrame(const EncodedImage& encoded_image, size_t simulcast_svc_idx); 168 const EncodedImage& encoded_image,
|
/external/webrtc/video/adaptation/ |
D | bandwidth_quality_scaler_resource.cc | 71 const EncodedImage& encoded_image, in OnEncodeCompleted() argument 79 encoded_image._encodedWidth, encoded_image._encodedHeight); in OnEncodeCompleted()
|
D | quality_scaler_resource.cc | 68 void QualityScalerResource::OnEncodeCompleted(const EncodedImage& encoded_image, in OnEncodeCompleted() argument 71 if (quality_scaler_ && encoded_image.qp_ >= 0) { in OnEncodeCompleted() 72 quality_scaler_->ReportQp(encoded_image.qp_, time_sent_in_us); in OnEncodeCompleted()
|