EmbeddedArtists AB
/
app_lcdboard_demo_cube
Example for the LPC4088 QSB Base Board
Embed:
(wiki syntax)
Show/hide line numbers
bmp.h
00001 /* ---------------------------------------------------------------------------- 00002 * ATMEL Microcontroller Software Support - ROUSSET - 00003 * ---------------------------------------------------------------------------- 00004 * Copyright (c) 2006, Atmel Corporation 00005 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions are met: 00010 * 00011 * - Redistributions of source code must retain the above copyright notice, 00012 * this list of conditions and the disclaiimer below. 00013 * 00014 * - Redistributions in binary form must reproduce the above copyright notice, 00015 * this list of conditions and the disclaimer below in the documentation and/or 00016 * other materials provided with the distribution. 00017 * 00018 * Atmel's name may not be used to endorse or promote products derived from 00019 * this software without specific prior written permission. 00020 * 00021 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 00022 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00023 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00024 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 00025 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00026 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 00027 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00028 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00029 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00030 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00031 * ---------------------------------------------------------------------------- 00032 */ 00033 00034 #ifndef BMP_H 00035 #define BMP_H 00036 00037 //------------------------------------------------------------------------------ 00038 // Exported types 00039 //------------------------------------------------------------------------------ 00040 00041 struct BMPHeader { 00042 00043 unsigned short type; 00044 unsigned int fileSize; 00045 unsigned short reserved1; 00046 unsigned short reserved2; 00047 unsigned int offset; 00048 unsigned int headerSize; 00049 unsigned int width; 00050 unsigned int height; 00051 unsigned short planes; 00052 unsigned short bits; 00053 unsigned int compression; 00054 unsigned int imageSize; 00055 unsigned int xresolution; 00056 unsigned int yresolution; 00057 unsigned int ncolours; 00058 unsigned int importantcolours; 00059 00060 } __attribute__ ((packed)); 00061 00062 //------------------------------------------------------------------------------ 00063 // Exported functions 00064 //------------------------------------------------------------------------------ 00065 00066 extern unsigned char BMP_IsValid(void *file); 00067 00068 extern unsigned int BMP_GetFileSize(void *file); 00069 00070 extern unsigned char BMP_Decode( 00071 void *file, 00072 unsigned char *buffer, 00073 unsigned int width, 00074 unsigned int height, 00075 unsigned char bpp); 00076 00077 #endif //#ifndef BMP_H 00078 00079
Generated on Fri Jul 15 2022 14:51:32 by 1.7.2