Banuba SDK
Loading...
Searching...
No Matches
bnb::camera_base_mocker Class Referenceabstract
Inheritance diagram for bnb::camera_base_mocker:
bnb::camera_base bnb::camera_video_mocker

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_descriptionget_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_descriptionm_connected_devices
 
size_t m_device_index
 

Detailed Description

Definition at line 11 of file base_mocker.hpp.

Member Typedef Documentation

◆ push_frame_cb_t

using bnb::camera_base::push_frame_cb_t

Definition at line 26 of file base.hpp.

Member Function Documentation

◆ start()

void bnb::camera_base_mocker::start ( )
overrideprotectedvirtual

Implements bnb::camera_base.


The documentation for this class was generated from the following file: