You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add interpretation, concepts, and EXIF value names
Introduce structured metadata interpretation and cross-family concept resolution plus human-readable EXIF/TIFF/DNG numeric value names. New public APIs: openmeta/metadata_interpretation.h, openmeta/metadata_concepts.h, and openmeta/exif_value_names.h (with implementations and tests). Update metadata_query to add SourceProcessing match and margin support, extend vendor_raw_processing groups, and add LibRaw orientation conflict reporting in libraw_adapter. Wire new sources/tests into CMake and update docs/quick start, host integration, and stability pages to document the new helper contracts. These changes provide iterable interpretation records, bounded concept resolution for orientation/date/time/color/GPS, and stable labels for common enum-like numeric tag values to aid host UIs and transfer/inspection workflows.
Copy file name to clipboardExpand all lines: docs/api_stability.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,10 @@ different status.
23
23
|`ExportNameStyle::Canonical` and `ExportNameStyle::XmpPortable`|`openmeta/interop_export.h`| Stable | Stable naming modes for key-space-aware and portable exports. |
| EXIF/TIFF orientation helpers: `interpret_exif_orientation(...)`, `exif_orientation_name(...)`, `exif_orientation_rotation_degrees_cw(...)`, `exif_orientation_rotation_only(...)`|`openmeta/orientation.h`| Stable | Small utility contract for user-facing orientation labels, clockwise rotation degrees, mirrored-state detection, dimension-swap detection, and rotation-only fallbacks. Python exposes the same helpers through thin scalar/dictionary wrappers. |
26
-
| Semantic metadata query: `query_metadata(...)`, `query_crop_metadata(...)`, focused query helpers, and `metadata_query_fuzzy_search_available()` | `openmeta/metadata_query.h` | Experimental | Query contract for inspection matches plus normalized candidates. Current coverage includes crop/active-area, exposure/gain, white balance, color, lens correction, orientation, and RAW-processing metadata across standard tags, selected DNG tags, fuzzy XMP paths, and vendor RAW-processing classification. Matches report `exact_match`, `fuzzy_match`, and `fuzzy_score` so tools can label exact results separately from RapidFuzz near-miss hits. `OPENMETA_ENABLE_RAPIDFUZZ=ON` adds optional near-miss XMP/property-path scoring. Grouped candidates include `matrix_set`, `vector_set`, and `table` shapes for related non-crop metadata, including RAW black/white levels, linearization, CFA/sensor layout, source geometry, and raw-storage identifiers. Python `Document` and `TransferSourceSnapshot` mirror this as thin dictionary-returning wrappers. |
26
+
| EXIF/TIFF/DNG numeric value names: `exif_tag_numeric_value_name(...)` and focused helpers |`openmeta/exif_value_names.h`| Stable | Small helper contract for common enum-like TIFF/EXIF/DNG numeric values such as compression, photometric interpretation, planar configuration, exposure program, metering mode, light source, flash, color space, white balance, scene capture type, gain control, CFA layout, and DNG calibration illuminants. Unknown values return an empty string and remain lossless numeric metadata. |
27
+
| Semantic metadata query: `query_metadata(...)`, `query_crop_metadata(...)`, focused query helpers, and `metadata_query_fuzzy_search_available()` | `openmeta/metadata_query.h` | Experimental | Query contract for inspection matches plus normalized candidates. Current coverage includes crop/active-area/border margins, exposure/gain, white balance, color, lens correction, orientation, and RAW/source-processing metadata across standard tags, selected DNG tags, fuzzy XMP paths, and vendor RAW-processing classification. Matches report `exact_match`, `fuzzy_match`, and `fuzzy_score` so tools can label exact results separately from RapidFuzz near-miss hits. `OPENMETA_ENABLE_RAPIDFUZZ=ON` adds optional near-miss XMP/property-path scoring. Grouped candidates include `matrix_set`, `vector_set`, and `table` shapes for related non-crop metadata, including RAW black/white levels, linearization, CFA/sensor layout, source geometry, raw-storage identifiers, and source-processing buckets. Python `Document` and `TransferSourceSnapshot` mirror this as thin dictionary-returning wrappers. |
28
+
| Structured metadata interpretation records: `interpret_metadata(...)`, `interpret_metadata_query(...)`|`openmeta/metadata_interpretation.h`| Experimental | Thin structured projection over semantic query candidates. Records carry query class, semantic kind, normalized shape, confidence, source entry ids, and normalized origin/size/rect/margins/value arrays where available. Current scope covers orientation, geometry/crop/border, exposure/gain, color/white-balance, lens-correction, and RAW/source-processing records. Python `Document` and `TransferSourceSnapshot` expose matching dictionary wrappers. |
29
+
| Cross-family concept resolution: `resolve_metadata_concepts(...)`, `resolve_metadata_concept(...)`|`openmeta/metadata_concepts.h`| Experimental | First bounded resolver for duplicated host-facing concepts. Current scope reports candidates, candidate source entries, source families, preferred entries, normalized numeric/text keys, normalized date/time fields, and same-role conflicts for orientation, date/time, color/profile, and GPS evidence across EXIF, XMP, IPTC, ICC, and PNG text where applicable. GPS date/time is combined from `GPSDateStamp` plus `GPSTimeStamp` when both entries exist. It is intended for inspection UI and host policy decisions; it does not rewrite metadata or hide ambiguity. Python `Document` and `TransferSourceSnapshot` expose matching dictionary wrappers. |
27
30
| Vendor RAW-processing summaries: `vendor_raw_processing_from_store(...)`, `classify_vendor_raw_processing_field(...)`|`openmeta/vendor_raw_processing.h`| Experimental | Conservative grouped source-RAW/source-processing field summaries for decoded Sony, Canon, Nikon, Fujifilm, Pentax, Panasonic, Olympus, Kodak, Minolta, Sigma, Samsung, Ricoh, Apple, DJI, Google, FLIR, Casio, Sanyo, KyoceraRaw, Reconyx, HP, JVC, GE, Motorola, Nintendo, and Microsoft MakerNotes, including vendor-private, computational, thermal, preview, face-geometry, stitch/panorama, Apple computational capture/HDR/motion, DJI pose/thermal, Google HDR+/shot-log, and FLIR radiometric/raw-value buckets. Intended for audit/UI and rendered-transfer safety decisions, not for writing vendor RAW/source-processing values into rendered targets. |
28
31
| Transfer safety audit: `transfer_safety_audit_from_store(...)`|`openmeta/metadata_transfer.h`| Experimental | Preflight summary of source entries and entries filtered or invalidated by `TransferSafetyMode`, including Sony/Canon/Nikon/Fujifilm/Pentax/Panasonic/Olympus/Kodak/Minolta/Sigma/Samsung/Ricoh/Apple/DJI/Google/FLIR/Casio/Sanyo/KyoceraRaw/Reconyx/HP/JVC/GE/Motorola/Nintendo/Microsoft RAW/source-processing buckets. Intended for diagnostics and host UI before preparing rendered-image transfers. |
29
32
| Raw-carrier passthrough audit: `raw_carrier_passthrough_audit_from_snapshot(...)`|`openmeta/metadata_transfer.h`| Experimental | Diagnostic preflight for opt-in raw carriers. Reports candidate carriers and primary block reasons such as missing payload, target incompatibility, safety filtering, content-bound C2PA, explicit profile policy, missing decoded-entry links, or unsupported carrier kind. Hosts can call it directly before enabling snapshot passthrough. |
Copy file name to clipboardExpand all lines: docs/development.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ model should stay compact:
18
18
| --- | --- | --- |
19
19
| Decoding | Find metadata carriers and decode EXIF, XMP, IPTC, ICC, Photoshop IRB, JUMBF/C2PA, EXR, and related blocks into `MetaStore` entries. | High, about 98-100% for the current target scope. |
20
20
| Interpretation | Normalize names and values, group entries by meaning, and classify source-bound data such as RAW crop, color, lens-correction, sensor, and vendor-private fields. | Medium-high, about 80%. |
21
-
| Query | Find entries by name, fuzzy term, or semantic group, for example crop/border/active-area, exposure/gain, color/WB, orientation, lens-correction, and RAW-processing fields across standard and vendor metadata. |Low, about 25-30%. |
21
+
| Query | Find entries by name, fuzzy term, or semantic group, then expose normalized query candidates, structured interpretation records, and bounded cross-family concept resolutions for crop/border/active-area, exposure/gain, color/WB, orientation, date/time, GPS, lens-correction, and RAW/source-processing fields across standard and vendor metadata. |Medium, about 50-60%. |
22
22
| Creation | Build fresh metadata entries from host-provided values. | Medium, about 55-65%. |
23
23
| Editing | Modify existing logical metadata entries while preserving valid surrounding structure. | Medium, about 60-70%. |
24
24
| Transfer | Move metadata between files using explicit compatible-file or rendered-image safety policies. | Medium-high, about 80-85%. |
@@ -41,13 +41,15 @@ RAW-processing queries.
41
41
Crop queries include DNG crop tags, `ActiveArea`, Phase One/Leaf raw geometry,
42
42
and fuzzy crop/border-style XMP property paths. The non-crop queries expose
43
43
per-entry value candidates and reuse standard tag names, selected DNG tags,
44
-
fuzzy XMP paths, and vendor RAW-processing classification where applicable.
44
+
fuzzy XMP paths, canonical border-margin parsing, and vendor RAW-processing
45
+
classification where applicable.
45
46
They also append grouped candidates for related DNG color matrix/calibration/
46
47
reduction/forward matrix tags, DNG white-balance vector tags, and
47
48
lens-correction table groups. RAW-processing queries add conservative groups
48
49
for black/white levels, linearization tables, CFA/sensor layout, source
49
-
geometry, and raw-storage identifiers. Grouped candidates use `matrix_set`,
50
-
`vector_set`, and `table` value shapes. When
50
+
geometry, raw-storage identifiers, and source-private processing buckets.
51
+
Grouped candidates use `matrix_set`, `vector_set`, and `table` value shapes.
52
+
When
51
53
`OPENMETA_ENABLE_RAPIDFUZZ=ON`, the same query helpers also use RapidFuzz to
52
54
score near-miss XMP/property paths; default builds keep the deterministic
53
55
substring/tag matcher only. Each raw match reports `exact_match`,
@@ -56,6 +58,19 @@ matches from near-miss search hits.
56
58
Python `Document` and `TransferSourceSnapshot` mirror this as thin wrappers
57
59
returning the same match/candidate dictionary shape.
58
60
61
+
For code that wants an iterable semantic record stream instead of raw query
62
+
matches, use `openmeta/metadata_interpretation.h`. It projects query candidates
63
+
into records with query class, semantic kind, normalized shape, confidence,
64
+
source entries, and normalized geometry/value arrays where available.
65
+
66
+
For cross-family duplicated concepts, use `openmeta/metadata_concepts.h`.
67
+
It currently resolves orientation, date/time, color/profile, and GPS into
68
+
candidate lists with candidate source entries, source families, preferred
69
+
entries, normalized compare keys, parsed date/time fields, and same-role
70
+
conflict flags. This is deliberately an inspection/policy surface; host code
71
+
still decides whether a conflict should be shown, ignored, or corrected during
0 commit comments