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
781113f4
Commit
781113f4
authored
Jun 08, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Add WICIfdMetadataReader stub implementation.
parent
8d71cc1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
+25
-3
clsfactory.c
dlls/windowscodecs/clsfactory.c
+1
-0
metadatahandler.c
dlls/windowscodecs/metadatahandler.c
+23
-1
wincodecs_private.h
dlls/windowscodecs/wincodecs_private.h
+1
-2
No files found.
dlls/windowscodecs/clsfactory.c
View file @
781113f4
...
...
@@ -60,6 +60,7 @@ static classinfo wic_classes[] = {
{
&
CLSID_WICDefaultFormatConverter
,
FormatConverter_CreateInstance
},
{
&
CLSID_WineTgaDecoder
,
TgaDecoder_CreateInstance
},
{
&
CLSID_WICUnknownMetadataReader
,
UnknownMetadataReader_CreateInstance
},
{
&
CLSID_WICIfdMetadataReader
,
IfdMetadataReader_CreateInstance
},
{
0
}};
typedef
struct
{
...
...
dlls/windowscodecs/metadatahandler.c
View file @
781113f4
...
...
@@ -325,7 +325,7 @@ static const IWICPersistStreamVtbl MetadataHandler_PersistStream_Vtbl = {
MetadataHandler_SaveEx
};
HRESULT
MetadataReader_Create
(
const
MetadataHandlerVtbl
*
vtable
,
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
static
HRESULT
MetadataReader_Create
(
const
MetadataHandlerVtbl
*
vtable
,
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
{
MetadataHandler
*
This
;
HRESULT
hr
;
...
...
@@ -597,3 +597,25 @@ HRESULT UnknownMetadataReader_CreateInstance(IUnknown *pUnkOuter, REFIID iid, vo
{
return
MetadataReader_Create
(
&
UnknownMetadataReader_Vtbl
,
pUnkOuter
,
iid
,
ppv
);
}
static
HRESULT
LoadIfdMetadata
(
IStream
*
input
,
const
GUID
*
preferred_vendor
,
DWORD
persist_options
,
MetadataItem
**
items
,
DWORD
*
item_count
)
{
FIXME
(
"stub
\n
"
);
*
items
=
NULL
;
*
item_count
=
0
;
return
S_OK
;
}
static
const
MetadataHandlerVtbl
IfdMetadataReader_Vtbl
=
{
0
,
&
CLSID_WICIfdMetadataReader
,
LoadIfdMetadata
};
HRESULT
IfdMetadataReader_CreateInstance
(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
{
return
MetadataReader_Create
(
&
IfdMetadataReader_Vtbl
,
pUnkOuter
,
iid
,
ppv
);
}
dlls/windowscodecs/wincodecs_private.h
View file @
781113f4
...
...
@@ -84,8 +84,7 @@ typedef struct _MetadataHandlerVtbl
ULARGE_INTEGER
*
size
);
}
MetadataHandlerVtbl
;
extern
HRESULT
MetadataReader_Create
(
const
MetadataHandlerVtbl
*
vtable
,
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
extern
HRESULT
UnknownMetadataReader_CreateInstance
(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
extern
HRESULT
IfdMetadataReader_CreateInstance
(
IUnknown
*
pUnkOuter
,
REFIID
iid
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
#endif
/* WINCODECS_PRIVATE_H */
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