Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
14602beb
Commit
14602beb
authored
Feb 07, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate libvlc_media_player_(g|s)et_drawable
parent
dc37025c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
40 deletions
+37
-40
include/vlc/deprecated.h
include/vlc/deprecated.h
+37
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+0
-32
include/vlc/libvlc_structures.h
include/vlc/libvlc_structures.h
+0
-8
No files found.
include/vlc/deprecated.h
View file @
14602beb
...
...
@@ -30,10 +30,47 @@
* This file defines libvlc depreceated API
*/
/**
* This is the legacy representation of a platform-specific drawable. Because
* it cannot accomodate a pointer on most 64-bits platforms, it should not be
* used anymore.
*/
typedef
int
libvlc_drawable_t
;
# ifdef __cplusplus
extern
"C"
{
# endif
/**
* Set the drawable where the media player should render its video output.
*
* On Windows 32-bits, a window handle (HWND) is expected.
* On Windows 64-bits, this function will always fail.
*
* On OSX 32-bits, a CGrafPort is expected.
* On OSX 64-bits, this function will always fail.
*
* On other platforms, an existing X11 window ID is expected. See
* libvlc_media_player_set_xid() for details.
*
* \param p_mi the Media Player
* \param drawable the libvlc_drawable_t where the media player
* should render its video
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_media_player_set_drawable
(
libvlc_media_player_t
*
,
libvlc_drawable_t
,
libvlc_exception_t
*
);
/**
* Get the drawable where the media player should render its video output
*
* \param p_mi the Media Player
* \param p_e an initialized exception pointer
* \return the libvlc_drawable_t where the media player
* should render its video
*/
VLC_PUBLIC_API
libvlc_drawable_t
libvlc_media_player_get_drawable
(
libvlc_media_player_t
*
,
libvlc_exception_t
*
);
/**
* Set the default video output's parent.
*
...
...
include/vlc/libvlc.h
View file @
14602beb
...
...
@@ -580,38 +580,6 @@ VLC_PUBLIC_API void libvlc_media_player_set_xid ( libvlc_media_player_t *p_mi, u
*/
VLC_PUBLIC_API
void
libvlc_media_player_set_hwnd
(
libvlc_media_player_t
*
p_mi
,
void
*
drawable
,
libvlc_exception_t
*
p_e
);
/**
* Set the drawable where the media player should render its video output.
*
* On Windows 32-bits, a window handle (HWND) is expected.
* On Windows 64-bits, this function will always fail.
*
* On OSX, a CGrafPort is expected.
*
* Otherwise, this shall be the identifier of an existing X11 drawable (window
* or pixmap). It is assumed that the X11 server is the same as the one in
* x11-display if configured. If XVideo is <b>not</b> supported, it is assumed
* that the drawable has the same pixmap format as the default X11 screen
* (especially depth, scan line pad, black pixel); this is a bug.
*
* \param p_mi the Media Player
* \param drawable the libvlc_drawable_t where the media player
* should render its video
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_media_player_set_drawable
(
libvlc_media_player_t
*
,
libvlc_drawable_t
,
libvlc_exception_t
*
);
/**
* Get the drawable where the media player should render its video output
*
* \param p_mi the Media Player
* \param p_e an initialized exception pointer
* \return the libvlc_drawable_t where the media player
* should render its video
*/
VLC_PUBLIC_API
libvlc_drawable_t
libvlc_media_player_get_drawable
(
libvlc_media_player_t
*
,
libvlc_exception_t
*
);
/** \bug This might go away ... to be replaced by a broader system */
/**
...
...
include/vlc/libvlc_structures.h
View file @
14602beb
...
...
@@ -265,14 +265,6 @@ typedef struct libvlc_audio_output_t
* @{
*/
/**
* Downcast to this general type as placeholder for a platform specific one, such as:
* Drawable on X11,
* CGrafPort on MacOSX,
* HWND on win32
*/
typedef
int
libvlc_drawable_t
;
/**
* Rectangle type for video geometry
*/
...
...
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