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-20 18:40:42 -04:00
|
|
|
#include "http.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
|
2015-03-20 18:40:42 -04:00
|
|
|
transcode_metadata(struct transcode_ctx *ctx, struct http_icy_metadata **metadata, int *changed);
|
2015-03-14 16:42:53 -04:00
|
|
|
|
|
|
|
void
|
2015-04-09 16:22:42 -04:00
|
|
|
transcode_metadata_artwork_url(struct transcode_ctx *ctx, char **artwork_url);
|
2015-03-14 16:42:53 -04:00
|
|
|
|
2009-05-01 09:31:59 -04:00
|
|
|
#endif /* !__TRANSCODE_H__ */
|