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

void Impala::Core::Stream::RgbDataSrcCam::Init ( String  srcName  )  [inline, private]

Definition at line 55 of file RgbDataSrcCam.h.

References Impala::atoi(), ILOG_DEBUG, ILOG_ERROR, ILOG_INFO, Impala::Core::Stream::RgbDataSrc::mFrameHeight, Impala::Core::Stream::RgbDataSrc::mFrameWidth, Impala::Core::Stream::RgbDataSrc::mLastFrame, mSrcHandle, and Impala::StringReplace().

Referenced by RgbDataSrcCam().

00056     {
00057         srcName = StringReplace(srcName, "camera", "");
00058         int devNr = 0;
00059         char** devices = HxDXListTVDevices();
00060         if (srcName.size() > 0)
00061         {
00062             devNr = atoi(srcName);
00063         }
00064         else
00065         {
00066             while (devices[devNr])
00067             {
00068                 ILOG_DEBUG("dev " << devNr << " = " << devices[devNr]);
00069                 devNr++;
00070             }
00071             devNr = devNr - 1;
00072         }
00073 
00074         mSrcHandle = HxDXInitTV(devNr);
00075         if (!mSrcHandle)
00076         {
00077             ILOG_ERROR("Unable to initialize device " << devNr);
00078             int i=0;
00079             while (devices[i])
00080             {
00081                 ILOG_INFO("  device " << i << " = " << devices[i]);
00082                 i++;
00083             }
00084             return;
00085         }
00086 
00087         mFrameWidth = HxDXGetTVWidth(mSrcHandle);
00088         mFrameHeight = HxDXGetTVHeight(mSrcHandle);
00089         mLastFrame = 1000000000;
00090     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:17:15 2010 for ImpalaSrc by  doxygen 1.5.1