11-01-2005 10:23 AM
11-01-2005 08:16 PM
11-02-2005 09:51 AM
11-02-2005 01:02 PM - edited 11-02-2005 01:02 PM
Sorry, I don't have any examples. Perhaps another explanation will help:
In your outer loop, check the last valid buffer number for each camera, and compare it to the number of the last buffer processed. The difference is used for N of a for loop. Inside the loop, process the N new images for that camera. You will have two inner loops that are parallel inside the larger outer loop. I would put a delay inside the outer loop of about 25 msec for the times that there are no new frames from either camera.
To answer your question, acquire buffer X inside the for loop and process it. For example, if the last valid buffer is 25 and the last buffer you processed was 23, you would loop 2 times (25-23). The first time through the loop, you would retrieve and process buffer 24. On the second time through the loop, you would use buffer 25. This is the value that goes into a shift register on the outer loop for the next iteration.
Bruce
Message Edited by Bruce Ammons on 11-02-2005 02:05 PM