MCPcopy Create free account
hub / github.com/cinder/Cinder / updateModes

Method updateModes

test/CaptureTest/src/CaptureTestApp.cpp:556–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void CaptureTestApp::updateModes()
557{
558 mCurrentModes.clear();
559 mSelectedModeIndex = -1; // Reset to auto mode
560
561 if( mSelectedDeviceIndex >= 0 && mSelectedDeviceIndex < (int)mDevices.size() ) {
562 CI_LOG_I( "\n=== Getting modes for device: " << mDevices[mSelectedDeviceIndex]->getName() << " ===" );
563 try {
564 mCurrentModes = mDevices[mSelectedDeviceIndex]->getModes();
565 CI_LOG_I( "Found " << mCurrentModes.size() << " modes:" );
566 for( size_t i = 0; i < mCurrentModes.size(); i++ ) {
567 CI_LOG_I( " [" << i << "] " << toString( mCurrentModes[i] ) );
568 }
569 }
570 catch( ci::Exception& exc ) {
571 CI_LOG_EXCEPTION( "Failed to get modes for device: " << mDevices[mSelectedDeviceIndex]->getName(), exc );
572 CI_LOG_E( "ERROR: Failed to get modes!" );
573 }
574 }
575}
576
577void prepareSettings( CaptureTestApp::Settings* settings )
578{

Callers

nothing calls this directly

Calls 5

toStringFunction · 0.50
clearMethod · 0.45
sizeMethod · 0.45
getNameMethod · 0.45
getModesMethod · 0.45

Tested by

no test coverage detected