Changeset 09fb4e575c3b743ae4f381a15819c48c6a98fc4b

Show
Ignore:
Timestamp:
21/08/08 01:45:57 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1219275957 +0200
git-parent:

[960c04ad6a2c7abf33631e4182e71150608c821d]

git-author:
Laurent Aimar <fenrir@videolan.org> 1219275957 +0200
Message:

Fixed YUVP blending (my bad for not testing it).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/video_filter/blend.c

    r249fb10 r09fb4e5  
    11001100    bool b_even_scanline = i_y_offset % 2; 
    11011101 
     1102    fprintf( stderr, "--------------\n" ); 
     1103 
    11021104    i_dst_pitch = p_dst->p[Y_PLANE].i_pitch; 
    11031105    p_dst_y = p_dst->p[Y_PLANE].p_pixels + i_x_offset + 
     
    11321134             i_src2_pitch * p_filter->fmt_in.video.i_y_offset; 
    11331135 
    1134     const uint8_t *p_trans = p_src2; 
    11351136#define p_pal p_filter->fmt_in.video.p_palette->palette 
    11361137 
     
    11441145         p_src1_v += b_even_scanline ? i_src1_pitch/2 : 0 ) 
    11451146    { 
     1147        const uint8_t *p_trans = p_src2; 
    11461148        b_even_scanline = !b_even_scanline; 
    11471149 
     
    11961198    i_width &= ~1; /* Needs to be a multiple of 2 */ 
    11971199 
    1198     const uint8_t *p_trans = p_src2; 
    11991200#define p_pal p_filter->fmt_in.video.p_palette->palette 
    12001201 
     
    12031204         p_dst += i_dst_pitch, p_src1 += i_src1_pitch, p_src2 += i_src2_pitch ) 
    12041205    { 
     1206        const uint8_t *p_trans = p_src2; 
    12051207        /* Draw until we reach the end of the line */ 
    12061208        for( i_x = 0; i_x < i_width; i_x++, b_even = !b_even ) 
     
    12661268             i_src2_pitch * p_filter->fmt_in.video.i_y_offset; 
    12671269 
    1268     const uint8_t *p_trans = p_src2; 
    12691270#define p_pal p_filter->fmt_in.video.p_palette->palette 
    12701271#define rgbpal rgbpalette.palette 
     
    12841285         p_dst += i_dst_pitch, p_src1 += i_src1_pitch, p_src2 += i_src2_pitch ) 
    12851286    { 
     1287        const uint8_t *p_trans = p_src2; 
    12861288        /* Draw until we reach the end of the line */ 
    12871289        for( i_x = 0; i_x < i_width; i_x++ )