| 1765 | } |
| 1766 | |
| 1767 | bool 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 | |
| 1787 | bool camera_context::get_camera_frame(u8* dst, u32& width, u32& height, u64& frame_number, u64& bytes_read) |
| 1788 | { |
no test coverage detected