diff options
author | Talustus <talustus@dream-irc.de> | 2013-04-06 11:50:07 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2013-07-01 22:22:17 +0200 |
commit | 3019a9172b36b9e2033d92dccdb8ff8e2282da7c (patch) | |
tree | 3938a34520ea3b6c3519efb93cbeadce64018e84 /fb2png/fb.h | |
parent | Fix some issues with wipe partition list (diff) | |
download | android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.gz android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.bz2 android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.lz android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.xz android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.zst android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.zip |
Diffstat (limited to 'fb2png/fb.h')
-rw-r--r-- | fb2png/fb.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/fb2png/fb.h b/fb2png/fb.h new file mode 100644 index 000000000..25922c83b --- /dev/null +++ b/fb2png/fb.h @@ -0,0 +1,42 @@ +/* + * -- http://android-fb2png.googlecode.com/svn/trunk/fb.h -- + * + * Copyright 2011, Kyan He <kyan.ql.he@gmail.com> + * + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __FB_H__ +#define __FB_H__ + +struct fb { + unsigned int bpp; + unsigned int size; + unsigned int width; + unsigned int height; + unsigned int red_offset; + unsigned int red_length; + unsigned int blue_offset; + unsigned int blue_length; + unsigned int green_offset; + unsigned int green_length; + unsigned int alpha_offset; + unsigned int alpha_length; + void* data; +}; + +int fb_save_png(const struct fb *fb, const char *path); + +#endif |