Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1cd4abc7
Commit
1cd4abc7
authored
May 26, 2004
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use *ScreenResolution() function iso of mixing them with *ScreenOutput() functions.
parent
aa3efe4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
modules/video_output/hd1000v.cpp
modules/video_output/hd1000v.cpp
+23
-5
No files found.
modules/video_output/hd1000v.cpp
View file @
1cd4abc7
...
...
@@ -115,23 +115,41 @@ static int Create( vlc_object_t *p_this )
p_vout
->
pf_display
=
Display
;
/* Get current screen resolution */
msg_Dbg
(
p_vout
,
"
N
umber of screen resolutions supported %u"
,
msg_Dbg
(
p_vout
,
"
n
umber of screen resolutions supported %u"
,
p_vout
->
p_sys
->
p_screen
->
GetNumScreenResolutionsSupported
()
);
p_vout
->
p_sys
->
p_screen
->
GetCurrentOutputResolution
(
(
u32
)
p_vout
->
p_sys
->
u_current
);
p_vout
->
p_sys
->
p_screen
->
GetCurrentScreenResolution
(
(
u32
)
p_vout
->
p_sys
->
u_current
);
p_vout
->
p_sys
->
p_screen
->
SetScreenResolution
(
(
u32
)
p_vout
->
p_sys
->
u_current
);
#if 1
msg_Dbg
(
p_vout
,
"available screen resolutions:"
);
for
(
u32
i
=
0
;
i
<
p_vout
->
p_sys
->
p_screen
->
GetNumScreenResolutionsSupported
();
i
++
)
{
u32
i_width
=
0
;
u32
i_height
=
0
;
u8
i_screen_depth
=
0
;
bool
b_buffered
;
p_vout
->
p_sys
->
p_screen
->
GetSupportedScreenResolutionAt
(
i
,
i_width
,
i_height
,
i_screen_depth
,
b_buffered
);
msg_Dbg
(
p_vout
,
" screen index = %u, width = %u, height = %u, depth = %u, double buffered = %s"
,
i
,
i_width
,
i_height
,
i_screen_depth
,
(
b_buffered
?
"yes"
:
"no"
)
);
}
#endif
p_vout
->
p_sys
->
p_screen
->
GetSupportedScreenResolutionAt
(
(
u32
)
p_vout
->
p_sys
->
u_current
,
(
u32
)
p_vout
->
p_sys
->
i_width
,
(
u32
)
p_vout
->
p_sys
->
i_height
,
(
u8
)
p_vout
->
p_sys
->
i_screen_depth
,
b_double_buffered
);
p_vout
->
p_sys
->
b_double_buffered
=
(
vlc_bool_t
)
b_double_buffered
;
msg_Dbg
(
p_vout
,
"index = %u, width = %u, height = %u, depth = %u, double buffered = %d"
,
p_vout
->
p_sys
->
u_current
,
msg_Dbg
(
p_vout
,
"
using screen
index = %u, width = %u, height = %u, depth = %u, double buffered = %d"
,
p_vout
->
p_sys
->
u_current
,
/* Current screen. */
p_vout
->
p_sys
->
i_width
,
p_vout
->
p_sys
->
i_height
,
p_vout
->
p_sys
->
i_screen_depth
,
p_vout
->
p_sys
->
b_double_buffered
);
return
VLC_SUCCESS
;
}
...
...
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