Files » CCT_Connect_Sub_Camera.patch
vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt8167/acdk/inc/acdk/AcdkMain.h (working copy) | ||
---|---|---|
85 | 85 |
#include <mtkcam/camshot/ISingleShot.h> |
86 | 86 |
#include <mtkcam/drv/res_mgr_drv.h> |
87 | 87 |
|
88 |
extern MBOOL g_bMainSensorSupport; |
|
88 | 89 |
|
89 | 90 |
using namespace NS3A; |
90 | 91 |
using namespace NSCamShot; |
vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt8167/acdk/src/acdk/AcdkMain.cpp (working copy) | ||
---|---|---|
1006 | 1006 |
// set Main as default |
1007 | 1007 |
if(mSensorDev == SENSOR_DEV_NONE) |
1008 | 1008 |
{ |
1009 |
mSensorDev = SENSOR_DEV_MAIN; |
|
1010 |
mSensorVFlip = 0; |
|
1011 |
mSensorHFlip = 0; |
|
1009 |
if(mSupportedSensorDev & SENSOR_DEV_MAIN) |
|
1010 |
{// set Main as default if support main |
|
1011 |
g_bMainSensorSupport = TRUE; |
|
1012 |
mSensorDev = SENSOR_DEV_MAIN; |
|
1013 |
mSensorVFlip = 0; |
|
1014 |
mSensorHFlip = 0; |
|
1015 |
} |
|
1016 |
else |
|
1017 |
{ |
|
1018 |
g_bMainSensorSupport = FALSE; |
|
1019 |
mSensorDev = SENSOR_DEV_SUB; |
|
1020 |
mSensorVFlip = 0; |
|
1021 |
mSensorHFlip = 1; |
|
1022 |
} |
|
1012 | 1023 |
} |
1013 | 1024 |
|
1014 | 1025 |
// set current sensor type |
vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt8167/core/featureio/pipe/aaa/cameratool/CCAP/Meta_CCAP_Para.cpp (working copy) | ||
---|---|---|
127 | 127 |
|
128 | 128 |
static int g_hw_preview_support = 0; |
129 | 129 |
static MBOOL m_TSF_on = MFALSE; |
130 |
MBOOL g_bMainSensorSupport = TRUE; |
|
130 | 131 |
static FT_CCT_STATE_MACHINE g_FT_CCT_StateMachine = |
131 | 132 |
{ |
132 | 133 |
// is init |
... | ... | |
9046 | 9047 |
goto Exit; |
9047 | 9048 |
} |
9048 | 9049 |
ACDK_LOGD("Mdk_Init() in META_CCAP_init 2"); |
9050 |
|
|
9051 |
if(!g_bMainSensorSupport) |
|
9052 |
{ |
|
9053 |
g_FT_CCT_StateMachine.src_device_mode = 2;//change to sub sensor if not support main sensor |
|
9054 |
} |
|
9055 |
|
|
9049 | 9056 |
if (CctIF_Init(g_FT_CCT_StateMachine.src_device_mode) == FALSE) |
9050 | 9057 |
{ |
9051 | 9058 |
ACDK_LOGE("CctIF_Init() Fail "); |