template<class ArrayT>
Definition at line 19 of file WriteFile.h. References Impala::FileNameExt(), Impala::Persistency::File::GetPath(), ILOG_ERROR, ILOG_VAR, WriteJpg(), WritePng(), and WriteRaw(). Referenced by Impala::Persistency::ImageRepositoryInFile::Add(), and Impala::Persistency::FrameRepositoryInFile::Add(). 00020 { 00021 ILOG_VAR(Impala.Core.Array.WriteFile); 00022 String nameExt = FileNameExt(file.GetPath(), true); 00023 if (nameExt == "raw") 00024 { 00025 WriteRaw(src, file, 1); 00026 return true; 00027 } 00028 if ((nameExt == "jpg") || (nameExt == "jpeg")) 00029 return WriteJpg(src, file); 00030 if (nameExt == "png") 00031 return WritePng(src, file); 00032 ILOG_ERROR("Don't know how to write " << file.GetPath()); 00033 return false; 00034 }
Here is the call graph for this function:
|