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
06019027
Commit
06019027
authored
Jun 22, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Move MSVIDEO_SendMessage() up and make it and MSVIDEO_GetHicPtr() static.
parent
7aa9bd98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
89 deletions
+87
-89
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+87
-88
msvideo_private.h
dlls/msvfw32/msvideo_private.h
+0
-1
No files found.
dlls/msvfw32/msvideo_main.c
View file @
06019027
...
@@ -91,6 +91,92 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
...
@@ -91,6 +91,92 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
return
TRUE
;
return
TRUE
;
}
}
/******************************************************************
* MSVIDEO_SendMessage
*
*
*/
static
LRESULT
MSVIDEO_SendMessage
(
WINE_HIC
*
whic
,
UINT
msg
,
DWORD_PTR
lParam1
,
DWORD_PTR
lParam2
)
{
LRESULT
ret
;
#define XX(x) case x: TRACE("(%p,"#x",0x%08lx,0x%08lx)\n",whic,lParam1,lParam2); break
switch
(
msg
)
{
/* DRV_* */
XX
(
DRV_LOAD
);
XX
(
DRV_ENABLE
);
XX
(
DRV_OPEN
);
XX
(
DRV_CLOSE
);
XX
(
DRV_DISABLE
);
XX
(
DRV_FREE
);
/* ICM_RESERVED+X */
XX
(
ICM_ABOUT
);
XX
(
ICM_CONFIGURE
);
XX
(
ICM_GET
);
XX
(
ICM_GETINFO
);
XX
(
ICM_GETDEFAULTQUALITY
);
XX
(
ICM_GETQUALITY
);
XX
(
ICM_GETSTATE
);
XX
(
ICM_SETQUALITY
);
XX
(
ICM_SET
);
XX
(
ICM_SETSTATE
);
/* ICM_USER+X */
XX
(
ICM_COMPRESS_FRAMES_INFO
);
XX
(
ICM_COMPRESS_GET_FORMAT
);
XX
(
ICM_COMPRESS_GET_SIZE
);
XX
(
ICM_COMPRESS_QUERY
);
XX
(
ICM_COMPRESS_BEGIN
);
XX
(
ICM_COMPRESS
);
XX
(
ICM_COMPRESS_END
);
XX
(
ICM_DECOMPRESS_GET_FORMAT
);
XX
(
ICM_DECOMPRESS_QUERY
);
XX
(
ICM_DECOMPRESS_BEGIN
);
XX
(
ICM_DECOMPRESS
);
XX
(
ICM_DECOMPRESS_END
);
XX
(
ICM_DECOMPRESS_SET_PALETTE
);
XX
(
ICM_DECOMPRESS_GET_PALETTE
);
XX
(
ICM_DRAW_QUERY
);
XX
(
ICM_DRAW_BEGIN
);
XX
(
ICM_DRAW_GET_PALETTE
);
XX
(
ICM_DRAW_START
);
XX
(
ICM_DRAW_STOP
);
XX
(
ICM_DRAW_END
);
XX
(
ICM_DRAW_GETTIME
);
XX
(
ICM_DRAW
);
XX
(
ICM_DRAW_WINDOW
);
XX
(
ICM_DRAW_SETTIME
);
XX
(
ICM_DRAW_REALIZE
);
XX
(
ICM_DRAW_FLUSH
);
XX
(
ICM_DRAW_RENDERBUFFER
);
XX
(
ICM_DRAW_START_PLAY
);
XX
(
ICM_DRAW_STOP_PLAY
);
XX
(
ICM_DRAW_SUGGESTFORMAT
);
XX
(
ICM_DRAW_CHANGEPALETTE
);
XX
(
ICM_GETBUFFERSWANTED
);
XX
(
ICM_GETDEFAULTKEYFRAMERATE
);
XX
(
ICM_DECOMPRESSEX_BEGIN
);
XX
(
ICM_DECOMPRESSEX_QUERY
);
XX
(
ICM_DECOMPRESSEX
);
XX
(
ICM_DECOMPRESSEX_END
);
XX
(
ICM_SET_STATUS_PROC
);
default:
FIXME
(
"(%p,0x%08x,0x%08lx,0x%08lx) unknown message
\n
"
,
whic
,
msg
,
lParam1
,
lParam2
);
}
#undef XX
if
(
whic
->
driverproc
)
{
/* dwDriverId parameter is the value returned by the DRV_OPEN */
ret
=
whic
->
driverproc
(
whic
->
driverId
,
whic
->
hdrv
,
msg
,
lParam1
,
lParam2
);
}
else
{
ret
=
SendDriverMessage
(
whic
->
hdrv
,
msg
,
lParam1
,
lParam2
);
}
TRACE
(
" -> 0x%08lx
\n
"
,
ret
);
return
ret
;
}
static
int
compare_fourcc
(
DWORD
fcc1
,
DWORD
fcc2
)
static
int
compare_fourcc
(
DWORD
fcc1
,
DWORD
fcc2
)
{
{
char
fcc_str1
[
4
];
char
fcc_str1
[
4
];
...
@@ -152,7 +238,7 @@ static BOOL enum_drivers(DWORD fccType, enum_handler_t handler, void* param)
...
@@ -152,7 +238,7 @@ static BOOL enum_drivers(DWORD fccType, enum_handler_t handler, void* param)
*
*
*
*
*/
*/
WINE_HIC
*
MSVIDEO_GetHicPtr
(
HIC
hic
)
static
WINE_HIC
*
MSVIDEO_GetHicPtr
(
HIC
hic
)
{
{
WINE_HIC
*
whic
;
WINE_HIC
*
whic
;
...
@@ -1000,93 +1086,6 @@ void VFWAPI ICCompressorFree(PCOMPVARS pc)
...
@@ -1000,93 +1086,6 @@ void VFWAPI ICCompressorFree(PCOMPVARS pc)
}
}
}
}
/******************************************************************
* MSVIDEO_SendMessage
*
*
*/
LRESULT
MSVIDEO_SendMessage
(
WINE_HIC
*
whic
,
UINT
msg
,
DWORD_PTR
lParam1
,
DWORD_PTR
lParam2
)
{
LRESULT
ret
;
#define XX(x) case x: TRACE("(%p,"#x",0x%08lx,0x%08lx)\n",whic,lParam1,lParam2); break
switch
(
msg
)
{
/* DRV_* */
XX
(
DRV_LOAD
);
XX
(
DRV_ENABLE
);
XX
(
DRV_OPEN
);
XX
(
DRV_CLOSE
);
XX
(
DRV_DISABLE
);
XX
(
DRV_FREE
);
/* ICM_RESERVED+X */
XX
(
ICM_ABOUT
);
XX
(
ICM_CONFIGURE
);
XX
(
ICM_GET
);
XX
(
ICM_GETINFO
);
XX
(
ICM_GETDEFAULTQUALITY
);
XX
(
ICM_GETQUALITY
);
XX
(
ICM_GETSTATE
);
XX
(
ICM_SETQUALITY
);
XX
(
ICM_SET
);
XX
(
ICM_SETSTATE
);
/* ICM_USER+X */
XX
(
ICM_COMPRESS_FRAMES_INFO
);
XX
(
ICM_COMPRESS_GET_FORMAT
);
XX
(
ICM_COMPRESS_GET_SIZE
);
XX
(
ICM_COMPRESS_QUERY
);
XX
(
ICM_COMPRESS_BEGIN
);
XX
(
ICM_COMPRESS
);
XX
(
ICM_COMPRESS_END
);
XX
(
ICM_DECOMPRESS_GET_FORMAT
);
XX
(
ICM_DECOMPRESS_QUERY
);
XX
(
ICM_DECOMPRESS_BEGIN
);
XX
(
ICM_DECOMPRESS
);
XX
(
ICM_DECOMPRESS_END
);
XX
(
ICM_DECOMPRESS_SET_PALETTE
);
XX
(
ICM_DECOMPRESS_GET_PALETTE
);
XX
(
ICM_DRAW_QUERY
);
XX
(
ICM_DRAW_BEGIN
);
XX
(
ICM_DRAW_GET_PALETTE
);
XX
(
ICM_DRAW_START
);
XX
(
ICM_DRAW_STOP
);
XX
(
ICM_DRAW_END
);
XX
(
ICM_DRAW_GETTIME
);
XX
(
ICM_DRAW
);
XX
(
ICM_DRAW_WINDOW
);
XX
(
ICM_DRAW_SETTIME
);
XX
(
ICM_DRAW_REALIZE
);
XX
(
ICM_DRAW_FLUSH
);
XX
(
ICM_DRAW_RENDERBUFFER
);
XX
(
ICM_DRAW_START_PLAY
);
XX
(
ICM_DRAW_STOP_PLAY
);
XX
(
ICM_DRAW_SUGGESTFORMAT
);
XX
(
ICM_DRAW_CHANGEPALETTE
);
XX
(
ICM_GETBUFFERSWANTED
);
XX
(
ICM_GETDEFAULTKEYFRAMERATE
);
XX
(
ICM_DECOMPRESSEX_BEGIN
);
XX
(
ICM_DECOMPRESSEX_QUERY
);
XX
(
ICM_DECOMPRESSEX
);
XX
(
ICM_DECOMPRESSEX_END
);
XX
(
ICM_SET_STATUS_PROC
);
default:
FIXME
(
"(%p,0x%08x,0x%08lx,0x%08lx) unknown message
\n
"
,
whic
,
msg
,
lParam1
,
lParam2
);
}
#undef XX
if
(
whic
->
driverproc
)
{
/* dwDriverId parameter is the value returned by the DRV_OPEN */
ret
=
whic
->
driverproc
(
whic
->
driverId
,
whic
->
hdrv
,
msg
,
lParam1
,
lParam2
);
}
else
{
ret
=
SendDriverMessage
(
whic
->
hdrv
,
msg
,
lParam1
,
lParam2
);
}
TRACE
(
" -> 0x%08lx
\n
"
,
ret
);
return
ret
;
}
/***********************************************************************
/***********************************************************************
* ICSendMessage [MSVFW32.@]
* ICSendMessage [MSVFW32.@]
*/
*/
...
...
dlls/msvfw32/msvideo_private.h
View file @
06019027
...
@@ -41,7 +41,6 @@ typedef struct tagWINE_HIC {
...
@@ -41,7 +41,6 @@ typedef struct tagWINE_HIC {
struct
tagWINE_HIC
*
next
;
struct
tagWINE_HIC
*
next
;
}
WINE_HIC
;
}
WINE_HIC
;
LRESULT
MSVIDEO_SendMessage
(
WINE_HIC
*
,
UINT
,
DWORD_PTR
,
DWORD_PTR
);
#define IDC_CONFIGURE 882
#define IDC_CONFIGURE 882
#define IDC_ABOUT 883
#define IDC_ABOUT 883
...
...
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