MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / cellCameraIsStarted

Function cellCameraIsStarted

ps3fw/cellCamera.cpp:885–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885s32 cellCameraIsStarted(s32 dev_num)
886{
887 cellCamera.trace("cellCameraIsStarted(dev_num=%d)", dev_num);
888
889 if (g_cfg.io.camera == camera_handler::null)
890 {
891 return false;
892 }
893
894 auto& g_camera = g_fxo->get<camera_thread>();
895
896 if (!g_camera.init)
897 {
898 return false;
899 }
900
901 if (!check_dev_num(dev_num))
902 {
903 return false;
904 }
905
906 std::lock_guard lock(g_camera.mutex);
907
908 return g_camera.is_streaming.load();
909}
910
911error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm::ptr<u32> arg2)
912{

Callers

nothing calls this directly

Calls 2

check_dev_numFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected