bigbaicai

文章转自一牛网论坛 一牛网旗下拥有一牛网论坛、一牛网元器件商城、一牛网技术众包平台等一系列服务于广大工程师的平台,让研发更快、更便捷!

[Camera Drv]如何实现插值

0
阅读(88) 评论(1)

[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为例

  1. <font face="宋体" size="4">#if1//CaptureSize

  2. CONFIG_FEATURE(FID_CAP_SIZE,

  3. BY_DEFAULT(CAPTURE_SIZE_2560_1920),

  4. CAPTURE_SIZE_1280_960,

  5. CAPTURE_SIZE_1600_1200,CAPTURE_SIZE_2048_1536,CAPTURE_SIZE_2560_1920)

  6. #endif</font>

复制代码


  1. ***此内容已被管理员屏蔽***