annotate src/flac-1.2.1/include/share/grabbag/picture.h @ 124:e3d5853d5918

Current stable PortAudio source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 18 Oct 2016 13:11:05 +0100
parents 98c1576536ae
children
rev   line source
cannam@86 1 /* grabbag - Convenience lib for various routines common to several tools
cannam@86 2 * Copyright (C) 2006,2007 Josh Coalson
cannam@86 3 *
cannam@86 4 * This program is free software; you can redistribute it and/or
cannam@86 5 * modify it under the terms of the GNU General Public License
cannam@86 6 * as published by the Free Software Foundation; either version 2
cannam@86 7 * of the License, or (at your option) any later version.
cannam@86 8 *
cannam@86 9 * This program is distributed in the hope that it will be useful,
cannam@86 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@86 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@86 12 * GNU General Public License for more details.
cannam@86 13 *
cannam@86 14 * You should have received a copy of the GNU General Public License
cannam@86 15 * along with this program; if not, write to the Free Software
cannam@86 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cannam@86 17 */
cannam@86 18
cannam@86 19 /* This .h cannot be included by itself; #include "share/grabbag.h" instead. */
cannam@86 20
cannam@86 21 #ifndef GRABBAG__PICTURE_H
cannam@86 22 #define GRABBAG__PICTURE_H
cannam@86 23
cannam@86 24 #include "FLAC/metadata.h"
cannam@86 25
cannam@86 26 #ifdef __cplusplus
cannam@86 27 extern "C" {
cannam@86 28 #endif
cannam@86 29
cannam@86 30 /* spec should be of the form "[TYPE]|MIME_TYPE|[DESCRIPTION]|[WIDTHxHEIGHTxDEPTH[/COLORS]]|FILE", e.g.
cannam@86 31 * "|image/jpeg|||cover.jpg"
cannam@86 32 * "4|image/jpeg||300x300x24|backcover.jpg"
cannam@86 33 * "|image/png|description|300x300x24/71|cover.png"
cannam@86 34 * "-->|image/gif||300x300x24/71|http://blah.blah.blah/cover.gif"
cannam@86 35 *
cannam@86 36 * empty type means default to FLAC__STREAM_METADATA_PICTURE_TYPE_FRONT_COVER
cannam@86 37 * empty resolution spec means to get from the file (cannot get used with "-->" linked images)
cannam@86 38 * spec and error_message must not be NULL
cannam@86 39 */
cannam@86 40 FLAC__StreamMetadata *grabbag__picture_parse_specification(const char *spec, const char **error_message);
cannam@86 41
cannam@86 42 #ifdef __cplusplus
cannam@86 43 }
cannam@86 44 #endif
cannam@86 45
cannam@86 46 #endif