camera寄存器调试

 

cmaera的专业词汇:

 

The timing generator outputs signals to access the rows of the image array, precharging and sampling the rows of array

in series. In the time between pre-charging and sampling a row, the charge in the pixels decreases with the time exposed

to the incident light. This is known as exposure time.

The exposure time is controlled by adjusting the time interval between precharging and sampling. After the data of the

pixels in the row has been sampled, it is processed through analog circuitry to correct the offset and multiply the data

with corresponding gain. Following analog processing is the ADC which outputs 10-bit data for each pixel in the array.

 

 

1.照片发绿,preview正常。

 

2.有白色横条。

 

3.顔色相差甚远,YUYV->UYVY.

 

 

4.MCLK->PCLK->FPS

 

MCLK可以理解为源时钟,是系统提供给模组的。通过sensor内部的PLL电路可以产生不同频率的PCLK;
PCLK是像素同步信号。我理解的PCLK  、帧率的关系大致如下:
1个像素数据所占用的时钟周期 * 帧率 * 像素 * Tpclk   =1 
至于1个像素的数据要占几个时钟周期要看传输的数据格式:RAW RGB、YUV等。
上面等式忽略了每行、每帧之间的间隔时间。

 

---------------------------------------------------

HTotal  *  VTotal   *  FPVS  =   FPCLK

 

 

 

 

 

 

------------------------------------------------------

YUV解析

 

1.UV固定可以调试图像色彩特效

 

static struct reg_value sepia_effect[] = {

{0x3391, 0x18, 0, 0},

{0x3396, 0x40, 0, 0},

{0x3397, 0xa6, 0, 0}

};

 

static struct reg_value bluish_effect[] = {

{0x3391, 0x18, 0, 0},

{0x3396, 0xa0, 0, 0},

{0x3397, 0x40, 0, 0}

};

 

static struct reg_value greenish_effect[] = {

{0x3391, 0x18, 0, 0},

{0x3396, 0x60, 0, 0},

{0x3397, 0x60, 0, 0}

};

 

static struct reg_value reddish_effect[] = {

{0x3391, 0x18, 0, 0},

{0x3396, 0x80, 0, 0},

{0x3397, 0xc0, 0, 0}

};

 

static struct reg_value yellowish_effect[] = {

{0x3391, 0x18, 0, 0},

{0x3396, 0x30, 0, 0},

{0x3397, 0x90, 0, 0}

};

 

static struct reg_value bw_effect[] = {

{0x3391, 0x20, 0, 0}

};

 

static struct reg_value negative_effect[] = {

{0x3391, 0x40, 0, 0}

};

 

static struct reg_value normal_effect[] = {

{0x3391, 0x00, 0, 0}

};

2.
struct reg_value  ov2655_auto_light[] = {
{0x3306, 0x00},
};
struct reg_value  ov2655_sunny_light[] = {
{0x3306, 0x02},
{0x3337, 0x5e},
{0x3338, 0x40},
{0x3339, 0x46},
};
struct reg_value  ov2655_cloudy_light[] = {
{0x3306, 0x02},
{0x3337, 0x68},
{0x3338, 0x40},
{0x3339, 0x4e},
};
struct reg_value  ov2655_office_light[] = {
{0x3306, 0x02},
{0x3337, 0x52},
{0x3338, 0x40},
{0x3339, 0x58},
};
struct reg_value  ov2655_home_light[] = {
{0x3306, 0x02},
{0x3337, 0x44},
{0x3338, 0x40},
{0x3339, 0x70},
};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值