From patchwork Sat Mar 11 00:56:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Faiz X-Patchwork-Id: 2874 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.50.79 with SMTP id y76csp294361vsy; Fri, 10 Mar 2017 16:57:30 -0800 (PST) X-Received: by 10.223.155.135 with SMTP id d7mr16733969wrc.99.1489193850350; Fri, 10 Mar 2017 16:57:30 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y22si14939687wrd.301.2017.03.10.16.57.29; Fri, 10 Mar 2017 16:57:30 -0800 (PST) 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; 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=NONE 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 68457689747; Sat, 11 Mar 2017 02:57:12 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B516668071A for ; Sat, 11 Mar 2017 02:57:05 +0200 (EET) Received: by mail-pf0-f196.google.com with SMTP id v190so12425847pfb.0 for ; Fri, 10 Mar 2017 16:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=J8bhIdzdhlnUplD10LJW4CEXXqx5X+dv8YAAF/jquok=; b=l5CIGAmBZwTk9YljrfoV1H25pcajwElu/pgGbH+v2pbMMQtl3wdJ0RFdzizHO8ACjJ ITzMfaXJ9r4jcfc3R68fjFv3FtOqz+RND+aDpOH5CZx+nhSarhlyRwlFi8DSsn1N5Ltv 0Bm7hyt1/wcaHDT7x73b69GJH6RaZ67M6lhmiyxyqpVdhRQxaPPv0eVfMGvEx2MabIfJ MyWK4eaK7Nhfp7NXD1xEL5UY6CtRWn9dURSs1CHAyWR+0lX1pba9iOqKgt2vzVVNd7Zi RxBN7jaEAg89zq1ajp+zJedvwCAdhxyV2ytzi+X/F6MNph62fLibMPmJjOns9nOw/q7a WyCw== 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=J8bhIdzdhlnUplD10LJW4CEXXqx5X+dv8YAAF/jquok=; b=R1k+LMsMEWG2jBQfPX2UZggqnFOxxI5tMzmesVjxyctsVu3A4VEV1Nly7iHUoSAAVT L6oS6I+Lt+jEqxEea0IZIcYbf8Nk9Ont1QqbsC9R4ZtjHM6F1kjoZ4ksbMdk20825PEU PA6knQ9Xfpl+XHnM3i8ec/yB2+eenGTUyy1Lk9FNLzUO0/j9yn1aMGv/7l8fUWt+QXqP DHNZj8OK5zmXQygpzRmuCz0TscJqOUuGRHR4vWzC9ZW2lhl3n7SX0vh/A3Rq9VVqsoPo uuRhwMzOhULQQ9RDNRwmqS65riuO1C9lF0J5ReFmddVkhdBCLoTwZXVx/LRolpeA18hZ aG+g== X-Gm-Message-State: AMke39nGiJUcKToIQOg/wtmjHoiFkAqLYMI8+r2CPGqFI3VczWRSimTAnnIk9ScFODkFCw== X-Received: by 10.99.39.71 with SMTP id n68mr22868740pgn.85.1489193838287; Fri, 10 Mar 2017 16:57:18 -0800 (PST) Received: from localhost.localdomain ([114.120.238.160]) by smtp.gmail.com with ESMTPSA id a16sm20854861pgd.62.2017.03.10.16.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2017 16:57:17 -0800 (PST) From: Muhammad Faiz To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Mar 2017 07:56:52 +0700 Message-Id: <20170311005652.10041-1-mfcc64@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [FFmpeg-devel] [PATCH] avfilter/af_firequalizer: add av_restrict on convolution func 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: Muhammad Faiz MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" slightly improved speed Signed-off-by: Muhammad Faiz --- libavfilter/af_firequalizer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index 5c6fd54..4243d66 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -197,8 +197,8 @@ static int query_formats(AVFilterContext *ctx) return ff_set_common_samplerates(ctx, formats); } -static void fast_convolute(FIREqualizerContext *s, const float *kernel_buf, float *conv_buf, - OverlapIndex *idx, float *data, int nsamples) +static void fast_convolute(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, float *av_restrict conv_buf, + OverlapIndex *av_restrict idx, float *av_restrict data, int nsamples) { if (nsamples <= s->nsamples_max) { float *buf = conv_buf + idx->buf_idx * s->rdft_len; @@ -235,8 +235,8 @@ static void fast_convolute(FIREqualizerContext *s, const float *kernel_buf, floa } } -static void fast_convolute2(FIREqualizerContext *s, const float *kernel_buf, FFTComplex *conv_buf, - OverlapIndex *idx, float *data0, float *data1, int nsamples) +static void fast_convolute2(FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, FFTComplex *av_restrict conv_buf, + OverlapIndex *av_restrict idx, float *av_restrict data0, float *av_restrict data1, int nsamples) { if (nsamples <= s->nsamples_max) { FFTComplex *buf = conv_buf + idx->buf_idx * s->rdft_len;