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 5277546A21
	for <ffmpegdev@gitmailbox.com>; Sun, 20 Apr 2025 21:49:53 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7E3BA687D9F;
	Mon, 21 Apr 2025 00:49:47 +0300 (EEST)
Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net
 [217.70.183.197])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 249A3687CD4
 for <ffmpeg-devel@ffmpeg.org>; Mon, 21 Apr 2025 00:49:41 +0300 (EEST)
Received: by mail.gandi.net (Postfix) with ESMTPSA id 7DA2E432EB
 for <ffmpeg-devel@ffmpeg.org>; Sun, 20 Apr 2025 21:49:40 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc;
 s=gm1; t=1745185780;
 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=YG0dWjejorRAVR53Ws/me4sfF9SAP5zsenIPLZ22DNk=;
 b=htQ20ol1WiyB4HWqEHNFW6CyQkc+vsPoqwM9uLMM2zyeaG80EdSDpx0xrA+lemdON+wkhl
 HHBBBIKbl5y5hF8A7sOvnU1nWUETfskfKrK7hl7EcRs9G21El5CstQ7d/Jm/e/42JffjX7
 LoCxnb+9Q5mUXVnhuI6/X5qQ9kd6UAZiyLK4AAajfuSVcAGAr6BHr71iDFfuHUF0/EfUux
 UBV8ZRvJK+P5wI152my6ACi3hvGDONHIK+2Ud3gyE/YK66SF3G6eZdaRpuF2sqsnIAUX2v
 h/CUqMzMQRZkOBpTh6OonmZj3gQJPGpUsii3B7S1Eta+EXGleFMRxF+fhqMRHg==
Date: Sun, 20 Apr 2025 23:49:39 +0200
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <20250420214939.GJ4991@pb2>
References: <GV1P250MB07375ABB2BB05DDD01488B598FB22@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM>
MIME-Version: 1.0
In-Reply-To: <GV1P250MB07375ABB2BB05DDD01488B598FB22@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM>
X-GND-State: clean
X-GND-Score: -90
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfeeltdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculddutddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeffteefleehieeitdffueeuvdeuleduteeujeduffejiefgvdejgfeftdduvddvvdenucffohhmrghinhepfhhfmhhpvghgrdhorhhgpdhgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg
X-GND-Sasl: michael@niedermayer.cc
Subject: Re: [FFmpeg-devel] [PATCH 1/3] avcodec/tests/mjpegenc_huffman: Also
 test length counts
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="===============8206476653866689670=="
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250420214939.GJ4991@pb2/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>


--===============8206476653866689670==
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="y6GhiE0rKutsu3SP"
Content-Disposition: inline


--y6GhiE0rKutsu3SP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi

On Tue, Apr 15, 2025 at 02:52:34AM +0200, Andreas Rheinhardt wrote:
> Patches attached.
> I also tried to sort equal length codes in such a way that codes that
> start and end with 1 bits are paired with values that occur less
> frequently as suggested by Michael in
> https://ffmpeg.org/pipermail/ffmpeg-devel/2025-April/341917.html. Yet
> strangely this worsened compression (for the majority of the fate tests
> affected by it). The patch can be found here:
> https://github.com/mkver/FFmpeg/commits/mjpegenc_huffman/

Interresting, thanks for trying!

I guess teh default order is quite good already and avoiding the all one
element, which is already done



[...]

--=20
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle

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

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

iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaAVr8AAKCRBhHseHBAsP
q2/EAJ0SiIzx/DrQvl46jYcskIz/OSUKmQCfQKgpyzt5jZk6NwPiHVhCuYu+qcc=
=i9eO
-----END PGP SIGNATURE-----

--y6GhiE0rKutsu3SP--

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

--===============8206476653866689670==--