Lines Matching refs:cam
70 static android::mat4 cameraLookMatrix(const ConfigManager::CameraInfo& cam) { in cameraLookMatrix() argument
72 sincosf(cam.yaw, &sinYaw, &cosYaw); in cameraLookMatrix()
75 android::vec3 vAt = unitVectorFromPitchAndYaw(cam.pitch, cam.yaw); in cameraLookMatrix()
78 android::vec3 eye = android::vec3(cam.position[X], cam.position[Y], cam.position[Z]); in cameraLookMatrix()
154 for (auto&& cam: mActiveCameras) { in activate()
155 cam.tex.reset(createVideoTexture(mEnumerator, in activate()
156 cam.info.cameraId.c_str(), in activate()
159 if (!cam.tex) { in activate()
160 LOG(ERROR) << "Failed to set up video texture for " << cam.info.cameraId in activate()
161 << " (" << cam.info.function << ")"; in activate()
176 for (auto&& cam: mActiveCameras) { in deactivate()
177 cam.tex = nullptr; in deactivate()
208 for (auto&& cam: mActiveCameras) { in drawFrame()
209 if (cam.tex) { in drawFrame()
210 cam.tex->refresh(); in drawFrame()
215 for (auto&& cam: mActiveCameras) { in drawFrame()
216 renderCameraOntoGroundPlane(cam); in drawFrame()
292 void RenderTopView::renderCameraOntoGroundPlane(const ActiveCamera& cam) { in renderCameraOntoGroundPlane() argument
300 const android::mat4 V = cameraLookMatrix(cam.info); in renderCameraOntoGroundPlane()
301 … const android::mat4 P = perspective(cam.info.hfov, cam.info.vfov, cam.info.position[Z], maxRange); in renderCameraOntoGroundPlane()
338 if (cam.tex) { in renderCameraOntoGroundPlane()
339 texId = cam.tex->glId(); in renderCameraOntoGroundPlane()