diff --git a/doc/filters.texi b/doc/filters.texi index c681ec3943..858972f31d 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -5190,7 +5190,6 @@ The list of the currently supported filters follows: @item fil @item fspp @item ilpack -@item phase @item pp7 @item pullup @item qp diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 35f03c7cae..3bc0974594 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -229,7 +229,6 @@ OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_eq.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_fil.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_fspp.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_ilpack.o -OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_phase.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_pp7.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_pullup.o OBJS-$(CONFIG_MP_FILTER) += libmpcodecs/vf_qp.o diff --git a/libavfilter/libmpcodecs/vf_phase.c b/libavfilter/libmpcodecs/vf_phase.c deleted file mode 100644 index 25abc5bbcf..0000000000 --- a/libavfilter/libmpcodecs/vf_phase.c +++ /dev/null @@ -1,303 +0,0 @@ -/* - * This file is part of MPlayer. - * - * MPlayer is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * MPlayer is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with MPlayer; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include -#include -#include -#include - -#include "config.h" -#include "mp_msg.h" - -#include "img_format.h" -#include "mp_image.h" -#include "vf.h" - -#include "libvo/fastmemcpy.h" - -enum mode { PROGRESSIVE, TOP_FIRST, BOTTOM_FIRST, - TOP_FIRST_ANALYZE, BOTTOM_FIRST_ANALYZE, - ANALYZE, FULL_ANALYZE, AUTO, AUTO_ANALYZE }; - -#define fixed_mode(p) ((p)<=BOTTOM_FIRST) - -struct vf_priv_s - { - enum mode mode; - int verbose; - unsigned char *buf[3]; - }; - -/* - * Copy fields from either current or buffered previous frame to the - * output and store the current frame unmodified to the buffer. - */ - -static void do_plane(unsigned char *to, unsigned char *from, - int w, int h, int ts, int fs, - unsigned char **bufp, enum mode mode) - { - unsigned char *buf, *end; - int top; - - if(!*bufp) - { - mode=PROGRESSIVE; - if(!(*bufp=malloc(h*w))) return; - } - - for(end=to+h*ts, buf=*bufp, top=1; tonext, mpi->imgfmt, - MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, - mpi->w, mpi->h))) - return 0; - - w=dmpi->w; - if(!(dmpi->flags&MP_IMGFLAG_PLANAR)) - w*=dmpi->bpp/8; - - mode=vf->priv->mode; - - if(!vf->priv->buf[0]) - mode=PROGRESSIVE; - else - mode=analyze_plane(vf->priv->buf[0], mpi->planes[0], - w, dmpi->h, w, mpi->stride[0], mode, - vf->priv->verbose, mpi->fields); - - do_plane(dmpi->planes[0], mpi->planes[0], - w, dmpi->h, - dmpi->stride[0], mpi->stride[0], - &vf->priv->buf[0], mode); - - if(dmpi->flags&MP_IMGFLAG_PLANAR) - { - do_plane(dmpi->planes[1], mpi->planes[1], - dmpi->chroma_width, dmpi->chroma_height, - dmpi->stride[1], mpi->stride[1], - &vf->priv->buf[1], mode); - do_plane(dmpi->planes[2], mpi->planes[2], - dmpi->chroma_width, dmpi->chroma_height, - dmpi->stride[2], mpi->stride[2], - &vf->priv->buf[2], mode); - } - - return ff_vf_next_put_image(vf, dmpi, MP_NOPTS_VALUE); - } - -static void uninit(struct vf_instance *vf) - { - if (!vf->priv) - return; - free(vf->priv->buf[0]); - free(vf->priv->buf[1]); - free(vf->priv->buf[2]); - free(vf->priv); - } - -static int vf_open(vf_instance_t *vf, char *args) - { - vf->put_image = put_image; - vf->uninit = uninit; - vf->default_reqs = VFCAP_ACCEPT_STRIDE; - - if(!(vf->priv = calloc(1, sizeof(struct vf_priv_s)))) - { - uninit(vf); - return 0; - } - - vf->priv->mode=AUTO_ANALYZE; - vf->priv->verbose=0; - - while(args && *args) - { - switch(*args) - { - case 't': vf->priv->mode=TOP_FIRST; break; - case 'a': vf->priv->mode=AUTO; break; - case 'b': vf->priv->mode=BOTTOM_FIRST; break; - case 'u': vf->priv->mode=ANALYZE; break; - case 'T': vf->priv->mode=TOP_FIRST_ANALYZE; break; - case 'A': vf->priv->mode=AUTO_ANALYZE; break; - case 'B': vf->priv->mode=BOTTOM_FIRST_ANALYZE; break; - case 'U': vf->priv->mode=FULL_ANALYZE; break; - case 'p': vf->priv->mode=PROGRESSIVE; break; - case 'v': vf->priv->verbose=1; break; - case ':': break; - - default: - uninit(vf); - return 0; /* bad args */ - } - - if( (args=strchr(args, ':')) ) args++; - } - - return 1; - } - -const vf_info_t ff_vf_info_phase = - { - "phase shift fields", - "phase", - "Ville Saari", - "", - vf_open, - NULL - }; diff --git a/libavfilter/version.h b/libavfilter/version.h index cdae706a05..a87a5753c6 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -31,7 +31,7 @@ #define LIBAVFILTER_VERSION_MAJOR 3 #define LIBAVFILTER_VERSION_MINOR 83 -#define LIBAVFILTER_VERSION_MICRO 100 +#define LIBAVFILTER_VERSION_MICRO 101 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ LIBAVFILTER_VERSION_MINOR, \ diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c index 112a10230c..5384bf41ae 100644 --- a/libavfilter/vf_mp.c +++ b/libavfilter/vf_mp.c @@ -129,7 +129,6 @@ extern const vf_info_t ff_vf_info_eq; extern const vf_info_t ff_vf_info_fil; extern const vf_info_t ff_vf_info_fspp; extern const vf_info_t ff_vf_info_ilpack; -extern const vf_info_t ff_vf_info_phase; extern const vf_info_t ff_vf_info_pp7; extern const vf_info_t ff_vf_info_pullup; extern const vf_info_t ff_vf_info_qp; @@ -144,7 +143,6 @@ static const vf_info_t* const filters[]={ &ff_vf_info_fil, &ff_vf_info_fspp, &ff_vf_info_ilpack, - &ff_vf_info_phase, &ff_vf_info_pp7, &ff_vf_info_pullup, &ff_vf_info_qp,