| 787 | } |
| 788 | |
| 789 | s32 cellCameraIsAvailable(s32 dev_num) |
| 790 | { |
| 791 | cellCamera.trace("cellCameraIsAvailable(dev_num=%d)", dev_num); |
| 792 | |
| 793 | if (g_cfg.io.camera == camera_handler::null) |
| 794 | { |
| 795 | return false; |
| 796 | } |
| 797 | |
| 798 | vm::var<s32> type; |
| 799 | |
| 800 | if (cellCameraGetType(dev_num, type) != CELL_OK || *type == CELL_CAMERA_TYPE_UNKNOWN) |
| 801 | { |
| 802 | return false; |
| 803 | } |
| 804 | |
| 805 | if (*type > CELL_CAMERA_TYPE_UNKNOWN || *type <= CELL_CAMERA_USBVIDEOCLASS) |
| 806 | { |
| 807 | // TODO: checks CELL_CAMERA_DEVICESPEED attribute |
| 808 | } |
| 809 | |
| 810 | return true; |
| 811 | } |
| 812 | |
| 813 | s32 cellCameraIsAttached(s32 dev_num) |
| 814 | { |
nothing calls this directly
no test coverage detected