From patchwork Tue Dec 10 14:00:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan Doshi X-Patchwork-Id: 16694 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 B57C3443DFC for ; Tue, 10 Dec 2019 16:00:54 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8E47968B2B1; Tue, 10 Dec 2019 16:00:54 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EAA0868B294 for ; Tue, 10 Dec 2019 16:00:47 +0200 (EET) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 47XMCf35vbzQlCl for ; Tue, 10 Dec 2019 15:00:46 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id 31OI7vnntBQJ for ; Tue, 10 Dec 2019 15:00:36 +0100 (CET) To: FFmpeg development discussions and patches From: Gyan Message-ID: <70d50b66-6075-87fb-98e1-379049c4f965@gyani.pro> Date: Tue, 10 Dec 2019 19:30:34 +0530 MIME-Version: 1.0 Content-Language: en-US Subject: [FFmpeg-devel] [PATCH] avfilter/scale_eval: remove redundant mathematical constants 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" Regards, Gyan From 5466e975523502944af84bb43edf17777e793554 Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Tue, 10 Dec 2019 19:24:30 +0530 Subject: [PATCH] avfilter/scale_eval: remove redundant mathematical constants Even though removed from vf_scale in 3b316f9f22, they were reintroduced when scale.c, now scale_eval.c, was split off in 037bb4021c --- libavfilter/scale_eval.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libavfilter/scale_eval.c b/libavfilter/scale_eval.c index a3439a95e0..6c526a97af 100644 --- a/libavfilter/scale_eval.c +++ b/libavfilter/scale_eval.c @@ -25,9 +25,6 @@ #include "libavutil/pixdesc.h" static const char *const var_names[] = { - "PI", - "PHI", - "E", "in_w", "iw", "in_h", "ih", "out_w", "ow", @@ -43,9 +40,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, @@ -68,9 +62,6 @@ enum var_name { * non-scale2ref specific values. */ static const char *const var_names_scale2ref[] = { - "PI", - "PHI", - "E", "in_w", "iw", "in_h", "ih", "out_w", "ow", @@ -124,9 +115,6 @@ int ff_scale_eval_dimensions(void *log_ctx, main_desc = av_pix_fmt_desc_get(main_link->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;