Definition at line 105 of file TableDataSourceSqliteDb.h. References ILOG_WARN, mSqlDb, and Impala::Core::Array::ReadJpgFromMemory(). 00106 { 00107 CppSQLite3Buffer b; 00108 b.format("select data from cache where idx = '%d';", index); 00109 CppSQLite3Query q = mSqlDb->execQuery(b); 00110 00111 //ILOG_DEBUG("ASPECT = " << mAspectRatio << " --> w=" << mNormW << " h=" << mNormH); 00112 if (q.fieldIsNull("data")) 00113 { 00114 ILOG_WARN("no thumbnail found for " << index); 00115 return 0; 00116 } 00117 00118 int length; 00119 const unsigned char* image= q.getBlobField("data", length); 00120 00121 Core::Array::Array2dVec3UInt8* datastream = 0; 00122 ReadJpgFromMemory(datastream, (char*)image, length); 00123 return datastream; 00124 }
Here is the call graph for this function:
|