[MPlayer-dev-eng] [PATCH] Chapter support improvement
Ulion
ulion2002 at gmail.com
Mon Dec 10 11:59:28 CET 2007
Hello,
I recent found chapter in mkv is really a good design, certainly dvd
also support it. But for mplayer, its chapter support is not good
enough, then I wrote several patches to improve it.
First patch adds 3 functions for demuxer to get chapter infos:
+/// Get current chapter index if available.
+int demuxer_get_current_chapter(demuxer_t *demuxer);
+/// Get chapter name by index.
+char *demuxer_chapter_name(demuxer_t *demuxer, int chapter);
+/// Get total chapter number.
+int demuxer_chapter_count(demuxer_t *demuxer);
Second patch make chapter become a mplayer property, now we can
get/set/print/step up/step down on the chapter property.
Third patch add chapter support for libmenu, it bases on Benjanmin's
menu_chapsel.c patch, but using functions from my first patch.
--
Ulion
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demuxer_chapter_funcs.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071210/d54ad4ad/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: chapter_property.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071210/d54ad4ad/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: osdmenu_chapter.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071210/d54ad4ad/attachment-0001.txt>
More information about the MPlayer-dev-eng
mailing list