| 435 | fprintf(stderr, "error: unsupported vision_n_layers in %s: %" PRId64 "\n", |
| 436 | path, count_layers); |
| 437 | exit(1); |
| 438 | } |
| 439 | m.vision_exp = true; |
| 440 | if (!source_revision || strcmp(source_revision, DS4_VISION_EXP_SOURCE_REVISION) != 0) { |
| 441 | fprintf(stderr, |
| 442 | "error: Vision-Exp conversion requires --source-revision %s\n", |
| 443 | DS4_VISION_EXP_SOURCE_REVISION); |
| 444 | exit(1); |
| 445 | } |
| 446 | } |
| 447 | if (source_revision) m.source_revision = xstrdup(source_revision); |
| 448 | |
| 449 | json_free(&d); |
| 450 | free(text); |
| 451 | free(path); |
no test coverage detected