Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2b6826a1
Commit
2b6826a1
authored
Aug 25, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new spectrum analyzer effect, patch from zcot.
Remove the "random" effect
parent
246584f5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
540 additions
and
46 deletions
+540
-46
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+475
-36
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+60
-7
modules/visualization/visual/visual.h
modules/visualization/visual/visual.h
+4
-2
src/audio_output/input.c
src/audio_output/input.c
+1
-1
No files found.
modules/visualization/visual/effects.c
View file @
2b6826a1
This diff is collapsed.
Click to expand it.
modules/visualization/visual/visual.c
View file @
2b6826a1
...
...
@@ -38,7 +38,7 @@
#define ELIST_TEXT N_( "Effects list" )
#define ELIST_LONGTEXT N_( \
"A list of visual effect, separated by commas.\n" \
"Current effects include: dummy,
random,
scope, spectrum" )
"Current effects include: dummy, scope, spectrum" )
#define WIDTH_TEXT N_( "Video width" )
#define WIDTH_LONGTEXT N_( \
...
...
@@ -64,6 +64,38 @@
#define PEAKS_LONGTEXT N_( \
"Defines whether to draw peaks." )
#define ORIG_TEXT N_( "Enable original graphic spectrum" )
#define ORIG_LONGTEXT N_( \
"Defines whether to draw the original spectrum graphic routine." )
#define BANDS_TEXT N_( "Enable bands" )
#define BANDS_LONGTEXT N_( \
"Defines whether to draw the bands." )
#define BASE_TEXT N_( "Enable base" )
#define BASE_LONGTEXT N_( \
"Defines whether to draw the base of the bands." )
#define RADIUS_TEXT N_( "Base pixel radius" )
#define RADIUS_LONGTEXT N_( \
"Defines radius size in pixels, of base of bands(beginning)." )
#define SECT_TEXT N_( "Spectral sections" )
#define SECT_LONGTEXT N_( \
"Determines how many sections of spectrum will exist." )
#define PEAK_HEIGHT_TEXT N_( "Peak height" )
#define PEAK_HEIGHT_LONGTEXT N_( \
"This is the total pixel height of the peak items." )
#define PEAK_WIDTH_TEXT N_( "Peak extra width" )
#define PEAK_WIDTH_LONGTEXT N_( \
"Additions or subtractions of pixels on the peak width." )
#define COLOR1_TEXT N_( "V-plane color" )
#define COLOR1_LONGTEXT N_( \
"YUV-Color cube shifting across the V-plane ( 0 - 127 )." )
#define STARS_TEXT N_( "Number of stars" )
#define STARS_LONGTEXT N_( \
"Defines the number of stars to draw with random effect." )
...
...
@@ -92,9 +124,31 @@ vlc_module_begin();
AMP_TEXT
,
AMP_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"visual-peaks"
,
VLC_TRUE
,
NULL
,
PEAKS_TEXT
,
PEAKS_LONGTEXT
,
VLC_TRUE
);
set_section
(
N_
(
"Random effect"
)
,
NULL
);
add_integer
(
"visual-stars"
,
200
,
NULL
,
STARS_TEXT
,
STARS_LONGTEXT
,
VLC_TRUE
);
set_section
(
N_
(
"Spectrometer"
)
,
NULL
);
add_bool
(
"spect-show-original"
,
VLC_TRUE
,
NULL
,
ORIG_TEXT
,
ORIG_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"spect-show-base"
,
VLC_TRUE
,
NULL
,
BASE_TEXT
,
BASE_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-radius"
,
22
,
NULL
,
RADIUS_TEXT
,
RADIUS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-sections"
,
2
,
NULL
,
SECT_TEXT
,
SECT_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-color"
,
16
,
NULL
,
COLOR1_TEXT
,
COLOR1_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"spect-show-bands"
,
VLC_TRUE
,
NULL
,
BANDS_TEXT
,
BANDS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-nbbands"
,
80
,
NULL
,
NBBANDS_TEXT
,
NBBANDS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-separ"
,
1
,
NULL
,
SEPAR_TEXT
,
SEPAR_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-amp"
,
3
,
NULL
,
AMP_TEXT
,
AMP_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"spect-show-peaks"
,
VLC_TRUE
,
NULL
,
PEAKS_TEXT
,
PEAKS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-peak-width"
,
1
,
NULL
,
PEAK_WIDTH_TEXT
,
PEAK_WIDTH_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"spect-peak-height"
,
1
,
NULL
,
PEAK_HEIGHT_TEXT
,
PEAK_HEIGHT_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"visualization"
,
0
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"visualizer"
);
...
...
@@ -117,7 +171,7 @@ static struct
{
{
"scope"
,
scope_Run
},
{
"spectrum"
,
spectrum_Run
},
{
"
random"
,
random_Run
},
{
"
spectrometer"
,
spectrometer_Run
},
{
"dummy"
,
dummy_Run
},
{
NULL
,
dummy_Run
}
};
...
...
@@ -163,8 +217,7 @@ static int Open( vlc_object_t *p_this )
var_Get
(
p_filter
,
"effect-list"
,
&
val
);
psz_parser
=
psz_effects
=
strdup
(
val
.
psz_string
);
free
(
val
.
psz_string
);
msg_Dbg
(
p_filter
,
"Building list of effects"
);
var_AddCallback
(
p_filter
,
"effect-list"
,
FilterCallback
,
NULL
);
while
(
psz_parser
&&
*
psz_parser
!=
'\0'
)
...
...
modules/visualization/visual/visual.h
View file @
2b6826a1
...
...
@@ -61,11 +61,13 @@ int random_Run
(
visual_effect_t
*
,
aout_instance_t
*
,
aout_buffer_t
*
,
picture_t
*
);
int
spectrum_Run
(
visual_effect_t
*
,
aout_instance_t
*
,
aout_buffer_t
*
,
picture_t
*
);
int
spectrometer_Run
(
visual_effect_t
*
,
aout_instance_t
*
,
aout_buffer_t
*
,
picture_t
*
);
#if 0
int blur_Run
(visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);
#endif
/* Default vout size */
#define VOUT_WIDTH
320
#define VOUT_HEIGHT
12
0
#define VOUT_WIDTH
533
#define VOUT_HEIGHT
40
0
src/audio_output/input.c
View file @
2b6826a1
...
...
@@ -107,7 +107,7 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input )
var_Change
(
p_aout
,
"visual"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
val
.
psz_string
=
""
;
text
.
psz_string
=
_
(
"Disable"
);
var_Change
(
p_aout
,
"visual"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"
random"
;
text
.
psz_string
=
_
(
"Random
"
);
val
.
psz_string
=
"
spectrometer"
;
text
.
psz_string
=
_
(
"Spectrometer
"
);
var_Change
(
p_aout
,
"visual"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
"scope"
;
text
.
psz_string
=
_
(
"Scope"
);
var_Change
(
p_aout
,
"visual"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
...
...
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