[MPlayer-dev-eng] [PATCH] color SPU - part 1
eugeni.stepanov at gmail.com
Sat Aug 11 21:00:08 CEST 2007
On Saturday 11 August 2007, Ötvös Attila wrote:
> 2007. augusztus 11. 19.35 dátummal Evgeniy Stepanov ezt írta:
> > Hi,
> > On Saturday 11 August 2007, Ötvös Attila wrote:
> > > This patch add 'dp' parameters to all draw_alpha() functions.
> > > 'dp' : destionation plane (Y,U,V,R,G,B)
> > >
> > > Add handler code to osd.c, osd_template.c and vo_*.
> > Won't it be simpler to use EOSD ?
> I don't know.
> More color more ass_image...
> (I think ass render to single color and 1bpp alpha.)
Single color + 8bpp alpha. How many colors could there be ? 4 ? 16 ? SPU are
usually static, so performance won't be an issue.
Of course, better way is to support more color formats in ass_image, like
RGB32 and YV12. It is as easy as adding 'type' field to ass_image_t and
corresponding rendering functions to vf_ass.c and vf_gl (the last one is
optional and most likely trivial). It was not done before simply because it
was not used anywhere outside libass. I can help with vf_ass part if you
More information about the MPlayer-dev-eng