H223ChannelParam::H223ChannelParam(TPVChannelId id, PS_H223LogicalChannelParameters lcp, PS_DataType dt) : pH223Lcp(NULL), pDataType(NULL) { lcn = id; if (lcp) { pH223Lcp = Copy_H223LogicalChannelParameters(lcp); } if (dt) { pDataType = Copy_DataType(dt); } bitrate = GetMaxBitrate(pDataType); sample_interval = 0; unsigned fr = GetMaxFrameRate(pDataType); if (fr) sample_interval = (unsigned)((double)1000 / (double)fr); }
void Flea3Camera::SetStandardVideoMode(int video_mode) { const auto video_mode_pg = static_cast<VideoMode>(video_mode); if (!IsVideoModeSupported(camera_, video_mode_pg)) return; const auto max_frame_rate_pg = GetMaxFrameRate(camera_, video_mode_pg); PgrWarn(camera_.SetVideoModeAndFrameRate(video_mode_pg, max_frame_rate_pg)); }