Delete enum RtpVideoCodecTypes, replaced with VideoCodecType.

Bug: webrtc:8995
Change-Id: I0b44aa26f2f6a81aec7ca1281b8513d8e03228b8
Reviewed-on: https://webrtc-review.googlesource.com/79561
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23507}
This commit is contained in:
Niels Möller
2018-06-04 11:14:38 +02:00
committed by Commit Bot
parent b18931d30c
commit 520ca4e3b8
36 changed files with 174 additions and 190 deletions

View File

@ -55,6 +55,7 @@ public class MediaCodecVideoDecoder {
// Tracks webrtc::VideoCodecType.
public enum VideoCodecType {
VIDEO_CODEC_UNKNOWN,
VIDEO_CODEC_VP8,
VIDEO_CODEC_VP9,
VIDEO_CODEC_H264;

View File

@ -47,6 +47,7 @@ public class MediaCodecVideoEncoder {
// Tracks webrtc::VideoCodecType.
public enum VideoCodecType {
VIDEO_CODEC_UNKNOWN,
VIDEO_CODEC_VP8,
VIDEO_CODEC_VP9,
VIDEO_CODEC_H264;
@ -486,6 +487,8 @@ public class MediaCodecVideoEncoder {
}
}
keyFrameIntervalSec = 20;
} else {
throw new RuntimeException("initEncode: Non-supported codec " + type);
}
if (properties == null) {
throw new RuntimeException("Can not find HW encoder for " + type);