2013-12-03 21:19:27 +00:00
|
|
|
#ifndef MP_VF_LAVFI_H_
|
|
|
|
#define MP_VF_LAVFI_H_
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2013-12-17 01:39:45 +00:00
|
|
|
#include "common/common.h"
|
2013-12-03 21:19:27 +00:00
|
|
|
#include "vf.h"
|
|
|
|
|
|
|
|
struct vf_lw_opts;
|
|
|
|
|
2014-03-16 09:25:05 +00:00
|
|
|
#if HAVE_LIBAVFILTER
|
2013-12-03 21:19:27 +00:00
|
|
|
|
|
|
|
extern const struct m_sub_options vf_lw_conf;
|
|
|
|
|
|
|
|
int vf_lw_set_graph(struct vf_instance *vf, struct vf_lw_opts *lavfi_opts,
|
|
|
|
char *filter, char *opts, ...) PRINTF_ATTRIBUTE(4,5);
|
|
|
|
void *vf_lw_old_priv(struct vf_instance *vf);
|
|
|
|
void vf_lw_update_graph(struct vf_instance *vf, char *filter, char *opts, ...)
|
|
|
|
PRINTF_ATTRIBUTE(3,4);
|
2014-09-27 15:14:23 +00:00
|
|
|
void vf_lw_set_reconfig_cb(struct vf_instance *vf,
|
|
|
|
int (*reconfig)(struct vf_instance *vf,
|
|
|
|
struct mp_image_params *in,
|
|
|
|
struct mp_image_params *out));
|
2013-12-03 21:19:27 +00:00
|
|
|
#else
|
|
|
|
static inline
|
|
|
|
int vf_lw_set_graph(struct vf_instance *vf, struct vf_lw_opts *lavfi_opts,
|
|
|
|
char *filter, char *opts, ...)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
static void *vf_lw_old_priv(struct vf_instance *vf)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static void vf_lw_update_graph(struct vf_instance *vf, char *filter, char *opts, ...)
|
|
|
|
{
|
|
|
|
}
|
2014-09-28 17:10:50 +00:00
|
|
|
static void vf_lw_set_reconfig_cb(struct vf_instance *vf,
|
2014-09-27 15:14:23 +00:00
|
|
|
int (*reconfig)(struct vf_instance *vf,
|
|
|
|
struct mp_image_params *in,
|
|
|
|
struct mp_image_params *out))
|
2013-12-03 21:19:27 +00:00
|
|
|
{
|
|
|
|
}
|
2013-12-17 01:02:25 +00:00
|
|
|
#include "options/m_option.h"
|
2013-12-03 21:19:27 +00:00
|
|
|
static const struct m_sub_options vf_lw_conf = {0};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|