JeVois  1.5
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
jevois::VideoOutputNone Class Reference

#include <jevois/Core/VideoOutputNone.H>

No-op VideoOutput derivative for when there is no video output.

This class derived from VideoOutput does (almost) nothing and can be used by Engine when no video output is desired.

Definition at line 28 of file VideoOutputNone.H.

Inheritance diagram for jevois::VideoOutputNone:
Collaboration diagram for jevois::VideoOutputNone:

Public Member Functions

virtual ~VideoOutputNone ()
 Virtual destructor for safe inheritance. More...
 
void setFormat (VideoMapping const &m) override
 Set the video format and frame rate. More...
 
void get (RawImage &img) override
 Get a pre-allocated image so that we can fill the pixel data and later send out using send() More...
 
void send (RawImage const &img) override
 Send an image out. More...
 
void streamOn () override
 Start streaming. More...
 
void abortStream () override
 Abort streaming. More...
 
void streamOff () override
 Stop streaming. More...
 
- Public Member Functions inherited from jevois::VideoOutput
virtual ~VideoOutput ()
 Virtual destructor for safe inheritance. More...
 

Protected Attributes

std::shared_ptr< VideoBufitsBuffer
 
jevois::RawImage itsImage
 

Constructor & Destructor Documentation

◆ ~VideoOutputNone()

jevois::VideoOutputNone::~VideoOutputNone ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 22 of file VideoOutputNone.C.

Member Function Documentation

◆ abortStream()

void jevois::VideoOutputNone::abortStream ( )
overridevirtual

Abort streaming.

In VideoOutputNone, this is a no-op.

Implements jevois::VideoOutput.

Definition at line 53 of file VideoOutputNone.C.

◆ get()

void jevois::VideoOutputNone::get ( RawImage img)
overridevirtual

Get a pre-allocated image so that we can fill the pixel data and later send out using send()

In VideoOutputNone, this returns a blank buffer.

Implements jevois::VideoOutput.

Definition at line 41 of file VideoOutputNone.C.

References itsImage.

◆ send()

void jevois::VideoOutputNone::send ( RawImage const &  img)
overridevirtual

Send an image out.

In VideoOutputNone, this is a no-op.

Implements jevois::VideoOutput.

Definition at line 45 of file VideoOutputNone.C.

◆ setFormat()

◆ streamOff()

void jevois::VideoOutputNone::streamOff ( )
overridevirtual

Stop streaming.

In VideoOutputNone, this is a no-op.

Implements jevois::VideoOutput.

Definition at line 57 of file VideoOutputNone.C.

◆ streamOn()

void jevois::VideoOutputNone::streamOn ( )
overridevirtual

Start streaming.

In VideoOutputNone, this is a no-op.

Implements jevois::VideoOutput.

Definition at line 49 of file VideoOutputNone.C.

Member Data Documentation

◆ itsBuffer

std::shared_ptr<VideoBuf> jevois::VideoOutputNone::itsBuffer
protected

Definition at line 59 of file VideoOutputNone.H.

Referenced by setFormat().

◆ itsImage

jevois::RawImage jevois::VideoOutputNone::itsImage
protected

Definition at line 60 of file VideoOutputNone.H.

Referenced by get(), and setFormat().


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