Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: aa49cd4d27107bd400dbbffc2542ddd5e30ab8ed https://github.com/WebKit/WebKit/commit/aa49cd4d27107bd400dbbffc2542ddd5e30ab8ed Author: Youenn Fablet <you...@apple.com> Date: 2024-06-13 (Thu, 13 Jun 2024)
Changed paths: M Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp M Source/WebCore/platform/mediastream/RealtimeMediaSource.h M Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp M Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.h M Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.cpp M Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.h M Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp M Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.h M Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp M Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.h M Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp M Source/WebCore/platform/mock/MockRealtimeVideoSource.h M Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp Log Message: ----------- Introduce VideoPresetConstraints to more easily add constraints that can influence camera preset selection https://bugs.webkit.org/show_bug.cgi?id=275395 rdar://129666559 Reviewed by Philippe Normand and Eric Carlson. Instead of passing multiple parameters together, let's use a VideoPresetConstraints struct instead. We can in the future extend the number of parameters used to compute the camera preset without too much changes. * Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp: (WebCore::RealtimeMediaSource::supportsSizeFrameRateAndZoom): (WebCore::RealtimeMediaSource::hasInvalidSizeFrameRateAndZoomConstraints): (WebCore::RealtimeMediaSource::setSizeFrameRateAndZoom): (WebCore::RealtimeMediaSource::extractVideoPresetConstraints): (WebCore::RealtimeMediaSource::applyConstraints): (WebCore::RealtimeMediaSource::extractVideoFrameSizeConstraints): Deleted. * Source/WebCore/platform/mediastream/RealtimeMediaSource.h: * Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp: (WebCore::RealtimeVideoCaptureSource::supportsSizeFrameRateAndZoom): (WebCore::RealtimeVideoCaptureSource::bestSupportedSizeFrameRateAndZoom): (WebCore::RealtimeVideoCaptureSource::clientUpdatedSizeFrameRateAndZoom): (WebCore::RealtimeVideoCaptureSource::bestSupportedSizeFrameRateAndZoomConsideringObservers): (WebCore::RealtimeVideoCaptureSource::setSizeFrameRateAndZoom): (WebCore::RealtimeVideoCaptureSource::takePhoto): * Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.h: * Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.cpp: (WebCore::DisplayCaptureSourceCocoa::setSizeFrameRateAndZoom): * Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.h: * Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp: (WebCore::GStreamerVideoCaptureSource::setSizeFrameRateAndZoom): * Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.h: * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp: (WebCore::MockRealtimeVideoSourceGStreamer::setSizeFrameRateAndZoom): * Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.h: * Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp: (WebCore::MockRealtimeVideoSource::supportsSizeFrameRateAndZoom): (WebCore::MockRealtimeVideoSource::setSizeFrameRateAndZoom): * Source/WebCore/platform/mock/MockRealtimeVideoSource.h: * Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp: Canonical link: https://commits.webkit.org/279982@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes