91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 14KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-18
  • 語言: 其他
  • 標簽: Linux??max9286??

資源簡介

四路AHD同時輸入轉MIPI的max9286+96705驅動,歡迎大家下載!

資源截圖

代碼片段和文件信息

/*
?*?Copyright?2017-2018?NXP
?*/
/*
?*?The?code?contained?herein?is?licensed?under?the?GNU?General?Public
?*?License.?You?may?obtain?a?copy?of?the?GNU?General?Public?License
?*?Version?2?or?later?at?the?following?locations:
?*
?*?http://www.opensource.org/licenses/gpl-license.html
?*?http://www.gnu.org/copyleft/gpl.html
?*/
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?


#define?MAX9271_MAX_SENSOR_NUM 4
#define?CAMERA_USES_15HZ

#define?ADDR_MAX9286 0x6A
#define?ADDR_MAX9271 0x40
#define?ADDR_MAX9271_ALL (ADDR_MAX9271?+?5)??/*?Broadcast?address?*/

#define?MIPI_CSI2_SENS_VC0_PAD_SOURCE 0
#define?MIPI_CSI2_SENS_VC1_PAD_SOURCE 1
#define?MIPI_CSI2_SENS_VC2_PAD_SOURCE 2
#define?MIPI_CSI2_SENS_VC3_PAD_SOURCE 3
#define?MIPI_CSI2_SENS_VCX_PADS_NUM 4

#define?MAX_FPS 30
#define?MIN_FPS 30
#define?DEFAULT_FPS 30

#define?ADDR_OV_SENSOR 0x30
#define?ADDR_AP_SENSOR 0x5D

/*!
?*?Maintains?the?information?on?the?current?state?of?the?sesor.
?*/
struct?imxdpu_videomode?{
char?name[64]; /*?may?not?be?needed?*/

uint32_t?pixelclock; /*?Hz?*/

/*?htotal?(pixels)?=?hlen?+?hfp?+?hsync?+?hbp?*/
uint32_t?hlen;
uint32_t?hfp;
uint32_t?hbp;
uint32_t?hsync;

/*?field0?-?vtotal?(lines)?=?vlen?+?vfp?+?vsync?+?vbp?*/
uint32_t?vlen;
uint32_t?vfp;
uint32_t?vbp;
uint32_t?vsync;

/*?field1??*/
uint32_t?vlen1;
uint32_t?vfp1;
uint32_t?vbp1;
uint32_t?vsync1;

uint32_t?flags;

uint32_t?format;
uint32_t?dest_format;?/*buffer?format?for?capture*/

int16_t?clip_top;
int16_t?clip_left;
uint16_t?clip_width;
uint16_t?clip_height;
};

struct?sensor_data?{
struct?v4l2_subdev subdev;
struct?media_pad?pads[MIPI_CSI2_SENS_VCX_PADS_NUM];
struct?i2c_client?*i2c_client;
struct?v4l2_mbus_framefmt?format;
struct?v4l2_captureparm?streamcap;
char?running;

/*?control?settings?*/
int?brightness;
int?hue;
int?contrast;
int?saturation;
int?red;
int?green;
int?blue;
int?ae_mode;

u32?mclk;
u8?mclk_source;
struct?clk?*sensor_clk;
int?v_channel;
bool?is_mipi;
struct?imxdpu_videomode?cap_mode;

unsigned?int?sensor_num;???????/*?sensor?num?connect?max9271?*/
unsigned?char?sensor_is_there;?/*?Bit?0~3?for?4?cameras?0b1=?is?there;?0b0?=?is?not?there?*/
int?pwn_gpio;
};

static?unsigned?int?g_max9286_width?=?1280;
static?unsigned?int?g_max9286_height?=?800;

#define?OV10635_REG_PID 0x300A
#define?OV10635_REG_VER 0x300B

struct?reg_value?{
unsigned?short?reg_addr;
unsigned?char?val;
unsigned?int?delay_ms;
};

enum?ov10635_frame_rate?{
OV10635_30_FPS
};

static?struct?reg_value?ov10635_init_data[]?=?{
{?0x0103?0x01?0?}
{?0x300c?0x61?0?}
{?0x300c?0x61?0?}
{?0x300c?0x61?0?}
{?0x300c?0x61?0?}
{?0x

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????70741??2019-05-23?08:35??max9286.c

評論

共有 條評論