Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c9f89d87
Commit
c9f89d87
authored
Sep 03, 2003
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added descriptions
Fixed multiple effects enabling
parent
446d5679
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
17 deletions
+34
-17
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+3
-3
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+31
-14
No files found.
modules/visualization/visual/effects.c
View file @
c9f89d87
...
...
@@ -2,7 +2,7 @@
* effects.c : Effects for the visualization system
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: effects.c,v 1.
4 2003/09/02 22:06:51 sigmunau
Exp $
* $Id: effects.c,v 1.
5 2003/09/03 10:00:23 zorglub
Exp $
*
* Authors: Clment Stenac <zorglub@via.ecp.fr>
*
...
...
@@ -94,7 +94,7 @@ int spectrum_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
}
p_buffs
=
p_s16_buff
;
i_nb_bands
=
config_GetInt
(
p_aout
,
"visual-nb"
);
i_nb_bands
=
config_GetInt
(
p_aout
,
"visual-nb
bands
"
);
i_separ
=
config_GetInt
(
p_aout
,
"visual-separ"
);
i_amp
=
config_GetInt
(
p_aout
,
"visual-amp"
);
i_peak
=
config_GetInt
(
p_aout
,
"visual-peaks"
);
...
...
@@ -386,7 +386,7 @@ int random_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
if
(
p_effect
->
psz_args
)
{
psz_parse
=
strdup
(
p_effect
->
psz_args
);
i_nb_plots
=
config_GetInt
(
p_aout
,
"visual-
nb
"
);
i_nb_plots
=
config_GetInt
(
p_aout
,
"visual-
stars
"
);
}
else
{
...
...
modules/visualization/visual/visual.c
View file @
c9f89d87
...
...
@@ -2,7 +2,7 @@
* visual.c : Visualisation system
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: visual.c,v 1.
3 2003/09/02 22:06:51 sigmunau
Exp $
* $Id: visual.c,v 1.
4 2003/09/03 10:00:23 zorglub
Exp $
*
* Authors: Clment Stenac <zorglub@via.ecp.fr>
*
...
...
@@ -42,9 +42,7 @@ static void DoWork ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
*****************************************************************************/
#define ELIST_TEXT N_( "Effects list" )
#define ELIST_LONGTEXT N_( \
"A list of visual effect, separated by semi-commas." \
"Arguments may be passed to effects using syntax " \
" effect={arg=val,arg=val};effect={arg=val,arg=val},..." )
"A list of visual effect, separated by commas." )
#define WIDTH_TEXT N_( "Video width" )
#define HEIGHT_LONGTEXT N_( \
...
...
@@ -54,28 +52,47 @@ static void DoWork ( aout_instance_t *, aout_filter_t *, aout_buffer_t *,
#define WIDTH_LONGTEXT N_( \
"The width of the effects video window, in pixels." )
#define NB_TEXT N_( "Number of bands" )
#define NB_LONGTEXT N_( \
#define NB
BANDS
_TEXT N_( "Number of bands" )
#define NB
BANDS
_LONGTEXT N_( \
"Number of bands used by spectrum analizer, should be 20 or 80" )
static
char
*
effect_list
[]
=
{
"dummy"
,
"random"
,
"scope"
,
"spectrum"
,
NULL
};
#define SEPAR_TEXT N_( "Band separator" )
#define SEPAR_LONGTEXT N_( \
"Number of blank pixels between bands")
#define AMP_TEXT N_( "Amplification" )
#define AMP_LONGTEXT N_( \
"This is a coefficient that modifies the height of the bands")
#define PEAKS_TEXT N_( "Enable peaks" )
#define PEAKS_LONGTEXT N_( \
"Defines whether to draw peaks" )
#define STARS_TEXT N_( "Number of stars" )
#define STARS_LONGTEXT N_( \
"Defines the number of stars to draw with random effect" )
//static char *effect_list[] = { "dummy", "random", "scope", "spectrum", NULL };
vlc_module_begin
();
add_category_hint
(
N_
(
"visualizer"
)
,
NULL
,
VLC_FALSE
);
set_description
(
_
(
"visualizer filter"
)
);
add_string
_from_list
(
"effect-list"
,
"dummy"
,
effect_list
,
NULL
,
add_string
(
"effect-list"
,
"dummy"
,
NULL
,
ELIST_TEXT
,
ELIST_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"effect-width"
,
VOUT_WIDTH
,
NULL
,
WIDTH_TEXT
,
WIDTH_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"effect-height"
,
VOUT_HEIGHT
,
NULL
,
HEIGHT_TEXT
,
HEIGHT_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"visual-nb"
,
80
,
NULL
,
NB
_TEXT
,
NB
_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"visual-nb
bands
"
,
80
,
NULL
,
NB
BANDS_TEXT
,
NBBANDS
_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"visual-separ"
,
1
,
NULL
,
NB_TEXT
,
NB
_LONGTEXT
,
VLC_FALSE
);
SEPAR_TEXT
,
SEPAR
_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"visual-amp"
,
3
,
NULL
,
NB_TEXT
,
NB
_LONGTEXT
,
VLC_FALSE
);
AMP_TEXT
,
AMP
_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"visual-peaks"
,
VLC_TRUE
,
NULL
,
NB_TEXT
,
NB_LONGTEXT
,
VLC_FALSE
);
PEAKS_TEXT
,
PEAKS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"visual-stars"
,
200
,
NULL
,
STARS_TEXT
,
STARS_LONGTEXT
,
VLC_FALSE
);
set_capability
(
"audio filter"
,
0
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"visualizer"
);
...
...
@@ -139,7 +156,7 @@ static int Open( vlc_object_t *p_this )
p_current_effect
->
p_next
=
NULL
;
while
(
1
)
{
psz_eof
=
strchr
(
psz_effects
,
'
;
'
);
psz_eof
=
strchr
(
psz_effects
,
'
,
'
);
if
(
!
psz_eof
)
{
b_end
=
VLC_TRUE
;
...
...
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