Camera 如何实现插值

[DESCRIPTION]
如何实现插值
[SOLUTION]
1.For YUV sensor:
mediatek/custom/common/hal/imgsensor/cfg_ftbl_xxxxx_yuv.h
中添加对应的capture size
比如,2M的sensor插值到3M,就在capture size里添加3M的选项:
CONFIG_FEATURE_SI(FID_CAP_SIZE, 
        BY_DEFAULT(CAPTURE_SIZE_2048_1536), 
        CAPTURE_SIZE_320_240,   CAPTURE_SIZE_640_480, 
        CAPTURE_SIZE_1024_768,  APTURE_SIZE_1280_960, 
        CAPTURE_SIZE_1600_1200, APTURE_SIZE_2048_1536    )

2.For RAW sensor:
 mediatek/custom/ project_name/hal/camera/camera/cfg_ftbl_custom_raw_main.h
[project_name下没有的话就在mediatek/custom/ common/hal/camera/camera/cfg_ftbl_custom_raw_main.h ] 
以3M插5M为例
#if 1    //  Capture Size
    CONFIG_FEATURE(FID_CAP_SIZE, 
        BY_DEFAULT(CAPTURE_SIZE_2560_1920), 
        CAPTURE_SIZE_1280_960,  
CAPTURE_SIZE_1600_1200, CAPTURE_SIZE_2048_1536,         CAPTURE_SIZE_2560_1920)
#endif

你可能感兴趣的:(Android)