Lines Matching refs:cam
67 static android::mat4 cameraLookMatrix(const ConfigManager::CameraInfo& cam) { in cameraLookMatrix() argument
69 sincosf(cam.yaw, &sinYaw, &cosYaw); in cameraLookMatrix()
72 android::vec3 vAt = unitVectorFromPitchAndYaw(cam.pitch, cam.yaw); in cameraLookMatrix()
75 android::vec3 eye = android::vec3(cam.position[X], cam.position[Y], cam.position[Z]); in cameraLookMatrix()
151 for (auto&& cam: mActiveCameras) { in activate()
152 cam.tex.reset(createVideoTexture(mEnumerator, cam.info.cameraId.c_str(), sDisplay)); in activate()
153 if (!cam.tex) { in activate()
155 cam.info.cameraId.c_str(), cam.info.function.c_str()); in activate()
170 for (auto&& cam: mActiveCameras) { in deactivate()
171 cam.tex = nullptr; in deactivate()
202 for (auto&& cam: mActiveCameras) { in drawFrame()
203 if (cam.tex) { in drawFrame()
204 cam.tex->refresh(); in drawFrame()
209 for (auto&& cam: mActiveCameras) { in drawFrame()
210 renderCameraOntoGroundPlane(cam); in drawFrame()
286 void RenderTopView::renderCameraOntoGroundPlane(const ActiveCamera& cam) { in renderCameraOntoGroundPlane() argument
294 const android::mat4 V = cameraLookMatrix(cam.info); in renderCameraOntoGroundPlane()
295 … const android::mat4 P = perspective(cam.info.hfov, cam.info.vfov, cam.info.position[Z], maxRange); in renderCameraOntoGroundPlane()
332 if (cam.tex) { in renderCameraOntoGroundPlane()
333 texId = cam.tex->glId(); in renderCameraOntoGroundPlane()