Banuba SDK
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
bnb::camera_base Class Referenceabstract
Inheritance diagram for bnb::camera_base:
bnb::camera_base_mocker bnb::camera_ocv bnb::camera_video_mocker

Public Types

enum  camera_format { RGBA, YUV }
 
using push_frame_cb_t = std::function< void(bnb::full_image_t image)>
 

Public Member Functions

 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
 
virtual void start ()=0
 
const std::vector< camera_device_descriptionget_connected_devices () const
 
size_t get_current_device_index () const
 

Static Public Attributes

static camera_format current_format = camera_format::RGBA
 

Protected Member Functions

virtual void abort ()
 

Protected Attributes

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 23 of file base.hpp.


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