From patchwork Mon Jul 9 02:26:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danil Iashchenko X-Patchwork-Id: 9652 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp2029343jad; Sun, 8 Jul 2018 19:36:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMlXcqqjMJw9Su0w8KAREYpte630SnSoR/BeJeQSkM6Oy2aQKkCaomeYF525kdT22qm08j X-Received: by 2002:a1c:568a:: with SMTP id k132-v6mr10654539wmb.89.1531103776065; Sun, 08 Jul 2018 19:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531103776; cv=none; d=google.com; s=arc-20160816; b=tvRt/wcE3Unq34/Jb/CepIGxfIlP37pRSeVeWbYkNA/iIEvuLcu6RYx9vC0BzKf7EN jMEEIX5+pwEHfmo9ZyjkHeJrJgemHligEgsWa2gFA1mjDXJRFdnhwkJFwsY1zihGnQ7K Fq/1+5Du4/Y+uFD4UNnuaZP77BvJCtfu0MzV7vq20GmerNUqs5IIg2D/YO28qk2OX3kL gQ6UvTr+99Sxp9GNLgoOVaDDbZ/1twkdCwuKFcC+rDmSTHRmTj6AcDGw6llFlxUy1sL3 y2TtgqInSbkj/tKlgdO2xpbi8vJ7bKQ14P5/zYot541qPXwsXywnUb2s40wdicb2V7Sx K8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=8a5jDdhFa7vGDGtvBlUDaYK/mpXgcEBJJSw/fP+8/Sw=; b=jA+505u/7u/NUpni7MK1Re6VpKtGpx/Y/3gERqimIMScuaJ24Qa7KUTEVZudJCirk4 +rQTp+Fu7E9rWg6cwEwswmmTJW7DyqLJ5/t1jRPxTwa7CGquu6+IYq0eio698FJTaRsd fNbzlnr3Av/ts+Bz56wkAhGacEG5E0s/O4Rsq2thmQ1ku4jQkB8MTEcQ/9K1iF6Gl08+ RmIhNkMEKtRWm2jgPb/k3FO9vgYBktu2L88U7B6krF4ojV35GYD7I+cN/qcKHSicVS2b S344aMDCCVpSZJWxIk6ybl92NZ60fn3KWVZYjliJfm3ZSmaGw04wF2wQ4f5otbz/iAxi xT5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TMNzav1B; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2-v6si4906696wmm.75.2018.07.08.19.36.15; Sun, 08 Jul 2018 19:36:16 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TMNzav1B; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CB13668A31B; Mon, 9 Jul 2018 05:36:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E196168A148 for ; Mon, 9 Jul 2018 05:36:00 +0300 (EEST) Received: by mail-lf0-f48.google.com with SMTP id y200-v6so13926955lfd.7 for ; Sun, 08 Jul 2018 19:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=UsVohfn41TTf0GRz2C0VfeWDKN8Y87dFGiORimCg5S8=; b=TMNzav1B3uFcPrIqXkiAnmL9UlXgkrA2mZxtLesHSt/VM7qnPk2phHF9mcsb3omqPs SeTqRfwhZxwKCbDmqk3oMJyfpDqPIX3hW+FF5OdfpGALXwXOpmZ1s9U5AGupE5LSO03N Tto3UPKnVhU/J5RaigHDEGSut/C2cXAHejsHM78BZU7q9l03ZmRNPG5DdBJdRHJHDMDn mtoC4EZiYW+DCs6FCEazURNp6PKQWUaEt5LlmVptxh82wl2H15iV+6hAYg9FSTgPKYGm 4dwHi4A8S2oQgC9Vn6ErgfxaGXnWIgMYkmjpCcJ1mV0fgDi+nlexXo0WD2O6w6uLYzPJ vsKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UsVohfn41TTf0GRz2C0VfeWDKN8Y87dFGiORimCg5S8=; b=VTtlxmYCLtRJcZn/Xpqp0yV9s4TCPp5arAfubc1j5HjR70mbGmUzhISIQR9mh1Wtpr fQEbJOf/Ve/yDMUJP08GMOg3VzkLitaBPtOPeGzBL73ucvGkWAMzpaZwYJn7XFEpecWl tkgLvWP0Hg4sqfL2HcB7DKW6dA7+F+S0EApdFvUD2hQ7NBWxfkSkXekNOVWqVjbaRVyD l0Nrjiw3dmi09YMsqX+m8XquS+dyWcp9tql5gol2oOnXbc3Q3LrsVf/gQGHJyNAC9u47 dfH84C13ftw1VXjCw/z2PzkzRVpSZbgE8kdeEnshiEN1qNEkEbF609mtFTb1lcONWdub U/9Q== X-Gm-Message-State: APt69E2NrxDqtZfM9up267u3t4gtfQtimDQMD7zMfPAehbEWHy1q8338 BQtwDpthbjjCpadmeo/zdd8hSGo= X-Received: by 2002:a19:1366:: with SMTP id j99-v6mr12844548lfi.21.1531103404986; Sun, 08 Jul 2018 19:30:04 -0700 (PDT) Received: from dan-acer.lan (campus.ifmo.ru. [194.85.161.2]) by smtp.gmail.com with ESMTPSA id g28-v6sm2025318lfh.92.2018.07.08.19.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jul 2018 19:30:04 -0700 (PDT) From: Danil Iashchenko To: ffmpeg-devel@ffmpeg.org Date: Mon, 9 Jul 2018 05:26:58 +0300 Message-Id: <1531103218-31957-1-git-send-email-danyaschenko@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [FFmpeg-devel] [PATCH] lavfi: add vflip_opencl, hflip_opencl X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Danil Iashchenko MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" lavfi: add vflip_opencl, hflip_opencl. Behaves like existing vflip, hflip filters. --- configure | 2 + libavfilter/Makefile | 4 + libavfilter/allfilters.c | 2 + libavfilter/opencl/vflip.cl | 60 ++++++++++ libavfilter/opencl_source.h | 1 + libavfilter/vf_vflip_opencl.c | 270 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 339 insertions(+) create mode 100644 libavfilter/opencl/vflip.cl create mode 100644 libavfilter/vf_vflip_opencl.c diff --git a/configure b/configure index b1a4dcf..7863056 100755 --- a/configure +++ b/configure @@ -3348,6 +3348,7 @@ frei0r_filter_deps="frei0r libdl" frei0r_src_filter_deps="frei0r libdl" fspp_filter_deps="gpl" geq_filter_deps="gpl" +hflip_opencl_filter_deps="opencl" histeq_filter_deps="gpl" hqdn3d_filter_deps="gpl" interlace_filter_deps="gpl" @@ -3422,6 +3423,7 @@ uspp_filter_deps="gpl avcodec" vaguedenoiser_filter_deps="gpl" vidstabdetect_filter_deps="libvidstab" vidstabtransform_filter_deps="libvidstab" +vflip_opencl_filter_deps="opencl" libvmaf_filter_deps="libvmaf pthreads" zmq_filter_deps="libzmq" zoompan_filter_deps="swscale" diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 7735c26..ad7daab 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -230,6 +230,8 @@ OBJS-$(CONFIG_GEQ_FILTER) += vf_geq.o OBJS-$(CONFIG_GRADFUN_FILTER) += vf_gradfun.o OBJS-$(CONFIG_HALDCLUT_FILTER) += vf_lut3d.o framesync.o OBJS-$(CONFIG_HFLIP_FILTER) += vf_hflip.o +OBJS-$(CONFIG_HFLIP_OPENCL_FILTER) += vf_vflip_opencl.o opencl.o \ + opencl/vflip.o OBJS-$(CONFIG_HISTEQ_FILTER) += vf_histeq.o OBJS-$(CONFIG_HISTOGRAM_FILTER) += vf_histogram.o OBJS-$(CONFIG_HQDN3D_FILTER) += vf_hqdn3d.o @@ -376,6 +378,8 @@ OBJS-$(CONFIG_USPP_FILTER) += vf_uspp.o OBJS-$(CONFIG_VAGUEDENOISER_FILTER) += vf_vaguedenoiser.o OBJS-$(CONFIG_VECTORSCOPE_FILTER) += vf_vectorscope.o OBJS-$(CONFIG_VFLIP_FILTER) += vf_vflip.o +OBJS-$(CONFIG_VFLIP_OPENCL_FILTER) += vf_vflip_opencl.o opencl.o \ + opencl/vflip.o OBJS-$(CONFIG_VFRDET_FILTER) += vf_vfrdet.o OBJS-$(CONFIG_VIDSTABDETECT_FILTER) += vidstabutils.o vf_vidstabdetect.o OBJS-$(CONFIG_VIDSTABTRANSFORM_FILTER) += vidstabutils.o vf_vidstabtransform.o diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c index 0ded83e..3e7e11b 100644 --- a/libavfilter/allfilters.c +++ b/libavfilter/allfilters.c @@ -219,6 +219,7 @@ extern AVFilter ff_vf_geq; extern AVFilter ff_vf_gradfun; extern AVFilter ff_vf_haldclut; extern AVFilter ff_vf_hflip; +extern AVFilter ff_vf_hflip_opencl; extern AVFilter ff_vf_histeq; extern AVFilter ff_vf_histogram; extern AVFilter ff_vf_hqdn3d; @@ -359,6 +360,7 @@ extern AVFilter ff_vf_uspp; extern AVFilter ff_vf_vaguedenoiser; extern AVFilter ff_vf_vectorscope; extern AVFilter ff_vf_vflip; +extern AVFilter ff_vf_vflip_opencl; extern AVFilter ff_vf_vfrdet; extern AVFilter ff_vf_vidstabdetect; extern AVFilter ff_vf_vidstabtransform; diff --git a/libavfilter/opencl/vflip.cl b/libavfilter/opencl/vflip.cl new file mode 100644 index 0000000..4ed2f43 --- /dev/null +++ b/libavfilter/opencl/vflip.cl @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * 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 + */ + + +void swap_pix(__write_only image2d_t dst, + __read_only image2d_t src, + int2 loc, + int2 loc1) { + + const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE | + CLK_ADDRESS_CLAMP_TO_EDGE | + CLK_FILTER_NEAREST); + + float4 px = read_imagef(src, sampler, loc ); + float4 px1 = read_imagef(src, sampler, loc1); + + write_imagef(dst, loc, px1); + write_imagef(dst, loc1, px ); +} + + +__kernel void vflip_global(__write_only image2d_t dst, + __read_only image2d_t src) +{ + + int2 imgSize = get_image_dim(src); + int2 loc = (int2)(get_global_id(0), get_global_id(1)); + int2 loc1 = (int2)(loc.x, imgSize.y - loc.y - 1); + + swap_pix(dst, src, loc, loc1); +} + + +__kernel void hflip_global(__write_only image2d_t dst, + __read_only image2d_t src) +{ + + int2 imgSize = get_image_dim(src); + int2 loc = (int2)(get_global_id(0), get_global_id(1)); + int2 loc1 = (int2)(imgSize.x - loc.x - 1, loc.y); + + swap_pix(dst, src, loc, loc1); +} diff --git a/libavfilter/opencl_source.h b/libavfilter/opencl_source.h index de4e66e..a3c757f 100644 --- a/libavfilter/opencl_source.h +++ b/libavfilter/opencl_source.h @@ -25,5 +25,6 @@ extern const char *ff_opencl_source_convolution; extern const char *ff_opencl_source_overlay; extern const char *ff_opencl_source_tonemap; extern const char *ff_opencl_source_unsharp; +extern const char *ff_opencl_source_vflip; #endif /* AVFILTER_OPENCL_SOURCE_H */ diff --git a/libavfilter/vf_vflip_opencl.c b/libavfilter/vf_vflip_opencl.c new file mode 100644 index 0000000..eda8036 --- /dev/null +++ b/libavfilter/vf_vflip_opencl.c @@ -0,0 +1,270 @@ +/* + * Copyright (c) 2018 Danil Iashchenko + * + * 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 + */ + +#include "libavutil/common.h" +#include "libavutil/imgutils.h" +#include "libavutil/mem.h" +#include "libavutil/opt.h" +#include "libavutil/pixdesc.h" +#include "libavutil/avstring.h" + + +#include "avfilter.h" +#include "internal.h" +#include "opencl.h" +#include "opencl_source.h" +#include "video.h" + +typedef struct VflipOpenCLContext { + OpenCLFilterContext ocf; + + int initialised; + cl_kernel kernel; + cl_command_queue command_queue; + +} VflipOpenCLContext; + + +static int vflip_opencl_init(AVFilterContext *avctx) +{ + VflipOpenCLContext *ctx = avctx->priv; + const char *kernel_name; + cl_int cle; + int err; + + err = ff_opencl_filter_load_program(avctx, &ff_opencl_source_vflip, 1); + if (err < 0) + goto fail; + + ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context, + ctx->ocf.hwctx->device_id, + 0, &cle); + if (!ctx->command_queue) { + av_log(avctx, AV_LOG_ERROR, "Failed to create OpenCL " + "command queue: %d.\n", cle); + err = AVERROR(EIO); + goto fail; + } + + if (!strcmp(avctx->filter->name, "hflip_opencl")) { + kernel_name = "hflip_global"; + } else if (!strcmp(avctx->filter->name, "vflip_opencl")) { + kernel_name = "vflip_global"; + } + ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle); + if (!ctx->kernel) { + av_log(avctx, AV_LOG_ERROR, "Failed to create kernel: %d.\n", cle); + err = AVERROR(EIO); + goto fail; + } + + ctx->initialised = 1; + return 0; + +fail: + if (ctx->command_queue) + clReleaseCommandQueue(ctx->command_queue); + if (ctx->kernel) + clReleaseKernel(ctx->kernel); + return err; +} + + +static int vflip_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input) +{ + AVFilterContext *avctx = inlink->dst; + AVFilterLink *outlink = avctx->outputs[0]; + VflipOpenCLContext *ctx = avctx->priv; + AVFrame *output = NULL; + cl_int cle; + size_t global_work[2]; + cl_mem src, dst; + int err, p; + + av_log(ctx, AV_LOG_DEBUG, "Filter input: %s, %ux%u (%"PRId64").\n", + av_get_pix_fmt_name(input->format), + input->width, input->height, input->pts); + + if (!input->hw_frames_ctx) + return AVERROR(EINVAL); + + if (!ctx->initialised) { + err = vflip_opencl_init(avctx); + if (err < 0) + goto fail; + } + + output = ff_get_video_buffer(outlink, outlink->w, outlink->h); + if (!output) { + err = AVERROR(ENOMEM); + goto fail; + } + + for (p = 0; p < FF_ARRAY_ELEMS(output->data); p++) { + src = (cl_mem) input->data[p]; + dst = (cl_mem)output->data[p]; + + if (!dst) + break; + + CL_SET_KERNEL_ARG(ctx->kernel, 0, cl_mem, &dst); + CL_SET_KERNEL_ARG(ctx->kernel, 1, cl_mem, &src); + + err = ff_opencl_filter_work_size_from_image(avctx, global_work, output, p, 0); + if (err < 0) + goto fail; + + av_log(avctx, AV_LOG_DEBUG, "Run kernel on plane %d " + "(%"SIZE_SPECIFIER"x%"SIZE_SPECIFIER").\n", + p, global_work[0], global_work[1]); + + if (!strcmp(avctx->filter->name, "hflip_opencl")) { + global_work[0] = global_work[0] / 2; + } else if (!strcmp(avctx->filter->name, "vflip_opencl")) { + global_work[1] = global_work[1] / 2; + } + + cle = clEnqueueNDRangeKernel(ctx->command_queue, ctx->kernel, 2, NULL, + global_work, NULL, + 0, NULL, NULL); + if (cle != CL_SUCCESS) { + av_log(avctx, AV_LOG_ERROR, "Failed to enqueue kernel: %d.\n", + cle); + err = AVERROR(EIO); + goto fail; + } + } + + cle = clFinish(ctx->command_queue); + if (cle != CL_SUCCESS) { + av_log(avctx, AV_LOG_ERROR, "Failed to finish command queue: %d.\n", + cle); + err = AVERROR(EIO); + goto fail; + } + + err = av_frame_copy_props(output, input); + if (err < 0) + goto fail; + + av_frame_free(&input); + + av_log(ctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n", + av_get_pix_fmt_name(output->format), + output->width, output->height, output->pts); + + return ff_filter_frame(outlink, output); + +fail: + clFinish(ctx->command_queue); + av_frame_free(&input); + av_frame_free(&output); + return err; +} + +static av_cold void vflip_opencl_uninit(AVFilterContext *avctx) +{ + VflipOpenCLContext *ctx = avctx->priv; + int cle; + + if (ctx->kernel) { + cle = clReleaseKernel(ctx->kernel); + if (cle != CL_SUCCESS) + av_log(avctx, AV_LOG_ERROR, "Failed to release " + "kernel: %d.\n", cle); + } + + if (ctx->command_queue) { + cle = clReleaseCommandQueue(ctx->command_queue); + if (cle != CL_SUCCESS) + av_log(avctx, AV_LOG_ERROR, "Failed to release " + "command queue: %d.\n", cle); + } + + ff_opencl_filter_uninit(avctx); +} + +static const AVFilterPad vflip_opencl_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .filter_frame = &vflip_opencl_filter_frame, + .config_props = &ff_opencl_filter_config_input, + }, + { NULL } +}; + +static const AVFilterPad vflip_opencl_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = &ff_opencl_filter_config_output, + }, + { NULL } +}; + +#define OFFSET(x) offsetof(VflipOpenCLContext, x) +#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) + +#if CONFIG_VFLIP_OPENCL_FILTER + +static const AVOption vflip_opencl_options[] = { + { NULL } +}; + +AVFILTER_DEFINE_CLASS(vflip_opencl); + +AVFilter ff_vf_vflip_opencl = { + .name = "vflip_opencl", + .description = NULL_IF_CONFIG_SMALL("Flip the input video vertically."), + .priv_size = sizeof(VflipOpenCLContext), + .priv_class = &vflip_opencl_class, + .init = &ff_opencl_filter_init, + .uninit = &vflip_opencl_uninit, + .query_formats = &ff_opencl_filter_query_formats, + .inputs = vflip_opencl_inputs, + .outputs = vflip_opencl_outputs, + .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, +}; + +#endif /* CONFIG_VFLIP_OPENCL_FILTER */ + +#if CONFIG_HFLIP_OPENCL_FILTER + +static const AVOption hflip_opencl_options[] = { + { NULL } +}; + +AVFILTER_DEFINE_CLASS(hflip_opencl); + +AVFilter ff_vf_hflip_opencl = { + .name = "hflip_opencl", + .description = NULL_IF_CONFIG_SMALL("Horizontally flip the input video."), + .priv_size = sizeof(VflipOpenCLContext), + .priv_class = &hflip_opencl_class, + .init = &ff_opencl_filter_init, + .uninit = &vflip_opencl_uninit, + .query_formats = &ff_opencl_filter_query_formats, + .inputs = vflip_opencl_inputs, + .outputs = vflip_opencl_outputs, + .flags_internal = FF_FILTER_FLAG_HWFRAME_AWARE, +}; + +#endif /* CONFIG_HFLIP_OPENCL_FILTER */