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 3A6E34835D for ; Thu, 28 Dec 2023 21:25:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 13C6668CC92; Thu, 28 Dec 2023 23:25:17 +0200 (EET) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3719268CA6C for ; Thu, 28 Dec 2023 23:25:10 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5D11E60007 for ; Thu, 28 Dec 2023 21:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1703798709; 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=lVqDEJWDNcv59L152jAV1xxwbjLEn54QmzBiyihactY=; b=aGEBl1IeJBpXxwCQ5Mw06wblSG77ilIdqwKHbltC07Dki6d7DH4dvrkKMjt/K7pB3cQfIp 8aBc558DfxApgv6kmWvuIjPnOnl5dlHizRv0/rdSDrTasDGfHW591UUaJOmFSEP9d6EtNL RJ1+DODJpurqmfgOhD9yz3SDwjtyW0rVV2OIa6GF8feFbo8MBowrzXlzjwu/XTOcOKXA2C Prvoo1/L4lvYR/PjLWo+4nNXAVcgfkmslB8mTzKOP2BOcArzAXUAJ0uJqz9lm5+2mROsv+ rxEpc3b0DKWj3zD1H0hvCFILwNBgJHNeNB94ur3lo3s10lCRIvWBTIWGKMBhPA== Date: Thu, 28 Dec 2023 22:25:08 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20231228212508.GZ6420@pb2> References: <20231228003839.860894-1-stefasab@gmail.com> MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 2/2] lavfi/setpts: introduce rand() function in expression 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="===============4205299832078346433==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4205299832078346433== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MoMqJSZefcPDZlII" Content-Disposition: inline --MoMqJSZefcPDZlII Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 28, 2023 at 07:49:18PM +0100, Stefano Sabatini wrote: > On date Thursday 2023-12-28 16:00:57 +0100, Stefano Sabatini wrote: > > On date Thursday 2023-12-28 12:02:59 +0100, Andreas Rheinhardt wrote: > > > Stefano Sabatini: > > > > This is useful to simulate random jitter. > > > > --- > > > > Changelog | 1 + > > > > doc/filters.texi | 10 +++++++++- > > > > libavfilter/setpts.c | 39 +++++++++++++++++++++++++++++++++------ > > > > 3 files changed, 43 insertions(+), 7 deletions(-) > [...] > > > Why is this added here and not in lavu/eval so that it is available w= ith > > > all expressions? > >=20 > > There is no specific reason. Sometimes you need to have a control over > > the seed, in this case you need to provide the PRNG context. > >=20 > > For the general case, probably we can place a global LFG in the eval > > module and fetch its generated values. >=20 > Another possible solution in attachment, leveraging the same affine > PRNG used in random(). For other use cases you might need to use a > high-quality PRNG and this might not be good enough. > eval.c | 18 +++++++++++++++--- > 1 file changed, 15 insertions(+), 3 deletions(-) > 94413dcc88e3046b4987715f6c152aeb1c24c703 0001-lavu-eval-add-randomi-func= tion-to-compute-random-val.patch > From 4dc5213b0913a2585f75dfd03b497ca2efc093de Mon Sep 17 00:00:00 2001 > From: Stefano Sabatini > Date: Thu, 28 Dec 2023 19:09:22 +0100 > Subject: [PATCH] lavu/eval: add randomi function to compute random value = in > interval probably ok if this is usefull thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Never trust a computer, one day, it may think you are the virus. -- Compn --MoMqJSZefcPDZlII Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZY3nsAAKCRBhHseHBAsP q3FwAKCUo5NaedXRdVYduVx3YdQwOZEtAACfUOh2bDbFEQJn27Sy0V4WfhR0BiM= =cMR6 -----END PGP SIGNATURE----- --MoMqJSZefcPDZlII-- --===============4205299832078346433== 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". --===============4205299832078346433==--