|
|
@ -37,7 +37,9 @@ |
|
|
|
#include "libavutil/intreadwrite.h" |
|
|
|
#include "libavutil/intreadwrite.h" |
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
|
|
|
|
|
|
|
|
static int query_formats(AVFilterContext *ctx) |
|
|
|
static int query_formats(const AVFilterContext *ctx, |
|
|
|
|
|
|
|
AVFilterFormatsConfig **cfg_in, |
|
|
|
|
|
|
|
AVFilterFormatsConfig **cfg_out) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AVFilterFormats *pix_fmts = NULL; |
|
|
|
AVFilterFormats *pix_fmts = NULL; |
|
|
|
const AVPixFmtDescriptor *desc; |
|
|
|
const AVPixFmtDescriptor *desc; |
|
|
@ -52,7 +54,7 @@ static int query_formats(AVFilterContext *ctx) |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ff_set_common_formats(ctx, pix_fmts); |
|
|
|
return ff_set_common_formats2(ctx, cfg_in, cfg_out, pix_fmts); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int config_props(AVFilterLink *inlink) |
|
|
|
static int config_props(AVFilterLink *inlink) |
|
|
@ -150,6 +152,6 @@ const AVFilter ff_vf_hflip = { |
|
|
|
.priv_size = sizeof(FlipContext), |
|
|
|
.priv_size = sizeof(FlipContext), |
|
|
|
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_FUNC2(query_formats), |
|
|
|
.flags = AVFILTER_FLAG_SLICE_THREADS | AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
|
|
|
.flags = AVFILTER_FLAG_SLICE_THREADS | AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
|
|
|
}; |
|
|
|
}; |
|
|
|