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 556BE48407 for ; Tue, 2 Jan 2024 21:12:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4E49368CAAC; Tue, 2 Jan 2024 23:12:53 +0200 (EET) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DFA6168BDB0 for ; Tue, 2 Jan 2024 23:12:46 +0200 (EET) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40b5155e154so129255245e9.3 for ; Tue, 02 Jan 2024 13:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704229965; x=1704834765; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=lJYw9FIEm0iopEZGCMoGb9fXhvjLbqY55yTO0+tcOEo=; b=fr1dR7rEZw3r+P0bY3rS/CwXOBwGY6RQWNbhY8YphXod0SXKUIop7mvBhXy5SsvMCX QLflOfk3EC6YktOE5ad/sH9prtWZvk6dhJS9+ngytjSxvQeyiP0Fa05w/bjIYrBgzYLL cQuqILHF167poVzkF/rQh0q85jzu/mEhXbRIj8N3ODLIN1nUtGWiMXa3zM+sYOGe7BE0 7faf2yBoi8Seir/k5khp3Xy2iZqTH1oICFPNUE0UJDD68oxDfUUTxN1o6+pZ4eQa2zkn kLM5E2yQ8DBYAYNiDCkPAdzP4Ds9L6a5QfNrpQRa2BpYCu5jWGMjMLgb91gjBGggwRX3 Aj3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704229965; x=1704834765; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lJYw9FIEm0iopEZGCMoGb9fXhvjLbqY55yTO0+tcOEo=; b=vGGu970WW9jujDWNRIxoZAK0OhpYX5N+Vh5hpNZiI3ryCum4Y2Q/HEyFpmKleHj+BX IrUJbRBjoO8CSbWFfWkU3+XDnf5GL7FWIz9sZ8BP/MFAGd+YJlSNo3WunDjRRhb0x7u8 GCoeRCGY7RvM8wReObQQTHGyXSu7De1Xtx+Jr1ysmbdndAeYMk9NharnlSoqLundXFWj 34q68hNuZQD9yPdi1v5W7E6j/mNN9VNUg7INVMwAsATI0cjm76auBbL0fcgWiSZyuEOU pGmzz/P2kT2uuravL3ehpJKXypQAXe5lyvon0P4rK9bWHcLI2d4EhC0EDGyplmL57yC7 DY0A== X-Gm-Message-State: AOJu0YzA1WyQ6bPYp4+LGG4/AdZQHCNdF/rPy1CdMlUoa7Kr8UQ5hNPR /wLuZxoZfvqcV/U6eHG7bo1dpYvL1rs= X-Google-Smtp-Source: AGHT+IHY951Vc4jJPqYic8vm9kDuH/nwtPI9dcmHA+dFQUJMX6XOWDhbc5LFg+2wjaQM+aj+t/b14A== X-Received: by 2002:a05:600c:4f06:b0:40d:8944:657d with SMTP id l6-20020a05600c4f0600b0040d8944657dmr1487331wmq.140.1704229965123; Tue, 02 Jan 2024 13:12:45 -0800 (PST) Received: from mariano (dynamic-adsl-84-220-189-10.clienti.tiscali.it. [84.220.189.10]) by smtp.gmail.com with ESMTPSA id r16-20020a05600c35d000b0040d7b1ef521sm161401wmq.15.2024.01.02.13.12.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 13:12:44 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id 265CFBFCDC; Tue, 2 Jan 2024 22:12:44 +0100 (CET) Date: Tue, 2 Jan 2024 22:12:44 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20231228003839.860894-1-stefasab@gmail.com> <20231228212508.GZ6420@pb2> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On date Friday 2023-12-29 12:51:10 +0100, Stefano Sabatini wrote: > On date Thursday 2023-12-28 22:25:08 +0100, Michael Niedermayer wrote: > > 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 with > > > > > all expressions? > > > > > > > > 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. > > > > > > > > For the general case, probably we can place a global LFG in the eval > > > > module and fetch its generated values. > > > > > > 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-function-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 > > Will apply the edited patch in a few days if I see no comments. Applied. _______________________________________________ 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".