[MPlayer-dev-eng] [PATCH] EOSD: dump images coordinates in verbose mode

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Feb 2 19:21:25 CET 2011


On Thu, Jan 27, 2011 at 03:02:00PM +0100, Nicolas George wrote:
> Hi.
> 
> The attached patch makes EOSD dump the coordinates and color of each image
> element when running in very verbose mode (-v -v -v).
> 
> A possible use for that is to compute a bounding box for subtitles.
> 
> Regards,
> 
> -- 
>   Nicolas George

>  sub/eosd.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/sub/eosd.c b/sub/eosd.c
> index b45fd68..9cd46fe 100644
> --- a/sub/eosd.c
> +++ b/sub/eosd.c
> @@ -83,6 +83,19 @@ void eosd_render_frame(double ts, struct mp_eosd_image_list *images)
>      settings.changed = 0;
>      images->first_source = sources;
>      images->changed      = changed;
> +    if (images->changed && verbose >= MSGL_V) {

This needs to got at least MSGL_DBG3 or MSGL_DBG4 IMO.
And you should use mp_msg_test


More information about the MPlayer-dev-eng mailing list