• Home
  • Raw
  • Download

Lines Matching refs:s32

31 #define INT_PI			((s32)(3.141592653589 * 32768.0))
34 ((float)(((s32)((a)*100))%((s32)((b)*100)))/100.0)
36 #define baseband_freq(carrier, srate, tone) ((s32)( \
52 #define FREQ_A2M_CARRIER ((s32)(2.114516 * 32768.0))
53 #define FREQ_A2M_DUAL ((s32)(2.754916 * 32768.0))
54 #define FREQ_A2M_STEREO ((s32)(2.462326 * 32768.0))
56 #define FREQ_EIAJ_CARRIER ((s32)(1.963495 * 32768.0)) /* 5pi/8 */
57 #define FREQ_EIAJ_DUAL ((s32)(2.562118 * 32768.0))
58 #define FREQ_EIAJ_STEREO ((s32)(2.601053 * 32768.0))
60 #define FREQ_BTSC_DUAL ((s32)(1.963495 * 32768.0)) /* 5pi/8 */
61 #define FREQ_BTSC_DUAL_REF ((s32)(1.374446 * 32768.0)) /* 7pi/16 */
63 #define FREQ_BTSC_SAP ((s32)(2.471532 * 32768.0))
64 #define FREQ_BTSC_SAP_REF ((s32)(1.730072 * 32768.0))
67 #define FREQ_NOISE_START ((s32)(0.100000 * 32768.0))
68 #define FREQ_NOISE_END ((s32)(1.200000 * 32768.0))
77 static s32 int_cos(u32 x) in int_cos()
80 s32 ret; in int_cos()
101 s32 s_prev = 0; in int_goertzel()
102 s32 s_prev2 = 0; in int_goertzel()
103 s32 coeff = 2*int_cos(freq); in int_goertzel()
110 s32 s = x[i] + ((s64)coeff*s_prev/32768) - s_prev2; in int_goertzel()
155 static s32 detect_a2_a2m_eiaj(struct cx88_core *core, s16 x[], u32 N) in detect_a2_a2m_eiaj()
157 s32 carrier, stereo, dual, noise; in detect_a2_a2m_eiaj()
158 s32 carrier_freq, stereo_freq, dual_freq; in detect_a2_a2m_eiaj()
159 s32 ret; in detect_a2_a2m_eiaj()
219 static s32 detect_btsc(struct cx88_core *core, s16 x[], u32 N) in detect_btsc()
221 s32 sap_ref = freq_magnitude(x, N, FREQ_BTSC_SAP_REF); in detect_btsc()
222 s32 sap = freq_magnitude(x, N, FREQ_BTSC_SAP); in detect_btsc()
223 s32 dual_ref = freq_magnitude(x, N, FREQ_BTSC_DUAL_REF); in detect_btsc()
224 s32 dual = freq_magnitude(x, N, FREQ_BTSC_DUAL); in detect_btsc()
271 s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core) in cx88_dsp_detect_stereo_sap()
275 s32 ret = UNSET; in cx88_dsp_detect_stereo_sap()