LensSerious
0.1
Lens-correction mathematics as data, not as a library of callbacks
Loading...
Searching...
No Matches
import_lensfun_xml.c
Go to the documentation of this file.
1
/*
2
LensSerious — the periodic rebuild, as a command.
3
4
Copyright (C) 2026 Aurélien PIERRE.
5
License: LGPL-3.0-or-later (see LICENSE).
6
*/
7
18
#include "
lensserious_import.h
"
19
20
#include <stdio.h>
21
22
int
main
(
int
argc,
char
**argv)
23
{
24
if
(argc < 3)
25
{
26
fprintf(stderr,
27
"usage: %s <schema.sql> <out.db> [lensfun-xml-dir]\n"
28
"\n"
29
"Reads the lensfun database and writes it as a LensSerious SQLite database.\n"
30
"The output is written to a temporary file and renamed into place, so readers\n"
31
"using immutable=1 never see a partial file -- see lensserious_db.h.\n"
32
"\n"
33
"With no directory, lensfun's own lf_db_load() is used, which searches all\n"
34
"four standard locations and applies lensfun's own override rules -- including\n"
35
"the user's hand-written profiles. Give a directory to read exactly that one,\n"
36
"which is what a reproducible package build wants.\n"
,
37
argv[0]);
38
return
2;
39
}
40
41
return
ls_import_run
(argv[1], argv[2], NULL, (argc > 3) ? argv[3] : NULL);
42
}
main
int main(int argc, char **argv)
Definition
import_lensfun_xml.c:22
lensserious_import.h
Turn a lensfun database into a LensSerious one.
ls_import_run
int ls_import_run(const char *schema_path, const char *out_path, const char *base_xml_dir, const char *xml_dir)
Read a lensfun database and write it as a LensSerious SQLite file.
Definition
lensserious_import.c:291
tools
import_lensfun_xml.c
Generated by
1.12.0