mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
qroverlay: add some debug logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7230>
This commit is contained in:
parent
df28aceb49
commit
6e7300d2a8
1 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,8 @@ gst_base_qr_overlay_caps_changed_cb (GstBaseQROverlay * self, GstCaps * caps,
|
|||
{
|
||||
GstBaseQROverlayPrivate *priv = PRIV (self);
|
||||
|
||||
GST_DEBUG_OBJECT (self, "%" GST_PTR_FORMAT, caps);
|
||||
|
||||
if (gst_video_info_from_caps (&priv->info, caps))
|
||||
priv->valid = TRUE;
|
||||
else
|
||||
|
@ -192,6 +194,9 @@ draw_overlay (GstBaseQROverlay * self, QRcode * qrcode)
|
|||
y = (int) (priv->info.height - square_size) * (priv->y_percent / 100);
|
||||
y = GST_ROUND_DOWN_4 (y);
|
||||
|
||||
GST_DEBUG_OBJECT (self, "draw overlay at (%d,%d) size: %dx%d", x, y,
|
||||
info.width, info.height);
|
||||
|
||||
rect = gst_video_overlay_rectangle_new_raw (buf, x, y,
|
||||
info.width, info.height, GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE);
|
||||
comp = gst_video_overlay_composition_new (rect);
|
||||
|
|
Loading…
Reference in a new issue