Ticket #7294: v4l2-nointerlace.patch

File v4l2-nointerlace.patch, 1.0 kB (added by dsd, 13 months ago)

we need to apply this patch (equivalent of what we did for f7)

  • sys/v4l2/v4l2src_calls.c

    old new  
    11501150  format.fmt.pix.height = height; 
    11511151  format.fmt.pix.pixelformat = pixelformat; 
    11521152  /* request whole frames; change when gstreamer supports interlaced video */ 
    1153   format.fmt.pix.field = V4L2_FIELD_INTERLACED; 
     1153  format.fmt.pix.field = V4L2_FIELD_ANY; 
    11541154 
    11551155  if (ioctl (fd, VIDIOC_S_FMT, &format) < 0) 
    11561156    goto set_fmt_failed; 
     
    14891489  fmt.fmt.pix.width = *width; 
    14901490  fmt.fmt.pix.height = *height; 
    14911491  fmt.fmt.pix.pixelformat = pixelformat; 
    1492   fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; 
     1492  fmt.fmt.pix.field = V4L2_FIELD_ANY; 
    14931493 
    14941494  if (ioctl (fd, VIDIOC_TRY_FMT, &fmt) < 0) { 
    14951495    /* The driver might not implement TRY_FMT, in which case we will try