Changeset c9f89d8701313dfdd1af99aa5d38618f16268266
- Timestamp:
- 03/09/03 12:00:23
(5 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1062583223 +0000
- git-parent:
[446d567938831027b82f95e80173ba955c39da10]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1062583223 +0000
- Message:
Added descriptions
Fixed multiple effects enabling
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd21fb14 |
rc9f89d8 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: effects.c,v 1.4 2003/09/02 22:06:51 sigmunau Exp $ |
|---|
| | 5 | * $Id: effects.c,v 1.5 2003/09/03 10:00:23 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Cl�nt Stenac <zorglub@via.ecp.fr> |
|---|
| … | … | |
| 95 | 95 | |
|---|
| 96 | 96 | p_buffs = p_s16_buff; |
|---|
| 97 | | i_nb_bands = config_GetInt ( p_aout, "visual-nb" ); |
|---|
| | 97 | i_nb_bands = config_GetInt ( p_aout, "visual-nbbands" ); |
|---|
| 98 | 98 | i_separ = config_GetInt( p_aout, "visual-separ" ); |
|---|
| 99 | 99 | i_amp = config_GetInt ( p_aout, "visual-amp" ); |
|---|
| … | … | |
| 387 | 387 | { |
|---|
| 388 | 388 | psz_parse = strdup( p_effect->psz_args ); |
|---|
| 389 | | i_nb_plots = config_GetInt ( p_aout, "visual-nb" ); |
|---|
| | 389 | i_nb_plots = config_GetInt ( p_aout, "visual-stars" ); |
|---|
| 390 | 390 | } |
|---|
| 391 | 391 | else |
|---|
| rd21fb14 |
rc9f89d8 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: visual.c,v 1.3 2003/09/02 22:06:51 sigmunau Exp $ |
|---|
| | 5 | * $Id: visual.c,v 1.4 2003/09/03 10:00:23 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Cl�nt Stenac <zorglub@via.ecp.fr> |
|---|
| … | … | |
| 43 | 43 | #define ELIST_TEXT N_( "Effects list" ) |
|---|
| 44 | 44 | #define ELIST_LONGTEXT N_( \ |
|---|
| 45 | | "A list of visual effect, separated by semi-commas." \ |
|---|
| 46 | | "Arguments may be passed to effects using syntax " \ |
|---|
| 47 | | " effect={arg=val,arg=val};effect={arg=val,arg=val},..." ) |
|---|
| | 45 | "A list of visual effect, separated by commas." ) |
|---|
| 48 | 46 | |
|---|
| 49 | 47 | #define WIDTH_TEXT N_( "Video width" ) |
|---|
| … | … | |
| 55 | 53 | "The width of the effects video window, in pixels." ) |
|---|
| 56 | 54 | |
|---|
| 57 | | #define NB_TEXT N_( "Number of bands" ) |
|---|
| 58 | | #define NB_LONGTEXT N_( \ |
|---|
| | 55 | #define NBBANDS_TEXT N_( "Number of bands" ) |
|---|
| | 56 | #define NBBANDS_LONGTEXT N_( \ |
|---|
| 59 | 57 | "Number of bands used by spectrum analizer, should be 20 or 80" ) |
|---|
| 60 | | static char *effect_list[] = { "dummy", "random", "scope", "spectrum", NULL }; |
|---|
| | 58 | |
|---|
| | 59 | #define SEPAR_TEXT N_( "Band separator" ) |
|---|
| | 60 | #define SEPAR_LONGTEXT N_( \ |
|---|
| | 61 | "Number of blank pixels between bands") |
|---|
| | 62 | |
|---|
| | 63 | #define AMP_TEXT N_( "Amplification" ) |
|---|
| | 64 | #define AMP_LONGTEXT N_( \ |
|---|
| | 65 | "This is a coefficient that modifies the height of the bands") |
|---|
| | 66 | |
|---|
| | 67 | #define PEAKS_TEXT N_( "Enable peaks" ) |
|---|
| | 68 | #define PEAKS_LONGTEXT N_( \ |
|---|
| | 69 | "Defines whether to draw peaks" ) |
|---|
| | 70 | |
|---|
| | 71 | #define STARS_TEXT N_( "Number of stars" ) |
|---|
| | 72 | #define STARS_LONGTEXT N_( \ |
|---|
| | 73 | "Defines the number of stars to draw with random effect" ) |
|---|
| | 74 | |
|---|
| | 75 | //static char *effect_list[] = { "dummy", "random", "scope", "spectrum", NULL }; |
|---|
| 61 | 76 | |
|---|
| 62 | 77 | vlc_module_begin(); |
|---|
| 63 | 78 | add_category_hint( N_("visualizer") , NULL , VLC_FALSE); |
|---|
| 64 | 79 | set_description( _("visualizer filter") ); |
|---|
| 65 | | add_string_from_list("effect-list", "dummy", effect_list, NULL, |
|---|
| | 80 | add_string("effect-list", "dummy", NULL, |
|---|
| 66 | 81 | ELIST_TEXT, ELIST_LONGTEXT, VLC_TRUE ); |
|---|
| 67 | 82 | add_integer("effect-width",VOUT_WIDTH,NULL, |
|---|
| … | … | |
| 69 | 84 | add_integer("effect-height" , VOUT_HEIGHT , NULL, |
|---|
| 70 | 85 | HEIGHT_TEXT, HEIGHT_LONGTEXT, VLC_FALSE ); |
|---|
| 71 | | add_integer("visual-nb", 80, NULL, |
|---|
| 72 | | NB_TEXT, NB_LONGTEXT, VLC_FALSE ); |
|---|
| | 86 | add_integer("visual-nbbands", 80, NULL, |
|---|
| | 87 | NBBANDS_TEXT, NBBANDS_LONGTEXT, VLC_FALSE ); |
|---|
| 73 | 88 | add_integer("visual-separ", 1, NULL, |
|---|
| 74 | | NB_TEXT, NB_LONGTEXT, VLC_FALSE ); |
|---|
| | 89 | SEPAR_TEXT, SEPAR_LONGTEXT, VLC_FALSE ); |
|---|
| 75 | 90 | add_integer("visual-amp", 3, NULL, |
|---|
| 76 | | NB_TEXT, NB_LONGTEXT, VLC_FALSE ); |
|---|
| | 91 | AMP_TEXT, AMP_LONGTEXT, VLC_FALSE ); |
|---|
| 77 | 92 | add_bool("visual-peaks", VLC_TRUE, NULL, |
|---|
| 78 | | NB_TEXT, NB_LONGTEXT, VLC_FALSE ); |
|---|
| | 93 | PEAKS_TEXT, PEAKS_LONGTEXT, VLC_FALSE ); |
|---|
| | 94 | add_integer("visual-stars", 200, NULL, |
|---|
| | 95 | STARS_TEXT, STARS_LONGTEXT, VLC_FALSE ); |
|---|
| 79 | 96 | set_capability( "audio filter", 0 ); |
|---|
| 80 | 97 | set_callbacks( Open, Close ); |
|---|
| … | … | |
| 140 | 157 | while(1) |
|---|
| 141 | 158 | { |
|---|
| 142 | | psz_eof = strchr( psz_effects , ';' ); |
|---|
| | 159 | psz_eof = strchr( psz_effects , ',' ); |
|---|
| 143 | 160 | if( !psz_eof ) |
|---|
| 144 | 161 | { |
|---|