174 lines
4 KiB
Smali
174 lines
4 KiB
Smali
.class public Lorg/webrtc/WrappedNativeI420Buffer;
|
|
.super Ljava/lang/Object;
|
|
.source "WrappedNativeI420Buffer.java"
|
|
|
|
# interfaces
|
|
.implements Lorg/webrtc/VideoFrame$I420Buffer;
|
|
|
|
|
|
# instance fields
|
|
.field public final dataU:Ljava/nio/ByteBuffer;
|
|
|
|
.field public final dataV:Ljava/nio/ByteBuffer;
|
|
|
|
.field public final dataY:Ljava/nio/ByteBuffer;
|
|
|
|
.field public final height:I
|
|
|
|
.field public final nativeBuffer:J
|
|
|
|
.field public final strideU:I
|
|
|
|
.field public final strideV:I
|
|
|
|
.field public final strideY:I
|
|
|
|
.field public final width:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(IILjava/nio/ByteBuffer;ILjava/nio/ByteBuffer;ILjava/nio/ByteBuffer;IJ)V
|
|
.locals 0
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lorg/webrtc/WrappedNativeI420Buffer;->width:I
|
|
|
|
iput p2, p0, Lorg/webrtc/WrappedNativeI420Buffer;->height:I
|
|
|
|
iput-object p3, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataY:Ljava/nio/ByteBuffer;
|
|
|
|
iput p4, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideY:I
|
|
|
|
iput-object p5, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataU:Ljava/nio/ByteBuffer;
|
|
|
|
iput p6, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideU:I
|
|
|
|
iput-object p7, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataV:Ljava/nio/ByteBuffer;
|
|
|
|
iput p8, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideV:I
|
|
|
|
iput-wide p9, p0, Lorg/webrtc/WrappedNativeI420Buffer;->nativeBuffer:J
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/WrappedNativeI420Buffer;->retain()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cropAndScale(IIIIII)Lorg/webrtc/VideoFrame$Buffer;
|
|
.locals 0
|
|
|
|
invoke-static/range {p0 .. p6}, Lorg/webrtc/JavaI420Buffer;->cropAndScaleI420(Lorg/webrtc/VideoFrame$I420Buffer;IIIIII)Lorg/webrtc/VideoFrame$Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getDataU()Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataU:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDataV()Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataV:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDataY()Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->dataY:Ljava/nio/ByteBuffer;
|
|
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->slice()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getHeight()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->height:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStrideU()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideU:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStrideV()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideV:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStrideY()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->strideY:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getWidth()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->width:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public release()V
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->nativeBuffer:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/JniCommon;->nativeReleaseRef(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public retain()V
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/WrappedNativeI420Buffer;->nativeBuffer:J
|
|
|
|
invoke-static {v0, v1}, Lorg/webrtc/JniCommon;->nativeAddRef(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toI420()Lorg/webrtc/VideoFrame$I420Buffer;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/WrappedNativeI420Buffer;->retain()V
|
|
|
|
return-object p0
|
|
.end method
|