19 static constexpr std::array<const char*, 4> irbId_{
"8BIM",
"AgHg",
"DCSR",
"PHUT"};
20 static constexpr auto ps3Id_ =
"Photoshop 3.0\0";
21 static constexpr uint16_t iptc_ = 0x0404;
22 static constexpr uint16_t preview_ = 0x040c;
29 static bool isIrb(
const byte* pPsData);
35 static bool valid(
const byte* pPsData,
size_t sizePsData);
50 static int locateIrb(
const byte* pPsData,
size_t sizePsData, uint16_t psTag,
const byte** record, uint32_t& sizeHdr,
54 static int locateIptcIrb(
const byte* pPsData,
size_t sizePsData,
const byte** record, uint32_t& sizeHdr,
58 static int locatePreviewIrb(
const byte* pPsData,
size_t sizePsData,
const byte** record, uint32_t& sizeHdr,
66 static DataBuf setIptcIrb(
const byte* pPsData,
size_t sizePsData,
const IptcData& iptcData);