| 385 | } |
| 386 | |
| 387 | Image ReadImageRow(sqlite3_stmt* sql_stmt) { |
| 388 | Image image; |
| 389 | |
| 390 | image.SetImageId(static_cast<image_t>(sqlite3_column_int64(sql_stmt, 0))); |
| 391 | image.SetName(std::string( |
| 392 | reinterpret_cast<const char*>(sqlite3_column_text(sql_stmt, 1)))); |
| 393 | image.SetCameraId(static_cast<camera_t>(sqlite3_column_int64(sql_stmt, 2))); |
| 394 | if (sqlite3_column_type(sql_stmt, 3) != SQLITE_NULL) { |
| 395 | image.SetFrameId(static_cast<frame_t>(sqlite3_column_int64(sql_stmt, 3))); |
| 396 | } |
| 397 | |
| 398 | return image; |
| 399 | } |
| 400 | |
| 401 | PosePrior ReadPosePriorRow(sqlite3_stmt* sql_stmt) { |
| 402 | PosePrior pose_prior; |
no test coverage detected