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

Function cellCameraRead

ps3fw/cellCamera.cpp:1324–1346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324error_code cellCameraRead(s32 dev_num, vm::ptr<u32> frame_num, vm::ptr<u32> bytes_read)
1325{
1326 cellCamera.trace("cellCameraRead(dev_num=%d, frame_num=*0x%x, bytes_read=*0x%x)", dev_num, frame_num, bytes_read);
1327
1328 vm::ptr<CellCameraReadEx> read_ex = vm::make_var<CellCameraReadEx>({});
1329
1330 if (auto res = cellCameraReadEx(dev_num, read_ex))
1331 {
1332 return res;
1333 }
1334
1335 if (frame_num)
1336 {
1337 *frame_num = read_ex->frame;
1338 }
1339
1340 if (bytes_read)
1341 {
1342 *bytes_read = read_ex->bytesread;
1343 }
1344
1345 return CELL_OK;
1346}
1347
1348error_code cellCameraRead2()
1349{

Callers

nothing calls this directly

Calls 1

cellCameraReadExFunction · 0.85

Tested by

no test coverage detected