[MPlayer-dev-eng] [PATCH] VF Overlay

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Aug 8 18:08:40 CEST 2009


On Sat, Aug 08, 2009 at 04:57:12PM +0200, Benjamin Zores wrote:
> Jason Tackaberry wrote:
> > When you get a chance, have a look at the AV_WN32 macro as Reimar
> > suggested.
> > 
> > I guess it would look like:
> > 
> >    AV_WN32(p_bgr24, p_bgr32);
> >    *p_alpha = p_bgr32[3];
> 
> Actually it was:
> AV_WN32(p_bgr24, AV_RN32(p_bgr32));

Well, p_bgr32 is aligned though, so on some hardware this would be
faster:
AV_WN32(p_bgr24, *(uint32_t *)p_bgr32);



More information about the MPlayer-dev-eng mailing list