Subversion Repositories Kolibri OS

Rev

Rev 783 | Rev 1079 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 783 Rev 999
Line 1... Line 1...
1
;;================================================================================================;;
1
;;================================================================================================;;
2
;;//// libimg.inc //// (c) mike.dld, 2007-2008 ///////////////////////////////////////////////////;;
2
;;//// libimg.inc //// (c) mike.dld, 2007-2008, (c) diamond, 2009 ////////////////////////////////;;
3
;;================================================================================================;;
3
;;================================================================================================;;
4
;;                                                                                                ;;
4
;;                                                                                                ;;
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
6
;;                                                                                                ;;
6
;;                                                                                                ;;
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
8
;; General Public License as published by the Free Software Foundation, either version 3 of the   ;;
8
;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
9
;; License, or (at your option) any later version.                                                ;;
9
;; of the License, or (at your option) any later version.                                         ;;
10
;;                                                                                                ;;
10
;;                                                                                                ;;
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
13
;; General Public License for more details.                                                       ;;
13
;; Lesser General Public License for more details.                                                ;;
14
;;                                                                                                ;;
14
;;                                                                                                ;;
15
;; You should have received a copy of the GNU General Public License along with Libs-Dev. If not, ;;
15
;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev.  ;;
16
;; see .                                                            ;;
16
;; If not, see .                                                    ;;
17
;;                                                                                                ;;
17
;;                                                                                                ;;
18
;;================================================================================================;;
18
;;================================================================================================;;
Line 19... Line 19...
19
 
19
 
Line 28... Line 28...
28
  Checksum dd ? ; ((Width ROL 16) OR Height) XOR Data[0]
28
  Checksum dd ? ; ((Width ROL 16) OR Height) XOR Data[0]
29
  Width    dd ?
29
  Width    dd ?
30
  Height   dd ?
30
  Height   dd ?
31
  Next	   dd ?
31
  Next	   dd ?
32
  Previous dd ?
32
  Previous dd ?
-
 
33
  Type     dd ? ; one of Image.bppN
33
  Data	   dd ?
34
  Data	   dd ?
-
 
35
  Palette  dd ? ; used iff Type eq Image.bpp8
34
  Extended dd ?
36
  Extended dd ?
35
ends
37
ends
Line -... Line 38...
-
 
38
 
-
 
39
Image.bpp8 = 1
-
 
40
Image.bpp24 = 2
-
 
41
Image.bpp32 = 3
36
 
42
 
37
FLIP_VERTICAL	= 0x01
43
FLIP_VERTICAL	= 0x01
38
FLIP_HORIZONTAL = 0x02
44
FLIP_HORIZONTAL = 0x02
Line 39... Line 45...
39
FLIP_BOTH	= FLIP_VERTICAL or FLIP_HORIZONTAL
45
FLIP_BOTH	= FLIP_VERTICAL or FLIP_HORIZONTAL