From patchwork Sat Oct 5 19:23:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 52064 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:938f:0:b0:48e:c0f8:d0de with SMTP id z15csp1130662vqg; Sat, 5 Oct 2024 12:24:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUrETtOAP/MGDy8I0c2TJQZ/9+6Vz0DFxBcMGrg0NxbpNdhJU7GMP4IEG9uNC4zIS3XY7nlv2Ll1DTGKMwiUegy@gmail.com X-Google-Smtp-Source: AGHT+IFxzCPELTkNRMzKYNj4NV/XvQx97gdZMGBcdcQs54adr96m/a1oEcXPH+uFK0fj7OX5WtJj X-Received: by 2002:a05:6402:3705:b0:5c4:2fca:b11 with SMTP id 4fb4d7f45d1cf-5c8d2ec8045mr7482251a12.35.1728156284602; Sat, 05 Oct 2024 12:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728156284; cv=none; d=google.com; s=arc-20240605; b=MAWSzrIOoiZ9ksA88GshPbykK2fLgNcetE7jWdX34nF+1X4E9YLAUnq3YABP9Vc3YR oOhI03bLR/WvkPRt4/g4rGyT8PKuNL8WDuc/o8jX5QVqHM75/qkJljkrkY4MQx2jRt5e 1Qnth7+wD16yPkjjQZ9xG/5wCg86SRAewLmBoE2quQLSKmpciYlTOLb53m3lZTcryIcm hwqo2mB6hrjxIEgkngn6PbosH+oD0nWi99z6TcVIsDt2vnIzgcKLnRvnsU2pxZYw0TdU 623w/dt7L8LnPgNtkj/TGe+iwcGspirjOJLq5SrDs8P6FqDxqt4znLaj6Jp4U4bJ4zjn 4LXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=INwWMr4/HVTsgzX8idCffpFs0ukOXjj889wXCVIslfw=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=bZrZW7GNjk6pG6Sf6XZwiqRNb0cth6rGi0JRj3lN42WYrewpJRgZIkv+atiqo01upk Q5BIDswANebClkDWZqD4sM64ujZE+4qO8oiFiBbL0osvrhXU2uQOVrvkjIxCtyxg6oPs cTfnpvPN3ISd12++qHK1sh/7CrL3f75yblStCmxGt8OSxy9vJDKGcTzqmpC1isCKZ/tO VCIvAgpRXPa51/gQ8uzrBOY1l1i7BK9e9us8/MNaFT28KO9R9V9IZ5Ubi6AiIs8+R9ZS pqRbyAzHrAofG8frwEUiD/DdJmJ8lRuL3kRLBqJ7bQkAg+7/rEgzA8NWdN+FT8r6rmOr nH8Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=I1d03OLN; 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 4fb4d7f45d1cf-5c8e05e70e8si1720463a12.292.2024.10.05.12.24.44; Sat, 05 Oct 2024 12:24:44 -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; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=I1d03OLN; 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 6D12268DA15; Sat, 5 Oct 2024 22:24:21 +0300 (EEST) 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 22D9368D30B for ; Sat, 5 Oct 2024 22:24:13 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1728156252; bh=kffmqchfMIBGa7cL9tixD4FMaHl+oBgvnfk+7tvlIrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I1d03OLN3wRObzI0Zvnoo+MUFpOhQ0aoxTg9k2ym+jPvFkb4VydVvVg5ffAZlGmVE Ma4+PGHL1NlXgYDGH/kE1iCvn7pH/BU96Rs2kiWP3mW+CuOUpJgeV1O3GsvS49dldB V7j1kmxwJSQgpU+0GMGmB+axCzFjhh/Qs5FUT9tI= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id CBB1E42AE1; Sat, 5 Oct 2024 21:24:12 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Sat, 5 Oct 2024 21:23:54 +0200 Message-ID: <20241005192403.2450339-3-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241005192403.2450339-1-ffmpeg@haasn.xyz> References: <20241005192403.2450339-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 03/12] swscale/internal: rename NB_SWS_DITHER for consistency 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: UtKsbUq/6Ni6 From: Niklas Haas Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas --- libswscale/options.c | 2 +- libswscale/swscale_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libswscale/options.c b/libswscale/options.c index 53c4f0651b..6337a9f28d 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -67,7 +67,7 @@ static const AVOption swscale_options[] = { { "dst_v_chr_pos", "destination vertical chroma position in luma grid/256" , OFFSET(dst_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024, VE }, { "dst_h_chr_pos", "destination horizontal chroma position in luma grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513, 1024, VE }, - { "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, 0, NB_SWS_DITHER, VE, .unit = "sws_dither" }, + { "sws_dither", "set dithering algorithm", OFFSET(dither), AV_OPT_TYPE_INT, { .i64 = SWS_DITHER_AUTO }, 0, SWS_DITHER_NB, VE, .unit = "sws_dither" }, { "auto", "leave choice to sws", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_AUTO }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" }, { "bayer", "bayer dither", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_BAYER }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" }, { "ed", "error diffusion", 0, AV_OPT_TYPE_CONST, { .i64 = SWS_DITHER_ED }, INT_MIN, INT_MAX, VE, .unit = "sws_dither" }, diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 50127d288f..57e7515582 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -73,7 +73,7 @@ typedef enum SwsDither { SWS_DITHER_ED, SWS_DITHER_A_DITHER, SWS_DITHER_X_DITHER, - NB_SWS_DITHER, + SWS_DITHER_NB, } SwsDither; typedef enum SwsAlphaBlend {