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 ESMTP id 54BF0421CC for ; Thu, 24 Feb 2022 22:50:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AA9E468B392; Fri, 25 Feb 2022 00:50:25 +0200 (EET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DB58468B2D0 for ; Fri, 25 Feb 2022 00:50:18 +0200 (EET) Received: from localhost (213-47-68-29.cable.dynamic.surfer.at [213.47.68.29]) (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 0CC90FF802 for ; Thu, 24 Feb 2022 22:50:17 +0000 (UTC) Date: Thu, 24 Feb 2022 23:50:17 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220224225017.GF2829255@pb2> References: <20220219154831.GW2829255@pb2> <20220223194553.59514-1-martin@martin.st> MIME-Version: 1.0 In-Reply-To: <20220223194553.59514-1-martin@martin.st> Subject: Re: [FFmpeg-devel] [PATCH v2] swscale: Take the destination range into account for yuv->rgb->yuv conversions 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="===============0119034038092175412==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0119034038092175412== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="um5yVmJwtYUIsH6A" Content-Disposition: inline --um5yVmJwtYUIsH6A Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 23, 2022 at 09:45:53PM +0200, Martin Storsj=F6 wrote: > The range parameters need to be set up before calling > sws_init_context (which selects which fastpaths can be used; > this gets called by sws_getContext); solely passing them via > sws_setColorspaceDetails isn't enough. >=20 > This fixes producing full range YUV range output when doing > YUV->YUV conversions between different YUV color spaces. >=20 > Signed-off-by: Martin Storsj=F6 > --- > libswscale/utils.c | 11 ++++++++--- > tests/fate/libswscale.mak | 16 ++++++++++++++++ > tests/ref/fate/sws-yuv-colorspace | 6 ++++++ > tests/ref/fate/sws-yuv-range | 6 ++++++ > 4 files changed, 36 insertions(+), 3 deletions(-) > create mode 100644 tests/ref/fate/sws-yuv-colorspace > create mode 100644 tests/ref/fate/sws-yuv-range LGTM tested on mingw32/64 + wine / linux x86 32/64bit, arm/mips qemu thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem). On any real computer, always possible as a real computer has a finite number of states N, and will either halt in less than N cycles or never halt. --um5yVmJwtYUIsH6A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYhgLpQAKCRBhHseHBAsP q+moAJ4qDZ6MApJbmIGkYbPDwEd5fA39UgCfZz/QoUKgLdiuUKC5lRKljTSvzac= =nNJh -----END PGP SIGNATURE----- --um5yVmJwtYUIsH6A-- --===============0119034038092175412== 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". --===============0119034038092175412==--