camera 修改 特效
时间:10-02
整理:3721RD
点击:
mtk6577 平台上gc2235,输出格式是 raw data。 其中有一个特效白板,预览的是成了全白,效果很差,所以想把这个白板特效去掉。
相关文件是alps/mediate / custom/project(common)/hal/cameca/CAMERA/isp_tunning_effect_MT6575.cpp中whiteboard
/*******************************************************************************
* Effect: WHITEBOARD
*******************************************************************************/
template <>
MVOID
IspTuningCustom::
prepare_effect<MEFFECT_WHITEBOARD>(ISP_EFFECT_T& rEffect)
{
MY_LOG("[+prepare_effect] MEFFECT_WHITEBOARD");
//--------------------------------------------------------------------------
// Reference.
ISP_EFFECT_YCCGO_T& rYCCGO = rEffect.yccgo;
ISP_EFFECT_EDGE_T& rEdge = rEffect.edge;
ISP_EFFECT_CCM_T& rCCM = rEffect.ccm;
//--------------------------------------------------------------------------
// TODO:
// Begin your setting.
//
// TODO:
// Begin your setting.
//
// CCM
rCCM.ccm1.val = 0x00000000;
rCCM.ccm2.val = 0x00000000;
rCCM.ccm3.val = 0x00000000;
rCCM.ccm4.val = 0x00000000;
rCCM.ccm5.val = 0x00000000;
//
// YCCGO
rYCCGO.ctrl.val = 0;
rYCCGO.ctrl.bits.ENC2 = 1;
rYCCGO.cfg1.bits.H12 = 0;
rYCCGO.cfg1.bits.H11 = 0;
//
// EDGE
rEdge.ed_ctrl.val = 0x00000122;
rEdge.ed_inter1.val = 0x08000810;
rEdge.ed_inter2.val = 0x00000414;
rEdge.ed_inter2.bits.THRE_LEDGE = 127;
rEdge.edgcore.bits.SPECIAL_EN = 1;
rEdge.edgcore.bits.EMBOSS2_EN = 1;
rEdge.edgcore.bits.EMBOSS1_EN = 1; //
rEdge.edgcore.bits.COREH = 0;
rEdge.edggain1.bits.EGAINLINE = 0; //
rEdge.edggain1.bits.KNEESEL = 3;
rEdge.edggain1.bits.OILEN = 0; //
rEdge.edggain1.bits.EGAIN_VB = 31;
rEdge.edggain1.bits.EGAIN_H2 = 31;
rEdge.edggain1.bits.EGAIN_H = 0; //
rEdge.edggain1.bits.SPECIPONLY = 1; //
rEdge.edggain1.bits.SPECIGAIN = 0; //
rEdge.edggain2.bits.SPECIINV = 0; //
rEdge.edggain2.bits.SPECIABS = 0; //
rEdge.edgvcon.bits.E_TH1_V = 4; //
rEdge.cpscon2.bits.Y_EGAIN = 15; //
rEdge.cpscon2.bits.OPRGM_IVT = 1; // //
rEdge.ee_ctrl.bits.YEDGE_EN = 1; //
rEdge.ee_ctrl.bits.RGBEDGE_EN = 1;
}
请教下怎么修改?
相关文件是alps/mediate / custom/project(common)/hal/cameca/CAMERA/isp_tunning_effect_MT6575.cpp中whiteboard
/*******************************************************************************
* Effect: WHITEBOARD
*******************************************************************************/
template <>
MVOID
IspTuningCustom::
prepare_effect<MEFFECT_WHITEBOARD>(ISP_EFFECT_T& rEffect)
{
MY_LOG("[+prepare_effect] MEFFECT_WHITEBOARD");
//--------------------------------------------------------------------------
// Reference.
ISP_EFFECT_YCCGO_T& rYCCGO = rEffect.yccgo;
ISP_EFFECT_EDGE_T& rEdge = rEffect.edge;
ISP_EFFECT_CCM_T& rCCM = rEffect.ccm;
//--------------------------------------------------------------------------
// TODO:
// Begin your setting.
//
// TODO:
// Begin your setting.
//
// CCM
rCCM.ccm1.val = 0x00000000;
rCCM.ccm2.val = 0x00000000;
rCCM.ccm3.val = 0x00000000;
rCCM.ccm4.val = 0x00000000;
rCCM.ccm5.val = 0x00000000;
//
// YCCGO
rYCCGO.ctrl.val = 0;
rYCCGO.ctrl.bits.ENC2 = 1;
rYCCGO.cfg1.bits.H12 = 0;
rYCCGO.cfg1.bits.H11 = 0;
//
// EDGE
rEdge.ed_ctrl.val = 0x00000122;
rEdge.ed_inter1.val = 0x08000810;
rEdge.ed_inter2.val = 0x00000414;
rEdge.ed_inter2.bits.THRE_LEDGE = 127;
rEdge.edgcore.bits.SPECIAL_EN = 1;
rEdge.edgcore.bits.EMBOSS2_EN = 1;
rEdge.edgcore.bits.EMBOSS1_EN = 1; //
rEdge.edgcore.bits.COREH = 0;
rEdge.edggain1.bits.EGAINLINE = 0; //
rEdge.edggain1.bits.KNEESEL = 3;
rEdge.edggain1.bits.OILEN = 0; //
rEdge.edggain1.bits.EGAIN_VB = 31;
rEdge.edggain1.bits.EGAIN_H2 = 31;
rEdge.edggain1.bits.EGAIN_H = 0; //
rEdge.edggain1.bits.SPECIPONLY = 1; //
rEdge.edggain1.bits.SPECIGAIN = 0; //
rEdge.edggain2.bits.SPECIINV = 0; //
rEdge.edggain2.bits.SPECIABS = 0; //
rEdge.edgvcon.bits.E_TH1_V = 4; //
rEdge.cpscon2.bits.Y_EGAIN = 15; //
rEdge.cpscon2.bits.OPRGM_IVT = 1; // //
rEdge.ee_ctrl.bits.YEDGE_EN = 1; //
rEdge.ee_ctrl.bits.RGBEDGE_EN = 1;
}
请教下怎么修改?
why 没有人做过吗?
小编解决了么,求分享
没有解决,只能将这个选项在HAL层中的参数去掉!