[flac-dev] METADATA_BLOCK_PICTURE indexed-color field

Martijn van Beurden mvanb1 at gmail.com
Wed Jul 7 13:05:35 UTC 2021


Op ma 5 jul. 2021 om 15:07 schreef leo60228 <leo at 60228.dev>:
> I'm not clear on the utility of this. Do any programs made use of it?
> What do they use it for?

It's hard to tell whether any program uses this. The manual says

Otherwise, you must specify the width in pixels, height in pixels, and
color depth in bits-per-pixel. If the image has indexed colors you
should also specify the number of colors used. When manually
specified, it is not checked against the file for accuracy.

It says should, where it says color depth must be specified. I cannot
find out how FLAC actually sets this by itself. Maybe you can decipher
this bit of code to find out:
https://github.com/xiph/flac/blob/master/src/share/grabbag/picture.c#L259


More information about the flac-dev mailing list