Ejemplo n.º 1
0
// Query avaialble video formats and frame rates. Save them in an internal list.
void CDFKAFU050::query_formats()
{
 
    _Formats.clear();
#ifdef USE_AFU050
    
    _Formats.push_back( cFormat(2955,1944,15,1, AFU050_FMT_2592X1944 ));	
    //_Formats.push_back( cFormat(2955,1944,15,2, AFU050_FMT_2592X1944 ));	

    _Formats.push_back( cFormat(1920,1080,30,1, AFU050_FMT_1920X1080 ));	
    //_Formats.push_back( cFormat(1920,1080,15,1, AFU050_FMT_1920X1080 ));	
    //_Formats.push_back( cFormat(1920,1080,15,2, AFU050_FMT_1920X1080 ));	
    
    _Formats.push_back( cFormat(1280,960,60,1, AFU050_FMT_1280X960 ));	
    //_Formats.push_back( cFormat(1280,960,30,1, AFU050_FMT_1280X960 ));	
    //_Formats.push_back( cFormat(1280,960,15,1, AFU050_FMT_1280X960 ));	
    //_Formats.push_back( cFormat(1280,960,15,2, AFU050_FMT_1280X960 ));	
    _SelectedCamera = 0;
    
    AddProperty("Focus", PROP_AFU050_FOCUS, 0, 1, 1, 1, CProperty::BUTTON );
    AddProperty("Exposure auto", PROP_AFU050_EXPOSURE_AUTO, 0, 1, 1, 1, CProperty::BOOLEAN );
    AddProperty("Gain auto", PROP_AFU050_GAIN_AUTO, 0, 1, 1, 1, CProperty::BOOLEAN );
    AddProperty("WhiteBalance auto", PROP_AFU050_WB_AUTO, 0, 1, 1, 1, CProperty::BOOLEAN );
#endif
}
Ejemplo n.º 2
0
void igesStart::Serialize( igesArchive &ar)
{  
  CString cFormat("%");
  CString num;
  num.Format("%d", iSizeTextIges);
  cFormat += num;
  cFormat += "s%c%7d";
  CString szAsciiText = format( cFormat,//"%72s%c%7d", 
                                m_szAsciiText, 
                                m_cSectionType, 
                                m_rSequenceNum.m_iSequenceStartNum);
  ar << szAsciiText;
  return;
}