Android: Clean up JNI generated code
It's now possible to generate JNI code for constructors and enums correctly. This CL cleans that up. Bug: webrtc:8278,webrtc:8551,webrtc:8556 Change-Id: I2284a30139cbb186c80713eb6113eda5659c16ad Reviewed-on: https://webrtc-review.googlesource.com/25622 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20860}
This commit is contained in:
committed by
Commit Bot
parent
aea1d1ad3f
commit
1f2a3e7058
@ -10,6 +10,8 @@
|
||||
|
||||
package org.webrtc;
|
||||
|
||||
import org.webrtc.EncodedImage;
|
||||
|
||||
/**
|
||||
* Interface for a video encoder that can be used with WebRTC. All calls will be made on the
|
||||
* encoding thread. The encoder may be constructed on a different thread and changing thread after
|
||||
@ -25,6 +27,7 @@ public interface VideoEncoder {
|
||||
public final int maxFramerate;
|
||||
public final boolean automaticResizeOn;
|
||||
|
||||
@CalledByNative("Settings")
|
||||
public Settings(int numberOfCores, int width, int height, int startBitrate, int maxFramerate,
|
||||
boolean automaticResizeOn) {
|
||||
this.numberOfCores = numberOfCores;
|
||||
@ -40,6 +43,7 @@ public interface VideoEncoder {
|
||||
public class EncodeInfo {
|
||||
public final EncodedImage.FrameType[] frameTypes;
|
||||
|
||||
@CalledByNative("EncodeInfo")
|
||||
public EncodeInfo(EncodedImage.FrameType[] frameTypes) {
|
||||
this.frameTypes = frameTypes;
|
||||
}
|
||||
@ -67,6 +71,7 @@ public interface VideoEncoder {
|
||||
* Initializes the allocation with a two dimensional array of bitrates. The first index of the
|
||||
* array is the spatial layer and the second index in the temporal layer.
|
||||
*/
|
||||
@CalledByNative("BitrateAllocation")
|
||||
public BitrateAllocation(int[][] bitratesBbs) {
|
||||
this.bitratesBbs = bitratesBbs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user