From patchwork Thu Nov 30 10:28:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan X-Patchwork-Id: 6467 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp451724jah; Thu, 30 Nov 2017 02:34:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMYHm4p0wwSejY2pY5OApEUt6jUHuqepqPR1i0ABE3UP0Ayw9hLB1x5br9aRliNBLZ8TCr3o X-Received: by 10.28.18.1 with SMTP id 1mr1762020wms.88.1512038075309; Thu, 30 Nov 2017 02:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512038075; cv=none; d=google.com; s=arc-20160816; b=tlEFwZVg42leL3L75uvTYuwAAtjbWwo0yoHpDzeNuMY7MUGo3mIaGzNG6wLeJEGEmQ R+7Y1uiJzA08l5ucwG/o6Ph3oGCGVmrl3GEuIPrEB3KvvUrauNk61bdKOK7REa65QouI klmyZYhZiJDHqxUiLx/CbrJ2NPREcr211rrvNv4XwVzUt/KgtABA6B5bZbjP+/Yz7Ay2 MQ2fLN/WaV14RlbPy8OtEf/bl3xInakiQlYWhYm0BRGnuD53vt40jnNLvob6notmaDLb 2RA5bSiFusqlc3P9K09d523KxxJK3ywV4PkX9sywc4yJ4XUVbZEvSQMOqH9n9V/OpTxd RtdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :content-language:mime-version:user-agent:date:message-id:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=PnVq9BS5OsmnQITdRt5J+qxiaLOobD7ZOp7nZvW/k9c=; b=IRs8rLEwp5uTCfutrrf0BF3kdLPPUI5MkXkRH/02WOA/3hLLndxDt+zh6j0Rf/Tdjk NjJhAGr5f8oTL7Ak9jhInD6SNqvf7NJ/ePGJV3jPG98vZgRW+8YIMl9GF0kA09mHQo3e gXwTaX1JJp1ozeQVdx9BRE0FF/Noj0ZEXpLSNO/u47scRxZ6ES57cv174gPMfpwHwbZF RylVZuejCSIbuSVoIk63th1PMktTDGsLN26Ot/5aZvWIZe/KWrqXOYIbw9HDrEI2cCk9 SiV0an1hWVPBXF8II+hRwxTwGMTnm6ZbC6p9d5dAlGZyDhHlj5+KMPZzTa3/BeClvGZi wwWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=aSIX8Rho; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m4si3000841wrh.21.2017.11.30.02.34.34; Thu, 30 Nov 2017 02:34:35 -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 header.s=20161025 header.b=aSIX8Rho; 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 4486468A372; Thu, 30 Nov 2017 12:34:30 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D376C68A29A for ; Thu, 30 Nov 2017 12:34:23 +0200 (EET) Received: by mail-io0-f178.google.com with SMTP id x129so6995835iod.13 for ; Thu, 30 Nov 2017 02:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language; bh=7bBjWHbgZt8fZS9slimkNITe2ap+xB6gPT3ghD4UZL0=; b=aSIX8RhopM+X4H+bySuS8tColdwl8G8TT2mSUEMU4g0eLgCUjjYcNse5ndFnpMfjFF q4owR+4oKlI3LrTiJVjEZiyhb9GOtyRxmMh117RsILE2+I5j7K8Usbu5MFNy7mssT6d2 O8gB8pNFF/8vIbL2j7g6mr4a1JlCPowZWS6Jux6nq+ij7qrm3viLm7RU6sj8BRFYEFkQ Ve3ngkEwaBckp9+eBbYc9U9fzpxpxLLEM2wrKyZgHF33G+oqDdxiVZMlxJqCIvR5jY6g dgtrBp1XzCARINmOrsdX2L3kkKGhzlciKnO635vdwrqJMYpr5LnuF0idT6rk0ThVMjGQ 5yiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language; bh=7bBjWHbgZt8fZS9slimkNITe2ap+xB6gPT3ghD4UZL0=; b=I2ruVDRareH8auUak9F3ogpc/rFuk0bk7EX88XdK2O8EwfpkxpwnpZFYKqM/0ZBE2K 3LGxn+wfSYd/MU0m/l8XyOSQ4ny0gEyNuj4riWKFgxN3jIeRpP+eqGDlHKQ+mGwbFNuS Z7JC8Oj4CZiKtmaMHxVD/zp46wd5Mp4RK18Ec1vhmVzpW3zL1vRhtUjwVL9abgLGfPoq UlRH2uYHgZiVC3rxebxxBdATTNuK5DtS5B93VYixEG5g4IPtDPCHszNF0vPpIBAOTgJl xlRicdZ+bb9m4g4TMhz2ho/B9x+REhpRDTkCTtvt8g8IPHSrWxXZj1tMP/YmXhe5MLzC 1ysQ== X-Gm-Message-State: AJaThX7RDVPDqL4XwyouobdphEJVAsj0PSqmlXQk75oT84d1ZSHjHRDe W0GPpLnniagg4jIyQ725MOPBhPyu X-Received: by 10.107.112.13 with SMTP id l13mr7197975ioc.70.1512037712144; Thu, 30 Nov 2017 02:28:32 -0800 (PST) Received: from [192.168.1.105] ([103.206.133.234]) by smtp.gmail.com with ESMTPSA id w195sm2148462ita.44.2017.11.30.02.28.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 02:28:31 -0800 (PST) From: Gyan Doshi To: ffmpeg-devel@ffmpeg.org Message-ID: <84af1ea3-5444-fad8-75ae-6fea4b3e6163@gmail.com> Date: Thu, 30 Nov 2017 15:58:21 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Subject: [FFmpeg-devel] [PATCH] configure: Allow users to disable all hwaccel libraries 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" I added --disable-hwaccels during configure and noticed that all autodetected hwaccel libs were still being linked - 6 in my case, which makes for a more bloated binary than warranted. Turns out the option only disables native components which make use of the hwaccel libs. The reporter of ticket #3906 had a similar concern. Added option to disable all autodetected hwaccel libs. Regards, Gyan From e89ed9ec2f476457552290315171bd2ef89490a5 Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Thu, 30 Nov 2017 13:48:57 +0530 Subject: [PATCH] configure: Allow users to disable all autodetected libraries providing hardware acceleration. --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 1fa16e9dba..e5b390c955 100755 --- a/configure +++ b/configure @@ -304,6 +304,7 @@ External library support: --disable-zlib disable zlib [autodetect] The following libraries provide various hardware acceleration features: + --disable-hwaccel-libs disable all autodetected hwaccel libraries --disable-amf disable AMF video encoding code [autodetect] --disable-audiotoolbox disable Apple AudioToolbox code [autodetect] --disable-cuda disable dynamically linked Nvidia CUDA code [autodetect] @@ -3629,6 +3630,9 @@ for opt do --extra-libs=*) add_extralibs $optval ;; + --disable-hwaccel-libs) + disable $HWACCEL_AUTODETECT_LIBRARY_LIST + ;; --disable-devices) disable $INDEV_LIST $OUTDEV_LIST ;;