From a2bca5de376712b8bf86fc50dc7edda43c41911f Mon Sep 17 00:00:00 2001 From: Vivek R <123vivekr@gmail.com> Date: Fri, 12 Jun 2020 19:31:41 +0530 Subject: [PATCH] validate: flow: record GstRegionOfInterestMeta Part-of: --- validate/gst/validate/flow/formatting.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/validate/gst/validate/flow/formatting.c b/validate/gst/validate/flow/formatting.c index d9c2cee..e0155ea 100644 --- a/validate/gst/validate/flow/formatting.c +++ b/validate/gst/validate/flow/formatting.c @@ -30,6 +30,7 @@ #include "formatting.h" #include +#include #include #include #include @@ -221,7 +222,15 @@ buffer_get_meta_string (GstBuffer * buffer) else g_string_append (s, ", "); - g_string_append (s, desc); + if (meta->info->api == GST_VIDEO_REGION_OF_INTEREST_META_API_TYPE) { + GstVideoRegionOfInterestMeta *roi = (GstVideoRegionOfInterestMeta *) meta; + g_string_append_printf (s, + "GstVideoRegionOfInterestMeta[x=%" G_GUINT32_FORMAT ", y=%" + G_GUINT32_FORMAT ", width=%" G_GUINT32_FORMAT ", height=%" + G_GUINT32_FORMAT "]", roi->x, roi->y, roi->w, roi->h); + } else { + g_string_append (s, desc); + } } return (s != NULL) ? g_string_free (s, FALSE) : NULL; -- 2.7.4