1467 lines
36 KiB
Smali
1467 lines
36 KiB
Smali
.class public Lorg/videolan/libvlc/AWindow;
|
|
.super Ljava/lang/Object;
|
|
.source "AWindow.java"
|
|
|
|
# interfaces
|
|
.implements Lorg/videolan/libvlc/IVLCVout;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;,
|
|
Lorg/videolan/libvlc/AWindow$NativeLock;,
|
|
Lorg/videolan/libvlc/AWindow$SurfaceHelper;,
|
|
Lorg/videolan/libvlc/AWindow$SurfaceCallback;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final AWINDOW_REGISTER_ERROR:I = 0x0
|
|
|
|
.field private static final AWINDOW_REGISTER_FLAGS_HAS_VIDEO_LAYOUT_LISTENER:I = 0x2
|
|
|
|
.field private static final AWINDOW_REGISTER_FLAGS_SUCCESS:I = 0x1
|
|
|
|
.field private static final ID_MAX:I = 0x2
|
|
|
|
.field private static final ID_SUBTITLES:I = 0x1
|
|
|
|
.field private static final ID_VIDEO:I = 0x0
|
|
|
|
.field private static final SURFACE_STATE_ATTACHED:I = 0x1
|
|
|
|
.field private static final SURFACE_STATE_INIT:I = 0x0
|
|
|
|
.field private static final SURFACE_STATE_READY:I = 0x2
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "AWindow"
|
|
|
|
|
|
# instance fields
|
|
.field private mCallbackNativeHandle:J
|
|
|
|
.field private final mHandler:Landroid/os/Handler;
|
|
|
|
.field private mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Lorg/videolan/libvlc/IVLCVout$Callback;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private mMouseAction:I
|
|
|
|
.field private mMouseButton:I
|
|
|
|
.field private mMouseX:I
|
|
|
|
.field private mMouseY:I
|
|
|
|
.field private final mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
.field private mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
.field private final mSurfaceCallback:Lorg/videolan/libvlc/AWindow$SurfaceCallback;
|
|
|
|
.field private final mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
.field private mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
.field private final mSurfaces:[Landroid/view/Surface;
|
|
|
|
.field private final mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
.field private mWindowHeight:I
|
|
|
|
.field private mWindowWidth:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lorg/videolan/libvlc/AWindow$SurfaceCallback;)V
|
|
.locals 4
|
|
|
|
.line 214
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 195
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 196
|
|
iput-object v0, p0, Lorg/videolan/libvlc/AWindow;->mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
.line 197
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
.line 198
|
|
new-instance v2, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mHandler:Landroid/os/Handler;
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 201
|
|
iput-wide v2, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 202
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mMouseAction:I
|
|
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mMouseButton:I
|
|
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mMouseX:I
|
|
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mMouseY:I
|
|
|
|
.line 203
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mWindowWidth:I
|
|
|
|
iput v2, p0, Lorg/videolan/libvlc/AWindow;->mWindowHeight:I
|
|
|
|
.line 205
|
|
new-instance v2, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-direct {v2, v0}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;-><init>(Lorg/videolan/libvlc/AWindow$1;)V
|
|
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
.line 434
|
|
new-instance v2, Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
invoke-direct {v2, v0}, Lorg/videolan/libvlc/AWindow$NativeLock;-><init>(Lorg/videolan/libvlc/AWindow$1;)V
|
|
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
.line 215
|
|
iput-object p1, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceCallback:Lorg/videolan/libvlc/AWindow$SurfaceCallback;
|
|
|
|
const/4 p1, 0x2
|
|
|
|
new-array v2, p1, [Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
.line 216
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aput-object v0, v2, v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
new-array p1, p1, [Landroid/view/Surface;
|
|
|
|
.line 219
|
|
iput-object p1, p0, Lorg/videolan/libvlc/AWindow;->mSurfaces:[Landroid/view/Surface;
|
|
|
|
aput-object v0, p1, v1
|
|
|
|
aput-object v0, p1, v3
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private SurfaceTexture_detachFromGLContext()V
|
|
.locals 1
|
|
|
|
.line 714
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-static {v0}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;->access$1600(Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private SurfaceTexture_getSurface()Landroid/view/Surface;
|
|
.locals 1
|
|
|
|
.line 732
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-static {v0}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;->access$1800(Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;)Landroid/view/Surface;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private SurfaceTexture_waitAndUpdateTexImage([F)Z
|
|
.locals 1
|
|
|
|
.line 724
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-static {v0, p1}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;->access$1700(Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;[F)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lorg/videolan/libvlc/AWindow;I)Landroid/view/Surface;
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0, p1}, Lorg/videolan/libvlc/AWindow;->getNativeSurface(I)Landroid/view/Surface;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic access$100(Lorg/videolan/libvlc/AWindow;ILandroid/view/Surface;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0, p1, p2}, Lorg/videolan/libvlc/AWindow;->setNativeSurface(ILandroid/view/Surface;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$1400(Lorg/videolan/libvlc/AWindow;)Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-object p0, p0, Lorg/videolan/libvlc/AWindow;->mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic access$200(Lorg/videolan/libvlc/AWindow;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Lorg/videolan/libvlc/AWindow;->onSurfaceCreated()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$500(Lorg/videolan/libvlc/AWindow;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Lorg/videolan/libvlc/AWindow;->onSurfaceDestroyed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureInitState()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/IllegalStateException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 225
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 226
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Can\'t set view when already attached. Current state: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
.line 227
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, ", mSurfaces[ID_VIDEO]: "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aget-object v2, v2, v3
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, " / "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v4, p0, Lorg/videolan/libvlc/AWindow;->mSurfaces:[Landroid/view/Surface;
|
|
|
|
aget-object v3, v4, v3
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, ", mSurfaces[ID_SUBTITLES]: "
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v3, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aget-object v3, v3, v4
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lorg/videolan/libvlc/AWindow;->mSurfaces:[Landroid/view/Surface;
|
|
|
|
aget-object v2, v2, v4
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private getNativeSurface(I)Landroid/view/Surface;
|
|
.locals 2
|
|
|
|
.line 425
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 426
|
|
:try_start_0
|
|
iget-object v1, p0, Lorg/videolan/libvlc/AWindow;->mSurfaces:[Landroid/view/Surface;
|
|
|
|
aget-object p1, v1, p1
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 427
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private getSubtitlesSurface()Landroid/view/Surface;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 486
|
|
invoke-direct {p0, v0}, Lorg/videolan/libvlc/AWindow;->getNativeSurface(I)Landroid/view/Surface;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getVideoSurface()Landroid/view/Surface;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 476
|
|
invoke-direct {p0, v0}, Lorg/videolan/libvlc/AWindow;->getNativeSurface(I)Landroid/view/Surface;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static native nativeOnMouseEvent(JIIII)V
|
|
.end method
|
|
|
|
.method private static native nativeOnWindowSize(JII)V
|
|
.end method
|
|
|
|
.method private onSurfaceCreated()V
|
|
.locals 3
|
|
|
|
.line 369
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 372
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
.line 373
|
|
aget-object v0, v0, v1
|
|
|
|
const-string v1, "videoHelper shouldn\'t be null here"
|
|
|
|
.line 375
|
|
invoke-static {v2, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 377
|
|
invoke-virtual {v2}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->isReady()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->isReady()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 378
|
|
:cond_0
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V
|
|
|
|
.line 379
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lorg/videolan/libvlc/IVLCVout$Callback;
|
|
|
|
.line 380
|
|
invoke-interface {v1, p0}, Lorg/videolan/libvlc/IVLCVout$Callback;->onSurfacesCreated(Lorg/videolan/libvlc/IVLCVout;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 381
|
|
:cond_1
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceCallback:Lorg/videolan/libvlc/AWindow$SurfaceCallback;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 382
|
|
invoke-interface {v0, p0}, Lorg/videolan/libvlc/AWindow$SurfaceCallback;->onSurfacesCreated(Lorg/videolan/libvlc/AWindow;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 370
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "invalid state"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private onSurfaceDestroyed()V
|
|
.locals 0
|
|
|
|
.line 388
|
|
invoke-virtual {p0}, Lorg/videolan/libvlc/AWindow;->detachViews()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private registerNative(J)I
|
|
.locals 9
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 504
|
|
iget-object v2, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v2
|
|
|
|
.line 505
|
|
:try_start_0
|
|
iget-wide v3, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
cmp-long v0, v3, v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 506
|
|
monitor-exit v2
|
|
|
|
return p1
|
|
|
|
.line 507
|
|
:cond_0
|
|
iput-wide p1, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
.line 508
|
|
iget v5, p0, Lorg/videolan/libvlc/AWindow;->mMouseAction:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-eq v5, v0, :cond_1
|
|
|
|
.line 509
|
|
iget v6, p0, Lorg/videolan/libvlc/AWindow;->mMouseButton:I
|
|
|
|
iget v7, p0, Lorg/videolan/libvlc/AWindow;->mMouseX:I
|
|
|
|
iget v8, p0, Lorg/videolan/libvlc/AWindow;->mMouseY:I
|
|
|
|
move-wide v3, p1
|
|
|
|
invoke-static/range {v3 .. v8}, Lorg/videolan/libvlc/AWindow;->nativeOnMouseEvent(JIIII)V
|
|
|
|
.line 510
|
|
:cond_1
|
|
iget p1, p0, Lorg/videolan/libvlc/AWindow;->mWindowWidth:I
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
iget p2, p0, Lorg/videolan/libvlc/AWindow;->mWindowHeight:I
|
|
|
|
if-eq p2, v0, :cond_2
|
|
|
|
.line 511
|
|
iget-wide v0, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
invoke-static {v0, v1, p1, p2}, Lorg/videolan/libvlc/AWindow;->nativeOnWindowSize(JII)V
|
|
|
|
:cond_2
|
|
const/4 p1, 0x1
|
|
|
|
.line 514
|
|
iget-object p2, p0, Lorg/videolan/libvlc/AWindow;->mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
const/4 p1, 0x3
|
|
|
|
.line 516
|
|
:cond_3
|
|
monitor-exit v2
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 517
|
|
monitor-exit v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
|
|
.line 503
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "nativeHandle is null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private setBuffersGeometry(Landroid/view/Surface;III)Z
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private setNativeSurface(ILandroid/view/Surface;)V
|
|
.locals 2
|
|
|
|
.line 419
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 420
|
|
:try_start_0
|
|
iget-object v1, p0, Lorg/videolan/libvlc/AWindow;->mSurfaces:[Landroid/view/Surface;
|
|
|
|
aput-object p2, v1, p1
|
|
|
|
.line 421
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private setSurface(ILandroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
.locals 8
|
|
|
|
.line 255
|
|
invoke-direct {p0}, Lorg/videolan/libvlc/AWindow;->ensureInitState()V
|
|
|
|
.line 256
|
|
invoke-virtual {p2}, Landroid/view/Surface;->isValid()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 257
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "surface is not attached and holder is null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 258
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 260
|
|
invoke-virtual {v0}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->release()V
|
|
|
|
.line 262
|
|
:cond_2
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
new-instance v7, Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v7
|
|
|
|
move-object v2, p0
|
|
|
|
move v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
invoke-direct/range {v1 .. v6}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;-><init>(Lorg/videolan/libvlc/AWindow;ILandroid/view/Surface;Landroid/view/SurfaceHolder;Lorg/videolan/libvlc/AWindow$1;)V
|
|
|
|
aput-object v7, v0, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setVideoLayout(IIIIII)V
|
|
.locals 11
|
|
|
|
move-object v8, p0
|
|
|
|
.line 559
|
|
iget-object v9, v8, Lorg/videolan/libvlc/AWindow;->mHandler:Landroid/os/Handler;
|
|
|
|
new-instance v10, Lorg/videolan/libvlc/AWindow$1;
|
|
|
|
move-object v0, v10
|
|
|
|
move-object v1, p0
|
|
|
|
move v2, p1
|
|
|
|
move v3, p2
|
|
|
|
move v4, p3
|
|
|
|
move v5, p4
|
|
|
|
move/from16 v6, p5
|
|
|
|
move/from16 v7, p6
|
|
|
|
invoke-direct/range {v0 .. v7}, Lorg/videolan/libvlc/AWindow$1;-><init>(Lorg/videolan/libvlc/AWindow;IIIIII)V
|
|
|
|
invoke-virtual {v9, v10}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setView(ILandroid/view/SurfaceView;)V
|
|
.locals 3
|
|
|
|
.line 233
|
|
invoke-direct {p0}, Lorg/videolan/libvlc/AWindow;->ensureInitState()V
|
|
|
|
const-string v0, "view is null"
|
|
|
|
.line 235
|
|
invoke-static {p2, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 236
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 238
|
|
invoke-virtual {v0}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->release()V
|
|
|
|
.line 240
|
|
:cond_0
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
new-instance v1, Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, p0, p1, p2, v2}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;-><init>(Lorg/videolan/libvlc/AWindow;ILandroid/view/SurfaceView;Lorg/videolan/libvlc/AWindow$1;)V
|
|
|
|
aput-object v1, v0, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setView(ILandroid/view/TextureView;)V
|
|
.locals 3
|
|
|
|
.line 244
|
|
invoke-direct {p0}, Lorg/videolan/libvlc/AWindow;->ensureInitState()V
|
|
|
|
const-string v0, "view is null"
|
|
|
|
.line 246
|
|
invoke-static {p2, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 247
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aget-object v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 249
|
|
invoke-virtual {v0}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->release()V
|
|
|
|
.line 251
|
|
:cond_0
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
new-instance v1, Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, p0, p1, p2, v2}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;-><init>(Lorg/videolan/libvlc/AWindow;ILandroid/view/TextureView;Lorg/videolan/libvlc/AWindow$1;)V
|
|
|
|
aput-object v1, v0, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private unregisterNative()V
|
|
.locals 5
|
|
|
|
.line 522
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 523
|
|
:try_start_0
|
|
iget-wide v1, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v1, v1, v3
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 525
|
|
iput-wide v3, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
.line 526
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
.line 524
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v2, "unregister called when not registered"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 526
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method SurfaceTexture_attachToGLContext(I)Z
|
|
.locals 1
|
|
|
|
.line 706
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-static {v0, p1}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;->access$1500(Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public addCallback(Lorg/videolan/libvlc/IVLCVout$Callback;)V
|
|
.locals 1
|
|
|
|
.line 438
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 439
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method areSurfacesWaiting()Z
|
|
.locals 2
|
|
|
|
.line 392
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public areViewsAttached()Z
|
|
.locals 1
|
|
|
|
.line 364
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public attachViews()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 332
|
|
invoke-virtual {p0, v0}, Lorg/videolan/libvlc/AWindow;->attachViews(Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public attachViews(Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;)V
|
|
.locals 3
|
|
|
|
.line 314
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 316
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V
|
|
|
|
.line 317
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 318
|
|
:try_start_0
|
|
iput-object p1, p0, Lorg/videolan/libvlc/AWindow;->mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
.line 319
|
|
iget-object p1, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
invoke-static {p1, v1}, Lorg/videolan/libvlc/AWindow$NativeLock;->access$1002(Lorg/videolan/libvlc/AWindow$NativeLock;Z)Z
|
|
|
|
.line 320
|
|
iget-object p1, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
invoke-static {p1, v1}, Lorg/videolan/libvlc/AWindow$NativeLock;->access$1102(Lorg/videolan/libvlc/AWindow$NativeLock;Z)Z
|
|
|
|
.line 321
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:goto_0
|
|
const/4 p1, 0x2
|
|
|
|
if-ge v1, p1, :cond_1
|
|
|
|
.line 323
|
|
iget-object p1, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aget-object p1, p1, v1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 325
|
|
invoke-virtual {p1}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->attach()V
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 321
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
|
|
.line 315
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "already attached or video view not configured"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public detachViews()V
|
|
.locals 5
|
|
|
|
.line 338
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 341
|
|
:cond_0
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfacesState:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V
|
|
|
|
.line 342
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mHandler:Landroid/os/Handler;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
|
|
|
|
.line 343
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 344
|
|
:try_start_0
|
|
iput-object v2, p0, Lorg/videolan/libvlc/AWindow;->mOnNewVideoLayoutListener:Lorg/videolan/libvlc/IVLCVout$OnNewVideoLayoutListener;
|
|
|
|
.line 345
|
|
iget-object v3, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-static {v3, v4}, Lorg/videolan/libvlc/AWindow$NativeLock;->access$1102(Lorg/videolan/libvlc/AWindow$NativeLock;Z)Z
|
|
|
|
.line 346
|
|
iget-object v3, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 347
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:goto_0
|
|
const/4 v0, 0x2
|
|
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 349
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 351
|
|
invoke-virtual {v0}, Lorg/videolan/libvlc/AWindow$SurfaceHelper;->release()V
|
|
|
|
.line 352
|
|
:cond_1
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceHelpers:[Lorg/videolan/libvlc/AWindow$SurfaceHelper;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 354
|
|
:cond_2
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lorg/videolan/libvlc/IVLCVout$Callback;
|
|
|
|
.line 355
|
|
invoke-interface {v1, p0}, Lorg/videolan/libvlc/IVLCVout$Callback;->onSurfacesDestroyed(Lorg/videolan/libvlc/IVLCVout;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 356
|
|
:cond_3
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceCallback:Lorg/videolan/libvlc/AWindow$SurfaceCallback;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 357
|
|
invoke-interface {v0, p0}, Lorg/videolan/libvlc/AWindow$SurfaceCallback;->onSurfacesDestroyed(Lorg/videolan/libvlc/AWindow;)V
|
|
|
|
.line 358
|
|
:cond_4
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mSurfaceTextureThread:Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;
|
|
|
|
invoke-static {v0}, Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;->access$1200(Lorg/videolan/libvlc/AWindow$SurfaceTextureThread;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 347
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public removeCallback(Lorg/videolan/libvlc/IVLCVout$Callback;)V
|
|
.locals 1
|
|
|
|
.line 444
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mIVLCVoutCallbacks:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public sendMouseEvent(IIII)V
|
|
.locals 7
|
|
|
|
.line 397
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 398
|
|
:try_start_0
|
|
iget-wide v1, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mMouseAction:I
|
|
|
|
if-ne v3, p1, :cond_0
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mMouseButton:I
|
|
|
|
if-ne v3, p2, :cond_0
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mMouseX:I
|
|
|
|
if-ne v3, p3, :cond_0
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mMouseY:I
|
|
|
|
if-eq v3, p4, :cond_1
|
|
|
|
:cond_0
|
|
move v3, p1
|
|
|
|
move v4, p2
|
|
|
|
move v5, p3
|
|
|
|
move v6, p4
|
|
|
|
.line 400
|
|
invoke-static/range {v1 .. v6}, Lorg/videolan/libvlc/AWindow;->nativeOnMouseEvent(JIIII)V
|
|
|
|
.line 401
|
|
:cond_1
|
|
iput p1, p0, Lorg/videolan/libvlc/AWindow;->mMouseAction:I
|
|
|
|
.line 402
|
|
iput p2, p0, Lorg/videolan/libvlc/AWindow;->mMouseButton:I
|
|
|
|
.line 403
|
|
iput p3, p0, Lorg/videolan/libvlc/AWindow;->mMouseX:I
|
|
|
|
.line 404
|
|
iput p4, p0, Lorg/videolan/libvlc/AWindow;->mMouseY:I
|
|
|
|
.line 405
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setSubtitlesSurface(Landroid/graphics/SurfaceTexture;)V
|
|
.locals 2
|
|
|
|
.line 308
|
|
new-instance v0, Landroid/view/Surface;
|
|
|
|
invoke-direct {v0, p1}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Lorg/videolan/libvlc/AWindow;->setSurface(ILandroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitlesSurface(Landroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 302
|
|
invoke-direct {p0, v0, p1, p2}, Lorg/videolan/libvlc/AWindow;->setSurface(ILandroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitlesView(Landroid/view/SurfaceView;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 291
|
|
invoke-direct {p0, v0, p1}, Lorg/videolan/libvlc/AWindow;->setView(ILandroid/view/SurfaceView;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSubtitlesView(Landroid/view/TextureView;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 297
|
|
invoke-direct {p0, v0, p1}, Lorg/videolan/libvlc/AWindow;->setView(ILandroid/view/TextureView;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoSurface(Landroid/graphics/SurfaceTexture;)V
|
|
.locals 2
|
|
|
|
.line 285
|
|
new-instance v0, Landroid/view/Surface;
|
|
|
|
invoke-direct {v0, p1}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Lorg/videolan/libvlc/AWindow;->setSurface(ILandroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoSurface(Landroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 279
|
|
invoke-direct {p0, v0, p1, p2}, Lorg/videolan/libvlc/AWindow;->setSurface(ILandroid/view/Surface;Landroid/view/SurfaceHolder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoView(Landroid/view/SurfaceView;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 268
|
|
invoke-direct {p0, v0, p1}, Lorg/videolan/libvlc/AWindow;->setView(ILandroid/view/SurfaceView;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVideoView(Landroid/view/TextureView;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 274
|
|
invoke-direct {p0, v0, p1}, Lorg/videolan/libvlc/AWindow;->setView(ILandroid/view/TextureView;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setWindowSize(II)V
|
|
.locals 5
|
|
|
|
.line 410
|
|
iget-object v0, p0, Lorg/videolan/libvlc/AWindow;->mNativeLock:Lorg/videolan/libvlc/AWindow$NativeLock;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 411
|
|
:try_start_0
|
|
iget-wide v1, p0, Lorg/videolan/libvlc/AWindow;->mCallbackNativeHandle:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mWindowWidth:I
|
|
|
|
if-ne v3, p1, :cond_0
|
|
|
|
iget v3, p0, Lorg/videolan/libvlc/AWindow;->mWindowHeight:I
|
|
|
|
if-eq v3, p2, :cond_1
|
|
|
|
.line 412
|
|
:cond_0
|
|
invoke-static {v1, v2, p1, p2}, Lorg/videolan/libvlc/AWindow;->nativeOnWindowSize(JII)V
|
|
|
|
.line 413
|
|
:cond_1
|
|
iput p1, p0, Lorg/videolan/libvlc/AWindow;->mWindowWidth:I
|
|
|
|
.line 414
|
|
iput p2, p0, Lorg/videolan/libvlc/AWindow;->mWindowHeight:I
|
|
|
|
.line 415
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|