2012-09-14 15:51:26 +00:00
|
|
|
#ifndef MPLAYER_ENCODE_H
|
|
|
|
#define MPLAYER_ENCODE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <libavutil/avutil.h>
|
|
|
|
|
|
|
|
struct MPOpts;
|
|
|
|
struct encode_lavc_context;
|
|
|
|
struct encode_output_conf;
|
|
|
|
|
|
|
|
// interface for mplayer.c
|
|
|
|
struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options);
|
|
|
|
void encode_lavc_finish(struct encode_lavc_context *ctx);
|
|
|
|
void encode_lavc_free(struct encode_lavc_context *ctx);
|
|
|
|
void encode_lavc_discontinuity(struct encode_lavc_context *ctx);
|
|
|
|
bool encode_lavc_showhelp(struct MPOpts *opts);
|
2013-06-20 09:16:51 +00:00
|
|
|
int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position);
|
2012-09-14 15:51:26 +00:00
|
|
|
void encode_lavc_expect_stream(struct encode_lavc_context *ctx, enum AVMediaType mt);
|
2013-03-04 21:21:57 +00:00
|
|
|
void encode_lavc_set_video_fps(struct encode_lavc_context *ctx, float fps);
|
2012-09-14 15:51:26 +00:00
|
|
|
bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed
|
|
|
|
|
|
|
|
#endif
|