commit | 09da10e24fda334a458d5bf1da1f05c30de05223 | [log] [tgz] |
---|---|---|
author | Evan Shrubsole <eshr@webrtc.org> | Fri Oct 14 14:38:31 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 19 13:15:31 2022 |
tree | aed5bb1f9ea8d7989ca4bc6b9d4f780b5ce8fc71 | |
parent | 6253a4ff9adf0fb0d7d08f98c9f25a4b7d5f63a4 [diff] [blame] |
Add powerEfficientDecoder and powerEfficientEncoder stats The spec for these are at https://w3c.github.io/webrtc-stats/#dom-rtcinboundrtpstreamstats-powerefficientdecoder and https://w3c.github.io/webrtc-stats/#dom-rtcinboundrtpstreamstats-powerefficientdecoder These stats are based on the is_hardware_accelerated boolean in both the DecoderInfo and EncoderInfo structs. Bug: webrtc:14483 Change-Id: I4610da3c6ae977f5853a3b3424d91d864fe72592 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/274409 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Evan Shrubsole <eshr@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38441}
diff --git a/video/video_stream_decoder2.h b/video/video_stream_decoder2.h index 995008d..473d463 100644 --- a/video/video_stream_decoder2.h +++ b/video/video_stream_decoder2.h
@@ -18,6 +18,7 @@ #include "api/scoped_refptr.h" #include "api/video/video_sink_interface.h" +#include "api/video_codecs/video_decoder.h" #include "modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h" #include "modules/video_coding/include/video_coding_defines.h" #include "rtc_base/platform_thread.h" @@ -45,7 +46,8 @@ VideoContentType content_type) override; void OnDroppedFrames(uint32_t frames_dropped) override; void OnIncomingPayloadType(int payload_type) override; - void OnDecoderImplementationName(const char* implementation_name) override; + void OnDecoderInfoChanged( + const VideoDecoder::DecoderInfo& decoder_info) override; private: VideoReceiver2* const video_receiver_;