Changeset 245033 in webkit
- Timestamp:
- May 7, 2019 2:07:00 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245028 r245033 1 2019-05-07 Youenn Fablet <youenn@apple.com> 2 3 Video stream freeze on front camera orientation changing 4 https://bugs.webkit.org/show_bug.cgi?id=197227 5 <rdar://problem/50175498> 6 7 Reviewed by Eric Carlson. 8 9 * webrtc/video-rotation-expected.txt: 10 * webrtc/video-rotation.html: 11 1 12 2019-05-07 Brent Fulgham <bfulgham@apple.com> 2 13 -
trunk/LayoutTests/webrtc/video-rotation-expected.txt
r222208 r245033 4 4 PASS Track is enabled, video should not be black 5 5 PASS Track is enabled and rotated, video should not be black and should change size 6 PASS Track is enabled and rotated again, video should not be black and should change size 6 7 -
trunk/LayoutTests/webrtc/video-rotation.html
r222208 r245033 87 87 }); 88 88 }, "Track is enabled and rotated, video should not be black and should change size"); 89 90 promise_test((test) => { 91 if (window.internals) 92 window.internals.setCameraMediaStreamTrackOrientation(track, 180); 93 94 return checkVideoBlack(false, "canvas1").then(() => { 95 return waitForVideoSize(video, 320, 240); 96 }); 97 }, "Track is enabled and rotated again, video should not be black and should change size"); 89 98 </script> 90 99 </body> -
trunk/Source/WebCore/ChangeLog
r245032 r245033 1 2019-05-07 Youenn Fablet <youenn@apple.com> 2 3 Video stream freeze on front camera orientation changing 4 https://bugs.webkit.org/show_bug.cgi?id=197227 5 <rdar://problem/50175498> 6 7 Reviewed by Eric Carlson. 8 9 Use m_currentRotationSessionAngle instead of m_currentRotation to create or not a new rotation session. 10 Covered by updated test. 11 12 * platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.h: 13 * platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm: 14 (WebCore::RealtimeOutgoingVideoSourceCocoa::rotatePixelBuffer): 15 1 16 2019-05-07 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.h
r236070 r245033 55 55 RetainPtr<VTImageRotationSessionRef> m_rotationSession; 56 56 RetainPtr<CVPixelBufferPoolRef> m_rotationPool; 57 webrtc::VideoRotation m_currentRotation Angle { webrtc::kVideoRotation_0 };57 webrtc::VideoRotation m_currentRotationSessionAngle { webrtc::kVideoRotation_0 }; 58 58 size_t m_rotatedWidth { 0 }; 59 59 size_t m_rotatedHeight { 0 }; -
trunk/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm
r244949 r245033 72 72 return pixelBuffer; 73 73 74 if (!m_rotationSession || rotation != m_currentRotation ) {74 if (!m_rotationSession || rotation != m_currentRotationSessionAngle) { 75 75 VTImageRotationSessionRef rawRotationSession = nullptr; 76 76 auto status = VTImageRotationSessionCreate(kCFAllocatorDefault, rotation, &rawRotationSession); … … 81 81 82 82 m_rotationSession = adoptCF(rawRotationSession); 83 m_currentRotation = rotation;83 m_currentRotationSessionAngle = rotation; 84 84 85 85 VTImageRotationSessionSetProperty(rawRotationSession, kVTImageRotationPropertyKey_EnableHighSpeedTransfer, kCFBooleanTrue);
Note: See TracChangeset
for help on using the changeset viewer.