Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
59222af9
Commit
59222af9
authored
Aug 23, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvidc32: Improve trace messages from CRAM_DecompressQuery.
parent
8bf4f906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
msvideo1.c
dlls/msvidc32/msvideo1.c
+19
-13
No files found.
dlls/msvidc32/msvideo1.c
View file @
59222af9
...
...
@@ -299,16 +299,19 @@ CRAM_DecompressQuery( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out )
if
(
(
info
==
NULL
)
||
(
info
->
dwMagic
!=
CRAM_MAGIC
)
)
return
ICERR_BADPARAM
;
TRACE
(
"
planes
= %d
\n
"
,
in
->
bmiHeader
.
biPlanes
);
TRACE
(
"
bpp
= %d
\n
"
,
in
->
bmiHeader
.
biBitCount
);
TRACE
(
"
height
= %d
\n
"
,
in
->
bmiHeader
.
biHeight
);
TRACE
(
"
width
= %d
\n
"
,
in
->
bmiHeader
.
biWidth
);
TRACE
(
"
compr =
%x
\n
"
,
in
->
bmiHeader
.
biCompression
);
TRACE
(
"
in->planes
= %d
\n
"
,
in
->
bmiHeader
.
biPlanes
);
TRACE
(
"
in->bpp
= %d
\n
"
,
in
->
bmiHeader
.
biBitCount
);
TRACE
(
"
in->height
= %d
\n
"
,
in
->
bmiHeader
.
biHeight
);
TRACE
(
"
in->width
= %d
\n
"
,
in
->
bmiHeader
.
biWidth
);
TRACE
(
"
in->compr = 0x
%x
\n
"
,
in
->
bmiHeader
.
biCompression
);
if
(
(
in
->
bmiHeader
.
biCompression
!=
CRAM_MAGIC
)
&&
(
in
->
bmiHeader
.
biCompression
!=
MSVC_MAGIC
)
&&
(
in
->
bmiHeader
.
biCompression
!=
WHAM_MAGIC
)
)
{
TRACE
(
"can't do 0x%x compression
\n
"
,
in
->
bmiHeader
.
biCompression
);
return
ICERR_BADFORMAT
;
}
if
(
(
in
->
bmiHeader
.
biBitCount
!=
16
)
&&
(
in
->
bmiHeader
.
biBitCount
!=
8
)
)
...
...
@@ -320,18 +323,21 @@ CRAM_DecompressQuery( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out )
/* output must be same dimensions as input */
if
(
out
)
{
if
(
in
->
bmiHeader
.
biBitCount
!=
out
->
bmiHeader
.
biBitCount
)
return
ICERR_BADFORMAT
;
if
(
in
->
bmiHeader
.
biPlanes
!=
out
->
bmiHeader
.
biPlanes
)
return
ICERR_BADFORMAT
;
if
(
in
->
bmiHeader
.
biHeight
!=
out
->
bmiHeader
.
biHeight
)
return
ICERR_BADFORMAT
;
if
(
in
->
bmiHeader
.
biWidth
!=
out
->
bmiHeader
.
biWidth
)
TRACE
(
"out->planes = %d
\n
"
,
out
->
bmiHeader
.
biPlanes
);
TRACE
(
"out->bpp = %d
\n
"
,
out
->
bmiHeader
.
biBitCount
);
TRACE
(
"out->height = %d
\n
"
,
out
->
bmiHeader
.
biHeight
);
TRACE
(
"out->width = %d
\n
"
,
out
->
bmiHeader
.
biWidth
);
if
((
in
->
bmiHeader
.
biBitCount
!=
out
->
bmiHeader
.
biBitCount
)
||
(
in
->
bmiHeader
.
biPlanes
!=
out
->
bmiHeader
.
biPlanes
)
||
(
in
->
bmiHeader
.
biHeight
!=
out
->
bmiHeader
.
biHeight
)
||
(
in
->
bmiHeader
.
biWidth
!=
out
->
bmiHeader
.
biWidth
))
{
TRACE
(
"incompatible output requested
\n
"
);
return
ICERR_BADFORMAT
;
}
}
TRACE
(
"OK!
\n
"
);
return
ICERR_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