2009-05-01 09:31:59 -04:00
|
|
|
|
|
|
|
#ifndef __TRANSCODE_H__
|
|
|
|
#define __TRANSCODE_H__
|
|
|
|
|
2014-09-28 16:44:45 -04:00
|
|
|
#ifdef HAVE_LIBEVENT2
|
|
|
|
# include <event2/buffer.h>
|
|
|
|
#else
|
|
|
|
# include <event.h>
|
|
|
|
#endif
|
2015-03-14 16:42:53 -04:00
|
|
|
#include "icy.h"
|
2009-05-01 09:31:59 -04:00
|
|
|
|
|
|
|
struct transcode_ctx;
|
|
|
|
|
|
|
|
int
|
|
|
|
transcode(struct transcode_ctx *ctx, struct evbuffer *evbuf, int wanted);
|
|
|
|
|
2010-04-04 06:34:28 -04:00
|
|
|
int
|
|
|
|
transcode_seek(struct transcode_ctx *ctx, int ms);
|
|
|
|
|
2014-03-11 18:20:29 -04:00
|
|
|
int
|
|
|
|
transcode_setup(struct transcode_ctx **nctx, struct media_file_info *mfi, off_t *est_size, int wavhdr);
|
2009-05-01 09:31:59 -04:00
|
|
|
|
|
|
|
void
|
|
|
|
transcode_cleanup(struct transcode_ctx *ctx);
|
|
|
|
|
|
|
|
int
|
2014-08-22 18:02:01 -04:00
|
|
|
transcode_needed(const char *user_agent, const char *client_codecs, char *file_codectype);
|
2009-05-01 09:31:59 -04:00
|
|
|
|
2015-03-14 16:42:53 -04:00
|
|
|
void
|
|
|
|
transcode_metadata(struct transcode_ctx *ctx, struct icy_metadata **metadata, int *changed);
|
|
|
|
|
|
|
|
void
|
|
|
|
transcode_metadata_artwork_url(struct transcode_ctx *ctx, char **artwork_url, char *stream_url);
|
|
|
|
|
2009-05-01 09:31:59 -04:00
|
|
|
#endif /* !__TRANSCODE_H__ */
|