From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id 9313A48A7A
	for <ffmpegdev@gitmailbox.com>; Mon, 24 Mar 2025 01:53:39 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 046AF687B99;
	Mon, 24 Mar 2025 03:53:36 +0200 (EET)
Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net
 [217.70.183.200])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D3B3E6879F5
 for <ffmpeg-devel@ffmpeg.org>; Mon, 24 Mar 2025 03:53:29 +0200 (EET)
Received: by mail.gandi.net (Postfix) with ESMTPSA id BCBFB441A9
 for <ffmpeg-devel@ffmpeg.org>; Mon, 24 Mar 2025 01:53:28 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc;
 s=gm1; t=1742781208;
 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=1XLds/adqmTxMi7V28YLiypEFurTi3pC+rZSdr6giis=;
 b=QO5aPhx2vQCJvlPeXX9IaV2VFBDiC4TArdTEG0yYyB4UstVjrxlgr/acstx8vQkgVLIEhk
 AoiMusnYaAOyg1VONMNSR04t00w2sPQWQjO/37plzC3E9B2zU+9MxGI6JvETk4v6xyoHkL
 ZW7cCOvfJXBkwCDmKN17+eKqunXNEr/a17P2o3TEfklROkcKIT6h9AevRSjTcVUAYI8rM0
 bPouHqmn37T29ZdZOuUz5e644Y5YyMARD1TU9GqS5Qq5HbIlallr8QG1vRxoJry8BQSnNk
 KYfwkLY/iE31R6VLRrgdHma1npASxJ8BY2TKgrDTWoe1akMjsT6sUjR4s416OA==
Date: Mon, 24 Mar 2025 02:53:27 +0100
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <20250324015327.GO4991@pb2>
References: <20250320223028.3469435-1-michael@niedermayer.cc>
 <5f802aaa-958b-49c3-9b4e-3b36e97b244c@lynne.ee>
 <20250321201349.GF4991@pb2> <20250321211250.GG4991@pb2>
 <20250321213658.GH4991@pb2> <20250321222245.GI4991@pb2>
 <20250322174520.GN4991@pb2>
 <5b9a3c4b-1b77-413f-9f7b-cd6c33bea02e@mediaarea.net>
MIME-Version: 1.0
In-Reply-To: <5b9a3c4b-1b77-413f-9f7b-cd6c33bea02e@mediaarea.net>
X-GND-State: clean
X-GND-Score: -70
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduheekgeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdeftddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddunecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpedutedvhfduuedugedufefghefhvedvgffgffekhfdvgfdvtefftdejkeehteefheenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg
X-GND-Sasl: michael@niedermayer.cc
Subject: Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement 2D RLE for remap
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: multipart/mixed; boundary="===============5899875772438183188=="
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250324015327.GO4991@pb2/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>


--===============5899875772438183188==
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="FBSGO/KWuzqjfGh6"
Content-Disposition: inline


--FBSGO/KWuzqjfGh6
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Jerome

On Sat, Mar 22, 2025 at 06:54:25PM +0100, Jerome Martinez wrote:
> Le 22/03/2025 =E0 18:45, Michael Niedermayer a =E9crit=A0:
> > [...]
> > Also I failed to find any worthy gain from adjusting mul_count so
> > while the code in the encoder looks complex ATM alot of that can be
> > dropped later if for example we choose to never put mul_count > 1 into
> > the specification and ATM it makes no sense to put that in as theres no
> > significant gain with the material i tested
>=20
> I would prefer we don't put mul_count > 1 related code in FFmpeg, even if=
 it
> is still experimental, without a use case demonstrating that this is usef=
ul.

Ok, ive done some more tests

mul_count>1 is for fixed point in float and decimal mantisse*exponent
formats. This is also what the paper concentrated on that ive looked at.

Real world sensors return integers (to the best of my knowledge), so these
fixed point in float cases are expected to be significant.

Sadly i have very little of any float32 material. So to test this i
had to generate my own. using the same tonemap and source from last time
i put a gbrp16 in the middle to make it 16bit fixed point in float.

and then encode this with a single static repeated dumb handwritten
mul_count=3D512 table vs the computer optimized mul_count=3D1 table optimiz=
ed
for each slice. Still the mul_count=3D512 tables are 6% smaller overall

I see the same effect with a random gbrp10 image in float32, just that
the tables are all smaller.

I thus will move forward with commiting the code i have
I also have simplified the code more today.

Droping all mul_count > 1 code would require an alternative solution.

thx

[...]
--=20
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Modern terrorism, a quick summary: Need oil, start war with country that
has oil, kill hundread thousand in war. Let country fall into chaos,
be surprised about raise of fundamantalists. Drop more bombs, kill more
people, be surprised about them taking revenge and drop even more bombs
and strip your own citizens of their rights and freedoms. to be continued

--FBSGO/KWuzqjfGh6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ+C7FAAKCRBhHseHBAsP
qypLAJ9N/OzsEr3NuF+DKOXwCGS6IKD3KQCeNhYQ+6SXje5FkOY/aRV5+5HFZ+M=
=ucuz
-----END PGP SIGNATURE-----

--FBSGO/KWuzqjfGh6--

--===============5899875772438183188==
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".

--===============5899875772438183188==--