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
74d53af5
Commit
74d53af5
authored
May 28, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Fix the test for rational IFD tag.
parent
d04d9940
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
metadata.c
dlls/windowscodecs/tests/metadata.c
+15
-13
No files found.
dlls/windowscodecs/tests/metadata.c
View file @
74d53af5
...
@@ -54,8 +54,8 @@ struct IFD_entry
...
@@ -54,8 +54,8 @@ struct IFD_entry
struct
IFD_rational
struct
IFD_rational
{
{
U
LONG
numerator
;
LONG
numerator
;
U
LONG
denominator
;
LONG
denominator
;
};
};
static
const
struct
static
const
struct
...
@@ -63,20 +63,21 @@ static const struct
...
@@ -63,20 +63,21 @@ static const struct
USHORT
number_of_entries
;
USHORT
number_of_entries
;
struct
IFD_entry
entry
[
6
];
struct
IFD_entry
entry
[
6
];
ULONG
next_IFD
;
ULONG
next_IFD
;
struct
IFD_rational
rational
;
struct
IFD_rational
xres
;
}
IFD_data
=
}
IFD_data
=
{
{
6
,
6
,
{
{
{
0xfe
,
IFD_SHORT
,
1
,
1
},
{
0xfe
,
IFD_SHORT
,
1
,
1
},
/* NEWSUBFILETYPE */
{
0x100
,
IFD_LONG
,
1
,
222
},
{
0x100
,
IFD_LONG
,
1
,
222
},
/* IMAGEWIDTH */
{
0x101
,
IFD_LONG
,
1
,
333
},
{
0x101
,
IFD_LONG
,
1
,
333
},
/* IMAGELENGTH */
{
0x102
,
IFD_SHORT
,
1
,
24
},
{
0x102
,
IFD_SHORT
,
1
,
24
},
/* BITSPERSAMPLE */
{
0x103
,
IFD_LONG
,
1
,
32773
},
{
0x103
,
IFD_LONG
,
1
,
32773
},
/* COMPRESSION: packbits */
{
0x11a
,
IFD_RATIONAL
,
1
,
sizeof
(
USHORT
)
+
sizeof
(
struct
IFD_entry
)
*
6
+
sizeof
(
ULONG
)
}
{
0x11a
,
IFD_RATIONAL
,
1
,
/* XRESOLUTION */
sizeof
(
USHORT
)
+
sizeof
(
struct
IFD_entry
)
*
6
+
sizeof
(
ULONG
)
}
},
},
0
,
0
,
{
300
,
1
}
{
900
,
3
}
};
};
#include "poppack.h"
#include "poppack.h"
...
@@ -321,7 +322,8 @@ static void test_metadata_IFD(void)
...
@@ -321,7 +322,8 @@ static void test_metadata_IFD(void)
{
{
static
const
struct
test_data
static
const
struct
test_data
{
{
ULONG
type
,
id
,
value
;
ULONG
type
,
id
;
LONGLONG
value
;
}
td
[
6
]
=
}
td
[
6
]
=
{
{
{
VT_UI2
,
0xfe
,
1
},
{
VT_UI2
,
0xfe
,
1
},
...
@@ -329,7 +331,7 @@ static void test_metadata_IFD(void)
...
@@ -329,7 +331,7 @@ static void test_metadata_IFD(void)
{
VT_UI4
,
0x101
,
333
},
{
VT_UI4
,
0x101
,
333
},
{
VT_UI2
,
0x102
,
24
},
{
VT_UI2
,
0x102
,
24
},
{
VT_UI4
,
0x103
,
32773
},
{
VT_UI4
,
0x103
,
32773
},
{
VT_UI8
,
0x11a
,
3
00
}
{
VT_UI8
,
0x11a
,
((
LONGLONG
)
3
<<
32
)
|
9
00
}
};
};
HRESULT
hr
;
HRESULT
hr
;
IWICMetadataReader
*
reader
;
IWICMetadataReader
*
reader
;
...
@@ -376,7 +378,7 @@ static void test_metadata_IFD(void)
...
@@ -376,7 +378,7 @@ static void test_metadata_IFD(void)
ok
(
id
.
vt
==
VT_UI2
,
"%u: unexpected vt: %u
\n
"
,
i
,
id
.
vt
);
ok
(
id
.
vt
==
VT_UI2
,
"%u: unexpected vt: %u
\n
"
,
i
,
id
.
vt
);
ok
(
U
(
id
).
uiVal
==
td
[
i
].
id
,
"%u: unexpected id: %#x
\n
"
,
i
,
U
(
id
).
uiVal
);
ok
(
U
(
id
).
uiVal
==
td
[
i
].
id
,
"%u: unexpected id: %#x
\n
"
,
i
,
U
(
id
).
uiVal
);
ok
(
value
.
vt
==
td
[
i
].
type
,
"%u: unexpected vt: %u
\n
"
,
i
,
value
.
vt
);
ok
(
value
.
vt
==
td
[
i
].
type
,
"%u: unexpected vt: %u
\n
"
,
i
,
value
.
vt
);
ok
(
U
(
value
).
u
lVal
==
td
[
i
].
value
,
"%u: unexpected id: %u
\n
"
,
i
,
U
(
value
).
ulVal
);
ok
(
U
(
value
).
u
hVal
.
QuadPart
==
td
[
i
].
value
,
"%u: unexpected id: %d/%d
\n
"
,
i
,
U
(
value
).
uhVal
.
LowPart
,
U
(
value
).
uhVal
.
HighPart
);
PropVariantClear
(
&
schema
);
PropVariantClear
(
&
schema
);
PropVariantClear
(
&
id
);
PropVariantClear
(
&
id
);
...
...
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