1 #ifndef movement_HEADER_GUARD
2 #define movement_HEADER_GUARD
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:44
FrameFilter * next
The next frame filter in the chain to be applied.
Definition: framefilter.h:60
Frame: An abstract queueable class.
Definition: frame.h:112
Definition: movement.h:40
uint8_t * luma
Cached luma component of the yuv image.
Definition: movement.h:58
long int mstimestamp
Saved timestamp: time of the previous frame.
Definition: movement.h:54
long int interval
How often check the frames.
Definition: movement.h:56
long int movement_start
State of the movement detector & the timestamp when movement was first detected.
Definition: movement.h:53
void run(Frame *frame)
Takes AVBitmapFrame.
Definition: movement.cpp:71
void setCallback(PyObject *pycallback)
Set a python callable on movement start & stop events.
Definition: movement.cpp:46
int y_size
Size of the last cached luma plane.
Definition: movement.h:57
void go(Frame *frame)
Does the actual filtering/modification to the Frame. Define in subclass.
Definition: movement.cpp:67
long int duration
Movement events within this time are the same event.
Definition: movement.h:55
PyObject * pycallback
Python method to be called at movement & still events.
Definition: movement.h:59
MovementFrameFilter(const char *name, long int interval, float treshold, long int duration, FrameFilter *next=NULL)
Definition: movement.cpp:39
Definition of FrameFilter and derived classes for various purposes.