diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-01 20:21:58 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-01 20:21:58 +0000 |
commit | 18abbb69a1198ab205444219aad830d20a8acd9c (patch) | |
tree | a0a29016c7a1d17bc8e7cdac20108975f73b1608 /libmpcodecs/vf.h | |
parent | 9bc6e8097212e5358a0dce1dda158b0f05e017d9 (diff) | |
download | mpv-18abbb69a1198ab205444219aad830d20a8acd9c.tar.bz2 mpv-18abbb69a1198ab205444219aad830d20a8acd9c.tar.xz |
fixes for encoding of multiple files
- do not uninitialize video encoder between files
- checks for image size & format change moved from mencoder.c to vfilters
by Oded Shimon <ods15@ods15.dyndns.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14879 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf.h')
-rw-r--r-- | libmpcodecs/vf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h index 85ae9a6f89..77f80d2897 100644 --- a/libmpcodecs/vf.h +++ b/libmpcodecs/vf.h @@ -19,6 +19,11 @@ typedef struct vf_image_context_s { int static_idx; } vf_image_context_t; +typedef struct vf_format_context_t { + int have_configured; + int orig_width, orig_height, orig_fmt; +} vf_format_context_t; + typedef struct vf_instance_s { vf_info_t* info; // funcs: @@ -44,6 +49,7 @@ typedef struct vf_instance_s { // data: int w, h; vf_image_context_t imgctx; + vf_format_context_t fmt; struct vf_instance_s* next; mp_image_t *dmpi; struct vf_priv_s* priv; @@ -99,3 +105,6 @@ void vf_list_plugins(); void vf_uninit_filter(vf_instance_t* vf); void vf_uninit_filter_chain(vf_instance_t* vf); +int vf_config_wrapper(struct vf_instance_s* vf, + int width, int height, int d_width, int d_height, + unsigned int flags, unsigned int outfmt); |