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

Embedded image functions for ID3. More...

#include "dist/sds/sds.h"
#include <stdbool.h>
Include dependency graph for albumart_id3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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