myMPD
Internal API documentation
Loading...
Searching...
No Matches
albumart_flac.c File Reference

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>
Include dependency graph for albumart_flac.c:

Functions

bool handle_coverextract_flac (sds cachedir, const char *uri, const char *media_file, sds *binary, bool is_ogg, bool covercache, int offset)
 

Detailed Description

Embedded image functions for FLAC.

Function Documentation

◆ handle_coverextract_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

Parameters
cachedircovercache directory
urisong uri
media_filefull path to the song
binarypointer to already allocates sds string to hold the image
is_oggtrue if it is a ogg file, false if it is a flac file
covercachetrue = covercache is enabled
offsetnumber of embedded image to extract
Returns
true on success, else false