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
813a4595
Commit
813a4595
authored
Sep 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added signal-quality/strength input variables for access signal report.
They are set to -1 if not specified.
parent
97d2ea83
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
15 deletions
+31
-15
include/vlc_access.h
include/vlc_access.h
+11
-15
include/vlc_input.h
include/vlc_input.h
+1
-0
src/input/input.c
src/input/input.c
+13
-0
src/input/var.c
src/input/var.c
+6
-0
No files found.
include/vlc_access.h
View file @
813a4595
...
...
@@ -48,10 +48,16 @@ enum access_query_e
ACCESS_GET_MTU
,
/* arg1= int* cannot fail(0 if no sense)*/
ACCESS_GET_PTS_DELAY
,
/* arg1= int64_t* cannot fail */
/* */
ACCESS_GET_TITLE_INFO
,
/* arg1=input_title_t*** arg2=int* can fail */
ACCESS_GET_TITLE_INFO
,
/* arg1=input_title_t*** arg2=int*
res=
can fail */
/* Meta data */
ACCESS_GET_META
,
/* arg1= vlc_meta_t ** res=can fail */
/* */
ACCESS_GET_CONTENT_TYPE
,
/* arg1=char **ppsz_content_type res=can fail */
/* */
ACCESS_GET_SIGNAL
,
/* arg1=double *pf_quality, arg2=double *pf_strength res=can fail */
/* */
ACCESS_SET_PAUSE_STATE
,
/* arg1= bool can fail */
...
...
@@ -61,11 +67,9 @@ enum access_query_e
/* Special mode for access/demux communication
* XXX: avoid to use it unless you can't */
ACCESS_SET_PRIVATE_ID_STATE
,
/* arg1= int i_private_data, bool b_selected
can fail */
ACCESS_SET_PRIVATE_ID_STATE
,
/* arg1= int i_private_data, bool b_selected res=
can fail */
ACCESS_SET_PRIVATE_ID_CA
,
/* arg1= int i_program_number, uint16_t i_vpid, uint16_t i_apid1, uint16_t i_apid2, uint16_t i_apid3, uint8_t i_length, uint8_t *p_data */
ACCESS_GET_PRIVATE_ID_STATE
,
/* arg1=int i_private_data arg2=bool * res=can fail */
ACCESS_GET_CONTENT_TYPE
,
/* arg1=char **ppsz_content_type */
};
struct
access_t
...
...
@@ -135,14 +139,6 @@ static inline int access_Control( access_t *p_access, int i_query, ... )
return
i_result
;
}
static
inline
char
*
access_GetContentType
(
access_t
*
p_access
)
{
char
*
res
;
if
(
access_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
&
res
)
)
return
NULL
;
return
res
;
}
static
inline
void
access_InitFields
(
access_t
*
p_a
)
{
p_a
->
info
.
i_update
=
0
;
...
...
include/vlc_input.h
View file @
813a4595
...
...
@@ -418,6 +418,7 @@ typedef enum input_state_e
#define INPUT_UPDATE_TITLE 0x0010
#define INPUT_UPDATE_SEEKPOINT 0x0020
#define INPUT_UPDATE_META 0x0040
#define INPUT_UPDATE_SIGNAL 0x0080
/* Input control XXX: internal */
#define INPUT_CONTROL_FIFO_SIZE 100
...
...
src/input/input.c
View file @
813a4595
...
...
@@ -2090,6 +2090,19 @@ static int UpdateFromAccess( input_thread_t *p_input )
InputUpdateMeta
(
p_input
,
p_meta
);
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_META
;
}
if
(
p_access
->
info
.
i_update
&
INPUT_UPDATE_SIGNAL
)
{
double
f_quality
;
double
f_strength
;
if
(
access_Control
(
p_access
,
ACCESS_GET_SIGNAL
,
&
f_quality
,
&
f_strength
)
)
f_quality
=
f_strength
=
-
1
;
var_SetFloat
(
p_input
,
"signal-quality"
,
f_quality
);
var_SetFloat
(
p_input
,
"signal-strength"
,
f_strength
);
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_SIGNAL
;
}
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_SIZE
;
...
...
src/input/var.c
View file @
813a4595
...
...
@@ -482,6 +482,12 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create
(
p_input
,
"teletext-es"
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_input
,
"teletext-es"
,
-
1
);
var_Create
(
p_input
,
"signal-quality"
,
VLC_VAR_FLOAT
);
var_SetFloat
(
p_input
,
"signal-quality"
,
-
1
);
var_Create
(
p_input
,
"signal-strength"
,
VLC_VAR_FLOAT
);
var_SetFloat
(
p_input
,
"signal-strength"
,
-
1
);
/* */
var_Create
(
p_input
,
"access-filter"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"access"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
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