mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
validate: flow: record GstRegionOfInterestMeta
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/206>
This commit is contained in:
parent
f0db9bc907
commit
a2bca5de37
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue