Changeset c9f89d8701313dfdd1af99aa5d38618f16268266

Show
Ignore:
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
  • modules/visualization/visual/effects.c

    rd21fb14 rc9f89d8  
    33 ***************************************************************************** 
    44 * 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 $ 
    66 * 
    77 * Authors: Cl�nt Stenac <zorglub@via.ecp.fr> 
     
    9595     
    9696    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" ); 
    9898    i_separ    = config_GetInt( p_aout, "visual-separ" ); 
    9999    i_amp     = config_GetInt ( p_aout, "visual-amp" ); 
     
    387387    { 
    388388        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" ); 
    390390    } 
    391391    else 
  • modules/visualization/visual/visual.c

    rd21fb14 rc9f89d8  
    33 ***************************************************************************** 
    44 * 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 $ 
    66 * 
    77 * Authors: Cl�nt Stenac <zorglub@via.ecp.fr> 
     
    4343#define ELIST_TEXT N_( "Effects list" ) 
    4444#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." ) 
    4846 
    4947#define WIDTH_TEXT N_( "Video width" ) 
     
    5553      "The width of the effects video window, in pixels." ) 
    5654 
    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_( \ 
    5957      "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 }; 
    6176 
    6277vlc_module_begin(); 
    6378    add_category_hint( N_("visualizer") , NULL , VLC_FALSE); 
    6479    set_description( _("visualizer filter") );  
    65     add_string_from_list("effect-list", "dummy", effect_list, NULL, 
     80    add_string("effect-list", "dummy", NULL, 
    6681            ELIST_TEXT, ELIST_LONGTEXT, VLC_TRUE ); 
    6782    add_integer("effect-width",VOUT_WIDTH,NULL, 
     
    6984    add_integer("effect-height" , VOUT_HEIGHT , NULL, 
    7085             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 ); 
    7388    add_integer("visual-separ", 1, NULL, 
    74              NB_TEXT, NB_LONGTEXT, VLC_FALSE ); 
     89             SEPAR_TEXT, SEPAR_LONGTEXT, VLC_FALSE ); 
    7590    add_integer("visual-amp", 3, NULL, 
    76              NB_TEXT, NB_LONGTEXT, VLC_FALSE ); 
     91             AMP_TEXT, AMP_LONGTEXT, VLC_FALSE ); 
    7792    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 ); 
    7996    set_capability( "audio filter", 0 ); 
    8097    set_callbacks( Open, Close ); 
     
    140157    while(1) 
    141158    { 
    142         psz_eof = strchr( psz_effects , ';'  ); 
     159        psz_eof = strchr( psz_effects , ','  ); 
    143160        if( !psz_eof ) 
    144161        {