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
d8c71dd5
Commit
d8c71dd5
authored
Feb 11, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IWICBitmapFrameDecode::GetColorContexts for TIFF images.
parent
e002d2ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
tiffformat.c
dlls/windowscodecs/tiffformat.c
+28
-2
No files found.
dlls/windowscodecs/tiffformat.c
View file @
d8c71dd5
...
...
@@ -1105,8 +1105,34 @@ static HRESULT WINAPI TiffFrameDecode_GetMetadataQueryReader(IWICBitmapFrameDeco
static
HRESULT
WINAPI
TiffFrameDecode_GetColorContexts
(
IWICBitmapFrameDecode
*
iface
,
UINT
cCount
,
IWICColorContext
**
ppIColorContexts
,
UINT
*
pcActualCount
)
{
FIXME
(
"(%p,%u,%p,%p): stub
\n
"
,
iface
,
cCount
,
ppIColorContexts
,
pcActualCount
);
return
WINCODEC_ERR_UNSUPPORTEDOPERATION
;
TiffFrameDecode
*
This
=
impl_from_IWICBitmapFrameDecode
(
iface
);
const
BYTE
*
profile
;
UINT
len
;
HRESULT
hr
;
TRACE
(
"(%p,%u,%p,%p)
\n
"
,
iface
,
cCount
,
ppIColorContexts
,
pcActualCount
);
EnterCriticalSection
(
&
This
->
parent
->
lock
);
if
(
pTIFFGetField
(
This
->
parent
->
tiff
,
TIFFTAG_ICCPROFILE
,
&
len
,
&
profile
))
{
if
(
cCount
&&
ppIColorContexts
)
{
hr
=
IWICColorContext_InitializeFromMemory
(
*
ppIColorContexts
,
profile
,
len
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
hr
;
}
}
*
pcActualCount
=
1
;
}
else
*
pcActualCount
=
0
;
LeaveCriticalSection
(
&
This
->
parent
->
lock
);
return
S_OK
;
}
static
HRESULT
WINAPI
TiffFrameDecode_GetThumbnail
(
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