Scanner C++ API
|
Kernel with support for frame and frame_info columns. More...
#include <kernel.h>
Protected Member Functions | |
void | check_frame (const DeviceHandle &device, const Element &element) |
Checks frame info column against cached data. More... | |
void | check_frame_info (const DeviceHandle &device, const Element &element) |
virtual void | new_frame_info () |
Callback for if frame info changes. | |
Protected Attributes | |
FrameInfo | frame_info_ {} |
Kernel with support for frame and frame_info columns.
|
protected |
Checks frame info column against cached data.
This function should be called at the top of the execute function on the frame info column. If the frame info changes, e.g. the kernel is processing a new video, then this calls new_frame_info which you can override.