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
eabce3e0
Commit
eabce3e0
authored
Mar 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add a test for TIFF image loading.
parent
d24a4212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
image.c
dlls/gdiplus/tests/image.c
+21
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
eabce3e0
...
...
@@ -806,6 +806,26 @@ static const unsigned char jpgimage[285] = {
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0xff
,
0xda
,
0x00
,
0x0c
,
0x03
,
0x01
,
0x00
,
0x02
,
0x11
,
0x03
,
0x11
,
0x00
,
0x3f
,
0x00
,
0xb2
,
0xc0
,
0x07
,
0xff
,
0xd9
};
/* 1x1 pixel tiff */
static
const
unsigned
char
tiffimage
[]
=
{
0x49
,
0x49
,
0x2a
,
0x00
,
0x0c
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x10
,
0x00
,
0xfe
,
0x00
,
0x04
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x02
,
0x01
,
0x03
,
0x00
,
0x03
,
0x00
,
0x00
,
0x00
,
0xd2
,
0x00
,
0x00
,
0x00
,
0x03
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x06
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x0d
,
0x01
,
0x02
,
0x00
,
0x1b
,
0x00
,
0x00
,
0x00
,
0xd8
,
0x00
,
0x00
,
0x00
,
0x11
,
0x01
,
0x04
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x08
,
0x00
,
0x00
,
0x00
,
0x12
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x15
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x03
,
0x00
,
0x00
,
0x00
,
0x16
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x40
,
0x00
,
0x00
,
0x00
,
0x17
,
0x01
,
0x04
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x03
,
0x00
,
0x00
,
0x00
,
0x1a
,
0x01
,
0x05
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0xf4
,
0x00
,
0x00
,
0x00
,
0x1b
,
0x01
,
0x05
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0xfc
,
0x00
,
0x00
,
0x00
,
0x1c
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x28
,
0x01
,
0x03
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x02
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x08
,
0x00
,
0x08
,
0x00
,
0x08
,
0x00
,
0x2f
,
0x68
,
0x6f
,
0x6d
,
0x65
,
0x2f
,
0x6d
,
0x65
,
0x68
,
0x2f
,
0x44
,
0x65
,
0x73
,
0x6b
,
0x74
,
0x6f
,
0x70
,
0x2f
,
0x74
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x74
,
0x69
,
0x66
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x48
,
0x00
,
0x00
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x48
,
0x00
,
0x00
,
0x00
,
0x01
};
/* 320x320 twip wmf */
static
const
unsigned
char
wmfimage
[
180
]
=
{
0xd7
,
0xcd
,
0xc6
,
0x9a
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x40
,
0x01
,
0x40
,
0x01
,
0xa0
,
0x05
,
...
...
@@ -827,6 +847,7 @@ static void test_getrawformat(void)
test_bufferrawformat
((
void
*
)
gifimage
,
sizeof
(
gifimage
),
&
ImageFormatGIF
,
__LINE__
,
FALSE
);
test_bufferrawformat
((
void
*
)
bmpimage
,
sizeof
(
bmpimage
),
&
ImageFormatBMP
,
__LINE__
,
FALSE
);
test_bufferrawformat
((
void
*
)
jpgimage
,
sizeof
(
jpgimage
),
&
ImageFormatJPEG
,
__LINE__
,
FALSE
);
test_bufferrawformat
((
void
*
)
tiffimage
,
sizeof
(
tiffimage
),
&
ImageFormatTIFF
,
__LINE__
,
FALSE
);
test_bufferrawformat
((
void
*
)
wmfimage
,
sizeof
(
wmfimage
),
&
ImageFormatWMF
,
__LINE__
,
FALSE
);
}
...
...
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