Changeset 62829b3b5eac81d4db269c6b1be7631e6a1f9beb

Show
Ignore:
Timestamp:
05/06/08 10:57:47 (2 months ago)
Author:
Jean-Paul Saman <jean-paul.saman@m2x.nl>
git-committer:
Jean-Paul Saman <jean-paul.saman@m2x.nl> 1210064267 +0200
git-parent:

[09b646affc8be98f194ce09d59484423423b696c]

git-author:
Jean-Paul Saman <jean-paul.saman@m2x.nl> 1210061663 +0200
Message:

Remove dead code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/fbosd.c

    r09b646a r62829b3  
    5151#include <vlc_strings.h> 
    5252 
    53 // #define FBOSD_BLENDING 
     53#undef FBOSD_BLENDING 
     54#undef FBOSD_DEBUG 
    5455 
    5556/***************************************************************************** 
     
    7374static int  OpenTextRenderer ( intf_thread_t * ); 
    7475static void CloseTextRenderer( intf_thread_t * ); 
    75  
    76 #if 0 
    77 static int  OpenScaling      ( intf_thread_t * ); 
    78 static int  CloseScaling     ( intf_thread_t * ); 
    79 #endif 
    8076 
    8177/* Manipulate the overlay buffer */ 
     
    280276#endif 
    281277    filter_t *p_text;                                /* text renderer module */ 
    282 #if 0 
    283     filter_t *p_scale;                                     /* scaling module */ 
    284 #endif 
    285278 
    286279    /* Render */ 
     
    292285    /* Position */ 
    293286    bool      b_absolute; 
    294     int             i_x; 
    295     int             i_y; 
    296     int             i_pos; 
    297  
    298     int             i_alpha;                      /* transparency for images */ 
     287    int       i_x; 
     288    int       i_y; 
     289    int       i_pos; 
     290 
     291    int       i_alpha;                      /* transparency for images */ 
    299292 
    300293    /* commands control */ 
     
    314307    char          *psz_tmp; 
    315308    int i; 
    316  
    317309 
    318310    /* Allocate instance and initialize some members */ 
     
    471463        return VLC_EGENERIC; 
    472464    } 
    473 #if 0 
    474     /* Load scaling module */ 
    475     if( OpenScaling( p_intf ) ) 
    476     { 
    477         msg_Err( p_intf, "Unable to load image scaling module" ); 
    478         Destroy( VLC_OBJECT(p_intf) ); 
    479         return VLC_EGENERIC; 
    480     } 
    481 #endif 
     465 
    482466    p_sys->b_render = true; 
    483467    p_sys->b_need_update = true; 
     
    544528#endif 
    545529    if( p_sys->p_text )  CloseTextRenderer( p_intf ); 
    546 #if 0 
    547     if( p_sys->p_scale ) CloseScaling( p_intf ); 
    548 #endif 
     530 
    549531    if( p_sys->p_image ) 
    550532        image_HandlerDelete( p_sys->p_image ); 
     
    649631    } 
    650632} 
    651 #if 0 
    652 static int OpenScaling( intf_thread_t *p_intf ) 
    653 { 
    654     if( p_intf->p_sys->p_scale ) return VLC_EGENERIC; 
    655  
    656     p_intf->p_sys->p_scale = 
    657             vlc_object_create( p_intf, VLC_OBJECT_FILTER ); 
    658     vlc_object_attach( p_intf->p_sys->p_scale, p_intf ); 
    659     p_intf->p_sys->p_scale->fmt_out.video.i_chroma = 
    660         p_intf->p_sys->p_scale->fmt_in.video.i_chroma = 
    661             p_intf->p_sys->fmt_out.i_chroma; 
    662  
    663     /* XXX: We'll also be using it for YUVA and RGBA blending ... */ 
    664     p_intf->p_sys->p_scale->fmt_in.video.i_width = 
    665         p_intf->p_sys->p_scale->fmt_in.video.i_height = 32; 
    666     p_intf->p_sys->p_scale->fmt_out.video.i_width = 
    667         p_intf->p_sys->p_scale->fmt_out.video.i_height = 16; 
    668  
    669     p_intf->p_sys->p_scale->p_module = 
    670         module_Need( p_intf->p_sys->p_scale, "video filter2", 0, 0 ); 
    671  
    672     if( !p_intf->p_sys->p_scale->p_module ) 
    673         return VLC_EGENERIC; 
    674  
    675     return VLC_SUCCESS; 
    676 } 
    677  
    678 static int CloseScaling( intf_thread_t *p_intf ) 
    679 { 
    680     if( p_intf->p_sys->p_scale ) 
    681     { 
    682         if( p_intf->p_sys->p_scale->p_module ) 
    683             module_Unneed( p_intf->p_sys->p_scale, 
    684                            p_intf->p_sys->p_scale->p_module ); 
    685  
    686         vlc_object_detach( p_intf->p_sys->p_scale ); 
    687         vlc_object_release( p_intf->p_sys->p_scale ); 
    688     } 
    689 } 
    690 #endif 
    691633 
    692634/***************************************************************************** 
     
    786728 
    787729        memcpy( &p_sys->p_blend->fmt_in.video, p_fmt_src, sizeof( video_format_t ) ); 
    788 #if 0 
    789         msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p", 
    790                  p_pic_src, (char*)&p_fmt_src->i_chroma, 
    791                  p_sys->p_blend->fmt_in.video.i_width, p_sys->p_blend->fmt_in.video.i_height, 
    792                  p_fmt_src->i_bits_per_pixel, 
    793                  p_pic_src->i_planes, 
    794                  p_pic_src->p[0].p_pixels, p_pic_src->p[1].p_pixels, 
    795                  p_pic_src->p[2].p_pixels, p_pic_src->p[3].p_pixels ); 
    796         msg_Dbg( p_intf, "Blending pictures %p %4.4s (%dx%d) %d bits %d planes: 0=%p 1=%p 2=%p 3=%p", 
    797                  p_pic_dst, (char*)&p_fmt_dst->i_chroma, 
    798                  p_fmt_dst->i_width, p_fmt_dst->i_height, 
    799                  p_fmt_dst->i_bits_per_pixel, 
    800                  p_pic_dst->i_planes, 
    801                  p_pic_dst->p[0].p_pixels, p_pic_dst->p[1].p_pixels, 
    802                  p_pic_dst->p[2].p_pixels, p_pic_dst->p[3].p_pixels ); 
    803 #endif 
     730 
    804731        /* Update the output picture size */ 
    805732        p_sys->p_blend->fmt_out.video.i_width = 
     
    821748    return VLC_EGENERIC; 
    822749} 
    823 #endif 
    824750 
    825751static int InvertAlpha( intf_thread_t *p_intf, picture_t **p_pic, video_format_t fmt ) 
     
    867793    return VLC_SUCCESS; 
    868794} 
     795#endif 
    869796 
    870797/***************************************************************************** 
     
    903830            i_y_clip = ( i_y_offset + p_src->p[i].i_visible_lines ) - p_dest->p[i].i_visible_lines; 
    904831            i_y_clip = ( i_y_clip > 0 ) ? i_y_clip : 0; 
    905 #if 0 
     832#if defined(FBOSD_DEBUG) 
    906833            msg_Dbg( p_intf, "i_pitch (%d,%d), (%d,%d)/(%d,%d)", 
    907834                     p_dest->p[i].i_visible_pitch, p_src->p[i].i_visible_pitch, 
     
    12021129        if( !p_sys->p_palette ) 
    12031130        { 
    1204             msg_Err( p_intf, "out of memory" ); 
    12051131            close( p_sys->i_fd ); 
    12061132            return VLC_ENOMEM; 
     
    13661292                Render( p_intf, &p_sys->render[i] ); 
    13671293                RenderClear( p_intf, &p_sys->render[i] ); 
    1368            
    1369        
     1294           
     1295       
    13701296 
    13711297        if( p_sys->b_clear )