forked from FFmpeg/FFmpeg
avfilter/vf_hflip: Remove empty options and AVClass
This filter only had an AVClass and empty options because up until recently, avfilter_init_str() errored out when options were provided for a filter without an AVClass. But setting (generic) options is necessary to take advantage of timeline support. So with avfilter_init_str() fixed, the AVClass and the options can be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
99a200cad8
commit
de288e406a
3 changed files with 2 additions and 10 deletions
|
@ -22,10 +22,9 @@
|
||||||
#ifndef AVFILTER_HFLIP_H
|
#ifndef AVFILTER_HFLIP_H
|
||||||
#define AVFILTER_HFLIP_H
|
#define AVFILTER_HFLIP_H
|
||||||
|
|
||||||
#include "avfilter.h"
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef struct FlipContext {
|
typedef struct FlipContext {
|
||||||
const AVClass *class;
|
|
||||||
int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes
|
int max_step[4]; ///< max pixel step for each plane, expressed as a number of bytes
|
||||||
int bayer_plus1; ///< 1 .. not a Bayer input format, 2 .. Bayer input format
|
int bayer_plus1; ///< 1 .. not a Bayer input format, 2 .. Bayer input format
|
||||||
int planewidth[4]; ///< width of each plane
|
int planewidth[4]; ///< width of each plane
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libavutil/opt.h"
|
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "hflip.h"
|
#include "hflip.h"
|
||||||
|
@ -38,12 +37,6 @@
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
|
|
||||||
static const AVOption hflip_options[] = {
|
|
||||||
{ NULL }
|
|
||||||
};
|
|
||||||
|
|
||||||
AVFILTER_DEFINE_CLASS(hflip);
|
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
AVFilterFormats *pix_fmts = NULL;
|
AVFilterFormats *pix_fmts = NULL;
|
||||||
|
@ -155,7 +148,6 @@ const AVFilter ff_vf_hflip = {
|
||||||
.name = "hflip",
|
.name = "hflip",
|
||||||
.description = NULL_IF_CONFIG_SMALL("Horizontally flip the input video."),
|
.description = NULL_IF_CONFIG_SMALL("Horizontally flip the input video."),
|
||||||
.priv_size = sizeof(FlipContext),
|
.priv_size = sizeof(FlipContext),
|
||||||
.priv_class = &hflip_class,
|
|
||||||
FILTER_INPUTS(avfilter_vf_hflip_inputs),
|
FILTER_INPUTS(avfilter_vf_hflip_inputs),
|
||||||
FILTER_OUTPUTS(ff_video_default_filterpad),
|
FILTER_OUTPUTS(ff_video_default_filterpad),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_QUERY_FUNC(query_formats),
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
|
#include "libavutil/error.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "hflip.h"
|
#include "hflip.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue