MPD
|
#include <decoder_plugin.h>
Data Fields | |
const char * | name |
bool(* | init )(const struct config_param *param) |
Initialize the decoder plugin. | |
void(* | finish )(void) |
Deinitialize a decoder plugin which was initialized successfully. | |
void(* | stream_decode )(struct decoder *decoder, struct input_stream *is) |
Decode a stream (data read from an input_stream object). | |
void(* | file_decode )(struct decoder *decoder, const char *path_fs) |
Decode a local file. | |
struct tag *(* | tag_dup )(const char *path_fs) |
Read the tags of a local file. | |
struct tag *(* | stream_tag )(struct input_stream *is) |
Read the tags of a stream. | |
char *(* | container_scan )(const char *path_fs, const unsigned int tnum) |
Return a "virtual" filename for subtracks in container formats like flac. | |
const char *const * | suffixes |
const char *const * | mime_types |
Definition at line 36 of file decoder_plugin.h.
char*(* decoder_plugin::container_scan)(const char *path_fs, const unsigned int tnum) |
Return a "virtual" filename for subtracks in container formats like flac.
const | char* pathname full pathname for the file on fs |
const | unsigned int tnum track number |
Definition at line 96 of file decoder_plugin.h.
Decode a local file.
Either implement this method or stream_decode().
Definition at line 70 of file decoder_plugin.h.
void(* decoder_plugin::finish)(void) |
Deinitialize a decoder plugin which was initialized successfully.
Optional method.
Definition at line 53 of file decoder_plugin.h.
bool(* decoder_plugin::init)(const struct config_param *param) |
Initialize the decoder plugin.
Optional method.
param | a configuration block for this plugin, or NULL if none is configured |
Definition at line 47 of file decoder_plugin.h.
const char* const* decoder_plugin::mime_types |
Definition at line 100 of file decoder_plugin.h.
const char* decoder_plugin::name |
Definition at line 37 of file decoder_plugin.h.
void(* decoder_plugin::stream_decode)(struct decoder *decoder, struct input_stream *is) |
Decode a stream (data read from an input_stream object).
Either implement this method or file_decode(). If possible, it is recommended to implement this method, because it is more versatile.
Definition at line 62 of file decoder_plugin.h.
|
read |
Read the tags of a stream.
Definition at line 84 of file decoder_plugin.h.
const char* const* decoder_plugin::suffixes |
Definition at line 99 of file decoder_plugin.h.
|
read |
Read the tags of a local file.
Definition at line 77 of file decoder_plugin.h.