VSYNC,HSYNC都是高有效的话极性如下设置没错
SET_VSYNC_POLARITY_HIGH;
SET_HSYNC_POLARITY_LOW;[/COLOR]
不过下面可能需要修改一下
pImage_Window->grab_start_x = 6;//4;//iStartX;
pImage_Window->grab_start_y = 6;//4;//iStartY;
pImage_Window->exposure_window_width=IMAGE_SENSOR_VGA_WIDTH;
pImage_Window->exposure_window_height=IMAGE_SENSOR_VGA_HEIGHT-1;
这个是设置Grab Window的大小.
如果你的HSYNC高电平只有IMAGE_SENSOR_VGA_WIDTH这么多个点的话,那么建意减掉exposure_window_width一点,因为Start_X为6了,再要抓IMAGE_SENSOR_VGA_WIDTH个点就抓不到了.HEIGHT也是一样的,试试下面这组值.
pImage_Window->grab_start_x = 6;//4;//iStartX;
pImage_Window->grab_start_y = 6;//4;//iStartY;
pImage_Window->exposure_window_width=IMAGE_SENSOR_VGA_WIDTH - 16[/COLOR];
pImage_Window->exposure_window_height=IMAGE_SENSOR_VGA_HEIGHT- 12[/COLOR];
谢谢! |