TTElib
Twitchy Thumbs Entertainment library
Functions
TTE::Image::JPG Namespace Reference

Functions

bool Write (const char *filepath, const unsigned char *image, int width, int height, int quality)
 
bool Write (FILE *fp, const unsigned char *image, int width, int height, int quality)
 
size_t Write (unsigned char *fileBuffer, size_t maxFileSize, const unsigned char *image, int width, int height, int maxQuality=100, int *chosenQuality=NULL, int *numIterations=NULL)
 
bool GetInfo (const char *filepath, int *width, int *height, int *bitdepth=NULL)
 
bool GetInfo (FILE *fp, int *width, int *height, int *bitdepth=NULL)
 
bool GetInfo (const void *buffer, size_t bufferSize, int *width, int *height, int *bitdepth=NULL)
 
bool Read (const char *filepath, unsigned char *image, int *width=NULL, int *height=NULL)
 
bool Read (FILE *fp, unsigned char *image, int *width=NULL, int *height=NULL)
 
bool Read (const void *buffer, size_t bufferSize, unsigned char *image, int *width=NULL, int *height=NULL)
 

Function Documentation

bool TTE::Image::JPG::GetInfo ( const char *  filepath,
int *  width,
int *  height,
int *  bitdepth = NULL 
)
bool TTE::Image::JPG::GetInfo ( FILE *  fp,
int *  width,
int *  height,
int *  bitdepth = NULL 
)
bool TTE::Image::JPG::GetInfo ( const void *  buffer,
size_t  bufferSize,
int *  width,
int *  height,
int *  bitdepth = NULL 
)
bool TTE::Image::JPG::Read ( const char *  filepath,
unsigned char *  image,
int *  width = NULL,
int *  height = NULL 
)
bool TTE::Image::JPG::Read ( FILE *  fp,
unsigned char *  image,
int *  width = NULL,
int *  height = NULL 
)
bool TTE::Image::JPG::Read ( const void *  buffer,
size_t  bufferSize,
unsigned char *  image,
int *  width = NULL,
int *  height = NULL 
)
bool TTE::Image::JPG::Write ( const char *  filepath,
const unsigned char *  image,
int  width,
int  height,
int  quality 
)
bool TTE::Image::JPG::Write ( FILE *  fp,
const unsigned char *  image,
int  width,
int  height,
int  quality 
)
size_t TTE::Image::JPG::Write ( unsigned char *  fileBuffer,
size_t  maxFileSize,
const unsigned char *  image,
int  width,
int  height,
int  maxQuality = 100,
int *  chosenQuality = NULL,
int *  numIterations = NULL 
)