Changeset 50d9c2c41d3c12fb3eb98ae70fc169387bafff8c
- Timestamp:
- 03/24/06 12:05:28 (2 years ago)
- git-parent:
- Files:
-
- modules/visualization/galaktos/plugin.c (modified) (1 diff)
- modules/visualization/goom.c (modified) (1 diff)
- modules/visualization/visual/effects.c (modified) (1 diff)
- modules/visualization/visual/visual.c (modified) (4 diffs)
- modules/visualization/visual/visual.h (modified) (1 diff)
- modules/visualization/xosd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/visualization/galaktos/plugin.c
rfdb2f80 r50d9c2c 220 220 if( p_thread->p_module == NULL ) 221 221 { 222 msg_Err( p_thread, " no OpenGL provider found" );222 msg_Err( p_thread, "unable to initialize OpenGL" ); 223 223 vlc_object_detach( p_thread->p_opengl ); 224 224 vlc_object_destroy( p_thread->p_opengl ); modules/visualization/goom.c
rfdb2f80 r50d9c2c 58 58 #define WIDTH_TEXT N_("Goom display width") 59 59 #define HEIGHT_TEXT N_("Goom display height") 60 #define RES_LONGTEXT N_(" Allows you to changethe resolution of the " \60 #define RES_LONGTEXT N_("This allows you to set the resolution of the " \ 61 61 "Goom display (bigger resolution will be prettier but more CPU intensive).") 62 62 63 63 #define SPEED_TEXT N_("Goom animation speed") 64 #define SPEED_LONGTEXT N_(" Allows you to reduce the speed of the animation" \65 "( default 6, max 10).")64 #define SPEED_LONGTEXT N_("This allows you to set the animation speed " \ 65 "(between 1 and 10, defaults to 6).") 66 66 67 67 #define MAX_SPEED 10 modules/visualization/visual/effects.c
rfdb2f80 r50d9c2c 832 832 return 0; 833 833 } 834 835 /*****************************************************************************836 * blur_Run: blur effect837 *****************************************************************************/838 #if 0839 /* This code is totally crappy */840 int blur_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,841 aout_buffer_t * p_buffer , picture_t * p_picture)842 {843 uint8_t * p_pictures;844 int i,j;845 int i_size; /* Total size of one image */846 847 i_size = (p_picture->p[0].i_pitch * p_picture->p[0].i_lines +848 p_picture->p[1].i_pitch * p_picture->p[1].i_lines +849 p_picture->p[2].i_pitch * p_picture->p[2].i_lines );850 851 if( !p_effect->p_data )852 {853 p_effect->p_data=(void *)malloc( 5 * i_size *sizeof(uint8_t));854 855 if( !p_effect->p_data)856 {857 msg_Err(p_aout,"Out of memory");858 return -1;859 }860 p_pictures = (uint8_t *)p_effect->p_data;861 }862 else863 {864 p_pictures =(uint8_t *)p_effect->p_data;865 }866 867 for( i = 0 ; i < 5 ; i++)868 {869 for ( j = 0 ; j< p_picture->p[0].i_pitch * p_picture->p[0].i_lines; i++)870 p_picture->p[0].p_pixels[j] =871 p_pictures[i * i_size + j] * (100 - 20 * i) /100 ;872 for ( j = 0 ; j< p_picture->p[1].i_pitch * p_picture->p[1].i_lines; i++)873 p_picture->p[1].p_pixels[j] =874 p_pictures[i * i_size +875 p_picture->p[0].i_pitch * p_picture->p[0].i_lines + j ];876 for ( j = 0 ; j< p_picture->p[2].i_pitch * p_picture->p[2].i_lines; i++)877 p_picture->p[2].p_pixels[j] =878 p_pictures[i * i_size +879 p_picture->p[0].i_pitch * p_picture->p[0].i_lines +880 p_picture->p[1].i_pitch * p_picture->p[1].i_lines881 + j ];882 }883 884 memcpy ( &p_pictures[ i_size ] , &p_pictures[0] , 4 * i_size * sizeof(uint8_t) );885 }886 #endifmodules/visualization/visual/visual.c
rfdb2f80 r50d9c2c 2 2 * visual.c : Visualisation system 3 3 ***************************************************************************** 4 * Copyright (C) 2002 the VideoLAN team4 * Copyright (C) 2002-2006 the VideoLAN team 5 5 * $Id$ 6 6 * … … 65 65 #define PEAKS_TEXT N_( "Enable peaks" ) 66 66 #define PEAKS_LONGTEXT N_( \ 67 " Defines whether to draw peaks." )67 "This will draw \"peaks\" in the spectrum analyzer" ) 68 68 69 69 #define ORIG_TEXT N_( "Enable original graphic spectrum" ) 70 70 #define ORIG_LONGTEXT N_( \ 71 " Defines whether to draw the original spectrum graphic routine." )71 "This enabled the \"flat\" spectrum analyzer in the spectrometer" ) 72 72 73 73 #define BANDS_TEXT N_( "Enable bands" ) 74 74 #define BANDS_LONGTEXT N_( \ 75 " Defines whether to draw the bands." )75 "This draws bands in the spectrometer." ) 76 76 77 77 #define BASE_TEXT N_( "Enable base" ) … … 101 101 #define STARS_TEXT N_( "Number of stars" ) 102 102 #define STARS_LONGTEXT N_( \ 103 " Defines the number of stars to draw with random effect." )103 "This defines the number of stars to draw with random effect." ) 104 104 105 105 static int Open ( vlc_object_t * ); … … 320 320 p_filter->b_in_place= 1; 321 321 322 msg_Dbg( p_filter,"Visualizer initialized");323 322 return VLC_SUCCESS; 324 323 } modules/visualization/visual/visual.h
rf99f42e r50d9c2c 64 64 int spectrometer_Run 65 65 (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *); 66 #if 067 int blur_Run68 (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);69 #endif70 66 71 67 /* Default vout size */ modules/visualization/xosd.c
rfdb2f80 r50d9c2c 62 62 *****************************************************************************/ 63 63 #define POSITION_TEXT N_("Flip vertical position") 64 #define POSITION_LONGTEXT N_("Display xosd output onthe bottom of the " \64 #define POSITION_LONGTEXT N_("Display XOSD output at the bottom of the " \ 65 65 "screen instead of the top.") 66 66 67 67 #define TXT_OFS_TEXT N_("Vertical offset") 68 #define TXT_OFS_LONGTEXT N_("Vertical offset in pixels of the displayed " \ 69 "text (default 30 px).") 68 #define TXT_OFS_LONGTEXT N_("Vertical offset between the border of the screen "\ 69 "and the displayed text (in pixels, defaults to "\ 70 "30 pixels)." ) 70 71 71 72 #define SHD_OFS_TEXT N_("Shadow offset") 72 #define SHD_OFS_LONGTEXT N_("Offset in pixels of the shadow (default 2 px).") 73 #define SHD_OFS_LONGTEXT N_("Offset between the text and the shadow (in " \ 74 "pixels, defaults to 2 pixels)." ) 73 75 74 76 #define FONT_TEXT N_("Font") 75 #define FONT_LONGTEXT N_("Font used to display text in the xosdoutput.")77 #define FONT_LONGTEXT N_("Font used to display text in the XOSD output.") 76 78 #define COLOUR_TEXT N_("Color") 77 #define COLOUR_LONGTEXT N_("Color used to display text in the xosdoutput.")79 #define COLOUR_LONGTEXT N_("Color used to display text in the XOSD output.") 78 80 79 81 vlc_module_begin();
