summaryrefslogtreecommitdiff
path: root/src/fltk-images-rgb-jpeg.ads
blob: 0349b01cc9f7b153419ae3a6b0e2b656b79da481 (plain)
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
43
44
45
46
47
48
49
50


--  Programmed by Jedidiah Barber
--  Released into the public domain


package FLTK.Images.RGB.JPEG is


    -------------
    --  Types  --
    -------------

    type JPEG_Image is new RGB_Image with private;

    type JPEG_Image_Reference (Data : not null access JPEG_Image'Class) is
        limited null record with Implicit_Dereference => Data;




    --------------------
    --  Construction  --
    --------------------

    package Forge is

        function Create
               (Filename : in String)
            return JPEG_Image;

        function Create
               (Name : in String := "";
                Data : in Color_Component_Array)
            return JPEG_Image;

    end Forge;


private


    type JPEG_Image is new RGB_Image with null record;

    overriding procedure Finalize
           (This : in out JPEG_Image);


end FLTK.Images.RGB.JPEG;