Home
last modified time | relevance | path

Searched defs:FixedPtCast (Results 1 – 3 of 3) sorted by relevance

/dports/graphics/opencv/opencv-4.5.3/modules/imgproc/src/
H A Dfilter.simd.hpp2853 template<typename ST, typename DT, int bits> struct FixedPtCast struct
2855 typedef ST type1;
2856 typedef DT rtype;
2857 enum { SHIFT = bits, DELTA = 1 << (bits-1) };
2859 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()
H A Dimgwarp.cpp311 template<typename ST, typename DT, int bits> struct FixedPtCast struct
313 typedef ST type1;
314 typedef DT rtype;
315 enum { SHIFT = bits, DELTA = 1 << (bits-1) };
317 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()
H A Dresize.cpp957 template<typename ST, typename DT, int bits> struct FixedPtCast struct
959 typedef ST type1;
960 typedef DT rtype;
961 enum { SHIFT = bits, DELTA = 1 << (bits-1) };
963 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()