You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1337 lines
41 KiB
1337 lines
41 KiB
2 years ago
|
.class Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;
|
||
|
.super Landroid/os/Handler;
|
||
|
.source "VideoPlayer.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = "VideoHandler"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/viatech/VrPlayer/VideoPlayer;Landroid/os/Looper;)V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 338
|
||
|
iput-object p1, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
.line 339
|
||
|
invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
||
|
|
||
|
.line 340
|
||
|
const/16 v0, -0x10
|
||
|
|
||
|
invoke-static {v0}, Landroid/os/Process;->setThreadPriority(I)V
|
||
|
|
||
|
.line 341
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public handleMessage(Landroid/os/Message;)V
|
||
|
.locals 14
|
||
|
|
||
|
.prologue
|
||
|
const/4 v3, 0x2
|
||
|
|
||
|
const/4 v9, 0x1
|
||
|
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
.line 345
|
||
|
iget v2, p1, Landroid/os/Message;->what:I
|
||
|
|
||
|
packed-switch v2, :pswitch_data_0
|
||
|
|
||
|
.line 523
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 347
|
||
|
:pswitch_0
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$000()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
.line 348
|
||
|
:try_start_0
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-nez v2, :cond_2
|
||
|
|
||
|
.line 349
|
||
|
:goto_1
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$200()I
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-lez v2, :cond_1
|
||
|
|
||
|
.line 351
|
||
|
:try_start_1
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$000()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->wait()V
|
||
|
:try_end_1
|
||
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 352
|
||
|
:catch_0
|
||
|
move-exception v2
|
||
|
|
||
|
.line 353
|
||
|
:try_start_2
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
new-instance v5, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v6, "Video Decoder start :"
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/InterruptedException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 370
|
||
|
:catchall_0
|
||
|
move-exception v2
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
.line 358
|
||
|
:cond_1
|
||
|
:try_start_3
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
const-string v4, "video/avc"
|
||
|
|
||
|
invoke-static {v4}, Landroid/media/MediaCodec;->createDecoderByType(Ljava/lang/String;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v2, v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$102(Lcom/viatech/VrPlayer/VideoPlayer;Landroid/media/MediaCodec;)Landroid/media/MediaCodec;
|
||
|
|
||
|
.line 359
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
invoke-static {v2, v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$402(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
:try_end_3
|
||
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
.line 363
|
||
|
:goto_2
|
||
|
:try_start_4
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-nez v2, :cond_3
|
||
|
|
||
|
.line 364
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v4, "mMediaCodec Create Failed"
|
||
|
|
||
|
invoke-static {v2, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 368
|
||
|
:goto_3
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v4, "Video Decoder start Finish"
|
||
|
|
||
|
invoke-static {v2, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 370
|
||
|
:cond_2
|
||
|
monitor-exit v3
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 360
|
||
|
:catch_1
|
||
|
move-exception v2
|
||
|
|
||
|
.line 361
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const-string v5, "createDecoderByType:video/avc"
|
||
|
|
||
|
invoke-static {v4, v5, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
.line 366
|
||
|
:cond_3
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$208()I
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 375
|
||
|
:pswitch_1
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$500(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ne v2, v3, :cond_4
|
||
|
|
||
|
.line 376
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "Video Decoder Has been configed"
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 380
|
||
|
:cond_4
|
||
|
const-string v2, "video/avc"
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$600(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$700(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-static {v2, v3, v4}, Landroid/media/MediaFormat;->createVideoFormat(Ljava/lang/String;II)Landroid/media/MediaFormat;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
.line 381
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
||
|
|
||
|
check-cast v2, [B
|
||
|
|
||
|
check-cast v2, [B
|
||
|
|
||
|
invoke-static {v4, v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$802(Lcom/viatech/VrPlayer/VideoPlayer;[B)[B
|
||
|
|
||
|
.line 382
|
||
|
const-string v2, "csd-0"
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$800(Lcom/viatech/VrPlayer/VideoPlayer;)[B
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v3, v2, v4}, Landroid/media/MediaFormat;->setByteBuffer(Ljava/lang/String;Ljava/nio/ByteBuffer;)V
|
||
|
|
||
|
.line 384
|
||
|
:try_start_5
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v4, "Video Decoder config start..."
|
||
|
|
||
|
invoke-static {v2, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 385
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$900(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/view/Surface;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
invoke-virtual {v2, v3, v4, v5, v6}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V
|
||
|
|
||
|
.line 386
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/media/MediaCodec;->start()V
|
||
|
|
||
|
.line 387
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v4}, Landroid/media/MediaCodec;->getInputBuffers()[Ljava/nio/ByteBuffer;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v2, v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1002(Lcom/viatech/VrPlayer/VideoPlayer;[Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer;
|
||
|
|
||
|
.line 388
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v4, "Video Decoder config OK"
|
||
|
|
||
|
invoke-static {v2, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 389
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
const/4 v4, 0x2
|
||
|
|
||
|
invoke-static {v2, v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$502(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
:try_end_5
|
||
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 390
|
||
|
:catch_2
|
||
|
move-exception v2
|
||
|
|
||
|
.line 391
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
new-instance v5, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v6, "Video Decoder config error:"
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v5, ",f="
|
||
|
|
||
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, ",surface="
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$900(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/view/Surface;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 392
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
new-instance v3, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v4, " data is:"
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$800(Lcom/viatech/VrPlayer/VideoPlayer;)[B
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1100([B)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 393
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2, v10}, Lcom/viatech/VrPlayer/VideoPlayer;->access$502(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 400
|
||
|
:pswitch_2
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
.line 401
|
||
|
:goto_4
|
||
|
:try_start_6
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1300(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
:try_end_6
|
||
|
.catchall {:try_start_6 .. :try_end_6} :catchall_1
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ne v2, v9, :cond_5
|
||
|
|
||
|
.line 403
|
||
|
:try_start_7
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-wide/16 v4, 0xa
|
||
|
|
||
|
invoke-virtual {v2, v4, v5}, Ljava/lang/Object;->wait(J)V
|
||
|
:try_end_7
|
||
|
.catch Ljava/lang/InterruptedException; {:try_start_7 .. :try_end_7} :catch_3
|
||
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
.line 404
|
||
|
:catch_3
|
||
|
move-exception v2
|
||
|
|
||
|
.line 405
|
||
|
:try_start_8
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
new-instance v5, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v6, "MSG_VIDEO_DECODER_DECODE :"
|
||
|
|
||
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/InterruptedException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v4, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
.line 408
|
||
|
:catchall_1
|
||
|
move-exception v2
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_8
|
||
|
.catchall {:try_start_8 .. :try_end_8} :catchall_1
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
:cond_5
|
||
|
:try_start_9
|
||
|
monitor-exit v3
|
||
|
:try_end_9
|
||
|
.catchall {:try_start_9 .. :try_end_9} :catchall_1
|
||
|
|
||
|
.line 411
|
||
|
:try_start_a
|
||
|
iget-object v2, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
||
|
|
||
|
move-object v0, v2
|
||
|
|
||
|
check-cast v0, Lcom/viatech/VrPlayer/MediaPacket;
|
||
|
|
||
|
move-object v6, v0
|
||
|
|
||
|
.line 412
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1400(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
and-int/lit8 v2, v2, 0x2
|
||
|
|
||
|
if-eqz v2, :cond_6
|
||
|
|
||
|
.line 413
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1400(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
and-int/lit8 v3, v3, -0x3
|
||
|
|
||
|
invoke-static {v2, v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1402(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
|
||
|
.line 414
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/media/MediaCodec;->flush()V
|
||
|
|
||
|
.line 415
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
iput v2, v6, Lcom/viatech/VrPlayer/MediaPacket;->mPTS:I
|
||
|
|
||
|
.line 417
|
||
|
:cond_6
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-eqz v2, :cond_7
|
||
|
|
||
|
.line 418
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-wide/16 v4, 0x1388
|
||
|
|
||
|
invoke-virtual {v2, v4, v5}, Landroid/media/MediaCodec;->dequeueInputBuffer(J)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
.line 419
|
||
|
if-gez v3, :cond_8
|
||
|
|
||
|
.line 420
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "failed to dequeueInputBuffer buffer"
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 422
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1500(Lcom/viatech/VrPlayer/VideoPlayer;)Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const/16 v3, 0x2712
|
||
|
|
||
|
invoke-virtual {v2, v3, v6}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p0, v2}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->sendMessageAtFrontOfQueue(Landroid/os/Message;)Z
|
||
|
|
||
|
.line 440
|
||
|
:goto_5
|
||
|
const/16 v2, 0x2713
|
||
|
|
||
|
invoke-virtual {p0, v2}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->obtainMessage(I)Landroid/os/Message;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 441
|
||
|
invoke-virtual {p0, v2}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->sendMessageAtFrontOfQueue(Landroid/os/Message;)Z
|
||
|
|
||
|
.line 444
|
||
|
:cond_7
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
monitor-enter v3
|
||
|
:try_end_a
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_a .. :try_end_a} :catch_4
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_a .. :try_end_a} :catch_5
|
||
|
|
||
|
.line 445
|
||
|
:try_start_b
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1710(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
.line 446
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->notify()V
|
||
|
|
||
|
.line 447
|
||
|
monitor-exit v3
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:catchall_2
|
||
|
move-exception v2
|
||
|
|
||
|
monitor-exit v3
|
||
|
:try_end_b
|
||
|
.catchall {:try_start_b .. :try_end_b} :catchall_2
|
||
|
|
||
|
:try_start_c
|
||
|
throw v2
|
||
|
:try_end_c
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_c .. :try_end_c} :catch_4
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_c .. :try_end_c} :catch_5
|
||
|
|
||
|
.line 448
|
||
|
:catch_4
|
||
|
move-exception v2
|
||
|
|
||
|
.line 449
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "IllegalStateException Video Decoder :"
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/IllegalStateException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 450
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$408(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
.line 451
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$400(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const/16 v3, 0x32
|
||
|
|
||
|
if-lt v2, v3, :cond_0
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1800(Lcom/viatech/VrPlayer/VideoPlayer;)Lcom/viatech/VrPlayer/VideoPlayer$Listener;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
.line 452
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1800(Lcom/viatech/VrPlayer/VideoPlayer;)Lcom/viatech/VrPlayer/VideoPlayer$Listener;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v2, v9}, Lcom/viatech/VrPlayer/VideoPlayer$Listener;->onVideoError(I)V
|
||
|
|
||
|
.line 453
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2, v10}, Lcom/viatech/VrPlayer/VideoPlayer;->access$402(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 425
|
||
|
:cond_8
|
||
|
:try_start_d
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1000(Lcom/viatech/VrPlayer/VideoPlayer;)[Ljava/nio/ByteBuffer;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
aget-object v2, v2, v3
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
|
||
|
|
||
|
.line 426
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1000(Lcom/viatech/VrPlayer/VideoPlayer;)[Ljava/nio/ByteBuffer;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
aget-object v2, v2, v3
|
||
|
|
||
|
iget-object v4, v6, Lcom/viatech/VrPlayer/MediaPacket;->mData:[B
|
||
|
|
||
|
invoke-virtual {v2, v4}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;
|
||
|
|
||
|
.line 427
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
iget-object v5, v6, Lcom/viatech/VrPlayer/MediaPacket;->mData:[B
|
||
|
|
||
|
array-length v5, v5
|
||
|
|
||
|
iget v6, v6, Lcom/viatech/VrPlayer/MediaPacket;->mPTS:I
|
||
|
|
||
|
int-to-long v6, v6
|
||
|
|
||
|
const-wide/16 v12, 0x3e8
|
||
|
|
||
|
mul-long/2addr v6, v12
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
invoke-virtual/range {v2 .. v8}, Landroid/media/MediaCodec;->queueInputBuffer(IIIJI)V
|
||
|
|
||
|
.line 433
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1608(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
:try_end_d
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_d .. :try_end_d} :catch_4
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_d .. :try_end_d} :catch_5
|
||
|
|
||
|
goto/16 :goto_5
|
||
|
|
||
|
.line 456
|
||
|
:catch_5
|
||
|
move-exception v2
|
||
|
|
||
|
.line 457
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "ArrayIndexOutOfBoundsException Video Decoder :"
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/ArrayIndexOutOfBoundsException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 464
|
||
|
:pswitch_3
|
||
|
:try_start_e
|
||
|
new-instance v2, Landroid/media/MediaCodec$BufferInfo;
|
||
|
|
||
|
invoke-direct {v2}, Landroid/media/MediaCodec$BufferInfo;-><init>()V
|
||
|
|
||
|
.line 465
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
const-wide/16 v4, 0x3e8
|
||
|
|
||
|
invoke-virtual {v3, v2, v4, v5}, Landroid/media/MediaCodec;->dequeueOutputBuffer(Landroid/media/MediaCodec$BufferInfo;J)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
.line 466
|
||
|
if-ltz v3, :cond_a
|
||
|
|
||
|
.line 470
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1908(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
.line 471
|
||
|
iget-object v4, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
iget-wide v6, v2, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J
|
||
|
|
||
|
invoke-virtual {v4, v6, v7}, Lcom/viatech/VrPlayer/VideoPlayer;->syncAudio(J)V
|
||
|
|
||
|
.line 472
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1400(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-nez v2, :cond_9
|
||
|
|
||
|
move v2, v9
|
||
|
|
||
|
:goto_6
|
||
|
invoke-virtual {v4, v3, v2}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V
|
||
|
|
||
|
.line 473
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$2000(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
.line 475
|
||
|
const/16 v2, 0x2713
|
||
|
|
||
|
invoke-virtual {p0, v2}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->removeMessages(I)V
|
||
|
|
||
|
.line 476
|
||
|
const/16 v2, 0x2713
|
||
|
|
||
|
const-wide/16 v4, 0x1e
|
||
|
|
||
|
invoke-virtual {p0, v2, v4, v5}, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->sendEmptyMessageDelayed(IJ)Z
|
||
|
:try_end_e
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_e .. :try_end_e} :catch_6
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_e .. :try_end_e} :catch_7
|
||
|
.catch Ljava/lang/InterruptedException; {:try_start_e .. :try_end_e} :catch_8
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 480
|
||
|
:catch_6
|
||
|
move-exception v2
|
||
|
|
||
|
.line 482
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "IllegalStateException Video Decoder show :"
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/IllegalStateException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_9
|
||
|
move v2, v10
|
||
|
|
||
|
.line 472
|
||
|
goto :goto_6
|
||
|
|
||
|
.line 478
|
||
|
:cond_a
|
||
|
:try_start_f
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "Can\'t get output frame"
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
:try_end_f
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_f .. :try_end_f} :catch_6
|
||
|
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_f .. :try_end_f} :catch_7
|
||
|
.catch Ljava/lang/InterruptedException; {:try_start_f .. :try_end_f} :catch_8
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 483
|
||
|
:catch_7
|
||
|
move-exception v2
|
||
|
|
||
|
.line 485
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "ArrayIndexOutOfBoundsException Video Decoder show :"
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/ArrayIndexOutOfBoundsException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 486
|
||
|
:catch_8
|
||
|
move-exception v2
|
||
|
|
||
|
.line 487
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "InterruptedException Video Decoder show :"
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/InterruptedException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 494
|
||
|
:pswitch_4
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "MSG_VIDEO_DECODER_STOP"
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 495
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
.line 496
|
||
|
:try_start_10
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1300(Lcom/viatech/VrPlayer/VideoPlayer;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-ne v2, v9, :cond_b
|
||
|
|
||
|
.line 497
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
invoke-static {v2, v4}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1302(Lcom/viatech/VrPlayer/VideoPlayer;I)I
|
||
|
|
||
|
.line 498
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$1200(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->notify()V
|
||
|
|
||
|
.line 500
|
||
|
:cond_b
|
||
|
monitor-exit v3
|
||
|
:try_end_10
|
||
|
.catchall {:try_start_10 .. :try_end_10} :catchall_3
|
||
|
|
||
|
.line 502
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-eqz v2, :cond_c
|
||
|
|
||
|
.line 504
|
||
|
:try_start_11
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/media/MediaCodec;->stop()V
|
||
|
|
||
|
.line 505
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/media/MediaCodec;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/media/MediaCodec;->release()V
|
||
|
|
||
|
.line 506
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
invoke-static {v2, v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$102(Lcom/viatech/VrPlayer/VideoPlayer;Landroid/media/MediaCodec;)Landroid/media/MediaCodec;
|
||
|
:try_end_11
|
||
|
.catch Ljava/lang/IllegalStateException; {:try_start_11 .. :try_end_11} :catch_9
|
||
|
|
||
|
.line 510
|
||
|
:goto_7
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$000()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
monitor-enter v3
|
||
|
|
||
|
.line 511
|
||
|
:try_start_12
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$210()I
|
||
|
|
||
|
.line 512
|
||
|
invoke-static {}, Lcom/viatech/VrPlayer/VideoPlayer;->access$000()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Object;->notifyAll()V
|
||
|
|
||
|
.line 513
|
||
|
monitor-exit v3
|
||
|
:try_end_12
|
||
|
.catchall {:try_start_12 .. :try_end_12} :catchall_4
|
||
|
|
||
|
.line 515
|
||
|
:cond_c
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$2100(Lcom/viatech/VrPlayer/VideoPlayer;)Landroid/os/HandlerThread;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Landroid/os/HandlerThread;->quit()Z
|
||
|
|
||
|
.line 516
|
||
|
iget-object v2, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v2}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "Video Decoder stop Finish"
|
||
|
|
||
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.line 500
|
||
|
:catchall_3
|
||
|
move-exception v2
|
||
|
|
||
|
:try_start_13
|
||
|
monitor-exit v3
|
||
|
:try_end_13
|
||
|
.catchall {:try_start_13 .. :try_end_13} :catchall_3
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
.line 507
|
||
|
:catch_9
|
||
|
move-exception v2
|
||
|
|
||
|
.line 508
|
||
|
iget-object v3, p0, Lcom/viatech/VrPlayer/VideoPlayer$VideoHandler;->this$0:Lcom/viatech/VrPlayer/VideoPlayer;
|
||
|
|
||
|
invoke-static {v3}, Lcom/viatech/VrPlayer/VideoPlayer;->access$300(Lcom/viatech/VrPlayer/VideoPlayer;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v5, "MSG_VIDEO_DECODER_STOP : "
|
||
|
|
||
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/IllegalStateException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
.line 513
|
||
|
:catchall_4
|
||
|
move-exception v2
|
||
|
|
||
|
:try_start_14
|
||
|
monitor-exit v3
|
||
|
:try_end_14
|
||
|
.catchall {:try_start_14 .. :try_end_14} :catchall_4
|
||
|
|
||
|
throw v2
|
||
|
|
||
|
.line 345
|
||
|
nop
|
||
|
|
||
|
:pswitch_data_0
|
||
|
.packed-switch 0x2710
|
||
|
:pswitch_0
|
||
|
:pswitch_1
|
||
|
:pswitch_2
|
||
|
:pswitch_3
|
||
|
:pswitch_4
|
||
|
.end packed-switch
|
||
|
.end method
|