mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 13:16:38 +00:00
aux/tracking: Track hsv filter sinks
This commit is contained in:
parent
ef3074afa7
commit
ba12a0aa0e
|
@ -6,6 +6,7 @@
|
|||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||
*/
|
||||
|
||||
#include "util/u_var.h"
|
||||
#include "util/u_misc.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/u_frame.h"
|
||||
|
@ -320,6 +321,7 @@ static void
|
|||
destroy(struct xrt_frame_node *node)
|
||||
{
|
||||
struct t_hsv_filter *f = container_of(node, struct t_hsv_filter, node);
|
||||
u_var_remove_root(f);
|
||||
free(f);
|
||||
}
|
||||
|
||||
|
@ -343,6 +345,12 @@ t_hsv_filter_create(struct xrt_frame_context *xfctx,
|
|||
|
||||
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;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue