Created
July 11, 2015 14:38
-
-
Save gekkehenkie11/91e7a91ead24dc6932cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.sec.android.seccamera; | |
| import android.app.ActivityThread; | |
| import android.graphics.Point; | |
| import android.graphics.Rect; | |
| import android.graphics.SurfaceTexture; | |
| import android.hardware.Camera; | |
| import android.media.IAudioService; | |
| import android.media.IAudioService.Stub; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import android.os.Message; | |
| import android.os.Process; | |
| import android.os.RemoteException; | |
| import android.os.ServiceManager; | |
| import android.renderscript.Allocation; | |
| import android.renderscript.Element; | |
| import android.renderscript.Element.DataKind; | |
| import android.renderscript.Element.DataType; | |
| import android.renderscript.RSIllegalArgumentException; | |
| import android.renderscript.RenderScript; | |
| import android.renderscript.Type; | |
| import android.renderscript.Type.Builder; | |
| import android.text.TextUtils.SimpleStringSplitter; | |
| import android.text.TextUtils.StringSplitter; | |
| import android.util.Log; | |
| import android.view.Surface; | |
| import android.view.SurfaceHolder; | |
| import java.io.FileDescriptor; | |
| import java.io.IOException; | |
| import java.io.RandomAccessFile; | |
| import java.lang.ref.WeakReference; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.LinkedHashMap; | |
| import java.util.List; | |
| import java.util.Set; | |
| public class SecCamera | |
| { | |
| public static final String ACTION_NEW_PICTURE = "android.hardware.action.NEW_PICTURE"; | |
| public static final String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO"; | |
| private static final int ACTION_SHOT_CANCELSERIES = 1134; | |
| private static final int ACTION_SHOT_CAPTURED = 61509; | |
| private static final int ACTION_SHOT_CREATING_RESULT_COMPLETED = 61507; | |
| private static final int ACTION_SHOT_CREATING_RESULT_PROGRESS = 61506; | |
| private static final int ACTION_SHOT_CREATING_RESULT_STARTED = 61505; | |
| private static final int ACTION_SHOT_FINALIZE = 1136; | |
| private static final int ACTION_SHOT_INITIALIZE = 1131; | |
| private static final int ACTION_SHOT_PROGRESS_ACQUISITION = 61508; | |
| private static final int ACTION_SHOT_RECT = 61510; | |
| private static final int ACTION_SHOT_SETRESOLUTION = 1132; | |
| private static final int ACTION_SHOT_STARTSERIES = 1133; | |
| private static final int ACTION_SHOT_STOPSERIES = 1135; | |
| private static final int ADDME_SHOT_CANCEL_CAPTURE = 1145; | |
| private static final int ADDME_SHOT_CAPUTRED_FIRSTPERSON = 61522; | |
| private static final int ADDME_SHOT_ERR = 61521; | |
| private static final int ADDME_SHOT_FINALIZE = 1146; | |
| private static final int ADDME_SHOT_HANDLE_SNAPSHOT = 1144; | |
| private static final int ADDME_SHOT_INIT = 1141; | |
| private static final int ADDME_SHOT_PROGRESS_STITCHING = 61523; | |
| private static final int ADDME_SHOT_START_CAPTURE = 1142; | |
| private static final int ADDME_SHOT_SWITCH_POSITION = 1143; | |
| private static final int AE_RESULT = 62289; | |
| private static final int AUTO_LOW_LIGHT_DETECTION_CHANGED = 62001; | |
| private static final int AUTO_LOW_LIGHT_SET = 1351; | |
| private static final int BATTERY_OVER_HEAT = 1393; | |
| private static final int BEAUTY_EYE_ENLARGE = 1185; | |
| private static final int BEAUTY_FACE_RETOUCH = 1181; | |
| private static final int BEAUTY_LIVE_EFFECT = 1182; | |
| private static final int BEAUTY_SHOT_MANUAL_MODE = 1183; | |
| private static final int BEAUTY_SHOT_PROGRESS_RENDERING = 61777; | |
| private static final int BEAUTY_SLIM_FACE = 1184; | |
| private static final int BURST_SHOT_CAPTURE = 1162; | |
| private static final int BURST_SHOT_CAPTURING_PROGRESSED = 61585; | |
| private static final int BURST_SHOT_CAPTURING_STOPPED = 61586; | |
| private static final int BURST_SHOT_DURATION = 1166; | |
| private static final int BURST_SHOT_FILE_STRING = 61588; | |
| private static final int BURST_SHOT_SAVING_COMPLETED = 61587; | |
| private static final int BURST_SHOT_SETUP = 1167; | |
| private static final int BURST_SHOT_START_CAPTURE = 1163; | |
| private static final int BURST_SHOT_STOP_AND_ENCODING = 1164; | |
| private static final int BURST_SHOT_STORING = 1161; | |
| private static final int BURST_SHOT_TERMINATE = 1165; | |
| private static final int CAMERA_CMD_GET_WB_CUSTOM_VALUE = 1231; | |
| private static final int CAMERA_CMD_RESET_WB_CUSTOM_VALUE = 1391; | |
| private static final int CAMERA_CMD_SMART_AUTO_S1_PUSH = 1251; | |
| private static final int CAMERA_CMD_SMART_AUTO_S1_RELEASE = 1252; | |
| public static final int CAMERA_ERROR_PREVIEWFRAME_TIMEOUT = 1001; | |
| public static final int CAMERA_ERROR_PRIORITY_DIED = 200; | |
| public static final int CAMERA_ERROR_SERVER_DIED = 100; | |
| public static final int CAMERA_ERROR_UNKNOWN = 1; | |
| private static final int CAMERA_FACE_DETECTION_DMC_SW = 5; | |
| private static final int CAMERA_FACE_DETECTION_HW = 0; | |
| private static final int CAMERA_FACE_DETECTION_SAMSUNG_SW = 4; | |
| private static final int CAMERA_FACE_DETECTION_SW = 1; | |
| private static final int CAMERA_FACE_DETECTION_SW_ONE_EYE = 2; | |
| private static final int CAMERA_FACE_DETECTION_SW_TWO_EYE = 3; | |
| public static final int CAMERA_HAL_API_VERSION_1_0 = 256; | |
| private static final int CAMERA_HAL_API_VERSION_NORMAL_CONNECT = -2; | |
| private static final int CAMERA_HAL_API_VERSION_UNSPECIFIED = -1; | |
| private static final int CAMERA_MSG_ALL_MSGS = -1; | |
| private static final int CAMERA_MSG_AUTO_PARAMETERS_NOTIFY = 131072; | |
| private static final int CAMERA_MSG_COMPRESSED_IMAGE = 256; | |
| private static final int CAMERA_MSG_ERROR = 1; | |
| private static final int CAMERA_MSG_FIRMWARE_NOTIFY = 524288; | |
| private static final int CAMERA_MSG_FOCUS = 4; | |
| private static final int CAMERA_MSG_FOCUS_MOVE = 2048; | |
| private static final int CAMERA_MSG_MANUAL_FOCUS_NOTIFY = 1048576; | |
| private static final int CAMERA_MSG_POSTVIEW_FRAME = 64; | |
| private static final int CAMERA_MSG_PREVIEW_FRAME = 16; | |
| private static final int CAMERA_MSG_PREVIEW_METADATA = 1024; | |
| private static final int CAMERA_MSG_RAW_IMAGE = 128; | |
| private static final int CAMERA_MSG_RAW_IMAGE_NOTIFY = 512; | |
| private static final int CAMERA_MSG_SHOT_END = 262144; | |
| private static final int CAMERA_MSG_SHUTTER = 2; | |
| private static final int CAMERA_MSG_VIDEO_FRAME = 32; | |
| private static final int CAMERA_MSG_ZOOM = 8; | |
| private static final int CAMERA_MSG_ZOOM_STEP_NOTIFY = 65536; | |
| private static final int CARTOON_SHOT_PROGRESS_RENDERING = 61553; | |
| private static final int CARTOON_SHOT_SELECT_MODE = 1151; | |
| private static final int CHANGE_MAIN_LCD = 1392; | |
| private static final int CHECK_MARKER_OF_SAMSUNG_DEFINED_CALLBACK_MSGS = 61440; | |
| private static final int COMMON_CANCEL_TAKE_PICTURE = 1472; | |
| private static final int COMMON_STOP_TAKE_PICTURE = 1471; | |
| private static final int CONTINUOUS_SHOT_CAPTURING_PROGRESSED = 61489; | |
| private static final int CONTINUOUS_SHOT_CAPTURING_STOPPED = 61490; | |
| private static final int CONTINUOUS_SHOT_SAVING_COMPLETED = 61491; | |
| private static final int CONTINUOUS_SHOT_SOUND = 1124; | |
| private static final int CONTINUOUS_SHOT_START_CAPTURE = 1121; | |
| private static final int CONTINUOUS_SHOT_STOP_AND_ENCODING = 1122; | |
| private static final int CONTINUOUS_SHOT_TERMINATE = 1123; | |
| private static final int DEVICE_ORIENTATION = 1521; | |
| private static final int DISTORTION_EFFECTS_SHOT_CAPTURE = 1466; | |
| private static final int DISTORTION_EFFECTS_SHOT_INFO = 1464; | |
| private static final int DISTORTION_EFFECTS_SHOT_SET_MODE = 1465; | |
| private static final int DRAMA_SHOT_CANCEL = 1333; | |
| private static final int DRAMA_SHOT_CAPTURING_PROGRESS = 61985; | |
| private static final int DRAMA_SHOT_ERROR = 61987; | |
| private static final int DRAMA_SHOT_INPUT_YUV_STRING = 61988; | |
| private static final int DRAMA_SHOT_MODE = 1334; | |
| private static final int DRAMA_SHOT_PROGRESS_POSTPROCESSING = 61986; | |
| private static final int DRAMA_SHOT_RESULT_YUV_STRING = 61989; | |
| private static final int DRAMA_SHOT_START = 1331; | |
| private static final int DRAMA_SHOT_STOP = 1332; | |
| private static final int DRAMA_SHOT_STORAGE = 1335; | |
| private static final int DUAL_CAMERA_CAPTURE_STATUS_CHANGED = 62033; | |
| private static final int DUAL_CAMERA_TRACKING_STATUS_CHANGED = 62035; | |
| private static final int DUAL_MODE_SHOT_ASYNC_CAPTURE = 1374; | |
| private static final int EACCESS = -13; | |
| private static final int EBUSY = -16; | |
| public static final int EFFECT_REAR_BOTTOM_FRONT_TOP = 0; | |
| public static final int EFFECT_REAR_TOP_FRONT_BOTTOM = 1; | |
| private static final int EINVAL = -22; | |
| private static final int ENODEV = -19; | |
| private static final int ENOSYS = -38; | |
| private static final int EOPNOTSUPP = -95; | |
| private static final int EUSERS = -87; | |
| private static final String EXTERNAL_SHOOTING_MODES_MAP_GENERIC_PARAM = "[external_shooting_modes_map]"; | |
| private static final int FACE_DETECTION_HINT = 1191; | |
| public static final int FOCUS_MODE_ALL_IN_FOCUS = 4; | |
| public static final int FOCUS_MODE_OUT_FOCUS = 1; | |
| public static final int FOCUS_MODE_OUT_FOCUS_FAST = 2; | |
| public static final int FOCUS_MODE_REFOCUS = 3; | |
| private static final int GOLF_SHOT_CAPTURED = 61845; | |
| private static final int GOLF_SHOT_CREATING_RESULT_COMPLETED = 61843; | |
| private static final int GOLF_SHOT_CREATING_RESULT_PROGRESS = 61842; | |
| private static final int GOLF_SHOT_CREATING_RESULT_STARTED = 61841; | |
| private static final int GOLF_SHOT_ERROR = 61846; | |
| private static final int GOLF_SHOT_SAVE = 1313; | |
| private static final int GOLF_SHOT_SAVE_RESULT_PROGRESS = 61844; | |
| private static final int GOLF_SHOT_START = 1311; | |
| private static final int GOLF_SHOT_STOP = 1312; | |
| private static final int HAL_AE_AWB_LOCK_UNLOCK = 1501; | |
| private static final int HAL_AE_CONTROL = 1633; | |
| private static final int HAL_AE_POSITION = 1631; | |
| private static final int HAL_AE_SIZE = 1632; | |
| private static final int HAL_AF_LAMP_CONTROL = 1555; | |
| private static final int HAL_CANCEL_AF_FOCUS_AREA = 1553; | |
| private static final int HAL_CAPTURE_END = 1554; | |
| private static final int HAL_DELETE_BURST_TAKE = 1573; | |
| private static final int HAL_DISABLE_POSTVIEW_TO_OVERLAY = 1509; | |
| private static final int HAL_DONE_CHK_DATALINE = 61442; | |
| private static final int HAL_ENABLE_CURRENT_SET = 1643; | |
| private static final int HAL_ENABLE_LIGHT_CONDITION = 1801; | |
| private static final int HAL_ENABLE_PAF_RESULT = 1644; | |
| private static final int HAL_FACE_DETECT_LOCK_UNLOCK = 1502; | |
| private static final int HAL_FLASH_POPUP = 1558; | |
| private static final int HAL_FLUSH_ION_MEMORY = 1561; | |
| private static final int HAL_MSG_OBJ_TRACKING = 61441; | |
| private static final int HAL_OBJECT_POSITION = 1503; | |
| private static final int HAL_OBJECT_TRACKING_STARTSTOP = 1504; | |
| private static final int HAL_ON_AE_AWB = 1700; | |
| private static final int HAL_QUICK_VIEW_CANCEL = 1586; | |
| private static final int HAL_SEND_EXT_MSG_START = 1594; | |
| private static final int HAL_SEND_FACE_ORIENTATION = 1530; | |
| private static final int HAL_SET_3D_PREVIEW_DISPLAY = 1592; | |
| private static final int HAL_SET_BULK_PRAMETER = 1595; | |
| private static final int HAL_SET_DEFAULT_IMEI = 1507; | |
| private static final int HAL_SET_FILTER_EFFECT = 1601; | |
| private static final int HAL_SET_FLASH_CHARGING_STATUS = 1556; | |
| private static final int HAL_SET_FOCUS_ICON_SIZE = 1593; | |
| private static final int HAL_SET_FRONT_SENSOR_MIRROR = 1510; | |
| private static final int HAL_SET_IFUNCTION_PUSH = 1611; | |
| private static final int HAL_SET_IFUNCTION_RELEASE = 1585; | |
| private static final int HAL_SET_INTERVAL_SHOT_MANUAL_FOCUS = 1610; | |
| private static final int HAL_SET_MANUAL_FOCUS_POSITION = 1584; | |
| private static final int HAL_SET_PROGRAM_SHIFT = 1589; | |
| private static final int HAL_SET_SAMSUNG_CAMERA = 1508; | |
| private static final int HAL_SET_ZOOM_STEP = 1557; | |
| private static final int HAL_SHOT_CAPTURE_START = 1581; | |
| private static final int HAL_SHOT_CAPTURE_STOP = 1582; | |
| private static final int HAL_SMART_CAPTURE_START = 1587; | |
| private static final int HAL_SMART_CAPTURE_STOP = 1588; | |
| private static final int HAL_SOUND_AND_SHOT_MIC_CONTROL = 1602; | |
| private static final int HAL_START_3D_PREVIEW = 1591; | |
| private static final int HAL_START_ANIMATED_PHOTO = 1623; | |
| private static final int HAL_START_BURST_TAKE = 1571; | |
| private static final int HAL_START_CONTINUOUS_AF = 1551; | |
| private static final int HAL_START_EFFECT_RECORDING = 1621; | |
| private static final int HAL_START_FACEZOOM = 1531; | |
| private static final int HAL_START_PAF_CALLBACK = 1650; | |
| private static final int HAL_START_SENSER_CLEANING = 1583; | |
| private static final int HAL_START_ZOOM = 1661; | |
| private static final int HAL_STOP_ANIMATED_PHOTO = 1624; | |
| private static final int HAL_STOP_BURST_TAKE = 1572; | |
| private static final int HAL_STOP_CHK_DATALINE = 1506; | |
| private static final int HAL_STOP_CONTINUOUS_AF = 1552; | |
| private static final int HAL_STOP_EFFECT_RECORDING = 1622; | |
| private static final int HAL_STOP_FACEZOOM = 1532; | |
| private static final int HAL_STOP_PAF_CALLBACK = 1651; | |
| private static final int HAL_STOP_ZOOM = 1662; | |
| private static final int HAL_TOUCH_AF_STARTSTOP = 1505; | |
| private static final int HAZE_REMOVAL_SHOT_PROGRESS_POSTPROCESSING = 62081; | |
| private static final int HDR_PICTURE_MODE_CHANGE = 1273; | |
| private static final int HDR_SHOT_ALL_PROGRESS_COMPLETED = 61572; | |
| private static final int HDR_SHOT_MODE_CHANGE = 1271; | |
| private static final int HDR_SHOT_RESULT_COMPLETED = 61571; | |
| private static final int HDR_SHOT_RESULT_PROGRESS = 61570; | |
| private static final int HDR_SHOT_RESULT_STARTED = 61569; | |
| private static final int HDR_SHOT_YUV_MODE_CHANGE = 1272; | |
| private static final int HDR_SHOT_YUV_STRING = 61573; | |
| private static final int HISTOGRAM_DATA = 62049; | |
| private static final int HISTOGRAM_SET_INCREMENT = 1363; | |
| private static final int HISTOGRAM_SET_SKIP_RATE = 1364; | |
| private static final int HISTOGRAM_START = 1361; | |
| private static final int HISTOGRAM_STOP = 1362; | |
| private static final int INTERACTIVE_SHOT_CAPTURE_PROGRESS = 62306; | |
| private static final int INTERACTIVE_SHOT_DIRECTION_CHANGED = 62305; | |
| private static final int INTERACTIVE_SHOT_PROCESS_COMPLETE = 62308; | |
| private static final int INTERACTIVE_SHOT_PROCESS_PROGRESS = 62307; | |
| private static final int LIGHT_CONDITION_CHANGED = 62002; | |
| private static final int LIGHT_CONDITION_ENABLE = 1353; | |
| private static final int LOW_LIGHT_SHOT_SET = 1264; | |
| private static final int MAGICFRAME_SHOT_PROGRESS_RENDERING = 61745; | |
| private static final int MAGIC_SHOT_APPLICABLE_MODES = 62260; | |
| private static final int MAGIC_SHOT_CANCEL = 1423; | |
| private static final int MAGIC_SHOT_CAPTURE_PROGRESS = 62257; | |
| private static final int MAGIC_SHOT_CAPTURING_STOPPED = 62261; | |
| private static final int MAGIC_SHOT_PROCESS_COMPLETE = 62259; | |
| private static final int MAGIC_SHOT_PROCESS_PROGRESS = 62258; | |
| private static final int MAGIC_SHOT_START = 1421; | |
| public static final int MAGIC_SHOT_STATE_BESTPHOTO = 1; | |
| public static final int MAGIC_SHOT_STATE_PICACTION = 8; | |
| public static final int MAGIC_SHOT_STATE_PICBEST = 2; | |
| public static final int MAGIC_SHOT_STATE_PICLEAR = 4; | |
| public static final int MAGIC_SHOT_STATE_PICMOTION = 16; | |
| private static final int MAGIC_SHOT_STOP = 1422; | |
| private static final int METADATA_LENS_POSITION = 62274; | |
| private static final int METADATA_OBJECT_TRACKING_AF = 62275; | |
| private static final int METADATA_SINGLEPAF = 62273; | |
| private static final int MULTIPLE_MAINJPEG_COUNT = 1241; | |
| private static final int MULTI_FRAME_SHOT_CAPTURE = 1262; | |
| private static final int MULTI_FRAME_SHOT_CAPTURING_STOPPED = 61730; | |
| private static final int MULTI_FRAME_SHOT_PROGRESS_POSTPROCESSING = 61731; | |
| private static final int MULTI_FRAME_SHOT_START = 1261; | |
| private static final int MULTI_FRAME_SHOT_TERMINATE = 1263; | |
| private static final int NO_ERROR = 0; | |
| private static final int Notify_FIRST_PREVIEW_FRAME_EVENT = 61809; | |
| public static final int OUTFOCUS_ERR_AF = -1; | |
| public static final int OUTFOCUS_ERR_INF = -2; | |
| public static final int OUTFOCUS_ERR_NONE = 0; | |
| public static final int OUTFOCUS_ERR_SEGMENTATION = -3; | |
| private static final int OUTFOCUS_SHOT_CAPTURE_PROGRESS = 62242; | |
| private static final int OUTFOCUS_SHOT_OPERATION_MODE = 1411; | |
| private static final int OUTFOCUS_SHOT_PROCESS_COMPLETE = 62243; | |
| private static final int OUTFOCUS_SHOT_PROCESS_PROGRESS = 62241; | |
| private static final int PANORAMA_3D_SHOT_CANCEL = 1174; | |
| private static final int PANORAMA_3D_SHOT_FINALIZE = 1173; | |
| private static final int PANORAMA_3D_SHOT_SHUTTER_START = 1175; | |
| private static final int PANORAMA_3D_SHOT_SHUTTER_STOP = 1176; | |
| private static final int PANORAMA_3D_SHOT_START = 1171; | |
| private static final int PANORAMA_3D_SHOT_STOP = 1172; | |
| public static final int PANORAMA_DIRECTION_DOWN = 8; | |
| public static final int PANORAMA_DIRECTION_DOWN_LEFT = 10; | |
| public static final int PANORAMA_DIRECTION_DOWN_RIGHT = 9; | |
| public static final int PANORAMA_DIRECTION_LEFT = 2; | |
| public static final int PANORAMA_DIRECTION_RIGHT = 1; | |
| public static final int PANORAMA_DIRECTION_UP = 4; | |
| public static final int PANORAMA_DIRECTION_UP_LEFT = 6; | |
| public static final int PANORAMA_DIRECTION_UP_RIGHT = 5; | |
| private static final int PANORAMA_SHOT_CANCEL = 1114; | |
| private static final int PANORAMA_SHOT_CAPTURED = 61477; | |
| private static final int PANORAMA_SHOT_CAPTURED_MAX_FRAMES = 61481; | |
| private static final int PANORAMA_SHOT_CAPTURED_NEW = 61475; | |
| private static final int PANORAMA_SHOT_DIR = 61478; | |
| private static final int PANORAMA_SHOT_ERR = 61473; | |
| private static final int PANORAMA_SHOT_FINALIZE = 1113; | |
| private static final int PANORAMA_SHOT_LIVE_PREVIEW_DATA = 61480; | |
| private static final int PANORAMA_SHOT_LOW_RESOLUTION_DATA = 61479; | |
| private static final int PANORAMA_SHOT_MOVE_SLOWLY = 61482; | |
| private static final int PANORAMA_SHOT_PROGRESS_STITCHING = 61476; | |
| private static final int PANORAMA_SHOT_RECT_CENTER_POINT = 61474; | |
| private static final int PANORAMA_SHOT_START = 1111; | |
| private static final int PANORAMA_SHOT_STOP = 1112; | |
| private static final int PANORAMA_SHOT_THUMBNAIL_SIZE = 1110; | |
| private static final int PREVIEW_CALLBACK_SIZE = 1381; | |
| private static final int PRO_SUGGEST_SEND_LAST_PREVIEW_FRAME = 61793; | |
| private static final int RECORDING_TAKE_PICTURE = 1201; | |
| private static final int SAMSUNG_BURST_PANORAMA_SHOT_COMPRESSED_IMAGE = 62097; | |
| private static final int SAMSUNG_SHOT_COMPRESSED_IMAGE = 61953; | |
| private static final int SAMSUNG_SHOT_POSTVIEW_FRAME = 61954; | |
| private static final int SAMSUNG_ULTRA_WIDE_SELFIE_SHOT_COMPRESSED_IMAGE = 62226; | |
| private static final int SECIMAGING_CALLBACK_STRING = 62034; | |
| private static final int SEC_IMAGE_EFFECT_SHOT_CREATING_RESULT_COMPLETED = 62019; | |
| private static final int SEC_IMAGE_EFFECT_SHOT_CREATING_RESULT_PROGRESS = 62018; | |
| private static final int SEC_IMAGE_EFFECT_SHOT_CREATING_RESULT_STARTED = 62017; | |
| private static final int SELFIE_MODE_CHANGE = 1345; | |
| private static final int SELFIE_SHOT_HEADPOSE_DETECTION_SUCCESS = 61543; | |
| private static final int SELFIE_SHOT_PALM_DETECTION_SUCCESS = 61544; | |
| private static final int SELFIE_SHOT_SMILE_DETECTION_SUCCESS = 61542; | |
| private static final int SELFIE_SHOT_WINK_DETECTION_SUCCESS = 61541; | |
| private static final int SET_DISPLAY_ORIENTATION_MIRROR = 1511; | |
| private static final int SET_DUAL_MODE_SYNC = 1373; | |
| private static final int SET_DUAL_TRACKING_COORDINATE = 1375; | |
| private static final int SET_DUAL_TRACKING_MODE = 1376; | |
| private static final int SET_EFFECT_COORDINATE = 1293; | |
| private static final int SET_EFFECT_EXTERNAL_MODE = 1297; | |
| private static final int SET_EFFECT_FILTER = 1291; | |
| private static final int SET_EFFECT_LAYER_ORDER = 1294; | |
| private static final int SET_EFFECT_MODE = 1543; | |
| private static final int SET_EFFECT_OPTION = 1292; | |
| private static final int SET_EFFECT_ORIENTATION = 1296; | |
| private static final int SET_EFFECT_SAVE_AS_FLIPPED = 1298; | |
| private static final int SET_EFFECT_VISIBLE = 1295; | |
| private static final int SET_EFFECT_VISIBLE_FOR_RECORDING = 1352; | |
| private static final int SET_ENABLE_SHUTTER_SOUND = 1541; | |
| private static final int SET_RECORDING_TAKE_PICTURE_CALLBACK = 1202; | |
| private static final int SET_SHUTTER_SOUND_VOLUME_LEVEL = 1542; | |
| private static final int SET_SNAP_MOVIE_INTERVAL = 1304; | |
| private static final int SET_SNAP_MOVIE_MOTION_ENGINE = 1302; | |
| private static final int SET_USE_PREVIEW_CALLBACK = 1382; | |
| private static final int SHOT_3DTOUR = 1048; | |
| private static final int SHOT_3D_PANORAMA = 1020; | |
| private static final int SHOT_3D_SINGLE = 1019; | |
| private static final int SHOT_ACTION = 1010; | |
| private static final int SHOT_ADDME = 1009; | |
| private static final int SHOT_AUTO = 1030; | |
| private static final int SHOT_BEAUTY = 1007; | |
| private static final int SHOT_BEST = 1024; | |
| private static final int SHOT_BESTGROUP = 1025; | |
| private static final int SHOT_BUDDY_PHOTOSHARING = 1018; | |
| private static final int SHOT_BURST = 1017; | |
| private static final int SHOT_CAPTURE_START = 1371; | |
| private static final int SHOT_CAPTURE_STOP = 1372; | |
| private static final int SHOT_CARTOON = 1013; | |
| private static final int SHOT_CONTINUOUS = 1001; | |
| private static final int SHOT_DRAMA = 1031; | |
| private static final int SHOT_DUAL = 1047; | |
| private static final int SHOT_DUAL_PIP = 1044; | |
| private static final int SHOT_FACESHOT = 1016; | |
| private static final int SHOT_FRAME = 1005; | |
| private static final int SHOT_GIFMAKER = 1058; | |
| private static final int SHOT_GOLF = 1028; | |
| private static final int SHOT_HAZE = 1049; | |
| private static final int SHOT_HDR = 1014; | |
| private static final int SHOT_INTERACTIVE = 1062; | |
| private static final int SHOT_INTERVAL = 1060; | |
| private static final int SHOT_MAGIC = 1046; | |
| private static final int SHOT_MAGICFRAME = 1021; | |
| private static final int SHOT_MOSAIC = 1004; | |
| private static final int SHOT_MULTI_FRAME = 1023; | |
| private static final int SHOT_OUTFOCUS = 1045; | |
| private static final int SHOT_PANORAMA = 1002; | |
| private static final int SHOT_PARTY = 1012; | |
| private static final int SHOT_PRO = 1059; | |
| private static final int SHOT_SELF = 1006; | |
| private static final int SHOT_SELFIE = 1055; | |
| private static final int SHOT_SELFIE_ALARM = 1056; | |
| private static final int SHOT_SHARESHOT = 1015; | |
| private static final int SHOT_SINGLE = 1000; | |
| private static final int SHOT_SMILE = 1003; | |
| private static final int SHOT_SNAPMOVIE = 1061; | |
| private static final int SHOT_STOPMOTION = 1011; | |
| private static final int SHOT_THEME = 1032; | |
| private static final int SHOT_VINTAGE = 1008; | |
| private static final int SHUTTER_START = 1115; | |
| private static final int SHUTTER_STOP = 1116; | |
| private static final int SINGLE_SHOT_BRACKET_NEXT_SHOT_READY = 62067; | |
| private static final int SINGLE_SHOT_ERROR = 62066; | |
| private static final int SINGLE_SHOT_RAW_IMAGE_STRING = 62065; | |
| private static final int SMARTSELFIE_BEAUTY_FACE = 1394; | |
| private static final int SMILE_SHOT_DETECTION_REINIT = 1103; | |
| private static final int SMILE_SHOT_DETECTION_START = 1101; | |
| private static final int SMILE_SHOT_DETECTION_STOP = 1102; | |
| private static final int SMILE_SHOT_DETECTION_SUCCESS = 61537; | |
| private static final int SMILE_SHOT_FACE_RECT = 61538; | |
| private static final int SMILE_SHOT_SMILE_RECT = 61539; | |
| private static final int SNAPMOVIE_SHOT_DURATION_PROGRESS = 62321; | |
| private static final int SNAPMOVIE_SHOT_FILESIZE_PROGRESS = 62322; | |
| private static final int SNAPMOVIE_SHOT_MAX_DURATION_REACHED = 62323; | |
| private static final int SNAPMOVIE_SHOT_MAX_FILESIZE_REACHED = 62324; | |
| private static final int SNAP_MOVIE_START = 1303; | |
| private static final int START_COPY_LAST_PREVIEW_DATA = 1281; | |
| private static final int STOP_COPY_LAST_PREVIEW_DATA = 1282; | |
| private static final int SUPER_RESOLUTION_SHOT_SET = 1265; | |
| private static final String TAG = "SecCamera-JNI-Java"; | |
| private static final int THEME_SHOT_CAPTURE = 1343; | |
| private static final int THEME_SHOT_INFO = 1342; | |
| private static final int THEME_SHOT_MASK_SET = 1341; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_BEAUTY_LEVEL = 1468; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_CANCEL = 1463; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_CAPTURED = 62213; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_CAPTURED_MAX_FRAMES = 62217; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_CAPTURED_NEW = 62211; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_CAPTURE_ANGLE = 1467; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_DIR = 62214; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_ERR = 62209; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_LIVE_PREVIEW_DATA = 62216; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_LOW_RESOLUTION_DATA = 62215; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_MOVE_SLOWLY = 62218; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_NEXT_CAPTURE_POSITION = 62224; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_PROGRESS_STITCHING = 62212; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_RECT_CENTER_POINT = 62210; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_SINGLE_CAPTURE_DONE = 62225; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_START = 1461; | |
| private static final int ULTRA_WIDE_SELFIE_SHOT_STOP = 1462; | |
| private AutoExposureCallback mAutoExposureCallback = null; | |
| private AutoFocusCallback mAutoFocusCallback; | |
| private final Object mAutoFocusCallbackLock = new Object(); | |
| private AutoFocusMoveCallback mAutoFocusMoveCallback; | |
| private AutoLowLightDetectionListener mAutoLowLightDetectionListener = null; | |
| private BeautyEventListener mBeautyEventListener = null; | |
| private BurstEventListener mBurstEventListener = null; | |
| private CameraCurrentSettingListener mCameraCurrentSettingListener = null; | |
| private DramaShotEventListener mDramaShotEventListener = null; | |
| private DualEventListener mDualEventListener = null; | |
| private ErrorCallback mErrorCallback; | |
| private EventHandler mEventHandler; | |
| private boolean mFaceDetectionRunning = false; | |
| private FaceDetectionListener mFaceListener; | |
| private GolfShotEventListener mGolfShotEventListener = null; | |
| private HazeRemovalEventListener mHazeRemovalShotEventListener = null; | |
| private HdrEventListener mHdrEventListener = null; | |
| private InteractiveShotEventListener mInteractiveShotEventListener = null; | |
| private PictureCallback mJpegCallback; | |
| private LightConditionChangedListener mLightConditionChangedListener = null; | |
| private MultiFrameEventListener mMultiFrameEventListener = null; | |
| private long mNativeContext; | |
| private ObjectTrackingAFCallback mObjectTrackingAFCallback = null; | |
| private OnAEResultListener mOnAEResultListener = null; | |
| private OnActionShotEventListener mOnActionShotEventListener = null; | |
| private OnAutoLowLightDetectionListener mOnAutoLowLightDetectionListener = null; | |
| private OnBeautyShotEventListener mOnBeautyShotEventListener = null; | |
| private OnBurstShotEventListener mOnBurstShotEventListener = null; | |
| private OnCameraCurrentSettingListener mOnCameraCurrentSettingListener = null; | |
| private OnCartoonShotEventListener mOnCartoonShotEventListener = null; | |
| private OnContinuousShotEventListener mOnContinuousShotEventListener = null; | |
| private OnDramaShotEventListener mOnDramaShotEventListener = null; | |
| private OnDualEventListener mOnDualEventListener = null; | |
| private OnGolfShotEventListener mOnGolfShotEventListener = null; | |
| private OnHDRShotEventListener mOnHDRShotEventListener = null; | |
| private OnHazeRemovalEventListener mOnHazeRemovalShotEventListener = null; | |
| private OnLightConditionChangedListener mOnLightConditionChangedListener = null; | |
| private OnMagicShotModeEventListener mOnMagicShotModeEventListener = null; | |
| private OnMultiFrameShotEventListener mOnMultiFrameShotEventListener = null; | |
| private OnNotifyFirstPreviewFrameEventListener mOnNotifyFirstPreviewFrameEventListener = null; | |
| private OnObjectTrackingMsgListener mOnObjectTrackingMsgListener = null; | |
| private OnOutFocusShotModeEventListener mOnOutFocusShotModeEventListener = null; | |
| private OnPafResultListener mOnPafResultListener = null; | |
| private OnPanoramaEventListener mOnPanoramaEventListener = null; | |
| private OnSecImageEffectListner mOnSecImageEffectListner = null; | |
| private OnSecImagingEventListener mOnSecImagingEventListener = null; | |
| private OnSelfieShotDetectionSuccessListener mOnSelfieShotDetectionSuccessListener = null; | |
| private OnSmileShotDetectionSuccessListener mOnSmileShotDetectionSuccessListener = null; | |
| private OnSnapMovieShotModeEventListener mOnSnapMovieShotModeEventListener = null; | |
| private OnUltraWideSelfieEventListener mOnUltraWideSelfieEventListener = null; | |
| private boolean mOneShot; | |
| private PanoramaEventListener mPanoramaEventListener = null; | |
| private PhaseAFCallback mPhaseAFCallback = null; | |
| private PictureCallback mPostviewCallback; | |
| private PreviewCallback mPreviewCallback; | |
| private PictureCallback mRawImageCallback; | |
| private SecImageEffectListner mSecImageEffectListner = null; | |
| private SecImagingEventListener mSecImagingEventListener = null; | |
| private SelectiveFocusEventListener mSelectiveFocusEventListener = null; | |
| private SelfieDetectionListener mSelfieDetectionListener = null; | |
| private ShotAndMoreEventListener mShotAndMoreEventListener = null; | |
| private ShutterCallback mShutterCallback; | |
| private UltraWideSelfieEventListener mUltraWideSelfieEventListener = null; | |
| private boolean mUsingPreviewAllocation; | |
| private boolean mWithBuffer; | |
| private OnZoomChangeListener mZoomListener; | |
| static | |
| { | |
| System.loadLibrary("seccamera_jni"); | |
| } | |
| SecCamera() {} | |
| private SecCamera(int paramInt1, int paramInt2) | |
| { | |
| paramInt1 = cameraInitVersion(paramInt1, paramInt2, 100, null, true); | |
| if (checkInitErrors(paramInt1)) | |
| { | |
| switch (paramInt1) | |
| { | |
| default: | |
| throw new RuntimeException("Unknown camera error"); | |
| case -13: | |
| throw new RuntimeException("Fail to connect to camera service"); | |
| case -19: | |
| throw new RuntimeException("Camera initialization failed"); | |
| case -38: | |
| throw new RuntimeException("Camera initialization failed because some methods are not implemented"); | |
| case -95: | |
| throw new RuntimeException("Camera initialization failed because the hal version is not supported by this device"); | |
| case -22: | |
| throw new RuntimeException("Camera initialization failed because the input arugments are invalid"); | |
| case -16: | |
| throw new RuntimeException("Camera initialization failed because the camera device was already opened"); | |
| } | |
| throw new RuntimeException("Camera initialization failed because the max number of camera devices were already opened"); | |
| } | |
| } | |
| SecCamera(int paramInt1, int paramInt2, Looper paramLooper, boolean paramBoolean) | |
| { | |
| paramInt1 = cameraInitNormal(paramInt1, paramInt2, paramLooper, paramBoolean); | |
| if (checkInitErrors(paramInt1)) | |
| { | |
| switch (paramInt1) | |
| { | |
| default: | |
| throw new RuntimeException("Unknown camera error"); | |
| case -13: | |
| throw new RuntimeException("Fail to connect to camera service"); | |
| } | |
| throw new RuntimeException("Camera initialization failed"); | |
| } | |
| } | |
| private final native void _addCallbackBuffer(byte[] paramArrayOfByte, int paramInt); | |
| private final native boolean _enableShutterSound(boolean paramBoolean); | |
| private static native void _getCameraInfo(int paramInt, CameraInfo paramCameraInfo); | |
| private native void _setOutputFile(FileDescriptor paramFileDescriptor); | |
| private native void _setOutputFileArray(FileDescriptor[] paramArrayOfFileDescriptor, int paramInt); | |
| private final native void _startFaceDetection(int paramInt); | |
| private final native void _stopFaceDetection(); | |
| private final native void _stopPreview(); | |
| private final void addCallbackBuffer(byte[] paramArrayOfByte, int paramInt) | |
| { | |
| if ((paramInt != 16) && (paramInt != 128)) { | |
| throw new IllegalArgumentException("Unsupported message type: " + paramInt); | |
| } | |
| _addCallbackBuffer(paramArrayOfByte, paramInt); | |
| } | |
| private int cameraInitNormal(int paramInt1, int paramInt2, Looper paramLooper, boolean paramBoolean) | |
| { | |
| return cameraInitVersion(paramInt1, -2, paramInt2, paramLooper, paramBoolean); | |
| } | |
| private int cameraInitVersion(int paramInt1, int paramInt2, int paramInt3, Looper paramLooper, boolean paramBoolean) | |
| { | |
| this.mShutterCallback = null; | |
| this.mRawImageCallback = null; | |
| this.mJpegCallback = null; | |
| this.mPreviewCallback = null; | |
| this.mPostviewCallback = null; | |
| this.mUsingPreviewAllocation = false; | |
| this.mZoomListener = null; | |
| if (paramLooper != null) { | |
| this.mEventHandler = new EventHandler(this, paramLooper); | |
| } | |
| for (;;) | |
| { | |
| String str = ActivityThread.currentPackageName(); | |
| paramLooper = str; | |
| if (Process.myUid() == 1000) | |
| { | |
| paramLooper = str; | |
| if (str == null) { | |
| paramLooper = "android"; | |
| } | |
| } | |
| paramInt1 = native_setup(new WeakReference(this), paramInt1, paramInt2, paramLooper, paramInt3); | |
| if ((paramInt1 == 0) && (paramBoolean)) { | |
| native_sendcommand(1508, 0, 0); | |
| } | |
| return paramInt1; | |
| paramLooper = Looper.myLooper(); | |
| if (paramLooper != null) | |
| { | |
| this.mEventHandler = new EventHandler(this, paramLooper); | |
| } | |
| else | |
| { | |
| paramLooper = Looper.getMainLooper(); | |
| if (paramLooper != null) { | |
| this.mEventHandler = new EventHandler(this, paramLooper); | |
| } else { | |
| this.mEventHandler = null; | |
| } | |
| } | |
| } | |
| } | |
| public static boolean checkInitErrors(int paramInt) | |
| { | |
| return paramInt != 0; | |
| } | |
| private native void enableFocusMoveCallback(int paramInt); | |
| public static void getCameraInfo(int paramInt, CameraInfo paramCameraInfo) | |
| { | |
| _getCameraInfo(paramInt, paramCameraInfo); | |
| IAudioService localIAudioService = IAudioService.Stub.asInterface(ServiceManager.getService("audio")); | |
| if (localIAudioService != null) {} | |
| try | |
| { | |
| if (localIAudioService.isCameraSoundForced()) { | |
| paramCameraInfo.canDisableShutterSound = false; | |
| } | |
| return; | |
| } | |
| catch (RemoteException paramCameraInfo) | |
| { | |
| Log.e("SecCamera-JNI-Java", "Audio service is unavailable for queries"); | |
| } | |
| } | |
| public static Parameters getEmptyParameters() | |
| { | |
| SecCamera localSecCamera = new SecCamera(); | |
| localSecCamera.getClass(); | |
| return new Parameters(null); | |
| } | |
| public static native int getNumberOfCameras(); | |
| public static Parameters getParametersCopy(Parameters paramParameters) | |
| { | |
| if (paramParameters == null) { | |
| throw new NullPointerException("parameters must not be null"); | |
| } | |
| Object localObject = paramParameters.getOuter(); | |
| localObject.getClass(); | |
| localObject = new Parameters((SecCamera)localObject, null); | |
| ((Parameters)localObject).copyFrom(paramParameters); | |
| return (Parameters)localObject; | |
| } | |
| private final native void native_autoFocus(); | |
| private final native void native_cancelAutoFocus(); | |
| private final native String native_getParameters(); | |
| private final native void native_release(); | |
| private final native void native_setParameters(String paramString); | |
| private final native int native_setup(Object paramObject, int paramInt1, int paramInt2, String paramString, int paramInt3); | |
| private final native void native_takePicture(int paramInt); | |
| public static SecCamera open() | |
| { | |
| Camera.checkCameraEnabled(); | |
| int j = getNumberOfCameras(); | |
| CameraInfo localCameraInfo = new CameraInfo(); | |
| int i = 0; | |
| while (i < j) | |
| { | |
| getCameraInfo(i, localCameraInfo); | |
| if (localCameraInfo.facing == 0) { | |
| return new SecCamera(i, 100, null, true); | |
| } | |
| i += 1; | |
| } | |
| return null; | |
| } | |
| public static SecCamera open(int paramInt) | |
| { | |
| Log.e("SecCamera-JNI-Java", "SecCamera.open()"); | |
| Camera.checkCameraEnabled(); | |
| return new SecCamera(paramInt, 100, null, true); | |
| } | |
| public static SecCamera open(int paramInt1, int paramInt2) | |
| { | |
| Log.e("SecCamera-JNI-Java", "SecCamera.open()"); | |
| Camera.checkCameraEnabled(); | |
| return new SecCamera(paramInt1, paramInt2, null, true); | |
| } | |
| public static SecCamera open(int paramInt1, int paramInt2, Looper paramLooper) | |
| { | |
| Log.e("SecCamera-JNI-Java", "SecCamera.open()"); | |
| Camera.checkCameraEnabled(); | |
| return new SecCamera(paramInt1, paramInt2, paramLooper, true); | |
| } | |
| public static SecCamera open(int paramInt1, int paramInt2, Looper paramLooper, boolean paramBoolean) | |
| { | |
| Log.e("SecCamera-JNI-Java", "SecCamera.open()"); | |
| Camera.checkCameraEnabled(); | |
| return new SecCamera(paramInt1, paramInt2, paramLooper, paramBoolean); | |
| } | |
| public static SecCamera open(int paramInt, Looper paramLooper) | |
| { | |
| Log.e("SecCamera-JNI-Java", "SecCamera.open()"); | |
| Camera.checkCameraEnabled(); | |
| return new SecCamera(paramInt, 100, paramLooper, true); | |
| } | |
| public static SecCamera openLegacy(int paramInt1, int paramInt2) | |
| { | |
| if (paramInt2 < 256) { | |
| throw new IllegalArgumentException("Invalid HAL version " + paramInt2); | |
| } | |
| return new SecCamera(paramInt1, paramInt2); | |
| } | |
| public static SecCamera openUninitialized() | |
| { | |
| return new SecCamera(); | |
| } | |
| private static void postEventFromNative(Object paramObject1, int paramInt1, int paramInt2, int paramInt3, Object paramObject2) | |
| { | |
| paramObject1 = (SecCamera)((WeakReference)paramObject1).get(); | |
| if (paramObject1 == null) { | |
| return; | |
| } | |
| if (((SecCamera)paramObject1).mEventHandler != null) | |
| { | |
| paramObject2 = ((SecCamera)paramObject1).mEventHandler.obtainMessage(paramInt1, paramInt2, paramInt3, paramObject2); | |
| ((SecCamera)paramObject1).mEventHandler.sendMessage((Message)paramObject2); | |
| return; | |
| } | |
| Log.e("SecCamera-JNI-Java", "mEventHandler is null"); | |
| } | |
| private final native void setHasPreviewCallback(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3); | |
| private final native void setPreviewCallbackSurface(Surface paramSurface); | |
| public final void addCallbackBuffer(byte[] paramArrayOfByte) | |
| { | |
| _addCallbackBuffer(paramArrayOfByte, 16); | |
| } | |
| public final void addRawImageCallbackBuffer(byte[] paramArrayOfByte) | |
| { | |
| addCallbackBuffer(paramArrayOfByte, 128); | |
| } | |
| public final void autoFocus(AutoFocusCallback paramAutoFocusCallback) | |
| { | |
| synchronized (this.mAutoFocusCallbackLock) | |
| { | |
| this.mAutoFocusCallback = paramAutoFocusCallback; | |
| native_autoFocus(); | |
| return; | |
| } | |
| } | |
| public int cameraInitUnspecified(int paramInt) | |
| { | |
| return cameraInitVersion(paramInt, -1, 100, null, true); | |
| } | |
| public final void cancelAutoFocus() | |
| { | |
| native_cancelAutoFocus(); | |
| this.mEventHandler.removeMessages(4); | |
| } | |
| public void cancelDramaShot() | |
| { | |
| native_sendcommand(1333, 0, 0); | |
| } | |
| public void cancelMagicShot() | |
| { | |
| native_sendcommand(1423, 0, 0); | |
| } | |
| public void cancelPanorama() | |
| { | |
| native_sendcommand(1114, 0, 0); | |
| } | |
| @Deprecated | |
| public void cancelSeriesActionShot() | |
| { | |
| native_sendcommand(1134, 0, 0); | |
| } | |
| public void cancelTakePicture() | |
| { | |
| native_sendcommand(1472, 0, 0); | |
| } | |
| public void cancelUltraWideSelfie() | |
| { | |
| native_sendcommand(1463, 0, 0); | |
| } | |
| public void captureBurstShot() | |
| { | |
| native_sendcommand(1162, 0, 0); | |
| } | |
| public void captureBurstShot(int paramInt) | |
| { | |
| native_sendcommand(1162, paramInt, 0); | |
| } | |
| public final Allocation createPreviewAllocation(RenderScript paramRenderScript, int paramInt) | |
| throws RSIllegalArgumentException | |
| { | |
| Size localSize = getParameters().getPreviewSize(); | |
| Type.Builder localBuilder = new Type.Builder(paramRenderScript, Element.createPixel(paramRenderScript, Element.DataType.UNSIGNED_8, | |
| Element.DataKind.PIXEL_YUV)); | |
| localBuilder.setYuvFormat(842094169); | |
| localBuilder.setX(localSize.width); | |
| localBuilder.setY(localSize.height); | |
| return Allocation.createTyped(paramRenderScript, localBuilder.create(), paramInt | 0x20); | |
| } | |
| public void enableCurrentSet(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1643, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1643, 0, 0); | |
| } | |
| public void enableDualTrackingCoordinate(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1375, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1375, 0, 0); | |
| } | |
| public void enableDualTrackingMode(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1376, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1376, 0, 0); | |
| } | |
| public void enableLightConditionDetect(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1353, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1353, 0, 0); | |
| } | |
| public void enablePafReuslt(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1644, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1644, 0, 0); | |
| } | |
| public void enablePanoramaShutterSound(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1115, 0, 0); | |
| return; | |
| } | |
| native_sendcommand(1116, 0, 0); | |
| } | |
| public final boolean enableShutterSound(boolean paramBoolean) | |
| { | |
| if (!paramBoolean) | |
| { | |
| IAudioService localIAudioService = IAudioService.Stub.asInterface(ServiceManager.getService("audio")); | |
| if (localIAudioService != null) { | |
| try | |
| { | |
| boolean bool = localIAudioService.isCameraSoundForced(); | |
| if (bool) { | |
| return false; | |
| } | |
| } | |
| catch (RemoteException localRemoteException) | |
| { | |
| Log.e("SecCamera-JNI-Java", "Audio service is unavailable for queries"); | |
| } | |
| } | |
| } | |
| return _enableShutterSound(paramBoolean); | |
| } | |
| protected void finalize() | |
| { | |
| release(); | |
| } | |
| @Deprecated | |
| public void finishActionShot() | |
| { | |
| native_sendcommand(1136, 0, 0); | |
| } | |
| public String flatten(HashMap<String, String> paramHashMap) | |
| { | |
| if (paramHashMap != null) {} | |
| for (;;) | |
| { | |
| StringBuilder localStringBuilder; | |
| try | |
| { | |
| if (paramHashMap.size() == 0) | |
| { | |
| paramHashMap = ""; | |
| return paramHashMap; | |
| } | |
| localStringBuilder = new StringBuilder(128); | |
| Iterator localIterator = paramHashMap.keySet().iterator(); | |
| if (localIterator.hasNext()) | |
| { | |
| String str = (String)localIterator.next(); | |
| localStringBuilder.append(str); | |
| localStringBuilder.append("="); | |
| localStringBuilder.append((String)paramHashMap.get(str)); | |
| localStringBuilder.append(";"); | |
| continue; | |
| } | |
| localStringBuilder.deleteCharAt(localStringBuilder.length() - 1); | |
| } | |
| finally {} | |
| paramHashMap = localStringBuilder.toString(); | |
| } | |
| } | |
| public void flipFrontCapturedImage(boolean paramBoolean, int paramInt) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1510, 1, 0); | |
| native_sendcommand(1511, paramInt, 1); | |
| return; | |
| } | |
| native_sendcommand(1510, 0, 0); | |
| native_sendcommand(1511, paramInt, 0); | |
| } | |
| public void getBurstShotString() | |
| { | |
| native_sendcommand(1161, 0, 0); | |
| } | |
| public Parameters getParameters() | |
| { | |
| Parameters localParameters = new Parameters(null); | |
| localParameters.unflatten(native_getParameters()); | |
| return localParameters; | |
| } | |
| @Deprecated | |
| public void initializeActionShot() | |
| { | |
| native_sendcommand(1131, 0, 0); | |
| } | |
| public final native void lock(); | |
| public final native void native_sendcommand(int paramInt1, int paramInt2, int paramInt3); | |
| public final native boolean previewEnabled(); | |
| public final native void reconnect() | |
| throws IOException; | |
| public final void release() | |
| { | |
| native_release(); | |
| if (this.mEventHandler != null) { | |
| this.mEventHandler.removeCallbacksAndMessages(null); | |
| } | |
| this.mFaceDetectionRunning = false; | |
| } | |
| public void saveGolfShot(int paramInt) | |
| { | |
| native_sendcommand(1313, paramInt, 0); | |
| } | |
| public void sendCommand(int paramInt1, int paramInt2, int paramInt3) | |
| { | |
| native_sendcommand(paramInt1, paramInt2, paramInt3); | |
| } | |
| public void sendOrientaionInfotoHAL(int paramInt) | |
| { | |
| native_sendcommand(1521, paramInt, 0); | |
| } | |
| public void setAutoExposureCallback(AutoExposureCallback paramAutoExposureCallback) | |
| { | |
| this.mAutoExposureCallback = paramAutoExposureCallback; | |
| } | |
| public final void setAutoFocusCb(AutoFocusCallback paramAutoFocusCallback) | |
| { | |
| synchronized (this.mAutoFocusCallbackLock) | |
| { | |
| this.mAutoFocusCallback = paramAutoFocusCallback; | |
| return; | |
| } | |
| } | |
| public void setAutoFocusMoveCallback(AutoFocusMoveCallback paramAutoFocusMoveCallback) | |
| { | |
| this.mAutoFocusMoveCallback = paramAutoFocusMoveCallback; | |
| if (this.mAutoFocusMoveCallback != null) {} | |
| for (int i = 1;; i = 0) | |
| { | |
| enableFocusMoveCallback(i); | |
| return; | |
| } | |
| } | |
| public void setAutoLowLight(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1351, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1351, 0, 0); | |
| } | |
| public void setAutoLowLightDetectionListener(AutoLowLightDetectionListener paramAutoLowLightDetectionListener) | |
| { | |
| this.mAutoLowLightDetectionListener = paramAutoLowLightDetectionListener; | |
| } | |
| public void setBeautyEffect(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1182, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1182, 0, 0); | |
| } | |
| public void setBeautyEventListener(BeautyEventListener paramBeautyEventListener) | |
| { | |
| this.mBeautyEventListener = paramBeautyEventListener; | |
| } | |
| public void setBeautyLevel(boolean paramBoolean, int paramInt) | |
| { | |
| if (paramBoolean) { | |
| native_sendcommand(1182, 1, 0); | |
| } | |
| for (;;) | |
| { | |
| native_sendcommand(1181, paramInt, 0); | |
| return; | |
| native_sendcommand(1182, 0, 0); | |
| } | |
| } | |
| public void setBeautyShotManualMode(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1183, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1183, 0, 0); | |
| } | |
| public void setBurstEventListener(BurstEventListener paramBurstEventListener) | |
| { | |
| this.mBurstEventListener = paramBurstEventListener; | |
| } | |
| public void setBurstShot(int paramInt1, int paramInt2, int paramInt3, int paramInt4) | |
| { | |
| native_sendcommand(1167, paramInt1, paramInt2); | |
| native_sendcommand(1166, paramInt3, paramInt4); | |
| } | |
| @Deprecated | |
| public void setBurstShotStoring() | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to getBurstShotStoring"); | |
| getBurstShotString(); | |
| } | |
| public void setCameraCurrentSettingListener(CameraCurrentSettingListener paramCameraCurrentSettingListener) | |
| { | |
| this.mCameraCurrentSettingListener = paramCameraCurrentSettingListener; | |
| } | |
| @Deprecated | |
| public void setDefaultIMEI(int paramInt) | |
| { | |
| native_sendcommand(1507, paramInt, 0); | |
| } | |
| public final native void setDisplayOrientation(int paramInt); | |
| public void setDistortionEffectsInfo(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1464, paramInt1, paramInt2); | |
| } | |
| public void setDistortionEffectsMode(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1465, paramInt1, paramInt2); | |
| } | |
| public void setDramaShotEventListener(DramaShotEventListener paramDramaShotEventListener) | |
| { | |
| Log.i("SecCamera-JNI-Java", "setDramaShotEventListener"); | |
| this.mDramaShotEventListener = paramDramaShotEventListener; | |
| } | |
| public void setDramaShotMode(int paramInt) | |
| { | |
| native_sendcommand(1334, paramInt, 0); | |
| } | |
| public void setDualEffectCoordinate(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1293, paramInt1, paramInt2); | |
| } | |
| public void setDualEffectLayerOrder(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1294, 0, 0); | |
| return; | |
| } | |
| native_sendcommand(1294, 1, 0); | |
| } | |
| public void setDualEventListener(DualEventListener paramDualEventListener) | |
| { | |
| this.mDualEventListener = paramDualEventListener; | |
| } | |
| public void setDualShotMode(int paramInt) | |
| { | |
| native_sendcommand(1373, paramInt, 0); | |
| } | |
| @Deprecated | |
| public void setDualTrackingCoordinate(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to enableDualTrackingCoordinate"); | |
| enableDualTrackingCoordinate(paramBoolean); | |
| } | |
| @Deprecated | |
| public void setDualTrackingMode(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to enableDualTrackingMode"); | |
| enableDualTrackingMode(paramBoolean); | |
| } | |
| @Deprecated | |
| public void setEffect(int paramInt) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setSecImagingEffect"); | |
| setSecImagingEffect(paramInt); | |
| } | |
| @Deprecated | |
| public void setEffect(String paramString) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setSecImagingEffect"); | |
| setSecImagingEffect(paramString); | |
| } | |
| @Deprecated | |
| public void setEffectCoordinate(int paramInt1, int paramInt2) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setDualEffectCoordinate"); | |
| setDualEffectCoordinate(paramInt1, paramInt2); | |
| } | |
| @Deprecated | |
| public void setEffectLayerOrder(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setDualEffectLayerOrder"); | |
| setDualEffectLayerOrder(paramBoolean); | |
| } | |
| public void setEffectMode(int paramInt) | |
| { | |
| native_sendcommand(1543, paramInt, 0); | |
| } | |
| public void setEffectOrientation(int paramInt) | |
| { | |
| native_sendcommand(1296, paramInt, 0); | |
| } | |
| public void setEffectSaveAsFlipped(int paramInt) | |
| { | |
| native_sendcommand(1298, paramInt, 0); | |
| } | |
| public void setEffectVisible(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1295, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1295, 0, 0); | |
| } | |
| @Deprecated | |
| public void setEffectVisibleForRecording(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setSecImagingEffectVisibleForRecording"); | |
| setSecImagingEffectVisibleForRecording(paramBoolean); | |
| } | |
| public final void setErrorCallback(ErrorCallback paramErrorCallback) | |
| { | |
| this.mErrorCallback = paramErrorCallback; | |
| } | |
| @Deprecated | |
| public void setExternalEffect(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setExternalSecImagingEffect"); | |
| setExternalSecImagingEffect(paramBoolean); | |
| } | |
| public void setExternalSecImagingEffect(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1297, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1297, 0, 0); | |
| } | |
| public void setExternalShootingModes(HashMap<String, String> paramHashMap) | |
| { | |
| try | |
| { | |
| setGenericParameters("[external_shooting_modes_map]" + flatten(paramHashMap)); | |
| return; | |
| } | |
| finally | |
| { | |
| paramHashMap = finally; | |
| throw paramHashMap; | |
| } | |
| } | |
| public void setEyeEnlargeLevel(int paramInt) | |
| { | |
| native_sendcommand(1185, paramInt, 0); | |
| } | |
| public final void setFaceDetectionListener(FaceDetectionListener paramFaceDetectionListener) | |
| { | |
| this.mFaceListener = paramFaceDetectionListener; | |
| } | |
| @Deprecated | |
| public void setFaceRetouchLevel(int paramInt) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace setBeautyLevel with live value. default is false"); | |
| setBeautyLevel(false, paramInt); | |
| } | |
| @Deprecated | |
| public void setFrontSensorMirror(boolean paramBoolean, int paramInt) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to flipFrontCapturedImage"); | |
| flipFrontCapturedImage(paramBoolean, paramInt); | |
| } | |
| public void setGenericParameters(String paramString) | |
| { | |
| paramString = "Generic-Param=1;" + paramString + "=0;"; | |
| Log.d("SecCamera-JNI-Java", "setGenericParameters : " + paramString); | |
| native_setParameters(paramString); | |
| } | |
| public void setGolfShotEventListener(GolfShotEventListener paramGolfShotEventListener) | |
| { | |
| this.mGolfShotEventListener = paramGolfShotEventListener; | |
| } | |
| public void setHazeRemovalShotEventListener(HazeRemovalEventListener paramHazeRemovalEventListener) | |
| { | |
| Log.i("SecCamera-JNI-Java", "setHazeRemovalShotEventListener"); | |
| this.mHazeRemovalShotEventListener = paramHazeRemovalEventListener; | |
| } | |
| public void setHdrEventListener(HdrEventListener paramHdrEventListener) | |
| { | |
| this.mHdrEventListener = paramHdrEventListener; | |
| } | |
| public void setHdrSavingMode(int paramInt) | |
| { | |
| native_sendcommand(1273, paramInt, 0); | |
| } | |
| public void setInteractiveEventListener(InteractiveShotEventListener paramInteractiveShotEventListener) | |
| { | |
| this.mInteractiveShotEventListener = paramInteractiveShotEventListener; | |
| } | |
| public void setLightConditionChangedListener(LightConditionChangedListener paramLightConditionChangedListener) | |
| { | |
| this.mLightConditionChangedListener = paramLightConditionChangedListener; | |
| } | |
| public void setLowLightShot(int paramInt) | |
| { | |
| native_sendcommand(1264, paramInt, 0); | |
| } | |
| public void setMultiFrameEventListener(MultiFrameEventListener paramMultiFrameEventListener) | |
| { | |
| Log.i("SecCamera-JNI-Java", "setMultiFrameShotEventListener"); | |
| this.mMultiFrameEventListener = paramMultiFrameEventListener; | |
| } | |
| public void setObjectTrackingAFCallback(ObjectTrackingAFCallback paramObjectTrackingAFCallback) | |
| { | |
| this.mObjectTrackingAFCallback = paramObjectTrackingAFCallback; | |
| } | |
| public void setObjectTrackingAFPosition(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1503, paramInt1, paramInt2); | |
| } | |
| @Deprecated | |
| public void setObjectTrackingMsgListener(OnObjectTrackingMsgListener paramOnObjectTrackingMsgListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnObjectTrackingMsgListener = paramOnObjectTrackingMsgListener; | |
| } | |
| @Deprecated | |
| public void setOnAEResultListener(OnAEResultListener paramOnAEResultListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnAEResultListener = paramOnAEResultListener; | |
| } | |
| @Deprecated | |
| public void setOnActionShotEventListener(OnActionShotEventListener paramOnActionShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnActionShotEventListener = paramOnActionShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnAutoLowLightDetectionListener(OnAutoLowLightDetectionListener paramOnAutoLowLightDetectionListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnAutoLowLightDetectionListener = paramOnAutoLowLightDetectionListener; | |
| } | |
| @Deprecated | |
| public void setOnBeautyShotEventListener(OnBeautyShotEventListener paramOnBeautyShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnBeautyShotEventListener = paramOnBeautyShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnBurstShotEventListener(OnBurstShotEventListener paramOnBurstShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnBurstShotEventListener = paramOnBurstShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnCameraCurrentSettingListener(OnCameraCurrentSettingListener paramOnCameraCurrentSettingListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnCameraCurrentSettingListener = paramOnCameraCurrentSettingListener; | |
| } | |
| @Deprecated | |
| public void setOnCartoonShotEventListener(OnCartoonShotEventListener paramOnCartoonShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnCartoonShotEventListener = paramOnCartoonShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnContinuousShotEventListener(OnContinuousShotEventListener paramOnContinuousShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnContinuousShotEventListener = paramOnContinuousShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnDramaShotEventListener(OnDramaShotEventListener paramOnDramaShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnDramaShotEventListener = paramOnDramaShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnDualEventListener(OnDualEventListener paramOnDualEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnDualEventListener = paramOnDualEventListener; | |
| } | |
| @Deprecated | |
| public void setOnGolfShotEventListener(OnGolfShotEventListener paramOnGolfShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnGolfShotEventListener = paramOnGolfShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnHDRShotEventListener(OnHDRShotEventListener paramOnHDRShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnHDRShotEventListener = paramOnHDRShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnHazeRemovalShotEventListener(OnHazeRemovalEventListener paramOnHazeRemovalEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnHazeRemovalShotEventListener = paramOnHazeRemovalEventListener; | |
| } | |
| @Deprecated | |
| public void setOnLightConditionChangedListener(OnLightConditionChangedListener paramOnLightConditionChangedListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnLightConditionChangedListener = paramOnLightConditionChangedListener; | |
| } | |
| @Deprecated | |
| public void setOnMagicShotModeEventListener(OnMagicShotModeEventListener paramOnMagicShotModeEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnMagicShotModeEventListener = paramOnMagicShotModeEventListener; | |
| } | |
| @Deprecated | |
| public void setOnMultiFrameShotEventListener(OnMultiFrameShotEventListener paramOnMultiFrameShotEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnMultiFrameShotEventListener = paramOnMultiFrameShotEventListener; | |
| } | |
| @Deprecated | |
| public void setOnNotifyFirstPreviewFrameEventListener(OnNotifyFirstPreviewFrameEventListener paramOnNotifyFirstPreviewFrameEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnNotifyFirstPreviewFrameEventListener = paramOnNotifyFirstPreviewFrameEventListener; | |
| } | |
| @Deprecated | |
| public void setOnOutFocusShotModeEventListener(OnOutFocusShotModeEventListener paramOnOutFocusShotModeEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnOutFocusShotModeEventListener = paramOnOutFocusShotModeEventListener; | |
| } | |
| @Deprecated | |
| public void setOnPafResultListener(OnPafResultListener paramOnPafResultListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnPafResultListener = paramOnPafResultListener; | |
| } | |
| @Deprecated | |
| public void setOnPanoramaEventListener(OnPanoramaEventListener paramOnPanoramaEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnPanoramaEventListener = paramOnPanoramaEventListener; | |
| } | |
| @Deprecated | |
| public void setOnSecImageEffectListner(OnSecImageEffectListner paramOnSecImageEffectListner) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnSecImageEffectListner = paramOnSecImageEffectListner; | |
| } | |
| @Deprecated | |
| public void setOnSecImagingEventListener(OnSecImagingEventListener paramOnSecImagingEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnSecImagingEventListener = paramOnSecImagingEventListener; | |
| } | |
| @Deprecated | |
| public void setOnSelfieShotDetectionSuccessListener(OnSelfieShotDetectionSuccessListener paramOnSelfieShotDetectionSuccessListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnSelfieShotDetectionSuccessListener = paramOnSelfieShotDetectionSuccessListener; | |
| } | |
| @Deprecated | |
| public void setOnSmileShotDetectionSuccessListener(OnSmileShotDetectionSuccessListener paramOnSmileShotDetectionSuccessListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnSmileShotDetectionSuccessListener = paramOnSmileShotDetectionSuccessListener; | |
| } | |
| @Deprecated | |
| public void setOnSnapMovieShotModeEventListener(OnSnapMovieShotModeEventListener paramOnSnapMovieShotModeEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnSnapMovieShotModeEventListener = paramOnSnapMovieShotModeEventListener; | |
| } | |
| @Deprecated | |
| public void setOnUltraWideSelfieEventListener(OnUltraWideSelfieEventListener paramOnUltraWideSelfieEventListener) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated."); | |
| this.mOnUltraWideSelfieEventListener = paramOnUltraWideSelfieEventListener; | |
| } | |
| public final void setOneShotPreviewCallback(PreviewCallback paramPreviewCallback) | |
| { | |
| boolean bool = true; | |
| this.mPreviewCallback = paramPreviewCallback; | |
| this.mOneShot = true; | |
| this.mWithBuffer = false; | |
| if (paramPreviewCallback != null) { | |
| this.mUsingPreviewAllocation = false; | |
| } | |
| if (paramPreviewCallback != null) {} | |
| for (;;) | |
| { | |
| setHasPreviewCallback(bool, false, false); | |
| return; | |
| bool = false; | |
| } | |
| } | |
| public void setOutputFile(String paramString) | |
| throws IOException | |
| { | |
| paramString = new RandomAccessFile(paramString, "rw"); | |
| try | |
| { | |
| _setOutputFile(paramString.getFD()); | |
| return; | |
| } | |
| finally | |
| { | |
| paramString.close(); | |
| } | |
| } | |
| public void setOutputFileArray(String[] paramArrayOfString) | |
| throws IOException | |
| { | |
| ArrayList localArrayList1 = new ArrayList(); | |
| ArrayList localArrayList2 = new ArrayList(); | |
| int j = paramArrayOfString.length; | |
| int i = 0; | |
| for (;;) | |
| { | |
| if (i < j) | |
| { | |
| localArrayList1.add(new RandomAccessFile(paramArrayOfString[i], "rw")); | |
| try | |
| { | |
| localArrayList2.add(((RandomAccessFile)localArrayList1.get(i)).getFD()); | |
| i += 1; | |
| } | |
| catch (Exception localException) | |
| { | |
| for (;;) | |
| { | |
| Log.e("SecCamera-JNI-Java", "setOutputFileArray :", localException); | |
| ((RandomAccessFile)localArrayList1.get(i)).close(); | |
| } | |
| } | |
| } | |
| } | |
| _setOutputFileArray((FileDescriptor[])localArrayList2.toArray(new FileDescriptor[localArrayList2.size()]), j); | |
| i = 0; | |
| while (i < j) | |
| { | |
| ((RandomAccessFile)localArrayList1.get(i)).close(); | |
| i += 1; | |
| } | |
| } | |
| public void setPanoramaEventListener(PanoramaEventListener paramPanoramaEventListener) | |
| { | |
| this.mPanoramaEventListener = paramPanoramaEventListener; | |
| } | |
| public void setPanoramaThumbnailSize(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1110, paramInt1, paramInt2); | |
| } | |
| public void setParameters(Parameters paramParameters) | |
| { | |
| try | |
| { | |
| if (this.mUsingPreviewAllocation) | |
| { | |
| Size localSize1 = paramParameters.getPreviewSize(); | |
| Size localSize2 = getParameters().getPreviewSize(); | |
| if ((localSize1.width != localSize2.width) || (localSize1.height != localSize2.height)) { | |
| throw new IllegalStateException("Cannot change preview size while a preview allocation is configured."); | |
| } | |
| } | |
| } | |
| finally | |
| { | |
| throw paramParameters; | |
| } | |
| } | |
| public void setPhaseAFCallback(PhaseAFCallback paramPhaseAFCallback) | |
| { | |
| if (paramPhaseAFCallback != null) | |
| { | |
| this.mPhaseAFCallback = paramPhaseAFCallback; | |
| native_sendcommand(1644, 1, 0); | |
| return; | |
| } | |
| this.mPhaseAFCallback = null; | |
| native_sendcommand(1644, 0, 0); | |
| } | |
| @Deprecated | |
| public void setPictureMode(int paramInt) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setHdrSavingMode"); | |
| setHdrSavingMode(paramInt); | |
| } | |
| public final void setPreviewCallback(PreviewCallback paramPreviewCallback) | |
| { | |
| this.mPreviewCallback = paramPreviewCallback; | |
| this.mOneShot = false; | |
| this.mWithBuffer = false; | |
| if (paramPreviewCallback != null) { | |
| this.mUsingPreviewAllocation = false; | |
| } | |
| if (paramPreviewCallback != null) {} | |
| for (boolean bool = true;; bool = false) | |
| { | |
| setHasPreviewCallback(bool, false, false); | |
| return; | |
| } | |
| } | |
| public final void setPreviewCallbackAllocation(Allocation paramAllocation) | |
| throws IOException | |
| { | |
| Size localSize = null; | |
| if (paramAllocation != null) | |
| { | |
| localSize = getParameters().getPreviewSize(); | |
| if ((localSize.width != paramAllocation.getType().getX()) || (localSize.height != paramAllocation.getType().getY())) { | |
| throw new IllegalArgumentException("Allocation dimensions don't match preview dimensions: Allocation is " + paramAllocation.getType().getX() + ", " + | |
| paramAllocation.getType().getY() + ". Preview is " + localSize.width + ", " + localSize.height); | |
| } | |
| if ((paramAllocation.getUsage() & 0x20) == 0) { | |
| throw new IllegalArgumentException("Allocation usage does not include USAGE_IO_INPUT"); | |
| } | |
| if (paramAllocation.getType().getElement().getDataKind() != Element.DataKind.PIXEL_YUV) { | |
| throw new IllegalArgumentException("Allocation is not of a YUV type"); | |
| } | |
| paramAllocation = paramAllocation.getSurface(); | |
| this.mUsingPreviewAllocation = true; | |
| } | |
| for (;;) | |
| { | |
| setPreviewCallbackSurface(paramAllocation); | |
| return; | |
| this.mUsingPreviewAllocation = false; | |
| paramAllocation = localSize; | |
| } | |
| } | |
| public void setPreviewCallbackSize(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1381, paramInt1, paramInt2); | |
| } | |
| public final void setPreviewCallbackWithBuffer(PreviewCallback paramPreviewCallback) | |
| { | |
| this.mPreviewCallback = paramPreviewCallback; | |
| this.mOneShot = false; | |
| this.mWithBuffer = true; | |
| if (paramPreviewCallback != null) { | |
| this.mUsingPreviewAllocation = false; | |
| } | |
| if (paramPreviewCallback != null) {} | |
| for (boolean bool = true;; bool = false) | |
| { | |
| setHasPreviewCallback(bool, true, false); | |
| return; | |
| } | |
| } | |
| public final void setPreviewCallbackWithBufferNoDisable(PreviewCallback paramPreviewCallback) | |
| { | |
| boolean bool = false; | |
| this.mPreviewCallback = paramPreviewCallback; | |
| this.mOneShot = false; | |
| this.mWithBuffer = true; | |
| if (paramPreviewCallback != null) { | |
| bool = true; | |
| } | |
| setHasPreviewCallback(bool, true, true); | |
| } | |
| public final void setPreviewDisplay(SurfaceHolder paramSurfaceHolder) | |
| throws IOException | |
| { | |
| if (paramSurfaceHolder != null) | |
| { | |
| setPreviewSurface(paramSurfaceHolder.getSurface()); | |
| return; | |
| } | |
| setPreviewSurface((Surface)null); | |
| } | |
| public final native void setPreviewSurface(Surface paramSurface) | |
| throws IOException; | |
| public final native void setPreviewTexture(SurfaceTexture paramSurfaceTexture) | |
| throws IOException; | |
| @Deprecated | |
| public void setResolutionActionShot(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1132, paramInt1, paramInt2); | |
| } | |
| public void setSecImageEffectListner(SecImageEffectListner paramSecImageEffectListner) | |
| { | |
| this.mSecImageEffectListner = paramSecImageEffectListner; | |
| } | |
| public void setSecImagingEffect(int paramInt) | |
| { | |
| native_sendcommand(1291, paramInt, 0); | |
| } | |
| public void setSecImagingEffect(String paramString) | |
| { | |
| setGenericParameters(paramString); | |
| } | |
| public void setSecImagingEffectVisibleForRecording(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1352, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1352, 0, 0); | |
| } | |
| public void setSecImagingEventListener(SecImagingEventListener paramSecImagingEventListener) | |
| { | |
| this.mSecImagingEventListener = paramSecImagingEventListener; | |
| } | |
| public void setSelectiveFocusEventListener(SelectiveFocusEventListener paramSelectiveFocusEventListener) | |
| { | |
| this.mSelectiveFocusEventListener = paramSelectiveFocusEventListener; | |
| } | |
| public void setSelfieDetectionListener(SelfieDetectionListener paramSelfieDetectionListener) | |
| { | |
| this.mSelfieDetectionListener = paramSelfieDetectionListener; | |
| } | |
| public void setSelfieMode(int paramInt) | |
| { | |
| native_sendcommand(1345, paramInt, 0); | |
| } | |
| public void setShootingMode(int paramInt) | |
| { | |
| native_sendcommand(paramInt + 1000, 0, 0); | |
| } | |
| public void setShootingMode(int paramInt1, int paramInt2, int paramInt3) | |
| { | |
| native_sendcommand(paramInt1 + 1000, paramInt2, paramInt3); | |
| } | |
| public void setShootingModeCallbacks(ShutterCallback paramShutterCallback, PictureCallback paramPictureCallback1, PictureCallback paramPictureCallback2) | |
| { | |
| this.mShutterCallback = paramShutterCallback; | |
| this.mRawImageCallback = paramPictureCallback1; | |
| this.mPostviewCallback = null; | |
| this.mJpegCallback = paramPictureCallback2; | |
| } | |
| public void setShotAndMoreEventListener(ShotAndMoreEventListener paramShotAndMoreEventListener) | |
| { | |
| this.mShotAndMoreEventListener = paramShotAndMoreEventListener; | |
| } | |
| public void setShutterSoundEnable(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1541, 1, 1); | |
| return; | |
| } | |
| native_sendcommand(1541, 0, 1); | |
| } | |
| public void setShutterSoundVolumeLevel(int paramInt) | |
| { | |
| native_sendcommand(1542, paramInt, 0); | |
| } | |
| public void setSlimFaceLevel(int paramInt) | |
| { | |
| native_sendcommand(1184, paramInt, 0); | |
| } | |
| public void setSmartSelfieBeautyLevel(int paramInt) | |
| { | |
| native_sendcommand(1394, paramInt, 0); | |
| } | |
| public void setSnapMovieInterval(int paramInt) | |
| { | |
| native_sendcommand(1304, paramInt, 0); | |
| } | |
| public void setSuperResolutionMode(int paramInt) | |
| { | |
| native_sendcommand(1265, paramInt, 0); | |
| } | |
| public void setThemeMask(int paramInt) | |
| { | |
| native_sendcommand(1341, paramInt, 0); | |
| } | |
| public void setThemeOrientationInfo(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1342, paramInt1, paramInt2); | |
| } | |
| public void setUltraWideSelfieBeautyLevel(int paramInt) | |
| { | |
| native_sendcommand(1468, paramInt, 0); | |
| } | |
| public void setUltraWideSelfieCaptureAngle(int paramInt) | |
| { | |
| native_sendcommand(1467, paramInt, 0); | |
| } | |
| public void setUltraWideSelfieEventListener(UltraWideSelfieEventListener paramUltraWideSelfieEventListener) | |
| { | |
| this.mUltraWideSelfieEventListener = paramUltraWideSelfieEventListener; | |
| } | |
| public void setUsePreviewCallback(boolean paramBoolean, int paramInt) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1382, 1, paramInt); | |
| return; | |
| } | |
| native_sendcommand(1382, 0, paramInt); | |
| } | |
| public final void setZoomChangeListener(OnZoomChangeListener paramOnZoomChangeListener) | |
| { | |
| this.mZoomListener = paramOnZoomChangeListener; | |
| } | |
| @Deprecated | |
| public void smileDetectionReinit() | |
| { | |
| native_sendcommand(1103, 0, 0); | |
| } | |
| public void startAnimatedPhoto() | |
| { | |
| Log.v("SecCamera-JNI-Java", "startAnimatedPhoto"); | |
| native_sendcommand(1623, 0, 0); | |
| } | |
| @Deprecated | |
| public void startBurstShot(boolean paramBoolean1, boolean paramBoolean2, int paramInt) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to setBurstShot"); | |
| if (paramBoolean1) | |
| { | |
| if (paramBoolean2) | |
| { | |
| native_sendcommand(1163, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1163, 0, paramInt); | |
| return; | |
| } | |
| native_sendcommand(1164, 0, 0); | |
| } | |
| public void startContinuousAF() | |
| { | |
| native_sendcommand(1551, 0, 0); | |
| } | |
| public void startContinuousShot(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1121, 0, 0); | |
| return; | |
| } | |
| native_sendcommand(1122, 0, 0); | |
| } | |
| public void startDramaShot() | |
| { | |
| native_sendcommand(1331, 0, 0); | |
| } | |
| @Deprecated | |
| public void startDualModeAsyncShot(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to takeDualModeAsyncShot"); | |
| takeDualModeAsyncShot(paramBoolean); | |
| } | |
| public void startEffectRecording() | |
| { | |
| native_sendcommand(1621, 0, 0); | |
| } | |
| public final void startFaceDetection() | |
| { | |
| if (this.mFaceDetectionRunning) { | |
| throw new RuntimeException("Face detection is already running"); | |
| } | |
| _startFaceDetection(0); | |
| this.mFaceDetectionRunning = true; | |
| } | |
| public final void startFaceDetectionSW() | |
| { | |
| if (this.mFaceDetectionRunning) { | |
| throw new RuntimeException("Face detection is already running"); | |
| } | |
| _startFaceDetection(1); | |
| this.mFaceDetectionRunning = true; | |
| } | |
| public final void startFaceDetectionSW_ForVoiceGuide() | |
| { | |
| if (this.mFaceDetectionRunning) { | |
| throw new RuntimeException("Face detection is already running"); | |
| } | |
| _startFaceDetection(5); | |
| this.mFaceDetectionRunning = true; | |
| } | |
| public void startFaceZoom(int paramInt1, int paramInt2) | |
| { | |
| native_sendcommand(1531, paramInt1, paramInt2); | |
| } | |
| public void startGolfShot() | |
| { | |
| native_sendcommand(1311, 0, 0); | |
| } | |
| public void startGolfShot(int paramInt) | |
| { | |
| native_sendcommand(1311, paramInt, 0); | |
| } | |
| public void startMagicShot() | |
| { | |
| native_sendcommand(1421, 0, 0); | |
| } | |
| public void startMultiFrameShot() | |
| { | |
| native_sendcommand(1261, 0, 0); | |
| } | |
| public final void startObjectTrackingAF() | |
| { | |
| native_sendcommand(1504, 1, 0); | |
| } | |
| public void startPanorama(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1111, 0, 0); | |
| return; | |
| } | |
| native_sendcommand(1112, 0, 0); | |
| } | |
| public final native void startPreview(); | |
| @Deprecated | |
| public final void startSamsungFaceDetectionSW() | |
| { | |
| if (this.mFaceDetectionRunning) { | |
| throw new RuntimeException("Face detection is already running"); | |
| } | |
| _startFaceDetection(4); | |
| this.mFaceDetectionRunning = true; | |
| } | |
| @Deprecated | |
| public void startSeriesActionShot() | |
| { | |
| native_sendcommand(1133, 0, 0); | |
| } | |
| @Deprecated | |
| public void startShutterSound(boolean paramBoolean) | |
| { | |
| Log.w("SecCamera-JNI-Java", "deprecated. replace to startShutterSound"); | |
| enablePanoramaShutterSound(paramBoolean); | |
| } | |
| @Deprecated | |
| public void startSmileDetection(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1101, 0, 0); | |
| return; | |
| } | |
| native_sendcommand(1102, 0, 0); | |
| } | |
| public final native void startSmoothZoom(int paramInt); | |
| public void startSnapMovieMotionEngine(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1302, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1302, 0, 0); | |
| } | |
| public void startSnapMovieRecording(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1303, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1303, 0, 0); | |
| } | |
| public void startTouchAutoFocus() | |
| { | |
| native_sendcommand(1505, 1, 0); | |
| } | |
| public void startUltraWideSelfie(boolean paramBoolean, int paramInt1, int paramInt2) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1461, paramInt1, paramInt2); | |
| return; | |
| } | |
| native_sendcommand(1462, 0, 0); | |
| } | |
| public void startZoom() | |
| { | |
| native_sendcommand(1661, 0, 0); | |
| } | |
| public void stopAnimatedPhoto() | |
| { | |
| Log.v("SecCamera-JNI-Java", "stopAnimatedPhoto"); | |
| native_sendcommand(1624, 0, 0); | |
| } | |
| public void stopContinuousAF() | |
| { | |
| native_sendcommand(1552, 0, 0); | |
| } | |
| public void stopDramaShot() | |
| { | |
| native_sendcommand(1332, 0, 0); | |
| } | |
| public void stopEffectRecording() | |
| { | |
| native_sendcommand(1622, 0, 0); | |
| } | |
| public final void stopFaceDetection() | |
| { | |
| _stopFaceDetection(); | |
| this.mFaceDetectionRunning = false; | |
| if (this.mEventHandler != null) { | |
| this.mEventHandler.removeMessages(1024); | |
| } | |
| } | |
| public void stopFaceZoom() | |
| { | |
| native_sendcommand(1532, 0, 0); | |
| } | |
| public void stopGolfShot() | |
| { | |
| native_sendcommand(1312, 0, 0); | |
| } | |
| public void stopMagicShot() | |
| { | |
| native_sendcommand(1422, 0, 0); | |
| } | |
| public final void stopObjectTrackingAF() | |
| { | |
| native_sendcommand(1504, 0, 0); | |
| } | |
| public final void stopPreview() | |
| { | |
| _stopPreview(); | |
| this.mFaceDetectionRunning = false; | |
| Log.i("SecCamera-JNI-Java", "stopPreview"); | |
| } | |
| @Deprecated | |
| public void stopSeriesActionShot() | |
| { | |
| native_sendcommand(1135, 0, 0); | |
| } | |
| public final native void stopSmoothZoom(); | |
| public void stopTakePicture() | |
| { | |
| native_sendcommand(1471, 0, 0); | |
| } | |
| public void stopTouchAutoFocus() | |
| { | |
| native_sendcommand(1505, 0, 0); | |
| } | |
| public void stopZoom() | |
| { | |
| native_sendcommand(1662, 0, 0); | |
| } | |
| public void takeDualModeAsyncShot(boolean paramBoolean) | |
| { | |
| if (paramBoolean) | |
| { | |
| native_sendcommand(1374, 1, 0); | |
| return; | |
| } | |
| native_sendcommand(1374, 3, 0); | |
| } | |
| public final void takePicture(ShutterCallback paramShutterCallback, PictureCallback paramPictureCallback1, PictureCallback paramPictureCallback2) | |
| { | |
| takePicture(paramShutterCallback, paramPictureCallback1, null, paramPictureCallback2); | |
| } | |
| public final void takePicture(ShutterCallback paramShutterCallback, PictureCallback paramPictureCallback1, PictureCallback paramPictureCallback2, | |
| PictureCallback paramPictureCallback3) | |
| { | |
| this.mShutterCallback = paramShutterCallback; | |
| this.mRawImageCallback = paramPictureCallback1; | |
| this.mPostviewCallback = paramPictureCallback2; | |
| this.mJpegCallback = paramPictureCallback3; | |
| int j = 0; | |
| if (this.mShutterCallback != null) { | |
| j = 0x0 | 0x2; | |
| } | |
| int i = j; | |
| if (this.mRawImageCallback != null) { | |
| i = j | 0x80; | |
| } | |
| j = i; | |
| if (this.mPostviewCallback != null) { | |
| j = i | 0x40; | |
| } | |
| i = j; | |
| if (this.mJpegCallback != null) { | |
| i = j | 0x100; | |
| } | |
| native_takePicture(i); | |
| this.mFaceDetectionRunning = false; | |
| } | |
| public void terminateBurstShot() | |
| { | |
| native_sendcommand(1165, 0, 0); | |
| } | |
| public void terminateContinuousShot() | |
| { | |
| native_sendcommand(1123, 0, 0); | |
| } | |
| public HashMap<String, String> unflatten(String paramString) | |
| { | |
| HashMap localHashMap; | |
| try | |
| { | |
| localHashMap = new HashMap(); | |
| Object localObject = new TextUtils.SimpleStringSplitter(';'); | |
| ((TextUtils.StringSplitter)localObject).setString(paramString); | |
| paramString = ((TextUtils.StringSplitter)localObject).iterator(); | |
| while (paramString.hasNext()) | |
| { | |
| localObject = (String)paramString.next(); | |
| int i = ((String)localObject).indexOf('='); | |
| if (i != -1) { | |
| localHashMap.put(((String)localObject).substring(0, i), ((String)localObject).substring(i + 1)); | |
| } | |
| } | |
| } | |
| finally {} | |
| return localHashMap; | |
| } | |
| public final native void unlock(); | |
| public static class Area | |
| { | |
| public Rect rect; | |
| public int weight; | |
| public Area(Rect paramRect, int paramInt) | |
| { | |
| this.rect = paramRect; | |
| this.weight = paramInt; | |
| } | |
| public boolean equals(Object paramObject) | |
| { | |
| if (!(paramObject instanceof Area)) {} | |
| do | |
| { | |
| while (this.weight != ((Area)paramObject).weight) { | |
| do | |
| { | |
| return false; | |
| paramObject = (Area)paramObject; | |
| if (this.rect != null) { | |
| break; | |
| } | |
| } while (((Area)paramObject).rect != null); | |
| } | |
| return true; | |
| } while (this.rect.equals(((Area)paramObject).rect)); | |
| return false; | |
| } | |
| } | |
| public static abstract interface AutoExposureCallback | |
| { | |
| public abstract void onAutoExposure(int paramInt); | |
| } | |
| public static abstract interface AutoFocusCallback | |
| { | |
| public abstract void onAutoFocus(int paramInt, SecCamera paramSecCamera); | |
| } | |
| public static abstract interface AutoFocusMoveCallback | |
| { | |
| public abstract void onAutoFocusMoving(boolean paramBoolean, SecCamera paramSecCamera); | |
| } | |
| public static abstract interface AutoLowLightDetectionListener | |
| { | |
| public abstract void onAutoLowLightDetectionChanged(int paramInt); | |
| } | |
| public static abstract interface BeautyEventListener | |
| { | |
| public abstract void onBeautySavingProgress(int paramInt); | |
| } | |
| public static abstract interface BurstEventListener | |
| { | |
| public abstract void onBurstCapturingProgressed(int paramInt1, int paramInt2); | |
| public abstract void onBurstCapturingStopped(int paramInt); | |
| public abstract void onBurstSavingCompleted(int paramInt); | |
| public abstract void onBurstStringProgressed(byte[] paramArrayOfByte); | |
| } | |
| public class CameraCurrentSet | |
| { | |
| public short driver_resolution = (short)(paramArrayOfByte[12] & 0xFF | (paramArrayOfByte[13] & 0xFF) << 8); | |
| public long exposure_time = paramArrayOfByte[0] & 0xFF | (paramArrayOfByte[1] & 0xFF) << 8 | (paramArrayOfByte[2] & 0xFF) << 16 | (paramArrayOfByte[3] & | |
| 0xFF) << 24; | |
| public short iso = (short)(paramArrayOfByte[4] & 0xFF | (paramArrayOfByte[5] & 0xFF) << 8); | |
| public short lens_position_current = (short)(paramArrayOfByte[10] & 0xFF | (paramArrayOfByte[11] & 0xFF) << 8); | |
| public short lens_position_max = (short)(paramArrayOfByte[8] & 0xFF | (paramArrayOfByte[9] & 0xFF) << 8); | |
| public short lens_position_min = (short)(paramArrayOfByte[6] & 0xFF | (paramArrayOfByte[7] & 0xFF) << 8); | |
| public CameraCurrentSet(byte[] paramArrayOfByte) {} | |
| } | |
| public static abstract interface CameraCurrentSettingListener | |
| { | |
| public abstract void onCameraCurrentSet(long paramLong, short paramShort1, short paramShort2, short paramShort3, short paramShort4, short paramShort5); | |
| } | |
| public static class CameraInfo | |
| { | |
| public static final int CAMERA_FACING_BACK = 0; | |
| public static final int CAMERA_FACING_FRONT = 1; | |
| public boolean canDisableShutterSound; | |
| public int facing; | |
| public int orientation; | |
| } | |
| public static abstract interface DramaShotEventListener | |
| { | |
| public abstract void onDramaShotCapturingProgress(int paramInt1, int paramInt2); | |
| public abstract void onDramaShotError(int paramInt); | |
| public abstract void onDramaShotInputString(byte[] paramArrayOfByte); | |
| public abstract void onDramaShotResultString(byte[] paramArrayOfByte); | |
| public abstract void onDramaShotSavingProgress(int paramInt); | |
| } | |
| public static abstract interface DualEventListener | |
| { | |
| public abstract void onDualCaptureAvailable(int paramInt); | |
| public abstract void onDualTrackingAvailable(int paramInt); | |
| } | |
| public static abstract interface ErrorCallback | |
| { | |
| public abstract void onError(int paramInt, SecCamera paramSecCamera); | |
| } | |
| private class EventHandler | |
| extends Handler | |
| { | |
| private final SecCamera mCamera; | |
| public EventHandler(SecCamera paramSecCamera, Looper paramLooper) | |
| { | |
| super(); | |
| this.mCamera = paramSecCamera; | |
| } | |
| public void handleMessage(Message paramMessage) | |
| { | |
| if (paramMessage.what < 1024) { | |
| Log.d("SecCamera-JNI-Java", "handleMessage: " + paramMessage.what); | |
| } | |
| switch (paramMessage.what) | |
| { | |
| default: | |
| Log.e("SecCamera-JNI-Java", "Unknown message type " + paramMessage.what); | |
| } | |
| label1109: | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| for (;;) | |
| { | |
| return; | |
| if (SecCamera.this.mShutterCallback != null) | |
| { | |
| SecCamera.this.mShutterCallback.onShutter(); | |
| return; | |
| if (SecCamera.this.mRawImageCallback != null) | |
| { | |
| SecCamera.this.mRawImageCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| if (SecCamera.this.mJpegCallback != null) | |
| { | |
| SecCamera.this.mJpegCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| for (;;) | |
| { | |
| try | |
| { | |
| SecCamera.PreviewCallback localPreviewCallback = SecCamera.this.mPreviewCallback; | |
| if (localPreviewCallback == null) { | |
| break; | |
| } | |
| if (!SecCamera.this.mOneShot) { | |
| break label1109; | |
| } | |
| SecCamera.access$302(SecCamera.this, null); | |
| localPreviewCallback.onPreviewFrame((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| } | |
| catch (Exception localException) | |
| { | |
| Log.e("SecCamera-JNI-Java", "CAMERA_MSG_PREVIEW_FRAME", localException); | |
| } | |
| if (SecCamera.this.mPostviewCallback == null) { | |
| break; | |
| } | |
| SecCamera.this.mPostviewCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| if (!SecCamera.this.mWithBuffer) { | |
| SecCamera.this.setHasPreviewCallback(true, false, false); | |
| } | |
| } | |
| synchronized (SecCamera.this.mAutoFocusCallbackLock) | |
| { | |
| SecCamera.AutoFocusCallback localAutoFocusCallback = SecCamera.this.mAutoFocusCallback; | |
| if (localAutoFocusCallback != null) | |
| { | |
| localAutoFocusCallback.onAutoFocus(paramMessage.arg1, this.mCamera); | |
| return; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } while (SecCamera.this.mZoomListener == null); | |
| ??? = SecCamera.this.mZoomListener; | |
| i = paramMessage.arg1; | |
| if (paramMessage.arg2 != 0) {} | |
| for (bool = true;; bool = false) | |
| { | |
| ((SecCamera.OnZoomChangeListener)???).onZoomChange(i, bool, this.mCamera); | |
| return; | |
| } | |
| } while ((SecCamera.this.mFaceListener == null) || (!SecCamera.this.mFaceDetectionRunning)); | |
| SecCamera.this.mFaceListener.onFaceDetection((SecCamera.Face[])paramMessage.obj, this.mCamera); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "Error " + paramMessage.arg1); | |
| if (SecCamera.this.mErrorCallback != null) { | |
| SecCamera.this.mErrorCallback.onError(paramMessage.arg1, this.mCamera); | |
| } | |
| } while (paramMessage.arg1 != 200); | |
| SecCamera.this.native_release(); | |
| SecCamera.access$1202(SecCamera.this, false); | |
| return; | |
| } while (SecCamera.this.mAutoFocusMoveCallback == null); | |
| ??? = SecCamera.this.mAutoFocusMoveCallback; | |
| if (paramMessage.arg1 == 0) {} | |
| for (bool = false;; bool = true) | |
| { | |
| ((SecCamera.AutoFocusMoveCallback)???).onAutoFocusMoving(bool, this.mCamera); | |
| return; | |
| } | |
| Log.w("SecCamera-JNI-Java", "SAMSUNG_SHOT_COMPRESSED_IMAGE"); | |
| } while (SecCamera.this.mJpegCallback == null); | |
| SecCamera.this.mJpegCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| Log.w("SecCamera-JNI-Java", "SAMSUNG_BURST_PANORAMA_SHOT_COMPRESSED_IMAGE"); | |
| if (SecCamera.this.mJpegCallback != null) | |
| { | |
| SecCamera.this.mJpegCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| } | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaError(0); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaError(0); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaError(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaError(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaDirectionChanged(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaDirectionChanged(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaRectChanged(paramMessage.arg1, paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaRectChanged(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaCapturedNew(); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaCapturedNew(); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaProgressStitching(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaProgressStitching(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaCaptured(); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaCaptured(); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaLowResolutionData((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaLowResolutionData((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaLivePreviewData((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaLivePreviewData((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaCapturedMaxFrames(); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaCapturedMaxFrames(); | |
| return; | |
| if (SecCamera.this.mOnPanoramaEventListener != null) { | |
| SecCamera.this.mOnPanoramaEventListener.onPanoramaMoveSlowly(); | |
| } | |
| } while (SecCamera.this.mPanoramaEventListener == null); | |
| SecCamera.this.mPanoramaEventListener.onPanoramaMoveSlowly(); | |
| return; | |
| } | |
| while (SecCamera.this.mOnContinuousShotEventListener == null); | |
| SecCamera.this.mOnContinuousShotEventListener.onContinuousShotCapturingProgressed(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } | |
| while (SecCamera.this.mOnContinuousShotEventListener == null); | |
| SecCamera.this.mOnContinuousShotEventListener.onContinuousShotCapturingStopped(paramMessage.arg1); | |
| return; | |
| } | |
| while (SecCamera.this.mOnContinuousShotEventListener == null); | |
| SecCamera.this.mOnContinuousShotEventListener.onContinuousShotSavingCompleted(); | |
| return; | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| SecCamera.this.mOnActionShotEventListener.onActionShotCreatingResultStarted(); | |
| return; | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| SecCamera.this.mOnActionShotEventListener.onActionShotCreatingResultProgress(paramMessage.arg1); | |
| return; | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| ??? = | |
| SecCamera.this.mOnActionShotEventListener; | |
| if | |
| (paramMessage.arg1 == 1) {} | |
| for (bool = | |
| true;; bool = false) | |
| { | |
| ((SecCamera.OnActionShotEventListener)???).onActionShotCreatingResultCompleted(bool); | |
| return; | |
| } | |
| Log.e | |
| ("SecCamera-JNI-Java", "onActionShotAcquisitionProgress " + paramMessage.arg1); | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| SecCamera.this.mOnActionShotEventListener.onActionShotAcquisitionProgress(paramMessage.arg1); | |
| return; | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| SecCamera.this.mOnActionShotEventListener.onActionShotRectChanged((byte[])paramMessage.obj); | |
| return; | |
| } while | |
| (SecCamera.this.mOnActionShotEventListener == null); | |
| SecCamera.this.mOnActionShotEventListener.onActionShotCaptured(); | |
| return; | |
| } while | |
| (SecCamera.this.mOnCartoonShotEventListener == null); | |
| Log.d("SecCamera- | |
| JNI-Java", "CARTOON_SHOT_PROGRESS_RENDERING :" + paramMessage.arg1); | |
| SecCamera.this.mOnCartoonShotEventListener.onCartoonShotProgressRendering(paramMessage.arg1); | |
| return; | |
| } while | |
| (SecCamera.this.mOnSmileShotDetectionSuccessListener == null); | |
| SecCamera.this.mOnSmileShotDetectionSuccessListener.onSmileShotDetectionSuccess(); | |
| return; | |
| } while | |
| (SecCamera.this.mOnSmileShotDetectionSuccessListener == null); | |
| SecCamera.this.mOnSmileShotDetectionSuccessListener.onSmileShotFaceRectChanged((byte[])paramMessage.obj); | |
| return; | |
| } while | |
| (SecCamera.this.mOnSmileShotDetectionSuccessListener == null); | |
| SecCamera.this.mOnSmileShotDetectionSuccessListener.onSmileShotSmileRectChanged((byte[])paramMessage.obj); | |
| return; | |
| if | |
| (SecCamera.this.mOnSelfieShotDetectionSuccessListener != null) { | |
| SecCamera.this.mOnSelfieShotDetectionSuccessListener.onSelfieShotWinkDetectionSuccess(); | |
| } | |
| } while | |
| (SecCamera.this.mSelfieDetectionListener == null); | |
| SecCamera.this.mSelfieDetectionListener.onWinkDetected(); | |
| return; | |
| if | |
| (SecCamera.this.mOnSelfieShotDetectionSuccessListener != null) { | |
| SecCamera.this.mOnSelfieShotDetectionSuccessListener.onSelfieShotPalmDetectionSuccess(); | |
| } | |
| } while | |
| (SecCamera.this.mSelfieDetectionListener == null); | |
| SecCamera.this.mSelfieDetectionListener.onPalmDetected(); | |
| return; | |
| if | |
| (SecCamera.this.mOnSelfieShotDetectionSuccessListener != null) { | |
| SecCamera.this.mOnSelfieShotDetectionSuccessListener.onSelfieShotSmileDetectionSuccess(); | |
| } | |
| } while | |
| (SecCamera.this.mSelfieDetectionListener == null); | |
| SecCamera.this.mSelfieDetectionListener.onSmileDetected(); | |
| return; | |
| if | |
| (SecCamera.this.mOnSelfieShotDetectionSuccessListener != null) { | |
| SecCamera.this.mOnSelfieShotDetectionSuccessListener.onSelfieHeadPoseDetectionSuccess((byte[])paramMessage.obj); | |
| } | |
| } while | |
| (SecCamera.this.mSelfieDetectionListener == null); | |
| SecCamera.this.mSelfieDetectionListener.onHeadPoseDetected((byte[])paramMessage.obj); | |
| return; | |
| if | |
| (SecCamera.this.mOnHDRShotEventListener != null) { | |
| SecCamera.this.mOnHDRShotEventListener.onHDRShotResultStarted(); | |
| } | |
| } while | |
| (SecCamera.this.mHdrEventListener == null); | |
| SecCamera.this.mHdrEventListener.onHdrResultStarted(); | |
| return; | |
| if | |
| (SecCamera.this.mOnHDRShotEventListener != null) { | |
| SecCamera.this.mOnHDRShotEventListener.onHDRShotResultProgress(paramMessage.arg1); | |
| } | |
| } while | |
| (SecCamera.this.mHdrEventListener == null); | |
| SecCamera.this.mHdrEventListener.onHdrResultProgress(paramMessage.arg1); | |
| return; | |
| if | |
| (SecCamera.this.mOnHDRShotEventListener != null) | |
| { | |
| ??? = | |
| SecCamera.this.mOnHDRShotEventListener; | |
| if (paramMessage.arg1 != 1) { | |
| break; | |
| } | |
| bool = true; | |
| ((SecCamera.OnHDRShotEventListener)???).onHDRShotResultCompleted(bool); | |
| } | |
| } while | |
| (SecCamera.this.mHdrEventListener == null); | |
| ??? = SecCamera.this.mHdrEventListener; | |
| if (paramMessage.arg1 == 1) {} | |
| for (bool = true;; bool = false) | |
| { | |
| ((SecCamera.HdrEventListener)???).onHdrResultCompleted(bool); | |
| return; | |
| bool = false; | |
| break; | |
| } | |
| if | |
| (SecCamera.this.mOnHDRShotEventListener != null) | |
| { | |
| ??? = | |
| SecCamera.this.mOnHDRShotEventListener; | |
| if (paramMessage.arg1 != 1) { | |
| break; | |
| } | |
| bool = true; | |
| ((SecCamera.OnHDRShotEventListener)???).onHDRShotAllProgressCompleted(bool); | |
| } | |
| } while (SecCamera.this.mHdrEventListener | |
| == null); | |
| ??? = SecCamera.this.mHdrEventListener; | |
| if (paramMessage.arg1 == 1) {} | |
| for (bool = true;; bool = false) | |
| { | |
| ((SecCamera.HdrEventListener)???).onHdrAllProgressCompleted(bool); | |
| return; | |
| bool = false; | |
| break; | |
| } | |
| if (SecCamera.this.mOnHDRShotEventListener | |
| != null) | |
| { | |
| ??? = new String((byte[]) | |
| paramMessage.obj); | |
| SecCamera.this.mOnHDRShotEventListener.onHDRShotYUVFileString((String)???); | |
| } | |
| } while (SecCamera.this.mHdrEventListener == | |
| null); | |
| paramMessage = new String((byte[]) | |
| paramMessage.obj); | |
| SecCamera.this.mHdrEventListener.onHdrYUVFileString(paramMessage); | |
| return; | |
| } while | |
| (SecCamera.this.mOnObjectTrackingMsgListener == null); | |
| Log.d("SecCamera-JNI-Java", | |
| "HAL_MSG_OBJ_TRACKING :" + paramMessage.arg1); | |
| SecCamera.this.mOnObjectTrackingMsgListener.onObjectTrackingStatus(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnBurstShotEventListener | |
| != null) { | |
| SecCamera.this.mOnBurstShotEventListener.onBurstShotCapturingProgressed(paramMessage.arg1, paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mBurstEventListener == | |
| null); | |
| SecCamera.this.mBurstEventListener.onBurstCapturingProgressed(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnBurstShotEventListener != | |
| null) { | |
| SecCamera.this.mOnBurstShotEventListener.onBurstShotCapturingStopped(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mBurstEventListener == | |
| null); | |
| SecCamera.this.mBurstEventListener.onBurstCapturingStopped(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnBurstShotEventListener != | |
| null) { | |
| SecCamera.this.mOnBurstShotEventListener.onBurstShotSavingCompleted(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mBurstEventListener == | |
| null); | |
| SecCamera.this.mBurstEventListener.onBurstSavingCompleted(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnBurstShotEventListener != | |
| null) { | |
| SecCamera.this.mOnBurstShotEventListener.onBurstShotStringProgressed((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mBurstEventListener == null); | |
| SecCamera.this.mBurstEventListener.onBurstStringProgressed((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnMultiFrameShotEventListener != | |
| null) | |
| { | |
| Log.d("SecCamera-JNI-Java", "seccamera | |
| MULTI_FRAME_SHOT_PROGRESS_POSTPROCESSING "); | |
| SecCamera.this.mOnMultiFrameShotEventListener.onMultiFrameShotCapturingProgressed(paramMessage.arg1, paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mMultiFrameEventListener == | |
| null); | |
| Log.d("SecCamera-JNI-Java", "seccamera | |
| MULTI_FRAME_SHOT_PROGRESS_POSTPROCESSING "); | |
| SecCamera.this.mMultiFrameEventListener.onMultiFrameCapturingProgressed(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } while | |
| (SecCamera.this.mOnNotifyFirstPreviewFrameEventListener == null); | |
| Log.d("SecCamera-JNI-Java", "Notify to get the first | |
| preview frame "); | |
| SecCamera.this.mOnNotifyFirstPreviewFrameEventListener.OnNotifyFirstPreviewFrame(); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotCaptuered(); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotCaptuered(); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotCreatingStarted(); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotCreatingStarted(); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotCreatingProgress(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotCreatingProgress(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotCreatingCompleted((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotCreatingCompleted | |
| ((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotSavingProgress(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotSavingProgress | |
| (paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnGolfShotEventListener != null) { | |
| SecCamera.this.mOnGolfShotEventListener.onGolfShotError | |
| (paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mGolfShotEventListener == null); | |
| SecCamera.this.mGolfShotEventListener.onGolfShotError | |
| (paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_CAPTURING_PROGRESS"); | |
| SecCamera.this.mOnDramaShotEventListener.onDramaShotCapturingProgress(paramMessage.arg1, paramMessage.arg2); | |
| } | |
| while (SecCamera.this.mDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_CAPTURING_PROGRESS"); | |
| SecCamera.this.mDramaShotEventListener.onDramaShotCapturingProgress | |
| (paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_CAPTURING_PROGRESS, | |
| mOnDramaShotEventListener is null !!!"); | |
| } | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_CAPTURING_PROGRESS, | |
| mOnDramaShotEventListener is null !!!"); | |
| return; | |
| if (SecCamera.this.mOnDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_PROGRESS_POSTPROCESSING"); | |
| SecCamera.this.mOnDramaShotEventListener.onDramaShotSavingProgress | |
| (paramMessage.arg1); | |
| } | |
| while (SecCamera.this.mDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_PROGRESS_POSTPROCESSING"); | |
| SecCamera.this.mDramaShotEventListener.onDramaShotSavingProgress | |
| (paramMessage.arg1); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_PROGRESS_POSTPROCESSING, | |
| mOnDramaShotEventListener is null !!!"); | |
| } | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_PROGRESS_POSTPROCESSING, | |
| mOnDramaShotEventListener is null !!!"); | |
| return; | |
| if (SecCamera.this.mOnDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_ERROR"); | |
| SecCamera.this.mOnDramaShotEventListener.onDramaShotError | |
| (paramMessage.arg1); | |
| } | |
| while (SecCamera.this.mDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_ERROR"); | |
| SecCamera.this.mDramaShotEventListener.onDramaShotError | |
| (paramMessage.arg1); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_ERROR, | |
| mOnDramaShotEventListener is null !!!"); | |
| } | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_ERROR, | |
| mOnDramaShotEventListener is null !!!"); | |
| return; | |
| if (SecCamera.this.mOnDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_INPUT_YUV_STRING"); | |
| SecCamera.this.mOnDramaShotEventListener.onDramaShotInputString | |
| ((byte[])paramMessage.obj); | |
| } | |
| while (SecCamera.this.mDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_INPUT_YUV_STRING"); | |
| SecCamera.this.mDramaShotEventListener.onDramaShotInputString((byte | |
| [])paramMessage.obj); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_INPUT_YUV_STRING, | |
| mOnDramaShotEventListener is null !!!"); | |
| } | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_INPUT_YUV_STRING, | |
| mOnDramaShotEventListener is null !!!"); | |
| return; | |
| if (SecCamera.this.mOnDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_RESULT_YUV_STRING"); | |
| SecCamera.this.mOnDramaShotEventListener.onDramaShotResultString | |
| ((byte[])paramMessage.obj); | |
| } | |
| while (SecCamera.this.mDramaShotEventListener != null) | |
| { | |
| Log.i("SecCamera-JNI-Java", "DRAMA_SHOT_RESULT_YUV_STRING"); | |
| SecCamera.this.mDramaShotEventListener.onDramaShotResultString | |
| ((byte[])paramMessage.obj); | |
| return; | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_RESULT_YUV_STRING, | |
| mOnDramaShotEventListener is null !!!"); | |
| } | |
| Log.e("SecCamera-JNI-Java", "DRAMA_SHOT_RESULT_YUV_STRING, | |
| mOnDramaShotEventListener is null !!!"); | |
| return; | |
| if (SecCamera.this.mOnBeautyShotEventListener != null) { | |
| SecCamera.this.mOnBeautyShotEventListener.onBeautyShotSavingProgress(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mBeautyEventListener == null); | |
| SecCamera.this.mBeautyEventListener.onBeautySavingProgress | |
| (paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnAutoLowLightDetectionListener != null) { | |
| SecCamera.this.mOnAutoLowLightDetectionListener.onAutoLowLightDetectionChanged(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mAutoLowLightDetectionListener == null); | |
| SecCamera.this.mAutoLowLightDetectionListener.onAutoLowLightDetectionChanged(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnLightConditionChangedListener != null) { | |
| SecCamera.this.mOnLightConditionChangedListener.onLightConditionChanged | |
| (paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mLightConditionChangedListener == null); | |
| SecCamera.this.mLightConditionChangedListener.onLightConditionChanged | |
| (paramMessage.arg1); | |
| return; | |
| } while (SecCamera.this.mOnSecImageEffectListner == null); | |
| SecCamera.this.mOnSecImageEffectListner.onEffectShotCreatingStarted(); | |
| return; | |
| } while (SecCamera.this.mOnSecImageEffectListner == null); | |
| SecCamera.this.mOnSecImageEffectListner.onEffectShotCreatingProgress | |
| (paramMessage.arg1); | |
| return; | |
| } while (SecCamera.this.mOnSecImageEffectListner == null); | |
| ??? = SecCamera.this.mOnSecImageEffectListner; | |
| if (paramMessage.arg1 == 1) {} | |
| for (boolean bool = true;; bool = false) | |
| { | |
| ((SecCamera.OnSecImageEffectListner)???).onEffectShotCreatingCompleted(bool); | |
| return; | |
| } | |
| if (SecCamera.this.mOnDualEventListener != null) { | |
| SecCamera.this.mOnDualEventListener.onDualCaptureAvailable(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mDualEventListener == null); | |
| SecCamera.this.mDualEventListener.onDualCaptureAvailable(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnDualEventListener != null) { | |
| SecCamera.this.mOnDualEventListener.onDualTrackingAvailable(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mDualEventListener == null); | |
| SecCamera.this.mDualEventListener.onDualTrackingAvailable(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnSecImagingEventListener != null) | |
| { | |
| ??? = new String((byte[])paramMessage.obj); | |
| SecCamera.this.mOnSecImagingEventListener.onSecImagingString((String)???); | |
| } | |
| } while (SecCamera.this.mSecImagingEventListener == null); | |
| paramMessage = new String((byte[])paramMessage.obj); | |
| SecCamera.this.mSecImagingEventListener.onSecImagingString(paramMessage); | |
| return; | |
| if (SecCamera.this.mOnOutFocusShotModeEventListener != null) { | |
| SecCamera.this.mOnOutFocusShotModeEventListener.onOutFocusProcessProgress | |
| (paramMessage.arg1, paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mSelectiveFocusEventListener == null); | |
| SecCamera.this.mSelectiveFocusEventListener.onSelectiveFocusProcessProgress | |
| (paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } while (SecCamera.this.mOnSnapMovieShotModeEventListener == null); | |
| SecCamera.this.mOnSnapMovieShotModeEventListener.onSnapMovieDurationProgress | |
| (paramMessage.arg1); | |
| return; | |
| } while (SecCamera.this.mOnSnapMovieShotModeEventListener == null); | |
| SecCamera.this.mOnSnapMovieShotModeEventListener.onSnapMovieFileSizeProgress | |
| (paramMessage.arg1); | |
| return; | |
| } while (SecCamera.this.mOnSnapMovieShotModeEventListener == null); | |
| SecCamera.this.mOnSnapMovieShotModeEventListener.onSnapMovieMaxDurationReached(); | |
| return; | |
| } while (SecCamera.this.mOnSnapMovieShotModeEventListener == null); | |
| SecCamera.this.mOnSnapMovieShotModeEventListener.onSnapMovieMaxFileSizeReached(); | |
| return; | |
| if (SecCamera.this.mOnOutFocusShotModeEventListener != null) { | |
| SecCamera.this.mOnOutFocusShotModeEventListener.onOutFocusCaptureProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mSelectiveFocusEventListener == null); | |
| SecCamera.this.mSelectiveFocusEventListener.onSelectiveFocusCaptureProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnOutFocusShotModeEventListener != null) | |
| { | |
| i = 0; | |
| if ((paramMessage.arg1 == -1) || (paramMessage.arg1 == -3)) { | |
| i = -1; | |
| } | |
| if (paramMessage.arg1 == -2) { | |
| i = -2; | |
| } | |
| if ((paramMessage.arg1 >= 11) || (paramMessage.arg1 == -4)) { | |
| i = -3; | |
| } | |
| SecCamera.this.mOnOutFocusShotModeEventListener.onOutFocusComplete(i); | |
| } | |
| } while (SecCamera.this.mSelectiveFocusEventListener == null); | |
| int i = 0; | |
| if ((paramMessage.arg1 == -1) || (paramMessage.arg1 == -3)) { | |
| i = -1; | |
| } | |
| if (paramMessage.arg1 == -2) { | |
| i = -2; | |
| } | |
| if ((paramMessage.arg1 >= 11) || (paramMessage.arg1 == -4)) { | |
| i = -3; | |
| } | |
| SecCamera.this.mSelectiveFocusEventListener.onSelectiveFocusComplete(i); | |
| return; | |
| if (SecCamera.this.mOnMagicShotModeEventListener != null) { | |
| SecCamera.this.mOnMagicShotModeEventListener.onMagicShotCaptureProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mShotAndMoreEventListener == null); | |
| SecCamera.this.mShotAndMoreEventListener.onShotAndMoreCaptureProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnMagicShotModeEventListener != null) { | |
| SecCamera.this.mOnMagicShotModeEventListener.onMagicShotProcessProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mShotAndMoreEventListener == null); | |
| SecCamera.this.mShotAndMoreEventListener.onShotAndMoreProcessProgress(paramMessage.arg1, | |
| paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnMagicShotModeEventListener != null) { | |
| SecCamera.this.mOnMagicShotModeEventListener.onMagicShotComplete(); | |
| } | |
| } while (SecCamera.this.mShotAndMoreEventListener == null); | |
| SecCamera.this.mShotAndMoreEventListener.onShotAndMoreComplete(); | |
| return; | |
| if (SecCamera.this.mOnMagicShotModeEventListener != null) { | |
| SecCamera.this.mOnMagicShotModeEventListener.onMagicShotApplicableMode(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mShotAndMoreEventListener == null); | |
| SecCamera.this.mShotAndMoreEventListener.onShotAndMoreApplicableMode(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnHazeRemovalShotEventListener != null) | |
| { | |
| Log.d("SecCamera-JNI-Java", "seccamera HAZE_REMOVAL_SHOT_PROGRESS_POSTPROCESSING "); | |
| SecCamera.this.mOnHazeRemovalShotEventListener.onHazeRemovalCapturingProgressed(paramMessage.arg1, | |
| paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mHazeRemovalShotEventListener == null); | |
| Log.d("SecCamera-JNI-Java", "seccamera HAZE_REMOVAL_SHOT_PROGRESS_POSTPROCESSING "); | |
| SecCamera.this.mHazeRemovalShotEventListener.onHazeRemovalCapturingProgressed(paramMessage.arg1, | |
| paramMessage.arg2); | |
| return; | |
| if (SecCamera.this.mOnCameraCurrentSettingListener != null) | |
| { | |
| ??? = new SecCamera.CameraCurrentSet(SecCamera.this, (byte[])paramMessage.obj); | |
| SecCamera.this.mOnCameraCurrentSettingListener.onCameraCurrentSet | |
| (((SecCamera.CameraCurrentSet)???).exposure_time, ((SecCamera.CameraCurrentSet)???).iso, ((SecCamera.CameraCurrentSet)???).lens_position_min, | |
| ((SecCamera.CameraCurrentSet)???).lens_position_max, ((SecCamera.CameraCurrentSet)???).lens_position_current, | |
| ((SecCamera.CameraCurrentSet)???).driver_resolution); | |
| } | |
| } while (SecCamera.this.mCameraCurrentSettingListener == null); | |
| paramMessage = new SecCamera.CameraCurrentSet(SecCamera.this, (byte[])paramMessage.obj); | |
| SecCamera.this.mCameraCurrentSettingListener.onCameraCurrentSet(paramMessage.exposure_time, paramMessage.iso, | |
| paramMessage.lens_position_min, paramMessage.lens_position_max, paramMessage.lens_position_current, paramMessage.driver_resolution); | |
| return; | |
| if (SecCamera.this.mOnPafResultListener != null) | |
| { | |
| ??? = new SecCamera.PafResult(SecCamera.this, (byte[])paramMessage.obj); | |
| SecCamera.this.mOnPafResultListener.onPafResult(((SecCamera.PafResult)???).mode, | |
| ((SecCamera.PafResult)???).goal_pos, ((SecCamera.PafResult)???).reliability, ((SecCamera.PafResult)???).lens_position_current, | |
| ((SecCamera.PafResult)???).driver_resolution); | |
| } | |
| } while (SecCamera.this.mPhaseAFCallback == null); | |
| paramMessage = new SecCamera.PafResult(SecCamera.this, (byte[])paramMessage.obj); | |
| SecCamera.this.mPhaseAFCallback.onPhaseAF(paramMessage.mode, paramMessage.goal_pos, paramMessage.reliability, | |
| paramMessage.lens_position_current, paramMessage.driver_resolution); | |
| return; | |
| Log.v("SecCamera-JNI-Java", "METADATA_OBJECT_TRACKING_AF"); | |
| } while (SecCamera.this.mObjectTrackingAFCallback == null); | |
| paramMessage = new SecCamera.ObjectTrackingData((byte[])paramMessage.obj); | |
| SecCamera.this.mObjectTrackingAFCallback.onObjectTrackingAF(paramMessage); | |
| return; | |
| Log.w("SecCamera-JNI-Java", "SAMSUNG_ULTRA_WIDE_SELFIE_SHOT_COMPRESSED_IMAGE"); | |
| if (SecCamera.this.mJpegCallback != null) | |
| { | |
| SecCamera.this.mJpegCallback.onPictureTaken((byte[])paramMessage.obj, this.mCamera); | |
| return; | |
| } | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieError(0); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieError(0); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieError(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieError(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieDirectionChanged(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieDirectionChanged(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieRectChanged((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieRectChanged((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieCapturedNew(); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieCapturedNew(); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieProgressStitching(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieProgressStitching(paramMessage.arg1); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieCaptured(); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieCaptured(); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieLowResolutionData((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieLowResolutionData((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieLivePreviewData((byte[])paramMessage.obj); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieLivePreviewData((byte[])paramMessage.obj); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieCapturedMaxFrames(); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieCapturedMaxFrames(); | |
| return; | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieMoveSlowly(); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieMoveSlowly(); | |
| return; | |
| Log.w("SecCamera-JNI-Java", "ULTRA_WIDE_SELFIE_SHOT_NEXT_CAPTURE_POSITION"); | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieNextCapturePosition(paramMessage.arg1, paramMessage.arg2); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieNextCapturePosition(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| Log.w("SecCamera-JNI-Java", "ULTRA_WIDE_SELFIE_SHOT_SINGLE_CAPTURE_DONE"); | |
| if (SecCamera.this.mOnUltraWideSelfieEventListener != null) { | |
| SecCamera.this.mOnUltraWideSelfieEventListener.onUltraWideSelfieSingleCaptureDone(); | |
| } | |
| } while (SecCamera.this.mUltraWideSelfieEventListener == null); | |
| SecCamera.this.mUltraWideSelfieEventListener.onUltraWideSelfieSingleCaptureDone(); | |
| return; | |
| if (SecCamera.this.mOnAEResultListener != null) { | |
| SecCamera.this.mOnAEResultListener.onAEResult(paramMessage.arg1); | |
| } | |
| } while (SecCamera.this.mAutoExposureCallback == null); | |
| SecCamera.this.mAutoExposureCallback.onAutoExposure(paramMessage.arg1); | |
| return; | |
| } while (SecCamera.this.mInteractiveShotEventListener == null); | |
| SecCamera.this.mInteractiveShotEventListener.onInteractiveDirectionChanged(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } while (SecCamera.this.mInteractiveShotEventListener == null); | |
| SecCamera.this.mInteractiveShotEventListener.onInteractiveCaptureProgressd(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } while (SecCamera.this.mInteractiveShotEventListener == null); | |
| SecCamera.this.mInteractiveShotEventListener.onInteractiveProcessProgressd(paramMessage.arg1, paramMessage.arg2); | |
| return; | |
| } while (SecCamera.this.mInteractiveShotEventListener == null); | |
| SecCamera.this.mInteractiveShotEventListener.onInteractiveProcessCompleted(); | |
| } | |
| } | |
| public static class Face | |
| { | |
| public int id = -1; | |
| public Point leftEye = null; | |
| public Point mouth = null; | |
| public Rect rect; | |
| public Point rightEye = null; | |
| public int score; | |
| } | |
| public static abstract interface FaceDetectionListener | |
| { | |
| public abstract void onFaceDetection(SecCamera.Face[] paramArrayOfFace, SecCamera paramSecCamera); | |
| } | |
| public static abstract interface GolfShotEventListener | |
| { | |
| public abstract void onGolfShotCaptuered(); | |
| public abstract void onGolfShotCreatingCompleted(byte[] paramArrayOfByte); | |
| public abstract void onGolfShotCreatingProgress(int paramInt); | |
| public abstract void onGolfShotCreatingStarted(); | |
| public abstract void onGolfShotError(int paramInt); | |
| public abstract void onGolfShotSavingProgress(int paramInt); | |
| } | |
| public static abstract interface HazeRemovalEventListener | |
| { | |
| public abstract void onHazeRemovalCapturingProgressed(int paramInt1, int paramInt2); | |
| } | |
| public static abstract interface HdrEventListener | |
| { | |
| public abstract void onHdrAllProgressCompleted(boolean paramBoolean); | |
| public abstract void onHdrResultCompleted(boolean paramBoolean); | |
| public abstract void onHdrResultProgress(int paramInt); | |
| public abstract void onHdrResultStarted(); | |
| public abstract void onHdrYUVFileString(String paramString); | |
| } | |
| public static abstract interface InteractiveShotEventListener | |
| { | |
| public abstract void onInteractiveCaptureProgressd(int paramInt1, int paramInt2); | |
| public abstract void onInteractiveDirectionChanged(int paramInt1, int paramInt2); | |
| public abstract void onInteractiveProcessCompleted(); | |
| public abstract void onInteractiveProcessProgressd(int paramInt1, int paramInt2); | |
| } | |
| public static abstract interface LightConditionChangedListener | |
| { | |
| public abstract void onLightConditionChanged(int paramInt); | |
| } | |
| public static abstract interface MultiFrameEventListener | |
| { | |
| public abstract void onMultiFrameCapturingProgressed(int paramInt1, int paramInt2); | |
| } | |
| public static abstract interface ObjectTrackingAFCallback | |
| { | |
| public abstract void onObjectTrackingAF(SecCamera.ObjectTrackingData paramObjectTrackingData); | |
| } | |
| public static class ObjectTrackingData | |
| { | |
| public Rect focusROI = null; | |
| public short focusState = (short)(paramArrayOfByte[0] & 0xFF | (paramArrayOfByte[1] & 0xFF) << 8); | |
| public ObjectTrackingData(byte[] paramArrayOfByte) {} | |
| } | |
| @Deprecated | |
| public static abstract interface OnAEResultListener | |
| { | |
| @Deprecated | |
| public abstract void onAEResult(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnActionShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onActionShotAcquisitionProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onActionShotCaptured(); | |
| @Deprecated | |
| public abstract void onActionShotCreatingResultCompleted(boolean paramBoolean); | |
| @Deprecated | |
| public abstract void onActionShotCreatingResultProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onActionShotCreatingResultStarted(); | |
| @Deprecated | |
| public abstract void onActionShotRectChanged(byte[] paramArrayOfByte); | |
| } | |
| @Deprecated | |
| public static abstract interface OnAutoLowLightDetectionListener | |
| { | |
| @Deprecated | |
| public abstract void onAutoLowLightDetectionChanged(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnBeautyShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onBeautyShotSavingProgress(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnBurstShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onBurstShotCapturingProgressed(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onBurstShotCapturingStopped(int paramInt); | |
| @Deprecated | |
| public abstract void onBurstShotSavingCompleted(int paramInt); | |
| @Deprecated | |
| public abstract void onBurstShotStringProgressed(byte[] paramArrayOfByte); | |
| } | |
| @Deprecated | |
| public static abstract interface OnCameraCurrentSettingListener | |
| { | |
| @Deprecated | |
| public abstract void onCameraCurrentSet(long paramLong, short paramShort1, short paramShort2, short paramShort3, short paramShort4, short paramShort5); | |
| } | |
| @Deprecated | |
| public static abstract interface OnCartoonShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onCartoonShotProgressRendering(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnContinuousShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onContinuousShotCapturingProgressed(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onContinuousShotCapturingStopped(int paramInt); | |
| @Deprecated | |
| public abstract void onContinuousShotSavingCompleted(); | |
| } | |
| @Deprecated | |
| public static abstract interface OnDramaShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onDramaShotCapturingProgress(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onDramaShotError(int paramInt); | |
| @Deprecated | |
| public abstract void onDramaShotInputString(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onDramaShotResultString(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onDramaShotSavingProgress(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnDualEventListener | |
| { | |
| @Deprecated | |
| public abstract void onDualCaptureAvailable(int paramInt); | |
| @Deprecated | |
| public abstract void onDualTrackingAvailable(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnGolfShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onGolfShotCaptuered(); | |
| @Deprecated | |
| public abstract void onGolfShotCreatingCompleted(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onGolfShotCreatingProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onGolfShotCreatingStarted(); | |
| @Deprecated | |
| public abstract void onGolfShotError(int paramInt); | |
| @Deprecated | |
| public abstract void onGolfShotSavingProgress(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnHDRShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onHDRShotAllProgressCompleted(boolean paramBoolean); | |
| @Deprecated | |
| public abstract void onHDRShotResultCompleted(boolean paramBoolean); | |
| @Deprecated | |
| public abstract void onHDRShotResultProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onHDRShotResultStarted(); | |
| @Deprecated | |
| public abstract void onHDRShotYUVFileString(String paramString); | |
| } | |
| @Deprecated | |
| public static abstract interface OnHazeRemovalEventListener | |
| { | |
| @Deprecated | |
| public abstract void onHazeRemovalCapturingProgressed(int paramInt1, int paramInt2); | |
| } | |
| @Deprecated | |
| public static abstract interface OnLightConditionChangedListener | |
| { | |
| @Deprecated | |
| public abstract void onLightConditionChanged(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnMagicShotModeEventListener | |
| { | |
| @Deprecated | |
| public abstract void onMagicShotApplicableMode(int paramInt); | |
| @Deprecated | |
| public abstract void onMagicShotCaptureProgress(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onMagicShotComplete(); | |
| @Deprecated | |
| public abstract void onMagicShotProcessProgress(int paramInt1, int paramInt2); | |
| } | |
| @Deprecated | |
| public static abstract interface OnMultiFrameShotEventListener | |
| { | |
| @Deprecated | |
| public abstract void onMultiFrameShotCapturingProgressed(int paramInt1, int paramInt2); | |
| } | |
| @Deprecated | |
| public static abstract interface OnNotifyFirstPreviewFrameEventListener | |
| { | |
| @Deprecated | |
| public abstract void OnNotifyFirstPreviewFrame(); | |
| } | |
| @Deprecated | |
| public static abstract interface OnObjectTrackingMsgListener | |
| { | |
| @Deprecated | |
| public abstract void onObjectTrackingStatus(int paramInt); | |
| } | |
| @Deprecated | |
| public static abstract interface OnOutFocusShotModeEventListener | |
| { | |
| @Deprecated | |
| public abstract void onOutFocusCaptureProgress(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onOutFocusComplete(int paramInt); | |
| @Deprecated | |
| public abstract void onOutFocusProcessProgress(int paramInt1, int paramInt2); | |
| } | |
| @Deprecated | |
| public static abstract interface OnPafResultListener | |
| { | |
| @Deprecated | |
| public abstract void onPafResult(short paramShort1, short paramShort2, short paramShort3, short paramShort4, short paramShort5); | |
| } | |
| @Deprecated | |
| public static abstract interface OnPanoramaEventListener | |
| { | |
| @Deprecated | |
| public abstract void onPanoramaCaptured(); | |
| @Deprecated | |
| public abstract void onPanoramaCapturedMaxFrames(); | |
| public abstract void onPanoramaCapturedNew(); | |
| @Deprecated | |
| public abstract void onPanoramaDirectionChanged(int paramInt); | |
| @Deprecated | |
| public abstract void onPanoramaError(int paramInt); | |
| @Deprecated | |
| public abstract void onPanoramaLivePreviewData(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onPanoramaLowResolutionData(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onPanoramaMoveSlowly(); | |
| @Deprecated | |
| public abstract void onPanoramaProgressStitching(int paramInt); | |
| @Deprecated | |
| public abstract void onPanoramaRectChanged(int paramInt1, int paramInt2); | |
| } | |
| @Deprecated | |
| public static abstract interface OnSecImageEffectListner | |
| { | |
| @Deprecated | |
| public abstract void onEffectShotCreatingCompleted(boolean paramBoolean); | |
| @Deprecated | |
| public abstract void onEffectShotCreatingProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onEffectShotCreatingStarted(); | |
| } | |
| @Deprecated | |
| public static abstract interface OnSecImagingEventListener | |
| { | |
| @Deprecated | |
| public abstract void onSecImagingString(String paramString); | |
| } | |
| @Deprecated | |
| public static abstract interface OnSelfieShotDetectionSuccessListener | |
| { | |
| @Deprecated | |
| public abstract void onSelfieHeadPoseDetectionSuccess(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onSelfieShotPalmDetectionSuccess(); | |
| @Deprecated | |
| public abstract void onSelfieShotSmileDetectionSuccess(); | |
| @Deprecated | |
| public abstract void onSelfieShotWinkDetectionSuccess(); | |
| } | |
| @Deprecated | |
| public static abstract interface OnSmileShotDetectionSuccessListener | |
| { | |
| @Deprecated | |
| public abstract void onSmileShotDetectionSuccess(); | |
| @Deprecated | |
| public abstract void onSmileShotFaceRectChanged(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onSmileShotSmileRectChanged(byte[] paramArrayOfByte); | |
| } | |
| public static abstract interface OnSnapMovieShotModeEventListener | |
| { | |
| @Deprecated | |
| public abstract void onSnapMovieDurationProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onSnapMovieFileSizeProgress(int paramInt); | |
| @Deprecated | |
| public abstract void onSnapMovieMaxDurationReached(); | |
| @Deprecated | |
| public abstract void onSnapMovieMaxFileSizeReached(); | |
| } | |
| @Deprecated | |
| public static abstract interface OnUltraWideSelfieEventListener | |
| { | |
| @Deprecated | |
| public abstract void onUltraWideSelfieCaptured(); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieCapturedMaxFrames(); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieCapturedNew(); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieDirectionChanged(int paramInt); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieError(int paramInt); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieLivePreviewData(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieLowResolutionData(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieMoveSlowly(); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieNextCapturePosition(int paramInt1, int paramInt2); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieProgressStitching(int paramInt); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieRectChanged(byte[] paramArrayOfByte); | |
| @Deprecated | |
| public abstract void onUltraWideSelfieSingleCaptureDone(); | |
| } | |
| public static abstract interface OnZoomChangeListener | |
| { | |
| public abstract void onZoomChange(int paramInt, boolean paramBoolean, SecCamera paramSecCamera); | |
| } | |
| public class PafResult | |
| { | |
| public short driver_resolution = (short)(paramArrayOfByte[8] & 0xFF | (paramArrayOfByte[9] & 0xFF) << 8); | |
| public short goal_pos = (short)(paramArrayOfByte[2] & 0xFF | (paramArrayOfByte[3] & 0xFF) << 8); | |
| public short lens_position_current = (short)(paramArrayOfByte[6] & 0xFF | (paramArrayOfByte[7] & 0xFF) << 8); | |
| public short mode = (short)(paramArrayOfByte[0] & 0xFF | (paramArrayOfByte[1] & 0xFF) << 8); | |
| public short reliability = (short)(paramArrayOfByte[4] & 0xFF | (paramArrayOfByte[5] & 0xFF) << 8); | |
| public PafResult(byte[] paramArrayOfByte) {} | |
| } | |
| public static abstract interface PanoramaEventListener | |
| { | |
| public abstract void onPanoramaCaptured(); | |
| public abstract void onPanoramaCapturedMaxFrames(); | |
| public abstract void onPanoramaCapturedNew(); | |
| public abstract void onPanoramaDirectionChanged(int paramInt); | |
| public abstract void onPanoramaError(int paramInt); | |
| public abstract void onPanoramaLivePreviewData(byte[] paramArrayOfByte); | |
| public abstract void onPanoramaLowResolutionData(byte[] paramArrayOfByte); | |
| public abstract void onPanoramaMoveSlowly(); | |
| public abstract void onPanoramaProgressStitching(int paramInt); | |
| public abstract void onPanoramaRectChanged(int paramInt1, int paramInt2); | |
| } | |
| public class Parameters | |
| { | |
| public static final String ANTIBANDING_50HZ = "50hz"; | |
| public static final String ANTIBANDING_60HZ = "60hz"; | |
| public static final String ANTIBANDING_AUTO = "auto"; | |
| public static final String ANTIBANDING_OFF = "off"; | |
| public static final String EFFECT_AQUA = "aqua"; | |
| public static final String EFFECT_BLACKBOARD = "blackboard"; | |
| public static final String EFFECT_MONO = "mono"; | |
| public static final String EFFECT_NEGATIVE = "negative"; | |
| public static final String EFFECT_NONE = "none"; | |
| public static final String EFFECT_POSTERIZE = "posterize"; | |
| public static final String EFFECT_SEPIA = "sepia"; | |
| public static final String EFFECT_SOLARIZE = "solarize"; | |
| public static final String EFFECT_WHITEBOARD = "whiteboard"; | |
| private static final String FALSE = "false"; | |
| public static final String FLASH_MODE_AUTO = "auto"; | |
| public static final String FLASH_MODE_OFF = "off"; | |
| public static final String FLASH_MODE_ON = "on"; | |
| public static final String FLASH_MODE_RED_EYE = "red-eye"; | |
| public static final String FLASH_MODE_TORCH = "torch"; | |
| public static final int FOCUS_DISTANCE_FAR_INDEX = 2; | |
| public static final int FOCUS_DISTANCE_NEAR_INDEX = 0; | |
| public static final int FOCUS_DISTANCE_OPTIMAL_INDEX = 1; | |
| public static final String FOCUS_MODE_AUTO = "auto"; | |
| public static final String FOCUS_MODE_CONTINUOUS_PICTURE = "continuous-picture"; | |
| public static final String FOCUS_MODE_CONTINUOUS_VIDEO = "continuous-video"; | |
| public static final String FOCUS_MODE_EDOF = "edof"; | |
| public static final String FOCUS_MODE_FIXED = "fixed"; | |
| public static final String FOCUS_MODE_INFINITY = "infinity"; | |
| public static final String FOCUS_MODE_MACRO = "macro"; | |
| private static final String KEY_ANTIBANDING = "antibanding"; | |
| private static final String KEY_AUTO_EXPOSURE_LOCK = "auto-exposure-lock"; | |
| private static final String KEY_AUTO_EXPOSURE_LOCK_SUPPORTED = "auto-exposure-lock-supported"; | |
| private static final String KEY_AUTO_WHITEBALANCE_LOCK = "auto-whitebalance-lock"; | |
| private static final String KEY_AUTO_WHITEBALANCE_LOCK_SUPPORTED = "auto-whitebalance-lock-supported"; | |
| private static final String KEY_CITYID = "contextualtag-cityid"; | |
| private static final String KEY_EFFECT = "effect"; | |
| private static final String KEY_EXPOSURE_COMPENSATION = "exposure-compensation"; | |
| private static final String KEY_EXPOSURE_COMPENSATION_STEP = "exposure-compensation-step"; | |
| private static final String KEY_FLASH_MODE = "flash-mode"; | |
| private static final String KEY_FOCAL_LENGTH = "focal-length"; | |
| private static final String KEY_FOCUS_AREAS = "focus-areas"; | |
| private static final String KEY_FOCUS_DISTANCES = "focus-distances"; | |
| private static final String KEY_FOCUS_MODE = "focus-mode"; | |
| private static final String KEY_GPS_ALTITUDE = "gps-altitude"; | |
| private static final String KEY_GPS_LATITUDE = "gps-latitude"; | |
| private static final String KEY_GPS_LONGITUDE = "gps-longitude"; | |
| private static final String KEY_GPS_PROCESSING_METHOD = "gps-processing-method"; | |
| private static final String KEY_GPS_TIMESTAMP = "gps-timestamp"; | |
| private static final String KEY_HORIZONTAL_VIEW_ANGLE = "horizontal-view-angle"; | |
| private static final String KEY_JPEG_QUALITY = "jpeg-quality"; | |
| private static final String KEY_JPEG_THUMBNAIL_HEIGHT = "jpeg-thumbnail-height"; | |
| private static final String KEY_JPEG_THUMBNAIL_QUALITY = "jpeg-thumbnail-quality"; | |
| private static final String KEY_JPEG_THUMBNAIL_SIZE = "jpeg-thumbnail-size"; | |
| private static final String KEY_JPEG_THUMBNAIL_WIDTH = "jpeg-thumbnail-width"; | |
| private static final String KEY_MAX_EXPOSURE_COMPENSATION = "max-exposure-compensation"; | |
| private static final String KEY_MAX_NUM_DETECTED_FACES_HW = "max-num-detected-faces-hw"; | |
| private static final String KEY_MAX_NUM_DETECTED_FACES_SW = "max-num-detected-faces-sw"; | |
| private static final String KEY_MAX_NUM_FOCUS_AREAS = "max-num-focus-areas"; | |
| private static final String KEY_MAX_NUM_METERING_AREAS = "max-num-metering-areas"; | |
| private static final String KEY_MAX_ZOOM = "max-zoom"; | |
| private static final String KEY_METERING_AREAS = "metering-areas"; | |
| private static final String KEY_MIN_EXPOSURE_COMPENSATION = "min-exposure-compensation"; | |
| private static final String KEY_PICTURE_FORMAT = "picture-format"; | |
| private static final String KEY_PICTURE_SIZE = "picture-size"; | |
| private static final String KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO = "preferred-preview-size-for-video"; | |
| private static final String KEY_PREVIEW_FORMAT = "preview-format"; | |
| private static final String KEY_PREVIEW_FPS_RANGE = "preview-fps-range"; | |
| private static final String KEY_PREVIEW_FRAME_RATE = "preview-frame-rate"; | |
| private static final String KEY_PREVIEW_SIZE = "preview-size"; | |
| private static final String KEY_RECORDING_HINT = "recording-hint"; | |
| private static final String KEY_ROTATION = "rotation"; | |
| private static final String KEY_SCENE_MODE = "scene-mode"; | |
| private static final String KEY_SMOOTH_ZOOM_SUPPORTED = "smooth-zoom-supported"; | |
| private static final String KEY_VERTICAL_VIEW_ANGLE = "vertical-view-angle"; | |
| private static final String KEY_VIDEO_SIZE = "video-size"; | |
| private static final String KEY_VIDEO_SNAPSHOT_SUPPORTED = "video-snapshot-supported"; | |
| private static final String KEY_VIDEO_STABILIZATION = "video-stabilization"; | |
| private static final String KEY_VIDEO_STABILIZATION_SUPPORTED = "video-stabilization-supported"; | |
| private static final String KEY_WEATHER = "contextualtag-weather"; | |
| private static final String KEY_WHITE_BALANCE = "whitebalance"; | |
| private static final String KEY_ZOOM = "zoom"; | |
| private static final String KEY_ZOOM_RATIOS = "zoom-ratios"; | |
| private static final String KEY_ZOOM_SUPPORTED = "zoom-supported"; | |
| private static final String PIXEL_FORMAT_BAYER_RGGB = "bayer-rggb"; | |
| private static final String PIXEL_FORMAT_JPEG = "jpeg"; | |
| private static final String PIXEL_FORMAT_RGB565 = "rgb565"; | |
| private static final String PIXEL_FORMAT_YUV420P = "yuv420p"; | |
| private static final String PIXEL_FORMAT_YUV420SP = "yuv420sp"; | |
| private static final String PIXEL_FORMAT_YUV422I = "yuv422i-yuyv"; | |
| private static final String PIXEL_FORMAT_YUV422SP = "yuv422sp"; | |
| public static final int PREVIEW_FPS_MAX_INDEX = 1; | |
| public static final int PREVIEW_FPS_MIN_INDEX = 0; | |
| public static final String SCENE_MODE_ACTION = "action"; | |
| public static final String SCENE_MODE_AUTO = "auto"; | |
| public static final String SCENE_MODE_BARCODE = "barcode"; | |
| public static final String SCENE_MODE_BEACH = "beach"; | |
| public static final String SCENE_MODE_CANDLELIGHT = "candlelight"; | |
| public static final String SCENE_MODE_FIREWORKS = "fireworks"; | |
| public static final String SCENE_MODE_HDR = "hdr"; | |
| public static final String SCENE_MODE_LANDSCAPE = "landscape"; | |
| public static final String SCENE_MODE_NIGHT = "night"; | |
| public static final String SCENE_MODE_NIGHT_PORTRAIT = "night-portrait"; | |
| public static final String SCENE_MODE_PARTY = "party"; | |
| public static final String SCENE_MODE_PORTRAIT = "portrait"; | |
| public static final String SCENE_MODE_SNOW = "snow"; | |
| public static final String SCENE_MODE_SPORTS = "sports"; | |
| public static final String SCENE_MODE_STEADYPHOTO = "steadyphoto"; | |
| public static final String SCENE_MODE_SUNSET = "sunset"; | |
| public static final String SCENE_MODE_THEATRE = "theatre"; | |
| private static final String SUPPORTED_VALUES_SUFFIX = "-values"; | |
| private static final String TRUE = "true"; | |
| public static final String WHITE_BALANCE_AUTO = "auto"; | |
| public static final String WHITE_BALANCE_CLOUDY_DAYLIGHT = "cloudy-daylight"; | |
| public static final String WHITE_BALANCE_DAYLIGHT = "daylight"; | |
| public static final String WHITE_BALANCE_FLUORESCENT = "fluorescent"; | |
| public static final String WHITE_BALANCE_INCANDESCENT = "incandescent"; | |
| public static final String WHITE_BALANCE_SHADE = "shade"; | |
| public static final String WHITE_BALANCE_TWILIGHT = "twilight"; | |
| public static final String WHITE_BALANCE_WARM_FLUORESCENT = "warm-fluorescent"; | |
| private final LinkedHashMap<String, String> mMap = new LinkedHashMap(64); | |
| private Parameters() {} | |
| private String cameraFormatForPixelFormat(int paramInt) | |
| { | |
| switch (paramInt) | |
| { | |
| default: | |
| return null; | |
| case 16: | |
| return "yuv422sp"; | |
| case 17: | |
| return "yuv420sp"; | |
| case 20: | |
| return "yuv422i-yuyv"; | |
| case 842094169: | |
| return "yuv420p"; | |
| case 4: | |
| return "rgb565"; | |
| } | |
| return "jpeg"; | |
| } | |
| private float getFloat(String paramString, float paramFloat) | |
| { | |
| try | |
| { | |
| float f = Float.parseFloat((String)this.mMap.get(paramString)); | |
| paramFloat = f; | |
| } | |
| catch (NumberFormatException paramString) | |
| { | |
| for (;;) | |
| { | |
| paramString = paramString; | |
| } | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| return paramFloat; | |
| } | |
| private int getInt(String paramString, int paramInt) | |
| { | |
| try | |
| { | |
| int i = Integer.parseInt((String)this.mMap.get(paramString)); | |
| paramInt = i; | |
| } | |
| catch (NumberFormatException paramString) | |
| { | |
| for (;;) | |
| { | |
| paramString = paramString; | |
| } | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| return paramInt; | |
| } | |
| private SecCamera getOuter() | |
| { | |
| return SecCamera.this; | |
| } | |
| private int pixelFormatForCameraFormat(String paramString) | |
| { | |
| if (paramString == null) {} | |
| do | |
| { | |
| return 0; | |
| if (paramString.equals("yuv422sp")) { | |
| return 16; | |
| } | |
| if (paramString.equals("yuv420sp")) { | |
| return 17; | |
| } | |
| if (paramString.equals("yuv422i-yuyv")) { | |
| return 20; | |
| } | |
| if (paramString.equals("yuv420p")) { | |
| return 842094169; | |
| } | |
| if (paramString.equals("rgb565")) { | |
| return 4; | |
| } | |
| } while (!paramString.equals("jpeg")); | |
| return 256; | |
| } | |
| private void put(String paramString1, String paramString2) | |
| { | |
| this.mMap.remove(paramString1); | |
| this.mMap.put(paramString1, paramString2); | |
| } | |
| private boolean same(String paramString1, String paramString2) | |
| { | |
| if ((paramString1 == null) && (paramString2 == null)) {} | |
| while ((paramString1 != null) && (paramString1.equals(paramString2))) { | |
| return true; | |
| } | |
| return false; | |
| } | |
| private void set(String paramString, List<SecCamera.Area> paramList) | |
| { | |
| if (paramList == null) {} | |
| try | |
| { | |
| set(paramString, "(0,0,0,0,0)"); | |
| return; | |
| } | |
| finally {} | |
| StringBuilder localStringBuilder = new StringBuilder(); | |
| int i = 0; | |
| for (;;) | |
| { | |
| if (i < paramList.size()) | |
| { | |
| SecCamera.Area localArea = (SecCamera.Area)paramList.get(i); | |
| Rect localRect = localArea.rect; | |
| localStringBuilder.append('('); | |
| localStringBuilder.append(localRect.left); | |
| localStringBuilder.append(','); | |
| localStringBuilder.append(localRect.top); | |
| localStringBuilder.append(','); | |
| localStringBuilder.append(localRect.right); | |
| localStringBuilder.append(','); | |
| localStringBuilder.append(localRect.bottom); | |
| localStringBuilder.append(','); | |
| localStringBuilder.append(localArea.weight); | |
| localStringBuilder.append(')'); | |
| if (i != paramList.size() - 1) { | |
| localStringBuilder.append(','); | |
| } | |
| } | |
| else | |
| { | |
| set(paramString, localStringBuilder.toString()); | |
| break; | |
| } | |
| i += 1; | |
| } | |
| } | |
| private ArrayList<String> split(String paramString) | |
| { | |
| if (paramString == null) | |
| { | |
| paramString = null; | |
| return paramString; | |
| } | |
| Object localObject = new TextUtils.SimpleStringSplitter(','); | |
| ((TextUtils.StringSplitter)localObject).setString(paramString); | |
| ArrayList localArrayList = new ArrayList(); | |
| localObject = ((TextUtils.StringSplitter)localObject).iterator(); | |
| for (;;) | |
| { | |
| paramString = localArrayList; | |
| if (!((Iterator)localObject).hasNext()) { | |
| break; | |
| } | |
| localArrayList.add((String)((Iterator)localObject).next()); | |
| } | |
| } | |
| private ArrayList<SecCamera.Area> splitArea(String paramString) | |
| { | |
| if ((paramString == null) || (paramString.charAt(0) != '(') || (paramString.charAt(paramString.length() - 1) != ')')) | |
| { | |
| Log.e("SecCamera-JNI-Java", "Invalid area string=" + paramString); | |
| paramString = null; | |
| } | |
| Object localObject; | |
| do | |
| { | |
| ArrayList localArrayList; | |
| Rect localRect; | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| do | |
| { | |
| return paramString; | |
| localArrayList = new ArrayList(); | |
| int i = 1; | |
| localObject = new int[5]; | |
| int j; | |
| do | |
| { | |
| int k = paramString.indexOf("),(", i); | |
| j = k; | |
| if (k == -1) { | |
| j = paramString.length() - 1; | |
| } | |
| splitInt(paramString.substring(i, j), (int[])localObject); | |
| localArrayList.add(new SecCamera.Area(new Rect(localObject[0], localObject[1], localObject[2], localObject[3]), localObject[4])); | |
| i = j + 3; | |
| } while (j != paramString.length() - 1); | |
| if (localArrayList.size() == 0) { | |
| return null; | |
| } | |
| paramString = localArrayList; | |
| } while (localArrayList.size() != 1); | |
| localObject = (SecCamera.Area)localArrayList.get(0); | |
| localRect = ((SecCamera.Area)localObject).rect; | |
| paramString = localArrayList; | |
| } while (localRect.left != 0); | |
| paramString = localArrayList; | |
| } while (localRect.top != 0); | |
| paramString = localArrayList; | |
| } while (localRect.right != 0); | |
| paramString = localArrayList; | |
| } while (localRect.bottom != 0); | |
| paramString = localArrayList; | |
| } while (((SecCamera.Area)localObject).weight != 0); | |
| return null; | |
| } | |
| private void splitFloat(String paramString, float[] paramArrayOfFloat) | |
| { | |
| if (paramString == null) {} | |
| for (;;) | |
| { | |
| return; | |
| TextUtils.SimpleStringSplitter localSimpleStringSplitter = new TextUtils.SimpleStringSplitter(','); | |
| localSimpleStringSplitter.setString(paramString); | |
| int i = 0; | |
| paramString = localSimpleStringSplitter.iterator(); | |
| while (paramString.hasNext()) | |
| { | |
| paramArrayOfFloat[i] = Float.parseFloat((String)paramString.next()); | |
| i += 1; | |
| } | |
| } | |
| } | |
| private ArrayList<Integer> splitInt(String paramString) | |
| { | |
| if (paramString == null) { | |
| paramString = null; | |
| } | |
| ArrayList localArrayList; | |
| do | |
| { | |
| return paramString; | |
| TextUtils.SimpleStringSplitter localSimpleStringSplitter = new TextUtils.SimpleStringSplitter(','); | |
| localSimpleStringSplitter.setString(paramString); | |
| localArrayList = new ArrayList(); | |
| paramString = localSimpleStringSplitter.iterator(); | |
| while (paramString.hasNext()) { | |
| localArrayList.add(Integer.valueOf(Integer.parseInt((String)paramString.next()))); | |
| } | |
| paramString = localArrayList; | |
| } while (localArrayList.size() != 0); | |
| return null; | |
| } | |
| private void splitInt(String paramString, int[] paramArrayOfInt) | |
| { | |
| if (paramString == null) {} | |
| for (;;) | |
| { | |
| return; | |
| TextUtils.SimpleStringSplitter localSimpleStringSplitter = new TextUtils.SimpleStringSplitter(','); | |
| localSimpleStringSplitter.setString(paramString); | |
| int i = 0; | |
| paramString = localSimpleStringSplitter.iterator(); | |
| while (paramString.hasNext()) | |
| { | |
| paramArrayOfInt[i] = Integer.parseInt((String)paramString.next()); | |
| i += 1; | |
| } | |
| } | |
| } | |
| private ArrayList<int[]> splitRange(String paramString) | |
| { | |
| if ((paramString == null) || (paramString.charAt(0) != '(') || (paramString.charAt(paramString.length() - 1) != ')')) | |
| { | |
| Log.e("SecCamera-JNI-Java", "Invalid range list string=" + paramString); | |
| paramString = null; | |
| } | |
| ArrayList localArrayList; | |
| do | |
| { | |
| return paramString; | |
| localArrayList = new ArrayList(); | |
| int i = 1; | |
| int j; | |
| do | |
| { | |
| int[] arrayOfInt = new int[2]; | |
| int k = paramString.indexOf("),(", i); | |
| j = k; | |
| if (k == -1) { | |
| j = paramString.length() - 1; | |
| } | |
| splitInt(paramString.substring(i, j), arrayOfInt); | |
| localArrayList.add(arrayOfInt); | |
| i = j + 3; | |
| } while (j != paramString.length() - 1); | |
| paramString = localArrayList; | |
| } while (localArrayList.size() != 0); | |
| return null; | |
| } | |
| private ArrayList<SecCamera.Size> splitSize(String paramString) | |
| { | |
| if (paramString == null) { | |
| paramString = null; | |
| } | |
| ArrayList localArrayList; | |
| do | |
| { | |
| return paramString; | |
| Object localObject = new TextUtils.SimpleStringSplitter(','); | |
| ((TextUtils.StringSplitter)localObject).setString(paramString); | |
| localArrayList = new ArrayList(); | |
| paramString = ((TextUtils.StringSplitter)localObject).iterator(); | |
| while (paramString.hasNext()) | |
| { | |
| localObject = strToSize((String)paramString.next()); | |
| if (localObject != null) { | |
| localArrayList.add(localObject); | |
| } | |
| } | |
| paramString = localArrayList; | |
| } while (localArrayList.size() != 0); | |
| return null; | |
| } | |
| private SecCamera.Size strToSize(String paramString) | |
| { | |
| if (paramString == null) { | |
| return null; | |
| } | |
| int i = paramString.indexOf('x'); | |
| if (i != -1) | |
| { | |
| String str = paramString.substring(0, i); | |
| paramString = paramString.substring(i + 1); | |
| return new SecCamera.Size(SecCamera.this, Integer.parseInt(str), Integer.parseInt(paramString)); | |
| } | |
| Log.e("SecCamera-JNI-Java", "Invalid size parameter string=" + paramString); | |
| return null; | |
| } | |
| public void copyFrom(Parameters paramParameters) | |
| { | |
| if (paramParameters == null) { | |
| throw new NullPointerException("other must not be null"); | |
| } | |
| this.mMap.putAll(paramParameters.mMap); | |
| } | |
| @Deprecated | |
| public void dump() | |
| { | |
| try | |
| { | |
| Log.e("SecCamera-JNI-Java", "dump: size=" + this.mMap.size()); | |
| Iterator localIterator = this.mMap.keySet().iterator(); | |
| while (localIterator.hasNext()) | |
| { | |
| String str = (String)localIterator.next(); | |
| Log.e("SecCamera-JNI-Java", "dump: " + str + "=" + (String)this.mMap.get(str)); | |
| } | |
| } | |
| finally {} | |
| } | |
| public String flatten() | |
| { | |
| try | |
| { | |
| StringBuilder localStringBuilder = new StringBuilder(128); | |
| Iterator localIterator = this.mMap.keySet().iterator(); | |
| while (localIterator.hasNext()) | |
| { | |
| String str2 = (String)localIterator.next(); | |
| localStringBuilder.append(str2); | |
| localStringBuilder.append("="); | |
| localStringBuilder.append((String)this.mMap.get(str2)); | |
| localStringBuilder.append(";"); | |
| } | |
| ((StringBuilder)localObject).deleteCharAt(((StringBuilder)localObject).length() - 1); | |
| } | |
| finally {} | |
| String str1 = ((StringBuilder)localObject).toString(); | |
| return str1; | |
| } | |
| public String get(String paramString) | |
| { | |
| try | |
| { | |
| paramString = (String)this.mMap.get(paramString); | |
| return paramString; | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| } | |
| public String getAntibanding() | |
| { | |
| return get("antibanding"); | |
| } | |
| public boolean getAutoExposureLock() | |
| { | |
| return "true".equals(get("auto-exposure-lock")); | |
| } | |
| public boolean getAutoWhiteBalanceLock() | |
| { | |
| return "true".equals(get("auto-whitebalance-lock")); | |
| } | |
| public String getColorEffect() | |
| { | |
| return get("effect"); | |
| } | |
| public int getExposureCompensation() | |
| { | |
| return getInt("exposure-compensation", 0); | |
| } | |
| public float getExposureCompensationStep() | |
| { | |
| return getFloat("exposure-compensation-step", 0.0F); | |
| } | |
| public String getFlashMode() | |
| { | |
| return get("flash-mode"); | |
| } | |
| public float getFocalLength() | |
| { | |
| return Float.parseFloat(get("focal-length")); | |
| } | |
| public List<SecCamera.Area> getFocusAreas() | |
| { | |
| return splitArea(get("focus-areas")); | |
| } | |
| public void getFocusDistances(float[] paramArrayOfFloat) | |
| { | |
| if ((paramArrayOfFloat == null) || (paramArrayOfFloat.length != 3)) { | |
| throw new IllegalArgumentException("output must be a float array with three elements."); | |
| } | |
| splitFloat(get("focus-distances"), paramArrayOfFloat); | |
| } | |
| public String getFocusMode() | |
| { | |
| return get("focus-mode"); | |
| } | |
| public float getHorizontalViewAngle() | |
| { | |
| return Float.parseFloat(get("horizontal-view-angle")); | |
| } | |
| public int getInt(String paramString) | |
| { | |
| try | |
| { | |
| int i = Integer.parseInt((String)this.mMap.get(paramString)); | |
| return i; | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| } | |
| public int getJpegQuality() | |
| { | |
| return getInt("jpeg-quality"); | |
| } | |
| public int getJpegThumbnailQuality() | |
| { | |
| return getInt("jpeg-thumbnail-quality"); | |
| } | |
| public SecCamera.Size getJpegThumbnailSize() | |
| { | |
| return new SecCamera.Size(SecCamera.this, getInt("jpeg-thumbnail-width"), getInt("jpeg-thumbnail-height")); | |
| } | |
| public int getMaxExposureCompensation() | |
| { | |
| return getInt("max-exposure-compensation", 0); | |
| } | |
| public int getMaxNumDetectedFaces() | |
| { | |
| return getInt("max-num-detected-faces-hw", 0); | |
| } | |
| public int getMaxNumFocusAreas() | |
| { | |
| return getInt("max-num-focus-areas", 0); | |
| } | |
| public int getMaxNumMeteringAreas() | |
| { | |
| return getInt("max-num-metering-areas", 0); | |
| } | |
| public int getMaxZoom() | |
| { | |
| return getInt("max-zoom", 0); | |
| } | |
| public List<SecCamera.Area> getMeteringAreas() | |
| { | |
| return splitArea(get("metering-areas")); | |
| } | |
| public int getMinExposureCompensation() | |
| { | |
| return getInt("min-exposure-compensation", 0); | |
| } | |
| public int getPictureFormat() | |
| { | |
| return pixelFormatForCameraFormat(get("picture-format")); | |
| } | |
| public SecCamera.Size getPictureSize() | |
| { | |
| return strToSize(get("picture-size")); | |
| } | |
| public SecCamera.Size getPreferredPreviewSizeForVideo() | |
| { | |
| return strToSize(get("preferred-preview-size-for-video")); | |
| } | |
| public int getPreviewFormat() | |
| { | |
| return pixelFormatForCameraFormat(get("preview-format")); | |
| } | |
| public void getPreviewFpsRange(int[] paramArrayOfInt) | |
| { | |
| if ((paramArrayOfInt == null) || (paramArrayOfInt.length != 2)) { | |
| throw new IllegalArgumentException("range must be an array with two elements."); | |
| } | |
| splitInt(get("preview-fps-range"), paramArrayOfInt); | |
| } | |
| @Deprecated | |
| public int getPreviewFrameRate() | |
| { | |
| return getInt("preview-frame-rate"); | |
| } | |
| public SecCamera.Size getPreviewSize() | |
| { | |
| return strToSize(get("preview-size")); | |
| } | |
| public String getSceneMode() | |
| { | |
| return get("scene-mode"); | |
| } | |
| public List<String> getSupportedAntibanding() | |
| { | |
| return split(get("antibanding-values")); | |
| } | |
| public List<String> getSupportedColorEffects() | |
| { | |
| return split(get("effect-values")); | |
| } | |
| public List<String> getSupportedFlashModes() | |
| { | |
| return split(get("flash-mode-values")); | |
| } | |
| public List<String> getSupportedFocusModes() | |
| { | |
| return split(get("focus-mode-values")); | |
| } | |
| public List<SecCamera.Size> getSupportedJpegThumbnailSizes() | |
| { | |
| return splitSize(get("jpeg-thumbnail-size-values")); | |
| } | |
| public List<Integer> getSupportedPictureFormats() | |
| { | |
| Object localObject = get("picture-format-values"); | |
| ArrayList localArrayList = new ArrayList(); | |
| localObject = split((String)localObject).iterator(); | |
| while (((Iterator)localObject).hasNext()) | |
| { | |
| int i = pixelFormatForCameraFormat((String)((Iterator)localObject).next()); | |
| if (i != 0) { | |
| localArrayList.add(Integer.valueOf(i)); | |
| } | |
| } | |
| return localArrayList; | |
| } | |
| public List<SecCamera.Size> getSupportedPictureSizes() | |
| { | |
| return splitSize(get("picture-size-values")); | |
| } | |
| public List<Integer> getSupportedPreviewFormats() | |
| { | |
| Object localObject = get("preview-format-values"); | |
| ArrayList localArrayList = new ArrayList(); | |
| localObject = split((String)localObject).iterator(); | |
| while (((Iterator)localObject).hasNext()) | |
| { | |
| int i = pixelFormatForCameraFormat((String)((Iterator)localObject).next()); | |
| if (i != 0) { | |
| localArrayList.add(Integer.valueOf(i)); | |
| } | |
| } | |
| return localArrayList; | |
| } | |
| public List<int[]> getSupportedPreviewFpsRange() | |
| { | |
| return splitRange(get("preview-fps-range-values")); | |
| } | |
| @Deprecated | |
| public List<Integer> getSupportedPreviewFrameRates() | |
| { | |
| return splitInt(get("preview-frame-rate-values")); | |
| } | |
| public List<SecCamera.Size> getSupportedPreviewSizes() | |
| { | |
| return splitSize(get("preview-size-values")); | |
| } | |
| public List<String> getSupportedSceneModes() | |
| { | |
| return split(get("scene-mode-values")); | |
| } | |
| public List<SecCamera.Size> getSupportedVideoSizes() | |
| { | |
| return splitSize(get("video-size-values")); | |
| } | |
| public List<String> getSupportedWhiteBalance() | |
| { | |
| return split(get("whitebalance-values")); | |
| } | |
| public float getVerticalViewAngle() | |
| { | |
| return Float.parseFloat(get("vertical-view-angle")); | |
| } | |
| public boolean getVideoStabilization() | |
| { | |
| return "true".equals(get("video-stabilization")); | |
| } | |
| public String getWhiteBalance() | |
| { | |
| return get("whitebalance"); | |
| } | |
| public int getZoom() | |
| { | |
| return getInt("zoom", 0); | |
| } | |
| public List<Integer> getZoomRatios() | |
| { | |
| return splitInt(get("zoom-ratios")); | |
| } | |
| public boolean isAutoExposureLockSupported() | |
| { | |
| return "true".equals(get("auto-exposure-lock-supported")); | |
| } | |
| public boolean isAutoWhiteBalanceLockSupported() | |
| { | |
| return "true".equals(get("auto-whitebalance-lock-supported")); | |
| } | |
| public boolean isSmoothZoomSupported() | |
| { | |
| return "true".equals(get("smooth-zoom-supported")); | |
| } | |
| public boolean isVideoSnapshotSupported() | |
| { | |
| return "true".equals(get("video-snapshot-supported")); | |
| } | |
| public boolean isVideoStabilizationSupported() | |
| { | |
| return "true".equals(get("video-stabilization-supported")); | |
| } | |
| public boolean isZoomSupported() | |
| { | |
| return "true".equals(get("zoom-supported")); | |
| } | |
| public void remove(String paramString) | |
| { | |
| try | |
| { | |
| this.mMap.remove(paramString); | |
| return; | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| } | |
| public void removeGpsData() | |
| { | |
| remove("gps-latitude"); | |
| remove("gps-longitude"); | |
| remove("gps-altitude"); | |
| remove("gps-timestamp"); | |
| remove("gps-processing-method"); | |
| } | |
| public boolean same(Parameters paramParameters) | |
| { | |
| if (this == paramParameters) {} | |
| while ((paramParameters != null) && (this.mMap.equals(paramParameters.mMap))) { | |
| return true; | |
| } | |
| return false; | |
| } | |
| public void set(String paramString, int paramInt) | |
| { | |
| try | |
| { | |
| put(paramString, Integer.toString(paramInt)); | |
| return; | |
| } | |
| finally | |
| { | |
| paramString = finally; | |
| throw paramString; | |
| } | |
| } | |
| public void set(String paramString1, String paramString2) | |
| { | |
| for (;;) | |
| { | |
| try | |
| { | |
| if ((paramString1.indexOf('=') != -1) || (paramString1.indexOf(';') != -1) || (paramString1.indexOf(0) != -1)) | |
| { | |
| Log.e("SecCamera-JNI-Java", "Key \"" + paramString1 + "\" contains invalid character (= or ; or \\0)"); | |
| return; | |
| } | |
| if ((paramString2.indexOf('=') != -1) || (paramString2.indexOf(';') != -1) || (paramString2.indexOf(0) != -1)) { | |
| Log.e("SecCamera-JNI-Java", "Value \"" + paramString2 + "\" contains invalid character (= or ; or \\0)"); | |
| } else { | |
| put(paramString1, paramString2); | |
| } | |
| } | |
| finally {} | |
| } | |
| } | |
| public void setAntibanding(String paramString) | |
| { | |
| set("antibanding", paramString); | |
| } | |
| public void setAutoExposureLock(boolean paramBoolean) | |
| { | |
| if (paramBoolean) {} | |
| for (String str = "true";; str = "false") | |
| { | |
| set("auto-exposure-lock", str); | |
| return; | |
| } | |
| } | |
| public void setAutoWhiteBalanceLock(boolean paramBoolean) | |
| { | |
| if (paramBoolean) {} | |
| for (String str = "true";; str = "false") | |
| { | |
| set("auto-whitebalance-lock", str); | |
| return; | |
| } | |
| } | |
| public void setCityId(long paramLong) | |
| { | |
| set("contextualtag-cityid", Long.toString(paramLong)); | |
| } | |
| public void setColorEffect(String paramString) | |
| { | |
| set("effect", paramString); | |
| } | |
| public void setExposureCompensation(int paramInt) | |
| { | |
| set("exposure-compensation", paramInt); | |
| } | |
| public void setFlashMode(String paramString) | |
| { | |
| set("flash-mode", paramString); | |
| } | |
| public void setFocusAreas(List<SecCamera.Area> paramList) | |
| { | |
| set("focus-areas", paramList); | |
| } | |
| public void setFocusMode(String paramString) | |
| { | |
| set("focus-mode", paramString); | |
| } | |
| public void setGpsAltitude(double paramDouble) | |
| { | |
| set("gps-altitude", Double.toString(paramDouble)); | |
| } | |
| public void setGpsLatitude(double paramDouble) | |
| { | |
| set("gps-latitude", Double.toString(paramDouble)); | |
| } | |
| public void setGpsLongitude(double paramDouble) | |
| { | |
| set("gps-longitude", Double.toString(paramDouble)); | |
| } | |
| public void setGpsProcessingMethod(String paramString) | |
| { | |
| set("gps-processing-method", paramString); | |
| } | |
| public void setGpsTimestamp(long paramLong) | |
| { | |
| set("gps-timestamp", Long.toString(paramLong)); | |
| } | |
| public void setJpegQuality(int paramInt) | |
| { | |
| set("jpeg-quality", paramInt); | |
| } | |
| public void setJpegThumbnailQuality(int paramInt) | |
| { | |
| set("jpeg-thumbnail-quality", paramInt); | |
| } | |
| public void setJpegThumbnailSize(int paramInt1, int paramInt2) | |
| { | |
| set("jpeg-thumbnail-width", paramInt1); | |
| set("jpeg-thumbnail-height", paramInt2); | |
| } | |
| public void setMeteringAreas(List<SecCamera.Area> paramList) | |
| { | |
| set("metering-areas", paramList); | |
| } | |
| public void setPictureFormat(int paramInt) | |
| { | |
| String str = cameraFormatForPixelFormat(paramInt); | |
| if (str == null) { | |
| throw new IllegalArgumentException("Invalid pixel_format=" + paramInt); | |
| } | |
| set("picture-format", str); | |
| } | |
| public void setPictureSize(int paramInt1, int paramInt2) | |
| { | |
| set("picture-size", Integer.toString(paramInt1) + "x" + Integer.toString(paramInt2)); | |
| } | |
| public void setPreviewFormat(int paramInt) | |
| { | |
| String str = cameraFormatForPixelFormat(paramInt); | |
| if (str == null) { | |
| throw new IllegalArgumentException("Invalid pixel_format=" + paramInt); | |
| } | |
| set("preview-format", str); | |
| } | |
| public void setPreviewFpsRange(int paramInt1, int paramInt2) | |
| { | |
| set("preview-fps-range", "" + paramInt1 + "," + paramInt2); | |
| } | |
| @Deprecated | |
| public void setPreviewFrameRate(int paramInt) | |
| { | |
| set("preview-frame-rate", paramInt); | |
| } | |
| public void setPreviewSize(int paramInt1, int paramInt2) | |
| { | |
| set("preview-size", Integer.toString(paramInt1) + "x" + Integer.toString(paramInt2)); | |
| } | |
| public void setRecordingHint(boolean paramBoolean) | |
| { | |
| if (paramBoolean) {} | |
| for (String str = "true";; str = "false") | |
| { | |
| set("recording-hint", str); | |
| return; | |
| } | |
| } | |
| public void setRotation(int paramInt) | |
| { | |
| if ((paramInt == 0) || (paramInt == 90) || (paramInt == 180) || (paramInt == 270)) | |
| { | |
| set("rotation", Integer.toString(paramInt)); | |
| return; | |
| } | |
| throw new IllegalArgumentException("Invalid rotation=" + paramInt); | |
| } | |
| public void setSceneMode(String paramString) | |
| { | |
| set("scene-mode", paramString); | |
| } | |
| public void setVideoStabilization(boolean paramBoolean) | |
| { | |
| if (paramBoolean) {} | |
| for (String str = "true";; str = "false") | |
| { | |
| set("video-stabilization", str); | |
| return; | |
| } | |
| } | |
| public void setWeather(int paramInt) | |
| { | |
| set("contextualtag-weather", paramInt); | |
| } | |
| public void setWhiteBalance(String paramString) | |
| { | |
| if (same(paramString, get("whitebalance"))) { | |
| return; | |
| } | |
| set("whitebalance", paramString); | |
| set("auto-whitebalance-lock", "false"); | |
| } | |
| public void setZoom(int paramInt) | |
| { | |
| set("zoom", paramInt); | |
| } | |
| public void unflatten(String paramString) | |
| { | |
| try | |
| { | |
| this.mMap.clear(); | |
| Object localObject = new TextUtils.SimpleStringSplitter(';'); | |
| ((TextUtils.StringSplitter)localObject).setString(paramString); | |
| paramString = ((TextUtils.StringSplitter)localObject).iterator(); | |
| while (paramString.hasNext()) | |
| { | |
| String str = (String)paramString.next(); | |
| int i = str.indexOf('='); | |
| if (i != -1) | |
| { | |
| localObject = str.substring(0, i); | |
| str = str.substring(i + 1); | |
| this.mMap.put(localObject, str); | |
| } | |
| } | |
| } | |
| finally {} | |
| } | |
| } | |
| public static abstract interface PhaseAFCallback | |
| { | |
| public abstract void onPhaseAF(short paramShort1, short paramShort2, short paramShort3, short paramShort4, short paramShort5); | |
| } | |
| public static abstract interface PictureCallback | |
| { | |
| public abstract void onPictureTaken(byte[] paramArrayOfByte, SecCamera paramSecCamera); | |
| } | |
| public static abstract interface PreviewCallback | |
| { | |
| public abstract void onPreviewFrame(byte[] paramArrayOfByte, SecCamera paramSecCamera); | |
| } | |
| public static abstract interface SecImageEffectListner | |
| { | |
| public abstract void EffectShotCreatingCompleted(boolean paramBoolean); | |
| public abstract void EffectShotCreatingProgress(int paramInt); | |
| public abstract void EffectShotCreatingStarted(); | |
| } | |
| public static abstract interface SecImagingEventListener | |
| { | |
| public abstract void onSecImagingString(String paramString); | |
| } | |
| public static abstract interface SelectiveFocusEventListener | |
| { | |
| public abstract void onSelectiveFocusCaptureProgress(int paramInt1, int paramInt2); | |
| public abstract void onSelectiveFocusComplete(int paramInt); | |
| public abstract void onSelectiveFocusProcessProgress(int paramInt1, int paramInt2); | |
| } | |
| public static abstract interface SelfieDetectionListener | |
| { | |
| public abstract void onHeadPoseDetected(byte[] paramArrayOfByte); | |
| public abstract void onPalmDetected(); | |
| public abstract void onSmileDetected(); | |
| public abstract void onWinkDetected(); | |
| } | |
| public static abstract interface ShotAndMoreEventListener | |
| { | |
| public abstract void onShotAndMoreApplicableMode(int paramInt); | |
| public abstract void onShotAndMoreCaptureProgress(int paramInt1, int paramInt2); | |
| public abstract void onShotAndMoreComplete(); | |
| public abstract void onShotAndMoreProcessProgress(int paramInt1, int paramInt2); | |
| } | |
| public static abstract interface ShutterCallback | |
| { | |
| public abstract void onShutter(); | |
| } | |
| public class Size | |
| { | |
| public int height; | |
| public int width; | |
| public Size(int paramInt1, int paramInt2) | |
| { | |
| this.width = paramInt1; | |
| this.height = paramInt2; | |
| } | |
| public boolean equals(Object paramObject) | |
| { | |
| if (!(paramObject instanceof Size)) {} | |
| do | |
| { | |
| return false; | |
| paramObject = (Size)paramObject; | |
| } while ((this.width != ((Size)paramObject).width) || (this.height != ((Size)paramObject).height)); | |
| return true; | |
| } | |
| public int hashCode() | |
| { | |
| return this.width * 32713 + this.height; | |
| } | |
| } | |
| public static abstract interface UltraWideSelfieEventListener | |
| { | |
| public abstract void onUltraWideSelfieCaptured(); | |
| public abstract void onUltraWideSelfieCapturedMaxFrames(); | |
| public abstract void onUltraWideSelfieCapturedNew(); | |
| public abstract void onUltraWideSelfieDirectionChanged(int paramInt); | |
| public abstract void onUltraWideSelfieError(int paramInt); | |
| public abstract void onUltraWideSelfieLivePreviewData(byte[] paramArrayOfByte); | |
| public abstract void onUltraWideSelfieLowResolutionData(byte[] paramArrayOfByte); | |
| public abstract void onUltraWideSelfieMoveSlowly(); | |
| public abstract void onUltraWideSelfieNextCapturePosition(int paramInt1, int paramInt2); | |
| public abstract void onUltraWideSelfieProgressStitching(int paramInt); | |
| public abstract void onUltraWideSelfieRectChanged(byte[] paramArrayOfByte); | |
| public abstract void onUltraWideSelfieSingleCaptureDone(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment