From 3382a6f6e48c7e093c2b7e0e4a0e28b60a084358 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 8 Jun 2013 01:35:44 +0200 Subject: video: add a new method to configure filters and VOs The filter chain and the video ouputs have config() functions. They are strictly limited to transfering the video size and format. Other parameters (like color levels) have to be transferred separately. Improve upon this by introducing a separate set of reconfig() functions, which use mp_image_params to carry format parameters. This struct contains all image format related parameters from config(), plus additional parameters such as colorspace. Change vf_rotate to use it, as well as vo_opengl. vf_rotate is just an example/test case, but vo_opengl will need it later. The intention is also to get rid of VOCTRL_SET_YUV_COLORSPACE. This information is now handed to the VOs via reconfig(). The getter, VOCTRL_GET_YUV_COLORSPACE, will still be needed though. --- demux/stheader.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'demux/stheader.h') diff --git a/demux/stheader.h b/demux/stheader.h index 58caa27dcd..ff98430a65 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -149,9 +149,7 @@ typedef struct sh_video { int colorspace; // mp_csp int color_range; // mp_csp_levels // output driver/filters: (set by libmpcodecs core) - unsigned int outfmt; struct vf_instance *vfilter; // video filter chain - int output_flags; // query_format() results for output filters+vo const struct vd_functions *vd_driver; int vf_initialized; // -1 failed, 0 not done, 1 done // win32-compatible codec parameters: -- cgit v1.2.3