Changeset 287759 in webkit
- Timestamp:
- Jan 7, 2022, 10:43:28 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r287757 r287759 1 2022-01-07 Youenn Fablet <youenn@apple.com> 2 3 Expose rvfc processingDuration for the WebRTC code path 4 https://bugs.webkit.org/show_bug.cgi?id=234949 5 6 Reviewed by Eric Carlson. 7 8 * webrtc/peerConnection-rvfc.html: 9 1 10 2022-01-07 Simon Fraser <simon.fraser@apple.com> 2 11 -
trunk/LayoutTests/webrtc/peerConnection-rvfc.html
r284528 r287759 54 54 assert_equals(metadata.width, 320); 55 55 assert_greater_than(metadata.presentedFrames, presentedFrames); 56 assert_greater_than(metadata.processingDuration, 0); 56 57 }, "Validate callbacks and metadata for peer connection tracks"); 57 58 </script> -
trunk/Source/WebCore/ChangeLog
r287757 r287759 1 2022-01-07 Youenn Fablet <youenn@apple.com> 2 3 Expose rvfc processingDuration for the WebRTC code path 4 https://bugs.webkit.org/show_bug.cgi?id=234949 5 6 Reviewed by Eric Carlson. 7 8 This processing duration is the time it took for an assembled frame to be decoded and sent to RealtimIncomingVideoSource. 9 This duration can be approximately retrieved from WebRTC encoded transform (time for the assembled frame, aka time just before decoding) 10 and the time at which it is exposed by requestVideoFrameCallback (aka time just after decoding). 11 The processing duration is rounded in milliseconds. 12 13 Covered by updated test. 14 15 * platform/mediastream/RealtimeIncomingVideoSource.cpp: 16 1 17 2022-01-07 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebCore/platform/mediastream/RealtimeIncomingVideoSource.cpp
r285984 r287759 116 116 }); 117 117 metadata.receiveTime = Seconds::fromMicroseconds(lastPacketTimestamp->receive_time().us()); 118 if (frame.processing_time()) 119 metadata.processingDuration = Seconds::fromMilliseconds(frame.processing_time()->Elapsed().ms()).value(); 120 118 121 return metadata; 119 122 }
Note:
See TracChangeset
for help on using the changeset viewer.