On Mon, 2006-06-05 at 04:21 +0400, Evgeniy Stepanov wrote:
Another idea: vo capable of "extended osd" could call rendering functions from libass itself when it is ready and blend the resulting bitmaps immediately. This could be wrapped in a nice call like get_extended_osd_bitmaps(double pts). vf_ass is only added if vo does not support this.
I think this could be the clearest solution. Basically place the filter "inside the vo" if the vo supports that, otherwise place it in the normal filter chain.
supports the "extended" OSD (could also be used to check if there is a filter in between vf_ass and the vo that would break thinks, like the
This makes sense only if something between vf_ass and vo is messing with frames. I hope we can avoid this situation completely by adding vf_ass to the very end of the filter chain.
I think vf_ass should be usable as a general filter that can be placed anywhere in the chain when the vo special cases aren't used (not sure if you meant the "end of the filter chain" in the render-inside-vo case only - if so then this is of course irrelevant if there's no filter in the normal chain then).