908a27728c
* Include relevant headers for all used functions * Add prototype for fb_dump() to fb.h since used in c-files * Alphabetize includes Change-Id: Ifdbaceadb12576b607b654835ae93bc88e2c3268
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
/*
|
|
* -- 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;
|
|
};
|
|
|
|
void fb_dump(const struct fb* fb);
|
|
int fb_save_png(const struct fb *fb, const char *path);
|
|
|
|
#endif
|