Home
last modified time | relevance | path

Searched refs:FIXP_FRAC (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-sdr-cap.c506 #define FIXP_FRAC (1 << FIXP_N) macro
507 #define FIXP_2PI ((int)(2 * 3.141592653589 * FIXP_FRAC))
557 fixp_i = fixp_i * 1275 + FIXP_FRAC * 1275; in vivid_sdr_cap_process()
558 fixp_q = fixp_q * 1275 + FIXP_FRAC * 1275; in vivid_sdr_cap_process()
559 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process()
560 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process()
565 fixp_i = fixp_i * 1275 - FIXP_FRAC * 5; in vivid_sdr_cap_process()
566 fixp_q = fixp_q * 1275 - FIXP_FRAC * 5; in vivid_sdr_cap_process()
567 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process()
568 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process()