Monado OpenXR Runtime
m_lowpass_integer.cpp File Reference

Wrap integer filters for C. More...

#include "m_lowpass_integer.h"
#include "m_lowpass_integer.hpp"
#include "util/u_logging.h"
#include <memory>
Include dependency graph for m_lowpass_integer.cpp:

Data Structures

struct  m_lowpass_integer
 

Macros

#define DEFAULT_CATCH(...)
 

Typedefs

using Rational64 = xrt::auxiliary::math::Rational< int64_t >
 

Functions

struct m_lowpass_integerm_lowpass_integer_create (int64_t alpha_numerator, int64_t alpha_denominator)
 
void m_lowpass_integer_add_sample (struct m_lowpass_integer *mli, int64_t sample)
 
int64_t m_lowpass_integer_get_state (const struct m_lowpass_integer *mli)
 
bool m_lowpass_integer_is_initialized (const struct m_lowpass_integer *mli)
 
void m_lowpass_integer_destroy (struct m_lowpass_integer **ptr_to_mli)
 

Detailed Description

Wrap integer filters for C.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Macro Definition Documentation

◆ DEFAULT_CATCH

#define DEFAULT_CATCH (   ...)
Value:
catch (std::exception const &e) \
{ \
U_LOG_E("Caught exception: %s", e.what()); \
return __VA_ARGS__; \
} \
catch (...) \
{ \
U_LOG_E("Caught exception"); \
return __VA_ARGS__; \
}