From patchwork Thu Jul 29 05:24:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 29094 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5d:965a:0:0:0:0:0 with SMTP id d26csp5500434ios; Wed, 28 Jul 2021 22:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNpHgz9QGLtSFMj7afFSuH/ejFJlRHjQQFhdoSjjHJJFaOc2fpBjNORPA8UcZwx+1Tlf8E X-Received: by 2002:a05:6402:cab:: with SMTP id cn11mr3817959edb.369.1627536412799; Wed, 28 Jul 2021 22:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627536412; cv=none; d=google.com; s=arc-20160816; b=hLBIiCZyy7p6zurRKpwtNsGgSY2LfQElQIuifMw6O+HRLAJk21eNB2AWTH6LLy/xxP Pifqc2qK4vMWnH+UBDIDQteganYQpY7RR/cNrutDtPWA3g6EiXCj1EoxHHft5JIPHQlo zp8BsYx5JFUwTNwza4EyB/FYCybZH9vHfkF5HsnETqQ/xcBJ6Kp1Jtf/uARzhw9xMCeH F4/M0Xxp7btV+9eDkBCqpQCjUv54N1cjL6vdTS3vXZgpWNjiqOlOKH/L4LOlCO5BoOzh YRAMQ6YifQbWbOIM8SmTVXfR2JLq+ajU8mtjguivEv0n1+Vif1XO7XynJIzlm+mp25yY MAMg== 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:references:in-reply-to:message-id:date :to:from:delivered-to; bh=8GXmAxeWDOUNxn6O3oGzHrrflAarUu/Eadic3C1E2d4=; b=OgM4/byZ8etgj9utSDtivbQp+iouCXwpGmRB2wywEHN7wu/PGlQnPCT90VNHsGbL1a azjx6o//xmeXwp23v+J/d2yOVIhZ17hdscXd6SpKmb3ai5V+wl8pHVhOrqlHvjUBpatS ZCXfm3xvkCOEKYqilvWZ7mjN25vU7KqMG9S7hnZIIm+zkoJWjvh+TYuoyP9frn1UTYO3 Z7C+fJxrkzNgtXrWXDM6RZDD0aN++7kKzakdLIF2CmtdVxprk3sJzIRRGOhsne6HaqxO nKN2gDDavj2nWMmObg9h53ov6iQS60Nyhz7C8PLvs/F5+GiffTtqt9PJEPl/dldSC2oS i8+w== ARC-Authentication-Results: i=1; mx.google.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=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m27si1847508eje.688.2021.07.28.22.26.51; Wed, 28 Jul 2021 22:26:52 -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; 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=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 62F5168A351; Thu, 29 Jul 2021 08:26:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3351968A2F6 for ; Thu, 29 Jul 2021 08:26:06 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10059"; a="200023584" X-IronPort-AV: E=Sophos;i="5.84,278,1620716400"; d="scan'208";a="200023584" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2021 22:25:49 -0700 X-IronPort-AV: E=Sophos;i="5.84,278,1620716400"; d="scan'208";a="456730071" Received: from xhh-dg164.sh.intel.com ([10.239.159.167]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2021 22:25:48 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Jul 2021 13:24:51 +0800 Message-Id: <20210729052509.30992-4-haihao.xiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210729052509.30992-1-haihao.xiang@intel.com> References: <20210729052509.30992-1-haihao.xiang@intel.com> Subject: [FFmpeg-devel] [PATCH v4 03/21] lavfi/scale_qsv: don't need variables for constants in FFmpeg 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: Haihao Xiang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: +KPGTC49eSDT PI, PHI and E are defined in FFmpeg --- libavfilter/vf_scale_qsv.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index 77a782aa58..f8e937e40e 100644 --- a/libavfilter/vf_scale_qsv.c +++ b/libavfilter/vf_scale_qsv.c @@ -44,9 +44,6 @@ #include "video.h" static const char *const var_names[] = { - "PI", - "PHI", - "E", "in_w", "iw", "in_h", "ih", "out_w", "ow", @@ -57,9 +54,6 @@ static const char *const var_names[] = { }; enum var_name { - VAR_PI, - VAR_PHI, - VAR_E, VAR_IN_W, VAR_IW, VAR_IN_H, VAR_IH, VAR_OUT_W, VAR_OW, @@ -147,9 +141,6 @@ static int qsvscale_config_props(AVFilterLink *outlink) int ret; enum AVPixelFormat in_format; - var_values[VAR_PI] = M_PI; - var_values[VAR_PHI] = M_PHI; - var_values[VAR_E] = M_E; var_values[VAR_IN_W] = var_values[VAR_IW] = inlink->w; var_values[VAR_IN_H] = var_values[VAR_IH] = inlink->h; var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN;