diff options
author | wm4 <wm4@nowhere> | 2014-06-11 02:04:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-11 02:05:07 +0200 |
commit | 8f60de98beef61c3631819a4e3a4be1ec56da00d (patch) | |
tree | 5ece4d50399b6799eaaa7db53379e7a3aa8983c3 /common/encode.h | |
parent | be5725ebc4813f9d5c582fd0f30fe1ebc661e3e1 (diff) | |
download | mpv-8f60de98beef61c3631819a4e3a4be1ec56da00d.tar.bz2 mpv-8f60de98beef61c3631819a4e3a4be1ec56da00d.tar.xz |
encode: make option struct local
Similar to previous commits.
Diffstat (limited to 'common/encode.h')
-rw-r--r-- | common/encode.h | 27 |
1 files changed, 24 insertions, 3 deletions
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, |