[vlc-devel] [PATCH] subsdelay filter

Yuval Tze yuvaltze at gmail.com
Sat Mar 19 23:34:24 CET 2011


New subfilter that enables overriding subtitles delay.
New tab with basic parameters was added to video effects widget
In filter_t struct, new pointer (pf_sub_filter2) to a function that gets subpicture and returns subpicture was added.
New filter chain function (filter_chain_SubFilter2) that calls pf_sub_filter2.
Small changes to existing functions:
spu_PutSubpicture - call filter_chain_SubFilter2 with the new subpicture.
subpicture_Update - not assuming that private data != NULL.


Subsdelay filter could help slow readers to keep up with the subtitles.
The filter overrides the current subtitles delay (but keeps their original display time) so the subtitles are aggregated on the video. Existing subtitles gets more transparent as new subtitles arrive to help keep track of the appearance order.
The filter basic parameters were added to the video effects widget in a new tab (subtitles). More parameters were added to the preferences under "video > subtitles/osd > subsdelay".
Unlike other sub-filters this filter doesn't create subpictures, but manipulating the existing subpictures (like video filters do with pictures) so small changes were made outside of the module scope to enable this new type of filtering.




More information about the vlc-devel mailing list