本文整理汇总了C++中ci::params::InterfaceGl::setOptions方法的典型用法代码示例。如果您正苦于以下问题:C++ InterfaceGl::setOptions方法的具体用法?C++ InterfaceGl::setOptions怎么用?C++ InterfaceGl::setOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ci::params::InterfaceGl
的用法示例。
在下文中一共展示了InterfaceGl::setOptions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateGui
void cinderFFmpegApp::updateGui()
{
// Video / Audio Infos
// update dynamic info of video/audio
std::stringstream strTmp;
strTmp << "label='file: " << m_Players[m_iCurrentVideo]->getFileName() << "'";
m_Gui.setOptions( "file", strTmp.str() );
strTmp.clear(); strTmp.str("");
strTmp << "label='frame: " << m_Players[m_iCurrentVideo]->getCurrentFrameNumber() << "/" << m_Players[m_iCurrentVideo]->getDurationInFrames() << "'";
m_Gui.setOptions( "frame", strTmp.str() );
strTmp.clear(); strTmp.str("");
strTmp << "label='time: " << m_Players[m_iCurrentVideo]->getCurrentTimeInMs() << ":" << m_Players[m_iCurrentVideo]->getDurationInMs() << "'";
m_Gui.setOptions( "time", strTmp.str() );
strTmp.clear(); strTmp.str("");
strTmp << "label='video codec: " << m_Players[m_iCurrentVideo]->getVideoCodecName() << "'";
m_Gui.setOptions("video codec", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='audio codec: " << m_Players[m_iCurrentVideo]->getAudioCodecName() << "'";
m_Gui.setOptions("audio codec", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='width: " << m_Players[m_iCurrentVideo]->getWidth() << "'";
m_Gui.setOptions("width", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='height: " << m_Players[m_iCurrentVideo]->getHeight() << "'";
m_Gui.setOptions("height", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='fps: " << m_Players[m_iCurrentVideo]->getFps() << "'";
m_Gui.setOptions("fps", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='bitrate: " << m_Players[m_iCurrentVideo]->getBitrate() << "'";
m_Gui.setOptions("bitrate", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='audio channels: " << m_Players[m_iCurrentVideo]->getAudioChannels() << "'";
m_Gui.setOptions("audio channels", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='audio sample rate: " << m_Players[m_iCurrentVideo]->getAudioSampleRate() << "'";
m_Gui.setOptions("audio sample rate", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='frame: " << m_Players[m_iCurrentVideo]->getCurrentFrameNumber() << "/" << m_Players[m_iCurrentVideo]->getDurationInFrames() << "'";
m_Gui.setOptions("frame", strTmp.str());
strTmp.clear(); strTmp.str("");
strTmp << "label='time: " << m_Players[m_iCurrentVideo]->getCurrentTimeInMs() << "/" << m_Players[m_iCurrentVideo]->getDurationInMs() << "'";
m_Gui.setOptions("time", strTmp.str());
}