From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id ABF374C1E9 for ; Fri, 2 May 2025 14:11:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 416D968B391; Fri, 2 May 2025 17:11:06 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C32A3687DE0 for ; Fri, 2 May 2025 17:10:59 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 01D4741B5F for ; Fri, 2 May 2025 14:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1746195059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LVnRu0j+svVK88jtp3YxgreWeevvBG/Be6hoKy8zBaE=; b=o5DRDGAaNoPxmqECgjDGBC5TbmkMTg7jiAZEkJ5wy3WmRPGhkO+aBWsb6YjJ51K9JS4Qf0 2weu8AyXAfmYyUbm1HpOdQmgk8gjlMYClstqfOpywO9CbFO+kmtpfv04k8WZcFamdIX6yw BTfgP1B0lCfaVxK5wKrs2/83+4h/HF8I3kVK8gT2/byRv5S6YrIVs495MWkcvVkgfnaiWk Kf+PLJwz8wUaVuVywuPkzPrv2e5BZ57ZidQUmoK6EfRcpC3/nux9NdNgll9sNGnoBoq7wY c1PUqRUelrLfM4VJqMlljRJSkeOT6xtIG1Ap55zVDIUwrYD6EIIkLY/6KfbLdw== Date: Fri, 2 May 2025 16:10:57 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250502141057.GY4991@pb2> References: <20250426175603.726924-1-ffmpeg@haasn.xyz> <20250426175603.726924-17-ffmpeg@haasn.xyz> MIME-Version: 1.0 In-Reply-To: <20250426175603.726924-17-ffmpeg@haasn.xyz> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvjedvieeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeelkeeggfffiedufeejueffjeduhedttdduledtheevveevtdeiueelhfdtuedtkeenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 16/17] swscale/format: add new format decode/encode logic 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 Content-Type: multipart/mixed; boundary="===============3602865226214163129==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3602865226214163129== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Tl2D5VU4Mx6z/TeF" Content-Disposition: inline --Tl2D5VU4Mx6z/TeF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 26, 2025 at 07:41:20PM +0200, Niklas Haas wrote: > From: Niklas Haas >=20 > This patch adds format handling code for the new operations. This entails > fully decoding a format to standardized RGB, and the inverse. >=20 > Handling it this way means we can always guarantee that a conversion path > exists from A to B without having to explicitly cover logic for each path; > and choosing RGB instead of YUV as the intermediate (as was done in swsca= le > v1) is more flexible with regards to enabling further operations such as > primaries conversions, linear scaling, etc. >=20 > In the case of YUV->YUV transform, the redundant matrix multiplication wi= ll > be canceled out anyways. > --- > libswscale/format.c | 925 ++++++++++++++++++++++++++++++++++++++++++++ > libswscale/format.h | 23 ++ > 2 files changed, 948 insertions(+) this or rather the equivalent from your repo breaks here: In file included from libswscale/ops.h:24, from libswscale/ops_internal.h:26, from libswscale/format.c:28: libswscale/format.c: In function =E2=80=98trc_is_hdr=E2=80=99: libswscale/format.c:1249:9: error: a label can only be part of a statement = and a declaration is not a statement 1249 | static_assert(AVCOL_TRC_NB =3D=3D 19, "Update this list whe= n adding TRCs"); | ^~~~~~~~~~~~~ make: *** [ffbuild/common.mak:81: libswscale/format.o] Error 1 make: *** Waiting for unfinished jobs.... [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Some people wanted to paint the bikeshed green, some blue and some pink. People argued and fought, when they finally agreed, only rust was left. --Tl2D5VU4Mx6z/TeF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaBTSbgAKCRBhHseHBAsP qwZ0AJ9iu3hCn9UZzdbeYghSCHLUJtk9PQCfeyPJelxjbviXbY3McBhEZtjobgE= =Yb10 -----END PGP SIGNATURE----- --Tl2D5VU4Mx6z/TeF-- --===============3602865226214163129== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============3602865226214163129==--