Exiv2
|
Static class providing mapping functionality from CRW entries to image metadata and vice versa. More...
#include <crwimage_int.hpp>
Static Public Member Functions | |
static void | decode (const CiffComponent &ciffComponent, Image &image, ByteOrder byteOrder) |
Decode image metadata from a CRW entry, convert and add it to the image metadata. This function converts only one CRW component. More... | |
static void | encode (CiffHeader *pHead, const Image &image) |
Encode image metadata from image into the CRW parse tree. This function converts all Exif metadata that Exiv2 can convert to CRW format, in a loop through the entries of the mapping table. More... | |
static void | loadStack (CrwDirs &crwDirs, uint16_t crwDir) |
Load the stack: loop through the CRW subdirs hierarchy and push all directories on the path from crwDir to root onto the stack crwDirs. Requires the subdirs array to be arranged in bottom-up order to be able to finish in only one pass. | |
Static class providing mapping functionality from CRW entries to image metadata and vice versa.
|
static |
Decode image metadata from a CRW entry, convert and add it to the image metadata. This function converts only one CRW component.
ciffComponent | Source CIFF entry |
image | Destination image for the metadata |
byteOrder | Byte order in which the data of the entry is encoded |
References Exiv2::ExifData::add(), Exiv2::asciiString, Exiv2::Image::byteOrder(), Exiv2::Internal::canonEv(), Exiv2::Value::create(), Exiv2::Internal::CiffComponent::dir(), Exiv2::directory, Exiv2::Image::exifData(), Exiv2::exposureTime(), Exiv2::floatToRationalCast(), Exiv2::Internal::fnumber(), Exiv2::getLong(), Exiv2::Internal::groupName(), Exiv2::Internal::CrwMapping::ifdId_, Exiv2::Internal::CiffComponent::pData(), Exiv2::AsciiValue::read(), Exiv2::ValueType< T >::read(), Exiv2::Image::setComment(), Exiv2::ExifThumb::setJpegThumbnail(), Exiv2::Internal::CiffComponent::size(), Exiv2::Internal::CrwMapping::size_, Exiv2::string, Exiv2::Internal::CrwMapping::tag_, Exiv2::Internal::CiffComponent::tagId(), Exiv2::Internal::CrwMapping::toExif_, Exiv2::ValueType< T >::toLong(), Exiv2::Internal::CiffComponent::typeId(), Exiv2::unsignedLong, Exiv2::unsignedShort, and Exiv2::ValueType< T >::value_.
Referenced by Exiv2::Internal::CiffComponent::decode().
|
static |
Encode image metadata from image into the CRW parse tree. This function converts all Exif metadata that Exiv2 can convert to CRW format, in a loop through the entries of the mapping table.
pHead | Destination parse tree. |
image | Source image containing the metadata. |
References Exiv2::Internal::CiffHeader::add(), Exiv2::Internal::CiffHeader::byteOrder(), Exiv2::Image::comment(), Exiv2::Internal::CrwMapping::crwDir_, Exiv2::Internal::CrwMapping::crwTagId_, Exiv2::ExifData::end(), Exiv2::Image::exifData(), Exiv2::exifTime(), Exiv2::Internal::CiffHeader::findComponent(), Exiv2::ExifData::findKey(), Exiv2::Internal::groupName(), Exiv2::Internal::CrwMapping::ifdId_, Exiv2::l2Data(), Exiv2::Internal::packIfdId(), Exiv2::Internal::CiffComponent::pData(), Exiv2::DataBuf::pData_, Exiv2::Internal::CiffHeader::remove(), Exiv2::Internal::CiffComponent::setValue(), Exiv2::Internal::CiffComponent::size(), Exiv2::DataBuf::size_, Exiv2::string, Exiv2::Internal::CrwMapping::tag_, Exiv2::ul2Data(), Exiv2::unsignedShort, and Exiv2::us2Data().
Referenced by Exiv2::CrwParser::encode().