Commit ba12a0aa authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

aux/tracking: Track hsv filter sinks

parent ef3074af
Pipeline #65364 passed with stages
in 2 minutes and 21 seconds
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* @author Jakob Bornecrantz <jakob@collabora.com> * @author Jakob Bornecrantz <jakob@collabora.com>
*/ */
#include "util/u_var.h"
#include "util/u_misc.h" #include "util/u_misc.h"
#include "util/u_debug.h" #include "util/u_debug.h"
#include "util/u_frame.h" #include "util/u_frame.h"
...@@ -320,6 +321,7 @@ static void ...@@ -320,6 +321,7 @@ static void
destroy(struct xrt_frame_node *node) destroy(struct xrt_frame_node *node)
{ {
struct t_hsv_filter *f = container_of(node, struct t_hsv_filter, node); struct t_hsv_filter *f = container_of(node, struct t_hsv_filter, node);
u_var_remove_root(f);
free(f); free(f);
} }
...@@ -343,6 +345,12 @@ t_hsv_filter_create(struct xrt_frame_context *xfctx, ...@@ -343,6 +345,12 @@ t_hsv_filter_create(struct xrt_frame_context *xfctx,
xrt_frame_context_add(xfctx, &f->node); xrt_frame_context_add(xfctx, &f->node);
u_var_add_root(f, "HSV Filter", true);
u_var_add_sink(f, &f->sinks[0], "Red");
u_var_add_sink(f, &f->sinks[1], "Purple");
u_var_add_sink(f, &f->sinks[2], "Blue");
u_var_add_sink(f, &f->sinks[3], "White");
*out_sink = &f->base; *out_sink = &f->base;
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment