Android: Pass VideoCodecInfo instead of String to createDecoder()
This is in line with the new C++ VideoCodecFactory interface. Bug: webrtc:7925 Change-Id: Ice51cab61b6498fef1b0483ce1bd4835ef550231 Reviewed-on: https://webrtc-review.googlesource.com/88368 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23966}
This commit is contained in:

committed by
Commit Bot

parent
e6d7c3e32a
commit
026f27fac1
@ -18,7 +18,18 @@ public interface VideoDecoderFactory {
|
||||
* Creates a VideoDecoder for the given codec. Supports the same codecs supported by
|
||||
* VideoEncoderFactory.
|
||||
*/
|
||||
@Nullable @CalledByNative VideoDecoder createDecoder(String codecType);
|
||||
@Deprecated
|
||||
@Nullable
|
||||
default VideoDecoder createDecoder(String codecType) {
|
||||
throw new UnsupportedOperationException("Deprecated and not implemented.");
|
||||
}
|
||||
|
||||
/** Creates a decoder for the given video codec. */
|
||||
@Nullable
|
||||
@CalledByNative
|
||||
default VideoDecoder createDecoder(VideoCodecInfo info) {
|
||||
return createDecoder(info.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Enumerates the list of supported video codecs.
|
||||
|
Reference in New Issue
Block a user