Project

General

Profile

RE: Adding new XMP namespaces ยป MP_v1.diff

Benjamin H., 05 Jan 2012 09:18

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 xmpMicrosoftPhotoInfo[];
95
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfoInfo[];
96
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfo[];
94 97

  
95 98
    extern const XmpNsInfo xmpNsInfo[] = {
96 99
        // Schemas   -   NOTE: Schemas which the XMP-SDK doesn't know must be registered in XmpParser::initialize - Todo: Automate this
......
117 120
        { "http://ns.useplus.org/ldf/xmp/1.0/",           "plus",           xmpPlusInfo,      N_("PLUS License Data Format schema")           },
118 121
        { "http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro",       xmpMediaProInfo,  N_("iView Media Pro schema")                    },
119 122
        { "http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia",xmpExpressionMediaInfo, N_("Expression Media schema")             },
123
        { "http://ns.microsoft.com/photo/1.2/",              "MP",    xmpMicrosoftPhotoInfo,           N_("Microsoft Photo 1.2 schema")       },
124
        { "http://ns.microsoft.com/photo/1.2/t/RegionInfo#", "MPRI",  xmpMicrosoftPhotoRegionInfoInfo, N_("Microsoft Photo RegionInfo Schema")},
125
        { "http://ns.microsoft.com/photo/1.2/t/Region#",     "MPReg", xmpMicrosoftPhotoRegionInfo,     N_("Microsoft Photo Region Schema")    },
120 126

  
121 127
        // Structures
122 128
        { "http://ns.adobe.com/xap/1.0/g/",                   "xapG",    0, N_("Colorant structure")           },
......
937 943
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
938 944
    };
939 945

  
946
    extern const XmpPropertyInfo xmpMicrosoftPhotoInfo[] = {
947
        { "RegionInfo", N_("RegionInfo"), "RegionInfo", xmpText, xmpInternal, N_("Microsoft Photo people-tagging metadata root") },
948
        // End of list marker
949
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
950
    };
951

  
952
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfoInfo[] = {
953
        { "DateRegionsValid", N_("DateRegionsValid"), "Date",       xmpText, xmpExternal, N_("Date the last region was created")  },
954
        { "Regions",          N_("Regions"),          "bag Region", xmpBag,  xmpExternal, N_("Contains Regions/person tags") },
955
        // End of list marker
956
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
957
    };
958

  
959
    extern const XmpPropertyInfo xmpMicrosoftPhotoRegionInfo[] = {
960
        { "PersonDisplayName", N_("PersonDisplayName"), "Text", xmpText, xmpExternal, N_("Name of the person (in the given rectangle)")                               },
961
        { "Rectangle",         N_("Rectangle"),         "Text", xmpText, xmpExternal, N_("Rectangle that identifies the person within the photo")                     },
962
        { "PersonEmailDigest", N_("PersonEmailDigest"), "Text", xmpText, xmpExternal, N_("SHA-1 encrypted message hash of the person's Windows Live e-mail address"), },
963
        { "PersonLiveCID",     N_("PersonLiveCID"),     "Text", xmpText, xmpExternal, N_("Signed decimal representation of the person's Windows Live CID")            },
964
        // End of list marker
965
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
966
    };
967

  
940 968
    extern const XmpPrintInfo xmpPrintInfo[] = {
941 969
        {"Xmp.crs.CropUnits",                 EXV_PRINT_TAG(crsCropUnits)   },
942 970
        {"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://ns.microsoft.com/photo/1.2/", "MP");
414
            SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/RegionInfo#", "MPRI");
415
            SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/Region#", "MPReg");
413 416
#else
414 417
            initialized_ = true;
415 418
#endif
    (1-1/1)