Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
31375666
Commit
31375666
authored
Mar 08, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implement TranslateBitmapBits.
- Don't pass bogus intent values to lcms.
parent
b4863240
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
15 deletions
+29
-15
lcms_api.h
dlls/mscms/lcms_api.h
+2
-0
mscms_main.c
dlls/mscms/mscms_main.c
+1
-0
stub.c
dlls/mscms/stub.c
+0
-12
transform.c
dlls/mscms/transform.c
+26
-3
No files found.
dlls/mscms/lcms_api.h
View file @
31375666
...
...
@@ -31,6 +31,7 @@ LCMS_API_FUNCTION(cmsCreate_sRGBProfile)
LCMS_API_FUNCTION
(
cmsCreateMultiprofileTransform
)
LCMS_API_FUNCTION
(
cmsCreateTransform
)
LCMS_API_FUNCTION
(
cmsDeleteTransform
)
LCMS_API_FUNCTION
(
cmsDoTransform
)
LCMS_API_FUNCTION
(
cmsOpenProfileFromMem
)
#ifndef LCMS_API_NO_REDEFINE
...
...
@@ -39,6 +40,7 @@ LCMS_API_FUNCTION(cmsOpenProfileFromMem)
#define cmsCreateMultiprofileTransform pcmsCreateMultiprofileTransform
#define cmsCreateTransform pcmsCreateTransform
#define cmsDeleteTransform pcmsDeleteTransform
#define cmsDoTransform pcmsDoTransform
#define cmsOpenProfileFromMem pcmsOpenProfileFromMem
#endif
/* LCMS_API_NO_REDEFINE */
...
...
dlls/mscms/mscms_main.c
View file @
31375666
...
...
@@ -77,6 +77,7 @@ static BOOL MSCMS_init_lcms()
LOAD_FUNCPTR
(
cmsCreateMultiprofileTransform
);
LOAD_FUNCPTR
(
cmsCreateTransform
);
LOAD_FUNCPTR
(
cmsDeleteTransform
);
LOAD_FUNCPTR
(
cmsDoTransform
);
LOAD_FUNCPTR
(
cmsOpenProfileFromMem
);
#undef LOAD_FUNCPTR
...
...
dlls/mscms/stub.c
View file @
31375666
...
...
@@ -202,18 +202,6 @@ BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD si
return
FALSE
;
}
BOOL
WINAPI
TranslateBitmapBits
(
HTRANSFORM
transform
,
PVOID
srcbits
,
BMFORMAT
input
,
DWORD
width
,
DWORD
height
,
DWORD
inputstride
,
PVOID
destbits
,
BMFORMAT
output
,
DWORD
outputstride
,
PBMCALLBACKFN
callback
,
ULONG
data
)
{
FIXME
(
"( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, 0x%08x, 0x%08lx, %p, 0x%08lx ) stub
\n
"
,
transform
,
srcbits
,
input
,
width
,
height
,
inputstride
,
destbits
,
output
,
outputstride
,
callback
,
data
);
return
FALSE
;
}
BOOL
WINAPI
TranslateColors
(
HTRANSFORM
transform
,
PCOLOR
inputcolors
,
DWORD
number
,
COLORTYPE
input
,
PCOLOR
outputcolors
,
COLORTYPE
output
)
{
...
...
dlls/mscms/transform.c
View file @
31375666
...
...
@@ -62,11 +62,14 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
#ifdef HAVE_LCMS_H
cmsHTRANSFORM
cmstransform
;
cmsHPROFILE
cmsprofiles
[
3
];
int
intent
;
TRACE
(
"( %p, %p, %p, 0x%08lx )
\n
"
,
space
,
dest
,
target
,
flags
);
if
(
!
space
||
!
dest
)
return
FALSE
;
intent
=
space
->
lcsIntent
>
3
?
INTENT_PERCEPTUAL
:
space
->
lcsIntent
;
cmsprofiles
[
0
]
=
cmsCreate_sRGBProfile
();
/* FIXME: create from supplied color space */
cmsprofiles
[
1
]
=
MSCMS_hprofile2cmsprofile
(
dest
);
...
...
@@ -74,14 +77,13 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
{
cmsprofiles
[
2
]
=
MSCMS_hprofile2cmsprofile
(
target
);
cmstransform
=
cmsCreateMultiprofileTransform
(
cmsprofiles
,
3
,
TYPE_BGR_8
,
TYPE_BGR_8
,
space
->
lcsI
ntent
,
0
);
TYPE_BGR_8
,
i
ntent
,
0
);
}
else
{
cmstransform
=
cmsCreateTransform
(
cmsprofiles
[
0
],
TYPE_BGR_8
,
cmsprofiles
[
1
],
TYPE_BGR_8
,
space
->
lcsI
ntent
,
0
);
TYPE_BGR_8
,
i
ntent
,
0
);
}
ret
=
MSCMS_create_htransform_handle
(
cmstransform
);
#endif
/* HAVE_LCMS_H */
...
...
@@ -136,3 +138,24 @@ BOOL WINAPI DeleteColorTransform( HTRANSFORM transform )
#endif
/* HAVE_LCMS_H */
return
ret
;
}
BOOL
WINAPI
TranslateBitmapBits
(
HTRANSFORM
transform
,
PVOID
srcbits
,
BMFORMAT
input
,
DWORD
width
,
DWORD
height
,
DWORD
inputstride
,
PVOID
destbits
,
BMFORMAT
output
,
DWORD
outputstride
,
PBMCALLBACKFN
callback
,
ULONG
data
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS_H
cmsHTRANSFORM
cmstransform
;
TRACE
(
"( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, 0x%08x, 0x%08lx, %p, 0x%08lx )
\n
"
,
transform
,
srcbits
,
input
,
width
,
height
,
inputstride
,
destbits
,
output
,
outputstride
,
callback
,
data
);
cmstransform
=
MSCMS_htransform2cmstransform
(
transform
);
cmsDoTransform
(
cmstransform
,
srcbits
,
destbits
,
width
*
height
);
ret
=
TRUE
;
#endif
/* HAVE_LCMS_H */
return
ret
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment