| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/libjpeg/jmemdstsrc.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright © 2001-2007 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00027 #ifndef  __TERRALIB_INTERNAL_DRIVER_JPEGLIB_MEMDST_H
    00028 #define  __TERRALIB_INTERNAL_DRIVER_JPEGLIB_MEMDST_H
    00029
    00030 #include "jpeglib.h"
    00031
    00035 typedef struct
    00036 {
    00037   struct jpeg_destination_mgr pub;          /* public fields */
    00038   JOCTET **pTargetData;                                           /* memory buffer for jpeg output */
    00039   unsigned int *pNumBytes;                             /* number of bytes in the buffer */
    00040   unsigned int initialDataSize;             /* size of the initially allocated buffer*/
    00041   int bufferPreallocated;                              /* boolean indicating whether buffer was previously allocated */
    00042   int bufferSizeChanged;                               /* boolean indicating whether buffer was changed inside the routine*/
    00043 } mem_destination_mgr;
    00044
    00045 typedef mem_destination_mgr * mem_dest_ptr;
    00046
    00048 #define OUTPUT_BUF_SIZE  ((unsigned int)1048576)
    00049
    00051 GLOBAL(void)
    00052 j_mem_dest(j_compress_ptr cinfo, void **pTargetData,   unsigned int *pNumBytes);
    00053
    00054 // Expanded data source object for memory buffer input
    00055 typedef struct
    00056 {
    00057            struct jpeg_source_mgr pub;
    00058            unsigned char* buffer;
    00059            unsigned int   bufsize;
    00060 } my_source_mgr;
    00061
    00062 typedef my_source_mgr* my_src_ptr;
    00063
    00065 GLOBAL(void)
    00066 j_mem_src (j_decompress_ptr cinfo, unsigned char* buffer, unsigned int bufsize);
    00067
    00068 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines