Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MovementFrameFilter Class Reference
Inheritance diagram for MovementFrameFilter:
Inheritance graph
[legend]
Collaboration diagram for MovementFrameFilter:
Collaboration graph
[legend]

Public Member Functions

 MovementFrameFilter (const char *name, long int interval, float treshold, long int duration, FrameFilter *next=NULL)
 
void reset ()
 
void setCallback (PyObject *pycallback)
 Set a python callable on movement start & stop events.
 
- Public Member Functions inherited from FrameFilter
 FrameFilter (const char *name, FrameFilter *next=NULL)
 Default constructor. More...
 
virtual ~FrameFilter ()
 Virtual destructor // <pyapi>
 
void setVoid ()
 nullifies the next framefilter in the chain -> cuts the framefilter chain
 

Protected Member Functions

void run (Frame *frame)
 Takes AVBitmapFrame.
 
void go (Frame *frame)
 Does the actual filtering/modification to the Frame. Define in subclass.
 

Protected Attributes

long int movement_start
 State of the movement detector & the timestamp when movement was first detected.
 
long int mstimestamp
 Saved timestamp: time of the previous frame.
 
long int duration
 Movement events within this time are the same event.
 
long int interval
 How often check the frames.
 
int y_size
 Size of the last cached luma plane.
 
uint8_t * luma
 Cached luma component of the yuv image.
 
PyObject * pycallback
 Python method to be called at movement & still events.
 
float treshold
 

Additional Inherited Members

- Public Attributes inherited from FrameFilter
std::string name
 
FrameFilternext
 The next frame filter in the chain to be applied.
 

Constructor & Destructor Documentation

◆ MovementFrameFilter()

MovementFrameFilter::MovementFrameFilter ( const char *  name,
long int  interval,
float  treshold,
long int  duration,
FrameFilter next = NULL 
)
Parameters
intervalHow often the frame is checked (milliseconds). This also defines how often a frame is passed downstream, if the movement is on.
tresholdTreshold value for movement
durationDuration of a single event (milliseconds)

The documentation for this class was generated from the following files: