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 D897147616 for ; Thu, 14 Sep 2023 22:19:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2CCD268C83E; Fri, 15 Sep 2023 01:19:16 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8807C68C534 for ; Fri, 15 Sep 2023 01:19:09 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id DEF9D1BF206 for ; Thu, 14 Sep 2023 22:19:08 +0000 (UTC) Date: Fri, 15 Sep 2023 00:19:08 +0200 From: Michael Niedermayer To: ffmpeg-devel@ffmpeg.org Message-ID: <20230914221908.GA2105706@pb2> References: <20230906221930.ACB65410B57@natalya.videolan.org> MIME-Version: 1.0 In-Reply-To: <20230906221930.ACB65410B57@natalya.videolan.org> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/utvideodec: add vlc multi support 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="===============5124673854978697471==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5124673854978697471== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 06, 2023 at 10:19:29PM +0000, Christophe Gisquet wrote: > ffmpeg | branch: master | Christophe Gisquet | Sun Jul 9 12:56:35 2017 +0000| [da888b790af779a7489068c25f9e7ab8ac653= d41] | committer: Paul B Mahol >=20 > avcodec/utvideodec: add vlc multi support >=20 > Faster decoding, by average 50% faster overall. >=20 > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=3Dcommit;h=3Dda888b790= af779a7489068c25f9e7ab8ac653d41 > --- >=20 > libavcodec/utvideo.h | 1 + > libavcodec/utvideodec.c | 92 ++++++++++++++++++++++++-------------------= ------ > 2 files changed, 46 insertions(+), 47 deletions(-) >=20 > diff --git a/libavcodec/utvideo.h b/libavcodec/utvideo.h > index 9da9329ff3..e5160aa394 100644 > --- a/libavcodec/utvideo.h > +++ b/libavcodec/utvideo.h > @@ -81,6 +81,7 @@ typedef struct UtvideoContext { > ptrdiff_t slice_stride; > uint8_t *slice_bits, *slice_buffer[4]; > int slice_bits_size; > + void *buffer; > =20 > const uint8_t *packed_stream[4][256]; > size_t packed_stream_size[4][256]; > diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c > index 1f00c58950..ab390be0fa 100644 > --- a/libavcodec/utvideodec.c > +++ b/libavcodec/utvideodec.c > @@ -46,7 +46,7 @@ typedef struct HuffEntry { > } HuffEntry; > =20 > static int build_huff(UtvideoContext *c, const uint8_t *src, VLC *vlc, > - int *fsym, unsigned nb_elems) > + VLC_MULTI *multi, int *fsym, unsigned nb_elems) > { before this patch the whole application finishes within 130ms after this patch with teh short table 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255= ,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,25= 5,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2= 55,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,= 255,255,24,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,= 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255= ,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,25= 5,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2= 55,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,24,255,255,2= 55,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,= 255,255,255,255,255,255,255,255,23,23,23,23,23,23,23,23,23,23,23,23,23,23,2= 3,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,255,255,255,255,255,25= 5,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2= 55,255,255,255, this times out eventually not exiting the first call it always got stuck in many calls to add_level() thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship: All citizens are under surveillance, all their steps and actions recorded, for the politicians to enforce control. Democracy: All politicians are under surveillance, all their steps and actions recorded, for the citizens to enforce control. --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZQOG1AAKCRBhHseHBAsP q+cOAKCSV0Ysz15EsNeGkKAl3QAlcSOnRwCgmK6g5yZ2P1EB1xLsJszQaZDPHa0= =0emI -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- --===============5124673854978697471== 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". --===============5124673854978697471==--