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
8996ffbf
Commit
8996ffbf
authored
Mar 19, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement GetSize for the TIFF decoder.
parent
8066e9be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+23
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
8996ffbf
...
...
@@ -198,6 +198,7 @@ typedef struct {
int
bpp
;
int
indexed
;
int
reverse_bgr
;
UINT
width
,
height
;
}
tiff_decode_info
;
typedef
struct
{
...
...
@@ -275,6 +276,20 @@ static HRESULT tiff_get_decode_info(TIFF *tiff, tiff_decode_info *decode_info)
return
E_FAIL
;
}
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_IMAGEWIDTH
,
&
decode_info
->
width
);
if
(
!
ret
)
{
WARN
(
"missing image width
\n
"
);
return
E_FAIL
;
}
ret
=
pTIFFGetField
(
tiff
,
TIFFTAG_IMAGELENGTH
,
&
decode_info
->
height
);
if
(
!
ret
)
{
WARN
(
"missing image length
\n
"
);
return
E_FAIL
;
}
return
S_OK
;
}
...
...
@@ -552,8 +567,14 @@ static ULONG WINAPI TiffFrameDecode_Release(IWICBitmapFrameDecode *iface)
static
HRESULT
WINAPI
TiffFrameDecode_GetSize
(
IWICBitmapFrameDecode
*
iface
,
UINT
*
puiWidth
,
UINT
*
puiHeight
)
{
FIXME
(
"(%p,%p,%p)
\n
"
,
iface
,
puiWidth
,
puiHeight
);
return
E_NOTIMPL
;
TiffFrameDecode
*
This
=
(
TiffFrameDecode
*
)
iface
;
*
puiWidth
=
This
->
decode_info
.
width
;
*
puiHeight
=
This
->
decode_info
.
height
;
TRACE
(
"(%p) <-- %ux%u
\n
"
,
iface
,
*
puiWidth
,
*
puiHeight
);
return
S_OK
;
}
static
HRESULT
WINAPI
TiffFrameDecode_GetPixelFormat
(
IWICBitmapFrameDecode
*
iface
,
...
...
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