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

Function cellCameraPrepExtensionUnit

ps3fw/cellCamera.cpp:1164–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164error_code cellCameraPrepExtensionUnit(s32 dev_num, vm::ptr<u8> guidExtensionCode)
1165{
1166 cellCamera.todo("cellCameraPrepExtensionUnit(dev_num=%d, guidExtensionCode=0x%x)", dev_num, guidExtensionCode);
1167
1168 if (!check_dev_num(dev_num) || !guidExtensionCode)
1169 {
1170 return CELL_CAMERA_ERROR_PARAM;
1171 }
1172
1173 if (error_code error = check_resolution(dev_num))
1174 {
1175 return error;
1176 }
1177
1178 auto& g_camera = g_fxo->get<camera_thread>();
1179
1180 if (!g_camera.is_attached)
1181 {
1182 return CELL_CAMERA_ERROR_DEVICE_NOT_FOUND;
1183 }
1184
1185 return CELL_OK;
1186}
1187
1188error_code cellCameraCtrlExtensionUnit(s32 dev_num, u8 request, u16 value, u16 length, vm::ptr<u8> data)
1189{

Callers

nothing calls this directly

Calls 2

check_dev_numFunction · 0.85
check_resolutionFunction · 0.85

Tested by

no test coverage detected