Scanner C++ API
Protected Member Functions | Protected Attributes | List of all members
scanner::VideoKernel Class Reference

Kernel with support for frame and frame_info columns. More...

#include <kernel.h>

Inheritance diagram for scanner::VideoKernel:
scanner::ImageEncoderKernel

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_ {}
 

Detailed Description

Kernel with support for frame and frame_info columns.

Member Function Documentation

void scanner::VideoKernel::check_frame ( const DeviceHandle device,
const Element element 
)
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.


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