Rabbit-R1/switch port/smali/smali_classes3/org/webrtc/EncodedImage.smali
2024-05-21 17:08:36 -04:00

183 lines
4.4 KiB
Smali

.class public Lorg/webrtc/EncodedImage;
.super Ljava/lang/Object;
.source "EncodedImage.java"
# interfaces
.implements Lorg/webrtc/RefCounted;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lorg/webrtc/EncodedImage$Builder;,
Lorg/webrtc/EncodedImage$FrameType;
}
.end annotation
# instance fields
.field public final buffer:Ljava/nio/ByteBuffer;
.field public final captureTimeMs:J
.field public final captureTimeNs:J
.field public final encodedHeight:I
.field public final encodedWidth:I
.field public final frameType:Lorg/webrtc/EncodedImage$FrameType;
.field public final qp:Ljava/lang/Integer;
.field private final refCountDelegate:Lorg/webrtc/RefCountDelegate;
.field public final rotation:I
# direct methods
.method private constructor <init>(Ljava/nio/ByteBuffer;Ljava/lang/Runnable;IIJLorg/webrtc/EncodedImage$FrameType;ILjava/lang/Integer;)V
.locals 0
.line 73
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lorg/webrtc/EncodedImage;->buffer:Ljava/nio/ByteBuffer;
iput p3, p0, Lorg/webrtc/EncodedImage;->encodedWidth:I
iput p4, p0, Lorg/webrtc/EncodedImage;->encodedHeight:I
.line 77
sget-object p1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, p5, p6}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p3
iput-wide p3, p0, Lorg/webrtc/EncodedImage;->captureTimeMs:J
iput-wide p5, p0, Lorg/webrtc/EncodedImage;->captureTimeNs:J
iput-object p7, p0, Lorg/webrtc/EncodedImage;->frameType:Lorg/webrtc/EncodedImage$FrameType;
iput p8, p0, Lorg/webrtc/EncodedImage;->rotation:I
iput-object p9, p0, Lorg/webrtc/EncodedImage;->qp:Ljava/lang/Integer;
.line 82
new-instance p1, Lorg/webrtc/RefCountDelegate;
invoke-direct {p1, p2}, Lorg/webrtc/RefCountDelegate;-><init>(Ljava/lang/Runnable;)V
iput-object p1, p0, Lorg/webrtc/EncodedImage;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
return-void
.end method
.method synthetic constructor <init>(Ljava/nio/ByteBuffer;Ljava/lang/Runnable;IIJLorg/webrtc/EncodedImage$FrameType;ILjava/lang/Integer;Lorg/webrtc/EncodedImage$1;)V
.locals 0
.line 21
invoke-direct/range {p0 .. p9}, Lorg/webrtc/EncodedImage;-><init>(Ljava/nio/ByteBuffer;Ljava/lang/Runnable;IIJLorg/webrtc/EncodedImage$FrameType;ILjava/lang/Integer;)V
return-void
.end method
.method public static builder()Lorg/webrtc/EncodedImage$Builder;
.locals 2
.line 121
new-instance v0, Lorg/webrtc/EncodedImage$Builder;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lorg/webrtc/EncodedImage$Builder;-><init>(Lorg/webrtc/EncodedImage$1;)V
return-object v0
.end method
.method private getBuffer()Ljava/nio/ByteBuffer;
.locals 0
iget-object p0, p0, Lorg/webrtc/EncodedImage;->buffer:Ljava/nio/ByteBuffer;
return-object p0
.end method
.method private getCaptureTimeNs()J
.locals 2
iget-wide v0, p0, Lorg/webrtc/EncodedImage;->captureTimeNs:J
return-wide v0
.end method
.method private getEncodedHeight()I
.locals 0
iget p0, p0, Lorg/webrtc/EncodedImage;->encodedHeight:I
return p0
.end method
.method private getEncodedWidth()I
.locals 0
iget p0, p0, Lorg/webrtc/EncodedImage;->encodedWidth:I
return p0
.end method
.method private getFrameType()I
.locals 0
iget-object p0, p0, Lorg/webrtc/EncodedImage;->frameType:Lorg/webrtc/EncodedImage$FrameType;
.line 107
invoke-virtual {p0}, Lorg/webrtc/EncodedImage$FrameType;->getNative()I
move-result p0
return p0
.end method
.method private getQp()Ljava/lang/Integer;
.locals 0
iget-object p0, p0, Lorg/webrtc/EncodedImage;->qp:Ljava/lang/Integer;
return-object p0
.end method
.method private getRotation()I
.locals 0
iget p0, p0, Lorg/webrtc/EncodedImage;->rotation:I
return p0
.end method
# virtual methods
.method public release()V
.locals 0
iget-object p0, p0, Lorg/webrtc/EncodedImage;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
.line 67
invoke-virtual {p0}, Lorg/webrtc/RefCountDelegate;->release()V
return-void
.end method
.method public retain()V
.locals 0
iget-object p0, p0, Lorg/webrtc/EncodedImage;->refCountDelegate:Lorg/webrtc/RefCountDelegate;
.line 62
invoke-virtual {p0}, Lorg/webrtc/RefCountDelegate;->retain()V
return-void
.end method