Lines Matching refs:theta
1335 static int ov7670_sine(int theta) in ov7670_sine() argument
1340 if (theta < 0) { in ov7670_sine()
1341 theta = -theta; in ov7670_sine()
1344 if (theta <= 90) in ov7670_sine()
1345 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1347 theta -= 90; in ov7670_sine()
1348 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1353 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1355 theta = 90 - theta; in ov7670_cosine()
1356 if (theta > 180) in ov7670_cosine()
1357 theta -= 360; in ov7670_cosine()
1358 else if (theta < -180) in ov7670_cosine()
1359 theta += 360; in ov7670_cosine()
1360 return ov7670_sine(theta); in ov7670_cosine()