22#include <opencv2/core/core.hpp>
37 void convertYUYVtoYUV422(
unsigned char const * src,
int width,
int height,
unsigned char * dst);
61 unsigned long compressBGRtoJpeg(
unsigned char const * src,
int width,
int height,
unsigned char * dst,
72 unsigned long compressRGBtoJpeg(
unsigned char const * src,
int width,
int height,
unsigned char * dst,
83 unsigned long compressRGBAtoJpeg(
unsigned char const * src,
int width,
int height,
unsigned char * dst,
94 unsigned long compressGRAYtoJpeg(
unsigned char const * src,
int width,
int height,
unsigned char * dst,
Simple singleton wrapper over a turbojpeg compressor.
void * compressor()
Access the compressor handle.
virtual ~JpegCompressor()
Destructor, frees the turbojpeg object.
JpegCompressor()
Constructor, create the turbojpeg object.
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
A generic singleton class to enforce a single instance of an object.
unsigned long compressGRAYtoJpeg(unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
Compress raw pixel buffer to jpeg.
unsigned long compressBGRtoJpeg(unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
Compress raw pixel buffer to jpeg.
unsigned long compressRGBAtoJpeg(unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
Compress raw pixel buffer to jpeg.
void convertYUYVtoYUV422(unsigned char const *src, int width, int height, unsigned char *dst)
Helper to convert from packed YUYV to planar YUV422.
unsigned long compressRGBtoJpeg(unsigned char const *src, int width, int height, unsigned char *dst, int quality=75)
Compress raw pixel buffer to jpeg.
Main namespace for all JeVois classes and functions.