Lines Matching refs:theta
1331 static int ov7670_sine(int theta) in ov7670_sine() argument
1336 if (theta < 0) { in ov7670_sine()
1337 theta = -theta; in ov7670_sine()
1340 if (theta <= 90) in ov7670_sine()
1341 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1343 theta -= 90; in ov7670_sine()
1344 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1349 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1351 theta = 90 - theta; in ov7670_cosine()
1352 if (theta > 180) in ov7670_cosine()
1353 theta -= 360; in ov7670_cosine()
1354 else if (theta < -180) in ov7670_cosine()
1355 theta += 360; in ov7670_cosine()
1356 return ov7670_sine(theta); in ov7670_cosine()