mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
122 lines
2.5 KiB
Smali
122 lines
2.5 KiB
Smali
.class interface abstract Lorg/webrtc/CameraSession;
|
|
.super Ljava/lang/Object;
|
|
.source "CameraSession.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/webrtc/CameraSession$Events;,
|
|
Lorg/webrtc/CameraSession$CreateSessionCallback;,
|
|
Lorg/webrtc/CameraSession$FailureType;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static createTextureBufferWithModifiedTransformMatrix(Lorg/webrtc/TextureBufferImpl;ZI)Lorg/webrtc/VideoFrame$TextureBuffer;
|
|
.locals 2
|
|
|
|
.line 59
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
.line 61
|
|
invoke-virtual {v0, v1, v1}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/high16 p1, -0x40800000 # -1.0f
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 63
|
|
invoke-virtual {v0, p1, v1}, Landroid/graphics/Matrix;->preScale(FF)Z
|
|
|
|
:cond_0
|
|
int-to-float p1, p2
|
|
|
|
.line 65
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Matrix;->preRotate(F)Z
|
|
|
|
const/high16 p1, -0x41000000 # -0.5f
|
|
|
|
.line 66
|
|
invoke-virtual {v0, p1, p1}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
.line 70
|
|
invoke-virtual {p0}, Lorg/webrtc/TextureBufferImpl;->getWidth()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Lorg/webrtc/TextureBufferImpl;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, v0, p1, p2}, Lorg/webrtc/TextureBufferImpl;->applyTransformMatrix(Landroid/graphics/Matrix;II)Lorg/webrtc/TextureBufferImpl;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getDeviceOrientation(Landroid/content/Context;)I
|
|
.locals 1
|
|
|
|
const-string v0, "window"
|
|
|
|
.line 43
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/WindowManager;
|
|
|
|
.line 44
|
|
invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/view/Display;->getRotation()I
|
|
|
|
move-result p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, v0, :cond_2
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/16 p0, 0x10e
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const/16 p0, 0xb4
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
const/16 p0, 0x5a
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract stop()V
|
|
.end method
|