MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / Initialize

Method Initialize

xmpsdk/src/XMPMeta.cpp:642–802  ·  view source on GitHub ↗

class-static */

Source from the content-addressed store, hash-verified

640// ----------
641
642/* class-static */ bool
643XMPMeta::Initialize()
644{
645 // Allocate and initialize static objects.
646
647 ++sXMP_InitCount;
648 if ( sXMP_InitCount > 1 ) return true;
649
650 #if TraceXMPCalls
651 // xmpOut = fopen ( "xmp.out", "w" ); // Coordinate with client glue in WXMP_Common.hpp
652 fprintf ( xmpOut, "XMP initializing\n" ); fflush ( xmpOut );
653 #endif
654
655 sExceptionMessage = new XMP_VarString();
656 XMP_InitMutex ( &sXMPCoreLock );
657 sOutputNS = new XMP_VarString;
658 sOutputStr = new XMP_VarString;
659
660 xdefaultName = new XMP_VarString ( "x-default" );
661
662 sNamespaceURIToPrefixMap = new XMP_StringMap;
663 sNamespacePrefixToURIMap = new XMP_StringMap;
664 sRegisteredAliasMap = new XMP_AliasMap;
665
666 InitializeUnicodeConversions();
667
668 // Register standard namespaces and aliases.
669 RegisterNamespace ( kXMP_NS_XML, "xml" );
670 RegisterNamespace ( kXMP_NS_RDF, "rdf" );
671 RegisterNamespace ( kXMP_NS_DC, "dc" );
672
673 RegisterNamespace ( kXMP_NS_XMP, "xmp" );
674 RegisterNamespace ( kXMP_NS_PDF, "pdf" );
675 RegisterNamespace ( kXMP_NS_Photoshop, "photoshop" );
676 RegisterNamespace ( kXMP_NS_PSAlbum, "album" );
677 RegisterNamespace ( kXMP_NS_EXIF, "exif" );
678 RegisterNamespace ( kXMP_NS_EXIF_Aux, "aux" );
679 RegisterNamespace ( kXMP_NS_TIFF, "tiff" );
680 RegisterNamespace ( kXMP_NS_PNG, "png" );
681 RegisterNamespace ( kXMP_NS_JPEG, "jpeg" );
682 RegisterNamespace ( kXMP_NS_JP2K, "jp2k" );
683 RegisterNamespace ( kXMP_NS_CameraRaw, "crs" );
684 RegisterNamespace ( kXMP_NS_ASF, "asf" );
685 RegisterNamespace ( kXMP_NS_WAV, "wav" );
686
687 RegisterNamespace ( kXMP_NS_AdobeStockPhoto, "bmsp" );
688 RegisterNamespace ( kXMP_NS_CreatorAtom, "creatorAtom" );
689
690 RegisterNamespace ( kXMP_NS_XMP_Rights, "xmpRights" );
691 RegisterNamespace ( kXMP_NS_XMP_MM, "xmpMM" );
692 RegisterNamespace ( kXMP_NS_XMP_BJ, "xmpBJ" );
693 RegisterNamespace ( kXMP_NS_XMP_Note, "xmpNote" );
694
695 RegisterNamespace ( kXMP_NS_DM, "xmpDM" );
696 RegisterNamespace ( kXMP_NS_XMP_Text, "xmpT" );
697 RegisterNamespace ( kXMP_NS_XMP_PagedFile, "xmpTPg" );
698 RegisterNamespace ( kXMP_NS_XMP_Graphics, "xmpG" );
699 RegisterNamespace ( kXMP_NS_XMP_Image, "xmpGImg" );

Callers

nothing calls this directly

Calls 2

XMP_InitMutexFunction · 0.85

Tested by

no test coverage detected