1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
media / gpu / windows / av1_video_rate_control_wrapper.h [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_WINDOWS_AV1_VIDEO_RATE_CONTROL_WRAPPER_H_
#define MEDIA_GPU_WINDOWS_AV1_VIDEO_RATE_CONTROL_WRAPPER_H_
#include "third_party/libaom/source/libaom/av1/ratectrl_rtc.h"
#include "video_rate_control_wrapper.h"
namespace media {
using AV1RateControl =
VideoRateControlWrapperInternal<aom::AV1RateControlRtcConfig,
aom::AV1RateControlRTC,
aom::AV1FrameParamsRTC>;
template <>
int AV1RateControl::GetLoopfilterLevel() const;
template <>
void AV1RateControl::PostEncodeUpdate(uint64_t encoded_frame_size,
const FrameParams& frame_params);
template <>
aom::AV1RateControlRtcConfig AV1RateControl::ConvertControlConfig(
const RateControlConfig& config);
template <>
aom::AV1FrameParamsRTC AV1RateControl::ConvertFrameParams(
const FrameParams& frame_params);
} // namespace media
#endif // MEDIA_GPU_WINDOWS_AV1_VIDEO_RATE_CONTROL_WRAPPER_H_