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 0665445E9B for ; Fri, 14 Jul 2023 10:48:06 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8B96268C556; Fri, 14 Jul 2023 13:48:03 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5526C68C49D for ; Fri, 14 Jul 2023 13:47:57 +0300 (EEST) Received: from localhost (217-74-0-168.hsi.r-kom.net [217.74.0.168]) by haasn.dev (Postfix) with ESMTPSA id 7657541EC3; Fri, 14 Jul 2023 12:47:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1689331676; bh=CHIs6PCPdh9mNhTvgtRlL5H6JBRBNCtfqJ4k2080bZc=; h=From:To:Cc:Subject:Date:From; b=r99uMrkRSMUTx323Dlhx44NMAwq+qgp8UXVMaMlmxn0gN+zNAunnvmbqB1esJpBQD ZPS7DYg6Ty0WAL8EjoA0z6M494drIqCggq3hABdEQZnUiFbDFE7YqS2aVynF3lDEy5 bnA8FTFwPXSohQ57QYf8Jo7Y05hFH2HlFFFLQ9Bk= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Fri, 14 Jul 2023 12:47:53 +0200 Message-ID: <20230714104753.9847-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavfi/vf_libplacebo: test for renderable pixel formats 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 Cc: Niklas Haas 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: From: Niklas Haas Requires a new upstream function to test not for *import* support on a given output pixel format, but also whether we can render to it. Fixes: https://github.com/haasn/libplacebo/issues/173 --- libavfilter/vf_libplacebo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 031265b637..3b92719225 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -1141,6 +1141,11 @@ static int libplacebo_query_format(AVFilterContext *ctx) } } +#if PL_API_VER >= 293 + if (!pl_test_pixfmt_caps(s->gpu, pixfmt, PL_FMT_CAP_RENDERABLE)) + continue; +#endif + RET(ff_add_format(&outfmts, pixfmt)); } -- 2.41.0 _______________________________________________ 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".