From patchwork Thu Oct 26 12:18:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 44360 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:bf16:b0:15d:8365:d4b8 with SMTP id gc22csp586341pzb; Thu, 26 Oct 2023 05:19:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6Scm8VIQ/C6YuLIlb3Tw137l+FK9gzXvLTHj4rclUJAdzBfwYM8BRhc5XJEzdBeBRw0PY X-Received: by 2002:a17:907:3fa2:b0:9ad:8641:e91b with SMTP id hr34-20020a1709073fa200b009ad8641e91bmr2431863ejc.11.1698322778463; Thu, 26 Oct 2023 05:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698322778; cv=none; d=google.com; s=arc-20160816; b=TvUBJYA5Dr5gj/cBNG2VVWTX43DLkMs3ohg5CWh1R5DmoANAehgq9x1E8I2EEqCI5q O6RqrvVNJfgcGaSUN7hdw4xIt6v2SxIfUI3LKzRQwS1HBmBWzX1qIkpML7sKsnSW6+VS 6mXxPOTNJr40QTX1N/o0jO/b30Ybt0xZxa3gDGtBkXCmQOCMCNvFIbAcZqX0TbpNv3ZF y6DQV8W61ScLHZHTFGYnz1FglNXr3zaTe6qON06llgSORxNO3C24xMa8fOEAi+kpjVnE o0frbydL4JRmEz2foz5fe2Lzykbli5k0fHFYVM5XvmCRzDtVs7jW/2qa6Gn/lId5/S18 WXLQ== 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=xPzL1dv6r6gQMgDdEKCfhdG3vz+xV2r56NTUOJ34P8U=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=WbYYgbYE3fcn4SlpEC95OLTJzS5toPmoAya3mdMHK+nUtO4trkmI8kUX24skT/0yp/ mOyTuPRD8BpAC+4bJwHic3MO4zFyHccXHhtPxaeYC37XKe5+C/bTnbhjK5b8bc53E9XJ TLCjcZs77E9pJup8ZdoXSxJRIRMafECFtq5m8qHTx8l5jCk17uTTTdKnHkyFmoX5axmo gXZEjxahThDXVki7ZPUjWggyMrvERFqMHyGMCZmqSgBqMUrgE9JjXZlGtj/1Wx2Ja03r F6V1J4PpfMbaodk3/Yo1vGrEnZR1/ppfaRlqwlm/DJYEuoeglLXbmInrHHqMIZAJcJfU 0wPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=fQwdf4sq; 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 h16-20020a170906591000b009ba1cf0f500si6774563ejq.871.2023.10.26.05.19.38; Thu, 26 Oct 2023 05:19:38 -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=fQwdf4sq; 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 DC40D68CAF2; Thu, 26 Oct 2023 15:19:16 +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 0DD6968CA89 for ; Thu, 26 Oct 2023 15:19:08 +0300 (EEST) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id C34A74B7B8; Thu, 26 Oct 2023 14:19:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1698322747; bh=hzwF4DTOQmDDmyHH7ydaBC0s6Rse1K8CFg4q3R0SgK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQwdf4sqSqdK4BTYdxoGeaP1VEF662xf1d7kL8o1+rbUnStJ0UUD7ZlLrjAm5rvZk mz1trV6lR2efI8DArzlworbIFl2qB5NuRQnojY1htCl6nPenmiqGpcmw0DjJWo9LYQ M8UnGs3YEQSl6LVvrO15rDgIKPL6+YQxO0/rh9fM= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Oct 2023 14:18:59 +0200 Message-ID: <20231026121901.68926-3-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231026121901.68926-1-ffmpeg@haasn.xyz> References: <20231026121901.68926-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/5] avfilter/drawutils: simplify xyz format check 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: nmLSeafem/2h From: Niklas Haas --- libavfilter/drawutils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index c31ab6bd5a..1081938d86 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -22,7 +22,6 @@ #include #include "libavutil/avassert.h" -#include "libavutil/avstring.h" #include "libavutil/avutil.h" #include "libavutil/csp.h" #include "libavutil/intreadwrite.h" @@ -94,8 +93,6 @@ int ff_draw_init2(FFDrawContext *draw, enum AVPixelFormat format, enum AVColorSp return AVERROR(ENOSYS); if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA)) return AVERROR(ENOSYS); - if (av_strstart(desc->name, "xyz", NULL)) - return AVERROR(ENOSYS); if (csp == AVCOL_SPC_UNSPECIFIED) csp = (desc->flags & AV_PIX_FMT_FLAG_RGB) ? AVCOL_SPC_RGB : AVCOL_SPC_SMPTE170M; if (!(desc->flags & AV_PIX_FMT_FLAG_RGB) && !(luma = av_csp_luma_coeffs_from_avcsp(csp)))