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
99bbcdcb
Commit
99bbcdcb
authored
Feb 22, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added a 'd' keystroke to dump the stream contents (for debugging
purposes).
parent
6926039e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
8 deletions
+17
-8
include/input.h
include/input.h
+1
-2
include/input_ext-intf.h
include/input_ext-intf.h
+2
-1
include/keystrokes.h
include/keystrokes.h
+2
-1
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+2
-1
src/input/input_programs.c
src/input/input_programs.c
+1
-3
src/interface/interface.c
src/interface/interface.c
+9
-0
No files found.
include/input.h
View file @
99bbcdcb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input.h: structures of the input not exported to other modules
* input.h: structures of the input not exported to other modules
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: input.h,v 1.3
1 2001/02/22 08:44:45 stef
Exp $
* $Id: input.h,v 1.3
2 2001/02/22 16:17:12 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -59,7 +59,6 @@ struct pgrm_descriptor_s * input_AddProgram ( struct input_thread_s *,
...
@@ -59,7 +59,6 @@ struct pgrm_descriptor_s * input_AddProgram ( struct input_thread_s *,
void
input_DelProgram
(
struct
input_thread_s
*
,
struct
pgrm_descriptor_s
*
);
void
input_DelProgram
(
struct
input_thread_s
*
,
struct
pgrm_descriptor_s
*
);
struct
input_area_s
*
input_AddArea
(
struct
input_thread_s
*
);
struct
input_area_s
*
input_AddArea
(
struct
input_thread_s
*
);
void
input_DelArea
(
struct
input_thread_s
*
,
struct
input_area_s
*
);
void
input_DelArea
(
struct
input_thread_s
*
,
struct
input_area_s
*
);
void
input_DumpStream
(
struct
input_thread_s
*
);
struct
es_descriptor_s
*
input_FindES
(
struct
input_thread_s
*
,
u16
);
struct
es_descriptor_s
*
input_FindES
(
struct
input_thread_s
*
,
u16
);
struct
es_descriptor_s
*
input_AddES
(
struct
input_thread_s
*
,
struct
es_descriptor_s
*
input_AddES
(
struct
input_thread_s
*
,
struct
pgrm_descriptor_s
*
,
u16
,
struct
pgrm_descriptor_s
*
,
u16
,
...
...
include/input_ext-intf.h
View file @
99bbcdcb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* control the pace of reading.
* control the pace of reading.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: input_ext-intf.h,v 1.2
4 2001/02/20 08:47:24 stef
Exp $
* $Id: input_ext-intf.h,v 1.2
5 2001/02/22 16:17:12 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -342,4 +342,5 @@ void input_DestroyThread( struct input_thread_s *, int *pi_status );
...
@@ -342,4 +342,5 @@ void input_DestroyThread( struct input_thread_s *, int *pi_status );
void
input_SetStatus
(
struct
input_thread_s
*
,
int
);
void
input_SetStatus
(
struct
input_thread_s
*
,
int
);
void
input_SetRate
(
struct
input_thread_s
*
,
int
);
void
input_SetRate
(
struct
input_thread_s
*
,
int
);
void
input_Seek
(
struct
input_thread_s
*
,
off_t
);
void
input_Seek
(
struct
input_thread_s
*
,
off_t
);
void
input_DumpStream
(
struct
input_thread_s
*
);
include/keystrokes.h
View file @
99bbcdcb
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#define INTF_KEY_TOGGLE_INTERFACE 0x09
#define INTF_KEY_TOGGLE_INTERFACE 0x09
#define INTF_KEY_TOGGLE_INFO 0x0A
#define INTF_KEY_TOGGLE_INFO 0x0A
#define INTF_KEY_TOGGLE_SCALING 0x0B
#define INTF_KEY_TOGGLE_SCALING 0x0B
#define INTF_KEY_UNKNOWN 0x0C
#define INTF_KEY_DUMP_STREAM 0x0C
#define INTF_KEY_UNKNOWN 0x0D
#endif
#endif
plugins/sdl/vout_sdl.c
View file @
99bbcdcb
...
@@ -201,7 +201,8 @@ static int vout_Create( vout_thread_t *p_vout )
...
@@ -201,7 +201,8 @@ static int vout_Create( vout_thread_t *p_vout )
intf_AssignKey
(
p_intf
,
SDLK_c
,
INTF_KEY_TOGGLE_GRAYSCALE
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_c
,
INTF_KEY_TOGGLE_GRAYSCALE
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_SPACE
,
INTF_KEY_TOGGLE_INTERFACE
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_SPACE
,
INTF_KEY_TOGGLE_INTERFACE
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_i
,
INTF_KEY_TOGGLE_INFO
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_i
,
INTF_KEY_TOGGLE_INFO
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_s
,
INTF_KEY_TOGGLE_SCALING
,
0
);
}
intf_AssignKey
(
p_intf
,
SDLK_s
,
INTF_KEY_TOGGLE_SCALING
,
0
);
intf_AssignKey
(
p_intf
,
SDLK_d
,
INTF_KEY_DUMP_STREAM
,
0
);
}
return
(
0
);
return
(
0
);
}
}
...
...
src/input/input_programs.c
View file @
99bbcdcb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: input_programs.c,v 1.3
4 2001/02/22 08:44:45 stef
Exp $
* $Id: input_programs.c,v 1.3
5 2001/02/22 16:17:12 massiot
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -473,7 +473,6 @@ void input_DelES( input_thread_t * p_input, es_descriptor_t * p_es )
...
@@ -473,7 +473,6 @@ void input_DelES( input_thread_t * p_input, es_descriptor_t * p_es )
}
}
#ifdef STATS
/*****************************************************************************
/*****************************************************************************
* input_DumpStream: dumps the contents of a stream descriptor
* input_DumpStream: dumps the contents of a stream descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -506,7 +505,6 @@ void input_DumpStream( input_thread_t * p_input )
...
@@ -506,7 +505,6 @@ void input_DumpStream( input_thread_t * p_input )
}
}
}
}
}
}
#endif
/*****************************************************************************
/*****************************************************************************
* InitDecConfig: initializes a decoder_config_t
* InitDecConfig: initializes a decoder_config_t
...
...
src/interface/interface.c
View file @
99bbcdcb
...
@@ -306,6 +306,7 @@ void intf_AssignNormalKeys( intf_thread_t *p_intf)
...
@@ -306,6 +306,7 @@ void intf_AssignNormalKeys( intf_thread_t *p_intf)
intf_AssignKey
(
p_intf
,
' '
,
INTF_KEY_TOGGLE_INTERFACE
,
0
);
intf_AssignKey
(
p_intf
,
' '
,
INTF_KEY_TOGGLE_INTERFACE
,
0
);
intf_AssignKey
(
p_intf
,
'i'
,
INTF_KEY_TOGGLE_INFO
,
0
);
intf_AssignKey
(
p_intf
,
'i'
,
INTF_KEY_TOGGLE_INFO
,
0
);
intf_AssignKey
(
p_intf
,
's'
,
INTF_KEY_TOGGLE_SCALING
,
0
);
intf_AssignKey
(
p_intf
,
's'
,
INTF_KEY_TOGGLE_SCALING
,
0
);
intf_AssignKey
(
p_intf
,
'd'
,
INTF_KEY_DUMP_STREAM
,
0
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -364,6 +365,14 @@ int intf_ProcessKey( intf_thread_t *p_intf, int g_key )
...
@@ -364,6 +365,14 @@ int intf_ProcessKey( intf_thread_t *p_intf, int g_key )
p_main
->
p_vout
->
i_changes
|=
VOUT_GAMMA_CHANGE
;
p_main
->
p_vout
->
i_changes
|=
VOUT_GAMMA_CHANGE
;
}
}
break
;
break
;
case
INTF_KEY_DUMP_STREAM
:
if
(
p_intf
->
p_input
!=
NULL
)
{
vlc_mutex_lock
(
&
p_intf
->
p_input
->
stream
.
stream_lock
);
input_DumpStream
(
p_intf
->
p_input
);
vlc_mutex_unlock
(
&
p_intf
->
p_input
->
stream
.
stream_lock
);
}
break
;
default:
/* unknown key */
default:
/* unknown key */
return
(
1
);
return
(
1
);
}
}
...
...
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