Mercurial > mplayer.hg
diff libmpcodecs/vf.h @ 14878:5723c4b2a2ea
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>
author | henry |
---|---|
date | Tue, 01 Mar 2005 20:21:58 +0000 |
parents | c9ff4fe2caaf |
children | c82c0d407ec9 |
line wrap: on
line diff
--- a/libmpcodecs/vf.h Tue Mar 01 20:16:49 2005 +0000 +++ b/libmpcodecs/vf.h Tue Mar 01 20:21:58 2005 +0000 @@ -19,6 +19,11 @@ 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 @@ // 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_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);