Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1085 | pj | 1 | /* |
2 | * |
||
3 | * |
||
4 | */ |
||
5 | |||
6 | #ifndef __GPHOTO_H |
||
7 | #define __GPHOTO_H |
||
8 | |||
9 | #include <ll/sys/types.h> |
||
10 | |||
11 | struct BITMAPFILEHEADER { |
||
12 | WORD bfType; |
||
13 | DWORD bfSize; |
||
14 | WORD bfReserved1; |
||
15 | WORD bfReserved2; |
||
16 | DWORD bfOffBits; |
||
17 | } __attribute__((packed)); |
||
18 | |||
19 | struct BITMAPINFOHEADER { |
||
20 | DWORD biSize; |
||
21 | DWORD biWidth; |
||
22 | DWORD biHeight; |
||
23 | WORD biPlanes; |
||
24 | WORD biBitCount; |
||
25 | DWORD biCompression; |
||
26 | DWORD biSizeImage; |
||
27 | DWORD biXPelsPerMeter; |
||
28 | DWORD biYPelsPerMeter; |
||
29 | DWORD biClrUsed; |
||
30 | DWORD biClrImportant; |
||
31 | } __attribute__((packed)); |
||
32 | |||
33 | struct RGBQUAD { |
||
34 | BYTE rgbBlue; |
||
35 | BYTE rgbGreen; |
||
36 | BYTE rgbRed; |
||
37 | BYTE rgbReserverd; |
||
38 | } __attribute__((packed)); |
||
39 | |||
40 | int gphoto_show(char *title, char *pathname, int x, int y); |
||
41 | |||
42 | #endif |