From patchwork Fri Aug 2 16:00:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynne X-Patchwork-Id: 14197 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id EC2E94475DB for ; Fri, 2 Aug 2019 19:01:00 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BB88268ABC5; Fri, 2 Aug 2019 19:01:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4B580689A11 for ; Fri, 2 Aug 2019 19:00:54 +0300 (EEST) Received: from w2.tutanota.de (unknown [192.168.1.163]) by w4.tutanota.de (Postfix) with ESMTP id 8AD6610601F6 for ; Fri, 2 Aug 2019 16:00:53 +0000 (UTC) Authentication-Results: w4.tutanota.de; dkim=pass (2048-bit key; secure) header.d=lynne.ee header.i=@lynne.ee header.b="APi+0H/c"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1564761653; s=s1; d=lynne.ee; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type; bh=jFyyeO4zBeA8dCIpzgToSswTgjfGdC6xDH6uFWhLgc0=; b=APi+0H/crU9YBQTqgPlLsA+w0WsfiCW9DDdfsIP0NFqcxF+FPUqAMqlqzQX5iFeL 5ScpMFGSAaZolgdsoFu2n+iRWgrlsLa4by+Mo1djPH317LsmATbGiouPbFLnwfPmZj1 rwMxuVBmrEyCHr3CGdMqwEnMBu+VCwQoAlKQBKDgOXERTQWGwEcGFEMN802fgJ2ViNr schvAcE07ZwwH8OOyBsk7R11lovi1fjpUisdUF8pNTWSBPxjZBE11XBSvhCX1+YOJTG +h5LuRBuG8X6D7W34a5RvwBwUu6SiNTwBAw/494/OF5Jm3lMjehnoOR2oKoxS/KbweE zL2JRwyiTg== Date: Fri, 2 Aug 2019 18:00:53 +0200 (CEST) From: Lynne To: Ffmpeg Devel Message-ID: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavu/tx: don't compile double precision transforms on CONFIG_SMALL 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" They'll likely only be used in not so small filters, so for embedded users it makes sense to not compile them in. From bafb404153641a84224d88598659d554cfdf9543 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 2 Aug 2019 16:58:27 +0100 Subject: [PATCH] lavu/tx: don't compile double precision transforms on CONFIG_SMALL They'll likely only be used in not so small filters, so for embedded users it makes sense to not compile them in. --- libavutil/Makefile | 5 +++-- libavutil/tx.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libavutil/Makefile b/libavutil/Makefile index 57e6e3d7e8..b3f11fc7dc 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -161,8 +161,9 @@ OBJS = adler32.o \ xtea.o \ tea.o \ tx.o \ - tx_float.o \ - tx_double.o + tx_float.o + +OBJS-$(!CONFIG_SMALL) += tx_double.o OBJS-$(CONFIG_CUDA) += hwcontext_cuda.o OBJS-$(CONFIG_D3D11VA) += hwcontext_d3d11va.o diff --git a/libavutil/tx.c b/libavutil/tx.c index b8683b416b..2547c9f363 100644 --- a/libavutil/tx.c +++ b/libavutil/tx.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include "tx_priv.h" /* Calculates the modular multiplicative inverse, not fast, replace */ @@ -123,11 +124,13 @@ av_cold int av_tx_init(AVTXContext **ctx, av_tx_fn *tx, enum AVTXType type, if ((err = ff_tx_init_mdct_fft_float(s, tx, type, inv, len, scale, flags))) goto fail; break; +#if !CONFIG_SMALL case AV_TX_DOUBLE_FFT: case AV_TX_DOUBLE_MDCT: if ((err = ff_tx_init_mdct_fft_double(s, tx, type, inv, len, scale, flags))) goto fail; break; +#endif default: err = AVERROR(EINVAL); goto fail; -- 2.23.0.rc0