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.
178 lines
5.9 KiB
178 lines
5.9 KiB
.class Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask; |
|
.super Ljava/lang/Object; |
|
.source "SendVideoActivity.java" |
|
|
|
# interfaces |
|
.implements Lcom/via/vpailib/vpaiinterface/MediaProcessApi$MediaProcessApiListener; |
|
.implements Ljava/lang/Runnable; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/viatech/gallery/SendVideoActivity; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x2 |
|
name = "CreateVideoThumbTask" |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private path:Ljava/lang/String; |
|
|
|
.field final synthetic this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
.field private thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
.field private time:J |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Lcom/viatech/gallery/SendVideoActivity;J)V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 728 |
|
iput-object p1, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 729 |
|
invoke-static {p1}, Lcom/viatech/gallery/SendVideoActivity;->access$1100(Lcom/viatech/gallery/SendVideoActivity;)Landroid/net/Uri; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "file://" |
|
|
|
const-string v2, "" |
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->path:Ljava/lang/String; |
|
|
|
.line 730 |
|
iput-wide p2, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->time:J |
|
|
|
.line 731 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onMediaProcessCallback(IILandroid/graphics/Bitmap;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 735 |
|
const/4 v0, 0x2 |
|
|
|
if-ne p1, v0, :cond_0 |
|
|
|
.line 736 |
|
if-eqz p3, :cond_0 |
|
|
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendVideoActivity;->access$2500(Lcom/viatech/gallery/SendVideoActivity;)Landroid/widget/ImageView; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 737 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
invoke-static {v0, p3}, Lcom/viatech/gallery/SendVideoActivity;->access$2002(Lcom/viatech/gallery/SendVideoActivity;Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap; |
|
|
|
.line 738 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendVideoActivity;->access$2500(Lcom/viatech/gallery/SendVideoActivity;)Landroid/widget/ImageView; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p3}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V |
|
|
|
.line 741 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public run()V |
|
.locals 6 |
|
|
|
.prologue |
|
.line 745 |
|
new-instance v0, Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
const/4 v1, 0x2 |
|
|
|
invoke-direct {v0, v1}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
.line 746 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->path:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setInputFile(Ljava/lang/String;)I |
|
|
|
.line 747 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
invoke-virtual {v0, p0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setMediaProcessApiListener(Lcom/via/vpailib/vpaiinterface/MediaProcessApi$MediaProcessApiListener;)V |
|
|
|
.line 748 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
const/16 v1, 0x200 |
|
|
|
const/16 v2, 0x100 |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setOutResolution(II)I |
|
|
|
.line 749 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->this$0:Lcom/viatech/gallery/SendVideoActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/SendVideoActivity;->access$1300(Lcom/viatech/gallery/SendVideoActivity;)J |
|
|
|
move-result-wide v2 |
|
|
|
iget-wide v4, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->time:J |
|
|
|
add-long/2addr v2, v4 |
|
|
|
long-to-int v1, v2 |
|
|
|
const/4 v2, 0x1 |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setThumbnailInfo(II)I |
|
|
|
.line 751 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->start()I |
|
|
|
.line 752 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->destroy()V |
|
|
|
.line 753 |
|
const/4 v0, 0x0 |
|
|
|
iput-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$CreateVideoThumbTask;->thumbProcess:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; |
|
|
|
.line 754 |
|
return-void |
|
.end method
|
|
|