JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches

#include <jevois/Image/Jpeg.H>

Simple singleton wrapper over a turbojpeg compressor.

Most users should not need to use this class, compressBRGtoJpeg() uses it internally to avoid re-creating the turbojpeg compressor object on each video frame.

Definition at line 42 of file Jpeg.H.

Inheritance diagram for jevois::JpegCompressor:
Collaboration diagram for jevois::JpegCompressor:

Public Member Functions

 JpegCompressor ()
 Constructor, create the turbojpeg object.
 
virtual ~JpegCompressor ()
 Destructor, frees the turbojpeg object.
 
void * compressor ()
 Access the compressor handle.
 

Additional Inherited Members

- Static Public Member Functions inherited from jevois::Singleton< JpegCompressor >
static JpegCompressorinstance ()
 Get the global, unique instance of the class T.
 
- Protected Member Functions inherited from jevois::Singleton< JpegCompressor >
 Singleton ()
 Only classes that inherit from Singleton can construct it via its protected default constructor.
 

Constructor & Destructor Documentation

◆ JpegCompressor()

jevois::JpegCompressor::JpegCompressor ( )

Constructor, create the turbojpeg object.

Definition at line 23 of file Jpeg.C.

◆ ~JpegCompressor()

jevois::JpegCompressor::~JpegCompressor ( )
virtual

Destructor, frees the turbojpeg object.

Definition at line 27 of file Jpeg.C.

Member Function Documentation

◆ compressor()

void * jevois::JpegCompressor::compressor ( )

Access the compressor handle.

Definition at line 31 of file Jpeg.C.

Referenced by jevois::compressBGRtoJpeg(), jevois::compressGRAYtoJpeg(), jevois::compressRGBAtoJpeg(), and jevois::compressRGBtoJpeg().


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