inc/flexUtils.h File Reference

Conversion functions. More...

#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.


Detailed Description

Conversion functions.

Author:
Nastasi Christian
Date:
2007-12-17

Function Documentation

void flex_gray2_to_gray8 ( unsigned char *  src,
unsigned char *  dest,
unsigned int  width,
unsigned int  height 
)

Convert from Gray2 to Gray8.

Parameters:
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.

Parameters:
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.

Parameters:
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
Returns:

void flex_rgb12_to_rgb24 ( unsigned char *  src,
unsigned char *  dest,
unsigned int  width,
unsigned int  height 
)

Convert from RGB12 to RGB24.

Parameters:
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.

Parameters:
src Source image
dest Destination buffer capable to store the result image
width Image width
height Image height


Generated on Wed Apr 23 00:11:08 2008 for Flex CAM Serial by  doxygen 1.5.4