• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * logo/logo.h
3  *
4  * Copyright (c) 2007-2020 Allwinnertech Co., Ltd.
5  * Author: zhengxiaobin <zhengxiaobin@allwinnertech.com>
6  *
7  * This software is licensed under the terms of the GNU General Public
8  * License version 2, as published by the Free Software Foundation, and
9  * may be copied, distributed, and modified under those terms.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  */
17 #ifndef _LOGO_H
18 #define _LOGO_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "include.h"
25 
26 struct bmp_pad_header {
27 	char data[2];		/* pading 2 byte */
28 	char signature[2];
29 	u32 file_size;
30 	u32 reserved;
31 	u32 data_offset;
32 	/* InfoHeader */
33 	u32 size;
34 	u32 width;
35 	u32 height;
36 	u16 planes;
37 	u16 bit_count;
38 	u32 compression;
39 	u32 image_size;
40 	u32 x_pixels_per_m;
41 	u32 y_pixels_per_m;
42 	u32 colors_used;
43 	u32 colors_important;
44 } __packed;
45 
46 struct bmp_header {
47 	/* Header */
48 	char signature[2];
49 	u32 file_size;
50 	u32 reserved;
51 	u32 data_offset;
52 	/* InfoHeader */
53 	u32 size;
54 	u32 width;
55 	u32 height;
56 	u16 planes;
57 	u16 bit_count;
58 	u32 compression;
59 	u32 image_size;
60 	u32 x_pixels_per_m;
61 	u32 y_pixels_per_m;
62 	u32 colors_used;
63 	u32 colors_important;
64 	/* ColorTable */
65 } __packed;
66 
67 int logo_parse(struct fb_info *info);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /*End of file*/
74