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
7634e456
Commit
7634e456
authored
Sep 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split V4L2 plug-in in multiple files
parent
67622e8d
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
768 additions
and
730 deletions
+768
-730
modules/access/Modules.am
modules/access/Modules.am
+1
-1
modules/access/v4l2/controls.c
modules/access/v4l2/controls.c
+673
-0
modules/access/v4l2/v4l2.h
modules/access/v4l2/v4l2.h
+90
-0
modules/access/v4l2/video.c
modules/access/v4l2/video.c
+2
-728
po/POTFILES.in
po/POTFILES.in
+2
-1
No files found.
modules/access/Modules.am
View file @
7634e456
...
...
@@ -130,7 +130,7 @@ libaccess_shm_plugin_la_LIBADD = $(AM_LIBADD)
libaccess_shm_plugin_la_DEPENDENCIES =
libvlc_LTLIBRARIES += $(LTLIBaccess_shm)
libv4l2_plugin_la_SOURCES = v4l2.c
libv4l2_plugin_la_SOURCES = v4l2
/video.c v4l2/controls
.c
libv4l2_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_v4L2)
libv4l2_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_v4l2) $(LIBM)
libv4l2_plugin_la_DEPENDENCIES =
...
...
modules/access/v4l2/controls.c
0 → 100644
View file @
7634e456
This diff is collapsed.
Click to expand it.
modules/access/v4l2/v4l2.h
0 → 100644
View file @
7634e456
/*****************************************************************************
* v4l2.h : Video4Linux2 input module for vlc
*****************************************************************************
* Copyright (C) 2002-2011 the VideoLAN team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU 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.
*****************************************************************************/
#include <vlc_common.h>
#if defined(HAVE_LINUX_VIDEODEV2_H)
# include <linux/videodev2.h>
#elif defined(HAVE_SYS_VIDEOIO_H)
# include <sys/videoio.h>
#else
# error "No Video4Linux2 headers found."
#endif
#ifdef HAVE_LIBV4L2
# include <libv4l2.h>
#else
# define v4l2_close close
# define v4l2_dup dup
# define v4l2_ioctl ioctl
# define v4l2_read read
# define v4l2_mmap mmap
# define v4l2_munmap munmap
#endif
#define CFG_PREFIX "v4l2-"
int
ControlList
(
vlc_object_t
*
,
int
fd
,
bool
b_demux
);
/* TODO: remove this, use callbacks */
typedef
enum
{
IO_METHOD_READ
=
1
,
IO_METHOD_MMAP
,
IO_METHOD_USERPTR
,
}
io_method
;
/* TODO: move this to .c */
struct
demux_sys_t
{
int
i_fd
;
/* Video */
io_method
io
;
unsigned
i_selected_input
;
unsigned
i_codec
;
struct
v4l2_fmtdesc
*
p_codecs
;
struct
buffer_t
*
p_buffers
;
unsigned
int
i_nbuffers
;
int
i_width
;
int
i_height
;
unsigned
int
i_aspect
;
int
i_fourcc
;
uint32_t
i_block_flags
;
es_out_id_t
*
p_es
;
/* Audio */
uint32_t
i_audio_input
;
/* Tuner */
uint32_t
i_tuner
;
enum
v4l2_tuner_type
i_tuner_type
;
int
i_tuner_audio_mode
;
#ifdef HAVE_LIBV4L2
bool
b_libv4l2
;
#endif
};
modules/access/v4l2.c
→
modules/access/v4l2
/video
.c
View file @
7634e456
This diff is collapsed.
Click to expand it.
po/POTFILES.in
View file @
7634e456
...
...
@@ -259,7 +259,8 @@ modules/access/shm.c
modules/access/smb.c
modules/access/tcp.c
modules/access/udp.c
modules/access/v4l2.c
modules/access/v4l2/controls.c
modules/access/v4l2/video.c
modules/access/vcd/cdrom.c
modules/access/vcd/cdrom.h
modules/access/vcd/cdrom_internals.h
...
...
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