Stateless parser class for IPTC data. Images use this class to decode and encode binary IPTC data. More...
#include <iptc.hpp>
Static Public Member Functions | |
static int | decode (IptcData &iptcData, const byte *pData, size_t size) |
Decode binary IPTC data in IPTC IIM4 format from a buffer pData of length size to the provided metadata container. More... | |
static DataBuf | encode (const IptcData &iptcData) |
Encode the IPTC datasets from iptcData to a binary representation in IPTC IIM4 format. More... | |
Stateless parser class for IPTC data. Images use this class to decode and encode binary IPTC data.
|
static |
Decode binary IPTC data in IPTC IIM4 format from a buffer pData of length size to the provided metadata container.
iptcData | Metadata container to add the decoded IPTC datasets to. |
pData | Pointer to the data buffer to read from. |
size | Number of bytes in the data buffer. |
Encode the IPTC datasets from iptcData to a binary representation in IPTC IIM4 format.
Convert the IPTC datasets to binary format and return it. Caller owns the returned buffer. The copied data follows the IPTC IIM4 standard.