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
cbb46ec8
Commit
cbb46ec8
authored
Dec 15, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: Support more MCI_STATUS queries.
parent
541c6c2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
21 deletions
+74
-21
info.c
dlls/mciavi32/info.c
+64
-21
mciavi_res.rc
dlls/mciavi32/mciavi_res.rc
+8
-0
mmoutput.c
dlls/mciavi32/mmoutput.c
+2
-0
No files found.
dlls/mciavi32/info.c
View file @
cbb46ec8
...
...
@@ -371,6 +371,7 @@ DWORD MCIAVI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSW lpPar
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
!
(
dwFlags
&
MCI_STATUS_ITEM
))
return
MCIERR_MISSING_PARAMETER
;
if
(
dwFlags
&
MCI_TEST
)
return
0
;
EnterCriticalSection
(
&
wma
->
cs
);
...
...
@@ -430,22 +431,28 @@ DWORD MCIAVI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSW lpPar
TRACE
(
"MCI_STATUS_TIME_FORMAT => %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_STATUS_AUDIO
:
lpParms
->
dwReturn
=
(
wma
->
dwSet
&
3
)
?
MAKEMCIRESOURCE
(
MCI_ON
,
MCI_ON_S
)
:
MAKEMCIRESOURCE
(
MCI_OFF
,
MCI_OFF_S
);
ret
=
MCI_RESOURCE_RETURNED
|
MCI_RESOURCE_DRIVER
;
TRACE
(
"MCI_STATUS_AUDIO = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_VIDEO
:
lpParms
->
dwReturn
=
(
wma
->
dwSet
&
4
)
?
MAKEMCIRESOURCE
(
MCI_ON
,
MCI_ON_S
)
:
MAKEMCIRESOURCE
(
MCI_OFF
,
MCI_OFF_S
);
ret
=
MCI_RESOURCE_RETURNED
|
MCI_RESOURCE_DRIVER
;
TRACE
(
"MCI_STATUS_VIDEO = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
#if 0
case MCI_AVI_STATUS_AUDIO_BREAKS:
case MCI_AVI_STATUS_FRAMES_SKIPPED:
case MCI_AVI_STATUS_LAST_PLAY_SPEED:
case MCI_DGV_STATUS_AUDIO:
case MCI_DGV_STATUS_AUDIO_INPUT:
case MCI_DGV_STATUS_AUDIO_RECORD:
case MCI_DGV_STATUS_AUDIO_SOURCE:
case MCI_DGV_SETAUDIO_AVERAGE:
case MCI_DGV_SETAUDIO_LEFT:
case MCI_DGV_SETAUDIO_RIGHT:
case MCI_DGV_SETAUDIO_STEREO:
case MCI_DGV_STATUS_AUDIO_STREAM:
case MCI_DGV_STATUS_AVGBYTESPERSEC:
case MCI_DGV_STATUS_BASS:
case MCI_DGV_STATUS_BITSPERPEL:
case MCI_DGV_STATUS_BITSPERSAMPLE:
case MCI_DGV_STATUS_BLOCKALIGN:
case MCI_DGV_STATUS_BRIGHTNESS:
...
...
@@ -454,10 +461,12 @@ DWORD MCIAVI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSW lpPar
case MCI_DGV_STATUS_FILEFORMAT:
case MCI_DGV_STATUS_FILE_MODE:
case MCI_DGV_STATUS_FILE_COMPLETION:
case MCI_DGV_STATUS_FORWARD:
case MCI_DGV_STATUS_FRAME_RATE:
case MCI_DGV_STATUS_GAMMA:
#endif
case
MCI_DGV_STATUS_BITSPERPEL
:
lpParms
->
dwReturn
=
wma
->
inbih
->
biBitCount
;
TRACE
(
"MCI_DGV_STATUS_BITSPERPEL => %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_DGV_STATUS_HPAL
:
lpParms
->
dwReturn
=
0
;
TRACE
(
"MCI_DGV_STATUS_HPAL => %lx
\n
"
,
lpParms
->
dwReturn
);
...
...
@@ -465,7 +474,52 @@ DWORD MCIAVI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSW lpPar
case
MCI_DGV_STATUS_HWND
:
lpParms
->
dwReturn
=
(
DWORD_PTR
)
wma
->
hWndPaint
;
TRACE
(
"MCI_DGV_STATUS_HWND => %p
\n
"
,
wma
->
hWndPaint
);
break
;
case
MCI_DGV_STATUS_WINDOW_VISIBLE
:
lpParms
->
dwReturn
=
IsWindowVisible
(
wma
->
hWndPaint
)
?
MAKEMCIRESOURCE
(
TRUE
,
MCI_TRUE
)
:
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
TRACE
(
"MCI_STATUS_WINDOW_VISIBLE = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_WINDOW_MINIMIZED
:
lpParms
->
dwReturn
=
IsIconic
(
wma
->
hWndPaint
)
?
MAKEMCIRESOURCE
(
TRUE
,
MCI_TRUE
)
:
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
TRACE
(
"MCI_STATUS_WINDOW_MINIMIZED = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_WINDOW_MAXIMIZED
:
lpParms
->
dwReturn
=
IsZoomed
(
wma
->
hWndPaint
)
?
MAKEMCIRESOURCE
(
TRUE
,
MCI_TRUE
)
:
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
TRACE
(
"MCI_STATUS_WINDOW_MMAXIMIZED = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_SPEED
:
lpParms
->
dwReturn
=
1000
;
TRACE
(
"MCI_DGV_STATUS_SPEED = %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_DGV_STATUS_FRAME_RATE
:
/* FIXME: 1000 is a settable speed multiplier */
lpParms
->
dwReturn
=
MulDiv
(
1000000
,
1000
,
wma
->
mah
.
dwMicroSecPerFrame
);
TRACE
(
"MCI_DGV_STATUS_FRAME_RATE = %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_DGV_STATUS_FORWARD
:
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
TRUE
,
MCI_TRUE
);
ret
=
MCI_RESOURCE_RETURNED
;
TRACE
(
"MCI_DGV_STATUS_FORWARD = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_PAUSE_MODE
:
if
(
wma
->
dwStatus
!=
MCI_MODE_PAUSE
)
{
LeaveCriticalSection
(
&
wma
->
cs
);
return
MCIERR_NONAPPLICABLE_FUNCTION
;
}
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
MCI_MODE_PLAY
,
MCI_MODE_PLAY
);
ret
=
MCI_RESOURCE_RETURNED
;
TRACE
(
"MCI_STATUS_MODE => 0x%04x
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_DGV_STATUS_AUDIO_STREAM
:
lpParms
->
dwReturn
=
wma
->
audio_stream_n
;
TRACE
(
"MCI_DGV_STATUS_AUDIO_STREAM => %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
#if 0
case MCI_DGV_STATUS_KEY_COLOR:
case MCI_DGV_STATUS_KEY_INDEX:
...
...
@@ -473,38 +527,27 @@ DWORD MCIAVI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMSW lpPar
case MCI_DGV_MONITOR_FILE:
case MCI_DGV_MONITOR_INPUT:
case MCI_DGV_STATUS_MONITOR_METHOD:
case MCI_DGV_STATUS_PAUSE_MODE:
case MCI_DGV_STATUS_SAMPLESPERSECOND:
case MCI_DGV_STATUS_SEEK_EXACTLY:
case MCI_DGV_STATUS_SHARPNESS:
case MCI_DGV_STATUS_SIZE:
case MCI_DGV_STATUS_SMPTE:
case MCI_DGV_STATUS_SPEED:
case MCI_DGV_STATUS_STILL_FILEFORMAT:
case MCI_DGV_STATUS_TINT:
case MCI_DGV_STATUS_TREBLE:
case MCI_DGV_STATUS_UNSAVED:
case MCI_DGV_STATUS_VIDEO:
case MCI_DGV_STATUS_VIDEO_RECORD:
case MCI_DGV_STATUS_VIDEO_SOURCE:
case MCI_DGV_STATUS_VIDEO_SRC_NUM:
case MCI_DGV_STATUS_VIDEO_STREAM:
case MCI_DGV_STATUS_VOLUME:
case MCI_DGV_STATUS_WINDOW_VISIBLE:
case MCI_DGV_STATUS_WINDOW_MINIMIZED:
case MCI_DGV_STATUS_WINDOW_MAXIMIZED:
case MCI_STATUS_MEDIA_PRESENT:
#endif
default:
FIXME
(
"Unknown command %08X !
\n
"
,
lpParms
->
dwItem
);
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
LeaveCriticalSection
(
&
wma
->
cs
);
return
MCIERR_UNRECOGNIZED_COMMAND
;
return
MCIERR_UNSUPPORTED_FUNCTION
;
}
}
else
{
WARN
(
"No Status-Item!
\n
"
);
LeaveCriticalSection
(
&
wma
->
cs
);
return
MCIERR_UNRECOGNIZED_COMMAND
;
}
if
(
dwFlags
&
MCI_NOTIFY
)
{
...
...
dlls/mciavi32/mciavi_res.rc
View file @
cbb46ec8
...
...
@@ -20,6 +20,7 @@
#include "windef.h"
#include "winbase.h"
#include "mmddk.h"
#include "digitalv.h"
MCIAVI RCDATA
BEGIN
...
...
@@ -563,3 +564,10 @@ L"text\0", 0x00080000L, MCI_STRING,
L"\0", 0x00000000L, MCI_END_COMMAND,
L"\0", 0x00000000L, MCI_END_COMMAND_LIST
END
STRINGTABLE
BEGIN
MCI_ON_S, "on"
MCI_OFF_S, "off"
END
dlls/mciavi32/mmoutput.c
View file @
cbb46ec8
...
...
@@ -333,6 +333,7 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
if
(
!
MCIAVI_GetInfoVideo
(
wma
,
&
mmckList
,
&
mmckStream
))
return
FALSE
;
wma
->
video_stream_n
=
stream_n
;
wma
->
dwSet
|=
4
;
}
}
else
if
(
strh
.
fccType
==
streamtypeAUDIO
)
...
...
@@ -347,6 +348,7 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
if
(
!
MCIAVI_GetInfoAudio
(
wma
,
&
mmckList
,
&
mmckStream
))
return
FALSE
;
wma
->
audio_stream_n
=
stream_n
;
wma
->
dwSet
|=
3
;
}
}
else
...
...
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