icfans

Camera版本如何修改Capture Size顺序,修改为最大的Capture Size

0
阅读(390) 评论(0)

[DESCRIPTION]
有些客户希望将默认的Capture Size设置为最大,并且按Hot Key切换Image Size的时候逐渐变小,以VGA Sensor为例
。希望默认Capture Size为640x480,按Hot Key切换的时候变换为:640x480、320x240、160x120……
[KEYWORD]
Camera MMI
[SOLUTION]来自半导体社区
直接修改mmi_features_camera.h文件里的对应平台,对应LCD Size下的下面的宏,直接将LL和SS对应的值对换,S和L对应
的值对换.
#define CAMERA_FEATURE_IMAGE_SIZE_LL_WIDTH (640)
#define CAMERA_FEATURE_IMAGE_SIZE_LL_HEIGHT (480)
#define CAMERA_FEATURE_IMAGE_SIZE_L_WIDTH (320)
#define CAMERA_FEATURE_IMAGE_SIZE_L_HEIGHT (240)
#define CAMERA_FEATURE_IMAGE_SIZE_M_WIDTH (160)
#define CAMERA_FEATURE_IMAGE_SIZE_M_HEIGHT (120)
#define CAMERA_FEATURE_IMAGE_SIZE_S_WIDTH (80)
#define CAMERA_FEATURE_IMAGE_SIZE_S_HEIGHT (60)
#define CAMERA_FEATURE_IMAGE_SIZE_SS_WIDTH (128)
#define CAMERA_FEATURE_IMAGE_SIZE_SS_HEIGHT (128)
修改为下面这个样子
#define CAMERA_FEATURE_PREVIEW_SIZE_LL_WIDTH (128)
#define CAMERA_FEATURE_PREVIEW_SIZE_LL_HEIGHT (96)
#define CAMERA_FEATURE_PREVIEW_SIZE_L_WIDTH (128)
#define CAMERA_FEATURE_PREVIEW_SIZE_L_HEIGHT (96)
#define CAMERA_FEATURE_PREVIEW_SIZE_M_WIDTH (128)
#define CAMERA_FEATURE_PREVIEW_SIZE_M_HEIGHT (96)
#define CAMERA_FEATURE_PREVIEW_SIZE_S_WIDTH (128)
#define CAMERA_FEATURE_PREVIEW_SIZE_S_HEIGHT (96)
#define CAMERA_FEATURE_PREVIEW_SIZE_SS_WIDTH (128)
#define CAMERA_FEATURE_PREVIEW_SIZE_SS_HEIGHT (128)