libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libcvd-members] Semantics of frame_pending?


From: Edward Rosten
Subject: Re: [libcvd-members] Semantics of frame_pending?
Date: Thu, 28 Aug 2008 12:41:11 -0600 (MDT)

On Thu, 28 Aug 2008, Edward Rosten wrote:

Anyone want to weigh in on the semantics of frame_pending()?


frame_pending was originally used to indicate if there was still a frame waiting in the kernel's buffer for V4L2 video capture devices. It extended well to DV buffer.

It is sometimes used in the following way:

while(buffer.frame_pending())
{
        //Burn frames
       buffer.put_frame(buffer.get_frame());
}

to reduce latency on live feeds. This doesn't work with the new ServerPushJpegBuffer, snice it can't tell if there is a frame available. Flushing code will simply keep on flushing forver. Note that flushing code also breaks on recorded video. It also gets very strange when DiskBuffer or VideoFileBuffer have the unset_pending flag set.

I also advocate the removal of unset_pending under this scheme.

-Ed





reply via email to

[Prev in Thread] Current Thread [Next in Thread]