tor-browser

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

libaom_av1_encoder.h (1076B)


      1 /*
      2 *  Copyright (c) 2020 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 #ifndef MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_
     11 #define MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_
     12 
     13 #include <map>
     14 #include <memory>
     15 
     16 #include "absl/base/nullability.h"
     17 #include "api/environment/environment.h"
     18 #include "api/video_codecs/video_encoder.h"
     19 
     20 namespace webrtc {
     21 
     22 struct LibaomAv1EncoderSettings {
     23  // A map of max pixel count --> cpu speed.
     24  std::map<int, int> max_pixel_count_to_cpu_speed;
     25 };
     26 absl_nonnull std::unique_ptr<VideoEncoder> CreateLibaomAv1Encoder(
     27    const Environment& env,
     28    LibaomAv1EncoderSettings settings = {});
     29 
     30 }  // namespace webrtc
     31 
     32 #endif  // MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_