| 1 | // Paul Smith 8 March 2005 |
| 2 | // Flags for video buffers |
| 3 | |
| 4 | #ifndef __VIDEOBUFFERFLAGS__ |
| 5 | #define __VIDEOBUFFERFLAGS__ |
| 6 | |
| 7 | namespace CVD |
| 8 | { |
| 9 | /// Flags common to several different VideoBuffer classes |
| 10 | namespace VideoBufferFlags |
| 11 | { |
| 12 | /// If it is a finite buffer (a video file, for example), what should happen when the |
| 13 | /// end of the buffer is reached? |
| 14 | enum OnEndOfBuffer |
| 15 | { |
| 16 | RepeatLastFrame, ///< Continue to return the final frame when get_frame() is called (with the same timestamp) |
| 17 | UnsetPending, ///< Set the return value of frame_pending() to false and throw an EndOfBuffer exception if get_frame() is called |
| 18 | Loop ///< Loop the buffer, so that the next time get_frame() is called it returns the first frame in the buffer |
| 19 | }; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | #endif |