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 078CD4A8FB for ; Tue, 23 Apr 2024 10:04:49 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A40C568D24A; Tue, 23 Apr 2024 13:04:46 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3F11368C61C for ; Tue, 23 Apr 2024 13:04:40 +0300 (EEST) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=sAlGTG5g; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id D12DD240DAC for ; Tue, 23 Apr 2024 12:04:39 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id zHvUQqCtg0gX for ; Tue, 23 Apr 2024 12:04:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1713866674; bh=gmlWt3KXj1IrwBzTcvog1iDFZMkUaZOVKvP9hh49InY=; h=Subject:From:To:In-Reply-To:References:Date:From; b=sAlGTG5gDk/LV8sH0kxUADdeQIz5gzrEZ4u/4Yzir36bE1bSXe/rUwNhC/ilrZchX eyOlDz07zGLjLgR1t1YQMvhiE8dsnisPKJAmy6RuhtKT9J3SWDJ/PocFuSDZEZjHS+ JNc6hB/acEqYuD5De2ke/u1NmG9UoMwqJcanpMRIGSwNMWVOWvpmvycqTw2zIgkcFw tf3TPrsP3IxhhjO/35is/wo26+mB6sJCYdXlfePZ6oerF2MlwwhsxnCsuFlEaUyf/+ yMViF1Fe/D4ROqGoc8VWtqR8a0sYE1A+kKIUd1cn1jKDmTQqM47G6fPqv8y32IbFBX sVAbz81j2XcWg== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 329A22404E5 for ; Tue, 23 Apr 2024 12:04:34 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id 0CCEA1601B9; Tue, 23 Apr 2024 12:04:34 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: References: <20240422120925.380253-1-ffmpeg-devel@pileofstuff.org> <171386408794.22242.4320691091356910947@lain.khirnov.net> Mail-Followup-To: FFmpeg development discussions and patches Date: Tue, 23 Apr 2024 12:04:34 +0200 Message-ID: <171386667402.5069.14623062002271611181@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v2] lavu/opt: Clarify that AVOptions is not indended for general use 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: Quoting Andrew Sayers (2024-04-23 11:51:00) > On Tue, Apr 23, 2024 at 11:21:27AM +0200, Anton Khirnov wrote: > > > lavu/opt: Clarify that AVOptions is not indended for general use > > > > They _are_ intended for general use though. > > In that case I'm confused... > > Let's say I make a desktop app to transcode videos. Obviously I would use > AVOptions to display configuration options for different encoders. And it's > possible to create AVOptions objects for my UI. But how strongly is that use > case recommended? > > To provide a particularly difficult example - let's say I want to let the user > choose between interface themes, and I want to show both some text and a > picture of the theme. AVOption doesn't include a "text + picture" option, > so how would I extend it to meet my needs? If they fit your use case, then use them, otherwise don't - that's true for pretty much all APIs we provide. -- Anton Khirnov _______________________________________________ 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".