diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2006-09-24 16:17:53 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2006-09-24 16:17:53 +0000 |
commit | 6e94c90e606b9fcaff60bfb961dced8292075cb2 (patch) | |
tree | 18f74c6d31ae1a6ac8d5e66b692b86bc8eed3193 /include/share/grabbag | |
parent | 63da21f4f91335ab36750bcf9046cfc913d59086 (diff) | |
download | flac-6e94c90e606b9fcaff60bfb961dced8292075cb2.tar.gz |
add parsing of picture type from spec; add check that type 1 picture is 32x32 PNG
Diffstat (limited to 'include/share/grabbag')
-rw-r--r-- | include/share/grabbag/picture.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/share/grabbag/picture.h b/include/share/grabbag/picture.h index ed864f7d..e69072aa 100644 --- a/include/share/grabbag/picture.h +++ b/include/share/grabbag/picture.h @@ -27,7 +27,16 @@ extern "C" { #endif -/* spec and error_message must not be NULL */ +/* spec should be of the form "[TYPE]|MIME_TYPE|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE", e.g. + * "|image/jpeg|||cover.jpg" + * "4|image/jpeg||300x300x24|backcover.jpg" + * "|image/png|description|300x300x24/71|cover.png" + * "-->|image/gif||300x300x24/71|http://blah.blah.blah/cover.gif" + * + * empty type means default to FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER + * empty resolution spec means to get from the file (cannot get used with "-->" linked images) + * spec and error_message must not be NULL + */ FLAC__StreamMetadata *grabbag__picture_parse_specification(const char *spec, const char **error_message); #ifdef __cplusplus |