Fix FS #9128: invalidate the peakmeter scales when switching between playback and...
[Rockbox.git] / apps / recorder / bmp.h
blob3ac73de03b8f501fe531f20bf47220785900e807
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Daniel Stenberg
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _BMP_H_
22 #define _BMP_H_
24 #include "config.h"
25 #include "lcd.h"
27 /*********************************************************************
28 * read_bmp_file()
30 * Reads a 8bit BMP file and puts the data in a 1-pixel-per-byte
31 * array.
32 * Returns < 0 for error, or number of bytes used from the bitmap buffer
34 **********************************************/
35 int read_bmp_file(const char* filename,
36 struct bitmap *bm,
37 int maxsize,
38 int format);
40 int read_bmp_fd(int fd,
41 struct bitmap *bm,
42 int maxsize,
43 int format);
44 #endif