[FAQ18418]三方APK录像preview偏暗

[DESCRIPTION]
 
 

三方APK录像时候preview偏暗,一般是因为有将帧率固定为30帧,是否设置了固定帧率可以看是否有类似以下的log打印出来,其中m_i4AEMinFps = m_i4AEMaxFps

058894 01-01 00:13:29.409972   343   992 D ae_mgr  : m_i4AEMinFps: 300 m_i4AEMaxFps:300

 
 
[SOLUTION]
 
 

具体分三种case

 1.录像时候有开启EIS

Solution请参考FAQ17385:录像打开EIS后画面变的突然很暗

   2. M版本中,cpp 中的setParameters函数会去吃config.ftbl.xxxmipiraw.h中设定的preview fps range

Solution请参考FAQ18200Android M 第三方camera APK, preview video偏暗

   3. MT6580、MT6735M、MT6735P平台,修改以上两种case依然还是固定帧率

Solution

1/vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v1/hal/adapter/MtkDefault/MtkDefaultCamParameter.cpp

 

status_t

CamAdapter::

setParameters()

函数内将

if(mpParamsMgr->getRecordingHint())

129 {

130 cam3aParam.i4MinFps = mpParamsMgr->getInt(CameraParameters::KEY_PREVIEW_FRAME_RATE)*1000;

131 cam3aParam.i4MaxFps = mpParamsMgr->getInt(CameraParameters::KEY_PREVIEW_FRAME_RATE)*1000;

132 }

133 else

134 {

135 cam3aParam.i4MinFps = 5000;

136 cam3aParam.i4MaxFps = 60000;

137 }

修改为:

cam3aParam.i4MinFps = 5000;

cam3aParam.i4MaxFps = 60000;

2./vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v1/hal/adapter/MtkDefault/MtkDefaultCamAdapter.Record.cpp

文件中的函数

status_t

CamAdapter::

onHandleStartRecording()

{

中的语句

cam3aParam.i4MinFps = mpParamsMgr->getInt(CameraParameters::KEY_PREVIEW_FRAME_RATE)*1000;

cam3aParam.i4MaxFps = mpParamsMgr->getInt(CameraParameters::KEY_PREVIEW_FRAME_RATE)*1000;

修改为:

cam3aParam.i4MinFps = 5000;

cam3aParam.i4MaxFps = 60000;

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值