28 enum class camera_format
33 inline static camera_format current_format = camera_format::RGBA;
39 : m_push_frame_cb(std::move(cb))
40 , m_is_abort_requested(
false)
45 virtual void set_device_by_index(uint32_t index) = 0;
46 virtual void set_device_by_id(
const std::string& device_id) = 0;
47 virtual void start() = 0;
48 const std::vector<camera_device_description> get_connected_devices()
const
50 return m_connected_devices;
52 size_t get_current_device_index()
const
54 return m_device_index;
65 m_is_abort_requested =
true;
69 push_frame_cb_t m_push_frame_cb;
70 std::atomic_bool m_is_abort_requested;
71 std::vector<camera_device_description> m_connected_devices;
72 size_t m_device_index;