2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-02-02 12:21:47 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2017-11-13 14:10:02 +01:00
|
|
|
#include <memory>
|
2020-03-23 16:49:52 +01:00
|
|
|
#include <vector>
|
2017-11-13 14:10:02 +01:00
|
|
|
|
2024-03-11 13:17:45 +01:00
|
|
|
#include "absl/base/nullability.h"
|
2024-02-12 15:28:35 +01:00
|
|
|
#include "api/environment/environment.h"
|
2020-03-23 16:49:52 +01:00
|
|
|
#include "api/video_codecs/video_encoder.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "modules/video_coding/include/video_codec_interface.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2012-09-20 20:49:12 +00:00
|
|
|
namespace webrtc {
|
2011-12-02 08:34:05 +00:00
|
|
|
|
2024-03-11 13:17:45 +01:00
|
|
|
struct Vp8EncoderSettings {
|
|
|
|
|
// Allows for overriding the resolution/bitrate limits exposed through
|
|
|
|
|
// VideoEncoder::GetEncoderInfo(). No override is done if empty.
|
|
|
|
|
std::vector<VideoEncoder::ResolutionBitrateLimits> resolution_bitrate_limits;
|
|
|
|
|
};
|
|
|
|
|
absl::Nonnull<std::unique_ptr<VideoEncoder>> CreateVp8Encoder(
|
|
|
|
|
const Environment& env,
|
|
|
|
|
Vp8EncoderSettings settings = {});
|
|
|
|
|
|
2024-02-12 15:28:35 +01:00
|
|
|
std::unique_ptr<VideoDecoder> CreateVp8Decoder(const Environment& env);
|
|
|
|
|
|
2012-02-02 12:21:47 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_VIDEO_CODING_CODECS_VP8_INCLUDE_VP8_H_
|