|
|
@ -37,6 +37,7 @@ |
|
|
|
#include "mp_msg.h" |
|
|
|
#include "mp_msg.h" |
|
|
|
#include "cpudetect.h" |
|
|
|
#include "cpudetect.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/common.h" |
|
|
|
#include "libavutil/internal.h" |
|
|
|
#include "libavutil/internal.h" |
|
|
|
#include "libavutil/intreadwrite.h" |
|
|
|
#include "libavutil/intreadwrite.h" |
|
|
|
#include "libavcodec/avcodec.h" |
|
|
|
#include "libavcodec/avcodec.h" |
|
|
@ -49,7 +50,7 @@ |
|
|
|
#include "img_format.h" |
|
|
|
#include "img_format.h" |
|
|
|
#include "mp_image.h" |
|
|
|
#include "mp_image.h" |
|
|
|
#include "vf.h" |
|
|
|
#include "vf.h" |
|
|
|
#include "vd_ffmpeg.h" |
|
|
|
#include "av_helpers.h" |
|
|
|
#include "libvo/fastmemcpy.h" |
|
|
|
#include "libvo/fastmemcpy.h" |
|
|
|
|
|
|
|
|
|
|
|
#define XMIN(a,b) ((a) < (b) ? (a) : (b)) |
|
|
|
#define XMIN(a,b) ((a) < (b) ? (a) : (b)) |
|
|
@ -578,8 +579,8 @@ static int vf_open(vf_instance_t *vf, char *args){ |
|
|
|
|
|
|
|
|
|
|
|
ff_init_avcodec(); |
|
|
|
ff_init_avcodec(); |
|
|
|
|
|
|
|
|
|
|
|
vf->priv->avctx= avcodec_alloc_context(); |
|
|
|
vf->priv->avctx= avcodec_alloc_context3(NULL); |
|
|
|
dsputil_init(&vf->priv->dsp, vf->priv->avctx); |
|
|
|
ff_dsputil_init(&vf->priv->dsp, vf->priv->avctx); |
|
|
|
|
|
|
|
|
|
|
|
vf->priv->log2_count= 3; |
|
|
|
vf->priv->log2_count= 3; |
|
|
|
|
|
|
|
|
|
|
|