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
13b5baf3
Commit
13b5baf3
authored
Jul 18, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename vout_directx to directx for consistency.
parent
6d833c2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
modules/video_output/msw/Modules.am
modules/video_output/msw/Modules.am
+1
-1
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+7
-7
No files found.
modules/video_output/msw/Modules.am
View file @
13b5baf3
SOURCES_
vout_
directx = \
SOURCES_directx = \
directx.c \
directx.c \
vout.h \
vout.h \
events.c \
events.c \
...
...
modules/video_output/msw/events.c
View file @
13b5baf3
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
#include <windowsx.h>
#include <windowsx.h>
#include <shellapi.h>
#include <shellapi.h>
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
#include <ddraw.h>
#include <ddraw.h>
#endif
#endif
#ifdef MODULE_NAME_IS_direct3d
#ifdef MODULE_NAME_IS_direct3d
...
@@ -333,7 +333,7 @@ void* EventThread( vlc_object_t *p_this )
...
@@ -333,7 +333,7 @@ void* EventThread( vlc_object_t *p_this )
#ifdef MODULE_NAME_IS_direct3d
#ifdef MODULE_NAME_IS_direct3d
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (Direct3D output)"
);
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (Direct3D output)"
);
#endif
#endif
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
if
(
p_event
->
p_vout
->
p_sys
->
b_using_overlay
)
val
.
psz_string
=
if
(
p_event
->
p_vout
->
p_sys
->
b_using_overlay
)
val
.
psz_string
=
strdup
(
VOUT_TITLE
" (hardware YUV overlay DirectX output)"
);
strdup
(
VOUT_TITLE
" (hardware YUV overlay DirectX output)"
);
else
if
(
p_event
->
p_vout
->
p_sys
->
b_hw_yuv
)
val
.
psz_string
=
else
if
(
p_event
->
p_vout
->
p_sys
->
b_hw_yuv
)
val
.
psz_string
=
...
@@ -665,7 +665,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
...
@@ -665,7 +665,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
rect_dest
.
top
=
point
.
y
+
i_y
;
rect_dest
.
top
=
point
.
y
+
i_y
;
rect_dest
.
bottom
=
rect_dest
.
top
+
i_height
;
rect_dest
.
bottom
=
rect_dest
.
top
+
i_height
;
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
/* Apply overlay hardware constraints */
/* Apply overlay hardware constraints */
if
(
p_vout
->
p_sys
->
b_using_overlay
)
if
(
p_vout
->
p_sys
->
b_using_overlay
)
{
{
...
@@ -698,7 +698,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
...
@@ -698,7 +698,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
rect_dest_clipped.right, rect_dest_clipped.bottom );
rect_dest_clipped.right, rect_dest_clipped.bottom );
#endif
#endif
#else
/* MODULE_NAME_IS_
vout_
directx */
#else
/* MODULE_NAME_IS_directx */
/* AFAIK, there are no clipping constraints in Direct3D, OpenGL and GDI */
/* AFAIK, there are no clipping constraints in Direct3D, OpenGL and GDI */
rect_dest_clipped
=
rect_dest
;
rect_dest_clipped
=
rect_dest
;
...
@@ -735,7 +735,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
...
@@ -735,7 +735,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
(
rect_dest
.
bottom
-
rect_dest_clipped
.
bottom
)
*
(
rect_dest
.
bottom
-
rect_dest_clipped
.
bottom
)
*
p_vout
->
fmt_out
.
i_visible_height
/
(
rect_dest
.
bottom
-
rect_dest
.
top
);
p_vout
->
fmt_out
.
i_visible_height
/
(
rect_dest
.
bottom
-
rect_dest
.
top
);
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
/* Apply overlay hardware constraints */
/* Apply overlay hardware constraints */
if
(
p_vout
->
p_sys
->
b_using_overlay
)
if
(
p_vout
->
p_sys
->
b_using_overlay
)
{
{
...
@@ -759,7 +759,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
...
@@ -759,7 +759,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
rect_src_clipped.right, rect_src_clipped.bottom );
rect_src_clipped.right, rect_src_clipped.bottom );
#endif
#endif
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
/* The destination coordinates need to be relative to the current
/* The destination coordinates need to be relative to the current
* directdraw primary surface (display) */
* directdraw primary surface (display) */
rect_dest_clipped
.
left
-=
p_vout
->
p_sys
->
rect_display
.
left
;
rect_dest_clipped
.
left
-=
p_vout
->
p_sys
->
rect_display
.
left
;
...
@@ -828,7 +828,7 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
...
@@ -828,7 +828,7 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
{
{
switch
(
message
)
switch
(
message
)
{
{
#ifdef MODULE_NAME_IS_
vout_
directx
#ifdef MODULE_NAME_IS_directx
case
WM_ERASEBKGND
:
case
WM_ERASEBKGND
:
/* For overlay, we need to erase background */
/* For overlay, we need to erase background */
return
!
p_vout
->
p_sys
->
b_using_overlay
?
return
!
p_vout
->
p_sys
->
b_using_overlay
?
...
...
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