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
a7f0c14b
Commit
a7f0c14b
authored
Nov 15, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IWICColorContext::InitializeFromExifColorSpace.
parent
7712c0e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
colorcontext.c
dlls/windowscodecs/colorcontext.c
+12
-2
No files found.
dlls/windowscodecs/colorcontext.c
View file @
a7f0c14b
...
...
@@ -39,6 +39,7 @@ typedef struct ColorContext {
WICColorContextType
type
;
BYTE
*
profile
;
UINT
profile_len
;
UINT
exif_color_space
;
}
ColorContext
;
static
inline
ColorContext
*
impl_from_IWICColorContext
(
IWICColorContext
*
iface
)
...
...
@@ -125,8 +126,16 @@ static HRESULT WINAPI ColorContext_InitializeFromMemory(IWICColorContext *iface,
static
HRESULT
WINAPI
ColorContext_InitializeFromExifColorSpace
(
IWICColorContext
*
iface
,
UINT
value
)
{
FIXME
(
"(%p,%u)
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
ColorContext
*
This
=
impl_from_IWICColorContext
(
iface
);
TRACE
(
"(%p,%u)
\n
"
,
iface
,
value
);
if
(
This
->
type
!=
WICColorContextUninitialized
&&
This
->
type
!=
WICColorContextExifColorSpace
)
return
WINCODEC_ERR_WRONGSTATE
;
This
->
exif_color_space
=
value
;
This
->
type
=
WICColorContextExifColorSpace
;
return
S_OK
;
}
static
HRESULT
WINAPI
ColorContext_GetType
(
IWICColorContext
*
iface
,
...
...
@@ -177,6 +186,7 @@ HRESULT ColorContext_Create(IWICColorContext **colorcontext)
This
->
type
=
0
;
This
->
profile
=
NULL
;
This
->
profile_len
=
0
;
This
->
exif_color_space
=
~
0u
;
*
colorcontext
=
&
This
->
IWICColorContext_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