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 52E364A901 for ; Tue, 23 Apr 2024 11:16:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 16CE168D2B6; Tue, 23 Apr 2024 14:16:01 +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 4AAFB68C2F0 for ; Tue, 23 Apr 2024 14:15:54 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2C21D1BF203 for ; Tue, 23 Apr 2024 11:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713870953; 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=oC9Uc5EQ1Bggj/rAi77JY481GXen8pywc+2gXyQJ4FU=; b=nu4WVbgXFIl1J3E8rsyyDl/ji3I8z3ozGf52AT+JudsR6o/NrFNkZFkuGJaUXpGZ1hyWqE f0pdxncCc1W1EYLTHIA3a0ctuTni29yKaVKMOgh4jyoF4rw1hWVeXrkhb6oAE7qypjf0vF iaU6+bofUUX5L/kTkiTxX8vDj8aQetePilxTQ1lZjNNVHMOvJjlhr9USxytikMm3GoyrGZ tP/As2w0A0SRJ3tE9PjlPmGBzh+xmtznJIbYi5uMa9fVWiph1G33M2pvzyGmnNAImTsv/8 2QbMb26c91RUVRlIMMFZ7OO1d0V7k8s8wOooO0hIRuvpsKC+eDF/VX1DT33HVQ== Date: Tue, 23 Apr 2024 13:15:52 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240423111552.GI6420@pb2> References: <20240422120925.380253-1-ffmpeg-devel@pileofstuff.org> <171386408794.22242.4320691091356910947@lain.khirnov.net> <171386667402.5069.14623062002271611181@lain.khirnov.net> MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc 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: multipart/mixed; boundary="===============1501090211290526780==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1501090211290526780== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2Dcpr7mtvBwJh1IP" Content-Disposition: inline --2Dcpr7mtvBwJh1IP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2024 at 11:10:43AM +0100, Andrew Sayers wrote: > On Tue, Apr 23, 2024 at 12:04:34PM +0200, Anton Khirnov wrote: > > 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 > > > >=20 > > > > They _are_ intended for general use though. > > >=20 > > > In that case I'm confused... > > >=20 > > > Let's say I make a desktop app to transcode videos. Obviously I woul= d use > > > AVOptions to display configuration options for different encoders. A= nd it's > > > possible to create AVOptions objects for my UI. But how strongly is = that use > > > case recommended? > > >=20 > > > 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 an= d a > > > picture of the theme. AVOption doesn't include a "text + picture" op= tion, > > > so how would I extend it to meet my needs? > >=20 > > If they fit your use case, then use them, otherwise don't - that's true > > for pretty much all APIs we provide. >=20 > Ah ok, so how about if I changed "intended" to "optimized" in the subject? If FFmpeg which is a multimedia tool in no place needs or wants to store pictures through its option API in a way not curently supported. I would say thats not going to qualify as "general use" outside specialized software thats already dealing with a lot of pictures still you certainly can handle binary data (like a bitmap picture) through AVOption thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are too smart to engage in politics are punished by being governed by those who are dumber. -- Plato=20 --2Dcpr7mtvBwJh1IP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iFwEABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZieYXgAKCRBhHseHBAsP q1nsAJMF7vii+BJ5qtVRI1tiIry9QvuYAJ9+Aw5LLrIwQ4P/ykQMCTFtU+714Q== =gixL -----END PGP SIGNATURE----- --2Dcpr7mtvBwJh1IP-- --===============1501090211290526780== 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". --===============1501090211290526780==--