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
284900dc
Commit
284900dc
authored
Dec 26, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted wingdi/wingapi to vout display.
parent
72974fc1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
324 additions
and
506 deletions
+324
-506
modules/video_output/msw/Modules.am
modules/video_output/msw/Modules.am
+7
-7
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+8
-11
modules/video_output/msw/common.h
modules/video_output/msw/common.h
+11
-25
modules/video_output/msw/wingdi.c
modules/video_output/msw/wingdi.c
+298
-463
No files found.
modules/video_output/msw/Modules.am
View file @
284900dc
...
...
@@ -24,16 +24,16 @@ SOURCES_glwin32 = \
SOURCES_wingdi = \
wingdi.c \
vout
.h \
events
_vo
.h \
events
_vo
.c \
common
_vo
.c \
common
.h \
events.h \
events.c \
common.c \
$(NULL)
SOURCES_wingapi = \
wingdi.c \
vout.h \
events
_vo
.h \
events
_vo
.c \
common
_vo
.c \
events.h \
events.c \
common.c \
$(NULL)
modules/video_output/msw/common.c
View file @
284900dc
...
...
@@ -169,7 +169,7 @@ void CommonManage(vout_display_t *vd)
/* FIXME I find such #ifdef quite weirds. Are they really needed ? */
#if defined(MODULE_NAME_IS_direct3d)
#if defined(MODULE_NAME_IS_direct3d)
|| defined(MODULE_NAME_IS_wingdi) || defined(MODULE_NAME_IS_wingapi)
SetWindowPos
(
sys
->
hwnd
,
0
,
0
,
0
,
rect_parent
.
right
-
rect_parent
.
left
,
rect_parent
.
bottom
-
rect_parent
.
top
,
...
...
@@ -186,15 +186,6 @@ void CommonManage(vout_display_t *vd)
rect_parent
.
right
-
rect_parent
.
left
,
rect_parent
.
bottom
-
rect_parent
.
top
,
0
);
#if defined(MODULE_NAME_IS_wingdi) || defined(MODULE_NAME_IS_wingapi)
unsigned
int
i_x
,
i_y
,
i_width
,
i_height
;
vout_PlacePicture
(
vd
,
rect_parent
.
right
-
rect_parent
.
left
,
rect_parent
.
bottom
-
rect_parent
.
top
,
&
i_x
,
&
i_y
,
&
i_width
,
&
i_height
);
SetWindowPos
(
sys
->
hvideownd
,
HWND_TOP
,
i_x
,
i_y
,
i_width
,
i_height
,
0
);
#endif
#endif
}
}
...
...
@@ -271,7 +262,9 @@ void UpdateRects(vout_display_t *vd,
EventThreadUpdateWindowPosition
(
sys
->
event
,
&
has_moved
,
&
is_resized
,
point
.
x
,
point
.
y
,
rect
.
right
,
rect
.
bottom
);
if
(
!
is_forced
&&
!
has_moved
&&
!
is_resized
)
if
(
is_resized
)
vout_display_SendEventDisplaySize
(
vd
,
rect
.
right
,
rect
.
bottom
,
cfg
->
is_fullscreen
);
if
(
!
is_forced
&&
!
has_moved
&&
!
is_resized
)
return
;
/* Update the window position and size */
...
...
@@ -283,6 +276,10 @@ void UpdateRects(vout_display_t *vd,
vout_display_PlacePicture
(
&
place
,
source
,
&
place_cfg
,
true
);
EventThreadUpdateSourceAndPlace
(
sys
->
event
,
source
,
&
place
);
#if defined(MODULE_NAME_IS_wingapi)
if
(
place
.
width
!=
fmt
->
i_width
||
place
.
height
!=
fmt
->
i_height
)
vout_display_SendEventPicturesInvalid
(
vd
);
#endif
if
(
sys
->
hvideownd
)
SetWindowPos
(
sys
->
hvideownd
,
0
,
...
...
modules/video_output/msw/common.h
View file @
284900dc
...
...
@@ -187,39 +187,24 @@ struct vout_display_sys_t
bool
desktop_requested
;
#endif
#ifdef MODULE_NAME_IS_wingdi
#if defined(MODULE_NAME_IS_wingdi) || defined(MODULE_NAME_IS_wingapi)
int
i_depth
;
/* Our offscreen bitmap and its framebuffer */
HDC
off_dc
;
HBITMAP
off_bitmap
;
uint8_t
*
p_pic_buffer
;
int
i_pic_pitch
;
int
i_pic_pixel_pitch
;
BITMAPINFO
bitmapinfo
;
RGBQUAD
red
;
RGBQUAD
green
;
RGBQUAD
blue
;
#endif
#ifdef MODULE_NAME_IS_wingapi
int
i_depth
;
int
render_width
;
int
render_height
;
/* Our offscreen bitmap and its framebuffer */
HDC
off_dc
;
HBITMAP
off_bitmap
;
uint8_t
*
p_pic_buffer
;
int
i_pic_pitch
;
int
i_pic_pixel_pitch
;
picture_pool_t
*
pool
;
BITMAPINFO
bitmapinfo
;
RGBQUAD
red
;
RGBQUAD
green
;
RGBQUAD
blue
;
struct
{
BITMAPINFO
bitmapinfo
;
RGBQUAD
red
;
RGBQUAD
green
;
RGBQUAD
blue
;
};
# ifdef MODULE_NAME_IS_wingapi
HINSTANCE
gapi_dll
;
/* handle of the opened gapi dll */
/* GAPI functions */
...
...
@@ -230,6 +215,7 @@ struct vout_display_sys_t
GXDisplayProperties
(
*
GXGetDisplayProperties
)();
int
(
*
GXSuspend
)();
int
(
*
GXResume
)();
# endif
#endif
};
...
...
modules/video_output/msw/wingdi.c
View file @
284900dc
This diff is collapsed.
Click to expand it.
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