From patchwork Fri Aug 30 10:15:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 35173 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:4027:b0:48e:c0f8:d0de with SMTP id ky39csp299739vqb; Fri, 30 Aug 2024 03:24:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXuvrqxDWIBIpvTM1zbQ9AAj3IsgrRr/EIWdAnfYdlRn1TsV4xBw5Uuh96ozd+hneU71Z29VGalB34+5JD8G2AS@gmail.com X-Google-Smtp-Source: AGHT+IHuPB9r2HHZthKWZbhQkvH81WedZhDn9YdhCl4p66bwMIQ+A8HjTOrSEwZWPYptNFpGoelS X-Received: by 2002:a17:907:94d6:b0:a75:7a8:d70c with SMTP id a640c23a62f3a-a89a249c510mr165745666b.4.1725013474322; Fri, 30 Aug 2024 03:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725013474; cv=none; d=google.com; s=arc-20240605; b=NcGjaNMnE7odUbfTM3Rj50GoHALiNWSHiqjZnx+6/f3K592I4uAJHV5bCbKs9FWlFX gyXKZxveJ3mftejrbwU2zOQO4KlaqlSW9rDGd/S95eh7U6QtUao8jIndV08D0jub9OIo u6rXABd0Yufx/iENPxTH2H/0iP/+Z97Wpzvh5kQhAibvyvZ+EZ/H0YyEoNrSpra4ZqVR OzxSKHXr9SSV5yATdUzo+KHzQ+OagxC2kdjIXFPLiJ5xQlSAz2xRFvBUOiNt5rrLrtFb dwOYLMJBOfqeXMnq7Z9UQsxGPcNNo1WJD/afkyFB+9kAQSI34s5kSdbmV29Vl+ZmOhjC dzJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=ydzcoZBXlBQyXKdP/uS7fv2sZ3Bji90UBeD4prnkDAk=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=ahUIOwd6FkErO8HN/CxbwHdcHiiAxkocsCutzIJvk46hAslmiF1im7ov8ffbX3j6+9 qPn4Q0NVmWb5LjjmZcDRXyr3v4FQuBBN/AVvlS04h28AbtoGjrm1XDqkaLlLMwjAb/Xu fiDBkEQzfueNpjxfAC/y+eQoHkgfI3lj7o7jPeqNMBJU2IQJjfgAcwfKMITPwktcZCBu 6CZRuJHhWqL2XtRJNTjZdPR+H/oZsif+dnidXc13ZRiWtPwVpSy2Ho0Xx2yt7xFUZdZq H7JoYC82mgHSc2zkGbm3oITlCeW2vsvKQ1a05EApkmC+fSYsnT+J17d16xcl2DGLKwn+ 1XJQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=eJlelEwl; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a898916e4f9si267076466b.624.2024.08.30.03.24.33; Fri, 30 Aug 2024 03:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=eJlelEwl; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DE47E68DB5B; Fri, 30 Aug 2024 13:24:16 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 65B0D68DB1E for ; Fri, 30 Aug 2024 13:24:08 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1725013447; bh=BpvMNxUf1+2+hjeaFZdyOrW3Cd6/Rb3DotpectQ4B/o=; h=From:To:Subject:Date:From; b=eJlelEwlHE4Jhd00236gX5xE6RzCy40LNSWX5Cwb67xP2smeH3v18LbJAvHtJy4HK B6r5MBH0TOqkDK4rCL7+7ZN5TiSd/2Q+sE73mM1vIH48q4vPZ5C57pkzu3tdt3N0bS hQsKG1vRk4AuAfczXr4ILW90hlnrRek8FqFKSwCc= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id B8E1A41915 for ; Fri, 30 Aug 2024 12:24:07 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Fri, 30 Aug 2024 12:15:23 +0200 Message-ID: <20240830102402.18149-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 00/17] Add avcodec_get_supported_config() 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: zZ1e5JlqgQeS Changes since v2: - Rebased onto master - Add length field, to be (optionally) populated by the callee. - Rewrite fftools code to take advantage of this new length field This should address the remaining feedback from Andreas. One thing I did notice though is that the `const void **out_configs` signature makes it a bit awkward for the caller to pass an allocated array controlled by the caller. But on the other hand, changing this to a `void *` is also pretty nasty an in particular makes it too easy to accidentally attempt mutating `const static` data.