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
4c19f003
Commit
4c19f003
authored
Jun 13, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: split picture (X11/XV) and events (all) header
This fixes namespace pollution of picture_sys_t.
parent
93194970
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
61 additions
and
42 deletions
+61
-42
modules/video_output/Modules.am
modules/video_output/Modules.am
+9
-13
modules/video_output/xcb/events.c
modules/video_output/xcb/events.c
+1
-1
modules/video_output/xcb/events.h
modules/video_output/xcb/events.h
+1
-22
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
+1
-1
modules/video_output/xcb/keys.c
modules/video_output/xcb/keys.c
+1
-1
modules/video_output/xcb/pictures.c
modules/video_output/xcb/pictures.c
+2
-1
modules/video_output/xcb/pictures.h
modules/video_output/xcb/pictures.h
+41
-0
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+1
-1
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+2
-1
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+2
-1
No files found.
modules/video_output/Modules.am
View file @
4c19f003
...
...
@@ -42,31 +42,27 @@ libvlc_LTLIBRARIES += \
### XCB ###
libxcb_x11_plugin_la_SOURCES = \
xcb/xcb_vlc.h \
xcb/x11.c \
xcb/pictures.c \
xcb/events.c
xcb/pictures.c xcb/pictures.h \
xcb/events.c xcb/events.h \
xcb/x11.c
libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
$(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
libxcb_x11_plugin_la_LIBADD = $(AM_LIBADD) \
$(XCB_LIBS) $(XCB_SHM_LIBS)
libxcb_xv_plugin_la_SOURCES = \
xcb/xcb_vlc.h \
xcb/xvideo.c \
xcb/pictures.c \
xcb/events.c
xcb/pictures.c xcb/pictures.h \
xcb/events.c xcb/events.h \
xcb/xvideo.c
libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
$(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
libxcb_xv_plugin_la_LIBADD = $(AM_LIBADD) \
$(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
libxcb_glx_plugin_la_SOURCES = \
xcb/xcb_vlc.h \
xcb/glx.c \
opengl.h \
opengl.c \
xcb/events.c
opengl.c opengl.h \
xcb/events.c xcb/events.h \
xcb/glx.c
libxcb_glx_plugin_la_CFLAGS = $(AM_CFLAGS) \
$(XCB_CFLAGS) $(GL_CFLAGS)
libxcb_glx_plugin_la_LIBADD = $(AM_LIBADD) \
...
...
modules/video_output/xcb/events.c
View file @
4c19f003
...
...
@@ -32,7 +32,7 @@
#include <vlc_common.h>
#include <vlc_vout_display.h>
#include "
xcb_vlc
.h"
#include "
events
.h"
/**
* Check for an error
...
...
modules/video_output/xcb/
xcb_vlc
.h
→
modules/video_output/xcb/
events
.h
View file @
4c19f003
/**
* @file
xcb_vlc
.h
* @file
events
.h
* @brief X C Bindings VLC module common header
*/
/*****************************************************************************
...
...
@@ -20,17 +20,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef WORDS_BIGENDIAN
# define ORDER XCB_IMAGE_ORDER_MSB_FIRST
#else
# define ORDER XCB_IMAGE_ORDER_LSB_FIRST
#endif
#ifndef XCB_CURSOR_NONE
# define XCB_CURSOR_NONE ((xcb_cursor_t) 0U)
#endif
#include <vlc_picture.h>
#include <vlc_vout_display.h>
/* keys.c */
...
...
@@ -50,17 +43,3 @@ struct vout_window_t *XCB_parent_Create (vout_display_t *obj,
xcb_cursor_t
XCB_cursor_Create
(
xcb_connection_t
*
,
const
xcb_screen_t
*
);
int
XCB_Manage
(
vout_display_t
*
vd
,
xcb_connection_t
*
conn
,
bool
*
);
/* common.c */
bool
XCB_shm_Check
(
vlc_object_t
*
obj
,
xcb_connection_t
*
conn
);
/* FIXME
* maybe it would be better to split this header in 2 */
#include <xcb/shm.h>
struct
picture_sys_t
{
xcb_shm_seg_t
segment
;
};
int
XCB_pictures_Alloc
(
vout_display_t
*
,
picture_resource_t
*
,
size_t
size
,
xcb_connection_t
*
,
bool
attach
);
void
XCB_pictures_Free
(
picture_resource_t
*
,
xcb_connection_t
*
);
modules/video_output/xcb/glx.c
View file @
4c19f003
...
...
@@ -39,7 +39,7 @@
#include <vlc_opengl.h>
#include "../opengl.h"
#include "
xcb_vlc
.h"
#include "
events
.h"
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
modules/video_output/xcb/keys.c
View file @
4c19f003
...
...
@@ -30,7 +30,7 @@
#include <xcb/xcb.h>
#include <vlc_common.h>
#include "
xcb_vlc
.h"
#include "
events
.h"
#ifdef HAVE_XCB_KEYSYMS
#include <xcb/xcb_keysyms.h>
...
...
modules/video_output/xcb/pictures.c
View file @
4c19f003
...
...
@@ -39,7 +39,8 @@
#include <vlc_common.h>
#include <vlc_vout_display.h>
#include "xcb_vlc.h"
#include "pictures.h"
#include "events.h"
/** Check MIT-SHM shared memory support */
bool
XCB_shm_Check
(
vlc_object_t
*
obj
,
xcb_connection_t
*
conn
)
...
...
modules/video_output/xcb/pictures.h
0 → 100644
View file @
4c19f003
/**
* @file pictures.h
* @brief XCB pictures allocation header
*/
/*****************************************************************************
* Copyright © 2009 Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef WORDS_BIGENDIAN
# define ORDER XCB_IMAGE_ORDER_MSB_FIRST
#else
# define ORDER XCB_IMAGE_ORDER_LSB_FIRST
#endif
#include <vlc_picture.h>
#include <vlc_vout_display.h>
#include <xcb/shm.h>
bool
XCB_shm_Check
(
vlc_object_t
*
obj
,
xcb_connection_t
*
conn
);
struct
picture_sys_t
{
xcb_shm_seg_t
segment
;
};
int
XCB_pictures_Alloc
(
vout_display_t
*
,
picture_resource_t
*
,
size_t
size
,
xcb_connection_t
*
,
bool
attach
);
void
XCB_pictures_Free
(
picture_resource_t
*
,
xcb_connection_t
*
);
modules/video_output/xcb/window.c
View file @
4c19f003
...
...
@@ -38,7 +38,7 @@ typedef xcb_atom_t Atom;
#include <vlc_plugin.h>
#include <vlc_vout_window.h>
#include "
xcb_vlc
.h"
#include "
events
.h"
#define DISPLAY_TEXT N_("X11 display")
#define DISPLAY_LONGTEXT N_( \
...
...
modules/video_output/xcb/x11.c
View file @
4c19f003
...
...
@@ -35,7 +35,8 @@
#include <vlc_vout_display.h>
#include <vlc_picture_pool.h>
#include "xcb_vlc.h"
#include "pictures.h"
#include "events.h"
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
modules/video_output/xcb/xvideo.c
View file @
4c19f003
...
...
@@ -38,7 +38,8 @@
#include <vlc_picture_pool.h>
#include <vlc_dialog.h>
#include "xcb_vlc.h"
#include "pictures.h"
#include "events.h"
#define ADAPTOR_TEXT N_("XVideo adaptor number")
#define ADAPTOR_LONGTEXT N_( \
...
...
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