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 A58FD4AF39 for ; Fri, 24 May 2024 09:43:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5817C68D541; Fri, 24 May 2024 12:43:32 +0300 (EEST) Received: from alt2.a-painless.mh.aa.net.uk (alt2.a-painless.mh.aa.net.uk [81.187.30.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1701268D4D6 for ; Fri, 24 May 2024 12:43:26 +0300 (EEST) Received: from 2.7.d.9.a.8.5.9.1.8.e.5.3.1.0.4.0.5.8.0.9.1.8.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:819:850:4013:5e81:958a:9d72] helo=andrews-2024-laptop.sayers) by painless-a.thn.aa.net.uk with smtp (Exim 4.96) (envelope-from ) id 1sARSO-003VpI-2c for ffmpeg-devel@ffmpeg.org; Fri, 24 May 2024 10:43:25 +0100 Date: Fri, 24 May 2024 10:43:21 +0100 From: Andrew Sayers To: FFmpeg development discussions and patches Message-ID: References: <20240523200116.740461-1-ffmpeg-devel@pileofstuff.org> <20240524015052.GX2821752@pb2> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240524015052.GX2821752@pb2> Subject: Re: [FFmpeg-devel] [PATCH v5 0/4] Explain what "context" means 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 Fri, May 24, 2024 at 03:50:52AM +0200, Michael Niedermayer wrote: > On Thu, May 23, 2024 at 09:00:39PM +0100, Andrew Sayers wrote: > > Imagine you wanted to write a system that nudged people to try new codecs. > > It might say e.g. "you seem to be using H.264, would you like to try H.265?" > > Implementing that would probably involve a struct like: > > > > struct AVOldNew { > > AVClass* old; > > AVClass* new; > > }; > > AVClass would describe the internal decoder structures. This would not be > correct at all in this example. > Thats like handing a man 2 CAD documents about 2 engines of 2 cars > > If you wanted to suggest to get a tesla instead of a ford. One would have to > describe the 2 cars and their differences > thats 2 AVCodecDescriptor maybe Hmm, yes fair point. A better example might be a simple linked list: struct AVClassList { AVClass* cur; AVClassList* next; }; Again, that clearly is a struct that begins with AVClass*, but clearly isn't an AVClass context structure. I realise it's a bit of an academic distinction, but IMHO these hypotheticals suggest it's more accurate to define the term "AVClass context structure" in terms of usage rather than layout. _______________________________________________ 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".