[vlc-devel] Re: Does the SPU renderer do the right thing?

Sigmund Augdal sigmunau at stud.ntnu.no
Fri Dec 26 00:17:53 CET 2003


You are right, the spu renderer only uses the Y component, this causes the
slight transparency/colour bleeding effekt. Look at the freetype code for a
renderer function that uses all planes.

Sigmund

On Thu, Dec 25, 2003 at 10:19:36AM -0500, R. Bernstein wrote:
> Happy Holidays - 
> 
> I was looking at the DVD subtitle rendering routine. It looks like it
> only uses the Y (black/white) component for subtitles in RenderI420.
> 
> Is this correct or am I missing something?. Here's the code from
> vlc/modules/codec/spudec/render.c line 142:
>                     memset( p_dest - i_x - i_y,
>                             p_spu->p_sys->pi_yuv[i_color][0], i_len );
>                                                           ^
> 
> Which I guess is the Y component. I believe the same should be done
> for the u and v components as well. This code is use where the
> subtitle is completely opaque. Similar code is used when the color is
> somewhat (but not fully) transparent.
> 
> -- 
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list