VideoStreamEncoder: add Encode and QP feedback logging.

Bug: b/245029833
Change-Id: I02f867d2505ad5748bda3c72fd690b2c07647732
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/275202
Commit-Queue: Markus Handell <handellm@webrtc.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38064}
This commit is contained in:
Markus Handell 2022-09-12 16:33:32 +02:00 committed by WebRTC LUCI CQ
parent 307f7f37e0
commit eab4ab6637

View File

@ -1755,6 +1755,8 @@ void VideoStreamEncoder::MaybeEncodeVideoFrame(const VideoFrame& video_frame,
void VideoStreamEncoder::EncodeVideoFrame(const VideoFrame& video_frame,
int64_t time_when_posted_us) {
RTC_DCHECK_RUN_ON(&encoder_queue_);
RTC_LOG(LS_VERBOSE) << __func__ << " posted " << time_when_posted_us
<< " ntp time " << video_frame.ntp_time_ms();
// If the encoder fail we can't continue to encode frames. When this happens
// the WebrtcVideoSender is notified and the whole VideoSendStream is
@ -1975,6 +1977,8 @@ EncodedImageCallback::Result VideoStreamEncoder::OnEncodedImage(
image_copy.size())
.value_or(-1);
}
RTC_LOG(LS_VERBOSE) << __func__ << " spatial_idx " << spatial_idx << " qp "
<< image_copy.qp_;
// Piggyback ALR experiment group id and simulcast id into the content type.
const uint8_t experiment_id =