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 6EA4843A6A for ; Wed, 6 Jul 2022 17:11:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0FD4968BA9E; Wed, 6 Jul 2022 20:11:29 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E161768BA39 for ; Wed, 6 Jul 2022 20:11:22 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 391F5C000B for ; Wed, 6 Jul 2022 17:11:21 +0000 (UTC) Date: Wed, 6 Jul 2022 19:11:21 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220706171121.GO396728@pb2> References: <20220503163059.26728-1-michael@niedermayer.cc> <20220503163059.26728-2-michael@niedermayer.cc> <63439cc20e609f1039d94ba8ef21c4ed4863cf0e.camel@acc.umu.se> MIME-Version: 1.0 In-Reply-To: <63439cc20e609f1039d94ba8ef21c4ed4863cf0e.camel@acc.umu.se> Subject: Re: [FFmpeg-devel] [PATCH 2/2] avcodec/smacker: Optimize constant 16bit audio output 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="===============1294261719760737184==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1294261719760737184== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="el5t42zgmc/Dsb5h" Content-Disposition: inline --el5t42zgmc/Dsb5h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 04, 2022 at 11:39:54AM +0200, Tomas H=E4rdin wrote: > tis 2022-05-03 klockan 18:30 +0200 skrev Michael Niedermayer: > >=20 > > +=A0=A0=A0=A0=A0=A0=A0 } else if (stereo) { > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 val=A0 =3D 256*values[1] + values[0]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 val2 =3D 256*values[3] + values[2]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 for(; i < unp_size; i+=3D2) { > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pred[0] +=3D val; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pred[1] +=3D val2; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 *samples++ =3D pred[0]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 *samples++ =3D pred[1]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } > > +=A0=A0=A0=A0=A0=A0=A0 } else { > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 val =3D 256*values[1] + values[0]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 for(; i < unp_size; i++) { > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 pred[0] +=3D val; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 *samples++ =3D pred[0]; > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 } > > +=A0=A0=A0=A0=A0=A0=A0 } >=20 > Got any numbers on how much faster this is? Just out of curiosity With the fuzzed sample: before: 3263902379 decicycles in ABBB, 128 runs, 0 skips after: 398977744 decicycles in ABBB, 1024 runs, 0 skips the first times out after 128 runs which is why the runs differ thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Opposition brings concord. Out of discord comes the fairest harmony. -- Heraclitus --el5t42zgmc/Dsb5h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYsXCMQAKCRBhHseHBAsP qztLAKCblQtR5brlrpmmYyrbLlPV9dLKzwCfZNTmZ4GTAghsXcegWhWd6DmRyYM= =bWr+ -----END PGP SIGNATURE----- --el5t42zgmc/Dsb5h-- --===============1294261719760737184== 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". --===============1294261719760737184==--