Lines Matching refs:theta
1178 static int ov7670_sine(int theta) in ov7670_sine() argument
1183 if (theta < 0) { in ov7670_sine()
1184 theta = -theta; in ov7670_sine()
1187 if (theta <= 90) in ov7670_sine()
1188 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1190 theta -= 90; in ov7670_sine()
1191 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1196 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1198 theta = 90 - theta; in ov7670_cosine()
1199 if (theta > 180) in ov7670_cosine()
1200 theta -= 360; in ov7670_cosine()
1201 else if (theta < -180) in ov7670_cosine()
1202 theta += 360; in ov7670_cosine()
1203 return ov7670_sine(theta); in ov7670_cosine()