| 112 | } |
| 113 | |
| 114 | void 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 | |
| 130 | std::array<std::vector<openhd::Setting>, 2> |
| 131 | OHDVideoAir::get_all_camera_settings() { |
nothing calls this directly
no test coverage detected