Monado OpenXR Runtime
|
A simple HSV filter. More...
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_frame.h"
#include "util/u_format.h"
#include "tracking/t_tracking.h"
#include <stdio.h>
#include <assert.h>
Data Structures | |
struct | t_hsv_filter |
Macros | |
#define | MOD_180(v) ((uint32_t)(v) % 180) |
#define | NUM_CHANNELS 4 |
Functions | |
void | t_hsv_build_convert_table (struct t_hsv_filter_params *params, struct t_convert_table *t) |
void | t_hsv_build_large_table (struct t_hsv_filter_params *params, struct t_hsv_filter_large_table *t) |
void | t_hsv_build_optimized_table (struct t_hsv_filter_params *params, struct t_hsv_filter_optimized_table *t) |
int | t_hsv_filter_create (struct xrt_frame_context *xfctx, struct t_hsv_filter_params *params, struct xrt_frame_sink *sinks[4], struct xrt_frame_sink **out_sink) |
A simple HSV filter.
#define MOD_180 | ( | v | ) | ((uint32_t)(v) % 180) |
#define NUM_CHANNELS 4 |
void t_hsv_build_convert_table | ( | struct t_hsv_filter_params * | params, |
struct t_convert_table * | t | ||
) |
References t_hsv_build_large_table(), U_TYPED_CALLOC, t_convert_table::v, and t_hsv_filter_large_table::v.
void t_hsv_build_large_table | ( | struct t_hsv_filter_params * | params, |
struct t_hsv_filter_large_table * | t | ||
) |
References t_convert_make_y8u8v8_to_h8s8v8(), U_TYPED_CALLOC, t_convert_table::v, and t_hsv_filter_large_table::v.
Referenced by t_debug_hsv_viewer_create(), t_hsv_build_convert_table(), and t_hsv_build_optimized_table().
void t_hsv_build_optimized_table | ( | struct t_hsv_filter_params * | params, |
struct t_hsv_filter_optimized_table * | t | ||
) |
References t_hsv_build_large_table(), T_HSV_SIZE, T_HSV_STEP, U_TYPED_CALLOC, t_hsv_filter_large_table::v, and t_hsv_filter_optimized_table::v.
Referenced by t_debug_hsv_viewer_create().
int t_hsv_filter_create | ( | struct xrt_frame_context * | xfctx, |
struct t_hsv_filter_params * | params, | ||
struct xrt_frame_sink * | sinks[4], | ||
struct xrt_frame_sink ** | out_sink | ||
) |
References t_hsv_filter::base, xrt_frame_sink::push_frame, and U_TYPED_CALLOC.
Referenced by t_debug_hsv_filter_create().