2020-03-20 10:36:13 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_
|
|
|
|
|
|
2022-05-04 11:20:04 +02:00
|
|
|
#include <map>
|
2020-03-20 10:36:13 +01:00
|
|
|
#include <memory>
|
|
|
|
|
|
2024-03-11 13:17:45 +01:00
|
|
|
#include "absl/base/nullability.h"
|
|
|
|
|
#include "api/environment/environment.h"
|
2020-03-20 10:36:13 +01:00
|
|
|
#include "api/video_codecs/video_encoder.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
2024-03-11 13:17:45 +01:00
|
|
|
|
|
|
|
|
struct LibaomAv1EncoderSettings {
|
2022-05-04 11:20:04 +02:00
|
|
|
// A map of max pixel count --> cpu speed.
|
|
|
|
|
std::map<int, int> max_pixel_count_to_cpu_speed;
|
|
|
|
|
};
|
2024-03-11 13:17:45 +01:00
|
|
|
absl::Nonnull<std::unique_ptr<VideoEncoder>> CreateLibaomAv1Encoder(
|
|
|
|
|
const Environment& env,
|
|
|
|
|
LibaomAv1EncoderSettings settings = {});
|
2022-05-04 11:20:04 +02:00
|
|
|
|
2020-03-20 10:36:13 +01:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // MODULES_VIDEO_CODING_CODECS_AV1_LIBAOM_AV1_ENCODER_H_
|