validate: flow: record GstRegionOfInterestMeta

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/206>
This commit is contained in:
Vivek R 2020-06-12 19:31:41 +05:30 committed by GStreamer Merge Bot
parent f0db9bc907
commit a2bca5de37

View file

@ -30,6 +30,7 @@
#include "formatting.h"
#include <gst/gst.h>
#include <gst/video/video.h>
#include <string.h>
#include <stdio.h>
#include <glib/gprintf.h>
@ -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;