Openholo  v4.1
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)
 

Static Public Member Functions

static ImgEncodergetInstance ()
 

Detailed Description

Definition at line 29 of file ImgEncoder.h.

Member Function Documentation

◆ CalcBitmapSize()

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

Definition at line 48 of file ImgEncoder.h.

◆ Crop()

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()

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

◆ getInstance()

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

Definition at line 39 of file ImgEncoder.h.

◆ GetSize()

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

◆ Resize()

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

◆ Rotate()

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

◆ Save()

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: