Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ab113d7e
Commit
ab113d7e
authored
Jan 10, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Enumerate registered standard colorspace profiles.
parent
a48bb7b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
profile.c
dlls/mscms/tests/profile.c
+55
-0
No files found.
dlls/mscms/tests/profile.c
View file @
ab113d7e
...
@@ -439,6 +439,59 @@ static void test_GetCountColorProfileElements(void)
...
@@ -439,6 +439,59 @@ static void test_GetCountColorProfileElements(void)
}
}
}
}
typedef
struct
colorspace_description_struct
{
DWORD
dwID
;
char
*
szName
;
}
colorspace_descr
;
#define describe_colorspace(id) {id, #id}
colorspace_descr
known_colorspaces
[]
=
{
describe_colorspace
(
SPACE_XYZ
),
describe_colorspace
(
SPACE_Lab
),
describe_colorspace
(
SPACE_Luv
),
describe_colorspace
(
SPACE_YCbCr
),
describe_colorspace
(
SPACE_Yxy
),
describe_colorspace
(
SPACE_RGB
),
describe_colorspace
(
SPACE_GRAY
),
describe_colorspace
(
SPACE_HSV
),
describe_colorspace
(
SPACE_HLS
),
describe_colorspace
(
SPACE_CMYK
),
describe_colorspace
(
SPACE_CMY
),
describe_colorspace
(
SPACE_2_CHANNEL
),
describe_colorspace
(
SPACE_3_CHANNEL
),
describe_colorspace
(
SPACE_4_CHANNEL
),
describe_colorspace
(
SPACE_5_CHANNEL
),
describe_colorspace
(
SPACE_6_CHANNEL
),
describe_colorspace
(
SPACE_7_CHANNEL
),
describe_colorspace
(
SPACE_8_CHANNEL
)
};
static
void
enum_registered_color_profiles
(
void
)
{
BOOL
ret
;
DWORD
size
,
count
,
i
,
present
;
CHAR
profile
[
MAX_PATH
];
size
=
sizeof
(
profile
);
count
=
sizeof
(
known_colorspaces
)
/
sizeof
(
known_colorspaces
[
0
]);
present
=
0
;
trace
(
"
\n
"
);
trace
(
"Searching for registered standard colorspace profiles:
\n
"
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ret
=
pGetStandardColorSpaceProfileA
(
NULL
,
known_colorspaces
[
i
].
dwID
,
profile
,
&
size
);
if
(
ret
)
{
present
++
;
trace
(
" found %s
\n
"
,
known_colorspaces
[
i
].
szName
);
}
}
trace
(
"Total profiles found: %ld.
\n
"
,
present
);
trace
(
"
\n
"
);
}
#define fail_GSCSPA(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK) \
#define fail_GSCSPA(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK) \
do { \
do { \
size = dwSz; \
size = dwSz; \
...
@@ -1116,6 +1169,8 @@ START_TEST(profile)
...
@@ -1116,6 +1169,8 @@ START_TEST(profile)
test_GetCountColorProfileElements
();
test_GetCountColorProfileElements
();
enum_registered_color_profiles
();
test_GetStandardColorSpaceProfileA
();
test_GetStandardColorSpaceProfileA
();
test_GetStandardColorSpaceProfileW
();
test_GetStandardColorSpaceProfileW
();
...
...
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