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
798af6fe
Commit
798af6fe
authored
Aug 26, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs/tests: Make some functions static.
parent
e464d480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
converter.c
dlls/windowscodecs/tests/converter.c
+6
-6
No files found.
dlls/windowscodecs/tests/converter.c
View file @
798af6fe
...
@@ -159,7 +159,7 @@ static const IWICBitmapSourceVtbl BitmapTestSrc_Vtbl = {
...
@@ -159,7 +159,7 @@ static const IWICBitmapSourceVtbl BitmapTestSrc_Vtbl = {
BitmapTestSrc_CopyPixels
BitmapTestSrc_CopyPixels
};
};
void
CreateTestBitmap
(
const
bitmap_data
*
data
,
IWICBitmapSource
**
bitmap
)
static
void
CreateTestBitmap
(
const
bitmap_data
*
data
,
IWICBitmapSource
**
bitmap
)
{
{
BitmapTestSrc
*
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BitmapTestSrc
));
BitmapTestSrc
*
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BitmapTestSrc
));
...
@@ -174,7 +174,7 @@ void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap)
...
@@ -174,7 +174,7 @@ void CreateTestBitmap(const bitmap_data *data, IWICBitmapSource **bitmap)
*
bitmap
=
NULL
;
*
bitmap
=
NULL
;
}
}
void
DeleteTestBitmap
(
IWICBitmapSource
*
bitmap
)
static
void
DeleteTestBitmap
(
IWICBitmapSource
*
bitmap
)
{
{
BitmapTestSrc
*
This
=
(
BitmapTestSrc
*
)
bitmap
;
BitmapTestSrc
*
This
=
(
BitmapTestSrc
*
)
bitmap
;
ok
(
This
->
lpVtbl
==
&
BitmapTestSrc_Vtbl
,
"test bitmap %p deleted with incorrect vtable
\n
"
,
bitmap
);
ok
(
This
->
lpVtbl
==
&
BitmapTestSrc_Vtbl
,
"test bitmap %p deleted with incorrect vtable
\n
"
,
bitmap
);
...
@@ -182,7 +182,7 @@ void DeleteTestBitmap(IWICBitmapSource *bitmap)
...
@@ -182,7 +182,7 @@ void DeleteTestBitmap(IWICBitmapSource *bitmap)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
}
void
compare_bitmap_data
(
const
struct
bitmap_data
*
expect
,
IWICBitmapSource
*
source
,
const
char
*
name
)
static
void
compare_bitmap_data
(
const
struct
bitmap_data
*
expect
,
IWICBitmapSource
*
source
,
const
char
*
name
)
{
{
BYTE
*
converted_bits
;
BYTE
*
converted_bits
;
UINT
width
,
height
;
UINT
width
,
height
;
...
@@ -248,7 +248,7 @@ static const BYTE bits_32bppBGRA[] = {
...
@@ -248,7 +248,7 @@ static const BYTE bits_32bppBGRA[] = {
static
const
struct
bitmap_data
testdata_32bppBGRA
=
{
static
const
struct
bitmap_data
testdata_32bppBGRA
=
{
&
GUID_WICPixelFormat32bppBGRA
,
32
,
bits_32bppBGRA
,
4
,
2
,
96
.
0
,
96
.
0
};
&
GUID_WICPixelFormat32bppBGRA
,
32
,
bits_32bppBGRA
,
4
,
2
,
96
.
0
,
96
.
0
};
void
test_conversion
(
const
struct
bitmap_data
*
src
,
const
struct
bitmap_data
*
dst
,
const
char
*
name
,
BOOL
todo
)
static
void
test_conversion
(
const
struct
bitmap_data
*
src
,
const
struct
bitmap_data
*
dst
,
const
char
*
name
,
BOOL
todo
)
{
{
IWICBitmapSource
*
src_bitmap
,
*
dst_bitmap
;
IWICBitmapSource
*
src_bitmap
,
*
dst_bitmap
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -271,7 +271,7 @@ void test_conversion(const struct bitmap_data *src, const struct bitmap_data *ds
...
@@ -271,7 +271,7 @@ void test_conversion(const struct bitmap_data *src, const struct bitmap_data *ds
DeleteTestBitmap
(
src_bitmap
);
DeleteTestBitmap
(
src_bitmap
);
}
}
void
test_invalid_conversion
(
void
)
static
void
test_invalid_conversion
(
void
)
{
{
IWICBitmapSource
*
src_bitmap
,
*
dst_bitmap
;
IWICBitmapSource
*
src_bitmap
,
*
dst_bitmap
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -285,7 +285,7 @@ void test_invalid_conversion(void)
...
@@ -285,7 +285,7 @@ void test_invalid_conversion(void)
DeleteTestBitmap
(
src_bitmap
);
DeleteTestBitmap
(
src_bitmap
);
}
}
void
test_default_converter
(
void
)
static
void
test_default_converter
(
void
)
{
{
IWICBitmapSource
*
src_bitmap
;
IWICBitmapSource
*
src_bitmap
;
IWICFormatConverter
*
converter
;
IWICFormatConverter
*
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