Changeset 4b36edd1d545c74ce66ad959e6d08ad1ba947023

Show
Ignore:
Timestamp:
09/04/08 10:34:45 (6 months ago)
Author:
Jean-Paul Saman <jean-paul.saman@m2x.nl>
git-committer:
Jean-Paul Saman <jean-paul.saman@m2x.nl> 1207730085 +0200
git-parent:

[91fcbb63196f47ef080ce2c16465a8da294a94c4]

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

Patch by Soren Bog <avacore@videolan.org> from GSoC: Overlay - Add alpha component to subpicture regions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_vout.h

    rbf35f49 r4b36edd  
    212212    int             i_y;                             /**< position of region */ 
    213213    int             i_align;                  /**< alignment within a region */ 
     214    int             i_alpha;                               /**< transparency */ 
    214215 
    215216    char            *psz_text;       /**< text string comprising this region */ 
  • src/video_output/vout_subpictures.c

    rb8610e4 r4b36edd  
    292292 
    293293    memset( p_region, 0, sizeof(subpicture_region_t) ); 
     294    p_region->i_alpha = 0xff 
    294295    p_region->p_next = NULL; 
    295296    p_region->p_cache = NULL; 
     
    337338    if( !p_region ) return NULL; 
    338339    memset( p_region, 0, sizeof(subpicture_region_t) ); 
     340    p_region->i_alpha = 0xff; 
    339341    p_region->p_next = 0; 
    340342    p_region->p_cache = 0; 
     
    902904                p_region->p_cache->i_y = p_region->i_y * pi_scale_height[ i_scale_idx ] / 1000; 
    903905                p_region->p_cache->i_align = p_region->i_align; 
     906                p_region->p_cache->i_alpha = p_region->i_alpha; 
    904907 
    905908                p_pic = p_spu->p_scale->pf_video_filter( 
     
    10611064                    p_spu->p_blend->pf_video_blend( p_spu->p_blend, p_pic_dst, 
    10621065                        p_pic_src, &p_region->picture, i_x_offset, i_y_offset, 
    1063                         i_fade_alpha * p_subpic->i_alpha / 255 ); 
     1066                        i_fade_alpha * p_subpic->i_alpha * p_region->i_alpha / 65025 ); 
    10641067                } 
    10651068                else