libcamera  v0.5.0+31-ab508f2b
Supporting cameras in Linux since 2019
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
fixedpoint.h File Reference
#include <cmath>
#include <type_traits>
Include dependency graph for fixedpoint.h:

Go to the source code of this file.

Namespaces

 libcamera
 Top-level libcamera namespace.
 
 libcamera::ipa
 The IPA (Image Processing Algorithm) namespace.
 

Functions

template<unsigned int I, unsigned int F, typename R , typename T >
constexpr R libcamera::ipa::floatingToFixedPoint (T number)
 Convert a floating point number to a fixed-point representation. More...
 
template<unsigned int I, unsigned int F, typename R , typename T >
constexpr R libcamera::ipa::fixedToFloatingPoint (T number)
 Convert a fixed-point number to a floating point representation. More...