exif_oxide/generated/XMP_pm/
stdxlatns.rs

1//! Standard XMP namespace prefix translations
2//!
3//! Auto-generated from third-party/exiftool/lib/Image/ExifTool/XMP.pm
4//! DO NOT EDIT MANUALLY - changes will be overwritten by codegen
5
6use std::collections::HashMap;
7use std::sync::LazyLock;
8
9/// Raw data (7 entries)
10static STD_XLAT_NS_DATA: &[(&'static str, &'static str)] = &[
11    ("GettyImagesGIFT", "getty"),
12    ("Iptc4xmpCore", "iptcCore"),
13    ("Iptc4xmpExt", "iptcExt"),
14    ("MicrosoftPhoto", "microsoft"),
15    ("hdr_metadata", "hdr"),
16    ("photomechanic", "photomech"),
17    ("prismusagerights", "pur"),
18];
19
20/// Lookup table (lazy-initialized)
21pub static STD_XLAT_NS: LazyLock<HashMap<&'static str, &'static str>> =
22    LazyLock::new(|| STD_XLAT_NS_DATA.iter().copied().collect());
23
24/// Look up value by key
25pub fn lookup_std_xlat_ns(key: &str) -> Option<&'static str> {
26    STD_XLAT_NS.get(key).copied()
27}