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
8fb55fe0
Commit
8fb55fe0
authored
Oct 23, 2003
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the "input" parameter in pvr input command line. Default is input=4 (tuner)
parent
8ac29ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
modules/access/pvr/pvr.c
modules/access/pvr/pvr.c
+19
-3
No files found.
modules/access/pvr/pvr.c
View file @
8fb55fe0
...
...
@@ -2,7 +2,7 @@
* pvr.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: pvr.c,v 1.
7 2003/09/08 11:05:02
bigben Exp $
* $Id: pvr.c,v 1.
8 2003/10/23 22:46:16
bigben Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -97,6 +97,7 @@ struct access_sys_t
int
i_bitrate
;
int
i_bitrate_peak
;
int
i_bitrate_mode
;
int
i_input
;
};
/*****************************************************************************
...
...
@@ -133,6 +134,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_framerate
=
25
;
p_sys
->
i_bitrate
=
3000000
;
p_sys
->
i_bitrate_peak
=
4000000
;
p_sys
->
i_input
=
4
;
/* parse command line options */
psz_tofree
=
strdup
(
p_input
->
psz_name
);
...
...
@@ -173,6 +175,13 @@ static int Open( vlc_object_t * p_this )
&
psz_parser
,
0
);}
}
else
if
(
!
strncmp
(
psz_parser
,
"input="
,
strlen
(
"input="
)
)
)
{
p_sys
->
i_input
=
strtol
(
psz_parser
+
strlen
(
"input="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"device="
,
strlen
(
"device="
)
)
)
{
psz_device
=
calloc
(
strlen
(
"/dev/videox"
)
+
1
,
1
);
...
...
@@ -287,9 +296,9 @@ static int Open( vlc_object_t * p_this )
free
(
psz_tofree
);
msg_Dbg
(
p_input
,
"device: %s, standard: %x, size: %dx%d, "
msg_Dbg
(
p_input
,
"device: %s,
input: %d,
standard: %x, size: %dx%d, "
"frequency: %d, framerate: %d, bitrate: %d/%d/%d"
,
psz_device
,
p_sys
->
i_standard
,
p_sys
->
i_width
,
psz_device
,
p_sys
->
i_
input
,
p_sys
->
i_
standard
,
p_sys
->
i_width
,
p_sys
->
i_height
,
p_sys
->
i_frequency
,
p_sys
->
i_framerate
,
p_sys
->
i_bitrate
,
p_sys
->
i_bitrate_peak
,
p_sys
->
i_bitrate_mode
);
...
...
@@ -301,6 +310,13 @@ static int Open( vlc_object_t * p_this )
}
free
(
psz_device
);
/* set the input */
if
(
ioctl
(
p_sys
->
i_fd
,
VIDIOC_S_INPUT
,
&
p_sys
->
i_input
)
<
0
)
{
msg_Warn
(
p_input
,
"VIDIOC_S_INPUT failed"
);
}
/* set the video standard */
if
(
ioctl
(
p_sys
->
i_fd
,
VIDIOC_S_STD
,
&
p_sys
->
i_standard
)
<
0
)
{
...
...
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