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
7d19b39c
Commit
7d19b39c
authored
Apr 16, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IWICComponentInfo::GetVendorGUID.
parent
d99740e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
15 deletions
+25
-15
info.c
dlls/windowscodecs/info.c
+21
-8
info.c
dlls/windowscodecs/tests/info.c
+4
-7
No files found.
dlls/windowscodecs/info.c
View file @
7d19b39c
...
...
@@ -41,6 +41,7 @@ static const WCHAR author_valuename[] = {'A','u','t','h','o','r',0};
static
const
WCHAR
friendlyname_valuename
[]
=
{
'F'
,
'r'
,
'i'
,
'e'
,
'n'
,
'd'
,
'l'
,
'y'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
pixelformats_keyname
[]
=
{
'P'
,
'i'
,
'x'
,
'e'
,
'l'
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
's'
,
0
};
static
const
WCHAR
containerformat_valuename
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'a'
,
'i'
,
'n'
,
'e'
,
'r'
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
0
};
static
const
WCHAR
vendor_valuename
[]
=
{
'V'
,
'e'
,
'n'
,
'd'
,
'o'
,
'r'
,
0
};
static
HRESULT
ComponentInfo_GetStringValue
(
HKEY
classkey
,
LPCWSTR
value
,
UINT
buffer_size
,
WCHAR
*
buffer
,
UINT
*
actual_size
)
...
...
@@ -199,8 +200,11 @@ static HRESULT WINAPI BitmapDecoderInfo_GetAuthor(IWICBitmapDecoderInfo *iface,
static
HRESULT
WINAPI
BitmapDecoderInfo_GetVendorGUID
(
IWICBitmapDecoderInfo
*
iface
,
GUID
*
pguidVendor
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pguidVendor
);
return
E_NOTIMPL
;
BitmapDecoderInfo
*
This
=
impl_from_IWICBitmapDecoderInfo
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pguidVendor
);
return
ComponentInfo_GetGUIDValue
(
This
->
classkey
,
vendor_valuename
,
pguidVendor
);
}
static
HRESULT
WINAPI
BitmapDecoderInfo_GetVersion
(
IWICBitmapDecoderInfo
*
iface
,
UINT
cchVersion
,
...
...
@@ -653,8 +657,11 @@ static HRESULT WINAPI BitmapEncoderInfo_GetAuthor(IWICBitmapEncoderInfo *iface,
static
HRESULT
WINAPI
BitmapEncoderInfo_GetVendorGUID
(
IWICBitmapEncoderInfo
*
iface
,
GUID
*
pguidVendor
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pguidVendor
);
return
E_NOTIMPL
;
BitmapEncoderInfo
*
This
=
impl_from_IWICBitmapEncoderInfo
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pguidVendor
);
return
ComponentInfo_GetGUIDValue
(
This
->
classkey
,
vendor_valuename
,
pguidVendor
);
}
static
HRESULT
WINAPI
BitmapEncoderInfo_GetVersion
(
IWICBitmapEncoderInfo
*
iface
,
UINT
cchVersion
,
...
...
@@ -932,8 +939,11 @@ static HRESULT WINAPI FormatConverterInfo_GetAuthor(IWICFormatConverterInfo *ifa
static
HRESULT
WINAPI
FormatConverterInfo_GetVendorGUID
(
IWICFormatConverterInfo
*
iface
,
GUID
*
pguidVendor
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pguidVendor
);
return
E_NOTIMPL
;
FormatConverterInfo
*
This
=
impl_from_IWICFormatConverterInfo
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pguidVendor
);
return
ComponentInfo_GetGUIDValue
(
This
->
classkey
,
vendor_valuename
,
pguidVendor
);
}
static
HRESULT
WINAPI
FormatConverterInfo_GetVersion
(
IWICFormatConverterInfo
*
iface
,
UINT
cchVersion
,
...
...
@@ -1146,8 +1156,11 @@ static HRESULT WINAPI PixelFormatInfo_GetAuthor(IWICPixelFormatInfo2 *iface, UIN
static
HRESULT
WINAPI
PixelFormatInfo_GetVendorGUID
(
IWICPixelFormatInfo2
*
iface
,
GUID
*
pguidVendor
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pguidVendor
);
return
E_NOTIMPL
;
PixelFormatInfo
*
This
=
impl_from_IWICPixelFormatInfo2
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pguidVendor
);
return
ComponentInfo_GetGUIDValue
(
This
->
classkey
,
vendor_valuename
,
pguidVendor
);
}
static
HRESULT
WINAPI
PixelFormatInfo_GetVersion
(
IWICPixelFormatInfo2
*
iface
,
UINT
cchVersion
,
...
...
dlls/windowscodecs/tests/info.c
View file @
7d19b39c
...
...
@@ -201,12 +201,10 @@ static void test_pixelformat_info(void)
ok
(
hr
==
S_OK
,
"GetSigningStatus failed, hr=%x
\n
"
,
hr
);
ok
(
signing
==
WICComponentSigned
,
"unexpected signing status 0x%x
\n
"
,
signing
);
todo_wine
{
len
=
0xdeadbeef
;
hr
=
IWICComponentInfo_GetSpecVersion
(
info
,
0
,
NULL
,
&
len
);
ok
(
hr
==
S_OK
,
"GetSpecVersion failed, hr=%x
\n
"
,
hr
);
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* spec version does not apply to pixel formats */
todo_wine
ok
(
hr
==
S_OK
,
"GetSpecVersion failed, hr=%x
\n
"
,
hr
);
todo_wine
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* spec version does not apply to pixel formats */
memset
(
&
guid
,
0xaa
,
sizeof
(
guid
));
hr
=
IWICComponentInfo_GetVendorGUID
(
info
,
&
guid
);
...
...
@@ -216,9 +214,8 @@ static void test_pixelformat_info(void)
len
=
0xdeadbeef
;
hr
=
IWICComponentInfo_GetVersion
(
info
,
0
,
NULL
,
&
len
);
ok
(
hr
==
S_OK
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* version does not apply to pixel formats */
}
todo_wine
ok
(
hr
==
S_OK
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
todo_wine
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* version does not apply to pixel formats */
IWICComponentInfo_Release
(
info
);
}
...
...
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