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
80470260
Commit
80470260
authored
Apr 15, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Log unsupported conversion formats.
parent
d65f5799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
converter.c
dlls/windowscodecs/converter.c
+18
-2
No files found.
dlls/windowscodecs/converter.c
View file @
80470260
...
...
@@ -960,6 +960,7 @@ static HRESULT WINAPI FormatConverter_Initialize(IWICFormatConverter *iface,
if
(
!
srcinfo
)
{
res
=
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
FIXME
(
"Unsupported source format %s
\n
"
,
debugstr_guid
(
&
srcFormat
));
goto
end
;
}
...
...
@@ -967,6 +968,7 @@ static HRESULT WINAPI FormatConverter_Initialize(IWICFormatConverter *iface,
if
(
!
dstinfo
)
{
res
=
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
FIXME
(
"Unsupported destination format %s
\n
"
,
debugstr_guid
(
dstFormat
));
goto
end
;
}
...
...
@@ -981,7 +983,10 @@ static HRESULT WINAPI FormatConverter_Initialize(IWICFormatConverter *iface,
This
->
source
=
pISource
;
}
else
{
FIXME
(
"Unsupported conversion %s -> %s
\n
"
,
debugstr_guid
(
&
srcFormat
),
debugstr_guid
(
dstFormat
));
res
=
WINCODEC_ERR_UNSUPPORTEDOPERATION
;
}
end:
...
...
@@ -1001,16 +1006,27 @@ static HRESULT WINAPI FormatConverter_CanConvert(IWICFormatConverter *iface,
debugstr_guid
(
dstPixelFormat
),
pfCanConvert
);
srcinfo
=
get_formatinfo
(
srcPixelFormat
);
if
(
!
srcinfo
)
return
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
if
(
!
srcinfo
)
{
FIXME
(
"Unsupported source format %s
\n
"
,
debugstr_guid
(
srcPixelFormat
));
return
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
}
dstinfo
=
get_formatinfo
(
dstPixelFormat
);
if
(
!
dstinfo
)
return
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
if
(
!
dstinfo
)
{
FIXME
(
"Unsupported destination format %s
\n
"
,
debugstr_guid
(
dstPixelFormat
));
return
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
;
}
if
(
dstinfo
->
copy_function
&&
SUCCEEDED
(
dstinfo
->
copy_function
(
This
,
NULL
,
0
,
0
,
NULL
,
dstinfo
->
format
)))
*
pfCanConvert
=
TRUE
;
else
{
FIXME
(
"Unsupported conversion %s -> %s
\n
"
,
debugstr_guid
(
srcPixelFormat
),
debugstr_guid
(
dstPixelFormat
));
*
pfCanConvert
=
FALSE
;
}
return
S_OK
;
}
...
...
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