[LG Optimus 3D] defcomg:
.class public Lcom/android/camera/mode/Mode3DNormal;
.super Lcom/android/camera/mode/ModeBaseCamera;
.source "Mode3DNormal.java"

# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.parameter "context"

.prologue
.line 36
invoke-direct {p0, p1}, Lcom/android/camera/mode/ModeBaseCamera;-><init>(Landroid/content/Context;)V

.line 37
return-void
.end method

# virtual methods
.method protected initEngineParamByMode(Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;)V
.locals 8
.parameter "param"

.prologue
const/16 v7, 0x20

const/4 v6, 0x1

const/4 v5, 0x0

.line 44
sget-object v2, Lcom/android/camera/utils/LogUtils;->TAG:Ljava/lang/String;

const-string v3, "Mode3DNormal: initEngineParamByMode <----"

invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

.line 45
iput-boolean v6, p0, Lcom/android/camera/mode/ModeBaseCamera;->mSavingWithThread:Z

.line 46
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mCamEngine:Lcom/arcsoft/android/camera/engine/CameraEngine;

const-string v3, "jpeg-thumbnail-width"

const/16 v4, 0x280

invoke-virtual {v2, v3, v4, v5}, Lcom/arcsoft/android/camera/engine/CameraEngine;->setParameterTest(Ljava/lang/String;IZ)V

.line 47
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mCamEngine:Lcom/arcsoft/android/camera/engine/CameraEngine;

const-string v3, "jpeg-thumbnail-height"

const/16 v4, 0xf0

invoke-virtual {v2, v3, v4, v5}, Lcom/arcsoft/android/camera/engine/CameraEngine;->setParameterTest(Ljava/lang/String;IZ)V

.line 49
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mCamEngine:Lcom/arcsoft/android/camera/engine/CameraEngine;

const v3, 0x20000005

invoke-virtual {v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine;->setMode(I)I

.line 51
const v2, 0x10000062

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 52
const v2, 0x10000002

const/16 v3, 0x11

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 54
const v2, 0x10000114

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 55
const v2, 0x10000083

const-string v3, "off"

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 57
const v2, 0x10000064

invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 58
const v2, 0x10000082

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 60
const v2, 0x10000110

invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 62
const v3, 0x10000107

iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mConfigMgr:Lcom/android/camera/ConfigMgr;

const v4, 0x1002026

invoke-virtual {v2, v4}, Lcom/android/camera/ConfigMgr;->getConfig(I)Ljava/lang/Object;

move-result-object v2

check-cast v2, Ljava/lang/Integer;

invoke-virtual {p1, v3, v2}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 63
const v3, 0x10000108

iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mConfigMgr:Lcom/android/camera/ConfigMgr;

const v4, 0x1002027

invoke-virtual {v2, v4}, Lcom/android/camera/ConfigMgr;->getConfig(I)Ljava/lang/Object;

move-result-object v2

check-cast v2, Ljava/lang/Integer;

invoke-virtual {p1, v3, v2}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 64
const v2, 0x10000109

const/4 v3, 0x2

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {p1, v2, v3}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 65
invoke-static {v7}, Lcom/android/camera/utils/Utils;->getPreviewSize(I)Lcom/arcsoft/android/camera/utils/MSize;

move-result-object v1

.line 70
.local v1, mpreviewsize:Lcom/arcsoft/android/camera/utils/MSize;
const v2, 0x10000003

invoke-virtual {p1, v2, v1}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 71
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mConfigMgr:Lcom/android/camera/ConfigMgr;

const v3, 0x1001007

invoke-virtual {v2, v3}, Lcom/android/camera/ConfigMgr;->getConfig(I)Ljava/lang/Object;

move-result-object v2

check-cast v2, Ljava/lang/Integer;

invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

move-result v2

invoke-static {v2}, Lcom/android/camera/utils/Utils;->getResolution(I)Lcom/arcsoft/android/camera/utils/MSize;

move-result-object v0

.line 75
.local v0, mimagesize:Lcom/arcsoft/android/camera/utils/MSize;
iget v2, v0, Lcom/arcsoft/android/camera/utils/MSize;->width:I

mul-int/lit8 v2, v2, 0x2

iput v2, v0, Lcom/arcsoft/android/camera/utils/MSize;->width:I

.line 77
const v2, 0x10000004

invoke-virtual {p1, v2, v0}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 78
const v3, 0x10000001

iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mConfigMgr:Lcom/android/camera/ConfigMgr;

const v4, 0x100200c

invoke-virtual {v2, v4}, Lcom/android/camera/ConfigMgr;->getConfig(I)Ljava/lang/Object;

move-result-object v2

check-cast v2, Ljava/lang/Integer;

invoke-virtual {p1, v3, v2}, Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;->set(ILjava/lang/Object;)V

.line 79
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mSystemReceiverrMgr:Lcom/android/camera/utils/SystemReceiverMgr;

if-eqz v2, :cond_0

.line 80
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mSystemReceiverrMgr:Lcom/android/camera/utils/SystemReceiverMgr;

const/16 v3, 0xb

invoke-virtual {v2, v3}, Lcom/android/camera/utils/SystemReceiverMgr;->getInformation(I)Ljava/lang/Object;

.line 81
:cond_0
iget-object v2, p0, Lcom/android/camera/mode/ModeBaseCamera;->mCameraApp:Lcom/android/camera/ArcCamera;

const/16 v3, 0x15b1

invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v4

invoke-virtual {v2, v3, v4}, Lcom/android/camera/ArcCamera;->onNotify(ILjava/lang/Object;)I

.line 82
sget-object v2, Lcom/android/camera/utils/LogUtils;->TAG:Ljava/lang/String;

const-string v3, "Mode3DNormal: initEngineParamByMode ---->"

invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

.line 83
return-void
.end method

.method protected isSupportSelfTimer()Z
.locals 1

.prologue
.line 40
const/4 v0, 0x1

return v0
.end method

.method public onNotify(ILjava/lang/Object;)I
.locals 4
.parameter "key"
.parameter "obj"

.prologue
.line 86
const/4 v1, 0x0

.line 87
.local v1, res:I
packed-switch p1, :pswitch_data_0

.line 100
invoke-super {p0, p1, p2}, Lcom/android/camera/mode/ModeBaseCamera;->onNotify(ILjava/lang/Object;)I

move-result v1

.line 103
.end local p2
:cond_0
:goto_0
return v1

.line 89
.restart local p2
:pswitch_0
if-eqz p2, :cond_0

.line 91
check-cast p2, Ljava/lang/Integer;

.end local p2
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

move-result v2

invoke-static {v2}, Lcom/android/camera/utils/Utils;->getResolution(I)Lcom/arcsoft/android/camera/utils/MSize;

move-result-object v0

.line 95
.local v0, msize:Lcom/arcsoft/android/camera/utils/MSize;
iget v2, v0, Lcom/arcsoft/android/camera/utils/MSize;->width:I

mul-int/lit8 v2, v2, 0x2

iput v2, v0, Lcom/arcsoft/android/camera/utils/MSize;->width:I

.line 97
iget-object v2, p0, Lcom/android/camera/mode/AbsCameraMode;->mCamEngine:Lcom/arcsoft/android/camera/engine/CameraEngine;

const v3, 0x10000004

invoke-virtual {v2, v3, v0}, Lcom/arcsoft/android/camera/engine/CameraEngine;->setParameter(ILjava/lang/Object;)I

goto :goto_0

.line 87
:pswitch_data_0
.packed-switch 0x1f46
:pswitch_0
.end packed-switch
.end method

to get 5mp msize must be msize x 2.5 = 5120 width cant figure out how to write it in hex formart as 2.5 decimal = 0x2 which is the same as 2

anyway ima post ArcCamera in Java Formart which is much easier to understand than .smali yall can take a look it at it if you see something that needs to be changed i will changed it in smali just tell me class name and values.

lemach @ Lemach Noise is caused by high iso for some reason auto mode is actually iso800 setting it to iso100 gets rid of the noise will try force the camera to iso100. to Open the .class use notepad++