6752/6732平台使用512MB RAM时 Camera配置方法

时间:2022-01-07 18:10:51


解决方法:


为使MT6752/MTK6732 512MB RAM配置的平台开机后能够获得较为充裕的剩馀内存空间, 请参考以下位于ProjectConfig.mk与kernel config的配置。


6752/6732 512MB RAM配置最大支持到: 5M camera & fwvga。


[SOLUTION]

Stage 1: Disable feature options (MUST)

MTK_HOTKNOT_SUPPORT=no

MTK_ENABLE_VIDEO_EDITOR=no

MTK_VLW_APP=no

MTK_VIDEO_1080P = no

MTK_CAM_VSS_SUPPORT = no

MTK_CAM_FACEBEAUTY_SUPPORT = no

MTK_CAM_VIDEO_FACEBEAUTY_SUPPORT = no

MTK_CAM_HDR_SUPPORT = no

MTK_CAM_MFB_SUPPORT = 0

MTK_MOTION_TRACK_SUPPORT = no

MTK_CAM_NATIVE_PIP_SUPPORT = no

MTK_CAM_NR3D_SUPPORT = no

MTK_VOICE_CONTACT_SEARCH_SUPPORT = no

MTK_VOICE_UI_SUPPORT = no

MTK_VOICE_UNLOCK_SUPPORT = no

MTK_NFC_SUPPORT = no

MTK_NFC_APP_SUPPORT = no

MTK_NFC_ADDON_SUPPORT = no

MTK_BEAM_PLUS_SUPPORT = no

MTK_WIFIWPSP2P_NFC_SUPPORT = no

MTK_SMARTBOOK_SUPPORT = no

Stage 2: Disable debug features (Optional)

File Location: alps/mediatek/config/<project_name>/autoconfig/kconfig/project

# CONFIG_SLUB_DEBUG is not set

# CONFIG_HAVE_DMA_API_DEBUG is not set

# CONFIG_SND_DEBUG is not set

# CONFIG_SND_DEBUG_VERBOSE is not set

# CONFIG_SND_PCM_XRUN_DEBUG is not set

# CONFIG_USB_DEBUG is not set

# CONFIG_USB_STORAGE_DEBUG is not set

# CONFIG_ZRAM_DEBUG is not set

# CONFIG_SLUB_DEBUG_ON is not set

# CONFIG_HAVE_DEBUG_KMEMLEAK is not set

# CONFIG_DEBUG_LOCK_ALLOC is not set

# CONFIG_DEBUG_LOCKDEP is not set

# CONFIG_USB_MTK_DEBUG_FS is not set

# CONFIG_USB_MTK_DEBUG is not set

# CONFIG_MTKPASR_DEBUG is not set

# CONFIG_MMPROFILE is not set

# CONFIG_FTRACE_SYSCALLS is not set

# CONFIG_DYNAMIC_FTRACE is not set

# CONFIG_FTRACE_MCOUNT_RECORD is not set

# CONFIG_FTRACE_STARTUP_TEST is not set

# CONFIG_MTK_FTRACE_DEFAULT_ENABLE is not set

Warning!! Disable debug features may make debug more difficult when issue is occurred.

除了这部分外,若连拍99张很容易自动退出camera,则还需要将连拍的速度做一些限制。

MultiShot.cpp (mediatek\platform\mtxxxx\hardware\mtkcam\core\camshot\multishot)

MVOID

MultiShot::

setupInitialFps()

{

// could modify capture/preview fps for picture-size/sensor size/senor type/...

muCaptureFps =5; //改为底层每秒出5张jpeg,可根据实际情况酌情调整速度

muPreviewFps = 0;

}