This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about imcomplete display

Hi,all

I use CCD camera to capture real-time imaging to display on LCD,but it doesn't display for full screen.

as the picture,the red rectangle is the display area.The resolution of LCD is 1440x240,

display code:

static int init_vid0_device(int fd, struct fb_var_screeninfo *var_info)
{
 vpbe_window_position_t pos;

        printf("enter init_vid0_device()\n");
 if (ioctl(fd, FBIOGET_FSCREENINFO, &vid0_fixInfo) < 0) {
  printf("\nFailed FBIOGET_FSCREENINFO vid0");
  return FAILURE;
 }

 /* Get Existing var_screeninfo for vid0 window */
 if (ioctl(fd, FBIOGET_VSCREENINFO, var_info) < 0) {
  printf("\nFailed FBIOGET_VSCREENINFO");
  return FAILURE;
 }

 prev_vid0_var = *var_info;

 /* Modify the resolution and bpp as required */
 var_info->xres = test_data.vid0_width;
 var_info->yres = test_data.vid0_height;
 var_info->bits_per_pixel = test_data.vid0_bpp;
 var_info->vmode = test_data.vid0_vmode;
 var_info->xres_virtual = 1440;
 var_info->yres_virtual = var_info->yres * VIDEO_NUM_BUFS;

.....

initialize_capture();

 test_data.vid0_width = 1440;
 test_data.vid0_bpp = 16;
 test_data.vid0_xpos = 0;
 test_data.vid0_ypos = 0;
 test_data.vid0_vmode = FB_VMODE_NONINTERLACED;

 test_data.osd0_bpp = 16;
 test_data.osd0_xpos = 0;
 test_data.osd0_ypos = 0;
 test_data.osd0_width = 16;
 test_data.osd0_height = 16;
 test_data.osd0_vmode = FB_VMODE_NONINTERLACED;
 test_data.osd0_coloridx = BLUE_COLOR;

 strcpy(test_data.display_interface, "LCD");

....

bootarg:

setenv bootargs mem=80M console=ttyS0,115200n8 noinitrd rw ip=192.168.245.111:255.255.255.0:192.168.245.1 root=/dev/nfs nfsroot=192.168.245.122:/opt/nfs video=davincifb:vid0=1440x240x16,4050K@0,0:osd0=1440x240x16,1350K@0,0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=1440x240 dm365_imp.oper_mode=1 davinci_capture.device_type=4

what's the problem?