Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Helander
wine
Commits
d26f658a
Commit
d26f658a
authored
21 years ago
by
Michael McCormack
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement ICM_DECOMPRESSEX, fix some bugs.
parent
bbf48a1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/iccvid/iccvid.c
+41
-2
41 additions, 2 deletions
dlls/iccvid/iccvid.c
with
41 additions
and
2 deletions
dlls/iccvid/iccvid.c
+
41
−
2
View file @
d26f658a
...
...
@@ -767,7 +767,16 @@ LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBITMAPINFO
}
if
(
out
)
return
ICERR_UNSUPPORTED
;
{
if
(
in
->
bmiHeader
.
biPlanes
!=
out
->
bmiHeader
.
biPlanes
)
return
ICERR_UNSUPPORTED
;
if
(
in
->
bmiHeader
.
biBitCount
!=
out
->
bmiHeader
.
biBitCount
)
return
ICERR_UNSUPPORTED
;
if
(
in
->
bmiHeader
.
biHeight
!=
out
->
bmiHeader
.
biHeight
)
return
ICERR_UNSUPPORTED
;
if
(
in
->
bmiHeader
.
biWidth
!=
out
->
bmiHeader
.
biWidth
)
return
ICERR_UNSUPPORTED
;
}
return
ICERR_OK
;
}
...
...
@@ -824,6 +833,28 @@ LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD size )
return
ICERR_OK
;
}
LRESULT
ICCVID_DecompressEx
(
ICCVID_Info
*
info
,
ICDECOMPRESSEX
*
icd
,
DWORD
size
)
{
LONG
width
,
height
;
WORD
bit_per_pixel
;
TRACE
(
"ICM_DECOMPRESSEX %p %p %ld
\n
"
,
info
,
icd
,
size
);
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
return
ICERR_BADPARAM
;
/* FIXME: flags are ignored */
width
=
icd
->
lpbiSrc
->
biWidth
;
height
=
icd
->
lpbiSrc
->
biHeight
;
bit_per_pixel
=
icd
->
lpbiSrc
->
biBitCount
;
decode_cinepak
(
info
->
cvinfo
,
icd
->
lpSrc
,
icd
->
lpbiSrc
->
biSizeImage
,
icd
->
lpDst
,
width
,
height
,
bit_per_pixel
);
return
ICERR_OK
;
}
LRESULT
ICCVID_Close
(
ICCVID_Info
*
info
)
{
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
ICCVID_MAGIC
)
)
...
...
@@ -848,6 +879,10 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD dwDriverId, HDRVR hdrvr, UINT msg,
return
1
;
case
DRV_ENABLE
:
return
0
;
case
DRV_DISABLE
:
return
0
;
case
DRV_FREE
:
return
0
;
case
DRV_OPEN
:
TRACE
(
"Opened
\n
"
);
...
...
@@ -871,11 +906,15 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD dwDriverId, HDRVR hdrvr, UINT msg,
case
ICM_DECOMPRESS
:
return
ICCVID_Decompress
(
info
,
(
ICDECOMPRESS
*
)
lParam1
,
(
DWORD
)
lParam2
);
case
ICM_DECOMPRESSEX
:
return
ICCVID_DecompressEx
(
info
,
(
ICDECOMPRESSEX
*
)
lParam1
,
(
DWORD
)
lParam2
);
case
DRV_CLOSE
:
return
ICCVID_Close
(
info
);
default:
FIXME
(
"Unknown message: %
d
%ld %ld
\n
"
,
msg
,
lParam1
,
lParam2
);
FIXME
(
"Unknown message: %
04x
%ld %ld
\n
"
,
msg
,
lParam1
,
lParam2
);
}
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment