LeviLamina
Loading...
Searching...
No Matches
VideoEncoderFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace webrtc { class DataRate; }
8namespace webrtc { class Environment; }
9namespace webrtc { class RenderResolution; }
10namespace webrtc { class VideoEncoder; }
11namespace webrtc { struct SdpVideoFormat; }
12// clang-format on
13
14namespace webrtc {
15
17public:
18 // VideoEncoderFactory inner types declare
19 // clang-format off
20 struct CodecSupport;
22 // clang-format on
23
24 // VideoEncoderFactory inner types define
25 struct CodecSupport {
26 public:
27 // member variables
28 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 CodecSupport& operator=(CodecSupport const&);
38 };
39
41 public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~EncoderSelectorInterface() = default;
46
47 // vIndex: 1
48 virtual void OnCurrentEncoder(::webrtc::SdpVideoFormat const&) = 0;
49
50 // vIndex: 2
51 virtual ::std::optional<::webrtc::SdpVideoFormat> OnAvailableBitrate(::webrtc::DataRate const&) = 0;
52
53 // vIndex: 3
54 virtual ::std::optional<::webrtc::SdpVideoFormat> OnResolutionChange(::webrtc::RenderResolution const&);
55
56 // vIndex: 4
57 virtual ::std::optional<::webrtc::SdpVideoFormat> OnEncoderBroken() = 0;
58 // NOLINTEND
59
60 public:
61 // virtual function thunks
62 // NOLINTBEGIN
63
64 // NOLINTEND
65 };
66
67public:
68 // virtual functions
69 // NOLINTBEGIN
70 // vIndex: 0
71 virtual ::std::vector<::webrtc::SdpVideoFormat> GetSupportedFormats() const = 0;
72
73 // vIndex: 1
74 virtual ::std::vector<::webrtc::SdpVideoFormat> GetImplementations() const;
75
76 // vIndex: 2
77 virtual ::webrtc::VideoEncoderFactory::CodecSupport
78 QueryCodecSupport(::webrtc::SdpVideoFormat const&, ::std::optional<::std::string>) const;
79
80 // vIndex: 3
81 virtual ::std::unique_ptr<::webrtc::VideoEncoder>
83
84 // vIndex: 4
85 virtual ::std::unique_ptr<::webrtc::VideoEncoder> CreateVideoEncoder(::webrtc::SdpVideoFormat const&);
86
87 // vIndex: 5
88 virtual ::std::unique_ptr<::webrtc::VideoEncoderFactory::EncoderSelectorInterface> GetEncoderSelector() const;
89
90 // vIndex: 6
91 virtual ~VideoEncoderFactory() = default;
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97
98 // NOLINTEND
99};
100
101} // namespace webrtc
Definition DataRate.h:10
Definition Environment.h:7
Definition RenderResolution.h:7
Definition VideoEncoderFactory.h:16
Definition Alias.h:14
Definition SdpVideoFormat.h:7
Definition VideoEncoderFactory.h:25