diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2012-09-14 17:51:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-18 21:08:20 +0200 |
commit | f5b8b6ac126d8cef3860db16d3db8e72507a2258 (patch) | |
tree | c86a6160cee076d3a632e4d3247e566e8c064390 /encode.h | |
parent | 5617bf483e563aae22100c0ca1d8182f71d4f82d (diff) | |
download | mpv-f5b8b6ac126d8cef3860db16d3db8e72507a2258.tar.bz2 mpv-f5b8b6ac126d8cef3860db16d3db8e72507a2258.tar.xz |
encode: video encoding now supported using mencoder-like options
Diffstat (limited to 'encode.h')
-rw-r--r-- | encode.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/encode.h b/encode.h new file mode 100644 index 0000000000..f0f65f14c5 --- /dev/null +++ b/encode.h @@ -0,0 +1,21 @@ +#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); +int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position, float playback_time); +void encode_lavc_expect_stream(struct encode_lavc_context *ctx, enum AVMediaType mt); +bool encode_lavc_didfail(struct encode_lavc_context *ctx); // check if encoding failed + +#endif |