Add trace event with qp value to VideoStreamEncoder

Bug: None
Change-Id: I11c88a948b1940cac91ac6132e44107db0c5c46a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338980
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Johannes Kron <kron@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41734}
This commit is contained in:
Johannes Kron 2024-02-09 16:23:18 +01:00 committed by WebRTC LUCI CQ
parent 050ffefd85
commit 7fc9535d8b

View File

@ -2105,6 +2105,8 @@ EncodedImage VideoStreamEncoder::AugmentEncodedImage(
.Parse(codec_type, stream_idx, image_copy.data(), image_copy.size()) .Parse(codec_type, stream_idx, image_copy.data(), image_copy.size())
.value_or(-1); .value_or(-1);
} }
TRACE_EVENT2("webrtc", "VideoStreamEncoder::AugmentEncodedImage",
"stream_idx", stream_idx, "qp", image_copy.qp_);
RTC_LOG(LS_VERBOSE) << __func__ << " ntp time " << encoded_image.NtpTimeMs() RTC_LOG(LS_VERBOSE) << __func__ << " ntp time " << encoded_image.NtpTimeMs()
<< " stream_idx " << stream_idx << " qp " << " stream_idx " << stream_idx << " qp "
<< image_copy.qp_; << image_copy.qp_;