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
dbdec221
Commit
dbdec221
authored
Jan 04, 2013
by
Ludger Sprenker
Committed by
Alexandre Julliard
Jan 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Test conversions of the 24bpp PixelFormats.
parent
968eac9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
converter.c
dlls/windowscodecs/tests/converter.c
+16
-0
No files found.
dlls/windowscodecs/tests/converter.c
View file @
dbdec221
...
...
@@ -277,6 +277,12 @@ static const BYTE bits_24bppBGR[] = {
static
const
struct
bitmap_data
testdata_24bppBGR
=
{
&
GUID_WICPixelFormat24bppBGR
,
24
,
bits_24bppBGR
,
4
,
2
,
96
.
0
,
96
.
0
};
static
const
BYTE
bits_24bppRGB
[]
=
{
0
,
0
,
255
,
0
,
255
,
0
,
255
,
0
,
0
,
0
,
0
,
0
,
255
,
255
,
0
,
255
,
0
,
255
,
0
,
255
,
255
,
255
,
255
,
255
};
static
const
struct
bitmap_data
testdata_24bppRGB
=
{
&
GUID_WICPixelFormat24bppRGB
,
24
,
bits_24bppRGB
,
4
,
2
,
96
.
0
,
96
.
0
};
static
const
BYTE
bits_32bppBGR
[]
=
{
255
,
0
,
0
,
80
,
0
,
255
,
0
,
80
,
0
,
0
,
255
,
80
,
0
,
0
,
0
,
80
,
0
,
255
,
255
,
80
,
255
,
0
,
255
,
80
,
255
,
255
,
0
,
80
,
255
,
255
,
255
,
80
};
...
...
@@ -499,6 +505,16 @@ START_TEST(converter)
test_conversion
(
&
testdata_32bppBGRA
,
&
testdata_32bppBGR
,
"BGRA -> BGR"
,
0
);
test_conversion
(
&
testdata_32bppBGR
,
&
testdata_32bppBGRA
,
"BGR -> BGRA"
,
0
);
test_conversion
(
&
testdata_32bppBGRA
,
&
testdata_32bppBGRA
,
"BGRA -> BGRA"
,
0
);
test_conversion
(
&
testdata_24bppBGR
,
&
testdata_24bppBGR
,
"24bppBGR -> 24bppBGR"
,
0
);
test_conversion
(
&
testdata_24bppBGR
,
&
testdata_24bppRGB
,
"24bppBGR -> 24bppRGB"
,
0
);
test_conversion
(
&
testdata_24bppRGB
,
&
testdata_24bppRGB
,
"24bppRGB -> 24bppRGB"
,
0
);
test_conversion
(
&
testdata_24bppRGB
,
&
testdata_24bppBGR
,
"24bppRGB -> 24bppBGR"
,
0
);
test_conversion
(
&
testdata_32bppBGR
,
&
testdata_24bppRGB
,
"32bppBGR -> 24bppRGB"
,
0
);
test_conversion
(
&
testdata_24bppRGB
,
&
testdata_32bppBGR
,
"24bppRGB -> 32bppBGR"
,
0
);
test_invalid_conversion
();
test_default_converter
();
...
...
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