Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
c9f89d87
Commit
c9f89d87
authored
Sep 03, 2003
by
zorglub
Browse files
Added descriptions
Fixed multiple effects enabling
parent
446d5679
Changes
2
Hide whitespace changes
Inline
Side-by-side
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/0
2 22:06:51 sigmunau
Exp $
* $Id: effects.c,v 1.
5
2003/09/0
3 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/0
2 22:06:51 sigmunau
Exp $
* $Id: visual.c,v 1.
4
2003/09/0
3 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
,
NB
BANDS
_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