From patchwork Wed Dec 13 13:12:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 45108 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp4264358pzf; Wed, 13 Dec 2023 05:17:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCsdw6tnAKHuhce8fEHyj2x7PgTwEpvG6dEj+iMsJ3SDkUu9yjcdZkcmkco6yNr931Nj0k X-Received: by 2002:a17:906:99cb:b0:9e6:dfee:8143 with SMTP id s11-20020a17090699cb00b009e6dfee8143mr8781957ejn.3.1702473454964; Wed, 13 Dec 2023 05:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702473454; cv=none; d=google.com; s=arc-20160816; b=so51unUbNCzbipjpitIN1zBxsPXzvZABTQOMJHY1WKgJJppichNGlSX7w/PztTOtgO PWdovgwqQtuVGLcAsYIolipNmJuCRec1krwmgopmeAYh8tDB3ojr2+8+GMQ6hWKusE/D glahjJcMdSBy/jcaxDEFPL9LGPczhRBXEEbEJ/1yiYA0OzAqQygo9EISz8V+nZswdY7q ns+SNKWmGoPChHW1Z3/c00Zs+Auklq7WaZH7cjzyU3eMPEI6cADYoKYV6yjtiSnX2tVe sk+vr8JIjO3z6U0NnhkxcFCOxPbe9I1EYF2NRi4o9VnrNcoOlYNjRTNi/88SQU9jhcpE 99Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=cZU0lyMlgXJUEDzSq3kk2Po6U67JbCDtIN2I+a6c/V0=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=fCbBbzWL1GdELslS+wdQgHqlEv1BNI4RDFqEvSixR2nSO5Pz5o0GuO16VsT4Lgx9xX IcUXcu361Xp6QD8dhGiCEhfrfClYgXla8nZmwIVeeSQ/He0AdXyPfbXmhJ/W9XSWGphy ll21h4PVwkun/KByho4F/byS3YmY9MWG41huxtMpxvWZDQXX2K35+jWFN+7RoiujW090 pzhcNwttYM8pIOV2+zAEF48ewKGq48G2OoRl0sxeqGpEdF9k3CogxRF9gcjLZnTX5VSY OJr6yX3H/Jhl6tg7Rh0EuzNhC8mpc93FJZ2kdOXuh/eH3fwfxsFoLy4zQMhQ/lq7Q1zu 7Rwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=DAr0uLB4; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id lg22-20020a170906f89600b009ae09378e2dsi5684137ejb.875.2023.12.13.05.17.34; Wed, 13 Dec 2023 05:17:34 -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=@haasn.xyz header.s=mail header.b=DAr0uLB4; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0EE3968D25E; Wed, 13 Dec 2023 15:15:58 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6AE4968D19A for ; Wed, 13 Dec 2023 15:15:44 +0200 (EET) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 337FB4BD26; Wed, 13 Dec 2023 14:15:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1702473341; bh=wlBJ4p5mzEzY83SdJzRejvHKWRO5+lJCsaf8qFisoU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DAr0uLB47UxAC2iGg37leoe6SHMFgCOA8hX3oIp0sod7qsF0Q/C4zQGcJhJdJykei yUaiS2nuCp3FlrAK4txiJ2osQ9GlxuKpWM9UBuSfxNjAPG2Y/Te/lXeaIuWaqR2yyx PKR1b22mwwoyj6I8b1vUjVzOvJoWZB2UTxIfK4Uc= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Dec 2023 14:12:05 +0100 Message-ID: <20231213131536.10242-9-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213131536.10242-1-ffmpeg@haasn.xyz> References: <20231213131536.10242-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 08/15] avfilter/vf_zscale: remove unused variables 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: Niklas Haas Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: y+qCZr8JFZwf From: Niklas Haas Only assigned, never read. --- libavfilter/vf_zscale.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 788870ffaf..f76c9954cd 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -132,12 +132,6 @@ typedef struct ZScaleContext { zimg_graph_builder_params alpha_params, params; zimg_graph_builder_params alpha_params_tmp, params_tmp; zimg_filter_graph *alpha_graph[MAX_THREADS], *graph[MAX_THREADS]; - - enum AVColorSpace in_colorspace, out_colorspace; - enum AVColorTransferCharacteristic in_trc, out_trc; - enum AVColorPrimaries in_primaries, out_primaries; - enum AVColorRange in_range, out_range; - enum AVChromaLocation in_chromal, out_chromal; } ZScaleContext; typedef struct ThreadData { @@ -816,15 +810,6 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) link->dst->inputs[0]->h = in->height; s->nb_threads = av_clip(FFMIN(ff_filter_get_nb_threads(ctx), FFMIN(link->h, outlink->h) / MIN_TILESIZE), 1, MAX_THREADS); - s->in_colorspace = in->colorspace; - s->in_trc = in->color_trc; - s->in_primaries = in->color_primaries; - s->in_range = in->color_range; - s->out_colorspace = out->colorspace; - s->out_trc = out->color_trc; - s->out_primaries = out->color_primaries; - s->out_range = out->color_range; - slice_params(s, out->height, in->height); zimg_image_format_default(&s->src_format, ZIMG_API_VERSION);