Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

int Impala::Core::Stream::RgbDataSrcFactory::SuggestSrc ( CString  srcName  )  [inline]

Definition at line 122 of file RgbDataSrcFactory.h.

References Impala::FileNameExt(), SRC_AVI, SRC_CAM, SRC_DX, SRC_INFO, SRC_LAVC, and SRC_RAW.

Referenced by Impala::Application::DataServer::AcceptRequest(), and Construct().

00123     {
00124         int src = SRC_AVI;
00125         if (srcName.compare(0, 6, "camera") == 0)
00126             src = SRC_CAM;
00127         String ext = FileNameExt(srcName, true);
00128 
00129 #ifdef DX_USED
00130         if (ext == "mpg")
00131             src = SRC_DX;
00132         if (ext == "mpeg")
00133             src = SRC_DX;
00134 #endif
00135 
00136 #ifdef AVC_USED
00137         if (ext == "mpg")
00138             src = SRC_LAVC;
00139         if (ext == "mpeg")
00140             src = SRC_LAVC;
00141         if (ext == "asf")
00142             src = SRC_LAVC;
00143 #endif
00144 
00145         if (ext == "info")
00146             src = SRC_INFO;
00147         if (ext == "raw")
00148             src = SRC_RAW;
00149 
00150         //if (ext == "bmp")
00151         //    src = SRC_BMP;
00152         //if (ext == "jpg")
00153         //    src = SRC_JPG;
00154         //if (ext == "png")
00155         //    src = SRC_PNG;
00156         //if (ext == "pnglist")
00157         //    src = SRC_PNGLIST;
00158 
00159 #ifdef unix
00160 #ifdef AVC_USED
00161         src = SRC_LAVC;
00162 #endif
00163 #endif
00164         return src;
00165     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:30 2011 for ImpalaSrc by  doxygen 1.5.1