From 4d11f32162b08e3b48ae382e2ed0a151035f8aea Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Oct 2012 19:25:18 +0200 Subject: VO, sub: refactor Remove VFCTRL_DRAW_OSD, VFCAP_EOSD_FILTER, VFCAP_EOSD_RGBA, VFCAP_EOSD, VOCTRL_DRAW_EOSD, VOCTRL_GET_EOSD_RES, VOCTRL_QUERY_EOSD_FORMAT. Remove draw_osd_with_eosd(), which rendered the OSD by calling VOCTRL_DRAW_EOSD. Change VOs to call osd_draw() directly, which takes a callback as argument. (This basically works like the old OSD API, except multiple OSD bitmap formats are supported and caching is possible.) Remove all mentions of "eosd". It's simply "osd" now. Make OSD size per-OSD-object, as they can be different when using vf_sub. Include display_par/video_par in resolution change detection. Fix the issue with margin borders in vo_corevideo. --- sub/spudec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/spudec.c') diff --git a/sub/spudec.c b/sub/spudec.c index 353f72de7a..d51f62c0fc 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -634,7 +634,7 @@ void spudec_set_forced_subs_only(void * const this, const unsigned int flag) } } -void spudec_get_indexed(void *this, struct mp_eosd_res *dim, +void spudec_get_indexed(void *this, struct mp_osd_res *dim, struct sub_bitmaps *res) { spudec_handle_t *spu = this; -- cgit v1.2.3