• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

ccvt_types.h

Go to the documentation of this file.
00001 /*  CCVT: ColourConVerT: simple library for converting colourspaces
00002     Copyright (C) 2002 Nemosoft Unv.
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018     For questions, remarks, patches, etc. for this program, the author can be
00019     reached at nemosoft@smcc.demon.nl.
00020 */
00021 
00022 #ifndef CCVT_TYPES_H
00023 #define CCVT_TYPES_H
00024 
00025 typedef struct
00026 {
00027         unsigned char b;
00028         unsigned char g;
00029         unsigned char r;
00030         unsigned char z;
00031 } PIXTYPE_bgr32;
00032 
00033 typedef struct
00034 {
00035         unsigned char b;
00036         unsigned char g;
00037         unsigned char r;
00038 } PIXTYPE_bgr24;
00039 
00040 typedef struct
00041 {
00042         unsigned char r;
00043         unsigned char g;
00044         unsigned char b;
00045         unsigned char z;
00046 } PIXTYPE_rgb32;
00047 
00048 typedef struct
00049 {
00050         unsigned char r;
00051         unsigned char g;
00052         unsigned char b;
00053 } PIXTYPE_rgb24;
00054 
00055 #define SAT(c) \
00056     if (c & (~255)) { if (c < 0) c = 0; else c = 255; }
00057 
00058 
00059 
00060 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal