Lines Matching defs:fptr
335 FILE * fptr = fopen(filename.c_str(), "r");
337 if (!fptr) {
342 FscanfOrDie(fptr, "%d", &num_cameras_);
343 FscanfOrDie(fptr, "%d", &num_points_);
344 FscanfOrDie(fptr, "%d", &num_observations_);
358 FscanfOrDie(fptr, "%d", camera_index_ + i);
359 FscanfOrDie(fptr, "%d", point_index_ + i);
361 FscanfOrDie(fptr, "%lf", observations_ + 2*i + j);
366 FscanfOrDie(fptr, "%lf", parameters_ + i);
408 void FscanfOrDie(FILE *fptr, const char *format, T *value) {
409 int num_scanned = fscanf(fptr, format, value);