[MPlayer-dev-eng] [PATCH] vobsub custom colors rgb->yuv fix.

Ulion ulion2002 at gmail.com
Sat Dec 8 13:37:51 CET 2007


2007/12/8, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
> On Sat, Dec 08, 2007 at 06:29:23PM +0800, Ulion wrote:
> > 2007/12/8, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> > > On Sat, Dec 08, 2007 at 10:41:09AM +0800, Ulion wrote:
> > > [...]
> > > > y space fix done.
> > > > Tomorrow I will apply the custom color rgb->yuv fix. Is it ok to use
> > > > lavcodec/colorspace.h, Reimar? It's just a file with macroes, and will
> > > > always be there within mplayer directory, isn't it?
> > >
> > > We shouldn't depend on it regardless.
> > > IMO add a
> > > uint32_t vobsub_rgb_to_yuv(uint32_t)
> > > function to vobsub.c that does this conversion and reuse it.
> >
> > A function is good, but now the one used to custom colors are in
> > vobsub.c and libmpdemux/demux_mkv.c, does that mean let demux_mkv.c
> > include vobsub.h?
>
> I think that's okay, yes.

OK, then there should be two functions. Now I moved the palette->yuv
code into a common function and commited. Here's the patch for custom
color rgb->yuv use common function. If there's no object, I will
commit it tomorrow.

-- 
Ulion
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vobsub_cuspal_fix4.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071208/f7d3065e/attachment.asc>


More information about the MPlayer-dev-eng mailing list