sprint 1-alpha
sprint/image/imageview.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 *   SPRINT::image
00003 *
00004 *   Copyright (C) 2005-2011  Paolo Medici <www.pmx.it>
00005 *
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 *  This library is distributed in the hope that it will be useful,
00012 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 *  Lesser General Public License for more details.
00015 *
00016 *  You should have received a copy of the GNU Lesser General Public
00017 *  License along with this library; if not, write to the Free Software
00018 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019 *
00020 *******************************************************************************/
00021 
00022 #ifndef _SPRINT_IMAGEVIEW_H
00023 #define _SPRINT_IMAGEVIEW_H
00024 
00029 #include <sprint/image/types.h>
00030 
00031 namespace sprint {
00032 
00033 /*
00034 struct meta_data {
00035        int meta_id;
00036        void *value;
00037        meta_data *next;
00038        };
00039 */
00040 
00044 struct imageview {
00046        unsigned int type;
00048        unsigned int bpp;
00050        unsigned int width;
00052        unsigned int height;
00054        long stride;
00056        unsigned char *mem;
00057        
00059        unsigned int palette_size;
00061        unsigned int palettetype;
00063        unsigned char *palette;
00064 
00066        unsigned int colorkey;
00067        
00069        void *user;
00070   public:     
00071        imageview() : type(TYPE_UNDEFINED), bpp(0), width(0), height(0), stride(0), mem(0), palette_size(0), palette(0), user(0) { }
00072 
00075        imageview(const imageview & src, int x0, int y0, int x1, int y1);
00076 
00077 };
00078 
00079 
00080 } // sprint
00081       
00082 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines