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

Method recommend_bitrate_to_encoder

OpenHD/ohd_interface/src/wb_link.cpp:1202–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void 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
1217bool WBLink::try_schedule_work_item(
1218 const std::shared_ptr<WorkItem>& work_item) {

Callers

nothing calls this directly

Tested by

no test coverage detected