| XMP Toolkit SDK 6.0.0

XMP_Const.h
Go to the documentation of this file.
1 #ifndef __XMP_Const_h__
2 #define __XMP_Const_h__ 1
3
4 // =================================================================================================
5 // Copyright 2002 Adobe
6 // All Rights Reserved.
7 //
8 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
9 // of the Adobe license agreement accompanying it. If you have received this file from a source other
10 // than Adobe, then your use, modification, or distribution of it requires the prior written permission
11 // of Adobe.
12 // =================================================================================================
13
14 #include "XMP_Environment.h"
15
16 #include <stddef.h>
17
18 #if XMP_MacBuild | XMP_iOSBuild // ! No stdint.h on Windows and some UNIXes.
19 #include <stdint.h>
20 #endif
21 //Android has both inttypes and stdint. But inttypes includes stdint plus other functions
22 #if XMP_UNIXBuild | XMP_AndroidBuild // hopefully an inttypes.h on all UNIXes...
23 #include <inttypes.h>
24 #endif
25
26 #ifndef XMP_MARKER_EXTENSIBILITY_BACKWARD_COMPATIBILITY
27 #define XMP_MARKER_EXTENSIBILITY_BACKWARD_COMPATIBILITY 1
28 #endif
29
30 #if XMP_iOSBuild
31 #define __AVAILABILITY_INTERNAL_DEPRECATED_XMP __AVAILABILITY_INTERNAL_DEPRECATED
32 #else
33 #define __AVAILABILITY_INTERNAL_DEPRECATED_XMP
34 #endif
35
36 #if __cplusplus
37 extern "C" {
38 #endif
39
40 // =================================================================================================
43 // =================================================================================================
44
45 // =================================================================================================
46 // Basic types and constants
47 // =========================
48
49 // The XMP_... types are used on the off chance that the ..._t types present a problem. In that
50 // case only the declarations of the XMP_... types needs to change, not all of the uses. These
51 // types are used where fixed sizes are required in order to have a known ABI for a DLL build.
52
53 #if XMP_MacBuild | XMP_iOSBuild
54
55 typedef int8_t XMP_Int8;
56 typedef int16_t XMP_Int16;
57 typedef int32_t XMP_Int32;
58 typedef int64_t XMP_Int64;
59
60 typedef uint8_t XMP_Uns8;
61 typedef uint16_t XMP_Uns16;
62 typedef uint32_t XMP_Uns32;
63 typedef uint64_t XMP_Uns64;
64
65 #elif XMP_WinBuild
66
67 typedef signed char XMP_Int8;
68 typedef signed short XMP_Int16;
69 typedef signed long XMP_Int32;
70 typedef signed long long XMP_Int64;
71
72 typedef unsigned char XMP_Uns8;
73 typedef unsigned short XMP_Uns16;
74 typedef unsigned long XMP_Uns32;
75 typedef unsigned long long XMP_Uns64;
76
77 #elif XMP_UNIXBuild | XMP_AndroidBuild
78
79 #if ! XMP_64
80
81 typedef signed char XMP_Int8;
82 typedef signed short XMP_Int16;
83 typedef signed long XMP_Int32;
84 typedef signed long long XMP_Int64;
85
86 typedef unsigned char XMP_Uns8;
87 typedef unsigned short XMP_Uns16;
88 typedef unsigned long XMP_Uns32;
89 typedef unsigned long long XMP_Uns64;
90
91 #else
92
93 typedef signed char XMP_Int8;
94 typedef signed short XMP_Int16;
95 typedef signed int XMP_Int32;
96 typedef signed long long XMP_Int64;
97
98 typedef unsigned char XMP_Uns8;
99 typedef unsigned short XMP_Uns16;
100 typedef unsigned int XMP_Uns32;
101 typedef unsigned long long XMP_Uns64;
102
103 #endif
104
105 #else
106
107 #error "XMP environment error - must define one of XMP_MacBuild, XMP_WinBuild, XMP_UNIXBuild, XMP_AndroidBuild or XMP_iOSBuild"
108
109 #endif
110
111 typedef XMP_Uns8 XMP_Bool;
112
113 const XMP_Uns8 kXMP_Bool_False = 0;
114
115 #define ConvertXMP_BoolToBool(a) (a) != kXMP_Bool_False
116 #define ConvertBoolToXMP_Bool(a) (a) ? !kXMP_Bool_False : kXMP_Bool_False
117
118 static const XMP_Uns8 Min_XMP_Uns8 = ( (XMP_Uns8) 0x00 );
119 static const XMP_Uns8 Max_XMP_Uns8 = ( (XMP_Uns8) 0xFF );
120 static const XMP_Uns16 Min_XMP_Uns16 = ( (XMP_Uns16) 0x00 );
121 static const XMP_Uns16 Max_XMP_Uns16 = ( (XMP_Uns16) 0xFFFF );
122 static const XMP_Uns32 Min_XMP_Uns32 = ( (XMP_Uns32) 0x00 );
123 static const XMP_Uns32 Max_XMP_Uns32 = ( (XMP_Uns32) 0xFFFFFFFF );
124 static const XMP_Uns64 Min_XMP_Uns64 = ( (XMP_Uns64) 0x00 );
125 static const XMP_Uns64 Max_XMP_Uns64 = ( (XMP_Uns64) 0xFFFFFFFFFFFFFFFFLL );
126
127 static const XMP_Int8 Min_XMP_Int8 = ( (XMP_Int8) 0x80 );
128 static const XMP_Int8 Max_XMP_Int8 = ( (XMP_Int8) 0x7F );
129 static const XMP_Int16 Min_XMP_Int16 = ( (XMP_Int16) 0x8000 );
130 static const XMP_Int16 Max_XMP_Int16 = ( (XMP_Int16) 0x7FFF );
131 static const XMP_Int32 Min_XMP_Int32 = ( (XMP_Int32) 0x80000000 );
132 static const XMP_Int32 Max_XMP_Int32 = ( (XMP_Int32) 0x7FFFFFFF );
133 static const XMP_Int64 Min_XMP_Int64 = ( (XMP_Int64) 0x8000000000000000LL );
134 static const XMP_Int64 Max_XMP_Int64 = ( (XMP_Int64) 0x7FFFFFFFFFFFFFFFLL );
135
136
139 typedef struct __XMPMeta__ * XMPMetaRef;
140
143 typedef struct __XMPIterator__ * XMPIteratorRef;
144
147 typedef struct __XMPDocOps__ * XMPDocOpsRef;
148
151 typedef struct __XMPFiles__ * XMPFilesRef;
152
153 // =================================================================================================
154
157
161
165
169
177
178 typedef const char * XMP_StringPtr; // Points to a null terminated UTF-8 string.
179 typedef XMP_Uns32 XMP_StringLen;
180 typedef XMP_Int32 XMP_Index; // Signed, sometimes -1 is handy.
181 typedef XMP_Uns32 XMP_OptionBits; // Used as 32 individual bits.
182
187
192
193 #define kXMP_TrueStr "True" // Serialized XMP spellings, not for the type bool.
194 #define kXMP_FalseStr "False"
195
198 enum {
200 kXMPTS_Yes = 1,
202 kXMPTS_No = 0,
204 kXMPTS_Maybe = -1
205 };
206 typedef XMP_Int8 XMP_TriState;
207
209
210 // =================================================================================================
211
231
232 struct XMP_DateTime {
233
235 XMP_Int32 year;
236
238 XMP_Int32 month;
239
241 XMP_Int32 day;
242
244 XMP_Int32 hour;
245
247 XMP_Int32 minute;
248
250 XMP_Int32 second;
251
253 XMP_Bool hasDate;
254
256 XMP_Bool hasTime;
257
259 XMP_Bool hasTimeZone;
260
263 XMP_Int8 tzSign;
264
266 XMP_Int32 tzHour;
267
269 XMP_Int32 tzMinute;
270
272 XMP_Int32 nanoSecond;
273
274 #if __cplusplus
275 XMP_DateTime() : year(0), month(0), day(0), hour(0), minute(0), second(0),
276 hasDate(false),hasTime(false), hasTimeZone(false), tzSign(0), tzHour(0), tzMinute(0), nanoSecond(0){};
277 #endif
278
279 };
280
282 enum {
284 kXMP_TimeWestOfUTC = -1,
286 kXMP_TimeIsUTC = 0,
288 kXMP_TimeEastOfUTC = +1
289 };
290
291 #define XMPDateTime_IsDateOnly(dt) ((dt).hasDate & (! (dt).hasTime))
292 #define XMPDateTime_IsTimeOnly(dt) ((dt).hasTime & (! (dt).hasDate))
293
294 #define XMPDateTime_ClearTimeZone(dt) { (dt).hasTimeZone = (dt).tzSign = (dt).tzHour = (dt).tzMinute = 0; }
295
296 // =================================================================================================
297 // Standard namespace URI constants
298 // ================================
299
334
335 #define kXMP_NS_XMP "http://ns.adobe.com/xap/1.0/"
336
337 #define kXMP_NS_XMP_Rights "http://ns.adobe.com/xap/1.0/rights/"
338 #define kXMP_NS_XMP_MM "http://ns.adobe.com/xap/1.0/mm/"
339 #define kXMP_NS_XMP_BJ "http://ns.adobe.com/xap/1.0/bj/"
340
341 #define kXMP_NS_PDF "http://ns.adobe.com/pdf/1.3/"
342 #define kXMP_NS_Photoshop "http://ns.adobe.com/photoshop/1.0/"
343 #define kXMP_NS_PSAlbum "http://ns.adobe.com/album/1.0/"
344 #define kXMP_NS_EXIF "http://ns.adobe.com/exif/1.0/"
345 #define kXMP_NS_EXIF_Aux "http://ns.adobe.com/exif/1.0/aux/"
346 #define kXMP_NS_TIFF "http://ns.adobe.com/tiff/1.0/"
347 #define kXMP_NS_PNG "http://ns.adobe.com/png/1.0/"
348 #define kXMP_NS_SWF "http://ns.adobe.com/swf/1.0/"
349 #define kXMP_NS_JPEG "http://ns.adobe.com/jpeg/1.0/"
350 #define kXMP_NS_JP2K "http://ns.adobe.com/jp2k/1.0/"
351 #define kXMP_NS_CameraRaw "http://ns.adobe.com/camera-raw-settings/1.0/"
352 #define kXMP_NS_DM "http://ns.adobe.com/xmp/1.0/DynamicMedia/"
353 #define kXMP_NS_Script "http://ns.adobe.com/xmp/1.0/Script/"
354 #define kXMP_NS_ASF "http://ns.adobe.com/asf/1.0/"
355 #define kXMP_NS_WAV "http://ns.adobe.com/xmp/wav/1.0/"
356 #define kXMP_NS_BWF "http://ns.adobe.com/bwf/bext/1.0/"
357 #define kXMP_NS_AEScart "http://ns.adobe.com/aes/cart/"
358 #define kXMP_NS_RIFFINFO "http://ns.adobe.com/riff/info/"
359 #define kXMP_NS_iXML "http://ns.adobe.com/ixml/1.0/"
360 #define kXMP_NS_XMP_Note "http://ns.adobe.com/xmp/note/"
361
362 #define kXMP_NS_AdobeStockPhoto "http://ns.adobe.com/StockPhoto/1.0/"
363 #define kXMP_NS_CreatorAtom "http://ns.adobe.com/creatorAtom/1.0/"
364
365 #define kXMP_NS_ExifEX "http://cipa.jp/exif/1.0/"
366
392
393 #define kXMP_NS_XMP_IdentifierQual "http://ns.adobe.com/xmp/Identifier/qual/1.0/"
394 #define kXMP_NS_XMP_Dimensions "http://ns.adobe.com/xap/1.0/sType/Dimensions#"
395 #define kXMP_NS_XMP_Text "http://ns.adobe.com/xap/1.0/t/"
396 #define kXMP_NS_XMP_PagedFile "http://ns.adobe.com/xap/1.0/t/pg/"
397 #define kXMP_NS_XMP_Graphics "http://ns.adobe.com/xap/1.0/g/"
398 #define kXMP_NS_XMP_Image "http://ns.adobe.com/xap/1.0/g/img/"
399 #define kXMP_NS_XMP_Font "http://ns.adobe.com/xap/1.0/sType/Font#"
400 #define kXMP_NS_XMP_ResourceEvent "http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
401 #define kXMP_NS_XMP_ResourceRef "http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
402 #define kXMP_NS_XMP_ST_Version "http://ns.adobe.com/xap/1.0/sType/Version#"
403 #define kXMP_NS_XMP_ST_Job "http://ns.adobe.com/xap/1.0/sType/Job#"
404 #define kXMP_NS_XMP_ManifestItem "http://ns.adobe.com/xap/1.0/sType/ManifestItem#"
405
406 // Deprecated XML namespace constants
407 #define kXMP_NS_XMP_T "http://ns.adobe.com/xap/1.0/t/"
408 #define kXMP_NS_XMP_T_PG "http://ns.adobe.com/xap/1.0/t/pg/"
409 #define kXMP_NS_XMP_G_IMG "http://ns.adobe.com/xap/1.0/g/img/"
410
430
431 #define kXMP_NS_DC "http://purl.org/dc/elements/1.1/"
432
433 #define kXMP_NS_IPTCCore "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
434 #define kXMP_NS_IPTCExt "http://iptc.org/std/Iptc4xmpExt/2008-02-29/"
435
436 #define kXMP_NS_DICOM "http://ns.adobe.com/DICOM/"
437
438 #define kXMP_NS_PLUS "http://ns.useplus.org/ldf/xmp/1.0/"
439
440 #define kXMP_NS_PDFA_Schema "http://www.aiim.org/pdfa/ns/schema#"
441 #define kXMP_NS_PDFA_Property "http://www.aiim.org/pdfa/ns/property#"
442 #define kXMP_NS_PDFA_Type "http://www.aiim.org/pdfa/ns/type#"
443 #define kXMP_NS_PDFA_Field "http://www.aiim.org/pdfa/ns/field#"
444 #define kXMP_NS_PDFA_ID "http://www.aiim.org/pdfa/ns/id/"
445 #define kXMP_NS_PDFA_Extension "http://www.aiim.org/pdfa/ns/extension/"
446
447 #define kXMP_NS_PDFX "http://ns.adobe.com/pdfx/1.3/"
448 #define kXMP_NS_PDFX_ID "http://www.npes.org/pdfx/ns/id/"
449
450 #define kXMP_NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
451 #define kXMP_NS_XML "http://www.w3.org/XML/1998/namespace"
452
453 // =================================================================================================
454 // Enums and macros used for option bits
455 // =====================================
456
470
471 #define kXMP_ArrayLastItem ((XMP_Index)(-1L))
472 #define kXMP_UseNullTermination ((XMP_StringLen)(~0UL))
473 #define kXMP_NoOptions ((XMP_OptionBits)0UL)
474
507
508 #define XMP_SetOption(var,opt) var |= (opt)
509 #define XMP_ClearOption(var,opt) var &= ~(opt)
510 #define XMP_TestOption(var,opt) (((var) & (opt)) != 0)
511 #define XMP_OptionIsSet(var,opt) (((var) & (opt)) != 0)
512 #define XMP_OptionIsClear(var,opt) (((var) & (opt)) == 0)
513
566
567 #define XMP_PropIsSimple(opt) (((opt) & kXMP_PropCompositeMask) == 0)
568 #define XMP_PropIsStruct(opt) (((opt) & kXMP_PropValueIsStruct) != 0)
569 #define XMP_PropIsArray(opt) (((opt) & kXMP_PropValueIsArray) != 0)
570
571 #define XMP_ArrayIsUnordered(opt) (((opt) & kXMP_PropArrayIsOrdered) == 0)
572 #define XMP_ArrayIsOrdered(opt) (((opt) & kXMP_PropArrayIsOrdered) != 0)
573 #define XMP_ArrayIsAlternate(opt) (((opt) & kXMP_PropArrayIsAlternate) != 0)
574 #define XMP_ArrayIsAltText(opt) (((opt) & kXMP_PropArrayIsAltText) != 0)
575
576 #define XMP_PropHasQualifiers(opt) (((opt) & kXMP_PropHasQualifiers) != 0)
577 #define XMP_PropIsQualifier(opt) (((opt) & kXMP_PropIsQualifier) != 0)
578 #define XMP_PropHasLang(opt) (((opt) & kXMP_PropHasLang) != 0)
579
580 #define XMP_NodeIsSchema(opt) (((opt) & kXMP_SchemaNode) != 0)
581 #define XMP_PropIsAlias(opt) (((opt) & kXMP_PropIsAlias) != 0)
582
583 // -------------------------------------------------------------------------------------------------
584
586 enum {
587
589 kXMP_PropValueIsURI = 0x00000002UL,
590
591 // ------------------------------------------------------
592 // Options relating to qualifiers attached to a property.
593
595 kXMP_PropHasQualifiers = 0x00000010UL,
596
601 kXMP_PropIsQualifier = 0x00000020UL,
602
604 kXMP_PropHasLang = 0x00000040UL,
605
607 kXMP_PropHasType = 0x00000080UL,
608
609 // --------------------------------------------
610 // Options relating to the data structure form.
611
613 kXMP_PropValueIsStruct = 0x00000100UL,
614
617 kXMP_PropValueIsArray = 0x00000200UL,
618
620 kXMP_PropArrayIsUnordered = kXMP_PropValueIsArray,
621
623 kXMP_PropArrayIsOrdered = 0x00000400UL,
624
626 kXMP_PropArrayIsAlternate = 0x00000800UL,
627
628 // ------------------------------------
629 // Additional struct and array options.
630
633 kXMP_PropArrayIsAltText = 0x00001000UL,
634
635 // kXMP_InsertBeforeItem = 0x00004000UL, ! Used by SetXyz functions.
636 // kXMP_InsertAfterItem = 0x00008000UL, ! Used by SetXyz functions.
637
638 // ----------------------------
639 // Other miscellaneous options.
640
643 kXMP_PropIsAlias = 0x00010000UL,
644
647 kXMP_PropHasAliases = 0x00020000UL,
648
650 kXMP_PropIsInternal = 0x00040000UL,
651
653 kXMP_PropIsStable = 0x00100000UL,
654
656 kXMP_PropIsDerived = 0x00200000UL,
657
658 // kXMPUtil_AllowCommas = 0x10000000UL, ! Used by TXMPUtils::CatenateArrayItems and ::SeparateArrayItems.
659 // kXMP_DeleteExisting = 0x20000000UL, ! Used by TXMPMeta::SetXyz functions to delete any pre-existing property.
660 // kXMP_SchemaNode = 0x80000000UL, ! Returned by iterators - #define to avoid warnings
661
662 // ------------------------------
663 // Masks that are multiple flags.
664
666 kXMP_PropArrayFormMask = kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText,
667
669 kXMP_PropCompositeMask = kXMP_PropValueIsStruct | kXMP_PropArrayFormMask,
670
672 kXMP_ImplReservedMask = 0x70000000L
673
674 };
675
676 #define kXMP_SchemaNode ((XMP_OptionBits)0x80000000UL)
677
686 enum {
687
689 kXMP_InsertBeforeItem = 0x00004000UL,
690
692 kXMP_InsertAfterItem = 0x00008000UL,
693
695 kXMP_DeleteExisting = 0x20000000UL,
696
698 kXMP_PropValueOptionsMask = kXMP_PropValueIsURI,
699
701 kXMP_PropArrayLocationMask = kXMP_InsertBeforeItem | kXMP_InsertAfterItem
702
703 };
704
705 // -------------------------------------------------------------------------------------------------
706
708 enum {
709
711 kXMP_RequireXMPMeta = 0x0001UL,
712
714 kXMP_ParseMoreBuffers = 0x0002UL,
715
717 kXMP_StrictAliasing = 0x0004UL
718
719 };
720
722 enum {
723
724 // *** Option to remove empty struct/array, or leaf with empty value?
725
727 kXMP_OmitPacketWrapper = 0x0010UL,
728
730 kXMP_ReadOnlyPacket = 0x0020UL,
731
733 kXMP_UseCompactFormat = 0x0040UL,
734
736 kXMP_UseCanonicalFormat = 0x0080UL,
737
739 kXMP_IncludeThumbnailPad = 0x0100UL,
740
742 kXMP_ExactPacketLength = 0x0200UL,
743
745 kXMP_OmitAllFormatting = 0x0800UL,
746
748 kXMP_OmitXMPMetaElement = 0x1000UL,
749
751 kXMP_IncludeRDFHash = 0x2000UL,
752
753 _XMP_LittleEndian_Bit = 0x0001UL, // ! Don't use directly, see the combined values below!
754 _XMP_UTF16_Bit = 0x0002UL,
755 _XMP_UTF32_Bit = 0x0004UL,
756
758 kXMP_EncodingMask = 0x0007UL,
759
761 kXMP_EncodeUTF8 = 0UL,
762
764 kXMP_EncodeUTF16Big = _XMP_UTF16_Bit,
765
767 kXMP_EncodeUTF16Little = _XMP_UTF16_Bit | _XMP_LittleEndian_Bit,
768
770 kXMP_EncodeUTF32Big = _XMP_UTF32_Bit,
771
773 kXMP_EncodeUTF32Little = _XMP_UTF32_Bit | _XMP_LittleEndian_Bit
774
775 };
776
777 // -------------------------------------------------------------------------------------------------
778
780 enum {
781
783 kXMP_IterClassMask = 0x00FFUL,
784
786 kXMP_IterProperties = 0x0000UL,
787
789 kXMP_IterAliases = 0x0001UL,
790
792 kXMP_IterNamespaces = 0x0002UL,
793
795 kXMP_IterJustChildren = 0x0100UL,
796
798 kXMP_IterJustLeafNodes = 0x0200UL,
799
801 kXMP_IterJustLeafName = 0x0400UL,
802
804 kXMP_IterOmitQualifiers = 0x1000UL
805
806 };
807
809 enum {
810
812 kXMP_IterSkipSubtree = 0x0001UL,
813
815 kXMP_IterSkipSiblings = 0x0002UL
816
817 };
818
819 // -------------------------------------------------------------------------------------------------
820
827 enum {
828
830 kXMPUtil_AllowCommas = 0x10000000UL
831
832 };
833
835 enum {
836
838 kXMPTemplate_IncludeInternalProperties = 0x0001UL,
839
841 kXMPTemplate_ReplaceExistingProperties = 0x0002UL,
842
844 kXMPTemplate_ReplaceWithDeleteEmpty = 0x0004UL,
845
847 kXMPTemplate_AddNewProperties = 0x0008UL,
848
850 kXMPTemplate_ClearUnnamedProperties = 0x0010UL
851
852 };
853
855 enum {
856
858 kXMPUtil_DoAllProperties = 0x0001UL,
859
861 kXMPUtil_ReplaceOldValues = 0x0002UL,
862
864 kXMPUtil_DeleteEmptyValues = 0x0004UL,
865
867 kXMPUtil_IncludeAliases = 0x0800UL
868
869 };
870
871 // =================================================================================================
872 // Types and Constants for XMPFiles
873 // ================================
874
876 enum SeekMode { kXMP_SeekFromStart, kXMP_SeekFromCurrent, kXMP_SeekFromEnd };
877
879 enum {
880
881 // ! Hex used to avoid gcc warnings. Leave the constants so the text reads big endian. There
882 // ! seems to be no decent way on UNIX to determine the target endianness at compile time.
883 // ! Forcing it on the client isn't acceptable.
884
885 // --------------------
886 // Public file formats.
887
889 kXMP_PDFFile = 0x50444620UL,
891 kXMP_PostScriptFile = 0x50532020UL,
893 kXMP_EPSFile = 0x45505320UL,
894
896 kXMP_JPEGFile = 0x4A504547UL,
898 kXMP_JPEG2KFile = 0x4A505820UL,
900 kXMP_TIFFFile = 0x54494646UL,
902 kXMP_GIFFile = 0x47494620UL,
904 kXMP_PNGFile = 0x504E4720UL,
905
907 kXMP_SWFFile = 0x53574620UL,
909 kXMP_FLAFile = 0x464C4120UL,
911 kXMP_FLVFile = 0x464C5620UL,
912
914 kXMP_MOVFile = 0x4D4F5620UL,
916 kXMP_AVIFile = 0x41564920UL,
918 kXMP_CINFile = 0x43494E20UL,
920 kXMP_WAVFile = 0x57415620UL,
922 kXMP_MP3File = 0x4D503320UL,
924 kXMP_SESFile = 0x53455320UL,
926 kXMP_CELFile = 0x43454C20UL,
928 kXMP_MPEGFile = 0x4D504547UL,
930 kXMP_MPEG2File = 0x4D503220UL,
932 kXMP_MPEG4File = 0x4D503420UL,
934 kXMP_MXFFile = 0x4D584620UL,
936 kXMP_WMAVFile = 0x574D4156UL,
938 kXMP_AIFFFile = 0x41494646UL,
940 kXMP_REDFile = 0x52454420UL,
942 kXMP_ARRIFile = 0x41525249UL,
944 kXMP_HEIFFile = 0x48454946UL,
946 kXMP_P2File = 0x50322020UL,
948 kXMP_XDCAM_FAMFile = 0x58444346UL,
950 kXMP_XDCAM_SAMFile = 0x58444353UL,
952 kXMP_XDCAM_EXFile = 0x58444358UL,
954 kXMP_AVCHDFile = 0x41564844UL,
956 kXMP_SonyHDVFile = 0x53484456UL,
958 kXMP_CanonXFFile = 0x434E5846UL,
960 kXMP_AVCUltraFile = 0x41564355UL,
961
963 kXMP_HTMLFile = 0x48544D4CUL,
965 kXMP_XMLFile = 0x584D4C20UL,
967 kXMP_TextFile = 0x74657874UL,
969 kXMP_SVGFile = 0x53564720UL,
970
971 // -------------------------------
972 // Adobe application file formats.
973
975 kXMP_PhotoshopFile = 0x50534420UL,
977 kXMP_IllustratorFile = 0x41492020UL,
979 kXMP_InDesignFile = 0x494E4444UL,
981 kXMP_AEProjectFile = 0x41455020UL,
983 kXMP_AEProjTemplateFile = 0x41455420UL,
985 kXMP_AEFilterPresetFile = 0x46465820UL,
987 kXMP_EncoreProjectFile = 0x4E434F52UL,
989 kXMP_PremiereProjectFile = 0x5052504AUL,
991 kXMP_PremiereTitleFile = 0x5052544CUL,
993 kXMP_UCFFile = 0x55434620UL,
994
995 // -------
996 // Others.
997
999 kXMP_UnknownFile = 0x20202020UL
1000
1001 };
1002
1004 typedef XMP_Uns32 XMP_FileFormat;
1005
1006 // -------------------------------------------------------------------------------------------------
1007
1009 enum {
1010 kXMP_CharLittleEndianMask = 1,
1011 kXMP_Char16BitMask = 2,
1012 kXMP_Char32BitMask = 4
1013 };
1014
1016 enum {
1018 kXMP_Char8Bit = 0,
1020 kXMP_Char16BitBig = kXMP_Char16BitMask,
1022 kXMP_Char16BitLittle = kXMP_Char16BitMask | kXMP_CharLittleEndianMask,
1024 kXMP_Char32BitBig = kXMP_Char32BitMask,
1026 kXMP_Char32BitLittle = kXMP_Char32BitMask | kXMP_CharLittleEndianMask,
1028 kXMP_CharUnknown = 1
1029 };
1030
1063
1064 #define XMP_CharFormIs16Bit(f) ( ((int)(f) & kXMP_Char16BitMask) != 0 )
1065 #define XMP_CharFormIs32Bit(f) ( ((int)(f) & kXMP_Char32BitMask) != 0 )
1066 #define XMP_CharFormIsBigEndian(f) ( ((int)(f) & kXMP_CharLittleEndianMask) == 0 )
1067 #define XMP_CharFormIsLittleEndian(f) ( ((int)(f) & kXMP_CharLittleEndianMask) != 0 )
1068 #define XMP_GetCharSize(f) ( ((int)(f)&6) == 0 ? 1 : (int)(f)&6 )
1069 #define XMP_CharToSerializeForm(cf) ( (XMP_OptionBits)(cf) )
1070 #define XMP_CharFromSerializeForm(sf) ( (XMP_Uns8)(sf) )
1071
1074 #define kXMPFiles_UnknownOffset ((XMP_Int64)-1)
1075
1078 #define kXMPFiles_UnknownLength ((XMP_Int32)-1)
1079
1081 struct XMP_PacketInfo {
1082
1084 XMP_Int64 offset;
1086 XMP_Int32 length;
1088 XMP_Int32 padSize; // Zero if unknown.
1089
1091 XMP_Uns8 charForm;
1093 XMP_Bool writeable;
1095 XMP_Bool hasWrapper;
1096
1098 XMP_Uns8 pad;
1099
1101 XMP_PacketInfo() : offset(kXMPFiles_UnknownOffset), length(kXMPFiles_UnknownLength),
1102 padSize(0), charForm(0), writeable(0), hasWrapper(0), pad(0) {};
1103
1104 };
1105
1107 enum {
1109 kXMP_PacketInfoVersion = 3
1110 };
1111
1112 // -------------------------------------------------------------------------------------------------
1113
1115 enum {
1117 kXMPFiles_IgnoreLocalText = 0x0002,
1119 kXMPFiles_ServerMode = kXMPFiles_IgnoreLocalText
1120 };
1121
1123 enum {
1124
1126 kXMPFiles_CanInjectXMP = 0x00000001,
1127
1129 kXMPFiles_CanExpand = 0x00000002,
1130
1132 kXMPFiles_CanRewrite = 0x00000004,
1133
1135 kXMPFiles_PrefersInPlace = 0x00000008,
1136
1138 kXMPFiles_CanReconcile = 0x00000010,
1139
1141 kXMPFiles_AllowsOnlyXMP = 0x00000020,
1142
1144 kXMPFiles_ReturnsRawPacket = 0x00000040,
1145
1147 kXMPFiles_HandlerOwnsFile = 0x00000100,
1148
1150 kXMPFiles_AllowsSafeUpdate = 0x00000200,
1151
1153 kXMPFiles_NeedsReadOnlyPacket = 0x00000400,
1154
1156 kXMPFiles_UsesSidecarXMP = 0x00000800,
1157
1159 kXMPFiles_FolderBasedFormat = 0x00001000,
1160
1162 kXMPFiles_CanNotifyProgress = 0x00002000,
1163
1165 kXMPFiles_NeedsPreloading = 0x00004000,
1166
1169 kXMPFiles_NeedsLocalFileOpened = 0x00010000
1170 };
1171
1173 enum {
1174
1176 kXMPFiles_OpenForRead = 0x00000001,
1177
1179 kXMPFiles_OpenForUpdate = 0x00000002,
1180
1182 kXMPFiles_OpenOnlyXMP = 0x00000004,
1183
1185 kXMPFiles_ForceGivenHandler = 0x00000008,
1186
1188 kXMPFiles_OpenStrictly = 0x00000010,
1189
1191 kXMPFiles_OpenUseSmartHandler = 0x00000020,
1192
1194 kXMPFiles_OpenUsePacketScanning = 0x00000040,
1195
1197 kXMPFiles_OpenLimitedScanning = 0x00000080,
1198
1200 kXMPFiles_OpenRepairFile = 0x00000100,
1201
1203 kXMPFiles_OptimizeFileLayout = 0x00000200
1204
1205 };
1206
1208 enum {
1210 kXMPFiles_UpdateSafely = 0x0001
1211 };
1212
1213
1214 // =================================================================================================
1215 // Error notification and Exceptions
1216 // =================================
1217
1241
1242 typedef XMP_Uns8 XMP_ErrorSeverity;
1243
1245 enum {
1247 kXMPErrSev_Recoverable = 0,
1249 kXMPErrSev_OperationFatal = 1,
1251 kXMPErrSev_FileFatal = 2,
1253 kXMPErrSev_ProcessFatal = 3
1254 };
1255
1256 // -------------------------------------------------------------------------------------------------
1280
1281 typedef bool (* XMPMeta_ErrorCallbackProc) ( void* context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message );
1282
1283 // -------------------------------------------------------------------------------------------------
1316
1317 typedef bool (* XMPFiles_ErrorCallbackProc) ( void* context, XMP_StringPtr filePath, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message );
1318
1319 // -------------------------------------------------------------------------------------------------
1321
1322 typedef XMP_Bool (* XMPMeta_ErrorCallbackWrapper) ( XMPMeta_ErrorCallbackProc clientProc, void* context,
1323 XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message );
1324
1325 typedef XMP_Bool (* XMPFiles_ErrorCallbackWrapper) ( XMPFiles_ErrorCallbackProc clientProc, void* context,
1326 XMP_StringPtr filePath, XMP_ErrorSeverity severity,
1327 XMP_Int32 cause, XMP_StringPtr message );
1328
1330 class XMP_Error {
1331 public:
1332
1339 XMP_Error ( XMP_Int32 _id, XMP_StringPtr _errMsg ) : id(_id), errMsg(_errMsg), notified(false) {};
1340
1342 inline XMP_Int32 GetID() const { return id; };
1343
1345 inline XMP_StringPtr GetErrMsg() const { return errMsg; };
1346
1348 inline XMP_Bool IsNotified() const { return notified; }
1349
1351 inline void SetNotified() { notified = true; };
1352
1353 private:
1355 XMP_Int32 id;
1358 XMP_StringPtr errMsg;
1360 XMP_Bool notified;
1361 };
1362
1364 enum {
1365
1366 // --------------------
1368
1370 kXMPErr_NoError = -1,
1371
1373 kXMPErr_Unknown = 0,
1375 kXMPErr_TBD = 1,
1377 kXMPErr_Unavailable = 2,
1379 kXMPErr_BadObject = 3,
1381 kXMPErr_BadParam = 4,
1383 kXMPErr_BadValue = 5,
1385 kXMPErr_AssertFailure = 6,
1387 kXMPErr_EnforceFailure = 7,
1389 kXMPErr_Unimplemented = 8,
1391 kXMPErr_InternalFailure = 9,
1393 kXMPErr_Deprecated = 10,
1395 kXMPErr_ExternalFailure = 11,
1397 kXMPErr_UserAbort = 12,
1399 kXMPErr_StdException = 13,
1401 kXMPErr_UnknownException = 14,
1403 kXMPErr_NoMemory = 15,
1405 kXMPErr_ProgressAbort = 16,
1406
1407 // ------------------------------------
1408 // More specific parameter error codes.
1409
1411 kXMPErr_BadSchema = 101,
1413 kXMPErr_BadXPath = 102,
1415 kXMPErr_BadOptions = 103,
1417 kXMPErr_BadIndex = 104,
1419 kXMPErr_BadIterPosition = 105,
1421 kXMPErr_BadParse = 106,
1423 kXMPErr_BadSerialize = 107,
1425 kXMPErr_BadFileFormat = 108,
1427 kXMPErr_NoFileHandler = 109,
1429 kXMPErr_TooLargeForJPEG = 110,
1431 kXMPErr_NoFile = 111,
1433 kXMPErr_FilePermission = 112,
1435 kXMPErr_DiskSpace = 113,
1437 kXMPErr_ReadError = 114,
1439 kXMPErr_WriteError = 115,
1441 kXMPErr_BadBlockFormat = 116,
1443 kXMPErr_FilePathNotAFile = 117,
1445 kXMPErr_RejectedFileExtension = 118,
1446
1447 // -----------------------------------------------
1448 // File format and internal structure error codes.
1449
1451 kXMPErr_BadXML = 201,
1453 kXMPErr_BadRDF = 202,
1455 kXMPErr_BadXMP = 203,
1457 kXMPErr_EmptyIterator = 204,
1459 kXMPErr_BadUnicode = 205,
1461 kXMPErr_BadTIFF = 206,
1463 kXMPErr_BadJPEG = 207,
1465 kXMPErr_BadPSD = 208,
1467 kXMPErr_BadPSIR = 209,
1469 kXMPErr_BadIPTC = 210,
1471 kXMPErr_BadMPEG = 211,
1473 kXMPErr_HEIFConstructionMethodNotSupported = 212,
1475 kXMPErr_BadPNG = 213
1476
1477 };
1478
1480
1481 // =================================================================================================
1482 // Client callbacks
1483 // ================
1484
1485 // -------------------------------------------------------------------------------------------------
1488
1493
1494 typedef XMP_Int32 XMP_Status;
1495
1496 // -------------------------------------------------------------------------------------------------
1512
1513 typedef XMP_Status (* XMP_TextOutputProc) ( void * refCon,
1514 XMP_StringPtr buffer,
1515 XMP_StringLen bufferSize );
1516
1517 // -------------------------------------------------------------------------------------------------
1526
1527 typedef bool (* XMP_AbortProc) ( void * arg );
1528
1529 // -------------------------------------------------------------------------------------------------
1549
1550 typedef bool (* XMP_ProgressReportProc) ( void * context, float elapsedTime, float fractionDone, float secondsToGo );
1551
1552 // -------------------------------------------------------------------------------------------------
1554
1555 typedef XMP_Bool (* XMP_ProgressReportWrapper) ( XMP_ProgressReportProc proc, void * context,
1556 float elapsedTime, float fractionDone, float secondsToGo );
1557
1559
1560 // =================================================================================================
1561 // Stuff with no better place to be
1562 // ================================
1563
1565 typedef struct XMP_VersionInfo {
1567 XMP_Uns8 major;
1569 XMP_Uns8 minor;
1571 XMP_Uns8 micro;
1573 XMP_Bool isDebug;
1575 XMP_Uns32 build;
1577 XMP_Uns32 flags;
1579 XMP_StringPtr message;
1580 } XMP_VersionInfo;
1581
1582 // =================================================================================================
1583
1584 #if __cplusplus
1585 } // extern "C"
1586 #endif
1587
1588 #include <vector>
1589 #endif // __XMP_Const_h__
XMP_DateTime::tzSign
XMP_Int8 tzSign
Definition: XMP_Const.h:263
kXMP_MXFFile
@ kXMP_MXFFile
Public file format constant: 'MXF '.
Definition: XMP_Const.h:934
kXMPErr_RejectedFileExtension
@ kXMPErr_RejectedFileExtension
Rejected File extension.
Definition: XMP_Const.h:1445
kXMP_PropHasQualifiers
@ kXMP_PropHasQualifiers
The property has qualifiers, includes rdf:type and xml:lang.
Definition: XMP_Const.h:595
kXMPTS_Maybe
@ kXMPTS_Maybe
The part or parts might, or might not, have changed.
Definition: XMP_Const.h:204
kXMP_PropIsAlias
@ kXMP_PropIsAlias
Definition: XMP_Const.h:643
kXMP_FLVFile
@ kXMP_FLVFile
Public file format constant: 'FLV '.
Definition: XMP_Const.h:911
kXMP_PhotoshopFile
@ kXMP_PhotoshopFile
Adobe application file format constant: 'PSD '.
Definition: XMP_Const.h:975
kXMP_AEFilterPresetFile
@ kXMP_AEFilterPresetFile
Adobe application file format constant: 'FFX '.
Definition: XMP_Const.h:985
kXMP_IterOmitQualifiers
@ kXMP_IterOmitQualifiers
Omit all qualifiers.
Definition: XMP_Const.h:804
kXMPFiles_UnknownLength
#define kXMPFiles_UnknownLength
Constant for an unknown packet length within a file.
Definition: XMP_Const.h:1078
kXMP_PropValueIsURI
@ kXMP_PropValueIsURI
The XML string form of the property value is a URI, use rdf:resource attribute. DISCOURAGED.
Definition: XMP_Const.h:589
kXMPTS_No
@ kXMPTS_No
The part or parts have definitely not changed.
Definition: XMP_Const.h:202
kXMPFiles_ServerMode
@ kXMPFiles_ServerMode
Combination of flags necessary for server products using XMPFiles.
Definition: XMP_Const.h:1119
kXMP_IterJustChildren
@ kXMP_IterJustChildren
Just do the immediate children of the root, default is subtree.
Definition: XMP_Const.h:795
XMP_Error::GetErrMsg
XMP_StringPtr GetErrMsg() const
Retrieves the descriptive string from an XMP_Error.
Definition: XMP_Const.h:1345
kXMP_Char16BitLittle
@ kXMP_Char16BitLittle
16-bit little-endian
Definition: XMP_Const.h:1022
kXMP_SESFile
@ kXMP_SESFile
Public file format constant: 'SES ', Audition session.
Definition: XMP_Const.h:924
Max_XMP_Uns16
static const XMP_Uns16 Max_XMP_Uns16
Definition: XMP_Const.h:121
kXMPErr_InternalFailure
@ kXMPErr_InternalFailure
Generic internal failure.
Definition: XMP_Const.h:1391
XMP_PacketInfo::padSize
XMP_Int32 padSize
Packet padding size in bytes, zero if unknown.
Definition: XMP_Const.h:1088
kXMPErr_NoError
@ kXMPErr_NoError
Generic error codes.
Definition: XMP_Const.h:1370
kXMPErr_Deprecated
@ kXMPErr_Deprecated
Generic deprecated error.
Definition: XMP_Const.h:1393
kXMPFiles_OpenForUpdate
@ kXMPFiles_OpenForUpdate
Open for reading and writing.
Definition: XMP_Const.h:1179
kXMPErrSev_Recoverable
@ kXMPErrSev_Recoverable
Partial recovery and continuation is possible.
Definition: XMP_Const.h:1247
kXMPFiles_OpenUseSmartHandler
@ kXMPFiles_OpenUseSmartHandler
Require the use of a smart handler.
Definition: XMP_Const.h:1191
XMP_DateTime::minute
XMP_Int32 minute
The minute in the range 0..59.
Definition: XMP_Const.h:247
XMP_VersionInfo
XMP Toolkit version information.
Definition: XMP_Const.h:1565
kXMP_PropArrayLocationMask
@ kXMP_PropArrayLocationMask
Bit-flag mask for array-item location bits.
Definition: XMP_Const.h:701
kXMP_PropArrayIsUnordered
@ kXMP_PropArrayIsUnordered
The item order does not matter.
Definition: XMP_Const.h:620
kXMPErr_BadXML
@ kXMPErr_BadXML
XML format error.
Definition: XMP_Const.h:1451
kXMP_SeekFromEnd
@ kXMP_SeekFromEnd
Definition: XMP_Const.h:876
XMPFiles_ErrorCallbackProc
bool(* XMPFiles_ErrorCallbackProc)(void *context, XMP_StringPtr filePath, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message)
The signature of a client-defined callback for TXMPFiles error notifications.
Definition: XMP_Const.h:1317
XMP_VersionInfo::isDebug
XMP_Bool isDebug
A 0/1 boolean value, true if this is a debug build.
Definition: XMP_Const.h:1573
XMP_Error::id
XMP_Int32 id
Exception code. See constants kXMPErr_Unknown and following.
Definition: XMP_Const.h:1351
XMP_PacketInfo::charForm
XMP_Uns8 charForm
Character format using the values kXMP_Char8Bit, kXMP_Char16BitBig, etc.
Definition: XMP_Const.h:1091
kXMP_SVGFile
@ kXMP_SVGFile
Public file format constant: 'SVG '.
Definition: XMP_Const.h:969
kXMP_SeekFromCurrent
@ kXMP_SeekFromCurrent
Definition: XMP_Const.h:876
XMP_AbortProc
bool(* XMP_AbortProc)(void *arg)
The signature of a client-defined callback to check for a user request to abort a time-consuming oper...
Definition: XMP_Const.h:1527
kXMPErr_ReadError
@ kXMPErr_ReadError
A file read failed.
Definition: XMP_Const.h:1437
kXMP_TimeWestOfUTC
@ kXMP_TimeWestOfUTC
Time zone is west of UTC.
Definition: XMP_Const.h:284
kXMPErr_BadIPTC
@ kXMPErr_BadIPTC
IPTC format error.
Definition: XMP_Const.h:1469
kXMP_Char32BitLittle
@ kXMP_Char32BitLittle
32-bit little-endian
Definition: XMP_Const.h:1026
kXMP_ParseMoreBuffers
@ kXMP_ParseMoreBuffers
This is the not last input buffer for this parse stream.
Definition: XMP_Const.h:714
XMP_DateTime::tzMinute
XMP_Int32 tzMinute
The time zone minute in the range 0..59.
Definition: XMP_Const.h:269
Max_XMP_Int8
static const XMP_Int8 Max_XMP_Int8
Definition: XMP_Const.h:128
kXMP_XDCAM_FAMFile
@ kXMP_XDCAM_FAMFile
Public file format constant: 'XDCF', a collection not really a single file.
Definition: XMP_Const.h:948
XMP_VersionInfo::build
XMP_Uns32 build
A rolling build number, monotonically increasing in a release.
Definition: XMP_Const.h:1575
SeekMode
SeekMode
Seek mode constants for use with XMP_IO and inside XMPFiles library code.
Definition: XMP_Const.h:876
XMP_Error::SetNotified
void SetNotified()
Sets the notification status for an error.
Definition: XMP_Const.h:1351
kXMPUtil_IncludeAliases
@ kXMPUtil_IncludeAliases
Include aliases, default is just actual properties.
Definition: XMP_Const.h:867
kXMP_XDCAM_SAMFile
@ kXMP_XDCAM_SAMFile
Public file format constant: 'XDCS', a collection not really a single file.
Definition: XMP_Const.h:950
XMP_VersionInfo::minor
XMP_Uns8 minor
The secondary release number, the "2" in version "1.2.3".
Definition: XMP_Const.h:1569
kXMP_IterSkipSiblings
@ kXMP_IterSkipSiblings
Skip the subtree below and remaining siblings of the current node.
Definition: XMP_Const.h:815
kXMP_Char8Bit
@ kXMP_Char8Bit
8-bit
Definition: XMP_Const.h:1018
kXMPFiles_CanInjectXMP
@ kXMPFiles_CanInjectXMP
Can inject first-time XMP into an existing file.
Definition: XMP_Const.h:1126
XMP_DateTime::day
XMP_Int32 day
The day of the month in the range 1..31.
Definition: XMP_Const.h:241
XMP_Environment.h
kXMP_InsertBeforeItem
@ kXMP_InsertBeforeItem
Option for array item location: Insert a new item before the given index.
Definition: XMP_Const.h:689
kXMPFiles_CanReconcile
@ kXMPFiles_CanReconcile
Supports reconciliation between XMP and other forms.
Definition: XMP_Const.h:1138
XMP_TextOutputProc
XMP_Status(* XMP_TextOutputProc)(void *refCon, XMP_StringPtr buffer, XMP_StringLen bufferSize)
The signature of a client-defined callback for text output from XMP Toolkit debugging operations.
Definition: XMP_Const.h:1513
kXMP_TimeEastOfUTC
@ kXMP_TimeEastOfUTC
Time zone is east of UTC.
Definition: XMP_Const.h:288
kXMP_SWFFile
@ kXMP_SWFFile
Public file format constant: 'SWF '.
Definition: XMP_Const.h:907
kXMPTemplate_ClearUnnamedProperties
@ kXMPTemplate_ClearUnnamedProperties
Perform a Clear operation, keep named properties and delete everything else.
Definition: XMP_Const.h:850
kXMPErr_Unavailable
@ kXMPErr_Unavailable
Generic unavailable error.
Definition: XMP_Const.h:1377
kXMP_TimeIsUTC
@ kXMP_TimeIsUTC
UTC time.
Definition: XMP_Const.h:286
kXMP_RequireXMPMeta
@ kXMP_RequireXMPMeta
Require a surrounding x:xmpmeta element.
Definition: XMP_Const.h:711
kXMP_PNGFile
@ kXMP_PNGFile
Public file format constant: 'PNG '.
Definition: XMP_Const.h:904
kXMPErr_StdException
@ kXMPErr_StdException
Generic standard exception.
Definition: XMP_Const.h:1399
XMPFilesRef
struct __XMPFiles__ * XMPFilesRef
An "ABI safe" pointer to the internal part of an XMP file-handling object. Use to pass an XMP file-ha...
Definition: XMP_Const.h:151
kXMPErr_BadFileFormat
@ kXMPErr_BadFileFormat
File format error.
Definition: XMP_Const.h:1425
kXMP_IncludeRDFHash
@ kXMP_IncludeRDFHash
Include a rdf Hash and Merged flag in x:xmpmeta element.
Definition: XMP_Const.h:751
kXMPFiles_IgnoreLocalText
@ kXMPFiles_IgnoreLocalText
Ignore non-XMP text that uses an undefined "local" encoding.
Definition: XMP_Const.h:1117
kXMP_PremiereProjectFile
@ kXMP_PremiereProjectFile
Adobe application file format constant: 'PRPJ'.
Definition: XMP_Const.h:989
XMP_PacketInfo
XMP packet description.
Definition: XMP_Const.h:1081
kXMP_OmitAllFormatting
@ kXMP_OmitAllFormatting
Omit all formatting whitespace.
Definition: XMP_Const.h:745
kXMPErrSev_OperationFatal
@ kXMPErrSev_OperationFatal
Recovery is not possible, an exception will be thrown aborting the API call.
Definition: XMP_Const.h:1249
XMP_DateTime::hour
XMP_Int32 hour
The hour in the range 0..23.
Definition: XMP_Const.h:244
kXMPFiles_OpenUsePacketScanning
@ kXMPFiles_OpenUsePacketScanning
Force packet scanning, do not use a smart handler.
Definition: XMP_Const.h:1194
kXMPFiles_AllowsOnlyXMP
@ kXMPFiles_AllowsOnlyXMP
Allows access to just the XMP, ignoring other forms.
Definition: XMP_Const.h:1141
kXMPTemplate_IncludeInternalProperties
@ kXMPTemplate_IncludeInternalProperties
Do all properties, default is just external properties.
Definition: XMP_Const.h:838
kXMP_REDFile
@ kXMP_REDFile
Public file format constant: 'RED ', RED file format.
Definition: XMP_Const.h:940
kXMP_UnknownFile
@ kXMP_UnknownFile
Unknown file format constant: ' '.
Definition: XMP_Const.h:999
kXMP_IterJustLeafNodes
@ kXMP_IterJustLeafNodes
Just do the leaf nodes, default is all nodes in the subtree.
Definition: XMP_Const.h:798
XMP_VersionInfo::major
XMP_Uns8 major
The primary release number, the "1" in version "1.2.3".
Definition: XMP_Const.h:1567
kXMPErr_BadXMP
@ kXMPErr_BadXMP
XMP format error.
Definition: XMP_Const.h:1455
kXMPFiles_PrefersInPlace
@ kXMPFiles_PrefersInPlace
Can expand, but prefers in-place update.
Definition: XMP_Const.h:1135
kXMPUtil_DeleteEmptyValues
@ kXMPUtil_DeleteEmptyValues
Delete properties if the new value is empty.
Definition: XMP_Const.h:864
kXMPErr_BadValue
@ kXMPErr_BadValue
Generic bad value error.
Definition: XMP_Const.h:1383
kXMPUtil_DoAllProperties
@ kXMPUtil_DoAllProperties
Do all properties, default is just external properties.
Definition: XMP_Const.h:858
kXMPErr_BadMPEG
@ kXMPErr_BadMPEG
MPEG format error.
Definition: XMP_Const.h:1471
kXMP_PremiereTitleFile
@ kXMP_PremiereTitleFile
Adobe application file format constant: 'PRTL'.
Definition: XMP_Const.h:991
kXMPFiles_OptimizeFileLayout
@ kXMPFiles_OptimizeFileLayout
When updating a file, spend the effort necessary to optimize file layout.
Definition: XMP_Const.h:1203
kXMP_CharLittleEndianMask
@ kXMP_CharLittleEndianMask
Definition: XMP_Const.h:1010
kXMP_MPEG2File
@ kXMP_MPEG2File
Public file format constant: 'MP2 '.
Definition: XMP_Const.h:930
kXMPErr_AssertFailure
@ kXMPErr_AssertFailure
Generic assertion failure.
Definition: XMP_Const.h:1385
kXMP_PropIsInternal
@ kXMP_PropIsInternal
The value of this property is "owned" by the application, and should not generally be editable in a U...
Definition: XMP_Const.h:650
kXMPFiles_OpenLimitedScanning
@ kXMPFiles_OpenLimitedScanning
Only packet scan files "known" to need scanning.
Definition: XMP_Const.h:1197
kXMP_InDesignFile
@ kXMP_InDesignFile
Adobe application file format constant: 'INDD'.
Definition: XMP_Const.h:979
kXMP_PostScriptFile
@ kXMP_PostScriptFile
Public file format constant: 'PS ', general PostScript following DSC conventions.
Definition: XMP_Const.h:891
XMP_Error::GetID
XMP_Int32 GetID() const
Retrieves the numeric code from an XMP_Error.
Definition: XMP_Const.h:1342
kXMP_EncoreProjectFile
@ kXMP_EncoreProjectFile
Adobe application file format constant: 'NCOR'.
Definition: XMP_Const.h:987
kXMP_XDCAM_EXFile
@ kXMP_XDCAM_EXFile
Public file format constant: 'XDCX', a collection not really a single file.
Definition: XMP_Const.h:952
Max_XMP_Int16
static const XMP_Int16 Max_XMP_Int16
Definition: XMP_Const.h:130
_XMP_LittleEndian_Bit
@ _XMP_LittleEndian_Bit
Definition: XMP_Const.h:753
kXMPErr_FilePathNotAFile
@ kXMPErr_FilePathNotAFile
File Path is not a file.
Definition: XMP_Const.h:1443
kXMP_PropIsDerived
@ kXMP_PropIsDerived
The value of this property is derived from the document content.
Definition: XMP_Const.h:656
kXMP_AVCHDFile
@ kXMP_AVCHDFile
Public file format constant: 'AVHD', a collection not really a single file.
Definition: XMP_Const.h:954
kXMP_UCFFile
@ kXMP_UCFFile
Adobe application file format constant: 'UCF ', Universal Container Format.
Definition: XMP_Const.h:993
Min_XMP_Int64
static const XMP_Int64 Min_XMP_Int64
Definition: XMP_Const.h:133
kXMP_MPEGFile
@ kXMP_MPEGFile
Public file format constant: 'MPEG'.
Definition: XMP_Const.h:928
kXMP_CELFile
@ kXMP_CELFile
Public file format constant: 'CEL ', Audition loop.
Definition: XMP_Const.h:926
XMPFiles_ErrorCallbackWrapper
XMP_Bool(* XMPFiles_ErrorCallbackWrapper)(XMPFiles_ErrorCallbackProc clientProc, void *context, XMP_StringPtr filePath, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message)
Definition: XMP_Const.h:1325
kXMP_AVIFile
@ kXMP_AVIFile
Public file format constant: 'AVI '.
Definition: XMP_Const.h:916
kXMP_PropHasAliases
@ kXMP_PropHasAliases
Definition: XMP_Const.h:647
kXMP_EPSFile
@ kXMP_EPSFile
Public file format constant: 'EPS ', encapsulated PostScript.
Definition: XMP_Const.h:893
kXMP_Char32BitMask
@ kXMP_Char32BitMask
Definition: XMP_Const.h:1012
kXMP_ImplReservedMask
@ kXMP_ImplReservedMask
Mask for bits that are reserved for transient use by the implementation.
Definition: XMP_Const.h:672
kXMP_CharUnknown
@ kXMP_CharUnknown
Variable or not-yet-known cases.
Definition: XMP_Const.h:1028
kXMPFiles_UsesSidecarXMP
@ kXMPFiles_UsesSidecarXMP
The file handler uses a "sidecar" file for the XMP.
Definition: XMP_Const.h:1156
kXMPUtil_AllowCommas
@ kXMPUtil_AllowCommas
Allow commas in item values, default is separator.
Definition: XMP_Const.h:830
kXMP_MPEG4File
@ kXMP_MPEG4File
Public file format constant: 'MP4 ', ISO 14494-12 and -14.
Definition: XMP_Const.h:932
kXMPErr_BadIterPosition
@ kXMPErr_BadIterPosition
Bad iteration position.
Definition: XMP_Const.h:1419
kXMPErrSev_FileFatal
@ kXMPErrSev_FileFatal
Recovery is not possible, an exception will be thrown, the file is corrupt and possibly unusable.
Definition: XMP_Const.h:1251
kXMP_Char16BitMask
@ kXMP_Char16BitMask
Definition: XMP_Const.h:1011
kXMP_TextFile
@ kXMP_TextFile
Public file format constant: 'text'.
Definition: XMP_Const.h:967
kXMP_MP3File
@ kXMP_MP3File
Public file format constant: 'MP3 '.
Definition: XMP_Const.h:922
kXMP_JPEG2KFile
@ kXMP_JPEG2KFile
Public file format constant: 'JPX ', JPEG 2000, ISO 15444-1.
Definition: XMP_Const.h:898
XMPDocOpsRef
struct __XMPDocOps__ * XMPDocOpsRef
An "ABI safe" pointer to the internal part of an XMP document operations object. Use to pass an XMP d...
Definition: XMP_Const.h:147
kXMPErr_BadPSIR
@ kXMPErr_BadPSIR
PSIR format error.
Definition: XMP_Const.h:1467
kXMPErr_WriteError
@ kXMPErr_WriteError
A file write failed for a reason other than lack of disk space.
Definition: XMP_Const.h:1439
kXMPFiles_UnknownOffset
#define kXMPFiles_UnknownOffset
Constant for an unknown packet offset within a file.
Definition: XMP_Const.h:1074
kXMP_EncodeUTF16Big
@ kXMP_EncodeUTF16Big
Use UTF16 big-endian encoding.
Definition: XMP_Const.h:764
Min_XMP_Uns32
static const XMP_Uns32 Min_XMP_Uns32
Definition: XMP_Const.h:122
kXMP_PropArrayIsAltText
@ kXMP_PropArrayIsAltText
Definition: XMP_Const.h:633
kXMP_PropIsQualifier
@ kXMP_PropIsQualifier
Definition: XMP_Const.h:601
kXMPErr_BadUnicode
@ kXMPErr_BadUnicode
Unicode error.
Definition: XMP_Const.h:1459
kXMP_AEProjectFile
@ kXMP_AEProjectFile
Adobe application file format constant: 'AEP '.
Definition: XMP_Const.h:981
kXMP_UseCanonicalFormat
@ kXMP_UseCanonicalFormat
Use a canonical form of RDF.
Definition: XMP_Const.h:736
kXMPErr_BadJPEG
@ kXMPErr_BadJPEG
JPEG format error.
Definition: XMP_Const.h:1463
kXMP_StrictAliasing
@ kXMP_StrictAliasing
Do not reconcile alias differences, throw an exception.
Definition: XMP_Const.h:717
kXMPErr_TBD
@ kXMPErr_TBD
Generic undefined error.
Definition: XMP_Const.h:1375
kXMPFiles_OpenOnlyXMP
@ kXMPFiles_OpenOnlyXMP
Only the XMP is wanted, allows space/time optimizations.
Definition: XMP_Const.h:1182
XMP_Error::errMsg
XMP_StringPtr errMsg
Definition: XMP_Const.h:1358
kXMP_Char16BitBig
@ kXMP_Char16BitBig
16-bit big-endian
Definition: XMP_Const.h:1020
XMP_StringPtr
const typedef char * XMP_StringPtr
The type for input string parameters. A const char *, a null-terminated UTF-8 string.
Definition: XMP_Const.h:178
kXMPTS_Yes
@ kXMPTS_Yes
The part or parts have definitely changed.
Definition: XMP_Const.h:200
kXMP_FLAFile
@ kXMP_FLAFile
Public file format constant: 'FLA '.
Definition: XMP_Const.h:909
kXMP_IterSkipSubtree
@ kXMP_IterSkipSubtree
Skip the subtree below the current node.
Definition: XMP_Const.h:812
kXMPErr_NoFile
@ kXMPErr_NoFile
A file does not exist.
Definition: XMP_Const.h:1431
Min_XMP_Int32
static const XMP_Int32 Min_XMP_Int32
Definition: XMP_Const.h:131
kXMPErr_FilePermission
@ kXMPErr_FilePermission
A file exists but cannot be opened.
Definition: XMP_Const.h:1433
XMP_VersionInfo::micro
XMP_Uns8 micro
The tertiary release number, the "3" in version "1.2.3".
Definition: XMP_Const.h:1571
kXMPFiles_NeedsPreloading
@ kXMPFiles_NeedsPreloading
The plugin handler is not capable for delay loading.
Definition: XMP_Const.h:1165
kXMP_PropCompositeMask
@ kXMP_PropCompositeMask
Property type bit-flag mask for composite types (array and struct)
Definition: XMP_Const.h:669
XMPMetaRef
struct __XMPMeta__ * XMPMetaRef
An "ABI safe" pointer to the internal part of an XMP object. Use to pass an XMP object across client ...
Definition: XMP_Const.h:139
XMP_Error::XMP_Error
XMP_Error(XMP_Int32 _id, XMP_StringPtr _errMsg)
Constructor for an XMP_Error.
Definition: XMP_Const.h:1339
kXMPFiles_FolderBasedFormat
@ kXMPFiles_FolderBasedFormat
The format is folder oriented, for example the P2 video format.
Definition: XMP_Const.h:1159
XMP_ProgressReportProc
bool(* XMP_ProgressReportProc)(void *context, float elapsedTime, float fractionDone, float secondsToGo)
The signature of a client-defined callback for progress report notifications.
Definition: XMP_Const.h:1550
XMP_PacketInfo::offset
XMP_Int64 offset
Packet offset in the file in bytes, -1 if unknown.
Definition: XMP_Const.h:1084
XMP_DateTime::nanoSecond
XMP_Int32 nanoSecond
Nanoseconds within a second, often left as zero.
Definition: XMP_Const.h:272
kXMP_PacketInfoVersion
@ kXMP_PacketInfoVersion
Version of the XMP_PacketInfo type.
Definition: XMP_Const.h:1109
kXMPErr_ExternalFailure
@ kXMPErr_ExternalFailure
Generic external failure.
Definition: XMP_Const.h:1395
XMP_PacketInfo::pad
XMP_Uns8 pad
Padding to make the struct's size be a multiple 4.
Definition: XMP_Const.h:1098
kXMPFiles_CanRewrite
@ kXMPFiles_CanRewrite
Can copy one file to another, writing new metadata.
Definition: XMP_Const.h:1132
kXMP_ExactPacketLength
@ kXMP_ExactPacketLength
The padding parameter is the overall packet length.
Definition: XMP_Const.h:742
kXMP_SonyHDVFile
@ kXMP_SonyHDVFile
Public file format constant: 'SHDV', a collection not really a single file.
Definition: XMP_Const.h:956
kXMPTemplate_ReplaceWithDeleteEmpty
@ kXMPTemplate_ReplaceWithDeleteEmpty
Similar to Replace, also delete if the template has an empty value.
Definition: XMP_Const.h:844
kXMP_PropArrayFormMask
@ kXMP_PropArrayFormMask
Property type bit-flag mask for all array types.
Definition: XMP_Const.h:666
XMP_PacketInfo::writeable
XMP_Bool writeable
True if there is a packet wrapper and the trailer says writeable by dumb packet scanners.
Definition: XMP_Const.h:1093
kXMPFiles_ReturnsRawPacket
@ kXMPFiles_ReturnsRawPacket
File handler returns raw XMP packet information.
Definition: XMP_Const.h:1144
kXMP_PropArrayIsOrdered
@ kXMP_PropArrayIsOrdered
Implies kXMP_PropValueIsArray, item order matters. It is serialized using an rdf:Seq container.
Definition: XMP_Const.h:623
kXMPErr_ProgressAbort
@ kXMPErr_ProgressAbort
Progress reporting callback requested abort.
Definition: XMP_Const.h:1405
kXMPErr_HEIFConstructionMethodNotSupported
@ kXMPErr_HEIFConstructionMethodNotSupported
HEIF format: Modify Operation is not supported for Construction Method 1 or 2.
Definition: XMP_Const.h:1473
kXMP_EncodeUTF16Little
@ kXMP_EncodeUTF16Little
Use UTF16 little-endian encoding.
Definition: XMP_Const.h:767
kXMPErr_BadParam
@ kXMPErr_BadParam
Generic bad parameter error.
Definition: XMP_Const.h:1381
_XMP_UTF32_Bit
@ _XMP_UTF32_Bit
Definition: XMP_Const.h:755
XMP_StringLen
XMP_Uns32 XMP_StringLen
The type for string length parameters. A 32-bit unsigned integer, as big as will be practically neede...
Definition: XMP_Const.h:179
kXMPErr_DiskSpace
@ kXMPErr_DiskSpace
A file write failed due to lack of disk space.
Definition: XMP_Const.h:1435
kXMPFiles_OpenForRead
@ kXMPFiles_OpenForRead
Open for read-only access.
Definition: XMP_Const.h:1176
XMP_Error
XMP Toolkit error, associates an error code with a descriptive error string.
Definition: XMP_Const.h:1330
Max_XMP_Uns32
static const XMP_Uns32 Max_XMP_Uns32
Definition: XMP_Const.h:123
Min_XMP_Int8
static const XMP_Int8 Min_XMP_Int8
Definition: XMP_Const.h:127
Max_XMP_Uns8
static const XMP_Uns8 Max_XMP_Uns8
Definition: XMP_Const.h:119
kXMP_DeleteExisting
@ kXMP_DeleteExisting
Delete any pre-existing property.
Definition: XMP_Const.h:695
kXMPErr_BadSerialize
@ kXMPErr_BadSerialize
Serialization error.
Definition: XMP_Const.h:1423
Min_XMP_Uns64
static const XMP_Uns64 Min_XMP_Uns64
Definition: XMP_Const.h:124
Max_XMP_Uns64
static const XMP_Uns64 Max_XMP_Uns64
Definition: XMP_Const.h:125
kXMP_AVCUltraFile
@ kXMP_AVCUltraFile
Public file format constant: 'AVCU', a collection not really a single file.
Definition: XMP_Const.h:960
XMP_DateTime::year
XMP_Int32 year
The year, can be negative.
Definition: XMP_Const.h:235
kXMPFiles_AllowsSafeUpdate
@ kXMPFiles_AllowsSafeUpdate
The file handler allows crash-safe file updates.
Definition: XMP_Const.h:1150
XMP_Index
XMP_Int32 XMP_Index
The type for offsets and indices. A 32-bit signed integer. It is signed to allow -1 for loop terminat...
Definition: XMP_Const.h:180
XMP_VersionInfo::flags
XMP_Uns32 flags
Individual feature implementation flags.
Definition: XMP_Const.h:1577
kXMP_ARRIFile
@ kXMP_ARRIFile
Public file format constant: 'ARRI', ARRI file format.
Definition: XMP_Const.h:942
XMP_ErrorSeverity
XMP_Uns8 XMP_ErrorSeverity
Definition: XMP_Const.h:1242
kXMPErr_TooLargeForJPEG
@ kXMPErr_TooLargeForJPEG
Data too large for JPEG file format.
Definition: XMP_Const.h:1429
_XMP_UTF16_Bit
@ _XMP_UTF16_Bit
Definition: XMP_Const.h:754
XMPMeta_ErrorCallbackWrapper
XMP_Bool(* XMPMeta_ErrorCallbackWrapper)(XMPMeta_ErrorCallbackProc clientProc, void *context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message)
Internal: The signatures of client-side wrappers for the error notification callbacks.
Definition: XMP_Const.h:1322
kXMPErr_BadXPath
@ kXMPErr_BadXPath
Bad XPath parameter.
Definition: XMP_Const.h:1413
XMP_PacketInfo::length
XMP_Int32 length
Packet length in the file in bytes, -1 if unknown.
Definition: XMP_Const.h:1086
kXMP_OmitXMPMetaElement
@ kXMP_OmitXMPMetaElement
Omit the x:xmpmeta element surrounding the rdf:RDF element.
Definition: XMP_Const.h:748
kXMP_WMAVFile
@ kXMP_WMAVFile
Public file format constant: 'WMAV', Windows Media Audio and Video.
Definition: XMP_Const.h:936
XMP_PacketInfo::XMP_PacketInfo
XMP_PacketInfo()
Default constructor.
Definition: XMP_Const.h:1101
kXMP_OmitPacketWrapper
@ kXMP_OmitPacketWrapper
Omit the XML packet wrapper.
Definition: XMP_Const.h:727
kXMP_IterClassMask
@ kXMP_IterClassMask
The low 8 bits are an enum of what data structure to iterate.
Definition: XMP_Const.h:783
kXMPErr_NoMemory
@ kXMPErr_NoMemory
Generic out-of-memory error.
Definition: XMP_Const.h:1403
XMP_VersionInfo::message
XMP_StringPtr message
A comprehensive version information string.
Definition: XMP_Const.h:1579
kXMPTemplate_ReplaceExistingProperties
@ kXMPTemplate_ReplaceExistingProperties
Perform a Replace operation, add new properties and modify existing ones.
Definition: XMP_Const.h:841
XMP_Error::notified
XMP_Bool notified
Variable to store whether this particular error is notified to user or not.
Definition: XMP_Const.h:1360
kXMP_IterAliases
@ kXMP_IterAliases
Iterate the global alias table.
Definition: XMP_Const.h:789
kXMP_PropValueIsArray
@ kXMP_PropValueIsArray
Definition: XMP_Const.h:617
kXMPFiles_ForceGivenHandler
@ kXMPFiles_ForceGivenHandler
Force use of the given handler (format), do not even verify the format.
Definition: XMP_Const.h:1185
kXMPUtil_ReplaceOldValues
@ kXMPUtil_ReplaceOldValues
Replace existing values, default is to leave them.
Definition: XMP_Const.h:861
kXMP_PDFFile
@ kXMP_PDFFile
Public file format constant: 'PDF '.
Definition: XMP_Const.h:889
kXMPErr_BadObject
@ kXMPErr_BadObject
Generic bad object error.
Definition: XMP_Const.h:1379
XMP_DateTime::second
XMP_Int32 second
The second in the range 0..59.
Definition: XMP_Const.h:250
kXMP_WAVFile
@ kXMP_WAVFile
Public file format constant: 'WAV '.
Definition: XMP_Const.h:920
kXMPErrSev_ProcessFatal
@ kXMPErrSev_ProcessFatal
Recovery is not possible, an exception will be thrown, the entire process should be aborted.
Definition: XMP_Const.h:1253
kXMP_AIFFFile
@ kXMP_AIFFFile
Public file format constant: 'AIFF'.
Definition: XMP_Const.h:938
Min_XMP_Int16
static const XMP_Int16 Min_XMP_Int16
Definition: XMP_Const.h:129
XMP_Bool
XMP_Uns8 XMP_Bool
Definition: XMP_Const.h:111
kXMP_HEIFFile
@ kXMP_HEIFFile
Public file format constant: 'HEIF', HEIF file format.
Definition: XMP_Const.h:944
kXMPTemplate_AddNewProperties
@ kXMPTemplate_AddNewProperties
Perform an Add operation, add properties if they don't already exist.
Definition: XMP_Const.h:847
XMP_DateTime::hasTime
XMP_Bool hasTime
Is the time portion meaningful?
Definition: XMP_Const.h:256
XMP_VersionInfo
struct XMP_VersionInfo XMP_VersionInfo
XMP Toolkit version information.
kXMP_CINFile
@ kXMP_CINFile
Public file format constant: 'CIN ', Cineon.
Definition: XMP_Const.h:918
XMP_TriState
XMP_Int8 XMP_TriState
Definition: XMP_Const.h:206
kXMPErr_BadParse
@ kXMPErr_BadParse
XML parsing error (deprecated)
Definition: XMP_Const.h:1421
XMP_ProgressReportWrapper
XMP_Bool(* XMP_ProgressReportWrapper)(XMP_ProgressReportProc proc, void *context, float elapsedTime, float fractionDone, float secondsToGo)
Internal: The signature of a client-side wrapper for the progress report callback.
Definition: XMP_Const.h:1555
kXMP_PropHasType
@ kXMP_PropHasType
Implies kXMP_PropHasQualifiers, property has rdf:type.
Definition: XMP_Const.h:607
XMPMeta_ErrorCallbackProc
bool(* XMPMeta_ErrorCallbackProc)(void *context, XMP_ErrorSeverity severity, XMP_Int32 cause, XMP_StringPtr message)
The signature of a client-defined callback for TXMPMeta error notifications.
Definition: XMP_Const.h:1281
kXMPErr_BadBlockFormat
@ kXMPErr_BadBlockFormat
A block of a file is ill-formed, e.g. invalid IPTC-IIM in a photo.
Definition: XMP_Const.h:1441
kXMP_IterNamespaces
@ kXMP_IterNamespaces
Iterate the global namespace table.
Definition: XMP_Const.h:792
kXMPFiles_NeedsReadOnlyPacket
@ kXMPFiles_NeedsReadOnlyPacket
The file format needs the XMP packet to be read-only.
Definition: XMP_Const.h:1153
Min_XMP_Uns8
static const XMP_Uns8 Min_XMP_Uns8
Definition: XMP_Const.h:118
Max_XMP_Int64
static const XMP_Int64 Max_XMP_Int64
Definition: XMP_Const.h:134
XMP_DateTime::hasTimeZone
XMP_Bool hasTimeZone
Is the time zone meaningful?
Definition: XMP_Const.h:259
kXMP_JPEGFile
@ kXMP_JPEGFile
Public file format constant: 'JPEG'.
Definition: XMP_Const.h:896
kXMPErr_NoFileHandler
@ kXMPErr_NoFileHandler
No file handler found for format.
Definition: XMP_Const.h:1427
kXMPErr_BadIndex
@ kXMPErr_BadIndex
Bad index parameter.
Definition: XMP_Const.h:1417
kXMPErr_BadOptions
@ kXMPErr_BadOptions
Bad options parameter.
Definition: XMP_Const.h:1415
XMPIteratorRef
struct __XMPIterator__ * XMPIteratorRef
An "ABI safe" pointer to the internal part of an XMP iteration object. Use to pass an XMP iteration o...
Definition: XMP_Const.h:143
kXMPFiles_CanExpand
@ kXMPFiles_CanExpand
Can expand XMP or other metadata in an existing file.
Definition: XMP_Const.h:1129
kXMP_SeekFromStart
@ kXMP_SeekFromStart
Definition: XMP_Const.h:876
Max_XMP_Int32
static const XMP_Int32 Max_XMP_Int32
Definition: XMP_Const.h:132
kXMP_Char32BitBig
@ kXMP_Char32BitBig
32-bit big-endian
Definition: XMP_Const.h:1024
kXMP_Bool_False
const XMP_Uns8 kXMP_Bool_False
Definition: XMP_Const.h:113
kXMP_EncodeUTF32Big
@ kXMP_EncodeUTF32Big
Use UTF32 big-endian encoding.
Definition: XMP_Const.h:770
kXMPErr_EmptyIterator
@ kXMPErr_EmptyIterator
Empty iterator.
Definition: XMP_Const.h:1457
XMP_PacketInfo::hasWrapper
XMP_Bool hasWrapper
True if there is a packet wrapper, the "<?xpacket...>" XML processing instructions.
Definition: XMP_Const.h:1095
kXMP_TIFFFile
@ kXMP_TIFFFile
Public file format constant: 'TIFF'.
Definition: XMP_Const.h:900
XMP_Error::IsNotified
XMP_Bool IsNotified() const
Retrieves the information whether particular error is notified or not.
Definition: XMP_Const.h:1348
kXMP_P2File
@ kXMP_P2File
Public file format constant: 'P2 ', a collection not really a single file.
Definition: XMP_Const.h:946
kXMP_XMLFile
@ kXMP_XMLFile
Public file format constant: 'XML '.
Definition: XMP_Const.h:965
XMP_Status
XMP_Int32 XMP_Status
A signed 32-bit integer used as a status result for the output callback routine, XMP_TextOutputProc....
Definition: XMP_Const.h:1494
kXMPErr_BadPNG
@ kXMPErr_BadPNG
PNG format error.
Definition: XMP_Const.h:1475
kXMP_EncodeUTF32Little
@ kXMP_EncodeUTF32Little
Use UTF13 little-endian encoding.
Definition: XMP_Const.h:773
kXMP_EncodingMask
@ kXMP_EncodingMask
Bit-flag mask for encoding-type bits.
Definition: XMP_Const.h:758
kXMP_EncodeUTF8
@ kXMP_EncodeUTF8
Use UTF8 encoding.
Definition: XMP_Const.h:761
kXMP_AEProjTemplateFile
@ kXMP_AEProjTemplateFile
Adobe application file format constant: 'AET ', After Effects Project Template.
Definition: XMP_Const.h:983
kXMPFiles_HandlerOwnsFile
@ kXMPFiles_HandlerOwnsFile
The file handler does the file open and close.
Definition: XMP_Const.h:1147
kXMPErr_BadTIFF
@ kXMPErr_BadTIFF
TIFF format error.
Definition: XMP_Const.h:1461
kXMP_IterProperties
@ kXMP_IterProperties
Iterate the property tree of a TXMPMeta object.
Definition: XMP_Const.h:786
kXMPErr_UserAbort
@ kXMPErr_UserAbort
Generic user abort error.
Definition: XMP_Const.h:1397
kXMP_CanonXFFile
@ kXMP_CanonXFFile
Public file format constant: 'CNXF', a collection not really a single file.
Definition: XMP_Const.h:958
kXMP_IllustratorFile
@ kXMP_IllustratorFile
Adobe application file format constant: 'AI '.
Definition: XMP_Const.h:977
kXMP_IncludeThumbnailPad
@ kXMP_IncludeThumbnailPad
Include a padding allowance for a thumbnail image.
Definition: XMP_Const.h:739
kXMP_PropArrayIsAlternate
@ kXMP_PropArrayIsAlternate
Implies kXMP_PropArrayIsOrdered, items are alternates. It is serialized using an rdf:Alt container.
Definition: XMP_Const.h:626
XMP_OptionBits
XMP_Uns32 XMP_OptionBits
The type for a collection of 32 flag bits.
Definition: XMP_Const.h:181
kXMP_HTMLFile
@ kXMP_HTMLFile
Public file format constant: 'HTML'.
Definition: XMP_Const.h:963
kXMPErr_BadPSD
@ kXMPErr_BadPSD
PSD format error.
Definition: XMP_Const.h:1465
XMP_DateTime::tzHour
XMP_Int32 tzHour
The time zone hour in the range 0..23.
Definition: XMP_Const.h:266
XMP_DateTime
The expanded type for a date and time.
Definition: XMP_Const.h:232
kXMP_InsertAfterItem
@ kXMP_InsertAfterItem
Option for array item location: Insert a new item after the given index.
Definition: XMP_Const.h:692
kXMP_UseCompactFormat
@ kXMP_UseCompactFormat
Use a compact form of RDF.
Definition: XMP_Const.h:733
kXMP_PropIsStable
@ kXMP_PropIsStable
The value of this property is not derived from the document content.
Definition: XMP_Const.h:653
kXMPErr_BadSchema
@ kXMPErr_BadSchema
Bad schema parameter.
Definition: XMP_Const.h:1411
kXMPFiles_OpenStrictly
@ kXMPFiles_OpenStrictly
Be strict about only attempting to use the designated file handler, no fallback to other handlers.
Definition: XMP_Const.h:1188
kXMPFiles_NeedsLocalFileOpened
@ kXMPFiles_NeedsLocalFileOpened
Definition: XMP_Const.h:1169
XMP_DateTime::month
XMP_Int32 month
The month in the range 1..12.
Definition: XMP_Const.h:238
kXMP_MOVFile
@ kXMP_MOVFile
Public file format constant: 'MOV ', Quicktime.
Definition: XMP_Const.h:914
kXMP_ReadOnlyPacket
@ kXMP_ReadOnlyPacket
Default is a writeable packet.
Definition: XMP_Const.h:730
Min_XMP_Uns16
static const XMP_Uns16 Min_XMP_Uns16
Definition: XMP_Const.h:120
XMP_FileFormat
XMP_Uns32 XMP_FileFormat
Type for file format identification constants. See kXMP_PDFFile and following.
Definition: XMP_Const.h:1004
kXMPFiles_UpdateSafely
@ kXMPFiles_UpdateSafely
Write into a temporary file and swap for crash safety.
Definition: XMP_Const.h:1210
kXMP_IterJustLeafName
@ kXMP_IterJustLeafName
Return just the leaf part of the path, default is the full path.
Definition: XMP_Const.h:801
kXMPFiles_OpenRepairFile
@ kXMPFiles_OpenRepairFile
Attempt to repair a file opened for update, default is to not open (throw an exception).
Definition: XMP_Const.h:1200
kXMPErr_BadRDF
@ kXMPErr_BadRDF
RDF format error.
Definition: XMP_Const.h:1453
kXMPErr_UnknownException
@ kXMPErr_UnknownException
Generic unknown exception.
Definition: XMP_Const.h:1401
XMP_DateTime::hasDate
XMP_Bool hasDate
Is the date portion meaningful?
Definition: XMP_Const.h:253
kXMPFiles_CanNotifyProgress
@ kXMPFiles_CanNotifyProgress
The file Handler is capable of notifying progress notifications.
Definition: XMP_Const.h:1162
kXMP_PropHasLang
@ kXMP_PropHasLang
Implies kXMP_PropHasQualifiers, property has xml:lang.
Definition: XMP_Const.h:604
kXMPErr_EnforceFailure
@ kXMPErr_EnforceFailure
Generic enforcement failure.
Definition: XMP_Const.h:1387
kXMP_PropValueOptionsMask
@ kXMP_PropValueOptionsMask
Bit-flag mask for property-value option bits.
Definition: XMP_Const.h:698
kXMP_GIFFile
@ kXMP_GIFFile
Public file format constant: 'GIF '.
Definition: XMP_Const.h:902
kXMPErr_Unknown
@ kXMPErr_Unknown
Generic unknown error.
Definition: XMP_Const.h:1373
kXMP_PropValueIsStruct
@ kXMP_PropValueIsStruct
The value is a structure with nested fields.
Definition: XMP_Const.h:613
kXMPErr_Unimplemented
@ kXMPErr_Unimplemented
Generic unimplemented error.
Definition: XMP_Const.h:1389