Subversion Repositories Kolibri OS

Rev

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

Rev 3055 Rev 3499
Line 28... Line 28...
28
LIBIMG_FORMAT_PCX	= 8
28
LIBIMG_FORMAT_PCX	= 8
29
LIBIMG_FORMAT_XCF	= 9
29
LIBIMG_FORMAT_XCF	= 9
30
LIBIMG_FORMAT_TIFF	= 10
30
LIBIMG_FORMAT_TIFF	= 10
31
LIBIMG_FORMAT_PNM	= 11
31
LIBIMG_FORMAT_PNM	= 11
32
LIBIMG_FORMAT_WBMP	= 12
32
LIBIMG_FORMAT_WBMP	= 12
-
 
33
LIBIMG_FORMAT_XBM	= 13
33
LIBIMG_FORMAT_Z80	= 13
34
LIBIMG_FORMAT_Z80	= 14
Line 34... Line 35...
34
 
35
 
35
; scale type                    ; corresponding img.scale params
36
; scale type                    ; corresponding img.scale params
36
LIBIMG_SCALE_INTEGER	= 1     ; scale factor ; reserved 0
37
LIBIMG_SCALE_INTEGER	= 1     ; scale factor ; reserved 0
37
LIBIMG_SCALE_TILE	= 2     ; new width    ; new height
38
LIBIMG_SCALE_TILE	= 2     ; new width    ; new height
Line 76... Line 77...
76
  Encode	dd ?
77
  Encode	dd ?
77
  Capabilities	dd ?
78
  Capabilities	dd ?
78
ends
79
ends
Line 79... Line 80...
79
 
80
 
80
struct Image
81
struct Image
81
  Checksum dd ? ; ((Width ROL 16) OR Height) XOR Data[0]
82
  Checksum dd ? ; ((Width ROL 16) OR Height) XOR Data[0]	; ignored so far
82
  Width    dd ?
83
  Width    dd ?
83
  Height   dd ?
84
  Height   dd ?
84
  Next     dd ?
85
  Next     dd ?
85
  Previous dd ?
86
  Previous dd ?
86
  Type     dd ? ; one of Image.bppN
87
  Type     dd ? ; one of Image.bppN
87
  Data     dd ?
88
  Data     dd ?
88
  Palette  dd ? ; used iff Type eq Image.bpp8 or Image.bpp1
89
  Palette  dd ? ; used iff Type eq Image.bpp1, Image.bpp2, Image.bpp4 or Image.bpp8i
89
  Extended dd ?
90
  Extended dd ?
90
  Flags    dd ? ; bitfield
91
  Flags    dd ? ; bitfield
91
  Delay    dd ? ; used iff Image.IsAnimated is set in Flags
92
  Delay    dd ? ; used iff Image.IsAnimated is set in Flags
Line 99... Line 100...
99
Image.bpp15 = 4
100
Image.bpp15 = 4
100
Image.bpp16 = 5
101
Image.bpp16 = 5
101
Image.bpp1  = 6
102
Image.bpp1  = 6
102
Image.bpp8g = 7  ; grayscale
103
Image.bpp8g = 7  ; grayscale
103
Image.bpp8a = 8  ; grayscale with alpha channel; application layer only!!! kernel doesn't handle this image type, libimg can only create and destroy such images
104
Image.bpp8a = 8  ; grayscale with alpha channel; application layer only!!! kernel doesn't handle this image type, libimg can only create and destroy such images
104
;Image.bpp4  = 9
105
;Image.bpp2  = 9
105
;Image.bpp2  = 10
106
;Image.bpp4  = 10
Line 106... Line 107...
106
 
107
 
107
; bits in Image.Flags
108
; bits in Image.Flags
Line 108... Line 109...
108
Image.IsAnimated = 1
109
Image.IsAnimated = 1