H2项目 红外成像模式,显示屏里面图像填充不满屏,在显示屏上半部分有一条黑边,如附图。 查看对应的代码,
kernel-3.10/drivers/misc/mediatek/imgsensor/src/mt6735/cjc5150_yuv/
里面的定义为
#define IMAGE_SENSOR_VGA_GRAB_PIXELS 0
#define IMAGE_SENSOR_VGA_GRAB_LINES 0
#define IMAGE_SENSOR_VGA_WIDTH (720)
#define IMAGE_SENSOR_VGA_HEIGHT (240)
#define IMAGE_SENSOR_PV_WIDTH (IMAGE_SENSOR_VGA_WIDTH)
#define IMAGE_SENSOR_PV_HEIGHT (IMAGE_SENSOR_VGA_HEIGHT)
#define IMAGE_SENSOR_FULL_WIDTH (IMAGE_SENSOR_VGA_WIDTH)
#define IMAGE_SENSOR_FULL_HEIGHT (IMAGE_SENSOR_VGA_HEIGHT)
对应代码
UINT32 GM7150Preview(MSDK_SENSOR_EXPOSURE_WINDOW_STRUCT *image_window,
MSDK_SENSOR_CONFIG_STRUCT *sensor_config_data)
{
kal_uint32 iTemp;
kal_uint16 iStartX = 0, iStartY = 1;
SENSORDB("Enter GM7150Preview function!!!\r\n");
image_window->GrabStartX= IMAGE_SENSOR_VGA_GRAB_PIXELS;
image_window->GrabStartY= IMAGE_SENSOR_VGA_GRAB_LINES;
image_window->ExposureWindowWidth = IMAGE_SENSOR_PV_WIDTH;
image_window->ExposureWindowHeight =IMAGE_SENSOR_PV_HEIGHT;
// copy sensor_config_data
memcpy(&GM7150SensorConfigData, sensor_config_data, sizeof(MSDK_SENSOR_CONFIG_STRUCT));
return ERROR_NONE;
} /* GM7150Preview */
这是为什么定为720,240呢,输出的应该是640, 480才对啊。
|