Project

General

Profile

RE: Adding new XMP namespaces ยป MWGRegions_v1.diff

Benjamin H., 06 Jan 2012 06:43

View differences:

properties.cpp (Arbeitskopie)
91 91
    extern const XmpPropertyInfo xmpPlusInfo[];
92 92
    extern const XmpPropertyInfo xmpMediaProInfo[];
93 93
    extern const XmpPropertyInfo xmpExpressionMediaInfo[];
94
    extern const XmpPropertyInfo xmpMWGRegionsInfo[];
94 95

  
95 96
    extern const XmpNsInfo xmpNsInfo[] = {
96 97
        // Schemas   -   NOTE: Schemas which the XMP-SDK doesn't know must be registered in XmpParser::initialize - Todo: Automate this
......
117 118
        { "http://ns.useplus.org/ldf/xmp/1.0/",           "plus",           xmpPlusInfo,      N_("PLUS License Data Format schema")           },
118 119
        { "http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro",       xmpMediaProInfo,  N_("iView Media Pro schema")                    },
119 120
        { "http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia",xmpExpressionMediaInfo, N_("Expression Media schema")             },
121
        { "http://www.metadataworkinggroup.com/schemas/regions/", "mwg-rs", xmpMWGRegionsInfo,N_("Metadata Working Group Regions schema")     },
120 122

  
121 123
        // Structures
122 124
        { "http://ns.adobe.com/xap/1.0/g/",                   "xapG",    0, N_("Colorant structure")           },
......
127 129
        { "http://ns.adobe.com/xap/1.0/sType/ResourceRef#",   "stRef",   0, N_("ResourceRef structure")        },
128 130
        { "http://ns.adobe.com/xap/1.0/sType/Version#",       "stVer",   0, N_("Version structure")            },
129 131
        { "http://ns.adobe.com/xap/1.0/sType/Job#",           "stJob",   0, N_("Basic Job/Workflow structure") },
132
        { "http://ns.adobe.com/xmp/sType/Area#",              "stArea",  0, N_("Area structure") },
130 133

  
131 134
        // Qualifiers
132 135
        { "http://ns.adobe.com/xmp/Identifier/qual/1.0/", "xmpidq", 0, N_("Qualifier for xmp:Identifier") }
......
937 940
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
938 941
    };
939 942

  
943
    extern const XmpPropertyInfo xmpMWGRegionsInfo[] = {
944
        { "Regions",             N_("Regions"),             "RegionInfo",       xmpText, xmpInternal, N_("Main structure containing region based information") },
945
        { "AppliedToDimensions", N_("AppliedToDimensions"), "Dimensions",       xmpText, xmpExternal, N_("Width and height of image when storing region data") },
946
        { "RegionList",          N_("RegionList"),          "bag RegionStruct", xmpBag,  xmpExternal, N_("List of Region structures")                          },
947
        { "Area",                N_("Area"),                "Area",             xmpText, xmpExternal, N_("Descriptive markers of catalog items by content") },
948
        { "Type",                N_("Type"),                "closed Choice of Text", xmpText, xmpExternal, N_("Type purpose of region (Face|Pet|Focus|BarCode)") },
949
        { "Name",                N_("Name"),                "Text",             xmpText, xmpExternal, N_("Name/ short description of content in image region") },
950
        { "Description",         N_("Description"),         "Text",             xmpText, xmpExternal, N_("Usage scenario for a given focus area (EvaluatedUsed|EvaluatedNotUsed|NotEvaluatedNotUsed)") },
951
        { "FocusUsage",          N_("FocusUsage"),          "closed Choice of Text", xmpText, xmpExternal, N_("Descriptive markers of catalog items by content") },
952
        { "BarCodeValue",        N_("BarCodeValue"),        "Text",             xmpText, xmpExternal, N_("Decoded BarCode value string") },
953
        { "Extensions",          N_("Extensions"),          "Text",             undefined, xmpInternal, N_("Any top level XMP property to describe the region content") },
954
        // End of list marker
955
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
956
    };
957

  
940 958
    extern const XmpPrintInfo xmpPrintInfo[] = {
941 959
        {"Xmp.crs.CropUnits",                 EXV_PRINT_TAG(crsCropUnits)   },
942 960
        {"Xmp.exif.ApertureValue",            print0x9202                   },
xmp.cpp (Arbeitskopie)
410 410
            SXMPMeta::RegisterNamespace("http://ns.useplus.org/ldf/xmp/1.0/", "plus");
411 411
            SXMPMeta::RegisterNamespace("http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro");
412 412
            SXMPMeta::RegisterNamespace("http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia");
413
            SXMPMeta::RegisterNamespace("http://www.metadataworkinggroup.com/schemas/regions/", "mwg-rs");
414
            SXMPMeta::RegisterNamespace("http://ns.adobe.com/xmp/sType/Area#", "stArea");
413 415
#else
414 416
            initialized_ = true;
415 417
#endif
    (1-1/1)