libcvd
Enumerations
CVD::VideoBufferFlags Namespace Reference

Flags common to several different VideoBuffer classes. More...

Enumerations

enum  OnEndOfBuffer { RepeatLastFrame, UnsetPending, Loop }
 If it is a finite buffer (a video file, for example), what should happen when the end of the buffer is reached? More...
 

Detailed Description

Flags common to several different VideoBuffer classes.

Enumeration Type Documentation

◆ OnEndOfBuffer

If it is a finite buffer (a video file, for example), what should happen when the end of the buffer is reached?

Enumerator
RepeatLastFrame 

Continue to return the final frame when get_frame() is called (with the same timestamp)

UnsetPending 

Set the return value of frame_pending() to false and throw an EndOfBuffer exception if get_frame() is called.

Loop 

Loop the buffer, so that the next time get_frame() is called it returns the first frame in the buffer.