MT6253 摄像头power down
typedef struct
{
image_sensor_func_struct* pImage_sensor_func;
const char* sensor_name;
kal_bool sleep_level;
}auto_sensor_struct;
const auto_sensor_struct auto_sensor_func[]=
{
#if ((defined(__SENSOR_BF3503_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(BF3503)
{&image_sensor_func_BF3503,"BF3503",HIGH_LEVEL},//must be first to distinguish with sensor 2010-05-13
#endif
#if ((defined(__SENSOR_BF3603_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(BF3603)
{&image_sensor_func_BF3603,"BF3603",HIGH_LEVEL},//must be first to distinguish with sensor 2010-05-13
#endif
#if ((defined(__SENSOR_BF3703_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(BF3703)
{&image_sensor_func_BF3703,"BF3703",HIGH_LEVEL},//must be first to distinguish with sensor 2010-05-13
#endif
#if ((defined(__SENSOR_OV7670_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(OV7670)
{&image_sensor_func_OV7670,"OV7670",HIGH_LEVEL},//must be first to distinguish with sensor 2010-05-13
#endif
#if ((defined(__SENSOR_GC0307_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(GC0307)
{&image_sensor_func_GC0307,"GC0307",HIGH_LEVEL},
#endif
#if ((defined(__SENSOR_SIV100B_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(SIV100B)
{&image_sensor_func_SIV100B,"SIV100B",HIGH_LEVEL},
#endif
#if ((defined(__SENSOR_SIV120B_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(SIV120B)
{&image_sensor_func_SIV120B,"SIV120B",LOW_LEVEL},
#endif
#if ((defined(__SENSOR_OV767X0_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(OV767X0)
{&image_sensor_func_OV76X0,"OV76X0",HIGH_LEVEL},
#endif
#if ((defined(__SENSOR_OV7680_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(OV7680)
{&image_sensor_func_OV7680,"OV7680",HIGH_LEVEL}, //must be in the last array 20100115
#endif
#if ((defined(__SENSOR_GC0309_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(GC0309)
{&image_sensor_func_GC0309,"GC0309",HIGH_LEVEL},
#endif
#if ((defined(__SENSOR_CM3511_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(CM3511)
{&image_sensor_func_CM3511,"HYCM3511",KAL_FALSE},
#endif
#if defined(__SIV1210A_MOTION__)
{&image_sensor_func_SIV121A,"SIV121A",HIGH_LEVEL},
#endif
#if ((defined(__SENSOR_HI704_SUPPORT__)||defined(__ALL_IMAGE_SENSOR__))&&defined(AUTO_SENSOR))||defined(HI704)
{&image_sensor_func_HI704,"HI704",HIGH_LEVEL},//must be first to distinguish with sensor 2010-05-13
#endif
};
本文介绍MT6253平台中摄像头Powerdown的配置方法,展示了多种图像传感器的支持情况及其在代码中的具体实现。通过定义一系列结构体和宏来区分不同型号的传感器,并设置其工作级别。
1698

被折叠的 条评论
为什么被折叠?



