Openholo  v4.2
Open Source Digital Holographic Library
oph::ImgEncoder Class Reference

#include <ImgEncoder.h>

Public Member Functions

bool Save (const char *path, BYTE *pBuf, UINT len, int quality=100)
 
int CalcBitmapSize (int w, int h, int ch)
 
bool GetSize (const char *path, unsigned int *size)
 
void Resize (unsigned char *src, unsigned char *dst, int w, int h, int neww, int newh, int ch)
 
bool Rotate (double rotate, unsigned char *src, unsigned char *dst, int w, int h, int neww, int newh, int ch)
 
bool Flip (FLIP mode, unsigned char *src, unsigned char *dst, int w, int h, int ch)
 
bool Crop (unsigned char *src, unsigned char *dst, int w, int h, int ch, int x, int y, int neww, int newh)
 
bool Save (const char *path, BYTE *pBuf, UINT len, int quality=100)
 
int CalcBitmapSize (int w, int h, int ch)
 
bool GetSize (const char *path, unsigned int *size)
 
void Resize (unsigned char *src, unsigned char *dst, int w, int h, int neww, int newh, int ch)
 
bool Rotate (double rotate, unsigned char *src, unsigned char *dst, int w, int h, int neww, int newh, int ch)
 
bool Flip (FLIP mode, unsigned char *src, unsigned char *dst, int w, int h, int ch)
 
bool Crop (unsigned char *src, unsigned char *dst, int w, int h, int ch, int x, int y, int neww, int newh)
 

Static Public Member Functions

static ImgEncodergetInstance ()
 
static ImgEncodergetInstance ()
 

Detailed Description

Definition at line 29 of file ImgEncoder.h.

Member Function Documentation

◆ CalcBitmapSize() [1/2]

int oph::ImgEncoder::CalcBitmapSize ( int  w,
int  h,
int  ch 
)
inline

Definition at line 48 of file ImgEncoder.h.

◆ CalcBitmapSize() [2/2]

int oph::ImgEncoder::CalcBitmapSize ( int  w,
int  h,
int  ch 
)
inline

Definition at line 48 of file ImgEncoder.h.

◆ Crop() [1/2]

bool oph::ImgEncoder::Crop ( unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  ch,
int  x,
int  y,
int  neww,
int  newh 
)

◆ Crop() [2/2]

bool oph::ImgEncoder::Crop ( unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  ch,
int  x,
int  y,
int  neww,
int  newh 
)

◆ Flip() [1/2]

bool oph::ImgEncoder::Flip ( FLIP  mode,
unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  ch 
)

◆ Flip() [2/2]

bool oph::ImgEncoder::Flip ( FLIP  mode,
unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  ch 
)

◆ getInstance() [1/2]

static ImgEncoder* oph::ImgEncoder::getInstance ( )
inlinestatic

Definition at line 39 of file ImgEncoder.h.

◆ getInstance() [2/2]

static ImgEncoder* oph::ImgEncoder::getInstance ( )
inlinestatic

Definition at line 39 of file ImgEncoder.h.

◆ GetSize() [1/2]

bool oph::ImgEncoder::GetSize ( const char *  path,
unsigned int *  size 
)

◆ GetSize() [2/2]

bool oph::ImgEncoder::GetSize ( const char *  path,
unsigned int *  size 
)

◆ Resize() [1/2]

void oph::ImgEncoder::Resize ( unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  neww,
int  newh,
int  ch 
)

◆ Resize() [2/2]

void oph::ImgEncoder::Resize ( unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  neww,
int  newh,
int  ch 
)

◆ Rotate() [1/2]

bool oph::ImgEncoder::Rotate ( double  rotate,
unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  neww,
int  newh,
int  ch 
)

◆ Rotate() [2/2]

bool oph::ImgEncoder::Rotate ( double  rotate,
unsigned char *  src,
unsigned char *  dst,
int  w,
int  h,
int  neww,
int  newh,
int  ch 
)

◆ Save() [1/2]

bool oph::ImgEncoder::Save ( const char *  path,
BYTE *  pBuf,
UINT  len,
int  quality = 100 
)

◆ Save() [2/2]

bool oph::ImgEncoder::Save ( const char *  path,
BYTE *  pBuf,
UINT  len,
int  quality = 100 
)

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