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}
};