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
9dbd0833
Commit
9dbd0833
authored
Apr 16, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement PixelFormatInfo_GetBitsPerPixel.
parent
d760b21a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
info.c
dlls/windowscodecs/info.c
+27
-2
No files found.
dlls/windowscodecs/info.c
View file @
9dbd0833
...
...
@@ -46,6 +46,7 @@ static const WCHAR containerformat_valuename[] = {'C','o','n','t','a','i','n','e
static
const
WCHAR
metadataformat_valuename
[]
=
{
'M'
,
'e'
,
't'
,
'a'
,
'd'
,
'a'
,
't'
,
'a'
,
'F'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
0
};
static
const
WCHAR
vendor_valuename
[]
=
{
'V'
,
'e'
,
'n'
,
'd'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
version_valuename
[]
=
{
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
bitsperpixel_valuename
[]
=
{
'B'
,
'i'
,
't'
,
'L'
,
'e'
,
'n'
,
'g'
,
't'
,
'h'
,
0
};
static
HRESULT
ComponentInfo_GetStringValue
(
HKEY
classkey
,
LPCWSTR
value
,
UINT
buffer_size
,
WCHAR
*
buffer
,
UINT
*
actual_size
)
...
...
@@ -106,6 +107,27 @@ static HRESULT ComponentInfo_GetGUIDValue(HKEY classkey, LPCWSTR value,
return
hr
;
}
static
HRESULT
ComponentInfo_GetDWORDValue
(
HKEY
classkey
,
LPCWSTR
value
,
DWORD
*
result
)
{
LONG
ret
;
DWORD
cbdata
=
sizeof
(
DWORD
);
if
(
!
result
)
return
E_INVALIDARG
;
ret
=
RegGetValueW
(
classkey
,
NULL
,
value
,
RRF_RT_DWORD
,
NULL
,
result
,
&
cbdata
);
if
(
ret
==
ERROR_FILE_NOT_FOUND
)
{
*
result
=
0
;
return
S_OK
;
}
return
HRESULT_FROM_WIN32
(
ret
);
}
typedef
struct
{
IWICBitmapDecoderInfo
IWICBitmapDecoderInfo_iface
;
LONG
ref
;
...
...
@@ -1231,8 +1253,11 @@ static HRESULT WINAPI PixelFormatInfo_GetColorContext(IWICPixelFormatInfo2 *ifac
static
HRESULT
WINAPI
PixelFormatInfo_GetBitsPerPixel
(
IWICPixelFormatInfo2
*
iface
,
UINT
*
puiBitsPerPixel
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
puiBitsPerPixel
);
return
E_NOTIMPL
;
PixelFormatInfo
*
This
=
impl_from_IWICPixelFormatInfo2
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
puiBitsPerPixel
);
return
ComponentInfo_GetDWORDValue
(
This
->
classkey
,
bitsperpixel_valuename
,
puiBitsPerPixel
);
}
static
HRESULT
WINAPI
PixelFormatInfo_GetChannelCount
(
IWICPixelFormatInfo2
*
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