-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gid-decoding_pnm.ads
42 lines (35 loc) · 1018 Bytes
/
gid-decoding_pnm.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- Portable pixmap format (PPM)
-- Portable graymap format (PGM)
-- Portable bitmap format (PBM)
private package GID.Decoding_PNM is
--------------------
-- Image decoding --
--------------------
generic
type Primary_Color_Range is mod <>;
with procedure Set_X_Y (x, y : Natural);
with procedure Put_Pixel
(red, green, blue : Primary_Color_Range;
alpha : Primary_Color_Range);
with procedure Feedback (percents : Natural);
--
procedure Load (image : in out Image_Descriptor);
function Get_Token (
stream : Stream_Access;
needs_EOL : Boolean := False;
single_char : Boolean := False
)
return String;
function Get_Integer (
stream : Stream_Access;
needs_EOL : Boolean := False;
single_char : Boolean := False
)
return Integer;
function Get_Positive_32 (
stream : Stream_Access;
needs_EOL : Boolean := False;
single_char : Boolean := False
)
return Positive_32;
end GID.Decoding_PNM;