.class public Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask; .super Ljava/lang/Object; .source "EditVideoActivity.java" # interfaces .implements Lcom/via/vpailib/vpaiinterface/MediaProcessApi$MediaProcessApiListener; .implements Ljava/lang/Runnable; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/viatech/gallery/EditVideoActivity; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "ThumbnailTask" .end annotation # instance fields .field private final THUMBNAIL_HEIGHT:I .field private final THUMBNAIL_WIDTH:I .field mActivity:Lcom/viatech/gallery/EditVideoActivity; .field mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; .field mSrcURL:Ljava/lang/String; .field final synthetic this$0:Lcom/viatech/gallery/EditVideoActivity; # direct methods .method public constructor (Lcom/viatech/gallery/EditVideoActivity;Landroid/net/Uri;)V .locals 1 .prologue const/4 v0, 0x0 .line 615 iput-object p1, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->this$0:Lcom/viatech/gallery/EditVideoActivity; invoke-direct {p0}, Ljava/lang/Object;->()V .line 609 iput-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mSrcURL:Ljava/lang/String; .line 610 iput-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; .line 612 const/16 v0, 0x200 iput v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->THUMBNAIL_WIDTH:I .line 613 const/16 v0, 0x100 iput v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->THUMBNAIL_HEIGHT:I .line 616 invoke-virtual {p2}, Landroid/net/Uri;->getPath()Ljava/lang/String; move-result-object v0 iput-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mSrcURL:Ljava/lang/String; .line 617 return-void .end method # virtual methods .method public onMediaProcessCallback(IILandroid/graphics/Bitmap;)V .locals 3 .prologue .line 643 const/4 v0, 0x2 if-ne p1, v0, :cond_0 .line 644 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mActivity:Lcom/viatech/gallery/EditVideoActivity; if-eqz v0, :cond_0 .line 645 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mActivity:Lcom/viatech/gallery/EditVideoActivity; invoke-virtual {v0, p3, p2}, Lcom/viatech/gallery/EditVideoActivity;->onThumnailUpdate(Landroid/graphics/Bitmap;I)V .line 646 const-string v0, "EditVideoActivity" new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "bmp = " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, " time = " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I .line 649 :cond_0 return-void .end method .method public run()V .locals 3 .prologue .line 625 new-instance v0, Lcom/via/vpailib/vpaiinterface/MediaProcessApi; const/4 v1, 0x2 invoke-direct {v0, v1}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->(I)V iput-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; .line 626 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; iget-object v1, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mSrcURL:Ljava/lang/String; invoke-virtual {v0, v1}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setInputFile(Ljava/lang/String;)I .line 627 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; invoke-virtual {v0, p0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->setMediaProcessApiListener(Lcom/via/vpailib/vpaiinterface/MediaProcessApi$MediaProcessApiListener;)V .line 628 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi: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 630 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->start()I .line 632 iget-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; invoke-virtual {v0}, Lcom/via/vpailib/vpaiinterface/MediaProcessApi;->destroy()V .line 633 const/4 v0, 0x0 iput-object v0, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mMediaProcessApi:Lcom/via/vpailib/vpaiinterface/MediaProcessApi; .line 634 return-void .end method .method setListerner(Lcom/viatech/gallery/EditVideoActivity;)V .locals 0 .prologue .line 620 iput-object p1, p0, Lcom/viatech/gallery/EditVideoActivity$ThumbnailTask;->mActivity:Lcom/viatech/gallery/EditVideoActivity; .line 621 return-void .end method .method public stop()I .locals 1 .prologue .line 638 const/4 v0, 0x0 return v0 .end method