Lines Matching refs:theta
1319 static int ov7670_sine(int theta) in ov7670_sine() argument
1324 if (theta < 0) { in ov7670_sine()
1325 theta = -theta; in ov7670_sine()
1328 if (theta <= 90) in ov7670_sine()
1329 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1331 theta -= 90; in ov7670_sine()
1332 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1337 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1339 theta = 90 - theta; in ov7670_cosine()
1340 if (theta > 180) in ov7670_cosine()
1341 theta -= 360; in ov7670_cosine()
1342 else if (theta < -180) in ov7670_cosine()
1343 theta += 360; in ov7670_cosine()
1344 return ov7670_sine(theta); in ov7670_cosine()