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
d80630e8
Commit
d80630e8
authored
Sep 23, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add test for PNG encoder.
parent
3db6ef49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
converter.c
dlls/windowscodecs/tests/converter.c
+9
-0
No files found.
dlls/windowscodecs/tests/converter.c
View file @
d80630e8
...
@@ -236,6 +236,12 @@ static void compare_bitmap_data(const struct bitmap_data *expect, IWICBitmapSour
...
@@ -236,6 +236,12 @@ static void compare_bitmap_data(const struct bitmap_data *expect, IWICBitmapSour
HeapFree
(
GetProcessHeap
(),
0
,
converted_bits
);
HeapFree
(
GetProcessHeap
(),
0
,
converted_bits
);
}
}
static
const
BYTE
bits_24bppBGR
[]
=
{
255
,
0
,
0
,
0
,
255
,
0
,
0
,
0
,
255
,
0
,
0
,
0
,
0
,
255
,
255
,
255
,
0
,
255
,
255
,
255
,
0
,
255
,
255
,
255
};
static
const
struct
bitmap_data
testdata_24bppBGR
=
{
&
GUID_WICPixelFormat24bppBGR
,
24
,
bits_24bppBGR
,
4
,
2
,
96
.
0
,
96
.
0
};
static
const
BYTE
bits_32bppBGR
[]
=
{
static
const
BYTE
bits_32bppBGR
[]
=
{
255
,
0
,
0
,
80
,
0
,
255
,
0
,
80
,
0
,
0
,
255
,
80
,
0
,
0
,
0
,
80
,
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
};
0
,
255
,
255
,
80
,
255
,
0
,
255
,
80
,
255
,
255
,
0
,
80
,
255
,
255
,
255
,
80
};
...
@@ -425,5 +431,8 @@ START_TEST(converter)
...
@@ -425,5 +431,8 @@ START_TEST(converter)
test_encoder
(
&
testdata_32bppBGR
,
&
CLSID_WICBmpEncoder
,
test_encoder
(
&
testdata_32bppBGR
,
&
CLSID_WICBmpEncoder
,
&
testdata_32bppBGR
,
&
CLSID_WICBmpDecoder
,
"BMP encoder 32bppBGR"
);
&
testdata_32bppBGR
,
&
CLSID_WICBmpDecoder
,
"BMP encoder 32bppBGR"
);
test_encoder
(
&
testdata_24bppBGR
,
&
CLSID_WICPngEncoder
,
&
testdata_24bppBGR
,
&
CLSID_WICPngDecoder
,
"PNG encoder 24bppBGR"
);
CoUninitialize
();
CoUninitialize
();
}
}
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