File: fblogo.h

package info (click to toggle)
fblogo 0.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,316 kB
  • ctags: 30
  • sloc: ansic: 1,311; makefile: 61
file content (44 lines) | stat: -rw-r--r-- 819 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
  fblogo.h
  Generate linux_logo.h header file for use with the framebuffer boot logo
  Written by Daniel Ved´┐Ży <daniel@kongsberg.online.no> 1999
  Adapted by Gordon Fraser <gordon@freakzone.net> 2001/2002
  Released under the GPL
*/

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#include <string.h>
#include <unistd.h>

#include "png.h"
#include "low_color.h"

#define VERSION       "0.3"
#define LINUX_24      0 
#define LINUX_22      1
#define PNG_SIG_BYTES 8


#define ERR_NOPNG     1
#define ERR_PNGPTR    2
#define ERR_PNGINFO   3
#define ERR_COLNUM    4

void usage(void);
int read_image(FILE*);
int write_header(FILE*, char);


png_uint_32 width, height;

int num_palette;
png_colorp palette;
png_bytep image_data;

char verbose;