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
4d9519f5
Commit
4d9519f5
authored
Feb 15, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f58d93bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
42 deletions
+41
-42
Makefile.in
dlls/msvfw32/Makefile.in
+0
-1
drawdib.c
dlls/msvfw32/drawdib.c
+9
-9
mciwnd.c
dlls/msvfw32/mciwnd.c
+12
-12
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+20
-20
No files found.
dlls/msvfw32/Makefile.in
View file @
4d9519f5
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
msvfw32.dll
MODULE
=
msvfw32.dll
IMPORTLIB
=
msvfw32
IMPORTLIB
=
msvfw32
IMPORTS
=
winmm version comctl32 user32 gdi32 advapi32
IMPORTS
=
winmm version comctl32 user32 gdi32 advapi32
...
...
dlls/msvfw32/drawdib.c
View file @
4d9519f5
...
@@ -187,7 +187,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
...
@@ -187,7 +187,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
TRACE
(
"(%p,%p,%d,%d,%p,%d,%d,0x%08x)
\n
"
,
TRACE
(
"(%p,%p,%d,%d,%p,%d,%d,0x%08x)
\n
"
,
hdd
,
hdc
,
dxDst
,
dyDst
,
lpbi
,
dxSrc
,
dySrc
,
wFlags
);
hdd
,
hdc
,
dxDst
,
dyDst
,
lpbi
,
dxSrc
,
dySrc
,
wFlags
);
TRACE
(
"lpbi: %
d,%d/%d,%d,%d,%d,%d,%d,%d,%d,%
d
\n
"
,
TRACE
(
"lpbi: %
ld,%ld/%ld,%d,%d,%ld,%ld,%ld,%ld,%ld,%l
d
\n
"
,
lpbi
->
biSize
,
lpbi
->
biWidth
,
lpbi
->
biHeight
,
lpbi
->
biPlanes
,
lpbi
->
biSize
,
lpbi
->
biWidth
,
lpbi
->
biHeight
,
lpbi
->
biPlanes
,
lpbi
->
biBitCount
,
lpbi
->
biCompression
,
lpbi
->
biSizeImage
,
lpbi
->
biBitCount
,
lpbi
->
biCompression
,
lpbi
->
biSizeImage
,
lpbi
->
biXPelsPerMeter
,
lpbi
->
biYPelsPerMeter
,
lpbi
->
biClrUsed
,
lpbi
->
biXPelsPerMeter
,
lpbi
->
biYPelsPerMeter
,
lpbi
->
biClrUsed
,
...
@@ -208,7 +208,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
...
@@ -208,7 +208,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
whdd
->
hic
=
ICOpen
(
ICTYPE_VIDEO
,
lpbi
->
biCompression
,
ICMODE_DECOMPRESS
);
whdd
->
hic
=
ICOpen
(
ICTYPE_VIDEO
,
lpbi
->
biCompression
,
ICMODE_DECOMPRESS
);
if
(
!
whdd
->
hic
)
if
(
!
whdd
->
hic
)
{
{
WARN
(
"Could not open IC. biCompression == 0x%08x
\n
"
,
lpbi
->
biCompression
);
WARN
(
"Could not open IC. biCompression == 0x%08
l
x
\n
"
,
lpbi
->
biCompression
);
ret
=
FALSE
;
ret
=
FALSE
;
}
}
...
@@ -236,8 +236,8 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
...
@@ -236,8 +236,8 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
if
(
ICDecompressBegin
(
whdd
->
hic
,
lpbi
,
whdd
->
lpbiOut
)
!=
ICERR_OK
)
if
(
ICDecompressBegin
(
whdd
->
hic
,
lpbi
,
whdd
->
lpbiOut
)
!=
ICERR_OK
)
ret
=
FALSE
;
ret
=
FALSE
;
TRACE
(
"biSizeImage == %d
\n
"
,
whdd
->
lpbiOut
->
biSizeImage
);
TRACE
(
"biSizeImage == %
l
d
\n
"
,
whdd
->
lpbiOut
->
biSizeImage
);
TRACE
(
"biCompression == %d
\n
"
,
whdd
->
lpbiOut
->
biCompression
);
TRACE
(
"biCompression == %
l
d
\n
"
,
whdd
->
lpbiOut
->
biCompression
);
TRACE
(
"biBitCount == %d
\n
"
,
whdd
->
lpbiOut
->
biBitCount
);
TRACE
(
"biBitCount == %d
\n
"
,
whdd
->
lpbiOut
->
biBitCount
);
}
}
}
}
...
@@ -265,7 +265,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
...
@@ -265,7 +265,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
/*whdd->lpvbuf = HeapAlloc(GetProcessHeap(), 0, whdd->lpbiOut->biSizeImage);*/
/*whdd->lpvbuf = HeapAlloc(GetProcessHeap(), 0, whdd->lpbiOut->biSizeImage);*/
whdd
->
hMemDC
=
CreateCompatibleDC
(
hdc
);
whdd
->
hMemDC
=
CreateCompatibleDC
(
hdc
);
TRACE
(
"Creating: %d, %p
\n
"
,
whdd
->
lpbiOut
->
biSize
,
whdd
->
lpvbits
);
TRACE
(
"Creating: %
l
d, %p
\n
"
,
whdd
->
lpbiOut
->
biSize
,
whdd
->
lpvbits
);
whdd
->
hDib
=
CreateDIBSection
(
whdd
->
hMemDC
,
(
BITMAPINFO
*
)
whdd
->
lpbiOut
,
DIB_RGB_COLORS
,
&
(
whdd
->
lpvbits
),
0
,
0
);
whdd
->
hDib
=
CreateDIBSection
(
whdd
->
hMemDC
,
(
BITMAPINFO
*
)
whdd
->
lpbiOut
,
DIB_RGB_COLORS
,
&
(
whdd
->
lpvbits
),
0
,
0
);
if
(
whdd
->
hDib
)
if
(
whdd
->
hDib
)
{
{
...
@@ -274,7 +274,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
...
@@ -274,7 +274,7 @@ BOOL VFWAPI DrawDibBegin(HDRAWDIB hdd,
else
else
{
{
ret
=
FALSE
;
ret
=
FALSE
;
TRACE
(
"Error: %d
\n
"
,
GetLastError
());
TRACE
(
"Error: %
l
d
\n
"
,
GetLastError
());
}
}
whdd
->
hOldDib
=
SelectObject
(
whdd
->
hMemDC
,
whdd
->
hDib
);
whdd
->
hOldDib
=
SelectObject
(
whdd
->
hMemDC
,
whdd
->
hDib
);
}
}
...
@@ -381,7 +381,7 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
...
@@ -381,7 +381,7 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
{
{
DWORD
flags
=
0
;
DWORD
flags
=
0
;
TRACE
(
"Compression == 0x%08x
\n
"
,
lpbi
->
biCompression
);
TRACE
(
"Compression == 0x%08
l
x
\n
"
,
lpbi
->
biCompression
);
if
(
wFlags
&
DDF_NOTKEYFRAME
)
if
(
wFlags
&
DDF_NOTKEYFRAME
)
flags
|=
ICDECOMPRESS_NOTKEYFRAME
;
flags
|=
ICDECOMPRESS_NOTKEYFRAME
;
...
@@ -414,7 +414,7 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
...
@@ -414,7 +414,7 @@ BOOL VFWAPI DrawDibDraw(HDRAWDIB hdd, HDC hdc,
* DrawDibStart [MSVFW32.@]
* DrawDibStart [MSVFW32.@]
*/
*/
BOOL
VFWAPI
DrawDibStart
(
HDRAWDIB
hdd
,
DWORD
rate
)
{
BOOL
VFWAPI
DrawDibStart
(
HDRAWDIB
hdd
,
DWORD
rate
)
{
FIXME
(
"(%p, %d), stub
\n
"
,
hdd
,
rate
);
FIXME
(
"(%p, %
l
d), stub
\n
"
,
hdd
,
rate
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -463,7 +463,7 @@ BOOL VFWAPI DrawDibSetPalette(HDRAWDIB hdd, HPALETTE hpal)
...
@@ -463,7 +463,7 @@ BOOL VFWAPI DrawDibSetPalette(HDRAWDIB hdd, HPALETTE hpal)
*/
*/
LPVOID
VFWAPI
DrawDibGetBuffer
(
HDRAWDIB
hdd
,
LPBITMAPINFOHEADER
lpbi
,
DWORD
dwSize
,
DWORD
dwFlags
)
LPVOID
VFWAPI
DrawDibGetBuffer
(
HDRAWDIB
hdd
,
LPBITMAPINFOHEADER
lpbi
,
DWORD
dwSize
,
DWORD
dwFlags
)
{
{
FIXME
(
"(%p, %p, 0x%08
x, 0x%08
x), stub
\n
"
,
hdd
,
lpbi
,
dwSize
,
dwFlags
);
FIXME
(
"(%p, %p, 0x%08
lx, 0x%08l
x), stub
\n
"
,
hdd
,
lpbi
,
dwSize
,
dwFlags
);
return
NULL
;
return
NULL
;
}
}
...
...
dlls/msvfw32/mciwnd.c
View file @
4d9519f5
...
@@ -102,7 +102,7 @@ BOOL VFWAPIV MCIWndRegisterClass(void)
...
@@ -102,7 +102,7 @@ BOOL VFWAPIV MCIWndRegisterClass(void)
HWND
VFWAPIV
MCIWndCreateW
(
HWND
hwndParent
,
HINSTANCE
hInstance
,
HWND
VFWAPIV
MCIWndCreateW
(
HWND
hwndParent
,
HINSTANCE
hInstance
,
DWORD
dwStyle
,
LPCWSTR
szFile
)
DWORD
dwStyle
,
LPCWSTR
szFile
)
{
{
TRACE
(
"%p %p %x %s
\n
"
,
hwndParent
,
hInstance
,
dwStyle
,
debugstr_w
(
szFile
));
TRACE
(
"%p %p %
l
x %s
\n
"
,
hwndParent
,
hInstance
,
dwStyle
,
debugstr_w
(
szFile
));
MCIWndRegisterClass
();
MCIWndRegisterClass
();
...
@@ -446,7 +446,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
...
@@ -446,7 +446,7 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
{
{
MCIWndInfo
*
mwi
;
MCIWndInfo
*
mwi
;
TRACE
(
"%p %04x %08
lx %08l
x
\n
"
,
hWnd
,
wMsg
,
wParam
,
lParam
);
TRACE
(
"%p %04x %08
Ix %08I
x
\n
"
,
hWnd
,
wMsg
,
wParam
,
lParam
);
mwi
=
(
MCIWndInfo
*
)
GetWindowLongPtrW
(
hWnd
,
0
);
mwi
=
(
MCIWndInfo
*
)
GetWindowLongPtrW
(
hWnd
,
0
);
if
(
!
mwi
&&
wMsg
!=
WM_CREATE
)
if
(
!
mwi
&&
wMsg
!=
WM_CREATE
)
...
@@ -751,7 +751,7 @@ end_of_mci_open:
...
@@ -751,7 +751,7 @@ end_of_mci_open:
MCIWND_notify_error
(
mwi
);
MCIWND_notify_error
(
mwi
);
return
0
;
return
0
;
}
}
TRACE
(
"MCIWNDM_GETLENGTH: %
l
d
\n
"
,
mci_status
.
dwReturn
);
TRACE
(
"MCIWNDM_GETLENGTH: %
I
d
\n
"
,
mci_status
.
dwReturn
);
return
mci_status
.
dwReturn
;
return
mci_status
.
dwReturn
;
}
}
...
@@ -768,7 +768,7 @@ end_of_mci_open:
...
@@ -768,7 +768,7 @@ end_of_mci_open:
MCIWND_notify_error
(
mwi
);
MCIWND_notify_error
(
mwi
);
return
0
;
return
0
;
}
}
TRACE
(
"MCIWNDM_GETSTART: %
l
d
\n
"
,
mci_status
.
dwReturn
);
TRACE
(
"MCIWNDM_GETSTART: %
I
d
\n
"
,
mci_status
.
dwReturn
);
return
mci_status
.
dwReturn
;
return
mci_status
.
dwReturn
;
}
}
...
@@ -778,7 +778,7 @@ end_of_mci_open:
...
@@ -778,7 +778,7 @@ end_of_mci_open:
start
=
SendMessageW
(
hWnd
,
MCIWNDM_GETSTART
,
0
,
0
);
start
=
SendMessageW
(
hWnd
,
MCIWNDM_GETSTART
,
0
,
0
);
length
=
SendMessageW
(
hWnd
,
MCIWNDM_GETLENGTH
,
0
,
0
);
length
=
SendMessageW
(
hWnd
,
MCIWNDM_GETLENGTH
,
0
,
0
);
TRACE
(
"MCIWNDM_GETEND: %
l
d
\n
"
,
start
+
length
);
TRACE
(
"MCIWNDM_GETEND: %
I
d
\n
"
,
start
+
length
);
return
(
start
+
length
);
return
(
start
+
length
);
}
}
...
@@ -871,7 +871,7 @@ end_of_mci_open:
...
@@ -871,7 +871,7 @@ end_of_mci_open:
{
{
MCI_PLAY_PARMS
mci_play
;
MCI_PLAY_PARMS
mci_play
;
TRACE
(
"MCIWNDM_PLAYFROM %08
l
x
\n
"
,
lParam
);
TRACE
(
"MCIWNDM_PLAYFROM %08
I
x
\n
"
,
lParam
);
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwFrom
=
lParam
;
mci_play
.
dwFrom
=
lParam
;
...
@@ -893,7 +893,7 @@ end_of_mci_open:
...
@@ -893,7 +893,7 @@ end_of_mci_open:
{
{
MCI_PLAY_PARMS
mci_play
;
MCI_PLAY_PARMS
mci_play
;
TRACE
(
"MCIWNDM_PLAYTO %08
l
x
\n
"
,
lParam
);
TRACE
(
"MCIWNDM_PLAYTO %08
I
x
\n
"
,
lParam
);
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwTo
=
lParam
;
mci_play
.
dwTo
=
lParam
;
...
@@ -916,7 +916,7 @@ end_of_mci_open:
...
@@ -916,7 +916,7 @@ end_of_mci_open:
MCI_PLAY_PARMS
mci_play
;
MCI_PLAY_PARMS
mci_play
;
DWORD
flags
=
MCI_NOTIFY
;
DWORD
flags
=
MCI_NOTIFY
;
TRACE
(
"MCIWNDM_PLAYREVERSE %08
l
x
\n
"
,
lParam
);
TRACE
(
"MCIWNDM_PLAYREVERSE %08
I
x
\n
"
,
lParam
);
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mci_play
.
dwFrom
=
lParam
;
mci_play
.
dwFrom
=
lParam
;
...
@@ -1054,7 +1054,7 @@ end_of_mci_open:
...
@@ -1054,7 +1054,7 @@ end_of_mci_open:
return
mwi
->
inactive_timer
;
return
mwi
->
inactive_timer
;
case
MCIWNDM_CHANGESTYLES
:
case
MCIWNDM_CHANGESTYLES
:
TRACE
(
"MCIWNDM_CHANGESTYLES mask %08
lx, set %08l
x
\n
"
,
wParam
,
lParam
);
TRACE
(
"MCIWNDM_CHANGESTYLES mask %08
Ix, set %08I
x
\n
"
,
wParam
,
lParam
);
/* FIXME: update the visual window state as well:
/* FIXME: update the visual window state as well:
* add/remove trackbar, autosize, etc.
* add/remove trackbar, autosize, etc.
*/
*/
...
@@ -1063,7 +1063,7 @@ end_of_mci_open:
...
@@ -1063,7 +1063,7 @@ end_of_mci_open:
return
0
;
return
0
;
case
MCIWNDM_GETSTYLES
:
case
MCIWNDM_GETSTYLES
:
TRACE
(
"MCIWNDM_GETSTYLES: %08x
\n
"
,
mwi
->
dwStyle
&
0xffff
);
TRACE
(
"MCIWNDM_GETSTYLES: %08
l
x
\n
"
,
mwi
->
dwStyle
&
0xffff
);
return
mwi
->
dwStyle
&
0xffff
;
return
mwi
->
dwStyle
&
0xffff
;
case
MCIWNDM_GETDEVICEA
:
case
MCIWNDM_GETDEVICEA
:
...
@@ -1124,7 +1124,7 @@ end_of_mci_open:
...
@@ -1124,7 +1124,7 @@ end_of_mci_open:
{
{
MCI_STATUS_PARMS
mci_status
;
MCI_STATUS_PARMS
mci_status
;
TRACE
(
"MCIWNDM_GETTIMEFORMAT %08
lx %08l
x
\n
"
,
wParam
,
lParam
);
TRACE
(
"MCIWNDM_GETTIMEFORMAT %08
Ix %08I
x
\n
"
,
wParam
,
lParam
);
/* get format string if requested */
/* get format string if requested */
if
(
wParam
&&
lParam
)
if
(
wParam
&&
lParam
)
...
@@ -1241,7 +1241,7 @@ end_of_mci_open:
...
@@ -1241,7 +1241,7 @@ end_of_mci_open:
return
0
;
return
0
;
case
MCIWNDM_SETZOOM
:
case
MCIWNDM_SETZOOM
:
TRACE
(
"MCIWNDM_SETZOOM %
l
d
\n
"
,
lParam
);
TRACE
(
"MCIWNDM_SETZOOM %
I
d
\n
"
,
lParam
);
mwi
->
zoom
=
lParam
;
mwi
->
zoom
=
lParam
;
if
(
mwi
->
mci
&&
!
(
mwi
->
dwStyle
&
MCIWNDF_NOAUTOSIZEWINDOW
))
if
(
mwi
->
mci
&&
!
(
mwi
->
dwStyle
&
MCIWNDF_NOAUTOSIZEWINDOW
))
...
...
dlls/msvfw32/msvideo_main.c
View file @
4d9519f5
...
@@ -66,7 +66,7 @@ static inline const char *wine_dbgstr_fcc( DWORD fcc )
...
@@ -66,7 +66,7 @@ static inline const char *wine_dbgstr_fcc( DWORD fcc )
if
(
isalnum
(
fcc_str
[
0
])
&&
isalnum
(
fcc_str
[
1
])
&&
isalnum
(
fcc_str
[
2
])
if
(
isalnum
(
fcc_str
[
0
])
&&
isalnum
(
fcc_str
[
1
])
&&
isalnum
(
fcc_str
[
2
])
&&
(
isalnum
(
fcc_str
[
3
])
||
isspace
(
fcc_str
[
3
])))
&&
(
isalnum
(
fcc_str
[
3
])
||
isspace
(
fcc_str
[
3
])))
return
wine_dbg_sprintf
(
"%s"
,
fcc_str
);
return
wine_dbg_sprintf
(
"%s"
,
fcc_str
);
return
wine_dbg_sprintf
(
"0x%08x"
,
fcc
);
return
wine_dbg_sprintf
(
"0x%08
l
x"
,
fcc
);
}
}
static
const
char
*
wine_dbgstr_icerr
(
int
ret
)
static
const
char
*
wine_dbgstr_icerr
(
int
ret
)
...
@@ -117,7 +117,7 @@ HMODULE MSVFW32_hModule;
...
@@ -117,7 +117,7 @@ HMODULE MSVFW32_hModule;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
{
{
TRACE
(
"%p,%x,%p
\n
"
,
hinst
,
reason
,
reserved
);
TRACE
(
"%p,%
l
x,%p
\n
"
,
hinst
,
reason
,
reserved
);
switch
(
reason
)
switch
(
reason
)
{
{
...
@@ -138,7 +138,7 @@ static LRESULT MSVIDEO_SendMessage(WINE_HIC* whic, UINT msg, DWORD_PTR lParam1,
...
@@ -138,7 +138,7 @@ static LRESULT MSVIDEO_SendMessage(WINE_HIC* whic, UINT msg, DWORD_PTR lParam1,
{
{
LRESULT
ret
;
LRESULT
ret
;
#define XX(x) case x: TRACE("(%p,"#x",0x%08
lx,0x%08l
x)\n",whic,lParam1,lParam2); break
#define XX(x) case x: TRACE("(%p,"#x",0x%08
Ix,0x%08I
x)\n",whic,lParam1,lParam2); break
switch
(
msg
)
{
switch
(
msg
)
{
/* DRV_* */
/* DRV_* */
...
@@ -199,7 +199,7 @@ static LRESULT MSVIDEO_SendMessage(WINE_HIC* whic, UINT msg, DWORD_PTR lParam1,
...
@@ -199,7 +199,7 @@ static LRESULT MSVIDEO_SendMessage(WINE_HIC* whic, UINT msg, DWORD_PTR lParam1,
XX
(
ICM_DECOMPRESSEX_END
);
XX
(
ICM_DECOMPRESSEX_END
);
XX
(
ICM_SET_STATUS_PROC
);
XX
(
ICM_SET_STATUS_PROC
);
default:
default:
FIXME
(
"(%p,0x%08x,0x%08
lx,0x%08l
x) unknown message
\n
"
,
whic
,
msg
,
lParam1
,
lParam2
);
FIXME
(
"(%p,0x%08x,0x%08
Ix,0x%08I
x) unknown message
\n
"
,
whic
,
msg
,
lParam1
,
lParam2
);
}
}
#undef XX
#undef XX
...
@@ -350,7 +350,7 @@ BOOL VFWAPI ICInstall(DWORD type, DWORD handler, LPARAM lparam, char *desc, UINT
...
@@ -350,7 +350,7 @@ BOOL VFWAPI ICInstall(DWORD type, DWORD handler, LPARAM lparam, char *desc, UINT
{
{
struct
reg_driver
*
driver
;
struct
reg_driver
*
driver
;
TRACE
(
"type %s, handler %s, lparam %#
l
x, desc %s, flags %#x.
\n
"
,
TRACE
(
"type %s, handler %s, lparam %#
I
x, desc %s, flags %#x.
\n
"
,
wine_dbgstr_fcc
(
type
),
wine_dbgstr_fcc
(
handler
),
lparam
,
debugstr_a
(
desc
),
flags
);
wine_dbgstr_fcc
(
type
),
wine_dbgstr_fcc
(
handler
),
lparam
,
debugstr_a
(
desc
),
flags
);
LIST_FOR_EACH_ENTRY
(
driver
,
&
reg_driver_list
,
struct
reg_driver
,
entry
)
LIST_FOR_EACH_ENTRY
(
driver
,
&
reg_driver_list
,
struct
reg_driver
,
entry
)
...
@@ -596,7 +596,7 @@ LRESULT VFWAPI ICGetInfo(HIC hic, ICINFO *picinfo, DWORD cb)
...
@@ -596,7 +596,7 @@ LRESULT VFWAPI ICGetInfo(HIC hic, ICINFO *picinfo, DWORD cb)
LRESULT
ret
;
LRESULT
ret
;
WINE_HIC
*
whic
=
MSVIDEO_GetHicPtr
(
hic
);
WINE_HIC
*
whic
=
MSVIDEO_GetHicPtr
(
hic
);
TRACE
(
"(%p,%p,%d)
\n
"
,
hic
,
picinfo
,
cb
);
TRACE
(
"(%p,%p,%
l
d)
\n
"
,
hic
,
picinfo
,
cb
);
if
(
!
whic
)
return
ICERR_BADHANDLE
;
if
(
!
whic
)
return
ICERR_BADHANDLE
;
if
(
!
picinfo
)
return
MMSYSERR_INVALPARAM
;
if
(
!
picinfo
)
return
MMSYSERR_INVALPARAM
;
...
@@ -802,7 +802,7 @@ ICCompress(
...
@@ -802,7 +802,7 @@ ICCompress(
{
{
ICCOMPRESS
iccmp
;
ICCOMPRESS
iccmp
;
TRACE
(
"(%p,%d,%p,%p,%p,%p,...)
\n
"
,
hic
,
dwFlags
,
lpbiOutput
,
lpData
,
lpbiInput
,
lpBits
);
TRACE
(
"(%p,%
l
d,%p,%p,%p,%p,...)
\n
"
,
hic
,
dwFlags
,
lpbiOutput
,
lpData
,
lpbiInput
,
lpBits
);
iccmp
.
dwFlags
=
dwFlags
;
iccmp
.
dwFlags
=
dwFlags
;
...
@@ -830,7 +830,7 @@ DWORD VFWAPIV ICDecompress(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiFormat,
...
@@ -830,7 +830,7 @@ DWORD VFWAPIV ICDecompress(HIC hic,DWORD dwFlags,LPBITMAPINFOHEADER lpbiFormat,
ICDECOMPRESS
icd
;
ICDECOMPRESS
icd
;
DWORD
ret
;
DWORD
ret
;
TRACE
(
"(%p,%d,%p,%p,%p,%p)
\n
"
,
hic
,
dwFlags
,
lpbiFormat
,
lpData
,
lpbi
,
lpBits
);
TRACE
(
"(%p,%
l
d,%p,%p,%p,%p)
\n
"
,
hic
,
dwFlags
,
lpbiFormat
,
lpData
,
lpbi
,
lpBits
);
icd
.
dwFlags
=
dwFlags
;
icd
.
dwFlags
=
dwFlags
;
icd
.
lpbiInput
=
lpbiFormat
;
icd
.
lpbiInput
=
lpbiFormat
;
...
@@ -886,7 +886,7 @@ static BOOL enum_compressors(HWND list, COMPVARS *pcv, BOOL enum_all)
...
@@ -886,7 +886,7 @@ static BOOL enum_compressors(HWND list, COMPVARS *pcv, BOOL enum_all)
{
{
if
(
ICCompressQuery
(
hic
,
pcv
->
lpbiIn
,
NULL
)
!=
ICERR_OK
)
if
(
ICCompressQuery
(
hic
,
pcv
->
lpbiIn
,
NULL
)
!=
ICERR_OK
)
{
{
TRACE
(
"fccHandler %s doesn't support input DIB format %d
\n
"
,
TRACE
(
"fccHandler %s doesn't support input DIB format %
l
d
\n
"
,
wine_dbgstr_fcc
(
icinfo
.
fccHandler
),
pcv
->
lpbiIn
->
bmiHeader
.
biCompression
);
wine_dbgstr_fcc
(
icinfo
.
fccHandler
),
pcv
->
lpbiIn
->
bmiHeader
.
biCompression
);
ICClose
(
hic
);
ICClose
(
hic
);
continue
;
continue
;
...
@@ -1200,7 +1200,7 @@ DWORD VFWAPIV ICDrawBegin(
...
@@ -1200,7 +1200,7 @@ DWORD VFWAPIV ICDrawBegin(
ICDRAWBEGIN
icdb
;
ICDRAWBEGIN
icdb
;
TRACE
(
"(%p,%
d,%p,%p,%p,%u,%u,%u,%u,%p,%u,%u,%u,%u,%d,%
d)
\n
"
,
TRACE
(
"(%p,%
ld,%p,%p,%p,%u,%u,%u,%u,%p,%u,%u,%u,%u,%ld,%l
d)
\n
"
,
hic
,
dwFlags
,
hpal
,
hwnd
,
hdc
,
xDst
,
yDst
,
dxDst
,
dyDst
,
hic
,
dwFlags
,
hpal
,
hwnd
,
hdc
,
xDst
,
yDst
,
dxDst
,
dyDst
,
lpbi
,
xSrc
,
ySrc
,
dxSrc
,
dySrc
,
dwRate
,
dwScale
);
lpbi
,
xSrc
,
ySrc
,
dxSrc
,
dySrc
,
dwRate
,
dwScale
);
...
@@ -1228,7 +1228,7 @@ DWORD VFWAPIV ICDrawBegin(
...
@@ -1228,7 +1228,7 @@ DWORD VFWAPIV ICDrawBegin(
DWORD
VFWAPIV
ICDraw
(
HIC
hic
,
DWORD
dwFlags
,
LPVOID
lpFormat
,
LPVOID
lpData
,
DWORD
cbData
,
LONG
lTime
)
{
DWORD
VFWAPIV
ICDraw
(
HIC
hic
,
DWORD
dwFlags
,
LPVOID
lpFormat
,
LPVOID
lpData
,
DWORD
cbData
,
LONG
lTime
)
{
ICDRAW
icd
;
ICDRAW
icd
;
TRACE
(
"(%p,%
d,%p,%p,%d,%
d)
\n
"
,
hic
,
dwFlags
,
lpFormat
,
lpData
,
cbData
,
lTime
);
TRACE
(
"(%p,%
ld,%p,%p,%ld,%l
d)
\n
"
,
hic
,
dwFlags
,
lpFormat
,
lpData
,
cbData
,
lTime
);
icd
.
dwFlags
=
dwFlags
;
icd
.
dwFlags
=
dwFlags
;
icd
.
lpFormat
=
lpFormat
;
icd
.
lpFormat
=
lpFormat
;
...
@@ -1287,7 +1287,7 @@ HANDLE VFWAPI ICImageCompress(
...
@@ -1287,7 +1287,7 @@ HANDLE VFWAPI ICImageCompress(
LPBITMAPINFO
lpbiOut
,
LONG
lQuality
,
LPBITMAPINFO
lpbiOut
,
LONG
lQuality
,
LONG
*
plSize
)
LONG
*
plSize
)
{
{
FIXME
(
"(%p,%08x,%p,%p,%p,%d,%p)
\n
"
,
FIXME
(
"(%p,%08x,%p,%p,%p,%
l
d,%p)
\n
"
,
hic
,
uiFlags
,
lpbiIn
,
lpBits
,
lpbiOut
,
lQuality
,
plSize
);
hic
,
uiFlags
,
lpbiIn
,
lpBits
,
lpbiOut
,
lQuality
,
plSize
);
return
NULL
;
return
NULL
;
...
@@ -1389,7 +1389,7 @@ HANDLE VFWAPI ICImageDecompress(
...
@@ -1389,7 +1389,7 @@ HANDLE VFWAPI ICImageDecompress(
goto
err
;
goto
err
;
bInDecompress
=
TRUE
;
bInDecompress
=
TRUE
;
TRACE
(
"cbHdr %
d, biSizeImage %
d
\n
"
,
cbHdr
,
biSizeImage
);
TRACE
(
"cbHdr %
ld, biSizeImage %l
d
\n
"
,
cbHdr
,
biSizeImage
);
hMem
=
GlobalAlloc
(
GMEM_MOVEABLE
|
GMEM_ZEROINIT
,
cbHdr
+
biSizeImage
);
hMem
=
GlobalAlloc
(
GMEM_MOVEABLE
|
GMEM_ZEROINIT
,
cbHdr
+
biSizeImage
);
if
(
hMem
==
NULL
)
if
(
hMem
==
NULL
)
...
@@ -1434,7 +1434,7 @@ LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL
...
@@ -1434,7 +1434,7 @@ LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL
if
(
pc
->
cbState
!=
sizeof
(
ICCOMPRESS
))
if
(
pc
->
cbState
!=
sizeof
(
ICCOMPRESS
))
{
{
ERR
(
"Invalid cbState %i
\n
"
,
pc
->
cbState
);
ERR
(
"Invalid cbState %
l
i
\n
"
,
pc
->
cbState
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1475,7 +1475,7 @@ LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL
...
@@ -1475,7 +1475,7 @@ LPVOID VFWAPI ICSeqCompressFrame(PCOMPVARS pc, UINT uiFlags, LPVOID lpBits, BOOL
pc
->
lpBitsPrev
=
oldout
;
pc
->
lpBitsPrev
=
oldout
;
pc
->
lpBitsOut
=
oldprev
;
pc
->
lpBitsOut
=
oldprev
;
TRACE
(
"returning: %p, compressed frame size %u
\n
"
,
icComp
->
lpOutput
,
*
plSize
);
TRACE
(
"returning: %p, compressed frame size %
l
u
\n
"
,
icComp
->
lpOutput
,
*
plSize
);
return
icComp
->
lpOutput
;
return
icComp
->
lpOutput
;
}
}
return
NULL
;
return
NULL
;
...
@@ -1579,12 +1579,12 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
...
@@ -1579,12 +1579,12 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
}
}
}
}
TRACE
(
"Input: %
ux%u, fcc %s, bpp %u, size %
u
\n
"
,
TRACE
(
"Input: %
lux%lu, fcc %s, bpp %u, size %l
u
\n
"
,
pc
->
lpbiIn
->
bmiHeader
.
biWidth
,
pc
->
lpbiIn
->
bmiHeader
.
biHeight
,
pc
->
lpbiIn
->
bmiHeader
.
biWidth
,
pc
->
lpbiIn
->
bmiHeader
.
biHeight
,
wine_dbgstr_fcc
(
pc
->
lpbiIn
->
bmiHeader
.
biCompression
),
wine_dbgstr_fcc
(
pc
->
lpbiIn
->
bmiHeader
.
biCompression
),
pc
->
lpbiIn
->
bmiHeader
.
biBitCount
,
pc
->
lpbiIn
->
bmiHeader
.
biBitCount
,
pc
->
lpbiIn
->
bmiHeader
.
biSizeImage
);
pc
->
lpbiIn
->
bmiHeader
.
biSizeImage
);
TRACE
(
"Output: %
ux%u, fcc %s, bpp %u, size %
u
\n
"
,
TRACE
(
"Output: %
lux%lu, fcc %s, bpp %u, size %l
u
\n
"
,
pc
->
lpbiOut
->
bmiHeader
.
biWidth
,
pc
->
lpbiOut
->
bmiHeader
.
biHeight
,
pc
->
lpbiOut
->
bmiHeader
.
biWidth
,
pc
->
lpbiOut
->
bmiHeader
.
biHeight
,
wine_dbgstr_fcc
(
pc
->
lpbiOut
->
bmiHeader
.
biCompression
),
wine_dbgstr_fcc
(
pc
->
lpbiOut
->
bmiHeader
.
biCompression
),
pc
->
lpbiOut
->
bmiHeader
.
biBitCount
,
pc
->
lpbiOut
->
bmiHeader
.
biBitCount
,
...
@@ -1599,13 +1599,13 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
...
@@ -1599,13 +1599,13 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
goto
error
;
goto
error
;
TRACE
(
"Compvars:
\n
"
TRACE
(
"Compvars:
\n
"
"
\t
size: %
i
\n
"
"
\t
size: %
lu
\n
"
"
\t
flags: 0x%x
\n
"
"
\t
flags: 0x%
l
x
\n
"
"
\t
hic: %p
\n
"
"
\t
hic: %p
\n
"
"
\t
type: %s
\n
"
"
\t
type: %s
\n
"
"
\t
handler: %s
\n
"
"
\t
handler: %s
\n
"
"
\t
in/out: %p/%p
\n
"
"
\t
in/out: %p/%p
\n
"
"
\t
key/data/quality: %
i/%i/%
i
\n
"
,
"
\t
key/data/quality: %
li/%li/%l
i
\n
"
,
pc
->
cbSize
,
pc
->
dwFlags
,
pc
->
hic
,
wine_dbgstr_fcc
(
pc
->
fccType
),
pc
->
cbSize
,
pc
->
dwFlags
,
pc
->
hic
,
wine_dbgstr_fcc
(
pc
->
fccType
),
wine_dbgstr_fcc
(
pc
->
fccHandler
),
pc
->
lpbiIn
,
pc
->
lpbiOut
,
pc
->
lKey
,
wine_dbgstr_fcc
(
pc
->
fccHandler
),
pc
->
lpbiIn
,
pc
->
lpbiOut
,
pc
->
lKey
,
pc
->
lDataRate
,
pc
->
lQ
);
pc
->
lDataRate
,
pc
->
lQ
);
...
...
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