Definition at line 226 of file RgbDataSrcLavc_old.h. References ILOG_DEBUG, ILOG_ERROR, InitCodecCtx(), InitFFMPEG(), InitFormatCtx(), InitFrames(), InitStreams(), mMode, Impala::Core::Stream::RgbDataSrc::mSrcName, mValid, PopulateIndex(), PrepareForReading(), Impala::Core::Stream::RgbDataSrcInfo::ReadInfo(), Reset(), Impala::Core::Stream::LAVCException::what(), and Impala::Core::Stream::RgbDataSrcInfo::WriteInfo(). Referenced by RgbDataSrcLavc_old(). 00227 { 00228 try 00229 { 00230 InitFFMPEG(); 00231 InitFormatCtx(); 00232 InitStreams(); 00233 InitCodecCtx(); 00234 InitFrames(); 00235 00236 if (!PrepareForReading()) 00237 { 00238 mValid = false; 00239 return; 00240 } 00241 00242 if (mMode != NOCHECK) 00243 { 00244 if (mMode == READIDX && !ReadInfo()) 00245 { 00246 throw LAVCException("Could not read info file for: " + 00247 mSrcName, 0); 00248 } 00249 00250 else if (mMode == WITHIDX) 00251 { 00252 if (!ReadInfo(true)) 00253 PopulateIndex(); 00254 } 00255 00256 else if (mMode == ADHOCIDX) 00257 { 00258 // Create but don't store 00259 PopulateIndex(); 00260 } 00261 00262 else if (mMode == WRITEIDX) 00263 { 00264 // Create and store 00265 PopulateIndex(); 00266 WriteInfo(); 00267 } 00268 00269 Reset(); 00270 } 00271 } 00272 catch (LAVCException& e) 00273 { 00274 mValid = false; 00275 ILOG_ERROR("Initialization failed: " << e.what()); 00276 return; 00277 } 00278 00279 mValid = true; 00280 ILOG_DEBUG("Initialization succeeded"); 00281 }
Here is the call graph for this function:
|