⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269147 in webkit


Ignore:
Timestamp:
Oct 29, 2020, 7:29:52 AM (6 years ago)
Author:
youenn@apple.com
Message:

Disable VP9 VTB hardware decoding
https://bugs.webkit.org/show_bug.cgi?id=218326

Reviewed by Alex Christensen.

VP9 hardware decoder does not work properly yet as used in WebRTC pipeline.
Disable hardware support for now and use software based VP9 through VTB.

  • Source/webrtc/sdk/objc/components/video_codec/RTCVideoDecoderVTBVP9.mm:

(-[RTCVideoDecoderVTBVP9 resetDecompressionSession]):

Location:
trunk/Source/ThirdParty/libwebrtc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r268971 r269147  
     12020-10-29  Youenn Fablet  <youenn@apple.com>
     2
     3        Disable VP9 VTB hardware decoding
     4        https://bugs.webkit.org/show_bug.cgi?id=218326
     5
     6        Reviewed by Alex Christensen.
     7
     8        VP9 hardware decoder does not work properly yet as used in WebRTC pipeline.
     9        Disable hardware support for now and use software based VP9 through VTB.
     10
     11        * Source/webrtc/sdk/objc/components/video_codec/RTCVideoDecoderVTBVP9.mm:
     12        (-[RTCVideoDecoderVTBVP9 resetDecompressionSession]):
     13
    1142020-10-26  Youenn Fablet  <youenn@apple.com>
    215
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/components/video_codec/RTCVideoDecoderVTBVP9.mm

    r268805 r269147  
    261261    pixelFormat = nullptr;
    262262  }
     263
     264  // rdar://problem/70701816. Disable hardware decoding until working properly.
     265  auto videoDecoderSpecification = @{
     266#if !defined(WEBRTC_IOS)
     267    (__bridge NSString *)kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder: @NO
     268#endif
     269  };
     270
    263271  VTDecompressionOutputCallbackRecord record = {
    264272      vp9DecompressionOutputCallback, (__bridge void *)self,
    265273  };
    266274  OSStatus status = VTDecompressionSessionCreate(
    267       nullptr, _videoFormat, nullptr, attributes, &record, &_decompressionSession);
     275      nullptr, _videoFormat, (__bridge CFDictionaryRef)videoDecoderSpecification, attributes, &record, &_decompressionSession);
    268276  CFRelease(attributes);
    269277  if (status != noErr) {
Note: See TracChangeset for help on using the changeset viewer.