v4l2 and timers

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



    Hello again!

    I have another programming question.

    In my program i need to use timers. To do this, i use clock().

   clock() works fine until i initialize v4l2 and start grabbing:

{
clock_t ini, end;

    ini=clock();    // <- ok
    MakeAnything();
    end=clock()    // <- this works

    InitializeV4L2();
    while (!end)
    {
        ini=clock();    // <- this doesn't work
        Grab();
        MakeAnotherThing();
        end=clock();    // <- nor do this
    }
}

    I am grabbing using 4 buffers of memory.
    I wait for the filled buffers witch select()

    Is the select() affecting clock()??
    
Bye
_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux