[FFmpeg-devel] [PATCH v5 5/5] libavfilter: VAAPI surface scaler
Paul B Mahol
onemda at gmail.com
Sat Jan 30 23:24:00 CET 2016
On 1/30/16, Mark Thompson <sw at jkqxz.net> wrote:
>
> ---
> configure | 3 +
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/vf_vaapi_scale.c | 709
> +++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 714 insertions(+)
> create mode 100644 libavfilter/vf_vaapi_scale.c
>
[...]
> +
> +static const AVFilterPad vaapi_scale_inputs[] = {
> + {
> + .name = "default",
> + .type = AVMEDIA_TYPE_VIDEO,
> + .filter_frame = &vaapi_scale_filter_frame,
> + .config_props = &vaapi_scale_config_input,
> + },
> + { 0 }
Please use NULL like other filter do.
> +};
> +
> +static const AVFilterPad vaapi_scale_outputs[] = {
> + {
> + .name = "default",
> + .type = AVMEDIA_TYPE_VIDEO,
> + .config_props = &vaapi_scale_config_output,
> + },
> + { 0 }
Please use NULL like other filter do.
> +};
> +
> +AVFilter ff_vf_vaapi_scale = {
> + .name = "vaapi_scale",
> + .description = NULL_IF_CONFIG_SMALL("Scale to/from VAAPI surfaces."),
> + .priv_size = sizeof(VAAPIScaleContext),
> + .init = &vaapi_scale_init,
> + .uninit = &vaapi_scale_uninit,
> + .query_formats = &vaapi_scale_query_formats,
> + .inputs = vaapi_scale_inputs,
> + .outputs = vaapi_scale_outputs,
> + .priv_class = &vaapi_scale_class,
> +};
More information about the ffmpeg-devel
mailing list