tor-browser

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

vp8.h (1282B)


      1 /*
      2 *  Copyright (c) 2012 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 MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
     12 #define MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
     13 
     14 #include <memory>
     15 #include <vector>
     16 
     17 #include "absl/base/nullability.h"
     18 #include "api/environment/environment.h"
     19 #include "api/video_codecs/video_decoder.h"
     20 #include "api/video_codecs/video_encoder.h"
     21 
     22 namespace webrtc {
     23 
     24 struct Vp8EncoderSettings {
     25  // Allows for overriding the resolution/bitrate limits exposed through
     26  // VideoEncoder::GetEncoderInfo(). No override is done if empty.
     27  std::vector<VideoEncoder::ResolutionBitrateLimits> resolution_bitrate_limits;
     28 };
     29 absl_nonnull std::unique_ptr<VideoEncoder> CreateVp8Encoder(
     30    const Environment& env,
     31    Vp8EncoderSettings settings = {});
     32 
     33 std::unique_ptr<VideoDecoder> CreateVp8Decoder(const Environment& env);
     34 
     35 }  // namespace webrtc
     36 
     37 #endif  // MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_