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
ddb47a13
Commit
ddb47a13
authored
Nov 03, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iccvid: Use a separate argument for inverted decompressing.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1193a1ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
iccvid.c
dlls/iccvid/iccvid.c
+8
-8
No files found.
dlls/iccvid/iccvid.c
View file @
ddb47a13
...
...
@@ -403,9 +403,10 @@ typedef void (*fn_cvid_v4)(unsigned char *frm, unsigned char *limit,
* out_height - the height of the output frame
* bit_per_pixel - the number of bits per pixel allocated to the output
* frame (only 24 or 32 bpp are supported)
* inverted - if true the output frame is written top-down
*/
static
void
decode_cinepak
(
cinepak_info
*
cvinfo
,
unsigned
char
*
buf
,
int
size
,
unsigned
char
*
output
,
unsigned
int
out_width
,
unsigned
int
out_height
,
int
bit_per_pixel
)
unsigned
char
*
output
,
unsigned
int
out_width
,
unsigned
int
out_height
,
int
bit_per_pixel
,
BOOL
inverted
)
{
cvid_codebook
*
v4_codebook
,
*
v1_codebook
,
*
codebook
=
NULL
;
unsigned
long
x
,
y
,
y_bottom
,
cnum
,
strip_id
,
chunk_id
,
...
...
@@ -424,13 +425,10 @@ static void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size,
unsigned
short
height
;
unsigned
short
strips
;
}
frame
;
BOOL
inverted
;
y
=
0
;
y_bottom
=
0
;
in_buffer
=
buf
;
inverted
=
(
int
)
out_height
<
0
;
if
(
inverted
)
out_height
=
-
out_height
;
frame
.
flags
=
get_byte
();
frame
.
length
=
get_byte
()
<<
16
;
...
...
@@ -893,6 +891,7 @@ static LRESULT ICCVID_DecompressBegin( ICCVID_Info *info, LPBITMAPINFO in, LPBIT
static
LRESULT
ICCVID_Decompress
(
ICCVID_Info
*
info
,
ICDECOMPRESS
*
icd
,
DWORD
size
)
{
LONG
width
,
height
;
BOOL
inverted
;
TRACE
(
"ICM_DECOMPRESS %p %p %d
\n
"
,
info
,
icd
,
size
);
...
...
@@ -906,10 +905,10 @@ static LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD si
width
=
icd
->
lpbiInput
->
biWidth
;
height
=
icd
->
lpbiInput
->
biHeight
;
i
f
(
-
icd
->
lpbiOutput
->
biHeight
==
height
)
height
=
-
height
;
i
nverted
=
-
icd
->
lpbiOutput
->
biHeight
==
height
;
decode_cinepak
(
info
->
cvinfo
,
icd
->
lpInput
,
icd
->
lpbiInput
->
biSizeImage
,
icd
->
lpOutput
,
width
,
height
,
info
->
bits_per_pixel
);
icd
->
lpOutput
,
width
,
height
,
info
->
bits_per_pixel
,
inverted
);
return
ICERR_OK
;
}
...
...
@@ -917,6 +916,7 @@ static LRESULT ICCVID_Decompress( ICCVID_Info *info, ICDECOMPRESS *icd, DWORD si
static
LRESULT
ICCVID_DecompressEx
(
ICCVID_Info
*
info
,
ICDECOMPRESSEX
*
icd
,
DWORD
size
)
{
LONG
width
,
height
;
BOOL
inverted
;
TRACE
(
"ICM_DECOMPRESSEX %p %p %d
\n
"
,
info
,
icd
,
size
);
...
...
@@ -932,10 +932,10 @@ static LRESULT ICCVID_DecompressEx( ICCVID_Info *info, ICDECOMPRESSEX *icd, DWOR
width
=
icd
->
lpbiSrc
->
biWidth
;
height
=
icd
->
lpbiSrc
->
biHeight
;
i
f
(
-
icd
->
lpbiDst
->
biHeight
==
height
)
height
=
-
height
;
i
nverted
=
-
icd
->
lpbiDst
->
biHeight
==
height
;
decode_cinepak
(
info
->
cvinfo
,
icd
->
lpSrc
,
icd
->
lpbiSrc
->
biSizeImage
,
icd
->
lpDst
,
width
,
height
,
info
->
bits_per_pixel
);
icd
->
lpDst
,
width
,
height
,
info
->
bits_per_pixel
,
inverted
);
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