2009-05-01 09:31:59 -04:00
|
|
|
|
|
|
|
#ifndef __TRANSCODE_H__
|
|
|
|
#define __TRANSCODE_H__
|
|
|
|
|
2014-03-13 18:33:35 -04:00
|
|
|
#include <event.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
|
|
|
|
|
|
|
#endif /* !__TRANSCODE_H__ */
|