| 1275 | } |
| 1276 | |
| 1277 | void WriteDescriptors(const image_t image_id, |
| 1278 | const FeatureDescriptors& descriptors) override { |
| 1279 | Sqlite3StmtContext context(sql_stmt_write_descriptors_); |
| 1280 | |
| 1281 | SQLITE3_CALL(sqlite3_bind_int64(sql_stmt_write_descriptors_, 1, image_id)); |
| 1282 | WriteDynamicMatrixBlob(sql_stmt_write_descriptors_, descriptors.data, 2); |
| 1283 | SQLITE3_CALL(sqlite3_bind_int( |
| 1284 | sql_stmt_write_descriptors_, 5, static_cast<int>(descriptors.type))); |
| 1285 | |
| 1286 | SQLITE3_CALL(sqlite3_step(sql_stmt_write_descriptors_)); |
| 1287 | } |
| 1288 | |
| 1289 | void WriteMatches(const image_t image_id1, |
| 1290 | const image_t image_id2, |