![]() |
Banuba SDK
|
Public Types | |
| using | push_frame_cb_t |
| Public Types inherited from bnb::camera_base | |
| enum class | camera_format { RGBA , YUV } |
| using | push_frame_cb_t = std::function<void(bnb::full_image_t image)> |
Public Member Functions | |
| camera_base_mocker (const push_frame_cb_t &cb, uint32_t frame_rate=30) | |
| void | set_frame_rate (uint32_t frame_rate) |
| Public Member Functions inherited from bnb::camera_base | |
| camera_base (push_frame_cb_t cb) | |
| virtual void | set_device_by_index (uint32_t index)=0 |
| virtual void | set_device_by_id (const std::string &device_id)=0 |
| const std::vector< camera_device_description > | get_connected_devices () const |
| size_t | get_current_device_index () const |
Protected Member Functions | |
| virtual void | update_image_content ()=0 |
| void | start () override |
| Protected Member Functions inherited from bnb::camera_base | |
| virtual void | abort () |
Additional Inherited Members | |
| Static Public Attributes inherited from bnb::camera_base | |
| static camera_format | current_format = camera_format::RGBA |
| Protected Attributes inherited from bnb::camera_base | |
| push_frame_cb_t | m_push_frame_cb |
| std::atomic_bool | m_is_abort_requested |
| std::vector< camera_device_description > | m_connected_devices |
| size_t | m_device_index |
Definition at line 11 of file base_mocker.hpp.
|
overrideprotectedvirtual |
Implements bnb::camera_base.