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
a57a0364
Commit
a57a0364
authored
Jan 20, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document vout_Re(quest|lease)Window
parent
ff004f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+25
-7
No files found.
src/video_output/vout_intf.c
View file @
a57a0364
...
...
@@ -79,18 +79,31 @@ static int TitleTimeoutCallback( vlc_object_t *, char const *,
static
int
TitlePositionCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
/*****************************************************************************
* vout_RequestWindow: Create/Get a video window if possible.
*****************************************************************************
* This function looks for the main interface and tries to request
* a new video window. If it fails then the vout will still need to create the
* window by itself.
*****************************************************************************/
/**
* Creates a video output window.
* On Unix systems, this returns an X11 drawable handle.
* On Windows, this returns a Win32 window handle.
* Video output plugins are supposed to called this function and display the
* video within the resulting window, while in windowed mode.
*
* Note that a given video output thread must not allocate more than one
* such window at a time.
*
* @param p_vout video output thread to create a window for
* @param pi_x_hint pointer to store the recommended horizontal position [OUT]
* @param pi_y_hint pointer to store the recommended vertical position [OUT]
* @param pi_width_hint pointer to store the recommended width [OUT]
* @param pi_height_hint pointer to store the recommended height [OUT]
*
* @return a platform-specific window handle, or NULL in case of failure.
* In case of success, the handle is released with vout_ReleaseWindow().
*/
void
*
vout_RequestWindow
(
vout_thread_t
*
p_vout
,
int
*
pi_x_hint
,
int
*
pi_y_hint
,
unsigned
int
*
pi_width_hint
,
unsigned
int
*
pi_height_hint
)
{
assert
(
p_vout
->
p_window
==
NULL
);
/* Get requested coordinates */
*
pi_x_hint
=
var_GetInteger
(
p_vout
,
"video-x"
);
...
...
@@ -130,6 +143,11 @@ void *vout_RequestWindow( vout_thread_t *p_vout,
return
wnd
->
handle
;
}
/**
* Releases a window handle obtained with vout_RequestWindow().
* @param p_vout video output thread that allocated the window
* @param dummy unused legacy paramater
*/
void
vout_ReleaseWindow
(
vout_thread_t
*
p_vout
,
void
*
dummy
)
{
vout_window_t
*
wnd
=
p_vout
->
p_window
;
...
...
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