[SPAM] Re: [MPlayer-dev-eng] Colored subtitles
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Wed Nov 6 16:25:57 CET 2002
½Ȼ wrote:
>Hi,
>
>
>>other way of buffering but IMO it'll be reasonable to make it use the
>>buffering code from sub.c too.
>>
>>
>you are right, I'll include it in my color spu sub patch. but i think i need
>to write a similar one for spu/vob, cause spu/vob have palette of themselve.
>I just need to put rgb info to obj->rgb_buffer, and alpha to
>obj->alpha_buffer, other things will be handled by your code, am I right?
>
>
yes, you just have to fill these two buffers and then call the
conversion routine like the osd, progressbar, and subtitle code in sub.c
does - see vo_update_text_* for this. vo_update_spudec_sub should do the
same thing. then vo_draw_spudec_sub can be replaced by
vo_draw_text_from_buffer, too.
Regards,
--
Jindrich Makovicka
More information about the MPlayer-dev-eng
mailing list