summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-02 02:51:33 +0200
committerwm4 <wm4@nowhere>2012-08-02 02:51:33 +0200
commited3f0c3e4b91b672b3a16ef884cd5a4ec3f6a12c (patch)
tree1853c394df3935f5327f2b75e21bb31bb2f8071f
parentd5315a678ea93110f8bde10fe83eca64202988d1 (diff)
downloadmpv-ed3f0c3e4b91b672b3a16ef884cd5a4ec3f6a12c.tar.bz2
mpv-ed3f0c3e4b91b672b3a16ef884cd5a4ec3f6a12c.tar.xz
vf: remove VFCAP_FLIPPED and VFCAP_CONSTANT
These were unused.
-rw-r--r--libmpcodecs/vd.c2
-rw-r--r--libmpcodecs/vf.c13
-rw-r--r--libmpcodecs/vfcap.h4
3 files changed, 1 insertions, 18 deletions
diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c
index e7a497009a..a9dbbf2fe6 100644
--- a/libmpcodecs/vd.c
+++ b/libmpcodecs/vd.c
@@ -243,8 +243,6 @@ int mpcodecs_config_vo2(sh_video_t *sh, int w, int h,
if (!(sh->codec->outflags[j] & CODECS_FLAG_NOFLIP))
opts->flip = 1;
}
- if (sh->output_flags & VFCAP_FLIPPED)
- opts->flip ^= 1;
if (opts->flip && !(sh->output_flags & VFCAP_FLIP)) {
// we need to flip, but no flipping filter avail.
vf_add_before_vo(&vf, "flip", NULL);
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index 8617609151..1954224359 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -683,22 +683,11 @@ int vf_config_wrapper(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt)
{
- int r;
- if ((vf->default_caps & VFCAP_CONSTANT) && vf->fmt.have_configured) {
- if ((vf->fmt.orig_width != width)
- || (vf->fmt.orig_height != height)
- || (vf->fmt.orig_fmt != outfmt)) {
- mp_tmsg(MSGT_VFILTER, MSGL_ERR, "\nNew video file has different "
- "resolution or colorspace than the previous one.\n");
- return 0;
- }
- return 1;
- }
vf->fmt.have_configured = 1;
vf->fmt.orig_height = height;
vf->fmt.orig_width = width;
vf->fmt.orig_fmt = outfmt;
- r = vf->config(vf, width, height, d_width, d_height, flags, outfmt);
+ int r = vf->config(vf, width, height, d_width, d_height, flags, outfmt);
if (!r)
vf->fmt.have_configured = 0;
return r;
diff --git a/libmpcodecs/vfcap.h b/libmpcodecs/vfcap.h
index eca9b5ef7f..86c6f6e477 100644
--- a/libmpcodecs/vfcap.h
+++ b/libmpcodecs/vfcap.h
@@ -35,15 +35,11 @@
// driver/hardware handles timing (blocking)
#define VFCAP_TIMER 0x100
-// driver _always_ flip image upside-down (for ve_vfw)
-#define VFCAP_FLIPPED 0x200
// vf filter: accepts stride (put_image)
// vo driver: has draw_slice() support for the given csp
#define VFCAP_ACCEPT_STRIDE 0x400
// filter does postprocessing (so you shouldn't scale/filter image before it)
#define VFCAP_POSTPROC 0x800
-// filter cannot be reconfigured to different size & format
-#define VFCAP_CONSTANT 0x1000
// filter can draw EOSD
#define VFCAP_EOSD 0x2000
// filter will draw EOSD at screen resolution (without scaling)