| 883 | } |
| 884 | |
| 885 | s32 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 | |
| 911 | error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm::ptr<u32> arg2) |
| 912 | { |
nothing calls this directly
no test coverage detected