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
b979f3b8
Commit
b979f3b8
authored
Feb 01, 2023
by
Shaun Ren
Committed by
Alexandre Julliard
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ir50_32: Implement IV50_DecompressQuery.
parent
05eef506
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
ir50.c
dlls/ir50_32/ir50.c
+45
-2
No files found.
dlls/ir50_32/ir50.c
View file @
b979f3b8
...
...
@@ -47,8 +47,51 @@ IV50_Open( const ICINFO *icinfo )
static
LRESULT
IV50_DecompressQuery
(
LPBITMAPINFO
in
,
LPBITMAPINFO
out
)
{
FIXME
(
"ICM_DECOMPRESS_QUERY %p %p
\n
"
,
in
,
out
);
return
ICERR_UNSUPPORTED
;
TRACE
(
"ICM_DECOMPRESS_QUERY %p %p
\n
"
,
in
,
out
);
TRACE
(
"in->planes = %d
\n
"
,
in
->
bmiHeader
.
biPlanes
);
TRACE
(
"in->bpp = %d
\n
"
,
in
->
bmiHeader
.
biBitCount
);
TRACE
(
"in->height = %ld
\n
"
,
in
->
bmiHeader
.
biHeight
);
TRACE
(
"in->width = %ld
\n
"
,
in
->
bmiHeader
.
biWidth
);
TRACE
(
"in->compr = %#lx
\n
"
,
in
->
bmiHeader
.
biCompression
);
if
(
in
->
bmiHeader
.
biCompression
!=
IV50_MAGIC
)
{
TRACE
(
"can't do %#lx compression
\n
"
,
in
->
bmiHeader
.
biCompression
);
return
ICERR_BADFORMAT
;
}
/* output must be same dimensions as input */
if
(
out
)
{
TRACE
(
"out->planes = %d
\n
"
,
out
->
bmiHeader
.
biPlanes
);
TRACE
(
"out->bpp = %d
\n
"
,
out
->
bmiHeader
.
biBitCount
);
TRACE
(
"out->height = %ld
\n
"
,
out
->
bmiHeader
.
biHeight
);
TRACE
(
"out->width = %ld
\n
"
,
out
->
bmiHeader
.
biWidth
);
TRACE
(
"out->compr = %#lx
\n
"
,
out
->
bmiHeader
.
biCompression
);
if
(
out
->
bmiHeader
.
biCompression
!=
BI_RGB
)
{
TRACE
(
"incompatible compression requested
\n
"
);
return
ICERR_BADFORMAT
;
}
if
(
out
->
bmiHeader
.
biBitCount
!=
32
&&
out
->
bmiHeader
.
biBitCount
!=
16
)
{
TRACE
(
"incompatible depth requested
\n
"
);
return
ICERR_BADFORMAT
;
}
if
(
in
->
bmiHeader
.
biPlanes
!=
out
->
bmiHeader
.
biPlanes
||
in
->
bmiHeader
.
biHeight
!=
abs
(
out
->
bmiHeader
.
biHeight
)
||
in
->
bmiHeader
.
biWidth
!=
out
->
bmiHeader
.
biWidth
)
{
TRACE
(
"incompatible output dimensions requested
\n
"
);
return
ICERR_BADFORMAT
;
}
}
return
ICERR_OK
;
}
static
LRESULT
...
...
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