Lines Matching refs:theta
1208 static int ov7670_sine(int theta) in ov7670_sine() argument
1213 if (theta < 0) { in ov7670_sine()
1214 theta = -theta; in ov7670_sine()
1217 if (theta <= 90) in ov7670_sine()
1218 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1220 theta -= 90; in ov7670_sine()
1221 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1226 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1228 theta = 90 - theta; in ov7670_cosine()
1229 if (theta > 180) in ov7670_cosine()
1230 theta -= 360; in ov7670_cosine()
1231 else if (theta < -180) in ov7670_cosine()
1232 theta += 360; in ov7670_cosine()
1233 return ov7670_sine(theta); in ov7670_cosine()