myMPD
Internal API documentation
|
Embedded image functions for FLAC. More...
#include "compile_time.h"
#include "src/webserver/albumart_flac.h"
#include "src/lib/cache/cache_disk_images.h"
#include "src/lib/log.h"
#include "src/lib/mimetype.h"
#include "src/lib/sds_extras.h"
#include <FLAC/metadata.h>
Functions | |
bool | handle_coverextract_flac (sds cachedir, const char *uri, const char *media_file, sds *binary, bool is_ogg, bool covercache, int offset) |
Embedded image functions for FLAC.
bool handle_coverextract_flac | ( | sds | cachedir, |
const char * | uri, | ||
const char * | media_file, | ||
sds * | binary, | ||
bool | is_ogg, | ||
bool | covercache, | ||
int | offset | ||
) |
Extracts albumart from vorbis tagged files
cachedir | covercache directory |
uri | song uri |
media_file | full path to the song |
binary | pointer to already allocates sds string to hold the image |
is_ogg | true if it is a ogg file, false if it is a flac file |
covercache | true = covercache is enabled |
offset | number of embedded image to extract |