measure decode time in TimeDelta instead of ms
increasing precision since summing up rounded values leads to a rounding error, in particular for small frames which take very little time to decode. BUG=webrtc:12526,webrtc:13756 Change-Id: I647c702808856a002c746ed9f115aa9bcaddc1f3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262810 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com> Cr-Commit-Position: refs/heads/main@{#37249}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
c374d11fac
commit
d970b0901b
@ -38,10 +38,11 @@ class MockVCMReceiveCallback : public VCMReceiveCallback {
|
||||
MockVCMReceiveCallback() {}
|
||||
virtual ~MockVCMReceiveCallback() {}
|
||||
|
||||
MOCK_METHOD(int32_t,
|
||||
FrameToRender,
|
||||
(VideoFrame&, absl::optional<uint8_t>, int32_t, VideoContentType),
|
||||
(override));
|
||||
MOCK_METHOD(
|
||||
int32_t,
|
||||
FrameToRender,
|
||||
(VideoFrame&, absl::optional<uint8_t>, TimeDelta, VideoContentType),
|
||||
(override));
|
||||
MOCK_METHOD(void, OnIncomingPayloadType, (int), (override));
|
||||
MOCK_METHOD(void, OnDecoderImplementationName, (const char*), (override));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user