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

Embedded image functions for ID3. More...

#include "compile_time.h"
#include "src/webserver/albumart_id3.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 <id3tag.h>
#include <stdlib.h>
Include dependency graph for albumart_id3.c:

Functions

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

Detailed Description

Embedded image functions for ID3.

Function Documentation

◆ handle_coverextract_id3()

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

Extracts albumart from id3v2 tagged files

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