Web lists-archives.org

Re: question for soc-camera driver




On Thu, 10 Apr 2008, ·ëöÎ wrote:

> 2008/4/9 Guennadi Liakhovetski <g.liakhovetski@xxxxxx>:.
> 
> >  Please test the patch below. It should apply on the top of v4l-dvb plus,
> >  if this patch is yet not there, the patch from
> >  http://marc.info/?l=linux-video&m=120771921814753&w=2
> >
> >  Please test with your test application, see if the frame origin iw now
> >  correct, and if you too get the partially inverted frame sequence, i.e.,
> >  like 1, 3, 2, 5, 4,... If yes, try reducing the number of buffers to 2 and
> >  see if this problem disappears then.
> 
> Thanks,I test it already. if I request 4 buffers,wrong frames will
> appear sometimes and get the partially inverted frame sequence too.If

can you describe more precisely what you mean by "wrong frames?" Is it the 
same problem as what I'm seeing here: misplaced start of frame, i.e., your 
frame looks divided into four rectangles?

> I request 2 buffers,there is not wrong frames.But some frames will be
> lost,like 1,2,3,4,7,8,9,10,14,...

This is good. This means those frames had buffer overruns and have been 
dropped. Above you mean, that frames 5, 6, 11, 12, and 13 have been 
dropped, not that all frames you listed have been dropped?

I will see if I can further improve the algorithm and identify why the 
frame sequence gets inverted with 4 buffers, but I don't know when I will 
get time for this.

In general, for your real application, you should really consider doing 
something like what mplayer is doing - an own thread for video data 
read-out, preferably with a real-time priority.

Thanks
Guennadi
---
Guennadi Liakhovetski

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list