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

ImageJPEG.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission : 
00003         Realtime Vision Processing System
00004     
00005     Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu)
00006     University of Massachusetts at Lowell,
00007     Laboratory for Artificial Intelligence and Robotics
00008     
00009     This file is part of Phission.
00010 
00011     Phission is free software; you can redistribute it and/or modify
00012     it under the terms of the GNU Lesser General Public License as published by
00013     the Free Software Foundation; either version 2 of the License, or
00014     (at your option) any later version.
00015 
00016     Phission is distributed in the hope that it will be useful,
00017     but WITHOUT ANY WARRANTY; without even the implied warranty of
00018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019     GNU Lesser General Public License for more details.
00020 
00021     You should have received a copy of the GNU Lesser General Public License
00022     along with Phission; if not, write to the Free Software
00023     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024 
00025  ---------------------------------------------------------------------------*/
00030 #ifndef _IMAGEJPEG_H
00031 #define _IMAGEJPEG_H
00032 
00033 #include <phStandard.h>
00034 
00035 #if phHAVE(LIBJPEG)
00036 
00037 #include <phFile.h>
00038 #include <phStdint.h>
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00058 typedef void *ph_cinfo_handle;
00059     
00060 /* ------------------------------------------------------------------------- */
00072 PHAPI(int) ph_jpeg_new_compress( ph_cinfo_handle *compress_info );
00073 
00074 /* Format should be passed as phImageRGB24 or phImageGREY8 */
00109 PHAPI(int) ph_jpeg_compress( ph_cinfo_handle   compress_info,
00110                              uint8_t          *src,
00111                              uint32_t          srcsize,
00112                              uint32_t          width,
00113                              uint32_t          height,
00114                              int32_t           format,
00115                              int               quality,
00116                              uint8_t         **pdst,
00117                              uint32_t         *pdstsize );
00118 
00131 PHAPI(int) ph_jpeg_free_compress( ph_cinfo_handle *pcompress_info );
00132 
00133 /* ------------------------------------------------------------------------- */
00147 PHAPI(int) ph_jpeg_new_decompress( ph_cinfo_handle *pdecompress_info );
00148 
00180 PHAPI(int) ph_jpeg_decompress( ph_cinfo_handle     decompress_info,
00181                                uint8_t            *src,
00182                                uint32_t            srcsize,
00183                                uint8_t           **pdst,
00184                                uint32_t           *pdstsize,
00185                                uint32_t           *pwidth,
00186                                uint32_t           *pheight,
00187                                int32_t            *pformat );
00188 
00201 PHAPI(int) ph_jpeg_free_decompress( ph_cinfo_handle *decompress_info );
00202  /* end \addtogroup JPEG */ /* end \addtogroup Image_FileFormats */ /* end \addtogroup Image */
00206 
00207 #ifdef __cplusplus
00208 }
00209 #endif
00210 
00211 #endif /* #if phHAVE(LIBJPEG) */
00212 
00213 #endif /* _IMAGEJPEG_H */




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

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