Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
35ac8d12
Commit
35ac8d12
authored
Jul 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directx: improve DirectSound and DirectDraw module names
parent
8f2dd4a7
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
25 deletions
+25
-25
modules/LIST
modules/LIST
+2
-2
modules/audio_output/Modules.am
modules/audio_output/Modules.am
+5
-5
modules/audio_output/directx.c
modules/audio_output/directx.c
+1
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+2
-2
modules/video_output/msw/Modules.am
modules/video_output/msw/Modules.am
+5
-5
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+6
-6
modules/video_output/msw/common.h
modules/video_output/msw/common.h
+1
-1
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+3
-3
No files found.
modules/LIST
View file @
35ac8d12
...
...
@@ -43,7 +43,6 @@ $Id$
* anaglyph: anaglyph 3d video filter
* android_surface: video output for Android, based on Surface
* antiflicker: anti-flicker video filter
* aout_directx: audio output module using the DirectX API
* aout_file: Audio output to write to a file
* araw: Pseudo audio decoder for raw PCM
* asf: ASF demuxer
...
...
@@ -93,8 +92,9 @@ $Id$
* dirac: BBC Dirac codec
* direct2d: video output module using the Direct2D API
* direct3d: video output module using the Direct3D API
* directdraw: video output module using the DirectDraw API
* directfb: Direct Framebuffer video output
* direct
x: video output module using the DirectX
API
* direct
sound: audio output module using the DirectSound
API
* dmo: a DirectMediaObject decoder that uses DirectMedia to decode video (WMV3)
* dolby_surround_decoder: simple decoder for dolby surround encoded streams
* drawable: legacy LibVLC video window provider
...
...
modules/audio_output/Modules.am
View file @
35ac8d12
...
...
@@ -44,12 +44,12 @@ if HAVE_PULSE
libvlc_LTLIBRARIES += libpulse_plugin.la
endif
lib
aout_directx
_plugin_la_SOURCES = directx.c windows_audio_common.h packet.c
lib
aout_directx
_plugin_la_CFLAGS = $(AM_CFLAGS)
lib
aout_directx
_plugin_la_LIBADD = $(AM_LIBADD)
lib
aout_directx
_plugin_la_DEPENDENCIES =
lib
directsound
_plugin_la_SOURCES = directx.c windows_audio_common.h packet.c
lib
directsound
_plugin_la_CFLAGS = $(AM_CFLAGS)
lib
directsound
_plugin_la_LIBADD = $(AM_LIBADD)
lib
directsound
_plugin_la_DEPENDENCIES =
if HAVE_DIRECTX
libvlc_LTLIBRARIES += lib
aout_directx
_plugin.la
libvlc_LTLIBRARIES += lib
directsound
_plugin.la
endif
libkai_plugin_la_SOURCES = kai.c packet.c
...
...
modules/audio_output/directx.c
View file @
35ac8d12
...
...
@@ -138,7 +138,7 @@ vlc_module_begin ()
set_capability
(
"audio output"
,
100
)
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
add_shortcut
(
"directx"
,
"
directsound
"
)
add_shortcut
(
"directx"
,
"
aout_directx
"
)
add_string
(
"directx-audio-device"
,
"default"
,
DEVICE_TEXT
,
DEVICE_LONGTEXT
,
false
)
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
35ac8d12
...
...
@@ -744,7 +744,7 @@ void SPrefsPanel::updateAudioOptions( int number)
QString
value
=
qobject_cast
<
QComboBox
*>
(
optionWidgets
[
audioOutCoB
])
->
itemData
(
number
).
toString
();
#ifdef WIN32
optionWidgets
[
directxW
]
->
setVisible
(
(
value
==
"
aout_directx
"
)
);
optionWidgets
[
directxW
]
->
setVisible
(
(
value
==
"
directsound
"
)
);
#elif defined( __OS2__ )
optionWidgets
[
kaiW
]
->
setVisible
(
(
value
==
"kai"
)
);
#else
...
...
@@ -757,7 +757,7 @@ void SPrefsPanel::updateAudioOptions( int number)
#endif
optionWidgets
[
fileW
]
->
setVisible
(
(
value
==
"aout_file"
)
);
optionWidgets
[
spdifChB
]
->
setVisible
(
(
value
==
"alsa"
||
value
==
"oss"
||
value
==
"auhal"
||
value
==
"
aout_directx
"
||
value
==
"waveout"
)
);
value
==
"
directsound
"
||
value
==
"waveout"
)
);
}
...
...
modules/video_output/msw/Modules.am
View file @
35ac8d12
...
...
@@ -6,18 +6,18 @@ SOURCES_direct2d = \
common.c \
$(NULL)
libdirect
x
_plugin_la_SOURCES = \
libdirect
draw
_plugin_la_SOURCES = \
directx.c \
common.h \
events.h \
events.c \
common.c \
$(NULL)
libdirect
x
_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirect
x
_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
libdirect
x
_plugin_la_DEPENDENCIES =
libdirect
draw
_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirect
draw
_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
libdirect
draw
_plugin_la_DEPENDENCIES =
if HAVE_DIRECTX
libvlc_LTLIBRARIES += libdirect
x
_plugin.la
libvlc_LTLIBRARIES += libdirect
draw
_plugin.la
endif
SOURCES_direct3d = \
...
...
modules/video_output/msw/common.c
View file @
35ac8d12
...
...
@@ -39,7 +39,7 @@
#include <windowsx.h>
#include <shellapi.h>
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
#include <ddraw.h>
#endif
#ifdef MODULE_NAME_IS_direct3d
...
...
@@ -99,7 +99,7 @@ int CommonInit(vout_display_t *vd)
#ifdef MODULE_NAME_IS_direct3d
cfg
.
use_desktop
=
sys
->
use_desktop
;
#endif
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
cfg
.
use_overlay
=
sys
->
use_overlay
;
#endif
cfg
.
win
.
type
=
VOUT_WINDOW_TYPE_HWND
;
...
...
@@ -396,7 +396,7 @@ void UpdateRects(vout_display_t *vd,
rect_dest
.
top
=
point
.
y
+
place
.
y
;
rect_dest
.
bottom
=
rect_dest
.
top
+
place
.
height
;
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
/* Apply overlay hardware constraints */
if
(
sys
->
use_overlay
)
AlignRect
(
&
rect_dest
,
sys
->
i_align_dest_boundary
,
sys
->
i_align_dest_size
);
...
...
@@ -404,7 +404,7 @@ void UpdateRects(vout_display_t *vd,
#endif
#if defined(MODULE_NAME_IS_direct
x
)
#if defined(MODULE_NAME_IS_direct
draw
)
/* UpdateOverlay directdraw function doesn't automatically clip to the
* display size so we need to do it otherwise it will fail */
...
...
@@ -458,7 +458,7 @@ void UpdateRects(vout_display_t *vd,
(
rect_dest
.
bottom
-
rect_dest_clipped
.
bottom
)
*
source
->
i_visible_height
/
(
rect_dest
.
bottom
-
rect_dest
.
top
);
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
/* Apply overlay hardware constraints */
if
(
sys
->
use_overlay
)
AlignRect
(
&
rect_src_clipped
,
sys
->
i_align_src_boundary
,
sys
->
i_align_src_size
);
...
...
@@ -477,7 +477,7 @@ void UpdateRects(vout_display_t *vd,
rect_src_clipped
.
right
,
rect_src_clipped
.
bottom
);
#endif
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
/* The destination coordinates need to be relative to the current
* directdraw primary surface (display) */
rect_dest_clipped
.
left
-=
sys
->
rect_display
.
left
;
...
...
modules/video_output/msw/common.h
View file @
35ac8d12
...
...
@@ -110,7 +110,7 @@ struct vout_display_sys_t
picture_pool_t
*
pool
;
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
/* Multi-monitor support */
HMONITOR
hmonitor
;
/* handle of the current monitor */
GUID
*
display_driver
;
...
...
modules/video_output/msw/events.c
View file @
35ac8d12
...
...
@@ -40,7 +40,7 @@
#include <ctype.h>
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
#include <ddraw.h>
#endif
#ifdef MODULE_NAME_IS_direct3d
...
...
@@ -788,7 +788,7 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
if
(
hwnd
==
p_event
->
hvideownd
)
{
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
vlc_mutex_lock
(
&
p_event
->
lock
);
const
bool
use_overlay
=
p_event
->
use_overlay
;
vlc_mutex_unlock
(
&
p_event
->
lock
);
...
...
@@ -796,7 +796,7 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
switch
(
message
)
{
#ifdef MODULE_NAME_IS_direct
x
#ifdef MODULE_NAME_IS_direct
draw
case
WM_ERASEBKGND
:
/* For overlay, we need to erase background */
return
!
use_overlay
?
1
:
DefWindowProc
(
hwnd
,
message
,
wParam
,
lParam
);
...
...
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