exiv2._types
Exiv2 metadata data types and utility classes.
Functions
Translate a string using the gettext framework. |
Classes
An identifier for each mode of metadata support. |
|
Type to express the byte order (little or big endian). |
|
Utility class containing a character array. |
|
An identifier for each type of metadata. |
|
std::pair< int32_t,int32_t > |
|
Exiv2 value type identifiers. |
|
Type information lookup functions. |
|
std::pair< uint32_t,uint32_t > |
- class AccessMode
Bases:
IntEnum
An identifier for each mode of metadata support.
- Read = 1
- ReadWrite = 3
- Write = 2
- amNone = 0
- amRead = 1
- amReadWrite = 3
- amWrite = 2
- none = 0
- class ByteOrder
Bases:
IntEnum
Type to express the byte order (little or big endian).
- bigEndian = 2
- invalidByteOrder = 0
- littleEndian = 1
- class DataBuf
Bases:
SwigPyObject
Utility class containing a character array. All it does is to take care of memory allocation and deletion. Its primary use is meant to be as a stack variable in functions that need a temporary data buffer.
- alloc()
Allocate a data buffer of at least the given size. Note that if the requested size is less than the current buffer size, no new memory is allocated and the buffer size doesn’t change.
- cmpBytes()
Equivalent to: memcmp(&pData_[offset], buf, bufsize)
- data()
Returns a temporary Python memoryview of the object’s data.
Warning
do not resize or delete the object while using the view.
- Return type:
- empty()
- reset()
Reset value
- resize()
Resize the buffer. Existing data is preserved (like std::realloc()).
- size()
- class MetadataId
Bases:
IntEnum
An identifier for each type of metadata.
- Comment = 4
- Exif = 1
- IccProfile = 16
- Iptc = 2
- Xmp = 8
- mdComment = 4
- mdExif = 1
- mdIccProfile = 16
- mdIptc = 2
- mdNone = 0
- mdXmp = 8
- none = 0
- class TypeId
Bases:
IntEnum
Exiv2 value type identifiers.
Used primarily as identifiers when creating Exiv2 Value instances. See exiv2.Value.create(). 0x0000 to 0xffff are reserved for TIFF (Exif) types.
- asciiString = 2
- comment = 65539
- date = 65537
- directory = 65540
- invalidTypeId = 131070
- langAlt = 65545
- lastTypeId = 131071
- signedByte = 6
- signedLong = 9
- signedRational = 10
- signedShort = 8
- string = 65536
- tiffDouble = 12
- tiffFloat = 11
- tiffIfd = 13
- time = 65538
- undefined = 7
- unsignedByte = 1
- unsignedLong = 4
- unsignedRational = 5
- unsignedShort = 3
- xmpAlt = 65542
- xmpBag = 65543
- xmpSeq = 65544
- xmpText = 65541
- class TypeInfo
Bases:
SwigPyObject
Type information lookup functions. Implemented as a static class.
- static typeId()
Return the type id for a type name
- static typeName()
Return the name of the type, 0 if unknown.
- static typeSize()
Return the size in bytes of one element of this type
- exvGettext()
Translate a string using the gettext framework. This wrapper hides all the implementation details from the interface.