2009-10-18 11:44:33 +02:00
|
|
|
/*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 16:45:34 +02:00
|
|
|
* @file
|
2009-10-19 01:00:11 +02:00
|
|
|
* null video filter
|
2009-10-18 11:44:33 +02:00
|
|
|
*/
|
|
|
|
|
2012-08-06 15:49:32 +02:00
|
|
|
#include "libavutil/internal.h"
|
2009-10-18 11:44:33 +02:00
|
|
|
#include "avfilter.h"
|
2012-06-12 20:12:42 +02:00
|
|
|
#include "internal.h"
|
2012-05-19 10:37:56 +02:00
|
|
|
#include "video.h"
|
2009-10-18 11:44:33 +02:00
|
|
|
|
2012-07-24 15:14:01 +02:00
|
|
|
static const AVFilterPad avfilter_vf_null_inputs[] = {
|
|
|
|
{
|
|
|
|
.name = "default",
|
|
|
|
.type = AVMEDIA_TYPE_VIDEO,
|
|
|
|
.get_video_buffer = ff_null_get_video_buffer,
|
|
|
|
.start_frame = ff_null_start_frame,
|
|
|
|
.end_frame = ff_null_end_frame
|
|
|
|
},
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const AVFilterPad avfilter_vf_null_outputs[] = {
|
|
|
|
{
|
|
|
|
.name = "default",
|
|
|
|
.type = AVMEDIA_TYPE_VIDEO,
|
|
|
|
},
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
2009-10-18 11:44:33 +02:00
|
|
|
AVFilter avfilter_vf_null = {
|
|
|
|
.name = "null",
|
2009-10-27 01:43:45 +01:00
|
|
|
.description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."),
|
2009-10-18 11:44:33 +02:00
|
|
|
|
|
|
|
.priv_size = 0,
|
|
|
|
|
2012-07-24 15:14:01 +02:00
|
|
|
.inputs = avfilter_vf_null_inputs,
|
2009-10-18 11:44:33 +02:00
|
|
|
|
2012-07-24 15:14:01 +02:00
|
|
|
.outputs = avfilter_vf_null_outputs,
|
2009-10-18 11:44:33 +02:00
|
|
|
};
|