Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
244 chris 1
// J2K_Control.idl : IDL source for J2K-Control.dll
2
//
3
 
4
// This file will be processed by the MIDL tool to
5
// produce the type library (J2K_Control.tlb) and marshalling code.
6
 
7
import "oaidl.idl";
8
import "ocidl.idl";
9
#include "olectl.h"
10
 
11
 
12
        [
13
                object,
14
                uuid(BE29213A-CFA5-453D-B243-5F8ABE6A8BB3),
15
                dual,
16
                helpstring("IJ2K_Codec Interface"),
17
                pointer_default(unique)
18
        ]
19
        interface IJ2K_Codec : IDispatch
20
        {
21
                [id(1), helpstring("open JPEG2000 file")] HRESULT OpenFile(BSTR filename, [optional] BSTR options);
22
                [id(2), helpstring("open JPEG2000 file from memory buffer")] HRESULT OpenMemory(unsigned char *src_buffer, int src_size, [optional] BSTR options);
23
                [id(3), helpstring("Create log-file and start logging")] HRESULT StartLogging(int level, int append);
24
                [id(4), helpstring("Stop logging")] HRESULT StopLogging();
25
                [propget, id(5), helpstring("Width of JPEG2000 image")] HRESULT ImageWidth([out, retval] long *pVal);
26
                [propget, id(6), helpstring("Height of JPEG2000 image")] HRESULT ImageHeight([out, retval] long *pVal);
27
                [propput, id(7), helpstring("Personal Registration Key")] HRESULT Key([in] BSTR newVal);
28
                [propget, id(8), helpstring("The number of components in the JPEG2000 image")] HRESULT ImageComponents([out, retval] long *pVal);
29
                [propget, id(9), helpstring("Resize image if true")] HRESULT DoScale([out, retval] BOOL *pVal);
30
                [propput, id(9), helpstring("Resize image if true")] HRESULT DoScale([in] BOOL newVal);
31
        };
32
 
33
[
34
        uuid(2A471E92-469E-469E-BC45-A3485F3911AB),
35
        version(1.0),
36
        helpstring("J2K_Control 1.0 Type Library")
37
]
38
library J2K_CONTROLLib
39
{
40
        importlib("stdole32.tlb");
41
        importlib("stdole2.tlb");
42
 
43
        [
44
                uuid(DEE0B9C2-D2E6-44FC-A6F6-4C5A3DC2F56D),
45
                helpstring("_IJ2K_CodecEvents Interface")
46
        ]
47
        dispinterface _IJ2K_CodecEvents
48
        {
49
                properties:
50
                methods:
51
        };
52
 
53
        [
54
                uuid(48AFF452-8543-4538-90FE-E541ECF19BA5),
55
                helpstring("J2K_Codec Class")
56
        ]
57
        coclass J2K_Codec
58
        {
59
                [default] interface IJ2K_Codec;
60
                [default, source] dispinterface _IJ2K_CodecEvents;
61
        };
62
};