Changeset 261915 in webkit


Ignore:
Timestamp:
May 20, 2020 6:30:42 AM (4 years ago)
Author:
youenn@apple.com
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.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r261886 r261915  
     12020-05-20  Youenn Fablet  <youenn@apple.com>
     2
     3        [Mac] Use preferedPixelBufferFormat for AVVideoCaptureSource
     4        https://bugs.webkit.org/show_bug.cgi?id=212071
     5
     6        Reviewed by Eric Carlson.
     7
     8        * wtf/PlatformHave.h:
     9        Add HAVE_DISPLAY_LAYER_BIPLANAR_SUPPORT macro.
     10
    1112020-05-19  Adrian Perez de Castro  <aperez@igalia.com>
    212
  • trunk/Source/WTF/wtf/PlatformHave.h

    r261845 r261915  
    619619#define HAVE_QUICKLOOK_THUMBNAILING 1
    620620#endif
     621
     622#if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101600)
     623#define HAVE_DISPLAY_LAYER_BIPLANAR_SUPPORT 1
     624#endif
  • trunk/Source/WebCore/ChangeLog

    r261912 r261915  
     12020-05-20  Youenn Fablet  <youenn@apple.com>
     2
     3        [Mac] Use preferedPixelBufferFormat for AVVideoCaptureSource
     4        https://bugs.webkit.org/show_bug.cgi?id=212071
     5
     6        Reviewed by Eric Carlson.
     7
     8        Manually tested.
     9
     10        * platform/mediastream/mac/AVVideoCaptureSource.mm:
     11        (WebCore::avVideoCapturePixelBufferFormat):
     12
    1132020-05-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm

    r261080 r261915  
    7676static inline OSType avVideoCapturePixelBufferFormat()
    7777{
    78     // FIXME: Use preferedPixelBufferFormat() once rdar://problem/44391444 is fixed.
    79 #if PLATFORM(MAC)
     78#if HAVE(DISPLAY_LAYER_BIPLANAR_SUPPORT)
     79    return preferedPixelBufferFormat();
     80#else
    8081    return kCVPixelFormatType_420YpCbCr8Planar;
    81 #else
    82     return preferedPixelBufferFormat();
    8382#endif
    8483}
Note: See TracChangeset for help on using the changeset viewer.