Rename software codec classes and move them into api/
We want clients to be able to build their own factories around these codecs. Bug: webrtc:7925 Change-Id: Ia8f62d5d85e63ac6e3eb402c5996d8b986625615 Reviewed-on: https://webrtc-review.googlesource.com/c/109529 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Jonathan Yu <yujo@chromium.org> Cr-Commit-Position: refs/heads/master@{#25543}
This commit is contained in:
@ -20,10 +20,10 @@ public class SoftwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
@Override
|
||||
public VideoEncoder createEncoder(VideoCodecInfo info) {
|
||||
if (info.name.equalsIgnoreCase("VP8")) {
|
||||
return new VP8Encoder();
|
||||
return new LibvpxVp8Encoder();
|
||||
}
|
||||
if (info.name.equalsIgnoreCase("VP9") && VP9Encoder.nativeIsSupported()) {
|
||||
return new VP9Encoder();
|
||||
if (info.name.equalsIgnoreCase("VP9") && LibvpxVp9Encoder.nativeIsSupported()) {
|
||||
return new LibvpxVp9Encoder();
|
||||
}
|
||||
|
||||
return null;
|
||||
@ -38,7 +38,7 @@ public class SoftwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
List<VideoCodecInfo> codecs = new ArrayList<VideoCodecInfo>();
|
||||
|
||||
codecs.add(new VideoCodecInfo("VP8", new HashMap<>()));
|
||||
if (VP9Encoder.nativeIsSupported()) {
|
||||
if (LibvpxVp9Encoder.nativeIsSupported()) {
|
||||
codecs.add(new VideoCodecInfo("VP9", new HashMap<>()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user