MT6580 Android_8.1 消除奇偶帧隔行扫描抖动

MT6580/MT6739 Android_8.1 消除奇偶帧隔行扫描抖动


MT6580修改文件: ./vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt6580/hal/sensor/seninf_drv.cpp

int SeninfDrvImp::setTg1ViewFinderMode(
    unsigned long spMode
)
{
    int ret = 0;
    isp_reg_t *pisp = (isp_reg_t *) mpIspHwRegAddr;

    LOG_MSG("[setTg1ViewFinderMode] \n");
    //
    ISP_BITS(pisp, CAM_TG_SEN_MODE, CMOS_EN) = 1;
    ISP_BITS(pisp, CAM_TG_SEN_MODE, SOT_MODE) = 1;

    ISP_BITS(pisp, CAM_TG_VF_CON, SPDELAY_MODE) = 1;
    ISP_BITS(pisp, CAM_TG_VF_CON, SINGLE_MODE) = spMode;
    //ISP_BITS(pisp, CAM_TG_VF_CON, SP_DELAY) = spDelay;
	
	//消除隔行扫描抖动
    ISP_BITS(pisp, CAM_TG_VF_CON, FR_CON) = 0x01;

    return ret;
}

MT6739修改文件: ./vendor/mediatek/proprietary/hardware/mtkcam/drv/src/sensor/mt6739/seninf_drv.cpp

int SeninfDrvImp::setTgViewFinderMode(
    unsigned int tgSel, unsigned long spMode
)
{
    int ret = 0;
    //isp_reg_t *pisp = (isp_reg_t *) mpIspHwRegAddr;
    isp_reg_t *pisp = (isp_reg_t *) mpIspHwRegBaseAddr[tgSel];

    LOG_MSG("[setTgViewFinderMode](%u) sp mode = %lu\n", tgSel, spMode);

    ISP_BITS(pisp, CAM_TG_SEN_MODE, CMOS_EN) = 1;
    ISP_BITS(pisp, CAM_TG_SEN_MODE, SOT_MODE) = 1;

    ISP_BITS(pisp, CAM_TG_VF_CON, SPDELAY_MODE) = 1;
    ISP_BITS(pisp, CAM_TG_VF_CON, SINGLE_MODE) = spMode;
    //ISP_BITS(pisp, CAM_TG_VF_CON, SP_DELAY) = spDelay;

	//消除隔行扫描抖动
	ISP_BITS(pisp, CAM_TG_VF_CON, FR_CON) = 0x01;

    return ret;
}

这里设置的寄存器的bits,为如下寄存器:
在这里插入图片描述

发布了11 篇原创文章 · 获赞 4 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/qq_21059825/article/details/94581785