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

Method start_camera

ps3fw/cellCamera.cpp:1767–1785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765}
1766
1767bool camera_context::start_camera()
1768{
1769 if (handler)
1770 {
1771 handler->set_mirrored(!!attr[CELL_CAMERA_MIRRORFLAG].v1);
1772 handler->set_frame_rate(info.framerate);
1773 handler->set_resolution(info.width, info.height);
1774 handler->set_format(info.format, info.bytesize);
1775
1776 Emu.BlockingCallFromMainThread([this]()
1777 {
1778 handler->start_camera();
1779 });
1780
1781 return on_handler_state(handler->get_state());
1782 }
1783
1784 return true;
1785}
1786
1787bool camera_context::get_camera_frame(u8* dst, u32& width, u32& height, u64& frame_number, u64& bytes_read)
1788{

Callers 2

cellCameraStartFunction · 0.45
on_handler_stateMethod · 0.45

Calls 6

set_mirroredMethod · 0.80
set_frame_rateMethod · 0.80
set_resolutionMethod · 0.80
set_formatMethod · 0.45
get_stateMethod · 0.45

Tested by

no test coverage detected