dinput: Implement SetProperty DIPROP_APPDATA using enum_objects.
[wine.git] / dlls / mscms / mscms_priv.h
blob7a4a35ebc24d574c821a104efca94e3cf834edf6
1 /*
2 * MSCMS - Color Management System for Wine
4 * Copyright 2004, 2005 Hans Leidekker
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 /* A simple structure to tie together a pointer to an icc profile, an lcms
22 * color profile handle and a Windows file handle. If the profile is memory
23 * based the file handle field is set to INVALID_HANDLE_VALUE. The 'access'
24 * field records the access parameter supplied to an OpenColorProfile()
25 * call, i.e. PROFILE_READ or PROFILE_READWRITE.
28 #include <lcms2.h>
30 struct profile
32 HANDLE file;
33 DWORD access;
34 char *data;
35 DWORD size;
36 cmsHPROFILE cmsprofile;
39 extern HPROFILE create_profile( struct profile * ) DECLSPEC_HIDDEN;
40 extern BOOL close_profile( HPROFILE ) DECLSPEC_HIDDEN;
42 extern HTRANSFORM create_transform( cmsHTRANSFORM ) DECLSPEC_HIDDEN;
43 extern BOOL close_transform( HTRANSFORM ) DECLSPEC_HIDDEN;
45 struct profile *grab_profile( HPROFILE ) DECLSPEC_HIDDEN;
46 cmsHTRANSFORM grab_transform( HTRANSFORM ) DECLSPEC_HIDDEN;
48 void release_profile( struct profile * ) DECLSPEC_HIDDEN;
49 void release_transform( cmsHTRANSFORM ) DECLSPEC_HIDDEN;
51 extern void free_handle_tables( void ) DECLSPEC_HIDDEN;
53 struct tag_entry
55 DWORD sig;
56 DWORD offset;
57 DWORD size;
60 extern DWORD get_tag_count( const struct profile * ) DECLSPEC_HIDDEN;
61 extern BOOL get_tag_entry( const struct profile *, DWORD, struct tag_entry * ) DECLSPEC_HIDDEN;
62 extern BOOL get_adjusted_tag( const struct profile *, TAGTYPE, struct tag_entry * ) DECLSPEC_HIDDEN;
63 extern BOOL get_tag_data( const struct profile *, TAGTYPE, DWORD, void *, DWORD *, BOOL * ) DECLSPEC_HIDDEN;
64 extern BOOL set_tag_data( const struct profile *, TAGTYPE, DWORD, const void *, DWORD * ) DECLSPEC_HIDDEN;
65 extern void get_profile_header( const struct profile *, PROFILEHEADER * ) DECLSPEC_HIDDEN;
66 extern void set_profile_header( const struct profile *, const PROFILEHEADER * ) DECLSPEC_HIDDEN;
68 struct lcms_funcs
70 void * (CDECL *open_profile)( void *data, DWORD size );
71 void (CDECL *close_profile)( void *profile );
72 void * (CDECL *create_transform)( void *output, void *target, DWORD intent );
73 void * (CDECL *create_multi_transform)( void *profiles, DWORD count, DWORD intent );
74 BOOL (CDECL *translate_bits)( void *transform, void *srcbits, BMFORMAT input,
75 void *dstbits, BMFORMAT output, DWORD size );
76 BOOL (CDECL *translate_colors)( void *transform, COLOR *in, DWORD count, COLORTYPE input_type,
77 COLOR *out, COLORTYPE output_type );
78 void (CDECL *close_transform)( void *transform );
81 extern const struct lcms_funcs *lcms_funcs;
83 extern const char *dbgstr_tag(DWORD) DECLSPEC_HIDDEN;