Rev 9016 | Rev 9454 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9016 | Rev 9396 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | dword img_create = #aimg_create; |
25 | dword img_create = #aimg_create; |
26 | dword img_encode = #aimg_encode; |
26 | dword img_encode = #aimg_encode; |
27 | dword img_convert = #aimg_convert; |
27 | dword img_convert = #aimg_convert; |
28 | dword img_from_file = #aimg_from_file; |
28 | dword img_from_file = #aimg_from_file; |
29 | dword img_blend = #aimg_blend; |
29 | dword img_blend = #aimg_blend; |
30 | //dword img_resize = #aimg_resize; |
- | |
31 | //dword img_is_img = #aimg_is_img; |
30 | //dword img_is_img = #aimg_is_img; |
32 | //dword img_to_rgb2 = #aimg_to_rgb2; |
31 | //dword img_to_rgb2 = #aimg_to_rgb2; |
33 | //dword img_scale = #aimg_scale; |
32 | //dword img_scale = #aimg_scale; |
34 | //dword img_flip = #aimg_flip; |
33 | dword img_flip = #aimg_flip; |
35 | //dword img_rotate = #aimg_rotate; |
34 | dword img_rotate = #aimg_rotate; |
- | 35 | dword img_to_rgb = #aimg_to_rgb; |
|
Line 36... | Line 36... | ||
36 | 36 | ||
Line 37... | Line 37... | ||
37 | $DD 2 dup 0 |
37 | $DD 2 dup 0 |
38 | 38 | ||
Line 44... | Line 44... | ||
44 | char aimg_create[] = "img_create"; |
44 | char aimg_create[] = "img_create"; |
45 | char aimg_encode[] = "img_encode"; |
45 | char aimg_encode[] = "img_encode"; |
46 | char aimg_convert[] = "img_convert"; |
46 | char aimg_convert[] = "img_convert"; |
47 | char aimg_from_file[] = "img_from_file"; |
47 | char aimg_from_file[] = "img_from_file"; |
48 | char aimg_blend[] = "img_blend"; |
48 | char aimg_blend[] = "img_blend"; |
49 | //char aimg_resize[] = "img_resize"; |
- | |
50 | //char aimg_is_img[] = "img_is_img"; |
49 | //char aimg_is_img[] = "img_is_img"; |
51 | //char aimg_to_rgb2[] = "img_to_rgb2"; |
50 | //char aimg_to_rgb2[] = "img_to_rgb2"; |
52 | //char aimg_scale[] = "img_scale"; |
51 | //char aimg_scale[] = "img_scale"; |
53 | //char aimg_flip[] = "img_flip"; |
52 | char aimg_flip[] = "img_flip"; |
54 | //char aimg_rotate[] = "img_rotate"; |
53 | char aimg_rotate[] = "img_rotate"; |
- | 54 | char aimg_to_rgb[] = "img_to_rgb"; |
|
Line 55... | Line 55... | ||
55 | 55 | ||
56 | #define LIBIMG_FORMAT_BMP 1 |
56 | #define LIBIMG_FORMAT_BMP 1 |
57 | #define LIBIMG_FORMAT_ICO 2 |
57 | #define LIBIMG_FORMAT_ICO 2 |
58 | #define LIBIMG_FORMAT_CUR 3 |
58 | #define LIBIMG_FORMAT_CUR 3 |
Line 81... | Line 81... | ||
81 | #define IMAGE_BPP4i 9 |
81 | #define IMAGE_BPP4i 9 |
82 | #define IMAGE_BPP8a 10 // grayscale with alpha channel; application layer only!!! |
82 | #define IMAGE_BPP8a 10 // grayscale with alpha channel; application layer only!!! |
83 | // kernel doesn't handle this image type, |
83 | // kernel doesn't handle this image type, |
84 | // libimg can only create and destroy such images |
84 | // libimg can only create and destroy such images |
Line -... | Line 85... | ||
- | 85 | ||
- | 86 | #define FLIP_VERTICAL 0x01 |
|
- | 87 | #define FLIP_HORIZONTAL 0x02 |
|
- | 88 | ||
- | 89 | #define ROTATE_90_CW 0x01 |
|
- | 90 | #define ROTATE_180 0x02 |
|
- | 91 | #define ROTATE_270_CW 0x03 |
|
- | 92 | #define ROTATE_90_CCW ROTATE_270_CW |
|
- | 93 | #define ROTATE_270_CCW ROTATE_90_CW |
|
85 | 94 | ||
86 | struct libimg_image |
95 | struct libimg_image |
87 | { |
96 | { |
88 | dword checksum; // ((Width ROL 16) OR Height) XOR Data[0] ; ignored so far |
97 | dword checksum; // ((Width ROL 16) OR Height) XOR Data[0] ; ignored so far |
89 | dword w; |
98 | dword w; |
Line 112... | Line 121... | ||
112 | //checksum = ESDWORD[EDI]; |
121 | //checksum = ESDWORD[EDI]; |
113 | w = ESDWORD[EDI+4]; |
122 | w = ESDWORD[EDI+4]; |
114 | h = ESDWORD[EDI+8]; |
123 | h = ESDWORD[EDI+8]; |
115 | //next = ESDWORD[EDI+12]; |
124 | //next = ESDWORD[EDI+12]; |
116 | //previous = ESDWORD[EDI+16]; |
125 | //previous = ESDWORD[EDI+16]; |
- | 126 | type = ESDWORD[EDI+20]; |
|
117 | imgsrc = ESDWORD[EDI+24]; |
127 | imgsrc = ESDWORD[EDI+24]; |
118 | //palette = ESDWORD[EDI+28]; |
128 | //palette = ESDWORD[EDI+28]; |
119 | //extended = ESDWORD[EDI+32]; |
129 | //extended = ESDWORD[EDI+32]; |
120 | //flags = ESDWORD[EDI+36]; |
130 | //flags = ESDWORD[EDI+36]; |
121 | //delay = ESDWORD[EDI+40]; |
131 | //delay = ESDWORD[EDI+40]; |