Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ImageJPEG.c File Reference

#include <phStandard.h>
#include <ImageJPEG.h>
#include <ImageDefinitions.h>
#include <phError.h>
#include <phMemory.h>
#include <phPrint.h>
#include <jpeglib.h>
#include <jerror.h>

Go to the source code of this file.


struct  ph_mem_info
struct  ph_destination_mgr
struct  ph_source_mgr
struct  ph_jpeg_struct_t
struct  ph_jpeg_compress_struct_t
struct  ph_jpeg_decompress_struct_t
struct  ph_jpeg_compress_struct
struct  ph_jpeg_decompress_struct


#define phJPEG_INITED   -1
#define phJPEG_STARTED   0
#define phJPEG_FINISHED   1
#define phJPEG_SOURCE   1
#define phJPEG_DEST   2
#define phJPEG_DEFAULT_SIZE   4096
#define phJPEG_DECOMPRESS   1
#define phJPEG_COMPRESS   2


typedef ph_destination_mgrph_dest_ptr
typedef ph_source_mgrph_src_ptr
typedef ph_jpeg_struct_t ph_jpeg_struct
typedef ph_jpeg_compress_struct_t ph_jpeg_compress_type
typedef ph_jpeg_decompress_struct_t ph_jpeg_decompress_type


static void ph_jpeg_init_destination (j_compress_ptr cinfo)
static boolean ph_jpeg_empty_output_buffer (j_compress_ptr cinfo)
static void ph_jpeg_term_destination (j_compress_ptr cinfo)
static int ph_mem_info_init (ph_mem_info *info, uint8_t **pdst, uint32_t *sizeptr, ph_malloc_func mem_malloc, ph_realloc_func mem_realloc, int info_type)
static void ph_init_source (j_decompress_ptr cinfo)
static boolean ph_fill_input_buffer (j_decompress_ptr cinfo)
static void ph_skip_input_data (j_decompress_ptr cinfo, long num_bytes)
static void ph_term_source (j_decompress_ptr cinfo)
static void ph_jpeg_mem_dest (ph_cinfo_handle cinfo, uint8_t **pdst, uint32_t *pdstsize, ph_malloc_func mem_malloc, ph_realloc_func mem_realloc)
static uint32_t ph_jpeg_dest_mem_size (ph_cinfo_handle cinfo)
static uint8_tph_jpeg_dest_mem_ptr (ph_cinfo_handle cinfo)
static void ph_jpeg_mem_source (ph_cinfo_handle cinfo, uint8_t *srcmem, uint32_t size, ph_malloc_func mem_malloc, ph_realloc_func mem_realloc)
int ph_jpeg_new_compress (ph_cinfo_handle *compress_info)
int ph_jpeg_compress (ph_cinfo_handle compress_info, uint8_t *src, uint32_t srcsize, uint32_t width, uint32_t height, int32_t format, int quality, uint8_t **pdst, uint32_t *pdstsize)
int ph_jpeg_free_compress (ph_cinfo_handle *compress_info)
int ph_jpeg_new_decompress (ph_cinfo_handle *decompress_info)
int ph_jpeg_decompress (ph_cinfo_handle decompress_info, uint8_t *src, uint32_t srcsize, uint8_t **pdst, uint32_t *pdstsize, uint32_t *pwidth, uint32_t *pheight, int32_t *pformat)
int ph_jpeg_free_decompress (ph_cinfo_handle *decompress_info)

Copyright (C) 2002 - 2007 Philip D.S. Thoren ( )
University Of Massachusetts at Lowell
Robotics Lab Logo

Generated on Sat Jun 16 02:44:14 2007 for phission by  doxygen 1.4.4