NativeAndroidVideoTrackSource.smali
.class Lorg/webrtc/NativeAndroidVideoTrackSource;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final nativeAndroidVideoTrackSource:J
# direct methods
.method public constructor <init>(J)V
.registers 3
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-wide p1, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
return-void
.end method
.method public static createFrameAdaptationParameters(IIIIIIJZ)Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
.registers 20
.annotation build Lorg/webrtc/CalledByNative;
.end annotation
new-instance v10, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
move-object v0, v10
move v1, p0
move v2, p1
move v3, p2
move v4, p3
move v5, p4
move/from16 v6, p5
move-wide/from16 v7, p6
move/from16 v9, p8
invoke-direct/range {v0 .. v9}, Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;-><init>(IIIIIIJZ)V
return-object v10
.end method
.method private static native nativeAdaptFrame(JIIIJ)Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
.end method
.method private static native nativeAdaptOutputFormat(JIILjava/lang/Integer;IILjava/lang/Integer;Ljava/lang/Integer;)V
.end method
.method private static native nativeOnFrameCaptured(JIJLorg/webrtc/VideoFrame$Buffer;)V
.end method
.method private static native nativeSetIsScreencast(JZ)V
.end method
.method private static native nativeSetState(JZ)V
.end method
# virtual methods
.method public adaptFrame(Lorg/webrtc/VideoFrame;)Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
.registers 9
.line 1
iget-wide v0, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getBuffer()Lorg/webrtc/VideoFrame$Buffer;
move-result-object v2
invoke-interface {v2}, Lorg/webrtc/VideoFrame$Buffer;->getWidth()I
move-result v2
.line 2
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getBuffer()Lorg/webrtc/VideoFrame$Buffer;
move-result-object v3
invoke-interface {v3}, Lorg/webrtc/VideoFrame$Buffer;->getHeight()I
move-result v3
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getRotation()I
move-result v4
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
move-result-wide v5
.line 3
invoke-static/range {v0 .. v6}, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAdaptFrame(JIIIJ)Lorg/webrtc/VideoProcessor$FrameAdaptationParameters;
move-result-object p1
return-object p1
.end method
.method public adaptOutputFormat(Lorg/webrtc/VideoSource$AspectRatio;Ljava/lang/Integer;Lorg/webrtc/VideoSource$AspectRatio;Ljava/lang/Integer;Ljava/lang/Integer;)V
.registers 15
iget-wide v0, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
iget v2, p1, Lorg/webrtc/VideoSource$AspectRatio;->width:I
iget v3, p1, Lorg/webrtc/VideoSource$AspectRatio;->height:I
iget v5, p3, Lorg/webrtc/VideoSource$AspectRatio;->width:I
iget v6, p3, Lorg/webrtc/VideoSource$AspectRatio;->height:I
move-object v4, p2
move-object v7, p4
move-object v8, p5
invoke-static/range {v0 .. v8}, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAdaptOutputFormat(JIILjava/lang/Integer;IILjava/lang/Integer;Ljava/lang/Integer;)V
return-void
.end method
.method public onFrameCaptured(Lorg/webrtc/VideoFrame;)V
.registers 8
.line 1
iget-wide v0, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getRotation()I
move-result v2
.line 2
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getTimestampNs()J
move-result-wide v3
invoke-virtual {p1}, Lorg/webrtc/VideoFrame;->getBuffer()Lorg/webrtc/VideoFrame$Buffer;
move-result-object v5
.line 3
invoke-static/range {v0 .. v5}, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeOnFrameCaptured(JIJLorg/webrtc/VideoFrame$Buffer;)V
return-void
.end method
.method public setIsScreencast(Z)V
.registers 4
iget-wide v0, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
invoke-static {v0, v1, p1}, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeSetIsScreencast(JZ)V
return-void
.end method
.method public setState(Z)V
.registers 4
iget-wide v0, p0, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeAndroidVideoTrackSource:J
invoke-static {v0, v1, p1}, Lorg/webrtc/NativeAndroidVideoTrackSource;->nativeSetState(JZ)V
return-void
.end method