From 8f60de98beef61c3631819a4e3a4be1ec56da00d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 11 Jun 2014 02:04:02 +0200 Subject: encode: make option struct local Similar to previous commits. --- common/encode.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'common/encode.h') diff --git a/common/encode.h b/common/encode.h index 530805c76f..996fe66857 100644 --- a/common/encode.h +++ b/common/encode.h @@ -8,15 +8,36 @@ struct mpv_global; struct mp_log; struct encode_lavc_context; -struct encode_output_conf; + +struct encode_opts { + char *file; + char *format; + char **fopts; + float fps; + float maxfps; + char *vcodec; + char **vopts; + char *acodec; + char **aopts; + int harddup; + float voffset; + float aoffset; + int copyts; + int rawts; + int autofps; + int neverdrop; + int video_first; + int audio_first; + int metadata; +}; // interface for mplayer.c -struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options, +struct encode_lavc_context *encode_lavc_init(struct encode_opts *options, struct mpv_global *global); 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 mp_log *log, struct encode_output_conf *options); +bool encode_lavc_showhelp(struct mp_log *log, struct encode_opts *options); int encode_lavc_getstatus(struct encode_lavc_context *ctx, char *buf, int bufsize, float relative_position); void encode_lavc_expect_stream(struct encode_lavc_context *ctx, int mt); void encode_lavc_set_metadata(struct encode_lavc_context *ctx, -- cgit v1.2.3