Use enum class for VideoCodecMode and VideoCodecComplexity.
Bug: webrtc:7660 Change-Id: I6a8ef01f8abcc25c8efaf0af387408343a7c8ba3 Reviewed-on: https://webrtc-review.googlesource.com/81240 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23595}
This commit is contained in:
@ -79,7 +79,7 @@ VideoCodec::VideoCodec()
|
||||
numberOfSimulcastStreams(0),
|
||||
simulcastStream(),
|
||||
spatialLayers(),
|
||||
mode(kRealtimeVideo),
|
||||
mode(VideoCodecMode::kRealtimeVideo),
|
||||
expect_encode_from_texture(false),
|
||||
timing_frame_thresholds({0, 0}),
|
||||
codec_specific_() {}
|
||||
|
@ -21,7 +21,7 @@ namespace webrtc {
|
||||
// away from slowly.
|
||||
|
||||
// Video codec
|
||||
enum VideoCodecComplexity {
|
||||
enum class VideoCodecComplexity {
|
||||
kComplexityNormal = 0,
|
||||
kComplexityHigh = 1,
|
||||
kComplexityHigher = 2,
|
||||
@ -95,7 +95,7 @@ union VideoCodecUnion {
|
||||
VideoCodecH264 H264;
|
||||
};
|
||||
|
||||
enum VideoCodecMode { kRealtimeVideo, kScreensharing };
|
||||
enum class VideoCodecMode { kRealtimeVideo, kScreensharing };
|
||||
|
||||
// Common video codec properties
|
||||
class VideoCodec {
|
||||
|
Reference in New Issue
Block a user