[FFmpeg-devel] [PATCH] read palette information from extradata for dvd subtitle decoder
Måns Rullgård
mans
Fri Jan 18 05:18:50 CET 2008
elupus <elupus at ecce.se> writes:
> Hi,
>
> Here's a patch to read the dvd palette from extradata in the dvdsub
> decoder, this allows it to read matroska stored subtitles (and external
> vobsubs if player can supply it) with the correct color displayed.
>
> It relies on extradata being padded, but i think that is alright.
>
> It introduces a context for this information. Some other stuff could
> probably be moved to it too, but not needed for now.
>
> Should be simple to add stuff like offsets/custom colors/alignments.
> scaling would be very much harder todo in decoder, but it's probably not
> it's job anyway.
>
> I suppose the string based extradata isn't the best way to store that
> stuff, but seems silly to invent a new format since matroska and vobsub idx
> files already use this.
Sensible would be to use the same format as on actual DVDs.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list