Title: [261915] trunk/Source
- Revision
- 261915
- Author
- [email protected]
- Date
- 2020-05-20 06:30:42 -0700 (Wed, 20 May 2020)
Log Message
[Mac] Use preferedPixelBufferFormat for AVVideoCaptureSource
https://bugs.webkit.org/show_bug.cgi?id=212071
Reviewed by Eric Carlson.
Source/WebCore:
Manually tested.
* platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::avVideoCapturePixelBufferFormat):
Source/WTF:
* wtf/PlatformHave.h:
Add HAVE_DISPLAY_LAYER_BIPLANAR_SUPPORT macro.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (261914 => 261915)
--- trunk/Source/WTF/ChangeLog 2020-05-20 13:29:09 UTC (rev 261914)
+++ trunk/Source/WTF/ChangeLog 2020-05-20 13:30:42 UTC (rev 261915)
@@ -1,3 +1,13 @@
+2020-05-20 Youenn Fablet <[email protected]>
+
+ [Mac] Use preferedPixelBufferFormat for AVVideoCaptureSource
+ https://bugs.webkit.org/show_bug.cgi?id=212071
+
+ Reviewed by Eric Carlson.
+
+ * wtf/PlatformHave.h:
+ Add HAVE_DISPLAY_LAYER_BIPLANAR_SUPPORT macro.
+
2020-05-19 Adrian Perez de Castro <[email protected]>
WTF::LockedPrintStream should be final
Modified: trunk/Source/WTF/wtf/PlatformHave.h (261914 => 261915)
--- trunk/Source/WTF/wtf/PlatformHave.h 2020-05-20 13:29:09 UTC (rev 261914)
+++ trunk/Source/WTF/wtf/PlatformHave.h 2020-05-20 13:30:42 UTC (rev 261915)
@@ -618,3 +618,7 @@
#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS) || PLATFORM(MACCATALYST)
#define HAVE_QUICKLOOK_THUMBNAILING 1
#endif
+
+#if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101600)
+#define HAVE_DISPLAY_LAYER_BIPLANAR_SUPPORT 1
+#endif
Modified: trunk/Source/WebCore/ChangeLog (261914 => 261915)
--- trunk/Source/WebCore/ChangeLog 2020-05-20 13:29:09 UTC (rev 261914)
+++ trunk/Source/WebCore/ChangeLog 2020-05-20 13:30:42 UTC (rev 261915)
@@ -1,3 +1,15 @@
+2020-05-20 Youenn Fablet <[email protected]>
+
+ [Mac] Use preferedPixelBufferFormat for AVVideoCaptureSource
+ https://bugs.webkit.org/show_bug.cgi?id=212071
+
+ Reviewed by Eric Carlson.
+
+ Manually tested.
+
+ * platform/mediastream/mac/AVVideoCaptureSource.mm:
+ (WebCore::avVideoCapturePixelBufferFormat):
+
2020-05-20 Carlos Garcia Campos <[email protected]>
Unreviewed. Fix GTK4 build with GTK 3.98.4
Modified: trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm (261914 => 261915)
--- trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm 2020-05-20 13:29:09 UTC (rev 261914)
+++ trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm 2020-05-20 13:30:42 UTC (rev 261915)
@@ -75,11 +75,10 @@
static inline OSType avVideoCapturePixelBufferFormat()
{
- // FIXME: Use preferedPixelBufferFormat() once rdar://problem/44391444 is fixed.
-#if PLATFORM(MAC)
+#if HAVE(DISPLAY_LAYER_BIPLANAR_SUPPORT)
+ return preferedPixelBufferFormat();
+#else
return kCVPixelFormatType_420YpCbCr8Planar;
-#else
- return preferedPixelBufferFormat();
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes