From patchwork Thu Jun 29 17:57:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Cox X-Patchwork-Id: 42323 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1e:b0:12b:9ae3:586d with SMTP id c30csp1946137pzh; Thu, 29 Jun 2023 11:00:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGleMNfFDWr+yoPSlpdQHOWlEEgnGTPAf0/6yOoBIxBQdck4EvR3pmzDjnf0LZvNMsUEJ2A X-Received: by 2002:a05:651c:1034:b0:2b6:99a7:2fb4 with SMTP id w20-20020a05651c103400b002b699a72fb4mr312137ljm.0.1688061632224; Thu, 29 Jun 2023 11:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688061632; cv=none; d=google.com; s=arc-20160816; b=a89EXG75QJpsJ6UDfQjcI5jhuMsAZ1rp5u0PeQVL173uab8BuP3Ny7LFvd/RS/KkgP d8s4Gs+xd2clOFthZpl5BNuDm1STY6rC1lY/dbGRFJpjjcq9yxRz6Bv+TfAji2Y4lL8z KwcvX9A3ejzHTGwc1Tm5UooDYfsp52VaMQHkHILvI0xTTITK5gEcQzZvDVN6SyaUpgon lb8nTCbjfTGenAeEpNgWUTdPNdUvls9WayY0wsiJtxtkWHwnpelKMb5XvJHjRap+jSg2 UnPJfSKVYTYMI629ERPiVEGLj0nd1FjfwodlnILbZeGElA0TANioddKEOU/LWuwsmmw1 QrOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=bi50hBTkJdDObMhnjFMZ9rwpntbxmlNGFG8vUOWElwo=; fh=4TI4rjEBNZIiFzmH/zgNEtnT9CzHjNyw0MAPqTxWP34=; b=Tx8h60ZC2aHbQtIdEP2+tQ9Wsjb5QJosLOEP676y5ZssjfgzUbpKEpSIDvrMtWL0HR 5GjK93cxDo3SCdz6V5zbdBvsBhIs1JbgjNS7HGnyYDF5locjHwA7XyNt/69e7LWDWFPr M+ywd2AH/HbiVekZnYtaMLjerMGAOUVydHWB1o7eTUZ1DYtMBEzvLFnMDR0RkNzizLuf Z5YK1a0x0Lz1s3wmtefElTXM6K6N/IPmD+aso6fJG+ueviEqgK6jbzgt49VrgOZsn3i2 Dt/Qc+zCODE7PyVPCxWqeUT2mZ+fP0wXE+rluGhlOs6dAX8xDH8lTBQqle+r2rXB9a3f exsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kynesim-co-uk.20221208.gappssmtp.com header.s=20221208 header.b=0UEApLCe; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id c7-20020a170906d18700b009876a773296si6946842ejz.65.2023.06.29.11.00.29; Thu, 29 Jun 2023 11:00:32 -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=@kynesim-co-uk.20221208.gappssmtp.com header.s=20221208 header.b=0UEApLCe; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4E32A68C45B; Thu, 29 Jun 2023 20:58:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 913BF68C3AF for ; Thu, 29 Jun 2023 20:58:26 +0300 (EEST) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-313e742a787so874917f8f.1 for ; Thu, 29 Jun 2023 10:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kynesim-co-uk.20221208.gappssmtp.com; s=20221208; t=1688061506; x=1690653506; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P66ASQ2b9zkssbcNLUcRUy7uuaMMT9axQ2vmGBzlwZg=; b=0UEApLCe8akSZm7H85VNKfuCLNGl9jT/dS0pGoV87QO7z4ZGk/OkgRd7rjUlmt/yAT wb7+OnaL9PP4HXRswVSTnrbyPAIWo4A7D9Mi6IOIxNNfFMKpDeTKLJfdZgLaNKjh3Dta eotvrN1nq92S2BcjF5zEAursl4AEjDGaInRf0PNO2gfnOfyob1XBBNpfTOEEizXrI6lW s3mlQQxeSTh6syLoyAkeRy7b+y3sTIiHbktplUQIH/AHABgt1Egj+GVbMVuO6z7T52Lc F2ZsYYBkwVTDLtx0uVzbolz7Qow6lZpQOh+l5puT8DOQaBJsCat0DNRpR9TWgsTErvtW dEFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688061506; x=1690653506; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P66ASQ2b9zkssbcNLUcRUy7uuaMMT9axQ2vmGBzlwZg=; b=Jh3FDQIJ3uk2GAJEb4f+YxbcxGVrf9mVXrqlPi4gTnOn2JJN15z9RmEVdcmTtF8lCY sGIYBoW/MLmC717AX230wks0WwwSEoWg1GnjjLH12NnlDDoY8wGFA6khLWZJ6EKFRCMZ oCiM67BdL40VZkPj5Z3lkzvaMTMTa7bSjgvd29eFi8pvw6cv7EqcIhZjpXHi99rGxbOr VqaxogXQTDk/1Ehd7OJiZ6ufd9wujZDthUGfGNXEaB0jKmx3/I4hwMfJeKqp42Lprrie 4/4HctY3Ob6zuqNo31ctH8vpPLk3qY0Rqm67c/3yVxGEnYiRtKbN7EWokPVU6eyOZiHR IIVQ== X-Gm-Message-State: AC+VfDwvhNB1dI5s6jaD0doMwll0Cc/kBKpul9QLoW/5Jf4yw2HHy3Hj 0FDabQw3MmKuCsLufFV8cK8llqTUiE08zxRNHtI= X-Received: by 2002:a5d:628c:0:b0:311:b18:9ca4 with SMTP id k12-20020a5d628c000000b003110b189ca4mr5326605wru.17.1688061506077; Thu, 29 Jun 2023 10:58:26 -0700 (PDT) Received: from sucnaath.outer.uphall.net (cpc1-cmbg20-2-0-cust759.5-4.cable.virginm.net. [86.21.218.248]) by smtp.gmail.com with ESMTPSA id f26-20020a7bcd1a000000b003fbba5f21b6sm2041541wmj.28.2023.06.29.10.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 10:58:25 -0700 (PDT) From: John Cox To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Jun 2023 17:57:24 +0000 Message-Id: <20230629175729.224383-11-jc@kynesim.co.uk> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230629175729.224383-1-jc@kynesim.co.uk> References: <20230629175729.224383-1-jc@kynesim.co.uk> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 10/15] avfilter/vf_bwdif: Export C filter_line X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: thomas.mundt@hr.de, John Cox Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: NyGewug6j97C Needed for tail fixup of neon code Signed-off-by: John Cox --- libavfilter/bwdif.h | 5 +++++ libavfilter/vf_bwdif.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libavfilter/bwdif.h b/libavfilter/bwdif.h index ae1616d366..cce99953f3 100644 --- a/libavfilter/bwdif.h +++ b/libavfilter/bwdif.h @@ -48,4 +48,9 @@ void ff_bwdif_filter_edge_c(void *dst1, void *prev1, void *cur1, void *next1, void ff_bwdif_filter_intra_c(void *dst1, void *cur1, int w, int prefs, int mrefs, int prefs3, int mrefs3, int parity, int clip_max); +void ff_bwdif_filter_line_c(void *dst1, void *prev1, void *cur1, void *next1, + int w, int prefs, int mrefs, int prefs2, int mrefs2, + int prefs3, int mrefs3, int prefs4, int mrefs4, + int parity, int clip_max); + #endif /* AVFILTER_BWDIF_H */ diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c index bec83111b4..26349da1fd 100644 --- a/libavfilter/vf_bwdif.c +++ b/libavfilter/vf_bwdif.c @@ -132,10 +132,10 @@ void ff_bwdif_filter_intra_c(void *dst1, void *cur1, int w, int prefs, int mrefs FILTER_INTRA() } -static void filter_line_c(void *dst1, void *prev1, void *cur1, void *next1, - int w, int prefs, int mrefs, int prefs2, int mrefs2, - int prefs3, int mrefs3, int prefs4, int mrefs4, - int parity, int clip_max) +void ff_bwdif_filter_line_c(void *dst1, void *prev1, void *cur1, void *next1, + int w, int prefs, int mrefs, int prefs2, int mrefs2, + int prefs3, int mrefs3, int prefs4, int mrefs4, + int parity, int clip_max) { uint8_t *dst = dst1; uint8_t *prev = prev1; @@ -363,7 +363,7 @@ av_cold void ff_bwdif_init_filter_line(BWDIFContext *s, int bit_depth) s->filter_edge = filter_edge_16bit; } else { s->filter_intra = ff_bwdif_filter_intra_c; - s->filter_line = filter_line_c; + s->filter_line = ff_bwdif_filter_line_c; s->filter_edge = ff_bwdif_filter_edge_c; }