Android: Generate JNI code for VideoDecoder
Bug: webrtc:8278 Change-Id: I985fa63b0c5a9cdd0fb1817730646bcd4b30288a Reviewed-on: https://webrtc-review.googlesource.com/24221 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20803}
This commit is contained in:
committed by
Commit Bot
parent
4171afb186
commit
4eb0188cb6
@ -36,16 +36,6 @@ class VideoEncoderWrapper {
|
||||
return new VideoEncoder.BitrateAllocation(bitratesBbs);
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
static EncodedImage.FrameType createFrameType(int nativeIndex) {
|
||||
for (EncodedImage.FrameType type : EncodedImage.FrameType.values()) {
|
||||
if (type.getNative() == nativeIndex) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown native frame type: " + nativeIndex);
|
||||
}
|
||||
|
||||
@CalledByNative
|
||||
static boolean getScalingSettingsOn(VideoEncoder.ScalingSettings scalingSettings) {
|
||||
return scalingSettings.on;
|
||||
|
||||
Reference in New Issue
Block a user