Talustus | 3019a91 | 2013-04-06 11:50:07 +0200 | [diff] [blame] | 1 | /* |
| 2 | * -- http://android-fb2png.googlecode.com/svn/trunk/fb.h -- |
| 3 | * |
| 4 | * Copyright 2011, Kyan He <kyan.ql.he@gmail.com> |
| 5 | * |
| 6 | * |
| 7 | * This program is free software: you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation, either version 3 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #ifndef __FB_H__ |
| 22 | #define __FB_H__ |
| 23 | |
| 24 | struct fb { |
| 25 | unsigned int bpp; |
| 26 | unsigned int size; |
| 27 | unsigned int width; |
| 28 | unsigned int height; |
| 29 | unsigned int red_offset; |
| 30 | unsigned int red_length; |
| 31 | unsigned int blue_offset; |
| 32 | unsigned int blue_length; |
| 33 | unsigned int green_offset; |
| 34 | unsigned int green_length; |
| 35 | unsigned int alpha_offset; |
| 36 | unsigned int alpha_length; |
| 37 | void* data; |
| 38 | }; |
| 39 | |
| 40 | int fb_save_png(const struct fb *fb, const char *path); |
| 41 | |
| 42 | #endif |