MMCAVPlayerSurfaceView$MMCVideoRender.smali
.class Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/opengl/GLSurfaceView$Renderer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mmc/player/MMCAVPlayerSurfaceView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "MMCVideoRender"
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# direct methods
.method private constructor <init>(Lcom/mmc/player/MMCAVPlayerSurfaceView;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/mmc/player/MMCAVPlayerSurfaceView;Lcom/mmc/player/MMCAVPlayerSurfaceView$1;)V
.registers 3
.line 2
invoke-direct {p0, p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;-><init>(Lcom/mmc/player/MMCAVPlayerSurfaceView;)V
return-void
.end method
# virtual methods
.method public onDrawFrame(Ljavax/microedition/khronos/opengles/GL10;)V
.registers 6
const/4 p1, 0x0
const/high16 v0, 0x3f800000 # 1.0f
.line 1
invoke-static {p1, p1, p1, v0}, Landroid/opengl/GLES20;->glClearColor(FFFF)V
const/16 p1, 0x4100
.line 2
invoke-static {p1}, Landroid/opengl/GLES20;->glClear(I)V
.line 3
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTextureType:I
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$700(Lcom/mmc/player/MMCAVPlayerSurfaceView;)I
move-result p1
if-eqz p1, :cond_61
const/4 v0, 0x1
const/4 v1, 0x0
if-eq p1, v0, :cond_4b
const/4 v0, 0x3
if-eq p1, v0, :cond_35
const/4 v0, 0x5
if-eq p1, v0, :cond_1f
goto/16 :goto_ab
.line 4
:cond_1f
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mediaPlayer:Lcom/mmc/player/MMCMediaPlayer;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/MMCMediaPlayer;
move-result-object p1
iget-object v2, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTexCoorMatrix:[F
invoke-static {v2}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$900(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[F
move-result-object v2
iget-object v3, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->isSaveFrameBuffer:Z
invoke-static {v3}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Z
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Lcom/mmc/player/MMCMediaPlayer;->onDrawFrame(I[I[FZ)V
goto :goto_ab
.line 5
:cond_35
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mediaPlayer:Lcom/mmc/player/MMCMediaPlayer;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/MMCMediaPlayer;
move-result-object p1
iget-object v2, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTexCoorMatrix:[F
invoke-static {v2}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$900(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[F
move-result-object v2
iget-object v3, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->isSaveFrameBuffer:Z
invoke-static {v3}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Z
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Lcom/mmc/player/MMCMediaPlayer;->onDrawFrame(I[I[FZ)V
goto :goto_ab
.line 6
:cond_4b
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mediaPlayer:Lcom/mmc/player/MMCMediaPlayer;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/MMCMediaPlayer;
move-result-object p1
iget-object v2, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTexCoorMatrix:[F
invoke-static {v2}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$900(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[F
move-result-object v2
iget-object v3, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->isSaveFrameBuffer:Z
invoke-static {v3}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Z
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Lcom/mmc/player/MMCMediaPlayer;->onDrawFrame(I[I[FZ)V
goto :goto_ab
.line 7
:cond_61
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mSurfaceTexture:Landroid/graphics/SurfaceTexture;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$800(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Landroid/graphics/SurfaceTexture;
move-result-object p1
invoke-virtual {p1}, Landroid/graphics/SurfaceTexture;->updateTexImage()V
.line 8
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x17
if-le p1, v0, :cond_80
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mSurfaceTexture:Landroid/graphics/SurfaceTexture;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$800(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Landroid/graphics/SurfaceTexture;
move-result-object p1
invoke-virtual {p1}, Landroid/graphics/SurfaceTexture;->getTimestamp()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long p1, v0, v2
if-eqz p1, :cond_ab
.line 9
:cond_80
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mSurfaceTexture:Landroid/graphics/SurfaceTexture;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$800(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Landroid/graphics/SurfaceTexture;
move-result-object p1
iget-object v0, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTexCoorMatrix:[F
invoke-static {v0}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$900(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[F
move-result-object v0
invoke-virtual {p1, v0}, Landroid/graphics/SurfaceTexture;->getTransformMatrix([F)V
.line 10
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mediaPlayer:Lcom/mmc/player/MMCMediaPlayer;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/MMCMediaPlayer;
move-result-object p1
const/4 v0, 0x0
iget-object v1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mOESTextureId:[I
invoke-static {v1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1000(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[I
move-result-object v1
iget-object v2, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mTexCoorMatrix:[F
invoke-static {v2}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$900(Lcom/mmc/player/MMCAVPlayerSurfaceView;)[F
move-result-object v2
iget-object v3, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->isSaveFrameBuffer:Z
invoke-static {v3}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Z
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Lcom/mmc/player/MMCMediaPlayer;->onDrawFrame(I[I[FZ)V
.line 11
:cond_ab
:goto_ab
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# invokes: Lcom/mmc/player/MMCAVPlayerSurfaceView;->dealSnapshot()V
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$1200(Lcom/mmc/player/MMCAVPlayerSurfaceView;)V
return-void
.end method
.method public onSurfaceChanged(Ljavax/microedition/khronos/opengles/GL10;II)V
.registers 4
const/4 p1, 0x0
.line 1
invoke-static {p1, p1, p2, p3}, Landroid/opengl/GLES20;->glViewport(IIII)V
.line 2
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mediaPlayer:Lcom/mmc/player/MMCMediaPlayer;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$100(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/MMCMediaPlayer;
move-result-object p1
invoke-virtual {p1, p2, p3}, Lcom/mmc/player/MMCMediaPlayer;->onSurfaceSizeChanged(II)V
.line 3
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# setter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mSurfaceWidth:I
invoke-static {p1, p2}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$402(Lcom/mmc/player/MMCAVPlayerSurfaceView;I)I
.line 4
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# setter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mSurfaceHeight:I
invoke-static {p1, p3}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$502(Lcom/mmc/player/MMCAVPlayerSurfaceView;I)I
.line 5
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mAnalysisListener:Lcom/mmc/player/analyze/MMCAnalysisListener;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$600(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/analyze/MMCAnalysisListener;
move-result-object p1
if-eqz p1, :cond_28
.line 6
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# getter for: Lcom/mmc/player/MMCAVPlayerSurfaceView;->mAnalysisListener:Lcom/mmc/player/analyze/MMCAnalysisListener;
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$600(Lcom/mmc/player/MMCAVPlayerSurfaceView;)Lcom/mmc/player/analyze/MMCAnalysisListener;
move-result-object p1
invoke-interface {p1, p2, p3}, Lcom/mmc/player/analyze/MMCAnalysisListener;->onSurfaceSizeChanged(II)V
:cond_28
return-void
.end method
.method public onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
.registers 3
.line 1
iget-object p1, p0, Lcom/mmc/player/MMCAVPlayerSurfaceView$MMCVideoRender;->this$0:Lcom/mmc/player/MMCAVPlayerSurfaceView;
# invokes: Lcom/mmc/player/MMCAVPlayerSurfaceView;->oesTextureBindSurface()V
invoke-static {p1}, Lcom/mmc/player/MMCAVPlayerSurfaceView;->access$300(Lcom/mmc/player/MMCAVPlayerSurfaceView;)V
const/16 p1, 0xbd0
.line 2
invoke-static {p1}, Landroid/opengl/GLES20;->glDisable(I)V
const/16 p1, 0x4100
.line 3
invoke-static {p1}, Landroid/opengl/GLES20;->glClear(I)V
const/4 p1, 0x0
const/high16 p2, 0x3f800000 # 1.0f
.line 4
invoke-static {p1, p1, p1, p2}, Landroid/opengl/GLES20;->glClearColor(FFFF)V
return-void
.end method