| 1200 | } |
| 1201 | |
| 1202 | void WBLink::recommend_bitrate_to_encoder(int recommended_video_bitrate_kbits) { |
| 1203 | // Since settings might change dynamically at run time, we constantly |
| 1204 | // recommend a bitrate to the encoder / camera - The camera is responsible for |
| 1205 | // "not doing anything" when we recommend the same bitrate to it multiple |
| 1206 | // times |
| 1207 | /*if(!m_opt_action_handler){ |
| 1208 | m_console->debug("No action handler,cannot recommend bitrate to camera"); |
| 1209 | return; |
| 1210 | }*/ |
| 1211 | openhd::LinkActionHandler::LinkBitrateInformation lb{}; |
| 1212 | lb.recommended_encoder_bitrate_kbits = recommended_video_bitrate_kbits; |
| 1213 | openhd::LinkActionHandler::instance().action_request_bitrate_change_handle( |
| 1214 | lb); |
| 1215 | } |
| 1216 | |
| 1217 | bool WBLink::try_schedule_work_item( |
| 1218 | const std::shared_ptr<WorkItem>& work_item) { |
nothing calls this directly
no test coverage detected