JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:

#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. More...
virtual ~JpegCompressor ()
 Destructor, frees the turbojpeg object. More...
void * compressor ()
 Access the compressor handle. More...

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ JpegCompressor()

jevois::JpegCompressor::JpegCompressor ( )

Constructor, create the turbojpeg object.

Definition at line 23 of file Jpeg.C.

◆ ~JpegCompressor()

jevois::JpegCompressor::~JpegCompressor ( )

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: