The default values of ``width'' and ``height'' are respectively 352
and 288 (corresponding to the CIF size format).
+@chapter Available video sinks
+
+Below is a description of the currently available video sinks.
+
+@section nullsink
+
+Null video sink, do absolutely nothing with the input video. It is
+mainly useful as a template and to be employed in analysis / debugging
+tools.
+
@bye
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 1
-#define LIBAVFILTER_VERSION_MINOR 16
+#define LIBAVFILTER_VERSION_MINOR 17
#define LIBAVFILTER_VERSION_MICRO 0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
/*
- * filter registration
- * copyright (c) 2008 Vitor Sessak
- *
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
#include "avfilter.h"
+static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
+{
+}
-#define REGISTER_FILTER(X,x,y) { \
- extern AVFilter avfilter_##y##_##x ; \
- if(CONFIG_##X##_FILTER ) avfilter_register(&avfilter_##y##_##x ); }
-
-void avfilter_register_all(void)
+static void end_frame(AVFilterLink *link)
{
- static int initialized;
+}
- if (initialized)
- return;
- initialized = 1;
+AVFilter avfilter_vsink_nullsink = {
+ .name = "nullsink",
+ .description = "Do absolutely nothing with the input video.",
- REGISTER_FILTER (CROP, crop, vf);
- REGISTER_FILTER (FORMAT, format, vf);
- REGISTER_FILTER (NOFORMAT, noformat, vf);
- REGISTER_FILTER (NULL, null, vf);
- REGISTER_FILTER (SCALE, scale, vf);
- REGISTER_FILTER (SLICIFY, slicify, vf);
- REGISTER_FILTER (VFLIP, vflip, vf);
+ .priv_size = 0,
- REGISTER_FILTER (NULLSRC, nullsrc, vsrc);
-}
+ .inputs = (AVFilterPad[]) {
+ {
+ .name = "default",
+ .type = CODEC_TYPE_VIDEO,
+ .start_frame = start_frame,
+ .end_frame = end_frame,
+ },
+ { .name = NULL},
+ },
+ .outputs = (AVFilterPad[]) {{ .name = NULL }},
+};