1 /* 2 * Copyright (C) Texas Instruments - http://www.ti.com/ 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @file OMXDefaults.cpp 19 * 20 * This file contains definitions are OMX Camera defaults 21 * 22 */ 23 24 #include "CameraHal.h" 25 #include "OMXCameraAdapter.h" 26 27 namespace Ti { 28 namespace Camera { 29 30 #define __STRINGIFY(s) __STRING(s) 31 32 // OMX Camera defaults 33 const char OMXCameraAdapter::DEFAULT_ANTIBANDING[] = "auto"; 34 const char OMXCameraAdapter::DEFAULT_BRIGHTNESS[] = "50"; 35 const char OMXCameraAdapter::DEFAULT_CONTRAST[] = "100"; 36 const char OMXCameraAdapter::DEFAULT_EFFECT[] = "none"; 37 const char OMXCameraAdapter::DEFAULT_EV_COMPENSATION[] = "0"; 38 const char OMXCameraAdapter::DEFAULT_EV_STEP[] = "0.1"; 39 const char OMXCameraAdapter::DEFAULT_EXPOSURE_MODE[] = "auto"; 40 const char OMXCameraAdapter::DEFAULT_FLASH_MODE[] = "off"; 41 const char OMXCameraAdapter::DEFAULT_FOCUS_MODE_PREFERRED[] = "auto"; 42 const char OMXCameraAdapter::DEFAULT_FOCUS_MODE[] = "infinity"; 43 const char OMXCameraAdapter::DEFAULT_IPP[] = "ldc-nsf"; 44 const char OMXCameraAdapter::DEFAULT_ISO_MODE[] = "auto"; 45 const char OMXCameraAdapter::DEFAULT_JPEG_QUALITY[] = "95"; 46 const char OMXCameraAdapter::DEFAULT_THUMBNAIL_QUALITY[] = "60"; 47 const char OMXCameraAdapter::DEFAULT_THUMBNAIL_SIZE[] = "160x120"; 48 const char OMXCameraAdapter::DEFAULT_PICTURE_FORMAT[] = "jpeg"; 49 const char OMXCameraAdapter::DEFAULT_S3D_PICTURE_LAYOUT[] = "tb-full"; 50 const char OMXCameraAdapter::DEFAULT_PICTURE_SIZE[] = "320x240"; 51 const char OMXCameraAdapter::DEFAULT_PICTURE_SS_SIZE[] = "640x240"; 52 const char OMXCameraAdapter::DEFAULT_PICTURE_TB_SIZE[] = "320x480"; 53 const char OMXCameraAdapter::DEFAULT_PREVIEW_FORMAT[] = "yuv420sp"; 54 const char OMXCameraAdapter::DEFAULT_FRAMERATE[] = "30"; 55 const char OMXCameraAdapter::DEFAULT_S3D_PREVIEW_LAYOUT[] = "tb-subsampled"; 56 const char OMXCameraAdapter::DEFAULT_PREVIEW_SIZE[] = "640x480"; 57 const char OMXCameraAdapter::DEFAULT_PREVIEW_SS_SIZE[] = "1280x480"; 58 const char OMXCameraAdapter::DEFAULT_PREVIEW_TB_SIZE[] = "640x960"; 59 const char OMXCameraAdapter::DEFAULT_NUM_PREV_BUFS[] = "6"; 60 const char OMXCameraAdapter::DEFAULT_NUM_PIC_BUFS[] = "1"; 61 const char OMXCameraAdapter::DEFAULT_SATURATION[] = "100"; 62 const char OMXCameraAdapter::DEFAULT_SCENE_MODE[] = "auto"; 63 const char OMXCameraAdapter::DEFAULT_SHARPNESS[] = "100"; 64 const char * OMXCameraAdapter::DEFAULT_VSTAB = android::CameraParameters::FALSE; 65 const char * OMXCameraAdapter::DEFAULT_VNF = android::CameraParameters::FALSE; 66 const char OMXCameraAdapter::DEFAULT_WB[] = "auto"; 67 const char OMXCameraAdapter::DEFAULT_ZOOM[] = "0"; 68 const char OMXCameraAdapter::DEFAULT_MAX_FD_HW_FACES[] = __STRINGIFY(MAX_NUM_FACES_SUPPORTED); 69 const char OMXCameraAdapter::DEFAULT_MAX_FD_SW_FACES[] = "0"; 70 const char OMXCameraAdapter::DEFAULT_HOR_ANGLE[] = "54.8"; 71 const char OMXCameraAdapter::DEFAULT_VER_ANGLE[] = "42.5"; 72 const char * OMXCameraAdapter::DEFAULT_AE_LOCK = android::CameraParameters::FALSE; 73 const char * OMXCameraAdapter::DEFAULT_AWB_LOCK = android::CameraParameters::FALSE; 74 const char OMXCameraAdapter::DEFAULT_VIDEO_SIZE[] = "1920x1080"; 75 const char OMXCameraAdapter::DEFAULT_SENSOR_ORIENTATION[] = "0"; 76 const char OMXCameraAdapter::DEFAULT_AUTOCONVERGENCE_MODE[] = "frame"; 77 const char OMXCameraAdapter::DEFAULT_MANUAL_CONVERGENCE[] = "0"; 78 const char * OMXCameraAdapter::DEFAULT_MECHANICAL_MISALIGNMENT_CORRECTION_MODE = android::CameraParameters::TRUE; 79 const char OMXCameraAdapter::DEFAULT_EXIF_MAKE[] = "default_make"; 80 const char OMXCameraAdapter::DEFAULT_EXIF_MODEL[] = "default_model"; 81 82 } // namespace Camera 83 } // namespace Ti 84