#include <stdio.h>
#include <jpeglib.h>
Go to the source code of this file.
Data Structures | |
struct | myJPEG_source_mgr |
Typedefs | |
typedef myJPEG_source_mgr * | myJPEG_src_ptr |
Functions | |
bool | flex_JPEG_decompress (unsigned char *srcBuffer, int size, unsigned char *dstBuffer, int &width, int &height, int &bpp) |
JPEG Decompression. | |
void | flex_rgb16_to_rgb24 (unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height) |
Convert from RGB16 to RGB24. | |
void | flex_rgb12_to_rgb24 (unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height) |
Convert from RGB12 to RGB24. | |
void | flex_gray4_to_gray8 (unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height) |
Convert from Gray4 to Gray8. | |
void | flex_gray2_to_gray8 (unsigned char *src, unsigned char *dest, unsigned int width, unsigned int height) |
Convert from Gray2 to Gray8. |
void flex_gray2_to_gray8 | ( | unsigned char * | src, | |
unsigned char * | dest, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Convert from Gray2 to Gray8.
src | Source image | |
dest | Destination buffer capable to store the result image | |
width | Image width | |
height | Image height |
void flex_gray4_to_gray8 | ( | unsigned char * | src, | |
unsigned char * | dest, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Convert from Gray4 to Gray8.
src | Source image | |
dest | Destination buffer capable to store the result image | |
width | Image width | |
height | Image height |
bool flex_JPEG_decompress | ( | unsigned char * | srcBuffer, | |
int | size, | |||
unsigned char * | dstBuffer, | |||
int & | width, | |||
int & | height, | |||
int & | bpp | |||
) |
JPEG Decompression.
srcBuffer | Source JPEG image | |
size | Source JPEG image size | |
dstBuffer | Destination buffer capable to store the decompressed image | |
width | The decompressed image width | |
height | The decompressed image height | |
bpp | The decompressed image number of byte per pixel |
void flex_rgb12_to_rgb24 | ( | unsigned char * | src, | |
unsigned char * | dest, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Convert from RGB12 to RGB24.
src | Source image | |
dest | Destination buffer capable to store the result image | |
width | Image width | |
height | Image height |
void flex_rgb16_to_rgb24 | ( | unsigned char * | src, | |
unsigned char * | dest, | |||
unsigned int | width, | |||
unsigned int | height | |||
) |
Convert from RGB16 to RGB24.
src | Source image | |
dest | Destination buffer capable to store the result image | |
width | Image width | |
height | Image height |