Public Member Functions | Private Member Functions | Private Attributes | List of all members
JpegCompression Class Reference

#include <JpegCompression.h>

Inheritance diagram for JpegCompression:
Inheritance graph
[legend]

Public Member Functions

int compressBuffer (unsigned char *t_buffer, int t_size, unsigned char *t_compressedBuf)
 
int decompressBuffer (unsigned char *t_buffer, int t_size, unsigned char *t_uncompressedBuf)
 
 JpegCompression (int t_width, int t_height, rs2_format t_format, int t_bpp)
 
 ~JpegCompression ()
 
- Public Member Functions inherited from ICompression
 ICompression (int t_width, int t_height, rs2_format t_format, int t_bpp)
 

Private Member Functions

void convertBGRtoRGB (unsigned char **t_buffer)
 
void convertRGBtoBGR (unsigned char **t_uncompressBuff)
 
void convertUYVYtoYUV (unsigned char **t_buffer)
 
void convertYUVtoUYVY (unsigned char **t_uncompressBuff)
 
void convertYUVtoYUYV (unsigned char **t_uncompressBuff)
 
void convertYUYVtoYUV (unsigned char **t_buffer)
 

Private Attributes

struct jpeg_compress_struct m_cinfo
 
JSAMPARRAY m_destBuffer
 
struct jpeg_decompress_struct m_dinfo
 
struct jpeg_error_mgr m_jerr
 
JSAMPROW m_row_pointer [1]
 
unsigned char * m_rowBuffer
 

Additional Inherited Members

- Protected Attributes inherited from ICompression
int m_bpp
 
int m_compFrameCounter = 0
 
int m_decompFrameCounter = 0
 
rs2_format m_format
 
int m_height
 
int m_width
 

Detailed Description

Definition at line 10 of file JpegCompression.h.

Constructor & Destructor Documentation

JpegCompression::JpegCompression ( int  t_width,
int  t_height,
rs2_format  t_format,
int  t_bpp 
)

Definition at line 13 of file JpegCompression.cpp.

JpegCompression::~JpegCompression ( )

Definition at line 44 of file JpegCompression.cpp.

Member Function Documentation

int JpegCompression::compressBuffer ( unsigned char *  t_buffer,
int  t_size,
unsigned char *  t_compressedBuf 
)
virtual

Implements ICompression.

Definition at line 128 of file JpegCompression.cpp.

void JpegCompression::convertBGRtoRGB ( unsigned char **  t_buffer)
private

Definition at line 105 of file JpegCompression.cpp.

void JpegCompression::convertRGBtoBGR ( unsigned char **  t_uncompressBuff)
private

Definition at line 117 of file JpegCompression.cpp.

void JpegCompression::convertUYVYtoYUV ( unsigned char **  t_buffer)
private

Definition at line 66 of file JpegCompression.cpp.

void JpegCompression::convertYUVtoUYVY ( unsigned char **  t_uncompressBuff)
private

Definition at line 93 of file JpegCompression.cpp.

void JpegCompression::convertYUVtoYUYV ( unsigned char **  t_uncompressBuff)
private

Definition at line 81 of file JpegCompression.cpp.

void JpegCompression::convertYUYVtoYUV ( unsigned char **  t_buffer)
private

Definition at line 51 of file JpegCompression.cpp.

int JpegCompression::decompressBuffer ( unsigned char *  t_buffer,
int  t_size,
unsigned char *  t_uncompressedBuf 
)
virtual

Implements ICompression.

Definition at line 179 of file JpegCompression.cpp.

Member Data Documentation

struct jpeg_compress_struct JpegCompression::m_cinfo
private

Definition at line 27 of file JpegCompression.h.

JSAMPARRAY JpegCompression::m_destBuffer
private

Definition at line 30 of file JpegCompression.h.

struct jpeg_decompress_struct JpegCompression::m_dinfo
private

Definition at line 28 of file JpegCompression.h.

struct jpeg_error_mgr JpegCompression::m_jerr
private

Definition at line 26 of file JpegCompression.h.

JSAMPROW JpegCompression::m_row_pointer[1]
private

Definition at line 29 of file JpegCompression.h.

unsigned char* JpegCompression::m_rowBuffer
private

Definition at line 31 of file JpegCompression.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32