如何实现插值
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
如何实现插值
[SOLUTION]
1.ForYUVsensor:
mediatek/custom/common/hal/imgsensor/cfg_ftbl_xxxxx_yuv.h,或者mediatek/custom/common/hal/imgsensor/xxx_yuv/config.ftbl.xxx_yuv.h (89及后续平台)中添加对应的capturesize
比如,2M的sensor插值到3M,就在capturesize里添加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.ForRAWsensor:
mediatek/custom/project_name/hal/CAMERA/camera/cfg_ftbl_custom_raw_main.h 或者mediatek/custom/$platform/hal/imgsensor/xxx_raw/config.ftbl.xxx_raw.h (89及后续平台)[project_name下没有的话就在mediatek/custom/common/hal/camera/camera/cfg_ftbl_custom_raw_main.h]
以3M插5M为例
如何实现插值
[SOLUTION]
1.ForYUVsensor:
mediatek/custom/common/hal/imgsensor/cfg_ftbl_xxxxx_yuv.h,或者mediatek/custom/common/hal/imgsensor/xxx_yuv/config.ftbl.xxx_yuv.h (89及后续平台)中添加对应的capturesize
比如,2M的sensor插值到3M,就在capturesize里添加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.ForRAWsensor:
mediatek/custom/project_name/hal/CAMERA/camera/cfg_ftbl_custom_raw_main.h 或者mediatek/custom/$platform/hal/imgsensor/xxx_raw/config.ftbl.xxx_raw.h (89及后续平台)[project_name下没有的话就在mediatek/custom/common/hal/camera/camera/cfg_ftbl_custom_raw_main.h]
以3M插5M为例
- <font face="宋体" size="4">#if1//CaptureSize
- 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</font>