[vlc-devel] [PATCH] Direct2D video output module
David Kaplan
010of001 at gmail.com
Sun May 2 22:15:14 CEST 2010
2010/5/2 Rémi Denis-Courmont <remi at remlab.net>
> Le jeudi 29 avril 2010 22:42:27 David Kaplan, vous avez écrit :
> > + vd->fmt.i_chroma = VLC_CODEC_RGB32; /* masks change this to BGR32
> for
> > ID2D1Bitmap */ + vd->fmt.i_rmask = 0x000000ff;
> > + vd->fmt.i_gmask = 0x0000ff00;
> > + vd->fmt.i_bmask = 0x00000000; /* todo - fix this (should be
> > 0x00ff0000) */
>
> Why 0 for blue?
>
It's a bug somewhere else. If I set it to 0x00ff0000 for some reason it
ignores all the masks and it gives me RGB (I need BGR).
>
> > +#ifdef D2D_DEBUG
> > + msg_Dbg(vd, "Bitmap dbg: target = 0x%x, pitch = %d, bitmap =
> > 0x%x",
> > + sys->p_d2_render_target, pitch, sys->p_d2_bitmap);
> > +#endif
>
> %p for pointers.
Indeed. Will change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100502/a56143ce/attachment.html>
More information about the vlc-devel
mailing list