I’m trying to see how to use the juce::ImageFileFormat functions to create multiple juce::Image objects from one blob of data in memory.
As background, I’m trying to load cover art from tags in an aac file. The covr atom can hold multiple images.
I’m currently calling juce::ImageFileFormat::loadFrom with the data blob and its entire size. I know there are multiple images inside, but I don’t know where the first one ends and the next one begins (or I could call juce::ImageFileFormat::loadFrom again with the appropriate offset and size).
If I can somehow learn the size of the image (in raw bytes from the original memory blob) that loadFrom found, I’d have enough info to call it again.
I’m not sure whether adding accessors to juce::Image for that makes sense, or there’s some way to get loadFrom to construct multiple objects.
Is this a new problem? Anyone else have any strategies for solving this?