tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

video_decoder_software_fallback_wrapper.h (1224B)


      1 /*
      2 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef API_VIDEO_CODECS_VIDEO_DECODER_SOFTWARE_FALLBACK_WRAPPER_H_
     12 #define API_VIDEO_CODECS_VIDEO_DECODER_SOFTWARE_FALLBACK_WRAPPER_H_
     13 
     14 #include <memory>
     15 
     16 #include "api/environment/environment.h"
     17 #include "api/video_codecs/video_decoder.h"
     18 #include "rtc_base/system/rtc_export.h"
     19 
     20 namespace webrtc {
     21 
     22 // Used to wrap external VideoDecoders to provide a fallback option on
     23 // software decoding when a hardware decoder fails to decode a stream due to
     24 // hardware restrictions, such as max resolution.
     25 RTC_EXPORT std::unique_ptr<VideoDecoder>
     26 CreateVideoDecoderSoftwareFallbackWrapper(
     27    const Environment& env,
     28    std::unique_ptr<VideoDecoder> sw_fallback_decoder,
     29    std::unique_ptr<VideoDecoder> hw_decoder);
     30 
     31 }  // namespace webrtc
     32 
     33 #endif  // API_VIDEO_CODECS_VIDEO_DECODER_SOFTWARE_FALLBACK_WRAPPER_H_