MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / configure

Method configure

OpenHD/ohd_video/src/ohd_video_air.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void OHDVideoAir::configure(
115 const std::shared_ptr<CameraHolder>& camera_holder) {
116 const auto camera = camera_holder->get_camera();
117 auto frame_cb =
118 [this](int stream_index,
119 const openhd::FragmentedVideoFrame& fragmented_video_frame) {
120 this->on_video_data(stream_index, fragmented_video_frame);
121 };
122 // R.N we use gstreamer for pretty much everything
123 // But this might change in the future
124 m_console->debug("GStreamerStream for Camera index:{}", camera.index);
125 auto stream = std::make_shared<GStreamerStream>(camera_holder, frame_cb);
126 stream->start_looping();
127 m_camera_streams.push_back(stream);
128}
129
130std::array<std::vector<openhd::Setting>, 2>
131OHDVideoAir::get_all_camera_settings() {

Callers

nothing calls this directly

Calls 4

on_video_dataMethod · 0.95
debugMethod · 0.80
push_backMethod · 0.80
start_loopingMethod · 0.45

Tested by

no test coverage detected